@everymatrix/casino-tournaments-limited-controller 1.53.0 → 1.53.11

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