@everymatrix/casino-page-nd 1.54.4 → 1.54.8

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 (66) hide show
  1. package/components/CasinoCalendar-C6a9eFaO.cjs +6 -0
  2. package/components/CasinoCalendar-DDVrqLgy.js +5038 -0
  3. package/components/{CasinoCalendar-pVz7jYqi.js → CasinoCalendar-bbQ7XQxy.js} +472 -480
  4. package/components/{CasinoCalendarDailyDetails-D7GkfhmR.js → CasinoCalendarDailyDetails-CHDDIjz6.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-CjEpB1kl.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-qtzYJYlV.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-CU9qMJji.js → CasinoCalendarDailyItem-Cp39gR0b.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-DT6c5ba5.js +315 -0
  9. package/components/CasinoCalendarDailyItem-DbAPROfK.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-Bat7vjFP.cjs +1 -0
  11. package/components/{CasinoCollectionsProviders-DxgdPTXN.js → CasinoCollectionsProviders-D0OxJ4mu.js} +54 -54
  12. package/components/CasinoCollectionsProviders-DFS4nF-f.js +664 -0
  13. package/components/CasinoFavoritesSectionNd-C-mlwUPF.js +439 -0
  14. package/components/CasinoFavoritesSectionNd-CAzeF_7i.cjs +1 -0
  15. package/components/{CasinoFavoritesSectionNd-B8EIXq01.js → CasinoFavoritesSectionNd-JRM9DmH3.js} +16 -16
  16. package/components/CasinoFilter-CcnQf7Ao.js +634 -0
  17. package/components/CasinoFilter-DzZ9jegE.cjs +1 -0
  18. package/components/{CasinoFilter-C67EHGOs.js → CasinoFilter-eRlmpVPT.js} +55 -55
  19. package/components/CasinoGameThumbnailNd-C-oDcBm6.js +4411 -0
  20. package/components/{CasinoGameThumbnailNd-Dj9aITsK.js → CasinoGameThumbnailNd-DkpEv-Ct.js} +63 -63
  21. package/components/CasinoGameThumbnailNd-PO04kmzB.cjs +39 -0
  22. package/components/{CasinoGamesCategorySectionNd-OZ2HaGrH.js → CasinoGamesCategorySectionNd-BeEANQ42.js} +598 -578
  23. package/components/CasinoGamesCategorySectionNd-CgmxjdqR.cjs +1 -0
  24. package/components/CasinoGamesCategorySectionNd-DZM4fSnF.js +3003 -0
  25. package/components/{CasinoJackpotBanner-BRQqqpK8.js → CasinoJackpotBanner-BW3UHeqB.js} +68 -68
  26. package/components/CasinoJackpotBanner-DyviT8PE.cjs +1 -0
  27. package/components/CasinoJackpotBanner-PNsV-XdJ.js +618 -0
  28. package/components/CasinoLastPlayedSectionNd-Bii3bkmh.cjs +1 -0
  29. package/components/{CasinoLastPlayedSectionNd--_9buYZx.js → CasinoLastPlayedSectionNd-Bu825sC-.js} +26 -26
  30. package/components/CasinoLastPlayedSectionNd-_a-9_9CB.js +566 -0
  31. package/components/{CasinoMostPlayedSectionNd-umJpV9lP.js → CasinoMostPlayedSectionNd-Bc1CtL3u.js} +32 -32
  32. package/components/CasinoMostPlayedSectionNd-BeyWzGzL.cjs +1 -0
  33. package/components/CasinoMostPlayedSectionNd-XrqY9Z0s.js +583 -0
  34. package/components/{CasinoMyGamesNd-Bosn4XLW.js → CasinoMyGamesNd-5Lcn0-GF.js} +42 -42
  35. package/components/CasinoMyGamesNd-Bu5gXn9P.js +1317 -0
  36. package/components/CasinoMyGamesNd-DjSqNSVm.cjs +1 -0
  37. package/components/CasinoPageNd-BMjB-SDR.js +3548 -0
  38. package/components/CasinoPageNd-BYE3mgQK.cjs +1 -0
  39. package/components/{CasinoPageNd-C2EI24cS.js → CasinoPageNd-Cif8W7r5.js} +124 -124
  40. package/components/CasinoRandomGame-CJ-AjCzR.cjs +2 -0
  41. package/components/{CasinoRandomGame-BpYrX4Cp.js → CasinoRandomGame-kyYvcZEe.js} +56 -56
  42. package/components/CasinoRandomGame-pjgjdiS0.js +668 -0
  43. package/components/CasinoSearchNd-CjA2LSbG.js +1072 -0
  44. package/components/{CasinoSearchNd-CmTarxBK.js → CasinoSearchNd-DZxa74P3.js} +69 -69
  45. package/components/CasinoSearchNd-KpuwtpF8.cjs +1 -0
  46. package/components/CasinoSort-1r13Ud33.cjs +1 -0
  47. package/components/CasinoSort-CnCgPeXg.js +432 -0
  48. package/components/{CasinoSort-bFOcp6J4.js → CasinoSort-cgSZzSk9.js} +16 -16
  49. package/components/CasinoWinners-C__0hS-V.cjs +1 -0
  50. package/components/{CasinoWinners-BUoqMo1a.js → CasinoWinners-D5G-uBAw.js} +75 -75
  51. package/components/CasinoWinners-DrSn3Xk6.js +971 -0
  52. package/components/GeneralAnimationLoading-CLCqZfpz.cjs +1 -0
  53. package/components/{GeneralAnimationLoading-CC5IRZHm.js → GeneralAnimationLoading-DZ8DpeOD.js} +8 -8
  54. package/components/GeneralAnimationLoading-Oq6jfcwG.js +75 -0
  55. package/es2015/casino-page-nd.cjs +1 -0
  56. package/es2015/casino-page-nd.js +16 -0
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  60. package/stencil/casino-play-random-game-BKQH1Zx1.cjs +371 -0
  61. package/stencil/casino-play-random-game-BqK1nKDT.js +577 -0
  62. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-pLVMnBV9.js} +1 -1
  63. package/stencil/index-f923e8d1-BWfXmHlD.js +645 -0
  64. package/stencil/index-f923e8d1-DEpJEd5d.cjs +1 -0
  65. package/stencil/index-f923e8d1-DkIbJRWP.js +629 -0
  66. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -1,11 +1,11 @@
