@everymatrix/casino-lobby 1.55.0 → 1.56.2
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/{CasinoCalendar-BKvw2GLN.js → CasinoCalendar-8h5qdaaJ.js} +331 -269
- package/components/{CasinoCalendar-CRnGs6mI.js → CasinoCalendar-D9zXfDS4.js} +416 -354
- package/components/{CasinoCalendar-P6bQ-mxN.cjs → CasinoCalendar-pDYRKcjG.cjs} +18 -5
- package/components/CasinoCalendarDailyDetails-D0Kx4qhT.js +693 -0
- package/components/CasinoCalendarDailyDetails-DFwCqTfY.js +693 -0
- package/components/CasinoCalendarDailyDetails-DkbuLEg5.cjs +1 -0
- package/components/CasinoCalendarDailyItem-C62RswBp.js +306 -0
- package/components/CasinoCalendarDailyItem-DTqfqF2k.js +306 -0
- package/components/CasinoCalendarDailyItem-DX_5vyqn.cjs +1 -0
- package/components/CasinoCategoriesSlider-3PL0POlf.cjs +1 -0
- package/components/{CasinoCategoriesSlider-hJChLXnm.js → CasinoCategoriesSlider-BhsSLM-H.js} +51 -51
- package/components/{CasinoCategoriesSlider-C7hbpydX.js → CasinoCategoriesSlider-CCCss88T.js} +51 -51
- package/components/{CasinoCollectionsProviders-CTvTqZY1.js → CasinoCollectionsProviders-8BCzbgO7.js} +35 -33
- package/components/{CasinoCollectionsProviders-Cyc5HYpW.js → CasinoCollectionsProviders-B7jL1xWi.js} +36 -34
- package/components/CasinoCollectionsProviders-DdI8afJV.cjs +1 -0
- package/components/{CasinoFavoritesSection-B4JlTRNa.js → CasinoFavoritesSection-8fm71dF4.js} +35 -34
- package/components/{CasinoFavoritesSection-D4v8HNn9.js → CasinoFavoritesSection-C0iLu9Sw.js} +35 -34
- package/components/CasinoFavoritesSection-DrmyxOK7.cjs +1 -0
- package/components/{CasinoFilter-ZQCeB5st.js → CasinoFilter-BTgsR3X2.js} +63 -59
- package/components/{CasinoFilter-EA285UxQ.cjs → CasinoFilter-D06f7IqM.cjs} +1 -1
- package/components/{CasinoFilter-CgPbbuBc.js → CasinoFilter-m6_88uQv.js} +65 -61
- package/components/CasinoGamePage-CkvljoIb.js +4249 -0
- package/components/CasinoGamePage-DAH5L6F5.cjs +18 -0
- package/components/CasinoGamePage-DAv8OZV8.js +4228 -0
- package/components/{CasinoGameThumbnail-Aj4sPAss.js → CasinoGameThumbnail-B4KIog_7.js} +15 -10
- package/components/{CasinoGameThumbnail-h69vAUbV.js → CasinoGameThumbnail-BMm5Xl4k.js} +15 -10
- package/components/CasinoGameThumbnail-XF-v3tEC.cjs +38 -0
- package/components/CasinoGamesCategorySection-BSklauO4.cjs +1 -0
- package/components/{CasinoGamesCategorySection-C9FCv7PW.js → CasinoGamesCategorySection-DUDDLFW2.js} +556 -585
- package/components/{CasinoGamesCategorySection-PiRBRWmh.js → CasinoGamesCategorySection-XWxil8vo.js} +1070 -1099
- package/components/CasinoJackpotBanner-6WZPbIyJ.js +692 -0
- package/components/CasinoJackpotBanner-Bu16yaAe.js +688 -0
- package/components/CasinoJackpotBanner-CRGjJl2y.cjs +1 -0
- package/components/{CasinoLastPlayedSection-r73sTCi9.js → CasinoLastPlayedSection-BT4kxVP1.js} +41 -41
- package/components/{CasinoLastPlayedSection-BXGcYUad.js → CasinoLastPlayedSection-DFUMCS3n.js} +41 -41
- package/components/CasinoLastPlayedSection-cjUgoZnI.cjs +1 -0
- package/components/CasinoLobby-CRIb8E4f.cjs +1 -0
- package/components/{CasinoLobby-60oTKJCK.js → CasinoLobby-Di0-vjQH.js} +327 -308
- package/components/{CasinoLobby-DHl1_-VE.js → CasinoLobby-DrBFK5gG.js} +323 -304
- package/components/CasinoModal-35QTkTq-.cjs +1 -0
- package/components/{CasinoModal-B7R5L0mw.js → CasinoModal-Ce9u8B9n.js} +38 -38
- package/components/{CasinoModal-wz-kI5U1.js → CasinoModal-DMOewty4.js} +38 -38
- package/components/CasinoMostPlayedSection-C1K-DGkZ.cjs +1 -0
- package/components/{CasinoMostPlayedSection-CpO0b2PN.js → CasinoMostPlayedSection-CXWjhKax.js} +174 -165
- package/components/{CasinoMostPlayedSection-CxQrM8-U.js → CasinoMostPlayedSection-DAuM-1cc.js} +174 -165
- package/components/{CasinoMyGames-B0AvdkLy.js → CasinoMyGames-0CUDyeW1.js} +332 -295
- package/components/CasinoMyGames-DQaVeSFh.cjs +1 -0
- package/components/{CasinoMyGames-ieyBjArx.js → CasinoMyGames-DTWGCs0t.js} +333 -296
- package/components/{CasinoPage-E4Nn1l0F.js → CasinoPage-BFAkKTIr.js} +562 -495
- package/components/{CasinoPage-CcV-qeX_.js → CasinoPage-CYfqznpn.js} +694 -627
- package/components/CasinoPage-Dn8IgsJW.cjs +1 -0
- package/components/{CasinoRandomGame-BEOONr7N.js → CasinoRandomGame-CwNUHn-I.js} +26 -24
- package/components/{CasinoRandomGame-D1gqYJkg.cjs → CasinoRandomGame-DnwNz2Jt.cjs} +2 -2
- package/components/{CasinoRandomGame-DoSJSKrA.js → CasinoRandomGame-qSedkhdM.js} +25 -23
- package/components/{CasinoSearch-BOSoxjjv.js → CasinoSearch-58Bbs2ly.js} +52 -49
- package/components/{CasinoSearch-3nC8pR7D.cjs → CasinoSearch-DgenhLcJ.cjs} +1 -1
- package/components/{CasinoSearch-DqfKG5Mj.js → CasinoSearch-Itb9Lu5Z.js} +52 -49
- package/components/{CasinoSlider-ylo7nRmY.js → CasinoSlider-BBo1-Yix.js} +107 -107
- package/components/{CasinoSlider-DlBcdeDm.js → CasinoSlider-BLhtuqXM.js} +88 -88
- package/components/CasinoSlider-BiIS2-lS.cjs +1 -0
- package/components/{CasinoSort-CVwRicsk.js → CasinoSort-CBEUIj6Q.js} +7 -6
- package/components/CasinoSort-ClDrkZcs.cjs +1 -0
- package/components/{CasinoSort-D9KTb90Q.js → CasinoSort-DDFUPoRE.js} +7 -6
- package/components/{CasinoWinners-CSDCICsh.js → CasinoWinners-C9LcOp1b.js} +48 -46
- package/components/{CasinoWinners-Br_rOUdI.cjs → CasinoWinners-CNAN8Ko7.cjs} +1 -1
- package/components/{CasinoWinners-CeLmSRE4.js → CasinoWinners-wjNHmiu9.js} +51 -49
- package/components/GeneralAnimationLoading-D4V5ml6G.js +84 -0
- package/components/GeneralAnimationLoading-DXg7Sgve.js +84 -0
- package/components/GeneralAnimationLoading-dlh-TGCV.cjs +1 -0
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-B9yaAMOE.js} +55 -30
- package/stencil/{casino-play-random-game-Cphp76Jq.js → casino-play-random-game-BTXyM5es.js} +74 -49
- package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-a53bUW_d.cjs} +2 -2
- package/stencil/index-510a6ba4-B9_VY7vu.cjs +1 -0
- package/stencil/index-510a6ba4-CYFuKFRQ.js +564 -0
- package/stencil/{index-eac6b960-Dvyvd5zP.js → index-510a6ba4-CzpWs0jf.js} +185 -200
- package/components/CasinoCalendarDailyDetails-B-FOmYEZ.js +0 -701
- package/components/CasinoCalendarDailyDetails-DYTiZ7iE.js +0 -701
- package/components/CasinoCalendarDailyDetails-DicGOCGy.cjs +0 -1
- package/components/CasinoCalendarDailyItem-BsUUCx7a.js +0 -315
- package/components/CasinoCalendarDailyItem-DDm6oH8O.cjs +0 -1
- package/components/CasinoCalendarDailyItem-DIhsLlMC.js +0 -315
- package/components/CasinoCategoriesSlider-wt-dJlF9.cjs +0 -1
- package/components/CasinoCollectionsProviders-B0h7SupJ.cjs +0 -1
- package/components/CasinoFavoritesSection-CcyN5mtI.cjs +0 -1
- package/components/CasinoGamePage-D2VGIU0X.cjs +0 -18
- package/components/CasinoGamePage-DnFlR6PD.js +0 -4296
- package/components/CasinoGamePage-lOejw_q6.js +0 -4275
- package/components/CasinoGameThumbnail-ClSBiG0I.cjs +0 -38
- package/components/CasinoGamesCategorySection-X0aDh13K.cjs +0 -1
- package/components/CasinoJackpotBanner-BdzgC-lW.js +0 -690
- package/components/CasinoJackpotBanner-Dx_3WwEw.js +0 -686
- package/components/CasinoJackpotBanner-rV5P1O6d.cjs +0 -1
- package/components/CasinoLastPlayedSection-BP9oa18h.cjs +0 -1
- package/components/CasinoLobby-CB5KGhNa.cjs +0 -1
- package/components/CasinoModal-B7pt3Gcb.cjs +0 -1
- package/components/CasinoMostPlayedSection-CaHWOtw_.cjs +0 -1
- package/components/CasinoMyGames-R7NrCxgd.cjs +0 -1
- package/components/CasinoPage-azRHPGyF.cjs +0 -1
- package/components/CasinoSlider-Zgasc58K.cjs +0 -1
- package/components/CasinoSort-D3rxrF3Z.cjs +0 -1
- package/components/GeneralAnimationLoading-BRBLoSEB.js +0 -75
- package/components/GeneralAnimationLoading-Bu4_iets.cjs +0 -1
- package/components/GeneralAnimationLoading-DoN4gYz0.js +0 -75
- package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
- package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
|
@@ -14,19 +14,19 @@ var p = (n, e, a) => new Promise((t, o) => {
|
|
|
14
14
|
}, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
|
|
15
15
|
c((a = a.apply(n, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as
|
|
18
|
-
import { g as
|
|
19
|
-
var
|
|
17
|
+
import { b as w, p as y, r as x, h as i, g as b } from "./index-510a6ba4-CYFuKFRQ.js";
|
|
18
|
+
import { g as G } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
+
var v = () => {
|
|
20
20
|
const n = import.meta.url, e = {};
|
|
21
|
-
return n !== "" && (e.resourcesUrl = new URL(".", n).href),
|
|
21
|
+
return n !== "" && (e.resourcesUrl = new URL(".", n).href), y(e);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
return yield
|
|
23
|
+
v().then((n) => p(void 0, null, function* () {
|
|
24
|
+
return yield G(), w([["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);
|
|
25
25
|
}));
|
|
26
|
-
const
|
|
26
|
+
const R = () => {
|
|
27
27
|
let n = window.navigator.userAgent;
|
|
28
28
|
return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
29
|
-
},
|
|
29
|
+
}, C = "en", l = {
|
|
30
30
|
en: {
|
|
31
31
|
error: "Error",
|
|
32
32
|
randomGameLoading: "Loading ...",
|
|
@@ -79,8 +79,32 @@ const b = () => {
|
|
|
79
79
|
});
|
|
80
80
|
}), s = (n, e) => {
|
|
81
81
|
const a = e;
|
|
82
|
-
return l[a !== void 0 && a in l ? a :
|
|
83
|
-
}
|
|
82
|
+
return l[a !== void 0 && a in l ? a : C][n];
|
|
83
|
+
};
|
|
84
|
+
function u(n, e) {
|
|
85
|
+
if (n) {
|
|
86
|
+
const a = document.createElement("style");
|
|
87
|
+
a.innerHTML = e, n.appendChild(a);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function f(n, e) {
|
|
91
|
+
const a = new URL(e);
|
|
92
|
+
fetch(a.href).then((t) => t.text()).then((t) => {
|
|
93
|
+
const o = document.createElement("style");
|
|
94
|
+
o.innerHTML = t, n && n.appendChild(o);
|
|
95
|
+
}).catch((t) => {
|
|
96
|
+
console.error("There was an error while trying to load client styling from URL", t);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function k(n, e, a) {
|
|
100
|
+
if (window.emMessageBus) {
|
|
101
|
+
const t = document.createElement("style");
|
|
102
|
+
window.emMessageBus.subscribe(e, (o) => {
|
|
103
|
+
t.innerHTML = o, n && n.appendChild(t);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const S = `:host {
|
|
84
108
|
display: block;
|
|
85
109
|
font-family: inherit;
|
|
86
110
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -450,24 +474,14 @@ const b = () => {
|
|
|
450
474
|
width: 70px;
|
|
451
475
|
height: 85px;
|
|
452
476
|
}
|
|
453
|
-
}`,
|
|
477
|
+
}`, F = S, L = class {
|
|
454
478
|
constructor(n) {
|
|
455
|
-
|
|
479
|
+
x(this, n), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
456
480
|
let a = e.length, t;
|
|
457
481
|
for (; a !== 0; )
|
|
458
482
|
t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
|
|
459
483
|
return e;
|
|
460
|
-
}, this.
|
|
461
|
-
let e = document.createElement("style");
|
|
462
|
-
e.innerHTML = this.clientStyling, this.host.shadowRoot.prepend(e);
|
|
463
|
-
}, this.setClientStylingURL = () => {
|
|
464
|
-
let e = new URL(this.clientStylingUrl), a = document.createElement("style");
|
|
465
|
-
fetch(e.href).then((t) => t.text()).then((t) => {
|
|
466
|
-
a.innerHTML = t, this.clientStyling = t, setTimeout(() => {
|
|
467
|
-
this.host.shadowRoot.prepend(a);
|
|
468
|
-
}, 1);
|
|
469
|
-
});
|
|
470
|
-
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.limitStylingAppends = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
484
|
+
}, 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;
|
|
471
485
|
}
|
|
472
486
|
watchEndpoint(n, e) {
|
|
473
487
|
n && n != e && this.endpoint && this.fetchGameList();
|
|
@@ -480,6 +494,12 @@ const b = () => {
|
|
|
480
494
|
handleIsIconVisible() {
|
|
481
495
|
this.iconVisibility = this.iconVisible === "true";
|
|
482
496
|
}
|
|
497
|
+
handleClientStylingChange(n, e) {
|
|
498
|
+
n != e && u(this.stylingContainer, this.clientStyling);
|
|
499
|
+
}
|
|
500
|
+
handleClientStylingChangeURL(n, e) {
|
|
501
|
+
n != e && this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl);
|
|
502
|
+
}
|
|
483
503
|
connectedCallback() {
|
|
484
504
|
this.handleIsIconVisible();
|
|
485
505
|
}
|
|
@@ -488,11 +508,14 @@ const b = () => {
|
|
|
488
508
|
return this.fetchGameList();
|
|
489
509
|
}
|
|
490
510
|
componentDidLoad() {
|
|
491
|
-
|
|
511
|
+
window.emMessageBus != null ? k(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl));
|
|
512
|
+
}
|
|
513
|
+
disconnectedCallback() {
|
|
514
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
492
515
|
}
|
|
493
516
|
fetchGameList() {
|
|
494
517
|
let n = new URL(`${this.endpoint}/v1/casino/games`);
|
|
495
|
-
return n.searchParams.append("platform",
|
|
518
|
+
return n.searchParams.append("platform", R()), 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, a) => {
|
|
496
519
|
this.isLoading = !0, fetch(n.href).then((t) => t.json()).then((t) => {
|
|
497
520
|
this.gamesToShow = this.setUpGames(t == null ? void 0 : t.items), e(!0);
|
|
498
521
|
}).catch((t) => {
|
|
@@ -556,10 +579,10 @@ const b = () => {
|
|
|
556
579
|
if (this.isLoading)
|
|
557
580
|
return i("div", { class: "RandomGameLoading" }, i("div", { class: "Title" }, s("randomGameLoading", this.language)));
|
|
558
581
|
if (!this.isLoading)
|
|
559
|
-
return 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() : null }, 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() }, s("playRandomGame", this.language)))));
|
|
582
|
+
return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, 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() : null }, 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() }, s("playRandomGame", this.language)))));
|
|
560
583
|
}
|
|
561
584
|
get host() {
|
|
562
|
-
return
|
|
585
|
+
return b(this);
|
|
563
586
|
}
|
|
564
587
|
static get watchers() {
|
|
565
588
|
return {
|
|
@@ -567,11 +590,13 @@ const b = () => {
|
|
|
567
590
|
datasource: ["watchEndpoint"],
|
|
568
591
|
language: ["watchEndpoint"],
|
|
569
592
|
translationUrl: ["handleNewTranslations"],
|
|
570
|
-
iconVisible: ["handleIsIconVisible"]
|
|
593
|
+
iconVisible: ["handleIsIconVisible"],
|
|
594
|
+
clientStyling: ["handleClientStylingChange"],
|
|
595
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
571
596
|
};
|
|
572
597
|
}
|
|
573
598
|
};
|
|
574
|
-
|
|
599
|
+
L.style = F;
|
|
575
600
|
export {
|
|
576
|
-
|
|
601
|
+
L as casino_play_random_game
|
|
577
602
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { g as
|
|
3
|
-
var
|
|
1
|
+
import { b as p, p as g, r as u, h as i, g as f } from "./index-510a6ba4-CzpWs0jf.js";
|
|
2
|
+
import { g as w } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
+
var y = () => {
|
|
4
4
|
const n = import.meta.url, e = {};
|
|
5
|
-
return n !== "" && (e.resourcesUrl = new URL(".", n).href),
|
|
5
|
+
return n !== "" && (e.resourcesUrl = new URL(".", n).href), g(e);
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
const
|
|
7
|
+
y().then(async (n) => (await w(), 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 x = () => {
|
|
9
9
|
let n = window.navigator.userAgent;
|
|
10
10
|
return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
11
|
-
},
|
|
11
|
+
}, b = "en", s = {
|
|
12
12
|
en: {
|
|
13
13
|
error: "Error",
|
|
14
14
|
randomGameLoading: "Loading ...",
|
|
@@ -52,17 +52,41 @@ const w = () => {
|
|
|
52
52
|
spinRandomGame: "DEĞİŞTİR"
|
|
53
53
|
}
|
|
54
54
|
}, l = (n) => new Promise((e) => {
|
|
55
|
-
fetch(n).then((
|
|
56
|
-
Object.keys(
|
|
57
|
-
|
|
58
|
-
for (let
|
|
59
|
-
|
|
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
60
|
}), e(!0);
|
|
61
61
|
});
|
|
62
|
-
}),
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
}
|
|
62
|
+
}), r = (n, e) => {
|
|
63
|
+
const t = e;
|
|
64
|
+
return s[t !== void 0 && t in s ? t : b][n];
|
|
65
|
+
};
|
|
66
|
+
function m(n, e) {
|
|
67
|
+
if (n) {
|
|
68
|
+
const t = document.createElement("style");
|
|
69
|
+
t.innerHTML = e, n.appendChild(t);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function d(n, e) {
|
|
73
|
+
const t = new URL(e);
|
|
74
|
+
fetch(t.href).then((a) => a.text()).then((a) => {
|
|
75
|
+
const o = document.createElement("style");
|
|
76
|
+
o.innerHTML = a, n && n.appendChild(o);
|
|
77
|
+
}).catch((a) => {
|
|
78
|
+
console.error("There was an error while trying to load client styling from URL", a);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function G(n, e, t) {
|
|
82
|
+
if (window.emMessageBus) {
|
|
83
|
+
const a = document.createElement("style");
|
|
84
|
+
window.emMessageBus.subscribe(e, (o) => {
|
|
85
|
+
a.innerHTML = o, n && n.appendChild(a);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const v = `:host {
|
|
66
90
|
display: block;
|
|
67
91
|
font-family: inherit;
|
|
68
92
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -432,24 +456,14 @@ const w = () => {
|
|
|
432
456
|
width: 70px;
|
|
433
457
|
height: 85px;
|
|
434
458
|
}
|
|
435
|
-
}`,
|
|
459
|
+
}`, R = v, C = class {
|
|
436
460
|
constructor(n) {
|
|
437
|
-
|
|
438
|
-
let
|
|
439
|
-
for (;
|
|
440
|
-
a = Math.floor(Math.random() *
|
|
461
|
+
u(this, n), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
462
|
+
let t = e.length, a;
|
|
463
|
+
for (; t !== 0; )
|
|
464
|
+
a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
|
|
441
465
|
return e;
|
|
442
|
-
}, this.
|
|
443
|
-
let e = document.createElement("style");
|
|
444
|
-
e.innerHTML = this.clientStyling, this.host.shadowRoot.prepend(e);
|
|
445
|
-
}, this.setClientStylingURL = () => {
|
|
446
|
-
let e = new URL(this.clientStylingUrl), i = document.createElement("style");
|
|
447
|
-
fetch(e.href).then((a) => a.text()).then((a) => {
|
|
448
|
-
i.innerHTML = a, this.clientStyling = a, setTimeout(() => {
|
|
449
|
-
this.host.shadowRoot.prepend(i);
|
|
450
|
-
}, 1);
|
|
451
|
-
});
|
|
452
|
-
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.limitStylingAppends = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
466
|
+
}, 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;
|
|
453
467
|
}
|
|
454
468
|
watchEndpoint(n, e) {
|
|
455
469
|
n && n != e && this.endpoint && this.fetchGameList();
|
|
@@ -462,6 +476,12 @@ const w = () => {
|
|
|
462
476
|
handleIsIconVisible() {
|
|
463
477
|
this.iconVisibility = this.iconVisible === "true";
|
|
464
478
|
}
|
|
479
|
+
handleClientStylingChange(n, e) {
|
|
480
|
+
n != e && m(this.stylingContainer, this.clientStyling);
|
|
481
|
+
}
|
|
482
|
+
handleClientStylingChangeURL(n, e) {
|
|
483
|
+
n != e && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
|
|
484
|
+
}
|
|
465
485
|
connectedCallback() {
|
|
466
486
|
this.handleIsIconVisible();
|
|
467
487
|
}
|
|
@@ -470,15 +490,18 @@ const w = () => {
|
|
|
470
490
|
return this.fetchGameList();
|
|
471
491
|
}
|
|
472
492
|
componentDidLoad() {
|
|
473
|
-
|
|
493
|
+
window.emMessageBus != null ? G(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
|
|
494
|
+
}
|
|
495
|
+
disconnectedCallback() {
|
|
496
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
474
497
|
}
|
|
475
498
|
fetchGameList() {
|
|
476
499
|
let n = new URL(`${this.endpoint}/v1/casino/games`);
|
|
477
|
-
return n.searchParams.append("platform",
|
|
500
|
+
return n.searchParams.append("platform", x()), 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) => {
|
|
478
501
|
this.isLoading = !0, fetch(n.href).then((a) => a.json()).then((a) => {
|
|
479
502
|
this.gamesToShow = this.setUpGames(a?.items), e(!0);
|
|
480
503
|
}).catch((a) => {
|
|
481
|
-
console.error(a), this.hasErrors = !0,
|
|
504
|
+
console.error(a), this.hasErrors = !0, t(a);
|
|
482
505
|
}).finally(() => {
|
|
483
506
|
this.isLoading = !1;
|
|
484
507
|
});
|
|
@@ -504,18 +527,18 @@ const w = () => {
|
|
|
504
527
|
}
|
|
505
528
|
animateGames() {
|
|
506
529
|
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();
|
|
507
|
-
const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10),
|
|
508
|
-
|
|
509
|
-
a / 2,
|
|
530
|
+
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
|
|
531
|
+
t / 2 - // Additional half card width to center to the selected game
|
|
532
|
+
a / 2, c = [
|
|
510
533
|
{ transform: "translateX(0px)", scale: 1 },
|
|
511
534
|
{ scale: 0.75 },
|
|
512
|
-
{ transform: `translateX(-${
|
|
513
|
-
],
|
|
535
|
+
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
536
|
+
], h = {
|
|
514
537
|
duration: 3e3,
|
|
515
538
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
516
539
|
fill: "forwards"
|
|
517
540
|
};
|
|
518
|
-
this.animation = this.gameContainer.animate(
|
|
541
|
+
this.animation = this.gameContainer.animate(c, h), this.animation.onfinish = () => {
|
|
519
542
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
520
543
|
};
|
|
521
544
|
}
|
|
@@ -530,18 +553,18 @@ const w = () => {
|
|
|
530
553
|
});
|
|
531
554
|
}
|
|
532
555
|
renderGameDetails() {
|
|
533
|
-
return
|
|
556
|
+
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))));
|
|
534
557
|
}
|
|
535
558
|
render() {
|
|
536
559
|
if (this.hasErrors)
|
|
537
|
-
return
|
|
560
|
+
return i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("error", this.language)));
|
|
538
561
|
if (this.isLoading)
|
|
539
|
-
return
|
|
562
|
+
return i("div", { class: "RandomGameLoading" }, i("div", { class: "Title" }, r("randomGameLoading", this.language)));
|
|
540
563
|
if (!this.isLoading)
|
|
541
|
-
return
|
|
564
|
+
return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, 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() : null }, 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)))));
|
|
542
565
|
}
|
|
543
566
|
get host() {
|
|
544
|
-
return
|
|
567
|
+
return f(this);
|
|
545
568
|
}
|
|
546
569
|
static get watchers() {
|
|
547
570
|
return {
|
|
@@ -549,11 +572,13 @@ const w = () => {
|
|
|
549
572
|
datasource: ["watchEndpoint"],
|
|
550
573
|
language: ["watchEndpoint"],
|
|
551
574
|
translationUrl: ["handleNewTranslations"],
|
|
552
|
-
iconVisible: ["handleIsIconVisible"]
|
|
575
|
+
iconVisible: ["handleIsIconVisible"],
|
|
576
|
+
clientStyling: ["handleClientStylingChange"],
|
|
577
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
553
578
|
};
|
|
554
579
|
}
|
|
555
580
|
};
|
|
556
|
-
|
|
581
|
+
C.style = R;
|
|
557
582
|
export {
|
|
558
|
-
|
|
583
|
+
C as casino_play_random_game
|
|
559
584
|
};
|
package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-a53bUW_d.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var g=(n,e,a)=>new Promise((
|
|
1
|
+
"use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-510a6ba4-B9_VY7vu.cjs"),x=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,b=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/casino-play-random-game-a53bUW_d.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),i.promiseResolve(e)};b().then(n=>g(exports,null,function*(){return yield x.globalScripts(),i.bootstrapLazy([["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)}));const G=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},v="en",l={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{l[t]||(l[t]={});for(let o in a[t])l[t][o]=a[t][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:v][n]};function f(n,e){if(n){const a=document.createElement("style");a.innerHTML=e,n.appendChild(a)}}function w(n,e){const a=new URL(e);fetch(a.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function R(n,e,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,o=>{t.innerHTML=o,n&&n.appendChild(t)})}}const C=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -368,4 +368,4 @@
|
|
|
368
368
|
width: 70px;
|
|
369
369
|
height: 85px;
|
|
370
370
|
}
|
|
371
|
-
}`,
|
|
371
|
+
}`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},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}watchEndpoint(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),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,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){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();const n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=(e,t,r)=>new Promise((s,n)=>{var a=o=>{try{i(r.next(o))}catch(c){n(c)}},l=o=>{try{i(r.throw(o))}catch(c){n(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((r=r.apply(e,t)).next())});const Se="casino-play-random-game",ee={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!1,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!0,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!1,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1,watchCallback:!0};var Ee=Object.defineProperty,be=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},F=new WeakMap,E=e=>F.get(e),ke=(e,t)=>F.set(t.$lazyInstance$=e,t),we=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],F.set(e,r)},X=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),j=new Map,Te=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=j.get(n);if(a)return a[s];{const l=i=>(j.set(n,i),i[s]);switch(n){case"casino-play-random-game":return Promise.resolve().then(()=>require("./casino-play-random-game-a53bUW_d.cjs")).then(l,k)}}return import(`./${n}.entry.js`).then(l=>(j.set(n,l),l[s]),k)},_=new Map,xe="{visibility:hidden}.hydrated{visibility:inherit}",te="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},m=I.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},se=e=>Promise.resolve(e),Le=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,G=[],ne=[],Pe=(e,t)=>r=>{e.push(r),U||(U=!0,h.$flags$&4?H(z):h.raf(z))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){k(r)}e.length=0},z=()=>{Q(G),Q(ne),(U=G.length>0)&&h.raf(z)},H=e=>se().then(e),Ae=Pe(ne),Y={},_e=e=>e!=null,q=e=>(e=typeof e,e==="object"||e==="function");function re(e){var t,r,s;return(s=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?s:void 0}var Ce={};be(Ce,{err:()=>le,map:()=>Ie,ok:()=>D,unwrap:()=>Oe,unwrapErr:()=>je});var D=e=>({isOk:!0,isErr:!1,value:e}),le=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>D(s)):D(r)}if(e.isErr){const r=e.value;return le(r)}throw"should never get here"}var Oe=e=>{if(e.isOk)return e.value;throw e.value},je=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},Ue=(e,t)=>()=>{},ae=(e,t,...r)=>{let s=null,n=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!q(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?R(null,s):s),l=a)};if(o(r),t){t.key&&(n=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=R(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=n,c},R=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},ze={},De=e=>e&&e.$tag$===ze,Re=(e,t)=>e!=null&&!q(e)&&t&1?String(e):e,Be=e=>E(e).$hostElement$,Fe=(e,t,r)=>{const s=h.ce(t,r);return e.dispatchEvent(s),s},J=new WeakMap,He=(e,t,r)=>{let s=_.get(e);Le&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,_.set(e,s)},qe=(e,t,r)=>{var s;const n=oe(t),a=_.get(n);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=J.get(e),i;if(l||J.set(e,l=new Set),!l.has(n)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:re(m);o!=null&&i.setAttribute("nonce",o),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=te),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},We=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=S("attachStyles",t.$tagName$),a=qe(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=a,r.classList.add(a+"-h")),n()},oe=(e,t)=>"sc-"+e.$tagName$,K=(e,t,r,s,n,a)=>{if(r!==s){let l=X(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,c=Z(r),$=Z(s);o.remove(...c.filter(f=>f&&!$.includes(f))),o.add(...$.filter(f=>f&&!c.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):X(I,i)?t=i.slice(2):t=i[2]+t.slice(3),r||s){const o=t.endsWith(ie);t=t.replace(Xe,""),r&&h.rel(e,t,r,o),s&&h.ael(e,t,s,o)}}else{const o=q(s);if((l||o&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(r==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||n)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Me=/\s/,Z=e=>e?e.split(Me):[],ie="Capture",Xe=new RegExp(ie+"$"),ce=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||Y,a=t.$attrs$||Y;for(const l of N(Object.keys(n)))l in a||K(s,l,n[l],void 0,r,t.$flags$);for(const l of N(Object.keys(a)))K(s,l,n[l],a[l],r,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var P,W,$e=!1,fe=!1,C=(e,t,r,s)=>{const n=t.$children$[r];let a=0,l,i;if(n.$text$!==null)l=n.$elm$=m.createTextNode(n.$text$);else if(l=n.$elm$=m.createElement(!$e&&ee.slotRelocation&&n.$flags$&2?"slot-fb":n.$tag$),ce(null,n,fe),_e(P)&&l["s-si"]!==P&&l.classList.add(l["s-si"]=P),n.$children$)for(a=0;a<n.$children$.length;++a)i=C(e,n,a),i&&l.appendChild(i);return l["s-hn"]=W,l},de=(e,t,r,s,n,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===W&&(l=l.shadowRoot);n<=a;++n)s[n]&&(i=C(null,r,n),i&&(s[n].$elm$=i,A(l,i,t)))},ue=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const a=n.$elm$;pe(n),a&&a.remove()}}},Ge=(e,t,r,s,n=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],v,y;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(L($,u,n))w($,u,n),$=t[++a],u=s[++l];else if(L(f,p,n))w(f,p,n),f=t[--c],p=s[--d];else if(L($,p,n))w($,p,n),A(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],p=s[--d];else if(L(f,u,n))w(f,u,n),A(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(y=t[i],y.$tag$!==u.$tag$?v=C(t&&t[l],r,i):(w(y,u,n),t[i]=void 0,v=y.$elm$),u=s[++l]):(v=C(t&&t[l],r,l),u=s[++l]),v&&A($.$elm$.parentNode,v,$.$elm$)}a>c?de(e,s[d+1]==null?null:s[d+1].$elm$,r,s,l,d):l>d&&ue(t,a,c)},L=(e,t,r=!1)=>e.$tag$===t.$tag$?r?!0:e.$key$===t.$key$:!1,w=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ce(e,t,fe),n!==null&&a!==null?Ge(s,n,t,a,r):a!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,a,0,a.length-1)):n!==null&&ue(n,0,n.length-1)):e.$text$!==l&&(s.data=l)},pe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(pe)},A=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Qe=(e,t,r=!1)=>{const s=e.$hostElement$,n=e.$cmpMeta$,a=e.$vnode$||R(null,null),l=De(t)?t:ae(null,null,t);if(W=s.tagName,n.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},n.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),r&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,P=s["s-sc"],$e=(n.$flags$&1)!==0,w(a,l,r)},ve=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},M=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ve(e,e.$ancestorComponent$),Ae(()=>Ye(e,t))},Ye=(e,t)=>{const r=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=O(n,"componentWillLoad")),s(),Je(a,()=>Ze(e,n,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ze=(e,t,r)=>x(exports,null,function*(){var s;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];r&&We(e);const i=S("render",e.$cmpMeta$.$tagName$);Ne(e,t,n,r),l&&(l.map(o=>o()),n["s-rc"]=void 0),i(),a();{const o=(s=n["s-p"])!=null?s:[],c=()=>Ve(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),Ne=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Qe(e,t,s)}catch(n){k(n,e.$hostElement$)}return null},Ve=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=S("postUpdate",t),n=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(r),O(n,"componentDidLoad"),s(),e.$onReadyResolve$(r),a||he()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&H(()=>M(e,!1)),e.$flags$&=-517},he=e=>{ge(m.documentElement),H(()=>Fe(I,"appload",{detail:{namespace:Se}}))},O=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){k(s)}},ge=e=>{var t;return e.classList.add((t=ee.hydratedSelectorName)!=null?t:"hydrated")},et=(e,t)=>E(e).$instanceValues$.get(t),tt=(e,t,r,s)=>{const n=E(e);if(!n)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),i=n.$flags$,o=n.$lazyInstance$;r=Re(r,s.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(r),$=r!==l&&!c;if((!(i&8)||l===void 0)&&$&&(n.$instanceValues$.set(t,r),o)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(d=>{try{o[d](r,l,t)}catch(u){k(u,a)}})}(i&18)===2&&M(n,!1)}},ye=(e,t,r)=>{var s,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||r&2&&o&32)&&Object.defineProperty(a,i,{get(){return et(this,i)},set(c){tt(this,i,c,t)},configurable:!0,enumerable:!0})}),r&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){h.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=E(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const v=u.$lazyInstance$,y=(f=t.$watchers$)==null?void 0:f[o];y==null||y.forEach(g=>{v[g]!=null&&v[g].call(v,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{var $;const f=c[1]||o;return i.set(f,o),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([o,f])),f})]))}}return e},st=(e,t,r,s)=>x(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,r.$lazyBundleId$){const o=Te(r);if(o&&"then"in o){const $=Ue();n=yield o,$()}else n=o;if(!n)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(r.$watchers$=n.watchers,ye(n,r,2),n.isProxied=!0);const c=S("createInstance",r.$tagName$);t.$flags$|=8;try{new n(t)}catch($){k($)}t.$flags$&=-9,t.$flags$|=128,c(),B(t.$lazyInstance$)}else{n=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(n&&n.style){let o;typeof n.style=="string"&&(o=n.style);const c=oe(r);if(!_.has(c)){const $=S("registerStyles",r.$tagName$);He(c,o,!!(r.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>M(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),B=e=>{O(e,"connectedCallback")},nt=e=>{if(!(h.$flags$&1)){const t=E(e),r=t.$cmpMeta$,s=S("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$?B(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>B(t.$lazyInstance$));else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),st(e,t,r)}s()}},V=e=>{O(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var r;const s=S(),n=[],a=t.exclude||[],l=I.customElements,i=m.head,o=i.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(v=>{var y;const g={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};g.$flags$&4&&(u=!0),g.$members$=v[2],g.$attrsToReflect$=[],g.$watchers$=(y=v[4])!=null?y:{};const T=g.$tagName$,me=class extends HTMLElement{constructor(b){if(super(b),this.hasRegisteredEventListeners=!1,b=this,we(b,g),g.$flags$&1){if(!b.shadowRoot)b.attachShadow({mode:"open"});else if(b.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>nt(this))}disconnectedCallback(){h.jmp(()=>rt(this))}componentOnReady(){return E(this).$onReadyPromise$}};g.$lazyBundleId$=p[0],!a.includes(T)&&!l.get(T)&&(n.push(T),l.define(T,ye(me,g,1)))})}),n.length>0&&(u&&(c.textContent+=te),c.textContent+=n.sort()+xe,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(r=h.$nonce$)!=null?r:re(m);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(he,30)),s()};exports.bootstrapLazy=lt;exports.getElement=Be;exports.h=ae;exports.promiseResolve=se;exports.registerInstance=ke;
|