@everymatrix/casino-game-thumbnail 1.58.1 → 1.59.1

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.
@@ -0,0 +1,122 @@
1
+ import { r as o, h as r } from "./index-ae04a8b1-BxaX26xW.js";
2
+ const n = ".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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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 {
3
+ constructor(e) {
4
+ 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;
5
+ }
6
+ handleStructureChange(e, t) {
7
+ t !== e && this.handleStructure(e);
8
+ }
9
+ updateStyles() {
10
+ this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
+ }
12
+ handleStructure(e) {
13
+ switch (e) {
14
+ case "logo":
15
+ return this.renderLogo();
16
+ case "image":
17
+ return this.renderImage();
18
+ case "title":
19
+ return this.renderTitle();
20
+ case "text":
21
+ return this.renderText();
22
+ case "rectangle":
23
+ return this.renderRectangle();
24
+ case "circle":
25
+ return this.renderCircle();
26
+ }
27
+ }
28
+ renderLogo() {
29
+ const e = {
30
+ width: `${this.width}`,
31
+ height: `${this.height}`,
32
+ "background-color": `${this.color}`,
33
+ "border-radius": `${this.borderRadius}px`,
34
+ "margin-bottom": `${this.marginBottom}px`,
35
+ "margin-top": `${this.marginTop}px`,
36
+ "margin-left": `${this.marginLeft}px`,
37
+ "margin-right": `${this.marginRight}px`
38
+ };
39
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
+ }
41
+ renderImage() {
42
+ const e = {
43
+ width: `${this.width}`,
44
+ height: `${this.height}`,
45
+ "background-color": `${this.color}`,
46
+ "border-radius": `${this.borderRadius}px`,
47
+ "margin-bottom": `${this.marginBottom}px`,
48
+ "margin-top": `${this.marginTop}px`,
49
+ "margin-left": `${this.marginLeft}px`,
50
+ "margin-right": `${this.marginRight}px`
51
+ };
52
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
+ }
54
+ renderTitle() {
55
+ const e = {
56
+ width: `${this.width}`,
57
+ height: `${this.height}`,
58
+ "background-color": `${this.color}`,
59
+ "border-radius": `${this.borderRadius}px`,
60
+ "margin-bottom": `${this.marginBottom}px`,
61
+ "margin-top": `${this.marginTop}px`,
62
+ "margin-left": `${this.marginLeft}px`,
63
+ "margin-right": `${this.marginRight}px`
64
+ };
65
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
+ }
67
+ renderText() {
68
+ const e = {
69
+ width: `${this.width}`,
70
+ height: `${this.height}`,
71
+ "background-color": `${this.color}`,
72
+ "border-radius": `${this.borderRadius}px`,
73
+ "margin-bottom": `${this.marginBottom}px`,
74
+ "margin-top": `${this.marginTop}px`,
75
+ "margin-left": `${this.marginLeft}px`,
76
+ "margin-right": `${this.marginRight}px`
77
+ };
78
+ return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
+ }
80
+ renderRectangle() {
81
+ const e = {
82
+ width: `${this.width}`,
83
+ height: `${this.height}`,
84
+ "background-color": `${this.color}`,
85
+ "border-radius": `${this.borderRadius}px`,
86
+ "margin-bottom": `${this.marginBottom}px`,
87
+ "margin-top": `${this.marginTop}px`,
88
+ "margin-left": `${this.marginLeft}px`,
89
+ "margin-right": `${this.marginRight}px`
90
+ };
91
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
+ }
93
+ renderCircle() {
94
+ const e = {
95
+ width: `${this.size}`,
96
+ height: `${this.size}`,
97
+ "background-color": `${this.color}`,
98
+ "margin-bottom": `${this.marginBottom}px`,
99
+ "margin-top": `${this.marginTop}px`,
100
+ "margin-left": `${this.marginLeft}px`,
101
+ "margin-right": `${this.marginRight}px`
102
+ };
103
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
+ }
105
+ componentDidLoad() {
106
+ this.updateStyles();
107
+ }
108
+ render() {
109
+ return this.handleStructure(this.structure);
110
+ }
111
+ static get watchers() {
112
+ return {
113
+ structure: ["handleStructureChange"],
114
+ primaryColor: ["updateStyles"],
115
+ secondaryColor: ["updateStyles"]
116
+ };
117
+ }
118
+ };
119
+ a.style = s;
120
+ export {
121
+ a as U
122
+ };
@@ -0,0 +1,122 @@
1
+ import { r as o, h as r } from "./index-ae04a8b1-D7qYBP-T.js";
2
+ const n = ".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, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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 {
3
+ constructor(e) {
4
+ 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;
5
+ }
6
+ handleStructureChange(e, t) {
7
+ t !== e && this.handleStructure(e);
8
+ }
9
+ updateStyles() {
10
+ this.primaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color", this.primaryColor), this.secondaryColor && this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color", this.secondaryColor);
11
+ }
12
+ handleStructure(e) {
13
+ switch (e) {
14
+ case "logo":
15
+ return this.renderLogo();
16
+ case "image":
17
+ return this.renderImage();
18
+ case "title":
19
+ return this.renderTitle();
20
+ case "text":
21
+ return this.renderText();
22
+ case "rectangle":
23
+ return this.renderRectangle();
24
+ case "circle":
25
+ return this.renderCircle();
26
+ }
27
+ }
28
+ renderLogo() {
29
+ const e = {
30
+ width: `${this.width}`,
31
+ height: `${this.height}`,
32
+ "background-color": `${this.color}`,
33
+ "border-radius": `${this.borderRadius}px`,
34
+ "margin-bottom": `${this.marginBottom}px`,
35
+ "margin-top": `${this.marginTop}px`,
36
+ "margin-left": `${this.marginLeft}px`,
37
+ "margin-right": `${this.marginRight}px`
38
+ };
39
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Logo " + (this.animation ? "Skeleton" : "") }));
40
+ }
41
+ renderImage() {
42
+ const e = {
43
+ width: `${this.width}`,
44
+ height: `${this.height}`,
45
+ "background-color": `${this.color}`,
46
+ "border-radius": `${this.borderRadius}px`,
47
+ "margin-bottom": `${this.marginBottom}px`,
48
+ "margin-top": `${this.marginTop}px`,
49
+ "margin-left": `${this.marginLeft}px`,
50
+ "margin-right": `${this.marginRight}px`
51
+ };
52
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Image " + (this.animation ? "Skeleton" : "") }));
53
+ }
54
+ renderTitle() {
55
+ const e = {
56
+ width: `${this.width}`,
57
+ height: `${this.height}`,
58
+ "background-color": `${this.color}`,
59
+ "border-radius": `${this.borderRadius}px`,
60
+ "margin-bottom": `${this.marginBottom}px`,
61
+ "margin-top": `${this.marginTop}px`,
62
+ "margin-left": `${this.marginLeft}px`,
63
+ "margin-right": `${this.marginRight}px`
64
+ };
65
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Title " + (this.animation ? "Skeleton" : "") }));
66
+ }
67
+ renderText() {
68
+ const e = {
69
+ width: `${this.width}`,
70
+ height: `${this.height}`,
71
+ "background-color": `${this.color}`,
72
+ "border-radius": `${this.borderRadius}px`,
73
+ "margin-bottom": `${this.marginBottom}px`,
74
+ "margin-top": `${this.marginTop}px`,
75
+ "margin-left": `${this.marginLeft}px`,
76
+ "margin-right": `${this.marginRight}px`
77
+ };
78
+ return Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((t, i) => r("div", { style: e, key: i, class: "Text " + (this.animation ? "Skeleton" : "") }));
79
+ }
80
+ renderRectangle() {
81
+ const e = {
82
+ width: `${this.width}`,
83
+ height: `${this.height}`,
84
+ "background-color": `${this.color}`,
85
+ "border-radius": `${this.borderRadius}px`,
86
+ "margin-bottom": `${this.marginBottom}px`,
87
+ "margin-top": `${this.marginTop}px`,
88
+ "margin-left": `${this.marginLeft}px`,
89
+ "margin-right": `${this.marginRight}px`
90
+ };
91
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
92
+ }
93
+ renderCircle() {
94
+ const e = {
95
+ width: `${this.size}`,
96
+ height: `${this.size}`,
97
+ "background-color": `${this.color}`,
98
+ "margin-bottom": `${this.marginBottom}px`,
99
+ "margin-top": `${this.marginTop}px`,
100
+ "margin-left": `${this.marginLeft}px`,
101
+ "margin-right": `${this.marginRight}px`
102
+ };
103
+ return r("div", { ref: (t) => this.skeletonContainer = t }, r("div", { style: e, class: "Circle " + (this.animation ? "Skeleton" : "") }));
104
+ }
105
+ componentDidLoad() {
106
+ this.updateStyles();
107
+ }
108
+ render() {
109
+ return this.handleStructure(this.structure);
110
+ }
111
+ static get watchers() {
112
+ return {
113
+ structure: ["handleStructureChange"],
114
+ primaryColor: ["updateStyles"],
115
+ secondaryColor: ["updateStyles"]
116
+ };
117
+ }
118
+ };
119
+ a.style = s;
120
+ export {
121
+ a as U
122
+ };