@everymatrix/casino-tournaments-list-controller 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.
Files changed (30) hide show
  1. package/components/CasinoTournamentsListController-DQkRGglO.js +6935 -0
  2. package/components/CasinoTournamentsListController-Dxc2MrGE.cjs +15 -0
  3. package/components/CasinoTournamentsThumbnail-F3yd6zuc.cjs +4 -0
  4. package/components/CasinoTournamentsThumbnail-rgNkt8jX.js +865 -0
  5. package/components/CasinoTournamentsThumbnailController-Btof54Ze.js +1881 -0
  6. package/components/CasinoTournamentsThumbnailController-DT2N9cxC.cjs +3 -0
  7. package/components/CasinoTournamentsThumbnailDuration-C36qRcBp.js +495 -0
  8. package/components/CasinoTournamentsThumbnailDuration-CeJ__224.cjs +1 -0
  9. package/components/CasinoTournamentsThumbnailGamesSlider--nbq1N9x.js +439 -0
  10. package/components/CasinoTournamentsThumbnailGamesSlider-a0sQ72y8.cjs +1 -0
  11. package/components/CasinoTournamentsThumbnailPrizes-CyENln5i.cjs +1 -0
  12. package/components/CasinoTournamentsThumbnailPrizes-e1up8aDE.js +310 -0
  13. package/es2015/casino-tournaments-list-controller.cjs +1 -0
  14. package/es2015/casino-tournaments-list-controller.js +16 -0
  15. package/package.json +17 -32
  16. package/.eslintrc +0 -84
  17. package/README.md +0 -30
  18. package/dist/casino-tournaments-list-controller.js +0 -2
  19. package/dist/casino-tournaments-list-controller.js.map +0 -1
  20. package/index.html +0 -37
  21. package/index.js +0 -1
  22. package/public/favicon.png +0 -0
  23. package/public/reset.css +0 -48
  24. package/rollup.config.js +0 -67
  25. package/src/CasinoTournamentsListController.svelte +0 -205
  26. package/src/i18n.js +0 -27
  27. package/src/index.ts +0 -4
  28. package/src/translations.js +0 -32
  29. package/stories/CasinoTournamentsListController.stories.js +0 -13
  30. package/tsconfig.json +0 -6
