@everymatrix/casino-tournaments-tab 1.44.0 → 1.45.2
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.
- package/components/CasinoTournamentsTab-Cq0HAjeo.js +732 -0
- package/components/CasinoTournamentsTab-lSTXOBfS.cjs +1 -0
- package/es2015/casino-tournaments-tab.cjs +1 -0
- package/es2015/casino-tournaments-tab.js +16 -0
- package/package.json +15 -33
- package/README.md +0 -30
- package/dist/casino-tournaments-tab.js +0 -89
- package/dist/casino-tournaments-tab.js.map +0 -1
- package/index.html +0 -37
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -59
- package/src/CasinoTournamentsTab.svelte +0 -186
- package/src/index.ts +0 -4
- package/src/message.js +0 -26
- package/stories/CasinoTournamentsTab.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
var ot = Object.defineProperty, rt = Object.defineProperties;
|
|
2
|
+
var lt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var F = (e, t, n) => t in e ? ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
D.call(t, n) && F(e, n, t[n]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var n of x(t))
|
|
10
|
+
I.call(t, n) && F(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, O = (e, t) => rt(e, lt(t));
|
|
13
|
+
var J = (e, t) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var s in e)
|
|
16
|
+
D.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
|
|
17
|
+
if (e != null && x)
|
|
18
|
+
for (var s of x(e))
|
|
19
|
+
t.indexOf(s) < 0 && I.call(e, s) && (n[s] = e[s]);
|
|
20
|
+
return n;
|
|
21
|
+
};
|
|
22
|
+
var d = (e, t, n) => F(e, typeof t != "symbol" ? t + "" : t, n);
|
|
23
|
+
var V = (e, t, n) => new Promise((s, o) => {
|
|
24
|
+
var i = (u) => {
|
|
25
|
+
try {
|
|
26
|
+
r(n.next(u));
|
|
27
|
+
} catch (c) {
|
|
28
|
+
o(c);
|
|
29
|
+
}
|
|
30
|
+
}, l = (u) => {
|
|
31
|
+
try {
|
|
32
|
+
r(n.throw(u));
|
|
33
|
+
} catch (c) {
|
|
34
|
+
o(c);
|
|
35
|
+
}
|
|
36
|
+
}, r = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(i, l);
|
|
37
|
+
r((n = n.apply(e, t)).next());
|
|
38
|
+
});
|
|
39
|
+
function L() {
|
|
40
|
+
}
|
|
41
|
+
function Z(e) {
|
|
42
|
+
return e();
|
|
43
|
+
}
|
|
44
|
+
function q() {
|
|
45
|
+
return /* @__PURE__ */ Object.create(null);
|
|
46
|
+
}
|
|
47
|
+
function A(e) {
|
|
48
|
+
e.forEach(Z);
|
|
49
|
+
}
|
|
50
|
+
function tt(e) {
|
|
51
|
+
return typeof e == "function";
|
|
52
|
+
}
|
|
53
|
+
function ct(e, t) {
|
|
54
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
|
+
}
|
|
56
|
+
function ut(e) {
|
|
57
|
+
return Object.keys(e).length === 0;
|
|
58
|
+
}
|
|
59
|
+
function m(e, t) {
|
|
60
|
+
e.appendChild(t);
|
|
61
|
+
}
|
|
62
|
+
function at(e, t, n) {
|
|
63
|
+
const s = ft(e);
|
|
64
|
+
if (!s.getElementById(t)) {
|
|
65
|
+
const o = _("style");
|
|
66
|
+
o.id = t, o.textContent = n, dt(s, o);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function ft(e) {
|
|
70
|
+
if (!e) return document;
|
|
71
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
72
|
+
return t && /** @type {ShadowRoot} */
|
|
73
|
+
t.host ? (
|
|
74
|
+
/** @type {ShadowRoot} */
|
|
75
|
+
t
|
|
76
|
+
) : e.ownerDocument;
|
|
77
|
+
}
|
|
78
|
+
function dt(e, t) {
|
|
79
|
+
return m(
|
|
80
|
+
/** @type {Document} */
|
|
81
|
+
e.head || e,
|
|
82
|
+
t
|
|
83
|
+
), t.sheet;
|
|
84
|
+
}
|
|
85
|
+
function M(e, t, n) {
|
|
86
|
+
e.insertBefore(t, n || null);
|
|
87
|
+
}
|
|
88
|
+
function C(e) {
|
|
89
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
90
|
+
}
|
|
91
|
+
function ht(e, t) {
|
|
92
|
+
for (let n = 0; n < e.length; n += 1)
|
|
93
|
+
e[n] && e[n].d(t);
|
|
94
|
+
}
|
|
95
|
+
function _(e) {
|
|
96
|
+
return document.createElement(e);
|
|
97
|
+
}
|
|
98
|
+
function H(e) {
|
|
99
|
+
return document.createTextNode(e);
|
|
100
|
+
}
|
|
101
|
+
function G() {
|
|
102
|
+
return H(" ");
|
|
103
|
+
}
|
|
104
|
+
function $t(e, t, n, s) {
|
|
105
|
+
return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
|
|
106
|
+
}
|
|
107
|
+
function g(e, t, n) {
|
|
108
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
109
|
+
}
|
|
110
|
+
function gt(e) {
|
|
111
|
+
return Array.from(e.childNodes);
|
|
112
|
+
}
|
|
113
|
+
function et(e, t) {
|
|
114
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
|
+
t);
|
|
116
|
+
}
|
|
117
|
+
function bt(e) {
|
|
118
|
+
const t = {};
|
|
119
|
+
return e.childNodes.forEach(
|
|
120
|
+
/** @param {Element} node */
|
|
121
|
+
(n) => {
|
|
122
|
+
t[n.slot || "default"] = !0;
|
|
123
|
+
}
|
|
124
|
+
), t;
|
|
125
|
+
}
|
|
126
|
+
let T;
|
|
127
|
+
function k(e) {
|
|
128
|
+
T = e;
|
|
129
|
+
}
|
|
130
|
+
function mt() {
|
|
131
|
+
if (!T) throw new Error("Function called outside component initialization");
|
|
132
|
+
return T;
|
|
133
|
+
}
|
|
134
|
+
function nt(e) {
|
|
135
|
+
mt().$$.on_mount.push(e);
|
|
136
|
+
}
|
|
137
|
+
const y = [], R = [];
|
|
138
|
+
let E = [];
|
|
139
|
+
const K = [], _t = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let z = !1;
|
|
141
|
+
function pt() {
|
|
142
|
+
z || (z = !0, _t.then(v));
|
|
143
|
+
}
|
|
144
|
+
function B(e) {
|
|
145
|
+
E.push(e);
|
|
146
|
+
}
|
|
147
|
+
const P = /* @__PURE__ */ new Set();
|
|
148
|
+
let w = 0;
|
|
149
|
+
function v() {
|
|
150
|
+
if (w !== 0)
|
|
151
|
+
return;
|
|
152
|
+
const e = T;
|
|
153
|
+
do {
|
|
154
|
+
try {
|
|
155
|
+
for (; w < y.length; ) {
|
|
156
|
+
const t = y[w];
|
|
157
|
+
w++, k(t), wt(t.$$);
|
|
158
|
+
}
|
|
159
|
+
} catch (t) {
|
|
160
|
+
throw y.length = 0, w = 0, t;
|
|
161
|
+
}
|
|
162
|
+
for (k(null), y.length = 0, w = 0; R.length; ) R.pop()();
|
|
163
|
+
for (let t = 0; t < E.length; t += 1) {
|
|
164
|
+
const n = E[t];
|
|
165
|
+
P.has(n) || (P.add(n), n());
|
|
166
|
+
}
|
|
167
|
+
E.length = 0;
|
|
168
|
+
} while (y.length);
|
|
169
|
+
for (; K.length; )
|
|
170
|
+
K.pop()();
|
|
171
|
+
z = !1, P.clear(), k(e);
|
|
172
|
+
}
|
|
173
|
+
function wt(e) {
|
|
174
|
+
if (e.fragment !== null) {
|
|
175
|
+
e.update(), A(e.before_update);
|
|
176
|
+
const t = e.dirty;
|
|
177
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(B);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function yt(e) {
|
|
181
|
+
const t = [], n = [];
|
|
182
|
+
E.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), E = t;
|
|
183
|
+
}
|
|
184
|
+
const vt = /* @__PURE__ */ new Set();
|
|
185
|
+
function Et(e, t) {
|
|
186
|
+
e && e.i && (vt.delete(e), e.i(t));
|
|
187
|
+
}
|
|
188
|
+
function Q(e) {
|
|
189
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
190
|
+
}
|
|
191
|
+
function kt(e, t, n) {
|
|
192
|
+
const { fragment: s, after_update: o } = e.$$;
|
|
193
|
+
s && s.m(t, n), B(() => {
|
|
194
|
+
const i = e.$$.on_mount.map(Z).filter(tt);
|
|
195
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : A(i), e.$$.on_mount = [];
|
|
196
|
+
}), o.forEach(B);
|
|
197
|
+
}
|
|
198
|
+
function Lt(e, t) {
|
|
199
|
+
const n = e.$$;
|
|
200
|
+
n.fragment !== null && (yt(n.after_update), A(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
201
|
+
}
|
|
202
|
+
function Tt(e, t) {
|
|
203
|
+
e.$$.dirty[0] === -1 && (y.push(e), pt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
204
|
+
}
|
|
205
|
+
function Ct(e, t, n, s, o, i, l = null, r = [-1]) {
|
|
206
|
+
const u = T;
|
|
207
|
+
k(e);
|
|
208
|
+
const c = e.$$ = {
|
|
209
|
+
fragment: null,
|
|
210
|
+
ctx: [],
|
|
211
|
+
// state
|
|
212
|
+
props: i,
|
|
213
|
+
update: L,
|
|
214
|
+
not_equal: o,
|
|
215
|
+
bound: q(),
|
|
216
|
+
// lifecycle
|
|
217
|
+
on_mount: [],
|
|
218
|
+
on_destroy: [],
|
|
219
|
+
on_disconnect: [],
|
|
220
|
+
before_update: [],
|
|
221
|
+
after_update: [],
|
|
222
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
223
|
+
// everything else
|
|
224
|
+
callbacks: q(),
|
|
225
|
+
dirty: r,
|
|
226
|
+
skip_bound: !1,
|
|
227
|
+
root: t.target || u.$$.root
|
|
228
|
+
};
|
|
229
|
+
l && l(c.root);
|
|
230
|
+
let h = !1;
|
|
231
|
+
if (c.ctx = n ? n(e, t.props || {}, (a, p, ...b) => {
|
|
232
|
+
const $ = b.length ? b[0] : p;
|
|
233
|
+
return c.ctx && o(c.ctx[a], c.ctx[a] = $) && (!c.skip_bound && c.bound[a] && c.bound[a]($), h && Tt(e, a)), p;
|
|
234
|
+
}) : [], c.update(), h = !0, A(c.before_update), c.fragment = s ? s(c.ctx) : !1, t.target) {
|
|
235
|
+
if (t.hydrate) {
|
|
236
|
+
const a = gt(t.target);
|
|
237
|
+
c.fragment && c.fragment.l(a), a.forEach(C);
|
|
238
|
+
} else
|
|
239
|
+
c.fragment && c.fragment.c();
|
|
240
|
+
t.intro && Et(e.$$.fragment), kt(e, t.target, t.anchor), v();
|
|
241
|
+
}
|
|
242
|
+
k(u);
|
|
243
|
+
}
|
|
244
|
+
let st;
|
|
245
|
+
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
246
|
+
constructor(t, n, s) {
|
|
247
|
+
super();
|
|
248
|
+
/** The Svelte component constructor */
|
|
249
|
+
d(this, "$$ctor");
|
|
250
|
+
/** Slots */
|
|
251
|
+
d(this, "$$s");
|
|
252
|
+
/** The Svelte component instance */
|
|
253
|
+
d(this, "$$c");
|
|
254
|
+
/** Whether or not the custom element is connected */
|
|
255
|
+
d(this, "$$cn", !1);
|
|
256
|
+
/** Component props data */
|
|
257
|
+
d(this, "$$d", {});
|
|
258
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
259
|
+
d(this, "$$r", !1);
|
|
260
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
261
|
+
d(this, "$$p_d", {});
|
|
262
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
263
|
+
d(this, "$$l", {});
|
|
264
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
265
|
+
d(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
266
|
+
this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
|
|
267
|
+
}
|
|
268
|
+
addEventListener(t, n, s) {
|
|
269
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
270
|
+
const o = this.$$c.$on(t, n);
|
|
271
|
+
this.$$l_u.set(n, o);
|
|
272
|
+
}
|
|
273
|
+
super.addEventListener(t, n, s);
|
|
274
|
+
}
|
|
275
|
+
removeEventListener(t, n, s) {
|
|
276
|
+
if (super.removeEventListener(t, n, s), this.$$c) {
|
|
277
|
+
const o = this.$$l_u.get(n);
|
|
278
|
+
o && (o(), this.$$l_u.delete(n));
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
connectedCallback() {
|
|
282
|
+
return V(this, null, function* () {
|
|
283
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
284
|
+
let t = function(i) {
|
|
285
|
+
return () => {
|
|
286
|
+
let l;
|
|
287
|
+
return {
|
|
288
|
+
c: function() {
|
|
289
|
+
l = _("slot"), i !== "default" && g(l, "name", i);
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* @param {HTMLElement} target
|
|
293
|
+
* @param {HTMLElement} [anchor]
|
|
294
|
+
*/
|
|
295
|
+
m: function(c, h) {
|
|
296
|
+
M(c, l, h);
|
|
297
|
+
},
|
|
298
|
+
d: function(c) {
|
|
299
|
+
c && C(l);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
305
|
+
return;
|
|
306
|
+
const n = {}, s = bt(this);
|
|
307
|
+
for (const i of this.$$s)
|
|
308
|
+
i in s && (n[i] = [t(i)]);
|
|
309
|
+
for (const i of this.attributes) {
|
|
310
|
+
const l = this.$$g_p(i.name);
|
|
311
|
+
l in this.$$d || (this.$$d[l] = S(l, i.value, this.$$p_d, "toProp"));
|
|
312
|
+
}
|
|
313
|
+
for (const i in this.$$p_d)
|
|
314
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
315
|
+
this.$$c = new this.$$ctor({
|
|
316
|
+
target: this.shadowRoot || this,
|
|
317
|
+
props: O(j({}, this.$$d), {
|
|
318
|
+
$$slots: n,
|
|
319
|
+
$$scope: {
|
|
320
|
+
ctx: []
|
|
321
|
+
}
|
|
322
|
+
})
|
|
323
|
+
});
|
|
324
|
+
const o = () => {
|
|
325
|
+
this.$$r = !0;
|
|
326
|
+
for (const i in this.$$p_d)
|
|
327
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
328
|
+
const l = S(
|
|
329
|
+
i,
|
|
330
|
+
this.$$d[i],
|
|
331
|
+
this.$$p_d,
|
|
332
|
+
"toAttribute"
|
|
333
|
+
);
|
|
334
|
+
l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
|
|
335
|
+
}
|
|
336
|
+
this.$$r = !1;
|
|
337
|
+
};
|
|
338
|
+
this.$$c.$$.after_update.push(o), o();
|
|
339
|
+
for (const i in this.$$l)
|
|
340
|
+
for (const l of this.$$l[i]) {
|
|
341
|
+
const r = this.$$c.$on(i, l);
|
|
342
|
+
this.$$l_u.set(l, r);
|
|
343
|
+
}
|
|
344
|
+
this.$$l = {};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
349
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
350
|
+
attributeChangedCallback(t, n, s) {
|
|
351
|
+
var o;
|
|
352
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = S(t, s, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
|
|
353
|
+
}
|
|
354
|
+
disconnectedCallback() {
|
|
355
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
356
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
$$g_p(t) {
|
|
360
|
+
return Object.keys(this.$$p_d).find(
|
|
361
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
362
|
+
) || t;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
function S(e, t, n, s) {
|
|
366
|
+
var i;
|
|
367
|
+
const o = (i = n[e]) == null ? void 0 : i.type;
|
|
368
|
+
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
|
|
369
|
+
return t;
|
|
370
|
+
if (s === "toAttribute")
|
|
371
|
+
switch (o) {
|
|
372
|
+
case "Object":
|
|
373
|
+
case "Array":
|
|
374
|
+
return t == null ? null : JSON.stringify(t);
|
|
375
|
+
case "Boolean":
|
|
376
|
+
return t ? "" : null;
|
|
377
|
+
case "Number":
|
|
378
|
+
return t == null ? null : t;
|
|
379
|
+
default:
|
|
380
|
+
return t;
|
|
381
|
+
}
|
|
382
|
+
else
|
|
383
|
+
switch (o) {
|
|
384
|
+
case "Object":
|
|
385
|
+
case "Array":
|
|
386
|
+
return t && JSON.parse(t);
|
|
387
|
+
case "Boolean":
|
|
388
|
+
return t;
|
|
389
|
+
case "Number":
|
|
390
|
+
return t != null ? +t : t;
|
|
391
|
+
default:
|
|
392
|
+
return t;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function xt(e, t, n, s, o, i) {
|
|
396
|
+
let l = class extends st {
|
|
397
|
+
constructor() {
|
|
398
|
+
super(e, n, o), this.$$p_d = t;
|
|
399
|
+
}
|
|
400
|
+
static get observedAttributes() {
|
|
401
|
+
return Object.keys(t).map(
|
|
402
|
+
(r) => (t[r].attribute || r).toLowerCase()
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
return Object.keys(t).forEach((r) => {
|
|
407
|
+
Object.defineProperty(l.prototype, r, {
|
|
408
|
+
get() {
|
|
409
|
+
return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
|
|
410
|
+
},
|
|
411
|
+
set(u) {
|
|
412
|
+
var c;
|
|
413
|
+
u = S(r, u, t), this.$$d[r] = u, (c = this.$$c) == null || c.$set({ [r]: u });
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}), s.forEach((r) => {
|
|
417
|
+
Object.defineProperty(l.prototype, r, {
|
|
418
|
+
get() {
|
|
419
|
+
var u;
|
|
420
|
+
return (u = this.$$c) == null ? void 0 : u[r];
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}), e.element = /** @type {any} */
|
|
424
|
+
l, l;
|
|
425
|
+
}
|
|
426
|
+
class jt {
|
|
427
|
+
constructor() {
|
|
428
|
+
/**
|
|
429
|
+
* ### PRIVATE API
|
|
430
|
+
*
|
|
431
|
+
* Do not use, may change at any time
|
|
432
|
+
*
|
|
433
|
+
* @type {any}
|
|
434
|
+
*/
|
|
435
|
+
d(this, "$$");
|
|
436
|
+
/**
|
|
437
|
+
* ### PRIVATE API
|
|
438
|
+
*
|
|
439
|
+
* Do not use, may change at any time
|
|
440
|
+
*
|
|
441
|
+
* @type {any}
|
|
442
|
+
*/
|
|
443
|
+
d(this, "$$set");
|
|
444
|
+
}
|
|
445
|
+
/** @returns {void} */
|
|
446
|
+
$destroy() {
|
|
447
|
+
Lt(this, 1), this.$destroy = L;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @template {Extract<keyof Events, string>} K
|
|
451
|
+
* @param {K} type
|
|
452
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
453
|
+
* @returns {() => void}
|
|
454
|
+
*/
|
|
455
|
+
$on(t, n) {
|
|
456
|
+
if (!tt(n))
|
|
457
|
+
return L;
|
|
458
|
+
const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
459
|
+
return s.push(n), () => {
|
|
460
|
+
const o = s.indexOf(n);
|
|
461
|
+
o !== -1 && s.splice(o, 1);
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @param {Partial<Props>} props
|
|
466
|
+
* @returns {void}
|
|
467
|
+
*/
|
|
468
|
+
$set(t) {
|
|
469
|
+
this.$$set && !ut(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
const Ot = "4";
|
|
473
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ot);
|
|
474
|
+
const St = (e) => (n) => {
|
|
475
|
+
Object.keys(e).map((s) => {
|
|
476
|
+
if (n.data && n.data.type == s) {
|
|
477
|
+
const o = n.data, { type: i } = o, l = J(o, ["type"]);
|
|
478
|
+
e[s](l);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
}, At = (e) => {
|
|
482
|
+
const t = St(e);
|
|
483
|
+
nt(() => (window.addEventListener("message", t, !1), () => {
|
|
484
|
+
window.removeEventListener("message", t);
|
|
485
|
+
}));
|
|
486
|
+
};
|
|
487
|
+
function Mt(e) {
|
|
488
|
+
at(e, "svelte-1eq8iwl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}");
|
|
489
|
+
}
|
|
490
|
+
function W(e, t, n) {
|
|
491
|
+
const s = e.slice();
|
|
492
|
+
return s[14] = t[n], s;
|
|
493
|
+
}
|
|
494
|
+
function X(e) {
|
|
495
|
+
let t, n, s = (
|
|
496
|
+
/*totalReceiver*/
|
|
497
|
+
e[1][
|
|
498
|
+
/*_tab*/
|
|
499
|
+
e[14]
|
|
500
|
+
] + ""
|
|
501
|
+
), o;
|
|
502
|
+
return {
|
|
503
|
+
c() {
|
|
504
|
+
t = _("sup"), n = _("span"), o = H(s), g(n, "part", "SupText"), g(t, "part", "sup");
|
|
505
|
+
},
|
|
506
|
+
m(i, l) {
|
|
507
|
+
M(i, t, l), m(t, n), m(n, o);
|
|
508
|
+
},
|
|
509
|
+
p(i, l) {
|
|
510
|
+
l & /*totalReceiver, __tabs*/
|
|
511
|
+
18 && s !== (s = /*totalReceiver*/
|
|
512
|
+
i[1][
|
|
513
|
+
/*_tab*/
|
|
514
|
+
i[14]
|
|
515
|
+
] + "") && et(o, s);
|
|
516
|
+
},
|
|
517
|
+
d(i) {
|
|
518
|
+
i && C(t);
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
function Y(e) {
|
|
523
|
+
let t, n, s = (
|
|
524
|
+
/*textReceiver*/
|
|
525
|
+
e[2][
|
|
526
|
+
/*_tab*/
|
|
527
|
+
e[14]
|
|
528
|
+
] + ""
|
|
529
|
+
), o, i, l, r, u, c, h, a = (
|
|
530
|
+
/*totalReceiver*/
|
|
531
|
+
e[1][
|
|
532
|
+
/*_tab*/
|
|
533
|
+
e[14]
|
|
534
|
+
] >= 0 && X(e)
|
|
535
|
+
);
|
|
536
|
+
function p() {
|
|
537
|
+
return (
|
|
538
|
+
/*click_handler*/
|
|
539
|
+
e[9](
|
|
540
|
+
/*_tab*/
|
|
541
|
+
e[14]
|
|
542
|
+
)
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
return {
|
|
546
|
+
c() {
|
|
547
|
+
t = _("li"), n = _("span"), o = H(s), i = G(), a && a.c(), l = G(), g(n, "part", "LiText"), g(t, "class", r = /*__tab*/
|
|
548
|
+
e[3] === /*_tab*/
|
|
549
|
+
e[14] ? "active" : ""), g(t, "part", u = `${/*_tab*/
|
|
550
|
+
e[14]} li ` + /*__tab*/
|
|
551
|
+
(e[3] === /*_tab*/
|
|
552
|
+
e[14] ? "active" : ""));
|
|
553
|
+
},
|
|
554
|
+
m(b, $) {
|
|
555
|
+
M(b, t, $), m(t, n), m(n, o), m(t, i), a && a.m(t, null), m(t, l), c || (h = $t(t, "click", p), c = !0);
|
|
556
|
+
},
|
|
557
|
+
p(b, $) {
|
|
558
|
+
e = b, $ & /*textReceiver, __tabs*/
|
|
559
|
+
20 && s !== (s = /*textReceiver*/
|
|
560
|
+
e[2][
|
|
561
|
+
/*_tab*/
|
|
562
|
+
e[14]
|
|
563
|
+
] + "") && et(o, s), /*totalReceiver*/
|
|
564
|
+
e[1][
|
|
565
|
+
/*_tab*/
|
|
566
|
+
e[14]
|
|
567
|
+
] >= 0 ? a ? a.p(e, $) : (a = X(e), a.c(), a.m(t, l)) : a && (a.d(1), a = null), $ & /*__tab, __tabs*/
|
|
568
|
+
24 && r !== (r = /*__tab*/
|
|
569
|
+
e[3] === /*_tab*/
|
|
570
|
+
e[14] ? "active" : "") && g(t, "class", r), $ & /*__tabs, __tab*/
|
|
571
|
+
24 && u !== (u = `${/*_tab*/
|
|
572
|
+
e[14]} li ` + /*__tab*/
|
|
573
|
+
(e[3] === /*_tab*/
|
|
574
|
+
e[14] ? "active" : "")) && g(t, "part", u);
|
|
575
|
+
},
|
|
576
|
+
d(b) {
|
|
577
|
+
b && C(t), a && a.d(), c = !1, h();
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
function Nt(e) {
|
|
582
|
+
let t, n, s = Q(
|
|
583
|
+
/*__tabs*/
|
|
584
|
+
e[4]
|
|
585
|
+
), o = [];
|
|
586
|
+
for (let i = 0; i < s.length; i += 1)
|
|
587
|
+
o[i] = Y(W(e, s, i));
|
|
588
|
+
return {
|
|
589
|
+
c() {
|
|
590
|
+
t = _("div"), n = _("ul");
|
|
591
|
+
for (let i = 0; i < o.length; i += 1)
|
|
592
|
+
o[i].c();
|
|
593
|
+
g(n, "part", "ul"), g(t, "class", "casino-tournaments-tab"), g(t, "part", "CustomStylingContainer");
|
|
594
|
+
},
|
|
595
|
+
m(i, l) {
|
|
596
|
+
M(i, t, l), m(t, n);
|
|
597
|
+
for (let r = 0; r < o.length; r += 1)
|
|
598
|
+
o[r] && o[r].m(n, null);
|
|
599
|
+
e[10](t);
|
|
600
|
+
},
|
|
601
|
+
p(i, [l]) {
|
|
602
|
+
if (l & /*__tab, __tabs, window, totalReceiver, textReceiver*/
|
|
603
|
+
30) {
|
|
604
|
+
s = Q(
|
|
605
|
+
/*__tabs*/
|
|
606
|
+
i[4]
|
|
607
|
+
);
|
|
608
|
+
let r;
|
|
609
|
+
for (r = 0; r < s.length; r += 1) {
|
|
610
|
+
const u = W(i, s, r);
|
|
611
|
+
o[r] ? o[r].p(u, l) : (o[r] = Y(u), o[r].c(), o[r].m(n, null));
|
|
612
|
+
}
|
|
613
|
+
for (; r < o.length; r += 1)
|
|
614
|
+
o[r].d(1);
|
|
615
|
+
o.length = s.length;
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
i: L,
|
|
619
|
+
o: L,
|
|
620
|
+
d(i) {
|
|
621
|
+
i && C(t), ht(o, i), e[10](null);
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
function Ft(e, t, n) {
|
|
626
|
+
let s, o, { tabs: i = "" } = t, { tab: l = void 0 } = t, { clientstyling: r = "" } = t, { clientstylingurl: u = "" } = t, c, h = {}, a = {};
|
|
627
|
+
const p = () => {
|
|
628
|
+
let f = document.createElement("style");
|
|
629
|
+
f.innerHTML = r, c.appendChild(f);
|
|
630
|
+
}, b = () => {
|
|
631
|
+
let f = new URL(u), U = document.createElement("style");
|
|
632
|
+
fetch(f.href).then((N) => N.text()).then((N) => {
|
|
633
|
+
U.innerHTML = N, setTimeout(
|
|
634
|
+
() => {
|
|
635
|
+
c.appendChild(U);
|
|
636
|
+
},
|
|
637
|
+
1
|
|
638
|
+
), setTimeout(
|
|
639
|
+
() => {
|
|
640
|
+
},
|
|
641
|
+
500
|
|
642
|
+
);
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
At({
|
|
646
|
+
TournamentsTabTotalUpdate: (f) => {
|
|
647
|
+
n(1, h = O(j({}, h), {
|
|
648
|
+
[f.state]: f.total
|
|
649
|
+
}));
|
|
650
|
+
},
|
|
651
|
+
TournamentsTabLocaleTextUpdate: (f) => {
|
|
652
|
+
n(2, a = O(j({}, a), { [f.state]: f.text }));
|
|
653
|
+
}
|
|
654
|
+
}), nt(() => {
|
|
655
|
+
window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href);
|
|
656
|
+
});
|
|
657
|
+
const $ = (f) => {
|
|
658
|
+
n(3, o = f), window.postMessage({ type: "TournamentsTabSwitch", tab: f }, window.location.href);
|
|
659
|
+
};
|
|
660
|
+
function it(f) {
|
|
661
|
+
R[f ? "unshift" : "push"](() => {
|
|
662
|
+
c = f, n(0, c);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
return e.$$set = (f) => {
|
|
666
|
+
"tabs" in f && n(5, i = f.tabs), "tab" in f && n(6, l = f.tab), "clientstyling" in f && n(7, r = f.clientstyling), "clientstylingurl" in f && n(8, u = f.clientstylingurl);
|
|
667
|
+
}, e.$$.update = () => {
|
|
668
|
+
e.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
669
|
+
129 && c && r && p(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
670
|
+
257 && c && u && b(), e.$$.dirty & /*tabs*/
|
|
671
|
+
32 && n(4, s = i.split(",")), e.$$.dirty & /*tab*/
|
|
672
|
+
64 && n(3, o = l);
|
|
673
|
+
}, [
|
|
674
|
+
c,
|
|
675
|
+
h,
|
|
676
|
+
a,
|
|
677
|
+
o,
|
|
678
|
+
s,
|
|
679
|
+
i,
|
|
680
|
+
l,
|
|
681
|
+
r,
|
|
682
|
+
u,
|
|
683
|
+
$,
|
|
684
|
+
it
|
|
685
|
+
];
|
|
686
|
+
}
|
|
687
|
+
class Pt extends jt {
|
|
688
|
+
constructor(t) {
|
|
689
|
+
super(), Ct(
|
|
690
|
+
this,
|
|
691
|
+
t,
|
|
692
|
+
Ft,
|
|
693
|
+
Nt,
|
|
694
|
+
ct,
|
|
695
|
+
{
|
|
696
|
+
tabs: 5,
|
|
697
|
+
tab: 6,
|
|
698
|
+
clientstyling: 7,
|
|
699
|
+
clientstylingurl: 8
|
|
700
|
+
},
|
|
701
|
+
Mt
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
get tabs() {
|
|
705
|
+
return this.$$.ctx[5];
|
|
706
|
+
}
|
|
707
|
+
set tabs(t) {
|
|
708
|
+
this.$$set({ tabs: t }), v();
|
|
709
|
+
}
|
|
710
|
+
get tab() {
|
|
711
|
+
return this.$$.ctx[6];
|
|
712
|
+
}
|
|
713
|
+
set tab(t) {
|
|
714
|
+
this.$$set({ tab: t }), v();
|
|
715
|
+
}
|
|
716
|
+
get clientstyling() {
|
|
717
|
+
return this.$$.ctx[7];
|
|
718
|
+
}
|
|
719
|
+
set clientstyling(t) {
|
|
720
|
+
this.$$set({ clientstyling: t }), v();
|
|
721
|
+
}
|
|
722
|
+
get clientstylingurl() {
|
|
723
|
+
return this.$$.ctx[8];
|
|
724
|
+
}
|
|
725
|
+
set clientstylingurl(t) {
|
|
726
|
+
this.$$set({ clientstylingurl: t }), v();
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
xt(Pt, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
730
|
+
export {
|
|
731
|
+
Pt as default
|
|
732
|
+
};
|