@everymatrix/casino-tournament-prizes 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 (48) hide show
  1. package/dist/casino-tournament-prizes/casino-tournament-prizes.esm.js +1 -1
  2. package/dist/casino-tournament-prizes/p-52494b9c.js +2 -0
  3. package/dist/casino-tournament-prizes/p-9274e610.entry.js +1 -0
  4. package/dist/casino-tournament-prizes/p-e1255160.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/casino-tournament-prizes.cjs.entry.js +159 -153
  7. package/dist/cjs/casino-tournament-prizes.cjs.js +16 -10
  8. package/dist/cjs/index-c53c7832.js +1234 -0
  9. package/dist/cjs/loader.cjs.js +6 -12
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +295 -309
  12. package/dist/collection/components/casino-tournament-prizes/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +53 -53
  14. package/dist/collection/utils/utils.js +1 -1
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/casino-tournament-prizes.entry.js +159 -153
  17. package/dist/esm/casino-tournament-prizes.js +13 -10
  18. package/dist/esm/index-7e63d638.js +1207 -0
  19. package/dist/esm/loader.js +6 -12
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/casino-tournament-prizes/casino-tournament-prizes.d.ts +22 -22
  25. package/dist/types/components/casino-tournament-prizes/index.d.ts +1 -0
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +8 -1
  34. package/dist/casino-tournament-prizes/p-0c9dcd23.entry.js +0 -1
  35. package/dist/casino-tournament-prizes/p-44cdb103.js +0 -1
  36. package/dist/cjs/index-edbd2afe.js +0 -1195
  37. package/dist/components/casino-tournament-prizes.d.ts +0 -11
  38. package/dist/components/casino-tournament-prizes.js +0 -205
  39. package/dist/components/index.d.ts +0 -26
  40. package/dist/components/index.js +0 -1
  41. package/dist/esm/index-fd6b56d4.js +0 -1169
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-prizes/.stencil/packages/casino-tournament-prizes/stencil.config.d.ts +0 -2
@@ -2,20 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-edbd2afe.js');
5
+ const index = require('./index-c53c7832.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
- /*
8
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
13
-
14
- const defineCustomElements = (win, options) => {
15
- if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
17
11
  return index.bootstrapLazy([["casino-tournament-prizes.cjs",[[1,"casino-tournament-prizes",{"language":[1],"useGroup":[4,"use-group"],"useEvent":[4,"use-event"],"endpoint":[1],"session":[1],"rawPrizes":[1,"raw-prizes"],"tournamentId":[1,"tournament-id"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"prizes":[32],"prizeGroups":[32],"initialLoad":[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]]]]], options);
18
- });
19
12
  };
20
13
 
14
+ exports.setNonce = index.setNonce;
21
15
  exports.defineCustomElements = defineCustomElements;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/casino-tournament-prizes/casino-tournament-prizes.js"
3
+ "components/casino-tournament-prizes/casino-tournament-prizes.js"
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.15.2",
8
- "typescriptVersion": "4.5.4"
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -1,319 +1,305 @@
1
- import { Component, Prop, h, State, Listen, Element } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
3
  export class CasinoTournamentPrizes {
4
- constructor() {
5
- this.useGroup = false;
6
- this.useEvent = false;
7
- this.clientStyling = '';
8
- this.clientStylingUrl = '';
9
- this.limitStylingAppends = false;
10
- this.prizes = [];
11
- this.prizeGroups = [];
12
- this.initialLoad = false;
13
- }
14
- infoCompletedHandler(event) {
15
- if (event.detail) {
16
- this.prizes = event.detail.prizes;
17
- this.formatGroup();
18
- this.initialLoad = true;
4
+ constructor() {
5
+ this.language = undefined;
6
+ this.useGroup = false;
7
+ this.useEvent = false;
8
+ this.endpoint = undefined;
9
+ this.session = undefined;
10
+ this.rawPrizes = undefined;
11
+ this.tournamentId = undefined;
12
+ this.clientStyling = '';
13
+ this.clientStylingUrl = '';
14
+ this.limitStylingAppends = false;
15
+ this.prizes = [];
16
+ this.prizeGroups = [];
17
+ this.initialLoad = false;
19
18
  }
20
- }
21
- formatGroup() {
22
- const prizes = this.prizes;
23
- prizes.forEach((prize) => {
24
- let array = [];
25
- if (prize.count > 0) {
26
- for (let index = 0; index < prize.count; index++) {
27
- const element = { name: prize.name, rank: prize.rank + index };
28
- array.push(element);
19
+ infoCompletedHandler(event) {
20
+ if (event.detail) {
21
+ this.prizes = event.detail.prizes;
22
+ this.formatGroup();
23
+ this.initialLoad = true;
29
24
  }
30
- }
31
- this.prizeGroups.push(array);
32
- });
33
- }
34
- getTournamentInfo() {
35
- let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
36
- let reqHeaders = new Headers();
37
- url.searchParams.append('expand', 'games');
38
- url.searchParams.append('language', this.language);
39
- url.searchParams.append('fields', 'playerEnrolled,games(id,name,thumbnail)');
40
- if (this.session) {
41
- reqHeaders.append('X-SessionId', this.session);
42
25
  }
43
- let requestOptions = {
44
- method: 'GET',
45
- headers: reqHeaders,
46
- };
47
- fetch(url.href, requestOptions).then((res) => res.json())
48
- .then((res) => {
49
- this.prizes = res.item.prizes;
50
- if (this.useGroup) {
51
- this.formatGroup();
52
- }
53
- this.initialLoad = true;
54
- });
55
- }
56
- componentWillLoad() {
57
- if (!this.useEvent && this.rawPrizes) {
58
- this.prizes = JSON.parse(this.rawPrizes);
59
- if (this.useGroup) {
60
- this.formatGroup();
61
- }
62
- this.initialLoad = true;
26
+ formatGroup() {
27
+ const prizes = this.prizes;
28
+ prizes.forEach((prize) => {
29
+ let array = [];
30
+ if (prize.count > 0) {
31
+ for (let index = 0; index < prize.count; index++) {
32
+ const element = { name: prize.name, rank: prize.rank + index };
33
+ array.push(element);
34
+ }
35
+ }
36
+ this.prizeGroups.push(array);
37
+ });
63
38
  }
64
- if (!this.useEvent && this.endpoint && this.tournamentId) {
65
- this.getTournamentInfo();
39
+ getTournamentInfo() {
40
+ let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
41
+ let reqHeaders = new Headers();
42
+ url.searchParams.append('expand', 'games');
43
+ url.searchParams.append('language', this.language);
44
+ url.searchParams.append('fields', 'playerEnrolled,games(id,name,thumbnail)');
45
+ if (this.session) {
46
+ reqHeaders.append('X-SessionId', this.session);
47
+ }
48
+ let requestOptions = {
49
+ method: 'GET',
50
+ headers: reqHeaders,
51
+ };
52
+ fetch(url.href, requestOptions).then((res) => res.json())
53
+ .then((res) => {
54
+ this.prizes = res.item.prizes;
55
+ if (this.useGroup) {
56
+ this.formatGroup();
57
+ }
58
+ this.initialLoad = true;
59
+ });
60
+ }
61
+ componentWillLoad() {
62
+ if (!this.useEvent && this.rawPrizes) {
63
+ this.prizes = JSON.parse(this.rawPrizes);
64
+ if (this.useGroup) {
65
+ this.formatGroup();
66
+ }
67
+ this.initialLoad = true;
68
+ }
69
+ if (!this.useEvent && this.endpoint && this.tournamentId) {
70
+ this.getTournamentInfo();
71
+ }
72
+ }
73
+ componentDidRender() {
74
+ if (!this.limitStylingAppends && this.host) {
75
+ if (this.clientStyling)
76
+ this.setClientStyling();
77
+ if (this.clientStylingUrl)
78
+ this.setClientStylingURL();
79
+ this.limitStylingAppends = true;
80
+ }
81
+ }
82
+ setClientStyling() {
83
+ const sheet = new CSSStyleSheet();
84
+ // @ts-ignore
85
+ sheet.replace(this.clientStyling);
86
+ // @ts-ignore
87
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
88
+ }
89
+ setClientStylingURL() {
90
+ let url = new URL(this.clientStylingUrl);
91
+ fetch(url.href)
92
+ .then((res) => res.text())
93
+ .then((data) => {
94
+ const sheet = new CSSStyleSheet();
95
+ // @ts-ignore
96
+ sheet.replace(data);
97
+ // @ts-ignore
98
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
99
+ });
100
+ }
101
+ render() {
102
+ {
103
+ this.prizes && this.prizes.length > 0;
104
+ return h("div", { key: '6f6d6a40e0374ad146b0eda343d963679fbd11f0', class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` }, this.initialLoad && !this.useGroup && h("div", { key: '28edb876913c67479b4fb5c885244cea36a073ea', class: "PrizeTitle" }, h("svg", { key: '6cd86bf5db8eacee01a9577458c136cbe78684bc', class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" }, h("path", { key: '744e27a1ee73240f5876abd14b2e912b8dbc979e', 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)" })), h("div", { key: 'ddd4dd055f8441b1b0355e95e88b43049a108b2c', class: "Title" }, translate('prizes', this.language))), this.initialLoad && this.useGroup && h("div", { key: '83b846fe441de36598d01742fd6730de4c5920bf', class: "GroupPrizeTitle" }, h("svg", { key: 'e6b379df8cc991173b588e8dd9408b0c6716de7a', class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" }, h("g", { key: '0332923cca76d7ccbe779cb367abb4e8952842b5', "clip-path": "url(#clip0_2459_42455)" }, h("path", { key: '607a3379976189ca332117ec968c34046b3dcb46', d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })), h("defs", { key: '66f11be400aac05c7f334a48b82cfb1aabdead8c' }, h("clipPath", { key: '65e879523cff89288af691d5f705ef55996f3107', id: "clip0_2459_42455" }, h("rect", { key: '382441f3ade90fa866096c5f25dfc3cb49d82132', width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))), h("div", { key: '8610b8361faa0d2316415e39a21162dfcdcaeccf', class: "Title" }, translate('prizes', this.language))), h("div", { key: '76d9452769046d3c9cd4d0dd7a65396c5083ebc6', class: "PrizeGroups" }, this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
105
+ return h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
106
+ return h("div", { class: "PrizeRow" }, h("div", { class: `PrizeItem Rank${prizeIndex + 1}` }, h("span", { class: "PrizeRank" }, prize.rank, " ", translate('place', this.language), " "), h("span", { class: "PrizeName" }, prize.name)));
107
+ }));
108
+ }), this.useGroup == false && this.prizes && this.prizes.map((prize, prizeIndex) => {
109
+ return h("div", { class: `Prize Prize${prizeIndex}` }, h("p", { class: "PrizeText" }, h("span", { class: "PrizeRank" }, prize.count > 1 ? (`${prize.rank}~${prize.rank + prize.count - 1}`) : (prize.rank)), " ", translate('place', this.language), ": ", prize.name));
110
+ }), !this.prizes && h("p", { key: '2df9ce5a0f56928a550f0ebf3de962835df0d6f2' }, translate('noprizes', this.language))));
111
+ }
112
+ ;
113
+ }
114
+ static get is() { return "casino-tournament-prizes"; }
115
+ static get encapsulation() { return "shadow"; }
116
+ static get originalStyleUrls() {
117
+ return {
118
+ "$": ["casino-tournament-prizes.scss"]
119
+ };
120
+ }
121
+ static get styleUrls() {
122
+ return {
123
+ "$": ["casino-tournament-prizes.css"]
124
+ };
66
125
  }
67
- }
68
- componentDidRender() {
69
- if (!this.limitStylingAppends && this.host) {
70
- if (this.clientStyling)
71
- this.setClientStyling();
72
- if (this.clientStylingUrl)
73
- this.setClientStylingURL();
74
- this.limitStylingAppends = true;
126
+ static get properties() {
127
+ return {
128
+ "language": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": ""
141
+ },
142
+ "attribute": "language",
143
+ "reflect": false
144
+ },
145
+ "useGroup": {
146
+ "type": "boolean",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "boolean",
150
+ "resolved": "boolean",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": false,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": ""
158
+ },
159
+ "attribute": "use-group",
160
+ "reflect": false,
161
+ "defaultValue": "false"
162
+ },
163
+ "useEvent": {
164
+ "type": "boolean",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": ""
176
+ },
177
+ "attribute": "use-event",
178
+ "reflect": false,
179
+ "defaultValue": "false"
180
+ },
181
+ "endpoint": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "attribute": "endpoint",
196
+ "reflect": false
197
+ },
198
+ "session": {
199
+ "type": "string",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "string",
203
+ "resolved": "string",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "session",
213
+ "reflect": false
214
+ },
215
+ "rawPrizes": {
216
+ "type": "string",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "string",
220
+ "resolved": "string",
221
+ "references": {}
222
+ },
223
+ "required": false,
224
+ "optional": false,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": ""
228
+ },
229
+ "attribute": "raw-prizes",
230
+ "reflect": false
231
+ },
232
+ "tournamentId": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "string",
237
+ "resolved": "string",
238
+ "references": {}
239
+ },
240
+ "required": false,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [],
244
+ "text": ""
245
+ },
246
+ "attribute": "tournament-id",
247
+ "reflect": false
248
+ },
249
+ "clientStyling": {
250
+ "type": "string",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "string",
254
+ "resolved": "string",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": ""
262
+ },
263
+ "attribute": "client-styling",
264
+ "reflect": false,
265
+ "defaultValue": "''"
266
+ },
267
+ "clientStylingUrl": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "attribute": "client-styling-url",
282
+ "reflect": false,
283
+ "defaultValue": "''"
284
+ }
285
+ };
75
286
  }
76
- }
77
- setClientStyling() {
78
- const sheet = new CSSStyleSheet();
79
- // @ts-ignore
80
- sheet.replace(this.clientStyling);
81
- // @ts-ignore
82
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
83
- }
84
- setClientStylingURL() {
85
- let url = new URL(this.clientStylingUrl);
86
- fetch(url.href)
87
- .then((res) => res.text())
88
- .then((data) => {
89
- const sheet = new CSSStyleSheet();
90
- // @ts-ignore
91
- sheet.replace(data);
92
- // @ts-ignore
93
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
94
- });
95
- }
96
- render() {
97
- {
98
- this.prizes && this.prizes.length > 0;
99
- return h("div", { class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` },
100
- this.initialLoad && !this.useGroup && h("div", { class: "PrizeTitle" },
101
- h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" },
102
- h("path", { 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)" })),
103
- h("div", { class: "Title" }, translate('prizes', this.language))),
104
- this.initialLoad && this.useGroup && h("div", { class: "GroupPrizeTitle" },
105
- h("svg", { class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" },
106
- h("g", { "clip-path": "url(#clip0_2459_42455)" },
107
- h("path", { d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })),
108
- h("defs", null,
109
- h("clipPath", { id: "clip0_2459_42455" },
110
- h("rect", { width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))),
111
- h("div", { class: "Title" }, translate('prizes', this.language))),
112
- h("div", { class: "PrizeGroups" },
113
- this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
114
- return h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
115
- return h("div", { class: "PrizeRow" },
116
- h("div", { class: `PrizeItem Rank${prizeIndex + 1}` },
117
- h("span", { class: "PrizeRank" },
118
- prize.rank,
119
- " ",
120
- translate('place', this.language),
121
- " "),
122
- h("span", { class: "PrizeName" }, prize.name)));
123
- }));
124
- }),
125
- this.useGroup == false && this.prizes && this.prizes.map((prize, prizeIndex) => {
126
- return h("div", { class: `Prize Prize${prizeIndex}` },
127
- h("p", { class: "PrizeText" },
128
- h("span", { class: "PrizeRank" }, prize.count > 1 ? (`${prize.rank}~${prize.rank + prize.count - 1}`) : (prize.rank)),
129
- " ",
130
- translate('place', this.language),
131
- ": ",
132
- prize.name));
133
- }),
134
- !this.prizes && h("p", null, translate('noprizes', this.language))));
287
+ static get states() {
288
+ return {
289
+ "limitStylingAppends": {},
290
+ "prizes": {},
291
+ "prizeGroups": {},
292
+ "initialLoad": {}
293
+ };
135
294
  }
136
- ;
137
- }
138
- static get is() { return "casino-tournament-prizes"; }
139
- static get encapsulation() { return "shadow"; }
140
- static get originalStyleUrls() { return {
141
- "$": ["casino-tournament-prizes.scss"]
142
- }; }
143
- static get styleUrls() { return {
144
- "$": ["casino-tournament-prizes.css"]
145
- }; }
146
- static get properties() { return {
147
- "language": {
148
- "type": "string",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "string",
152
- "resolved": "string",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": ""
160
- },
161
- "attribute": "language",
162
- "reflect": false
163
- },
164
- "useGroup": {
165
- "type": "boolean",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "boolean",
169
- "resolved": "boolean",
170
- "references": {}
171
- },
172
- "required": false,
173
- "optional": false,
174
- "docs": {
175
- "tags": [],
176
- "text": ""
177
- },
178
- "attribute": "use-group",
179
- "reflect": false,
180
- "defaultValue": "false"
181
- },
182
- "useEvent": {
183
- "type": "boolean",
184
- "mutable": false,
185
- "complexType": {
186
- "original": "boolean",
187
- "resolved": "boolean",
188
- "references": {}
189
- },
190
- "required": false,
191
- "optional": false,
192
- "docs": {
193
- "tags": [],
194
- "text": ""
195
- },
196
- "attribute": "use-event",
197
- "reflect": false,
198
- "defaultValue": "false"
199
- },
200
- "endpoint": {
201
- "type": "string",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "string",
205
- "resolved": "string",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": false,
210
- "docs": {
211
- "tags": [],
212
- "text": ""
213
- },
214
- "attribute": "endpoint",
215
- "reflect": false
216
- },
217
- "session": {
218
- "type": "string",
219
- "mutable": false,
220
- "complexType": {
221
- "original": "string",
222
- "resolved": "string",
223
- "references": {}
224
- },
225
- "required": false,
226
- "optional": false,
227
- "docs": {
228
- "tags": [],
229
- "text": ""
230
- },
231
- "attribute": "session",
232
- "reflect": false
233
- },
234
- "rawPrizes": {
235
- "type": "string",
236
- "mutable": false,
237
- "complexType": {
238
- "original": "string",
239
- "resolved": "string",
240
- "references": {}
241
- },
242
- "required": false,
243
- "optional": false,
244
- "docs": {
245
- "tags": [],
246
- "text": ""
247
- },
248
- "attribute": "raw-prizes",
249
- "reflect": false
250
- },
251
- "tournamentId": {
252
- "type": "string",
253
- "mutable": false,
254
- "complexType": {
255
- "original": "string",
256
- "resolved": "string",
257
- "references": {}
258
- },
259
- "required": false,
260
- "optional": false,
261
- "docs": {
262
- "tags": [],
263
- "text": ""
264
- },
265
- "attribute": "tournament-id",
266
- "reflect": false
267
- },
268
- "clientStyling": {
269
- "type": "string",
270
- "mutable": false,
271
- "complexType": {
272
- "original": "string",
273
- "resolved": "string",
274
- "references": {}
275
- },
276
- "required": false,
277
- "optional": false,
278
- "docs": {
279
- "tags": [],
280
- "text": ""
281
- },
282
- "attribute": "client-styling",
283
- "reflect": false,
284
- "defaultValue": "''"
285
- },
286
- "clientStylingUrl": {
287
- "type": "string",
288
- "mutable": false,
289
- "complexType": {
290
- "original": "string",
291
- "resolved": "string",
292
- "references": {}
293
- },
294
- "required": false,
295
- "optional": false,
296
- "docs": {
297
- "tags": [],
298
- "text": ""
299
- },
300
- "attribute": "client-styling-url",
301
- "reflect": false,
302
- "defaultValue": "''"
295
+ static get elementRef() { return "host"; }
296
+ static get listeners() {
297
+ return [{
298
+ "name": "getTournamentInfoCompleted",
299
+ "method": "infoCompletedHandler",
300
+ "target": "window",
301
+ "capture": true,
302
+ "passive": false
303
+ }];
303
304
  }
304
- }; }
305
- static get states() { return {
306
- "limitStylingAppends": {},
307
- "prizes": {},
308
- "prizeGroups": {},
309
- "initialLoad": {}
310
- }; }
311
- static get elementRef() { return "host"; }
312
- static get listeners() { return [{
313
- "name": "getTournamentInfoCompleted",
314
- "method": "infoCompletedHandler",
315
- "target": "window",
316
- "capture": true,
317
- "passive": false
318
- }]; }
319
305
  }
@@ -0,0 +1 @@
1
+ export { CasinoTournamentPrizes } from './casino-tournament-prizes';