@@ -0,0 +1,310 @@
1
+ import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, d as b, t as _, g as u, h as k, j as f, k as v, n as M, l as F, m as O, o as U, F as H, J as V, w as W, y as q } from "./CasinoTournamentsListController-DQkRGglO.js";
2
+ function N(l, e) {
3
+ A(l, e);
4
+ }
5
+ const S = {
6
+ en: {
7
+ prizes: "Prizes",
8
+ noprizes: "No available prizes",
9
+ place: "place"
10
+ },
11
+ hr: {
12
+ prizes: "Nagrade",
13
+ noprizes: "Nema dostupnih nagrada",
14
+ place: "mjesto"
15
+ },
16
+ "zh-hk": {
17
+ prizes: "獎品",
18
+ noprizes: "沒有可用的獎品",
19
+ place: "位置"
20
+ },
21
+ fr: {
22
+ prizes: "Prix",
23
+ noprizes: "Aucun prix disponible",
24
+ place: "place"
25
+ },
26
+ ro: {
27
+ prizes: "Premii",
28
+ noprizes: "Nu sunt disponibile premii",
29
+ place: "poziție"
30
+ },
31
+ tr: {
32
+ prizes: "Ödüller",
33
+ noprizes: "Mevcut ödül yok",
34
+ place: "yer"
35
+ },
36
+ el: {
37
+ prizes: "Έπαθλα",
38
+ noprizes: "Μη διαθέσιμα έπαθλα",
39
+ place: "θέση"
40
+ },
41
+ es: {
42
+ prizes: "Premios",
43
+ noprizes: "No hay premios disponibles",
44
+ place: "lugar"
45
+ },
46
+ hu: {
47
+ prizes: "Nyeremények",
48
+ noprizes: "Nincs elérhető nyeremény",
49
+ place: "helyezés"
50
+ },
51
+ pt: {
52
+ prizes: "Prêmios",
53
+ noprizes: "Não há prêmios disponíveis",
54
+ place: "place"
55
+ }
56
+ };
57
+ function D(l) {
58
+ B(l, "svelte-1t3fr3e", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}");
59
+ }
60
+ function E(l, e, t) {
61
+ const n = l.slice();
62
+ return n[13] = e[t], n[15] = t, n;
63
+ }
64
+ function L(l) {
65
+ let e, t = H(
66
+ /*prizes*/
67
+ l[1]
68
+ ), n = [];
69
+ for (let i = 0; i < t.length; i += 1)
70
+ n[i] = x(E(l, t, i));
71
+ let r = null;
72
+ return t.length || (r = C(l)), {
73
+ c() {
74
+ e = z("div");
75
+ for (let i = 0; i < n.length; i += 1)
76
+ n[i].c();
77
+ r && r.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
78
+ },
79
+ m(i, c) {
80
+ k(i, e, c);
81
+ for (let s = 0; s < n.length; s += 1)
82
+ n[s] && n[s].m(e, null);
83
+ r && r.m(e, null);
84
+ },
85
+ p(i, c) {
86
+ if (c & /*prizes, $_*/
87
+ 6) {
88
+ t = H(
89
+ /*prizes*/
90
+ i[1]
91
+ );
92
+ let s;
93
+ for (s = 0; s < t.length; s += 1) {
94
+ const p = E(i, t, s);
95
+ n[s] ? n[s].p(p, c) : (n[s] = x(p), n[s].c(), n[s].m(e, null));
96
+ }
97
+ for (; s < n.length; s += 1)
98
+ n[s].d(1);
99
+ n.length = t.length, !t.length && r ? r.p(i, c) : t.length ? r && (r.d(1), r = null) : (r = C(i), r.c(), r.m(e, null));
100
+ }
101
+ },
102
+ d(i) {
103
+ i && F(e), V(n, i), r && r.d();
104
+ }
105
+ };
106
+ }
107
+ function C(l) {
108
+ let e, t = (
109
+ /*$_*/
110
+ l[2]("noprizes") + ""
111
+ ), n;
112
+ return {
113
+ c() {
114
+ e = z("p"), n = _(t);
115
+ },
116
+ m(r, i) {
117
+ k(r, e, i), f(e, n);
118
+ },
119
+ p(r, i) {
120
+ i & /*$_*/
121
+ 4 && t !== (t = /*$_*/
122
+ r[2]("noprizes") + "") && v(n, t);
123
+ },
124
+ d(r) {
125
+ r && F(e);
126
+ }
127
+ };
128
+ }
129
+ function x(l) {
130
+ let e, t, n, r = (
131
+ /*prize*/
132
+ (l[13].count > 1 ? `${/*prize*/
133
+ l[13].rank}~${/*prize*/
134
+ l[13].rank + /*prize*/
135
+ l[13].count - 1}` : (
136
+ /*prize*/
137
+ l[13].rank
138
+ )) + ""
139
+ ), i, c, s = (
140
+ /*$_*/
141
+ l[2]("place") + ""
142
+ ), p, o, d = (
143
+ /*prize*/
144
+ l[13].name + ""
145
+ ), g, w;
146
+ return {
147
+ c() {
148
+ e = z("div"), t = z("p"), n = z("span"), i = _(r), c = b(), p = _(s), o = _(": "), g = _(d), w = b(), u(n, "class", "PrizeRank"), u(n, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
149
+ l[15]), u(e, "part", "Prize Prize" + /*index*/
150
+ l[15]);
151
+ },
152
+ m(h, y) {
153
+ k(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t, g), f(e, w);
154
+ },
155
+ p(h, y) {
156
+ y & /*prizes*/
157
+ 2 && r !== (r = /*prize*/
158
+ (h[13].count > 1 ? `${/*prize*/
159
+ h[13].rank}~${/*prize*/
160
+ h[13].rank + /*prize*/
161
+ h[13].count - 1}` : (
162
+ /*prize*/
163
+ h[13].rank
164
+ )) + "") && v(i, r), y & /*$_*/
165
+ 4 && s !== (s = /*$_*/
166
+ h[2]("place") + "") && v(p, s), y & /*prizes*/
167
+ 2 && d !== (d = /*prize*/
168
+ h[13].name + "") && v(g, d);
169
+ },
170
+ d(h) {
171
+ h && F(e);
172
+ }
173
+ };
174
+ }
175
+ function J(l) {
176
+ let e, t, n, r, i, c = (
177
+ /*$_*/
178
+ l[2]("prizes") + ""
179
+ ), s, p, o = (
180
+ /*prizes*/
181
+ l[1] && L(l)
182
+ );
183
+ return {
184
+ c() {
185
+ e = z("div"), t = z("div"), n = z("span"), n.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(--emfe-w-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 = b(), i = z("p"), s = _(c), p = b(), o && o.c(), u(n, "class", "TournamentPrizesIconWrapper"), u(n, "part", "TournamentPrizesIconWrapper"), u(i, "class", "PrizesTitle"), u(i, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
186
+ },
187
+ m(d, g) {
188
+ k(d, e, g), f(e, t), f(t, n), f(t, r), f(t, i), f(i, s), f(e, p), o && o.m(e, null), l[7](e);
189
+ },
190
+ p(d, [g]) {
191
+ g & /*$_*/
192
+ 4 && c !== (c = /*$_*/
193
+ d[2]("prizes") + "") && v(s, c), /*prizes*/
194
+ d[1] ? o ? o.p(d, g) : (o = L(d), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
195
+ },
196
+ i: M,
197
+ o: M,
198
+ d(d) {
199
+ d && F(e), o && o.d(), l[7](null);
200
+ }
201
+ };
202
+ }
203
+ function G(l, e, t) {
204
+ let n;
205
+ O(l, q, (a) => t(2, n = a));
206
+ let { tourid: r = "" } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, p, o;
207
+ const d = () => {
208
+ fetch(s).then((m) => m.json()).then((m) => {
209
+ Object.keys(m).forEach((P) => {
210
+ N(P, m[P]);
211
+ });
212
+ }).catch((m) => {
213
+ console.log(m);
214
+ });
215
+ };
216
+ Object.keys(S).forEach((a) => {
217
+ N(a, S[a]);
218
+ });
219
+ const g = (a) => {
220
+ a.data && a.data.type == `TournamentPrizes_${r}` && t(1, o = a.data.prizes);
221
+ }, w = () => {
222
+ let a = document.createElement("style");
223
+ a.innerHTML = i, p.appendChild(a);
224
+ }, h = () => {
225
+ let a = new URL(c), m = document.createElement("style");
226
+ fetch(a.href).then((P) => P.text()).then((P) => {
227
+ m.innerHTML = P, setTimeout(
228
+ () => {
229
+ p.appendChild(m);
230
+ },
231
+ 1
232
+ ), setTimeout(
233
+ () => {
234
+ },
235
+ 500
236
+ );
237
+ });
238
+ };
239
+ U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", g, !1), () => {
240
+ window.removeEventListener("message", g);
241
+ }));
242
+ function y(a) {
243
+ W[a ? "unshift" : "push"](() => {
244
+ p = a, t(0, p);
245
+ });
246
+ }
247
+ return l.$$set = (a) => {
248
+ "tourid" in a && t(3, r = a.tourid), "clientstyling" in a && t(4, i = a.clientstyling), "clientstylingurl" in a && t(5, c = a.clientstylingurl), "translationurl" in a && t(6, s = a.translationurl);
249
+ }, l.$$.update = () => {
250
+ l.$$.dirty & /*customStylingContainer, clientstyling*/
251
+ 17 && p && i && w(), l.$$.dirty & /*customStylingContainer, clientstylingurl*/
252
+ 33 && p && c && h(), l.$$.dirty & /*translationurl*/
253
+ 64 && s && d();
254
+ }, [
255
+ p,
256
+ o,
257
+ n,
258
+ r,
259
+ i,
260
+ c,
261
+ s,
262
+ y
263
+ ];
264
+ }
265
+ class K extends Z {
266
+ constructor(e) {
267
+ super(), j(
268
+ this,
269
+ e,
270
+ G,
271
+ J,
272
+ R,
273
+ {
274
+ tourid: 3,
275
+ clientstyling: 4,
276
+ clientstylingurl: 5,
277
+ translationurl: 6
278
+ },
279
+ D
280
+ );
281
+ }
282
+ get tourid() {
283
+ return this.$$.ctx[3];
284
+ }
285
+ set tourid(e) {
286
+ this.$$set({ tourid: e }), T();
287
+ }
288
+ get clientstyling() {
289
+ return this.$$.ctx[4];
290
+ }
291
+ set clientstyling(e) {
292
+ this.$$set({ clientstyling: e }), T();
293
+ }
294
+ get clientstylingurl() {
295
+ return this.$$.ctx[5];
296
+ }
297
+ set clientstylingurl(e) {
298
+ this.$$set({ clientstylingurl: e }), T();
299
+ }
300
+ get translationurl() {
301
+ return this.$$.ctx[6];
302
+ }
303
+ set translationurl(e) {
304
+ this.$$set({ translationurl: e }), T();
305
+ }
306
+ }
307
+ I(K, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
308
+ export {
309
+ K as default
310
+ };
@@ -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/CasinoTournamentsListController-Dxc2MrGE.cjs")).then(e=>e.CasinoTournamentsListController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",e.element)})}
@@ -0,0 +1,16 @@
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/CasinoTournamentsListController-DQkRGglO.js").then((e) => e.L).then(({ default: e }) => {
14
+ !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", e.element);
15
+ });
16
+ }
package/package.json CHANGED
@@ -1,39 +1,24 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-list-controller",
3
- "version": "1.44.0",
4
- "main": "dist/casino-tournaments-list-controller.js",
5
- "svelte": "src/index.ts",
6
- "scripts": {
7
- "start": "sirv public",
8
- "build": "cross-env NODE_ENV=production rollup -c",
9
- "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
- "validate": "svelte-check",
11
- "test": "echo"
12
- },
13
- "devDependencies": {
14
- "@rollup/plugin-babel": "^5.3.0",
15
- "@rollup/plugin-commonjs": "^16.0.0",
16
- "@rollup/plugin-node-resolve": "^10.0.0",
17
- "@rollup/plugin-typescript": "^6.0.0",
18
- "@tsconfig/svelte": "^1.0.0",
19
- "rollup": "^2.3.4",
20
- "rollup-plugin-dev-server": "^0.4.3",
21
- "rollup-plugin-livereload": "^2.0.0",
22
- "rollup-plugin-svelte": "^7.0.0",
23
- "rollup-plugin-terser": "^7.0.0",
24
- "rollup-plugin-uglify": "^6.0.4",
25
- "svelte-check": "^1.0.0",
26
- "svelte-preprocess": "^5.0.0",
27
- "tslib": "^2.0.0",
28
- "typescript": "^3.9.3"
29
- },
30
- "dependencies": {
31
- "cross-env": "^7.0.3",
32
- "sirv-cli": "^1.0.0",
33
- "svelte": "^3.0.0"
3
+ "version": "1.45.2",
4
+ "type": "module",
5
+ "main": "es2015/casino-tournaments-list-controller.cjs",
6
+ "module": "es2015/casino-tournaments-list-controller.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./es2015/casino-tournaments-list-controller.js",
10
+ "require": "./es2015/casino-tournaments-list-controller.cjs"
11
+ },
12
+ "./es2015/casino-tournaments-list-controller.cjs": "./es2015/casino-tournaments-list-controller.cjs"
34
13
  },
