@everymatrix/casino-lobby 1.53.0 → 1.53.10

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 (58) hide show
  1. package/components/{CasinoCalendar-0AyYaYr6.js → CasinoCalendar-Ic3lq1UY.js} +1738 -1707
  2. package/components/CasinoCalendarDailyDetails-buDoufAV.js +701 -0
  3. package/components/CasinoCalendarDailyItem-koPRd703.js +315 -0
  4. package/components/{CasinoCategoriesSlider-DZ3Xi2sD.js → CasinoCategoriesSlider-Bp9JHeM_.js} +24 -24
  5. package/components/{CasinoCollectionsProviders-CNZ2cCAe.js → CasinoCollectionsProviders-CrpNb22N.js} +241 -246
  6. package/components/{CasinoFavoritesSection-nPP9uMBT.js → CasinoFavoritesSection-C1XEW6Z6.js} +19 -19
  7. package/components/{CasinoFilter-CxB9D2A4.js → CasinoFilter-CYZHW74M.js} +79 -80
  8. package/components/{CasinoGamePage-CDh-e6Wj.js → CasinoGamePage-CCqWDOmI.js} +1280 -1301
  9. package/components/{CasinoGameThumbnail-B7A74Vsr.js → CasinoGameThumbnail-zLPpnkNm.js} +342 -358
  10. package/components/{CasinoGamesCategorySection-DcPbkQ1J.js → CasinoGamesCategorySection-DMGyKJ-j.js} +1104 -1135
  11. package/components/{CasinoJackpotBanner-DPuhYIS9.js → CasinoJackpotBanner-CL7SMQDH.js} +174 -178
  12. package/components/{CasinoLastPlayedSection-Bh4HPjN6.js → CasinoLastPlayedSection-Cm6BF1pV.js} +20 -20
  13. package/components/{CasinoLobby-D9bnqJ-e.js → CasinoLobby-DPo1HzH2.js} +56 -56
  14. package/components/{CasinoModal-CDlxjS83.js → CasinoModal-z0xixUlG.js} +66 -66
  15. package/components/{CasinoMostPlayedSection-Dvzz1ZMp.js → CasinoMostPlayedSection-CA67PY54.js} +26 -26
  16. package/components/{CasinoMyGames-DcQjF0G5.js → CasinoMyGames-DvJ46R6O.js} +72 -73
  17. package/components/{CasinoPage-HvM3Nh7b.js → CasinoPage-CfEe4r2D.js} +812 -815
  18. package/components/{CasinoRandomGame-Cw331FLx.js → CasinoRandomGame-efA8CEqy.js} +232 -248
  19. package/components/{CasinoSearch-DE7Dd1yO.js → CasinoSearch-CZ5ggDbP.js} +232 -234
  20. package/components/{CasinoSlider-b2MX1hWZ.js → CasinoSlider-BPqJIB5d.js} +226 -232
  21. package/components/{CasinoSort-ContI1pC.js → CasinoSort-CBtcK7i0.js} +19 -20
  22. package/components/{CasinoWinners-BZNLRgvw.js → CasinoWinners-Db2ivy-R.js} +151 -153
  23. package/components/{GeneralAnimationLoading-C-B40oIV.js → GeneralAnimationLoading-DiwFEyef.js} +3 -3
  24. package/esnext/casino-lobby.js +14 -0
  25. package/package.json +8 -15
  26. package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-BrayzMrR.js} +45 -63
  27. package/stencil/index-47910d1c-CWwDm8i3.js +623 -0
  28. package/components/CasinoCalendar-aMUXtMPt.cjs +0 -9
  29. package/components/CasinoCalendarDailyDetails-Djpw089y.js +0 -605
  30. package/components/CasinoCalendarDailyDetails-DvaXsJ6J.cjs +0 -1
  31. package/components/CasinoCalendarDailyItem-BNFG5z35.js +0 -220
  32. package/components/CasinoCalendarDailyItem-CMMlKWuC.cjs +0 -1
  33. package/components/CasinoCategoriesSlider-C6tCM7PI.cjs +0 -1
  34. package/components/CasinoCollectionsProviders-BrLC6Grn.cjs +0 -1
  35. package/components/CasinoFavoritesSection-BKjicWtD.cjs +0 -1
  36. package/components/CasinoFilter-DdhssY81.cjs +0 -1
  37. package/components/CasinoGamePage-D-wyPyQN.cjs +0 -18
  38. package/components/CasinoGameThumbnail-DpkiaEqW.cjs +0 -38
  39. package/components/CasinoGamesCategorySection-Cc1Rm1Na.cjs +0 -1
  40. package/components/CasinoJackpotBanner-BlShS5Vc.cjs +0 -1
  41. package/components/CasinoLastPlayedSection-B31ODrlT.cjs +0 -1
  42. package/components/CasinoLobby-Div4S8Zy.cjs +0 -1
  43. package/components/CasinoModal-BYPHyNGp.cjs +0 -1
  44. package/components/CasinoMostPlayedSection-DqIAwpb6.cjs +0 -1
  45. package/components/CasinoMyGames-BFpFNq0j.cjs +0 -1
  46. package/components/CasinoPage-DuifBwkY.cjs +0 -1
  47. package/components/CasinoRandomGame-BpdxwlFB.cjs +0 -2
  48. package/components/CasinoSearch-Btc8Ivnp.cjs +0 -1
  49. package/components/CasinoSlider-GXmtset2.cjs +0 -1
  50. package/components/CasinoSort-Bb3WIr_q.cjs +0 -1
  51. package/components/CasinoWinners-B4eUo0-6.cjs +0 -1
  52. package/components/GeneralAnimationLoading-CtmRY9AI.cjs +0 -1
  53. package/es2015/casino-lobby.cjs +0 -1
  54. package/es2015/casino-lobby.js +0 -16
  55. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  56. package/stencil/casino-play-random-game-CQe5iDJ8.cjs +0 -371
  57. package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
  58. package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
