@everymatrix/casino-tournament-prizes 1.0.69

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 (44) hide show
  1. package/dist/casino-tournament-prizes/casino-tournament-prizes.esm.js +1 -0
  2. package/dist/casino-tournament-prizes/index.esm.js +0 -0
  3. package/dist/casino-tournament-prizes/p-52494b9c.js +2 -0
  4. package/dist/casino-tournament-prizes/p-9274e610.entry.js +1 -0
  5. package/dist/casino-tournament-prizes/p-e1255160.js +1 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-tournament-prizes.cjs.entry.js +183 -0
  8. package/dist/cjs/casino-tournament-prizes.cjs.js +25 -0
  9. package/dist/cjs/index-c53c7832.js +1234 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +12 -0
  13. package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.css +100 -0
  14. package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +305 -0
  15. package/dist/collection/components/casino-tournament-prizes/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/locale.utils.js +58 -0
  18. package/dist/collection/utils/utils.js +3 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/casino-tournament-prizes.entry.js +179 -0
  21. package/dist/esm/casino-tournament-prizes.js +20 -0
  22. package/dist/esm/index-7e63d638.js +1207 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/casino-tournament-prizes/casino-tournament-prizes.d.ts +24 -0
  32. package/dist/types/components/casino-tournament-prizes/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +55 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +1 -0
  37. package/dist/types/utils/utils.d.ts +1 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-c53c7832.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
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);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/casino-tournament-prizes/casino-tournament-prizes.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,100 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .PrizeGroups {
6
+ color: var(--emfe-w-color-white, #FFFFFF);
7
+ display: flex;
8
+ gap: 20px;
9
+ font-size: 14px;
10
+ }
11
+
12
+ .PrizeGroup {
13
+ flex: 1;
14
+ background: var(--emfe-w-tournament-color-bg, #153a5c);
15
+ }
16
+
17
+ .PrizeTitle {
18
+ text-align: center;
19
+ width: 100%;
20
+ }
21
+
22
+ .GroupPrizeTitle {
23
+ width: 100%;
24
+ display: flex;
25
+ padding: 8px 6px;
26
+ gap: 8px;
27
+ justify-content: center;
28
+ }
29
+
30
+ .PrizeView {
31
+ display: flex;
32
+ gap: 10px;
33
+ font-size: 12px;
34
+ }
35
+ .PrizeView .PrizeTitle {
36
+ display: inline-block;
37
+ width: auto;
38
+ }
39
+ .PrizeView .PrizeGroups {
40
+ display: inline-flex;
41
+ }
42
+
43
+ .Title {
44
+ text-align: center;
45
+ color: var(--emfe-w-color-white, #FFFFFF);
46
+ }
47
+
48
+ .PrizeIcon path {
49
+ fill: var(--emfe-w-color-white, #FFFFFF);
50
+ }
51
+
52
+ .PrizeRow {
53
+ padding: 8px;
54
+ border-bottom: 1px solid rgba(206, 210, 214, 0.15);
55
+ }
56
+
57
+ .PrizeItem {
58
+ display: flex;
59
+ justify-content: space-between;
60
+ padding: 6px;
61
+ font-size: 12px;
62
+ border-radius: 2px;
63
+ }
64
+
65
+ .Group1 .Rank1 {
66
+ background: #7e6c22;
67
+ }
68
+ .Group1 .Rank2 {
69
+ background: #666;
70
+ }
71
+ .Group1 .Rank3 {
72
+ background: #6a5446;
73
+ }
74
+
75
+ .Prizes {
76
+ padding-left: 20px;
77
+ flex-wrap: wrap;
78
+ display: flex;
79
+ gap: 20px;
80
+ width: 100%;
81
+ min-height: 50px;
82
+ padding-top: 8px;
83
+ }
84
+
85
+ .Prize {
86
+ flex-grow: 1;
87
+ color: var(--emfe-w-color-gray-300, #58586B);
88
+ }
89
+ .Prize.Prize0 span {
90
+ color: #FECF00;
91
+ }
92
+ .Prize.Prize1 span {
93
+ color: #D9B206;
94
+ }
95
+ .Prize.Prize2 span {
96
+ color: #9B8007;
97
+ }
98
+ .Prize p {
99
+ color: var(--emfe-w-color-white, #FFFFFF);
100
+ }
@@ -0,0 +1,305 @@
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ export class CasinoTournamentPrizes {
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;
18
+ }
19
+ infoCompletedHandler(event) {
20
+ if (event.detail) {
21
+ this.prizes = event.detail.prizes;
22
+ this.formatGroup();
23
+ this.initialLoad = true;
24
+ }
25
+ }
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
+ });
38
+ }
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
+ };
125
+ }
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
+ };
286
+ }
287
+ static get states() {
288
+ return {
289
+ "limitStylingAppends": {},
290
+ "prizes": {},
291
+ "prizeGroups": {},
292
+ "initialLoad": {}
293
+ };
294
+ }
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
+ }];
304
+ }
305
+ }
@@ -0,0 +1 @@
1
+ export { CasinoTournamentPrizes } from './casino-tournament-prizes';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,58 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const TRANSLATIONS = {
3
+ en: {
4
+ prizes: 'Prizes',
5
+ noprizes: 'No available prizes',
6
+ place: 'place',
7
+ },
8
+ 'zh-hk': {
9
+ prizes: '獎品',
10
+ noprizes: '沒有可用的獎品',
11
+ place: 'place', // need translation
12
+ },
13
+ fr: {
14
+ prizes: 'Prix',
15
+ noprizes: 'Aucun prix disponible',
16
+ place: 'place', // need translation
17
+ },
18
+ ro: {
19
+ prizes: 'Premii',
20
+ noprizes: 'Nu sunt disponibile premii',
21
+ place: 'poziție',
22
+ },
23
+ tr: {
24
+ prizes: 'Ödüller',
25
+ noprizes: 'Geçerli ödül yok',
26
+ place: 'Sıra',
27
+ },
28
+ el: {
29
+ prizes: 'Έπαθλα',
30
+ noprizes: 'Μη διαθέσιμα έπαθλα',
31
+ place: 'θέση',
32
+ },
33
+ es: {
34
+ prizes: 'Premios',
35
+ noprizes: 'No hay premios disponibles',
36
+ place: 'posición',
37
+ },
38
+ hu: {
39
+ prizes: 'Nyeremények',
40
+ noprizes: 'Nincs elérhető nyeremény',
41
+ place: 'helyezés',
42
+ },
43
+ pt: {
44
+ prizes: 'Prêmios',
45
+ noprizes: 'Não há prêmios disponíveis',
46
+ place: 'place', // need translation
47
+ },
48
+ hr: {
49
+ prizes: 'Nagrade',
50
+ noprizes: 'Nema dostupnih nagrada',
51
+ place: 'mjesto',
52
+ }
53
+ };
54
+ export const translate = (key, customLang) => {
55
+ var _a, _b;
56
+ const lang = customLang;
57
+ return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
58
+ };
@@ -0,0 +1,3 @@
1
+ export function format(first, middle, last) {
2
+ return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
3
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };