@everymatrix/casino-tournaments-page-controller 1.45.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.
Files changed (42) hide show
  1. package/components/{CasinoTournamentsDetails-i29jA8rz.js → CasinoTournamentsDetails-CTbLTCNq.js} +199 -203
  2. package/components/CasinoTournamentsDetails-CdFtnk8v.cjs +1 -0
  3. package/components/CasinoTournamentsPageController-BX5_-OUG.cjs +25 -0
  4. package/components/{CasinoTournamentsPageController-ccenf33p.js → CasinoTournamentsPageController-By8Qf6Sl.js} +2109 -2131
  5. package/components/CasinoTournamentsRank-BPHA2JPF.js +271 -0
  6. package/components/CasinoTournamentsRank-Ccr8Z0om.cjs +1 -0
  7. package/components/CasinoTournamentsTab-CmF1j5XE.js +281 -0
  8. package/components/CasinoTournamentsTab-DXUCFgtb.cjs +1 -0
  9. package/components/CasinoTournamentsTable-8HJDxcSe.cjs +1 -0
  10. package/components/CasinoTournamentsTable-DL6KVTDX.js +1671 -0
  11. package/components/CasinoTournamentsThumbnail--BxjqzmL.cjs +4 -0
  12. package/components/{CasinoTournamentsThumbnail-DeSrN8lz.js → CasinoTournamentsThumbnail-NcOyz0gt.js} +192 -192
  13. package/components/CasinoTournamentsThumbnailController-B3YbDJuf.cjs +1 -0
  14. package/components/CasinoTournamentsThumbnailController-pROl7BE2.js +1406 -0
  15. package/components/CasinoTournamentsThumbnailDuration-Icm0PzJz.js +496 -0
  16. package/components/CasinoTournamentsThumbnailDuration-_PXBJwAk.cjs +1 -0
  17. package/components/CasinoTournamentsThumbnailGamesSlider-C4oebmHa.js +439 -0
  18. package/components/CasinoTournamentsThumbnailGamesSlider-DOXcgDnK.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailPrizes-Dgkbf6BO.cjs +1 -0
  20. package/components/CasinoTournamentsThumbnailPrizes-Oy21zp8B.js +311 -0
  21. package/components/{CasinoTournamentsThumbnailRule-BgZe_JWI.cjs → CasinoTournamentsThumbnailRule-BMRBfYRJ.cjs} +1 -1
  22. package/components/{CasinoTournamentsThumbnailRule-B_eRZkOt.js → CasinoTournamentsThumbnailRule-BqQsSnWS.js} +199 -199
  23. package/es2015/casino-tournaments-page-controller.cjs +1 -1
  24. package/es2015/casino-tournaments-page-controller.js +1 -1
  25. package/package.json +2 -2
  26. package/components/CasinoTournamentsDetails-CpUZgR90.cjs +0 -1
  27. package/components/CasinoTournamentsPageController-DQ45sNO3.cjs +0 -25
  28. package/components/CasinoTournamentsRank-D0dnyjxl.cjs +0 -1
  29. package/components/CasinoTournamentsRank-DCsenD0C.js +0 -271
  30. package/components/CasinoTournamentsTab-CFqMNyyL.cjs +0 -1
  31. package/components/CasinoTournamentsTab-DY421_qt.js +0 -283
  32. package/components/CasinoTournamentsTable-CMFlsTqb.cjs +0 -1
  33. package/components/CasinoTournamentsTable-QzFroNHV.js +0 -1671
  34. package/components/CasinoTournamentsThumbnail-XJuOILgc.cjs +0 -4
  35. package/components/CasinoTournamentsThumbnailController-DyNwJHm-.js +0 -1406
  36. package/components/CasinoTournamentsThumbnailController-dcrtzpP3.cjs +0 -1
  37. package/components/CasinoTournamentsThumbnailDuration-BVjz4efB.js +0 -496
  38. package/components/CasinoTournamentsThumbnailDuration-Dp9sLahL.cjs +0 -1
  39. package/components/CasinoTournamentsThumbnailGamesSlider-BxG-LO0T.cjs +0 -1
  40. package/components/CasinoTournamentsThumbnailGamesSlider-GmLhEgpL.js +0 -439
  41. package/components/CasinoTournamentsThumbnailPrizes-BADuIugn.js +0 -311
  42. package/components/CasinoTournamentsThumbnailPrizes-Cq3GMug5.cjs +0 -1
