@everymatrix/player-account-controller 1.52.0 → 1.52.1

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.
@@ -1,22 +1,22 @@
1
- var de = Object.defineProperty;
2
- var K = Object.getOwnPropertySymbols;
3
- var pe = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable;
4
- var Y = (t, e, i) => e in t ? de(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, F = (t, e) => {
1
+ var ve = Object.defineProperty;
2
+ var q = Object.getOwnPropertySymbols;
3
+ var Te = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable;
4
+ var J = (t, e, i) => e in t ? ve(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, V = (t, e) => {
5
5
  for (var i in e || (e = {}))
6
- pe.call(e, i) && Y(t, i, e[i]);
7
- if (K)
8
- for (var i of K(e))
9
- ue.call(e, i) && Y(t, i, e[i]);
6
+ Te.call(e, i) && J(t, i, e[i]);
7
+ if (q)
8
+ for (var i of q(e))
9
+ we.call(e, i) && J(t, i, e[i]);
10
10
  return t;
11
11
  };
12
- import { a as ce, $ as ge, S as he, i as Le, f as A, c as fe, s as ve, b as Te, e as _, g as d, k as R, o as D, p as x, q as we, T as Se, v as _e, x as Q, K as X, t as I, d as O, w as B, h as M, l as p, m as Pe, n as C, L as be, U as q, y as ke } from "./GeneralLogout-DMvKimEo.js";
13
- function J(t, e) {
14
- ce(t, e);
12
+ import { a as Se, $ as _e, S as Ae, i as Pe, f as b, c as be, s as ke, b as Ce, e as S, g as a, k as x, o as D, p as R, q as Ie, T as Ee, v as De, x as Z, K as $, t as C, d as Q, w as Y, h as F, l as g, m as xe, n as I, L as Re, U as ee, y as Oe } from "./GeneralLogout-DMvKimEo.js";
13
+ function te(t, e) {
14
+ Se(t, e);
15
15
  }
16
- function Ae(t) {
17
- ge.set(t);
16
+ function We(t) {
17
+ _e.set(t);
18
18
  }
19
- const G = {
19
+ const K = {
20
20
  en: {
21
21
  expandLimits: "LIMIT HISTORY",
22
22
  daily: "per day",
@@ -267,93 +267,93 @@ const G = {
267
267
  historyLimitTypeLoss: "Loss Limit"
268
268
  }
269
269
  };
270
- function Ie(t) {
271
- Te(t, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
270
+ function je(t) {
271
+ Ce(t, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
272
272
  }
273
- function Z(t, e, i) {
273
+ function ie(t, e, i) {
274
274
  const r = t.slice();
275
- return r[36] = e[i], r[37] = e, r[38] = i, r;
275
+ return r[38] = e[i], r[39] = e, r[40] = i, r;
276
276
  }
277
- function Ce(t) {
277
+ function ze(t) {
278
278
  let e, i, r, o = (
279
279
  /*$_*/
280
280
  t[9]("expandLimits") + ""
281
- ), m, a, n, f, L, u, c, v, w, P = X(
281
+ ), l, m, n, v, L, d, p, c, f, P = $(
282
282
  /*lazyShowedHistoryArray*/
283
283
  t[7]
284
- ), g = [];
285
- for (let l = 0; l < P.length; l += 1)
286
- g[l] = $(Z(t, P, l));
284
+ ), T = [];
285
+ for (let h = 0; h < P.length; h += 1)
286
+ T[h] = se(ie(t, P, h));
287
287
  return {
288
288
  c() {
289
- e = _("div"), i = _("div"), r = _("button"), m = I(o), a = O(), n = B("svg"), f = B("path"), L = B("path"), u = O(), c = _("div");
290
- for (let l = 0; l < g.length; l += 1)
291
- g[l].c();
292
- d(f, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), d(f, "class", "svelte-19ml84y"), d(L, "d", "M0 0h36v36h-36z"), d(L, "fill", "none"), d(L, "class", "svelte-19ml84y"), d(n, "class", "ExpandArrow svelte-19ml84y"), d(n, "xmlns", "http://www.w3.org/2000/svg"), d(n, "width", "36"), d(n, "height", "36"), d(n, "viewBox", "0 0 36 36"), d(n, "fill", "#999"), M(
289
+ e = S("div"), i = S("div"), r = S("button"), l = C(o), m = Q(), n = Y("svg"), v = Y("path"), L = Y("path"), d = Q(), p = S("div");
290
+ for (let h = 0; h < T.length; h += 1)
291
+ T[h].c();
292
+ a(v, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), a(v, "class", "svelte-19ml84y"), a(L, "d", "M0 0h36v36h-36z"), a(L, "fill", "none"), a(L, "class", "svelte-19ml84y"), a(n, "class", "ExpandArrow svelte-19ml84y"), a(n, "xmlns", "http://www.w3.org/2000/svg"), a(n, "width", "36"), a(n, "height", "36"), a(n, "viewBox", "0 0 36 36"), a(n, "fill", "#999"), F(
293
293
  n,
294
294
  "extended",
295
295
  /*extended*/
296
296
  t[8]
297
- ), d(r, "class", "ExpandButton svelte-19ml84y"), d(c, "class", "HistoryDisplayArea svelte-19ml84y"), M(
298
- c,
297
+ ), a(r, "class", "ExpandButton svelte-19ml84y"), a(p, "class", "HistoryDisplayArea svelte-19ml84y"), F(
298
+ p,
299
299
  "hidden",
300
300
  /*hidden*/
301
301
  t[5]
302
- ), d(i, "class", "HistoryWrapper " + /*isDesktop*/
303
- (t[10] ? "Desktop" : "") + " svelte-19ml84y"), d(e, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
302
+ ), a(i, "class", "HistoryWrapper " + /*isDesktop*/
303
+ (t[10] ? "Desktop" : "") + " svelte-19ml84y"), a(e, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
304
304
  },
305
- m(l, T) {
306
- R(l, e, T), p(e, i), p(i, r), p(r, m), p(r, a), p(r, n), p(n, f), p(n, L), p(i, u), p(i, c);
307
- for (let y = 0; y < g.length; y += 1)
308
- g[y] && g[y].m(c, null);
309
- v || (w = Pe(
305
+ m(h, _) {
306
+ x(h, e, _), g(e, i), g(i, r), g(r, l), g(r, m), g(r, n), g(n, v), g(n, L), g(i, d), g(i, p);
307
+ for (let u = 0; u < T.length; u += 1)
308
+ T[u] && T[u].m(p, null);
309
+ c || (f = xe(
310
310
  r,
311
311
  "click",
312
312
  /*toggleHistoryDisplayArea*/
313
313
  t[11]
314
- ), v = !0);
314
+ ), c = !0);
315
315
  },
316
- p(l, T) {
317
- if (T[0] & /*$_*/
316
+ p(h, _) {
317
+ if (_[0] & /*$_*/
318
318
  512 && o !== (o = /*$_*/
319
- l[9]("expandLimits") + "") && C(m, o), T[0] & /*extended*/
320
- 256 && M(
319
+ h[9]("expandLimits") + "") && I(l, o), _[0] & /*extended*/
320
+ 256 && F(
321
321
  n,
322
322
  "extended",
323
323
  /*extended*/
324
- l[8]
325
- ), T[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
324
+ h[8]
325
+ ), _[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
326
326
  650) {
327
- P = X(
327
+ P = $(
328
328
  /*lazyShowedHistoryArray*/
329
- l[7]
329
+ h[7]
330
330
  );
331
- let y;
332
- for (y = 0; y < P.length; y += 1) {
333
- const b = Z(l, P, y);
334
- g[y] ? g[y].p(b, T) : (g[y] = $(b), g[y].c(), g[y].m(c, null));
331
+ let u;
332
+ for (u = 0; u < P.length; u += 1) {
333
+ const E = ie(h, P, u);
334
+ T[u] ? T[u].p(E, _) : (T[u] = se(E), T[u].c(), T[u].m(p, null));
335
335
  }
336
- for (; y < g.length; y += 1)
337
- g[y].d(1);
338
- g.length = P.length;
336
+ for (; u < T.length; u += 1)
337
+ T[u].d(1);
338
+ T.length = P.length;
339
339
  }
340
- T[0] & /*hidden*/
341
- 32 && M(
342
- c,
340
+ _[0] & /*hidden*/
341
+ 32 && F(
342
+ p,
343
343
  "hidden",
344
344
  /*hidden*/
345
- l[5]
345
+ h[5]
346
346
  );
347
347
  },
348
- d(l) {
349
- l && x(e), be(g, l), v = !1, w();
348
+ d(h) {
349
+ h && R(e), Re(T, h), c = !1, f();
350
350
  }
351
351
  };
352
352
  }
353
- function Ee(t) {
353
+ function He(t) {
354
354
  return { c: D, m: D, p: D, d: D };
355
355
  }
356
- function De(t) {
356
+ function Me(t) {
357
357
  let e, i = (
358
358
  /*lang*/
359
359
  (t[0] ? (
@@ -363,211 +363,201 @@ function De(t) {
363
363
  ), r;
364
364
  return {
365
365
  c() {
366
- e = _("p"), r = I(i), d(e, "class", "svelte-19ml84y");
366
+ e = S("p"), r = C(i), a(e, "class", "svelte-19ml84y");
367
367
  },
368
- m(o, m) {
369
- R(o, e, m), p(e, r);
368
+ m(o, l) {
369
+ x(o, e, l), g(e, r);
370
370
  },
371
- p(o, m) {
372
- m[0] & /*lang, $_*/
371
+ p(o, l) {
372
+ l[0] & /*lang, $_*/
373
373
  513 && i !== (i = /*lang*/
374
374
  (o[0] ? (
375
375
  /*$_*/
376
376
  o[9]("error")
377
- ) : "500 Server Error") + "") && C(r, i);
377
+ ) : "500 Server Error") + "") && I(r, i);
378
378
  },
379
379
  d(o) {
380
- o && x(e);
380
+ o && R(e);
381
381
  }
382
382
  };
383
383
  }
384
- function Re(t) {
384
+ function Fe(t) {
385
385
  let e, i, r, o = (
386
386
  /*history*/
387
- t[36].type + ""
388
- ), m, a, n = (
389
- /*history*/
390
- t[36].amount + ""
391
- ), f, L, u = (
392
- /*history*/
393
- t[36].currency + ""
394
- ), c, v, w = (
387
+ t[38].type + ""
388
+ ), l, m, n = (
395
389
  /*history*/
396
- t[36].period + ""
397
- ), P, g, l = (
390
+ t[38].amount + ""
391
+ ), v, L, d = (
398
392
  /*history*/
399
- t[36].date + ""
400
- ), T;
393
+ t[38].date + ""
394
+ ), p;
401
395
  return {
402
396
  c() {
403
- e = _("div"), i = _("span"), r = _("span"), m = I(o), a = _("span"), f = I(n), L = O(), c = I(u), v = O(), P = I(w), g = _("span"), T = I(l), d(r, "class", "LimitType svelte-19ml84y"), d(a, "class", "LimitAmountPeriod svelte-19ml84y"), d(i, "class", "GeneralLimitInformation svelte-19ml84y"), d(g, "class", "DateLimitInformation svelte-19ml84y"), d(e, "class", "HistoryRow svelte-19ml84y");
397
+ e = S("div"), i = S("span"), r = S("span"), l = C(o), m = S("span"), v = C(n), L = S("span"), p = C(d), a(r, "class", "LimitType svelte-19ml84y"), a(m, "class", "LimitAmountPeriod svelte-19ml84y"), a(i, "class", "GeneralLimitInformation svelte-19ml84y"), a(L, "class", "DateLimitInformation svelte-19ml84y"), a(e, "class", "HistoryRow svelte-19ml84y");
404
398
  },
405
- m(y, b) {
406
- R(y, e, b), p(e, i), p(i, r), p(r, m), p(i, a), p(a, f), p(a, L), p(a, c), p(a, v), p(a, P), p(e, g), p(g, T);
399
+ m(c, f) {
400
+ x(c, e, f), g(e, i), g(i, r), g(r, l), g(i, m), g(m, v), g(e, L), g(L, p);
407
401
  },
408
- p(y, b) {
409
- b[0] & /*lazyShowedHistoryArray*/
402
+ p(c, f) {
403
+ f[0] & /*lazyShowedHistoryArray*/
410
404
  128 && o !== (o = /*history*/
411
- y[36].type + "") && C(m, o), b[0] & /*lazyShowedHistoryArray*/
405
+ c[38].type + "") && I(l, o), f[0] & /*lazyShowedHistoryArray*/
412
406
  128 && n !== (n = /*history*/
413
- y[36].amount + "") && C(f, n), b[0] & /*lazyShowedHistoryArray*/
414
- 128 && u !== (u = /*history*/
415
- y[36].currency + "") && C(c, u), b[0] & /*lazyShowedHistoryArray*/
416
- 128 && w !== (w = /*history*/
417
- y[36].period + "") && C(P, w), b[0] & /*lazyShowedHistoryArray*/
418
- 128 && l !== (l = /*history*/
419
- y[36].date + "") && C(T, l);
407
+ c[38].amount + "") && I(v, n), f[0] & /*lazyShowedHistoryArray*/
408
+ 128 && d !== (d = /*history*/
409
+ c[38].date + "") && I(p, d);
420
410
  },
421
- d(y) {
422
- y && x(e);
411
+ d(c) {
412
+ c && R(e);
423
413
  }
424
414
  };
425
415
  }
426
- function xe(t) {
416
+ function Ue(t) {
427
417
  let e, i, r, o = (
428
418
  /*history*/
429
- t[36].type + ""
430
- ), m, a, n = (
419
+ t[38].type + ""
420
+ ), l, m, n = (
431
421
  /*$_*/
432
422
  t[9]("limitRemoved") + ""
433
- ), f, L, u = (
423
+ ), v, L, d = (
434
424
  /*history*/
435
- t[36].date + ""
436
- ), c;
425
+ t[38].date + ""
426
+ ), p;
437
427
  return {
438
428
  c() {
439
- e = _("div"), i = _("span"), r = _("span"), m = I(o), a = _("span"), f = I(n), L = _("span"), c = I(u), d(r, "class", "LimitType svelte-19ml84y"), d(a, "class", "LimitAmountPeriod svelte-19ml84y"), d(i, "class", "GeneralLimitInformation svelte-19ml84y"), d(L, "class", "DateLimitInformation svelte-19ml84y"), d(e, "class", "HistoryRow svelte-19ml84y");
429
+ e = S("div"), i = S("span"), r = S("span"), l = C(o), m = S("span"), v = C(n), L = S("span"), p = C(d), a(r, "class", "LimitType svelte-19ml84y"), a(m, "class", "LimitAmountPeriod svelte-19ml84y"), a(i, "class", "GeneralLimitInformation svelte-19ml84y"), a(L, "class", "DateLimitInformation svelte-19ml84y"), a(e, "class", "HistoryRow svelte-19ml84y");
440
430
  },
441
- m(v, w) {
442
- R(v, e, w), p(e, i), p(i, r), p(r, m), p(i, a), p(a, f), p(e, L), p(L, c);
431
+ m(c, f) {
432
+ x(c, e, f), g(e, i), g(i, r), g(r, l), g(i, m), g(m, v), g(e, L), g(L, p);
443
433
  },
444
- p(v, w) {
445
- w[0] & /*lazyShowedHistoryArray*/
434
+ p(c, f) {
435
+ f[0] & /*lazyShowedHistoryArray*/
446
436
  128 && o !== (o = /*history*/
447
- v[36].type + "") && C(m, o), w[0] & /*$_*/
437
+ c[38].type + "") && I(l, o), f[0] & /*$_*/
448
438
  512 && n !== (n = /*$_*/
449
- v[9]("limitRemoved") + "") && C(f, n), w[0] & /*lazyShowedHistoryArray*/
450
- 128 && u !== (u = /*history*/
451
- v[36].date + "") && C(c, u);
439
+ c[9]("limitRemoved") + "") && I(v, n), f[0] & /*lazyShowedHistoryArray*/
440
+ 128 && d !== (d = /*history*/
441
+ c[38].date + "") && I(p, d);
452
442
  },
453
- d(v) {
454
- v && x(e);
443
+ d(c) {
444
+ c && R(e);
455
445
  }
456
446
  };
457
447
  }
458
- function $(t) {
448
+ function se(t) {
459
449
  let e, i, r, o = (
460
450
  /*index*/
461
- t[38]
451
+ t[40]
462
452
  );
463
- function m(u, c) {
453
+ function l(d, p) {
464
454
  return (
465
455
  /*history*/
466
- u[36].removed ? xe : Re
456
+ d[38].removed ? Ue : Fe
467
457
  );
468
458
  }
469
- let a = m(t), n = a(t);
470
- const f = () => (
459
+ let m = l(t), n = m(t);
460
+ const v = () => (
471
461
  /*div_binding*/
472
- t[20](e, o)
462
+ t[21](e, o)
473
463
  ), L = () => (
474
464
  /*div_binding*/
475
- t[20](null, o)
465
+ t[21](null, o)
476
466
  );
477
467
  return {
478
468
  c() {
479
- e = _("div"), n.c(), i = O(), d(e, "class", r = q(
469
+ e = S("div"), n.c(), i = Q(), a(e, "class", r = ee(
480
470
  /*index*/
481
- t[38] > +/*numberofentries*/
471
+ t[40] > +/*numberofentries*/
482
472
  t[1] ? "LimitContainer" : ""
483
473
  ) + " svelte-19ml84y");
484
474
  },
485
- m(u, c) {
486
- R(u, e, c), n.m(e, null), p(e, i), f();
475
+ m(d, p) {
476
+ x(d, e, p), n.m(e, null), g(e, i), v();
487
477
  },
488
- p(u, c) {
489
- t = u, a === (a = m(t)) && n ? n.p(t, c) : (n.d(1), n = a(t), n && (n.c(), n.m(e, i))), c[0] & /*numberofentries*/
490
- 2 && r !== (r = q(
478
+ p(d, p) {
479
+ t = d, m === (m = l(t)) && n ? n.p(t, p) : (n.d(1), n = m(t), n && (n.c(), n.m(e, i))), p[0] & /*numberofentries*/
480
+ 2 && r !== (r = ee(
491
481
  /*index*/
492
- t[38] > +/*numberofentries*/
482
+ t[40] > +/*numberofentries*/
493
483
  t[1] ? "LimitContainer" : ""
494
- ) + " svelte-19ml84y") && d(e, "class", r), o !== /*index*/
495
- t[38] && (L(), o = /*index*/
496
- t[38], f());
484
+ ) + " svelte-19ml84y") && a(e, "class", r), o !== /*index*/
485
+ t[40] && (L(), o = /*index*/
486
+ t[40], v());
497
487
  },
498
- d(u) {
499
- u && x(e), n.d(), L();
488
+ d(d) {
489
+ d && R(e), n.d(), L();
500
490
  }
501
491
  };
502
492
  }
503
- function Oe(t) {
493
+ function Ne(t) {
504
494
  let e;
505
- function i(m, a) {
495
+ function i(l, m) {
506
496
  return (
507
497
  /*hasErrors*/
508
- m[6] ? De : (
498
+ l[6] ? Me : (
509
499
  /*isLoading*/
510
- m[4] ? Ee : Ce
500
+ l[4] ? He : ze
511
501
  )
512
502
  );
513
503
  }
514
504
  let r = i(t), o = r(t);
515
505
  return {
516
506
  c() {
517
- e = _("div"), o.c(), d(e, "class", "svelte-19ml84y");
507
+ e = S("div"), o.c(), a(e, "class", "svelte-19ml84y");
518
508
  },
519
- m(m, a) {
520
- R(m, e, a), o.m(e, null), t[21](e);
509
+ m(l, m) {
510
+ x(l, e, m), o.m(e, null), t[22](e);
521
511
  },
522
- p(m, a) {
523
- r === (r = i(m)) && o ? o.p(m, a) : (o.d(1), o = r(m), o && (o.c(), o.m(e, null)));
512
+ p(l, m) {
513
+ r === (r = i(l)) && o ? o.p(l, m) : (o.d(1), o = r(l), o && (o.c(), o.m(e, null)));
524
514
  },
525
515
  i: D,
526
516
  o: D,
527
- d(m) {
528
- m && x(e), o.d(), t[21](null);
517
+ d(l) {
518
+ l && R(e), o.d(), t[22](null);
529
519
  }
530
520
  };
531
521
  }
532
- function We(t, e, i) {
522
+ function Be(t, e, i) {
533
523
  let r;
534
- we(t, ke, (s) => i(9, r = s));
535
- let o = window.navigator.userAgent, m = !Se(o), { lang: a = "" } = e, { userid: n = "" } = e, { session: f = "" } = e, { endpoint: L = "" } = e, { apiversion: u = "" } = e, { numberofentries: c = "10" } = e, { customcurrencysymbols: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: g = "" } = e, l, T = new Array(), y = parseInt(c, 10), b = !1, W = !0, j = [], z = [], H = !0, U = !1, N = { EUR: "€", RON: "lei" };
536
- const ee = () => {
537
- fetch(g).then((h) => h.json()).then((h) => {
538
- Object.keys(h).forEach((k) => {
539
- J(k, h[k]);
524
+ Ie(t, Oe, (s) => i(9, r = s));
525
+ let o = window.navigator.userAgent, l = !Ee(o), { lang: m = "" } = e, { userid: n = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: c = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { translationurl: h = "" } = e, _, u = new Array(), E = parseInt(p, 10), U = !1, W = !0, j = [], z = [], H = !0, N = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
526
+ const re = () => {
527
+ fetch(h).then((y) => y.json()).then((y) => {
528
+ Object.keys(y).forEach((A) => {
529
+ te(A, y[A]);
540
530
  });
541
- }).catch((h) => {
542
- console.log(h);
531
+ }).catch((y) => {
532
+ console.log(y);
543
533
  });
544
534
  };
545
- Object.keys(G).forEach((s) => {
546
- J(s, G[s]);
535
+ Object.keys(K).forEach((s) => {
536
+ te(s, K[s]);
547
537
  });
548
- const te = () => {
549
- let s = u === "gmcore" ? `/v2/player/${n}/transactions/limit` : `/v1/player/${n}/limits/monetary/history`, h = new URL(s, L);
550
- h.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), h.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), h.searchParams.append("limit", "10000");
551
- let k = {
538
+ const oe = () => {
539
+ let s = d === "gmcore" ? `/v2/player/${n}/transactions/limit` : `/v1/player/${n}/limits/monetary/history`, y = new URL(s, L);
540
+ y.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), y.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), y.searchParams.append("limit", "10000");
541
+ let A = {
552
542
  method: "GET",
553
- headers: { "X-SessionID": f }
543
+ headers: { "X-SessionID": v }
554
544
  };
555
- fetch(h.href, k).then((S) => {
556
- if (S.status >= 300)
557
- throw i(4, W = !1), i(6, b = !0), new Error("There was an error fetching the limits");
558
- return S.json();
545
+ fetch(y.href, A).then((w) => {
546
+ if (w.status >= 300)
547
+ throw i(4, W = !1), i(6, U = !0), new Error("There was an error fetching the limits");
548
+ return w.json();
559
549
  }).then(
560
- (S) => {
561
- S.length && (j = ie(S), i(7, z = j.slice(0, y))), i(4, W = !1);
550
+ (w) => {
551
+ w.length && (j = ne(w), i(7, z = j.slice(0, E))), i(4, W = !1);
562
552
  },
563
- (S) => {
564
- console.error("There was an error", S), i(6, b = !0);
553
+ (w) => {
554
+ console.error("There was an error", w), i(6, U = !0);
565
555
  }
566
556
  );
567
- }, ie = (s) => {
568
- const h = !!G[a];
569
- return s.map((S) => {
570
- let E = {
557
+ }, ne = (s) => {
558
+ const y = !!K[m];
559
+ return s.map((w) => {
560
+ let k = {
571
561
  amount: "",
572
562
  currency: "",
573
563
  date: "",
@@ -575,34 +565,49 @@ function We(t, e, i) {
575
565
  type: "",
576
566
  removed: !1
577
567
  };
578
- return E.amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(S.limitAmount), E.currency = h ? N[S.limitCurrencyCode] : S.limitCurrencyCode, E.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(S.limitDate)), E.period = r(`${S.limitPeriod.toLowerCase()}`), E.type = u === "gmcore" ? r(`historyLimitType${S.limitType.split(" ")[0]}`) : r(`historyLimitType${S.limitType.split(" ")[0]}`) + " " + r(`historyProductType${S.limitProductType}`), E.removed = S.limitAmount === -1, E;
568
+ return k.amount = le(w), k.currency = y ? O[w.limitCurrencyCode] : w.limitCurrencyCode, k.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(w.limitDate)), k.period = r(`${w.limitPeriod.toLowerCase()}`), k.type = d === "gmcore" ? r(`historyLimitType${w.limitType.split(" ")[0]}`) : r(`historyLimitType${w.limitType.split(" ")[0]}`) + " " + r(`historyProductType${w.limitProductType}`), k.removed = w.limitAmount === -1, k;
579
569
  });
580
- }, se = () => {
581
- i(5, H = !H), i(8, U = !U);
570
+ }, le = (s) => {
571
+ let y = f || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(s.limitAmount);
572
+ if (!f) {
573
+ let fe = O[s.limitCurrencyCode] || s.limitCurrencyCode;
574
+ return `${y}${fe}`;
575
+ }
576
+ typeof s.limitAmount == "string" && s.limitAmount.includes(",") && (s.limitAmount = s.limitAmount.replaceAll(",", ""));
577
+ const A = y.match(/\{(\d+)decimals\}/), w = A ? parseInt(A[1], 10) : 2, k = A ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
578
+ let M = parseFloat(s.limitAmount).toFixed(w);
579
+ const [he, B] = f.includes(".") ? [",", "."] : [".", ","];
580
+ let [G, Le] = M.split(".");
581
+ return G = G.replace(/\B(?=(\d{3})+(?!\d))/g, he), M = `${G}${B}${Le}`, y = y.replace("{currency}", O[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", M.split(B)[0]).replace(
582
+ k,
583
+ M.split(B)[1]
584
+ ), y;
585
+ }, ae = () => {
586
+ i(5, H = !H), i(8, N = !N);
582
587
  };
583
- let V = new IntersectionObserver((s) => {
584
- s.forEach((h) => {
585
- h.isIntersecting && (y += parseInt(c, 10) || 10, z.length < j.length && i(7, z = j.slice(0, y)));
588
+ let X = new IntersectionObserver((s) => {
589
+ s.forEach((y) => {
590
+ y.isIntersecting && (E += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, E)));
586
591
  });
587
592
  });
588
- const re = () => {
589
- V.observe(T[T.length - 1]);
590
- }, oe = () => {
591
- if (!v) return;
593
+ const me = () => {
594
+ X.observe(u[u.length - 1]);
595
+ }, ye = () => {
596
+ if (!c) return;
592
597
  let s = {};
593
- v.split(",").forEach((h) => {
594
- let k = h.split(":");
595
- s[k[0].trim()] = k[1].trim();
596
- }), N = F(F({}, N), s);
597
- }, ne = () => {
598
+ c.split(",").forEach((y) => {
599
+ let A = y.split(":");
600
+ s[A[0].trim()] = A[1].trim();
601
+ }), O = V(V({}, O), s);
602
+ }, de = () => {
598
603
  let s = document.createElement("style");
599
- s.innerHTML = w, l.appendChild(s);
600
- }, le = () => {
601
- let s = new URL(P), h = document.createElement("style");
602
- fetch(s.href).then((k) => k.text()).then((k) => {
603
- h.innerHTML = k, l && (setTimeout(
604
+ s.innerHTML = P, _.appendChild(s);
605
+ }, pe = () => {
606
+ let s = new URL(T), y = document.createElement("style");
607
+ fetch(s.href).then((A) => A.text()).then((A) => {
608
+ y.innerHTML = A, _ && (setTimeout(
604
609
  () => {
605
- l.appendChild(h);
610
+ _.appendChild(y);
606
611
  },
607
612
  1
608
613
  ), setTimeout(
@@ -611,66 +616,67 @@ function We(t, e, i) {
611
616
  500
612
617
  ));
613
618
  });
614
- }, ae = () => {
615
- Ae(a);
619
+ }, ue = () => {
620
+ We(m);
616
621
  };
617
- _e(() => () => {
618
- V.unobserve(T[T.length - 1]);
622
+ De(() => () => {
623
+ X.unobserve(u[u.length - 1]);
619
624
  });
620
- function me(s, h) {
621
- Q[s ? "unshift" : "push"](() => {
622
- T[h] = s, i(3, T);
625
+ function ce(s, y) {
626
+ Z[s ? "unshift" : "push"](() => {
627
+ u[y] = s, i(3, u);
623
628
  });
624
629
  }
625
- function ye(s) {
626
- Q[s ? "unshift" : "push"](() => {
627
- l = s, i(2, l);
630
+ function ge(s) {
631
+ Z[s ? "unshift" : "push"](() => {
632
+ _ = s, i(2, _);
628
633
  });
629
634
  }
630
635
  return t.$$set = (s) => {
631
- "lang" in s && i(0, a = s.lang), "userid" in s && i(12, n = s.userid), "session" in s && i(13, f = s.session), "endpoint" in s && i(14, L = s.endpoint), "apiversion" in s && i(15, u = s.apiversion), "numberofentries" in s && i(1, c = s.numberofentries), "customcurrencysymbols" in s && i(16, v = s.customcurrencysymbols), "clientstyling" in s && i(17, w = s.clientstyling), "clientstylingurl" in s && i(18, P = s.clientstylingurl), "translationurl" in s && i(19, g = s.translationurl);
636
+ "lang" in s && i(0, m = s.lang), "userid" in s && i(12, n = s.userid), "session" in s && i(13, v = s.session), "endpoint" in s && i(14, L = s.endpoint), "apiversion" in s && i(15, d = s.apiversion), "numberofentries" in s && i(1, p = s.numberofentries), "customcurrencysymbols" in s && i(16, c = s.customcurrencysymbols), "limitformat" in s && i(17, f = s.limitformat), "clientstyling" in s && i(18, P = s.clientstyling), "clientstylingurl" in s && i(19, T = s.clientstylingurl), "translationurl" in s && i(20, h = s.translationurl);
632
637
  }, t.$$.update = () => {
633
638
  t.$$.dirty[0] & /*customcurrencysymbols*/
634
- 65536 && v && oe(), t.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
635
- 61440 && L && n && f && u && te(), t.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
636
- 56 && T[0] && !W && !H && re(), t.$$.dirty[0] & /*lang*/
637
- 1 && a && ae(), t.$$.dirty[0] & /*clientstylingurl*/
638
- 262144 && P && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
639
- 131076 && w && l && ne(), t.$$.dirty[0] & /*translationurl, customStylingContainer*/
640
- 524292 && g && l && ee();
639
+ 65536 && c && ye(), t.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
640
+ 61440 && L && n && v && d && oe(), t.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
641
+ 56 && u[0] && !W && !H && me(), t.$$.dirty[0] & /*lang*/
642
+ 1 && m && ue(), t.$$.dirty[0] & /*clientstylingurl*/
643
+ 524288 && T && pe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
644
+ 262148 && P && _ && de(), t.$$.dirty[0] & /*translationurl, customStylingContainer*/
645
+ 1048580 && h && _ && re();
641
646
  }, [
642
- a,
643
- c,
644
- l,
645
- T,
647
+ m,
648
+ p,
649
+ _,
650
+ u,
646
651
  W,
647
652
  H,
648
- b,
649
- z,
650
653
  U,
654
+ z,
655
+ N,
651
656
  r,
652
- m,
653
- se,
657
+ l,
658
+ ae,
654
659
  n,
655
- f,
656
- L,
657
- u,
658
660
  v,
659
- w,
661
+ L,
662
+ d,
663
+ c,
664
+ f,
660
665
  P,
661
- g,
662
- me,
663
- ye
666
+ T,
667
+ h,
668
+ ce,
669
+ ge
664
670
  ];
665
671
  }
666
- class je extends he {
672
+ class Ge extends Ae {
667
673
  constructor(e) {
668
- super(), Le(
674
+ super(), Pe(
669
675
  this,
670
676
  e,
671
- We,
672
- Oe,
673
- ve,
677
+ Be,
678
+ Ne,
679
+ ke,
674
680
  {
675
681
  lang: 0,
676
682
  userid: 12,
@@ -679,11 +685,12 @@ class je extends he {
679
685
  apiversion: 15,
680
686
  numberofentries: 1,
681
687
  customcurrencysymbols: 16,
682
- clientstyling: 17,
683
- clientstylingurl: 18,
684
- translationurl: 19
688
+ limitformat: 17,
689
+ clientstyling: 18,
690
+ clientstylingurl: 19,
691
+ translationurl: 20
685
692
  },
686
- Ie,
693
+ je,
687
694
  [-1, -1]
688
695
  );
689
696
  }
@@ -691,64 +698,70 @@ class je extends he {
691
698
  return this.$$.ctx[0];
692
699
  }
693
700
  set lang(e) {
694
- this.$$set({ lang: e }), A();
701
+ this.$$set({ lang: e }), b();
695
702
  }
696
703
  get userid() {
697
704
  return this.$$.ctx[12];
698
705
  }
699
706
  set userid(e) {
700
- this.$$set({ userid: e }), A();
707
+ this.$$set({ userid: e }), b();
701
708
  }
702
709
  get session() {
703
710
  return this.$$.ctx[13];
704
711
  }
705
712
  set session(e) {
706
- this.$$set({ session: e }), A();
713
+ this.$$set({ session: e }), b();
707
714
  }
708
715
  get endpoint() {
709
716
  return this.$$.ctx[14];
710
717
  }
711
718
  set endpoint(e) {
712
- this.$$set({ endpoint: e }), A();
719
+ this.$$set({ endpoint: e }), b();
713
720
  }
714
721
  get apiversion() {
715
722
  return this.$$.ctx[15];
716
723
  }
717
724
  set apiversion(e) {
718
- this.$$set({ apiversion: e }), A();
725
+ this.$$set({ apiversion: e }), b();
719
726
  }
720
727
  get numberofentries() {
721
728
  return this.$$.ctx[1];
722
729
  }
723
730
  set numberofentries(e) {
724
- this.$$set({ numberofentries: e }), A();
731
+ this.$$set({ numberofentries: e }), b();
725
732
  }
726
733
  get customcurrencysymbols() {
727
734
  return this.$$.ctx[16];
728
735
  }
729
736
  set customcurrencysymbols(e) {
730
- this.$$set({ customcurrencysymbols: e }), A();
737
+ this.$$set({ customcurrencysymbols: e }), b();
731
738
  }
732
- get clientstyling() {
739
+ get limitformat() {
733
740
  return this.$$.ctx[17];
734
741
  }
742
+ set limitformat(e) {
743
+ this.$$set({ limitformat: e }), b();
744
+ }
745
+ get clientstyling() {
746
+ return this.$$.ctx[18];
747
+ }
735
748
  set clientstyling(e) {
736
- this.$$set({ clientstyling: e }), A();
749
+ this.$$set({ clientstyling: e }), b();
737
750
  }
738
751
  get clientstylingurl() {
739
- return this.$$.ctx[18];
752
+ return this.$$.ctx[19];
740
753
  }
741
754
  set clientstylingurl(e) {
742
- this.$$set({ clientstylingurl: e }), A();
755
+ this.$$set({ clientstylingurl: e }), b();
743
756
  }
744
757
  get translationurl() {
745
- return this.$$.ctx[19];
758
+ return this.$$.ctx[20];
746
759
  }
747
760
  set translationurl(e) {
748
- this.$$set({ translationurl: e }), A();
761
+ this.$$set({ translationurl: e }), b();
749
762
  }
750
763
  }
751
- fe(je, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
764
+ be(Ge, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
752
765
  export {
753
- je as default
766
+ Ge as default
754
767
  };