@everymatrix/player-account-controller 1.64.2 → 1.64.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3412,13 +3412,13 @@ const $r = V((i) => {
3412
3412
  d == "{" && (y = c.indexOf("::")) > 0 && (u = c.substring(y + 2), c = c.substring(0, y), _ = !0);
3413
3413
  let A = Xi(c), F = [];
3414
3414
  if (A) {
3415
- let { args: k, methodName: z } = A;
3415
+ let { args: k, methodName: D } = A;
3416
3416
  for (let $ = 0; $ < k.length; $++) {
3417
3417
  let U = k[$];
3418
3418
  U.literal || F.push(U);
3419
3419
  }
3420
3420
  let M = s.dynamicFns;
3421
- (M && M[z] || A.static) && (F.push(z), A.dynamicFn = !0);
3421
+ (M && M[D] || A.static) && (F.push(D), A.dynamicFn = !0);
3422
3422
  } else
3423
3423
  F.push(c);
3424
3424
  a.push({ source: c, mode: d, negate: h, customEvent: _, signature: A, dependencies: F, event: u }), n = Ko.lastIndex;
@@ -3555,13 +3555,13 @@ const Od = "3.5.2", Qo = window.ShadyCSS && window.ShadyCSS.cssBuild, Md = V((i)
3555
3555
  if (!Qo) {
3556
3556
  const _ = d.content.querySelectorAll("style"), u = Gs(d), y = Tl(h), A = d.content.firstElementChild;
3557
3557
  for (let k = 0; k < y.length; k++) {
3558
- let z = y[k];
3559
- z.textContent = l._processStyleText(z.textContent, c), d.content.insertBefore(z, A);
3558
+ let D = y[k];
3559
+ D.textContent = l._processStyleText(D.textContent, c), d.content.insertBefore(D, A);
3560
3560
  }
3561
3561
  let F = 0;
3562
3562
  for (let k = 0; k < u.length; k++) {
3563
- let z = u[k], M = _[F];
3564
- M !== z ? (z = z.cloneNode(!0), M.parentNode.insertBefore(z, M)) : F++, z.textContent = l._processStyleText(z.textContent, c);
3563
+ let D = u[k], M = _[F];
3564
+ M !== D ? (D = D.cloneNode(!0), M.parentNode.insertBefore(D, M)) : F++, D.textContent = l._processStyleText(D.textContent, c);
3565
3565
  }
3566
3566
  }
3567
3567
  if (window.ShadyCSS && window.ShadyCSS.prepareTemplate(d, h), wl && Qo && fl) {
@@ -8036,7 +8036,7 @@ function rc(i, e) {
8036
8036
  return;
8037
8037
  const _ = Math.floor(d), u = Math.floor(r.clientWidth - (l + h)), y = Math.floor(r.clientHeight - (d + c)), A = Math.floor(l), F = { rootMargin: `${-_}px ${-u}px ${-y}px ${-A}px`, threshold: Math.max(0, Math.min(1, n)) || 1 };
8038
8038
  let k = !0;
8039
- function z(M) {
8039
+ function D(M) {
8040
8040
  let $ = M[0].intersectionRatio;
8041
8041
  if ($ !== n) {
8042
8042
  if (!k)
@@ -8045,7 +8045,7 @@ function rc(i, e) {
8045
8045
  }
8046
8046
  k = !1;
8047
8047
  }
8048
- t = new IntersectionObserver(z, F), t.observe(i);
8048
+ t = new IntersectionObserver(D, F), t.observe(i);
8049
8049
  }
8050
8050
  return s(!0), o;
8051
8051
  }
@@ -12607,7 +12607,7 @@ function Du(i) {
12607
12607
  let e, t, r, o, s, a, n, l, d, h, c, _, u, y = (
12608
12608
  /*$_*/
12609
12609
  i[17]("headerTitle") + ""
12610
- ), A, F, k, z, M = (
12610
+ ), A, F, k, D, M = (
12611
12611
  /*$_*/
12612
12612
  i[17]("headerTitle") + ""
12613
12613
  ), $, U, ne, R, w, Z, N, ze, Ae = (
@@ -12616,10 +12616,10 @@ function Du(i) {
12616
12616
  ), Ye, be, G, ce, le, Ge, ue = (
12617
12617
  /*$_*/
12618
12618
  i[17]("dateTo") + ""
12619
- ), Ot, Mt, te, T, Oe, Ke = (
12619
+ ), Ot, Mt, te, I, Oe, Ke = (
12620
12620
  /*$_*/
12621
12621
  i[17]("dateFilter") + ""
12622
- ), Xe, Je, _i, Qe, ie, Me, Ft, Ze, Nt, Ee, pe, Fe, et, Lt, ut, Bt, Ne, Vt, Rt, pt, mi, Le, tt, Ht, _t, fi, mt, xe, Be, m, E, I, D, Ve, we, _e, it, Wt, gi, Ce = q(
12622
+ ), Xe, Je, _i, Qe, ie, Me, Ft, Ze, Nt, Ee, pe, Fe, et, Lt, ut, Bt, Ne, Vt, Rt, pt, mi, Le, tt, Ht, _t, fi, mt, xe, Be, m, E, T, z, Ve, we, _e, it, Wt, gi, Ce = q(
12623
12623
  /*transactionTypes*/
12624
12624
  i[13]
12625
12625
  ), H = [];
@@ -12648,10 +12648,10 @@ function Du(i) {
12648
12648
  ee[v] = Ts(fs(i, ft, v));
12649
12649
  return {
12650
12650
  c() {
12651
- e = g("div"), t = g("div"), r = g("div"), o = g("button"), s = re("svg"), a = re("defs"), n = re("style"), l = se(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), d = re("g"), h = re("g"), c = re("path"), _ = S(), u = g("h2"), A = se(y), F = S(), k = g("div"), z = g("p"), $ = se(M), U = S(), ne = g("div");
12651
+ e = g("div"), t = g("div"), r = g("div"), o = g("button"), s = re("svg"), a = re("defs"), n = re("style"), l = se(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), d = re("g"), h = re("g"), c = re("path"), _ = S(), u = g("h2"), A = se(y), F = S(), k = g("div"), D = g("p"), $ = se(M), U = S(), ne = g("div");
12652
12652
  for (let v = 0; v < H.length; v += 1)
12653
12653
  H[v].c();
12654
- R = S(), w = g("div"), Z = g("div"), N = g("div"), ze = g("label"), Ye = se(Ae), be = S(), G = g("vaadin-date-picker"), ce = S(), le = g("div"), Ge = g("label"), Ot = se(ue), Mt = S(), te = g("vaadin-date-picker"), T = S(), Oe = g("button"), Xe = se(Ke), _i = S(), Qe = g("table"), ie = g("div"), Me = g("thead");
12654
+ R = S(), w = g("div"), Z = g("div"), N = g("div"), ze = g("label"), Ye = se(Ae), be = S(), G = g("vaadin-date-picker"), ce = S(), le = g("div"), Ge = g("label"), Ot = se(ue), Mt = S(), te = g("vaadin-date-picker"), I = S(), Oe = g("button"), Xe = se(Ke), _i = S(), Qe = g("table"), ie = g("div"), Me = g("thead");
12655
12655
  for (let v = 0; v < W.length; v += 1)
12656
12656
  W[v].c();
12657
12657
  Ft = S(), Ze = g("tbody"), ke.c(), Nt = S(), Ee = g("div"), pe = g("div"), Fe = g("button"), et = re("svg"), Lt = re("path"), Bt = S(), Ne = g("div"), Vt = g("p"), Rt = se(
@@ -12660,7 +12660,7 @@ function Du(i) {
12660
12660
  ), mi = S(), Le = g("button"), tt = re("svg"), Ht = re("path"), fi = S(), mt = g("div"), xe = g("button"), Be = g("div"), m = g("p"), E = se(
12661
12661
  /*pageSize*/
12662
12662
  i[8]
12663
- ), I = S(), D = re("svg"), Ve = re("path"), we = S(), _e = g("div");
12663
+ ), T = S(), z = re("svg"), Ve = re("path"), we = S(), _e = g("div");
12664
12664
  for (let v = 0; v < ee.length; v += 1)
12665
12665
  ee[v].c();
12666
12666
  f(c, "class", "aaa"), f(c, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), f(c, "transform", "translate(15 15) rotate(180)"), f(h, "transform", "translate(20 158)"), f(d, "transform", "translate(-20 -158)"), f(s, "xmlns", "http://www.w3.org/2000/svg"), f(s, "width", "15"), f(s, "height", "15"), f(s, "viewBox", "0 0 15 15"), f(u, "class", "historyReturnText"), f(o, "class", "historyReturnButton"), f(k, "class", "headerText"), f(ne, "class", "headerController"), f(r, "class", "historyHeader"), f(ze, "for", "historyCalendarStartDate"), fe(
@@ -12688,18 +12688,18 @@ function Du(i) {
12688
12688
  i[16].previousPage ? "" : "disable")), f(Ne, "class", pt = "indexDisplay " + (!/*buttonStatus*/
12689
12689
  i[16].previousPage && !/*buttonStatus*/
12690
12690
  i[16].nextPage ? "disable" : "")), f(Ht, "d", "M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"), f(tt, "viewBox", "6 4 17 17"), f(tt, "xmlns", "http://www.w3.org/2000/svg"), f(Le, "class", _t = "arrowRight " + (/*buttonStatus*/
12691
- i[16].nextPage ? "" : "disable")), f(pe, "class", "historyPageIndex"), f(Ve, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), f(D, "xmlns", "http://www.w3.org/2000/svg"), f(D, "viewBox", "6 5 20 20"), f(D, "class", "icon"), f(Be, "class", "currentPageSize"), f(_e, "class", "pageSizeDropDown"), f(xe, "class", it = "pageSizeSelector " + /*isPaginationToggled*/
12691
+ i[16].nextPage ? "" : "disable")), f(pe, "class", "historyPageIndex"), f(Ve, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), f(z, "xmlns", "http://www.w3.org/2000/svg"), f(z, "viewBox", "6 5 20 20"), f(z, "class", "icon"), f(Be, "class", "currentPageSize"), f(_e, "class", "pageSizeDropDown"), f(xe, "class", it = "pageSizeSelector " + /*isPaginationToggled*/
12692
12692
  (i[11] ? "active" : "") + " " + (/*buttonStatus*/
12693
12693
  i[16].pageSize ? "" : "disable")), f(mt, "class", "historyPageSize"), f(Ee, "class", "historyPaginationContainer"), f(t, "class", "historyWrapper"), f(e, "class", "historyContainer");
12694
12694
  },
12695
12695
  m(v, O) {
12696
- B(v, e, O), p(e, t), p(t, r), p(r, o), p(o, s), p(s, a), p(a, n), p(n, l), p(s, d), p(d, h), p(h, c), p(o, _), p(o, u), p(u, A), p(r, F), p(r, k), p(k, z), p(z, $), p(r, U), p(r, ne);
12696
+ B(v, e, O), p(e, t), p(t, r), p(r, o), p(o, s), p(s, a), p(a, n), p(n, l), p(s, d), p(d, h), p(h, c), p(o, _), p(o, u), p(u, A), p(r, F), p(r, k), p(k, D), p(D, $), p(r, U), p(r, ne);
12697
12697
  for (let b = 0; b < H.length; b += 1)
12698
12698
  H[b] && H[b].m(ne, null);
12699
- p(t, R), p(t, w), p(w, Z), p(Z, N), p(N, ze), p(ze, Ye), p(N, be), p(N, G), i[42](G), p(Z, ce), p(Z, le), p(le, Ge), p(Ge, Ot), p(le, Mt), p(le, te), i[43](te), p(w, T), p(w, Oe), p(Oe, Xe), p(t, _i), p(t, Qe), p(Qe, ie), p(ie, Me);
12699
+ p(t, R), p(t, w), p(w, Z), p(Z, N), p(N, ze), p(ze, Ye), p(N, be), p(N, G), i[42](G), p(Z, ce), p(Z, le), p(le, Ge), p(Ge, Ot), p(le, Mt), p(le, te), i[43](te), p(w, I), p(w, Oe), p(Oe, Xe), p(t, _i), p(t, Qe), p(Qe, ie), p(ie, Me);
12700
12700
  for (let b = 0; b < W.length; b += 1)
12701
12701
  W[b] && W[b].m(Me, null);
12702
- p(ie, Ft), p(ie, Ze), ke.m(Ze, null), p(t, Nt), p(t, Ee), p(Ee, pe), p(pe, Fe), p(Fe, et), p(et, Lt), p(pe, Bt), p(pe, Ne), p(Ne, Vt), p(Vt, Rt), p(pe, mi), p(pe, Le), p(Le, tt), p(tt, Ht), p(Ee, fi), p(Ee, mt), p(mt, xe), p(xe, Be), p(Be, m), p(m, E), p(Be, I), p(Be, D), p(D, Ve), p(xe, we), p(xe, _e);
12702
+ p(ie, Ft), p(ie, Ze), ke.m(Ze, null), p(t, Nt), p(t, Ee), p(Ee, pe), p(pe, Fe), p(Fe, et), p(et, Lt), p(pe, Bt), p(pe, Ne), p(Ne, Vt), p(Vt, Rt), p(pe, mi), p(pe, Le), p(Le, tt), p(tt, Ht), p(Ee, fi), p(Ee, mt), p(mt, xe), p(xe, Be), p(Be, m), p(m, E), p(Be, T), p(Be, z), p(z, Ve), p(xe, we), p(xe, _e);
12703
12703
  for (let b = 0; b < ee.length; b += 1)
12704
12704
  ee[b] && ee[b].m(_e, null);
12705
12705
  Wt || (gi = [
@@ -12848,9 +12848,9 @@ function Du(i) {
12848
12848
  };
12849
12849
  }
12850
12850
  function zu(i) {
12851
- let e, t, r, o, s, a, n, l, d, h, c, _, u, y, A, F, k, z = q({ length: 3 }), M = [];
12852
- for (let w = 0; w < z.length; w += 1)
12853
- M[w] = Hu(Iu(i, z, w));
12851
+ let e, t, r, o, s, a, n, l, d, h, c, _, u, y, A, F, k, D = q({ length: 3 }), M = [];
12852
+ for (let w = 0; w < D.length; w += 1)
12853
+ M[w] = Hu(Iu(i, D, w));
12854
12854
  let $ = q({ length: 6 }), U = [];
12855
12855
  for (let w = 0; w < $.length; w += 1)
12856
12856
  U[w] = Wu(Tu(i, $, w));
@@ -13501,7 +13501,7 @@ function Uu(i) {
13501
13501
  function qu(i, e, t) {
13502
13502
  let r;
13503
13503
  fn(i, kn, (m) => t(17, r = m));
13504
- let { endpoint: o = "" } = e, { playerid: s = "" } = e, { session: a = "" } = e, { lang: n = "" } = e, { clientstyling: l = "" } = e, { clientstylingurl: d = "" } = e, { mbsource: h } = e, { historytypes: c = "Casino, Sports, Payments" } = e, { pagesizeoptions: _ = "10, 20, 30, 50, 100" } = e, { defaultpagesize: u = "5" } = e, { formatamount: y = "{currency}{amount}.{2decimals}" } = e, { customcurrencysymbols: A } = e, F = window.navigator.userAgent, k = "", z = "", M, $, U = "", ne = "", R = "", w = Number(u), Z = 0, N = gn(F) !== "PC", ze = !0, Ae = !1, Ye = !1, be, G, ce, le = [], Ge = { EUR: "€", RON: " lei", USD: "$" }, ue = { payments: [], casino: [], sports: [] }, Ot = {
13504
+ let { endpoint: o = "" } = e, { playerid: s = "" } = e, { session: a = "" } = e, { lang: n = "" } = e, { clientstyling: l = "" } = e, { clientstylingurl: d = "" } = e, { mbsource: h } = e, { historytypes: c = "Casino, Sports, Payments" } = e, { pagesizeoptions: _ = "10, 20, 30, 50, 100" } = e, { defaultpagesize: u = "5" } = e, { formatamount: y = "{currency}{amount}.{2decimals}" } = e, { customcurrencysymbols: A } = e, F = window.navigator.userAgent, k = "", D = "", M, $, U = "", ne = "", R = "", w = Number(u), Z = 0, N = gn(F) !== "PC", ze = !0, Ae = !1, Ye = !1, be, G, ce, le = [], Ge = { EUR: "€", RON: " lei", USD: "$" }, ue = { payments: [], casino: [], sports: [] }, Ot = {
13505
13505
  payments: ["Type", "Status", "Amount", "Date", "Transaction ID"],
13506
13506
  casino: ["Game Name", "Date", "Bet Amount", "Win Amount", "Transaction ID"],
13507
13507
  sports: [
@@ -13541,7 +13541,7 @@ function qu(i, e, t) {
13541
13541
  "-",
13542
13542
  "bet_id"
13543
13543
  ]
13544
- }, te = {}, T = {
13544
+ }, te = {}, I = {
13545
13545
  filterButton: !0,
13546
13546
  nextPage: !0,
13547
13547
  previousPage: !0,
@@ -13552,17 +13552,17 @@ function qu(i, e, t) {
13552
13552
  });
13553
13553
  const _i = () => {
13554
13554
  t(13, le = c.split(", ").map((m, E) => {
13555
- const I = { type: m, checked: E === 0 };
13556
- return I.checked && t(7, R = I.type.toLocaleLowerCase()), I;
13555
+ const T = { type: m, checked: E === 0 };
13556
+ return T.checked && t(7, R = T.type.toLocaleLowerCase()), T;
13557
13557
  }));
13558
13558
  }, Qe = (m) => {
13559
- le.forEach((E, I) => {
13560
- t(13, le[I].checked = m === I, le), le[I].checked && t(7, R = E.type.toLocaleLowerCase());
13559
+ le.forEach((E, T) => {
13560
+ t(13, le[T].checked = m === T, le), le[T].checked && t(7, R = E.type.toLocaleLowerCase());
13561
13561
  }), ie();
13562
13562
  }, ie = () => {
13563
- if (!T.filterButton)
13563
+ if (!I.filterButton)
13564
13564
  return;
13565
- t(10, ze = !0), t(12, Ye = !1), t(16, T.filterButton = !1, T), t(16, T.nextPage = !1, T), t(16, T.previousPage = !1, T), t(16, T.pageSize = !1, T);
13565
+ t(10, ze = !0), t(12, Ye = !1), t(16, I.filterButton = !1, I), t(16, I.nextPage = !1, I), t(16, I.previousPage = !1, I), t(16, I.pageSize = !1, I);
13566
13566
  let m = new URL(`${o}/v1/player/${s}/fsb/transactions/${R}`);
13567
13567
  m.searchParams.append("offset", Z.toString() || "0"), m.searchParams.append("limit", w.toString() || "5"), m.searchParams.append("startDate", U), m.searchParams.append("endDate", ne);
13568
13568
  let E = {
@@ -13573,20 +13573,20 @@ function qu(i, e, t) {
13573
13573
  Accept: "application/json"
13574
13574
  }
13575
13575
  };
13576
- fetch(m.href, E).then((I) => Vt(I)).then((I) => {
13577
- if (I.transactions.length === 0)
13578
- return t(3, z = r("checkPeriod")), Promise.reject();
13579
- I.transactions.length >= w && (t(16, T.nextPage = !0, T), t(16, T.previousPage = !0, T), t(16, T.pageSize = !0, T)), t(14, ue[R] = [], ue), t(11, Ae = !1), Fe(I);
13580
- }).catch((I) => {
13581
- t(12, Ye = !0), t(16, T.nextPage = !1, T), t(16, T.previousPage = !1, T), t(16, T.pageSize = !1, T), window.postMessage(
13576
+ fetch(m.href, E).then((T) => Vt(T)).then((T) => {
13577
+ if (T.transactions.length === 0)
13578
+ return t(3, D = r("checkPeriod")), Promise.reject(D);
13579
+ T.transactions.length >= w && (t(16, I.nextPage = !0, I), t(16, I.previousPage = !0, I), t(16, I.pageSize = !0, I)), t(14, ue[R] = [], ue), t(11, Ae = !1), Fe(T);
13580
+ }).catch((T) => {
13581
+ t(12, Ye = !0), t(16, I.nextPage = !1, I), t(16, I.previousPage = !1, I), t(16, I.pageSize = !1, I), window.postMessage(
13582
13582
  {
13583
13583
  type: "WidgetNotification",
13584
- data: { type: "error", message: z }
13584
+ data: { type: "error", message: T }
13585
13585
  },
13586
13586
  window.location.href
13587
13587
  );
13588
13588
  }).finally(() => {
13589
- t(10, ze = !1), t(16, T.filterButton = !0, T);
13589
+ t(10, ze = !1), t(16, I.filterButton = !0, I);
13590
13590
  });
13591
13591
  }, Me = (m) => {
13592
13592
  t(5, U = m.target.value);
@@ -13595,30 +13595,30 @@ function qu(i, e, t) {
13595
13595
  }, Ze = () => {
13596
13596
  be.addEventListener("change", Me, !1), G.addEventListener("change", Ft, !1);
13597
13597
  }, Nt = () => {
13598
- T.pageSize && t(11, Ae = !Ae);
13598
+ I.pageSize && t(11, Ae = !Ae);
13599
13599
  }, Ee = (m) => {
13600
13600
  t(8, w = m), ie();
13601
13601
  }, pe = (m, E) => {
13602
13602
  if (E === "next") {
13603
- if (!T.nextPage)
13603
+ if (!I.nextPage)
13604
13604
  return;
13605
13605
  t(9, Z = m + 1), ie();
13606
13606
  } else {
13607
- if (!T.previousPage)
13607
+ if (!I.previousPage)
13608
13608
  return;
13609
13609
  t(9, Z = m - 1), ie();
13610
13610
  }
13611
13611
  }, Fe = (m) => {
13612
- m.transactions.forEach((E, I) => {
13613
- t(14, ue[R][I] = {}, ue), Mt[R].forEach((D) => {
13614
- if (y && D.includes("Amount") && ut(E), new Date(E[D]).getTime() && typeof E[D] != "number" && Lt(E, D), D.includes(".")) {
13615
- let Ve = D.split(".")[0], we = D.split(".")[1];
13616
- E[D] = { label: "Multiple", submenu: [] }, E[Ve].forEach((_e, it) => {
13617
- _e[we] && E[D].submenu.push(_e[we]);
13612
+ m.transactions.forEach((E, T) => {
13613
+ t(14, ue[R][T] = {}, ue), Mt[R].forEach((z) => {
13614
+ if (y && z.includes("Amount") && ut(E), new Date(E[z]).getTime() && typeof E[z] != "number" && Lt(E, z), z.includes(".")) {
13615
+ let Ve = z.split(".")[0], we = z.split(".")[1];
13616
+ E[z] = { label: "Multiple", submenu: [] }, E[Ve].forEach((_e, it) => {
13617
+ _e[we] && E[z].submenu.push(_e[we]);
13618
13618
  });
13619
13619
  }
13620
- if (D in E)
13621
- return t(14, ue[R][I][D] = E[D], ue);
13620
+ if (z in E)
13621
+ return t(14, ue[R][T][z] = E[z], ue);
13622
13622
  });
13623
13623
  });
13624
13624
  }, et = () => {
@@ -13626,21 +13626,21 @@ function qu(i, e, t) {
13626
13626
  return;
13627
13627
  let m = {};
13628
13628
  A.split(",").forEach((E) => {
13629
- let I = E.split(":");
13630
- m[I[0].trim()] = I[1].trim();
13631
- }), Object.entries(m).forEach(([E, I]) => Ge[E] = I);
13629
+ let T = E.split(":");
13630
+ m[T[0].trim()] = T[1].trim();
13631
+ }), Object.entries(m).forEach(([E, T]) => Ge[E] = T);
13632
13632
  }, Lt = (m, E) => {
13633
- let I = new Date(m[E]).toISOString().split("T"), D = `${I[0]} ${I[1].split(".")[0]}`;
13634
- m[E] = D;
13633
+ let T = new Date(m[E]).toISOString().split("T"), z = `${T[0]} ${T[1].split(".")[0]}`;
13634
+ m[E] = z;
13635
13635
  }, ut = (m) => {
13636
- let E = Object.keys(m).find((W) => W.includes("Amount")), I = Object.keys(m).find((W) => W.includes("currency")), D = m[E], Ve = m[I], we = y;
13636
+ let E = Object.keys(m).find((W) => W.includes("Amount")), T = Object.keys(m).find((W) => W.includes("currency")), z = m[E], Ve = m[T], we = y;
13637
13637
  const _e = we.match(/\{(\d+)decimals\}/), it = _e ? parseInt(_e[1], 10) : 2, Wt = _e ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
13638
- D = parseInt(D).toFixed(it);
13638
+ z = parseInt(z).toFixed(it);
13639
13639
  const [gi, Ce] = y.includes(".") ? [",", "."] : [".", ","];
13640
- let [H, Re] = D.split(".");
13641
- H = H.replace(/\B(?=(\d{3})+(?!\d))/g, gi), D = `${H}${Ce}${Re}`, we = we.replace("{currency}", Ge[Ve] || Ve).replace("{amount}", D.split(Ce)[0]).replace(
13640
+ let [H, Re] = z.split(".");
13641
+ H = H.replace(/\B(?=(\d{3})+(?!\d))/g, gi), z = `${H}${Ce}${Re}`, we = we.replace("{currency}", Ge[Ve] || Ve).replace("{amount}", z.split(Ce)[0]).replace(
13642
13642
  Wt,
13643
- D.split(Ce)[1]
13643
+ z.split(Ce)[1]
13644
13644
  ), m[E] = we;
13645
13645
  }, Bt = (m) => t(15, te[m] = !te[m], te), Ne = () => {
13646
13646
  window.postMessage(
@@ -13651,7 +13651,7 @@ function qu(i, e, t) {
13651
13651
  window.location.href
13652
13652
  );
13653
13653
  }, Vt = (m) => fo(this, null, function* () {
13654
- return m.status >= 300 ? (Ke = yield m.json(), k = Ke.thirdPartyResponse.errorCode, t(3, z = r(k) || r("generalError")), Promise.reject()) : m.json();
13654
+ return m.status >= 300 ? (Ke = yield m.json(), k = Ke.thirdPartyResponse.errorCode, t(3, D = r(k) || r("generalError")), Promise.reject(D)) : m.json();
13655
13655
  });
13656
13656
  vn(() => () => {
13657
13657
  be && be.removeEventListener("change", Me), G && G.removeEventListener("change", Ft);
@@ -13692,7 +13692,7 @@ function qu(i, e, t) {
13692
13692
  be,
13693
13693
  G,
13694
13694
  ce,
13695
- z,
13695
+ D,
13696
13696
  M,
13697
13697
  U,
13698
13698
  ne,
@@ -13705,7 +13705,7 @@ function qu(i, e, t) {
13705
13705
  le,
13706
13706
  ue,
13707
13707
  te,
13708
- T,
13708
+ I,
13709
13709
  r,
13710
13710
  Ot,
13711
13711
  Mt,