@everymatrix/casino-tournaments-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/{CasinoTournamentsController-CtQ0SbZ1.js → CasinoTournamentsController-BZwjbrSZ.js} +2 -2
- package/components/{CasinoTournamentsController-C99E3MCm.cjs → CasinoTournamentsController-DAlc6v5q.cjs} +1 -1
- package/components/{CasinoTournamentsController-Dv0w6uxv.js → CasinoTournamentsController-p7gjjT1w.js} +2 -2
- package/components/{CasinoTournamentsFilterController-ZPodzMjS.js → CasinoTournamentsFilterController-BI_0hGFs.js} +1 -1
- package/components/{CasinoTournamentsFilterController-D8z30hIO.cjs → CasinoTournamentsFilterController-Bv5gIhxj.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-CA_x2Klb.js → CasinoTournamentsFilterController-Z_1NYZzY.js} +1 -1
- package/components/{CasinoTournamentsListController-CMsPWeSH.cjs → CasinoTournamentsListController--z4a7-nE.cjs} +2 -2
- package/components/{CasinoTournamentsListController-CWtG_Kjm.js → CasinoTournamentsListController-BToJ8qHl.js} +2 -2
- package/components/{CasinoTournamentsListController-BYjVebPq.js → CasinoTournamentsListController-cgtk4TWs.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-DIFGhQrc.js → CasinoTournamentsThumbnail-BC0jFANl.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-zXFGDGG1.cjs → CasinoTournamentsThumbnail-BQHugN2I.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-Dtfyse7r.js → CasinoTournamentsThumbnail-CwzOc7jo.js} +3 -3
- package/components/CasinoTournamentsThumbnailController-BKtxzWkD.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailController-DChZllZ4.js → CasinoTournamentsThumbnailController-CbpgocJ9.js} +449 -430
- package/components/{CasinoTournamentsThumbnailController-cPtKiglf.js → CasinoTournamentsThumbnailController-DUB-VRSp.js} +441 -422
- package/components/{CasinoTournamentsThumbnailDuration-DFTngt18.js → CasinoTournamentsThumbnailDuration-B-V7VghJ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CRqfmGfU.js → CasinoTournamentsThumbnailDuration-BexSQUbu.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs → CasinoTournamentsThumbnailDuration-Db9uPVxy.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js → CasinoTournamentsThumbnailGamesSlider-CnnMVGGJ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js → CasinoTournamentsThumbnailGamesSlider-DXxNltWN.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs → CasinoTournamentsThumbnailGamesSlider-DYYLrAzR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-C1nsvr3R.js → CasinoTournamentsThumbnailPrizes-AaQiBGg6.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs → CasinoTournamentsThumbnailPrizes-DrpShjGg.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js → CasinoTournamentsThumbnailPrizes-XmtkuFg5.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-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-Cjehrx7D.cjs +0 -1
- 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 +0,0 @@
|
|
|
1
|
-
"use strict";var Q=(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("./CasinoTournamentsController-C99E3MCm.cjs");function Ie({withLocale:s,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(s))})}function ge(s,t){e.addMessages(s,t)}function Re(s){e.$locale.set(s)}const he={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-zXFGDGG1.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-kjnnyoM_.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-DnyppL-K.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-K4TlIiKZ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function Je(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 pe(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 we(s){let t,n,r=s[25]&&be(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=be(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 be(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 Ue(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 qe(s){let t,n,r=s[3]=="true"&&ke(s);function i(u,d){return u[27]?Ge:Ne}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=ke(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 He(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 ke(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 Ne(s){let t,n,r,i,a;function l(f,_){return f[17]==!0?Ke:We}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 Ge(s){let t,n=s[3]=="true"&&ye(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=ye(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 We(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 Ke(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 ye(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 Te(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 Fe(s){let t,n,r=s[16]&&ve();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=ve(),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 ve(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 Xe(s){let t,n,r,i,a,l,u,d,f,_,h,F,y=s[16]&&pe(),g=s[15]&&we(s);function j(m,c){if(!m[15])return He;if(m[24]!="Closed"&&m[24]!="Closing")return qe;if(m[3]=="true")return Ue}let z=j(s),w=z&&z(s),b=(s[18]||s[20])&&Te(s),k=s[4]=="true"&&Fe(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=pe(),y.c(),y.m(n,a)):y&&(y.d(1),y=null),m[15]?g?g.p(m,c):(g=we(m),g.c(),g.m(n,l)):g&&(g.d(1),g=null),z===(z=j(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=Te(m),b.c(),b.m(n,f)):b&&(b.d(1),b=null),m[4]=="true"?k?k.p(m,c):(k=Fe(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 Ve(s,t,n){let r;e.component_subscribe(s,e.$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:j=""}=t,{registerevent:z=""}=t,{loginurl:w=""}=t,{registerurl:b=""}=t,{currency:k=""}=t,{keepbrowsercontext:m="false"}=t,{clientstyling:c=""}=t,{clientstylingurl:x=""}=t,{translationurl:M=""}=t,{tournamentinfo:A}=t,{mbsource:O}=t,B,C=!1,I="",D=!0,Y=window.navigator.userAgent,R=!1,J=!1,$="There was an error while trying to join the tournament",H=!1,N,ee,te,P,S,ne,G,re,se,oe=[],W=[],ie="#",K,U=!1;Ie({withLocale:"en",translations:{}});const Se=()=>{fetch(M).then(p=>p.json()).then(p=>{Object.keys(p).forEach(v=>{ge(v,p[v])})}).catch(p=>{console.log(p)})};Object.keys(he).forEach(o=>{ge(o,he[o])});const ae=o=>{Be(o),V(o),ce(this,S)},le=o=>{if(o.data&&o.data.type=="UserSessionID"&&(n(15,C=!0),I=o.data.session),o.data.type=="UpdateTournamentView"){let p=o.data.tournamentData;if(S&&S!=p.id)return;ae(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,U=u==1),setTimeout(()=>{n(32,U=!0),n(25,S=p.id),ae(p)},v),setTimeout(()=>{n(32,U=!1)},v+200)}},Be=o=>{o.state!=P&&(n(24,P=o.state),window.postMessage({type:`TournamentStatus_${S}`,status:P},window.location.href))},ue=()=>{j&&(window.postMessage({type:j,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),w&&(window.location=w)},me=()=>{z&&(window.postMessage({type:z,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),b&&(window.location=b)},X=o=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:o,showLeaderboard:!0},window.location.href)},de=(o,p)=>Q(this,null,function*(){var _e;n(18,J=!1),n(20,H=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:o},window.location.href),n(17,R=!0);let v=new URL(`${d}/v1/bonus/claim`),q=new Headers,E={};v.searchParams.append("language",g),v.searchParams.append("platform",e.getDevice(Y)),q.append("Content-Type","application/json"),q.append("X-SessionID",I),p&&p.length>=1&&(E={language:g,bonusCode:p[0].code,currency:k,type:"tournament"});let Oe={method:"PUT",headers:q,body:JSON.stringify(E)};const fe=()=>{n(17,R=!1),n(27,G=!0)},Z=T=>{n(17,R=!1),T&&n(19,$=T),n(18,J=!0)},L=yield Q(this,null,function*(){let T;try{T=yield fetch(v,Oe),T=yield T.json()}catch(Qe){Z()}return T});if(L)if(L.success==!0)fe();else if(L.errorMessage.match("VersionMismatchException")){let T;T=yield fetch(`${d}/tournaments/${S}`,{headers:{"X-SessionID":i}}),T=yield T.json(),(_e=T==null?void 0:T.item)!=null&&_e.playerEnrolled?fe():(Z(L.errorMessage),n(20,H=!0),n(18,J=!1))}else Z(L.errorMessage)}),ce=(o,p)=>{window.postMessage({type:`TournamentPrizes_${p}`,prizes:oe},window.location.href)},V=o=>{o&&(n(21,N=o.nameOrTitle||""),n(22,ee=o.startTime),n(23,te=o.endTime),n(24,P=o.state),n(25,S=o.id),n(26,ne=o.thumbnail),n(27,G=o.playerEnrolled==="true"||o.playerEnrolled==!0||!1),n(28,re=o.scoreCriteria),n(29,se=o.minBetCount),oe=o.prizes,n(30,W=o.wallets||[]),n(31,ie=o.termsUrl||"#"))},je=o=>{n(16,D=!0);let p=new URL(o),v=new Headers;p.searchParams.append("language",g),p.searchParams.append("platform",e.getDevice(Y)),C&&v.append("X-SessionID",I),fetch(p,{method:"GET",headers:v}).then(E=>E.json()).then(E=>{V(E.item)}).finally(()=>{n(16,D=!1)})},Ee=()=>{i.length>0&&i!="false"?(I=i,n(15,C=!0)):n(15,C=!1)},Ce=()=>{if(A){V(A);return}n(16,D=!0),je(l)};e.onMount(()=>(n(16,D=!N),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",le,!1),()=>{window.removeEventListener("message",le)}));const De=()=>ue(),Pe=()=>me(),Le=()=>X(S),xe=()=>de(S,W),Me=()=>X(S);function Ae(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,j=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,x=o.clientstylingurl),"translationurl"in o&&n(12,M=o.translationurl),"tournamentinfo"in o&&n(46,A=o.tournamentinfo),"mbsource"in o&&n(13,O=o.mbsource)},s.$$.update=()=>{s.$$.dirty[0]&256&&g&&Re(g),s.$$.dirty[0]&4096&&M&&Se(),s.$$.dirty[0]&1&&i&&Ee(),s.$$.dirty[0]&260&&n(47,K=l&&g),s.$$.dirty[1]&65536&&K&&Ce(),s.$$.dirty[0]&17408&&c&&B&&e.setClientStyling(B,c),s.$$.dirty[0]&18432&&x&&B&&e.setClientStylingURL(B,x),s.$$.dirty[0]&24576&&O&&B&&e.setStreamStyling(B,`${O}.Style`)},[i,a,l,f,_,h,F,y,g,m,c,x,M,O,B,C,D,R,J,$,H,N,ee,te,P,S,ne,G,re,se,W,ie,U,r,ue,me,X,de,ce,u,d,j,z,w,b,k,A,K,De,Pe,Le,xe,Me,Ae]}class ze extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ve,Xe,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},Je,[-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(ze,{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=ze;
|
|
@@ -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
|
-
};
|