@everymatrix/player-account-gaming-limits-wrapper-2-nd 1.90.10 → 1.90.16

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,7 +1,7 @@
1
1
  var vi = Object.defineProperty;
2
2
  var Z = Object.getOwnPropertySymbols;
3
3
  var wi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable;
4
- var $ = (e, i, t) => i in e ? vi(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, V = (e, i) => {
4
+ var $ = (e, i, t) => i in e ? vi(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, Q = (e, i) => {
5
5
  for (var t in i || (i = {}))
6
6
  wi.call(i, t) && $(e, t, i[t]);
7
7
  if (Z)
@@ -9,7 +9,7 @@ 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 { a as bi, $ as Si, S as _i, i as Pi, s as Ai, f as P, b as Ci, v as E, d as z, g as R, j as b, n as d, l as ki, m as xi, o as Di, F as ii, z as x, h as g, D, w as ei, x as Ei, T as M, C as zi, k as q, L as X, K as Ri, U as ti, N as ji, O as Wi, P as Hi, Q as Ii, R as Fi } from "./PlayerAccountGamingLimitsWrapper2Nd-BRae6ggH.js";
12
+ import { a as bi, $ as Si, S as _i, i as Pi, s as Ai, f as P, b as Ci, w as D, d as z, g as R, j as b, p as d, l as ki, m as xi, o as Ei, G as ii, A as x, h as g, E, x as ei, y as Di, V as M, D as zi, k as q, L as X, K as Ri, W as ti, P as ji, Q as Wi, R as Hi, T as Ii, U as Fi } from "./PlayerAccountGamingLimitsWrapper2Nd-DKxUtZee.js";
13
13
  function si(e, i) {
14
14
  bi(e, i);
15
15
  }
@@ -266,7 +266,7 @@ function Mi(e) {
266
266
  w[h] = oi(ri(e, A, h));
267
267
  return {
268
268
  c() {
269
- 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");
269
+ i = b("div"), t = b("div"), r = b("button"), n = E(o), l = q(), a = X("svg"), v = X("path"), L = X("path"), p = q(), y = b("div");
270
270
  for (let h = 0; h < w.length; h += 1)
271
271
  w[h].c();
272
272
  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*/
@@ -328,12 +328,12 @@ function Mi(e) {
328
328
  );
329
329
  },
330
330
  d(h) {
331
- h && z(i), Ei(w, h), u = !1, f();
331
+ h && z(i), Di(w, h), u = !1, f();
332
332
  }
333
333
  };
334
334
  }
335
335
  function Ni(e) {
336
- return { c: E, m: E, p: E, d: E };
336
+ return { c: D, m: D, p: D, d: D };
337
337
  }
338
338
  function Ui(e) {
339
339
  let i, t = (
@@ -345,7 +345,7 @@ function Ui(e) {
345
345
  ), r;
346
346
  return {
347
347
  c() {
348
- i = b("p"), r = D(t), d(i, "class", "svelte-1wi0iai");
348
+ i = b("p"), r = E(t), d(i, "class", "svelte-1wi0iai");
349
349
  },
350
350
  m(o, n) {
351
351
  R(o, i, n), g(i, r);
@@ -376,7 +376,7 @@ function Gi(e) {
376
376
  ), y;
377
377
  return {
378
378
  c() {
379
- 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");
379
+ i = b("div"), t = b("span"), r = b("span"), n = E(o), l = b("span"), v = E(a), L = b("span"), y = E(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");
380
380
  },
381
381
  m(u, f) {
382
382
  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);
@@ -408,7 +408,7 @@ function Ki(e) {
408
408
  ), y;
409
409
  return {
410
410
  c() {
411
- 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");
411
+ i = b("div"), t = b("span"), r = b("span"), n = E(o), l = b("span"), v = E(a), L = b("span"), y = E(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");
412
412
  },
413
413
  m(u, f) {
414
414
  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);
@@ -472,7 +472,7 @@ function oi(e) {
472
472
  }
473
473
  };
474
474
  }
475
- function Qi(e) {
475
+ function Vi(e) {
476
476
  let i;
477
477
  function t(n, l) {
478
478
  return (
@@ -494,14 +494,14 @@ function Qi(e) {
494
494
  p(n, l) {
495
495
  r === (r = t(n)) && o ? o.p(n, l) : (o.d(1), o = r(n), o && (o.c(), o.m(i, null)));
496
496
  },
497
- i: E,
498
- o: E,
497
+ i: D,
498
+ o: D,
499
499
  d(n) {
500
500
  n && z(i), o.d(), e[23](null);
501
501
  }
502
502
  };
503
503
  }
504
- function Vi(e, i, t) {
504
+ function Qi(e, i, t) {
505
505
  let r;
506
506
  ki(e, Fi, (s) => t(9, r = s));
507
507
  let o = window.navigator.userAgent, n = !xi(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 = [], F = [], O = !0, G = !1, j = { EUR: "€", RON: "lei", TRY: "₺" };
@@ -559,8 +559,8 @@ function Vi(e, i, t) {
559
559
  const _ = c.match(/\{(\d+)decimals\}/), T = _ ? parseInt(_[1], 10) : 2, C = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
560
560
  let B = parseFloat(s.limitAmount).toFixed(T);
561
561
  const [hi, K] = f.includes(".") ? [",", "."] : [".", ","];
562
- let [Q, Li] = B.split(".");
563
- 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(
562
+ let [V, Li] = B.split(".");
563
+ return V = V.replace(/\B(?=(\d{3})+(?!\d))/g, hi), B = `${V}${K}${Li}`, c = c.replace("{currency}", j[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", B.split(K)[0]).replace(
564
564
  C,
565
565
  B.split(K)[1]
566
566
  ), c;
@@ -581,11 +581,11 @@ function Vi(e, i, t) {
581
581
  u.split(",").forEach((c) => {
582
582
  let _ = c.split(":");
583
583
  s[_[0].trim()] = _[1].trim();
584
- }), j = V(V({}, j), s);
584
+ }), j = Q(Q({}, j), s);
585
585
  }, ui = () => {
586
586
  Oi(l);
587
587
  };
588
- Di(() => () => {
588
+ Ei(() => () => {
589
589
  J.unobserve(k[k.length - 1]);
590
590
  });
591
591
  function ci(s, c) {
@@ -642,8 +642,8 @@ class Xi extends _i {
642
642
  super(), Pi(
643
643
  this,
644
644
  i,
645
- Vi,
646
645
  Qi,
646
+ Vi,
647
647
  Ai,
648
648
  {
649
649
  lang: 0,
@@ -1,11 +1,11 @@
1
- import { a as hi, $ as Li, S as fi, i as vi, s as wi, f as P, b as Ti, x as D, d as z, j as R, l as b, q as d, n as bi, o as Si, p as _i, H as J, B as x, k as g, F as E, y as Z, z as Pi, T as M, E as Ai, m as X, N as Q, M as Ci, U as $, P as ki, Q as xi, R as Ei, c as Di, O as zi } from "./PlayerAccountGamingLimitsWrapper2Nd-DsSDAwwq.js";
1
+ import { a as hi, $ as Li, S as fi, i as vi, s as wi, f as P, b as Ti, y as D, d as z, j as R, l as b, r as d, n as bi, o as Si, p as _i, I as J, C as x, k as g, G as E, z as Z, A as Pi, V as M, F as Ai, m as Y, N as Q, M as Ci, W as $, R as ki, T as xi, U as Ei, c as Di, Q as zi } from "./PlayerAccountGamingLimitsWrapper2Nd-h1iKetZF.js";
2
2
  function ii(e, i) {
3
3
  hi(e, i);
4
4
  }
5
5
  function Ri(e) {
6
6
  Li.set(e);
7
7
  }
8
- const V = {
8
+ const X = {
9
9
  en: {
10
10
  expandLimits: "Limit history",
11
11
  daily: "per day",
@@ -255,7 +255,7 @@ function Wi(e) {
255
255
  w[h] = ti(ei(e, A, h));
256
256
  return {
257
257
  c() {
258
- i = b("div"), t = b("div"), r = b("button"), n = E(o), l = X(), a = Q("svg"), v = Q("path"), L = Q("path"), p = X(), y = b("div");
258
+ i = b("div"), t = b("div"), r = b("button"), n = E(o), l = Y(), a = Q("svg"), v = Q("path"), L = Q("path"), p = Y(), y = b("div");
259
259
  for (let h = 0; h < w.length; h += 1)
260
260
  w[h].c();
261
261
  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*/
@@ -437,7 +437,7 @@ function ti(e) {
437
437
  );
438
438
  return {
439
439
  c() {
440
- i = b("div"), a.c(), t = X(), d(i, "class", r = $(
440
+ i = b("div"), a.c(), t = Y(), d(i, "class", r = $(
441
441
  /*index*/
442
442
  e[39] > +/*numberofentries*/
443
443
  e[1] ? "LimitContainer" : ""
@@ -503,8 +503,8 @@ function Mi(e, i, t) {
503
503
  console.log(u);
504
504
  });
505
505
  };
506
- Object.keys(V).forEach((s) => {
507
- ii(s, V[s]);
506
+ Object.keys(X).forEach((s) => {
507
+ ii(s, X[s]);
508
508
  });
509
509
  const ri = () => {
510
510
  let s = p === "gmcore" ? `/v2/player/${a}/transactions/limit` : `/v1/player/${a}/limits/monetary/history`, u = new URL(`${L}${s}`);
@@ -526,7 +526,7 @@ function Mi(e, i, t) {
526
526
  }
527
527
  );
528
528
  }, oi = (s) => {
529
- const u = !!V[l];
529
+ const u = !!X[l];
530
530
  return s.map((T) => {
531
531
  let C = {
532
532
  amount: "",
@@ -547,22 +547,22 @@ function Mi(e, i, t) {
547
547
  typeof s.limitAmount == "string" && s.limitAmount.includes(",") && (s.limitAmount = s.limitAmount.replaceAll(",", ""));
548
548
  const _ = u.match(/\{(\d+)decimals\}/), T = _ ? parseInt(_[1], 10) : 2, C = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
549
549
  let B = parseFloat(s.limitAmount).toFixed(T);
550
- const [ci, q] = f.includes(".") ? [",", "."] : [".", ","];
550
+ const [ci, V] = f.includes(".") ? [",", "."] : [".", ","];
551
551
  let [K, ui] = B.split(".");
552
- return K = K.replace(/\B(?=(\d{3})+(?!\d))/g, ci), B = `${K}${q}${ui}`, u = u.replace("{currency}", j[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", B.split(q)[0]).replace(
552
+ return K = K.replace(/\B(?=(\d{3})+(?!\d))/g, ci), B = `${K}${V}${ui}`, u = u.replace("{currency}", j[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", B.split(V)[0]).replace(
553
553
  C,
554
- B.split(q)[1]
554
+ B.split(V)[1]
555
555
  ), u;
556
556
  }, ni = () => {
557
557
  t(5, O = !O), t(8, G = !G);
558
558
  };
559
- let Y = new IntersectionObserver((s) => {
559
+ let q = new IntersectionObserver((s) => {
560
560
  s.forEach((u) => {
561
561
  u.isIntersecting && (N += parseInt(y, 10) || 10, F.length < I.length && t(7, F = I.slice(0, N)));
562
562
  });
563
563
  });
564
564
  const li = () => {
565
- Y.observe(k[k.length - 1]);
565
+ q.observe(k[k.length - 1]);
566
566
  }, mi = () => {
567
567
  if (!c)
568
568
  return;
@@ -575,7 +575,7 @@ function Mi(e, i, t) {
575
575
  Ri(l);
576
576
  };
577
577
  _i(() => () => {
578
- Y.unobserve(k[k.length - 1]);
578
+ q.unobserve(k[k.length - 1]);
579
579
  });
580
580
  function pi(s, u) {
581
581
  J[s ? "unshift" : "push"](() => {
@@ -1 +1 @@
1
- "use strict";var ae=Object.defineProperty;var M=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,r)=>t in i?ae(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r,O=(i,t)=>{for(var r in t||(t={}))ne.call(t,r)&&N(i,r,t[r]);if(M)for(var r of M(t))le.call(t,r)&&N(i,r,t[r]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsWrapper2Nd-CmVRYj0L.cjs");function U(i,t){e.addMessages(i,t)}function me(i){e.$locale.set(i)}const F={en:{expandLimits:"Limit history",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"Limit-Verlauf",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"Povijest ograničenja",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"Limit zgodovina",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"Historia limitu",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"Limiter l'historique",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"Istoric limite",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"Historial de límites",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"Histórico de limite",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"Historial de límites",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"}};function de(i){e.append_styles(i,"svelte-1wi0iai",':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-1wi0iai.svelte-1wi0iai,.svelte-1wi0iai.svelte-1wi0iai::before,.svelte-1wi0iai.svelte-1wi0iai::after{color:var(--emw--color-typography-contrast, #444444);margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-1wi0iai.svelte-1wi0iai{color:var(--emw--color-white, #FFFFFF)}button.svelte-1wi0iai.svelte-1wi0iai{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-1wi0iai.svelte-1wi0iai{display:flex;align-items:center;margin-right:-14px;background:transparent;border:none;color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-large, 20px);text-transform:capitalize;font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.Mobile.svelte-1wi0iai.svelte-1wi0iai{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.svelte-1wi0iai svg.svelte-1wi0iai{width:40px;height:auto;margin-left:-4px}.extended.svelte-1wi0iai.svelte-1wi0iai{transform:rotate(180deg)}.HistoryWrapper.svelte-1wi0iai.svelte-1wi0iai{display:flex;flex-direction:column;width:320px;padding:0 12px;margin:12px auto}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea.svelte-1wi0iai{width:inherit;background-color:var(--emw--color-typpgraphy, #FFFFFF);border-radius:var(--emw--border-radius-large, 10px);box-shadow:0px 3px 19px 0px rgba(0, 0, 0, 0.3);padding:30px 20px}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea .LimitType.svelte-1wi0iai{font-size:var(--emw--font-size-medium, 16px);color:color-mix(in srgb, var(--emw--color-secondary, #E1A749) 80%, black 10%)}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea.Mobile.svelte-1wi0iai{width:auto;font-size:var(--emw--font-size-x-small, 12px);padding:15px}.hidden.svelte-1wi0iai.svelte-1wi0iai{display:none}.HistoryRow.svelte-1wi0iai.svelte-1wi0iai{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-1wi0iai.svelte-1wi0iai{display:flex;flex-direction:column;gap:4px;color:var(--emw--color-grey-150, #C0CBC3)}.LimitAmountPeriod.svelte-1wi0iai.svelte-1wi0iai{color:var(--emw--color-grey-150, #C0CBC3)}.LimitContainer.svelte-1wi0iai.svelte-1wi0iai{animation:svelte-1wi0iai-animateEntry 0.7s ease-in}@keyframes svelte-1wi0iai-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function G(i,t,r){const o=i.slice();return o[37]=t[r],o[38]=t,o[39]=r,o}function pe(i){let t,r,o,a=i[9]("expandLimits")+"",l,m,n,L,h,p,y,u,f,_=e.ensure_array_like(i[7]),v=[];for(let g=0;g<_.length;g+=1)v[g]=q(G(i,_,g));return{c(){t=e.element("div"),r=e.element("div"),o=e.element("button"),l=e.text(a),m=e.space(),n=e.svg_element("svg"),L=e.svg_element("path"),h=e.svg_element("path"),p=e.space(),y=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(L,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(L,"class","svelte-1wi0iai"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-1wi0iai"),e.attr(n,"class","ExpandArrow "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","36"),e.attr(n,"height","36"),e.attr(n,"viewBox","0 0 36 36"),e.set_style(n,"fill","var(--emw--color-primary, #22B04E)"),e.toggle_class(n,"extended",i[8]),e.attr(o,"class","ExpandButton "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.attr(y,"class","HistoryDisplayArea "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.toggle_class(y,"hidden",i[5]),e.attr(r,"class","HistoryWrapper svelte-1wi0iai"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-1wi0iai")},m(g,T){e.insert(g,t,T),e.append(t,r),e.append(r,o),e.append(o,l),e.append(o,m),e.append(o,n),e.append(n,L),e.append(n,h),e.append(r,p),e.append(r,y);for(let d=0;d<v.length;d+=1)v[d]&&v[d].m(y,null);u||(f=e.listen(o,"click",i[11]),u=!0)},p(g,T){if(T[0]&512&&a!==(a=g[9]("expandLimits")+"")&&e.set_data(l,a),T[0]&256&&e.toggle_class(n,"extended",g[8]),T[0]&650){_=e.ensure_array_like(g[7]);let d;for(d=0;d<_.length;d+=1){const A=G(g,_,d);v[d]?v[d].p(A,T):(v[d]=q(A),v[d].c(),v[d].m(y,null))}for(;d<v.length;d+=1)v[d].d(1);v.length=_.length}T[0]&32&&e.toggle_class(y,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,f()}}}function ye(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function ue(i){let t,r=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(r),e.attr(t,"class","svelte-1wi0iai")},m(a,l){e.insert(a,t,l),e.append(t,o)},p(a,l){l[0]&513&&r!==(r=(a[0]?a[9]("error"):"500 Server Error")+"")&&e.set_data(o,r)},d(a){a&&e.detach(t)}}}function ce(i){let t,r,o,a=i[37].type+"",l,m,n=i[37].amount+"",L,h,p=i[37].date+"",y;return{c(){t=e.element("div"),r=e.element("span"),o=e.element("span"),l=e.text(a),m=e.element("span"),L=e.text(n),h=e.element("span"),y=e.text(p),e.attr(o,"class","LimitType svelte-1wi0iai"),e.attr(m,"class","LimitAmountPeriod svelte-1wi0iai"),e.attr(r,"class","GeneralLimitInformation svelte-1wi0iai"),e.attr(h,"class","DateLimitInformation svelte-1wi0iai"),e.attr(t,"class","HistoryRow svelte-1wi0iai")},m(u,f){e.insert(u,t,f),e.append(t,r),e.append(r,o),e.append(o,l),e.append(r,m),e.append(m,L),e.append(t,h),e.append(h,y)},p(u,f){f[0]&128&&a!==(a=u[37].type+"")&&e.set_data(l,a),f[0]&128&&n!==(n=u[37].amount+"")&&e.set_data(L,n),f[0]&128&&p!==(p=u[37].date+"")&&e.set_data(y,p)},d(u){u&&e.detach(t)}}}function ge(i){let t,r,o,a=i[37].type+"",l,m,n=i[9]("limitRemoved")+"",L,h,p=i[37].date+"",y;return{c(){t=e.element("div"),r=e.element("span"),o=e.element("span"),l=e.text(a),m=e.element("span"),L=e.text(n),h=e.element("span"),y=e.text(p),e.attr(o,"class","LimitType svelte-1wi0iai"),e.attr(m,"class","LimitAmountPeriod svelte-1wi0iai"),e.attr(r,"class","GeneralLimitInformation svelte-1wi0iai"),e.attr(h,"class","DateLimitInformation svelte-1wi0iai"),e.attr(t,"class","HistoryRow svelte-1wi0iai")},m(u,f){e.insert(u,t,f),e.append(t,r),e.append(r,o),e.append(o,l),e.append(r,m),e.append(m,L),e.append(t,h),e.append(h,y)},p(u,f){f[0]&128&&a!==(a=u[37].type+"")&&e.set_data(l,a),f[0]&512&&n!==(n=u[9]("limitRemoved")+"")&&e.set_data(L,n),f[0]&128&&p!==(p=u[37].date+"")&&e.set_data(y,p)},d(u){u&&e.detach(t)}}}function q(i){let t,r,o,a=i[39];function l(p,y){return p[37].removed?ge:ce}let m=l(i),n=m(i);const L=()=>i[22](t,a),h=()=>i[22](null,a);return{c(){t=e.element("div"),n.c(),r=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-1wi0iai")},m(p,y){e.insert(p,t,y),n.m(t,null),e.append(t,r),L()},p(p,y){i=p,m===(m=l(i))&&n?n.p(i,y):(n.d(1),n=m(i),n&&(n.c(),n.m(t,r))),y[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-1wi0iai")&&e.attr(t,"class",o),a!==i[39]&&(h(),a=i[39],L())},d(p){p&&e.detach(t),n.d(),h()}}}function he(i){let t;function r(l,m){return l[6]?ue:l[4]?ye:pe}let o=r(i),a=o(i);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","svelte-1wi0iai")},m(l,m){e.insert(l,t,m),a.m(t,null),i[23](t)},p(l,m){o===(o=r(l))&&a?a.p(l,m):(a.d(1),a=o(l),a&&(a.c(),a.m(t,null)))},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a.d(),i[23](null)}}}function fe(i,t,r){let o;e.component_subscribe(i,e.$format,s=>r(9,o=s));let a=window.navigator.userAgent,l=!e.isMobile(a),{lang:m=""}=t,{userid:n=""}=t,{session:L=""}=t,{endpoint:h=""}=t,{apiversion:p=""}=t,{numberofentries:y="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:f=""}=t,{clientstyling:_=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:T=""}=t,d,A,P=new Array,j=parseInt(y,10),R=!1,k=!0,C=[],E=[],D=!0,W=!1,x={EUR:"€",RON:"lei",TRY:"₺"};const V=()=>{fetch(T).then(c=>c.json()).then(c=>{Object.keys(c).forEach(b=>{U(b,c[b])})}).catch(c=>{console.log(c)})};Object.keys(F).forEach(s=>{U(s,F[s])});const X=()=>{let s=p==="gmcore"?`/v2/player/${n}/transactions/limit`:`/v1/player/${n}/limits/monetary/history`,c=new URL(`${h}${s}`);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let b={method:"GET",headers:{"X-SessionID":L}};fetch(c.href,b).then(w=>{if(w.status>=300)throw r(4,k=!1),r(6,R=!0),new Error("There was an error fetching the limits");return w.json()}).then(w=>{w.length&&(C=Y(w),r(7,E=C.slice(0,j))),r(4,k=!1)},w=>{console.error("There was an error",w),r(6,R=!0)})},Y=s=>{const c=!!F[m];return s.map(w=>{let S={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return S.amount=Q(w),S.currency=c?x[w.limitCurrencyCode]:w.limitCurrencyCode,S.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(w.limitDate)),S.period=o(`${w.limitPeriod.toLowerCase()}`),S.type=p==="gmcore"?o(`historyLimitType${w.limitType.split(" ")[0]}`):o(`historyLimitType${w.limitType.split(" ")[0]}`)+" "+o(`historyProductType${w.limitProductType}`),S.removed=w.limitAmount===-1,S})},Q=s=>{let c=f||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.limitAmount);if(!f){let oe=x[s.limitCurrencyCode]||s.limitCurrencyCode;return`${c}${oe}`}typeof s.limitAmount=="string"&&s.limitAmount.includes(",")&&(s.limitAmount=s.limitAmount.replaceAll(",",""));const b=c.match(/\{(\d+)decimals\}/),w=b?parseInt(b[1],10):2,S=b?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let z=parseFloat(s.limitAmount).toFixed(w);const[re,H]=f.includes(".")?[",","."]:[".",","];let[I,se]=z.split(".");return I=I.replace(/\B(?=(\d{3})+(?!\d))/g,re),z=`${I}${H}${se}`,c=c.replace("{currency}",x[s.limitCurrencyCode]||s.limitCurrencyCode).replace("{amount}",z.split(H)[0]).replace(S,z.split(H)[1]),c},J=()=>{r(5,D=!D),r(8,W=!W)};let B=new IntersectionObserver(s=>{s.forEach(c=>{c.isIntersecting&&(j+=parseInt(y,10)||10,E.length<C.length&&r(7,E=C.slice(0,j)))})});const Z=()=>{B.observe(P[P.length-1])},$=()=>{if(!u)return;let s={};u.split(",").forEach(c=>{let b=c.split(":");s[b[0].trim()]=b[1].trim()}),x=O(O({},x),s)},ee=()=>{me(m)};e.onMount(()=>()=>{B.unobserve(P[P.length-1])});function te(s,c){e.binding_callbacks[s?"unshift":"push"](()=>{P[c]=s,r(3,P)})}function ie(s){e.binding_callbacks[s?"unshift":"push"](()=>{d=s,r(2,d)})}return i.$$set=s=>{"lang"in s&&r(0,m=s.lang),"userid"in s&&r(12,n=s.userid),"session"in s&&r(13,L=s.session),"endpoint"in s&&r(14,h=s.endpoint),"apiversion"in s&&r(15,p=s.apiversion),"numberofentries"in s&&r(1,y=s.numberofentries),"customcurrencysymbols"in s&&r(16,u=s.customcurrencysymbols),"limitformat"in s&&r(17,f=s.limitformat),"clientstyling"in s&&r(18,_=s.clientstyling),"clientstylingurl"in s&&r(19,v=s.clientstylingurl),"mbsource"in s&&r(20,g=s.mbsource),"translationurl"in s&&r(21,T=s.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&$(),i.$$.dirty[0]&61440&&h&&n&&L&&p&&X(),i.$$.dirty[0]&56&&P[0]&&!k&&!D&&Z(),i.$$.dirty[0]&1&&m&&ee(),i.$$.dirty[0]&262148&&_&&d&&e.setClientStyling(d,_),i.$$.dirty[0]&524292&&v&&d&&e.setClientStylingURL(d,v),i.$$.dirty[0]&1048580&&g&&d&&e.setStreamStyling(d,`${g}.Style`,A),i.$$.dirty[0]&2097156&&T&&d&&V()},[m,y,d,P,k,D,R,E,W,o,l,J,n,L,h,p,u,f,_,v,g,T,te,ie]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,he,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},de,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(K,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=K;
1
+ "use strict";var ae=Object.defineProperty;var M=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,r)=>t in i?ae(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r,O=(i,t)=>{for(var r in t||(t={}))ne.call(t,r)&&N(i,r,t[r]);if(M)for(var r of M(t))le.call(t,r)&&N(i,r,t[r]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountGamingLimitsWrapper2Nd-CE0kiXT5.cjs");function U(i,t){e.addMessages(i,t)}function me(i){e.$locale.set(i)}const F={en:{expandLimits:"Limit history",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"Limit-Verlauf",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"Povijest ograničenja",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"Limit zgodovina",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"Historia limitu",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"Limiter l'historique",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"Istoric limite",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"Historial de límites",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"Histórico de limite",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"Historial de límites",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"}};function de(i){e.append_styles(i,"svelte-1wi0iai",':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-1wi0iai.svelte-1wi0iai,.svelte-1wi0iai.svelte-1wi0iai::before,.svelte-1wi0iai.svelte-1wi0iai::after{color:var(--emw--color-typography-contrast, #444444);margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-1wi0iai.svelte-1wi0iai{color:var(--emw--color-white, #FFFFFF)}button.svelte-1wi0iai.svelte-1wi0iai{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-1wi0iai.svelte-1wi0iai{display:flex;align-items:center;margin-right:-14px;background:transparent;border:none;color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-large, 20px);text-transform:capitalize;font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.Mobile.svelte-1wi0iai.svelte-1wi0iai{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ExpandButton.svelte-1wi0iai svg.svelte-1wi0iai{width:40px;height:auto;margin-left:-4px}.extended.svelte-1wi0iai.svelte-1wi0iai{transform:rotate(180deg)}.HistoryWrapper.svelte-1wi0iai.svelte-1wi0iai{display:flex;flex-direction:column;width:320px;padding:0 12px;margin:12px auto}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea.svelte-1wi0iai{width:inherit;background-color:var(--emw--color-typpgraphy, #FFFFFF);border-radius:var(--emw--border-radius-large, 10px);box-shadow:0px 3px 19px 0px rgba(0, 0, 0, 0.3);padding:30px 20px}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea .LimitType.svelte-1wi0iai{font-size:var(--emw--font-size-medium, 16px);color:color-mix(in srgb, var(--emw--color-secondary, #E1A749) 80%, black 10%)}.HistoryWrapper.svelte-1wi0iai .HistoryDisplayArea.Mobile.svelte-1wi0iai{width:auto;font-size:var(--emw--font-size-x-small, 12px);padding:15px}.hidden.svelte-1wi0iai.svelte-1wi0iai{display:none}.HistoryRow.svelte-1wi0iai.svelte-1wi0iai{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-1wi0iai.svelte-1wi0iai{display:flex;flex-direction:column;gap:4px;color:var(--emw--color-grey-150, #C0CBC3)}.LimitAmountPeriod.svelte-1wi0iai.svelte-1wi0iai{color:var(--emw--color-grey-150, #C0CBC3)}.LimitContainer.svelte-1wi0iai.svelte-1wi0iai{animation:svelte-1wi0iai-animateEntry 0.7s ease-in}@keyframes svelte-1wi0iai-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function G(i,t,r){const o=i.slice();return o[37]=t[r],o[38]=t,o[39]=r,o}function pe(i){let t,r,o,a=i[9]("expandLimits")+"",l,m,n,L,h,p,y,u,f,_=e.ensure_array_like(i[7]),v=[];for(let g=0;g<_.length;g+=1)v[g]=q(G(i,_,g));return{c(){t=e.element("div"),r=e.element("div"),o=e.element("button"),l=e.text(a),m=e.space(),n=e.svg_element("svg"),L=e.svg_element("path"),h=e.svg_element("path"),p=e.space(),y=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(L,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(L,"class","svelte-1wi0iai"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-1wi0iai"),e.attr(n,"class","ExpandArrow "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","36"),e.attr(n,"height","36"),e.attr(n,"viewBox","0 0 36 36"),e.set_style(n,"fill","var(--emw--color-primary, #22B04E)"),e.toggle_class(n,"extended",i[8]),e.attr(o,"class","ExpandButton "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.attr(y,"class","HistoryDisplayArea "+(i[10]?"":"Mobile")+" svelte-1wi0iai"),e.toggle_class(y,"hidden",i[5]),e.attr(r,"class","HistoryWrapper svelte-1wi0iai"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-1wi0iai")},m(g,T){e.insert(g,t,T),e.append(t,r),e.append(r,o),e.append(o,l),e.append(o,m),e.append(o,n),e.append(n,L),e.append(n,h),e.append(r,p),e.append(r,y);for(let d=0;d<v.length;d+=1)v[d]&&v[d].m(y,null);u||(f=e.listen(o,"click",i[11]),u=!0)},p(g,T){if(T[0]&512&&a!==(a=g[9]("expandLimits")+"")&&e.set_data(l,a),T[0]&256&&e.toggle_class(n,"extended",g[8]),T[0]&650){_=e.ensure_array_like(g[7]);let d;for(d=0;d<_.length;d+=1){const A=G(g,_,d);v[d]?v[d].p(A,T):(v[d]=q(A),v[d].c(),v[d].m(y,null))}for(;d<v.length;d+=1)v[d].d(1);v.length=_.length}T[0]&32&&e.toggle_class(y,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,f()}}}function ye(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function ue(i){let t,r=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(r),e.attr(t,"class","svelte-1wi0iai")},m(a,l){e.insert(a,t,l),e.append(t,o)},p(a,l){l[0]&513&&r!==(r=(a[0]?a[9]("error"):"500 Server Error")+"")&&e.set_data(o,r)},d(a){a&&e.detach(t)}}}function ce(i){let t,r,o,a=i[37].type+"",l,m,n=i[37].amount+"",L,h,p=i[37].date+"",y;return{c(){t=e.element("div"),r=e.element("span"),o=e.element("span"),l=e.text(a),m=e.element("span"),L=e.text(n),h=e.element("span"),y=e.text(p),e.attr(o,"class","LimitType svelte-1wi0iai"),e.attr(m,"class","LimitAmountPeriod svelte-1wi0iai"),e.attr(r,"class","GeneralLimitInformation svelte-1wi0iai"),e.attr(h,"class","DateLimitInformation svelte-1wi0iai"),e.attr(t,"class","HistoryRow svelte-1wi0iai")},m(u,f){e.insert(u,t,f),e.append(t,r),e.append(r,o),e.append(o,l),e.append(r,m),e.append(m,L),e.append(t,h),e.append(h,y)},p(u,f){f[0]&128&&a!==(a=u[37].type+"")&&e.set_data(l,a),f[0]&128&&n!==(n=u[37].amount+"")&&e.set_data(L,n),f[0]&128&&p!==(p=u[37].date+"")&&e.set_data(y,p)},d(u){u&&e.detach(t)}}}function ge(i){let t,r,o,a=i[37].type+"",l,m,n=i[9]("limitRemoved")+"",L,h,p=i[37].date+"",y;return{c(){t=e.element("div"),r=e.element("span"),o=e.element("span"),l=e.text(a),m=e.element("span"),L=e.text(n),h=e.element("span"),y=e.text(p),e.attr(o,"class","LimitType svelte-1wi0iai"),e.attr(m,"class","LimitAmountPeriod svelte-1wi0iai"),e.attr(r,"class","GeneralLimitInformation svelte-1wi0iai"),e.attr(h,"class","DateLimitInformation svelte-1wi0iai"),e.attr(t,"class","HistoryRow svelte-1wi0iai")},m(u,f){e.insert(u,t,f),e.append(t,r),e.append(r,o),e.append(o,l),e.append(r,m),e.append(m,L),e.append(t,h),e.append(h,y)},p(u,f){f[0]&128&&a!==(a=u[37].type+"")&&e.set_data(l,a),f[0]&512&&n!==(n=u[9]("limitRemoved")+"")&&e.set_data(L,n),f[0]&128&&p!==(p=u[37].date+"")&&e.set_data(y,p)},d(u){u&&e.detach(t)}}}function q(i){let t,r,o,a=i[39];function l(p,y){return p[37].removed?ge:ce}let m=l(i),n=m(i);const L=()=>i[22](t,a),h=()=>i[22](null,a);return{c(){t=e.element("div"),n.c(),r=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-1wi0iai")},m(p,y){e.insert(p,t,y),n.m(t,null),e.append(t,r),L()},p(p,y){i=p,m===(m=l(i))&&n?n.p(i,y):(n.d(1),n=m(i),n&&(n.c(),n.m(t,r))),y[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-1wi0iai")&&e.attr(t,"class",o),a!==i[39]&&(h(),a=i[39],L())},d(p){p&&e.detach(t),n.d(),h()}}}function he(i){let t;function r(l,m){return l[6]?ue:l[4]?ye:pe}let o=r(i),a=o(i);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","svelte-1wi0iai")},m(l,m){e.insert(l,t,m),a.m(t,null),i[23](t)},p(l,m){o===(o=r(l))&&a?a.p(l,m):(a.d(1),a=o(l),a&&(a.c(),a.m(t,null)))},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a.d(),i[23](null)}}}function fe(i,t,r){let o;e.component_subscribe(i,e.$format,s=>r(9,o=s));let a=window.navigator.userAgent,l=!e.isMobile(a),{lang:m=""}=t,{userid:n=""}=t,{session:L=""}=t,{endpoint:h=""}=t,{apiversion:p=""}=t,{numberofentries:y="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:f=""}=t,{clientstyling:_=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:T=""}=t,d,A,P=new Array,j=parseInt(y,10),R=!1,k=!0,C=[],E=[],D=!0,W=!1,x={EUR:"€",RON:"lei",TRY:"₺"};const V=()=>{fetch(T).then(c=>c.json()).then(c=>{Object.keys(c).forEach(b=>{U(b,c[b])})}).catch(c=>{console.log(c)})};Object.keys(F).forEach(s=>{U(s,F[s])});const X=()=>{let s=p==="gmcore"?`/v2/player/${n}/transactions/limit`:`/v1/player/${n}/limits/monetary/history`,c=new URL(`${h}${s}`);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let b={method:"GET",headers:{"X-SessionID":L}};fetch(c.href,b).then(w=>{if(w.status>=300)throw r(4,k=!1),r(6,R=!0),new Error("There was an error fetching the limits");return w.json()}).then(w=>{w.length&&(C=Y(w),r(7,E=C.slice(0,j))),r(4,k=!1)},w=>{console.error("There was an error",w),r(6,R=!0)})},Y=s=>{const c=!!F[m];return s.map(w=>{let S={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return S.amount=Q(w),S.currency=c?x[w.limitCurrencyCode]:w.limitCurrencyCode,S.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(w.limitDate)),S.period=o(`${w.limitPeriod.toLowerCase()}`),S.type=p==="gmcore"?o(`historyLimitType${w.limitType.split(" ")[0]}`):o(`historyLimitType${w.limitType.split(" ")[0]}`)+" "+o(`historyProductType${w.limitProductType}`),S.removed=w.limitAmount===-1,S})},Q=s=>{let c=f||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.limitAmount);if(!f){let oe=x[s.limitCurrencyCode]||s.limitCurrencyCode;return`${c}${oe}`}typeof s.limitAmount=="string"&&s.limitAmount.includes(",")&&(s.limitAmount=s.limitAmount.replaceAll(",",""));const b=c.match(/\{(\d+)decimals\}/),w=b?parseInt(b[1],10):2,S=b?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let z=parseFloat(s.limitAmount).toFixed(w);const[re,H]=f.includes(".")?[",","."]:[".",","];let[I,se]=z.split(".");return I=I.replace(/\B(?=(\d{3})+(?!\d))/g,re),z=`${I}${H}${se}`,c=c.replace("{currency}",x[s.limitCurrencyCode]||s.limitCurrencyCode).replace("{amount}",z.split(H)[0]).replace(S,z.split(H)[1]),c},J=()=>{r(5,D=!D),r(8,W=!W)};let B=new IntersectionObserver(s=>{s.forEach(c=>{c.isIntersecting&&(j+=parseInt(y,10)||10,E.length<C.length&&r(7,E=C.slice(0,j)))})});const Z=()=>{B.observe(P[P.length-1])},$=()=>{if(!u)return;let s={};u.split(",").forEach(c=>{let b=c.split(":");s[b[0].trim()]=b[1].trim()}),x=O(O({},x),s)},ee=()=>{me(m)};e.onMount(()=>()=>{B.unobserve(P[P.length-1])});function te(s,c){e.binding_callbacks[s?"unshift":"push"](()=>{P[c]=s,r(3,P)})}function ie(s){e.binding_callbacks[s?"unshift":"push"](()=>{d=s,r(2,d)})}return i.$$set=s=>{"lang"in s&&r(0,m=s.lang),"userid"in s&&r(12,n=s.userid),"session"in s&&r(13,L=s.session),"endpoint"in s&&r(14,h=s.endpoint),"apiversion"in s&&r(15,p=s.apiversion),"numberofentries"in s&&r(1,y=s.numberofentries),"customcurrencysymbols"in s&&r(16,u=s.customcurrencysymbols),"limitformat"in s&&r(17,f=s.limitformat),"clientstyling"in s&&r(18,_=s.clientstyling),"clientstylingurl"in s&&r(19,v=s.clientstylingurl),"mbsource"in s&&r(20,g=s.mbsource),"translationurl"in s&&r(21,T=s.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&$(),i.$$.dirty[0]&61440&&h&&n&&L&&p&&X(),i.$$.dirty[0]&56&&P[0]&&!k&&!D&&Z(),i.$$.dirty[0]&1&&m&&ee(),i.$$.dirty[0]&262148&&_&&d&&e.setClientStyling(d,_),i.$$.dirty[0]&524292&&v&&d&&e.setClientStylingURL(d,v),i.$$.dirty[0]&1048580&&g&&d&&e.setStreamStyling(d,`${g}.Style`,A),i.$$.dirty[0]&2097156&&T&&d&&V()},[m,y,d,P,k,D,R,E,W,o,l,J,n,L,h,p,u,f,_,v,g,T,te,ie]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,he,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},de,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(K,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=K;