@everymatrix/casino-page-nd 1.77.13 → 1.77.14
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-Bb4l6GHP.cjs → CasinoCalendar-CMBPy1pJ.cjs} +1 -1
- package/components/{CasinoCalendar-DEsVuhHv.js → CasinoCalendar-CVV5rh8D.js} +2 -2
- package/components/{CasinoCalendar-C-Gc1XNl.js → CasinoCalendar-Dvq0s7Wu.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-DC-cdq2S.js → CasinoCalendarDailyDetails-Ce8DWjpV.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BoCRu-0B.cjs → CasinoCalendarDailyDetails-DexFgNfS.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-Bshm9kom.js → CasinoCalendarDailyDetails-DoK91rza.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C1rbVbBh.js → CasinoCalendarDailyItem-D15k2m1h.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C8BZA5cO.cjs → CasinoCalendarDailyItem-DJzXrKrB.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DRr0UMFE.js → CasinoCalendarDailyItem-DYvCgZu8.js} +2 -2
- package/components/{CasinoCollectionsProviders-Cm4t95De.js → CasinoCollectionsProviders-CME6A3fn.js} +1 -1
- package/components/{CasinoCollectionsProviders-D368qYjr.cjs → CasinoCollectionsProviders-DBJEOSOQ.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-WotINE7k.js → CasinoCollectionsProviders-m_2jJqD9.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-Bmc8bU-z.cjs → CasinoFavoritesSectionNd-DYqPUw83.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-C6-yWARI.js → CasinoFavoritesSectionNd-ItqNIJiO.js} +2 -2
- package/components/{CasinoFavoritesSectionNd-BHQmqNMq.js → CasinoFavoritesSectionNd-j_x4BbVA.js} +2 -2
- package/components/{CasinoFilter-BLnnmGTk.js → CasinoFilter-B9UcHS3B.js} +1 -1
- package/components/{CasinoFilter-BwMaB48o.js → CasinoFilter-BM39VdLR.js} +1 -1
- package/components/{CasinoFilter-BuWKwvsk.cjs → CasinoFilter-fiig0zZL.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-B7QZJgR3.js → CasinoGameThumbnailNd-C7lIhRfO.js} +2 -2
- package/components/{CasinoGameThumbnailNd-CRMtNXgh.cjs → CasinoGameThumbnailNd-D68XOPSp.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-DUu2pPcA.js → CasinoGameThumbnailNd-D7d7Ut2W.js} +2 -2
- package/components/{CasinoGamesCategorySectionNd-Cvc4BjLD.cjs → CasinoGamesCategorySectionNd-BCSPbWos.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BakkXDI1.js → CasinoGamesCategorySectionNd-DDxD9nUf.js} +5 -5
- package/components/{CasinoGamesCategorySectionNd-D6Iusrpm.js → CasinoGamesCategorySectionNd-DMwVq9fp.js} +5 -5
- package/components/{CasinoJackpotBanner-CxWwqwA3.cjs → CasinoJackpotBanner-BftiHhI-.cjs} +1 -1
- package/components/{CasinoJackpotBanner-C4sBhHV3.js → CasinoJackpotBanner-Ct4mMod2.js} +2 -2
- package/components/{CasinoJackpotBanner-CaCQ3A3V.js → CasinoJackpotBanner-OnXeUt0G.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BO_cHPi2.js → CasinoLastPlayedSectionNd-BHODuapK.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BOR2Eq4i.js → CasinoLastPlayedSectionNd-C3GzrdJm.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-CjJkmOSu.cjs → CasinoLastPlayedSectionNd-CeZMPmWd.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-b29WKWdf.js → CasinoMostPlayedSectionNd-D-baP__d.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-DxGy0grX.cjs → CasinoMostPlayedSectionNd-D4e0bYIb.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-Ccjm8g_T.js → CasinoMostPlayedSectionNd-Dd_xRXHP.js} +2 -2
- package/components/{CasinoMyGamesNd-CtlFOZ-P.js → CasinoMyGamesNd-Cx16hjrw.js} +4 -4
- package/components/{CasinoMyGamesNd-ml5JKzhP.cjs → CasinoMyGamesNd-DP1Glj8A.cjs} +1 -1
- package/components/{CasinoMyGamesNd-BvWBib45.js → CasinoMyGamesNd-DtO8BLgo.js} +4 -4
- package/components/{CasinoPageNd-P616JQl8.cjs → CasinoPageNd-Bmo2CfLy.cjs} +1 -1
- package/components/{CasinoPageNd-nu9HqX-v.js → CasinoPageNd-CDCuJS2u.js} +11 -11
- package/components/{CasinoPageNd-CFfTnbWK.js → CasinoPageNd-CR4OQ5Yf.js} +11 -11
- package/components/{CasinoRandomGame-nW4hfNCL.cjs → CasinoRandomGame-CtrV5Zq9.cjs} +1 -1
- package/components/{CasinoRandomGame-CROz9-qb.js → CasinoRandomGame-D9uI-0HJ.js} +1 -1
- package/components/{CasinoRandomGame-iLAl8PT1.js → CasinoRandomGame-DfVbawNf.js} +1 -1
- package/components/{CasinoSearchNd-JCbnWDoT.js → CasinoSearchNd-C7dhVLGA.js} +3 -3
- package/components/{CasinoSearchNd-U73g-0SV.js → CasinoSearchNd-DFkU61c3.js} +3 -3
- package/components/{CasinoSearchNd-D3Rlb42i.cjs → CasinoSearchNd-uyln5p8b.cjs} +1 -1
- package/components/{CasinoSort-Ce1vDL8z.cjs → CasinoSort-BsXOeI0C.cjs} +1 -1
- package/components/{CasinoSort-DOkmQroL.js → CasinoSort-CTN72s-D.js} +1 -1
- package/components/{CasinoSort-CTlEjsW6.js → CasinoSort-V3aduIWF.js} +1 -1
- package/components/{CasinoWinners-C_u9lTEZ.js → CasinoWinners-4USyKpC3.js} +2 -2
- package/components/{CasinoWinners-Bgxj-WaT.cjs → CasinoWinners-BDry1zn1.cjs} +1 -1
- package/components/{CasinoWinners-BnOaeWod.js → CasinoWinners-ClkBsJkH.js} +2 -2
- package/components/{GeneralAnimationLoading-Bid-JpR1.js → GeneralAnimationLoading-2pIa3WZ2.js} +1 -1
- package/components/{GeneralAnimationLoading-DIbb8v9O.js → GeneralAnimationLoading-B9CgzrHo.js} +1 -1
- package/components/{GeneralAnimationLoading-CMpO5woq.cjs → GeneralAnimationLoading-BIa2hgIm.cjs} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-calendar-Cs0jFzFd.js → casino-calendar-BnA6moNu.js} +1 -1
- package/lazy/{casino-calendar-CsNsKiZY.js → casino-calendar-CCjyf9sY.js} +1 -1
- package/lazy/{casino-calendar-YkbDV8u-.cjs → casino-calendar-DouPWVGN.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-245QLr11.js → casino-calendar-daily-details-4_z9E4ve.js} +1 -1
- package/lazy/{casino-calendar-daily-details-YbqHTfeW.js → casino-calendar-daily-details-C0P3w-fs.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CPtlx4kW.cjs → casino-calendar-daily-details-Dt4FF_n8.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-D_hB5GRk.cjs → casino-calendar-daily-item-BWcR9mep.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-C-eqWtT0.js → casino-calendar-daily-item-CUVB-kY4.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DU29B-S3.js → casino-calendar-daily-item-DMKoFR_q.js} +1 -1
- package/lazy/{casino-collections-providers-qcRdTKtX.js → casino-collections-providers-BXXUgv8B.js} +1 -1
- package/lazy/{casino-collections-providers-DI96GWu-.cjs → casino-collections-providers-DXotDGWT.cjs} +1 -1
- package/lazy/{casino-collections-providers-C2NqfsDL.js → casino-collections-providers-DatVbMye.js} +1 -1
- package/lazy/{casino-favorites-section-nd-DZU8aHmE.js → casino-favorites-section-nd-B0h-6KZs.js} +1 -1
- package/lazy/{casino-favorites-section-nd-C7X_c8WA.js → casino-favorites-section-nd-G1k_nAvZ.js} +1 -1
- package/lazy/{casino-favorites-section-nd-8jwugjME.cjs → casino-favorites-section-nd-rZSCGLz9.cjs} +1 -1
- package/lazy/{casino-filter-DbcMmIk_.cjs → casino-filter-B2xf5U69.cjs} +1 -1
- package/lazy/{casino-filter-BeEmgxog.js → casino-filter-CZ82Hcqj.js} +1 -1
- package/lazy/{casino-filter-D8PJSlUz.js → casino-filter-M72JDTfo.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CpwMV7LL.js → casino-game-thumbnail-nd-BpRhDG4C.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-PGdD0_IP.cjs → casino-game-thumbnail-nd-KF_zrMzM.cjs} +1 -1
- package/lazy/{casino-game-thumbnail-nd-fVN7s9p3.js → casino-game-thumbnail-nd-W3ayXj8t.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Dn1t4CWy.js → casino-games-category-section-nd-BUgUwG4O.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Df9BEdvf.js → casino-games-category-section-nd-BVdBFwwD.js} +1 -1
- package/lazy/{casino-games-category-section-nd-BYmjd6dL.cjs → casino-games-category-section-nd-Cp7zYNK8.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-ByR6Zc1f.cjs → casino-jackpot-banner-BdLavtLx.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-BIiv6bjj.js → casino-jackpot-banner-DZQ5Wi9n.js} +1 -1
- package/lazy/{casino-jackpot-banner-DJd6KJQi.js → casino-jackpot-banner-wv7HsxL_.js} +1 -1
- package/lazy/{casino-last-played-section-nd-BTB6t4OE.js → casino-last-played-section-nd-CjK9WO3Y.js} +1 -1
- package/lazy/{casino-last-played-section-nd-gmnR5s4s.js → casino-last-played-section-nd-CqwSv5ck.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CqjHRwIW.cjs → casino-last-played-section-nd-yCd6eEHJ.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-vVzJCBeu.cjs → casino-most-played-section-nd-BJW9_1tW.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-BEVPSN6I.js → casino-most-played-section-nd-C94lFpEP.js} +1 -1
- package/lazy/{casino-most-played-section-nd-DmOXcjq2.js → casino-most-played-section-nd-DBUtrDqy.js} +1 -1
- package/lazy/{casino-my-games-nd-DX5-KSYG.js → casino-my-games-nd-CKKAEy87.js} +1 -1
- package/lazy/{casino-my-games-nd-CCZzTLyG.cjs → casino-my-games-nd-CweGRZVj.cjs} +1 -1
- package/lazy/{casino-my-games-nd-DdFHsoU1.js → casino-my-games-nd-D2yactb5.js} +1 -1
- package/lazy/casino-play-random-game-6lpggPdG.js +577 -0
- package/lazy/casino-play-random-game-DJtnASHn.cjs +1 -0
- package/lazy/casino-play-random-game-pSLEGfAB.js +561 -0
- package/lazy/{casino-random-game-CymQ57Gq.js → casino-random-game-BNjDmcBR.js} +1 -1
- package/lazy/{casino-random-game-Czlq0-VB.cjs → casino-random-game-DoOoACUd.cjs} +1 -1
- package/lazy/{casino-random-game-Bo0vfYPH.js → casino-random-game-v4cKTQdE.js} +1 -1
- package/lazy/{casino-search-nd-BED9H3PW.cjs → casino-search-nd-Bcnszmji.cjs} +1 -1
- package/lazy/{casino-search-nd-B7hwSaEk.js → casino-search-nd-D2EHW2L0.js} +1 -1
- package/lazy/{casino-search-nd-DFwBI4Qk.js → casino-search-nd-DOVyBHa7.js} +1 -1
- package/lazy/{casino-sort-CmEYuC2P.cjs → casino-sort--VUnkatZ.cjs} +1 -1
- package/lazy/{casino-sort-BCOB6Jg-.js → casino-sort-BI4VLIYM.js} +1 -1
- package/lazy/{casino-sort-Co6zKDLB.js → casino-sort-CA7YDNNV.js} +1 -1
- package/lazy/{casino-winners-DC4QNFs1.cjs → casino-winners-Bqmcvrcd.cjs} +1 -1
- package/lazy/{casino-winners-SfAP5xJr.js → casino-winners-Cxdl38To.js} +1 -1
- package/lazy/{casino-winners-CMCXuPK3.js → casino-winners-_unUTW-I.js} +1 -1
- package/lazy/{general-animation-loading-DQ36UHLN.cjs → general-animation-loading-B8SfjdID.cjs} +1 -1
- package/lazy/{general-animation-loading-DMjUl0Rz.js → general-animation-loading-XGVRNffx.js} +1 -1
- package/lazy/{general-animation-loading-DOvLyO6h.js → general-animation-loading-mNCrvpE1.js} +1 -1
- package/lazy/{ui-image-Gj7rJvHi.js → ui-image-6OZUScHT.js} +104 -105
- package/lazy/ui-image-BTer2Blj.cjs +1 -0
- package/lazy/{ui-image-DN4m37SE.js → ui-image-DrfhaZQK.js} +101 -102
- package/package.json +1 -1
- package/stencil/casino-play-random-game-BX2tki3v.cjs +1 -0
- package/stencil/casino-play-random-game-BvFOgOx2.js +11 -0
- package/stencil/casino-play-random-game-DXUvivEt.js +29 -0
- package/stencil/{casino-play-random-game_3-FMiWkeIB.js → casino-play-random-game_2-DLQ8WMsx.js} +62 -146
- package/stencil/{casino-play-random-game_3-DOusVAh7.cjs → casino-play-random-game_2-Mc_EMhs0.cjs} +3 -3
- package/stencil/{casino-play-random-game_3-COuR8an7.js → casino-play-random-game_2-X7gDHQuf.js} +62 -146
- package/stencil/ui-image-BSbeFMrw.js +25 -0
- package/stencil/ui-image-D0QGiLPH.js +7 -0
- package/stencil/ui-image-_R7s8yZ5.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-D0uYqQgN.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-DL2Udm8K.js +39 -0
- package/stencil/ui-image-b7b48fe5-Dp3Q6FzO.js +39 -0
- package/stencil/{ui-image_2-CG9gShl1.js → ui-image_2-1wLfOSXS.js} +2 -2
- package/stencil/{ui-image_2-D6Y1TRww.cjs → ui-image_2-CU1S4WDO.cjs} +1 -1
- package/stencil/{ui-image_2-DA8s2q6a.js → ui-image_2-zG8MepJB.js} +2 -2
- package/lazy/casino-play-random-game-DXY5a1vd.js +0 -566
- package/lazy/casino-play-random-game-DsvAa0pU.cjs +0 -1
- package/lazy/casino-play-random-game-Dx7GeDg-.js +0 -582
- package/lazy/ui-image-Bfp60xra.cjs +0 -1
- package/stencil/casino-play-random-game-C5MTrbms.js +0 -11
- package/stencil/casino-play-random-game-D6quvMHY.cjs +0 -1
- package/stencil/casino-play-random-game-fHX7Vj4m.js +0 -29
- package/stencil/ui-image-B1gnYL7S.js +0 -7
- package/stencil/ui-image-BfKM3Qq_.js +0 -25
- package/stencil/ui-image-Dv6GC1lm.cjs +0 -1
- package/stencil/ui-image-ae115205-CrezTJRy.js +0 -81
- package/stencil/ui-image-ae115205-D6AaeZwA.js +0 -81
- package/stencil/ui-image-ae115205-QubhRQ2C.cjs +0 -1
package/stencil/{casino-play-random-game_3-COuR8an7.js → casino-play-random-game_2-X7gDHQuf.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as h, c as u, h as n, g as p, H as w } from "../lazy/casino-play-random-game-pSLEGfAB.js";
|
|
2
2
|
const f = () => {
|
|
3
3
|
let e = window.navigator.userAgent;
|
|
4
4
|
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
@@ -45,42 +45,42 @@ const f = () => {
|
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, l = (e) => new Promise((t) => {
|
|
49
49
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
50
50
|
Object.keys(i).forEach((a) => {
|
|
51
51
|
r[a] || (r[a] = {});
|
|
52
|
-
for (let
|
|
53
|
-
r[a][
|
|
54
|
-
}),
|
|
52
|
+
for (let o in i[a])
|
|
53
|
+
r[a][o] = i[a][o];
|
|
54
|
+
}), t(!0);
|
|
55
55
|
});
|
|
56
|
-
}),
|
|
57
|
-
const i =
|
|
56
|
+
}), s = (e, t) => {
|
|
57
|
+
const i = t;
|
|
58
58
|
return r[i !== void 0 && i in r ? i : y][e];
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function m(e, t) {
|
|
61
61
|
if (e) {
|
|
62
62
|
const i = document.createElement("style");
|
|
63
|
-
i.innerHTML =
|
|
63
|
+
i.innerHTML = t, e.appendChild(i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const i = new URL(
|
|
66
|
+
function d(e, t) {
|
|
67
|
+
const i = new URL(t);
|
|
68
68
|
fetch(i.href).then((a) => a.text()).then((a) => {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const o = document.createElement("style");
|
|
70
|
+
o.innerHTML = a, e && e.appendChild(o);
|
|
71
71
|
}).catch((a) => {
|
|
72
72
|
console.error("There was an error while trying to load client styling from URL", a);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function x(e, t, i) {
|
|
76
76
|
if (window.emMessageBus) {
|
|
77
77
|
const a = document.createElement("style");
|
|
78
|
-
window.emMessageBus.subscribe(
|
|
79
|
-
a.innerHTML =
|
|
78
|
+
window.emMessageBus.subscribe(t, (o) => {
|
|
79
|
+
a.innerHTML = o, e && e.appendChild(a);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const b = `:host {
|
|
84
84
|
display: block;
|
|
85
85
|
font-family: inherit;
|
|
86
86
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -457,56 +457,50 @@ const x = `:host {
|
|
|
457
457
|
width: 70px;
|
|
458
458
|
height: 85px;
|
|
459
459
|
}
|
|
460
|
-
}`, k =
|
|
460
|
+
}`, k = b, G = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
|
|
463
|
-
let i =
|
|
462
|
+
h(this, e), this.dataLoaded = u(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (t) => {
|
|
463
|
+
let i = t.length, a;
|
|
464
464
|
for (; i !== 0; )
|
|
465
|
-
a = Math.floor(Math.random() * i), i--, [
|
|
466
|
-
return
|
|
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
|
|
465
|
+
a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
|
|
466
|
+
return t;
|
|
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;
|
|
468
468
|
}
|
|
469
|
-
watchEndpoint(e,
|
|
470
|
-
e && e !=
|
|
469
|
+
watchEndpoint(e, t) {
|
|
470
|
+
e && e != t && this.endpoint && this.fetchGameList();
|
|
471
471
|
}
|
|
472
472
|
handleNewTranslations() {
|
|
473
|
-
this.isLoading = !0,
|
|
473
|
+
this.isLoading = !0, l(this.translationUrl).then(() => {
|
|
474
474
|
this.isLoading = !1;
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
477
|
handleIsIconVisible() {
|
|
478
478
|
this.iconVisibility = this.iconVisible === "true";
|
|
479
479
|
}
|
|
480
|
-
handleClientStylingChange(e,
|
|
481
|
-
e !=
|
|
480
|
+
handleClientStylingChange(e, t) {
|
|
481
|
+
e != t && m(this.stylingContainer, this.clientStyling);
|
|
482
482
|
}
|
|
483
|
-
handleClientStylingChangeURL(e,
|
|
484
|
-
e !=
|
|
483
|
+
handleClientStylingChangeURL(e, t) {
|
|
484
|
+
e != t && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
|
|
485
485
|
}
|
|
486
486
|
connectedCallback() {
|
|
487
487
|
this.handleIsIconVisible();
|
|
488
488
|
}
|
|
489
489
|
componentWillLoad() {
|
|
490
|
-
if (this.translationUrl.length > 2 &&
|
|
490
|
+
if (this.translationUrl.length > 2 && l(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
491
491
|
return this.fetchGameList();
|
|
492
492
|
}
|
|
493
493
|
componentDidLoad() {
|
|
494
|
-
|
|
495
|
-
e.forEach((n) => {
|
|
496
|
-
var i;
|
|
497
|
-
n.isIntersecting && (this.imageLoadingType = "eager", (i = this.io) === null || i === void 0 || i.unobserve(n.target));
|
|
498
|
-
});
|
|
499
|
-
}, { root: null, rootMargin: this.detectDistance }), this.io.observe(this.host)), window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && c(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));
|
|
500
495
|
}
|
|
501
496
|
disconnectedCallback() {
|
|
502
|
-
|
|
503
|
-
(e = this.io) === null || e === void 0 || e.disconnect(), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
497
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
504
498
|
}
|
|
505
499
|
fetchGameList() {
|
|
506
500
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
507
|
-
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((
|
|
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) => {
|
|
508
502
|
this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
|
|
509
|
-
this.gamesToShow = this.setUpGames(a?.items),
|
|
503
|
+
this.gamesToShow = this.setUpGames(a?.items), t(!0);
|
|
510
504
|
}).catch((a) => {
|
|
511
505
|
console.error(a), this.hasErrors = !0, i(a);
|
|
512
506
|
}).finally(() => {
|
|
@@ -517,8 +511,8 @@ const x = `:host {
|
|
|
517
511
|
});
|
|
518
512
|
}
|
|
519
513
|
setUpGames(e) {
|
|
520
|
-
const
|
|
521
|
-
return
|
|
514
|
+
const t = this.shuffle(e).slice(0, 40);
|
|
515
|
+
return t.concat(t);
|
|
522
516
|
}
|
|
523
517
|
selectRandomGame() {
|
|
524
518
|
const e = this.gamesToShow.length / 2;
|
|
@@ -536,18 +530,18 @@ const x = `: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 e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),
|
|
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
|
|
540
534
|
i / 2 - // Additional half card width to center to the selected game
|
|
541
|
-
a / 2,
|
|
535
|
+
a / 2, c = [
|
|
542
536
|
{ transform: "translateX(0px)", scale: 1 },
|
|
543
537
|
{ scale: 0.75 },
|
|
544
|
-
{ transform: `translateX(-${
|
|
545
|
-
],
|
|
538
|
+
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
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(
|
|
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,17 +556,17 @@ const x = `:host {
|
|
|
562
556
|
});
|
|
563
557
|
}
|
|
564
558
|
renderGameDetails() {
|
|
565
|
-
return
|
|
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))));
|
|
566
560
|
}
|
|
567
561
|
renderSkeleton() {
|
|
568
|
-
const e = Array.from({ length: 5 }, (
|
|
569
|
-
return
|
|
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));
|
|
570
564
|
}
|
|
571
565
|
render() {
|
|
572
|
-
return
|
|
566
|
+
return n("div", { key: "1f326cff688b0b71ca1d6efbc6766c6b768cb846", 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))))));
|
|
573
567
|
}
|
|
574
568
|
get host() {
|
|
575
|
-
return
|
|
569
|
+
return p(this);
|
|
576
570
|
}
|
|
577
571
|
static get watchers() {
|
|
578
572
|
return {
|
|
@@ -586,87 +580,10 @@ const x = `:host {
|
|
|
586
580
|
};
|
|
587
581
|
}
|
|
588
582
|
};
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
constructor(e) {
|
|
592
|
-
d(this, e), this._onLoad = () => {
|
|
593
|
-
this.imgLoaded = !0;
|
|
594
|
-
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
595
|
-
}
|
|
596
|
-
onSrcChange() {
|
|
597
|
-
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
598
|
-
}
|
|
599
|
-
onLoadingChange(e, n) {
|
|
600
|
-
e !== n && (this.cleanupObserver(), e === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
601
|
-
}
|
|
602
|
-
componentDidLoad() {
|
|
603
|
-
this.loading !== "eager" && this.setupObserver();
|
|
604
|
-
}
|
|
605
|
-
disconnectedCallback() {
|
|
606
|
-
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
607
|
-
}
|
|
608
|
-
canUseIO() {
|
|
609
|
-
return typeof window < "u" && "IntersectionObserver" in window;
|
|
610
|
-
}
|
|
611
|
-
setupObserver() {
|
|
612
|
-
if (this.loading !== "eager") {
|
|
613
|
-
if (!this.canUseIO()) {
|
|
614
|
-
this.beginLoad();
|
|
615
|
-
return;
|
|
616
|
-
}
|
|
617
|
-
this.io = new IntersectionObserver((e) => {
|
|
618
|
-
var n;
|
|
619
|
-
for (const i of e)
|
|
620
|
-
if (i.isIntersecting) {
|
|
621
|
-
this.beginLoad(), (n = this.io) === null || n === void 0 || n.unobserve(i.target), this.cleanupObserver();
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
cleanupObserver() {
|
|
628
|
-
var e;
|
|
629
|
-
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
630
|
-
}
|
|
631
|
-
beginLoad() {
|
|
632
|
-
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
633
|
-
}
|
|
634
|
-
preloadAndSetSrc() {
|
|
635
|
-
if (!this.src || !this.imgEl)
|
|
636
|
-
return;
|
|
637
|
-
const e = new Image();
|
|
638
|
-
e.onload = () => {
|
|
639
|
-
this.imgEl && (this.imgEl.src = e.src, this.imgLoaded = !0);
|
|
640
|
-
}, e.onerror = () => {
|
|
641
|
-
this.imgEl && (this.imgEl.src = this.src);
|
|
642
|
-
}, e.src = this.src;
|
|
643
|
-
}
|
|
644
|
-
get showSkeleton() {
|
|
645
|
-
return this.loading !== "eager" && !this.imgLoaded;
|
|
646
|
-
}
|
|
647
|
-
renderEager() {
|
|
648
|
-
return t(l, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
649
|
-
}
|
|
650
|
-
renderLazy() {
|
|
651
|
-
return t(l, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
652
|
-
}
|
|
653
|
-
render() {
|
|
654
|
-
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
655
|
-
}
|
|
656
|
-
get el() {
|
|
657
|
-
return g(this);
|
|
658
|
-
}
|
|
659
|
-
static get watchers() {
|
|
660
|
-
return {
|
|
661
|
-
src: ["onSrcChange"],
|
|
662
|
-
loading: ["onLoadingChange"]
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
C.style = R;
|
|
667
|
-
const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", L = S, V = class {
|
|
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 {
|
|
668
585
|
constructor(e) {
|
|
669
|
-
|
|
586
|
+
h(this, e), this.stylingValue = {
|
|
670
587
|
width: this.handleStylingProps(this.width),
|
|
671
588
|
height: this.handleStylingProps(this.height),
|
|
672
589
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
@@ -677,8 +594,8 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
677
594
|
size: this.handleStylingProps(this.size)
|
|
678
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%";
|
|
679
596
|
}
|
|
680
|
-
handleStructureChange(e,
|
|
681
|
-
|
|
597
|
+
handleStructureChange(e, t) {
|
|
598
|
+
t !== e && this.handleStructure(e);
|
|
682
599
|
}
|
|
683
600
|
handleStylingProps(e) {
|
|
684
601
|
switch (typeof e) {
|
|
@@ -711,22 +628,22 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
711
628
|
}
|
|
712
629
|
}
|
|
713
630
|
renderLogo() {
|
|
714
|
-
return
|
|
631
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
715
632
|
}
|
|
716
633
|
renderImage() {
|
|
717
|
-
return
|
|
634
|
+
return n("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
718
635
|
}
|
|
719
636
|
renderTitle() {
|
|
720
|
-
return
|
|
637
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
721
638
|
}
|
|
722
639
|
renderText() {
|
|
723
|
-
return
|
|
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" : "") })));
|
|
724
641
|
}
|
|
725
642
|
renderRectangle() {
|
|
726
|
-
return
|
|
643
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
727
644
|
}
|
|
728
645
|
renderCircle() {
|
|
729
|
-
return
|
|
646
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
730
647
|
}
|
|
731
648
|
render() {
|
|
732
649
|
let e = "";
|
|
@@ -806,7 +723,7 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
806
723
|
default:
|
|
807
724
|
e = "";
|
|
808
725
|
}
|
|
809
|
-
return
|
|
726
|
+
return n(w, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, n("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
810
727
|
}
|
|
811
728
|
static get watchers() {
|
|
812
729
|
return {
|
|
@@ -814,9 +731,8 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
814
731
|
};
|
|
815
732
|
}
|
|
816
733
|
};
|
|
817
|
-
|
|
734
|
+
S.style = R;
|
|
818
735
|
export {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
V as ui_skeleton
|
|
736
|
+
G as casino_play_random_game,
|
|
737
|
+
S as ui_skeleton
|
|
822
738
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var n = (r, e, a) => new Promise((m, s) => {
|
|
2
|
+
var u = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
i(a.next(t));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
s(o);
|
|
7
|
+
}
|
|
8
|
+
}, g = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
i(a.throw(t));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
s(o);
|
|
13
|
+
}
|
|
14
|
+
}, i = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(u, g);
|
|
15
|
+
i((a = a.apply(r, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as c, p as l } from "../lazy/ui-image-6OZUScHT.js";
|
|
18
|
+
import { a as d } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
|
+
var h = () => {
|
|
20
|
+
const r = import.meta.url, e = {};
|
|
21
|
+
return r !== "" && (e.resourcesUrl = new URL(".", r).href), l(e);
|
|
22
|
+
};
|
|
23
|
+
h().then((r) => n(void 0, null, function* () {
|
|
24
|
+
return yield d(), c([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [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"] }]]]], r);
|
|
25
|
+
}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { b as e, p as a } from "../lazy/ui-image-DrfhaZQK.js";
|
|
2
|
+
import { a as i } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
3
|
+
var o = () => {
|
|
4
|
+
const t = import.meta.url, r = {};
|
|
5
|
+
return t !== "" && (r.resourcesUrl = new URL(".", t).href), a(r);
|
|
6
|
+
};
|
|
7
|
+
o().then(async (t) => (await i(), e([["ui-image_2", [[0, "ui-image", { src: [1], width: [1], height: [1], alt: [1], styles: [8], detectDistance: [1, "detect-distance"], imgLoaded: [32], shouldLoad: [32] }, null, { src: ["handleSrc"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [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"] }]]]], t)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(t,r,i)=>new Promise((m,s)=>{var d=e=>{try{a(i.next(e))}catch(n){s(n)}},l=e=>{try{a(i.throw(e))}catch(n){s(n)}},a=e=>e.done?m(e.value):Promise.resolve(e.value).then(d,l);a((i=i.apply(t,r)).next())});const c=require("../lazy/ui-image-BTer2Blj.cjs"),g=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-_R7s8yZ5.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),c.promiseResolve(r)};h().then(t=>u(exports,null,function*(){return yield g.globalScripts$1(),c.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[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"]}]]]],t)}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("../lazy/ui-image-BTer2Blj.cjs"),r=".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}",a=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=a;exports.UiImage=n;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r, h as s, H as n, g as a } from "../lazy/ui-image-6OZUScHT.js";
|
|
2
|
+
const d = ".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}", o = d, h = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
5
|
+
}
|
|
6
|
+
handleSrc() {
|
|
7
|
+
if (!this.shouldLoad)
|
|
8
|
+
return;
|
|
9
|
+
const e = new Image();
|
|
10
|
+
e.onload = () => {
|
|
11
|
+
this.image && (this.image.src = this.src, this.imgLoaded = !0, e.onload = null);
|
|
12
|
+
}, e.src = this.src;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
"IntersectionObserver" in window ? (this.el.__uxComponent = this, window.EMUxObserver || (window.EMUxObserver = new IntersectionObserver((e) => {
|
|
16
|
+
e.forEach((i) => {
|
|
17
|
+
if (i.isIntersecting) {
|
|
18
|
+
const t = i.target.__uxComponent;
|
|
19
|
+
t && (t.shouldLoad = !0, t.handleSrc()), window.EMUxObserver.unobserve(i.target);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return s(n, { key: "f506ba73852f257ad80bf59ca177d2065a5f365e", class: "HostContainer" }, !this.imgLoaded && s("ui-skeleton", { key: "564ebfab701f827ddc2debccb7615926dbc9e876", class: "UiContainer", structure: "image", width: "100%", height: "100%" }), s("img", { key: "2188ca4494c10587f064acc5459ffc468948f497", ref: (e) => this.image = e, src: this.shouldLoad ? this.src : void 0, onLoad: () => this.imgLoaded = !0, style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
26
|
+
}
|
|
27
|
+
get el() {
|
|
28
|
+
return a(this);
|
|
29
|
+
}
|
|
30
|
+
static get watchers() {
|
|
31
|
+
return {
|
|
32
|
+
src: ["handleSrc"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
h.style = o;
|
|
37
|
+
export {
|
|
38
|
+
h as U
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r, h as s, H as n, g as a } from "../lazy/ui-image-DrfhaZQK.js";
|
|
2
|
+
const d = ".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}", o = d, h = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
5
|
+
}
|
|
6
|
+
handleSrc() {
|
|
7
|
+
if (!this.shouldLoad)
|
|
8
|
+
return;
|
|
9
|
+
const e = new Image();
|
|
10
|
+
e.onload = () => {
|
|
11
|
+
this.image && (this.image.src = this.src, this.imgLoaded = !0, e.onload = null);
|
|
12
|
+
}, e.src = this.src;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
"IntersectionObserver" in window ? (this.el.__uxComponent = this, window.EMUxObserver || (window.EMUxObserver = new IntersectionObserver((e) => {
|
|
16
|
+
e.forEach((i) => {
|
|
17
|
+
if (i.isIntersecting) {
|
|
18
|
+
const t = i.target.__uxComponent;
|
|
19
|
+
t && (t.shouldLoad = !0, t.handleSrc()), window.EMUxObserver.unobserve(i.target);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, { rootMargin: this.detectDistance })), window.EMUxObserver.observe(this.el)) : (this.shouldLoad = !0, this.handleSrc());
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return s(n, { key: "f506ba73852f257ad80bf59ca177d2065a5f365e", class: "HostContainer" }, !this.imgLoaded && s("ui-skeleton", { key: "564ebfab701f827ddc2debccb7615926dbc9e876", class: "UiContainer", structure: "image", width: "100%", height: "100%" }), s("img", { key: "2188ca4494c10587f064acc5459ffc468948f497", ref: (e) => this.image = e, src: this.shouldLoad ? this.src : void 0, onLoad: () => this.imgLoaded = !0, style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
26
|
+
}
|
|
27
|
+
get el() {
|
|
28
|
+
return a(this);
|
|
29
|
+
}
|
|
30
|
+
static get watchers() {
|
|
31
|
+
return {
|
|
32
|
+
src: ["handleSrc"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
h.style = o;
|
|
37
|
+
export {
|
|
38
|
+
h as U
|
|
39
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-
|
|
2
|
-
import { r, h as t, H as n } from "../lazy/ui-image-
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-DL2Udm8K.js";
|
|
2
|
+
import { r, h as t, H as n } from "../lazy/ui-image-6OZUScHT.js";
|
|
3
3
|
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
r(this, e), this.stylingValue = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-D0uYqQgN.cjs"),t=require("../lazy/ui-image-BTer2Blj.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
2
|
:host {
|
|
3
3
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
4
4
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-
|
|
2
|
-
import { r, h as t, H as n } from "../lazy/ui-image-
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-Dp3Q6FzO.js";
|
|
2
|
+
import { r, h as t, H as n } from "../lazy/ui-image-DrfhaZQK.js";
|
|
3
3
|
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
r(this, e), this.stylingValue = {
|