@everymatrix/casino-page-nd 1.94.4 → 1.94.6

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 (109) hide show
  1. package/components/{CasinoCalendar-BsorgQtD.js → CasinoCalendar-BXqn5sSJ.js} +34 -34
  2. package/components/{CasinoCalendar-Bar1KVPb.js → CasinoCalendar-DdqyHrIi.js} +33 -33
  3. package/components/{CasinoCalendar-B-ElK3ln.cjs → CasinoCalendar-f9ob2sFv.cjs} +1 -1
  4. package/components/{CasinoCalendarDailyDetails-BoTdowtn.js → CasinoCalendarDailyDetails-BBe0-NK5.js} +35 -35
  5. package/components/{CasinoCalendarDailyDetails-DLxk4yik.cjs → CasinoCalendarDailyDetails-CHdX5zc8.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-ChU8Nf17.js → CasinoCalendarDailyDetails-ewHsXmDz.js} +44 -44
  7. package/components/{CasinoCalendarDailyItem-DVlQpd2h.js → CasinoCalendarDailyItem-BisTMrw_.js} +33 -33
  8. package/components/{CasinoCalendarDailyItem-B1BOZqbk.cjs → CasinoCalendarDailyItem-Bo0BHXKg.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-Yoj0Yzg3.js → CasinoCalendarDailyItem-Q3MzwDts.js} +35 -35
  10. package/components/{CasinoCollectionsProviders-D-lUQePw.js → CasinoCollectionsProviders-C7YIthiK.js} +54 -54
  11. package/components/{CasinoCollectionsProviders-DDuUDFgp.cjs → CasinoCollectionsProviders-CCZelLp2.cjs} +1 -1
  12. package/components/{CasinoCollectionsProviders-BSIyPEOO.js → CasinoCollectionsProviders-CU88qQMT.js} +77 -77
  13. package/components/{CasinoFavoritesSectionNd-B1W3Wz8p.js → CasinoFavoritesSectionNd-CYfialzn.js} +19 -19
  14. package/components/{CasinoFavoritesSectionNd-CY10i3wA.cjs → CasinoFavoritesSectionNd-CZ1st2up.cjs} +1 -1
  15. package/components/{CasinoFavoritesSectionNd-aKXCReO2.js → CasinoFavoritesSectionNd-HKJugDpB.js} +30 -30
  16. package/components/{CasinoFilter-BwCwXqWa.cjs → CasinoFilter-BviseRbU.cjs} +1 -1
  17. package/components/{CasinoFilter-gCiPR__8.js → CasinoFilter-Cd3YMCjI.js} +61 -61
  18. package/components/{CasinoFilter-BQsFbRt1.js → CasinoFilter-DZtIPf04.js} +72 -72
  19. package/components/{CasinoGameThumbnailNd-C9zOKRFB.cjs → CasinoGameThumbnailNd-CIIH4ov5.cjs} +1 -1
  20. package/components/{CasinoGameThumbnailNd-B7GdVkxq.js → CasinoGameThumbnailNd-DfrIBuE8.js} +47 -47
  21. package/components/{CasinoGameThumbnailNd-Dp86Mafo.js → CasinoGameThumbnailNd-qZDUi7bK.js} +44 -44
  22. package/components/{CasinoGamesCategorySectionNd-D-Wuvl8U.js → CasinoGamesCategorySectionNd-BeGuRKUV.js} +51 -51
  23. package/components/{CasinoGamesCategorySectionNd-C2UoZFWC.cjs → CasinoGamesCategorySectionNd-DmcGqSFC.cjs} +1 -1
  24. package/components/{CasinoGamesCategorySectionNd-BBT_fRD_.js → CasinoGamesCategorySectionNd-QyzFexdL.js} +88 -88
  25. package/components/{CasinoJackpotBanner-BsZsSC5q.js → CasinoJackpotBanner-B_16bQIJ.js} +57 -57
  26. package/components/{CasinoJackpotBanner-d2UGqr4v.cjs → CasinoJackpotBanner-BgVQzBT9.cjs} +1 -1
  27. package/components/{CasinoJackpotBanner--hB_JhfK.js → CasinoJackpotBanner-Chzhtion.js} +97 -97
  28. package/components/{CasinoLastPlayedSectionNd-BS_l-cZ0.js → CasinoLastPlayedSectionNd-BOYA9BZi.js} +15 -15
  29. package/components/{CasinoLastPlayedSectionNd-ClV5hJ3T.js → CasinoLastPlayedSectionNd-CuKAruU8.js} +27 -27
  30. package/components/{CasinoLastPlayedSectionNd-CSUr2ClP.cjs → CasinoLastPlayedSectionNd-KZNXKC5c.cjs} +1 -1
  31. package/components/{CasinoMostPlayedSectionNd-D3CZA_XD.js → CasinoMostPlayedSectionNd-BNw2NHF0.js} +36 -36
  32. package/components/{CasinoMostPlayedSectionNd-CQXe7gZp.js → CasinoMostPlayedSectionNd-BYlAY4RO.js} +37 -37
  33. package/components/{CasinoMostPlayedSectionNd-DF2VZSVY.cjs → CasinoMostPlayedSectionNd-DKnN3rEW.cjs} +1 -1
  34. package/components/{CasinoMyGamesNd-oYIN8A8y.js → CasinoMyGamesNd-BGusGuB_.js} +25 -25
  35. package/components/{CasinoMyGamesNd-DUkQM67I.js → CasinoMyGamesNd-C05ASC1X.js} +139 -139
  36. package/components/{CasinoMyGamesNd-p3By5ie3.cjs → CasinoMyGamesNd-D6RmmeUO.cjs} +1 -1
  37. package/components/{CasinoPageNd-u8Nxbkgk.js → CasinoPageNd-BYwB2SrU.js} +62 -62
  38. package/components/{CasinoPageNd-BoxT7vNT.js → CasinoPageNd-CvwQrmeC.js} +63 -63
  39. package/components/{CasinoPageNd-ByOWge44.cjs → CasinoPageNd-DkcMiqM_.cjs} +1 -1
  40. package/components/{CasinoRandomGame-DYHpkkIU.cjs → CasinoRandomGame-CSKHxblX.cjs} +1 -1
  41. package/components/{CasinoRandomGame-DmdUfx7P.js → CasinoRandomGame-CoXgBuKo.js} +25 -25
  42. package/components/{CasinoRandomGame-Dub3IIU6.js → CasinoRandomGame-DZSB2qWm.js} +57 -57
  43. package/components/{CasinoSearchNd-DJKl9giS.js → CasinoSearchNd-DnPGsjFN.js} +170 -166
  44. package/components/{CasinoSearchNd-DAtlVgS9.cjs → CasinoSearchNd-Drf3R8N1.cjs} +1 -1
  45. package/components/{CasinoSearchNd-CMWbs-xQ.js → CasinoSearchNd-sS9yxFZB.js} +196 -192
  46. package/components/{CasinoSort-BdYCRTbw.cjs → CasinoSort-Be7I-Bkl.cjs} +1 -1
  47. package/components/{CasinoSort-BKNBrE2Z.js → CasinoSort-CCDDquSi.js} +23 -23
  48. package/components/{CasinoSort-Bj5VCzfQ.js → CasinoSort-CFbNQrwp.js} +40 -40
  49. package/components/{CasinoWinners-CVQnA2jb.cjs → CasinoWinners-B4wRzzvv.cjs} +1 -1
  50. package/components/{CasinoWinners-CJWsbB8X.js → CasinoWinners-BOD7ymCO.js} +55 -55
  51. package/components/{CasinoWinners-BB69_VBL.js → CasinoWinners-DYeVwT_K.js} +48 -48
  52. package/components/{GeneralAnimationLoading-BosK264F.cjs → GeneralAnimationLoading-DD1kmHGW.cjs} +1 -1
  53. package/components/{GeneralAnimationLoading-D9Xr0Ohx.js → GeneralAnimationLoading-DLWyPAPZ.js} +4 -4
  54. package/components/{GeneralAnimationLoading-Ddb3rUV4.js → GeneralAnimationLoading-DSzlRxD5.js} +6 -6
  55. package/es2015/casino-page-nd.cjs +1 -1
  56. package/es2015/casino-page-nd.js +1 -1
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/lazy/{casino-calendar-BsTNKtIb.cjs → casino-calendar-BMr6vuSW.cjs} +1 -1
  59. package/lazy/{casino-calendar-CRtCPSqI.js → casino-calendar-BhmwgnLf.js} +1 -1
  60. package/lazy/{casino-calendar-C3pFBr-V.js → casino-calendar-CDGAH9KV.js} +1 -1
  61. package/lazy/{casino-calendar-daily-details-CMNO8yVt.js → casino-calendar-daily-details-BZ6lWliO.js} +1 -1
  62. package/lazy/{casino-calendar-daily-details-CFdZ0y8g.cjs → casino-calendar-daily-details-CkvPWhRn.cjs} +1 -1
  63. package/lazy/{casino-calendar-daily-details--hiprlav.js → casino-calendar-daily-details-CreJXTIY.js} +1 -1
  64. package/lazy/{casino-calendar-daily-item-Dt5sMvLn.js → casino-calendar-daily-item-B294skVH.js} +1 -1
  65. package/lazy/{casino-calendar-daily-item-CcpGZGk2.js → casino-calendar-daily-item-BPg2o_ak.js} +1 -1
  66. package/lazy/{casino-calendar-daily-item-DBgzZi6h.cjs → casino-calendar-daily-item-OzC20xXV.cjs} +1 -1
  67. package/lazy/{casino-collections-providers-C-IXWoMt.js → casino-collections-providers-BmEfkamW.js} +1 -1
  68. package/lazy/{casino-collections-providers-ChwusPlU.cjs → casino-collections-providers-CS7TN5Jq.cjs} +1 -1
  69. package/lazy/{casino-collections-providers-CZlcLi3I.js → casino-collections-providers-D-Lac16c.js} +1 -1
  70. package/lazy/{casino-favorites-section-nd-IDnSx6LY.js → casino-favorites-section-nd-BazZLv4x.js} +1 -1
  71. package/lazy/{casino-favorites-section-nd-Ddu_8ZpD.cjs → casino-favorites-section-nd-BbJYgzDZ.cjs} +1 -1
  72. package/lazy/{casino-favorites-section-nd-MgjY7aDg.js → casino-favorites-section-nd-nPKsz6I2.js} +1 -1
  73. package/lazy/{casino-filter-DxJEhjqm.cjs → casino-filter-0hD3kNKp.cjs} +1 -1
  74. package/lazy/{casino-filter-CvdGS5WS.js → casino-filter-BpUtqzOq.js} +1 -1
  75. package/lazy/{casino-filter-x6iQmG8o.js → casino-filter-LrYoEa2q.js} +1 -1
  76. package/lazy/{casino-game-thumbnail-nd-fLseOtb1.js → casino-game-thumbnail-nd-BpZR5RyP.js} +1 -1
  77. package/lazy/{casino-game-thumbnail-nd-CmbS4UC5.js → casino-game-thumbnail-nd-Dw6vijuw.js} +1 -1
  78. package/lazy/{casino-game-thumbnail-nd-BNX3nQzO.cjs → casino-game-thumbnail-nd-scS9CFBJ.cjs} +1 -1
  79. package/lazy/{casino-games-category-section-nd-4wlUiWn8.cjs → casino-games-category-section-nd-BRF_H9fJ.cjs} +1 -1
  80. package/lazy/{casino-games-category-section-nd-B5b_8VTG.js → casino-games-category-section-nd-BlkiwQIq.js} +1 -1
  81. package/lazy/{casino-games-category-section-nd-mWetVUsk.js → casino-games-category-section-nd-_dwBrjcT.js} +1 -1
  82. package/lazy/{casino-jackpot-banner-CBykDPkn.js → casino-jackpot-banner-7aQVJA-u.js} +1 -1
  83. package/lazy/{casino-jackpot-banner-Dclo86eY.js → casino-jackpot-banner-BZR61rlM.js} +1 -1
  84. package/lazy/{casino-jackpot-banner-BRGk1i5x.cjs → casino-jackpot-banner-DqljUZ3D.cjs} +1 -1
  85. package/lazy/{casino-last-played-section-nd-DNynAP0O.js → casino-last-played-section-nd-BCMeN_xL.js} +1 -1
  86. package/lazy/{casino-last-played-section-nd-Y8YRdawj.js → casino-last-played-section-nd-Dk09Q6Oo.js} +1 -1
  87. package/lazy/{casino-last-played-section-nd-BENyEKvl.cjs → casino-last-played-section-nd-DyHep2bs.cjs} +1 -1
  88. package/lazy/{casino-most-played-section-nd-uOEOVr80.js → casino-most-played-section-nd-DGErR8Qy.js} +1 -1
  89. package/lazy/{casino-most-played-section-nd-CDxisfSd.cjs → casino-most-played-section-nd-DeeoJS9L.cjs} +1 -1
  90. package/lazy/{casino-most-played-section-nd--IDhBmzV.js → casino-most-played-section-nd-MahPsOcg.js} +1 -1
  91. package/lazy/{casino-my-games-nd-shBn8eVI.js → casino-my-games-nd-B9th_ITS.js} +1 -1
  92. package/lazy/{casino-my-games-nd-BzZqvl8m.cjs → casino-my-games-nd-Bavk_uVF.cjs} +1 -1
  93. package/lazy/{casino-my-games-nd-hhOAoTf-.js → casino-my-games-nd-Cr4euW7O.js} +1 -1
  94. package/lazy/{casino-random-game-Cat_tAZT.js → casino-random-game-BCbXjFco.js} +1 -1
  95. package/lazy/{casino-random-game-Doo9yzQt.js → casino-random-game-D89lDDvz.js} +1 -1
  96. package/lazy/{casino-random-game-eE6hTWNw.cjs → casino-random-game-DiBN599Y.cjs} +1 -1
  97. package/lazy/{casino-search-nd-LFipqxYz.js → casino-search-nd-B-trMEPg.js} +1 -1
  98. package/lazy/{casino-search-nd-B5qv7Mra.cjs → casino-search-nd-B313a-hZ.cjs} +1 -1
  99. package/lazy/{casino-search-nd--jk190OZ.js → casino-search-nd-DX9y7hrV.js} +1 -1
  100. package/lazy/{casino-sort-BcuCWb8z.js → casino-sort-BX6cf-yt.js} +1 -1
  101. package/lazy/{casino-sort-CVYLHFfC.cjs → casino-sort-DYdgpEhn.cjs} +1 -1
  102. package/lazy/{casino-sort-CTKb0shJ.js → casino-sort-LsdC94Za.js} +1 -1
  103. package/lazy/{casino-winners-C9Jj7SyY.cjs → casino-winners-B5_Q3bvn.cjs} +1 -1
  104. package/lazy/{casino-winners-jTx87PeA.js → casino-winners-BORY4UJw.js} +1 -1
  105. package/lazy/{casino-winners-DGiPC9oE.js → casino-winners-I74kUrkL.js} +1 -1
  106. package/lazy/{general-animation-loading-BSWx-kfp.js → general-animation-loading--byYFuL2.js} +1 -1
  107. package/lazy/{general-animation-loading-CxOn6BQv.js → general-animation-loading-D1Tz4Ui8.js} +1 -1
  108. package/lazy/{general-animation-loading-HWLiLPqG.cjs → general-animation-loading-oYXMnrSW.cjs} +1 -1
  109. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { a as V, $ as F, S as G, i as Q, s as X, f as m, b as Y, n as D, d as p, c as b, g as h, j as v, k as Z, l as x, o as $, u as ee, r as le, w as ie, e as I, x as ae, y as P, D as te, h as ne, v as re, B as n, H as se, I as oe, J as de, K as ce } from "./CasinoPageNd-u8Nxbkgk.js";