@@ -1,311 +0,0 @@
1
- import { S as A, b as Z, f as w, c as j, a as I, d as R, l as m, e as b, t as P, m as y, h as k, p as g, q as _, n as M, j as F, k as B, o as O, y as H, z as U, C as q } from "./CasinoTournamentsDetails-i29jA8rz.js";
2
- import { a as V, $ as W } from "./CasinoTournamentsPageController-ccenf33p.js";
3
- function N(n, e) {
4
- V(n, e);
5
- }
6
- const S = {
7
- en: {
8
- prizes: "Prizes",
9
- noprizes: "No available prizes",
10
- place: "place"
11
- },
12
- hr: {
13
- prizes: "Nagrade",
14
- noprizes: "Nema dostupnih nagrada",
15
- place: "mjesto"
16
- },
17
- "zh-hk": {
18
- prizes: "獎品",
19
- noprizes: "沒有可用的獎品",
20
- place: "位置"
21
- },
22
- fr: {
23
- prizes: "Prix",
24
- noprizes: "Aucun prix disponible",
25
- place: "place"
26
- },
27
- ro: {
28
- prizes: "Premii",
29
- noprizes: "Nu sunt disponibile premii",
30
- place: "poziție"
31
- },
32
- tr: {
33
- prizes: "Ödüller",
34
- noprizes: "Mevcut ödül yok",
35
- place: "yer"
36
- },
37
- el: {
38
- prizes: "Έπαθλα",
39
- noprizes: "Μη διαθέσιμα έπαθλα",
40
- place: "θέση"
41
- },
42
- es: {
43
- prizes: "Premios",
44
- noprizes: "No hay premios disponibles",
45
- place: "lugar"
46
- },
47
- hu: {
48
- prizes: "Nyeremények",
49
- noprizes: "Nincs elérhető nyeremény",
50
- place: "helyezés"
51
- },
52
- pt: {
53
- prizes: "Prêmios",
54
- noprizes: "Não há prêmios disponíveis",
55
- place: "place"
56
- }
57
- };
58
- function D(n) {
59
- R(n, "svelte-ypey7g", ".svelte-ypey7g.svelte-ypey7g,.svelte-ypey7g.svelte-ypey7g::before,.svelte-ypey7g.svelte-ypey7g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span.svelte-ypey7g.svelte-ypey7g{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes.svelte-ypey7g.svelte-ypey7g{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle.svelte-ypey7g.svelte-ypey7g{padding-top:8px}.Prizes.svelte-ypey7g.svelte-ypey7g{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize.svelte-ypey7g.svelte-ypey7g{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0.svelte-ypey7g span.svelte-ypey7g{color:#FECF00}.Prize.Prize1.svelte-ypey7g span.svelte-ypey7g{color:#D9B206}.Prize.Prize2.svelte-ypey7g span.svelte-ypey7g{color:#9B8007}.Prize.svelte-ypey7g p.svelte-ypey7g{color:var(--emfe-w-color-white, #FFFFFF)}");
60
- }
61
- function E(n, e, t) {
62
- const l = n.slice();
63
- return l[13] = e[t], l[15] = t, l;
64
- }
65
- function L(n) {
66
- let e, t = H(
67
- /*prizes*/
68
- n[1]
69
- ), l = [];
70
- for (let s = 0; s < t.length; s += 1)
71
- l[s] = x(E(n, t, s));
72
- let i = null;
73
- return t.length || (i = C(n)), {
74
- c() {
75
- e = m("div");
76
- for (let s = 0; s < l.length; s += 1)
77
- l[s].c();
78
- i && i.c(), y(e, "class", "Prizes svelte-ypey7g"), y(e, "part", "Prizes");
79
- },
80
- m(s, p) {
81
- k(s, e, p);
82
- for (let r = 0; r < l.length; r += 1)
83
- l[r] && l[r].m(e, null);
84
- i && i.m(e, null);
85
- },
86
- p(s, p) {
87
- if (p & /*prizes, $_*/
88
- 6) {
89
- t = H(
90
- /*prizes*/
91
- s[1]
92
- );
93
- let r;
94
- for (r = 0; r < t.length; r += 1) {
95
- const c = E(s, t, r);
96
- l[r] ? l[r].p(c, p) : (l[r] = x(c), l[r].c(), l[r].m(e, null));
97
- }
98
- for (; r < l.length; r += 1)
99
- l[r].d(1);
100
- l.length = t.length, !t.length && i ? i.p(s, p) : t.length ? i && (i.d(1), i = null) : (i = C(s), i.c(), i.m(e, null));
101
- }
102
- },
103
- d(s) {
104
- s && F(e), U(l, s), i && i.d();
105
- }
106
- };
107
- }
108
- function C(n) {
109
- let e, t = (
110
- /*$_*/
111
- n[2]("noprizes") + ""
112
- ), l;
113
- return {
114
- c() {
115
- e = m("p"), l = P(t), y(e, "class", "svelte-ypey7g");
116
- },
117
- m(i, s) {
118
- k(i, e, s), g(e, l);
119
- },
120
- p(i, s) {
121
- s & /*$_*/
122
- 4 && t !== (t = /*$_*/
123
- i[2]("noprizes") + "") && _(l, t);
124
- },
125
- d(i) {
126
- i && F(e);
127
- }
128
- };
129
- }
130
- function x(n) {
131
- let e, t, l, i = (
132
- /*prize*/
133
- (n[13].count > 1 ? `${/*prize*/
134
- n[13].rank}~${/*prize*/
135
- n[13].rank + /*prize*/
136
- n[13].count - 1}` : (
137
- /*prize*/
138
- n[13].rank
139
- )) + ""
140
- ), s, p, r = (
141
- /*$_*/
142
- n[2]("place") + ""
143
- ), c, o, u = (
144
- /*prize*/
145
- n[13].name + ""
146
- ), f, T;
147
- return {
148
- c() {
149
- e = m("div"), t = m("p"), l = m("span"), s = P(i), p = b(), c = P(r), o = P(": "), f = P(u), T = b(), y(l, "class", "PrizeRank svelte-ypey7g"), y(l, "part", "PrizeRank"), y(t, "class", "PrizeText svelte-ypey7g"), y(t, "part", "PrizeText"), y(e, "class", "Prize Prize" + /*index*/
150
- n[15] + " svelte-ypey7g"), y(e, "part", "Prize Prize" + /*index*/
151
- n[15]);
152
- },
153
- m(d, z) {
154
- k(d, e, z), g(e, t), g(t, l), g(l, s), g(t, p), g(t, c), g(t, o), g(t, f), g(e, T);
155
- },
156
- p(d, z) {
157
- z & /*prizes*/
158
- 2 && i !== (i = /*prize*/
159
- (d[13].count > 1 ? `${/*prize*/
160
- d[13].rank}~${/*prize*/
161
- d[13].rank + /*prize*/
162
- d[13].count - 1}` : (
163
- /*prize*/
164
- d[13].rank
165
- )) + "") && _(s, i), z & /*$_*/
166
- 4 && r !== (r = /*$_*/
167
- d[2]("place") + "") && _(c, r), z & /*prizes*/
168
- 2 && u !== (u = /*prize*/
169
- d[13].name + "") && _(f, u);
170
- },
171
- d(d) {
172
- d && F(e);
173
- }
174
- };
175
- }
176
- function G(n) {
177
- let e, t, l, i, s, p = (
178
- /*$_*/
179
- n[2]("prizes") + ""
180
- ), r, c, o = (
181
- /*prizes*/
182
- n[1] && L(n)
183
- );
184
- return {
185
- c() {
186
- e = m("div"), t = m("div"), l = m("span"), l.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454" class="svelte-ypey7g"><defs class="svelte-ypey7g"><style class="svelte-ypey7g">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-ypey7g" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i = b(), s = m("p"), r = P(p), c = b(), o && o.c(), y(l, "class", "TournamentPrizesIconWrapper svelte-ypey7g"), y(l, "part", "TournamentPrizesIconWrapper"), y(s, "class", "PrizesTitle svelte-ypey7g"), y(s, "part", "PrizesTitle"), y(t, "class", "TournamentPrizesIconSection svelte-ypey7g"), y(t, "part", "TournamentPrizesIconSection"), y(e, "class", "TournamentPrizes svelte-ypey7g"), y(e, "part", "TournamentPrizes");
187
- },
188
- m(u, f) {
189
- k(u, e, f), g(e, t), g(t, l), g(t, i), g(t, s), g(s, r), g(e, c), o && o.m(e, null), n[7](e);
190
- },
191
- p(u, [f]) {
192
- f & /*$_*/
193
- 4 && p !== (p = /*$_*/
194
- u[2]("prizes") + "") && _(r, p), /*prizes*/
195
- u[1] ? o ? o.p(u, f) : (o = L(u), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
196
- },
197
- i: M,
198
- o: M,
199
- d(u) {
200
- u && F(e), o && o.d(), n[7](null);
201
- }
202
- };
203
- }
204
- function J(n, e, t) {
205
- let l;
206
- B(n, W, (a) => t(2, l = a));
207
- let { tourid: i = "" } = e, { clientstyling: s = "" } = e, { clientstylingurl: p = "" } = e, { translationurl: r = "" } = e, c, o;
208
- const u = () => {
209
- fetch(r).then((h) => h.json()).then((h) => {
210
- Object.keys(h).forEach((v) => {
211
- N(v, h[v]);
212
- });
213
- }).catch((h) => {
214
- console.log(h);
215
- });
216
- };
217
- Object.keys(S).forEach((a) => {
218
- N(a, S[a]);
219
- });
220
- const f = (a) => {
221
- a.data && a.data.type == `TournamentPrizes_${i}` && t(1, o = a.data.prizes);
222
- }, T = () => {
223
- let a = document.createElement("style");
224
- a.innerHTML = s, c.appendChild(a);
225
- }, d = () => {
226
- let a = new URL(p), h = document.createElement("style");
227
- fetch(a.href).then((v) => v.text()).then((v) => {
228
- h.innerHTML = v, setTimeout(
229
- () => {
230
- c.appendChild(h);
231
- },
232
- 1
233
- ), setTimeout(
234
- () => {
235
- },
236
- 500
237
- );
238
- });
239
- };
240
- O(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", f, !1), () => {
241
- window.removeEventListener("message", f);
242
- }));
243
- function z(a) {
244
- q[a ? "unshift" : "push"](() => {
245
- c = a, t(0, c);
246
- });
247
- }
248
- return n.$$set = (a) => {
249
- "tourid" in a && t(3, i = a.tourid), "clientstyling" in a && t(4, s = a.clientstyling), "clientstylingurl" in a && t(5, p = a.clientstylingurl), "translationurl" in a && t(6, r = a.translationurl);
250
- }, n.$$.update = () => {
251
- n.$$.dirty & /*customStylingContainer, clientstyling*/
252
- 17 && c && s && T(), n.$$.dirty & /*customStylingContainer, clientstylingurl*/
253
- 33 && c && p && d(), n.$$.dirty & /*translationurl*/
254
- 64 && r && u();
255
- }, [
256
- c,
257
- o,
258
- l,
259
- i,
260
- s,
261
- p,
262
- r,
263
- z
264
- ];
265
- }
266
- class K extends A {
267
- constructor(e) {
268
- super(), Z(
269
- this,
270
- e,
271
- J,
272
- G,
273
- I,
274
- {
275
- tourid: 3,
276
- clientstyling: 4,
277
- clientstylingurl: 5,
278
- translationurl: 6
279
- },
280
- D
281
- );
282
- }
283
- get tourid() {
284
- return this.$$.ctx[3];
285
- }
286
- set tourid(e) {
287
- this.$$set({ tourid: e }), w();
288
- }
289
- get clientstyling() {
290
- return this.$$.ctx[4];
291
- }
292
- set clientstyling(e) {
293
- this.$$set({ clientstyling: e }), w();
294
- }
295
- get clientstylingurl() {
296
- return this.$$.ctx[5];
297
- }
298
- set clientstylingurl(e) {
299
- this.$$set({ clientstylingurl: e }), w();
300
- }
301
- get translationurl() {
302
- return this.$$.ctx[6];
303
- }
304
- set translationurl(e) {
305
- this.$$set({ translationurl: e }), w();
306
- }
307
- }
308
- j(K, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
309
- export {
310
- K as default
311
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-CpUZgR90.cjs"),k=require("./CasinoTournamentsPageController-DQ45sNO3.cjs");function v(i,t){k.addMessages(i,t)}const _={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function M(i){e.append_styles(i,"svelte-ypey7g",".svelte-ypey7g.svelte-ypey7g,.svelte-ypey7g.svelte-ypey7g::before,.svelte-ypey7g.svelte-ypey7g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span.svelte-ypey7g.svelte-ypey7g{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes.svelte-ypey7g.svelte-ypey7g{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle.svelte-ypey7g.svelte-ypey7g{padding-top:8px}.Prizes.svelte-ypey7g.svelte-ypey7g{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize.svelte-ypey7g.svelte-ypey7g{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0.svelte-ypey7g span.svelte-ypey7g{color:#FECF00}.Prize.Prize1.svelte-ypey7g span.svelte-ypey7g{color:#D9B206}.Prize.Prize2.svelte-ypey7g span.svelte-ypey7g{color:#9B8007}.Prize.svelte-ypey7g p.svelte-ypey7g{color:var(--emfe-w-color-white, #FFFFFF)}")}function P(i,t,n){const l=i.slice();return l[13]=t[n],l[15]=n,l}function T(i){let t,n=e.ensure_array_like(i[1]),l=[];for(let s=0;s<n.length;s+=1)l[s]=b(P(i,n,s));let r=null;return n.length||(r=w(i)),{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();r&&r.c(),e.attr(t,"class","Prizes svelte-ypey7g"),e.attr(t,"part","Prizes")},m(s,c){e.insert(s,t,c);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null);r&&r.m(t,null)},p(s,c){if(c&6){n=e.ensure_array_like(s[1]);let a;for(a=0;a<n.length;a+=1){const y=P(s,n,a);l[a]?l[a].p(y,c):(l[a]=b(y),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length,!n.length&&r?r.p(s,c):n.length?r&&(r.d(1),r=null):(r=w(s),r.c(),r.m(t,null))}},d(s){s&&e.detach(t),e.destroy_each(l,s),r&&r.d()}}}function w(i){let t,n=i[2]("noprizes")+"",l;return{c(){t=e.element("p"),l=e.text(n),e.attr(t,"class","svelte-ypey7g")},m(r,s){e.insert(r,t,s),e.append(t,l)},p(r,s){s&4&&n!==(n=r[2]("noprizes")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function b(i){let t,n,l,r=(i[13].count>1?`${i[13].rank}~${i[13].rank+i[13].count-1}`:i[13].rank)+"",s,c,a=i[2]("place")+"",y,o,u=i[13].name+"",d,z;return{c(){t=e.element("div"),n=e.element("p"),l=e.element("span"),s=e.text(r),c=e.space(),y=e.text(a),o=e.text(": "),d=e.text(u),z=e.space(),e.attr(l,"class","PrizeRank svelte-ypey7g"),e.attr(l,"part","PrizeRank"),e.attr(n,"class","PrizeText svelte-ypey7g"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+i[15]+" svelte-ypey7g"),e.attr(t,"part","Prize Prize"+i[15])},m(g,h){e.insert(g,t,h),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,c),e.append(n,y),e.append(n,o),e.append(n,d),e.append(t,z)},p(g,h){h&2&&r!==(r=(g[13].count>1?`${g[13].rank}~${g[13].rank+g[13].count-1}`:g[13].rank)+"")&&e.set_data(s,r),h&4&&a!==(a=g[2]("place")+"")&&e.set_data(y,a),h&2&&u!==(u=g[13].name+"")&&e.set_data(d,u)},d(g){g&&e.detach(t)}}}function S(i){let t,n,l,r,s,c=i[2]("prizes")+"",a,y,o=i[1]&&T(i);return{c(){t=e.element("div"),n=e.element("div"),l=e.element("span"),l.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454" class="svelte-ypey7g"><defs class="svelte-ypey7g"><style class="svelte-ypey7g">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-ypey7g" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',r=e.space(),s=e.element("p"),a=e.text(c),y=e.space(),o&&o.c(),e.attr(l,"class","TournamentPrizesIconWrapper svelte-ypey7g"),e.attr(l,"part","TournamentPrizesIconWrapper"),e.attr(s,"class","PrizesTitle svelte-ypey7g"),e.attr(s,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection svelte-ypey7g"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes svelte-ypey7g"),e.attr(t,"part","TournamentPrizes")},m(u,d){e.insert(u,t,d),e.append(t,n),e.append(n,l),e.append(n,r),e.append(n,s),e.append(s,a),e.append(t,y),o&&o.m(t,null),i[7](t)},p(u,[d]){d&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(a,c),u[1]?o?o.p(u,d):(o=T(u),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o&&o.d(),i[7](null)}}}function x(i,t,n){let l;e.component_subscribe(i,k.$format,p=>n(2,l=p));let{tourid:r=""}=t,{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{translationurl:a=""}=t,y,o;const u=()=>{fetch(a).then(f=>f.json()).then(f=>{Object.keys(f).forEach(m=>{v(m,f[m])})}).catch(f=>{console.log(f)})};Object.keys(_).forEach(p=>{v(p,_[p])});const d=p=>{p.data&&p.data.type==`TournamentPrizes_${r}`&&n(1,o=p.data.prizes)},z=()=>{let p=document.createElement("style");p.innerHTML=s,y.appendChild(p)},g=()=>{let p=new URL(c),f=document.createElement("style");fetch(p.href).then(m=>m.text()).then(m=>{f.innerHTML=m,setTimeout(()=>{y.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function h(p){e.binding_callbacks[p?"unshift":"push"](()=>{y=p,n(0,y)})}return i.$$set=p=>{"tourid"in p&&n(3,r=p.tourid),"clientstyling"in p&&n(4,s=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,a=p.translationurl)},i.$$.update=()=>{i.$$.dirty&17&&y&&s&&z(),i.$$.dirty&33&&y&&c&&g(),i.$$.dirty&64&&a&&u()},[y,o,l,r,s,c,a,h]}class F extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},M)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(F,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=F;