1
- import { a as U, $ as q, S as V, i as G, f as g, c as J, s as K, b as Q, e as c, r as D, u as R, v as o, E as O, I as _, d as X, w as r, x as Y, B as W, D as A, j as Z, k as $, o as ee, m as te, n as H, F as ae } from "./CasinoCalendar-pVz7jYqi.js";
1
+ import { a as N, $ as U, S as G, i as J, s as V, f as g, b as K, n as R, d as Q, D as A, r as o, m as O, G as _, h as X, p as r, A as Y, j as c, B as D, q as W, k as Z, o as $, l as ee, C as H, I as te, J as ae } from "./CasinoCalendar-DDVrqLgy.js";
2
2
  function P(a, t) {
3
- U(a, t);
3
+ N(a, t);
4
4
  }
5
5
  function ne(a) {
6
- q.set(a);
6
+ U.set(a);
7
7
  }
8
- const N = {
8
+ const q = {
9
9
  en: {
10
10
  error: "500 Error - Internal Server Error",
11
11
  loading: "Loading ...",
@@ -74,32 +74,32 @@ const N = {
74
74
  }
75
75
  };
76
76
  function ie(a) {
77
- Q(a, "svelte-1jtwzs1", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
77
+ K(a, "svelte-1jtwzs1", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
78
78
  }
79
79
  function re(a) {
80
- let t, i, C, l, m, T, n, h, s, w, v, f, p = (
80
+ let t, i, C, l, m, T, n, h, s, w, v, p, f = (
81
81
  /*$_*/
82
82
  a[8](`${/*dailyday*/
83
83
  a[2]}`) + ""
84
- ), b, y, k, B, S, F, z, I, E, L, j;
84
+ ), b, y, k, B, S, F, E, I, M, L, j;
85
85
  return {
86
86
  c() {
87
- t = c("div"), i = c("div"), C = c("div"), l = c("div"), m = c("div"), m.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', T = D(), n = c("div"), h = c("div"), s = c("img"), v = D(), f = c("div"), b = R(p), y = D(), k = c("div"), B = D(), S = c("div"), F = c("button"), z = R(
87
+ t = c("div"), i = c("div"), C = c("div"), l = c("div"), m = c("div"), m.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', T = D(), n = c("div"), h = c("div"), s = c("img"), v = D(), p = c("div"), b = W(f), y = D(), k = c("div"), B = D(), S = c("div"), F = c("button"), E = W(
88
88
  /*dailybuttontitle*/
89
89
  a[3]
90
- ), o(m, "class", "CalendarBar"), O(s.src, w = /*dailyicon*/
90
+ ), o(m, "class", "CalendarBar"), A(s.src, w = /*dailyicon*/
91
91
  a[1]) || o(s, "src", w), o(
92
92
  s,
93
93
  "alt",
94
94
  /*dailyicon*/
95
95
  a[1]
96
- ), o(h, "class", "CasinoCalendarDailyIcon"), o(f, "class", "CasinoCalendarDailyTitle"), o(k, "class", "CasinoCalendarDailyItemDescription"), o(F, "class", "MoreInfoButton"), o(S, "class", "CasinoCalendarDailyItemButton"), o(n, "class", I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
96
+ ), o(h, "class", "CasinoCalendarDailyIcon"), o(p, "class", "CasinoCalendarDailyTitle"), o(k, "class", "CasinoCalendarDailyItemDescription"), o(F, "class", "MoreInfoButton"), o(S, "class", "CasinoCalendarDailyItemButton"), o(n, "class", I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
97
97
  a[4] == "OpenCalendarModal" ? "Tear" : "")), _(n, "background-image", "url('" + /*dailybackground*/
98
- a[0] + "')"), _(n, "background-size", "cover"), _(n, "background-position", "center"), _(n, "-webkit-background-size", "cover"), _(n, "-moz-background-size", "cover"), _(n, "-o-background-size", "cover"), o(l, "class", "CalendarCard"), o(C, "class", "CasinoCalendarItems"), o(i, "class", E = "Container " + /*mobileView*/
98
+ a[0] + "')"), _(n, "background-size", "cover"), _(n, "background-position", "center"), _(n, "-webkit-background-size", "cover"), _(n, "-moz-background-size", "cover"), _(n, "-o-background-size", "cover"), o(l, "class", "CalendarCard"), o(C, "class", "CasinoCalendarItems"), o(i, "class", M = "Container " + /*mobileView*/
99
99
  (a[7] ? "Mobile" : ""));
100
100
  },
101
101
  m(d, u) {
102
- X(d, t, u), r(t, i), r(i, C), r(C, l), r(l, m), r(l, T), r(l, n), r(n, h), r(h, s), r(n, v), r(n, f), r(f, b), r(n, y), r(n, k), a[15](k), r(n, B), r(n, S), r(S, F), r(F, z), a[17](t), L || (j = Y(
102
+ X(d, t, u), r(t, i), r(i, C), r(C, l), r(l, m), r(l, T), r(l, n), r(n, h), r(h, s), r(n, v), r(n, p), r(p, b), r(n, y), r(n, k), a[15](k), r(n, B), r(n, S), r(S, F), r(F, E), a[17](t), L || (j = Y(
103
103
  F,
104
104
  "click",
105
105
  /*click_handler*/
@@ -108,7 +108,7 @@ function re(a) {
108
108
  },
109
109
  p(d, [u]) {
110
110
  u & /*dailyicon*/
111
- 2 && !O(s.src, w = /*dailyicon*/
111
+ 2 && !A(s.src, w = /*dailyicon*/
112
112
  d[1]) && o(s, "src", w), u & /*dailyicon*/
113
113
  2 && o(
114
114
  s,
@@ -116,11 +116,11 @@ function re(a) {
116
116
  /*dailyicon*/
117
117
  d[1]
118
118
  ), u & /*$_, dailyday*/
119
- 260 && p !== (p = /*$_*/
119
+ 260 && f !== (f = /*$_*/
120
120
  d[8](`${/*dailyday*/
121
- d[2]}`) + "") && W(b, p), u & /*dailybuttontitle*/
122
- 8 && W(
123
- z,
121
+ d[2]}`) + "") && O(b, f), u & /*dailybuttontitle*/
122
+ 8 && O(
123
+ E,
124
124
  /*dailybuttontitle*/
125
125
  d[3]
126
126
  ), u & /*index*/
@@ -128,48 +128,48 @@ function re(a) {
128
128
  d[4] == "OpenCalendarModal" ? "Tear" : "")) && o(n, "class", I), u & /*dailybackground*/
129
129
  1 && _(n, "background-image", "url('" + /*dailybackground*/
130
130
  d[0] + "')"), u & /*mobileView*/
131
- 128 && E !== (E = "Container " + /*mobileView*/
132
- (d[7] ? "Mobile" : "")) && o(i, "class", E);
131
+ 128 && M !== (M = "Container " + /*mobileView*/
132
+ (d[7] ? "Mobile" : "")) && o(i, "class", M);
133
133
  },
134
- i: A,
135
- o: A,
134
+ i: R,
135
+ o: R,
136
136
  d(d) {
137
- d && Z(t), a[15](null), a[17](null), L = !1, j();
137
+ d && Q(t), a[15](null), a[17](null), L = !1, j();
138
138
  }
139
139
  };
140
140
  }
141
141
  function oe(a, t, i) {
142
142
  let C;
143
- $(a, ae, (e) => i(8, C = e));
144
- let { lang: l = "" } = t, { dailybackground: m = "" } = t, { dailyicon: T = "" } = t, { dailyday: n = "" } = t, { dailydescription: h = "<p></p>" } = t, { dailybuttontitle: s = "" } = t, { index: w = "0" } = t, { clientstyling: v = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: p = "" } = t, b, y, k = !1, B = window.navigator.userAgent;
143
+ Z(a, ae, (e) => i(8, C = e));
144
+ let { lang: l = "" } = t, { dailybackground: m = "" } = t, { dailyicon: T = "" } = t, { dailyday: n = "" } = t, { dailydescription: h = "<p></p>" } = t, { dailybuttontitle: s = "" } = t, { index: w = "0" } = t, { clientstyling: v = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: f = "" } = t, b, y, k = !1, B = window.navigator.userAgent;
145
145
  const S = () => {
146
146
  ne(l);
147
147
  };
148
- Object.keys(N).forEach((e) => {
149
- P(e, N[e]);
148
+ Object.keys(q).forEach((e) => {
149
+ P(e, q[e]);
150
150
  });
151
151
  const F = () => {
152
- let e = p;
152
+ let e = f;
153
153
  if (e)
154
154
  return fetch(e).then((x) => x.json()).then((x) => {
155
- Object.keys(x).forEach((M) => {
156
- P(M, x[M]);
155
+ Object.keys(x).forEach((z) => {
156
+ P(z, x[z]);
157
157
  });
158
158
  }).catch((x) => {
159
159
  console.log(x);
160
160
  });
161
- }, z = () => {
161
+ }, E = () => {
162
162
  let e = document.createElement("div");
163
163
  e.innerHTML = h, b && b.append(e);
164
164
  }, I = () => {
165
165
  window.postMessage({ type: "OpenCalendar", index: w }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
166
- }, E = () => {
166
+ }, M = () => {
167
167
  let e = document.createElement("style");
168
168
  e.innerHTML = v, y.appendChild(e);
169
169
  }, L = () => {
170
- let e = new URL(f), x = document.createElement("style");
171
- fetch(e.href).then((M) => M.text()).then((M) => {
172
- x.innerHTML = M, setTimeout(
170
+ let e = new URL(p), x = document.createElement("style");
171
+ fetch(e.href).then((z) => z.text()).then((z) => {
172
+ x.innerHTML = z, setTimeout(
173
173
  () => {
174
174
  y.appendChild(x);
175
175
  },
@@ -181,8 +181,8 @@ function oe(a, t, i) {
181
181
  );
182
182
  });
183
183
  };
184
- ee(() => {
185
- te(B) && i(7, k = !0);
184
+ $(() => {
185
+ ee(B) && i(7, k = !0);
186
186
  });
187
187
  function j(e) {
188
188
  H[e ? "unshift" : "push"](() => {
@@ -196,14 +196,14 @@ function oe(a, t, i) {
196
196
  });
197
197
  }
198
198
  return a.$$set = (e) => {
199
- "lang" in e && i(10, l = e.lang), "dailybackground" in e && i(0, m = e.dailybackground), "dailyicon" in e && i(1, T = e.dailyicon), "dailyday" in e && i(2, n = e.dailyday), "dailydescription" in e && i(11, h = e.dailydescription), "dailybuttontitle" in e && i(3, s = e.dailybuttontitle), "index" in e && i(4, w = e.index), "clientstyling" in e && i(12, v = e.clientstyling), "clientstylingurl" in e && i(13, f = e.clientstylingurl), "translationurl" in e && i(14, p = e.translationurl);
199
+ "lang" in e && i(10, l = e.lang), "dailybackground" in e && i(0, m = e.dailybackground), "dailyicon" in e && i(1, T = e.dailyicon), "dailyday" in e && i(2, n = e.dailyday), "dailydescription" in e && i(11, h = e.dailydescription), "dailybuttontitle" in e && i(3, s = e.dailybuttontitle), "index" in e && i(4, w = e.index), "clientstyling" in e && i(12, v = e.clientstyling), "clientstylingurl" in e && i(13, p = e.clientstylingurl), "translationurl" in e && i(14, f = e.translationurl);
200
200
  }, a.$$.update = () => {
201
201
  a.$$.dirty & /*lang*/
202
202
  1024 && l && S(), a.$$.dirty & /*lang, translationurl*/
203
- 17408 && l && p && F(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
204
- 2063 && T && n && h && s && m && z(), a.$$.dirty & /*clientstyling, customStylingContainer*/
205
- 4128 && v && y && E(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
206
- 8224 && f && y && L();
203
+ 17408 && l && f && F(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
204
+ 2063 && T && n && h && s && m && E(), a.$$.dirty & /*clientstyling, customStylingContainer*/
205
+ 4128 && v && y && M(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
206
+ 8224 && p && y && L();
207
207
  }, [
208
208
  m,
209
209
  T,
@@ -218,21 +218,21 @@ function oe(a, t, i) {
218
218
  l,
219
219
  h,
220
220
  v,
221
- f,
222
221
  p,
222
+ f,
223
223
  j,
224
224
  d,
225
225
  u
226
226
  ];
227
227
  }
228
- class de extends V {
228
+ class de extends G {
229
229
  constructor(t) {
230
- super(), G(
230
+ super(), J(
231
231
  this,
232
232
  t,
233
233
  oe,
234
234
  re,
235
- K,
235
+ V,
236
236
  {
237
237
  lang: 10,
238
238
  dailybackground: 0,
@@ -309,7 +309,7 @@ class de extends V {
309
309
  this.$$set({ translationurl: t }), g();
310
310
  }
311
311
  }
312
- J(de, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
312
+ te(de, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
313
313
  export {
314
314
  de as default
315
315
  };
@@ -0,0 +1,315 @@
1
+ import { a as N, $ as U, S as G, i as J, s as V, f as g, b as K, n as R, d as Q, D as A, r as o, m as O, G as _, h as X, p as r, A as Y, j as c, B as D, q as W, k as Z, o as $, l as ee, C as H, I as te, J as ae } from "./CasinoCalendar-bbQ7XQxy.js";
2
+ function P(a, t) {
3
+ N(a, t);
4
+ }
5
+ function ne(a) {
6
+ U.set(a);
7
+ }
8
+ const q = {
9
+ en: {
10
+ error: "500 Error - Internal Server Error",
11
+ loading: "Loading ...",
12
+ monday: "Monday",
13
+ tuesday: "Tuesday",
14
+ wednesday: "Wednesday",
15
+ thursday: "Thursday",
16
+ friday: "Friday",
17
+ saturday: "Saturday",
18
+ sunday: "Sunday"
19
+ },
20
+ hr: {
21
+ error: "500 Error - Internal Server Error",
22
+ loading: "Loading ...",
23
+ monday: "ponedjeljak",
24
+ tuesday: "utorak",
25
+ wednesday: "srijeda",
26
+ thursday: "četvrtak",
27
+ friday: "petak",
28
+ saturday: "subota",
29
+ sunday: "nedjelja"
30
+ },
31
+ "pt-br": {
32
+ error: "500 Error - Internal Server Error",
33
+ loading: "Loading ...",
34
+ monday: "Monday",
35
+ tuesday: "Tuesday",
36
+ wednesday: "Wednesday",
37
+ thursday: "Thursday",
38
+ friday: "Friday",
39
+ saturday: "Saturday",
40
+ sunday: "Sunday"
41
+ },
42
+ "es-mx": {
43
+ error: "500 Error - Internal Server Error",
44
+ loading: "Loading ...",
45
+ monday: "Monday",
46
+ tuesday: "Tuesday",
47
+ wednesday: "Wednesday",
48
+ thursday: "Thursday",
49
+ friday: "Friday",
50
+ saturday: "Saturday",
51
+ sunday: "Sunday"
52
+ },
53
+ tr: {
54
+ error: "500 Error - Internal Server Error",
55
+ loading: "Loading ...",
56
+ monday: "Monday",
57
+ tuesday: "Tuesday",
58
+ wednesday: "Wednesday",
59
+ thursday: "Thursday",
60
+ friday: "Friday",
61
+ saturday: "Saturday",
62
+ sunday: "Sunday"
63
+ },
64
+ "en-us": {
65
+ error: "500 Error - Internal Server Error",
66
+ loading: "Loading ...",
67
+ monday: "Monday",
68
+ tuesday: "Tuesday",
69
+ wednesday: "Wednesday",
70
+ thursday: "Thursday",
71
+ friday: "Friday",
72
+ saturday: "Saturday",
73
+ sunday: "Sunday"
74
+ }
75
+ };
76
+ function ie(a) {
77
+ K(a, "svelte-1jtwzs1", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
78
+ }
79
+ function re(a) {
80
+ let t, i, C, l, m, T, n, h, s, w, v, p, f = (
81
+ /*$_*/
82
+ a[8](`${/*dailyday*/
83
+ a[2]}`) + ""
84
+ ), b, y, k, B, S, F, E, I, M, L, j;
85
+ return {
86
+ c() {
87
+ t = c("div"), i = c("div"), C = c("div"), l = c("div"), m = c("div"), m.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', T = D(), n = c("div"), h = c("div"), s = c("img"), v = D(), p = c("div"), b = W(f), y = D(), k = c("div"), B = D(), S = c("div"), F = c("button"), E = W(
88
+ /*dailybuttontitle*/
89
+ a[3]
90
+ ), o(m, "class", "CalendarBar"), A(s.src, w = /*dailyicon*/
91
+ a[1]) || o(s, "src", w), o(
92
+ s,
93
+ "alt",
94
+ /*dailyicon*/
95
+ a[1]
96
+ ), o(h, "class", "CasinoCalendarDailyIcon"), o(p, "class", "CasinoCalendarDailyTitle"), o(k, "class", "CasinoCalendarDailyItemDescription"), o(F, "class", "MoreInfoButton"), o(S, "class", "CasinoCalendarDailyItemButton"), o(n, "class", I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
97
+ a[4] == "OpenCalendarModal" ? "Tear" : "")), _(n, "background-image", "url('" + /*dailybackground*/
98
+ a[0] + "')"), _(n, "background-size", "cover"), _(n, "background-position", "center"), _(n, "-webkit-background-size", "cover"), _(n, "-moz-background-size", "cover"), _(n, "-o-background-size", "cover"), o(l, "class", "CalendarCard"), o(C, "class", "CasinoCalendarItems"), o(i, "class", M = "Container " + /*mobileView*/
99
+ (a[7] ? "Mobile" : ""));
100
+ },
101
+ m(d, u) {
102
+ X(d, t, u), r(t, i), r(i, C), r(C, l), r(l, m), r(l, T), r(l, n), r(n, h), r(h, s), r(n, v), r(n, p), r(p, b), r(n, y), r(n, k), a[15](k), r(n, B), r(n, S), r(S, F), r(F, E), a[17](t), L || (j = Y(
103
+ F,
104
+ "click",
105
+ /*click_handler*/
106
+ a[16]
107
+ ), L = !0);
108
+ },
109
+ p(d, [u]) {
110
+ u & /*dailyicon*/
111
+ 2 && !A(s.src, w = /*dailyicon*/
112
+ d[1]) && o(s, "src", w), u & /*dailyicon*/
113
+ 2 && o(
114
+ s,
115
+ "alt",
116
+ /*dailyicon*/
117
+ d[1]
118
+ ), u & /*$_, dailyday*/
119
+ 260 && f !== (f = /*$_*/
120
+ d[8](`${/*dailyday*/
121
+ d[2]}`) + "") && O(b, f), u & /*dailybuttontitle*/
122
+ 8 && O(
123
+ E,
124
+ /*dailybuttontitle*/
125
+ d[3]
126
+ ), u & /*index*/
127
+ 16 && I !== (I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
128
+ d[4] == "OpenCalendarModal" ? "Tear" : "")) && o(n, "class", I), u & /*dailybackground*/
129
+ 1 && _(n, "background-image", "url('" + /*dailybackground*/
130
+ d[0] + "')"), u & /*mobileView*/
131
+ 128 && M !== (M = "Container " + /*mobileView*/
132
+ (d[7] ? "Mobile" : "")) && o(i, "class", M);
133
+ },
134
+ i: R,
135
+ o: R,
136
+ d(d) {
137
+ d && Q(t), a[15](null), a[17](null), L = !1, j();
138
+ }
139
+ };
140
+ }
141
+ function oe(a, t, i) {
142
+ let C;
143
+ Z(a, ae, (e) => i(8, C = e));
144
+ let { lang: l = "" } = t, { dailybackground: m = "" } = t, { dailyicon: T = "" } = t, { dailyday: n = "" } = t, { dailydescription: h = "<p></p>" } = t, { dailybuttontitle: s = "" } = t, { index: w = "0" } = t, { clientstyling: v = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: f = "" } = t, b, y, k = !1, B = window.navigator.userAgent;
145
+ const S = () => {
146
+ ne(l);
147
+ };
148
+ Object.keys(q).forEach((e) => {
149
+ P(e, q[e]);
150
+ });
151
+ const F = () => {
152
+ let e = f;
153
+ if (e)
154
+ return fetch(e).then((x) => x.json()).then((x) => {
155
+ Object.keys(x).forEach((z) => {
156
+ P(z, x[z]);
157
+ });
158
+ }).catch((x) => {
159
+ console.log(x);
160
+ });
161
+ }, E = () => {
162
+ let e = document.createElement("div");
163
+ e.innerHTML = h, b && b.append(e);
164
+ }, I = () => {
165
+ window.postMessage({ type: "OpenCalendar", index: w }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
166
+ }, M = () => {
167
+ let e = document.createElement("style");
168
+ e.innerHTML = v, y.appendChild(e);
169
+ }, L = () => {
170
+ let e = new URL(p), x = document.createElement("style");
171
+ fetch(e.href).then((z) => z.text()).then((z) => {
172
+ x.innerHTML = z, setTimeout(
173
+ () => {
174
+ y.appendChild(x);
175
+ },
176
+ 1
177
+ ), setTimeout(
178
+ () => {
179
+ },
180
+ 500
181
+ );
182
+ });
183
+ };
184
+ $(() => {
185
+ ee(B) && i(7, k = !0);
186
+ });
187
+ function j(e) {
188
+ H[e ? "unshift" : "push"](() => {
189
+ b = e, i(6, b);
190
+ });
191
+ }
192
+ const d = () => I();
193
+ function u(e) {
194
+ H[e ? "unshift" : "push"](() => {
195
+ y = e, i(5, y);
196
+ });
197
+ }
198
+ return a.$$set = (e) => {
199
+ "lang" in e && i(10, l = e.lang), "dailybackground" in e && i(0, m = e.dailybackground), "dailyicon" in e && i(1, T = e.dailyicon), "dailyday" in e && i(2, n = e.dailyday), "dailydescription" in e && i(11, h = e.dailydescription), "dailybuttontitle" in e && i(3, s = e.dailybuttontitle), "index" in e && i(4, w = e.index), "clientstyling" in e && i(12, v = e.clientstyling), "clientstylingurl" in e && i(13, p = e.clientstylingurl), "translationurl" in e && i(14, f = e.translationurl);
200
+ }, a.$$.update = () => {
201
+ a.$$.dirty & /*lang*/
202
+ 1024 && l && S(), a.$$.dirty & /*lang, translationurl*/
203
+ 17408 && l && f && F(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
204
+ 2063 && T && n && h && s && m && E(), a.$$.dirty & /*clientstyling, customStylingContainer*/
205
+ 4128 && v && y && M(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
206
+ 8224 && p && y && L();
207
+ }, [
208
+ m,
209
+ T,
210
+ n,
211
+ s,
212
+ w,
213
+ y,
214
+ b,
215
+ k,
216
+ C,
217
+ I,
218
+ l,
219
+ h,
220
+ v,
221
+ p,
222
+ f,
223
+ j,
224
+ d,
225
+ u
226
+ ];
227
+ }
228
+ class de extends G {
229
+ constructor(t) {
230
+ super(), J(
231
+ this,
232
+ t,
233
+ oe,
234
+ re,
235
+ V,
236
+ {
237
+ lang: 10,
238
+ dailybackground: 0,
239
+ dailyicon: 1,
240
+ dailyday: 2,
241
+ dailydescription: 11,
242
+ dailybuttontitle: 3,
243
+ index: 4,
244
+ clientstyling: 12,
245
+ clientstylingurl: 13,
246
+ translationurl: 14
247
+ },
248
+ ie
249
+ );
250
+ }
251
+ get lang() {
252
+ return this.$$.ctx[10];
253
+ }
254
+ set lang(t) {
255
+ this.$$set({ lang: t }), g();
256
+ }
257
+ get dailybackground() {
258
+ return this.$$.ctx[0];
259
+ }
260
+ set dailybackground(t) {
261
+ this.$$set({ dailybackground: t }), g();
262
+ }
263
+ get dailyicon() {
264
+ return this.$$.ctx[1];
265
+ }
266
+ set dailyicon(t) {
267
+ this.$$set({ dailyicon: t }), g();
268
+ }
269
+ get dailyday() {
270
+ return this.$$.ctx[2];
271
+ }
272
+ set dailyday(t) {
273
+ this.$$set({ dailyday: t }), g();
274
+ }
275
+ get dailydescription() {
276
+ return this.$$.ctx[11];
277
+ }
278
+ set dailydescription(t) {
279
+ this.$$set({ dailydescription: t }), g();
280
+ }
281
+ get dailybuttontitle() {
282
+ return this.$$.ctx[3];
283
+ }
284
+ set dailybuttontitle(t) {
285
+ this.$$set({ dailybuttontitle: t }), g();
286
+ }
287
+ get index() {
288
+ return this.$$.ctx[4];
289
+ }
290
+ set index(t) {
291
+ this.$$set({ index: t }), g();
292
+ }
293
+ get clientstyling() {
294
+ return this.$$.ctx[12];
295
+ }
296
+ set clientstyling(t) {
297
+ this.$$set({ clientstyling: t }), g();
298
+ }
299
+ get clientstylingurl() {
300
+ return this.$$.ctx[13];
301
+ }
302
+ set clientstylingurl(t) {
303
+ this.$$set({ clientstylingurl: t }), g();
304
+ }
305
+ get translationurl() {
306
+ return this.$$.ctx[14];
307
+ }
308
+ set translationurl(t) {
309
+ this.$$set({ translationurl: t }), g();
310
+ }
311
+ }
312
+ te(de, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
313
+ export {
314
+ de as default
315
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-C6a9eFaO.cjs");function E(n,a){e.addMessages(n,a)}function j(n){e.$locale.set(n)}const L={en:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},hr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"ponedjeljak",tuesday:"utorak",wednesday:"srijeda",thursday:"četvrtak",friday:"petak",saturday:"subota",sunday:"nedjelja"},"pt-br":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"es-mx":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},tr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"en-us":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"}};function D(n){e.append_styles(n,"svelte-1jtwzs1",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}')}function R(n){let a,r,x,o,f,k,i,c,l,b,m,y,g=n[8](`${n[2]}`)+"",p,u,w,M,F,C,I,v,_,S,z;return{c(){a=e.element("div"),r=e.element("div"),x=e.element("div"),o=e.element("div"),f=e.element("div"),f.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',k=e.space(),i=e.element("div"),c=e.element("div"),l=e.element("img"),m=e.space(),y=e.element("div"),p=e.text(g),u=e.space(),w=e.element("div"),M=e.space(),F=e.element("div"),C=e.element("button"),I=e.text(n[3]),e.attr(f,"class","CalendarBar"),e.src_url_equal(l.src,b=n[1])||e.attr(l,"src",b),e.attr(l,"alt",n[1]),e.attr(c,"class","CasinoCalendarDailyIcon"),e.attr(y,"class","CasinoCalendarDailyTitle"),e.attr(w,"class","CasinoCalendarDailyItemDescription"),e.attr(C,"class","MoreInfoButton"),e.attr(F,"class","CasinoCalendarDailyItemButton"),e.attr(i,"class",v="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(i,"background-image","url('"+n[0]+"')"),e.set_style(i,"background-size","cover"),e.set_style(i,"background-position","center"),e.set_style(i,"-webkit-background-size","cover"),e.set_style(i,"-moz-background-size","cover"),e.set_style(i,"-o-background-size","cover"),e.attr(o,"class","CalendarCard"),e.attr(x,"class","CasinoCalendarItems"),e.attr(r,"class",_="Container "+(n[7]?"Mobile":""))},m(d,s){e.insert(d,a,s),e.append(a,r),e.append(r,x),e.append(x,o),e.append(o,f),e.append(o,k),e.append(o,i),e.append(i,c),e.append(c,l),e.append(i,m),e.append(i,y),e.append(y,p),e.append(i,u),e.append(i,w),n[15](w),e.append(i,M),e.append(i,F),e.append(F,C),e.append(C,I),n[17](a),S||(z=e.listen(C,"click",n[16]),S=!0)},p(d,[s]){s&2&&!e.src_url_equal(l.src,b=d[1])&&e.attr(l,"src",b),s&2&&e.attr(l,"alt",d[1]),s&260&&g!==(g=d[8](`${d[2]}`)+"")&&e.set_data(p,g),s&8&&e.set_data(I,d[3]),s&16&&v!==(v="CasinoCalendarItemBackground CalendarPage "+(d[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(i,"class",v),s&1&&e.set_style(i,"background-image","url('"+d[0]+"')"),s&128&&_!==(_="Container "+(d[7]?"Mobile":""))&&e.attr(r,"class",_)},i:e.noop,o:e.noop,d(d){d&&e.detach(a),n[15](null),n[17](null),S=!1,z()}}}function O(n,a,r){let x;e.component_subscribe(n,e.$format,t=>r(8,x=t));let{lang:o=""}=a,{dailybackground:f=""}=a,{dailyicon:k=""}=a,{dailyday:i=""}=a,{dailydescription:c="<p></p>"}=a,{dailybuttontitle:l=""}=a,{index:b="0"}=a,{clientstyling:m=""}=a,{clientstylingurl:y=""}=a,{translationurl:g=""}=a,p,u,w=!1,M=window.navigator.userAgent;const F=()=>{j(o)};Object.keys(L).forEach(t=>{E(t,L[t])});const C=()=>{let t=g;if(t)return fetch(t).then(h=>h.json()).then(h=>{Object.keys(h).forEach(T=>{E(T,h[T])})}).catch(h=>{console.log(h)})},I=()=>{let t=document.createElement("div");t.innerHTML=c,p&&p.append(t)},v=()=>{window.postMessage({type:"OpenCalendar",index:b},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})},_=()=>{let t=document.createElement("style");t.innerHTML=m,u.appendChild(t)},S=()=>{let t=new URL(y),h=document.createElement("style");fetch(t.href).then(T=>T.text()).then(T=>{h.innerHTML=T,setTimeout(()=>{u.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>{e.isMobile(M)&&r(7,w=!0)});function z(t){e.binding_callbacks[t?"unshift":"push"](()=>{p=t,r(6,p)})}const d=()=>v();function s(t){e.binding_callbacks[t?"unshift":"push"](()=>{u=t,r(5,u)})}return n.$$set=t=>{"lang"in t&&r(10,o=t.lang),"dailybackground"in t&&r(0,f=t.dailybackground),"dailyicon"in t&&r(1,k=t.dailyicon),"dailyday"in t&&r(2,i=t.dailyday),"dailydescription"in t&&r(11,c=t.dailydescription),"dailybuttontitle"in t&&r(3,l=t.dailybuttontitle),"index"in t&&r(4,b=t.index),"clientstyling"in t&&r(12,m=t.clientstyling),"clientstylingurl"in t&&r(13,y=t.clientstylingurl),"translationurl"in t&&r(14,g=t.translationurl)},n.$$.update=()=>{n.$$.dirty&1024&&o&&F(),n.$$.dirty&17408&&o&&g&&C(),n.$$.dirty&2063&&k&&i&&c&&l&&f&&I(),n.$$.dirty&4128&&m&&u&&_(),n.$$.dirty&8224&&y&&u&&S()},[f,k,i,l,b,u,p,w,x,v,o,c,m,y,g,z,d,s]}class B extends e.SvelteComponent{constructor(a){super(),e.init(this,a,O,R,e.safe_not_equal,{lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13,translationurl:14},D)}get lang(){return this.$$.ctx[10]}set lang(a){this.$$set({lang:a}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(a){this.$$set({dailybackground:a}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(a){this.$$set({dailyicon:a}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(a){this.$$set({dailyday:a}),e.flush()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(a){this.$$set({dailydescription:a}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(a){this.$$set({dailybuttontitle:a}),e.flush()}get index(){return this.$$.ctx[4]}set index(a){this.$$set({index:a}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}}e.create_custom_element(B,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=B;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-C6a9eFaO.cjs");function N(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const q={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function de(i){e.append_styles(i,"svelte-1myc38z",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner: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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,f,k,u,c=i[8]>i[9]&&E(i),p=e.ensure_array_like(i[3]),m=[];for(let d=0;d<p.length;d+=1)m[d]=V(R(i,p,d));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),c&&c.c(),v=e.space(),f=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(f,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(f)),e.attr(t,"class",u="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,y){e.insert(d,t,y),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,f);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(f,null);i[26](f),k=e.add_iframe_resize_listener(f,i[27].bind(f))},p(d,y){if(y[0]&2049&&o!==(o=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,o),d[8]>d[9]?c?c.p(d,y):(c=E(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),y[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=R(d,p,s);m[s]?m[s].p(h,y):(m[s]=V(h),m[s].c(),m[s].m(f,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=p.length}y[0]&1025&&u!==(u="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",u)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(m,d),i[26](null),k()}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function E(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(v,f){e.insert(v,t,f),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[22]),e.listen(o,"click",i[23])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function pe(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function I(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function W(i){let t,l,r,o,a,g,v,f;function k(){return i[24](i[44])}let u=i[2]=="true"&&I(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),u&&u.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),u&&u.m(t,null),e.append(t,g),v||(f=e.listen(l,"click",e.stop_propagation(k)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?u?u.p(i,p):(u=I(i),u.c(),u.m(t,g)):u&&(u.d(1),u=null)},d(c){c&&e.detach(t),u&&u.d(),v=!1,f()}}}function V(i){let t,l,r,o,a,g,v,f,k;function u(s,h){if(s[1]=="logo")return ue;if(s[1]=="title")return pe}let c=u(i),p=c&&c(i),m=e.ensure_array_like(i[41].games),d=[];for(let s=0;s<m.length;s+=1)d[s]=W(U(i,m,s));function y(){return i[25](i[41])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),o=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[41])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[41])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),f||(k=e.listen(l,"click",y),f=!0)},p(s,h){var _,P;if(i=s,c===(c=u(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const G=U(i,m,b);d[b]?d[b].p(G,h):(d[b]=W(G),d[b].c(),d[b].m(a,null))}for(;b<d.length;b+=1)d[b].d(1);d.length=m.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[41])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),f=!1,k()}}}function me(i){let t;function l(a,g){return a[7]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[28](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[28](null)}}}function fe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(11,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:f=""}=t,{clientstyling:k=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,m=[],d=!0,y,s=0,h=0,_=0,P,b,G,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(C=>C.json()).then(C=>{Object.keys(C).forEach(w=>{N(w,C[w])})}).catch(C=>{console.log(C)})};Object.keys(q).forEach(n=>{N(n,q[n])});const J=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),fetch(n.href).then(C=>C.json()).then(C=>{l(7,d=!1);let w=C.items.filter(S=>S.flags==v);l(3,m=w.map(S=>{var O,B,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(B=(O=S.vendors)==null?void 0:O.items[0])==null?void 0:B.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}})),l(8,h=m.length)})},j=n=>{b=[...y.children],b.forEach((C,w)=>{C.style.transform=`translateX(${100*(n?w-n:w)}%)`}),P=b[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},T=()=>{j(s)},x=()=>{s===0?s=h-_:s-_<-1?s=0:s--,T()},F=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,T()},z=(n,C,w,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:w,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${w}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},Y=()=>{se(g)},Q=()=>{let n=document.createElement("style");n.innerHTML=k,G.appendChild(n)},$=()=>{let n=new URL(u),C=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{C.innerHTML=w,setTimeout(()=>{G.appendChild(C)},1)})};e.onMount(()=>{l(10,M=e.isMobile(K))});const ee=()=>x(),te=()=>F(),ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{y=n,l(4,y)})}function oe(){L=this.clientWidth,l(6,L)}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(16,o=n.endpoint),"datasource"in n&&l(17,a=n.datasource),"lang"in n&&l(18,g=n.lang),"type"in n&&l(0,v=n.type),"titletype"in n&&l(1,f=n.titletype),"clientstyling"in n&&l(19,k=n.clientstyling),"clientstylingurl"in n&&l(20,u=n.clientstylingurl),"translationurl"in n&&l(21,c=n.translationurl),"collectionprovidersgamenames"in n&&l(2,p=n.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&o&&a&&g&&J(),i.$$.dirty[0]&88&&L&&m&&y&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&k&&G&&Q(),i.$$.dirty[0]&1048608&&u&&G&&$(),i.$$.dirty[0]&2097152&&c&&Z()},[v,f,p,m,y,G,L,d,h,_,M,r,x,F,z,H,o,a,g,k,u,c,ee,te,ie,le,ne,oe,re]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,me,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},de,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=D;