@everymatrix/casino-lobby 1.44.0 → 1.45.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.
Files changed (64) hide show
  1. package/components/CasinoCalendar-DEhfBjpm.js +5138 -0
  2. package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
  7. package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
  8. package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
  9. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
  11. package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
  12. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
  13. package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
  14. package/components/CasinoFilter-D3p7c7qu.js +628 -0
  15. package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
  16. package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
  17. package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
  18. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
  20. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
  21. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
  22. package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
  23. package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
  24. package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
  25. package/components/CasinoLobby-Djp4HDWL.js +2341 -0
  26. package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
  27. package/components/CasinoModal-BebrYWjS.cjs +1 -0
  28. package/components/CasinoModal-CSwMAX-g.js +372 -0
  29. package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
  30. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
  31. package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
  32. package/components/CasinoMyGames-shcqTml8.cjs +1 -0
  33. package/components/CasinoPage-CCcJd2fQ.js +3514 -0
  34. package/components/CasinoPage-DZmE3VFL.cjs +1 -0
  35. package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
  36. package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
  37. package/components/CasinoSearch-CW-eesDy.cjs +1 -0
  38. package/components/CasinoSearch-DkEAmw-j.js +1066 -0
  39. package/components/CasinoSlider-CNWDP_I-.js +803 -0
  40. package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
  41. package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
  42. package/components/CasinoSort-CPcJqhWU.js +425 -0
  43. package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
  44. package/components/CasinoWinners-DSsJp1KQ.js +884 -0
  45. package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
  46. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
  47. package/es2015/casino-lobby.cjs +1 -0
  48. package/es2015/casino-lobby.js +16 -0
  49. package/package.json +20 -32
  50. package/CHANGELOG.md +0 -39
  51. package/README.md +0 -0
  52. package/dist/casino-lobby.js +0 -33
  53. package/dist/casino-lobby.js.map +0 -1
  54. package/documentation.md +0 -176
  55. package/index.html +0 -50
  56. package/index.js +0 -1
  57. package/public/favicon.png +0 -0
  58. package/public/reset.css +0 -48
  59. package/rollup.config.js +0 -67
  60. package/src/CasinoLobby.svelte +0 -454
  61. package/src/i18n.js +0 -25
  62. package/src/index.ts +0 -4
  63. package/stories/CasinoLobby.stories.js +0 -13
  64. package/tsconfig.json +0 -6
