@everymatrix/casino-tournaments-rank 0.0.268 → 0.0.271
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,902 +1,43 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
function text(data) {
|
|
45
|
-
return document.createTextNode(data);
|
|
46
|
-
}
|
|
47
|
-
function space() {
|
|
48
|
-
return text(' ');
|
|
49
|
-
}
|
|
50
|
-
function attr(node, attribute, value) {
|
|
51
|
-
if (value == null)
|
|
52
|
-
node.removeAttribute(attribute);
|
|
53
|
-
else if (node.getAttribute(attribute) !== value)
|
|
54
|
-
node.setAttribute(attribute, value);
|
|
55
|
-
}
|
|
56
|
-
function children(element) {
|
|
57
|
-
return Array.from(element.childNodes);
|
|
58
|
-
}
|
|
59
|
-
function custom_event(type, detail) {
|
|
60
|
-
const e = document.createEvent('CustomEvent');
|
|
61
|
-
e.initCustomEvent(type, false, false, detail);
|
|
62
|
-
return e;
|
|
63
|
-
}
|
|
64
|
-
function attribute_to_object(attributes) {
|
|
65
|
-
const result = {};
|
|
66
|
-
for (const attribute of attributes) {
|
|
67
|
-
result[attribute.name] = attribute.value;
|
|
68
|
-
}
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
let current_component;
|
|
73
|
-
function set_current_component(component) {
|
|
74
|
-
current_component = component;
|
|
75
|
-
}
|
|
76
|
-
function get_current_component() {
|
|
77
|
-
if (!current_component)
|
|
78
|
-
throw new Error('Function called outside component initialization');
|
|
79
|
-
return current_component;
|
|
80
|
-
}
|
|
81
|
-
function onMount(fn) {
|
|
82
|
-
get_current_component().$$.on_mount.push(fn);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const dirty_components = [];
|
|
86
|
-
const binding_callbacks = [];
|
|
87
|
-
const render_callbacks = [];
|
|
88
|
-
const flush_callbacks = [];
|
|
89
|
-
const resolved_promise = Promise.resolve();
|
|
90
|
-
let update_scheduled = false;
|
|
91
|
-
function schedule_update() {
|
|
92
|
-
if (!update_scheduled) {
|
|
93
|
-
update_scheduled = true;
|
|
94
|
-
resolved_promise.then(flush);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function add_render_callback(fn) {
|
|
98
|
-
render_callbacks.push(fn);
|
|
99
|
-
}
|
|
100
|
-
let flushing = false;
|
|
101
|
-
const seen_callbacks = new Set();
|
|
102
|
-
function flush() {
|
|
103
|
-
if (flushing)
|
|
104
|
-
return;
|
|
105
|
-
flushing = true;
|
|
106
|
-
do {
|
|
107
|
-
// first, call beforeUpdate functions
|
|
108
|
-
// and update components
|
|
109
|
-
for (let i = 0; i < dirty_components.length; i += 1) {
|
|
110
|
-
const component = dirty_components[i];
|
|
111
|
-
set_current_component(component);
|
|
112
|
-
update(component.$$);
|
|
113
|
-
}
|
|
114
|
-
set_current_component(null);
|
|
115
|
-
dirty_components.length = 0;
|
|
116
|
-
while (binding_callbacks.length)
|
|
117
|
-
binding_callbacks.pop()();
|
|
118
|
-
// then, once components are updated, call
|
|
119
|
-
// afterUpdate functions. This may cause
|
|
120
|
-
// subsequent updates...
|
|
121
|
-
for (let i = 0; i < render_callbacks.length; i += 1) {
|
|
122
|
-
const callback = render_callbacks[i];
|
|
123
|
-
if (!seen_callbacks.has(callback)) {
|
|
124
|
-
// ...so guard against infinite loops
|
|
125
|
-
seen_callbacks.add(callback);
|
|
126
|
-
callback();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
render_callbacks.length = 0;
|
|
130
|
-
} while (dirty_components.length);
|
|
131
|
-
while (flush_callbacks.length) {
|
|
132
|
-
flush_callbacks.pop()();
|
|
133
|
-
}
|
|
134
|
-
update_scheduled = false;
|
|
135
|
-
flushing = false;
|
|
136
|
-
seen_callbacks.clear();
|
|
137
|
-
}
|
|
138
|
-
function update($$) {
|
|
139
|
-
if ($$.fragment !== null) {
|
|
140
|
-
$$.update();
|
|
141
|
-
run_all($$.before_update);
|
|
142
|
-
const dirty = $$.dirty;
|
|
143
|
-
$$.dirty = [-1];
|
|
144
|
-
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
|
145
|
-
$$.after_update.forEach(add_render_callback);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
const outroing = new Set();
|
|
149
|
-
function transition_in(block, local) {
|
|
150
|
-
if (block && block.i) {
|
|
151
|
-
outroing.delete(block);
|
|
152
|
-
block.i(local);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function mount_component(component, target, anchor, customElement) {
|
|
156
|
-
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
|
157
|
-
fragment && fragment.m(target, anchor);
|
|
158
|
-
if (!customElement) {
|
|
159
|
-
// onMount happens before the initial afterUpdate
|
|
160
|
-
add_render_callback(() => {
|
|
161
|
-
const new_on_destroy = on_mount.map(run).filter(is_function);
|
|
162
|
-
if (on_destroy) {
|
|
163
|
-
on_destroy.push(...new_on_destroy);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
// Edge case - component was destroyed immediately,
|
|
167
|
-
// most likely as a result of a binding initialising
|
|
168
|
-
run_all(new_on_destroy);
|
|
169
|
-
}
|
|
170
|
-
component.$$.on_mount = [];
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
after_update.forEach(add_render_callback);
|
|
174
|
-
}
|
|
175
|
-
function destroy_component(component, detaching) {
|
|
176
|
-
const $$ = component.$$;
|
|
177
|
-
if ($$.fragment !== null) {
|
|
178
|
-
run_all($$.on_destroy);
|
|
179
|
-
$$.fragment && $$.fragment.d(detaching);
|
|
180
|
-
// TODO null out other refs, including component.$$ (but need to
|
|
181
|
-
// preserve final state?)
|
|
182
|
-
$$.on_destroy = $$.fragment = null;
|
|
183
|
-
$$.ctx = [];
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function make_dirty(component, i) {
|
|
187
|
-
if (component.$$.dirty[0] === -1) {
|
|
188
|
-
dirty_components.push(component);
|
|
189
|
-
schedule_update();
|
|
190
|
-
component.$$.dirty.fill(0);
|
|
191
|
-
}
|
|
192
|
-
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
|
193
|
-
}
|
|
194
|
-
function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
|
|
195
|
-
const parent_component = current_component;
|
|
196
|
-
set_current_component(component);
|
|
197
|
-
const $$ = component.$$ = {
|
|
198
|
-
fragment: null,
|
|
199
|
-
ctx: null,
|
|
200
|
-
// state
|
|
201
|
-
props,
|
|
202
|
-
update: noop,
|
|
203
|
-
not_equal,
|
|
204
|
-
bound: blank_object(),
|
|
205
|
-
// lifecycle
|
|
206
|
-
on_mount: [],
|
|
207
|
-
on_destroy: [],
|
|
208
|
-
on_disconnect: [],
|
|
209
|
-
before_update: [],
|
|
210
|
-
after_update: [],
|
|
211
|
-
context: new Map(parent_component ? parent_component.$$.context : options.context || []),
|
|
212
|
-
// everything else
|
|
213
|
-
callbacks: blank_object(),
|
|
214
|
-
dirty,
|
|
215
|
-
skip_bound: false
|
|
216
|
-
};
|
|
217
|
-
let ready = false;
|
|
218
|
-
$$.ctx = instance
|
|
219
|
-
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
|
220
|
-
const value = rest.length ? rest[0] : ret;
|
|
221
|
-
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
|
222
|
-
if (!$$.skip_bound && $$.bound[i])
|
|
223
|
-
$$.bound[i](value);
|
|
224
|
-
if (ready)
|
|
225
|
-
make_dirty(component, i);
|
|
226
|
-
}
|
|
227
|
-
return ret;
|
|
228
|
-
})
|
|
229
|
-
: [];
|
|
230
|
-
$$.update();
|
|
231
|
-
ready = true;
|
|
232
|
-
run_all($$.before_update);
|
|
233
|
-
// `false` as a special case of no DOM component
|
|
234
|
-
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
|
235
|
-
if (options.target) {
|
|
236
|
-
if (options.hydrate) {
|
|
237
|
-
const nodes = children(options.target);
|
|
238
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
239
|
-
$$.fragment && $$.fragment.l(nodes);
|
|
240
|
-
nodes.forEach(detach);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
244
|
-
$$.fragment && $$.fragment.c();
|
|
245
|
-
}
|
|
246
|
-
if (options.intro)
|
|
247
|
-
transition_in(component.$$.fragment);
|
|
248
|
-
mount_component(component, options.target, options.anchor, options.customElement);
|
|
249
|
-
flush();
|
|
250
|
-
}
|
|
251
|
-
set_current_component(parent_component);
|
|
252
|
-
}
|
|
253
|
-
let SvelteElement;
|
|
254
|
-
if (typeof HTMLElement === 'function') {
|
|
255
|
-
SvelteElement = class extends HTMLElement {
|
|
256
|
-
constructor() {
|
|
257
|
-
super();
|
|
258
|
-
this.attachShadow({ mode: 'open' });
|
|
259
|
-
}
|
|
260
|
-
connectedCallback() {
|
|
261
|
-
const { on_mount } = this.$$;
|
|
262
|
-
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
|
263
|
-
// @ts-ignore todo: improve typings
|
|
264
|
-
for (const key in this.$$.slotted) {
|
|
265
|
-
// @ts-ignore todo: improve typings
|
|
266
|
-
this.appendChild(this.$$.slotted[key]);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
attributeChangedCallback(attr, _oldValue, newValue) {
|
|
270
|
-
this[attr] = newValue;
|
|
271
|
-
}
|
|
272
|
-
disconnectedCallback() {
|
|
273
|
-
run_all(this.$$.on_disconnect);
|
|
274
|
-
}
|
|
275
|
-
$destroy() {
|
|
276
|
-
destroy_component(this, 1);
|
|
277
|
-
this.$destroy = noop;
|
|
278
|
-
}
|
|
279
|
-
$on(type, callback) {
|
|
280
|
-
// TODO should this delegate to addEventListener?
|
|
281
|
-
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
|
282
|
-
callbacks.push(callback);
|
|
283
|
-
return () => {
|
|
284
|
-
const index = callbacks.indexOf(callback);
|
|
285
|
-
if (index !== -1)
|
|
286
|
-
callbacks.splice(index, 1);
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
$set($$props) {
|
|
290
|
-
if (this.$$set && !is_empty($$props)) {
|
|
291
|
-
this.$$.skip_bound = true;
|
|
292
|
-
this.$$set($$props);
|
|
293
|
-
this.$$.skip_bound = false;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
function dispatch_dev(type, detail) {
|
|
300
|
-
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail)));
|
|
301
|
-
}
|
|
302
|
-
function append_dev(target, node) {
|
|
303
|
-
dispatch_dev('SvelteDOMInsert', { target, node });
|
|
304
|
-
append(target, node);
|
|
305
|
-
}
|
|
306
|
-
function insert_dev(target, node, anchor) {
|
|
307
|
-
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
|
308
|
-
insert(target, node, anchor);
|
|
309
|
-
}
|
|
310
|
-
function detach_dev(node) {
|
|
311
|
-
dispatch_dev('SvelteDOMRemove', { node });
|
|
312
|
-
detach(node);
|
|
313
|
-
}
|
|
314
|
-
function attr_dev(node, attribute, value) {
|
|
315
|
-
attr(node, attribute, value);
|
|
316
|
-
if (value == null)
|
|
317
|
-
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
|
318
|
-
else
|
|
319
|
-
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
|
320
|
-
}
|
|
321
|
-
function set_data_dev(text, data) {
|
|
322
|
-
data = '' + data;
|
|
323
|
-
if (text.wholeText === data)
|
|
324
|
-
return;
|
|
325
|
-
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
|
326
|
-
text.data = data;
|
|
327
|
-
}
|
|
328
|
-
function validate_slots(name, slot, keys) {
|
|
329
|
-
for (const slot_key of Object.keys(slot)) {
|
|
330
|
-
if (!~keys.indexOf(slot_key)) {
|
|
331
|
-
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
var img$3 = "data:image/svg+xml,%3csvg 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'%3e %3cpath 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=''%3e %3c/path%3e%3c/svg%3e";
|
|
337
|
-
|
|
338
|
-
var img$2 = "data:image/svg+xml,%3csvg 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'%3e %3cpath 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'%3e %3c/path%3e%3c/svg%3e";
|
|
339
|
-
|
|
340
|
-
var img$1 = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'%3e %3c/path%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
|
|
341
|
-
|
|
342
|
-
var img = "data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
|
|
343
|
-
|
|
344
|
-
/* src/CasinoTournamentsRank.svelte generated by Svelte v3.37.0 */
|
|
345
|
-
const file = "src/CasinoTournamentsRank.svelte";
|
|
346
|
-
|
|
347
|
-
// (71:4) {#if showicon== 'true'}
|
|
348
|
-
function create_if_block_1(ctx) {
|
|
349
|
-
let span;
|
|
350
|
-
let img;
|
|
351
|
-
let img_src_value;
|
|
352
|
-
|
|
353
|
-
const block = {
|
|
354
|
-
c: function create() {
|
|
355
|
-
span = element("span");
|
|
356
|
-
img = element("img");
|
|
357
|
-
attr_dev(img, "alt", "user");
|
|
358
|
-
if (img.src !== (img_src_value = img$2)) attr_dev(img, "src", img_src_value);
|
|
359
|
-
add_location(img, file, 72, 6, 2402);
|
|
360
|
-
attr_dev(span, "class", "Icon UserIcon");
|
|
361
|
-
add_location(span, file, 71, 4, 2367);
|
|
362
|
-
},
|
|
363
|
-
m: function mount(target, anchor) {
|
|
364
|
-
insert_dev(target, span, anchor);
|
|
365
|
-
append_dev(span, img);
|
|
366
|
-
},
|
|
367
|
-
p: noop,
|
|
368
|
-
d: function destroy(detaching) {
|
|
369
|
-
if (detaching) detach_dev(span);
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
374
|
-
block,
|
|
375
|
-
id: create_if_block_1.name,
|
|
376
|
-
type: "if",
|
|
377
|
-
source: "(71:4) {#if showicon== 'true'}",
|
|
378
|
-
ctx
|
|
379
|
-
});
|
|
380
|
-
|
|
381
|
-
return block;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
// (82:4) {#if showicon== 'true'}
|
|
385
|
-
function create_if_block(ctx) {
|
|
386
|
-
let span;
|
|
387
|
-
let img;
|
|
388
|
-
let img_src_value;
|
|
389
|
-
|
|
390
|
-
const block = {
|
|
391
|
-
c: function create() {
|
|
392
|
-
span = element("span");
|
|
393
|
-
img = element("img");
|
|
394
|
-
attr_dev(img, "alt", "prize");
|
|
395
|
-
if (img.src !== (img_src_value = img$3)) attr_dev(img, "src", img_src_value);
|
|
396
|
-
add_location(img, file, 83, 6, 3084);
|
|
397
|
-
attr_dev(span, "class", "Icon PrizeIcon");
|
|
398
|
-
add_location(span, file, 82, 4, 3048);
|
|
399
|
-
},
|
|
400
|
-
m: function mount(target, anchor) {
|
|
401
|
-
insert_dev(target, span, anchor);
|
|
402
|
-
append_dev(span, img);
|
|
403
|
-
},
|
|
404
|
-
p: noop,
|
|
405
|
-
d: function destroy(detaching) {
|
|
406
|
-
if (detaching) detach_dev(span);
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
411
|
-
block,
|
|
412
|
-
id: create_if_block.name,
|
|
413
|
-
type: "if",
|
|
414
|
-
source: "(82:4) {#if showicon== 'true'}",
|
|
415
|
-
ctx
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
return block;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
function create_fragment(ctx) {
|
|
422
|
-
let div2;
|
|
423
|
-
let div0;
|
|
424
|
-
let t0;
|
|
425
|
-
let span0;
|
|
426
|
-
let t1;
|
|
427
|
-
|
|
428
|
-
let t2_value = (/*overallrank*/ ctx[1] == 0
|
|
429
|
-
? "-"
|
|
430
|
-
: /*userrank*/ ctx[0] ? /*userrank*/ ctx[0] : "-") + "";
|
|
431
|
-
|
|
432
|
-
let t2;
|
|
433
|
-
let t3;
|
|
434
|
-
|
|
435
|
-
let t4_value = (/*overallrank*/ ctx[1] == 0
|
|
436
|
-
? "-"
|
|
437
|
-
: /*overallrank*/ ctx[1]) + "";
|
|
438
|
-
|
|
439
|
-
let t4;
|
|
440
|
-
let t5;
|
|
441
|
-
let img0;
|
|
442
|
-
let img0_src_value;
|
|
443
|
-
let img0_class_value;
|
|
444
|
-
let t6;
|
|
445
|
-
let img1;
|
|
446
|
-
let img1_src_value;
|
|
447
|
-
let img1_class_value;
|
|
448
|
-
let t7;
|
|
449
|
-
let div1;
|
|
450
|
-
let t8;
|
|
451
|
-
let span1;
|
|
452
|
-
let t9;
|
|
453
|
-
let div1_class_value;
|
|
454
|
-
let div2_class_value;
|
|
455
|
-
let if_block0 = /*showicon*/ ctx[4] == "true" && create_if_block_1(ctx);
|
|
456
|
-
let if_block1 = /*showicon*/ ctx[4] == "true" && create_if_block(ctx);
|
|
457
|
-
|
|
458
|
-
const block = {
|
|
459
|
-
c: function create() {
|
|
460
|
-
div2 = element("div");
|
|
461
|
-
div0 = element("div");
|
|
462
|
-
if (if_block0) if_block0.c();
|
|
463
|
-
t0 = space();
|
|
464
|
-
span0 = element("span");
|
|
465
|
-
t1 = text(/*rankprefix*/ ctx[3]);
|
|
466
|
-
t2 = text(t2_value);
|
|
467
|
-
t3 = text("/");
|
|
468
|
-
t4 = text(t4_value);
|
|
469
|
-
t5 = space();
|
|
470
|
-
img0 = element("img");
|
|
471
|
-
t6 = space();
|
|
472
|
-
img1 = element("img");
|
|
473
|
-
t7 = space();
|
|
474
|
-
div1 = element("div");
|
|
475
|
-
if (if_block1) if_block1.c();
|
|
476
|
-
t8 = space();
|
|
477
|
-
span1 = element("span");
|
|
478
|
-
t9 = text(/*prize*/ ctx[2]);
|
|
479
|
-
this.c = noop;
|
|
480
|
-
attr_dev(img0, "part", "Rank_Arror_UP");
|
|
481
|
-
attr_dev(img0, "alt", "Rank Up");
|
|
482
|
-
if (img0.src !== (img0_src_value = img$1)) attr_dev(img0, "src", img0_src_value);
|
|
483
|
-
attr_dev(img0, "width", "20");
|
|
484
|
-
attr_dev(img0, "height", "20");
|
|
485
|
-
|
|
486
|
-
attr_dev(img0, "class", img0_class_value = "svg Arrow Up " + (/*userRankChanged*/ ctx[6] && /*isRankingUp*/ ctx[7]
|
|
487
|
-
? "Show"
|
|
488
|
-
: "Hidden"));
|
|
489
|
-
|
|
490
|
-
add_location(img0, file, 76, 6, 2611);
|
|
491
|
-
attr_dev(img1, "part", "Rank_Arror_Down");
|
|
492
|
-
attr_dev(img1, "alt", "Rank Down");
|
|
493
|
-
if (img1.src !== (img1_src_value = img)) attr_dev(img1, "src", img1_src_value);
|
|
494
|
-
attr_dev(img1, "width", "10");
|
|
495
|
-
attr_dev(img1, "height", "10");
|
|
496
|
-
|
|
497
|
-
attr_dev(img1, "class", img1_class_value = "svg Arrow Down " + (/*userRankChanged*/ ctx[6] && !/*isRankingUp*/ ctx[7]
|
|
498
|
-
? "Show"
|
|
499
|
-
: "Hidden"));
|
|
500
|
-
|
|
501
|
-
add_location(img1, file, 77, 6, 2777);
|
|
502
|
-
attr_dev(span0, "class", "RankInfo");
|
|
503
|
-
attr_dev(span0, "part", "RankText");
|
|
504
|
-
add_location(span0, file, 75, 4, 2463);
|
|
505
|
-
attr_dev(div0, "class", "RankSec");
|
|
506
|
-
attr_dev(div0, "part", "Rank");
|
|
507
|
-
add_location(div0, file, 69, 2, 2301);
|
|
508
|
-
attr_dev(span1, "class", "RankInfo UserPrize");
|
|
509
|
-
attr_dev(span1, "part", "PrizeText");
|
|
510
|
-
add_location(span1, file, 86, 4, 3147);
|
|
511
|
-
attr_dev(div1, "class", div1_class_value = "" + (/*displayin*/ ctx[5] + " PrizeSec"));
|
|
512
|
-
attr_dev(div1, "part", "Prize");
|
|
513
|
-
add_location(div1, file, 80, 2, 2968);
|
|
514
|
-
attr_dev(div2, "class", div2_class_value = "" + (/*displayin*/ ctx[5] + " casino-tournaments-rank"));
|
|
515
|
-
add_location(div2, file, 68, 0, 2249);
|
|
516
|
-
},
|
|
517
|
-
l: function claim(nodes) {
|
|
518
|
-
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
519
|
-
},
|
|
520
|
-
m: function mount(target, anchor) {
|
|
521
|
-
insert_dev(target, div2, anchor);
|
|
522
|
-
append_dev(div2, div0);
|
|
523
|
-
if (if_block0) if_block0.m(div0, null);
|
|
524
|
-
append_dev(div0, t0);
|
|
525
|
-
append_dev(div0, span0);
|
|
526
|
-
append_dev(span0, t1);
|
|
527
|
-
append_dev(span0, t2);
|
|
528
|
-
append_dev(span0, t3);
|
|
529
|
-
append_dev(span0, t4);
|
|
530
|
-
append_dev(span0, t5);
|
|
531
|
-
append_dev(span0, img0);
|
|
532
|
-
append_dev(span0, t6);
|
|
533
|
-
append_dev(span0, img1);
|
|
534
|
-
append_dev(div2, t7);
|
|
535
|
-
append_dev(div2, div1);
|
|
536
|
-
if (if_block1) if_block1.m(div1, null);
|
|
537
|
-
append_dev(div1, t8);
|
|
538
|
-
append_dev(div1, span1);
|
|
539
|
-
append_dev(span1, t9);
|
|
540
|
-
},
|
|
541
|
-
p: function update(ctx, [dirty]) {
|
|
542
|
-
if (/*showicon*/ ctx[4] == "true") {
|
|
543
|
-
if (if_block0) {
|
|
544
|
-
if_block0.p(ctx, dirty);
|
|
545
|
-
} else {
|
|
546
|
-
if_block0 = create_if_block_1(ctx);
|
|
547
|
-
if_block0.c();
|
|
548
|
-
if_block0.m(div0, t0);
|
|
549
|
-
}
|
|
550
|
-
} else if (if_block0) {
|
|
551
|
-
if_block0.d(1);
|
|
552
|
-
if_block0 = null;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
if (dirty & /*rankprefix*/ 8) set_data_dev(t1, /*rankprefix*/ ctx[3]);
|
|
556
|
-
|
|
557
|
-
if (dirty & /*overallrank, userrank*/ 3 && t2_value !== (t2_value = (/*overallrank*/ ctx[1] == 0
|
|
558
|
-
? "-"
|
|
559
|
-
: /*userrank*/ ctx[0] ? /*userrank*/ ctx[0] : "-") + "")) set_data_dev(t2, t2_value);
|
|
560
|
-
|
|
561
|
-
if (dirty & /*overallrank*/ 2 && t4_value !== (t4_value = (/*overallrank*/ ctx[1] == 0
|
|
562
|
-
? "-"
|
|
563
|
-
: /*overallrank*/ ctx[1]) + "")) set_data_dev(t4, t4_value);
|
|
564
|
-
|
|
565
|
-
if (dirty & /*userRankChanged, isRankingUp*/ 192 && img0_class_value !== (img0_class_value = "svg Arrow Up " + (/*userRankChanged*/ ctx[6] && /*isRankingUp*/ ctx[7]
|
|
566
|
-
? "Show"
|
|
567
|
-
: "Hidden"))) {
|
|
568
|
-
attr_dev(img0, "class", img0_class_value);
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
if (dirty & /*userRankChanged, isRankingUp*/ 192 && img1_class_value !== (img1_class_value = "svg Arrow Down " + (/*userRankChanged*/ ctx[6] && !/*isRankingUp*/ ctx[7]
|
|
572
|
-
? "Show"
|
|
573
|
-
: "Hidden"))) {
|
|
574
|
-
attr_dev(img1, "class", img1_class_value);
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (/*showicon*/ ctx[4] == "true") {
|
|
578
|
-
if (if_block1) {
|
|
579
|
-
if_block1.p(ctx, dirty);
|
|
580
|
-
} else {
|
|
581
|
-
if_block1 = create_if_block(ctx);
|
|
582
|
-
if_block1.c();
|
|
583
|
-
if_block1.m(div1, t8);
|
|
584
|
-
}
|
|
585
|
-
} else if (if_block1) {
|
|
586
|
-
if_block1.d(1);
|
|
587
|
-
if_block1 = null;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
if (dirty & /*prize*/ 4) set_data_dev(t9, /*prize*/ ctx[2]);
|
|
591
|
-
|
|
592
|
-
if (dirty & /*displayin*/ 32 && div1_class_value !== (div1_class_value = "" + (/*displayin*/ ctx[5] + " PrizeSec"))) {
|
|
593
|
-
attr_dev(div1, "class", div1_class_value);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
if (dirty & /*displayin*/ 32 && div2_class_value !== (div2_class_value = "" + (/*displayin*/ ctx[5] + " casino-tournaments-rank"))) {
|
|
597
|
-
attr_dev(div2, "class", div2_class_value);
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
i: noop,
|
|
601
|
-
o: noop,
|
|
602
|
-
d: function destroy(detaching) {
|
|
603
|
-
if (detaching) detach_dev(div2);
|
|
604
|
-
if (if_block0) if_block0.d();
|
|
605
|
-
if (if_block1) if_block1.d();
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
610
|
-
block,
|
|
611
|
-
id: create_fragment.name,
|
|
612
|
-
type: "component",
|
|
613
|
-
source: "",
|
|
614
|
-
ctx
|
|
615
|
-
});
|
|
616
|
-
|
|
617
|
-
return block;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
function instance($$self, $$props, $$invalidate) {
|
|
621
|
-
let { $$slots: slots = {}, $$scope } = $$props;
|
|
622
|
-
validate_slots("undefined", slots, []);
|
|
623
|
-
let { rankprefix = "#" } = $$props;
|
|
624
|
-
let { showicon = "true" } = $$props;
|
|
625
|
-
let { tournamentid = "" } = $$props;
|
|
626
|
-
let { overallrank = "0" } = $$props;
|
|
627
|
-
let { userrank = "0" } = $$props;
|
|
628
|
-
let { prize = "PrizeName" } = $$props;
|
|
629
|
-
let { displayin = "row" } = $$props;
|
|
630
|
-
let currentUserRank;
|
|
631
|
-
let userRankChanged = false;
|
|
632
|
-
let isRankingUp = true;
|
|
633
|
-
let rankChangeTime1, rankChangeTime2;
|
|
634
|
-
let rankChangeTimer;
|
|
635
|
-
let lastRank;
|
|
636
|
-
|
|
637
|
-
const messageHandler = e => {
|
|
638
|
-
if (!e.data) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
if (e.data.type == `TournamentRankInfo_${tournamentid}`) {
|
|
643
|
-
processRankChange(e.data.rankInfo);
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
const processRankChange = rankInfo => {
|
|
648
|
-
let resetUserRankInfo = rankInfo => {
|
|
649
|
-
$$invalidate(0, userrank = rankInfo.rank);
|
|
650
|
-
$$invalidate(1, overallrank = rankInfo.overallRank);
|
|
651
|
-
$$invalidate(2, prize = rankInfo.prize);
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
if (!lastRank) {
|
|
655
|
-
lastRank = currentUserRank;
|
|
656
|
-
resetUserRankInfo(rankInfo);
|
|
657
|
-
return; // first place bet, do not show change flag
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
if (currentUserRank) {
|
|
661
|
-
$$invalidate(6, userRankChanged = lastRank != rankInfo.rank);
|
|
662
|
-
$$invalidate(7, isRankingUp = lastRank > rankInfo.rank);
|
|
663
|
-
rankChangeTime1 = new Date().getTime(); //reset time1, make sure userrank change more than once during 5mins
|
|
664
|
-
|
|
665
|
-
rankChangeTimer = setTimeout(
|
|
666
|
-
() => {
|
|
667
|
-
rankChangeTime2 = new Date().getTime();
|
|
668
|
-
let timeInterval = (rankChangeTime2 - rankChangeTime1) / 1000;
|
|
669
|
-
|
|
670
|
-
if (timeInterval > 4) {
|
|
671
|
-
$$invalidate(6, userRankChanged = false);
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
lastRank = currentUserRank;
|
|
675
|
-
},
|
|
676
|
-
5000
|
|
677
|
-
);
|
|
678
|
-
|
|
679
|
-
resetUserRankInfo(rankInfo);
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
onMount(() => {
|
|
684
|
-
currentUserRank = userrank == undefined ? undefined : parseInt(userrank);
|
|
685
|
-
lastRank = currentUserRank;
|
|
686
|
-
$$invalidate(0, userrank = userrank == undefined ? "-" : userrank);
|
|
687
|
-
window.addEventListener("message", messageHandler, true);
|
|
688
|
-
|
|
689
|
-
return () => {
|
|
690
|
-
window.removeEventListener("message", messageHandler);
|
|
691
|
-
clearTimeout(rankChangeTimer);
|
|
692
|
-
};
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
const writable_props = [
|
|
696
|
-
"rankprefix",
|
|
697
|
-
"showicon",
|
|
698
|
-
"tournamentid",
|
|
699
|
-
"overallrank",
|
|
700
|
-
"userrank",
|
|
701
|
-
"prize",
|
|
702
|
-
"displayin"
|
|
703
|
-
];
|
|
704
|
-
|
|
705
|
-
Object.keys($$props).forEach(key => {
|
|
706
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
707
|
-
});
|
|
708
|
-
|
|
709
|
-
$$self.$$set = $$props => {
|
|
710
|
-
if ("rankprefix" in $$props) $$invalidate(3, rankprefix = $$props.rankprefix);
|
|
711
|
-
if ("showicon" in $$props) $$invalidate(4, showicon = $$props.showicon);
|
|
712
|
-
if ("tournamentid" in $$props) $$invalidate(8, tournamentid = $$props.tournamentid);
|
|
713
|
-
if ("overallrank" in $$props) $$invalidate(1, overallrank = $$props.overallrank);
|
|
714
|
-
if ("userrank" in $$props) $$invalidate(0, userrank = $$props.userrank);
|
|
715
|
-
if ("prize" in $$props) $$invalidate(2, prize = $$props.prize);
|
|
716
|
-
if ("displayin" in $$props) $$invalidate(5, displayin = $$props.displayin);
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
$$self.$capture_state = () => ({
|
|
720
|
-
onMount,
|
|
721
|
-
prizeSvg: img$3,
|
|
722
|
-
userSvg: img$2,
|
|
723
|
-
arrowUpSvg: img$1,
|
|
724
|
-
arrowDownSvg: img,
|
|
725
|
-
rankprefix,
|
|
726
|
-
showicon,
|
|
727
|
-
tournamentid,
|
|
728
|
-
overallrank,
|
|
729
|
-
userrank,
|
|
730
|
-
prize,
|
|
731
|
-
displayin,
|
|
732
|
-
currentUserRank,
|
|
733
|
-
userRankChanged,
|
|
734
|
-
isRankingUp,
|
|
735
|
-
rankChangeTime1,
|
|
736
|
-
rankChangeTime2,
|
|
737
|
-
rankChangeTimer,
|
|
738
|
-
lastRank,
|
|
739
|
-
messageHandler,
|
|
740
|
-
processRankChange
|
|
741
|
-
});
|
|
742
|
-
|
|
743
|
-
$$self.$inject_state = $$props => {
|
|
744
|
-
if ("rankprefix" in $$props) $$invalidate(3, rankprefix = $$props.rankprefix);
|
|
745
|
-
if ("showicon" in $$props) $$invalidate(4, showicon = $$props.showicon);
|
|
746
|
-
if ("tournamentid" in $$props) $$invalidate(8, tournamentid = $$props.tournamentid);
|
|
747
|
-
if ("overallrank" in $$props) $$invalidate(1, overallrank = $$props.overallrank);
|
|
748
|
-
if ("userrank" in $$props) $$invalidate(0, userrank = $$props.userrank);
|
|
749
|
-
if ("prize" in $$props) $$invalidate(2, prize = $$props.prize);
|
|
750
|
-
if ("displayin" in $$props) $$invalidate(5, displayin = $$props.displayin);
|
|
751
|
-
if ("currentUserRank" in $$props) currentUserRank = $$props.currentUserRank;
|
|
752
|
-
if ("userRankChanged" in $$props) $$invalidate(6, userRankChanged = $$props.userRankChanged);
|
|
753
|
-
if ("isRankingUp" in $$props) $$invalidate(7, isRankingUp = $$props.isRankingUp);
|
|
754
|
-
if ("rankChangeTime1" in $$props) rankChangeTime1 = $$props.rankChangeTime1;
|
|
755
|
-
if ("rankChangeTime2" in $$props) rankChangeTime2 = $$props.rankChangeTime2;
|
|
756
|
-
if ("rankChangeTimer" in $$props) rankChangeTimer = $$props.rankChangeTimer;
|
|
757
|
-
if ("lastRank" in $$props) lastRank = $$props.lastRank;
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
if ($$props && "$$inject" in $$props) {
|
|
761
|
-
$$self.$inject_state($$props.$$inject);
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
$$self.$$.update = () => {
|
|
765
|
-
if ($$self.$$.dirty & /*userrank*/ 1) {
|
|
766
|
-
currentUserRank = parseInt(userrank);
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
return [
|
|
771
|
-
userrank,
|
|
772
|
-
overallrank,
|
|
773
|
-
prize,
|
|
774
|
-
rankprefix,
|
|
775
|
-
showicon,
|
|
776
|
-
displayin,
|
|
777
|
-
userRankChanged,
|
|
778
|
-
isRankingUp,
|
|
779
|
-
tournamentid
|
|
780
|
-
];
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
class CasinoTournamentsRank extends SvelteElement {
|
|
784
|
-
constructor(options) {
|
|
785
|
-
super();
|
|
786
|
-
this.shadowRoot.innerHTML = `<style>.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}.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{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}</style>`;
|
|
787
|
-
|
|
788
|
-
init(
|
|
789
|
-
this,
|
|
790
|
-
{
|
|
791
|
-
target: this.shadowRoot,
|
|
792
|
-
props: attribute_to_object(this.attributes),
|
|
793
|
-
customElement: true
|
|
794
|
-
},
|
|
795
|
-
instance,
|
|
796
|
-
create_fragment,
|
|
797
|
-
safe_not_equal,
|
|
798
|
-
{
|
|
799
|
-
rankprefix: 3,
|
|
800
|
-
showicon: 4,
|
|
801
|
-
tournamentid: 8,
|
|
802
|
-
overallrank: 1,
|
|
803
|
-
userrank: 0,
|
|
804
|
-
prize: 2,
|
|
805
|
-
displayin: 5
|
|
806
|
-
}
|
|
807
|
-
);
|
|
808
|
-
|
|
809
|
-
if (options) {
|
|
810
|
-
if (options.target) {
|
|
811
|
-
insert_dev(options.target, this, options.anchor);
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
if (options.props) {
|
|
815
|
-
this.$set(options.props);
|
|
816
|
-
flush();
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
static get observedAttributes() {
|
|
822
|
-
return [
|
|
823
|
-
"rankprefix",
|
|
824
|
-
"showicon",
|
|
825
|
-
"tournamentid",
|
|
826
|
-
"overallrank",
|
|
827
|
-
"userrank",
|
|
828
|
-
"prize",
|
|
829
|
-
"displayin"
|
|
830
|
-
];
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
get rankprefix() {
|
|
834
|
-
return this.$$.ctx[3];
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
set rankprefix(rankprefix) {
|
|
838
|
-
this.$set({ rankprefix });
|
|
839
|
-
flush();
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
get showicon() {
|
|
843
|
-
return this.$$.ctx[4];
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
set showicon(showicon) {
|
|
847
|
-
this.$set({ showicon });
|
|
848
|
-
flush();
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
get tournamentid() {
|
|
852
|
-
return this.$$.ctx[8];
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
set tournamentid(tournamentid) {
|
|
856
|
-
this.$set({ tournamentid });
|
|
857
|
-
flush();
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
get overallrank() {
|
|
861
|
-
return this.$$.ctx[1];
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
set overallrank(overallrank) {
|
|
865
|
-
this.$set({ overallrank });
|
|
866
|
-
flush();
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
get userrank() {
|
|
870
|
-
return this.$$.ctx[0];
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
set userrank(userrank) {
|
|
874
|
-
this.$set({ userrank });
|
|
875
|
-
flush();
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
get prize() {
|
|
879
|
-
return this.$$.ctx[2];
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
set prize(prize) {
|
|
883
|
-
this.$set({ prize });
|
|
884
|
-
flush();
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
get displayin() {
|
|
888
|
-
return this.$$.ctx[5];
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
set displayin(displayin) {
|
|
892
|
-
this.$set({ displayin });
|
|
893
|
-
flush();
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
!customElements.get('casino-tournaments-rank') && customElements.define('casino-tournaments-rank', CasinoTournamentsRank);
|
|
898
|
-
|
|
899
|
-
return CasinoTournamentsRank;
|
|
900
|
-
|
|
901
|
-
})));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function r(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e){t.appendChild(e)}function o(t,e,n){t.insertBefore(e,n||null)}function c(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function p(){return d(" ")}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function u(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function f(t){const e={};for(const n of t)e[n.name]=n.value;return e}let g;function m(t){g=t}function w(t){(function(){if(!g)throw new Error("Function called outside component initialization");return g})().$$.on_mount.push(t)}const x=[],v=[],$=[],k=[],y=Promise.resolve();let _=!1;function b(t){$.push(t)}let z=!1;const C=new Set;function A(){if(!z){z=!0;do{
|
|
2
|
+
// first, call beforeUpdate functions
|
|
3
|
+
// and update components
|
|
4
|
+
for(let t=0;t<x.length;t+=1){const e=x[t];m(e),P(e.$$)}for(m(null),x.length=0;v.length;)v.pop()();
|
|
5
|
+
// then, once components are updated, call
|
|
6
|
+
// afterUpdate functions. This may cause
|
|
7
|
+
// subsequent updates...
|
|
8
|
+
for(let t=0;t<$.length;t+=1){const e=$[t];C.has(e)||(
|
|
9
|
+
// ...so guard against infinite loops
|
|
10
|
+
C.add(e),e())}$.length=0}while(x.length);for(;k.length;)k.pop()();_=!1,z=!1,C.clear()}}function P(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(b)}}const M=new Set;function S(t,e){-1===t.$$.dirty[0]&&(x.push(t),_||(_=!0,y.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function L(a,s,o,l,d,p,h=[-1]){const u=g;m(a);const f=a.$$={fragment:null,ctx:null,
|
|
11
|
+
// state
|
|
12
|
+
props:p,update:t,not_equal:d,bound:n(),
|
|
13
|
+
// lifecycle
|
|
14
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:s.context||[]),
|
|
15
|
+
// everything else
|
|
16
|
+
callbacks:n(),dirty:h,skip_bound:!1};let w=!1;if(f.ctx=o?o(a,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return f.ctx&&d(f.ctx[t],f.ctx[t]=i)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](i),w&&S(a,t)),e})):[],f.update(),w=!0,i(f.before_update),
|
|
17
|
+
// `false` as a special case of no DOM component
|
|
18
|
+
f.fragment=!!l&&l(f.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
20
|
+
f.fragment&&f.fragment.l(t),t.forEach(c)}else
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
22
|
+
f.fragment&&f.fragment.c();s.intro&&((x=a.$$.fragment)&&x.i&&(M.delete(x),x.i(v))),function(t,n,a,s){const{fragment:o,on_mount:c,on_destroy:l,after_update:d}=t.$$;o&&o.m(n,a),s||
|
|
23
|
+
// onMount happens before the initial afterUpdate
|
|
24
|
+
b((()=>{const n=c.map(e).filter(r);l?l.push(...n):
|
|
25
|
+
// Edge case - component was destroyed immediately,
|
|
26
|
+
// most likely as a result of a binding initialising
|
|
27
|
+
i(n),t.$$.on_mount=[]})),d.forEach(b)}(a,s.target,s.anchor,s.customElement),A()}var x,v;m(u)}let R;"function"==typeof HTMLElement&&(R=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);
|
|
28
|
+
// @ts-ignore todo: improve typings
|
|
29
|
+
for(const t in this.$$.slotted)
|
|
30
|
+
// @ts-ignore todo: improve typings
|
|
31
|
+
this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),
|
|
32
|
+
// TODO null out other refs, including component.$$ (but need to
|
|
33
|
+
// preserve final state?)
|
|
34
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
|
|
35
|
+
// TODO should this delegate to addEventListener?
|
|
36
|
+
const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});
|
|
37
|
+
/* src/CasinoTournamentsRank.svelte generated by Svelte v3.37.0 */
|
|
38
|
+
function I(e){let n,i,r;return{c(){n=l("span"),i=l("img"),h(i,"alt","user"),i.src!==(r="data:image/svg+xml,%3csvg 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'%3e %3cpath 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'%3e %3c/path%3e%3c/svg%3e")&&h(i,"src","data:image/svg+xml,%3csvg 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'%3e %3cpath 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'%3e %3c/path%3e%3c/svg%3e"),h(n,"class","Icon UserIcon"),h(n,"part","Icon UserIcon")},m(t,e){o(t,n,e),s(n,i)},p:t,d(t){t&&c(n)}}}
|
|
39
|
+
// (82:4) {#if showicon== 'true'}
|
|
40
|
+
function H(e){let n,i,r;return{c(){n=l("span"),i=l("img"),h(i,"alt","prize"),i.src!==(r="data:image/svg+xml,%3csvg 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'%3e %3cpath 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=''%3e %3c/path%3e%3c/svg%3e")&&h(i,"src","data:image/svg+xml,%3csvg 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'%3e %3cpath 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=''%3e %3c/path%3e%3c/svg%3e"),h(n,"class","Icon PrizeIcon"),h(n,"part","Icon PrizeIcon")},m(t,e){o(t,n,e),s(n,i)},p:t,d(t){t&&c(n)}}}function E(e){let n,i,r,a,f,g,m,w,x,v,$,k,y,_,b,z,C,A,P,M,S,L,R,E,T=/*overallrank*/(0==e[1]?"-":/*userrank*/e[0]?/*userrank*/e[0]:"-")+"",U=/*overallrank*/(0==e[1]?"-":/*overallrank*/e[1])+"",D=/*showicon*/"true"==e[4]&&I(),B=/*showicon*/"true"==e[4]&&H();return{c(){n=l("div"),i=l("div"),D&&D.c(),r=p(),a=l("span"),f=d(/*rankprefix*/e[3]),g=d(T),m=d("/"),w=d(U),x=p(),v=l("img"),y=p(),_=l("img"),C=p(),A=l("div"),B&&B.c(),P=p(),M=l("span"),S=d(/*prize*/e[2]),this.c=t,h(v,"part","Rank_Arror_UP"),h(v,"alt","Rank Up"),v.src!==($="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'%3e %3c/path%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e")&&h(v,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'%3e %3c/path%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),h(v,"width","20"),h(v,"height","20"),h(v,"class",k="svg Arrow Up "+(/*userRankChanged*/e[6]&&/*isRankingUp*/e[7]?"Show":"Hidden")),h(_,"part","Rank_Arror_Down"),h(_,"alt","Rank Down"),_.src!==(b="data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e")&&h(_,"src","data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),h(_,"width","10"),h(_,"height","10"),h(_,"class",z="svg Arrow Down "+(/*userRankChanged*/e[6]&&!/*isRankingUp*/e[7]?"Show":"Hidden")),h(a,"class","RankInfo"),h(a,"part","RankText"),h(i,"class","RankSec"),h(i,"part","Rank"),h(M,"class","RankInfo UserPrize"),h(M,"part","PrizeText"),h(A,"class",L=/*displayin*/e[5]+" PrizeSec"),h(A,"part","Prize"),h(n,"class",R=/*displayin*/e[5]+" casino-tournaments-rank"),h(n,"part",E=/*displayin*/e[5]+" casino-tournaments-rank")},m(t,e){o(t,n,e),s(n,i),D&&D.m(i,null),s(i,r),s(i,a),s(a,f),s(a,g),s(a,m),s(a,w),s(a,x),s(a,v),s(a,y),s(a,_),s(n,C),s(n,A),B&&B.m(A,null),s(A,P),s(A,M),s(M,S)},p(t,[e]){/*showicon*/"true"==t[4]?D?D.p(t,e):(D=I(),D.c(),D.m(i,r)):D&&(D.d(1),D=null),/*rankprefix*/8&e&&u(f,/*rankprefix*/t[3]),/*overallrank, userrank*/3&e&&T!==(T=/*overallrank*/(0==t[1]?"-":/*userrank*/t[0]?/*userrank*/t[0]:"-")+"")&&u(g,T),/*overallrank*/2&e&&U!==(U=/*overallrank*/(0==t[1]?"-":/*overallrank*/t[1])+"")&&u(w,U),/*userRankChanged, isRankingUp*/192&e&&k!==(k="svg Arrow Up "+(/*userRankChanged*/t[6]&&/*isRankingUp*/t[7]?"Show":"Hidden"))&&h(v,"class",k),/*userRankChanged, isRankingUp*/192&e&&z!==(z="svg Arrow Down "+(/*userRankChanged*/t[6]&&!/*isRankingUp*/t[7]?"Show":"Hidden"))&&h(_,"class",z),/*showicon*/"true"==t[4]?B?B.p(t,e):(B=H(),B.c(),B.m(A,P)):B&&(B.d(1),B=null),/*prize*/4&e&&u(S,/*prize*/t[2]),/*displayin*/32&e&&L!==(L=/*displayin*/t[5]+" PrizeSec")&&h(A,"class",L),/*displayin*/32&e&&R!==(R=/*displayin*/t[5]+" casino-tournaments-rank")&&h(n,"class",R),/*displayin*/32&e&&E!==(E=/*displayin*/t[5]+" casino-tournaments-rank")&&h(n,"part",E)},i:t,o:t,d(t){t&&c(n),D&&D.d(),B&&B.d()}}}function T(t,e,n){let i,r,a,s,o,{rankprefix:c="#"}=e,{showicon:l="true"}=e,{tournamentid:d=""}=e,{overallrank:p="0"}=e,{userrank:h="0"}=e,{prize:u="PrizeName"}=e,{displayin:f="row"}=e,g=!1,m=!0;const x=t=>{t.data&&t.data.type==`TournamentRankInfo_${d}`&&v(t.data.rankInfo)},v=t=>{let e=t=>{n(0,h=t.rank),n(1,p=t.overallRank),n(2,u=t.prize)};if(!o)return o=i,void e(t);// first place bet, do not show change flag
|
|
41
|
+
i&&(n(6,g=o!=t.rank),n(7,m=o>t.rank),r=(new Date).getTime(),//reset time1, make sure userrank change more than once during 5mins
|
|
42
|
+
s=setTimeout((()=>{a=(new Date).getTime(),(a-r)/1e3>4&&n(6,g=!1),o=i}),5e3),e(t))};return w((()=>(i=null==h?void 0:parseInt(h),o=i,n(0,h=null==h?"-":h),window.addEventListener("message",x,!0),()=>{window.removeEventListener("message",x),clearTimeout(s)}))),t.$$set=t=>{"rankprefix"in t&&n(3,c=t.rankprefix),"showicon"in t&&n(4,l=t.showicon),"tournamentid"in t&&n(8,d=t.tournamentid),"overallrank"in t&&n(1,p=t.overallrank),"userrank"in t&&n(0,h=t.userrank),"prize"in t&&n(2,u=t.prize),"displayin"in t&&n(5,f=t.displayin)},t.$$.update=()=>{/*userrank*/1&t.$$.dirty&&(i=parseInt(h))},[h,p,u,c,l,f,g,m,d]}class U extends R{constructor(t){super(),this.shadowRoot.innerHTML="<style>.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}.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{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}</style>",L(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},T,E,a,{rankprefix:3,showicon:4,tournamentid:8,overallrank:1,userrank:0,prize:2,displayin:5}),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["rankprefix","showicon","tournamentid","overallrank","userrank","prize","displayin"]}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$set({rankprefix:t}),A()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$set({showicon:t}),A()}get tournamentid(){return this.$$.ctx[8]}set tournamentid(t){this.$set({tournamentid:t}),A()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$set({overallrank:t}),A()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$set({userrank:t}),A()}get prize(){return this.$$.ctx[2]}set prize(t){this.$set({prize:t}),A()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$set({displayin:t}),A()}}return!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",U),U}));
|
|
902
43
|
//# sourceMappingURL=casino-tournaments-rank.js.map
|