2
- import "../lazy/casino-calendar-daily-details-CMNO8yVt.js";
3
- import "../lazy/casino-calendar-daily-item-CcpGZGk2.js";
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
- V(i, e);
5
+ K(i, e);
6
6
  }
7
7
  function ue(i) {
8
- F.set(i);
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 O(i, e, l) {
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] = R(O(i, o, a));
44
+ t[a] = O(N(i, o, a));
45
45
  let c = (
46
46
  /*calendarModalOpened*/
47
- i[11] == !0 && N(i)
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 = O(a, o, r);
73
- t[r] ? t[r].p(y, u) : (t[r] = R(y), t[r].c(), t[r].m(e, l));
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 = N(a), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
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: D,
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 R(i) {
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 N(i) {
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: D,
375
- o: D,
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, L = !1, B = !1, M = window.navigator.userAgent, C = !1, U;
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 H = () => {
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
- }, q = () => {
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(M);
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, L = !0);
409
+ console.log(g), l(9, D = !0);
410
410
  }).finally(() => {
411
- z(), l(8, S = !1);
411
+ V(), l(8, S = !1);
412
412
  });
413
- }, z = () => {
413
+ }, V = () => {
414
414
  const s = _.getRootNode().host;
415
415
  s.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: s } }));
416
- }, J = () => {
417
- q();
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(M) && l(10, B = !0), () => {
431
+ $(() => (window.addEventListener("message", T, !1), ee(B) && l(10, M = !0), () => {
432
432
  window.removeEventListener("message", T);
433
433
  }));
434
- function K(s) {
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 && J(), i.$$.dirty & /*clientstyling, customStylingContainer*/
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 && H();
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
- L,
460
- B,
459
+ D,
460
+ M,
461
461
  C,
462
462
  d,
463
463
  o,
464
464
  t,
465
465
  c,
466
- K
466
+ J
467
467
  ];
468
468
  }
469
- class ve extends G {
469
+ class ve extends F {
470
470
  constructor(e) {
471
- super(), Q(
471
+ super(), G(
472
472
  this,
473
473
  e,
474
474
  he,
@@ -1,11 +1,11 @@
1
- import { a as J, $ as V, S as K, i as Q, s as X, f as m, b as Y, n as I, d as p, c as b, g as h, j as v, k as Z, o as x, t as $, q as ee, v as le, e as L, w as ie, x as P, B as ae, h as te, u as ne, A as n, F as re, G as se, H as oe, I as de, J as ce } from "./CasinoPageNd-BoxT7vNT.js";
2
- import "../lazy/casino-calendar-daily-details--hiprlav.js";
3
- import "../lazy/casino-calendar-daily-item-Dt5sMvLn.js";
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
- J(i, e);
5
+ K(i, e);
6
6
  }
7
7
  function ue(i) {
8
- V.set(i);
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 O(i, e, l) {
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] = R(O(i, o, a));
44
+ t[a] = O(N(i, o, a));
45
45
  let c = (
46
46
  /*calendarModalOpened*/
47
- i[11] == !0 && N(i)
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
- L(e, l), c && c.m(e, null);
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 = O(a, o, r);
73
- t[r] ? t[r].p(y, u) : (t[r] = R(y), t[r].c(), t[r].m(e, l));
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 = N(a), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
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: I,
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), L(e, d);
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 R(i) {
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 N(i) {
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), L(e, l);
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: I,
376
- o: I,
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, B = !1, M = window.navigator.userAgent, C = !1, U;
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
- }, H = () => {
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(M);
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
- z(), l(8, S = !1);
412
+ V(), l(8, S = !1);
413
413
  });
414
- }, z = () => {
414
+ }, V = () => {
415
415
  const s = _.getRootNode().host;
416
416
  s.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: s } }));
417
- }, F = () => {
418
- H();
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), $(M) && l(10, B = !0), () => {
433
+ x(() => (window.addEventListener("message", T, !1), $(B) && l(10, M = !0), () => {
434
434
  window.removeEventListener("message", T);
435
435
  }));
436
- function G(s) {
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 && F(), i.$$.dirty & /*clientstyling, customStylingContainer*/
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
- B,
462
+ M,
463
463
  C,
464
464
  d,
465
465
  o,
466
466
  t,
467
467
  c,
468
- G
468
+ J
469
469
  ];
470
470
  }
471
- class ve extends K {
471
+ class ve extends F {
472
472
  constructor(e) {
473
- super(), Q(
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-ByOWge44.cjs");require("../lazy/casino-calendar-daily-details-CFdZ0y8g.cjs");require("../lazy/casino-calendar-daily-item-DBgzZi6h.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
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;