@@ -0,0 +1,605 @@
1
+ import { $ as P, a as se, S as ne, i as oe, f as I, c as re, s as ce, b as ge, e as _, d as a, g as T, t as R, h as de, j as G, k as M, o as fe, l as ue, m as ve, n as me, p as he, q, r as E, u as pe, v, w as W, x as be, y as _e, z as ye, A as we, B as te, C as U, D as J, E as z, F as ke, G as K, H as Ce } from "./CasinoCalendar-DEhfBjpm.js";
2
+ function xe({ withLocale: l, translations: e }) {
3
+ P.subscribe((t) => {
4
+ t == null && (se.set(e), P.set(l));
5
+ });
6
+ }
7
+ function Fe(l) {
8
+ P.set(l);
9
+ }
10
+ function De(l) {
11
+ ge(l, "svelte-1fgc73g", ".svelte-1fgc73g.svelte-1fgc73g,.svelte-1fgc73g.svelte-1fgc73g::before,.svelte-1fgc73g.svelte-1fgc73g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{appearance:none;padding:8px 6px;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}.IconDown.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground.svelte-1fgc73g.svelte-1fgc73g{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay.svelte-1fgc73g.svelte-1fgc73g{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle.svelte-1fgc73g.svelte-1fgc73g{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage.svelte-1fgc73g.svelte-1fgc73g{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage.svelte-1fgc73g img.svelte-1fgc73g{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription.svelte-1fgc73g.svelte-1fgc73g{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails.svelte-1fgc73g.svelte-1fgc73g{overflow:hidden;width:110%;border-bottom:1px solid var(--emfe-w-casino-color-primary, #D0046C)}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn.svelte-1fgc73g svg.svelte-1fgc73g{width:32px;height:32px}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g:hover{background:var(--emfe-w-color-gray-300, #58586B)}.DetailsTabsTitles.svelte-1fgc73g.svelte-1fgc73g{display:flex;flex-direction:row}.DetailTabsDescription.svelte-1fgc73g.svelte-1fgc73g{margin-top:15px}.CasinoCalendarTabs.svelte-1fgc73g.svelte-1fgc73g{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px;flex-direction:column}.CasinoCalendarFitImage.svelte-1fgc73g.svelte-1fgc73g{border-radius:5px}.NotVisible.svelte-1fgc73g.svelte-1fgc73g{display:none}.Header.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton.svelte-1fgc73g.svelte-1fgc73g{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab.svelte-1fgc73g.svelte-1fgc73g{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile.svelte-1fgc73g.svelte-1fgc73g{max-height:70vh;margin-bottom:0;width:100%;padding:20px 0}");
12
+ }
13
+ function O(l, e, t) {
14
+ const i = l.slice();
15
+ return i[28] = e[t], i[29] = e, i[30] = t, i;
16
+ }
17
+ function Q(l, e, t) {
18
+ const i = l.slice();
19
+ return i[31] = e[t], i[33] = t, i;
20
+ }
21
+ const Te = (l) => ({}), X = (l) => ({});
22
+ function Me(l) {
23
+ let e, t, i, g, r, n, o, d, c, p, y;
24
+ const w = (
25
+ /*#slots*/
26
+ l[18].close
27
+ ), k = he(
28
+ w,
29
+ l,
30
+ /*$$scope*/
31
+ l[17],
32
+ X
33
+ ), b = k || Ie();
34
+ let m = q(
35
+ /*dailyeventsDetails*/
36
+ l[3]
37
+ ), h = [];
38
+ for (let f = 0; f < m.length; f += 1)
39
+ h[f] = ee(O(l, m, f));
40
+ return {
41
+ c() {
42
+ e = _("div"), t = _("div"), i = _("span"), b && b.c(), g = E(), r = _("div"), n = pe(
43
+ /*dailyday*/
44
+ l[1]
45
+ ), o = E();
46
+ for (let f = 0; f < h.length; f += 1)
47
+ h[f].c();
48
+ a(i, "class", "ModalCloseBtn svelte-1fgc73g"), a(i, "role", "button"), a(r, "class", "CasinoCalendarDailyDay svelte-1fgc73g"), a(t, "class", "HeaderDailyDetails svelte-1fgc73g"), a(e, "class", d = "CasinoCalendarDailyDetailsBackground " + /*mobileView*/
49
+ (l[5] ? "Mobile" : "") + " svelte-1fgc73g");
50
+ },
51
+ m(f, F) {
52
+ T(f, e, F), v(e, t), v(t, i), b && b.m(i, null), v(t, g), v(t, r), v(r, n), v(e, o);
53
+ for (let u = 0; u < h.length; u += 1)
54
+ h[u] && h[u].m(e, null);
55
+ c = !0, p || (y = W(
56
+ i,
57
+ "click",
58
+ /*closeModal*/
59
+ l[6]
60
+ ), p = !0);
61
+ },
62
+ p(f, F) {
63
+ if (k && k.p && (!c || F[0] & /*$$scope*/
64
+ 131072) && be(
65
+ k,
66
+ w,
67
+ f,
68
+ /*$$scope*/
69
+ f[17],
70
+ c ? ye(
71
+ w,
72
+ /*$$scope*/
73
+ f[17],
74
+ F,
75
+ Te
76
+ ) : _e(
77
+ /*$$scope*/
78
+ f[17]
79
+ ),
80
+ X
81
+ ), (!c || F[0] & /*dailyday*/
82
+ 2) && we(
83
+ n,
84
+ /*dailyday*/
85
+ f[1]
86
+ ), F[0] & /*dailyeventsDetails, setActiveTab, handleDetailsArea, dailybuttontitle*/
87
+ 393) {
88
+ m = q(
89
+ /*dailyeventsDetails*/
90
+ f[3]
91
+ );
92
+ let u;
93
+ for (u = 0; u < m.length; u += 1) {
94
+ const S = O(f, m, u);
95
+ h[u] ? h[u].p(S, F) : (h[u] = ee(S), h[u].c(), h[u].m(e, null));
96
+ }
97
+ for (; u < h.length; u += 1)
98
+ h[u].d(1);
99
+ h.length = m.length;
100
+ }
101
+ (!c || F[0] & /*mobileView*/
102
+ 32 && d !== (d = "CasinoCalendarDailyDetailsBackground " + /*mobileView*/
103
+ (f[5] ? "Mobile" : "") + " svelte-1fgc73g")) && a(e, "class", d);
104
+ },
105
+ i(f) {
106
+ c || (G(b, f), c = !0);
107
+ },
108
+ o(f) {
109
+ R(b, f), c = !1;
110
+ },
111
+ d(f) {
112
+ f && M(e), b && b.d(f), te(h, f), p = !1, y();
113
+ }
114
+ };
115
+ }
116
+ function Le(l) {
117
+ let e;
118
+ return {
119
+ c() {
120
+ e = _("p"), e.textContent = "Loading ...", a(e, "class", "SearchLoading svelte-1fgc73g"), a(e, "part", "SearchLoading");
121
+ },
122
+ m(t, i) {
123
+ T(t, e, i);
124
+ },
125
+ p: U,
126
+ i: U,
127
+ o: U,
128
+ d(t) {
129
+ t && M(e);
130
+ }
131
+ };
132
+ }
133
+ function Be(l) {
134
+ let e;
135
+ return {
136
+ c() {
137
+ e = _("p"), e.textContent = "500 Error - Internal Server Error", a(e, "class", "SearchLoading svelte-1fgc73g"), a(e, "part", "SearchLoading");
138
+ },
139
+ m(t, i) {
140
+ T(t, e, i);
141
+ },
142
+ p: U,
143
+ i: U,
144
+ o: U,
145
+ d(t) {
146
+ t && M(e);
147
+ }
148
+ };
149
+ }
150
+ function Ie(l) {
151
+ let e, t;
152
+ return {
153
+ c() {
154
+ e = z("svg"), t = z("path"), a(t, "stroke-linecap", "round"), a(t, "stroke-linejoin", "round"), a(t, "stroke-width", "2"), a(t, "d", "M6 18L18 6M6 6l12 12"), a(t, "class", "svelte-1fgc73g"), a(e, "class", "w-6 h-6 svelte-1fgc73g"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "viewBox", "0 0 24 24"), a(e, "xmlns", "http://www.w3.org/2000/svg");
155
+ },
156
+ m(i, g) {
157
+ T(i, e, g), v(e, t);
158
+ },
159
+ p: U,
160
+ d(i) {
161
+ i && M(e);
162
+ }
163
+ };
164
+ }
165
+ function Ee(l) {
166
+ let e, t;
167
+ return {
168
+ c() {
169
+ e = z("svg"), t = z("path"), a(t, "stroke-linecap", "round"), a(t, "stroke-linejoin", "round"), a(t, "d", "M19.5 8.25l-7.5 7.5-7.5-7.5"), a(t, "class", "svelte-1fgc73g"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "fill", "none"), a(e, "viewBox", "0 0 24 24"), a(e, "stroke-width", "1.5"), a(e, "stroke", "var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"), a(e, "class", "IconDown svelte-1fgc73g");
170
+ },
171
+ m(i, g) {
172
+ T(i, e, g), v(e, t);
173
+ },
174
+ d(i) {
175
+ i && M(e);
176
+ }
177
+ };
178
+ }
179
+ function He(l) {
180
+ let e, t;
181
+ return {
182
+ c() {
183
+ e = z("svg"), t = z("path"), a(t, "stroke-linecap", "round"), a(t, "stroke-linejoin", "round"), a(t, "d", "M19.5 8.25l-7.5 7.5-7.5-7.5"), a(t, "class", "svelte-1fgc73g"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "fill", "none"), a(e, "viewBox", "0 0 24 24"), a(e, "stroke-width", "1.5"), a(e, "stroke", "var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"), a(e, "class", "IconUp svelte-1fgc73g");
184
+ },
185
+ m(i, g) {
186
+ T(i, e, g), v(e, t);
187
+ },
188
+ d(i) {
189
+ i && M(e);
190
+ }
191
+ };
192
+ }
193
+ function Y(l) {
194
+ let e, t, i, g = q(
195
+ /*event*/
196
+ l[28].details
197
+ ), r = [];
198
+ for (let o = 0; o < g.length; o += 1)
199
+ r[o] = Z(Q(l, g, o));
200
+ let n = (
201
+ /*event*/
202
+ l[28].detailsExpanded && $(l)
203
+ );
204
+ return {
205
+ c() {
206
+ e = _("div");
207
+ for (let o = 0; o < r.length; o += 1)
208
+ r[o].c();
209
+ t = E(), n && n.c(), i = ke(), a(e, "class", "DetailsTabsTitles svelte-1fgc73g");
210
+ },
211
+ m(o, d) {
212
+ T(o, e, d);
213
+ for (let c = 0; c < r.length; c += 1)
214
+ r[c] && r[c].m(e, null);
215
+ T(o, t, d), n && n.m(o, d), T(o, i, d);
216
+ },
217
+ p(o, d) {
218
+ if (d[0] & /*dailyeventsDetails, setActiveTab*/
219
+ 264) {
220
+ g = q(
221
+ /*event*/
222
+ o[28].details
223
+ );
224
+ let c;
225
+ for (c = 0; c < g.length; c += 1) {
226
+ const p = Q(o, g, c);
227
+ r[c] ? r[c].p(p, d) : (r[c] = Z(p), r[c].c(), r[c].m(e, null));
228
+ }
229
+ for (; c < r.length; c += 1)
230
+ r[c].d(1);
231
+ r.length = g.length;
232
+ }
233
+ /*event*/
234
+ o[28].detailsExpanded ? n ? n.p(o, d) : (n = $(o), n.c(), n.m(i.parentNode, i)) : n && (n.d(1), n = null);
235
+ },
236
+ d(o) {
237
+ o && (M(e), M(t), M(i)), te(r, o), n && n.d(o);
238
+ }
239
+ };
240
+ }
241
+ function Z(l) {
242
+ let e, t, i, g = (
243
+ /*detail*/
244
+ l[31].title + ""
245
+ ), r, n, o, d, c;
246
+ function p() {
247
+ return (
248
+ /*click_handler_1*/
249
+ l[20](
250
+ /*event*/
251
+ l[28],
252
+ /*i*/
253
+ l[33],
254
+ /*index*/
255
+ l[30]
256
+ )
257
+ );
258
+ }
259
+ return {
260
+ c() {
261
+ e = _("div"), t = _("div"), i = _("button"), n = E(), a(i, "class", r = "HeaderButton " + /*i*/
262
+ (l[33] === /*event*/
263
+ l[28].selectedTab ? "Active" : "") + " svelte-1fgc73g"), a(t, "class", "Header svelte-1fgc73g"), a(e, "class", o = /*i*/
264
+ (l[33] === /*event*/
265
+ l[28].selectedTab ? "SelectedTab" : "") + " svelte-1fgc73g"), a(e, "id", "CollapseMoreInfoButton"), K(
266
+ e,
267
+ "height",
268
+ /*event*/
269
+ l[28].expandedInfo ? "100%" : ""
270
+ );
271
+ },
272
+ m(y, w) {
273
+ T(y, e, w), v(e, t), v(t, i), i.innerHTML = g, v(e, n), d || (c = W(i, "click", p), d = !0);
274
+ },
275
+ p(y, w) {
276
+ l = y, w[0] & /*dailyeventsDetails*/
277
+ 8 && g !== (g = /*detail*/
278
+ l[31].title + "") && (i.innerHTML = g), w[0] & /*dailyeventsDetails*/
279
+ 8 && r !== (r = "HeaderButton " + /*i*/
280
+ (l[33] === /*event*/
281
+ l[28].selectedTab ? "Active" : "") + " svelte-1fgc73g") && a(i, "class", r), w[0] & /*dailyeventsDetails*/
282
+ 8 && o !== (o = /*i*/
283
+ (l[33] === /*event*/
284
+ l[28].selectedTab ? "SelectedTab" : "") + " svelte-1fgc73g") && a(e, "class", o), w[0] & /*dailyeventsDetails*/
285
+ 8 && K(
286
+ e,
287
+ "height",
288
+ /*event*/
289
+ l[28].expandedInfo ? "100%" : ""
290
+ );
291
+ },
292
+ d(y) {
293
+ y && M(e), d = !1, c();
294
+ }
295
+ };
296
+ }
297
+ function $(l) {
298
+ let e, t = (
299
+ /*event*/
300
+ l[28].details[
301
+ /*event*/
302
+ l[28].selectedTab
303
+ ].description + ""
304
+ ), i;
305
+ return {
306
+ c() {
307
+ e = _("div"), a(e, "class", i = "DetailTabsDescription " + /*event*/
308
+ (l[28].details[
309
+ /*event*/
310
+ l[28].selectedTab
311
+ ].expandedTab ? "" : "NotVisible") + " svelte-1fgc73g");
312
+ },
313
+ m(g, r) {
314
+ T(g, e, r), e.innerHTML = t;
315
+ },
316
+ p(g, r) {
317
+ r[0] & /*dailyeventsDetails*/
318
+ 8 && t !== (t = /*event*/
319
+ g[28].details[
320
+ /*event*/
321
+ g[28].selectedTab
322
+ ].description + "") && (e.innerHTML = t), r[0] & /*dailyeventsDetails*/
323
+ 8 && i !== (i = "DetailTabsDescription " + /*event*/
324
+ (g[28].details[
325
+ /*event*/
326
+ g[28].selectedTab
327
+ ].expandedTab ? "" : "NotVisible") + " svelte-1fgc73g") && a(e, "class", i);
328
+ },
329
+ d(g) {
330
+ g && M(e);
331
+ }
332
+ };
333
+ }
334
+ function ee(l) {
335
+ let e, t, i = (
336
+ /*event*/
337
+ l[28].title + ""
338
+ ), g, r, n, o, d, c, p, y = (
339
+ /*event*/
340
+ l[28].description + ""
341
+ ), w, k, b, m, h, f, F, u, S;
342
+ function A(H, B) {
343
+ return (
344
+ /*event*/
345
+ H[28].expandedInfo == !0 ? He : Ee
346
+ );
347
+ }
348
+ let j = A(l), L = j(l);
349
+ function N() {
350
+ return (
351
+ /*click_handler*/
352
+ l[19](
353
+ /*event*/
354
+ l[28],
355
+ /*each_value*/
356
+ l[29],
357
+ /*index*/
358
+ l[30]
359
+ )
360
+ );
361
+ }
362
+ let C = (
363
+ /*event*/
364
+ l[28].expandedInfo == !0 && Y(l)
365
+ );
366
+ return {
367
+ c() {
368
+ e = _("div"), t = _("div"), g = E(), r = _("div"), n = _("img"), c = E(), p = _("div"), w = E(), k = _("div"), b = _("button"), m = new Ce(!1), h = E(), L.c(), f = E(), C && C.c(), F = E(), a(t, "class", "CasinoCalendarDailyTitle svelte-1fgc73g"), a(n, "class", "CasinoCalendarFitImage svelte-1fgc73g"), J(n.src, o = /*event*/
369
+ l[28].image) || a(n, "src", o), a(n, "alt", d = /*event*/
370
+ l[28].image), a(r, "class", "CasinoCalendarImage svelte-1fgc73g"), a(p, "class", "CasinoCalendarDailyDescription svelte-1fgc73g"), m.a = h, a(b, "class", "MoreInfoButton svelte-1fgc73g"), a(k, "class", "CasinoCalendarTabs svelte-1fgc73g"), a(e, "class", "CasinoCalendarDailyDetailsParent svelte-1fgc73g");
371
+ },
372
+ m(H, B) {
373
+ T(H, e, B), v(e, t), t.innerHTML = i, v(e, g), v(e, r), v(r, n), v(e, c), v(e, p), p.innerHTML = y, v(e, w), v(e, k), v(k, b), m.m(
374
+ /*dailybuttontitle*/
375
+ l[0],
376
+ b
377
+ ), v(b, h), L.m(b, null), v(k, f), C && C.m(k, null), v(e, F), u || (S = W(b, "click", N), u = !0);
378
+ },
379
+ p(H, B) {
380
+ l = H, B[0] & /*dailyeventsDetails*/
381
+ 8 && i !== (i = /*event*/
382
+ l[28].title + "") && (t.innerHTML = i), B[0] & /*dailyeventsDetails*/
383
+ 8 && !J(n.src, o = /*event*/
384
+ l[28].image) && a(n, "src", o), B[0] & /*dailyeventsDetails*/
385
+ 8 && d !== (d = /*event*/
386
+ l[28].image) && a(n, "alt", d), B[0] & /*dailyeventsDetails*/
387
+ 8 && y !== (y = /*event*/
388
+ l[28].description + "") && (p.innerHTML = y), B[0] & /*dailybuttontitle*/
389
+ 1 && m.p(
390
+ /*dailybuttontitle*/
391
+ l[0]
392
+ ), j !== (j = A(l)) && (L.d(1), L = j(l), L && (L.c(), L.m(b, null))), /*event*/
393
+ l[28].expandedInfo == !0 ? C ? C.p(l, B) : (C = Y(l), C.c(), C.m(k, null)) : C && (C.d(1), C = null);
394
+ },
395
+ d(H) {
396
+ H && M(e), L.d(), C && C.d(), u = !1, S();
397
+ }
398
+ };
399
+ }
400
+ function Se(l) {
401
+ let e, t, i, g;
402
+ const r = [Be, Le, Me], n = [];
403
+ function o(d, c) {
404
+ return (
405
+ /*isLoading*/
406
+ d[4] ? 1 : 2
407
+ );
408
+ }
409
+ return t = o(l), i = n[t] = r[t](l), {
410
+ c() {
411
+ e = _("div"), i.c(), a(e, "class", "svelte-1fgc73g");
412
+ },
413
+ m(d, c) {
414
+ T(d, e, c), n[t].m(e, null), l[21](e), g = !0;
415
+ },
416
+ p(d, c) {
417
+ let p = t;
418
+ t = o(d), t === p ? n[t].p(d, c) : (ue(), R(n[p], 1, 1, () => {
419
+ n[p] = null;
420
+ }), de(), i = n[t], i ? i.p(d, c) : (i = n[t] = r[t](d), i.c()), G(i, 1), i.m(e, null));
421
+ },
422
+ i(d) {
423
+ g || (G(i), g = !0);
424
+ },
425
+ o(d) {
426
+ R(i), g = !1;
427
+ },
428
+ d(d) {
429
+ d && M(e), n[t].d(), l[21](null);
430
+ }
431
+ };
432
+ }
433
+ function Ue(l, e, t) {
434
+ let { $$slots: i = {}, $$scope: g } = e, { dailybackground: r = "" } = e, { dailybuttontitle: n = "" } = e, { dailyday: o = "" } = e, { dailydescription: d = "<p></p>" } = e, { dailyicon: c = "" } = e, { dailytitle: p = "" } = e, { lang: y = "en" } = e, { clientstyling: w = "" } = e, { clientstylingurl: k = "" } = e, { translationUrl: b = "" } = e, m = [], h = !0, f = !1, F = window.navigator.userAgent, u;
435
+ xe({ withLocale: "en", translations: {} });
436
+ const S = (s) => {
437
+ s.data.type == "DailyEventsData" && (t(4, h = !1), t(3, m = s.data.data), m.forEach((x) => {
438
+ x.expandedInfo = !1, x.detailsExpanded = !1, x.selectedTab = 0, x.details.forEach((D, V) => {
439
+ D.expandedTab = V == 0;
440
+ });
441
+ }));
442
+ }, A = () => {
443
+ window.postMessage({ type: "ModalClosed" }, window.location.href), m.forEach((s, x) => {
444
+ s.detailsExpanded = x == 0, s.expandedInfo = x == 0, s.selectedTab = 0;
445
+ });
446
+ }, j = () => {
447
+ Fe(y);
448
+ }, L = (s) => {
449
+ t(3, m[s].detailsExpanded = !m[s].detailsExpanded, m), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetDetails" });
450
+ }, N = (s, x, D) => {
451
+ t(3, m[D].selectedTab = x, m), s.details.forEach((V, ae) => {
452
+ m[D].selectedTab != ae ? V.expandedTab = !1 : V.expandedTab = !0;
453
+ });
454
+ }, C = () => {
455
+ let s = document.createElement("style");
456
+ s.innerHTML = w, u.appendChild(s);
457
+ }, H = () => {
458
+ let s = new URL(k), x = document.createElement("style");
459
+ fetch(s.href).then((D) => D.text()).then((D) => {
460
+ x.innerHTML = D, setTimeout(
461
+ () => {
462
+ u.appendChild(x);
463
+ },
464
+ 1
465
+ ), setTimeout(
466
+ () => {
467
+ },
468
+ 500
469
+ );
470
+ });
471
+ };
472
+ fe(() => (window.addEventListener("message", S, !1), ve(F) && t(5, f = !0), () => {
473
+ window.removeEventListener("message", S);
474
+ }));
475
+ const B = (s, x, D) => {
476
+ t(3, x[D].expandedInfo = !s.expandedInfo, m), L(D);
477
+ }, le = (s, x, D) => {
478
+ N(s, x, D);
479
+ };
480
+ function ie(s) {
481
+ me[s ? "unshift" : "push"](() => {
482
+ u = s, t(2, u);
483
+ });
484
+ }
485
+ return l.$$set = (s) => {
486
+ "dailybackground" in s && t(9, r = s.dailybackground), "dailybuttontitle" in s && t(0, n = s.dailybuttontitle), "dailyday" in s && t(1, o = s.dailyday), "dailydescription" in s && t(10, d = s.dailydescription), "dailyicon" in s && t(11, c = s.dailyicon), "dailytitle" in s && t(12, p = s.dailytitle), "lang" in s && t(13, y = s.lang), "clientstyling" in s && t(14, w = s.clientstyling), "clientstylingurl" in s && t(15, k = s.clientstylingurl), "translationUrl" in s && t(16, b = s.translationUrl), "$$scope" in s && t(17, g = s.$$scope);
487
+ }, l.$$.update = () => {
488
+ l.$$.dirty[0] & /*lang*/
489
+ 8192 && y && j(), l.$$.dirty[0] & /*clientstyling, customStylingContainer*/
490
+ 16388 && w && u && C(), l.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
491
+ 32772 && k && u && H();
492
+ }, [
493
+ n,
494
+ o,
495
+ u,
496
+ m,
497
+ h,
498
+ f,
499
+ A,
500
+ L,
501
+ N,
502
+ r,
503
+ d,
504
+ c,
505
+ p,
506
+ y,
507
+ w,
508
+ k,
509
+ b,
510
+ g,
511
+ i,
512
+ B,
513
+ le,
514
+ ie
515
+ ];
516
+ }
517
+ class je extends ne {
518
+ constructor(e) {
519
+ super(), oe(
520
+ this,
521
+ e,
522
+ Ue,
523
+ Se,
524
+ ce,
525
+ {
526
+ dailybackground: 9,
527
+ dailybuttontitle: 0,
528
+ dailyday: 1,
529
+ dailydescription: 10,
530
+ dailyicon: 11,
531
+ dailytitle: 12,
532
+ lang: 13,
533
+ clientstyling: 14,
534
+ clientstylingurl: 15,
535
+ translationUrl: 16
536
+ },
537
+ De,
538
+ [-1, -1]
539
+ );
540
+ }
541
+ get dailybackground() {
542
+ return this.$$.ctx[9];
543
+ }
544
+ set dailybackground(e) {
545
+ this.$$set({ dailybackground: e }), I();
546
+ }
547
+ get dailybuttontitle() {
548
+ return this.$$.ctx[0];
549
+ }
550
+ set dailybuttontitle(e) {
551
+ this.$$set({ dailybuttontitle: e }), I();
552
+ }
553
+ get dailyday() {
554
+ return this.$$.ctx[1];
555
+ }
556
+ set dailyday(e) {
557
+ this.$$set({ dailyday: e }), I();
558
+ }
559
+ get dailydescription() {
560
+ return this.$$.ctx[10];
561
+ }
562
+ set dailydescription(e) {
563
+ this.$$set({ dailydescription: e }), I();
564
+ }
565
+ get dailyicon() {
566
+ return this.$$.ctx[11];
567
+ }
568
+ set dailyicon(e) {
569
+ this.$$set({ dailyicon: e }), I();
570
+ }
571
+ get dailytitle() {
572
+ return this.$$.ctx[12];
573
+ }
574
+ set dailytitle(e) {
575
+ this.$$set({ dailytitle: e }), I();
576
+ }
577
+ get lang() {
578
+ return this.$$.ctx[13];
579
+ }
580
+ set lang(e) {
581
+ this.$$set({ lang: e }), I();
582
+ }
583
+ get clientstyling() {
584
+ return this.$$.ctx[14];
585
+ }
586
+ set clientstyling(e) {
587
+ this.$$set({ clientstyling: e }), I();
588
+ }
589
+ get clientstylingurl() {
590
+ return this.$$.ctx[15];
591
+ }
592
+ set clientstylingurl(e) {
593
+ this.$$set({ clientstylingurl: e }), I();
594
+ }
595
+ get translationUrl() {
596
+ return this.$$.ctx[16];
597
+ }
598
+ set translationUrl(e) {
599
+ this.$$set({ translationUrl: e }), I();
600
+ }
601
+ }
602
+ re(je, { dailybackground: {}, dailybuttontitle: {}, dailyday: {}, dailydescription: {}, dailyicon: {}, dailytitle: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationUrl: {} }, ["close"], [], !0);
603
+ export {
604
+ je as default
605
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-egUFg4eK.cjs");function O({withLocale:a,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function W(a){e.$locale.set(a)}function G(a){e.append_styles(a,"svelte-1fgc73g",".svelte-1fgc73g.svelte-1fgc73g,.svelte-1fgc73g.svelte-1fgc73g::before,.svelte-1fgc73g.svelte-1fgc73g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{appearance:none;padding:8px 6px;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}.IconDown.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground.svelte-1fgc73g.svelte-1fgc73g{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay.svelte-1fgc73g.svelte-1fgc73g{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle.svelte-1fgc73g.svelte-1fgc73g{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage.svelte-1fgc73g.svelte-1fgc73g{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage.svelte-1fgc73g img.svelte-1fgc73g{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription.svelte-1fgc73g.svelte-1fgc73g{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails.svelte-1fgc73g.svelte-1fgc73g{overflow:hidden;width:110%;border-bottom:1px solid var(--emfe-w-casino-color-primary, #D0046C)}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn.svelte-1fgc73g svg.svelte-1fgc73g{width:32px;height:32px}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g:hover{background:var(--emfe-w-color-gray-300, #58586B)}.DetailsTabsTitles.svelte-1fgc73g.svelte-1fgc73g{display:flex;flex-direction:row}.DetailTabsDescription.svelte-1fgc73g.svelte-1fgc73g{margin-top:15px}.CasinoCalendarTabs.svelte-1fgc73g.svelte-1fgc73g{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px;flex-direction:column}.CasinoCalendarFitImage.svelte-1fgc73g.svelte-1fgc73g{border-radius:5px}.NotVisible.svelte-1fgc73g.svelte-1fgc73g{display:none}.Header.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton.svelte-1fgc73g.svelte-1fgc73g{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab.svelte-1fgc73g.svelte-1fgc73g{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile.svelte-1fgc73g.svelte-1fgc73g{max-height:70vh;margin-bottom:0;width:100%;padding:20px 0}")}function H(a,t,l){const n=a.slice();return n[28]=t[l],n[29]=t,n[30]=l,n}function S(a,t,l){const n=a.slice();return n[31]=t[l],n[33]=l,n}const J=a=>({}),U=a=>({});function K(a){let t,l,n,d,o,s,r,g,c,v,_;const b=a[18].close,y=e.create_slot(b,a,a[17],U),h=y||Y();let p=e.ensure_array_like(a[3]),m=[];for(let f=0;f<p.length;f+=1)m[f]=q(H(a,p,f));return{c(){t=e.element("div"),l=e.element("div"),n=e.element("span"),h&&h.c(),d=e.space(),o=e.element("div"),s=e.text(a[1]),r=e.space();for(let f=0;f<m.length;f+=1)m[f].c();e.attr(n,"class","ModalCloseBtn svelte-1fgc73g"),e.attr(n,"role","button"),e.attr(o,"class","CasinoCalendarDailyDay svelte-1fgc73g"),e.attr(l,"class","HeaderDailyDetails svelte-1fgc73g"),e.attr(t,"class",g="CasinoCalendarDailyDetailsBackground "+(a[5]?"Mobile":"")+" svelte-1fgc73g")},m(f,C){e.insert(f,t,C),e.append(t,l),e.append(l,n),h&&h.m(n,null),e.append(l,d),e.append(l,o),e.append(o,s),e.append(t,r);for(let u=0;u<m.length;u+=1)m[u]&&m[u].m(t,null);c=!0,v||(_=e.listen(n,"click",a[6]),v=!0)},p(f,C){if(y&&y.p&&(!c||C[0]&131072)&&e.update_slot_base(y,b,f,f[17],c?e.get_slot_changes(b,f[17],C,J):e.get_all_dirty_from_scope(f[17]),U),(!c||C[0]&2)&&e.set_data(s,f[1]),C[0]&393){p=e.ensure_array_like(f[3]);let u;for(u=0;u<p.length;u+=1){const M=H(f,p,u);m[u]?m[u].p(M,C):(m[u]=q(M),m[u].c(),m[u].m(t,null))}for(;u<m.length;u+=1)m[u].d(1);m.length=p.length}(!c||C[0]&32&&g!==(g="CasinoCalendarDailyDetailsBackground "+(f[5]?"Mobile":"")+" svelte-1fgc73g"))&&e.attr(t,"class",g)},i(f){c||(e.transition_in(h,f),c=!0)},o(f){e.transition_out(h,f),c=!1},d(f){f&&e.detach(t),h&&h.d(f),e.destroy_each(m,f),v=!1,_()}}}function Q(a){let t;return{c(){t=e.element("p"),t.textContent="Loading ...",e.attr(t,"class","SearchLoading svelte-1fgc73g"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function X(a){let t;return{c(){t=e.element("p"),t.textContent="500 Error - Internal Server Error",e.attr(t,"class","SearchLoading svelte-1fgc73g"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Y(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"stroke-width","2"),e.attr(l,"d","M6 18L18 6M6 6l12 12"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"class","w-6 h-6 svelte-1fgc73g"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(n,d){e.insert(n,t,d),e.append(t,l)},p:e.noop,d(n){n&&e.detach(t)}}}function Z(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),e.attr(t,"class","IconDown svelte-1fgc73g")},m(n,d){e.insert(n,t,d),e.append(t,l)},d(n){n&&e.detach(t)}}}function $(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),e.attr(t,"class","IconUp svelte-1fgc73g")},m(n,d){e.insert(n,t,d),e.append(t,l)},d(n){n&&e.detach(t)}}}function j(a){let t,l,n,d=e.ensure_array_like(a[28].details),o=[];for(let r=0;r<d.length;r+=1)o[r]=z(S(a,d,r));let s=a[28].detailsExpanded&&A(a);return{c(){t=e.element("div");for(let r=0;r<o.length;r+=1)o[r].c();l=e.space(),s&&s.c(),n=e.empty(),e.attr(t,"class","DetailsTabsTitles svelte-1fgc73g")},m(r,g){e.insert(r,t,g);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);e.insert(r,l,g),s&&s.m(r,g),e.insert(r,n,g)},p(r,g){if(g[0]&264){d=e.ensure_array_like(r[28].details);let c;for(c=0;c<d.length;c+=1){const v=S(r,d,c);o[c]?o[c].p(v,g):(o[c]=z(v),o[c].c(),o[c].m(t,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=d.length}r[28].detailsExpanded?s?s.p(r,g):(s=A(r),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(r){r&&(e.detach(t),e.detach(l),e.detach(n)),e.destroy_each(o,r),s&&s.d(r)}}}function z(a){let t,l,n,d=a[31].title+"",o,s,r,g,c;function v(){return a[20](a[28],a[33],a[30])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("button"),s=e.space(),e.attr(n,"class",o="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")+" svelte-1fgc73g"),e.attr(l,"class","Header svelte-1fgc73g"),e.attr(t,"class",r=(a[33]===a[28].selectedTab?"SelectedTab":"")+" svelte-1fgc73g"),e.attr(t,"id","CollapseMoreInfoButton"),e.set_style(t,"height",a[28].expandedInfo?"100%":"")},m(_,b){e.insert(_,t,b),e.append(t,l),e.append(l,n),n.innerHTML=d,e.append(t,s),g||(c=e.listen(n,"click",v),g=!0)},p(_,b){a=_,b[0]&8&&d!==(d=a[31].title+"")&&(n.innerHTML=d),b[0]&8&&o!==(o="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")+" svelte-1fgc73g")&&e.attr(n,"class",o),b[0]&8&&r!==(r=(a[33]===a[28].selectedTab?"SelectedTab":"")+" svelte-1fgc73g")&&e.attr(t,"class",r),b[0]&8&&e.set_style(t,"height",a[28].expandedInfo?"100%":"")},d(_){_&&e.detach(t),g=!1,c()}}}function A(a){let t,l=a[28].details[a[28].selectedTab].description+"",n;return{c(){t=e.element("div"),e.attr(t,"class",n="DetailTabsDescription "+(a[28].details[a[28].selectedTab].expandedTab?"":"NotVisible")+" svelte-1fgc73g")},m(d,o){e.insert(d,t,o),t.innerHTML=l},p(d,o){o[0]&8&&l!==(l=d[28].details[d[28].selectedTab].description+"")&&(t.innerHTML=l),o[0]&8&&n!==(n="DetailTabsDescription "+(d[28].details[d[28].selectedTab].expandedTab?"":"NotVisible")+" svelte-1fgc73g")&&e.attr(t,"class",n)},d(d){d&&e.detach(t)}}}function q(a){let t,l,n=a[28].title+"",d,o,s,r,g,c,v,_=a[28].description+"",b,y,h,p,m,f,C,u,M;function I(T,D){return T[28].expandedInfo==!0?$:Z}let L=I(a),F=L(a);function B(){return a[19](a[28],a[29],a[30])}let w=a[28].expandedInfo==!0&&j(a);return{c(){t=e.element("div"),l=e.element("div"),d=e.space(),o=e.element("div"),s=e.element("img"),c=e.space(),v=e.element("div"),b=e.space(),y=e.element("div"),h=e.element("button"),p=new e.HtmlTag(!1),m=e.space(),F.c(),f=e.space(),w&&w.c(),C=e.space(),e.attr(l,"class","CasinoCalendarDailyTitle svelte-1fgc73g"),e.attr(s,"class","CasinoCalendarFitImage svelte-1fgc73g"),e.src_url_equal(s.src,r=a[28].image)||e.attr(s,"src",r),e.attr(s,"alt",g=a[28].image),e.attr(o,"class","CasinoCalendarImage svelte-1fgc73g"),e.attr(v,"class","CasinoCalendarDailyDescription svelte-1fgc73g"),p.a=m,e.attr(h,"class","MoreInfoButton svelte-1fgc73g"),e.attr(y,"class","CasinoCalendarTabs svelte-1fgc73g"),e.attr(t,"class","CasinoCalendarDailyDetailsParent svelte-1fgc73g")},m(T,D){e.insert(T,t,D),e.append(t,l),l.innerHTML=n,e.append(t,d),e.append(t,o),e.append(o,s),e.append(t,c),e.append(t,v),v.innerHTML=_,e.append(t,b),e.append(t,y),e.append(y,h),p.m(a[0],h),e.append(h,m),F.m(h,null),e.append(y,f),w&&w.m(y,null),e.append(t,C),u||(M=e.listen(h,"click",B),u=!0)},p(T,D){a=T,D[0]&8&&n!==(n=a[28].title+"")&&(l.innerHTML=n),D[0]&8&&!e.src_url_equal(s.src,r=a[28].image)&&e.attr(s,"src",r),D[0]&8&&g!==(g=a[28].image)&&e.attr(s,"alt",g),D[0]&8&&_!==(_=a[28].description+"")&&(v.innerHTML=_),D[0]&1&&p.p(a[0]),L!==(L=I(a))&&(F.d(1),F=L(a),F&&(F.c(),F.m(h,null))),a[28].expandedInfo==!0?w?w.p(a,D):(w=j(a),w.c(),w.m(y,null)):w&&(w.d(1),w=null)},d(T){T&&e.detach(t),F.d(),w&&w.d(),u=!1,M()}}}function ee(a){let t,l,n,d;const o=[X,Q,K],s=[];function r(g,c){return g[4]?1:2}return l=r(a),n=s[l]=o[l](a),{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-1fgc73g")},m(g,c){e.insert(g,t,c),s[l].m(t,null),a[21](t),d=!0},p(g,c){let v=l;l=r(g),l===v?s[l].p(g,c):(e.group_outros(),e.transition_out(s[v],1,1,()=>{s[v]=null}),e.check_outros(),n=s[l],n?n.p(g,c):(n=s[l]=o[l](g),n.c()),e.transition_in(n,1),n.m(t,null))},i(g){d||(e.transition_in(n),d=!0)},o(g){e.transition_out(n),d=!1},d(g){g&&e.detach(t),s[l].d(),a[21](null)}}}function te(a,t,l){let{$$slots:n={},$$scope:d}=t,{dailybackground:o=""}=t,{dailybuttontitle:s=""}=t,{dailyday:r=""}=t,{dailydescription:g="<p></p>"}=t,{dailyicon:c=""}=t,{dailytitle:v=""}=t,{lang:_="en"}=t,{clientstyling:b=""}=t,{clientstylingurl:y=""}=t,{translationUrl:h=""}=t,p=[],m=!0,f=!1,C=window.navigator.userAgent,u;O({withLocale:"en",translations:{}});const M=i=>{i.data.type=="DailyEventsData"&&(l(4,m=!1),l(3,p=i.data.data),p.forEach(k=>{k.expandedInfo=!1,k.detailsExpanded=!1,k.selectedTab=0,k.details.forEach((x,E)=>{x.expandedTab=E==0})}))},I=()=>{window.postMessage({type:"ModalClosed"},window.location.href),p.forEach((i,k)=>{i.detailsExpanded=k==0,i.expandedInfo=k==0,i.selectedTab=0})},L=()=>{W(_)},F=i=>{l(3,p[i].detailsExpanded=!p[i].detailsExpanded,p),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},B=(i,k,x)=>{l(3,p[x].selectedTab=k,p),i.details.forEach((E,R)=>{p[x].selectedTab!=R?E.expandedTab=!1:E.expandedTab=!0})},w=()=>{let i=document.createElement("style");i.innerHTML=b,u.appendChild(i)},T=()=>{let i=new URL(y),k=document.createElement("style");fetch(i.href).then(x=>x.text()).then(x=>{k.innerHTML=x,setTimeout(()=>{u.appendChild(k)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",M,!1),e.isMobile(C)&&l(5,f=!0),()=>{window.removeEventListener("message",M)}));const D=(i,k,x)=>{l(3,k[x].expandedInfo=!i.expandedInfo,p),F(x)},V=(i,k,x)=>{B(i,k,x)};function P(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,l(2,u)})}return a.$$set=i=>{"dailybackground"in i&&l(9,o=i.dailybackground),"dailybuttontitle"in i&&l(0,s=i.dailybuttontitle),"dailyday"in i&&l(1,r=i.dailyday),"dailydescription"in i&&l(10,g=i.dailydescription),"dailyicon"in i&&l(11,c=i.dailyicon),"dailytitle"in i&&l(12,v=i.dailytitle),"lang"in i&&l(13,_=i.lang),"clientstyling"in i&&l(14,b=i.clientstyling),"clientstylingurl"in i&&l(15,y=i.clientstylingurl),"translationUrl"in i&&l(16,h=i.translationUrl),"$$scope"in i&&l(17,d=i.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&8192&&_&&L(),a.$$.dirty[0]&16388&&b&&u&&w(),a.$$.dirty[0]&32772&&y&&u&&T()},[s,r,u,p,m,f,I,F,B,o,g,c,v,_,b,y,h,d,n,D,V,P]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,te,ee,e.safe_not_equal,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},G,[-1,-1])}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get dailyday(){return this.$$.ctx[1]}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 dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),e.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),e.flush()}}e.create_custom_element(N,{dailybackground:{},dailybuttontitle:{},dailyday:{},dailydescription:{},dailyicon:{},dailytitle:{},lang:{},clientstyling:{},clientstylingurl:{},translationUrl:{}},["close"],[],!0);exports.default=N;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-egUFg4eK.cjs");function B({withLocale:i,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function M(i){e.append_styles(i,"svelte-128e4zn",'.svelte-128e4zn.svelte-128e4zn,.svelte-128e4zn.svelte-128e4zn::before,.svelte-128e4zn.svelte-128e4zn::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container.svelte-128e4zn.svelte-128e4zn{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container.svelte-128e4zn.svelte-128e4zn::-webkit-scrollbar{display:none}.CalendarBar.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn::before{content:"";position:absolute;z-index:-1}.RingLeft.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{animation:svelte-128e4zn-tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes svelte-128e4zn-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.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{width:100%}.CasinoCalendarItemBackground.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{height:20px;margin:15px}.CasinoCalendarDailyIcon.svelte-128e4zn img.svelte-128e4zn{max-height:28px}.CasinoCalendarDailyTitle.svelte-128e4zn.svelte-128e4zn{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription.svelte-128e4zn.svelte-128e4zn{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton.svelte-128e4zn.svelte-128e4zn{width:100%;text-align:center}.MoreInfoButton.svelte-128e4zn.svelte-128e4zn{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(i){let t,a,v,c,g,y,l,f,o,p,h,u,d,w,m,_,b,x,k,z,C,F,n;return{c(){t=e.element("div"),a=e.element("div"),v=e.element("div"),c=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft svelte-128e4zn"></div> <div class="RingRight svelte-128e4zn"></div>',y=e.space(),l=e.element("div"),f=e.element("div"),o=e.element("img"),h=e.space(),u=e.element("div"),d=e.text(i[2]),w=e.space(),m=e.element("div"),_=e.space(),b=e.element("div"),x=e.element("button"),k=e.text(i[3]),e.attr(g,"class","CalendarBar svelte-128e4zn"),e.src_url_equal(o.src,p=i[1])||e.attr(o,"src",p),e.attr(o,"alt",i[1]),e.attr(o,"class","svelte-128e4zn"),e.attr(f,"class","CasinoCalendarDailyIcon svelte-128e4zn"),e.attr(u,"class","CasinoCalendarDailyTitle svelte-128e4zn"),e.attr(m,"class","CasinoCalendarDailyItemDescription svelte-128e4zn"),e.attr(x,"class","MoreInfoButton svelte-128e4zn"),e.attr(b,"class","CasinoCalendarDailyItemButton svelte-128e4zn"),e.attr(l,"class",z="CasinoCalendarItemBackground CalendarPage "+(i[4]=="OpenCalendarModal"?"Tear":"")+" svelte-128e4zn"),e.set_style(l,"background-image","url('"+i[0]+"')"),e.set_style(l,"background-size","cover"),e.set_style(l,"background-position","center"),e.set_style(l,"-webkit-background-size","cover"),e.set_style(l,"-moz-background-size","cover"),e.set_style(l,"-o-background-size","cover"),e.attr(c,"class","CalendarCard svelte-128e4zn"),e.attr(v,"class","CasinoCalendarItems svelte-128e4zn"),e.attr(a,"class",C="Container "+(i[7]?"Mobile":"")+" svelte-128e4zn"),e.attr(t,"class","svelte-128e4zn")},m(s,r){e.insert(s,t,r),e.append(t,a),e.append(a,v),e.append(v,c),e.append(c,g),e.append(c,y),e.append(c,l),e.append(l,f),e.append(f,o),e.append(l,h),e.append(l,u),e.append(u,d),e.append(l,w),e.append(l,m),i[13](m),e.append(l,_),e.append(l,b),e.append(b,x),e.append(x,k),i[15](t),F||(n=e.listen(x,"click",i[14]),F=!0)},p(s,[r]){r&2&&!e.src_url_equal(o.src,p=s[1])&&e.attr(o,"src",p),r&2&&e.attr(o,"alt",s[1]),r&4&&e.set_data(d,s[2]),r&8&&e.set_data(k,s[3]),r&16&&z!==(z="CasinoCalendarItemBackground CalendarPage "+(s[4]=="OpenCalendarModal"?"Tear":"")+" svelte-128e4zn")&&e.attr(l,"class",z),r&1&&e.set_style(l,"background-image","url('"+s[0]+"')"),r&128&&C!==(C="Container "+(s[7]?"Mobile":"")+" svelte-128e4zn")&&e.attr(a,"class",C)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[13](null),i[15](null),F=!1,n()}}}function L(i,t,a){let{lang:v=""}=t,{dailybackground:c=""}=t,{dailyicon:g=""}=t,{dailyday:y=""}=t,{dailydescription:l="<p></p>"}=t,{dailybuttontitle:f=""}=t,{index:o="0"}=t,{clientstyling:p=""}=t,{clientstylingurl:h=""}=t;B({withLocale:"en",translations:{}});let u,d,w=!1,m=window.navigator.userAgent;const _=()=>{let n=document.createElement("div");n.innerHTML=l,u&&u.append(n)},b=()=>{window.postMessage({type:"OpenCalendar",index:o},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})},x=()=>{let n=document.createElement("style");n.innerHTML=p,d.appendChild(n)},k=()=>{let n=new URL(h),s=document.createElement("style");fetch(n.href).then(r=>r.text()).then(r=>{s.innerHTML=r,setTimeout(()=>{d.appendChild(s)},1),setTimeout(()=>{},500)})};e.onMount(()=>{e.isMobile(m)&&a(7,w=!0)});function z(n){e.binding_callbacks[n?"unshift":"push"](()=>{u=n,a(6,u)})}const C=()=>b();function F(n){e.binding_callbacks[n?"unshift":"push"](()=>{d=n,a(5,d)})}return i.$$set=n=>{"lang"in n&&a(9,v=n.lang),"dailybackground"in n&&a(0,c=n.dailybackground),"dailyicon"in n&&a(1,g=n.dailyicon),"dailyday"in n&&a(2,y=n.dailyday),"dailydescription"in n&&a(10,l=n.dailydescription),"dailybuttontitle"in n&&a(3,f=n.dailybuttontitle),"index"in n&&a(4,o=n.index),"clientstyling"in n&&a(11,p=n.clientstyling),"clientstylingurl"in n&&a(12,h=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&1039&&g&&y&&l&&f&&c&&_(),i.$$.dirty&2080&&p&&d&&x(),i.$$.dirty&4128&&h&&d&&k()},[c,g,y,f,o,d,u,w,b,v,l,p,h,z,C,F]}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;