@everymatrix/casino-lobby 1.60.2 → 1.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-DqS7aKva.cjs → CasinoCalendar-BaQd3tuL.cjs} +6 -6
- package/components/{CasinoCalendar-BYTytQgJ.js → CasinoCalendar-C4nbeq1g.js} +276 -270
- package/components/{CasinoCalendar-CI-C6zUY.js → CasinoCalendar-WuTw9Z8d.js} +276 -270
- package/components/CasinoCalendarDailyDetails-BAGuydyF.js +694 -0
- package/components/CasinoCalendarDailyDetails-CHONyOB5.js +694 -0
- package/components/CasinoCalendarDailyDetails-DrcJ9qsj.cjs +1 -0
- package/components/CasinoCalendarDailyItem-B3npUDyl.cjs +1 -0
- package/components/CasinoCalendarDailyItem-CPM6-0C8.js +307 -0
- package/components/CasinoCalendarDailyItem-eOgZSp2O.js +307 -0
- package/components/{CasinoCategoriesSlider-i9BCUm8R.cjs → CasinoCategoriesSlider-CWcGEpfR.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-DZX7fAxD.js → CasinoCategoriesSlider-DgQayYzE.js} +15 -15
- package/components/{CasinoCategoriesSlider-C2jbyhRF.js → CasinoCategoriesSlider-DyNiM5Xn.js} +14 -14
- package/components/{CasinoCollectionsProviders-Fw278mB3.js → CasinoCollectionsProviders-5PJh4coY.js} +174 -173
- package/components/CasinoCollectionsProviders-BMFI1FD2.cjs +1 -0
- package/components/{CasinoCollectionsProviders-BRhnxud8.js → CasinoCollectionsProviders-DvICMch1.js} +187 -186
- package/components/{CasinoFavoritesSection-QS8imHGS.js → CasinoFavoritesSection-BLswksE3.js} +14 -14
- package/components/{CasinoFavoritesSection-D32Mbv-O.js → CasinoFavoritesSection-D57jT5yq.js} +14 -14
- package/components/{CasinoFavoritesSection-D1GhXv3a.cjs → CasinoFavoritesSection-DXEM7KtA.cjs} +1 -1
- package/components/CasinoFilter-B9G8cs2A.cjs +1 -0
- package/components/{CasinoFilter-BHLJqOwW.js → CasinoFilter-BH7-Laxf.js} +50 -50
- package/components/{CasinoFilter-Dt8GhenI.js → CasinoFilter-COinUQ6E.js} +96 -94
- package/components/{CasinoGamePage-D_TzJsC-.js → CasinoGamePage-D4oYftHp.js} +1364 -1363
- package/components/CasinoGamePage-DhNoxzWb.cjs +18 -0
- package/components/{CasinoGamePage-5moXxd0d.js → CasinoGamePage-NTjXPK0_.js} +1320 -1319
- package/components/CasinoGameThumbnail-C_F6ViBB.js +1068 -0
- package/components/CasinoGameThumbnail-DWRrHNvN.cjs +30 -0
- package/components/CasinoGameThumbnail-pajQYCwc.js +1084 -0
- package/components/CasinoGamesCategorySection-BXWd7Cck.cjs +1 -0
- package/components/{CasinoGamesCategorySection-Bw_6-a2H.js → CasinoGamesCategorySection-Br-ZBeEp.js} +1181 -1111
- package/components/{CasinoGamesCategorySection-DdJnZPgm.js → CasinoGamesCategorySection-DrL01BnG.js} +742 -673
- package/components/CasinoJackpotBanner-BoWCKFIJ.cjs +1 -0
- package/components/CasinoJackpotBanner-CG4fFV2M.js +694 -0
- package/components/CasinoJackpotBanner-Yo5HGzmD.js +698 -0
- package/components/{CasinoLastPlayedSection-DF1qIy7A.js → CasinoLastPlayedSection-BUIc0ZEt.js} +9 -9
- package/components/{CasinoLastPlayedSection-CnwiqEWd.cjs → CasinoLastPlayedSection-CFEzl7GR.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-D8w8f1qu.js → CasinoLastPlayedSection-DjRKGJ8F.js} +9 -9
- package/components/{CasinoLobby-Anq70pxB.js → CasinoLobby-CQVjJ22J.js} +284 -245
- package/components/CasinoLobby-DnBSVJ5P.cjs +1 -0
- package/components/{CasinoLobby-Br00KMpi.js → CasinoLobby-L5w-S2-2.js} +284 -245
- package/components/{CasinoModal-DWbCqr0p.cjs → CasinoModal-CeEDc631.cjs} +1 -1
- package/components/{CasinoModal-BaV1FE12.js → CasinoModal-Cx4skobD.js} +8 -8
- package/components/{CasinoModal-Bn6r73ff.js → CasinoModal-DrALs71O.js} +8 -8
- package/components/{CasinoMostPlayedSection-4nc9NISY.js → CasinoMostPlayedSection-BrjuU2ad.js} +14 -14
- package/components/{CasinoMostPlayedSection-CleRvEGW.cjs → CasinoMostPlayedSection-D72Posxa.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-DEpCntHU.js → CasinoMostPlayedSection-Dru8l_gX.js} +14 -14
- package/components/{CasinoMyGames-Cqgayk3N.js → CasinoMyGames-Cc8aQUy5.js} +17 -17
- package/components/{CasinoMyGames-BeNdYI48.cjs → CasinoMyGames-DP5VtRtX.cjs} +1 -1
- package/components/{CasinoMyGames-Ls6PjVLx.js → CasinoMyGames-Eco1Z13t.js} +16 -16
- package/components/{CasinoPage-B_ulErY-.js → CasinoPage-BvKvwzQq.js} +1023 -881
- package/components/CasinoPage-DAptP7ZQ.cjs +1 -0
- package/components/{CasinoPage-vykaQto-.js → CasinoPage-mARxTyiZ.js} +1002 -844
- package/components/{CasinoRandomGame-DLzqJj4x.js → CasinoRandomGame-5kYiDYSm.js} +155 -154
- package/components/CasinoRandomGame-BJiVFaRb.cjs +2 -0
- package/components/{CasinoRandomGame-CsA5xgwc.js → CasinoRandomGame-RYfnY5_c.js} +195 -194
- package/components/{CasinoSearch-CyctCdxx.js → CasinoSearch-CnWoNOtX.js} +27 -27
- package/components/{CasinoSearch-jq6HJhjW.cjs → CasinoSearch-D-hwTHcV.cjs} +1 -1
- package/components/{CasinoSearch-DcjbpUq_.js → CasinoSearch-Nqv4h_zq.js} +27 -27
- package/components/CasinoSlider-B3dV89iI.cjs +1 -0
- package/components/{CasinoSlider-BmXppZ63.js → CasinoSlider-Cr-fAktO.js} +224 -223
- package/components/{CasinoSlider-DbK0-rGh.js → CasinoSlider-D1JzP31y.js} +155 -154
- package/components/{CasinoSort-23PYwtO1.cjs → CasinoSort-ByAjtAxn.cjs} +1 -1
- package/components/{CasinoSort-B3A_Ar_A.js → CasinoSort-D51DNHxk.js} +1 -1
- package/components/{CasinoSort-DtUIrmuZ.js → CasinoSort-DXiP4dA5.js} +1 -1
- package/components/{CasinoWinners-CF_PptIS.js → CasinoWinners-B1BXrca1.js} +99 -98
- package/components/CasinoWinners-CEq9st2v.cjs +1 -0
- package/components/{CasinoWinners-Gb2w2dXe.js → CasinoWinners-pzI08CdT.js} +102 -101
- package/components/{GeneralAnimationLoading-8TvNjXay.js → GeneralAnimationLoading-CI4qqgO_.js} +6 -6
- package/components/{GeneralAnimationLoading-Bbxdne1m.js → GeneralAnimationLoading-CIaY2Gvf.js} +6 -6
- package/components/{GeneralAnimationLoading-B-6s0l9d.cjs → GeneralAnimationLoading-DiZmxxRF.cjs} +1 -1
- 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/app-globals-0f993ce5-4b17CI_n.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-Cgk0KVAu.js → app-globals-0f993ce5-DfNOCk8l.js} +3 -1
- package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-6EpPs13y.js} +3 -8
- package/stencil/{casino-play-random-game-Dm8A9dTR.js → casino-play-random-game-BUvMKyaw.js} +6 -11
- package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-IjQER553.cjs} +2 -2
- package/stencil/{index-ab3202d6-OPh7hJp9.js → index-ab3202d6-9zuW-dLG.js} +1 -1
- package/stencil/{index-ab3202d6-hGs51skN.js → index-ab3202d6-CGVciVSL.js} +1 -1
- package/stencil/{index-ab3202d6-C1hgKWrC.cjs → index-ab3202d6-c7Vf1NJ1.cjs} +1 -1
- package/stencil/{index-b2193545-MPc38oBt.js → index-b2193545-CGYrx6SV.js} +1 -1
- package/stencil/{index-b2193545-DCd44oUP.cjs → index-b2193545-DU7jU8hT.cjs} +1 -1
- package/stencil/{index-b2193545-lFMF9wMV.js → index-b2193545-k_uiu1dU.js} +1 -1
- package/stencil/index-b7bbd57e-BMsMsYAr.js +550 -0
- package/stencil/index-b7bbd57e-CPxyz2y0.js +534 -0
- package/stencil/index-b7bbd57e-CiQAmzc6.cjs +1 -0
- package/stencil/ui-image-38c3c15f--IPbitii.js +39 -0
- package/stencil/ui-image-38c3c15f-CQXMTl7T.js +39 -0
- package/stencil/ui-image-38c3c15f-Dv8v2u8d.cjs +1 -0
- package/stencil/ui-image-CV8AJ9cY.js +29 -0
- package/stencil/ui-image-DG3xEaHN.js +11 -0
- package/stencil/ui-image-LuWVcxjH.cjs +1 -0
- package/stencil/{ui-skeleton-0M0DsgcH.js → ui-skeleton-22AocHRT.js} +8 -8
- package/stencil/{ui-skeleton-ea659b95-Denrk3xZ.js → ui-skeleton-6d1c12ae-4HBL8qol.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-DoJviCLo.cjs → ui-skeleton-6d1c12ae-C3POR2WV.cjs} +2 -2
- package/stencil/{ui-skeleton-ea659b95-Doo7piTc.js → ui-skeleton-6d1c12ae-f1sFu8zZ.js} +2 -2
- package/stencil/{ui-skeleton-DGBcSK-r.js → ui-skeleton-CMD3xF0X.js} +5 -5
- package/stencil/{ui-skeleton-Dt8jS6rz.cjs → ui-skeleton-Di9b-pPK.cjs} +1 -1
- package/components/CasinoCalendarDailyDetails-DQB9Y3_Q.js +0 -693
- package/components/CasinoCalendarDailyDetails-DUQWFLJJ.cjs +0 -1
- package/components/CasinoCalendarDailyDetails-Xi-Uo8v-.js +0 -693
- package/components/CasinoCalendarDailyItem-CVt2FFo1.cjs +0 -1
- package/components/CasinoCalendarDailyItem-CjRZKnnD.js +0 -306
- package/components/CasinoCalendarDailyItem-DC91__VM.js +0 -306
- package/components/CasinoCollectionsProviders-Beuct27Z.cjs +0 -1
- package/components/CasinoFilter-Bg-VilMd.cjs +0 -1
- package/components/CasinoGamePage-BmgERtPr.cjs +0 -18
- package/components/CasinoGameThumbnail-B9OLAJDP.js +0 -1882
- package/components/CasinoGameThumbnail-C-_VEhfz.cjs +0 -38
- package/components/CasinoGameThumbnail-w6gElzrs.js +0 -1866
- package/components/CasinoGamesCategorySection-B_kw0cnt.cjs +0 -1
- package/components/CasinoJackpotBanner-B_CnR3Kj.cjs +0 -1
- package/components/CasinoJackpotBanner-Dxq2Y_-S.js +0 -697
- package/components/CasinoJackpotBanner-UQaC63Zv.js +0 -693
- package/components/CasinoLobby-Da8EvOPn.cjs +0 -1
- package/components/CasinoPage-86frPbmB.cjs +0 -1
- package/components/CasinoRandomGame-BO7BqLXA.cjs +0 -2
- package/components/CasinoSlider-Bo4dCvJT.cjs +0 -1
- package/components/CasinoWinners-KEY7dD3z.cjs +0 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { a as H, $ as U, S as J, i as K, s as V, f as y, b as G, n as R, d as Q, D as A, E as B, m as O, r as u, I as F, h as X, p as r, A as Y, j as c, B as D, q as W, k as Z, o as $, l as ee, C as N, J as te, K as ae, L as ie, M as ne, N as re } from "./CasinoCalendar-C4nbeq1g.js";
|
|
2
|
+
import "../stencil/ui-image-DG3xEaHN.js";
|
|
3
|
+
function P(a, t) {
|
|
4
|
+
H(a, t);
|
|
5
|
+
}
|
|
6
|
+
function oe(a) {
|
|
7
|
+
U.set(a);
|
|
8
|
+
}
|
|
9
|
+
const q = {
|
|
10
|
+
en: {
|
|
11
|
+
error: "500 Error - Internal Server Error",
|
|
12
|
+
loading: "Loading ...",
|
|
13
|
+
monday: "Monday",
|
|
14
|
+
tuesday: "Tuesday",
|
|
15
|
+
wednesday: "Wednesday",
|
|
16
|
+
thursday: "Thursday",
|
|
17
|
+
friday: "Friday",
|
|
18
|
+
saturday: "Saturday",
|
|
19
|
+
sunday: "Sunday"
|
|
20
|
+
},
|
|
21
|
+
hr: {
|
|
22
|
+
error: "500 Error - Internal Server Error",
|
|
23
|
+
loading: "Loading ...",
|
|
24
|
+
monday: "ponedjeljak",
|
|
25
|
+
tuesday: "utorak",
|
|
26
|
+
wednesday: "srijeda",
|
|
27
|
+
thursday: "četvrtak",
|
|
28
|
+
friday: "petak",
|
|
29
|
+
saturday: "subota",
|
|
30
|
+
sunday: "nedjelja"
|
|
31
|
+
},
|
|
32
|
+
"pt-br": {
|
|
33
|
+
error: "500 Error - Internal Server Error",
|
|
34
|
+
loading: "Loading ...",
|
|
35
|
+
monday: "Monday",
|
|
36
|
+
tuesday: "Tuesday",
|
|
37
|
+
wednesday: "Wednesday",
|
|
38
|
+
thursday: "Thursday",
|
|
39
|
+
friday: "Friday",
|
|
40
|
+
saturday: "Saturday",
|
|
41
|
+
sunday: "Sunday"
|
|
42
|
+
},
|
|
43
|
+
"es-mx": {
|
|
44
|
+
error: "500 Error - Internal Server Error",
|
|
45
|
+
loading: "Loading ...",
|
|
46
|
+
monday: "Monday",
|
|
47
|
+
tuesday: "Tuesday",
|
|
48
|
+
wednesday: "Wednesday",
|
|
49
|
+
thursday: "Thursday",
|
|
50
|
+
friday: "Friday",
|
|
51
|
+
saturday: "Saturday",
|
|
52
|
+
sunday: "Sunday"
|
|
53
|
+
},
|
|
54
|
+
tr: {
|
|
55
|
+
error: "500 Error - Internal Server Error",
|
|
56
|
+
loading: "Loading ...",
|
|
57
|
+
monday: "Monday",
|
|
58
|
+
tuesday: "Tuesday",
|
|
59
|
+
wednesday: "Wednesday",
|
|
60
|
+
thursday: "Thursday",
|
|
61
|
+
friday: "Friday",
|
|
62
|
+
saturday: "Saturday",
|
|
63
|
+
sunday: "Sunday"
|
|
64
|
+
},
|
|
65
|
+
"en-us": {
|
|
66
|
+
error: "500 Error - Internal Server Error",
|
|
67
|
+
loading: "Loading ...",
|
|
68
|
+
monday: "Monday",
|
|
69
|
+
tuesday: "Tuesday",
|
|
70
|
+
wednesday: "Wednesday",
|
|
71
|
+
thursday: "Thursday",
|
|
72
|
+
friday: "Friday",
|
|
73
|
+
saturday: "Saturday",
|
|
74
|
+
sunday: "Sunday"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function de(a) {
|
|
78
|
+
G(a, "svelte-g8pzdd", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon ui-image img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
|
|
79
|
+
}
|
|
80
|
+
function se(a) {
|
|
81
|
+
let t, n, w, s, f, _, i, g, l, x, C, b, h = (
|
|
82
|
+
/*$_*/
|
|
83
|
+
a[8](`${/*dailyday*/
|
|
84
|
+
a[2]}`) + ""
|
|
85
|
+
), p, m, o, M, S, v, T, I, k, E, L;
|
|
86
|
+
return {
|
|
87
|
+
c() {
|
|
88
|
+
t = c("div"), n = c("div"), w = c("div"), s = c("div"), f = c("div"), f.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', _ = D(), i = c("div"), g = c("div"), l = c("ui-image"), C = D(), b = c("div"), p = W(h), m = D(), o = c("div"), M = D(), S = c("div"), v = c("button"), T = W(
|
|
89
|
+
/*dailybuttontitle*/
|
|
90
|
+
a[3]
|
|
91
|
+
), u(f, "class", "CalendarBar"), A(l.src, x = /*dailyicon*/
|
|
92
|
+
a[1]) || B(l, "src", x), B(
|
|
93
|
+
l,
|
|
94
|
+
"alt",
|
|
95
|
+
/*dailyicon*/
|
|
96
|
+
a[1]
|
|
97
|
+
), u(g, "class", "CasinoCalendarDailyIcon"), u(b, "class", "CasinoCalendarDailyTitle"), u(o, "class", "CasinoCalendarDailyItemDescription"), u(v, "class", "MoreInfoButton"), u(S, "class", "CasinoCalendarDailyItemButton"), u(i, "class", I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
98
|
+
a[4] == "OpenCalendarModal" ? "Tear" : "")), F(i, "background-image", "url('" + /*dailybackground*/
|
|
99
|
+
a[0] + "')"), F(i, "background-size", "cover"), F(i, "background-position", "center"), F(i, "-webkit-background-size", "cover"), F(i, "-moz-background-size", "cover"), F(i, "-o-background-size", "cover"), u(s, "class", "CalendarCard"), u(w, "class", "CasinoCalendarItems"), u(n, "class", k = "Container " + /*mobileView*/
|
|
100
|
+
(a[7] ? "Mobile" : ""));
|
|
101
|
+
},
|
|
102
|
+
m(d, e) {
|
|
103
|
+
X(d, t, e), r(t, n), r(n, w), r(w, s), r(s, f), r(s, _), r(s, i), r(i, g), r(g, l), r(i, C), r(i, b), r(b, p), r(i, m), r(i, o), a[16](o), r(i, M), r(i, S), r(S, v), r(v, T), a[18](t), E || (L = Y(
|
|
104
|
+
v,
|
|
105
|
+
"click",
|
|
106
|
+
/*click_handler*/
|
|
107
|
+
a[17]
|
|
108
|
+
), E = !0);
|
|
109
|
+
},
|
|
110
|
+
p(d, [e]) {
|
|
111
|
+
e & /*dailyicon*/
|
|
112
|
+
2 && !A(l.src, x = /*dailyicon*/
|
|
113
|
+
d[1]) && B(l, "src", x), e & /*dailyicon*/
|
|
114
|
+
2 && B(
|
|
115
|
+
l,
|
|
116
|
+
"alt",
|
|
117
|
+
/*dailyicon*/
|
|
118
|
+
d[1]
|
|
119
|
+
), e & /*$_, dailyday*/
|
|
120
|
+
260 && h !== (h = /*$_*/
|
|
121
|
+
d[8](`${/*dailyday*/
|
|
122
|
+
d[2]}`) + "") && O(p, h), e & /*dailybuttontitle*/
|
|
123
|
+
8 && O(
|
|
124
|
+
T,
|
|
125
|
+
/*dailybuttontitle*/
|
|
126
|
+
d[3]
|
|
127
|
+
), e & /*index*/
|
|
128
|
+
16 && I !== (I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
129
|
+
d[4] == "OpenCalendarModal" ? "Tear" : "")) && u(i, "class", I), e & /*dailybackground*/
|
|
130
|
+
1 && F(i, "background-image", "url('" + /*dailybackground*/
|
|
131
|
+
d[0] + "')"), e & /*mobileView*/
|
|
132
|
+
128 && k !== (k = "Container " + /*mobileView*/
|
|
133
|
+
(d[7] ? "Mobile" : "")) && u(n, "class", k);
|
|
134
|
+
},
|
|
135
|
+
i: R,
|
|
136
|
+
o: R,
|
|
137
|
+
d(d) {
|
|
138
|
+
d && Q(t), a[16](null), a[18](null), E = !1, L();
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function le(a, t, n) {
|
|
143
|
+
let w;
|
|
144
|
+
Z(a, re, (e) => n(8, w = e));
|
|
145
|
+
let { lang: s = "" } = t, { dailybackground: f = "" } = t, { dailyicon: _ = "" } = t, { dailyday: i = "" } = t, { dailydescription: g = "<p></p>" } = t, { dailybuttontitle: l = "" } = t, { index: x = "0" } = t, { mbsource: C } = t, { clientstyling: b = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: p = "" } = t, m, o, M = !1, S = window.navigator.userAgent;
|
|
146
|
+
const v = () => {
|
|
147
|
+
oe(s);
|
|
148
|
+
};
|
|
149
|
+
Object.keys(q).forEach((e) => {
|
|
150
|
+
P(e, q[e]);
|
|
151
|
+
});
|
|
152
|
+
const T = () => {
|
|
153
|
+
let e = p;
|
|
154
|
+
if (e)
|
|
155
|
+
return fetch(e).then((z) => z.json()).then((z) => {
|
|
156
|
+
Object.keys(z).forEach((j) => {
|
|
157
|
+
P(j, z[j]);
|
|
158
|
+
});
|
|
159
|
+
}).catch((z) => {
|
|
160
|
+
console.log(z);
|
|
161
|
+
});
|
|
162
|
+
}, I = () => {
|
|
163
|
+
let e = document.createElement("div");
|
|
164
|
+
e.innerHTML = g, m && m.append(e);
|
|
165
|
+
}, k = () => {
|
|
166
|
+
window.postMessage({ type: "OpenCalendar", index: x }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
|
|
167
|
+
};
|
|
168
|
+
$(() => (ee(S) && n(7, M = !0), () => {
|
|
169
|
+
}));
|
|
170
|
+
function E(e) {
|
|
171
|
+
N[e ? "unshift" : "push"](() => {
|
|
172
|
+
m = e, n(6, m);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
const L = () => k();
|
|
176
|
+
function d(e) {
|
|
177
|
+
N[e ? "unshift" : "push"](() => {
|
|
178
|
+
o = e, n(5, o);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
return a.$$set = (e) => {
|
|
182
|
+
"lang" in e && n(10, s = e.lang), "dailybackground" in e && n(0, f = e.dailybackground), "dailyicon" in e && n(1, _ = e.dailyicon), "dailyday" in e && n(2, i = e.dailyday), "dailydescription" in e && n(11, g = e.dailydescription), "dailybuttontitle" in e && n(3, l = e.dailybuttontitle), "index" in e && n(4, x = e.index), "mbsource" in e && n(12, C = e.mbsource), "clientstyling" in e && n(13, b = e.clientstyling), "clientstylingurl" in e && n(14, h = e.clientstylingurl), "translationurl" in e && n(15, p = e.translationurl);
|
|
183
|
+
}, a.$$.update = () => {
|
|
184
|
+
a.$$.dirty & /*lang*/
|
|
185
|
+
1024 && s && v(), a.$$.dirty & /*lang, translationurl*/
|
|
186
|
+
33792 && s && p && T(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
|
|
187
|
+
2063 && _ && i && g && l && f && I(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
188
|
+
8224 && b && o && te(o, b), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
189
|
+
16416 && h && o && ae(o, h), a.$$.dirty & /*mbsource, customStylingContainer*/
|
|
190
|
+
4128 && C && o && ie(o, `${C}.Style`);
|
|
191
|
+
}, [
|
|
192
|
+
f,
|
|
193
|
+
_,
|
|
194
|
+
i,
|
|
195
|
+
l,
|
|
196
|
+
x,
|
|
197
|
+
o,
|
|
198
|
+
m,
|
|
199
|
+
M,
|
|
200
|
+
w,
|
|
201
|
+
k,
|
|
202
|
+
s,
|
|
203
|
+
g,
|
|
204
|
+
C,
|
|
205
|
+
b,
|
|
206
|
+
h,
|
|
207
|
+
p,
|
|
208
|
+
E,
|
|
209
|
+
L,
|
|
210
|
+
d
|
|
211
|
+
];
|
|
212
|
+
}
|
|
213
|
+
class ue extends J {
|
|
214
|
+
constructor(t) {
|
|
215
|
+
super(), K(
|
|
216
|
+
this,
|
|
217
|
+
t,
|
|
218
|
+
le,
|
|
219
|
+
se,
|
|
220
|
+
V,
|
|
221
|
+
{
|
|
222
|
+
lang: 10,
|
|
223
|
+
dailybackground: 0,
|
|
224
|
+
dailyicon: 1,
|
|
225
|
+
dailyday: 2,
|
|
226
|
+
dailydescription: 11,
|
|
227
|
+
dailybuttontitle: 3,
|
|
228
|
+
index: 4,
|
|
229
|
+
mbsource: 12,
|
|
230
|
+
clientstyling: 13,
|
|
231
|
+
clientstylingurl: 14,
|
|
232
|
+
translationurl: 15
|
|
233
|
+
},
|
|
234
|
+
de
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
get lang() {
|
|
238
|
+
return this.$$.ctx[10];
|
|
239
|
+
}
|
|
240
|
+
set lang(t) {
|
|
241
|
+
this.$$set({ lang: t }), y();
|
|
242
|
+
}
|
|
243
|
+
get dailybackground() {
|
|
244
|
+
return this.$$.ctx[0];
|
|
245
|
+
}
|
|
246
|
+
set dailybackground(t) {
|
|
247
|
+
this.$$set({ dailybackground: t }), y();
|
|
248
|
+
}
|
|
249
|
+
get dailyicon() {
|
|
250
|
+
return this.$$.ctx[1];
|
|
251
|
+
}
|
|
252
|
+
set dailyicon(t) {
|
|
253
|
+
this.$$set({ dailyicon: t }), y();
|
|
254
|
+
}
|
|
255
|
+
get dailyday() {
|
|
256
|
+
return this.$$.ctx[2];
|
|
257
|
+
}
|
|
258
|
+
set dailyday(t) {
|
|
259
|
+
this.$$set({ dailyday: t }), y();
|
|
260
|
+
}
|
|
261
|
+
get dailydescription() {
|
|
262
|
+
return this.$$.ctx[11];
|
|
263
|
+
}
|
|
264
|
+
set dailydescription(t) {
|
|
265
|
+
this.$$set({ dailydescription: t }), y();
|
|
266
|
+
}
|
|
267
|
+
get dailybuttontitle() {
|
|
268
|
+
return this.$$.ctx[3];
|
|
269
|
+
}
|
|
270
|
+
set dailybuttontitle(t) {
|
|
271
|
+
this.$$set({ dailybuttontitle: t }), y();
|
|
272
|
+
}
|
|
273
|
+
get index() {
|
|
274
|
+
return this.$$.ctx[4];
|
|
275
|
+
}
|
|
276
|
+
set index(t) {
|
|
277
|
+
this.$$set({ index: t }), y();
|
|
278
|
+
}
|
|
279
|
+
get mbsource() {
|
|
280
|
+
return this.$$.ctx[12];
|
|
281
|
+
}
|
|
282
|
+
set mbsource(t) {
|
|
283
|
+
this.$$set({ mbsource: t }), y();
|
|
284
|
+
}
|
|
285
|
+
get clientstyling() {
|
|
286
|
+
return this.$$.ctx[13];
|
|
287
|
+
}
|
|
288
|
+
set clientstyling(t) {
|
|
289
|
+
this.$$set({ clientstyling: t }), y();
|
|
290
|
+
}
|
|
291
|
+
get clientstylingurl() {
|
|
292
|
+
return this.$$.ctx[14];
|
|
293
|
+
}
|
|
294
|
+
set clientstylingurl(t) {
|
|
295
|
+
this.$$set({ clientstylingurl: t }), y();
|
|
296
|
+
}
|
|
297
|
+
get translationurl() {
|
|
298
|
+
return this.$$.ctx[15];
|
|
299
|
+
}
|
|
300
|
+
set translationurl(t) {
|
|
301
|
+
this.$$set({ translationurl: t }), y();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
ne(ue, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
305
|
+
export {
|
|
306
|
+
ue as default
|
|
307
|
+
};
|
package/components/{CasinoCategoriesSlider-i9BCUm8R.cjs → CasinoCategoriesSlider-CWcGEpfR.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-DqS7aKva.cjs");function J(i,e){t.addMessages(i,e)}const K={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-Bo4dCvJT.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ae(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ie(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ne(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;function s(n,o){return n[13]||le||re?ne:n[15]?ie:ae}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",le=!1,re=!1;function ce(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:N=""}=e,{clientstyling:w=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,I,g=!0,f,y=[],d=!1,V=window.navigator.userAgent,m,B,Y=!1,S=!1;const W=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{J(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(a=>{J(a,K[a])});const X=()=>{Y==!1&&(N=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:q,href:"",games:[]}),t.tick(),Y=!0,s(26,S=!0),k()},Z=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),x=()=>{if(q=l("myGamesName"),I=l("lobbyName"),!Z()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(V)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),ee=c.items.filter(H=>{let E=!1;if(H.games.total>0&&(E=!0,M))for(let te of C)H.flags==te&&(E=!1);return E});y=[],y=y.concat(ee),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},p=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,N=a.favorites),"clientstyling"in a&&s(4,w=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&x(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||N)&&!g&&X(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&p(),i.$$.dirty[0]&33554432&&v&&W(),i.$$.dirty[0]&16400&&w&&m&&t.setClientStyling(m,w),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,B=0),[u,r,n,o,w,L,F,D,O,T,R,U,G,g,m,d,B,k,P,h,b,_,N,A,M,v,S,$]}class Q extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[23]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=Q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BaQd3tuL.cjs");function J(i,e){t.addMessages(i,e)}const K={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-B3dV89iI.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ae(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ie(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ne(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;function s(n,o){return n[13]||le||re?ne:n[15]?ie:ae}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",le=!1,re=!1;function ce(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:N=""}=e,{clientstyling:w=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,I,g=!0,f,y=[],d=!1,V=window.navigator.userAgent,m,B,Y=!1,S=!1;const W=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{J(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(a=>{J(a,K[a])});const X=()=>{Y==!1&&(N=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:q,href:"",games:[]}),t.tick(),Y=!0,s(26,S=!0),k()},Z=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),x=()=>{if(q=l("myGamesName"),I=l("lobbyName"),!Z()){let a=new URL(`${r}/v2/casino/groups/${n}`);a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(V)),a.searchParams.append("fields","id,name,games(href)"),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),ee=c.items.filter(H=>{let E=!1;if(H.games.total>0&&(E=!0,M))for(let te of C)H.flags==te&&(E=!1);return E});y=[],y=y.concat(ee),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},p=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,N=a.favorites),"clientstyling"in a&&s(4,w=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&x(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||N)&&!g&&X(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&p(),i.$$.dirty[0]&33554432&&v&&W(),i.$$.dirty[0]&16400&&w&&m&&t.setClientStyling(m,w),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,B=0),[u,r,n,o,w,L,F,D,O,T,R,U,G,g,m,d,B,k,P,h,b,_,N,A,M,v,S,$]}class Q extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[23]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=Q;
|
package/components/{CasinoCategoriesSlider-DZX7fAxD.js → CasinoCategoriesSlider-DgQayYzE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as re, S as le, i as ce, s as me, f as l, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye,
|
|
1
|
+
import { a as re, S as le, i as ce, s as me, f as l, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye, O as fe, C as de, r as T, E as n, p as be, P as he, J as Ne, K as we, L as Le, M as Me, Q as _e, N as ve } from "./CasinoCalendar-WuTw9Z8d.js";
|
|
2
2
|
function Z(i, e) {
|
|
3
3
|
re(i, e);
|
|
4
4
|
}
|
|
@@ -88,7 +88,7 @@ if (typeof window != "undefined") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-Cr-fAktO.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -172,7 +172,7 @@ function Ge(i) {
|
|
|
172
172
|
), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
|
173
173
|
},
|
|
174
174
|
m(a, o) {
|
|
175
|
-
j(a, e, o),
|
|
175
|
+
j(a, e, o), be(e, t), r || (c = he(
|
|
176
176
|
/*sendSliderData*/
|
|
177
177
|
i[17].call(null, t)
|
|
178
178
|
), r = !0);
|
|
@@ -332,7 +332,7 @@ let O = "CasinoSliderData", je = !1, Pe = !1;
|
|
|
332
332
|
function Fe(i, e, t) {
|
|
333
333
|
let r;
|
|
334
334
|
ue(i, ve, (s) => t(33, r = s));
|
|
335
|
-
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid:
|
|
335
|
+
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: R = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: U = "" } = e, { sessioncheck: I = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, d, b = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
|
|
336
336
|
const $ = () => {
|
|
337
337
|
fetch(G).then((m) => m.json()).then((m) => {
|
|
338
338
|
Object.keys(m).forEach((k) => {
|
|
@@ -346,17 +346,17 @@ function Fe(i, e, t) {
|
|
|
346
346
|
Z(s, x[s]);
|
|
347
347
|
});
|
|
348
348
|
const ee = () => {
|
|
349
|
-
V == !1 && (M == "true" || w == "true" || L == "true") &&
|
|
349
|
+
V == !1 && (M == "true" || w == "true" || L == "true") && b.splice(1, 0, {
|
|
350
350
|
// @ts-ignore
|
|
351
351
|
id: "MYGAMES",
|
|
352
352
|
name: J,
|
|
353
353
|
href: "",
|
|
354
354
|
games: []
|
|
355
355
|
}), _e(), V = !0, t(26, F = !0), A();
|
|
356
|
-
}, te = () => (c || (
|
|
356
|
+
}, te = () => (c || (d = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(d)), a || (d = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(d)), (!o || o.length < 2) && (d = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(d)), f), se = () => {
|
|
357
357
|
if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
|
|
358
|
-
let s = new URL(`${c}/
|
|
359
|
-
s.searchParams.append("
|
|
358
|
+
let s = new URL(`${c}/v2/casino/groups/${a}`);
|
|
359
|
+
s.searchParams.append("language", o), s.searchParams.append("platform", fe(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((m) => m.json()).then(
|
|
360
360
|
(m) => {
|
|
361
361
|
let k = C.split(","), ne = m.items.filter((X) => {
|
|
362
362
|
let D = !1;
|
|
@@ -365,7 +365,7 @@ function Fe(i, e, t) {
|
|
|
365
365
|
X.flags == oe && (D = !1);
|
|
366
366
|
return D;
|
|
367
367
|
});
|
|
368
|
-
|
|
368
|
+
b = [], b = b.concat(ne), b.unshift({
|
|
369
369
|
// @ts-ignore
|
|
370
370
|
id: "LOBBY",
|
|
371
371
|
name: K,
|
|
@@ -388,7 +388,7 @@ function Fe(i, e, t) {
|
|
|
388
388
|
{
|
|
389
389
|
type: "SliderData",
|
|
390
390
|
identity: O,
|
|
391
|
-
data:
|
|
391
|
+
data: b
|
|
392
392
|
},
|
|
393
393
|
window.location.href
|
|
394
394
|
);
|
|
@@ -399,12 +399,12 @@ function Fe(i, e, t) {
|
|
|
399
399
|
window.removeEventListener("message", W);
|
|
400
400
|
}));
|
|
401
401
|
function ae(s) {
|
|
402
|
-
|
|
402
|
+
de[s ? "unshift" : "push"](() => {
|
|
403
403
|
g = s, t(14, g);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return i.$$set = (s) => {
|
|
407
|
-
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18,
|
|
407
|
+
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, R = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, U = s.actionevent), "sessioncheck" in s && t(23, I = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
|
|
408
408
|
}, i.$$.update = () => {
|
|
409
409
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
410
410
|
14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
@@ -421,7 +421,7 @@ function Fe(i, e, t) {
|
|
|
421
421
|
o,
|
|
422
422
|
_,
|
|
423
423
|
v,
|
|
424
|
-
|
|
424
|
+
U,
|
|
425
425
|
B,
|
|
426
426
|
Y,
|
|
427
427
|
q,
|
|
@@ -433,12 +433,12 @@ function Fe(i, e, t) {
|
|
|
433
433
|
f,
|
|
434
434
|
Q,
|
|
435
435
|
A,
|
|
436
|
-
|
|
436
|
+
R,
|
|
437
437
|
N,
|
|
438
438
|
w,
|
|
439
439
|
L,
|
|
440
440
|
M,
|
|
441
|
-
|
|
441
|
+
I,
|
|
442
442
|
C,
|
|
443
443
|
G,
|
|
444
444
|
F,
|
package/components/{CasinoCategoriesSlider-C2jbyhRF.js → CasinoCategoriesSlider-DyNiM5Xn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as re, S as le, i as ce, f as l, s as me,
|
|
1
|
+
import { a as re, S as le, i as ce, f as l, s as me, M as ge, b as ue, n as S, d as E, h as j, j as h, k as ye, o as fe, O as de, C as be, r as T, E as n, p as he, P as Ne, N as we, J as Le, K as Me, L as _e, Q as ve } from "./CasinoCalendar-C4nbeq1g.js";
|
|
2
2
|
function Z(i, e) {
|
|
3
3
|
re(i, e);
|
|
4
4
|
}
|
|
@@ -88,7 +88,7 @@ if (typeof window < "u") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-D1JzP31y.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -332,7 +332,7 @@ let O = "CasinoSliderData", je = !1, Pe = !1;
|
|
|
332
332
|
function Fe(i, e, t) {
|
|
333
333
|
let r;
|
|
334
334
|
ye(i, we, (s) => t(33, r = s));
|
|
335
|
-
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid:
|
|
335
|
+
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: R = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: U = "" } = e, { sessioncheck: I = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, d, b = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
|
|
336
336
|
const $ = () => {
|
|
337
337
|
fetch(G).then((m) => m.json()).then((m) => {
|
|
338
338
|
Object.keys(m).forEach((k) => {
|
|
@@ -346,17 +346,17 @@ function Fe(i, e, t) {
|
|
|
346
346
|
Z(s, x[s]);
|
|
347
347
|
});
|
|
348
348
|
const ee = () => {
|
|
349
|
-
V == !1 && (M == "true" || w == "true" || L == "true") &&
|
|
349
|
+
V == !1 && (M == "true" || w == "true" || L == "true") && b.splice(1, 0, {
|
|
350
350
|
// @ts-ignore
|
|
351
351
|
id: "MYGAMES",
|
|
352
352
|
name: J,
|
|
353
353
|
href: "",
|
|
354
354
|
games: []
|
|
355
355
|
}), ve(), V = !0, t(26, F = !0), A();
|
|
356
|
-
}, te = () => (c || (
|
|
356
|
+
}, te = () => (c || (d = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(d)), a || (d = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(d)), (!o || o.length < 2) && (d = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(d)), f), se = () => {
|
|
357
357
|
if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
|
|
358
|
-
let s = new URL(`${c}/
|
|
359
|
-
s.searchParams.append("
|
|
358
|
+
let s = new URL(`${c}/v2/casino/groups/${a}`);
|
|
359
|
+
s.searchParams.append("language", o), s.searchParams.append("platform", de(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((m) => m.json()).then(
|
|
360
360
|
(m) => {
|
|
361
361
|
let k = C.split(","), ne = m.items.filter((X) => {
|
|
362
362
|
let D = !1;
|
|
@@ -365,7 +365,7 @@ function Fe(i, e, t) {
|
|
|
365
365
|
X.flags == oe && (D = !1);
|
|
366
366
|
return D;
|
|
367
367
|
});
|
|
368
|
-
|
|
368
|
+
b = [], b = b.concat(ne), b.unshift({
|
|
369
369
|
// @ts-ignore
|
|
370
370
|
id: "LOBBY",
|
|
371
371
|
name: K,
|
|
@@ -388,7 +388,7 @@ function Fe(i, e, t) {
|
|
|
388
388
|
{
|
|
389
389
|
type: "SliderData",
|
|
390
390
|
identity: O,
|
|
391
|
-
data:
|
|
391
|
+
data: b
|
|
392
392
|
},
|
|
393
393
|
window.location.href
|
|
394
394
|
);
|
|
@@ -399,12 +399,12 @@ function Fe(i, e, t) {
|
|
|
399
399
|
window.removeEventListener("message", W);
|
|
400
400
|
}));
|
|
401
401
|
function ae(s) {
|
|
402
|
-
|
|
402
|
+
be[s ? "unshift" : "push"](() => {
|
|
403
403
|
g = s, t(14, g);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return i.$$set = (s) => {
|
|
407
|
-
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18,
|
|
407
|
+
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, R = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, U = s.actionevent), "sessioncheck" in s && t(23, I = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
|
|
408
408
|
}, i.$$.update = () => {
|
|
409
409
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
410
410
|
14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
@@ -421,7 +421,7 @@ function Fe(i, e, t) {
|
|
|
421
421
|
o,
|
|
422
422
|
_,
|
|
423
423
|
v,
|
|
424
|
-
|
|
424
|
+
U,
|
|
425
425
|
B,
|
|
426
426
|
Y,
|
|
427
427
|
q,
|
|
@@ -433,12 +433,12 @@ function Fe(i, e, t) {
|
|
|
433
433
|
f,
|
|
434
434
|
Q,
|
|
435
435
|
A,
|
|
436
|
-
|
|
436
|
+
R,
|
|
437
437
|
N,
|
|
438
438
|
w,
|
|
439
439
|
L,
|
|
440
440
|
M,
|
|
441
|
-
|
|
441
|
+
I,
|
|
442
442
|
C,
|
|
443
443
|
G,
|
|
444
444
|
F,
|