@everymatrix/casino-tournaments-thumbnail-controller 1.94.19 → 1.94.21

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,8 +1,8 @@
1
- import { d as C, S as I, t as Z, A as j, r as _, h as B, x as F, n as T, G as b, u as k, g as d, o as g, I as w, K as P, i as u, k as R, y as O, q as N, m as q, j as D, B as U, D as V, E as W, l as G, a as K } from "./CasinoTournamentsThumbnailController-CJ5s9xEE.js";
1
+ import { b as L, S as Z, i as j, s as B, f as _, d as I, n as F, e as T, p as b, h as k, j as d, k as g, l as w, u as P, g as u, m as R, o as O, F as N, G as D, v as U, B as V, C as W, D as q, c as G, A as J } from "./CasinoTournamentsThumbnailController-BR8vFeoL.js";
2
2
  function M(l, e) {
3
- C(l, e);
3
+ L(l, e);
4
4
  }
5
- const E = {
5
+ const H = {
6
6
  en: {
7
7
  prizes: "Prizes",
8
8
  noprizes: "No available prizes",
@@ -59,33 +59,33 @@ const E = {
59
59
  place: "place"
60
60
  }
61
61
  };
62
- function J(l) {
63
- B(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
62
+ function K(l) {
63
+ I(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
64
64
  }
65
- function H(l, e, t) {
65
+ function A(l, e, t) {
66
66
  const i = l.slice();
67
67
  return i[12] = e[t], i[14] = t, i;
68
68
  }
69
- function x(l) {
69
+ function E(l) {
70
70
  let e, t = N(
71
71
  /*prizes*/
72
72
  l[1]
73
73
  ), i = [];
74
74
  for (let n = 0; n < t.length; n += 1)
75
- i[n] = L(H(l, t, n));
76
- let r = null;
77
- return t.length || (r = A(l)), {
75
+ i[n] = C(A(l, t, n));
76
+ let s = null;
77
+ return t.length || (s = x(l)), {
78
78
  c() {
79
79
  e = g("div");
80
80
  for (let n = 0; n < i.length; n += 1)
81
81
  i[n].c();
82
- r && r.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
82
+ s && s.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
83
83
  },
84
84
  m(n, c) {
85
85
  k(n, e, c);
86
- for (let s = 0; s < i.length; s += 1)
87
- i[s] && i[s].m(e, null);
88
- r && r.m(e, null);
86
+ for (let r = 0; r < i.length; r += 1)
87
+ i[r] && i[r].m(e, null);
88
+ s && s.m(e, null);
89
89
  },
90
90
  p(n, c) {
91
91
  if (c & /*prizes, $_*/
@@ -94,22 +94,22 @@ function x(l) {
94
94
  /*prizes*/
95
95
  n[1]
96
96
  );
97
- let s;
98
- for (s = 0; s < t.length; s += 1) {
99
- const f = H(n, t, s);
100
- i[s] ? i[s].p(f, c) : (i[s] = L(f), i[s].c(), i[s].m(e, null));
97
+ let r;
98
+ for (r = 0; r < t.length; r += 1) {
99
+ const f = A(n, t, r);
100
+ i[r] ? i[r].p(f, c) : (i[r] = C(f), i[r].c(), i[r].m(e, null));
101
101
  }
102
- for (; s < i.length; s += 1)
103
- i[s].d(1);
104
- i.length = t.length, !t.length && r ? r.p(n, c) : t.length ? r && (r.d(1), r = null) : (r = A(n), r.c(), r.m(e, null));
102
+ for (; r < i.length; r += 1)
103
+ i[r].d(1);
104
+ i.length = t.length, !t.length && s ? s.p(n, c) : t.length ? s && (s.d(1), s = null) : (s = x(n), s.c(), s.m(e, null));
105
105
  }
106
106
  },
107
107
  d(n) {
108
- n && T(e), q(i, n), r && r.d();
108
+ n && T(e), D(i, n), s && s.d();
109
109
  }
110
110
  };
111
111
  }
112
- function A(l) {
112
+ function x(l) {
113
113
  let e, t = (
114
114
  /*$_*/
115
115
  l[2]("noprizes") + ""
@@ -118,21 +118,21 @@ function A(l) {
118
118
  c() {
119
119
  e = g("p"), i = P(t);
120
120
  },
121
- m(r, n) {
122
- k(r, e, n), d(e, i);
121
+ m(s, n) {
122
+ k(s, e, n), d(e, i);
123
123
  },
124
- p(r, n) {
124
+ p(s, n) {
125
125
  n & /*$_*/
126
126
  4 && t !== (t = /*$_*/
127
- r[2]("noprizes") + "") && b(i, t);
127
+ s[2]("noprizes") + "") && b(i, t);
128
128
  },
129
- d(r) {
130
- r && T(e);
129
+ d(s) {
130
+ s && T(e);
131
131
  }
132
132
  };
133
133
  }
134
- function L(l) {
135
- let e, t, i, r = (
134
+ function C(l) {
135
+ let e, t, i, s = (
136
136
  /*prize*/
137
137
  (l[12].count > 1 ? `${/*prize*/
138
138
  l[12].rank}~${/*prize*/
@@ -141,7 +141,7 @@ function L(l) {
141
141
  /*prize*/
142
142
  l[12].rank
143
143
  )) + ""
144
- ), n, c, s = (
144
+ ), n, c, r = (
145
145
  /*$_*/
146
146
  l[2]("place") + ""
147
147
  ), f, a, p = (
@@ -150,7 +150,7 @@ function L(l) {
150
150
  ), z, v;
151
151
  return {
152
152
  c() {
153
- e = g("div"), t = g("p"), i = g("span"), n = P(r), c = w(), f = P(s), a = P(": "), z = P(p), v = w(), u(i, "class", "PrizeRank"), u(i, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
153
+ e = g("div"), t = g("p"), i = g("span"), n = P(s), c = w(), f = P(r), a = P(": "), z = P(p), v = w(), u(i, "class", "PrizeRank"), u(i, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
154
154
  l[14]), u(e, "part", "Prize Prize" + /*index*/
155
155
  l[14]);
156
156
  },
@@ -159,16 +159,16 @@ function L(l) {
159
159
  },
160
160
  p(m, h) {
161
161
  h & /*prizes*/
162
- 2 && r !== (r = /*prize*/
162
+ 2 && s !== (s = /*prize*/
163
163
  (m[12].count > 1 ? `${/*prize*/
164
164
  m[12].rank}~${/*prize*/
165
165
  m[12].rank + /*prize*/
166
166
  m[12].count - 1}` : (
167
167
  /*prize*/
168
168
  m[12].rank
169
- )) + "") && b(n, r), h & /*$_*/
170
- 4 && s !== (s = /*$_*/
171
- m[2]("place") + "") && b(f, s), h & /*prizes*/
169
+ )) + "") && b(n, s), h & /*$_*/
170
+ 4 && r !== (r = /*$_*/
171
+ m[2]("place") + "") && b(f, r), h & /*prizes*/
172
172
  2 && p !== (p = /*prize*/
173
173
  m[12].name + "") && b(z, p);
174
174
  },
@@ -178,25 +178,25 @@ function L(l) {
178
178
  };
179
179
  }
180
180
  function Q(l) {
181
- let e, t, i, r, n, c = (
181
+ let e, t, i, s, n, c = (
182
182
  /*$_*/
183
183
  l[2]("prizes") + ""
184
- ), s, f, a = (
184
+ ), r, f, a = (
185
185
  /*prizes*/
186
- l[1] && x(l)
186
+ l[1] && E(l)
187
187
  );
188
188
  return {
189
189
  c() {
190
- e = g("div"), t = g("div"), i = g("span"), i.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" 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 = w(), n = g("p"), s = P(c), f = w(), a && a.c(), u(i, "class", "TournamentPrizesIconWrapper"), u(i, "part", "TournamentPrizesIconWrapper"), u(n, "class", "PrizesTitle"), u(n, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
190
+ e = g("div"), t = g("div"), i = g("span"), i.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" 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>', s = w(), n = g("p"), r = P(c), f = w(), a && a.c(), u(i, "class", "TournamentPrizesIconWrapper"), u(i, "part", "TournamentPrizesIconWrapper"), u(n, "class", "PrizesTitle"), u(n, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
191
191
  },
192
192
  m(p, z) {
193
- k(p, e, z), d(e, t), d(t, i), d(t, r), d(t, n), d(n, s), d(e, f), a && a.m(e, null), l[8](e);
193
+ k(p, e, z), d(e, t), d(t, i), d(t, s), d(t, n), d(n, r), d(e, f), a && a.m(e, null), l[8](e);
194
194
  },
195
195
  p(p, [z]) {
196
196
  z & /*$_*/
197
197
  4 && c !== (c = /*$_*/
198
- p[2]("prizes") + "") && b(s, c), /*prizes*/
199
- p[1] ? a ? a.p(p, z) : (a = x(p), a.c(), a.m(e, null)) : a && (a.d(1), a = null);
198
+ p[2]("prizes") + "") && b(r, c), /*prizes*/
199
+ p[1] ? a ? a.p(p, z) : (a = E(p), a.c(), a.m(e, null)) : a && (a.d(1), a = null);
200
200
  },
201
201
  i: F,
202
202
  o: F,
@@ -207,10 +207,10 @@ function Q(l) {
207
207
  }
208
208
  function X(l, e, t) {
209
209
  let i;
210
- R(l, K, (o) => t(2, i = o));
211
- let { tourid: r = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, { mbsource: f } = e, a, p, z;
210
+ R(l, J, (o) => t(2, i = o));
211
+ let { tourid: s = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: r = "" } = e, { mbsource: f } = e, a, p, z;
212
212
  const v = () => {
213
- fetch(s).then((y) => y.json()).then((y) => {
213
+ fetch(r).then((y) => y.json()).then((y) => {
214
214
  Object.keys(y).forEach((S) => {
215
215
  M(S, y[S]);
216
216
  });
@@ -218,48 +218,48 @@ function X(l, e, t) {
218
218
  console.log(y);
219
219
  });
220
220
  };
221
- Object.keys(E).forEach((o) => {
222
- M(o, E[o]);
221
+ Object.keys(H).forEach((o) => {
222
+ M(o, H[o]);
223
223
  });
224
224
  const m = (o) => {
225
- o.data && o.data.type == `TournamentPrizes_${r}` && t(1, z = o.data.prizes);
225
+ o.data && o.data.type == `TournamentPrizes_${s}` && t(1, z = o.data.prizes);
226
226
  };
227
227
  O(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", m, !1), () => {
228
228
  window.removeEventListener("message", m);
229
229
  }));
230
230
  function h(o) {
231
- D[o ? "unshift" : "push"](() => {
231
+ U[o ? "unshift" : "push"](() => {
232
232
  a = o, t(0, a);
233
233
  });
234
234
  }
235
235
  return l.$$set = (o) => {
236
- "tourid" in o && t(3, r = o.tourid), "clientstyling" in o && t(4, n = o.clientstyling), "clientstylingurl" in o && t(5, c = o.clientstylingurl), "translationurl" in o && t(6, s = o.translationurl), "mbsource" in o && t(7, f = o.mbsource);
236
+ "tourid" in o && t(3, s = o.tourid), "clientstyling" in o && t(4, n = o.clientstyling), "clientstylingurl" in o && t(5, c = o.clientstylingurl), "translationurl" in o && t(6, r = o.translationurl), "mbsource" in o && t(7, f = o.mbsource);
237
237
  }, l.$$.update = () => {
238
238
  l.$$.dirty & /*clientstyling, customStylingContainer*/
239
- 17 && n && a && U(a, n), l.$$.dirty & /*clientstylingurl, customStylingContainer*/
240
- 33 && c && a && V(a, c), l.$$.dirty & /*mbsource, customStylingContainer*/
241
- 129 && f && a && W(a, `${f}.Style`, p), l.$$.dirty & /*translationurl*/
242
- 64 && s && v();
239
+ 17 && n && a && V(a, n), l.$$.dirty & /*clientstylingurl, customStylingContainer*/
240
+ 33 && c && a && W(a, c), l.$$.dirty & /*mbsource, customStylingContainer*/
241
+ 129 && f && a && q(a, `${f}.Style`, p), l.$$.dirty & /*translationurl*/
242
+ 64 && r && v();
243
243
  }, [
244
244
  a,
245
245
  z,
246
246
  i,
247
- r,
247
+ s,
248
248
  n,
249
249
  c,
250
- s,
250
+ r,
251
251
  f,
252
252
  h
253
253
  ];
254
254
  }
255
- class Y extends I {
255
+ class Y extends Z {
256
256
  constructor(e) {
257
- super(), Z(
257
+ super(), j(
258
258
  this,
259
259
  e,
260
260
  X,
261
261
  Q,
262
- j,
262
+ B,
263
263
  {
264
264
  tourid: 3,
265
265
  clientstyling: 4,
@@ -267,7 +267,7 @@ class Y extends I {
267
267
  translationurl: 6,
268
268
  mbsource: 7
269
269
  },
270
- J
270
+ K
271
271
  );
272
272
  }
273
273
  get tourid() {
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-B9Drlihg.js").then((e) => e.C).then(
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-DfF0ST18.js").then((e) => e.L).then(
14
14
  ({ default: e }) => {
15
15
  !customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
16
16
  "casino-tournaments-thumbnail-controller",
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsThumbnailController-CJ5s9xEE.js";
1
+ import { L as s } from "../components/CasinoTournamentsThumbnailController-BR8vFeoL.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-thumbnail-controller",
3
- "version": "1.94.19",
3
+ "version": "1.94.21",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-thumbnail-controller.cjs",
6
6
  "module": "esnext/casino-tournaments-thumbnail-controller.js",