@everymatrix/bonus-powerups-ingame-detail 0.0.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.
Files changed (69) hide show
  1. package/dist/bonus-powerups-ingame-detail/app-globals-0f993ce5.js +1 -0
  2. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail-78a50d3f.js +11 -0
  3. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.esm.js +1 -0
  4. package/dist/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail_5.entry.js +1 -0
  5. package/dist/bonus-powerups-ingame-detail/index-334a1114.js +2 -0
  6. package/dist/bonus-powerups-ingame-detail/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/bonus-powerups-ingame-detail-33f5b380.js +11826 -0
  9. package/dist/cjs/bonus-powerups-ingame-detail.cjs.js +25 -0
  10. package/dist/cjs/bonus-powerups-ingame-detail_5.cjs.entry.js +334 -0
  11. package/dist/cjs/index-956ad213.js +1306 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/Arrow Curve Left.svg +11 -0
  15. package/dist/collection/assets/double-right.svg +4 -0
  16. package/dist/collection/assets/gotoPage.svg +3 -0
  17. package/dist/collection/assets/return.svg +15 -0
  18. package/dist/collection/collection-manifest.json +27 -0
  19. package/dist/collection/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.css +304 -0
  20. package/dist/collection/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.js +483 -0
  21. package/dist/collection/components/bonus-powerups-ingame-detail/index.js +1 -0
  22. package/dist/collection/components/smart-loader/smart-loader.css +84 -0
  23. package/dist/collection/components/smart-loader/smart-loader.js +17 -0
  24. package/dist/collection/components/time-count/time-count.js +159 -0
  25. package/dist/collection/index.js +1 -0
  26. package/dist/collection/utils/constants.js +10 -0
  27. package/dist/collection/utils/locale.utils.js +46 -0
  28. package/dist/collection/utils/utils.js +11 -0
  29. package/dist/esm/app-globals-0f993ce5.js +3 -0
  30. package/dist/esm/bonus-powerups-ingame-detail-78a50d3f.js +11822 -0
  31. package/dist/esm/bonus-powerups-ingame-detail.js +20 -0
  32. package/dist/esm/bonus-powerups-ingame-detail_5.entry.js +327 -0
  33. package/dist/esm/index-334a1114.js +1277 -0
  34. package/dist/esm/index.js +2 -0
  35. package/dist/esm/loader.js +11 -0
  36. package/dist/index.cjs.js +1 -0
  37. package/dist/index.js +1 -0
  38. package/dist/stencil.config.dev.js +20 -0
  39. package/dist/stencil.config.js +20 -0
  40. package/dist/storybook/main.js +43 -0
  41. package/dist/storybook/preview.js +9 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/libs/common/src/types/casino/powerups.d.ts +60 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/stencil.config.d.ts +2 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/stencil.config.dev.d.ts +2 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/storybook/main.d.ts +3 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/packages/stencil/bonus-powerups-ingame-detail/storybook/preview.d.ts +70 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/index.d.ts +4 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  51. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  52. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-powerups-ingame-detail/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  53. package/dist/types/components/bonus-powerups-ingame-detail/bonus-powerups-ingame-detail.d.ts +40 -0
  54. package/dist/types/components/bonus-powerups-ingame-detail/index.d.ts +1 -0
  55. package/dist/types/components/smart-loader/smart-loader.d.ts +3 -0
  56. package/dist/types/components/time-count/time-count.d.ts +17 -0
  57. package/dist/types/components.d.ts +123 -0
  58. package/dist/types/index.d.ts +1 -0
  59. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  60. package/dist/types/utils/constants.d.ts +9 -0
  61. package/dist/types/utils/locale.utils.d.ts +2 -0
  62. package/dist/types/utils/utils.d.ts +2 -0
  63. package/loader/cdn.js +1 -0
  64. package/loader/index.cjs.js +1 -0
  65. package/loader/index.d.ts +24 -0
  66. package/loader/index.es2017.js +1 -0
  67. package/loader/index.js +2 -0
  68. package/loader/package.json +11 -0
  69. package/package.json +27 -0
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-334a1114.js';
2
+ export { s as setNonce } from './index-334a1114.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["bonus-powerups-ingame-detail_5",[[1,"bonus-powerups-ingame-detail",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"session":[513],"pid":[513],"powerupId":[514,"powerup-id"],"isPowering":[516,"is-powering"],"powerUp":[32],"powerUpGames":[32],"isLoading":[32],"isLoadingGames":[32],"limit":[32]},[[0,"showPowerupDetails","showPowerupDetailsHandler"]],{"session":["loadPowerUpById"],"endpoint":["loadPowerUpById"],"language":["loadPowerUpById"],"pid":["loadPowerUpById"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"translationUrl":["handleNewTranslations"]}],[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,"smart-loader"],[0,"time-count-detail",{"expireTime":[1,"expire-time"],"language":[1],"pid":[520],"displayTime":[32],"isExpireInDay1":[32],"timeLeft":[32]},null,{"expireTime":["startTimeChanged"],"timeLeft":["timeLeftChanged"]}],[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]},null,{"structure":["handleStructureChange"]}]]]], options);
20
+ });
@@ -0,0 +1,327 @@
1
+ import { h as hooks, t as translate } from './bonus-powerups-ingame-detail-78a50d3f.js';
2
+ export { B as bonus_powerups_ingame_detail } from './bonus-powerups-ingame-detail-78a50d3f.js';
3
+ import { r as registerInstance, h, c as createEvent, H as Host, g as getElement } from './index-334a1114.js';
4
+
5
+ const smartLoaderCss = "@keyframes smart-animate1{0%{opacity:0.15;transform:translateX(0px)}35%{opacity:1;transform:translateX(36px)}75%{opacity:1;transform:translateX(0px)}100%{opacity:0.15;transform:translateX(0px)}}@keyframes smart-animate2{0%{opacity:1}35%{opacity:0.15}75%{opacity:0.5}100%{opacity:1}}@keyframes smart-animate3{0%{opacity:0.5;transform:translateX(0px)}35%{opacity:0.15;transform:translateX(-36px)}75%{opacity:0.15;transform:translateX(0px)}100%{opacity:0.5;transform:translateX(0px)}}.smart-loader{margin:50px auto;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100px;gap:10px}.smart-loader .smart-item{width:3px;height:20px;opacity:0.15;animation-delay:200ms;animation-duration:1000ms;animation-timing-function:ease-out;animation-fill-mode:forwards;padding:1px;margin:5px 0;background:#00FA5A;border-radius:4px;animation-iteration-count:infinite;animation-direction:normal}.smart-loader .smart-item:nth-child(1){animation-name:smart-animate1}.smart-loader .smart-item:nth-child(2){animation-name:smart-animate2;height:36px}.smart-loader .smart-item:nth-child(3){animation-name:smart-animate3}";
6
+ const SmartLoaderStyle0 = smartLoaderCss;
7
+
8
+ const SmartLoader = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ }
12
+ render() {
13
+ return h("div", { key: 'b7d81127872a349887c76133eb8a7bcd3ab8d29e', class: 'smart-loader' }, h("div", { key: '21dfb7d7fe1fd3e0660603bc2d2464e057328228', class: "smart-item" }), h("div", { key: 'fa22f3e3e5283b27fe3256669a0d67a2f85e135a', class: "smart-item" }), h("div", { key: '9fc3be4eb58ccebfa1803b12bf526e4cd2c9e013', class: "smart-item" }));
14
+ }
15
+ };
16
+ SmartLoader.style = SmartLoaderStyle0;
17
+
18
+ const TimeCount = class {
19
+ constructor(hostRef) {
20
+ registerInstance(this, hostRef);
21
+ this.timeCountDownEvent = createEvent(this, "powerupTimeCountDown", 7);
22
+ this.expireTime = undefined;
23
+ this.language = 'en';
24
+ this.pid = undefined;
25
+ this.displayTime = undefined;
26
+ this.isExpireInDay1 = false;
27
+ this.timeLeft = undefined;
28
+ }
29
+ componentWillLoad() {
30
+ this.timer = setInterval(() => this.updateDisplayTime(), 1000);
31
+ this.updateDisplayTime();
32
+ }
33
+ disconnectedCallback() {
34
+ clearInterval(this.timer);
35
+ }
36
+ startTimeChanged() {
37
+ // Reset the timer and update the display when the input time changes
38
+ clearInterval(this.timer);
39
+ this.timer = setInterval(() => this.updateDisplayTime(), 1000);
40
+ this.updateDisplayTime();
41
+ }
42
+ timeLeftChanged() {
43
+ this.timeCountDownEvent.emit({ type: 'powerupTimeCountDown', timeLeft: this.timeLeft, pid: this.pid });
44
+ }
45
+ updateDisplayTime() {
46
+ const now = hooks();
47
+ const start = hooks(this.expireTime);
48
+ if (!start.isValid()) {
49
+ this.displayTime = 'Invalid date';
50
+ clearInterval(this.timer);
51
+ return;
52
+ }
53
+ const duration = hooks.duration(start.diff(now));
54
+ this.isExpireInDay1 = true; //duration.asDays() > 1
55
+ this.timeLeft = duration.asMinutes();
56
+ // If the time has already passed
57
+ if (duration.asMilliseconds() <= 0) {
58
+ this.displayTime = '00:00:00';
59
+ clearInterval(this.timer);
60
+ this.timeCountDownEvent.emit({ type: 'powerupTimeCountDown', timeLeft: 0, pid: this.pid });
61
+ return;
62
+ }
63
+ const hours = Math.floor(duration.asHours());
64
+ if (hours >= 48) {
65
+ this.displayTime = `${Math.floor(duration.asDays())} ${translate('days', this.language)}`;
66
+ }
67
+ else if (hours >= 24) {
68
+ this.displayTime = '1 day';
69
+ }
70
+ else {
71
+ const h = hours;
72
+ const m = duration.minutes();
73
+ const s = duration.seconds();
74
+ this.displayTime = [h, m, s].map(val => String(val).padStart(2, '0')).join(':');
75
+ }
76
+ }
77
+ render() {
78
+ return [
79
+ this.isExpireInDay1 &&
80
+ h("span", { key: '832c9d6dce83414d8d0fac874c2dfd7c0d0742bd', class: 'Label' }, translate('expiresIn', this.language), " "),
81
+ h("span", { key: '3f68f1ddc0f710cded68ba52305f44fc95603e1d', class: 'TimeCountDown' }, this.displayTime)
82
+ ];
83
+ }
84
+ static get watchers() { return {
85
+ "expireTime": ["startTimeChanged"],
86
+ "timeLeft": ["timeLeftChanged"]
87
+ }; }
88
+ };
89
+
90
+ const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";
91
+ const UiImageStyle0 = uiImageCss;
92
+
93
+ const UiImage = class {
94
+ constructor(hostRef) {
95
+ registerInstance(this, hostRef);
96
+ this.src = undefined;
97
+ this.width = undefined;
98
+ this.height = undefined;
99
+ this.alt = undefined;
100
+ this.styles = undefined;
101
+ this.detectDistance = '200px';
102
+ this.imgLoaded = false;
103
+ this.shouldLoad = false;
104
+ }
105
+ handleSrc() {
106
+ if (!this.shouldLoad) {
107
+ return;
108
+ }
109
+ const preloadedImage = new Image();
110
+ preloadedImage.onload = () => {
111
+ if (this.image) {
112
+ this.image.src = this.src;
113
+ this.imgLoaded = true;
114
+ preloadedImage.onload = null;
115
+ }
116
+ };
117
+ preloadedImage.src = this.src;
118
+ }
119
+ componentDidLoad() {
120
+ if ('IntersectionObserver' in window) {
121
+ this.el.__uxComponent = this;
122
+ if (!window.EMUxObserver) {
123
+ window.EMUxObserver = new IntersectionObserver((entries) => {
124
+ entries.forEach(entry => {
125
+ if (entry.isIntersecting) {
126
+ const comp = entry.target.__uxComponent;
127
+ if (comp) {
128
+ comp.shouldLoad = true;
129
+ comp.handleSrc();
130
+ }
131
+ window.EMUxObserver.unobserve(entry.target);
132
+ }
133
+ });
134
+ }, { rootMargin: this.detectDistance });
135
+ }
136
+ window.EMUxObserver.observe(this.el);
137
+ }
138
+ else {
139
+ this.shouldLoad = true;
140
+ this.handleSrc();
141
+ }
142
+ }
143
+ render() {
144
+ return (h(Host, { key: 'f506ba73852f257ad80bf59ca177d2065a5f365e', class: "HostContainer" }, !this.imgLoaded && (h("ui-skeleton", { key: '564ebfab701f827ddc2debccb7615926dbc9e876', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), h("img", { key: '2188ca4494c10587f064acc5459ffc468948f497', ref: (el) => (this.image = el), src: this.shouldLoad ? this.src : undefined, onLoad: () => (this.imgLoaded = true), style: this.styles, class: `UiContainer ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" })));
145
+ }
146
+ get el() { return getElement(this); }
147
+ static get watchers() { return {
148
+ "src": ["handleSrc"]
149
+ }; }
150
+ };
151
+ UiImage.style = UiImageStyle0;
152
+
153
+ const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{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)}.SkeletonCircle{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%}.SkeletonText{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)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{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)}.SkeletonImage{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)}.SkeletonLogo{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)}}";
154
+ const UiSkeletonStyle0 = uiSkeletonCss;
155
+
156
+ const UiSkeleton = class {
157
+ constructor(hostRef) {
158
+ registerInstance(this, hostRef);
159
+ this.stylingValue = {
160
+ width: this.handleStylingProps(this.width),
161
+ height: this.handleStylingProps(this.height),
162
+ borderRadius: this.handleStylingProps(this.borderRadius),
163
+ marginBottom: this.handleStylingProps(this.marginBottom),
164
+ marginTop: this.handleStylingProps(this.marginTop),
165
+ marginLeft: this.handleStylingProps(this.marginLeft),
166
+ marginRight: this.handleStylingProps(this.marginRight),
167
+ size: this.handleStylingProps(this.size),
168
+ };
169
+ this.structure = undefined;
170
+ this.width = 'unset';
171
+ this.height = 'unset';
172
+ this.borderRadius = 'unset';
173
+ this.marginBottom = 'unset';
174
+ this.marginTop = 'unset';
175
+ this.marginLeft = 'unset';
176
+ this.marginRight = 'unset';
177
+ this.animation = true;
178
+ this.rows = 0;
179
+ this.size = '100%';
180
+ }
181
+ handleStructureChange(newValue, oldValue) {
182
+ if (oldValue !== newValue) {
183
+ this.handleStructure(newValue);
184
+ }
185
+ }
186
+ handleStylingProps(value) {
187
+ switch (typeof value) {
188
+ case 'number':
189
+ return value === 0 ? 0 : `${value}px`;
190
+ case 'undefined':
191
+ return 'unset';
192
+ case 'string':
193
+ if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
194
+ value.endsWith('px') ||
195
+ value.endsWith('%')) {
196
+ return value;
197
+ }
198
+ else {
199
+ return 'unset';
200
+ }
201
+ default:
202
+ return 'unset';
203
+ }
204
+ }
205
+ handleStructure(structure) {
206
+ switch (structure) {
207
+ case 'logo':
208
+ return this.renderLogo();
209
+ case 'image':
210
+ return this.renderImage();
211
+ case 'title':
212
+ return this.renderTitle();
213
+ case 'text':
214
+ return this.renderText();
215
+ case 'rectangle':
216
+ return this.renderRectangle();
217
+ case 'circle':
218
+ return this.renderCircle();
219
+ default:
220
+ return null;
221
+ }
222
+ }
223
+ renderLogo() {
224
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonLogo ' + (this.animation ? 'Skeleton' : '') })));
225
+ }
226
+ renderImage() {
227
+ return h("div", { class: 'SkeletonImage ' + (this.animation ? 'Skeleton' : '') });
228
+ }
229
+ renderTitle() {
230
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonTitle ' + (this.animation ? 'Skeleton' : '') })));
231
+ }
232
+ renderText() {
233
+ return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'SkeletonText ' + (this.animation ? 'Skeleton' : '') })))));
234
+ }
235
+ renderRectangle() {
236
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonRectangle ' + (this.animation ? 'Skeleton' : '') })));
237
+ }
238
+ renderCircle() {
239
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonCircle ' + (this.animation ? 'Skeleton' : '') })));
240
+ }
241
+ render() {
242
+ let styleBlock = '';
243
+ switch (this.structure) {
244
+ case 'logo':
245
+ styleBlock = `
246
+ :host {
247
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
248
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
249
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
250
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
251
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
252
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
253
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
254
+ }
255
+ `;
256
+ break;
257
+ case 'image':
258
+ styleBlock = `
259
+ :host {
260
+ --emw-skeleton-image-width: ${this.stylingValue.width};
261
+ --emw-skeleton-image-height: ${this.stylingValue.height};
262
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
263
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
264
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
265
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
266
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
267
+ }
268
+ `;
269
+ break;
270
+ case 'title':
271
+ styleBlock = `
272
+ :host {
273
+ --emw-skeleton-title-width: ${this.stylingValue.width};
274
+ --emw-skeleton-title-height: ${this.stylingValue.height};
275
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
276
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
277
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
278
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
279
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
280
+ }
281
+ `;
282
+ break;
283
+ case 'text':
284
+ styleBlock = `
285
+ :host {
286
+ --emw-skeleton-text-width: ${this.stylingValue.width};
287
+ --emw-skeleton-text-height: ${this.stylingValue.height};
288
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
289
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
290
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
291
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
292
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
293
+ }
294
+ `;
295
+ break;
296
+ case 'rectangle':
297
+ styleBlock = `
298
+ :host {
299
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
300
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
301
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
302
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
303
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
304
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
305
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
306
+ }
307
+ `;
308
+ break;
309
+ case 'circle':
310
+ styleBlock = `
311
+ :host {
312
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
313
+ }
314
+ `;
315
+ break;
316
+ default:
317
+ styleBlock = '';
318
+ }
319
+ return (h(Host, { key: 'c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8' }, h("style", { key: '9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19' }, styleBlock), this.handleStructure(this.structure)));
320
+ }
321
+ static get watchers() { return {
322
+ "structure": ["handleStructureChange"]
323
+ }; }
324
+ };
325
+ UiSkeleton.style = UiSkeletonStyle0;
326
+
327
+ export { SmartLoader as smart_loader, TimeCount as time_count_detail, UiImage as ui_image, UiSkeleton as ui_skeleton };