@everymatrix/casino-tournaments-page-controller 1.69.2 → 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/{CasinoTournamentsPageController-CI5eShLc.cjs → CasinoTournamentsPageController-DXMrl10M.cjs} +2 -2
- package/components/{CasinoTournamentsPageController-Bf-CdGNo.js → CasinoTournamentsPageController-DvxoUMKp.js} +4 -4
- package/components/{CasinoTournamentsPageController-BQDXedYs.js → CasinoTournamentsPageController-DykW9bzM.js} +4 -4
- package/components/{CasinoTournamentsTable-Cy1iiGNx.cjs → CasinoTournamentsTable-BkN6GA4y.cjs} +1 -1
- package/components/{CasinoTournamentsTable-CXJc7Qm3.js → CasinoTournamentsTable-DGvFzGLd.js} +1 -1
- package/components/{CasinoTournamentsTable-C1n8uS2e.js → CasinoTournamentsTable-DMekbQyx.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-AgdSyEjR.js → CasinoTournamentsThumbnail-CfTenu8y.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-mCHarQFf.cjs → CasinoTournamentsThumbnail-MXiUsQan.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-ChNM8T1d.js → CasinoTournamentsThumbnail-Zo5nH3KP.js} +3 -3
- package/components/CasinoTournamentsThumbnailController-BK3K21SV.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailController-Dcc9U_Ep.js → CasinoTournamentsThumbnailController-DRWK4JrN.js} +437 -418
- package/components/{CasinoTournamentsThumbnailController-BivvCHZR.js → CasinoTournamentsThumbnailController-v1w8osZ0.js} +443 -424
- package/components/{CasinoTournamentsThumbnailDuration-DAUb81ii.js → CasinoTournamentsThumbnailDuration-BERIuwaT.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D_lcpvzX.js → CasinoTournamentsThumbnailDuration-BhDeMTFB.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Dwj4Tl4N.cjs → CasinoTournamentsThumbnailDuration-eFfdi9RB.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-yMjW7e8X.js → CasinoTournamentsThumbnailGamesSlider-C36x3yI0.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cq9DpXSW.js → CasinoTournamentsThumbnailGamesSlider-C6KoQrGJ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DLwcjVTc.cjs → CasinoTournamentsThumbnailGamesSlider-CbzElZpH.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CyyejV9c.js → CasinoTournamentsThumbnailPrizes-CMECnshf.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BpY_rZ-t.cjs → CasinoTournamentsThumbnailPrizes-Cws2TsFz.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D0HmiUyT.js → CasinoTournamentsThumbnailPrizes-c3ZDBTGZ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-DG8KKkhp.cjs → CasinoTournamentsThumbnailRule-BqZ6R-W-.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-CritjY2K.js → CasinoTournamentsThumbnailRule-C_8fvenZ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-DXuyDW3c.js → CasinoTournamentsThumbnailRule-ssSQyMy8.js} +1 -1
- package/es2015/casino-tournaments-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-IdX2D3yt.js → index-97d17652-B0NIExnR.js} +1 -1
- package/stencil/{index-97d17652-D1-6d0Bk.js → index-97d17652-D6HPqRtr.js} +1 -1
- package/stencil/{index-97d17652-CjAagVjG.cjs → index-97d17652-DNpK20ur.cjs} +1 -1
- package/stencil/{index-b2193545-B0DvEfNA.js → index-b2193545-BS7xFIk4.js} +1 -1
- package/stencil/{index-b2193545-CD-WYnv3.cjs → index-b2193545-BTdVi7--.cjs} +1 -1
- package/stencil/{index-b2193545-B7UKA_2g.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-C2NxBIqB.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DtQlRvK7.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-CSbk4a-_.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/ui-image_2-Cdo33umq.cjs +55 -0
- package/stencil/{ui-image_2-BjVQzUTV.js → ui-image_2-DbQ7SENq.js} +13 -30
- package/stencil/{ui-image_2-CaETIZEN.js → ui-image_2-L-CYescb.js} +13 -30
- 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-161699c3-mmBDKvtl.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +12 -29
- package/stencil/{ui-skeleton-161699c3-CTNclVRw.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +12 -29
- package/stencil/ui-skeleton-ae35c6f2-DDiK5zGt.cjs +55 -0
- package/components/CasinoTournamentsThumbnailController-DmmCctgl.cjs +0 -1
- package/stencil/ui-image-Bfgzybc8.cjs +0 -1
- package/stencil/ui-image-DMMaNQyp.js +0 -25
- package/stencil/ui-image-IRAtD-6W.js +0 -7
- package/stencil/ui-image_2-gOIKmeIr.cjs +0 -73
- package/stencil/ui-skeleton-161699c3-DJ_yCEN0.cjs +0 -73
- package/stencil/ui-skeleton-9_sHWZmN.cjs +0 -1
- package/stencil/ui-skeleton-B2gC9kOp.js +0 -29
- package/stencil/ui-skeleton-DxwGOcon.js +0 -11
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
1
|
+
import { r, h as t, H as n } from "./index-b2193545-BS7xFIk4.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
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
5
|
width: this.handleStylingProps(this.width),
|
|
6
6
|
height: this.handleStylingProps(this.height),
|
|
7
7
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
8
|
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
9
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
10
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
-
marginRight: this.handleStylingProps(this.marginRight)
|
|
12
|
-
|
|
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%";
|
|
13
14
|
}
|
|
14
|
-
handleStructureChange(e,
|
|
15
|
-
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
16
17
|
}
|
|
17
18
|
handleStylingProps(e) {
|
|
18
19
|
switch (typeof e) {
|
|
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
54
55
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
55
56
|
}
|
|
56
57
|
renderText() {
|
|
57
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e,
|
|
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" : "") })));
|
|
58
59
|
}
|
|
59
60
|
renderRectangle() {
|
|
60
61
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
75
76
|
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
76
77
|
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
77
78
|
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
78
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
79
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
80
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
81
79
|
}
|
|
82
80
|
`;
|
|
83
81
|
break;
|
|
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
91
89
|
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
92
90
|
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
93
91
|
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
94
|
-
--emw-skeleton-image-background: ${this.color};
|
|
95
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
96
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
97
92
|
}
|
|
98
93
|
`;
|
|
99
94
|
break;
|
|
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
107
102
|
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
108
103
|
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
109
104
|
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
110
|
-
--emw-skeleton-title-background: ${this.color};
|
|
111
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
112
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
113
105
|
}
|
|
114
106
|
`;
|
|
115
107
|
break;
|
|
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
123
115
|
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
124
116
|
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
125
117
|
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
126
|
-
--emw-skeleton-text-background: ${this.color};
|
|
127
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
128
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
129
118
|
}
|
|
130
119
|
`;
|
|
131
120
|
break;
|
|
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
139
128
|
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
140
129
|
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
141
130
|
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
142
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
143
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
144
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
145
131
|
}
|
|
146
132
|
`;
|
|
147
133
|
break;
|
|
148
134
|
case "circle":
|
|
149
135
|
e = `
|
|
150
136
|
:host {
|
|
151
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
152
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
153
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
154
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
155
138
|
}
|
|
156
139
|
`;
|
|
157
140
|
break;
|
|
158
141
|
default:
|
|
159
142
|
e = "";
|
|
160
143
|
}
|
|
161
|
-
return t(
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
162
145
|
}
|
|
163
146
|
static get watchers() {
|
|
164
147
|
return {
|
|
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
166
149
|
};
|
|
167
150
|
}
|
|
168
151
|
};
|
|
169
|
-
l.style =
|
|
152
|
+
l.style = a;
|
|
170
153
|
export {
|
|
171
154
|
l as U
|
|
172
155
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r
|
|
2
|
-
const
|
|
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
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
r(this, e), this.stylingValue = {
|
|
5
5
|
width: this.handleStylingProps(this.width),
|
|
6
6
|
height: this.handleStylingProps(this.height),
|
|
7
7
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
8
8
|
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
9
9
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
10
10
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
11
|
-
marginRight: this.handleStylingProps(this.marginRight)
|
|
12
|
-
|
|
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%";
|
|
13
14
|
}
|
|
14
|
-
handleStructureChange(e,
|
|
15
|
-
|
|
15
|
+
handleStructureChange(e, i) {
|
|
16
|
+
i !== e && this.handleStructure(e);
|
|
16
17
|
}
|
|
17
18
|
handleStylingProps(e) {
|
|
18
19
|
switch (typeof e) {
|
|
@@ -54,7 +55,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
54
55
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
55
56
|
}
|
|
56
57
|
renderText() {
|
|
57
|
-
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e,
|
|
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" : "") })));
|
|
58
59
|
}
|
|
59
60
|
renderRectangle() {
|
|
60
61
|
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
@@ -75,9 +76,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
75
76
|
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
76
77
|
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
77
78
|
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
78
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
79
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
80
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
81
79
|
}
|
|
82
80
|
`;
|
|
83
81
|
break;
|
|
@@ -91,9 +89,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
91
89
|
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
92
90
|
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
93
91
|
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
94
|
-
--emw-skeleton-image-background: ${this.color};
|
|
95
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
96
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
97
92
|
}
|
|
98
93
|
`;
|
|
99
94
|
break;
|
|
@@ -107,9 +102,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
107
102
|
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
108
103
|
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
109
104
|
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
110
|
-
--emw-skeleton-title-background: ${this.color};
|
|
111
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
112
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
113
105
|
}
|
|
114
106
|
`;
|
|
115
107
|
break;
|
|
@@ -123,9 +115,6 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
123
115
|
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
124
116
|
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
125
117
|
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
126
|
-
--emw-skeleton-text-background: ${this.color};
|
|
127
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
128
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
129
118
|
}
|
|
130
119
|
`;
|
|
131
120
|
break;
|
|
@@ -139,26 +128,20 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
139
128
|
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
140
129
|
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
141
130
|
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
142
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
143
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
144
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
145
131
|
}
|
|
146
132
|
`;
|
|
147
133
|
break;
|
|
148
134
|
case "circle":
|
|
149
135
|
e = `
|
|
150
136
|
:host {
|
|
151
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
152
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
153
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
154
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
137
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
155
138
|
}
|
|
156
139
|
`;
|
|
157
140
|
break;
|
|
158
141
|
default:
|
|
159
142
|
e = "";
|
|
160
143
|
}
|
|
161
|
-
return t(
|
|
144
|
+
return t(n, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
162
145
|
}
|
|
163
146
|
static get watchers() {
|
|
164
147
|
return {
|
|
@@ -166,7 +149,7 @@ const n = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw
|
|
|
166
149
|
};
|
|
167
150
|
}
|
|
168
151
|
};
|
|
169
|
-
l.style =
|
|
152
|
+
l.style = a;
|
|
170
153
|
export {
|
|
171
154
|
l as U
|
|
172
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 +0,0 @@
|
|
|
1
|
-
"use strict";var Y=(s,t,n)=>new Promise((r,i)=>{var a=d=>{try{u(n.next(d))}catch(f){i(f)}},l=d=>{try{u(n.throw(d))}catch(f){i(f)}},u=d=>d.done?r(d.value):Promise.resolve(d.value).then(a,l);u((n=n.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),j=require("./CasinoTournamentsPageController-CI5eShLc.cjs");function Re({withLocale:s,translations:t}){j.$locale.subscribe(n=>{n==null&&(j.$dictionary.set(t),j.$locale.set(s))})}function he(s,t){j.addMessages(s,t)}function Je(s){j.$locale.set(s)}const pe={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 s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-mCHarQFf.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-Dwj4Tl4N.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-BpY_rZ-t.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}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=s(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-DLwcjVTc.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function Ue(s){e.append_styles(s,"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 we(s){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function be(s){let t,n,r=s[25]&&ke(s);return{c(){r&&r.c(),t=e.space(),n=e.element("casino-tournaments-thumbnail-duration"),e.set_custom_element_data(n,"clientstyling",s[10]),e.set_custom_element_data(n,"clientstylingurl",s[11]),e.set_custom_element_data(n,"translationurl",s[12]),e.set_custom_element_data(n,"status",s[24]),e.set_custom_element_data(n,"startdate",s[22]),e.set_custom_element_data(n,"lang",s[8]),e.set_custom_element_data(n,"mbsource",s[13]),e.set_custom_element_data(n,"enddate",s[23]),e.set_custom_element_data(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(i,a){r&&r.m(i,a),e.insert(i,t,a),e.insert(i,n,a)},p(i,a){i[25]?r?r.p(i,a):(r=ke(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a[0]&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),a[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),a[0]&4096&&e.set_custom_element_data(n,"translationurl",i[12]),a[0]&16777216&&e.set_custom_element_data(n,"status",i[24]),a[0]&4194304&&e.set_custom_element_data(n,"startdate",i[22]),a[0]&256&&e.set_custom_element_data(n,"lang",i[8]),a[0]&8192&&e.set_custom_element_data(n,"mbsource",i[13]),a[0]&8388608&&e.set_custom_element_data(n,"enddate",i[23])},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i)}}}function ke(s){let t,n,r,i;return{c(){t=e.element("casino-tournaments-thumbnail-prizes"),e.set_custom_element_data(t,"tourid",s[25]),e.set_custom_element_data(t,"clientstyling",s[10]),e.set_custom_element_data(t,"clientstylingurl",s[11]),e.set_custom_element_data(t,"mbsource",s[13]),e.set_custom_element_data(t,"translationurl",s[12]),e.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(a,l){e.insert(a,t,l),r||(i=e.action_destroyer(n=s[38].call(null,t,s[25])),r=!0)},p(a,l){l[0]&33554432&&e.set_custom_element_data(t,"tourid",a[25]),l[0]&1024&&e.set_custom_element_data(t,"clientstyling",a[10]),l[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",a[11]),l[0]&8192&&e.set_custom_element_data(t,"mbsource",a[13]),l[0]&4096&&e.set_custom_element_data(t,"translationurl",a[12]),n&&e.is_function(n.update)&&l[0]&33554432&&n.update.call(null,a[25])},d(a){a&&e.detach(t),r=!1,i()}}}function qe(s){let t,n=s[33]("details")+"",r,i,a;return{c(){t=e.element("button"),r=e.text(n),e.attr(t,"class","DetailsLargeButton"),e.attr(t,"part","DetailsLargeButton")},m(l,u){e.insert(l,t,u),e.append(t,r),i||(a=e.listen(t,"click",s[52]),i=!0)},p(l,u){u[1]&4&&n!==(n=l[33]("details")+"")&&e.set_data(r,n)},d(l){l&&e.detach(t),i=!1,a()}}}function He(s){let t,n,r=s[3]=="true"&&ye(s);function i(u,d){return u[27]?We:Ge}let a=i(s),l=a(s);return{c(){r&&r.c(),t=e.space(),l.c(),n=e.empty()},m(u,d){r&&r.m(u,d),e.insert(u,t,d),l.m(u,d),e.insert(u,n,d)},p(u,d){u[3]=="true"?r?r.p(u,d):(r=ye(u),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a===(a=i(u))&&l?l.p(u,d):(l.d(1),l=a(u),l&&(l.c(),l.m(n.parentNode,n)))},d(u){u&&(e.detach(t),e.detach(n)),r&&r.d(u),l.d(u)}}}function Ne(s){let t,n=s[33]("login")+"",r,i,a,l=s[33]("register")+"",u,d,f;return{c(){t=e.element("button"),r=e.text(n),i=e.space(),a=e.element("button"),u=e.text(l),e.attr(t,"class","LoginButton"),e.attr(t,"part","LoginButton"),e.attr(a,"class","RegisterButton"),e.attr(a,"part","RegisterButton")},m(_,h){e.insert(_,t,h),e.append(t,r),e.insert(_,i,h),e.insert(_,a,h),e.append(a,u),d||(f=[e.listen(t,"click",s[48]),e.listen(a,"click",s[49])],d=!0)},p(_,h){h[1]&4&&n!==(n=_[33]("login")+"")&&e.set_data(r,n),h[1]&4&&l!==(l=_[33]("register")+"")&&e.set_data(u,l)},d(_){_&&(e.detach(t),e.detach(i),e.detach(a)),d=!1,e.run_all(f)}}}function ye(s){let t,n=s[33]("details")+"",r,i,a;return{c(){t=e.element("button"),r=e.text(n),e.attr(t,"class","DetailsButton"),e.attr(t,"part","DetailsButton")},m(l,u){e.insert(l,t,u),e.append(t,r),i||(a=e.listen(t,"click",s[50]),i=!0)},p(l,u){u[1]&4&&n!==(n=l[33]("details")+"")&&e.set_data(r,n)},d(l){l&&e.detach(t),i=!1,a()}}}function Ge(s){let t,n,r,i,a;function l(f,_){return f[17]==!0?Xe:Ke}let u=l(s),d=u(s);return{c(){t=e.element("button"),d.c(),e.attr(t,"class",n="JoinButton "+(s[7]?"JoinButtonFullSize":"")),e.attr(t,"part",r="JoinButton "+(s[7]?"JoinButtonFullSize":"")),t.disabled=s[18]},m(f,_){e.insert(f,t,_),d.m(t,null),i||(a=e.listen(t,"click",s[51]),i=!0)},p(f,_){u===(u=l(f))&&d?d.p(f,_):(d.d(1),d=u(f),d&&(d.c(),d.m(t,null))),_[0]&128&&n!==(n="JoinButton "+(f[7]?"JoinButtonFullSize":""))&&e.attr(t,"class",n),_[0]&128&&r!==(r="JoinButton "+(f[7]?"JoinButtonFullSize":""))&&e.attr(t,"part",r),_[0]&262144&&(t.disabled=f[18])},d(f){f&&e.detach(t),d.d(),i=!1,a()}}}function We(s){let t,n=s[3]=="true"&&Te(s);return{c(){n&&n.c(),t=e.empty()},m(r,i){n&&n.m(r,i),e.insert(r,t,i)},p(r,i){r[3]=="true"?n?n.p(r,i):(n=Te(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&e.detach(t),n&&n.d(r)}}}function Ke(s){let t,n=s[33]("join")+"",r,i,a,l,u,d,f,_;return{c(){t=e.element("span"),r=e.text(n),i=e.space(),a=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),d=e.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),f=e.svg_element("g"),_=e.svg_element("path"),e.attr(t,"part","JoinButtonSpan"),e.attr(_,"class","a"),e.attr(_,"part","a JoinButtonSvgA"),e.attr(_,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),e.attr(_,"transform","translate(26 26) rotate(180)"),e.attr(f,"transform","translate(26 26) rotate(180)"),e.attr(a,"part","JoinButtonSvg"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","26"),e.attr(a,"height","26"),e.attr(a,"viewBox","0 0 26 26")},m(h,F){e.insert(h,t,F),e.append(t,r),e.insert(h,i,F),e.insert(h,a,F),e.append(a,l),e.append(l,u),e.append(u,d),e.append(a,f),e.append(f,_)},p(h,F){F[1]&4&&n!==(n=h[33]("join")+"")&&e.set_data(r,n)},d(h){h&&(e.detach(t),e.detach(i),e.detach(a))}}}function Xe(s){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("circle"),e.attr(n,"cx","20"),e.attr(n,"cy","20"),e.attr(n,"r","18"),e.attr(t,"class","spinner"),e.attr(t,"part","spinner")},m(r,i){e.insert(r,t,i),e.append(t,n)},p:e.noop,d(r){r&&e.detach(t)}}}function Te(s){let t,n=s[33]("enrolled")+"",r;return{c(){t=e.element("button"),r=e.text(n),e.attr(t,"class","EnrolledButton"),e.attr(t,"part","EnrolledButton"),t.disabled=!0},m(i,a){e.insert(i,t,a),e.append(t,r)},p(i,a){a[1]&4&&n!==(n=i[33]("enrolled")+"")&&e.set_data(r,n)},d(i){i&&e.detach(t)}}}function Fe(s){let t,n=s[33]("joinerror")+"",r,i,a;return{c(){t=e.element("span"),r=e.text(n),i=e.space(),a=e.text(s[19]),e.attr(t,"class","ErrorText"),e.attr(t,"part","ErrorText")},m(l,u){e.insert(l,t,u),e.append(t,r),e.append(t,i),e.append(t,a)},p(l,u){u[1]&4&&n!==(n=l[33]("joinerror")+"")&&e.set_data(r,n),u[0]&524288&&e.set_data(a,l[19])},d(l){l&&e.detach(t)}}}function ve(s){let t,n,r=s[16]&&ze();return{c(){r&&r.c(),t=e.space(),n=e.element("casino-tournaments-thumbnail-games-slider"),e.set_custom_element_data(n,"clientstyling",s[10]),e.set_custom_element_data(n,"clientstylingurl",s[11]),e.set_custom_element_data(n,"translationurl",s[12]),e.set_custom_element_data(n,"tournamenturl",s[2]),e.set_custom_element_data(n,"mbsource",s[13]),e.set_custom_element_data(n,"lang",s[8]),e.set_custom_element_data(n,"scrollby","2"),e.set_custom_element_data(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(i,a){r&&r.m(i,a),e.insert(i,t,a),e.insert(i,n,a)},p(i,a){i[16]?r||(r=ze(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a[0]&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),a[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),a[0]&4096&&e.set_custom_element_data(n,"translationurl",i[12]),a[0]&4&&e.set_custom_element_data(n,"tournamenturl",i[2]),a[0]&8192&&e.set_custom_element_data(n,"mbsource",i[13]),a[0]&256&&e.set_custom_element_data(n,"lang",i[8])},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i)}}}function ze(s){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',e.attr(t,"class","TournamentsGamesSlider")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Ve(s){let t,n,r,i,a,l,u,d,f,_,h,F,y=s[16]&&we(),g=s[15]&&be(s);function E(m,c){if(!m[15])return Ne;if(m[24]!="Closed"&&m[24]!="Closing")return He;if(m[3]=="true")return qe}let z=E(s),w=z&&z(s),b=(s[18]||s[20])&&Fe(s),k=s[4]=="true"&&ve(s);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("casino-tournaments-thumbnail"),i=e.space(),y&&y.c(),a=e.space(),g&&g.c(),l=e.space(),u=e.element("div"),w&&w.c(),d=e.space(),b&&b.c(),f=e.space(),k&&k.c(),e.set_custom_element_data(r,"session",s[0]),e.set_custom_element_data(r,"userid",s[1]),e.set_custom_element_data(r,"title",s[21]),e.set_custom_element_data(r,"status",s[24]),e.set_custom_element_data(r,"startdate",s[22]),e.set_custom_element_data(r,"tourid",s[25]),e.set_custom_element_data(r,"scorecriteria",s[28]),e.set_custom_element_data(r,"minbetcount",s[29]),e.set_custom_element_data(r,"thumbnail",s[26]),e.set_custom_element_data(r,"showenrolled",s[5]),e.set_custom_element_data(r,"gameurl",s[31]),e.set_custom_element_data(r,"mbsource",s[13]),e.set_custom_element_data(r,"userenrolled",s[27]),e.set_custom_element_data(r,"clientstyling",s[10]),e.set_custom_element_data(r,"clientstylingurl",s[11]),e.set_custom_element_data(r,"translationurl",s[12]),e.set_custom_element_data(r,"lang",s[8]),e.set_custom_element_data(r,"keepbrowsercontext",s[9]),e.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),e.attr(u,"class","TournamentButtons"),e.attr(u,"part","TournamentButtons"),e.attr(n,"class",_="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[32]?"elementToFadeOut":"elementToFadeIn")),e.attr(n,"part",h="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[32]?"elementToFadeOut":"elementToFadeIn")+" "+(s[32]?"elementToFadeOut":"elementToFadeIn")),e.attr(t,"class",F=`${s[16]?"Loading":""}`)},m(m,c){e.insert(m,t,c),e.append(t,n),e.append(n,r),e.append(n,i),y&&y.m(n,null),e.append(n,a),g&&g.m(n,null),e.append(n,l),e.append(n,u),w&&w.m(u,null),e.append(n,d),b&&b.m(n,null),e.append(n,f),k&&k.m(n,null),s[53](t)},p(m,c){c[0]&1&&e.set_custom_element_data(r,"session",m[0]),c[0]&2&&e.set_custom_element_data(r,"userid",m[1]),c[0]&2097152&&e.set_custom_element_data(r,"title",m[21]),c[0]&16777216&&e.set_custom_element_data(r,"status",m[24]),c[0]&4194304&&e.set_custom_element_data(r,"startdate",m[22]),c[0]&33554432&&e.set_custom_element_data(r,"tourid",m[25]),c[0]&268435456&&e.set_custom_element_data(r,"scorecriteria",m[28]),c[0]&536870912&&e.set_custom_element_data(r,"minbetcount",m[29]),c[0]&67108864&&e.set_custom_element_data(r,"thumbnail",m[26]),c[0]&32&&e.set_custom_element_data(r,"showenrolled",m[5]),c[1]&1&&e.set_custom_element_data(r,"gameurl",m[31]),c[0]&8192&&e.set_custom_element_data(r,"mbsource",m[13]),c[0]&134217728&&e.set_custom_element_data(r,"userenrolled",m[27]),c[0]&1024&&e.set_custom_element_data(r,"clientstyling",m[10]),c[0]&2048&&e.set_custom_element_data(r,"clientstylingurl",m[11]),c[0]&4096&&e.set_custom_element_data(r,"translationurl",m[12]),c[0]&256&&e.set_custom_element_data(r,"lang",m[8]),c[0]&512&&e.set_custom_element_data(r,"keepbrowsercontext",m[9]),m[16]?y||(y=we(),y.c(),y.m(n,a)):y&&(y.d(1),y=null),m[15]?g?g.p(m,c):(g=be(m),g.c(),g.m(n,l)):g&&(g.d(1),g=null),z===(z=E(m))&&w?w.p(m,c):(w&&w.d(1),w=z&&z(m),w&&(w.c(),w.m(u,null))),m[18]||m[20]?b?b.p(m,c):(b=Fe(m),b.c(),b.m(n,f)):b&&(b.d(1),b=null),m[4]=="true"?k?k.p(m,c):(k=ve(m),k.c(),k.m(n,null)):k&&(k.d(1),k=null),c[0]&192|c[1]&2&&_!==(_="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[32]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(n,"class",_),c[0]&192|c[1]&2&&h!==(h="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[32]?"elementToFadeOut":"elementToFadeIn")+" "+(m[32]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(n,"part",h),c[0]&65536&&F!==(F=`${m[16]?"Loading":""}`)&&e.attr(t,"class",F)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),y&&y.d(),g&&g.d(),w&&w.d(),b&&b.d(),k&&k.d(),s[53](null)}}}function Ze(s,t,n){let r;e.component_subscribe(s,j.$format,o=>n(33,r=o));let{session:i=""}=t,{userid:a=""}=t,{tournamenturl:l=""}=t,{touridx:u}=t,{endpoint:d=""}=t,{showdetails:f=""}=t,{showslider:_=""}=t,{showenrolled:h=""}=t,{maxwidth:F=""}=t,{fullsize:y=""}=t,{lang:g=""}=t,{loginevent:E=""}=t,{registerevent:z=""}=t,{loginurl:w=""}=t,{registerurl:b=""}=t,{currency:k=""}=t,{keepbrowsercontext:m="false"}=t,{clientstyling:c=""}=t,{clientstylingurl:M=""}=t,{translationurl:A=""}=t,{tournamentinfo:O}=t,{mbsource:I}=t,B,D=!1,R="",P=!0,$=window.navigator.userAgent,J=!1,U=!1,ee="There was an error while trying to join the tournament",N=!1,G,te,ne,L,S,re,W,se,oe,ie=[],K=[],ae="#",X,q=!1;Re({withLocale:"en",translations:{}});const Be=()=>{fetch(A).then(p=>p.json()).then(p=>{Object.keys(p).forEach(v=>{he(v,p[v])})}).catch(p=>{console.log(p)})};Object.keys(pe).forEach(o=>{he(o,pe[o])});const le=o=>{je(o),Z(o),fe(this,S)},ue=o=>{if(o.data&&o.data.type=="UserSessionID"&&(n(15,D=!0),R=o.data.session),o.data.type=="UpdateTournamentView"){let p=o.data.tournamentData;if(S&&S!=p.id)return;le(p)}if(o.data&&o.data.type==`UpdateSingleTournament_${u}`){let p=o.data.tournamentData,v=u<4?u*100:Math.random()*300+300;n(32,q=u==1),setTimeout(()=>{n(32,q=!0),n(25,S=p.id),le(p)},v),setTimeout(()=>{n(32,q=!1)},v+200)}},je=o=>{o.state!=L&&(n(24,L=o.state),window.postMessage({type:`TournamentStatus_${S}`,status:L},window.location.href))},me=()=>{E&&(window.postMessage({type:E,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),w&&(window.location=w)},de=()=>{z&&(window.postMessage({type:z,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),b&&(window.location=b)},V=o=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:o,showLeaderboard:!0},window.location.href)},ce=(o,p)=>Y(this,null,function*(){var ge;n(18,U=!1),n(20,N=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:o},window.location.href),n(17,J=!0);let v=new URL(`${d}/v1/bonus/claim`),H=new Headers,C={};v.searchParams.append("language",g),v.searchParams.append("platform",j.getDevice($)),H.append("Content-Type","application/json"),H.append("X-SessionID",R),p&&p.length>=1&&(C={language:g,bonusCode:p[0].code,currency:k,type:"tournament"});let Ie={method:"PUT",headers:H,body:JSON.stringify(C)};const _e=()=>{n(17,J=!1),n(27,W=!0)},Q=T=>{n(17,J=!1),T&&n(19,ee=T),n(18,U=!0)},x=yield Y(this,null,function*(){let T;try{T=yield fetch(v,Ie),T=yield T.json()}catch(Ye){Q()}return T});if(x)if(x.success==!0)_e();else if(x.errorMessage.match("VersionMismatchException")){let T;T=yield fetch(`${d}/tournaments/${S}`,{headers:{"X-SessionID":i}}),T=yield T.json(),(ge=T==null?void 0:T.item)!=null&&ge.playerEnrolled?_e():(Q(x.errorMessage),n(20,N=!0),n(18,U=!1))}else Q(x.errorMessage)}),fe=(o,p)=>{window.postMessage({type:`TournamentPrizes_${p}`,prizes:ie},window.location.href)},Z=o=>{o&&(n(21,G=o.nameOrTitle||""),n(22,te=o.startTime),n(23,ne=o.endTime),n(24,L=o.state),n(25,S=o.id),n(26,re=o.thumbnail),n(27,W=o.playerEnrolled==="true"||o.playerEnrolled==!0||!1),n(28,se=o.scoreCriteria),n(29,oe=o.minBetCount),ie=o.prizes,n(30,K=o.wallets||[]),n(31,ae=o.termsUrl||"#"))},Ee=o=>{n(16,P=!0);let p=new URL(o),v=new Headers;p.searchParams.append("language",g),p.searchParams.append("platform",j.getDevice($)),D&&v.append("X-SessionID",R),fetch(p,{method:"GET",headers:v}).then(C=>C.json()).then(C=>{Z(C.item)}).finally(()=>{n(16,P=!1)})},Ce=()=>{i.length>0&&i!="false"?(R=i,n(15,D=!0)):n(15,D=!1)},De=()=>{if(O){Z(O);return}n(16,P=!0),Ee(l)};e.onMount(()=>(n(16,P=!G),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ue,!1),()=>{window.removeEventListener("message",ue)}));const Pe=()=>me(),Le=()=>de(),xe=()=>V(S),Me=()=>ce(S,K),Ae=()=>V(S);function Oe(o){e.binding_callbacks[o?"unshift":"push"](()=>{B=o,n(14,B)})}return s.$$set=o=>{"session"in o&&n(0,i=o.session),"userid"in o&&n(1,a=o.userid),"tournamenturl"in o&&n(2,l=o.tournamenturl),"touridx"in o&&n(39,u=o.touridx),"endpoint"in o&&n(40,d=o.endpoint),"showdetails"in o&&n(3,f=o.showdetails),"showslider"in o&&n(4,_=o.showslider),"showenrolled"in o&&n(5,h=o.showenrolled),"maxwidth"in o&&n(6,F=o.maxwidth),"fullsize"in o&&n(7,y=o.fullsize),"lang"in o&&n(8,g=o.lang),"loginevent"in o&&n(41,E=o.loginevent),"registerevent"in o&&n(42,z=o.registerevent),"loginurl"in o&&n(43,w=o.loginurl),"registerurl"in o&&n(44,b=o.registerurl),"currency"in o&&n(45,k=o.currency),"keepbrowsercontext"in o&&n(9,m=o.keepbrowsercontext),"clientstyling"in o&&n(10,c=o.clientstyling),"clientstylingurl"in o&&n(11,M=o.clientstylingurl),"translationurl"in o&&n(12,A=o.translationurl),"tournamentinfo"in o&&n(46,O=o.tournamentinfo),"mbsource"in o&&n(13,I=o.mbsource)},s.$$.update=()=>{s.$$.dirty[0]&256&&g&&Je(g),s.$$.dirty[0]&4096&&A&&Be(),s.$$.dirty[0]&1&&i&&Ce(),s.$$.dirty[0]&260&&n(47,X=l&&g),s.$$.dirty[1]&65536&&X&&De(),s.$$.dirty[0]&17408&&c&&B&&e.setClientStyling(B,c),s.$$.dirty[0]&18432&&M&&B&&e.setClientStylingURL(B,M),s.$$.dirty[0]&24576&&I&&B&&e.setStreamStyling(B,`${I}.Style`)},[i,a,l,f,_,h,F,y,g,m,c,M,A,I,B,D,P,J,U,ee,N,G,te,ne,L,S,re,W,se,oe,K,ae,q,r,me,de,V,ce,fe,u,d,E,z,w,b,k,O,X,Pe,Le,xe,Me,Ae,Oe]}class Se extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ze,Ve,e.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},Ue,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),e.flush()}get touridx(){return this.$$.ctx[39]}set touridx(t){this.$$set({touridx:t}),e.flush()}get endpoint(){return this.$$.ctx[40]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),e.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),e.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),e.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get loginevent(){return this.$$.ctx[41]}set loginevent(t){this.$$set({loginevent:t}),e.flush()}get registerevent(){return this.$$.ctx[42]}set registerevent(t){this.$$set({registerevent:t}),e.flush()}get loginurl(){return this.$$.ctx[43]}set loginurl(t){this.$$set({loginurl:t}),e.flush()}get registerurl(){return this.$$.ctx[44]}set registerurl(t){this.$$set({registerurl:t}),e.flush()}get currency(){return this.$$.ctx[45]}set currency(t){this.$$set({currency:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tournamentinfo(){return this.$$.ctx[46]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),e.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Se,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{}},[],[],!0);exports.default=Se;
|
|
@@ -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-CjAagVjG.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-Bfgzybc8.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:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));
|
|
@@ -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-IdX2D3yt.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: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "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-D1-6d0Bk.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: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1], color: [1], primaryColor: [1, "primary-color"], secondaryColor: [1, "secondary-color"] }, null, { structure: ["handleStructureChange"] }]]]], r)));
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui-image-b7b48fe5-DtQlRvK7.cjs"),t=require("./index-97d17652-CjAagVjG.cjs"),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,r=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)},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%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}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
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
11
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
12
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
13
|
-
}
|
|
14
|
-
`;break;case"image":e=`
|
|
15
|
-
:host {
|
|
16
|
-
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
17
|
-
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
18
|
-
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
19
|
-
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
20
|
-
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
21
|
-
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
22
|
-
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
23
|
-
--emw-skeleton-image-background: ${this.color};
|
|
24
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
25
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
26
|
-
}
|
|
27
|
-
`;break;case"title":e=`
|
|
28
|
-
:host {
|
|
29
|
-
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
30
|
-
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
31
|
-
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
32
|
-
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
33
|
-
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
34
|
-
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
35
|
-
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
36
|
-
--emw-skeleton-title-background: ${this.color};
|
|
37
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
38
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
39
|
-
}
|
|
40
|
-
`;break;case"text":e=`
|
|
41
|
-
:host {
|
|
42
|
-
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
43
|
-
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
44
|
-
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
45
|
-
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
46
|
-
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
47
|
-
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
48
|
-
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
49
|
-
--emw-skeleton-text-background: ${this.color};
|
|
50
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
51
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
52
|
-
}
|
|
53
|
-
`;break;case"rectangle":e=`
|
|
54
|
-
:host {
|
|
55
|
-
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
56
|
-
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
57
|
-
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
58
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
59
|
-
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
60
|
-
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
61
|
-
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
62
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
63
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
64
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
65
|
-
}
|
|
66
|
-
`;break;case"circle":e=`
|
|
67
|
-
:host {
|
|
68
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
69
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
70
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
71
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
72
|
-
}
|
|
73
|
-
`;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=s;exports.ui_image=o.UiImage;exports.ui_skeleton=r;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./index-b2193545-CD-WYnv3.cjs"),o=":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))}}",n=o,i=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)},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%",this.color="#c2c2c2",this.primaryColor="#c2c2c2",this.secondaryColor="#ffffff"}handleStructureChange(e,r){r!==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,r)=>t.h("div",{key:r,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
|
-
--emw-skeleton-logo-background: ${this.color};
|
|
11
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
12
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
13
|
-
}
|
|
14
|
-
`;break;case"image":e=`
|
|
15
|
-
:host {
|
|
16
|
-
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
17
|
-
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
18
|
-
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
19
|
-
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
20
|
-
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
21
|
-
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
22
|
-
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
23
|
-
--emw-skeleton-image-background: ${this.color};
|
|
24
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
25
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
26
|
-
}
|
|
27
|
-
`;break;case"title":e=`
|
|
28
|
-
:host {
|
|
29
|
-
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
30
|
-
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
31
|
-
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
32
|
-
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
33
|
-
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
34
|
-
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
35
|
-
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
36
|
-
--emw-skeleton-title-background: ${this.color};
|
|
37
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
38
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
39
|
-
}
|
|
40
|
-
`;break;case"text":e=`
|
|
41
|
-
:host {
|
|
42
|
-
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
43
|
-
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
44
|
-
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
45
|
-
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
46
|
-
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
47
|
-
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
48
|
-
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
49
|
-
--emw-skeleton-text-background: ${this.color};
|
|
50
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
51
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
52
|
-
}
|
|
53
|
-
`;break;case"rectangle":e=`
|
|
54
|
-
:host {
|
|
55
|
-
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
56
|
-
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
57
|
-
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
58
|
-
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
59
|
-
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
60
|
-
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
61
|
-
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
62
|
-
--emw-skeleton-rectangle-background: ${this.color};
|
|
63
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
64
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
65
|
-
}
|
|
66
|
-
`;break;case"circle":e=`
|
|
67
|
-
:host {
|
|
68
|
-
--emw-skeleton-circle-size: ${this.size};
|
|
69
|
-
--emw-skeleton-circle-background: ${this.color};
|
|
70
|
-
--emw-skeleton-primary-color: ${this.primaryColor};
|
|
71
|
-
--emw-skeleton-secondary-color: ${this.secondaryColor};
|
|
72
|
-
}
|
|
73
|
-
`;break;default:e=""}return t.h(t.Host,{key:"5c185b76c438d20d4ad88bc48d94ff5628410bb7"},t.h("style",{key:"de95e60a5955d5b2af83710423fe40329c187f7e"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};i.style=n;exports.UiSkeleton=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=(r,t,o)=>new Promise((l,s)=>{var m=e=>{try{n(o.next(e))}catch(i){s(i)}},d=e=>{try{n(o.throw(e))}catch(i){s(i)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(m,d);n((o=o.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-b2193545-CD-WYnv3.cjs"),p=require("./app-globals-0f993ce5-DgOnOgxM.cjs"),g=require("./ui-skeleton-161699c3-DJ_yCEN0.cjs");var a=typeof document!="undefined"?document.currentScript:null,f=()=>{const r=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:a&&a.tagName.toUpperCase()==="SCRIPT"&&a.src||new URL("stencil/ui-skeleton-9_sHWZmN.cjs",document.baseURI).href,t={};return r!==""&&(t.resourcesUrl=new URL(".",r).href),u.promiseResolve(t)};f().then(r=>c(exports,null,function*(){return yield p.globalScripts$1(),u.bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]]],r)}));exports.ui_skeleton=g.UiSkeleton;
|