@everymatrix/casino-tournaments-list-controller 1.69.0 → 1.69.3
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.
- package/components/{CasinoTournamentsListController-DZAcldSI.js → CasinoTournamentsListController-CWyvrsWz.js} +1 -1
- package/components/{CasinoTournamentsListController-916JL4F7.js → CasinoTournamentsListController-Cu7VBkAP.js} +1 -1
- package/components/{CasinoTournamentsListController-CLH2CE8z.cjs → CasinoTournamentsListController-K7tyF6ih.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-nwxK7LAX.js → CasinoTournamentsThumbnail-Bb-WePb4.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-CPbOt4AY.cjs → CasinoTournamentsThumbnail-BmETv_-A.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-CO-eYscS.js → CasinoTournamentsThumbnail-Dkj3BdZR.js} +3 -3
- package/components/{CasinoTournamentsThumbnailController-CKIWWza3.js → CasinoTournamentsThumbnailController-BDec0Jdb.js} +526 -524
- package/components/CasinoTournamentsThumbnailController-BiQGMoYB.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-Bq1AssJj.js → CasinoTournamentsThumbnailController-Cu1REl-S.js} +469 -433
- package/components/{CasinoTournamentsThumbnailDuration-CoD7UhLT.js → CasinoTournamentsThumbnailDuration-ByHdwoSq.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D96wnUeF.cjs → CasinoTournamentsThumbnailDuration-DgtH4LSC.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Cs4yX-Vh.js → CasinoTournamentsThumbnailDuration-DkW8QZTq.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DyvJUNdJ.js → CasinoTournamentsThumbnailGamesSlider-CjtPMu3T.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-DeZzlvbO.js → CasinoTournamentsThumbnailGamesSlider-CwP-Pm0u.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-BsYSU3V2.cjs → CasinoTournamentsThumbnailGamesSlider-Dp3x8V93.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BJHbDTCY.js → CasinoTournamentsThumbnailPrizes-DGkTPnY-.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-8tONX9SA.cjs → CasinoTournamentsThumbnailPrizes-Ha9ohG1t.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CuVL_zHr.js → CasinoTournamentsThumbnailPrizes-Tz6K0v4r.js} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-B0NIExnR.js} +1 -1
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-D6HPqRtr.js} +1 -1
- package/stencil/{index-97d17652-D5_8Vwfn.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
- package/stencil/{index-b2193545-CFn9dM-v.js → index-b2193545-BS7xFIk4.js} +1 -1
- package/stencil/{index-b2193545-DPygl1Qn.cjs → index-b2193545-BTdVi7--.cjs} +1 -1
- package/stencil/{index-b2193545-BOMvxBzV.js → index-b2193545-rfNAj6ri.js} +1 -1
- package/stencil/ui-image-B374V2Sk.js +7 -0
- package/stencil/ui-image-BBrwf8a4.cjs +1 -0
- package/stencil/ui-image-CQSJVNNX.js +25 -0
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
- package/stencil/ui-image_2-DbQ7SENq.js +157 -0
- package/stencil/ui-image_2-L-CYescb.js +157 -0
- package/stencil/ui-skeleton-B0BB970e.cjs +1 -0
- package/stencil/ui-skeleton-D8L-WY77.js +29 -0
- package/stencil/ui-skeleton-DSebcnN1.js +11 -0
- package/stencil/ui-skeleton-ae35c6f2-BH4D8vHD.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-CcPx4a2P.js +155 -0
- package/stencil/ui-skeleton-ae35c6f2-DDiK5zGt.cjs +55 -0
- package/components/CasinoTournamentsThumbnailController-A_BKNTJR.cjs +0 -16
- package/stencil/ui-image-3hy4ZvUC.js +0 -25
- package/stencil/ui-image-D0wxuPze.js +0 -7
- package/stencil/ui-image-DE8MJHCZ.cjs +0 -1
- package/stencil/ui-image_2-B56t6kXT.js +0 -154
- package/stencil/ui-image_2-BncuYpLi.js +0 -154
- package/stencil/ui-image_2-YkYxLKu7.cjs +0 -73
- package/stencil/ui-skeleton-1cb75d00-B-R8GbLJ.js +0 -152
- package/stencil/ui-skeleton-1cb75d00-BTnhspbc.cjs +0 -73
- package/stencil/ui-skeleton-1cb75d00-Dy30RNE6.js +0 -152
- package/stencil/ui-skeleton-CVBjRUvi.js +0 -29
- package/stencil/ui-skeleton-RkXNxPG1.js +0 -11
- package/stencil/ui-skeleton-se83zfWh.cjs +0 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-rfNAj6ri.js";
|
|
2
|
+
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
|
+
width: this.handleStylingProps(this.width),
|
|
6
|
+
height: this.handleStylingProps(this.height),
|
|
7
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
12
|
+
size: this.handleStylingProps(this.size)
|
|
13
|
+
}, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
|
|
14
|
+
}
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
17
|
+
}
|
|
18
|
+
handleStylingProps(e) {
|
|
19
|
+
switch (typeof e) {
|
|
20
|
+
case "number":
|
|
21
|
+
return e === 0 ? 0 : `${e}px`;
|
|
22
|
+
case "undefined":
|
|
23
|
+
return "unset";
|
|
24
|
+
case "string":
|
|
25
|
+
return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
|
|
26
|
+
default:
|
|
27
|
+
return "unset";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
handleStructure(e) {
|
|
31
|
+
switch (e) {
|
|
32
|
+
case "logo":
|
|
33
|
+
return this.renderLogo();
|
|
34
|
+
case "image":
|
|
35
|
+
return this.renderImage();
|
|
36
|
+
case "title":
|
|
37
|
+
return this.renderTitle();
|
|
38
|
+
case "text":
|
|
39
|
+
return this.renderText();
|
|
40
|
+
case "rectangle":
|
|
41
|
+
return this.renderRectangle();
|
|
42
|
+
case "circle":
|
|
43
|
+
return this.renderCircle();
|
|
44
|
+
default:
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
renderLogo() {
|
|
49
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
50
|
+
}
|
|
51
|
+
renderImage() {
|
|
52
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
53
|
+
}
|
|
54
|
+
renderTitle() {
|
|
55
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
56
|
+
}
|
|
57
|
+
renderText() {
|
|
58
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, i) => t("div", { key: i, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
59
|
+
}
|
|
60
|
+
renderRectangle() {
|
|
61
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
62
|
+
}
|
|
63
|
+
renderCircle() {
|
|
64
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
let e = "";
|
|
68
|
+
switch (this.structure) {
|
|
69
|
+
case "logo":
|
|
70
|
+
e = `
|
|
71
|
+
:host {
|
|
72
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
73
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
74
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
75
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
76
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
77
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
78
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
break;
|
|
82
|
+
case "image":
|
|
83
|
+
e = `
|
|
84
|
+
:host {
|
|
85
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
86
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
87
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
88
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
89
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
90
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
91
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
break;
|
|
95
|
+
case "title":
|
|
96
|
+
e = `
|
|
97
|
+
:host {
|
|
98
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
99
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
100
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
101
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
102
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
103
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
104
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
break;
|
|
108
|
+
case "text":
|
|
109
|
+
e = `
|
|
110
|
+
:host {
|
|
111
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
112
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
113
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
114
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
115
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
116
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
117
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
break;
|
|
121
|
+
case "rectangle":
|
|
122
|
+
e = `
|
|
123
|
+
:host {
|
|
124
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
125
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
126
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
127
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
128
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
129
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
130
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
break;
|
|
134
|
+
case "circle":
|
|
135
|
+
e = `
|
|
136
|
+
:host {
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
break;
|
|
141
|
+
default:
|
|
142
|
+
e = "";
|
|
143
|
+
}
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
145
|
+
}
|
|
146
|
+
static get watchers() {
|
|
147
|
+
return {
|
|
148
|
+
structure: ["handleStructureChange"]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
l.style = a;
|
|
153
|
+
export {
|
|
154
|
+
l as U
|
|
155
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";const t=require("./index-b2193545-BTdVi7--.cjs"),r=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",s=r,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
|
+
:host {
|
|
3
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
4
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
5
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
6
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
7
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
8
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
9
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
10
|
+
}
|
|
11
|
+
`;break;case"image":e=`
|
|
12
|
+
:host {
|
|
13
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
14
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
15
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
16
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
17
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
18
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
19
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
20
|
+
}
|
|
21
|
+
`;break;case"title":e=`
|
|
22
|
+
:host {
|
|
23
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
24
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
25
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
26
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
27
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
28
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
29
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
30
|
+
}
|
|
31
|
+
`;break;case"text":e=`
|
|
32
|
+
:host {
|
|
33
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
34
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
35
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
36
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
37
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
38
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
39
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
40
|
+
}
|
|
41
|
+
`;break;case"rectangle":e=`
|
|
42
|
+
:host {
|
|
43
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
44
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
45
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
46
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
47
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
48
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
49
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
50
|
+
}
|
|
51
|
+
`;break;case"circle":e=`
|
|
52
|
+
:host {
|
|
53
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
54
|
+
}
|
|
55
|
+
`;break;default:e=""}return t.h(t.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};n.style=s;exports.UiSkeleton=n;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";var ne=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{l(e.next(c))}catch(d){o(d)}},a=c=>{try{l(e.throw(c))}catch(d){o(d)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);l((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsListController-CLH2CE8z.cjs");/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var ie=function(i,t){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},ie(i,t)};function A(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ie(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function oe(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return s}function ae(i,t,e){if(arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||t)}function P(i){return typeof i=="function"}function Ge(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var re=Ge(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
15
|
-
`+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function le(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Y=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=oe(a),c=l.next();!c.done;c=l.next()){var d=c.value;d.remove(this)}}catch(w){t={error:w}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else a.remove(this);var m=this.initialTeardown;if(P(m))try{m()}catch(w){s=w instanceof re?w.errors:[w]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var k=oe(p),g=k.next();!g.done;g=k.next()){var _=g.value;try{ze(_)}catch(w){s=s!=null?s:[],w instanceof re?s=ae(ae([],se(s)),se(w.errors)):s.push(w)}}}catch(w){r={error:w}}finally{try{g&&!g.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}}if(s)throw new re(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ze(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&le(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&le(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ne=Y.EMPTY;function Ye(i){return i instanceof Y||i&&"closed"in i&&P(i.remove)&&P(i.add)&&P(i.unsubscribe)}function ze(i){P(i)?i():i.unsubscribe()}var ct={Promise:void 0},ft={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ae([i,t],se(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function dt(i){ft.setTimeout(function(){throw i})}function Pe(){}function N(i){i()}var Ke=function(i){A(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ye(e)&&e.add(r)):r.destination=pt,r}return t.create=function(e,r,o){return new ue(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Y),mt=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){G(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){G(r)}else G(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){G(e)}},i}(),ue=function(i){A(t,i);function t(e,r,o){var s=i.call(this)||this,a;return P(e)||!e?a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new mt(a),s}return t}(Ke);function G(i){dt(i)}function ht(i){throw i}var pt={closed:!0,next:Pe,error:ht,complete:Pe},_t=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function gt(i){return i}function bt(i){return i.length===0?gt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Ce=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=yt(t)?t:new ue(t,e,r);return N(function(){var a=o,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=xe(e),new e(function(o,s){var a=new ue({next:function(l){try{t(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[_t]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return bt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function xe(i){var t;return(t=i!=null?i:ct.Promise)!==null&&t!==void 0?t:Promise}function wt(i){return i&&P(i.next)&&P(i.error)&&P(i.complete)}function yt(i){return i&&i instanceof Ke||wt(i)&&Ye(i)}var vt=Ge(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ve=function(i){A(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Be(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new vt},t.prototype.next=function(e){var r=this;N(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=oe(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(e)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;N(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Ne:(this.currentObservers=null,l.push(e),new Y(function(){r.currentObservers=null,le(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Ce;return e.source=this,e},t.create=function(e,r){return new Be(e,r)},t}(Ce),Be=function(i){A(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ne},t}(Ve),Xe={now:function(){return(Xe.delegate||Date).now()},delegate:void 0},kt=function(i){A(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Xe);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,l=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(l.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),c=0;c<l.length&&!e.closed;c+=s?1:2)e.next(l[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,l=(a?1:2)*r;if(r<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=o.now(),d=0,m=1;m<s.length&&s[m]<=c;m+=2)d=m;d&&s.splice(0,d+1)}},t}(Ve);const Oe=[],De={},St=(i,t=0)=>{if(Oe.indexOf(i)==-1){const e=new kt(t);De[i]=e,Oe.push(i)}return De[i]};window.emWidgets={topic:St};const ce=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Tt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function Ae(i,t){n.addMessages(i,t)}function Ft(i){n.$locale.set(i)}const Le={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CPbOt4AY.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-D96wnUeF.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-8tONX9SA.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BsYSU3V2.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function Et(i){n.append_styles(i,"svelte-chi6uq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Ie(i){let t;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Me(i){let t,e,r=i[25]&&Re(i);return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"status",i[24]),n.set_custom_element_data(e,"startdate",i[22]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"mbsource",i[13]),n.set_custom_element_data(e,"enddate",i[23]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[25]?r?r.p(o,s):(r=Re(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&16777216&&n.set_custom_element_data(e,"status",o[24]),s[0]&4194304&&n.set_custom_element_data(e,"startdate",o[22]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&8388608&&n.set_custom_element_data(e,"enddate",o[23])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Re(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[25]),n.set_custom_element_data(t,"clientstyling",i[10]),n.set_custom_element_data(t,"clientstylingurl",i[11]),n.set_custom_element_data(t,"mbsource",i[13]),n.set_custom_element_data(t,"translationurl",i[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[38].call(null,t,i[25])),r=!0)},p(s,a){a[0]&33554432&&n.set_custom_element_data(t,"tourid",s[25]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&8192&&n.set_custom_element_data(t,"mbsource",s[13]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&33554432&&e.update.call(null,s[25])},d(s){s&&n.detach(t),r=!1,o()}}}function jt(i){let t,e=i[33]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",i[52]),o=!0)},p(a,l){l[1]&4&&e!==(e=a[33]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(i){let t,e,r=i[3]=="true"&&Ue(i);function o(l,c){return l[27]?xt:Ct}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(l,c){r&&r.m(l,c),n.insert(l,t,c),a.m(l,c),n.insert(l,e,c)},p(l,c){l[3]=="true"?r?r.p(l,c):(r=Ue(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&(n.detach(t),n.detach(e)),r&&r.d(l),a.d(l)}}}function Pt(i){let t,e=i[33]("login")+"",r,o,s,a=i[33]("register")+"",l,c,d;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),l=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(m,p){n.insert(m,t,p),n.append(t,r),n.insert(m,o,p),n.insert(m,s,p),n.append(s,l),c||(d=[n.listen(t,"click",i[48]),n.listen(s,"click",i[49])],c=!0)},p(m,p){p[1]&4&&e!==(e=m[33]("login")+"")&&n.set_data(r,e),p[1]&4&&a!==(a=m[33]("register")+"")&&n.set_data(l,a)},d(m){m&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(d)}}}function Ue(i){let t,e=i[33]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",i[50]),o=!0)},p(a,l){l[1]&4&&e!==(e=a[33]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ct(i){let t,e,r,o,s;function a(d,m){return d[17]==!0?Ot:Bt}let l=a(i),c=l(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[18]},m(d,m){n.insert(d,t,m),c.m(t,null),o||(s=n.listen(t,"click",i[51]),o=!0)},p(d,m){l===(l=a(d))&&c?c.p(d,m):(c.d(1),c=l(d),c&&(c.c(),c.m(t,null))),m[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),m[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),m[0]&262144&&(t.disabled=d[18])},d(d){d&&n.detach(t),c.d(),o=!1,s()}}}function xt(i){let t,e=i[3]=="true"&&Je(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Je(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Bt(i){let t,e=i[33]("join")+"",r,o,s,a,l,c,d,m;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),d=n.svg_element("g"),m=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(m,"class","a"),n.attr(m,"part","a JoinButtonSvgA"),n.attr(m,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(p,k){n.insert(p,t,k),n.append(t,r),n.insert(p,o,k),n.insert(p,s,k),n.append(s,a),n.append(a,l),n.append(l,c),n.append(s,d),n.append(d,m)},p(p,k){k[1]&4&&e!==(e=p[33]("join")+"")&&n.set_data(r,e)},d(p){p&&(n.detach(t),n.detach(o),n.detach(s))}}}function Ot(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function Je(i){let t,e=i[33]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&4&&e!==(e=o[33]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function We(i){let t,e=i[33]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[19]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,l){n.insert(a,t,l),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,l){l[1]&4&&e!==(e=a[33]("joinerror")+"")&&n.set_data(r,e),l[0]&524288&&n.set_data(s,a[19])},d(a){a&&n.detach(t)}}}function qe(i){let t,e,r=i[16]&&He();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"mbsource",i[13]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[16]?r||(r=He(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function He(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Dt(i){let t,e,r,o,s,a,l,c,d,m,p,k,g=i[16]&&Ie(),_=i[15]&&Me(i);function w(f,h){if(!f[15])return Pt;if(f[24]!="Closed"&&f[24]!="Closing")return zt;if(f[3]=="true")return jt}let E=w(i),y=E&&E(i),v=(i[18]||i[20])&&We(i),S=i[4]=="true"&&qe(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),g&&g.c(),s=n.space(),_&&_.c(),a=n.space(),l=n.element("div"),y&&y.c(),c=n.space(),v&&v.c(),d=n.space(),S&&S.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[21]),n.set_custom_element_data(r,"status",i[24]),n.set_custom_element_data(r,"startdate",i[22]),n.set_custom_element_data(r,"tourid",i[25]),n.set_custom_element_data(r,"scorecriteria",i[28]),n.set_custom_element_data(r,"minbetcount",i[29]),n.set_custom_element_data(r,"thumbnail",i[26]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[31]),n.set_custom_element_data(r,"mbsource",i[13]),n.set_custom_element_data(r,"userenrolled",i[27]),n.set_custom_element_data(r,"clientstyling",i[10]),n.set_custom_element_data(r,"clientstylingurl",i[11]),n.set_custom_element_data(r,"translationurl",i[12]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[9]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(l,"class","TournamentButtons"),n.attr(l,"part","TournamentButtons"),n.attr(e,"class",m="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",p="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[32]?"elementToFadeOut":"elementToFadeIn")+" "+(i[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",k=`${i[16]?"Loading":""}`)},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(e,r),n.append(e,o),g&&g.m(e,null),n.append(e,s),_&&_.m(e,null),n.append(e,a),n.append(e,l),y&&y.m(l,null),n.append(e,c),v&&v.m(e,null),n.append(e,d),S&&S.m(e,null),i[53](t)},p(f,h){h[0]&1&&n.set_custom_element_data(r,"session",f[0]),h[0]&2&&n.set_custom_element_data(r,"userid",f[1]),h[0]&2097152&&n.set_custom_element_data(r,"title",f[21]),h[0]&16777216&&n.set_custom_element_data(r,"status",f[24]),h[0]&4194304&&n.set_custom_element_data(r,"startdate",f[22]),h[0]&33554432&&n.set_custom_element_data(r,"tourid",f[25]),h[0]&268435456&&n.set_custom_element_data(r,"scorecriteria",f[28]),h[0]&536870912&&n.set_custom_element_data(r,"minbetcount",f[29]),h[0]&67108864&&n.set_custom_element_data(r,"thumbnail",f[26]),h[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),h[1]&1&&n.set_custom_element_data(r,"gameurl",f[31]),h[0]&8192&&n.set_custom_element_data(r,"mbsource",f[13]),h[0]&134217728&&n.set_custom_element_data(r,"userenrolled",f[27]),h[0]&1024&&n.set_custom_element_data(r,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(r,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(r,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(r,"lang",f[8]),h[0]&512&&n.set_custom_element_data(r,"keepbrowsercontext",f[9]),f[16]?g||(g=Ie(),g.c(),g.m(e,s)):g&&(g.d(1),g=null),f[15]?_?_.p(f,h):(_=Me(f),_.c(),_.m(e,a)):_&&(_.d(1),_=null),E===(E=w(f))&&y?y.p(f,h):(y&&y.d(1),y=E&&E(f),y&&(y.c(),y.m(l,null))),f[18]||f[20]?v?v.p(f,h):(v=We(f),v.c(),v.m(e,d)):v&&(v.d(1),v=null),f[4]=="true"?S?S.p(f,h):(S=qe(f),S.c(),S.m(e,null)):S&&(S.d(1),S=null),h[0]&192|h[1]&2&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",m),h[0]&192|h[1]&2&&p!==(p="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",p),h[0]&65536&&k!==(k=`${f[16]?"Loading":""}`)&&n.attr(t,"class",k)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),g&&g.d(),_&&_.d(),y&&y.d(),v&&v.d(),S&&S.d(),i[53](null)}}}function At(i,t,e){let r;n.component_subscribe(i,n.$format,u=>e(33,r=u));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:l}=t,{endpoint:c=""}=t,{showdetails:d=""}=t,{showslider:m=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:g=""}=t,{lang:_=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:y=""}=t,{registerurl:v=""}=t,{currency:S=""}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:h=""}=t,{clientstylingurl:L=""}=t,{translationurl:I=""}=t,{tournamentinfo:M}=t,{mbsource:R}=t,z,x=!1,U="",B=!0,fe=window.navigator.userAgent,J=!1,W=!1,de="There was an error while trying to join the tournament",K=!1,V,me,he,O,j,pe,X,_e,ge,be=[],Z=[],we="#",Q,q=!1;Tt({withLocale:"en",translations:{}});const Qe=()=>{fetch(I).then(b=>b.json()).then(b=>{Object.keys(b).forEach(F=>{Ae(F,b[F])})}).catch(b=>{console.log(b)})};Object.keys(Le).forEach(u=>{Ae(u,Le[u])});const ye=u=>{$e(u),ee(u),Fe(this,j)},ve=u=>{if(u.data&&u.data.type=="UserSessionID"&&(e(15,x=!0),U=u.data.session),u.data.type=="UpdateTournamentView"){let b=u.data.tournamentData;if(j&&j!=b.id)return;ye(b)}if(u.data&&u.data.type==`UpdateSingleTournament_${l}`){let b=u.data.tournamentData,F=l<4?l*100:Math.random()*300+300;e(32,q=l==1),setTimeout(()=>{e(32,q=!0),e(25,j=b.id),ye(b)},F),setTimeout(()=>{e(32,q=!1)},F+200)}},$e=u=>{u.state!=O&&(e(24,O=u.state),window.postMessage({type:`TournamentStatus_${j}`,status:O},window.location.href))},ke=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),y&&(window.location=y)},Se=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),v&&(window.location=v)},$=u=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:u,showLeaderboard:!0},window.location.href)},Te=(u,b)=>ne(this,null,function*(){var je;e(18,W=!1),e(20,K=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:u},window.location.href),e(17,J=!0);let F=new URL(`${c}/v1/bonus/claim`),H=new Headers,C={};F.searchParams.append("language",_),F.searchParams.append("platform",ce(fe)),H.append("Content-Type","application/json"),H.append("X-SessionID",U),b&&b.length>=1&&(C={language:_,bonusCode:b[0].code,currency:S,type:"tournament"});let ut={method:"PUT",headers:H,body:JSON.stringify(C)};const Ee=()=>{e(17,J=!1),e(27,X=!0)},te=T=>{e(17,J=!1),T&&e(19,de=T),e(18,W=!0)},D=yield ne(this,null,function*(){let T;try{T=yield fetch(F,ut),T=yield T.json()}catch(Mt){te()}return T});if(D)if(D.success==!0)Ee();else if(D.errorMessage.match("VersionMismatchException")){let T;T=yield fetch(`${c}/tournaments/${j}`,{headers:{"X-SessionID":o}}),T=yield T.json(),(je=T==null?void 0:T.item)!=null&&je.playerEnrolled?Ee():(te(D.errorMessage),e(20,K=!0),e(18,W=!1))}else te(D.errorMessage)}),Fe=(u,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:be},window.location.href)},ee=u=>{u&&(e(21,V=u.nameOrTitle||""),e(22,me=u.startTime),e(23,he=u.endTime),e(24,O=u.state),e(25,j=u.id),e(26,pe=u.thumbnail),e(27,X=u.playerEnrolled==="true"||u.playerEnrolled==!0||!1),e(28,_e=u.scoreCriteria),e(29,ge=u.minBetCount),be=u.prizes,e(30,Z=u.wallets||[]),e(31,we=u.termsUrl||"#"))},et=u=>{e(16,B=!0);let b=new URL(u),F=new Headers;b.searchParams.append("language",_),b.searchParams.append("platform",ce(fe)),x&&F.append("X-SessionID",U),fetch(b,{method:"GET",headers:F}).then(C=>C.json()).then(C=>{ee(C.item)}).finally(()=>{e(16,B=!1)})},tt=()=>{o.length>0&&o!="false"?(U=o,e(15,x=!0)):e(15,x=!1)},nt=()=>{if(M){ee(M);return}e(16,B=!0),et(a)};n.onMount(()=>(e(16,B=!V),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ve,!1),()=>{window.removeEventListener("message",ve)}));const rt=()=>ke(),it=()=>Se(),ot=()=>$(j),st=()=>Te(j,Z),at=()=>$(j);function lt(u){n.binding_callbacks[u?"unshift":"push"](()=>{z=u,e(14,z)})}return i.$$set=u=>{"session"in u&&e(0,o=u.session),"userid"in u&&e(1,s=u.userid),"tournamenturl"in u&&e(2,a=u.tournamenturl),"touridx"in u&&e(39,l=u.touridx),"endpoint"in u&&e(40,c=u.endpoint),"showdetails"in u&&e(3,d=u.showdetails),"showslider"in u&&e(4,m=u.showslider),"showenrolled"in u&&e(5,p=u.showenrolled),"maxwidth"in u&&e(6,k=u.maxwidth),"fullsize"in u&&e(7,g=u.fullsize),"lang"in u&&e(8,_=u.lang),"loginevent"in u&&e(41,w=u.loginevent),"registerevent"in u&&e(42,E=u.registerevent),"loginurl"in u&&e(43,y=u.loginurl),"registerurl"in u&&e(44,v=u.registerurl),"currency"in u&&e(45,S=u.currency),"keepbrowsercontext"in u&&e(9,f=u.keepbrowsercontext),"clientstyling"in u&&e(10,h=u.clientstyling),"clientstylingurl"in u&&e(11,L=u.clientstylingurl),"translationurl"in u&&e(12,I=u.translationurl),"tournamentinfo"in u&&e(46,M=u.tournamentinfo),"mbsource"in u&&e(13,R=u.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&256&&_&&Ft(_),i.$$.dirty[0]&4096&&I&&Qe(),i.$$.dirty[0]&1&&o&&tt(),i.$$.dirty[0]&260&&e(47,Q=a&&_),i.$$.dirty[1]&65536&&Q&&nt(),i.$$.dirty[0]&17408&&h&&z&&n.setClientStyling(z,h),i.$$.dirty[0]&18432&&L&&z&&n.setClientStylingURL(z,L),i.$$.dirty[0]&24576&&R&&z&&n.setStreamStyling(z,`${R}.Style`)},[o,s,a,d,m,p,k,g,_,f,h,L,I,R,z,x,B,J,W,de,K,V,me,he,O,j,pe,X,_e,ge,Z,we,q,r,ke,Se,$,Te,Fe,l,c,w,E,y,v,S,M,Q,rt,it,ot,st,at,lt]}class Ze extends n.SvelteComponent{constructor(t){super(),n.init(this,t,At,Dt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:39,endpoint:40,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:41,registerevent:42,loginurl:43,registerurl:44,currency:45,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:46,mbsource:13},Et,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[39]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[40]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[41]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[42]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[43]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[44]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[45]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[46]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(Ze,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{}},[],[],!0);const Lt=Object.freeze(Object.defineProperty({__proto__:null,default:Ze},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Lt;exports.getDevice=ce;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var n = (t, o, e) => new Promise((m, s) => {
|
|
2
|
-
var c = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
a(e.next(r));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
s(i);
|
|
7
|
-
}
|
|
8
|
-
}, l = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
a(e.throw(r));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
s(i);
|
|
13
|
-
}
|
|
14
|
-
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(c, l);
|
|
15
|
-
a((e = e.apply(t, o)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as g, p as u } from "./index-97d17652-BEnqZAxL.js";
|
|
18
|
-
import { g as d } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
|
19
|
-
var h = () => {
|
|
20
|
-
const t = import.meta.url, o = {};
|
|
21
|
-
return t !== "" && (o.resourcesUrl = new URL(".", t).href), u(o);
|
|
22
|
-
};
|
|
23
|
-
h().then((t) => n(void 0, null, function* () {
|
|
24
|
-
return yield d(), g([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], t);
|
|
25
|
-
}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { b as o, p as e } from "./index-97d17652-WK_DbPS4.js";
|
|
2
|
-
import { g as a } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
|
3
|
-
var i = () => {
|
|
4
|
-
const r = import.meta.url, t = {};
|
|
5
|
-
return r !== "" && (t.resourcesUrl = new URL(".", r).href), e(t);
|
|
6
|
-
};
|
|
7
|
-
i().then(async (r) => (await a(), o([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [2, "border-radius"], marginBottom: [2, "margin-bottom"], marginTop: [2, "margin-top"], marginLeft: [2, "margin-left"], marginRight: [2, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=(r,t,i)=>new Promise((l,c)=>{var d=e=>{try{o(i.next(e))}catch(n){c(n)}},m=e=>{try{o(i.throw(e))}catch(n){c(n)}},o=e=>e.done?l(e.value):Promise.resolve(e.value).then(d,m);o((i=i.apply(r,t)).next())});const u=require("./index-97d17652-D5_8Vwfn.cjs"),g=require("./app-globals-0f993ce5-DgOnOgxM.cjs");var a=typeof document!="undefined"?document.currentScript:null,h=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-image-DE8MJHCZ.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};h().then(r=>s(exports,null,function*(){return yield g.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { U as h } from "./ui-image-b7b48fe5-V9vp4faA.js";
|
|
2
|
-
import { r as o, h as t, H as i } from "./index-97d17652-BEnqZAxL.js";
|
|
3
|
-
const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}", s = n, a = class {
|
|
4
|
-
constructor(e) {
|
|
5
|
-
o(this, e), this.structure = void 0, this.width = void 0, this.height = void 0, this.borderRadius = void 0, this.marginBottom = void 0, this.marginTop = void 0, this.marginLeft = void 0, this.marginRight = void 0, this.animation = !0, this.rows = void 0, this.size = void 0, this.color = void 0, this.primaryColor = void 0, this.secondaryColor = void 0;
|
|
6
|
-
}
|
|
7
|
-
handleStructureChange(e, r) {
|
|
8
|
-
r !== e && this.handleStructure(e);
|
|
9
|
-
}
|
|
10
|
-
handleStructure(e) {
|
|
11
|
-
switch (e) {
|
|
12
|
-
case "logo":
|
|
13
|
-
return this.renderLogo();
|
|
14
|
-
case "image":
|
|
15
|
-
return this.renderImage();
|
|
16
|
-
case "title":
|
|
17
|
-
return this.renderTitle();
|
|
18
|
-
case "text":
|
|
19
|
-
return this.renderText();
|
|
20
|
-
case "rectangle":
|
|
21
|
-
return this.renderRectangle();
|
|
22
|
-
case "circle":
|
|
23
|
-
return this.renderCircle();
|
|
24
|
-
default:
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
renderLogo() {
|
|
29
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
30
|
-
}
|
|
31
|
-
renderImage() {
|
|
32
|
-
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
33
|
-
}
|
|
34
|
-
renderTitle() {
|
|
35
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
36
|
-
}
|
|
37
|
-
renderText() {
|
|
38
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, r) => t("div", { key: r, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
39
|
-
}
|
|
40
|
-
renderRectangle() {
|
|
41
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
42
|
-
}
|
|
43
|
-
renderCircle() {
|
|
44
|
-
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
45
|
-
}
|
|
46
|
-
render() {
|
|
47
|
-
let e = "";
|
|
48
|
-
switch (this.structure) {
|
|
49
|
-
case "logo":
|
|
50
|
-
e = `
|
|
51
|
-
:host {
|
|
52
|
-
--emw-skeleton-logo-width: ${this.width};
|
|
53
|
-
--emw-skeleton-logo-height: ${this.height};
|
|
54
|
-
--emw-skeleton-logo-border-radius: ${this.borderRadius}px;
|
|
55
|
-
--emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;
|
|
56
|
-
--emw-skeleton-logo-margin-top: ${this.marginTop}px;
|
|
57
|
-
--emw-skeleton-logo-margin-left: ${this.marginLeft}px;
|
|
58
|
-
--emw-skeleton-logo-margin-right: ${this.marginRight}px;
|
|
59
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
60
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
61
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
break;
|
|
65
|
-
case "image":
|
|
66
|
-
e = `
|
|
67
|
-
:host {
|
|
68
|
-
--emw-skeleton-image-width: ${this.width};
|
|
69
|
-
--emw-skeleton-image-height: ${this.height};
|
|
70
|
-
--emw-skeleton-image-border-radius: ${this.borderRadius}px;
|
|
71
|
-
--emw-skeleton-image-margin-bottom: ${this.marginBottom}px;
|
|
72
|
-
--emw-skeleton-image-margin-top: ${this.marginTop}px;
|
|
73
|
-
--emw-skeleton-image-margin-left: ${this.marginLeft}px;
|
|
74
|
-
--emw-skeleton-image-margin-right: ${this.marginRight}px;
|
|
75
|
-
--emw-skeleton-image-background: ${this.color};
|
|
76
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
77
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
break;
|
|
81
|
-
case "title":
|
|
82
|
-
e = `
|
|
83
|
-
:host {
|
|
84
|
-
--emw-skeleton-title-width: ${this.width};
|
|
85
|
-
--emw-skeleton-title-height: ${this.height};
|
|
86
|
-
--emw-skeleton-title-border-radius: ${this.borderRadius}px;
|
|
87
|
-
--emw-skeleton-title-margin-bottom: ${this.marginBottom}px;
|
|
88
|
-
--emw-skeleton-title-margin-top: ${this.marginTop}px;
|
|
89
|
-
--emw-skeleton-title-margin-left: ${this.marginLeft}px;
|
|
90
|
-
--emw-skeleton-title-margin-right: ${this.marginRight}px;
|
|
91
|
-
--emw-skeleton-title-background: ${this.color};
|
|
92
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
93
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
96
|
-
break;
|
|
97
|
-
case "text":
|
|
98
|
-
e = `
|
|
99
|
-
:host {
|
|
100
|
-
--emw-skeleton-text-width: ${this.width};
|
|
101
|
-
--emw-skeleton-text-height: ${this.height};
|
|
102
|
-
--emw-skeleton-text-border-radius: ${this.borderRadius}px;
|
|
103
|
-
--emw-skeleton-text-margin-bottom: ${this.marginBottom}px;
|
|
104
|
-
--emw-skeleton-text-margin-top: ${this.marginTop}px;
|
|
105
|
-
--emw-skeleton-text-margin-left: ${this.marginLeft}px;
|
|
106
|
-
--emw-skeleton-text-margin-right: ${this.marginRight}px;
|
|
107
|
-
--emw-skeleton-text-background: ${this.color};
|
|
108
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
109
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
110
|
-
}
|
|
111
|
-
`;
|
|
112
|
-
break;
|
|
113
|
-
case "rectangle":
|
|
114
|
-
e = `
|
|
115
|
-
:host {
|
|
116
|
-
--emw-skeleton-rectangle-width: ${this.width};
|
|
117
|
-
--emw-skeleton-rectangle-height: ${this.height};
|
|
118
|
-
--emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;
|
|
119
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;
|
|
120
|
-
--emw-skeleton-rectangle-margin-top: ${this.marginTop}px;
|
|
121
|
-
--emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;
|
|
122
|
-
--emw-skeleton-rectangle-margin-right: ${this.marginRight}px;
|
|
123
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
124
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
125
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
126
|
-
}
|
|
127
|
-
`;
|
|
128
|
-
break;
|
|
129
|
-
case "circle":
|
|
130
|
-
e = `
|
|
131
|
-
:host {
|
|
132
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
133
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
134
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
135
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
136
|
-
}
|
|
137
|
-
`;
|
|
138
|
-
break;
|
|
139
|
-
default:
|
|
140
|
-
e = "";
|
|
141
|
-
}
|
|
142
|
-
return t(i, { key: "3bb792a149db7fe732d5cbfa092cdb4d6ca0689e" }, t("style", { key: "a4607599b60659f385ae2660513e38b383739674" }, e), this.handleStructure(this.structure));
|
|
143
|
-
}
|
|
144
|
-
static get watchers() {
|
|
145
|
-
return {
|
|
146
|
-
structure: ["handleStructureChange"]
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
a.style = s;
|
|
151
|
-
export {
|
|
152
|
-
h as ui_image,
|
|
153
|
-
a as ui_skeleton
|
|
154
|
-
};
|