@everymatrix/casino-tournaments-player-rank 1.52.6 → 1.53.10

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,19 +1,19 @@
1
- import { S as N, i as G, f as m, c as J, s as K, a as O, e as v, b as H, t as M, d as i, g as E, h as D, j as h, k as j, n as q, l as B, o as Q, m as V } from "./CasinoTournamentsPlayerRank-BZksywZp.js";
2
- const W = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", X = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
3
- function Y(a) {
4
- O(a, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
1
+ import { S as G, i as J, f as v, c as K, s as O, a as Q, e as _, b as H, t as M, d as i, g as j, h as B, j as h, k as D, n as q, l as E, o as V, m as W } from "./CasinoTournamentsPlayerRank-SDpEvsfW.js";
2
+ const X = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Y = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
3
+ function $(a) {
4
+ Q(a, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
5
5
  }
6
6
  function Z(a) {
7
7
  let e;
8
8
  return {
9
9
  c() {
10
- e = v("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>', i(e, "class", "Icon UserIcon"), i(e, "part", "Icon UserIcon");
10
+ e = _("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>', i(e, "class", "Icon UserIcon"), i(e, "part", "Icon UserIcon");
11
11
  },
12
- m(n, f) {
13
- D(n, e, f);
12
+ m(n, m) {
13
+ B(n, e, m);
14
14
  },
15
15
  d(n) {
16
- n && B(e);
16
+ n && E(e);
17
17
  }
18
18
  };
19
19
  }
@@ -21,21 +21,18 @@ function F(a) {
21
21
  let e;
22
22
  return {
23
23
  c() {
24
- e = v("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>', i(e, "class", "Icon PrizeIcon"), i(e, "part", "Icon PrizeIcon");
24
+ e = _("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>', i(e, "class", "Icon PrizeIcon"), i(e, "part", "Icon PrizeIcon");
25
25
  },
26
- m(n, f) {
27
- D(n, e, f);
26
+ m(n, m) {
27
+ B(n, e, m);
28
28
  },
29
29
  d(n) {
30
- n && B(e);
30
+ n && E(e);
31
31
  }
32
32
  };
33
33
  }
34
- function $(a) {
35
- let e, n, f, d, z, R = (
36
- /*formatRank*/
37
- a[7]() + ""
38
- ), A, l, g, P, p, C, r, k, _, I, u, U, x, w, S, b, T, c = (
34
+ function ee(a) {
35
+ let e, n, m, d, z, p, U, r, b, R, C, l, k, f, T, u, P, x, I, w, S, A, c = (
39
36
  /*showicon*/
40
37
  a[2] == "true" && Z()
41
38
  ), o = (
@@ -44,85 +41,93 @@ function $(a) {
44
41
  );
45
42
  return {
46
43
  c() {
47
- e = v("div"), n = v("div"), c && c.c(), f = H(), d = v("span"), z = M(
44
+ e = _("div"), n = _("div"), c && c.c(), m = H(), d = _("span"), z = M(
48
45
  /*rankprefix*/
49
46
  a[1]
50
- ), A = M(R), l = H(), g = v("img"), C = H(), r = v("img"), I = H(), u = v("div"), o && o.c(), U = H(), x = v("span"), w = M(
47
+ ), p = M(
48
+ /*rankinfo*/
49
+ a[7]
50
+ ), U = H(), r = _("img"), C = H(), l = _("img"), T = H(), u = _("div"), o && o.c(), P = H(), x = _("span"), I = M(
51
51
  /*prize*/
52
52
  a[0]
53
- ), i(g, "part", "Rank_Arror_UP"), i(g, "alt", "Rank Up"), E(g.src, P = W) || i(g, "src", P), i(g, "width", "20"), i(g, "height", "20"), i(g, "class", p = "svg Arrow Up " + /*userRankChanged*/
53
+ ), i(r, "part", "Rank_Arror_UP"), i(r, "alt", "Rank Up"), j(r.src, b = X) || i(r, "src", b), i(r, "width", "20"), i(r, "height", "20"), i(r, "class", R = "svg Arrow Up " + /*userRankChanged*/
54
54
  (a[5] && /*isRankingUp*/
55
- a[6] ? "Show" : "Hidden")), i(r, "part", "Rank_Arror_Down"), i(r, "alt", "Rank Down"), E(r.src, k = X) || i(r, "src", k), i(r, "width", "10"), i(r, "height", "10"), i(r, "class", _ = "svg Arrow Down " + /*userRankChanged*/
55
+ a[6] ? "Show" : "Hidden")), i(l, "part", "Rank_Arror_Down"), i(l, "alt", "Rank Down"), j(l.src, k = Y) || i(l, "src", k), i(l, "width", "10"), i(l, "height", "10"), i(l, "class", f = "svg Arrow Down " + /*userRankChanged*/
56
56
  (a[5] && !/*isRankingUp*/
57
- a[6] ? "Show" : "Hidden")), i(d, "class", "RankInfo"), i(d, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(x, "class", "RankInfo UserPrize"), i(x, "part", "PrizeText"), i(u, "class", S = /*displayin*/
58
- a[3] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", b = /*displayin*/
59
- a[3] + " casino-tournaments-rank"), i(e, "part", T = /*displayin*/
57
+ a[6] ? "Show" : "Hidden")), i(d, "class", "RankInfo"), i(d, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(x, "class", "RankInfo UserPrize"), i(x, "part", "PrizeText"), i(u, "class", w = /*displayin*/
58
+ a[3] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", S = /*displayin*/
59
+ a[3] + " casino-tournaments-rank"), i(e, "part", A = /*displayin*/
60
60
  a[3] + " casino-tournaments-rank");
61
61
  },
62
- m(s, t) {
63
- D(s, e, t), h(e, n), c && c.m(n, null), h(n, f), h(n, d), h(d, z), h(d, A), h(d, l), h(d, g), h(d, C), h(d, r), h(e, I), h(e, u), o && o.m(u, null), h(u, U), h(u, x), h(x, w), a[14](e);
62
+ m(s, g) {
63
+ B(s, e, g), h(e, n), c && c.m(n, null), h(n, m), h(n, d), h(d, z), h(d, p), h(d, U), h(d, r), h(d, C), h(d, l), h(e, T), h(e, u), o && o.m(u, null), h(u, P), h(u, x), h(x, I), a[14](e);
64
64
  },
65
- p(s, [t]) {
65
+ p(s, [g]) {
66
66
  /*showicon*/
67
- s[2] == "true" ? c || (c = Z(), c.c(), c.m(n, f)) : c && (c.d(1), c = null), t & /*rankprefix*/
68
- 2 && j(
67
+ s[2] == "true" ? c || (c = Z(), c.c(), c.m(n, m)) : c && (c.d(1), c = null), g & /*rankprefix*/
68
+ 2 && D(
69
69
  z,
70
70
  /*rankprefix*/
71
71
  s[1]
72
- ), t & /*userRankChanged, isRankingUp*/
73
- 96 && p !== (p = "svg Arrow Up " + /*userRankChanged*/
72
+ ), g & /*rankinfo*/
73
+ 128 && D(
74
+ p,
75
+ /*rankinfo*/
76
+ s[7]
77
+ ), g & /*userRankChanged, isRankingUp*/
78
+ 96 && R !== (R = "svg Arrow Up " + /*userRankChanged*/
74
79
  (s[5] && /*isRankingUp*/
75
- s[6] ? "Show" : "Hidden")) && i(g, "class", p), t & /*userRankChanged, isRankingUp*/
76
- 96 && _ !== (_ = "svg Arrow Down " + /*userRankChanged*/
80
+ s[6] ? "Show" : "Hidden")) && i(r, "class", R), g & /*userRankChanged, isRankingUp*/
81
+ 96 && f !== (f = "svg Arrow Down " + /*userRankChanged*/
77
82
  (s[5] && !/*isRankingUp*/
78
- s[6] ? "Show" : "Hidden")) && i(r, "class", _), /*showicon*/
79
- s[2] == "true" ? o || (o = F(), o.c(), o.m(u, U)) : o && (o.d(1), o = null), t & /*prize*/
80
- 1 && j(
81
- w,
83
+ s[6] ? "Show" : "Hidden")) && i(l, "class", f), /*showicon*/
84
+ s[2] == "true" ? o || (o = F(), o.c(), o.m(u, P)) : o && (o.d(1), o = null), g & /*prize*/
85
+ 1 && D(
86
+ I,
82
87
  /*prize*/
83
88
  s[0]
84
- ), t & /*displayin*/
89
+ ), g & /*displayin*/
90
+ 8 && w !== (w = /*displayin*/
91
+ s[3] + " PrizeSec") && i(u, "class", w), g & /*displayin*/
85
92
  8 && S !== (S = /*displayin*/
86
- s[3] + " PrizeSec") && i(u, "class", S), t & /*displayin*/
87
- 8 && b !== (b = /*displayin*/
88
- s[3] + " casino-tournaments-rank") && i(e, "class", b), t & /*displayin*/
89
- 8 && T !== (T = /*displayin*/
90
- s[3] + " casino-tournaments-rank") && i(e, "part", T);
93
+ s[3] + " casino-tournaments-rank") && i(e, "class", S), g & /*displayin*/
94
+ 8 && A !== (A = /*displayin*/
95
+ s[3] + " casino-tournaments-rank") && i(e, "part", A);
91
96
  },
92
97
  i: q,
93
98
  o: q,
94
99
  d(s) {
95
- s && B(e), c && c.d(), o && o.d(), a[14](null);
100
+ s && E(e), c && c.d(), o && o.d(), a[14](null);
96
101
  }
97
102
  };
98
103
  }
99
- function ee(a, e, n) {
100
- let { rankprefix: f = "#" } = e, { showicon: d = "true" } = e, { tournamentid: z = "" } = e, { overallrank: R = "0" } = e, { showoverallrank: A = "true" } = e, { userrank: l = "0" } = e, { prize: g = "PrizeName" } = e, { displayin: P = "row" } = e, { clientstyling: p = "" } = e, { clientstylingurl: C = "" } = e, r, k, _ = !1, I = !0, u, U, x, w;
101
- const S = (t) => {
102
- t.data && t.data.type == `TournamentRankInfo_${z}` && b(t.data.rankInfo);
103
- }, b = (t) => {
104
+ function te(a, e, n) {
105
+ let { rankprefix: m = "#" } = e, { showicon: d = "true" } = e, { tournamentid: z = "" } = e, { overallrank: p = "0" } = e, { showoverallrank: U = "true" } = e, { userrank: r = "0" } = e, { prize: b = "PrizeName" } = e, { displayin: R = "row" } = e, { clientstyling: C = "" } = e, { clientstylingurl: l = "" } = e, k, f, T = !1, u = !0, P, x, I, w, S = "";
106
+ const A = (t) => {
107
+ t.data && t.data.type == `TournamentRankInfo_${z}` && (c(t.data.rankInfo), g());
108
+ }, c = (t) => {
104
109
  let L = (y) => {
105
- n(8, l = y.rank), n(9, R = y.overallRank), n(0, g = y.prize);
110
+ n(9, r = y.rank), n(8, p = y.overallRank), n(0, b = y.prize);
106
111
  };
107
112
  if (!w) {
108
- w = k, L(t);
113
+ w = f, L(t);
109
114
  return;
110
115
  }
111
- k && (n(5, _ = w != t.rank), n(6, I = w > t.rank), u = (/* @__PURE__ */ new Date()).getTime(), x = setTimeout(
116
+ f && (n(5, T = w != t.rank), n(6, u = w > t.rank), P = (/* @__PURE__ */ new Date()).getTime(), I = setTimeout(
112
117
  () => {
113
- U = (/* @__PURE__ */ new Date()).getTime(), (U - u) / 1e3 > 4 && n(5, _ = !1), w = k;
118
+ x = (/* @__PURE__ */ new Date()).getTime(), (x - P) / 1e3 > 4 && n(5, T = !1), w = f;
114
119
  },
115
120
  5e3
116
121
  ), L(t));
117
- }, T = () => {
122
+ }, o = () => {
118
123
  let t = document.createElement("style");
119
- t.innerHTML = p, r.appendChild(t);
120
- }, c = () => {
121
- let t = new URL(C), L = document.createElement("style");
124
+ t.innerHTML = C, k.appendChild(t);
125
+ }, s = () => {
126
+ let t = new URL(l), L = document.createElement("style");
122
127
  fetch(t.href).then((y) => y.text()).then((y) => {
123
128
  L.innerHTML = y, setTimeout(
124
129
  () => {
125
- r.appendChild(L);
130
+ k.appendChild(L);
126
131
  },
127
132
  1
128
133
  ), setTimeout(
@@ -131,125 +136,129 @@ function ee(a, e, n) {
131
136
  500
132
137
  );
133
138
  });
134
- }, o = () => A == "true" ? `${+l == 0 ? "-" : l || "-"}/${+R == 0 ? "-" : R}` : l;
135
- Q(() => (k = l == null ? void 0 : parseInt(l), w = k, n(8, l = l == null ? "-" : l), window.addEventListener("message", S, !0), () => {
136
- window.removeEventListener("message", S), clearTimeout(x);
139
+ }, g = () => {
140
+ n(7, S = U == "true" ? `${+r == 0 ? "-" : r || "-"}/${+p == 0 ? "-" : p}` : r);
141
+ };
142
+ V(() => (f = r == null ? void 0 : parseInt(r), w = f, n(9, r = r ?? "-"), window.addEventListener("message", A, !0), g(), () => {
143
+ window.removeEventListener("message", A), clearTimeout(I);
137
144
  }));
138
- function s(t) {
139
- V[t ? "unshift" : "push"](() => {
140
- r = t, n(4, r);
145
+ function N(t) {
146
+ W[t ? "unshift" : "push"](() => {
147
+ k = t, n(4, k);
141
148
  });
142
149
  }
143
150
  return a.$$set = (t) => {
144
- "rankprefix" in t && n(1, f = t.rankprefix), "showicon" in t && n(2, d = t.showicon), "tournamentid" in t && n(10, z = t.tournamentid), "overallrank" in t && n(9, R = t.overallrank), "showoverallrank" in t && n(11, A = t.showoverallrank), "userrank" in t && n(8, l = t.userrank), "prize" in t && n(0, g = t.prize), "displayin" in t && n(3, P = t.displayin), "clientstyling" in t && n(12, p = t.clientstyling), "clientstylingurl" in t && n(13, C = t.clientstylingurl);
151
+ "rankprefix" in t && n(1, m = t.rankprefix), "showicon" in t && n(2, d = t.showicon), "tournamentid" in t && n(10, z = t.tournamentid), "overallrank" in t && n(8, p = t.overallrank), "showoverallrank" in t && n(11, U = t.showoverallrank), "userrank" in t && n(9, r = t.userrank), "prize" in t && n(0, b = t.prize), "displayin" in t && n(3, R = t.displayin), "clientstyling" in t && n(12, C = t.clientstyling), "clientstylingurl" in t && n(13, l = t.clientstylingurl);
145
152
  }, a.$$.update = () => {
146
153
  a.$$.dirty & /*customStylingContainer, clientstyling*/
147
- 4112 && r && p && T(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
148
- 8208 && r && C && c(), a.$$.dirty & /*userrank*/
149
- 256 && (k = parseInt(l));
154
+ 4112 && k && C && o(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
155
+ 8208 && k && l && s(), a.$$.dirty & /*userrank*/
156
+ 512 && (f = parseInt(r)), a.$$.dirty & /*userrank*/
157
+ 512 && r && g(), a.$$.dirty & /*overallrank*/
158
+ 256 && p && g();
150
159
  }, [
151
- g,
152
- f,
160
+ b,
161
+ m,
153
162
  d,
154
- P,
155
- r,
156
- _,
157
- I,
158
- o,
159
- l,
160
163
  R,
161
- z,
162
- A,
164
+ k,
165
+ T,
166
+ u,
167
+ S,
163
168
  p,
169
+ r,
170
+ z,
171
+ U,
164
172
  C,
165
- s
173
+ l,
174
+ N
166
175
  ];
167
176
  }
168
- class te extends N {
177
+ class ne extends G {
169
178
  constructor(e) {
170
- super(), G(
179
+ super(), J(
171
180
  this,
172
181
  e,
182
+ te,
173
183
  ee,
174
- $,
175
- K,
184
+ O,
176
185
  {
177
186
  rankprefix: 1,
178
187
  showicon: 2,
179
188
  tournamentid: 10,
180
- overallrank: 9,
189
+ overallrank: 8,
181
190
  showoverallrank: 11,
182
- userrank: 8,
191
+ userrank: 9,
183
192
  prize: 0,
184
193
  displayin: 3,
185
194
  clientstyling: 12,
186
195
  clientstylingurl: 13
187
196
  },
188
- Y
197
+ $
189
198
  );
190
199
  }
191
200
  get rankprefix() {
192
201
  return this.$$.ctx[1];
193
202
  }
194
203
  set rankprefix(e) {
195
- this.$$set({ rankprefix: e }), m();
204
+ this.$$set({ rankprefix: e }), v();
196
205
  }
197
206
  get showicon() {
198
207
  return this.$$.ctx[2];
199
208
  }
200
209
  set showicon(e) {
201
- this.$$set({ showicon: e }), m();
210
+ this.$$set({ showicon: e }), v();
202
211
  }
203
212
  get tournamentid() {
204
213
  return this.$$.ctx[10];
205
214
  }
206
215
  set tournamentid(e) {
207
- this.$$set({ tournamentid: e }), m();
216
+ this.$$set({ tournamentid: e }), v();
208
217
  }
209
218
  get overallrank() {
210
- return this.$$.ctx[9];
219
+ return this.$$.ctx[8];
211
220
  }
212
221
  set overallrank(e) {
213
- this.$$set({ overallrank: e }), m();
222
+ this.$$set({ overallrank: e }), v();
214
223
  }
215
224
  get showoverallrank() {
216
225
  return this.$$.ctx[11];
217
226
  }
218
227
  set showoverallrank(e) {
219
- this.$$set({ showoverallrank: e }), m();
228
+ this.$$set({ showoverallrank: e }), v();
220
229
  }
221
230
  get userrank() {
222
- return this.$$.ctx[8];
231
+ return this.$$.ctx[9];
223
232
  }
224
233
  set userrank(e) {
225
- this.$$set({ userrank: e }), m();
234
+ this.$$set({ userrank: e }), v();
226
235
  }
227
236
  get prize() {
228
237
  return this.$$.ctx[0];
229
238
  }
230
239
  set prize(e) {
231
- this.$$set({ prize: e }), m();
240
+ this.$$set({ prize: e }), v();
232
241
  }
233
242
  get displayin() {
234
243
  return this.$$.ctx[3];
235
244
  }
236
245
  set displayin(e) {
237
- this.$$set({ displayin: e }), m();
246
+ this.$$set({ displayin: e }), v();
238
247
  }
239
248
  get clientstyling() {
240
249
  return this.$$.ctx[12];
241
250
  }
242
251
  set clientstyling(e) {
243
- this.$$set({ clientstyling: e }), m();
252
+ this.$$set({ clientstyling: e }), v();
244
253
  }
245
254
  get clientstylingurl() {
246
255
  return this.$$.ctx[13];
247
256
  }
248
257
  set clientstylingurl(e) {
249
- this.$$set({ clientstylingurl: e }), m();
258
+ this.$$set({ clientstylingurl: e }), v();
250
259
  }
251
260
  }
252
- J(te, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
261
+ K(ne, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
253
262
  export {
254
- te as default
263
+ ne as default
255
264
  };
@@ -0,0 +1,14 @@
1
+ import { C as s } from "../components/CasinoTournamentsPlayerRank-SDpEvsfW.js";
2
+ function a(n) {
3
+ return function(...t) {
4
+ try {
5
+ return n.apply(this, t);
6
+ } catch (e) {
7
+ if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ }
13
+ customElements.define = a(customElements.define);
14
+ !customElements.get("casino-tournaments-player-rank") && customElements.define("casino-tournaments-player-rank", s.element);
package/package.json CHANGED
@@ -1,26 +1,21 @@
1
+
1
2
  {
2
3
  "name": "@everymatrix/casino-tournaments-player-rank",
3
- "version": "1.52.6",
4
+ "version": "1.53.10",
4
5
  "type": "module",
5
- "main": "es2015/casino-tournaments-player-rank.cjs",
6
- "module": "es2015/casino-tournaments-player-rank.js",
6
+ "main": "esnext/casino-tournaments-player-rank.js",
7
+ "module": "esnext/casino-tournaments-player-rank.js",
7
8
  "exports": {
8
- ".": {
9
- "import": "./es2015/casino-tournaments-player-rank.js",
10
- "require": "./es2015/casino-tournaments-player-rank.cjs"
11
- },
12
9
  "./es2015/casino-tournaments-player-rank.cjs": "./es2015/casino-tournaments-player-rank.cjs"
13
10
  },
14
11
  "files": [
15
12
  "components/",
16
13
  "es2015/",
17
14
  "stencil",
18
- "angular"
15
+ "angular",
16
+ "esnext/"
19
17
  ],
20
18
  "publishConfig": {
21
19
  "access": "public"
22
- },
23
- "dependencies": {
24
- "@everymatrix/casino-tournaments-rank": "1.52.6"
25
20
  }
26
21
  }