@@ -1,605 +0,0 @@
1
- import { $ as P, a as ne, S as oe, i as se, f as I, c as re, s as de, b as ce, e as y, d as T, t as R, g as ue, h as G, j as M, o as fe, k as ge, l as me, m as he, n as pe, p as q, q as E, r as be, u as a, v as m, w as W, x as _e, y as ye, z as we, A as ve, B as te, C as U, D as J, E as z, F as ke, G as K, H as Ce } from "./CasinoCalendar-0AyYaYr6.js";
2
- function xe({ withLocale: l, translations: e }) {
3
- P.subscribe((t) => {
4
- t == null && (ne.set(e), P.set(l));
5
- });
6
- }
7
- function Fe(l) {
8
- P.set(l);
9
- }
10
- function De(l) {
11
- ce(l, "svelte-uxbccb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-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{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{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emw--color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emw--color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emw--gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emw--color-white, #FFFFFF) 55%, var(--emw--color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails{overflow:hidden;width:110%;border-bottom:1px solid var(--emw--casino-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);background:var(--emw--casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-300, #58586B)}.DetailsTabsTitles{display:flex;flex-direction:row}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{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{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.Mobile{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, c, r, o, s, u, d, b, w;
24
- const v = (
25
- /*#slots*/
26
- l[18].close
27
- ), k = pe(
28
- v,
29
- l,
30
- /*$$scope*/
31
- l[17],
32
- X
33
- ), _ = k || Ie();
34
- let h = q(
35
- /*dailyeventsDetails*/
36
- l[3]
37
- ), p = [];
38
- for (let f = 0; f < h.length; f += 1)
39
- p[f] = ee(O(l, h, f));
40
- return {
41
- c() {
42
- e = y("div"), t = y("div"), i = y("span"), _ && _.c(), c = E(), r = y("div"), o = be(
43
- /*dailyday*/
44
- l[1]
45
- ), s = E();
46
- for (let f = 0; f < p.length; f += 1)
47
- p[f].c();
48
- a(i, "class", "ModalCloseBtn"), a(i, "role", "button"), a(r, "class", "CasinoCalendarDailyDay"), a(t, "class", "HeaderDailyDetails"), a(e, "class", u = "CasinoCalendarDailyDetailsBackground " + /*mobileView*/
49
- (l[5] ? "Mobile" : ""));
50
- },
51
- m(f, F) {
52
- T(f, e, F), m(e, t), m(t, i), _ && _.m(i, null), m(t, c), m(t, r), m(r, o), m(e, s);
53
- for (let g = 0; g < p.length; g += 1)
54
- p[g] && p[g].m(e, null);
55
- d = !0, b || (w = W(
56
- i,
57
- "click",
58
- /*closeModal*/
59
- l[6]
60
- ), b = !0);
61
- },
62
- p(f, F) {
63
- if (k && k.p && (!d || F[0] & /*$$scope*/
64
- 131072) && _e(
65
- k,
66
- v,
67
- f,
68
- /*$$scope*/
69
- f[17],
70
- d ? we(
71
- v,
72
- /*$$scope*/
73
- f[17],
74
- F,
75
- Te
76
- ) : ye(
77
- /*$$scope*/
78
- f[17]
79
- ),
80
- X
81
- ), (!d || F[0] & /*dailyday*/
82
- 2) && ve(
83
- o,
84
- /*dailyday*/
85
- f[1]
86
- ), F[0] & /*dailyeventsDetails, setActiveTab, handleDetailsArea, dailybuttontitle*/
87
- 393) {
88
- h = q(
89
- /*dailyeventsDetails*/
90
- f[3]
91
- );
92
- let g;
93
- for (g = 0; g < h.length; g += 1) {
94
- const S = O(f, h, g);
95
- p[g] ? p[g].p(S, F) : (p[g] = ee(S), p[g].c(), p[g].m(e, null));
96
- }
97
- for (; g < p.length; g += 1)
98
- p[g].d(1);
99
- p.length = h.length;
100
- }
101
- (!d || F[0] & /*mobileView*/
102
- 32 && u !== (u = "CasinoCalendarDailyDetailsBackground " + /*mobileView*/
103
- (f[5] ? "Mobile" : ""))) && a(e, "class", u);
104
- },
105
- i(f) {
106
- d || (G(_, f), d = !0);
107
- },
108
- o(f) {
109
- R(_, f), d = !1;
110
- },
111
- d(f) {
112
- f && M(e), _ && _.d(f), te(p, f), b = !1, w();
113
- }
114
- };
115
- }
116
- function Le(l) {
117
- let e;
118
- return {
119
- c() {
120
- e = y("p"), e.textContent = "Loading ...", a(e, "class", "SearchLoading"), 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 = y("p"), e.textContent = "500 Error - Internal Server Error", a(e, "class", "SearchLoading"), 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(e, "class", "w-6 h-6"), 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, c) {
157
- T(i, e, c), m(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(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(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"), a(e, "class", "IconDown");
170
- },
171
- m(i, c) {
172
- T(i, e, c), m(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(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(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"), a(e, "class", "IconUp");
184
- },
185
- m(i, c) {
186
- T(i, e, c), m(e, t);
187
- },
188
- d(i) {
189
- i && M(e);
190
- }
191
- };
192
- }
193
- function Y(l) {
194
- let e, t, i, c = q(
195
- /*event*/
196
- l[28].details
197
- ), r = [];
198
- for (let s = 0; s < c.length; s += 1)
199
- r[s] = Z(Q(l, c, s));
200
- let o = (
201
- /*event*/
202
- l[28].detailsExpanded && $(l)
203
- );
204
- return {
205
- c() {
206
- e = y("div");
207
- for (let s = 0; s < r.length; s += 1)
208
- r[s].c();
209
- t = E(), o && o.c(), i = ke(), a(e, "class", "DetailsTabsTitles");
210
- },
211
- m(s, u) {
212
- T(s, e, u);
213
- for (let d = 0; d < r.length; d += 1)
214
- r[d] && r[d].m(e, null);
215
- T(s, t, u), o && o.m(s, u), T(s, i, u);
216
- },
217
- p(s, u) {
218
- if (u[0] & /*dailyeventsDetails, setActiveTab*/
219
- 264) {
220
- c = q(
221
- /*event*/
222
- s[28].details
223
- );
224
- let d;
225
- for (d = 0; d < c.length; d += 1) {
226
- const b = Q(s, c, d);
227
- r[d] ? r[d].p(b, u) : (r[d] = Z(b), r[d].c(), r[d].m(e, null));
228
- }
229
- for (; d < r.length; d += 1)
230
- r[d].d(1);
231
- r.length = c.length;
232
- }
233
- /*event*/
234
- s[28].detailsExpanded ? o ? o.p(s, u) : (o = $(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
235
- },
236
- d(s) {
237
- s && (M(e), M(t), M(i)), te(r, s), o && o.d(s);
238
- }
239
- };
240
- }
241
- function Z(l) {
242
- let e, t, i, c = (
243
- /*detail*/
244
- l[31].title + ""
245
- ), r, o, s, u, d;
246
- function b() {
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 = y("div"), t = y("div"), i = y("button"), o = E(), a(i, "class", r = "HeaderButton " + /*i*/
262
- (l[33] === /*event*/
263
- l[28].selectedTab ? "Active" : "")), a(t, "class", "Header"), a(e, "class", s = /*i*/
264
- l[33] === /*event*/
265
- l[28].selectedTab ? "SelectedTab" : ""), a(e, "id", "CollapseMoreInfoButton"), K(
266
- e,
267
- "height",
268
- /*event*/
269
- l[28].expandedInfo ? "100%" : ""
270
- );
271
- },
272
- m(w, v) {
273
- T(w, e, v), m(e, t), m(t, i), i.innerHTML = c, m(e, o), u || (d = W(i, "click", b), u = !0);
274
- },
275
- p(w, v) {
276
- l = w, v[0] & /*dailyeventsDetails*/
277
- 8 && c !== (c = /*detail*/
278
- l[31].title + "") && (i.innerHTML = c), v[0] & /*dailyeventsDetails*/
279
- 8 && r !== (r = "HeaderButton " + /*i*/
280
- (l[33] === /*event*/
281
- l[28].selectedTab ? "Active" : "")) && a(i, "class", r), v[0] & /*dailyeventsDetails*/
282
- 8 && s !== (s = /*i*/
283
- l[33] === /*event*/
284
- l[28].selectedTab ? "SelectedTab" : "") && a(e, "class", s), v[0] & /*dailyeventsDetails*/
285
- 8 && K(
286
- e,
287
- "height",
288
- /*event*/
289
- l[28].expandedInfo ? "100%" : ""
290
- );
291
- },
292
- d(w) {
293
- w && M(e), u = !1, d();
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 = y("div"), a(e, "class", i = "DetailTabsDescription " + /*event*/
308
- (l[28].details[
309
- /*event*/
310
- l[28].selectedTab
311
- ].expandedTab ? "" : "NotVisible"));
312
- },
313
- m(c, r) {
314
- T(c, e, r), e.innerHTML = t;
315
- },
316
- p(c, r) {
317
- r[0] & /*dailyeventsDetails*/
318
- 8 && t !== (t = /*event*/
319
- c[28].details[
320
- /*event*/
321
- c[28].selectedTab
322
- ].description + "") && (e.innerHTML = t), r[0] & /*dailyeventsDetails*/
323
- 8 && i !== (i = "DetailTabsDescription " + /*event*/
324
- (c[28].details[
325
- /*event*/
326
- c[28].selectedTab
327
- ].expandedTab ? "" : "NotVisible")) && a(e, "class", i);
328
- },
329
- d(c) {
330
- c && M(e);
331
- }
332
- };
333
- }
334
- function ee(l) {
335
- let e, t, i = (
336
- /*event*/
337
- l[28].title + ""
338
- ), c, r, o, s, u, d, b, w = (
339
- /*event*/
340
- l[28].description + ""
341
- ), v, k, _, h, p, f, F, g, 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 = y("div"), t = y("div"), c = E(), r = y("div"), o = y("img"), d = E(), b = y("div"), v = E(), k = y("div"), _ = y("button"), h = new Ce(!1), p = E(), L.c(), f = E(), C && C.c(), F = E(), a(t, "class", "CasinoCalendarDailyTitle"), a(o, "class", "CasinoCalendarFitImage"), J(o.src, s = /*event*/
369
- l[28].image) || a(o, "src", s), a(o, "alt", u = /*event*/
370
- l[28].image), a(r, "class", "CasinoCalendarImage"), a(b, "class", "CasinoCalendarDailyDescription"), h.a = p, a(_, "class", "MoreInfoButton"), a(k, "class", "CasinoCalendarTabs"), a(e, "class", "CasinoCalendarDailyDetailsParent");
371
- },
372
- m(H, B) {
373
- T(H, e, B), m(e, t), t.innerHTML = i, m(e, c), m(e, r), m(r, o), m(e, d), m(e, b), b.innerHTML = w, m(e, v), m(e, k), m(k, _), h.m(
374
- /*dailybuttontitle*/
375
- l[0],
376
- _
377
- ), m(_, p), L.m(_, null), m(k, f), C && C.m(k, null), m(e, F), g || (S = W(_, "click", N), g = !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(o.src, s = /*event*/
384
- l[28].image) && a(o, "src", s), B[0] & /*dailyeventsDetails*/
385
- 8 && u !== (u = /*event*/
386
- l[28].image) && a(o, "alt", u), B[0] & /*dailyeventsDetails*/
387
- 8 && w !== (w = /*event*/
388
- l[28].description + "") && (b.innerHTML = w), B[0] & /*dailybuttontitle*/
389
- 1 && h.p(
390
- /*dailybuttontitle*/
391
- l[0]
392
- ), j !== (j = A(l)) && (L.d(1), L = j(l), L && (L.c(), L.m(_, 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(), g = !1, S();
397
- }
398
- };
399
- }
400
- function Se(l) {
401
- let e, t, i, c;
402
- const r = [Be, Le, Me], o = [];
403
- function s(u, d) {
404
- return (
405
- /*isLoading*/
406
- u[4] ? 1 : 2
407
- );
408
- }
409
- return t = s(l), i = o[t] = r[t](l), {
410
- c() {
411
- e = y("div"), i.c();
412
- },
413
- m(u, d) {
414
- T(u, e, d), o[t].m(e, null), l[21](e), c = !0;
415
- },
416
- p(u, d) {
417
- let b = t;
418
- t = s(u), t === b ? o[t].p(u, d) : (ge(), R(o[b], 1, 1, () => {
419
- o[b] = null;
420
- }), ue(), i = o[t], i ? i.p(u, d) : (i = o[t] = r[t](u), i.c()), G(i, 1), i.m(e, null));
421
- },
422
- i(u) {
423
- c || (G(i), c = !0);
424
- },
425
- o(u) {
426
- R(i), c = !1;
427
- },
428
- d(u) {
429
- u && M(e), o[t].d(), l[21](null);
430
- }
431
- };
432
- }
433
- function Ue(l, e, t) {
434
- let { $$slots: i = {}, $$scope: c } = e, { dailybackground: r = "" } = e, { dailybuttontitle: o = "" } = e, { dailyday: s = "" } = e, { dailydescription: u = "<p></p>" } = e, { dailyicon: d = "" } = e, { dailytitle: b = "" } = e, { lang: w = "en" } = e, { clientstyling: v = "" } = e, { clientstylingurl: k = "" } = e, { translationUrl: _ = "" } = e, h = [], p = !0, f = !1, F = window.navigator.userAgent, g;
435
- xe({ withLocale: "en", translations: {} });
436
- const S = (n) => {
437
- n.data.type == "DailyEventsData" && (t(4, p = !1), t(3, h = n.data.data), h.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), h.forEach((n, x) => {
444
- n.detailsExpanded = x == 0, n.expandedInfo = x == 0, n.selectedTab = 0;
445
- });
446
- }, j = () => {
447
- Fe(w);
448
- }, L = (n) => {
449
- t(3, h[n].detailsExpanded = !h[n].detailsExpanded, h), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetDetails" });
450
- }, N = (n, x, D) => {
451
- t(3, h[D].selectedTab = x, h), n.details.forEach((V, ae) => {
452
- h[D].selectedTab != ae ? V.expandedTab = !1 : V.expandedTab = !0;
453
- });
454
- }, C = () => {
455
- let n = document.createElement("style");
456
- n.innerHTML = v, g.appendChild(n);
457
- }, H = () => {
458
- let n = new URL(k), x = document.createElement("style");
459
- fetch(n.href).then((D) => D.text()).then((D) => {
460
- x.innerHTML = D, setTimeout(
461
- () => {
462
- g.appendChild(x);
463
- },
464
- 1
465
- ), setTimeout(
466
- () => {
467
- },
468
- 500
469
- );
470
- });
471
- };
472
- fe(() => (window.addEventListener("message", S, !1), me(F) && t(5, f = !0), () => {
473
- window.removeEventListener("message", S);
474
- }));
475
- const B = (n, x, D) => {
476
- t(3, x[D].expandedInfo = !n.expandedInfo, h), L(D);
477
- }, le = (n, x, D) => {
478
- N(n, x, D);
479
- };
480
- function ie(n) {
481
- he[n ? "unshift" : "push"](() => {
482
- g = n, t(2, g);
483
- });
484
- }
485
- return l.$$set = (n) => {
486
- "dailybackground" in n && t(9, r = n.dailybackground), "dailybuttontitle" in n && t(0, o = n.dailybuttontitle), "dailyday" in n && t(1, s = n.dailyday), "dailydescription" in n && t(10, u = n.dailydescription), "dailyicon" in n && t(11, d = n.dailyicon), "dailytitle" in n && t(12, b = n.dailytitle), "lang" in n && t(13, w = n.lang), "clientstyling" in n && t(14, v = n.clientstyling), "clientstylingurl" in n && t(15, k = n.clientstylingurl), "translationUrl" in n && t(16, _ = n.translationUrl), "$$scope" in n && t(17, c = n.$$scope);
487
- }, l.$$.update = () => {
488
- l.$$.dirty[0] & /*lang*/
489
- 8192 && w && j(), l.$$.dirty[0] & /*clientstyling, customStylingContainer*/
490
- 16388 && v && g && C(), l.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
491
- 32772 && k && g && H();
492
- }, [
493
- o,
494
- s,
495
- g,
496
- h,
497
- p,
498
- f,
499
- A,
500
- L,
501
- N,
502
- r,
503
- u,
504
- d,
505
- b,
506
- w,
507
- v,
508
- k,
509
- _,
510
- c,
511
- i,
512
- B,
513
- le,
514
- ie
515
- ];
516
- }
517
- class je extends oe {
518
- constructor(e) {
519
- super(), se(
520
- this,
521
- e,
522
- Ue,
523
- Se,
524
- de,
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
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.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-uxbccb","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-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{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{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emw--color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emw--color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emw--gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emw--color-white, #FFFFFF) 55%, var(--emw--color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails{overflow:hidden;width:110%;border-bottom:1px solid var(--emw--casino-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);background:var(--emw--casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-300, #58586B)}.DetailsTabsTitles{display:flex;flex-direction:row}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{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{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.Mobile{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,c,s,r,o,u,d,h,b;const y=a[18].close,w=e.create_slot(y,a,a[17],U),_=w||Y();let g=e.ensure_array_like(a[3]),m=[];for(let f=0;f<g.length;f+=1)m[f]=q(H(a,g,f));return{c(){t=e.element("div"),l=e.element("div"),n=e.element("span"),_&&_.c(),c=e.space(),s=e.element("div"),r=e.text(a[1]),o=e.space();for(let f=0;f<m.length;f+=1)m[f].c();e.attr(n,"class","ModalCloseBtn"),e.attr(n,"role","button"),e.attr(s,"class","CasinoCalendarDailyDay"),e.attr(l,"class","HeaderDailyDetails"),e.attr(t,"class",u="CasinoCalendarDailyDetailsBackground "+(a[5]?"Mobile":""))},m(f,C){e.insert(f,t,C),e.append(t,l),e.append(l,n),_&&_.m(n,null),e.append(l,c),e.append(l,s),e.append(s,r),e.append(t,o);for(let p=0;p<m.length;p+=1)m[p]&&m[p].m(t,null);d=!0,h||(b=e.listen(n,"click",a[6]),h=!0)},p(f,C){if(w&&w.p&&(!d||C[0]&131072)&&e.update_slot_base(w,y,f,f[17],d?e.get_slot_changes(y,f[17],C,J):e.get_all_dirty_from_scope(f[17]),U),(!d||C[0]&2)&&e.set_data(r,f[1]),C[0]&393){g=e.ensure_array_like(f[3]);let p;for(p=0;p<g.length;p+=1){const M=H(f,g,p);m[p]?m[p].p(M,C):(m[p]=q(M),m[p].c(),m[p].m(t,null))}for(;p<m.length;p+=1)m[p].d(1);m.length=g.length}(!d||C[0]&32&&u!==(u="CasinoCalendarDailyDetailsBackground "+(f[5]?"Mobile":"")))&&e.attr(t,"class",u)},i(f){d||(e.transition_in(_,f),d=!0)},o(f){e.transition_out(_,f),d=!1},d(f){f&&e.detach(t),_&&_.d(f),e.destroy_each(m,f),h=!1,b()}}}function Q(a){let t;return{c(){t=e.element("p"),t.textContent="Loading ...",e.attr(t,"class","SearchLoading"),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"),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(t,"class","w-6 h-6"),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,c){e.insert(n,t,c),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(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(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"),e.attr(t,"class","IconDown")},m(n,c){e.insert(n,t,c),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(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(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"),e.attr(t,"class","IconUp")},m(n,c){e.insert(n,t,c),e.append(t,l)},d(n){n&&e.detach(t)}}}function j(a){let t,l,n,c=e.ensure_array_like(a[28].details),s=[];for(let o=0;o<c.length;o+=1)s[o]=z(S(a,c,o));let r=a[28].detailsExpanded&&A(a);return{c(){t=e.element("div");for(let o=0;o<s.length;o+=1)s[o].c();l=e.space(),r&&r.c(),n=e.empty(),e.attr(t,"class","DetailsTabsTitles")},m(o,u){e.insert(o,t,u);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);e.insert(o,l,u),r&&r.m(o,u),e.insert(o,n,u)},p(o,u){if(u[0]&264){c=e.ensure_array_like(o[28].details);let d;for(d=0;d<c.length;d+=1){const h=S(o,c,d);s[d]?s[d].p(h,u):(s[d]=z(h),s[d].c(),s[d].m(t,null))}for(;d<s.length;d+=1)s[d].d(1);s.length=c.length}o[28].detailsExpanded?r?r.p(o,u):(r=A(o),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(o){o&&(e.detach(t),e.detach(l),e.detach(n)),e.destroy_each(s,o),r&&r.d(o)}}}function z(a){let t,l,n,c=a[31].title+"",s,r,o,u,d;function h(){return a[20](a[28],a[33],a[30])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("button"),r=e.space(),e.attr(n,"class",s="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")),e.attr(l,"class","Header"),e.attr(t,"class",o=a[33]===a[28].selectedTab?"SelectedTab":""),e.attr(t,"id","CollapseMoreInfoButton"),e.set_style(t,"height",a[28].expandedInfo?"100%":"")},m(b,y){e.insert(b,t,y),e.append(t,l),e.append(l,n),n.innerHTML=c,e.append(t,r),u||(d=e.listen(n,"click",h),u=!0)},p(b,y){a=b,y[0]&8&&c!==(c=a[31].title+"")&&(n.innerHTML=c),y[0]&8&&s!==(s="HeaderButton "+(a[33]===a[28].selectedTab?"Active":""))&&e.attr(n,"class",s),y[0]&8&&o!==(o=a[33]===a[28].selectedTab?"SelectedTab":"")&&e.attr(t,"class",o),y[0]&8&&e.set_style(t,"height",a[28].expandedInfo?"100%":"")},d(b){b&&e.detach(t),u=!1,d()}}}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"))},m(c,s){e.insert(c,t,s),t.innerHTML=l},p(c,s){s[0]&8&&l!==(l=c[28].details[c[28].selectedTab].description+"")&&(t.innerHTML=l),s[0]&8&&n!==(n="DetailTabsDescription "+(c[28].details[c[28].selectedTab].expandedTab?"":"NotVisible"))&&e.attr(t,"class",n)},d(c){c&&e.detach(t)}}}function q(a){let t,l,n=a[28].title+"",c,s,r,o,u,d,h,b=a[28].description+"",y,w,_,g,m,f,C,p,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 v=a[28].expandedInfo==!0&&j(a);return{c(){t=e.element("div"),l=e.element("div"),c=e.space(),s=e.element("div"),r=e.element("img"),d=e.space(),h=e.element("div"),y=e.space(),w=e.element("div"),_=e.element("button"),g=new e.HtmlTag(!1),m=e.space(),F.c(),f=e.space(),v&&v.c(),C=e.space(),e.attr(l,"class","CasinoCalendarDailyTitle"),e.attr(r,"class","CasinoCalendarFitImage"),e.src_url_equal(r.src,o=a[28].image)||e.attr(r,"src",o),e.attr(r,"alt",u=a[28].image),e.attr(s,"class","CasinoCalendarImage"),e.attr(h,"class","CasinoCalendarDailyDescription"),g.a=m,e.attr(_,"class","MoreInfoButton"),e.attr(w,"class","CasinoCalendarTabs"),e.attr(t,"class","CasinoCalendarDailyDetailsParent")},m(T,D){e.insert(T,t,D),e.append(t,l),l.innerHTML=n,e.append(t,c),e.append(t,s),e.append(s,r),e.append(t,d),e.append(t,h),h.innerHTML=b,e.append(t,y),e.append(t,w),e.append(w,_),g.m(a[0],_),e.append(_,m),F.m(_,null),e.append(w,f),v&&v.m(w,null),e.append(t,C),p||(M=e.listen(_,"click",B),p=!0)},p(T,D){a=T,D[0]&8&&n!==(n=a[28].title+"")&&(l.innerHTML=n),D[0]&8&&!e.src_url_equal(r.src,o=a[28].image)&&e.attr(r,"src",o),D[0]&8&&u!==(u=a[28].image)&&e.attr(r,"alt",u),D[0]&8&&b!==(b=a[28].description+"")&&(h.innerHTML=b),D[0]&1&&g.p(a[0]),L!==(L=I(a))&&(F.d(1),F=L(a),F&&(F.c(),F.m(_,null))),a[28].expandedInfo==!0?v?v.p(a,D):(v=j(a),v.c(),v.m(w,null)):v&&(v.d(1),v=null)},d(T){T&&e.detach(t),F.d(),v&&v.d(),p=!1,M()}}}function ee(a){let t,l,n,c;const s=[X,Q,K],r=[];function o(u,d){return u[4]?1:2}return l=o(a),n=r[l]=s[l](a),{c(){t=e.element("div"),n.c()},m(u,d){e.insert(u,t,d),r[l].m(t,null),a[21](t),c=!0},p(u,d){let h=l;l=o(u),l===h?r[l].p(u,d):(e.group_outros(),e.transition_out(r[h],1,1,()=>{r[h]=null}),e.check_outros(),n=r[l],n?n.p(u,d):(n=r[l]=s[l](u),n.c()),e.transition_in(n,1),n.m(t,null))},i(u){c||(e.transition_in(n),c=!0)},o(u){e.transition_out(n),c=!1},d(u){u&&e.detach(t),r[l].d(),a[21](null)}}}function te(a,t,l){let{$$slots:n={},$$scope:c}=t,{dailybackground:s=""}=t,{dailybuttontitle:r=""}=t,{dailyday:o=""}=t,{dailydescription:u="<p></p>"}=t,{dailyicon:d=""}=t,{dailytitle:h=""}=t,{lang:b="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationUrl:_=""}=t,g=[],m=!0,f=!1,C=window.navigator.userAgent,p;O({withLocale:"en",translations:{}});const M=i=>{i.data.type=="DailyEventsData"&&(l(4,m=!1),l(3,g=i.data.data),g.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),g.forEach((i,k)=>{i.detailsExpanded=k==0,i.expandedInfo=k==0,i.selectedTab=0})},L=()=>{W(b)},F=i=>{l(3,g[i].detailsExpanded=!g[i].detailsExpanded,g),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},B=(i,k,x)=>{l(3,g[x].selectedTab=k,g),i.details.forEach((E,R)=>{g[x].selectedTab!=R?E.expandedTab=!1:E.expandedTab=!0})},v=()=>{let i=document.createElement("style");i.innerHTML=y,p.appendChild(i)},T=()=>{let i=new URL(w),k=document.createElement("style");fetch(i.href).then(x=>x.text()).then(x=>{k.innerHTML=x,setTimeout(()=>{p.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,g),F(x)},V=(i,k,x)=>{B(i,k,x)};function P(i){e.binding_callbacks[i?"unshift":"push"](()=>{p=i,l(2,p)})}return a.$$set=i=>{"dailybackground"in i&&l(9,s=i.dailybackground),"dailybuttontitle"in i&&l(0,r=i.dailybuttontitle),"dailyday"in i&&l(1,o=i.dailyday),"dailydescription"in i&&l(10,u=i.dailydescription),"dailyicon"in i&&l(11,d=i.dailyicon),"dailytitle"in i&&l(12,h=i.dailytitle),"lang"in i&&l(13,b=i.lang),"clientstyling"in i&&l(14,y=i.clientstyling),"clientstylingurl"in i&&l(15,w=i.clientstylingurl),"translationUrl"in i&&l(16,_=i.translationUrl),"$$scope"in i&&l(17,c=i.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&8192&&b&&L(),a.$$.dirty[0]&16388&&y&&p&&v(),a.$$.dirty[0]&32772&&w&&p&&T()},[r,o,p,g,m,f,I,F,B,s,u,d,h,b,y,w,_,c,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;