@everymatrix/casino-tournaments-limited-controller 1.54.4 → 1.54.8
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/CasinoTournamentsLimitedController-BU7fTyFp.js +5679 -0
- package/components/{CasinoTournamentsLimitedController-FdHGDKUF.js → CasinoTournamentsLimitedController-CMmvJUqg.js} +456 -464
- package/components/CasinoTournamentsLimitedController-CNVOBk_0.cjs +13 -0
- package/components/{CasinoTournamentsTab-Bwbm-bju.js → CasinoTournamentsTab-C9Q0pAnC.js} +16 -16
- package/components/CasinoTournamentsTab-DLrNNTou.cjs +1 -0
- package/components/CasinoTournamentsTab-mWOqoJYM.js +302 -0
- package/es2015/casino-tournaments-limited-controller.cjs +1 -0
- package/es2015/casino-tournaments-limited-controller.js +19 -0
- package/esnext/casino-tournaments-limited-controller.js +1 -1
- package/package.json +1 -1
@@ -0,0 +1,302 @@
|
|
1
|
+
var K = Object.defineProperty, N = Object.defineProperties;
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
3
|
+
var _ = Object.getOwnPropertySymbols;
|
4
|
+
var S = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
5
|
+
var M = (e, t, n) => t in e ? K(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
|
6
|
+
for (var n in t || (t = {}))
|
7
|
+
S.call(t, n) && M(e, n, t[n]);
|
8
|
+
if (_)
|
9
|
+
for (var n of _(t))
|
10
|
+
z.call(t, n) && M(e, n, t[n]);
|
11
|
+
return e;
|
12
|
+
}, C = (e, t) => N(e, P(t));
|
13
|
+
var E = (e, t) => {
|
14
|
+
var n = {};
|
15
|
+
for (var i in e)
|
16
|
+
S.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
17
|
+
if (e != null && _)
|
18
|
+
for (var i of _(e))
|
19
|
+
t.indexOf(i) < 0 && z.call(e, i) && (n[i] = e[i]);
|
20
|
+
return n;
|
21
|
+
};
|
22
|
+
import { o as O, S as Q, i as V, s as W, f as y, a as X, n as H, d as v, b as T, e as m, c as f, g as R, h as Y, j as Z, k as A, l as h, m as x, t as B, p as U, q as $ } from "./CasinoTournamentsLimitedController-BU7fTyFp.js";
|
23
|
+
const tt = (e) => (n) => {
|
24
|
+
Object.keys(e).map((i) => {
|
25
|
+
if (n.data && n.data.type == i) {
|
26
|
+
const l = n.data, { type: o } = l, s = E(l, ["type"]);
|
27
|
+
e[i](s);
|
28
|
+
}
|
29
|
+
});
|
30
|
+
}, et = (e) => {
|
31
|
+
const t = tt(e);
|
32
|
+
O(() => (window.addEventListener("message", t, !1), () => {
|
33
|
+
window.removeEventListener("message", t);
|
34
|
+
}));
|
35
|
+
};
|
36
|
+
function nt(e) {
|
37
|
+
X(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}");
|
38
|
+
}
|
39
|
+
function j(e, t, n) {
|
40
|
+
const i = e.slice();
|
41
|
+
return i[15] = t[n], i;
|
42
|
+
}
|
43
|
+
function q(e) {
|
44
|
+
let t, n = R(
|
45
|
+
/*__tabs*/
|
46
|
+
e[5]
|
47
|
+
), i = [];
|
48
|
+
for (let l = 0; l < n.length; l += 1)
|
49
|
+
i[l] = I(j(e, n, l));
|
50
|
+
return {
|
51
|
+
c() {
|
52
|
+
t = m("ul");
|
53
|
+
for (let l = 0; l < i.length; l += 1)
|
54
|
+
i[l].c();
|
55
|
+
f(t, "part", "ul");
|
56
|
+
},
|
57
|
+
m(l, o) {
|
58
|
+
T(l, t, o);
|
59
|
+
for (let s = 0; s < i.length; s += 1)
|
60
|
+
i[s] && i[s].m(t, null);
|
61
|
+
},
|
62
|
+
p(l, o) {
|
63
|
+
if (o & /*__tab, __tabs, window, totalReceiver, textReceiver*/
|
64
|
+
60) {
|
65
|
+
n = R(
|
66
|
+
/*__tabs*/
|
67
|
+
l[5]
|
68
|
+
);
|
69
|
+
let s;
|
70
|
+
for (s = 0; s < n.length; s += 1) {
|
71
|
+
const c = j(l, n, s);
|
72
|
+
i[s] ? i[s].p(c, o) : (i[s] = I(c), i[s].c(), i[s].m(t, null));
|
73
|
+
}
|
74
|
+
for (; s < i.length; s += 1)
|
75
|
+
i[s].d(1);
|
76
|
+
i.length = n.length;
|
77
|
+
}
|
78
|
+
},
|
79
|
+
d(l) {
|
80
|
+
l && v(t), Y(i, l);
|
81
|
+
}
|
82
|
+
};
|
83
|
+
}
|
84
|
+
function D(e) {
|
85
|
+
let t, n, i = (
|
86
|
+
/*totalReceiver*/
|
87
|
+
e[2][
|
88
|
+
/*_tab*/
|
89
|
+
e[15]
|
90
|
+
] + ""
|
91
|
+
), l;
|
92
|
+
return {
|
93
|
+
c() {
|
94
|
+
t = m("sup"), n = m("span"), l = B(i), f(n, "part", "SupText"), f(t, "part", "sup");
|
95
|
+
},
|
96
|
+
m(o, s) {
|
97
|
+
T(o, t, s), h(t, n), h(n, l);
|
98
|
+
},
|
99
|
+
p(o, s) {
|
100
|
+
s & /*totalReceiver, __tabs*/
|
101
|
+
36 && i !== (i = /*totalReceiver*/
|
102
|
+
o[2][
|
103
|
+
/*_tab*/
|
104
|
+
o[15]
|
105
|
+
] + "") && A(l, i);
|
106
|
+
},
|
107
|
+
d(o) {
|
108
|
+
o && v(t);
|
109
|
+
}
|
110
|
+
};
|
111
|
+
}
|
112
|
+
function I(e) {
|
113
|
+
let t, n, i = (
|
114
|
+
/*textReceiver*/
|
115
|
+
e[3][
|
116
|
+
/*_tab*/
|
117
|
+
e[15]
|
118
|
+
] + ""
|
119
|
+
), l, o, s, c, d, u, p, r = (
|
120
|
+
/*totalReceiver*/
|
121
|
+
e[2][
|
122
|
+
/*_tab*/
|
123
|
+
e[15]
|
124
|
+
] >= 0 && D(e)
|
125
|
+
);
|
126
|
+
function w() {
|
127
|
+
return (
|
128
|
+
/*click_handler*/
|
129
|
+
e[10](
|
130
|
+
/*_tab*/
|
131
|
+
e[15]
|
132
|
+
)
|
133
|
+
);
|
134
|
+
}
|
135
|
+
return {
|
136
|
+
c() {
|
137
|
+
t = m("li"), n = m("span"), l = B(i), o = U(), r && r.c(), s = U(), f(n, "part", "LiText"), f(t, "class", c = /*__tab*/
|
138
|
+
e[4] === /*_tab*/
|
139
|
+
e[15] ? "active" : ""), f(t, "part", d = `${/*_tab*/
|
140
|
+
e[15]} li ` + /*__tab*/
|
141
|
+
(e[4] === /*_tab*/
|
142
|
+
e[15] ? "active" : ""));
|
143
|
+
},
|
144
|
+
m(b, g) {
|
145
|
+
T(b, t, g), h(t, n), h(n, l), h(t, o), r && r.m(t, null), h(t, s), u || (p = x(t, "click", w), u = !0);
|
146
|
+
},
|
147
|
+
p(b, g) {
|
148
|
+
e = b, g & /*textReceiver, __tabs*/
|
149
|
+
40 && i !== (i = /*textReceiver*/
|
150
|
+
e[3][
|
151
|
+
/*_tab*/
|
152
|
+
e[15]
|
153
|
+
] + "") && A(l, i), /*totalReceiver*/
|
154
|
+
e[2][
|
155
|
+
/*_tab*/
|
156
|
+
e[15]
|
157
|
+
] >= 0 ? r ? r.p(e, g) : (r = D(e), r.c(), r.m(t, s)) : r && (r.d(1), r = null), g & /*__tab, __tabs*/
|
158
|
+
48 && c !== (c = /*__tab*/
|
159
|
+
e[4] === /*_tab*/
|
160
|
+
e[15] ? "active" : "") && f(t, "class", c), g & /*__tabs, __tab*/
|
161
|
+
48 && d !== (d = `${/*_tab*/
|
162
|
+
e[15]} li ` + /*__tab*/
|
163
|
+
(e[4] === /*_tab*/
|
164
|
+
e[15] ? "active" : "")) && f(t, "part", d);
|
165
|
+
},
|
166
|
+
d(b) {
|
167
|
+
b && v(t), r && r.d(), u = !1, p();
|
168
|
+
}
|
169
|
+
};
|
170
|
+
}
|
171
|
+
function it(e) {
|
172
|
+
let t, n = (
|
173
|
+
/*isTitleInited*/
|
174
|
+
e[1] && q(e)
|
175
|
+
);
|
176
|
+
return {
|
177
|
+
c() {
|
178
|
+
t = m("div"), n && n.c(), f(t, "class", "casino-tournaments-tab"), f(t, "part", "CustomStylingContainer");
|
179
|
+
},
|
180
|
+
m(i, l) {
|
181
|
+
T(i, t, l), n && n.m(t, null), e[11](t);
|
182
|
+
},
|
183
|
+
p(i, [l]) {
|
184
|
+
/*isTitleInited*/
|
185
|
+
i[1] ? n ? n.p(i, l) : (n = q(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
|
186
|
+
},
|
187
|
+
i: H,
|
188
|
+
o: H,
|
189
|
+
d(i) {
|
190
|
+
i && v(t), n && n.d(), e[11](null);
|
191
|
+
}
|
192
|
+
};
|
193
|
+
}
|
194
|
+
function lt(e, t, n) {
|
195
|
+
let i, l, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, u, p = !1, r = {}, w = {};
|
196
|
+
const b = () => {
|
197
|
+
let a = document.createElement("style");
|
198
|
+
a.innerHTML = c, u.appendChild(a);
|
199
|
+
}, g = () => {
|
200
|
+
let a = new URL(d), F = document.createElement("style");
|
201
|
+
fetch(a.href).then((k) => k.text()).then((k) => {
|
202
|
+
F.innerHTML = k, setTimeout(
|
203
|
+
() => {
|
204
|
+
u.appendChild(F);
|
205
|
+
},
|
206
|
+
1
|
207
|
+
), setTimeout(
|
208
|
+
() => {
|
209
|
+
},
|
210
|
+
500
|
211
|
+
);
|
212
|
+
});
|
213
|
+
};
|
214
|
+
et({
|
215
|
+
TournamentsTabTotalUpdate: (a) => {
|
216
|
+
n(2, r = C(L({}, r), {
|
217
|
+
[a.state]: a.total
|
218
|
+
}));
|
219
|
+
},
|
220
|
+
TournamentsTabLocaleTextUpdate: (a) => {
|
221
|
+
n(1, p = !0), n(3, w = C(L({}, w), { [a.state]: a.text }));
|
222
|
+
}
|
223
|
+
}), O(() => {
|
224
|
+
window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href);
|
225
|
+
});
|
226
|
+
const G = (a) => {
|
227
|
+
n(4, l = a), window.postMessage({ type: "TournamentsTabSwitch", tab: a }, window.location.href);
|
228
|
+
};
|
229
|
+
function J(a) {
|
230
|
+
Z[a ? "unshift" : "push"](() => {
|
231
|
+
u = a, n(0, u);
|
232
|
+
});
|
233
|
+
}
|
234
|
+
return e.$$set = (a) => {
|
235
|
+
"tabs" in a && n(6, o = a.tabs), "tab" in a && n(7, s = a.tab), "clientstyling" in a && n(8, c = a.clientstyling), "clientstylingurl" in a && n(9, d = a.clientstylingurl);
|
236
|
+
}, e.$$.update = () => {
|
237
|
+
e.$$.dirty & /*customStylingContainer, clientstyling*/
|
238
|
+
257 && u && c && b(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
239
|
+
513 && u && d && g(), e.$$.dirty & /*tabs*/
|
240
|
+
64 && n(5, i = o.split(",")), e.$$.dirty & /*tab*/
|
241
|
+
128 && n(4, l = s);
|
242
|
+
}, [
|
243
|
+
u,
|
244
|
+
p,
|
245
|
+
r,
|
246
|
+
w,
|
247
|
+
l,
|
248
|
+
i,
|
249
|
+
o,
|
250
|
+
s,
|
251
|
+
c,
|
252
|
+
d,
|
253
|
+
G,
|
254
|
+
J
|
255
|
+
];
|
256
|
+
}
|
257
|
+
class st extends Q {
|
258
|
+
constructor(t) {
|
259
|
+
super(), V(
|
260
|
+
this,
|
261
|
+
t,
|
262
|
+
lt,
|
263
|
+
it,
|
264
|
+
W,
|
265
|
+
{
|
266
|
+
tabs: 6,
|
267
|
+
tab: 7,
|
268
|
+
clientstyling: 8,
|
269
|
+
clientstylingurl: 9
|
270
|
+
},
|
271
|
+
nt
|
272
|
+
);
|
273
|
+
}
|
274
|
+
get tabs() {
|
275
|
+
return this.$$.ctx[6];
|
276
|
+
}
|
277
|
+
set tabs(t) {
|
278
|
+
this.$$set({ tabs: t }), y();
|
279
|
+
}
|
280
|
+
get tab() {
|
281
|
+
return this.$$.ctx[7];
|
282
|
+
}
|
283
|
+
set tab(t) {
|
284
|
+
this.$$set({ tab: t }), y();
|
285
|
+
}
|
286
|
+
get clientstyling() {
|
287
|
+
return this.$$.ctx[8];
|
288
|
+
}
|
289
|
+
set clientstyling(t) {
|
290
|
+
this.$$set({ clientstyling: t }), y();
|
291
|
+
}
|
292
|
+
get clientstylingurl() {
|
293
|
+
return this.$$.ctx[9];
|
294
|
+
}
|
295
|
+
set clientstylingurl(t) {
|
296
|
+
this.$$set({ clientstylingurl: t }), y();
|
297
|
+
}
|
298
|
+
}
|
299
|
+
$(st, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
300
|
+
export {
|
301
|
+
st as default
|
302
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsLimitedController-CNVOBk_0.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
if (typeof window != "undefined") {
|
2
|
+
let n = function(e) {
|
3
|
+
return function(...s) {
|
4
|
+
try {
|
5
|
+
return e.apply(this, s);
|
6
|
+
} catch (t) {
|
7
|
+
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
8
|
+
return !1;
|
9
|
+
throw t;
|
10
|
+
}
|
11
|
+
};
|
12
|
+
};
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-BU7fTyFp.js").then((e) => e.C).then(({ default: e }) => {
|
14
|
+
!customElements.get("casino-tournaments-limited-controller") && customElements.define(
|
15
|
+
"casino-tournaments-limited-controller",
|
16
|
+
e.element
|
17
|
+
);
|
18
|
+
});
|
19
|
+
}
|
package/package.json
CHANGED