14
+ "files": [
15
+ "es2015/",
16
+ "components"
17
+ ],
35
18
  "publishConfig": {
36
19
  "access": "public"
37
20
  },
38
- "gitHead": "701410f2b76dfe1ee4038f799b1e8e340c85cdb5"
21
+ "dependencies": {
22
+ "@everymatrix/casino-tournaments-thumbnail-controller": "1.0.72"
23
+ }
39
24
  }
package/.eslintrc DELETED
@@ -1,84 +0,0 @@
1
- {
2
- "rules": {
3
- "camelcase": "off",
4
- "comma-dangle": [ "error", "never" ],
5
- "no-unused-vars": "off",
6
- "semi": [ 2, "always" ],
7
- "keyword-spacing": [ 2, { "before": true, "after": true } ],
8
- "space-before-blocks": [ 2, "always" ],
9
- "no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
10
- "no-cond-assign": 0,
11
- "object-shorthand": [ 2, "always" ],
12
- "no-const-assign": 2,
13
- "no-class-assign": 2,
14
- "no-this-before-super": 2,
15
- "no-var": 2,
16
- "no-unreachable": 2,
17
- "valid-typeof": 2,
18
- "quote-props": [ 2, "as-needed" ],
19
- "quotes": ["error", "single", { "avoidEscape": true }],
20
- "prefer-arrow-callback": 2,
21
- "prefer-const": [ 2, { "destructuring": "all" } ],
22
- "arrow-spacing": 2,
23
- "no-inner-declarations": 0,
24
- "one-var": "off",
25
- "require-atomic-updates": "off",
26
- "no-import-assign": "warn",
27
- "eol-last": "error",
28
- "@typescript-eslint/camelcase": "off",
29
- "@typescript-eslint/no-use-before-define": "off",
30
- "@typescript-eslint/array-type": [ "error", { "default": "array-simple" } ],
31
- "@typescript-eslint/explicit-function-return-type": "off",
32
- "@typescript-eslint/no-explicit-any": "off",
33
- "@typescript-eslint/explicit-member-accessibility": "off",
34
- "@typescript-eslint/no-object-literal-type-assertion": "off",
35
- "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
36
- "@typescript-eslint/prefer-interface": "off",
37
- "@typescript-eslint/explicit-module-boundary-types": "off",
38
- "@typescript-eslint/no-empty-function": "off",
39
- "@typescript-eslint/ban-ts-comment": "off",
40
- "@typescript-eslint/no-this-alias": "off",
41
- "@typescript-eslint/no-inferrable-types": "off",
42
- "@typescript-eslint/ban-types": "off",
43
- "@typescript-eslint/naming-convention": "off",
44
- "@typescript-eslint/class-name-casing": "off"
45
- },
46
- "globals": {
47
- "globalThis": false
48
- },
49
- "env": {
50
- "es6": true,
51
- "browser": true,
52
- "node": true,
53
- "mocha": true
54
- },
55
- "extends": [
56
- "eslint:recommended",
57
- "plugin:import/errors",
58
- "plugin:import/warnings",
59
- "plugin:import/typescript",
60
- "plugin:@typescript-eslint/recommended"
61
- ],
62
- "parserOptions": {
63
- "ecmaVersion": 9,
64
- "sourceType": "module"
65
- },
66
- "plugins": ["svelte3"],
67
- "settings": {
68
- "svelte3/compiler-options": {
69
- "customElement": true,
70
- },
71
- },
72
- "overrides": [
73
- {
74
- "files": ["*.js"],
75
- "rules": {
76
- "@typescript-eslint/no-var-requires": "off"
77
- }
78
- },
79
- {
80
- "files": ["*.svelte"],
81
- "processor": "svelte3/svelte3"
82
- }
83
- ]
84
- }
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # @everymatrix/casino-tournaments-list-controller
2
- ---------
3
-
4
- ## First step
5
- ---------
6
- ```
7
- lerna bootstrap
8
- ```
9
-
10
- ## Run Widget
11
- ---------
12
- - starts server at port 5050
13
- - has livereload
14
-
15
- ```
16
- yarn run dev
17
- ```
18
-
19
- ## Build Widget
20
- ---------
21
- ```
22
- yarn run build
23
- ```
24
-
25
- ## Publishing widget
26
- ---------
27
- - Note add your user to the npm
28
- ```
29
- lerna publish
30
- ```