@everymatrix/casino-page-nd 1.94.3 → 1.94.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-q2qhYnFo.js → CasinoCalendar-BXqn5sSJ.js} +34 -34
- package/components/{CasinoCalendar-C-NS1Kfp.js → CasinoCalendar-DdqyHrIi.js} +33 -33
- package/components/{CasinoCalendar-DByT2ct6.cjs → CasinoCalendar-f9ob2sFv.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-mmPkwaAF.js → CasinoCalendarDailyDetails-BBe0-NK5.js} +35 -35
- package/components/{CasinoCalendarDailyDetails-MWunyvgY.cjs → CasinoCalendarDailyDetails-CHdX5zc8.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-D3eNeidE.js → CasinoCalendarDailyDetails-ewHsXmDz.js} +44 -44
- package/components/{CasinoCalendarDailyItem-BWZx8VFk.js → CasinoCalendarDailyItem-BisTMrw_.js} +33 -33
- package/components/{CasinoCalendarDailyItem-D6ste1Z2.cjs → CasinoCalendarDailyItem-Bo0BHXKg.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-vxExfFT0.js → CasinoCalendarDailyItem-Q3MzwDts.js} +35 -35
- package/components/{CasinoCollectionsProviders-KukLJl8J.js → CasinoCollectionsProviders-C7YIthiK.js} +54 -54
- package/components/{CasinoCollectionsProviders-5NBULY40.cjs → CasinoCollectionsProviders-CCZelLp2.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-CNbos-3x.js → CasinoCollectionsProviders-CU88qQMT.js} +77 -77
- package/components/{CasinoFavoritesSectionNd-CAqTRUuf.js → CasinoFavoritesSectionNd-CYfialzn.js} +19 -19
- package/components/{CasinoFavoritesSectionNd-Ba9qyA2F.cjs → CasinoFavoritesSectionNd-CZ1st2up.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-DA6j0FG9.js → CasinoFavoritesSectionNd-HKJugDpB.js} +30 -30
- package/components/{CasinoFilter-ByeYmsO7.cjs → CasinoFilter-BviseRbU.cjs} +1 -1
- package/components/{CasinoFilter-XYQwBf2w.js → CasinoFilter-Cd3YMCjI.js} +61 -61
- package/components/{CasinoFilter-aOPZQ_5P.js → CasinoFilter-DZtIPf04.js} +72 -72
- package/components/{CasinoGameThumbnailNd-BFV2BKrq.cjs → CasinoGameThumbnailNd-CIIH4ov5.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-LDL7BNRd.js → CasinoGameThumbnailNd-DfrIBuE8.js} +47 -47
- package/components/{CasinoGameThumbnailNd-LIHsUG8J.js → CasinoGameThumbnailNd-qZDUi7bK.js} +44 -44
- package/components/{CasinoGamesCategorySectionNd-RbW1hzqL.js → CasinoGamesCategorySectionNd-BeGuRKUV.js} +51 -51
- package/components/{CasinoGamesCategorySectionNd-idf79vaJ.cjs → CasinoGamesCategorySectionNd-DmcGqSFC.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-DVdTg_yy.js → CasinoGamesCategorySectionNd-QyzFexdL.js} +88 -88
- package/components/{CasinoJackpotBanner-CGIaGTAC.js → CasinoJackpotBanner-B_16bQIJ.js} +57 -57
- package/components/{CasinoJackpotBanner-C5HsqdnV.cjs → CasinoJackpotBanner-BgVQzBT9.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CMtNSA_r.js → CasinoJackpotBanner-Chzhtion.js} +97 -97
- package/components/{CasinoLastPlayedSectionNd-DC07ek-2.js → CasinoLastPlayedSectionNd-BOYA9BZi.js} +15 -15
- package/components/{CasinoLastPlayedSectionNd-B6fWMSgQ.js → CasinoLastPlayedSectionNd-CuKAruU8.js} +27 -27
- package/components/{CasinoLastPlayedSectionNd-B8kuny1L.cjs → CasinoLastPlayedSectionNd-KZNXKC5c.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-f62WC7NP.js → CasinoMostPlayedSectionNd-BNw2NHF0.js} +36 -36
- package/components/{CasinoMostPlayedSectionNd-9SCFCeBW.js → CasinoMostPlayedSectionNd-BYlAY4RO.js} +37 -37
- package/components/{CasinoMostPlayedSectionNd-CsdMJrjv.cjs → CasinoMostPlayedSectionNd-DKnN3rEW.cjs} +1 -1
- package/components/{CasinoMyGamesNd-o5LpAM1D.js → CasinoMyGamesNd-BGusGuB_.js} +25 -25
- package/components/{CasinoMyGamesNd-BAIOxa2p.js → CasinoMyGamesNd-C05ASC1X.js} +139 -139
- package/components/{CasinoMyGamesNd-DjyzKqS1.cjs → CasinoMyGamesNd-D6RmmeUO.cjs} +1 -1
- package/components/{CasinoPageNd-BcuTY-6e.js → CasinoPageNd-BYwB2SrU.js} +62 -62
- package/components/{CasinoPageNd-BVkrbA3i.js → CasinoPageNd-CvwQrmeC.js} +63 -63
- package/components/{CasinoPageNd-DEq5GSFb.cjs → CasinoPageNd-DkcMiqM_.cjs} +1 -1
- package/components/{CasinoRandomGame-b0_MLMRV.cjs → CasinoRandomGame-CSKHxblX.cjs} +1 -1
- package/components/{CasinoRandomGame-CgeaqahM.js → CasinoRandomGame-CoXgBuKo.js} +25 -25
- package/components/{CasinoRandomGame-CLu4T6m0.js → CasinoRandomGame-DZSB2qWm.js} +57 -57
- package/components/{CasinoSearchNd-Bb64n7kv.js → CasinoSearchNd-DnPGsjFN.js} +170 -166
- package/components/{CasinoSearchNd-Bxao6rT9.cjs → CasinoSearchNd-Drf3R8N1.cjs} +1 -1
- package/components/{CasinoSearchNd-CkqIm3El.js → CasinoSearchNd-sS9yxFZB.js} +196 -192
- package/components/{CasinoSort-CDLvBokZ.cjs → CasinoSort-Be7I-Bkl.cjs} +1 -1
- package/components/{CasinoSort-CSpQ6gK3.js → CasinoSort-CCDDquSi.js} +23 -23
- package/components/{CasinoSort-YARDmMyV.js → CasinoSort-CFbNQrwp.js} +40 -40
- package/components/CasinoWinners-B4wRzzvv.cjs +1 -0
- package/components/CasinoWinners-BOD7ymCO.js +994 -0
- package/components/CasinoWinners-DYeVwT_K.js +1012 -0
- package/components/{GeneralAnimationLoading-B6n7RN74.cjs → GeneralAnimationLoading-DD1kmHGW.cjs} +1 -1
- package/components/{GeneralAnimationLoading-nNckocU3.js → GeneralAnimationLoading-DLWyPAPZ.js} +4 -4
- package/components/{GeneralAnimationLoading-D8ua9Lqd.js → GeneralAnimationLoading-DSzlRxD5.js} +6 -6
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-calendar-DbDGa0f0.cjs → casino-calendar-BMr6vuSW.cjs} +1 -1
- package/lazy/{casino-calendar-BlZplDra.js → casino-calendar-BhmwgnLf.js} +1 -1
- package/lazy/{casino-calendar-DKid43IA.js → casino-calendar-CDGAH9KV.js} +1 -1
- package/lazy/{casino-calendar-daily-details-0B8st7E6.js → casino-calendar-daily-details-BZ6lWliO.js} +1 -1
- package/lazy/{casino-calendar-daily-details-BbM5JGn1.cjs → casino-calendar-daily-details-CkvPWhRn.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-DSmARibX.js → casino-calendar-daily-details-CreJXTIY.js} +1 -1
- package/lazy/{casino-calendar-daily-item-B-NoFyMP.js → casino-calendar-daily-item-B294skVH.js} +1 -1
- package/lazy/{casino-calendar-daily-item-D8IUpbhz.js → casino-calendar-daily-item-BPg2o_ak.js} +1 -1
- package/lazy/{casino-calendar-daily-item-B_wr0LDe.cjs → casino-calendar-daily-item-OzC20xXV.cjs} +1 -1
- package/lazy/{casino-collections-providers-LEY6tZ5p.js → casino-collections-providers-BmEfkamW.js} +1 -1
- package/lazy/{casino-collections-providers-C4bw7tw3.cjs → casino-collections-providers-CS7TN5Jq.cjs} +1 -1
- package/lazy/{casino-collections-providers-Cab8NZoY.js → casino-collections-providers-D-Lac16c.js} +1 -1
- package/lazy/{casino-favorites-section-nd-gXIsM8oi.js → casino-favorites-section-nd-BazZLv4x.js} +1 -1
- package/lazy/{casino-favorites-section-nd-BUdR-kW8.cjs → casino-favorites-section-nd-BbJYgzDZ.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd-DgYqS-SI.js → casino-favorites-section-nd-nPKsz6I2.js} +1 -1
- package/lazy/{casino-filter-WOHk7hlk.cjs → casino-filter-0hD3kNKp.cjs} +1 -1
- package/lazy/{casino-filter-INoqwNbg.js → casino-filter-BpUtqzOq.js} +1 -1
- package/lazy/{casino-filter-C50xKmke.js → casino-filter-LrYoEa2q.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-Db1JotW8.js → casino-game-thumbnail-nd-BpZR5RyP.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-oocPJbLy.js → casino-game-thumbnail-nd-Dw6vijuw.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-DN59tmB2.cjs → casino-game-thumbnail-nd-scS9CFBJ.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-BWtuz7Cl.cjs → casino-games-category-section-nd-BRF_H9fJ.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-KbhWUZ78.js → casino-games-category-section-nd-BlkiwQIq.js} +1 -1
- package/lazy/{casino-games-category-section-nd-CCQxS_aq.js → casino-games-category-section-nd-_dwBrjcT.js} +1 -1
- package/lazy/{casino-jackpot-banner-Mi5KJIBE.js → casino-jackpot-banner-7aQVJA-u.js} +1 -1
- package/lazy/{casino-jackpot-banner-BvF31VKi.js → casino-jackpot-banner-BZR61rlM.js} +1 -1
- package/lazy/{casino-jackpot-banner-COOo-Stw.cjs → casino-jackpot-banner-DqljUZ3D.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-BgynakZO.js → casino-last-played-section-nd-BCMeN_xL.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CTaViBzF.js → casino-last-played-section-nd-Dk09Q6Oo.js} +1 -1
- package/lazy/{casino-last-played-section-nd-bKCuFGxC.cjs → casino-last-played-section-nd-DyHep2bs.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-C_yziAjD.js → casino-most-played-section-nd-DGErR8Qy.js} +1 -1
- package/lazy/{casino-most-played-section-nd-DjGmVFDg.cjs → casino-most-played-section-nd-DeeoJS9L.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-DaWsWKCE.js → casino-most-played-section-nd-MahPsOcg.js} +1 -1
- package/lazy/{casino-my-games-nd-9yv_dkbo.js → casino-my-games-nd-B9th_ITS.js} +1 -1
- package/lazy/{casino-my-games-nd-4e7bqY5F.cjs → casino-my-games-nd-Bavk_uVF.cjs} +1 -1
- package/lazy/{casino-my-games-nd-C4M_mjPS.js → casino-my-games-nd-Cr4euW7O.js} +1 -1
- package/lazy/{casino-random-game-DtJE-pW1.js → casino-random-game-BCbXjFco.js} +1 -1
- package/lazy/{casino-random-game-DQ_qn-Du.js → casino-random-game-D89lDDvz.js} +1 -1
- package/lazy/{casino-random-game-D8U8qYZV.cjs → casino-random-game-DiBN599Y.cjs} +1 -1
- package/lazy/{casino-search-nd-C_bHpA7m.js → casino-search-nd-B-trMEPg.js} +1 -1
- package/lazy/{casino-search-nd-C99Ch0f_.cjs → casino-search-nd-B313a-hZ.cjs} +1 -1
- package/lazy/{casino-search-nd-BTx00AuJ.js → casino-search-nd-DX9y7hrV.js} +1 -1
- package/lazy/{casino-sort-CH-DXcel.js → casino-sort-BX6cf-yt.js} +1 -1
- package/lazy/{casino-sort-B7OyjeQO.cjs → casino-sort-DYdgpEhn.cjs} +1 -1
- package/lazy/{casino-sort-DNQfOdnW.js → casino-sort-LsdC94Za.js} +1 -1
- package/lazy/{casino-winners-Dh4rOE9G.cjs → casino-winners-B5_Q3bvn.cjs} +1 -1
- package/lazy/{casino-winners-C8-4ELNE.js → casino-winners-BORY4UJw.js} +1 -1
- package/lazy/{casino-winners-DmmNqEP-.js → casino-winners-I74kUrkL.js} +1 -1
- package/lazy/{general-animation-loading-DErr92-5.js → general-animation-loading--byYFuL2.js} +1 -1
- package/lazy/{general-animation-loading-D3OxDxVS.js → general-animation-loading-D1Tz4Ui8.js} +1 -1
- package/lazy/{general-animation-loading-DWXJ8m8m.cjs → general-animation-loading-oYXMnrSW.cjs} +1 -1
- package/package.json +1 -1
- package/components/CasinoWinners-89SogTym.js +0 -976
- package/components/CasinoWinners-BGhHNifw.js +0 -994
- package/components/CasinoWinners-K70uvVJQ.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../lazy/casino-calendar-daily-details-
|
|
3
|
-
import "../lazy/casino-calendar-daily-item-
|
|
1
|
+
import { c as K, b as Q, S as F, x as G, I as X, r as m, e as Y, B as L, n as p, y as b, o as h, f as v, i as Z, a as x, E as $, z as ee, g as le, N as ie, d as I, V as ae, q as P, m as te, Q as ne, s as re, M as n, J as se, K as oe, L as de, j as ce } from "./CasinoPageNd-BYwB2SrU.js";
|
|
2
|
+
import "../lazy/casino-calendar-daily-details-BZ6lWliO.js";
|
|
3
|
+
import "../lazy/casino-calendar-daily-item-BPg2o_ak.js";
|
|
4
4
|
function j(i, e) {
|
|
5
|
-
|
|
5
|
+
K(i, e);
|
|
6
6
|
}
|
|
7
7
|
function ue(i) {
|
|
8
|
-
|
|
8
|
+
Q.set(i);
|
|
9
9
|
}
|
|
10
10
|
const A = {
|
|
11
11
|
en: {
|
|
@@ -31,7 +31,7 @@ function ye(i) {
|
|
|
31
31
|
Y(i, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
32
32
|
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function N(i, e, l) {
|
|
35
35
|
const d = i.slice();
|
|
36
36
|
return d[26] = e[l], d[28] = l, d;
|
|
37
37
|
}
|
|
@@ -41,10 +41,10 @@ function fe(i) {
|
|
|
41
41
|
i[6]
|
|
42
42
|
), t = [];
|
|
43
43
|
for (let a = 0; a < o.length; a += 1)
|
|
44
|
-
t[a] =
|
|
44
|
+
t[a] = O(N(i, o, a));
|
|
45
45
|
let c = (
|
|
46
46
|
/*calendarModalOpened*/
|
|
47
|
-
i[11] == !0 &&
|
|
47
|
+
i[11] == !0 && R(i)
|
|
48
48
|
);
|
|
49
49
|
return {
|
|
50
50
|
c() {
|
|
@@ -69,15 +69,15 @@ function fe(i) {
|
|
|
69
69
|
);
|
|
70
70
|
let r;
|
|
71
71
|
for (r = 0; r < o.length; r += 1) {
|
|
72
|
-
const y =
|
|
73
|
-
t[r] ? t[r].p(y, u) : (t[r] =
|
|
72
|
+
const y = N(a, o, r);
|
|
73
|
+
t[r] ? t[r].p(y, u) : (t[r] = O(y), t[r].c(), t[r].m(e, l));
|
|
74
74
|
}
|
|
75
75
|
for (; r < t.length; r += 1)
|
|
76
76
|
t[r].d(1);
|
|
77
77
|
t.length = o.length;
|
|
78
78
|
}
|
|
79
79
|
/*calendarModalOpened*/
|
|
80
|
-
a[11] == !0 ? c ? c.p(a, u) : (c =
|
|
80
|
+
a[11] == !0 ? c ? c.p(a, u) : (c = R(a), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
|
|
81
81
|
1024 && d !== (d = "CasinoCalendarItem " + /*mobileView*/
|
|
82
82
|
(a[10] ? "Mobile" : "") + " svelte-5u3c97") && v(e, "class", d);
|
|
83
83
|
},
|
|
@@ -95,7 +95,7 @@ function _e(i) {
|
|
|
95
95
|
m(l, d) {
|
|
96
96
|
b(l, e, d);
|
|
97
97
|
},
|
|
98
|
-
p:
|
|
98
|
+
p: L,
|
|
99
99
|
d(l) {
|
|
100
100
|
l && p(e);
|
|
101
101
|
}
|
|
@@ -123,7 +123,7 @@ function ge(i) {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function O(i) {
|
|
127
127
|
let e, l, d, o, t, c;
|
|
128
128
|
return {
|
|
129
129
|
c() {
|
|
@@ -215,7 +215,7 @@ function R(i) {
|
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function R(i) {
|
|
219
219
|
let e, l, d, o, t, c, a, u;
|
|
220
220
|
return {
|
|
221
221
|
c() {
|
|
@@ -371,8 +371,8 @@ function me(i) {
|
|
|
371
371
|
p(t, [c]) {
|
|
372
372
|
d === (d = l(t)) && o ? o.p(t, c) : (o && o.d(1), o = d && d(t), o && (o.c(), o.m(e, null)));
|
|
373
373
|
},
|
|
374
|
-
i:
|
|
375
|
-
o:
|
|
374
|
+
i: L,
|
|
375
|
+
o: L,
|
|
376
376
|
d(t) {
|
|
377
377
|
t && p(e), o && o.d(), i[16](null);
|
|
378
378
|
}
|
|
@@ -381,14 +381,14 @@ function me(i) {
|
|
|
381
381
|
function he(i, e, l) {
|
|
382
382
|
let d;
|
|
383
383
|
Z(i, x, (s) => l(12, d = s));
|
|
384
|
-
let { cmsendpoint: o = "" } = e, { env: t = "" } = e, { userroles: c = "" } = e, { lang: a = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: y } = e, { mbsource: k } = e, _, E, w = 0, S = !0,
|
|
384
|
+
let { cmsendpoint: o = "" } = e, { env: t = "" } = e, { userroles: c = "" } = e, { lang: a = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: y } = e, { mbsource: k } = e, _, E, w = 0, S = !0, D = !1, M = !1, B = window.navigator.userAgent, C = !1, U;
|
|
385
385
|
const W = () => {
|
|
386
386
|
ue(a);
|
|
387
387
|
};
|
|
388
388
|
Object.keys(A).forEach((s) => {
|
|
389
389
|
j(s, A[s]);
|
|
390
390
|
});
|
|
391
|
-
const
|
|
391
|
+
const q = () => {
|
|
392
392
|
let s = y;
|
|
393
393
|
if (s)
|
|
394
394
|
return fetch(s).then((f) => f.json()).then((f) => {
|
|
@@ -398,23 +398,23 @@ function he(i, e, l) {
|
|
|
398
398
|
}).catch((f) => {
|
|
399
399
|
console.log(f);
|
|
400
400
|
});
|
|
401
|
-
},
|
|
401
|
+
}, z = () => {
|
|
402
402
|
l(8, S = !0);
|
|
403
403
|
let s = new URL(`${o}/${a}/daily-calendar`);
|
|
404
404
|
s.searchParams.append("userRoles", c), s.searchParams.append("env", t);
|
|
405
|
-
let f = re(
|
|
405
|
+
let f = re(B);
|
|
406
406
|
f && (f === "PC" ? s.searchParams.append("device", "dk") : f === "iPad" || f === "iPhone" ? s.searchParams.append("device", "ios") : s.searchParams.append("device", "mtWeb")), fetch(s.href).then((g) => g.json()).then((g) => {
|
|
407
407
|
l(6, E = g);
|
|
408
408
|
}).catch((g) => {
|
|
409
|
-
console.log(g), l(9,
|
|
409
|
+
console.log(g), l(9, D = !0);
|
|
410
410
|
}).finally(() => {
|
|
411
|
-
|
|
411
|
+
V(), l(8, S = !1);
|
|
412
412
|
});
|
|
413
|
-
},
|
|
413
|
+
}, V = () => {
|
|
414
414
|
const s = _.getRootNode().host;
|
|
415
415
|
s.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: s } }));
|
|
416
|
-
},
|
|
417
|
-
|
|
416
|
+
}, H = () => {
|
|
417
|
+
z();
|
|
418
418
|
}, T = (s) => {
|
|
419
419
|
s.data && s.data.type == "OpenCalendar" && (l(7, w = s.data.index), l(11, C = !0), window.postMessage(
|
|
420
420
|
{
|
|
@@ -428,10 +428,10 @@ function he(i, e, l) {
|
|
|
428
428
|
data: E[w]?.dailyEvents
|
|
429
429
|
})), s.data && s.data.type == "ModalClosed" && l(11, C = !1);
|
|
430
430
|
};
|
|
431
|
-
$(() => (window.addEventListener("message", T, !1), ee(
|
|
431
|
+
$(() => (window.addEventListener("message", T, !1), ee(B) && l(10, M = !0), () => {
|
|
432
432
|
window.removeEventListener("message", T);
|
|
433
433
|
}));
|
|
434
|
-
function
|
|
434
|
+
function J(s) {
|
|
435
435
|
le[s ? "unshift" : "push"](() => {
|
|
436
436
|
_ = s, l(5, _);
|
|
437
437
|
});
|
|
@@ -440,12 +440,12 @@ function he(i, e, l) {
|
|
|
440
440
|
"cmsendpoint" in s && l(13, o = s.cmsendpoint), "env" in s && l(14, t = s.env), "userroles" in s && l(15, c = s.userroles), "lang" in s && l(0, a = s.lang), "clientstyling" in s && l(1, u = s.clientstyling), "clientstylingurl" in s && l(2, r = s.clientstylingurl), "translationurl" in s && l(3, y = s.translationurl), "mbsource" in s && l(4, k = s.mbsource);
|
|
441
441
|
}, i.$$.update = () => {
|
|
442
442
|
i.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
443
|
-
57345 && o && a && t && c &&
|
|
443
|
+
57345 && o && a && t && c && H(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
444
444
|
34 && u && _ && se(_, u), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
445
445
|
36 && r && _ && oe(_, r), i.$$.dirty & /*customStylingContainer, mbsource*/
|
|
446
446
|
48 && _ && de(_, `${k}.Style`, U), i.$$.dirty & /*lang*/
|
|
447
447
|
1 && a && W(), i.$$.dirty & /*lang, translationurl*/
|
|
448
|
-
9 && a && y &&
|
|
448
|
+
9 && a && y && q();
|
|
449
449
|
}, [
|
|
450
450
|
a,
|
|
451
451
|
u,
|
|
@@ -456,19 +456,19 @@ function he(i, e, l) {
|
|
|
456
456
|
E,
|
|
457
457
|
w,
|
|
458
458
|
S,
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
D,
|
|
460
|
+
M,
|
|
461
461
|
C,
|
|
462
462
|
d,
|
|
463
463
|
o,
|
|
464
464
|
t,
|
|
465
465
|
c,
|
|
466
|
-
|
|
466
|
+
J
|
|
467
467
|
];
|
|
468
468
|
}
|
|
469
|
-
class ve extends
|
|
469
|
+
class ve extends F {
|
|
470
470
|
constructor(e) {
|
|
471
|
-
super(),
|
|
471
|
+
super(), G(
|
|
472
472
|
this,
|
|
473
473
|
e,
|
|
474
474
|
he,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../lazy/casino-calendar-daily-details-
|
|
3
|
-
import "../lazy/casino-calendar-daily-item-
|
|
1
|
+
import { c as K, b as Q, S as F, x as G, I as X, r as m, e as Y, B as L, n as p, y as b, o as h, f as v, i as Z, E as x, z as $, g as ee, N as le, d as I, V as ie, q as P, m as ae, Q as te, s as ne, M as n, J as re, K as se, L as oe, j as de, a as ce } from "./CasinoPageNd-CvwQrmeC.js";
|
|
2
|
+
import "../lazy/casino-calendar-daily-details-CreJXTIY.js";
|
|
3
|
+
import "../lazy/casino-calendar-daily-item-B294skVH.js";
|
|
4
4
|
function j(i, e) {
|
|
5
|
-
|
|
5
|
+
K(i, e);
|
|
6
6
|
}
|
|
7
7
|
function ue(i) {
|
|
8
|
-
|
|
8
|
+
Q.set(i);
|
|
9
9
|
}
|
|
10
10
|
const A = {
|
|
11
11
|
en: {
|
|
@@ -31,7 +31,7 @@ function ye(i) {
|
|
|
31
31
|
Y(i, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
32
32
|
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function N(i, e, l) {
|
|
35
35
|
const d = i.slice();
|
|
36
36
|
return d[26] = e[l], d[28] = l, d;
|
|
37
37
|
}
|
|
@@ -41,10 +41,10 @@ function fe(i) {
|
|
|
41
41
|
i[6]
|
|
42
42
|
), t = [];
|
|
43
43
|
for (let a = 0; a < o.length; a += 1)
|
|
44
|
-
t[a] =
|
|
44
|
+
t[a] = O(N(i, o, a));
|
|
45
45
|
let c = (
|
|
46
46
|
/*calendarModalOpened*/
|
|
47
|
-
i[11] == !0 &&
|
|
47
|
+
i[11] == !0 && R(i)
|
|
48
48
|
);
|
|
49
49
|
return {
|
|
50
50
|
c() {
|
|
@@ -58,7 +58,7 @@ function fe(i) {
|
|
|
58
58
|
b(a, e, u);
|
|
59
59
|
for (let r = 0; r < t.length; r += 1)
|
|
60
60
|
t[r] && t[r].m(e, null);
|
|
61
|
-
|
|
61
|
+
I(e, l), c && c.m(e, null);
|
|
62
62
|
},
|
|
63
63
|
p(a, u) {
|
|
64
64
|
if (u & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
@@ -69,15 +69,15 @@ function fe(i) {
|
|
|
69
69
|
);
|
|
70
70
|
let r;
|
|
71
71
|
for (r = 0; r < o.length; r += 1) {
|
|
72
|
-
const y =
|
|
73
|
-
t[r] ? t[r].p(y, u) : (t[r] =
|
|
72
|
+
const y = N(a, o, r);
|
|
73
|
+
t[r] ? t[r].p(y, u) : (t[r] = O(y), t[r].c(), t[r].m(e, l));
|
|
74
74
|
}
|
|
75
75
|
for (; r < t.length; r += 1)
|
|
76
76
|
t[r].d(1);
|
|
77
77
|
t.length = o.length;
|
|
78
78
|
}
|
|
79
79
|
/*calendarModalOpened*/
|
|
80
|
-
a[11] == !0 ? c ? c.p(a, u) : (c =
|
|
80
|
+
a[11] == !0 ? c ? c.p(a, u) : (c = R(a), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
|
|
81
81
|
1024 && d !== (d = "CasinoCalendarItem " + /*mobileView*/
|
|
82
82
|
(a[10] ? "Mobile" : "") + " svelte-5u3c97") && v(e, "class", d);
|
|
83
83
|
},
|
|
@@ -95,7 +95,7 @@ function _e(i) {
|
|
|
95
95
|
m(l, d) {
|
|
96
96
|
b(l, e, d);
|
|
97
97
|
},
|
|
98
|
-
p:
|
|
98
|
+
p: L,
|
|
99
99
|
d(l) {
|
|
100
100
|
l && p(e);
|
|
101
101
|
}
|
|
@@ -111,7 +111,7 @@ function ge(i) {
|
|
|
111
111
|
e = h("p"), d = ie(l), v(e, "class", "SearchLoading svelte-5u3c97");
|
|
112
112
|
},
|
|
113
113
|
m(o, t) {
|
|
114
|
-
b(o, e, t),
|
|
114
|
+
b(o, e, t), I(e, d);
|
|
115
115
|
},
|
|
116
116
|
p(o, t) {
|
|
117
117
|
t & /*$_*/
|
|
@@ -123,7 +123,7 @@ function ge(i) {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function O(i) {
|
|
127
127
|
let e, l, d, o, t, c;
|
|
128
128
|
return {
|
|
129
129
|
c() {
|
|
@@ -215,7 +215,7 @@ function R(i) {
|
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function R(i) {
|
|
219
219
|
let e, l, d, o, t, c, a, u;
|
|
220
220
|
return {
|
|
221
221
|
c() {
|
|
@@ -271,7 +271,7 @@ function N(i) {
|
|
|
271
271
|
), n(l, "class", "svelte-5u3c97"), v(e, "class", "CalendarDetailsWrapper svelte-5u3c97");
|
|
272
272
|
},
|
|
273
273
|
m(r, y) {
|
|
274
|
-
b(r, e, y),
|
|
274
|
+
b(r, e, y), I(e, l);
|
|
275
275
|
},
|
|
276
276
|
p(r, y) {
|
|
277
277
|
y & /*calendarCollections, selectedIndex*/
|
|
@@ -372,8 +372,8 @@ function me(i) {
|
|
|
372
372
|
p(t, [c]) {
|
|
373
373
|
d === (d = l(t)) && o ? o.p(t, c) : (o && o.d(1), o = d && d(t), o && (o.c(), o.m(e, null)));
|
|
374
374
|
},
|
|
375
|
-
i:
|
|
376
|
-
o:
|
|
375
|
+
i: L,
|
|
376
|
+
o: L,
|
|
377
377
|
d(t) {
|
|
378
378
|
t && p(e), o && o.d(), i[16](null);
|
|
379
379
|
}
|
|
@@ -382,7 +382,7 @@ function me(i) {
|
|
|
382
382
|
function he(i, e, l) {
|
|
383
383
|
let d;
|
|
384
384
|
Z(i, ce, (s) => l(12, d = s));
|
|
385
|
-
let { cmsendpoint: o = "" } = e, { env: t = "" } = e, { userroles: c = "" } = e, { lang: a = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: y } = e, { mbsource: k } = e, _, E, w = 0, S = !0, D = !1,
|
|
385
|
+
let { cmsendpoint: o = "" } = e, { env: t = "" } = e, { userroles: c = "" } = e, { lang: a = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: y } = e, { mbsource: k } = e, _, E, w = 0, S = !0, D = !1, M = !1, B = window.navigator.userAgent, C = !1, U;
|
|
386
386
|
const W = () => {
|
|
387
387
|
ue(a);
|
|
388
388
|
};
|
|
@@ -399,23 +399,23 @@ function he(i, e, l) {
|
|
|
399
399
|
}).catch((f) => {
|
|
400
400
|
console.log(f);
|
|
401
401
|
});
|
|
402
|
-
},
|
|
402
|
+
}, z = () => {
|
|
403
403
|
l(8, S = !0);
|
|
404
404
|
let s = new URL(`${o}/${a}/daily-calendar`);
|
|
405
405
|
s.searchParams.append("userRoles", c), s.searchParams.append("env", t);
|
|
406
|
-
let f = ne(
|
|
406
|
+
let f = ne(B);
|
|
407
407
|
f && (f === "PC" ? s.searchParams.append("device", "dk") : f === "iPad" || f === "iPhone" ? s.searchParams.append("device", "ios") : s.searchParams.append("device", "mtWeb")), fetch(s.href).then((g) => g.json()).then((g) => {
|
|
408
408
|
l(6, E = g);
|
|
409
409
|
}).catch((g) => {
|
|
410
410
|
console.log(g), l(9, D = !0);
|
|
411
411
|
}).finally(() => {
|
|
412
|
-
|
|
412
|
+
V(), l(8, S = !1);
|
|
413
413
|
});
|
|
414
|
-
},
|
|
414
|
+
}, V = () => {
|
|
415
415
|
const s = _.getRootNode().host;
|
|
416
416
|
s.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: s } }));
|
|
417
|
-
},
|
|
418
|
-
|
|
417
|
+
}, H = () => {
|
|
418
|
+
z();
|
|
419
419
|
}, T = (s) => {
|
|
420
420
|
var f;
|
|
421
421
|
s.data && s.data.type == "OpenCalendar" && (l(7, w = s.data.index), l(11, C = !0), window.postMessage(
|
|
@@ -430,10 +430,10 @@ function he(i, e, l) {
|
|
|
430
430
|
data: (f = E[w]) == null ? void 0 : f.dailyEvents
|
|
431
431
|
})), s.data && s.data.type == "ModalClosed" && l(11, C = !1);
|
|
432
432
|
};
|
|
433
|
-
x(() => (window.addEventListener("message", T, !1), $(
|
|
433
|
+
x(() => (window.addEventListener("message", T, !1), $(B) && l(10, M = !0), () => {
|
|
434
434
|
window.removeEventListener("message", T);
|
|
435
435
|
}));
|
|
436
|
-
function
|
|
436
|
+
function J(s) {
|
|
437
437
|
ee[s ? "unshift" : "push"](() => {
|
|
438
438
|
_ = s, l(5, _);
|
|
439
439
|
});
|
|
@@ -442,7 +442,7 @@ function he(i, e, l) {
|
|
|
442
442
|
"cmsendpoint" in s && l(13, o = s.cmsendpoint), "env" in s && l(14, t = s.env), "userroles" in s && l(15, c = s.userroles), "lang" in s && l(0, a = s.lang), "clientstyling" in s && l(1, u = s.clientstyling), "clientstylingurl" in s && l(2, r = s.clientstylingurl), "translationurl" in s && l(3, y = s.translationurl), "mbsource" in s && l(4, k = s.mbsource);
|
|
443
443
|
}, i.$$.update = () => {
|
|
444
444
|
i.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
445
|
-
57345 && o && a && t && c &&
|
|
445
|
+
57345 && o && a && t && c && H(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
446
446
|
34 && u && _ && re(_, u), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
447
447
|
36 && r && _ && se(_, r), i.$$.dirty & /*customStylingContainer, mbsource*/
|
|
448
448
|
48 && _ && oe(_, `${k}.Style`, U), i.$$.dirty & /*lang*/
|
|
@@ -459,18 +459,18 @@ function he(i, e, l) {
|
|
|
459
459
|
w,
|
|
460
460
|
S,
|
|
461
461
|
D,
|
|
462
|
-
|
|
462
|
+
M,
|
|
463
463
|
C,
|
|
464
464
|
d,
|
|
465
465
|
o,
|
|
466
466
|
t,
|
|
467
467
|
c,
|
|
468
|
-
|
|
468
|
+
J
|
|
469
469
|
];
|
|
470
470
|
}
|
|
471
|
-
class ve extends
|
|
471
|
+
class ve extends F {
|
|
472
472
|
constructor(e) {
|
|
473
|
-
super(),
|
|
473
|
+
super(), G(
|
|
474
474
|
this,
|
|
475
475
|
e,
|
|
476
476
|
he,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPageNd-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPageNd-DkcMiqM_.cjs");require("../lazy/casino-calendar-daily-details-CkvPWhRn.cjs");require("../lazy/casino-calendar-daily-item-OzC20xXV.cjs");function C(a,t){e.addMessages(a,t)}function q(a){e.$locale.set(a)}const L={en:{error:"500 Error - Internal Server Error"},hr:{error:"500 Error - Internal Server Error"},"pt-br":{error:"500 Error - Internal Server Error"},"es-mx":{error:"500 Error - Internal Server Error"},tr:{error:"500 Error - Internal Server Error"},"en-us":{error:"500 Error - Internal Server Error"}};function U(a){e.append_styles(a,"svelte-5u3c97",`.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
2
2
|
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`)}function D(a,t,l){const d=a.slice();return d[26]=t[l],d[28]=l,d}function W(a){let t,l,d,o=e.ensure_array_like(a[6]),i=[];for(let n=0;n<o.length;n+=1)i[n]=I(D(a,o,n));let c=a[11]==!0&&M(a);return{c(){t=e.element("div");for(let n=0;n<i.length;n+=1)i[n].c();l=e.space(),c&&c.c(),e.attr(t,"class",d="CasinoCalendarItem "+(a[10]?"Mobile":"")+" svelte-5u3c97")},m(n,_){e.insert(n,t,_);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);e.append(t,l),c&&c.m(t,null)},p(n,_){if(_&95){o=e.ensure_array_like(n[6]);let s;for(s=0;s<o.length;s+=1){const u=D(n,o,s);i[s]?i[s].p(u,_):(i[s]=I(u),i[s].c(),i[s].m(t,l))}for(;s<i.length;s+=1)i[s].d(1);i.length=o.length}n[11]==!0?c?c.p(n,_):(c=M(n),c.c(),c.m(t,null)):c&&(c.d(1),c=null),_&1024&&d!==(d="CasinoCalendarItem "+(n[10]?"Mobile":"")+" svelte-5u3c97")&&e.attr(t,"class",d)},d(n){n&&e.detach(t),e.destroy_each(i,n),c&&c.d()}}}function z(a){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner svelte-5u3c97")},m(l,d){e.insert(l,t,d)},p:e.noop,d(l){l&&e.detach(t)}}}function H(a){let t,l=a[12]("error")+"",d;return{c(){t=e.element("p"),d=e.text(l),e.attr(t,"class","SearchLoading svelte-5u3c97")},m(o,i){e.insert(o,t,i),e.append(t,d)},p(o,i){i&4096&&l!==(l=o[12]("error")+"")&&e.set_data(d,l)},d(o){o&&e.detach(t)}}}function I(a){let t,l,d,o,i,c;return{c(){t=e.element("casino-calendar-daily-item"),e.set_custom_element_data(t,"dailybackground",l=a[26].dailyBackground),e.set_custom_element_data(t,"dailyicon",d=a[26].dailyIcon),e.set_custom_element_data(t,"dailyday",o=a[26].dailyDay),e.set_custom_element_data(t,"dailydescription",i=a[26].dailyDescription),e.set_custom_element_data(t,"dailybuttontitle",c=a[26].dailyButtonTitle),e.set_custom_element_data(t,"index",a[28]),e.set_custom_element_data(t,"lang",a[0]),e.set_custom_element_data(t,"clientstyling",a[1]),e.set_custom_element_data(t,"clientstylingurl",a[2]),e.set_custom_element_data(t,"mbsource",a[4]),e.set_custom_element_data(t,"translationurl",a[3]),e.set_custom_element_data(t,"class","svelte-5u3c97")},m(n,_){e.insert(n,t,_)},p(n,_){_&64&&l!==(l=n[26].dailyBackground)&&e.set_custom_element_data(t,"dailybackground",l),_&64&&d!==(d=n[26].dailyIcon)&&e.set_custom_element_data(t,"dailyicon",d),_&64&&o!==(o=n[26].dailyDay)&&e.set_custom_element_data(t,"dailyday",o),_&64&&i!==(i=n[26].dailyDescription)&&e.set_custom_element_data(t,"dailydescription",i),_&64&&c!==(c=n[26].dailyButtonTitle)&&e.set_custom_element_data(t,"dailybuttontitle",c),_&1&&e.set_custom_element_data(t,"lang",n[0]),_&2&&e.set_custom_element_data(t,"clientstyling",n[1]),_&4&&e.set_custom_element_data(t,"clientstylingurl",n[2]),_&16&&e.set_custom_element_data(t,"mbsource",n[4]),_&8&&e.set_custom_element_data(t,"translationurl",n[3])},d(n){n&&e.detach(t)}}}function M(a){let t,l,d,o,i,c,n,_;return{c(){t=e.element("div"),l=e.element("casino-calendar-daily-details"),e.set_custom_element_data(l,"dailybackground",d=a[6][a[7]].dailyBackground),e.set_custom_element_data(l,"dailybuttontitle",o=a[6][a[7]].dailyButtonTitle),e.set_custom_element_data(l,"dailyday",i=a[6][a[7]].dailyDay),e.set_custom_element_data(l,"dailydescription",c=a[6][a[7]].dailyDescription),e.set_custom_element_data(l,"dailyicon",n=a[6][a[7]].dailyIcon),e.set_custom_element_data(l,"dailytitle",_=a[6][a[7]].dailyTitle),e.set_custom_element_data(l,"lang",a[0]),e.set_custom_element_data(l,"clientstyling",a[1]),e.set_custom_element_data(l,"clientstylingurl",a[2]),e.set_custom_element_data(l,"mbsource",a[4]),e.set_custom_element_data(l,"translationurl",a[3]),e.set_custom_element_data(l,"class","svelte-5u3c97"),e.attr(t,"class","CalendarDetailsWrapper svelte-5u3c97")},m(s,u){e.insert(s,t,u),e.append(t,l)},p(s,u){u&192&&d!==(d=s[6][s[7]].dailyBackground)&&e.set_custom_element_data(l,"dailybackground",d),u&192&&o!==(o=s[6][s[7]].dailyButtonTitle)&&e.set_custom_element_data(l,"dailybuttontitle",o),u&192&&i!==(i=s[6][s[7]].dailyDay)&&e.set_custom_element_data(l,"dailyday",i),u&192&&c!==(c=s[6][s[7]].dailyDescription)&&e.set_custom_element_data(l,"dailydescription",c),u&192&&n!==(n=s[6][s[7]].dailyIcon)&&e.set_custom_element_data(l,"dailyicon",n),u&192&&_!==(_=s[6][s[7]].dailyTitle)&&e.set_custom_element_data(l,"dailytitle",_),u&1&&e.set_custom_element_data(l,"lang",s[0]),u&2&&e.set_custom_element_data(l,"clientstyling",s[1]),u&4&&e.set_custom_element_data(l,"clientstylingurl",s[2]),u&16&&e.set_custom_element_data(l,"mbsource",s[4]),u&8&&e.set_custom_element_data(l,"translationurl",s[3])},d(s){s&&e.detach(t)}}}function V(a){let t;function l(i,c){var n;if(i[9])return H;if(i[8])return z;if((n=i[6])!=null&&n.length)return W}let d=l(a),o=d&&d(a);return{c(){t=e.element("div"),o&&o.c(),e.attr(t,"class","svelte-5u3c97")},m(i,c){e.insert(i,t,c),o&&o.m(t,null),a[16](t)},p(i,[c]){d===(d=l(i))&&o?o.p(i,c):(o&&o.d(1),o=d&&d(i),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(i){i&&e.detach(t),o&&o.d(),a[16](null)}}}function F(a,t,l){let d;e.component_subscribe(a,e.$format,r=>l(12,d=r));let{cmsendpoint:o=""}=t,{env:i=""}=t,{userroles:c=""}=t,{lang:n="en"}=t,{clientstyling:_=""}=t,{clientstylingurl:s=""}=t,{translationurl:u}=t,{mbsource:h}=t,f,v,g=0,p=!0,w=!1,k=!1,E=window.navigator.userAgent,b=!1,P;const T=()=>{q(n)};Object.keys(L).forEach(r=>{C(r,L[r])});const j=()=>{let r=u;if(r)return fetch(r).then(m=>m.json()).then(m=>{Object.keys(m).forEach(y=>{C(y,m[y])})}).catch(m=>{console.log(m)})},O=()=>{l(8,p=!0);let r=new URL(`${o}/${n}/daily-calendar`);r.searchParams.append("userRoles",c),r.searchParams.append("env",i);let m=e.getDevice(E);m&&(m==="PC"?r.searchParams.append("device","dk"):m==="iPad"||m==="iPhone"?r.searchParams.append("device","ios"):r.searchParams.append("device","mtWeb")),fetch(r.href).then(y=>y.json()).then(y=>{l(6,v=y)}).catch(y=>{console.log(y),l(9,w=!0)}).finally(()=>{A(),l(8,p=!1)})},A=()=>{const r=f.getRootNode().host;r.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:r}}))},N=()=>{O()},S=r=>{var m;r.data&&r.data.type=="OpenCalendar"&&(l(7,g=r.data.index),l(11,b=!0),window.postMessage({type:"ShowModal",selectedIndex:g,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:(m=v[g])==null?void 0:m.dailyEvents})),r.data&&r.data.type=="ModalClosed"&&l(11,b=!1)};e.onMount(()=>(window.addEventListener("message",S,!1),e.isMobile(E)&&l(10,k=!0),()=>{window.removeEventListener("message",S)}));function R(r){e.binding_callbacks[r?"unshift":"push"](()=>{f=r,l(5,f)})}return a.$$set=r=>{"cmsendpoint"in r&&l(13,o=r.cmsendpoint),"env"in r&&l(14,i=r.env),"userroles"in r&&l(15,c=r.userroles),"lang"in r&&l(0,n=r.lang),"clientstyling"in r&&l(1,_=r.clientstyling),"clientstylingurl"in r&&l(2,s=r.clientstylingurl),"translationurl"in r&&l(3,u=r.translationurl),"mbsource"in r&&l(4,h=r.mbsource)},a.$$.update=()=>{a.$$.dirty&57345&&o&&n&&i&&c&&N(),a.$$.dirty&34&&_&&f&&e.setClientStyling(f,_),a.$$.dirty&36&&s&&f&&e.setClientStylingURL(f,s),a.$$.dirty&48&&f&&e.setStreamStyling(f,`${h}.Style`,P),a.$$.dirty&1&&n&&T(),a.$$.dirty&9&&n&&u&&j()},[n,_,s,u,h,f,v,g,p,w,k,b,d,o,i,c,R]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,V,e.safe_not_equal,{cmsendpoint:13,env:14,userroles:15,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,mbsource:4},U)}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[14]}set env(t){this.$$set({env:t}),e.flush()}get userroles(){return this.$$.ctx[15]}set userroles(t){this.$$set({userroles:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(B,{cmsendpoint:{},env:{},userroles:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=B;
|