@everymatrix/casino-lobby 1.44.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCalendar-3HRZGpnG.js +5134 -0
- package/components/CasinoCalendar-9cVNHt1-.cjs +9 -0
- package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
- package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
- package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
- package/components/CasinoCategoriesSlider-AAgG2_xb.cjs +1 -0
- package/components/CasinoCategoriesSlider-B3Aneyii.js +597 -0
- package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
- package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
- package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
- package/components/CasinoFavoritesSection-DE0M_xZ_.js +418 -0
- package/components/CasinoFilter-BWEtfBml.js +628 -0
- package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
- package/components/CasinoGamePage-C4x_GUg3.cjs +18 -0
- package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
- package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
- package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
- package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
- package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
- package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
- package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
- package/components/CasinoLastPlayedSection-CAirOYgJ.js +563 -0
- package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
- package/components/CasinoLobby-Cq0Hm2md.js +2337 -0
- package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
- package/components/CasinoModal-CZbdtmLm.js +372 -0
- package/components/CasinoModal-DqBbtAjA.cjs +1 -0
- package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
- package/components/CasinoMostPlayedSection-k3_ln2SB.js +580 -0
- package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
- package/components/CasinoMyGames-DcJpzIEq.js +1313 -0
- package/components/CasinoPage-BbRpHGEc.js +3514 -0
- package/components/CasinoPage-srXwB6ik.cjs +1 -0
- package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
- package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
- package/components/CasinoSearch-BsgUvsbs.js +1062 -0
- package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
- package/components/CasinoSlider-D5B-CjPM.js +803 -0
- package/components/CasinoSlider-kzZxK81G.cjs +1 -0
- package/components/CasinoSort-9pQqbHyF.cjs +1 -0
- package/components/CasinoSort-T6UQhFka.js +425 -0
- package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
- package/components/CasinoWinners-auSd-4D9.js +884 -0
- package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
- package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/package.json +20 -32
- package/CHANGELOG.md +0 -39
- package/README.md +0 -0
- package/dist/casino-lobby.js +0 -33
- package/dist/casino-lobby.js.map +0 -1
- package/documentation.md +0 -176
- package/index.html +0 -50
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoLobby.svelte +0 -454
- package/src/i18n.js +0 -25
- package/src/index.ts +0 -4
- package/stories/CasinoLobby.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { $ as R, a as P, S as q, i as A, f, c as O, s as U, b as G, e as c, q as L, r as T, u as l, D as E, G as v, d as V, v as o, w as W, A as S, C as j, j as J, o as K, l as N, m as H } from "./CasinoCalendar-3HRZGpnG.js";
|
|
2
|
+
function Q({ withLocale: i, translations: e }) {
|
|
3
|
+
R.subscribe((a) => {
|
|
4
|
+
a == null && (P.set(e), R.set(i));
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function X(i) {
|
|
8
|
+
G(i, "svelte-5rmvn0", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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(--emfe-w-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(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-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}');
|
|
9
|
+
}
|
|
10
|
+
function Y(i) {
|
|
11
|
+
let e, a, y, u, b, k, n, h, d, x, m, p, g, I, F, D, C, w, B, _, z, M, t;
|
|
12
|
+
return {
|
|
13
|
+
c() {
|
|
14
|
+
e = c("div"), a = c("div"), y = c("div"), u = c("div"), b = c("div"), b.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', k = L(), n = c("div"), h = c("div"), d = c("img"), m = L(), p = c("div"), g = T(
|
|
15
|
+
/*dailyday*/
|
|
16
|
+
i[2]
|
|
17
|
+
), I = L(), F = c("div"), D = L(), C = c("div"), w = c("button"), B = T(
|
|
18
|
+
/*dailybuttontitle*/
|
|
19
|
+
i[3]
|
|
20
|
+
), l(b, "class", "CalendarBar"), E(d.src, x = /*dailyicon*/
|
|
21
|
+
i[1]) || l(d, "src", x), l(
|
|
22
|
+
d,
|
|
23
|
+
"alt",
|
|
24
|
+
/*dailyicon*/
|
|
25
|
+
i[1]
|
|
26
|
+
), l(h, "class", "CasinoCalendarDailyIcon"), l(p, "class", "CasinoCalendarDailyTitle"), l(F, "class", "CasinoCalendarDailyItemDescription"), l(w, "class", "MoreInfoButton"), l(C, "class", "CasinoCalendarDailyItemButton"), l(n, "class", _ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
27
|
+
i[4] == "OpenCalendarModal" ? "Tear" : "")), v(n, "background-image", "url('" + /*dailybackground*/
|
|
28
|
+
i[0] + "')"), v(n, "background-size", "cover"), v(n, "background-position", "center"), v(n, "-webkit-background-size", "cover"), v(n, "-moz-background-size", "cover"), v(n, "-o-background-size", "cover"), l(u, "class", "CalendarCard"), l(y, "class", "CasinoCalendarItems"), l(a, "class", z = "Container " + /*mobileView*/
|
|
29
|
+
(i[7] ? "Mobile" : ""));
|
|
30
|
+
},
|
|
31
|
+
m(r, s) {
|
|
32
|
+
V(r, e, s), o(e, a), o(a, y), o(y, u), o(u, b), o(u, k), o(u, n), o(n, h), o(h, d), o(n, m), o(n, p), o(p, g), o(n, I), o(n, F), i[13](F), o(n, D), o(n, C), o(C, w), o(w, B), i[15](e), M || (t = W(
|
|
33
|
+
w,
|
|
34
|
+
"click",
|
|
35
|
+
/*click_handler*/
|
|
36
|
+
i[14]
|
|
37
|
+
), M = !0);
|
|
38
|
+
},
|
|
39
|
+
p(r, [s]) {
|
|
40
|
+
s & /*dailyicon*/
|
|
41
|
+
2 && !E(d.src, x = /*dailyicon*/
|
|
42
|
+
r[1]) && l(d, "src", x), s & /*dailyicon*/
|
|
43
|
+
2 && l(
|
|
44
|
+
d,
|
|
45
|
+
"alt",
|
|
46
|
+
/*dailyicon*/
|
|
47
|
+
r[1]
|
|
48
|
+
), s & /*dailyday*/
|
|
49
|
+
4 && S(
|
|
50
|
+
g,
|
|
51
|
+
/*dailyday*/
|
|
52
|
+
r[2]
|
|
53
|
+
), s & /*dailybuttontitle*/
|
|
54
|
+
8 && S(
|
|
55
|
+
B,
|
|
56
|
+
/*dailybuttontitle*/
|
|
57
|
+
r[3]
|
|
58
|
+
), s & /*index*/
|
|
59
|
+
16 && _ !== (_ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
60
|
+
r[4] == "OpenCalendarModal" ? "Tear" : "")) && l(n, "class", _), s & /*dailybackground*/
|
|
61
|
+
1 && v(n, "background-image", "url('" + /*dailybackground*/
|
|
62
|
+
r[0] + "')"), s & /*mobileView*/
|
|
63
|
+
128 && z !== (z = "Container " + /*mobileView*/
|
|
64
|
+
(r[7] ? "Mobile" : "")) && l(a, "class", z);
|
|
65
|
+
},
|
|
66
|
+
i: j,
|
|
67
|
+
o: j,
|
|
68
|
+
d(r) {
|
|
69
|
+
r && J(e), i[13](null), i[15](null), M = !1, t();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function Z(i, e, a) {
|
|
74
|
+
let { lang: y = "" } = e, { dailybackground: u = "" } = e, { dailyicon: b = "" } = e, { dailyday: k = "" } = e, { dailydescription: n = "<p></p>" } = e, { dailybuttontitle: h = "" } = e, { index: d = "0" } = e, { clientstyling: x = "" } = e, { clientstylingurl: m = "" } = e;
|
|
75
|
+
Q({ withLocale: "en", translations: {} });
|
|
76
|
+
let p, g, I = !1, F = window.navigator.userAgent;
|
|
77
|
+
const D = () => {
|
|
78
|
+
let t = document.createElement("div");
|
|
79
|
+
t.innerHTML = n, p && p.append(t);
|
|
80
|
+
}, C = () => {
|
|
81
|
+
window.postMessage({ type: "OpenCalendar", index: d }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
|
|
82
|
+
}, w = () => {
|
|
83
|
+
let t = document.createElement("style");
|
|
84
|
+
t.innerHTML = x, g.appendChild(t);
|
|
85
|
+
}, B = () => {
|
|
86
|
+
let t = new URL(m), r = document.createElement("style");
|
|
87
|
+
fetch(t.href).then((s) => s.text()).then((s) => {
|
|
88
|
+
r.innerHTML = s, setTimeout(
|
|
89
|
+
() => {
|
|
90
|
+
g.appendChild(r);
|
|
91
|
+
},
|
|
92
|
+
1
|
|
93
|
+
), setTimeout(
|
|
94
|
+
() => {
|
|
95
|
+
},
|
|
96
|
+
500
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
K(() => {
|
|
101
|
+
N(F) && a(7, I = !0);
|
|
102
|
+
});
|
|
103
|
+
function _(t) {
|
|
104
|
+
H[t ? "unshift" : "push"](() => {
|
|
105
|
+
p = t, a(6, p);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
const z = () => C();
|
|
109
|
+
function M(t) {
|
|
110
|
+
H[t ? "unshift" : "push"](() => {
|
|
111
|
+
g = t, a(5, g);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return i.$$set = (t) => {
|
|
115
|
+
"lang" in t && a(9, y = t.lang), "dailybackground" in t && a(0, u = t.dailybackground), "dailyicon" in t && a(1, b = t.dailyicon), "dailyday" in t && a(2, k = t.dailyday), "dailydescription" in t && a(10, n = t.dailydescription), "dailybuttontitle" in t && a(3, h = t.dailybuttontitle), "index" in t && a(4, d = t.index), "clientstyling" in t && a(11, x = t.clientstyling), "clientstylingurl" in t && a(12, m = t.clientstylingurl);
|
|
116
|
+
}, i.$$.update = () => {
|
|
117
|
+
i.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
|
|
118
|
+
1039 && b && k && n && h && u && D(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
119
|
+
2080 && x && g && w(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
120
|
+
4128 && m && g && B();
|
|
121
|
+
}, [
|
|
122
|
+
u,
|
|
123
|
+
b,
|
|
124
|
+
k,
|
|
125
|
+
h,
|
|
126
|
+
d,
|
|
127
|
+
g,
|
|
128
|
+
p,
|
|
129
|
+
I,
|
|
130
|
+
C,
|
|
131
|
+
y,
|
|
132
|
+
n,
|
|
133
|
+
x,
|
|
134
|
+
m,
|
|
135
|
+
_,
|
|
136
|
+
z,
|
|
137
|
+
M
|
|
138
|
+
];
|
|
139
|
+
}
|
|
140
|
+
class $ extends q {
|
|
141
|
+
constructor(e) {
|
|
142
|
+
super(), A(
|
|
143
|
+
this,
|
|
144
|
+
e,
|
|
145
|
+
Z,
|
|
146
|
+
Y,
|
|
147
|
+
U,
|
|
148
|
+
{
|
|
149
|
+
lang: 9,
|
|
150
|
+
dailybackground: 0,
|
|
151
|
+
dailyicon: 1,
|
|
152
|
+
dailyday: 2,
|
|
153
|
+
dailydescription: 10,
|
|
154
|
+
dailybuttontitle: 3,
|
|
155
|
+
index: 4,
|
|
156
|
+
clientstyling: 11,
|
|
157
|
+
clientstylingurl: 12
|
|
158
|
+
},
|
|
159
|
+
X
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
get lang() {
|
|
163
|
+
return this.$$.ctx[9];
|
|
164
|
+
}
|
|
165
|
+
set lang(e) {
|
|
166
|
+
this.$$set({ lang: e }), f();
|
|
167
|
+
}
|
|
168
|
+
get dailybackground() {
|
|
169
|
+
return this.$$.ctx[0];
|
|
170
|
+
}
|
|
171
|
+
set dailybackground(e) {
|
|
172
|
+
this.$$set({ dailybackground: e }), f();
|
|
173
|
+
}
|
|
174
|
+
get dailyicon() {
|
|
175
|
+
return this.$$.ctx[1];
|
|
176
|
+
}
|
|
177
|
+
set dailyicon(e) {
|
|
178
|
+
this.$$set({ dailyicon: e }), f();
|
|
179
|
+
}
|
|
180
|
+
get dailyday() {
|
|
181
|
+
return this.$$.ctx[2];
|
|
182
|
+
}
|
|
183
|
+
set dailyday(e) {
|
|
184
|
+
this.$$set({ dailyday: e }), f();
|
|
185
|
+
}
|
|
186
|
+
get dailydescription() {
|
|
187
|
+
return this.$$.ctx[10];
|
|
188
|
+
}
|
|
189
|
+
set dailydescription(e) {
|
|
190
|
+
this.$$set({ dailydescription: e }), f();
|
|
191
|
+
}
|
|
192
|
+
get dailybuttontitle() {
|
|
193
|
+
return this.$$.ctx[3];
|
|
194
|
+
}
|
|
195
|
+
set dailybuttontitle(e) {
|
|
196
|
+
this.$$set({ dailybuttontitle: e }), f();
|
|
197
|
+
}
|
|
198
|
+
get index() {
|
|
199
|
+
return this.$$.ctx[4];
|
|
200
|
+
}
|
|
201
|
+
set index(e) {
|
|
202
|
+
this.$$set({ index: e }), f();
|
|
203
|
+
}
|
|
204
|
+
get clientstyling() {
|
|
205
|
+
return this.$$.ctx[11];
|
|
206
|
+
}
|
|
207
|
+
set clientstyling(e) {
|
|
208
|
+
this.$$set({ clientstyling: e }), f();
|
|
209
|
+
}
|
|
210
|
+
get clientstylingurl() {
|
|
211
|
+
return this.$$.ctx[12];
|
|
212
|
+
}
|
|
213
|
+
set clientstylingurl(e) {
|
|
214
|
+
this.$$set({ clientstylingurl: e }), f();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
O($, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
218
|
+
export {
|
|
219
|
+
$ as default
|
|
220
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function B({withLocale:n,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function M(n){e.append_styles(n,"svelte-5rmvn0",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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(--emfe-w-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(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-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}')}function D(n){let t,l,h,c,g,m,a,f,d,p,b,u,s,k,C,z,x,y,F,w,v,_,i;return{c(){t=e.element("div"),l=e.element("div"),h=e.element("div"),c=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',m=e.space(),a=e.element("div"),f=e.element("div"),d=e.element("img"),b=e.space(),u=e.element("div"),s=e.text(n[2]),k=e.space(),C=e.element("div"),z=e.space(),x=e.element("div"),y=e.element("button"),F=e.text(n[3]),e.attr(g,"class","CalendarBar"),e.src_url_equal(d.src,p=n[1])||e.attr(d,"src",p),e.attr(d,"alt",n[1]),e.attr(f,"class","CasinoCalendarDailyIcon"),e.attr(u,"class","CasinoCalendarDailyTitle"),e.attr(C,"class","CasinoCalendarDailyItemDescription"),e.attr(y,"class","MoreInfoButton"),e.attr(x,"class","CasinoCalendarDailyItemButton"),e.attr(a,"class",w="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(a,"background-image","url('"+n[0]+"')"),e.set_style(a,"background-size","cover"),e.set_style(a,"background-position","center"),e.set_style(a,"-webkit-background-size","cover"),e.set_style(a,"-moz-background-size","cover"),e.set_style(a,"-o-background-size","cover"),e.attr(c,"class","CalendarCard"),e.attr(h,"class","CasinoCalendarItems"),e.attr(l,"class",v="Container "+(n[7]?"Mobile":""))},m(o,r){e.insert(o,t,r),e.append(t,l),e.append(l,h),e.append(h,c),e.append(c,g),e.append(c,m),e.append(c,a),e.append(a,f),e.append(f,d),e.append(a,b),e.append(a,u),e.append(u,s),e.append(a,k),e.append(a,C),n[13](C),e.append(a,z),e.append(a,x),e.append(x,y),e.append(y,F),n[15](t),_||(i=e.listen(y,"click",n[14]),_=!0)},p(o,[r]){r&2&&!e.src_url_equal(d.src,p=o[1])&&e.attr(d,"src",p),r&2&&e.attr(d,"alt",o[1]),r&4&&e.set_data(s,o[2]),r&8&&e.set_data(F,o[3]),r&16&&w!==(w="CasinoCalendarItemBackground CalendarPage "+(o[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(a,"class",w),r&1&&e.set_style(a,"background-image","url('"+o[0]+"')"),r&128&&v!==(v="Container "+(o[7]?"Mobile":""))&&e.attr(l,"class",v)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n[13](null),n[15](null),_=!1,i()}}}function L(n,t,l){let{lang:h=""}=t,{dailybackground:c=""}=t,{dailyicon:g=""}=t,{dailyday:m=""}=t,{dailydescription:a="<p></p>"}=t,{dailybuttontitle:f=""}=t,{index:d="0"}=t,{clientstyling:p=""}=t,{clientstylingurl:b=""}=t;B({withLocale:"en",translations:{}});let u,s,k=!1,C=window.navigator.userAgent;const z=()=>{let i=document.createElement("div");i.innerHTML=a,u&&u.append(i)},x=()=>{window.postMessage({type:"OpenCalendar",index:d},window.location.href),typeof gtag=="function"&>ag("event","MoreInfo",{context:"CalendarWidgetItem"})},y=()=>{let i=document.createElement("style");i.innerHTML=p,s.appendChild(i)},F=()=>{let i=new URL(b),o=document.createElement("style");fetch(i.href).then(r=>r.text()).then(r=>{o.innerHTML=r,setTimeout(()=>{s.appendChild(o)},1),setTimeout(()=>{},500)})};e.onMount(()=>{e.isMobile(C)&&l(7,k=!0)});function w(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,l(6,u)})}const v=()=>x();function _(i){e.binding_callbacks[i?"unshift":"push"](()=>{s=i,l(5,s)})}return n.$$set=i=>{"lang"in i&&l(9,h=i.lang),"dailybackground"in i&&l(0,c=i.dailybackground),"dailyicon"in i&&l(1,g=i.dailyicon),"dailyday"in i&&l(2,m=i.dailyday),"dailydescription"in i&&l(10,a=i.dailydescription),"dailybuttontitle"in i&&l(3,f=i.dailybuttontitle),"index"in i&&l(4,d=i.index),"clientstyling"in i&&l(11,p=i.clientstyling),"clientstylingurl"in i&&l(12,b=i.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&1039&&g&&m&&a&&f&&c&&z(),n.$$.dirty&2080&&p&&s&&y(),n.$$.dirty&4128&&b&&s&&F()},[c,g,m,f,d,s,u,k,x,h,a,p,b,w,v,_]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,L,D,e.safe_not_equal,{lang:9,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:10,dailybuttontitle:3,index:4,clientstyling:11,clientstylingurl:12},M)}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),e.flush()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-9cVNHt1-.cjs");function H(n,e){t.addMessages(n,e)}const Y={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"}};if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-kzZxK81G.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(n){t.append_styles(n,"svelte-1ydghqy",".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}")}function ae(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",z),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-1ydghqy"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ne(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ie(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;function s(i,o){return i[12]||le||re?ie:i[14]?ne:ae}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let z="CasinoSliderData",le=!1,re=!1;function ce(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:S=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:E=""}=e,{sessioncheck:j=""}=e,{location:P="secondaryMenu"}=e,{showsubgroups:T="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:q=""}=e,{lobbyiconimage:F=""}=e,{mygamesiconimage:A=""}=e,D,O,g=!0,d,h=[],y=!1,J=window.navigator.userAgent,f,R,U=!1,G=!1;const K=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{H(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(Y).forEach(a=>{H(a,Y[a])});const Q=()=>{U==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:D,href:"",games:[]}),t.tick(),U=!0,s(25,G=!0),I()},V=()=>(r||(d="Endpoint is missing! Please provide a valid endpointURL.",s(14,y=!0),s(12,g=!1),console.error(d)),i||(d="Datasource is missing! Please provide a valid datasource.",s(14,y=!0),s(12,g=!1),console.error(d)),(!o||o.length<2)&&(d="Language is missing! Please provide a valid language (alpha2code)",s(14,y=!0),s(12,g=!1),console.error(d)),y),W=()=>{if(D=l("myGamesName"),O=l("lobbyName"),!V()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(J)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),ee=c.items.filter(B=>{let k=!1;if(B.games.total>0&&(k=!0,M))for(let te of m)B.flags==te&&(k=!1);return k});h=[],h=h.concat(ee),h.unshift({id:"LOBBY",name:O,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)})}},X=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Z=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},p=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},I=()=>{window.postMessage({type:"SliderData",identity:z,data:h},window.location.href)};function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,S=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,N=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,E=a.actionevent),"sessioncheck"in a&&s(22,j=a.sessioncheck),"location"in a&&s(7,P=a.location),"showsubgroups"in a&&s(8,T=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,q=a.categoriesicon),"lobbyiconimage"in a&&s(10,F=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,A=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&W(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&Q(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&X(),n.$$.dirty[0]&8208&&L&&f&&Z(),n.$$.dirty[0]&16777216&&v&&K(),n.$$.dirty[0]&8224&&C&&f&&p()},s(15,R=0),[u,r,i,o,L,C,E,P,T,q,F,A,g,f,y,R,I,S,b,_,N,w,j,M,v,G,$]}class x extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},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[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}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[22]}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[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}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()}}t.create_custom_element(x,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=x;
|