@everymatrix/casino-lobby 1.74.8 → 1.75.0

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.
@@ -1,14 +1,8 @@
1
- import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-CSUArOSv.js";
2
- import { g as y } from "./app-globals-0f993ce5-DfNOCk8l.js";
3
- var x = () => {
4
- const n = import.meta.url, e = {};
5
- return n !== "" && (e.resourcesUrl = new URL(".", n).href), g(e);
6
- };
7
- x().then(async (n) => (await y(), p([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
8
- const b = () => {
9
- let n = window.navigator.userAgent;
10
- return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
11
- }, G = "en", s = {
1
+ import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-O5RXzgXA.js";
2
+ const f = () => {
3
+ let e = window.navigator.userAgent;
4
+ return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
5
+ }, y = "en", r = {
12
6
  en: {
13
7
  error: "Error",
14
8
  randomGameLoading: "Loading ...",
@@ -51,42 +45,42 @@ const b = () => {
51
45
  playNowRandomGame: "Şimdi Oyna",
52
46
  spinRandomGame: "DEĞİŞTİR"
53
47
  }
54
- }, l = (n) => new Promise((e) => {
55
- fetch(n).then((t) => t.json()).then((t) => {
56
- Object.keys(t).forEach((a) => {
57
- s[a] || (s[a] = {});
58
- for (let o in t[a])
59
- s[a][o] = t[a][o];
60
- }), e(!0);
48
+ }, l = (e) => new Promise((t) => {
49
+ fetch(e).then((i) => i.json()).then((i) => {
50
+ Object.keys(i).forEach((a) => {
51
+ r[a] || (r[a] = {});
52
+ for (let o in i[a])
53
+ r[a][o] = i[a][o];
54
+ }), t(!0);
61
55
  });
62
- }), r = (n, e) => {
63
- const t = e;
64
- return s[t !== void 0 && t in s ? t : G][n];
56
+ }), s = (e, t) => {
57
+ const i = t;
58
+ return r[i !== void 0 && i in r ? i : y][e];
65
59
  };
66
- function m(n, e) {
67
- if (n) {
68
- const t = document.createElement("style");
69
- t.innerHTML = e, n.appendChild(t);
60
+ function m(e, t) {
61
+ if (e) {
62
+ const i = document.createElement("style");
63
+ i.innerHTML = t, e.appendChild(i);
70
64
  }
71
65
  }
72
- function d(n, e) {
73
- const t = new URL(e);
74
- fetch(t.href).then((a) => a.text()).then((a) => {
66
+ function d(e, t) {
67
+ const i = new URL(t);
68
+ fetch(i.href).then((a) => a.text()).then((a) => {
75
69
  const o = document.createElement("style");
76
- o.innerHTML = a, n && n.appendChild(o);
70
+ o.innerHTML = a, e && e.appendChild(o);
77
71
  }).catch((a) => {
78
72
  console.error("There was an error while trying to load client styling from URL", a);
79
73
  });
80
74
  }
81
- function v(n, e, t) {
75
+ function x(e, t, i) {
82
76
  if (window.emMessageBus) {
83
77
  const a = document.createElement("style");
84
- window.emMessageBus.subscribe(e, (o) => {
85
- a.innerHTML = o, n && n.appendChild(a);
78
+ window.emMessageBus.subscribe(t, (o) => {
79
+ a.innerHTML = o, e && e.appendChild(a);
86
80
  });
87
81
  }
88
82
  }
89
- const R = `:host {
83
+ const b = `:host {
90
84
  display: block;
91
85
  font-family: inherit;
92
86
  -webkit-transform: translate3d(0, 0, 0);
@@ -463,17 +457,17 @@ const R = `:host {
463
457
  width: 70px;
464
458
  height: 85px;
465
459
  }
466
- }`, C = R, k = class {
467
- constructor(n) {
468
- u(this, n), this.dataLoaded = f(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
469
- let t = e.length, a;
470
- for (; t !== 0; )
471
- a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
472
- return e;
460
+ }`, k = b, G = class {
461
+ constructor(e) {
462
+ h(this, e), this.dataLoaded = u(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (t) => {
463
+ let i = t.length, a;
464
+ for (; i !== 0; )
465
+ a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
466
+ return t;
473
467
  }, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
474
468
  }
475
- watchEndpoint(n, e) {
476
- n && n != e && this.endpoint && this.fetchGameList();
469
+ watchEndpoint(e, t) {
470
+ e && e != t && this.endpoint && this.fetchGameList();
477
471
  }
478
472
  handleNewTranslations() {
479
473
  this.isLoading = !0, l(this.translationUrl).then(() => {
@@ -483,11 +477,11 @@ const R = `:host {
483
477
  handleIsIconVisible() {
484
478
  this.iconVisibility = this.iconVisible === "true";
485
479
  }
486
- handleClientStylingChange(n, e) {
487
- n != e && m(this.stylingContainer, this.clientStyling);
480
+ handleClientStylingChange(e, t) {
481
+ e != t && m(this.stylingContainer, this.clientStyling);
488
482
  }
489
- handleClientStylingChangeURL(n, e) {
490
- n != e && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
483
+ handleClientStylingChangeURL(e, t) {
484
+ e != t && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
491
485
  }
492
486
  connectedCallback() {
493
487
  this.handleIsIconVisible();
@@ -497,18 +491,18 @@ const R = `:host {
497
491
  return this.fetchGameList();
498
492
  }
499
493
  componentDidLoad() {
500
- window.emMessageBus != null ? v(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
494
+ window.emMessageBus != null ? x(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
501
495
  }
502
496
  disconnectedCallback() {
503
497
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
504
498
  }
505
499
  fetchGameList() {
506
- let n = new URL(`${this.endpoint}/v1/casino/games`);
507
- return n.searchParams.append("platform", b()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, t) => {
508
- this.isLoading = !0, fetch(n.href).then((a) => a.json()).then((a) => {
509
- this.gamesToShow = this.setUpGames(a?.items), e(!0);
500
+ let e = new URL(`${this.endpoint}/v1/casino/games`);
501
+ return e.searchParams.append("platform", f()), e.searchParams.append("datasource", this.datasource), e.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), e.searchParams.append("expand", "vendor"), e.searchParams.append("pagination", "offset=0,limit=423"), e.searchParams.append("language", this.language), this.specificCategory && e.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((t, i) => {
502
+ this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
503
+ this.gamesToShow = this.setUpGames(a?.items), t(!0);
510
504
  }).catch((a) => {
511
- console.error(a), this.hasErrors = !0, t(a);
505
+ console.error(a), this.hasErrors = !0, i(a);
512
506
  }).finally(() => {
513
507
  this.isLoading = !1, this.dataLoaded.emit({
514
508
  target: this.host
@@ -516,13 +510,13 @@ const R = `:host {
516
510
  });
517
511
  });
518
512
  }
519
- setUpGames(n) {
520
- const e = this.shuffle(n).slice(0, 40);
521
- return e.concat(e);
513
+ setUpGames(e) {
514
+ const t = this.shuffle(e).slice(0, 40);
515
+ return t.concat(t);
522
516
  }
523
517
  selectRandomGame() {
524
- const n = this.gamesToShow.length / 2;
525
- this.selectedGameIndex = Math.floor(Math.random() * (n - 3)), this.selectedGameIndex += n, this.selectedGameEl = this.gameContainer.children[this.selectedGameIndex];
518
+ const e = this.gamesToShow.length / 2;
519
+ this.selectedGameIndex = Math.floor(Math.random() * (e - 3)), this.selectedGameIndex += e, this.selectedGameEl = this.gameContainer.children[this.selectedGameIndex];
526
520
  }
527
521
  playRandomGame() {
528
522
  this.animateGames(), typeof gtag == "function" && gtag("event", "PlayRandomGame", {
@@ -536,18 +530,18 @@ const R = `:host {
536
530
  }
537
531
  animateGames() {
538
532
  this.iconVisibility = this.iconVisibleOnAnim === "true", this.animationStarted = !0, this.animationDone = !1, this.animation && this.animation.cancel(), this.selectedGameEl && (this.selectedGameEl.classList.remove("TheRandomGame"), this.selectedGame = null, this.selectedGameIndex = null), this.selectRandomGame();
539
- const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10), t = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, o = (t + e) * this.selectedGameIndex + // Width of game cards up to the selected
540
- t / 2 - // Additional half card width to center to the selected game
533
+ const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), t = parseInt(e, 10), i = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, o = (i + t) * this.selectedGameIndex + // Width of game cards up to the selected
534
+ i / 2 - // Additional half card width to center to the selected game
541
535
  a / 2, c = [
542
536
  { transform: "translateX(0px)", scale: 1 },
543
537
  { scale: 0.75 },
544
538
  { transform: `translateX(-${o}px)`, scale: 1 }
545
- ], h = {
539
+ ], g = {
546
540
  duration: 3e3,
547
541
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
548
542
  fill: "forwards"
549
543
  };
550
- this.animation = this.gameContainer.animate(c, h), this.animation.onfinish = () => {
544
+ this.animation = this.gameContainer.animate(c, g), this.animation.onfinish = () => {
551
545
  this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
552
546
  };
553
547
  }
@@ -562,13 +556,17 @@ const R = `:host {
562
556
  });
563
557
  }
564
558
  renderGameDetails() {
565
- return i("div", { class: "RandomButtonsWrapper" }, i("div", { class: "RandomGameDetails" }, i("span", { class: "RandomGameTitle" }, this.selectedGame.name), i("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), i("div", { class: "RandomButtons" }, i("button", { class: "RandomButton On", onClick: () => this.respin() }, r("spinRandomGame", this.language)), !this.launchByGameCard && i("button", { class: "RandomButton On", onClick: () => this.playGame() }, r("playNowRandomGame", this.language))));
559
+ return n("div", { class: "RandomButtonsWrapper" }, n("div", { class: "RandomGameDetails" }, n("span", { class: "RandomGameTitle" }, this.selectedGame.name), n("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), n("div", { class: "RandomButtons" }, n("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && n("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
560
+ }
561
+ renderSkeleton() {
562
+ const e = Array.from({ length: 5 }, (t, i) => n("div", { class: "RandomGameCard", key: i }, n("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
563
+ return n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer" }, e));
566
564
  }
567
565
  render() {
568
- return i("div", { key: "07d7315d72cc4a34fd8ce7085efebd9161584570", ref: (n) => this.stylingContainer = n }, this.hasErrors ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("error", this.language))) : this.isLoading ? i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("randomGameLoading", this.language))) : i("div", { class: "RandomGameWrapper" }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, r("playRandomGame", this.language))))));
566
+ return n("div", { key: "ccc1e77093402e72a300ded18465085c182fbd79", ref: (e) => this.stylingContainer = e }, this.hasErrors ? n("div", { class: "RandomGameError" }, n("div", { class: "Title" }, s("error", this.language))) : this.isLoading ? this.renderSkeleton() : n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, t) => n("div", { class: "RandomGameCard", key: t, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, n("div", { class: "RandomGameVendor" }, e.vendor.name), n("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === t && this.renderGameDetails()))), n("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, n("div", { class: "ButtonContainer" }, this.iconVisibility && n("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, n("div", { class: "QustionMark" }, "?"), n("div", { class: "HexagonMarkShadow" }), n("div", { class: "HexagonMark" })), !this.animationStarted && n("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language))))));
569
567
  }
570
568
  get host() {
571
- return w(this);
569
+ return p(this);
572
570
  }
573
571
  static get watchers() {
574
572
  return {
@@ -582,7 +580,159 @@ const R = `:host {
582
580
  };
583
581
  }
584
582
  };
585
- k.style = C;
583
+ G.style = k;
584
+ const v = ":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)}}", R = v, S = class {
585
+ constructor(e) {
586
+ h(this, e), this.stylingValue = {
587
+ width: this.handleStylingProps(this.width),
588
+ height: this.handleStylingProps(this.height),
589
+ borderRadius: this.handleStylingProps(this.borderRadius),
590
+ marginBottom: this.handleStylingProps(this.marginBottom),
591
+ marginTop: this.handleStylingProps(this.marginTop),
592
+ marginLeft: this.handleStylingProps(this.marginLeft),
593
+ marginRight: this.handleStylingProps(this.marginRight),
594
+ size: this.handleStylingProps(this.size)
595
+ }, 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%";
596
+ }
597
+ handleStructureChange(e, t) {
598
+ t !== e && this.handleStructure(e);
599
+ }
600
+ handleStylingProps(e) {
601
+ switch (typeof e) {
602
+ case "number":
603
+ return e === 0 ? 0 : `${e}px`;
604
+ case "undefined":
605
+ return "unset";
606
+ case "string":
607
+ return ["auto", "unset", "none", "inherit", "initial"].includes(e) || e.endsWith("px") || e.endsWith("%") ? e : "unset";
608
+ default:
609
+ return "unset";
610
+ }
611
+ }
612
+ handleStructure(e) {
613
+ switch (e) {
614
+ case "logo":
615
+ return this.renderLogo();
616
+ case "image":
617
+ return this.renderImage();
618
+ case "title":
619
+ return this.renderTitle();
620
+ case "text":
621
+ return this.renderText();
622
+ case "rectangle":
623
+ return this.renderRectangle();
624
+ case "circle":
625
+ return this.renderCircle();
626
+ default:
627
+ return null;
628
+ }
629
+ }
630
+ renderLogo() {
631
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
632
+ }
633
+ renderImage() {
634
+ return n("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
635
+ }
636
+ renderTitle() {
637
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
638
+ }
639
+ renderText() {
640
+ return n("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, t) => n("div", { key: t, class: "Text " + (this.animation ? "Skeleton" : "") })));
641
+ }
642
+ renderRectangle() {
643
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
644
+ }
645
+ renderCircle() {
646
+ return n("div", { class: "SkeletonContainer" }, n("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
647
+ }
648
+ render() {
649
+ let e = "";
650
+ switch (this.structure) {
651
+ case "logo":
652
+ e = `
653
+ :host {
654
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
655
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
656
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
657
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
658
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
659
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
660
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
661
+ }
662
+ `;
663
+ break;
664
+ case "image":
665
+ e = `
666
+ :host {
667
+ --emw-skeleton-image-width: ${this.stylingValue.width};
668
+ --emw-skeleton-image-height: ${this.stylingValue.height};
669
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
670
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
671
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
672
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
673
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
674
+ }
675
+ `;
676
+ break;
677
+ case "title":
678
+ e = `
679
+ :host {
680
+ --emw-skeleton-title-width: ${this.stylingValue.width};
681
+ --emw-skeleton-title-height: ${this.stylingValue.height};
682
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
683
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
684
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
685
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
686
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
687
+ }
688
+ `;
689
+ break;
690
+ case "text":
691
+ e = `
692
+ :host {
693
+ --emw-skeleton-text-width: ${this.stylingValue.width};
694
+ --emw-skeleton-text-height: ${this.stylingValue.height};
695
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
696
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
697
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
698
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
699
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
700
+ }
701
+ `;
702
+ break;
703
+ case "rectangle":
704
+ e = `
705
+ :host {
706
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
707
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
708
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
709
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
710
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
711
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
712
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
713
+ }
714
+ `;
715
+ break;
716
+ case "circle":
717
+ e = `
718
+ :host {
719
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
720
+ }
721
+ `;
722
+ break;
723
+ default:
724
+ e = "";
725
+ }
726
+ return n(w, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, n("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
727
+ }
728
+ static get watchers() {
729
+ return {
730
+ structure: ["handleStructureChange"]
731
+ };
732
+ }
733
+ };
734
+ S.style = R;
586
735
  export {
587
- k as casino_play_random_game
736
+ G as casino_play_random_game,
737
+ S as ui_skeleton
588
738
  };