@everymatrix/casino-page 1.60.2 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-DEC4kbu7.cjs → CasinoCalendar-3HhwEwWn.cjs} +1 -1
- package/components/{CasinoCalendar-DNaLXH6n.js → CasinoCalendar-GcgbEHRq.js} +20 -20
- package/components/{CasinoCalendar-Ckt1PYIP.js → CasinoCalendar-oLa-PBk3.js} +20 -20
- package/components/CasinoCalendarDailyDetails-BEdoO9V0.js +694 -0
- package/components/CasinoCalendarDailyDetails-C-hKLl6t.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-CXZ_e7er.js +694 -0
- package/components/CasinoCalendarDailyItem-B0UT8hgo.cjs +1 -0
- package/components/CasinoCalendarDailyItem-BYnarlby.js +307 -0
- package/components/CasinoCalendarDailyItem-C4zOqGfT.js +307 -0
- package/components/{CasinoCollectionsProviders-CMFOwKOw.js → CasinoCollectionsProviders-Bd9bpqwJ.js} +189 -188
- package/components/{CasinoCollectionsProviders-GaeLz6Pl.js → CasinoCollectionsProviders-BsCnHvy0.js} +178 -177
- package/components/CasinoCollectionsProviders-C9JSj4NQ.cjs +1 -0
- package/components/{CasinoFavoritesSection-DPSiSNGk.js → CasinoFavoritesSection-BuCiSBck.js} +18 -18
- package/components/{CasinoFavoritesSection-CkE51xeT.cjs → CasinoFavoritesSection-CF66gauh.cjs} +1 -1
- package/components/{CasinoFavoritesSection-CfVT3epR.js → CasinoFavoritesSection-CpfPEdvZ.js} +18 -18
- package/components/CasinoFilter-BDAzYLsu.cjs +1 -0
- package/components/{CasinoFilter-Cf6wLS_J.js → CasinoFilter-DGSFnnFj.js} +96 -94
- package/components/{CasinoFilter-DT_mfIxJ.js → CasinoFilter-DlzXE2oW.js} +50 -50
- package/components/CasinoGameThumbnail-8ZDDnalK.js +3592 -0
- package/components/CasinoGameThumbnail-CmqedVBx.js +3608 -0
- package/components/CasinoGameThumbnail-YSK9ny6q.cjs +39 -0
- package/components/{CasinoGamesCategorySection-DkGmDHac.js → CasinoGamesCategorySection-Cl02LfPB.js} +5 -5
- package/components/{CasinoGamesCategorySection-DGSWlFTH.js → CasinoGamesCategorySection-f_qKSuc4.js} +5 -5
- package/components/{CasinoGamesCategorySection-hJflAIRq.cjs → CasinoGamesCategorySection-op_Pcf3z.cjs} +1 -1
- package/components/CasinoJackpotBanner-BxJ0cXYz.js +698 -0
- package/components/CasinoJackpotBanner-CUg-WrqE.cjs +1 -0
- package/components/CasinoJackpotBanner-DltYb9oB.js +694 -0
- package/components/{CasinoLastPlayedSection-BbNJh01t.js → CasinoLastPlayedSection-B9ZLZ2fh.js} +15 -15
- package/components/{CasinoLastPlayedSection-C_j3LPmT.js → CasinoLastPlayedSection-BCY1n_9B.js} +15 -15
- package/components/{CasinoLastPlayedSection-AVoAf4mv.cjs → CasinoLastPlayedSection-DvpriSWH.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-BlPs8slF.js → CasinoMostPlayedSection-Cf6tsgDE.js} +18 -18
- package/components/{CasinoMostPlayedSection-rBy5-Jnu.js → CasinoMostPlayedSection-Cuc6JAr3.js} +18 -18
- package/components/{CasinoMostPlayedSection-DDmHLMWJ.cjs → CasinoMostPlayedSection-DbcxZpH3.cjs} +1 -1
- package/components/{CasinoMyGames-D9v6VO98.cjs → CasinoMyGames-CaL_anj-.cjs} +1 -1
- package/components/{CasinoMyGames-BTb99mJz.js → CasinoMyGames-D8iC3rfB.js} +8 -8
- package/components/{CasinoMyGames-Da7YFLZB.js → CasinoMyGames-DJ7UmtLu.js} +7 -7
- package/components/{CasinoPage-DQL-iD56.cjs → CasinoPage-Bhbhj9cp.cjs} +1 -1
- package/components/{CasinoPage-S9SAAOBP.js → CasinoPage-D-SgeItH.js} +11 -11
- package/components/{CasinoPage-8NYVpmeY.js → CasinoPage-WV1OQ9DA.js} +11 -11
- package/components/{CasinoRandomGame-FAQztl67.js → CasinoRandomGame-C06GQcl6.js} +180 -179
- package/components/{CasinoRandomGame-CTVNBAys.js → CasinoRandomGame-C5dTPlxd.js} +138 -137
- package/components/CasinoRandomGame-CqD9l308.cjs +2 -0
- package/components/{CasinoSearch-C5VwVBaf.js → CasinoSearch-CP7pv_Rx.js} +47 -47
- package/components/{CasinoSearch-CZ4AR6hH.cjs → CasinoSearch-DOe-FAq6.cjs} +1 -1
- package/components/{CasinoSearch-uRmrNr_r.js → CasinoSearch-VAKEMXqH.js} +47 -47
- package/components/{CasinoSort-jHGGKT4T.js → CasinoSort-CFs4TBdS.js} +4 -4
- package/components/{CasinoSort-D-E5cV7V.js → CasinoSort-CScmWM1F.js} +4 -4
- package/components/{CasinoSort-CD6jHMIw.cjs → CasinoSort-DdDbgCmx.cjs} +1 -1
- package/components/CasinoWinners-C5CqUsG7.cjs +1 -0
- package/components/{CasinoWinners-BpeW82lE.js → CasinoWinners-ClL_FA-b.js} +110 -109
- package/components/{CasinoWinners-BnSu5nnB.js → CasinoWinners-yd5GvHIp.js} +109 -108
- package/components/{GeneralAnimationLoading-Bl-AgLq7.js → GeneralAnimationLoading-CrrQFcSB.js} +6 -6
- package/components/{GeneralAnimationLoading-vwMxZgQG.cjs → GeneralAnimationLoading-DKjMWmUN.cjs} +1 -1
- package/components/{GeneralAnimationLoading-oiUh9Rwe.js → GeneralAnimationLoading-Dhq5pG4U.js} +6 -6
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.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-BdhBt4HO.js +0 -693
- package/components/CasinoCalendarDailyDetails-DOhd-4ZT.js +0 -693
- package/components/CasinoCalendarDailyDetails-EinwK-x0.cjs +0 -1
- package/components/CasinoCalendarDailyItem-254MG7d4.js +0 -306
- package/components/CasinoCalendarDailyItem-CEbe-dts.cjs +0 -1
- package/components/CasinoCalendarDailyItem-I0d1EuRW.js +0 -306
- package/components/CasinoCollectionsProviders-CYXVu8jO.cjs +0 -1
- package/components/CasinoFilter-DkRFodLT.cjs +0 -1
- package/components/CasinoGameThumbnail-CauadTSp.js +0 -4390
- package/components/CasinoGameThumbnail-DrSyOUlK.cjs +0 -47
- package/components/CasinoGameThumbnail-DsxrYUeR.js +0 -4406
- package/components/CasinoJackpotBanner-Dt56Ssbv.js +0 -697
- package/components/CasinoJackpotBanner-QjY0RFqn.js +0 -693
- package/components/CasinoJackpotBanner-W78-HVH9.cjs +0 -1
- package/components/CasinoRandomGame-CH4DPGtX.cjs +0 -2
- package/components/CasinoWinners-DM9Vf73b.cjs +0 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { a as N, $ as H, S as U, i as G, s as J, f as y, b as K, n as j, d as V, D as R, r as o, m as A, G as F, h as Q, p as r, A as X, j as c, B, q as O, k as Y, o as Z, l as $, C as W, I as ee, J as te, K as ae, L as ie, M as ne } from "./CasinoCalendar-Ckt1PYIP.js";
|
|
2
|
-
function P(a, t) {
|
|
3
|
-
N(a, t);
|
|
4
|
-
}
|
|
5
|
-
function re(a) {
|
|
6
|
-
H.set(a);
|
|
7
|
-
}
|
|
8
|
-
const q = {
|
|
9
|
-
en: {
|
|
10
|
-
error: "500 Error - Internal Server Error",
|
|
11
|
-
loading: "Loading ...",
|
|
12
|
-
monday: "Monday",
|
|
13
|
-
tuesday: "Tuesday",
|
|
14
|
-
wednesday: "Wednesday",
|
|
15
|
-
thursday: "Thursday",
|
|
16
|
-
friday: "Friday",
|
|
17
|
-
saturday: "Saturday",
|
|
18
|
-
sunday: "Sunday"
|
|
19
|
-
},
|
|
20
|
-
hr: {
|
|
21
|
-
error: "500 Error - Internal Server Error",
|
|
22
|
-
loading: "Loading ...",
|
|
23
|
-
monday: "ponedjeljak",
|
|
24
|
-
tuesday: "utorak",
|
|
25
|
-
wednesday: "srijeda",
|
|
26
|
-
thursday: "četvrtak",
|
|
27
|
-
friday: "petak",
|
|
28
|
-
saturday: "subota",
|
|
29
|
-
sunday: "nedjelja"
|
|
30
|
-
},
|
|
31
|
-
"pt-br": {
|
|
32
|
-
error: "500 Error - Internal Server Error",
|
|
33
|
-
loading: "Loading ...",
|
|
34
|
-
monday: "Monday",
|
|
35
|
-
tuesday: "Tuesday",
|
|
36
|
-
wednesday: "Wednesday",
|
|
37
|
-
thursday: "Thursday",
|
|
38
|
-
friday: "Friday",
|
|
39
|
-
saturday: "Saturday",
|
|
40
|
-
sunday: "Sunday"
|
|
41
|
-
},
|
|
42
|
-
"es-mx": {
|
|
43
|
-
error: "500 Error - Internal Server Error",
|
|
44
|
-
loading: "Loading ...",
|
|
45
|
-
monday: "Monday",
|
|
46
|
-
tuesday: "Tuesday",
|
|
47
|
-
wednesday: "Wednesday",
|
|
48
|
-
thursday: "Thursday",
|
|
49
|
-
friday: "Friday",
|
|
50
|
-
saturday: "Saturday",
|
|
51
|
-
sunday: "Sunday"
|
|
52
|
-
},
|
|
53
|
-
tr: {
|
|
54
|
-
error: "500 Error - Internal Server Error",
|
|
55
|
-
loading: "Loading ...",
|
|
56
|
-
monday: "Monday",
|
|
57
|
-
tuesday: "Tuesday",
|
|
58
|
-
wednesday: "Wednesday",
|
|
59
|
-
thursday: "Thursday",
|
|
60
|
-
friday: "Friday",
|
|
61
|
-
saturday: "Saturday",
|
|
62
|
-
sunday: "Sunday"
|
|
63
|
-
},
|
|
64
|
-
"en-us": {
|
|
65
|
-
error: "500 Error - Internal Server Error",
|
|
66
|
-
loading: "Loading ...",
|
|
67
|
-
monday: "Monday",
|
|
68
|
-
tuesday: "Tuesday",
|
|
69
|
-
wednesday: "Wednesday",
|
|
70
|
-
thursday: "Thursday",
|
|
71
|
-
friday: "Friday",
|
|
72
|
-
saturday: "Saturday",
|
|
73
|
-
sunday: "Sunday"
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
function oe(a) {
|
|
77
|
-
K(a, "svelte-15mlcfp", '*,*::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 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}');
|
|
78
|
-
}
|
|
79
|
-
function de(a) {
|
|
80
|
-
let t, n, w, s, f, S, i, g, u, x, C, b, h = (
|
|
81
|
-
/*$_*/
|
|
82
|
-
a[8](`${/*dailyday*/
|
|
83
|
-
a[2]}`) + ""
|
|
84
|
-
), p, m, d, T, I, v, z, _, k, E, L;
|
|
85
|
-
return {
|
|
86
|
-
c() {
|
|
87
|
-
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>', S = B(), i = c("div"), g = c("div"), u = c("img"), C = B(), b = c("div"), p = O(h), m = B(), d = c("div"), T = B(), I = c("div"), v = c("button"), z = O(
|
|
88
|
-
/*dailybuttontitle*/
|
|
89
|
-
a[3]
|
|
90
|
-
), o(f, "class", "CalendarBar"), R(u.src, x = /*dailyicon*/
|
|
91
|
-
a[1]) || o(u, "src", x), o(
|
|
92
|
-
u,
|
|
93
|
-
"alt",
|
|
94
|
-
/*dailyicon*/
|
|
95
|
-
a[1]
|
|
96
|
-
), o(g, "class", "CasinoCalendarDailyIcon"), o(b, "class", "CasinoCalendarDailyTitle"), o(d, "class", "CasinoCalendarDailyItemDescription"), o(v, "class", "MoreInfoButton"), o(I, "class", "CasinoCalendarDailyItemButton"), o(i, "class", _ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
97
|
-
a[4] == "OpenCalendarModal" ? "Tear" : "")), F(i, "background-image", "url('" + /*dailybackground*/
|
|
98
|
-
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"), o(s, "class", "CalendarCard"), o(w, "class", "CasinoCalendarItems"), o(n, "class", k = "Container " + /*mobileView*/
|
|
99
|
-
(a[7] ? "Mobile" : ""));
|
|
100
|
-
},
|
|
101
|
-
m(l, e) {
|
|
102
|
-
Q(l, t, e), r(t, n), r(n, w), r(w, s), r(s, f), r(s, S), r(s, i), r(i, g), r(g, u), r(i, C), r(i, b), r(b, p), r(i, m), r(i, d), a[16](d), r(i, T), r(i, I), r(I, v), r(v, z), a[18](t), E || (L = X(
|
|
103
|
-
v,
|
|
104
|
-
"click",
|
|
105
|
-
/*click_handler*/
|
|
106
|
-
a[17]
|
|
107
|
-
), E = !0);
|
|
108
|
-
},
|
|
109
|
-
p(l, [e]) {
|
|
110
|
-
e & /*dailyicon*/
|
|
111
|
-
2 && !R(u.src, x = /*dailyicon*/
|
|
112
|
-
l[1]) && o(u, "src", x), e & /*dailyicon*/
|
|
113
|
-
2 && o(
|
|
114
|
-
u,
|
|
115
|
-
"alt",
|
|
116
|
-
/*dailyicon*/
|
|
117
|
-
l[1]
|
|
118
|
-
), e & /*$_, dailyday*/
|
|
119
|
-
260 && h !== (h = /*$_*/
|
|
120
|
-
l[8](`${/*dailyday*/
|
|
121
|
-
l[2]}`) + "") && A(p, h), e & /*dailybuttontitle*/
|
|
122
|
-
8 && A(
|
|
123
|
-
z,
|
|
124
|
-
/*dailybuttontitle*/
|
|
125
|
-
l[3]
|
|
126
|
-
), e & /*index*/
|
|
127
|
-
16 && _ !== (_ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
128
|
-
l[4] == "OpenCalendarModal" ? "Tear" : "")) && o(i, "class", _), e & /*dailybackground*/
|
|
129
|
-
1 && F(i, "background-image", "url('" + /*dailybackground*/
|
|
130
|
-
l[0] + "')"), e & /*mobileView*/
|
|
131
|
-
128 && k !== (k = "Container " + /*mobileView*/
|
|
132
|
-
(l[7] ? "Mobile" : "")) && o(n, "class", k);
|
|
133
|
-
},
|
|
134
|
-
i: j,
|
|
135
|
-
o: j,
|
|
136
|
-
d(l) {
|
|
137
|
-
l && V(t), a[16](null), a[18](null), E = !1, L();
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function le(a, t, n) {
|
|
142
|
-
let w;
|
|
143
|
-
Y(a, ne, (e) => n(8, w = e));
|
|
144
|
-
let { lang: s = "" } = t, { dailybackground: f = "" } = t, { dailyicon: S = "" } = t, { dailyday: i = "" } = t, { dailydescription: g = "<p></p>" } = t, { dailybuttontitle: u = "" } = t, { index: x = "0" } = t, { mbsource: C } = t, { clientstyling: b = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: p = "" } = t, m, d, T = !1, I = window.navigator.userAgent;
|
|
145
|
-
const v = () => {
|
|
146
|
-
re(s);
|
|
147
|
-
};
|
|
148
|
-
Object.keys(q).forEach((e) => {
|
|
149
|
-
P(e, q[e]);
|
|
150
|
-
});
|
|
151
|
-
const z = () => {
|
|
152
|
-
let e = p;
|
|
153
|
-
if (e)
|
|
154
|
-
return fetch(e).then((M) => M.json()).then((M) => {
|
|
155
|
-
Object.keys(M).forEach((D) => {
|
|
156
|
-
P(D, M[D]);
|
|
157
|
-
});
|
|
158
|
-
}).catch((M) => {
|
|
159
|
-
console.log(M);
|
|
160
|
-
});
|
|
161
|
-
}, _ = () => {
|
|
162
|
-
let e = document.createElement("div");
|
|
163
|
-
e.innerHTML = g, m && m.append(e);
|
|
164
|
-
}, k = () => {
|
|
165
|
-
window.postMessage({ type: "OpenCalendar", index: x }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
|
|
166
|
-
};
|
|
167
|
-
Z(() => ($(I) && n(7, T = !0), () => {
|
|
168
|
-
}));
|
|
169
|
-
function E(e) {
|
|
170
|
-
W[e ? "unshift" : "push"](() => {
|
|
171
|
-
m = e, n(6, m);
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
const L = () => k();
|
|
175
|
-
function l(e) {
|
|
176
|
-
W[e ? "unshift" : "push"](() => {
|
|
177
|
-
d = e, n(5, d);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
return a.$$set = (e) => {
|
|
181
|
-
"lang" in e && n(10, s = e.lang), "dailybackground" in e && n(0, f = e.dailybackground), "dailyicon" in e && n(1, S = e.dailyicon), "dailyday" in e && n(2, i = e.dailyday), "dailydescription" in e && n(11, g = e.dailydescription), "dailybuttontitle" in e && n(3, u = 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);
|
|
182
|
-
}, a.$$.update = () => {
|
|
183
|
-
a.$$.dirty & /*lang*/
|
|
184
|
-
1024 && s && v(), a.$$.dirty & /*lang, translationurl*/
|
|
185
|
-
33792 && s && p && z(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
|
|
186
|
-
2063 && S && i && g && u && f && _(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
187
|
-
8224 && b && d && ee(d, b), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
188
|
-
16416 && h && d && te(d, h), a.$$.dirty & /*mbsource, customStylingContainer*/
|
|
189
|
-
4128 && C && d && ae(d, `${C}.Style`);
|
|
190
|
-
}, [
|
|
191
|
-
f,
|
|
192
|
-
S,
|
|
193
|
-
i,
|
|
194
|
-
u,
|
|
195
|
-
x,
|
|
196
|
-
d,
|
|
197
|
-
m,
|
|
198
|
-
T,
|
|
199
|
-
w,
|
|
200
|
-
k,
|
|
201
|
-
s,
|
|
202
|
-
g,
|
|
203
|
-
C,
|
|
204
|
-
b,
|
|
205
|
-
h,
|
|
206
|
-
p,
|
|
207
|
-
E,
|
|
208
|
-
L,
|
|
209
|
-
l
|
|
210
|
-
];
|
|
211
|
-
}
|
|
212
|
-
class se extends U {
|
|
213
|
-
constructor(t) {
|
|
214
|
-
super(), G(
|
|
215
|
-
this,
|
|
216
|
-
t,
|
|
217
|
-
le,
|
|
218
|
-
de,
|
|
219
|
-
J,
|
|
220
|
-
{
|
|
221
|
-
lang: 10,
|
|
222
|
-
dailybackground: 0,
|
|
223
|
-
dailyicon: 1,
|
|
224
|
-
dailyday: 2,
|
|
225
|
-
dailydescription: 11,
|
|
226
|
-
dailybuttontitle: 3,
|
|
227
|
-
index: 4,
|
|
228
|
-
mbsource: 12,
|
|
229
|
-
clientstyling: 13,
|
|
230
|
-
clientstylingurl: 14,
|
|
231
|
-
translationurl: 15
|
|
232
|
-
},
|
|
233
|
-
oe
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
get lang() {
|
|
237
|
-
return this.$$.ctx[10];
|
|
238
|
-
}
|
|
239
|
-
set lang(t) {
|
|
240
|
-
this.$$set({ lang: t }), y();
|
|
241
|
-
}
|
|
242
|
-
get dailybackground() {
|
|
243
|
-
return this.$$.ctx[0];
|
|
244
|
-
}
|
|
245
|
-
set dailybackground(t) {
|
|
246
|
-
this.$$set({ dailybackground: t }), y();
|
|
247
|
-
}
|
|
248
|
-
get dailyicon() {
|
|
249
|
-
return this.$$.ctx[1];
|
|
250
|
-
}
|
|
251
|
-
set dailyicon(t) {
|
|
252
|
-
this.$$set({ dailyicon: t }), y();
|
|
253
|
-
}
|
|
254
|
-
get dailyday() {
|
|
255
|
-
return this.$$.ctx[2];
|
|
256
|
-
}
|
|
257
|
-
set dailyday(t) {
|
|
258
|
-
this.$$set({ dailyday: t }), y();
|
|
259
|
-
}
|
|
260
|
-
get dailydescription() {
|
|
261
|
-
return this.$$.ctx[11];
|
|
262
|
-
}
|
|
263
|
-
set dailydescription(t) {
|
|
264
|
-
this.$$set({ dailydescription: t }), y();
|
|
265
|
-
}
|
|
266
|
-
get dailybuttontitle() {
|
|
267
|
-
return this.$$.ctx[3];
|
|
268
|
-
}
|
|
269
|
-
set dailybuttontitle(t) {
|
|
270
|
-
this.$$set({ dailybuttontitle: t }), y();
|
|
271
|
-
}
|
|
272
|
-
get index() {
|
|
273
|
-
return this.$$.ctx[4];
|
|
274
|
-
}
|
|
275
|
-
set index(t) {
|
|
276
|
-
this.$$set({ index: t }), y();
|
|
277
|
-
}
|
|
278
|
-
get mbsource() {
|
|
279
|
-
return this.$$.ctx[12];
|
|
280
|
-
}
|
|
281
|
-
set mbsource(t) {
|
|
282
|
-
this.$$set({ mbsource: t }), y();
|
|
283
|
-
}
|
|
284
|
-
get clientstyling() {
|
|
285
|
-
return this.$$.ctx[13];
|
|
286
|
-
}
|
|
287
|
-
set clientstyling(t) {
|
|
288
|
-
this.$$set({ clientstyling: t }), y();
|
|
289
|
-
}
|
|
290
|
-
get clientstylingurl() {
|
|
291
|
-
return this.$$.ctx[14];
|
|
292
|
-
}
|
|
293
|
-
set clientstylingurl(t) {
|
|
294
|
-
this.$$set({ clientstylingurl: t }), y();
|
|
295
|
-
}
|
|
296
|
-
get translationurl() {
|
|
297
|
-
return this.$$.ctx[15];
|
|
298
|
-
}
|
|
299
|
-
set translationurl(t) {
|
|
300
|
-
this.$$set({ translationurl: t }), y();
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
ie(se, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
304
|
-
export {
|
|
305
|
-
se as default
|
|
306
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DEC4kbu7.cjs");function E(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-3oqkg3",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),b=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,b),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(b,v){e.insert(b,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=D(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:b=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,_=0,k=0,C,L,x=0,M=50,j=!1,G,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{E(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{E(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(x+=50,M+=50,l(22,j=!0));let P=y.items.map(S=>{var q,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(q=S.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,_=u.length),Y()})},Y=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},O=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,Q()},Q=()=>{l(8,k=Math.floor(p.clientWidth/C))},H=()=>{O(f)},$=()=>{f===0?f=_-k:f-k<-1?f=0:f--,H()},ee=()=>{f===_-k?f=0:_-k<f+1?f=_-k:f++,H()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>B(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,b=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&O(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,G,h,_,k,T,r,$,ee,z,B,o,a,g,w,d,m,c,j,ie,le,ne,oe]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DEC4kbu7.cjs");function X({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}const Z={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function Y(r){e.append_styles(r,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function G(r,t,l){const a=r.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function $(r){let t,l,a,n,s,g,y,v,F=r[11]("filterby")+"",p,_,b,P,S=r[11]("providers")+"",w,k,f,d,m,I,D,O,C,L,T,W,A,N=r[11]("clear")+"",z,B,M,E,J,q;function H(o,u){return o[7]?le:te}let V=H(r),x=V(r),i=e.ensure_array_like(r[5]),c=[];for(let o=0;o<i.length;o+=1)c[o]=K(G(r,i,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),y=e.element("div"),v=e.element("span"),p=e.text(F),_=e.space(),b=e.element("div"),P=e.element("span"),w=e.text(S),k=e.space(),x.c(),f=e.space(),d=e.element("span"),m=e.svg_element("svg"),I=e.svg_element("path"),C=e.space(),L=e.element("div"),T=e.element("ul");for(let o=0;o<c.length;o+=1)c[o].c();W=e.space(),A=e.element("button"),z=e.text(N),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(v,"class","FilterName"),e.attr(b,"class","FilterValueContainer"),e.attr(y,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(I,"id","arrow"),e.attr(I,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(I,"transform","translate(-274.511 -441.088)"),e.attr(I,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(d,"class",D="TriangleInactive "+(r[4]?"TriangleActive":"")),e.attr(l,"class",O="FilterSelector "+(r[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(A,"class","ClearFilters"),A.disabled=B=r[7]&&r[6].length!=r[5].length,e.attr(L,"class",M="FilterDropdownContainer "+(r[4]?"FilterOpen":"")),e.attr(t,"class",E="FilterContainer "+(r[0]=="true"&&r[1]=="true"?"FilerContainerSplit":""))},m(o,u){e.insert(o,t,u),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,y),e.append(y,v),e.append(v,p),e.append(y,_),e.append(y,b),e.append(b,P),e.append(P,w),e.append(b,k),x.m(b,null),e.append(l,f),e.append(l,d),e.append(d,m),e.append(m,I),e.append(t,C),e.append(t,L),e.append(L,T);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(T,null);e.append(L,W),e.append(L,A),e.append(A,z),J||(q=[e.listen(l,"click",r[23]),e.listen(A,"click",r[26])],J=!0)},p(o,u){if(u[0]&2048&&F!==(F=o[11]("filterby")+"")&&e.set_data(p,F),u[0]&2048&&S!==(S=o[11]("providers")+"")&&e.set_data(w,S),V===(V=H(o))&&x?x.p(o,u):(x.d(1),x=V(o),x&&(x.c(),x.m(b,null))),u[0]&16&&D!==(D="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(d,"class",D),u[0]&16&&O!==(O="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",O),u[0]&8228){i=e.ensure_array_like(o[5]);let h;for(h=0;h<i.length;h+=1){const j=G(o,i,h);c[h]?c[h].p(j,u):(c[h]=K(j),c[h].c(),c[h].m(T,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=i.length}u[0]&2048&&N!==(N=o[11]("clear")+"")&&e.set_data(z,N),u[0]&224&&B!==(B=o[7]&&o[6].length!=o[5].length)&&(A.disabled=B),u[0]&16&&M!==(M="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(L,"class",M),u[0]&3&&E!==(E="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",E)},d(o){o&&e.detach(t),x.d(),e.destroy_each(c,o),J=!1,e.run_all(q)}}}function ee(r){let t,l=r[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function te(r){let t,l;return{c(){t=e.element("span"),l=e.text(r[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function le(r){let t,l=r[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function re(r){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=r[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ie(r){let t,l,a=r[36].name+"",n,s,g,y,v=r[36].games.total+"",F,p;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),y=e.text("("),F=e.text(v),p=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(_,b){e.insert(_,t,b),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,y),e.append(g,F),e.append(g,p)},p(_,b){b[0]&32&&a!==(a=_[36].name+"")&&e.set_data(n,a),b[0]&32&&v!==(v=_[36].games.total+"")&&e.set_data(F,v)},d(_){_&&e.detach(t)}}}function K(r){let t,l,a,n,s,g,y,v,F,p,_,b;function P(){r[24].call(a,r[37],r[38])}function S(){return r[25](r[36])}function w(d,m){if(d[2]==="false")return ie;if(d[2]==="true")return re}let k=w(r),f=k&&k(r);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),y=e.space(),f&&f.c(),v=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=r[36].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":"")),t.value=p=r[36].name},m(d,m){e.insert(d,t,m),e.append(t,l),e.append(l,a),a.checked=r[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,y),f&&f.m(l,null),e.append(t,v),_||(b=[e.listen(a,"change",P),e.listen(a,"click",S)],_=!0)},p(d,m){r=d,m[0]&32&&n!==(n=r[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=r[36].isFilterSelected),k===(k=w(r))&&f?f.p(r,m):(f&&f.d(1),f=k&&k(r),f&&(f.c(),f.m(l,null))),m[0]&4&&F!==(F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",F),m[0]&32&&p!==(p=r[36].name)&&(t.value=p)},d(d){d&&e.detach(t),f&&f.d(),_=!1,e.run_all(b)}}}function ae(r){let t;function l(s,g){if(s[10])return ee;if(!s[9])return $}let a=l(r),n=a&&a(r);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),r[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),r[27](null)}}}function ne(r,t,l){let a;e.component_subscribe(r,e.$format,i=>l(11,a=i));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:y=""}=t,{clientstyling:v=""}=t,{clientstylingurl:F=""}=t,{categoryid:p=""}=t,{addfilterselector:_="false"}=t,{addsortingselector:b="false"}=t,{filterbylogo:P="false"}=t,{mbsource:S}=t,w=!1,k=window.navigator.userAgent,f=[],d=[],m={},I=!1,D=0,O=!0,C,L=!1;X({withLocale:"en",translations:{}});const T=()=>{fetch(y).then(c=>c.json()).then(c=>{Object.keys(c).forEach(o=>{U(o,c[o])})}).catch(c=>{console.log(c)})};Object.keys(Z).forEach(i=>{U(i,Z[i])}),m[p]&&(m={[p]:[]});const W=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},A=i=>(l(9,O=!0),new Promise((c,o)=>{fetch(i).then(u=>u.json()).then(u=>{u=u.items,c(u.items),l(6,d=[]);let h=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));u.forEach(j=>{var R;h||(h={currentCategoryId:[]}),((R=h[p])==null?void 0:R.indexOf(j.id))>=0?(j.isFilterSelected=!0,d.push(j)):j.isFilterSelected=!1}),l(5,f=u),z()}).catch(u=>{console.error(u),l(10,L=!0),o(u)}).finally(()=>{l(9,O=!1)})})),N=i=>{let c=localStorage.getItem("vendorFiltersByCategory");i.isFilterSelected=!i.isFilterSelected,!d.length||d.filter(o=>o.name===i.name).length==0?d.push(i):l(6,d=d.filter(o=>o.name!==i.name)),c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[p]:d.map(o=>o.id)})):(c=JSON.parse(c),c[p]=d.map(o=>o.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),z()},z=()=>{l(7,I=d.length===f.length||d.length==0),l(8,D=d.length)},B=()=>{const i=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),i.searchParams.append("fields","id,name,logo,subVendors,games"),i.searchParams.append("language",g),i.searchParams.append("datasource",s),i.searchParams.append("platform",e.getDevice(k)),(p.match(/\$/g)||[]).length>1?(i.searchParams.append("filter",`games(subGroups=${p})`),i.searchParams.append("subVendors",`games(subGroups=${p})`)):i.searchParams.append("filter",`games(groups=${p})`),A(i)},M=()=>{l(6,d=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[p]:d.map(i=>i.id)})),f.forEach(i=>i.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,I=!0),l(4,w=!1)},E=i=>{i.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const J=()=>W();function q(i,c){i[c].isFilterSelected=this.checked,l(5,f)}const H=i=>N(i),V=()=>M();function x(i){e.binding_callbacks[i?"unshift":"push"](()=>{C=i,l(3,C)})}return r.$$set=i=>{"endpoint"in i&&l(15,n=i.endpoint),"datasource"in i&&l(16,s=i.datasource),"lang"in i&&l(17,g=i.lang),"translationurl"in i&&l(18,y=i.translationurl),"clientstyling"in i&&l(19,v=i.clientstyling),"clientstylingurl"in i&&l(20,F=i.clientstylingurl),"categoryid"in i&&l(21,p=i.categoryid),"addfilterselector"in i&&l(0,_=i.addfilterselector),"addsortingselector"in i&&l(1,b=i.addsortingselector),"filterbylogo"in i&&l(2,P=i.filterbylogo),"mbsource"in i&&l(22,S=i.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&2195460&&n&&s&&p&&P&&B(),r.$$.dirty[0]&524296&&v&&C&&e.setClientStyling(C,v),r.$$.dirty[0]&1048584&&F&&C&&e.setClientStylingURL(C,F),r.$$.dirty[0]&4194312&&C&&e.setStreamStyling(C,`${S}.Style`),r.$$.dirty[0]&262144&&y&&T()},[_,b,P,C,w,f,d,I,D,O,L,a,W,N,M,n,s,g,y,v,F,p,S,J,q,H,V,x]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,ae,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22},Y,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=Q;
|