@everymatrix/casino-tournaments-player-rank 0.0.3 → 1.47.90

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,271 +0,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 M, t as D, d as n, g as q, h as E, j as c, k as B, n as Z, l as j, o as V, m as W } from "./CasinoTournamentsPlayerRank-Bzd1zY4m.js";
2
- const X = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.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%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.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%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e", Y = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e", $ = "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", e2 = "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 t2(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
- }
6
- function F(a) {
7
- let e;
8
- return {
9
- c() {
10
- e = _("span"), e.innerHTML = `<img alt="user" src="${Y}"/>`, n(e, "class", "Icon UserIcon"), n(e, "part", "Icon UserIcon");
11
- },
12
- m(i, m) {
13
- E(i, e, m);
14
- },
15
- d(i) {
16
- i && j(e);
17
- }
18
- };
19
- }
20
- function N(a) {
21
- let e;
22
- return {
23
- c() {
24
- e = _("span"), e.innerHTML = `<img alt="prize" src="${X}"/>`, n(e, "class", "Icon PrizeIcon"), n(e, "part", "Icon PrizeIcon");
25
- },
26
- m(i, m) {
27
- E(i, e, m);
28
- },
29
- d(i) {
30
- i && j(e);
31
- }
32
- };
33
- }
34
- function i2(a) {
35
- let e, i, m, o, S, y = (
36
- /*overallrank*/
37
- (a[1] == 0 ? "-" : (
38
- /*userrank*/
39
- a[0] ? (
40
- /*userrank*/
41
- a[0]
42
- ) : "-"
43
- )) + ""
44
- ), g, b, R = (
45
- /*overallrank*/
46
- (a[1] == 0 ? "-" : (
47
- /*overallrank*/
48
- a[1]
49
- )) + ""
50
- ), x, C, l, p, z, P, d, I, A, k, u, L, U, H, T, t, w, r = (
51
- /*showicon*/
52
- a[4] == "true" && F()
53
- ), h = (
54
- /*showicon*/
55
- a[4] == "true" && N()
56
- );
57
- return {
58
- c() {
59
- e = _("div"), i = _("div"), r && r.c(), m = M(), o = _("span"), S = D(
60
- /*rankprefix*/
61
- a[3]
62
- ), g = D(y), b = D("/"), x = D(R), C = M(), l = _("img"), P = M(), d = _("img"), k = M(), u = _("div"), h && h.c(), L = M(), U = _("span"), H = D(
63
- /*prize*/
64
- a[2]
65
- ), n(l, "part", "Rank_Arror_UP"), n(l, "alt", "Rank Up"), q(l.src, p = $) || n(l, "src", p), n(l, "width", "20"), n(l, "height", "20"), n(l, "class", z = "svg Arrow Up " + /*userRankChanged*/
66
- (a[7] && /*isRankingUp*/
67
- a[8] ? "Show" : "Hidden")), n(d, "part", "Rank_Arror_Down"), n(d, "alt", "Rank Down"), q(d.src, I = e2) || n(d, "src", I), n(d, "width", "10"), n(d, "height", "10"), n(d, "class", A = "svg Arrow Down " + /*userRankChanged*/
68
- (a[7] && !/*isRankingUp*/
69
- a[8] ? "Show" : "Hidden")), n(o, "class", "RankInfo"), n(o, "part", "RankText"), n(i, "class", "RankSec"), n(i, "part", "Rank"), n(U, "class", "RankInfo UserPrize"), n(U, "part", "PrizeText"), n(u, "class", T = /*displayin*/
70
- a[5] + " PrizeSec"), n(u, "part", "Prize"), n(e, "class", t = /*displayin*/
71
- a[5] + " casino-tournaments-rank"), n(e, "part", w = /*displayin*/
72
- a[5] + " casino-tournaments-rank");
73
- },
74
- m(s, f) {
75
- E(s, e, f), c(e, i), r && r.m(i, null), c(i, m), c(i, o), c(o, S), c(o, g), c(o, b), c(o, x), c(o, C), c(o, l), c(o, P), c(o, d), c(e, k), c(e, u), h && h.m(u, null), c(u, L), c(u, U), c(U, H), a[12](e);
76
- },
77
- p(s, [f]) {
78
- /*showicon*/
79
- s[4] == "true" ? r || (r = F(), r.c(), r.m(i, m)) : r && (r.d(1), r = null), f & /*rankprefix*/
80
- 8 && B(
81
- S,
82
- /*rankprefix*/
83
- s[3]
84
- ), f & /*overallrank, userrank*/
85
- 3 && y !== (y = /*overallrank*/
86
- (s[1] == 0 ? "-" : (
87
- /*userrank*/
88
- s[0] ? (
89
- /*userrank*/
90
- s[0]
91
- ) : "-"
92
- )) + "") && B(g, y), f & /*overallrank*/
93
- 2 && R !== (R = /*overallrank*/
94
- (s[1] == 0 ? "-" : (
95
- /*overallrank*/
96
- s[1]
97
- )) + "") && B(x, R), f & /*userRankChanged, isRankingUp*/
98
- 384 && z !== (z = "svg Arrow Up " + /*userRankChanged*/
99
- (s[7] && /*isRankingUp*/
100
- s[8] ? "Show" : "Hidden")) && n(l, "class", z), f & /*userRankChanged, isRankingUp*/
101
- 384 && A !== (A = "svg Arrow Down " + /*userRankChanged*/
102
- (s[7] && !/*isRankingUp*/
103
- s[8] ? "Show" : "Hidden")) && n(d, "class", A), /*showicon*/
104
- s[4] == "true" ? h || (h = N(), h.c(), h.m(u, L)) : h && (h.d(1), h = null), f & /*prize*/
105
- 4 && B(
106
- H,
107
- /*prize*/
108
- s[2]
109
- ), f & /*displayin*/
110
- 32 && T !== (T = /*displayin*/
111
- s[5] + " PrizeSec") && n(u, "class", T), f & /*displayin*/
112
- 32 && t !== (t = /*displayin*/
113
- s[5] + " casino-tournaments-rank") && n(e, "class", t), f & /*displayin*/
114
- 32 && w !== (w = /*displayin*/
115
- s[5] + " casino-tournaments-rank") && n(e, "part", w);
116
- },
117
- i: Z,
118
- o: Z,
119
- d(s) {
120
- s && j(e), r && r.d(), h && h.d(), a[12](null);
121
- }
122
- };
123
- }
124
- function n2(a, e, i) {
125
- let { rankprefix: m = "#" } = e, { showicon: o = "true" } = e, { tournamentid: S = "" } = e, { overallrank: y = "0" } = e, { userrank: g = "0" } = e, { prize: b = "PrizeName" } = e, { displayin: R = "row" } = e, { clientstyling: x = "" } = e, { clientstylingurl: C = "" } = e, l, p, z = !1, P = !0, d, I, A, k;
126
- const u = (t) => {
127
- t.data && t.data.type == `TournamentRankInfo_${S}` && L(t.data.rankInfo);
128
- }, L = (t) => {
129
- let w = (r) => {
130
- i(0, g = r.rank), i(1, y = r.overallRank), i(2, b = r.prize);
131
- };
132
- if (!k) {
133
- k = p, w(t);
134
- return;
135
- }
136
- p && (i(7, z = k != t.rank), i(8, P = k > t.rank), d = (/* @__PURE__ */ new Date()).getTime(), A = setTimeout(
137
- () => {
138
- I = (/* @__PURE__ */ new Date()).getTime(), (I - d) / 1e3 > 4 && i(7, z = !1), k = p;
139
- },
140
- 5e3
141
- ), w(t));
142
- }, U = () => {
143
- let t = document.createElement("style");
144
- t.innerHTML = x, l.appendChild(t);
145
- }, H = () => {
146
- let t = new URL(C), w = document.createElement("style");
147
- fetch(t.href).then((r) => r.text()).then((r) => {
148
- w.innerHTML = r, setTimeout(
149
- () => {
150
- l.appendChild(w);
151
- },
152
- 1
153
- ), setTimeout(
154
- () => {
155
- },
156
- 500
157
- );
158
- });
159
- };
160
- V(() => (p = g == null ? void 0 : parseInt(g), k = p, i(0, g = g == null ? "-" : g), window.addEventListener("message", u, !0), () => {
161
- window.removeEventListener("message", u), clearTimeout(A);
162
- }));
163
- function T(t) {
164
- W[t ? "unshift" : "push"](() => {
165
- l = t, i(6, l);
166
- });
167
- }
168
- return a.$$set = (t) => {
169
- "rankprefix" in t && i(3, m = t.rankprefix), "showicon" in t && i(4, o = t.showicon), "tournamentid" in t && i(9, S = t.tournamentid), "overallrank" in t && i(1, y = t.overallrank), "userrank" in t && i(0, g = t.userrank), "prize" in t && i(2, b = t.prize), "displayin" in t && i(5, R = t.displayin), "clientstyling" in t && i(10, x = t.clientstyling), "clientstylingurl" in t && i(11, C = t.clientstylingurl);
170
- }, a.$$.update = () => {
171
- a.$$.dirty & /*customStylingContainer, clientstyling*/
172
- 1088 && l && x && U(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
173
- 2112 && l && C && H(), a.$$.dirty & /*userrank*/
174
- 1 && (p = parseInt(g));
175
- }, [
176
- g,
177
- y,
178
- b,
179
- m,
180
- o,
181
- R,
182
- l,
183
- z,
184
- P,
185
- S,
186
- x,
187
- C,
188
- T
189
- ];
190
- }
191
- class a2 extends G {
192
- constructor(e) {
193
- super(), J(
194
- this,
195
- e,
196
- n2,
197
- i2,
198
- O,
199
- {
200
- rankprefix: 3,
201
- showicon: 4,
202
- tournamentid: 9,
203
- overallrank: 1,
204
- userrank: 0,
205
- prize: 2,
206
- displayin: 5,
207
- clientstyling: 10,
208
- clientstylingurl: 11
209
- },
210
- t2
211
- );
212
- }
213
- get rankprefix() {
214
- return this.$$.ctx[3];
215
- }
216
- set rankprefix(e) {
217
- this.$$set({ rankprefix: e }), v();
218
- }
219
- get showicon() {
220
- return this.$$.ctx[4];
221
- }
222
- set showicon(e) {
223
- this.$$set({ showicon: e }), v();
224
- }
225
- get tournamentid() {
226
- return this.$$.ctx[9];
227
- }
228
- set tournamentid(e) {
229
- this.$$set({ tournamentid: e }), v();
230
- }
231
- get overallrank() {
232
- return this.$$.ctx[1];
233
- }
234
- set overallrank(e) {
235
- this.$$set({ overallrank: e }), v();
236
- }
237
- get userrank() {
238
- return this.$$.ctx[0];
239
- }
240
- set userrank(e) {
241
- this.$$set({ userrank: e }), v();
242
- }
243
- get prize() {
244
- return this.$$.ctx[2];
245
- }
246
- set prize(e) {
247
- this.$$set({ prize: e }), v();
248
- }
249
- get displayin() {
250
- return this.$$.ctx[5];
251
- }
252
- set displayin(e) {
253
- this.$$set({ displayin: e }), v();
254
- }
255
- get clientstyling() {
256
- return this.$$.ctx[10];
257
- }
258
- set clientstyling(e) {
259
- this.$$set({ clientstyling: e }), v();
260
- }
261
- get clientstylingurl() {
262
- return this.$$.ctx[11];
263
- }
264
- set clientstylingurl(e) {
265
- this.$$set({ clientstylingurl: e }), v();
266
- }
267
- }
268
- K(a2, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
269
- export {
270
- a2 as default
271
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-Dr2SWOgB.cjs"),M="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.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%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.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%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e",D="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e",q="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",B="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";function E(a){e.append_styles(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}}")}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="user" src="${D}"/>`,e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function L(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="prize" src="${M}"/>`,e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function j(a){let t,i,p,c,y,k=(a[1]==0?"-":a[0]?a[0]:"-")+"",o,C,x=(a[1]==0?"-":a[1])+"",v,z,s,m,_,T,d,b,S,w,u,P,R,U,A,n,f,r=a[4]=="true"&&I(),g=a[4]=="true"&&L();return{c(){t=e.element("div"),i=e.element("div"),r&&r.c(),p=e.space(),c=e.element("span"),y=e.text(a[3]),o=e.text(k),C=e.text("/"),v=e.text(x),z=e.space(),s=e.element("img"),T=e.space(),d=e.element("img"),w=e.space(),u=e.element("div"),g&&g.c(),P=e.space(),R=e.element("span"),U=e.text(a[2]),e.attr(s,"part","Rank_Arror_UP"),e.attr(s,"alt","Rank Up"),e.src_url_equal(s.src,m=q)||e.attr(s,"src",m),e.attr(s,"width","20"),e.attr(s,"height","20"),e.attr(s,"class",_="svg Arrow Up "+(a[7]&&a[8]?"Show":"Hidden")),e.attr(d,"part","Rank_Arror_Down"),e.attr(d,"alt","Rank Down"),e.src_url_equal(d.src,b=B)||e.attr(d,"src",b),e.attr(d,"width","10"),e.attr(d,"height","10"),e.attr(d,"class",S="svg Arrow Down "+(a[7]&&!a[8]?"Show":"Hidden")),e.attr(c,"class","RankInfo"),e.attr(c,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(R,"class","RankInfo UserPrize"),e.attr(R,"part","PrizeText"),e.attr(u,"class",A=a[5]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",n=a[5]+" casino-tournaments-rank"),e.attr(t,"part",f=a[5]+" casino-tournaments-rank")},m(l,h){e.insert(l,t,h),e.append(t,i),r&&r.m(i,null),e.append(i,p),e.append(i,c),e.append(c,y),e.append(c,o),e.append(c,C),e.append(c,v),e.append(c,z),e.append(c,s),e.append(c,T),e.append(c,d),e.append(t,w),e.append(t,u),g&&g.m(u,null),e.append(u,P),e.append(u,R),e.append(R,U),a[12](t)},p(l,[h]){l[4]=="true"?r||(r=I(),r.c(),r.m(i,p)):r&&(r.d(1),r=null),h&8&&e.set_data(y,l[3]),h&3&&k!==(k=(l[1]==0?"-":l[0]?l[0]:"-")+"")&&e.set_data(o,k),h&2&&x!==(x=(l[1]==0?"-":l[1])+"")&&e.set_data(v,x),h&384&&_!==(_="svg Arrow Up "+(l[7]&&l[8]?"Show":"Hidden"))&&e.attr(s,"class",_),h&384&&S!==(S="svg Arrow Down "+(l[7]&&!l[8]?"Show":"Hidden"))&&e.attr(d,"class",S),l[4]=="true"?g||(g=L(),g.c(),g.m(u,P)):g&&(g.d(1),g=null),h&4&&e.set_data(U,l[2]),h&32&&A!==(A=l[5]+" PrizeSec")&&e.attr(u,"class",A),h&32&&n!==(n=l[5]+" casino-tournaments-rank")&&e.attr(t,"class",n),h&32&&f!==(f=l[5]+" casino-tournaments-rank")&&e.attr(t,"part",f)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),r&&r.d(),g&&g.d(),a[12](null)}}}function Z(a,t,i){let{rankprefix:p="#"}=t,{showicon:c="true"}=t,{tournamentid:y=""}=t,{overallrank:k="0"}=t,{userrank:o="0"}=t,{prize:C="PrizeName"}=t,{displayin:x="row"}=t,{clientstyling:v=""}=t,{clientstylingurl:z=""}=t,s,m,_=!1,T=!0,d,b,S,w;const u=n=>{n.data&&n.data.type==`TournamentRankInfo_${y}`&&P(n.data.rankInfo)},P=n=>{let f=r=>{i(0,o=r.rank),i(1,k=r.overallRank),i(2,C=r.prize)};if(!w){w=m,f(n);return}m&&(i(7,_=w!=n.rank),i(8,T=w>n.rank),d=new Date().getTime(),S=setTimeout(()=>{b=new Date().getTime(),(b-d)/1e3>4&&i(7,_=!1),w=m},5e3),f(n))},R=()=>{let n=document.createElement("style");n.innerHTML=v,s.appendChild(n)},U=()=>{let n=new URL(z),f=document.createElement("style");fetch(n.href).then(r=>r.text()).then(r=>{f.innerHTML=r,setTimeout(()=>{s.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(m=o==null?void 0:parseInt(o),w=m,i(0,o=o==null?"-":o),window.addEventListener("message",u,!0),()=>{window.removeEventListener("message",u),clearTimeout(S)}));function A(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,i(6,s)})}return a.$$set=n=>{"rankprefix"in n&&i(3,p=n.rankprefix),"showicon"in n&&i(4,c=n.showicon),"tournamentid"in n&&i(9,y=n.tournamentid),"overallrank"in n&&i(1,k=n.overallrank),"userrank"in n&&i(0,o=n.userrank),"prize"in n&&i(2,C=n.prize),"displayin"in n&&i(5,x=n.displayin),"clientstyling"in n&&i(10,v=n.clientstyling),"clientstylingurl"in n&&i(11,z=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&1088&&s&&v&&R(),a.$$.dirty&2112&&s&&z&&U(),a.$$.dirty&1&&(m=parseInt(o))},[o,k,C,p,c,x,s,_,T,y,v,z,A]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Z,j,e.safe_not_equal,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},E)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[2]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(H,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=H;