@everymatrix/casino-page 1.56.2 → 1.56.3

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 (59) hide show
  1. package/components/{CasinoCalendar-B72qCmVu.js → CasinoCalendar-Beb-D9v5.js} +959 -995
  2. package/components/{CasinoCalendar-B_WI7Mt3.js → CasinoCalendar-qVpbXj-D.js} +707 -743
  3. package/components/{CasinoCalendar-BYA6uJQI.cjs → CasinoCalendar-zkVoyaEl.cjs} +5 -5
  4. package/components/{CasinoCalendarDailyDetails-D6TvS_Uw.cjs → CasinoCalendarDailyDetails-C6Lmn7pW.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-C7w893Od.js → CasinoCalendarDailyDetails-C6Shuvfx.js} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-C6UIzboP.js → CasinoCalendarDailyDetails-CmmQq8VR.js} +1 -1
  7. package/components/{CasinoCalendarDailyItem-Brbbja83.js → CasinoCalendarDailyItem-BLMalLZx.js} +1 -1
  8. package/components/{CasinoCalendarDailyItem-thGDWh2Q.cjs → CasinoCalendarDailyItem-D7q0pxAo.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-Dn4fP4pR.js → CasinoCalendarDailyItem-DlHg6exr.js} +1 -1
  10. package/components/{CasinoCollectionsProviders-C_PrWYCC.js → CasinoCollectionsProviders-BU9Vdk7f.js} +250 -262
  11. package/components/CasinoCollectionsProviders-CKeIv7Lm.cjs +1 -0
  12. package/components/{CasinoCollectionsProviders-8ZQ44tRK.js → CasinoCollectionsProviders-KxO7bWw9.js} +251 -263
  13. package/components/{CasinoFavoritesSection-31QraPTF.js → CasinoFavoritesSection-BLcFCYkL.js} +26 -26
  14. package/components/{CasinoFavoritesSection-BlVVynMt.cjs → CasinoFavoritesSection-Bt1qroiI.cjs} +1 -1
  15. package/components/{CasinoFavoritesSection-CcqoPYBa.js → CasinoFavoritesSection-DfWNsUcD.js} +26 -26
  16. package/components/{CasinoFilter-D-mxzzEe.js → CasinoFilter-5P8W2ayY.js} +18 -18
  17. package/components/{CasinoFilter-DccaWSTr.cjs → CasinoFilter-BLgXtVi-.cjs} +1 -1
  18. package/components/{CasinoFilter-Dy3YLxDF.js → CasinoFilter-EmKNpmwo.js} +18 -18
  19. package/components/{CasinoGameThumbnail-DyNI4SLc.js → CasinoGameThumbnail-B-j-s0zl.js} +1 -1
  20. package/components/{CasinoGameThumbnail-BZnETJLS.js → CasinoGameThumbnail-DLV5eXt3.js} +1 -1
  21. package/components/{CasinoGameThumbnail-BEVg81Ou.cjs → CasinoGameThumbnail-kYpO7OYd.cjs} +1 -1
  22. package/components/{CasinoGamesCategorySection-CGlIPXOj.cjs → CasinoGamesCategorySection-C7wNGeVf.cjs} +1 -1
  23. package/components/{CasinoGamesCategorySection-GVCGQvVN.js → CasinoGamesCategorySection-CGLL37Ll.js} +153 -153
  24. package/components/{CasinoGamesCategorySection-CGzfrbjH.js → CasinoGamesCategorySection-DxdFkiK0.js} +5 -5
  25. package/components/{CasinoJackpotBanner-Ck34M8Rn.js → CasinoJackpotBanner-CJWjyexm.js} +18 -18
  26. package/components/{CasinoJackpotBanner-DBgKc4Vm.js → CasinoJackpotBanner-DquJdUya.js} +18 -18
  27. package/components/{CasinoJackpotBanner-jRgsElNl.cjs → CasinoJackpotBanner-o_Mbn9dc.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSection-ByjLscV1.js → CasinoLastPlayedSection-C1fXqsNf.js} +16 -16
  29. package/components/{CasinoLastPlayedSection-DmTITabd.cjs → CasinoLastPlayedSection-D3rQ6OIZ.cjs} +1 -1
  30. package/components/{CasinoLastPlayedSection-ny7xTEHq.js → CasinoLastPlayedSection-Mwvag7Ds.js} +16 -16
  31. package/components/{CasinoMostPlayedSection-DaaUF1GU.js → CasinoMostPlayedSection-BjERkNCF.js} +16 -16
  32. package/components/{CasinoMostPlayedSection-CjhJXthi.cjs → CasinoMostPlayedSection-CbOy3yAA.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSection-Dm63-srt.js → CasinoMostPlayedSection-T3x41wRX.js} +16 -16
  34. package/components/{CasinoMyGames-BYNEP2rS.js → CasinoMyGames-5bW8Sgi5.js} +8 -8
  35. package/components/{CasinoMyGames-D67J1wPF.cjs → CasinoMyGames-C_M_zFT2.cjs} +1 -1
  36. package/components/{CasinoMyGames-CMMgSESB.js → CasinoMyGames-DCFnCBZ5.js} +9 -9
  37. package/components/{CasinoPage-c_bPecey.js → CasinoPage-AJMpJvaQ.js} +56 -56
  38. package/components/{CasinoPage-iIgZRHA6.cjs → CasinoPage-DMaRihI_.cjs} +1 -1
  39. package/components/{CasinoPage-DHYf4pK3.js → CasinoPage-YB6CY7ON.js} +56 -56
  40. package/components/{CasinoRandomGame-CJFo5sac.js → CasinoRandomGame-B9Eg9Cv4.js} +19 -19
  41. package/components/{CasinoRandomGame-BvuuUTa2.cjs → CasinoRandomGame-CUHxVoyq.cjs} +1 -1
  42. package/components/{CasinoRandomGame-B-xXZGGd.js → CasinoRandomGame-DR6TctHg.js} +18 -18
  43. package/components/{CasinoSearch-AjcIeYGe.js → CasinoSearch-Bjfocy3y.js} +21 -21
  44. package/components/{CasinoSearch-B5YyL15D.js → CasinoSearch-Bx4-nMU3.js} +21 -21
  45. package/components/{CasinoSearch-BWsaRJoY.cjs → CasinoSearch-CpBhzpsK.cjs} +1 -1
  46. package/components/{CasinoSort-CHjWMDyt.cjs → CasinoSort-5x4S3mG_.cjs} +1 -1
  47. package/components/{CasinoSort-B9N4OdAh.js → CasinoSort-BygFei5r.js} +7 -7
  48. package/components/{CasinoSort-aie8VxYZ.js → CasinoSort-DvLkFtIz.js} +7 -7
  49. package/components/{CasinoWinners-DNTO27qv.js → CasinoWinners-BZEiqOuZ.js} +58 -58
  50. package/components/{CasinoWinners-CTQkjPOu.cjs → CasinoWinners-DbQvZp-o.cjs} +1 -1
  51. package/components/{CasinoWinners-DEKSrQmC.js → CasinoWinners-tsFI0Qkd.js} +55 -55
  52. package/components/{GeneralAnimationLoading-exiETQWf.cjs → GeneralAnimationLoading-BFfW6U-2.cjs} +1 -1
  53. package/components/{GeneralAnimationLoading-45G5WFWJ.js → GeneralAnimationLoading-Bfdh1dfh.js} +1 -1
  54. package/components/{GeneralAnimationLoading-BTVnRCeI.js → GeneralAnimationLoading-g0jjajHE.js} +1 -1
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +1 -1
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/components/CasinoCollectionsProviders-BVnxWKQ2.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { $ as E, R as M, S as O, i as T, f as l, c as j, s as z, b as G, e as R, y as U, d as A, G as q, j as D, o as V, l as B, T as s, q as H, r as J, m as K } from "./CasinoCalendar-B72qCmVu.js";
1
+ import { $ as E, P as O, S as R, i as j, f as l, c as z, s as G, b as P, e as A, y as Q, d as D, G as q, j as I, o as T, l as U, Q as s, q as V, r as B, m as H } from "./CasinoCalendar-Beb-D9v5.js";
2
2
  if (typeof window != "undefined") {
3
3
  let n = function(e) {
4
4
  return function(...t) {
@@ -11,23 +11,23 @@ if (typeof window != "undefined") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-GVCGQvVN.js").then(({ default: e }) => {
14
+ customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-CGLL37Ll.js").then(({ default: e }) => {
15
15
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
16
16
  });
17
17
  }
18
- function N({ withLocale: n, translations: e }) {
18
+ function J({ withLocale: n, translations: e }) {
19
19
  E.subscribe((t) => {
20
- t == null && (M.set(e), E.set(n));
20
+ t == null && (O.set(e), E.set(n));
21
21
  });
22
22
  }
23
- function P(n) {
24
- G(n, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
23
+ function K(n) {
24
+ P(n, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
25
25
  }
26
26
  function L(n) {
27
27
  let e;
28
28
  return {
29
29
  c() {
30
- e = R("casino-games-category-section"), s(
30
+ e = A("casino-games-category-section"), s(
31
31
  e,
32
32
  "session",
33
33
  /*session*/
@@ -120,7 +120,7 @@ function L(n) {
120
120
  );
121
121
  },
122
122
  m(t, a) {
123
- A(t, e, a);
123
+ D(t, e, a);
124
124
  },
125
125
  p(t, a) {
126
126
  a & /*session*/
@@ -234,21 +234,21 @@ function L(n) {
234
234
  );
235
235
  },
236
236
  d(t) {
237
- t && D(e);
237
+ t && I(e);
238
238
  }
239
239
  };
240
240
  }
241
- function Q(n) {
241
+ function N(n) {
242
242
  let e, t = (
243
243
  /*session*/
244
244
  n[4] && L(n)
245
245
  );
246
246
  return {
247
247
  c() {
248
- e = R("div"), t && t.c(), U(e, "class", "CasinoFavoritesSectionContainer");
248
+ e = A("div"), t && t.c(), Q(e, "class", "CasinoFavoritesSectionContainer");
249
249
  },
250
250
  m(a, g) {
251
- A(a, e, g), t && t.m(e, null), n[19](e);
251
+ D(a, e, g), t && t.m(e, null), n[19](e);
252
252
  },
253
253
  p(a, [g]) {
254
254
  /*session*/
@@ -257,16 +257,16 @@ function Q(n) {
257
257
  i: q,
258
258
  o: q,
259
259
  d(a) {
260
- a && D(e), t && t.d(), n[19](null);
260
+ a && I(e), t && t.d(), n[19](null);
261
261
  }
262
262
  };
263
263
  }
264
264
  function W(n, e, t) {
265
265
  let { endpoint: a = "" } = e, { datasource: g = "" } = e, { currency: u = "" } = e, { lang: f = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: o = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: b = "false" } = e, { integratedgameframedesktop: v = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: k = "" } = e, { favorites: C = "" } = e, { casinomygames: S = "false" } = e, { fetchviaevent: F = "true" } = e, { mbsource: c } = e, m;
266
- N({ withLocale: "en", translations: {} }), V(() => () => {
266
+ J({ withLocale: "en", translations: {} }), T(() => () => {
267
267
  });
268
- function I(i) {
269
- H[i ? "unshift" : "push"](() => {
268
+ function M(i) {
269
+ V[i ? "unshift" : "push"](() => {
270
270
  m = i, t(18, m);
271
271
  });
272
272
  }
@@ -274,9 +274,9 @@ function W(n, e, t) {
274
274
  "endpoint" in i && t(0, a = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, u = i.currency), "lang" in i && t(3, f = i.lang), "session" in i && t(4, h = i.session), "userid" in i && t(5, d = i.userid), "clientstyling" in i && t(6, r = i.clientstyling), "clientstylingurl" in i && t(7, o = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, b = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, v = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, k = i.visiblegames), "favorites" in i && t(14, C = i.favorites), "casinomygames" in i && t(15, S = i.casinomygames), "fetchviaevent" in i && t(16, F = i.fetchviaevent), "mbsource" in i && t(17, c = i.mbsource);
275
275
  }, n.$$.update = () => {
276
276
  n.$$.dirty & /*clientstyling, customStylingContainer*/
277
- 262208 && r && m && J(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
278
- 262272 && o && m && B(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
279
- 393216 && m && K(m, `${c}.Style`);
277
+ 262208 && r && m && B(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
278
+ 262272 && o && m && U(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
279
+ 393216 && m && H(m, `${c}.Style`);
280
280
  }, [
281
281
  a,
282
282
  g,
@@ -297,17 +297,17 @@ function W(n, e, t) {
297
297
  F,
298
298
  c,
299
299
  m,
300
- I
300
+ M
301
301
  ];
302
302
  }
303
- class X extends O {
303
+ class X extends R {
304
304
  constructor(e) {
305
- super(), T(
305
+ super(), j(
306
306
  this,
307
307
  e,
308
308
  W,
309
- Q,
310
- z,
309
+ N,
310
+ G,
311
311
  {
312
312
  endpoint: 0,
313
313
  datasource: 1,
@@ -328,7 +328,7 @@ class X extends O {
328
328
  fetchviaevent: 16,
329
329
  mbsource: 17
330
330
  },
331
- P
331
+ K
332
332
  );
333
333
  }
334
334
  get endpoint() {
@@ -440,7 +440,7 @@ class X extends O {
440
440
  this.$$set({ mbsource: e }), l();
441
441
  }
442
442
  }
443
- j(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
443
+ z(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
444
444
  export {
445
445
  X as default
446
446
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BYA6uJQI.cjs");if(typeof window!="undefined"){let a=function(e){return function(...s){try{return e.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-CGlIPXOj.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function L({withLocale:a,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(a))})}function M(a){t.append_styles(a,"svelte-nazqps",".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function F(a){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",a[4]),t.set_custom_element_data(e,"userid",a[5]),t.set_custom_element_data(e,"endpoint",a[0]),t.set_custom_element_data(e,"datasource",a[1]),t.set_custom_element_data(e,"lang",a[3]),t.set_custom_element_data(e,"currency",a[2]),t.set_custom_element_data(e,"favorites",a[14]),t.set_custom_element_data(e,"fetchviaevent",a[16]),t.set_custom_element_data(e,"mbsource",a[17]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",a[11]),t.set_custom_element_data(e,"clientstyling",a[6]),t.set_custom_element_data(e,"clientstylingurl",a[7]),t.set_custom_element_data(e,"livecasino",a[8]),t.set_custom_element_data(e,"visiblegames",a[13]),t.set_custom_element_data(e,"gamepagemodalurl",a[12]),t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),t.set_custom_element_data(e,"integratedgameframemobile",a[9]),t.set_custom_element_data(e,"casinomygames",a[15])},m(s,i){t.insert(s,e,i)},p(s,i){i&16&&t.set_custom_element_data(e,"session",s[4]),i&32&&t.set_custom_element_data(e,"userid",s[5]),i&1&&t.set_custom_element_data(e,"endpoint",s[0]),i&2&&t.set_custom_element_data(e,"datasource",s[1]),i&8&&t.set_custom_element_data(e,"lang",s[3]),i&4&&t.set_custom_element_data(e,"currency",s[2]),i&16384&&t.set_custom_element_data(e,"favorites",s[14]),i&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i&131072&&t.set_custom_element_data(e,"mbsource",s[17]),i&2048&&t.set_custom_element_data(e,"showgamename",s[11]),i&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i&256&&t.set_custom_element_data(e,"livecasino",s[8]),i&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),i&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function O(a){let e,s=a[4]&&F(a);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,l){t.insert(i,e,l),s&&s.m(e,null),a[19](e)},p(i,[l]){i[4]?s?s.p(i,l):(s=F(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),s&&s.d(),a[19](null)}}}function A(a,e,s){let{endpoint:i=""}=e,{datasource:l=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:b=""}=e,{gamepagemodalurl:v="false"}=e,{visiblegames:w=""}=e,{favorites:k=""}=e,{casinomygames:C="false"}=e,{fetchviaevent:S="true"}=e,{mbsource:c}=e,m;L({withLocale:"en",translations:{}}),t.onMount(()=>()=>{});function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(18,m)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,l=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,u=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,b=n.showgamename),"gamepagemodalurl"in n&&s(12,v=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,k=n.favorites),"casinomygames"in n&&s(15,C=n.casinomygames),"fetchviaevent"in n&&s(16,S=n.fetchviaevent),"mbsource"in n&&s(17,c=n.mbsource)},a.$$.update=()=>{a.$$.dirty&262208&&o&&m&&t.setClientStyling(m,o),a.$$.dirty&262272&&u&&m&&t.setClientStylingURL(m,u),a.$$.dirty&393216&&m&&t.setStreamStyling(m,`${c}.Style`)},[i,l,g,r,f,_,o,u,d,h,y,b,v,w,k,C,S,c,m,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,O,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16,mbsource:17},M)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-zkVoyaEl.cjs");if(typeof window!="undefined"){let a=function(e){return function(...s){try{return e.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-C7wNGeVf.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function L({withLocale:a,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(a))})}function M(a){t.append_styles(a,"svelte-nazqps",".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function F(a){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",a[4]),t.set_custom_element_data(e,"userid",a[5]),t.set_custom_element_data(e,"endpoint",a[0]),t.set_custom_element_data(e,"datasource",a[1]),t.set_custom_element_data(e,"lang",a[3]),t.set_custom_element_data(e,"currency",a[2]),t.set_custom_element_data(e,"favorites",a[14]),t.set_custom_element_data(e,"fetchviaevent",a[16]),t.set_custom_element_data(e,"mbsource",a[17]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",a[11]),t.set_custom_element_data(e,"clientstyling",a[6]),t.set_custom_element_data(e,"clientstylingurl",a[7]),t.set_custom_element_data(e,"livecasino",a[8]),t.set_custom_element_data(e,"visiblegames",a[13]),t.set_custom_element_data(e,"gamepagemodalurl",a[12]),t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),t.set_custom_element_data(e,"integratedgameframemobile",a[9]),t.set_custom_element_data(e,"casinomygames",a[15])},m(s,i){t.insert(s,e,i)},p(s,i){i&16&&t.set_custom_element_data(e,"session",s[4]),i&32&&t.set_custom_element_data(e,"userid",s[5]),i&1&&t.set_custom_element_data(e,"endpoint",s[0]),i&2&&t.set_custom_element_data(e,"datasource",s[1]),i&8&&t.set_custom_element_data(e,"lang",s[3]),i&4&&t.set_custom_element_data(e,"currency",s[2]),i&16384&&t.set_custom_element_data(e,"favorites",s[14]),i&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i&131072&&t.set_custom_element_data(e,"mbsource",s[17]),i&2048&&t.set_custom_element_data(e,"showgamename",s[11]),i&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i&256&&t.set_custom_element_data(e,"livecasino",s[8]),i&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),i&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function O(a){let e,s=a[4]&&F(a);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,l){t.insert(i,e,l),s&&s.m(e,null),a[19](e)},p(i,[l]){i[4]?s?s.p(i,l):(s=F(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),s&&s.d(),a[19](null)}}}function A(a,e,s){let{endpoint:i=""}=e,{datasource:l=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:b=""}=e,{gamepagemodalurl:v="false"}=e,{visiblegames:w=""}=e,{favorites:k=""}=e,{casinomygames:C="false"}=e,{fetchviaevent:S="true"}=e,{mbsource:c}=e,m;L({withLocale:"en",translations:{}}),t.onMount(()=>()=>{});function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(18,m)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,l=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,u=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,b=n.showgamename),"gamepagemodalurl"in n&&s(12,v=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,k=n.favorites),"casinomygames"in n&&s(15,C=n.casinomygames),"fetchviaevent"in n&&s(16,S=n.fetchviaevent),"mbsource"in n&&s(17,c=n.mbsource)},a.$$.update=()=>{a.$$.dirty&262208&&o&&m&&t.setClientStyling(m,o),a.$$.dirty&262272&&u&&m&&t.setClientStylingURL(m,u),a.$$.dirty&393216&&m&&t.setStreamStyling(m,`${c}.Style`)},[i,l,g,r,f,_,o,u,d,h,y,b,v,w,k,C,S,c,m,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,O,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16,mbsource:17},M)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=E;
@@ -1,4 +1,4 @@
1
- import { $ as E, R as M, S as O, i as T, f as l, c as j, s as z, b as G, e as R, y as U, d as A, G as q, j as D, o as V, l as B, T as s, q as H, r as J, m as K } from "./CasinoCalendar-B_WI7Mt3.js";
1
+ import { $ as E, P as O, S as R, i as j, f as l, c as z, s as G, b as P, e as A, y as Q, d as D, G as q, j as I, o as T, l as U, Q as s, q as V, r as B, m as H } from "./CasinoCalendar-qVpbXj-D.js";
2
2
  if (typeof window < "u") {
3
3
  let n = function(e) {
4
4
  return function(...t) {
@@ -11,23 +11,23 @@ if (typeof window < "u") {
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-CGzfrbjH.js").then(({ default: e }) => {
14
+ customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-DxdFkiK0.js").then(({ default: e }) => {
15
15
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
16
16
  });
17
17
  }
18
- function N({ withLocale: n, translations: e }) {
18
+ function J({ withLocale: n, translations: e }) {
19
19
  E.subscribe((t) => {
20
- t == null && (M.set(e), E.set(n));
20
+ t == null && (O.set(e), E.set(n));
21
21
  });
22
22
  }
23
- function P(n) {
24
- G(n, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
23
+ function K(n) {
24
+ P(n, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
25
25
  }
26
26
  function L(n) {
27
27
  let e;
28
28
  return {
29
29
  c() {
30
- e = R("casino-games-category-section"), s(
30
+ e = A("casino-games-category-section"), s(
31
31
  e,
32
32
  "session",
33
33
  /*session*/
@@ -120,7 +120,7 @@ function L(n) {
120
120
  );
121
121
  },
122
122
  m(t, a) {
123
- A(t, e, a);
123
+ D(t, e, a);
124
124
  },
125
125
  p(t, a) {
126
126
  a & /*session*/
@@ -234,21 +234,21 @@ function L(n) {
234
234
  );
235
235
  },
236
236
  d(t) {
237
- t && D(e);
237
+ t && I(e);
238
238
  }
239
239
  };
240
240
  }
241
- function Q(n) {
241
+ function N(n) {
242
242
  let e, t = (
243
243
  /*session*/
244
244
  n[4] && L(n)
245
245
  );
246
246
  return {
247
247
  c() {
248
- e = R("div"), t && t.c(), U(e, "class", "CasinoFavoritesSectionContainer");
248
+ e = A("div"), t && t.c(), Q(e, "class", "CasinoFavoritesSectionContainer");
249
249
  },
250
250
  m(a, g) {
251
- A(a, e, g), t && t.m(e, null), n[19](e);
251
+ D(a, e, g), t && t.m(e, null), n[19](e);
252
252
  },
253
253
  p(a, [g]) {
254
254
  /*session*/
@@ -257,16 +257,16 @@ function Q(n) {
257
257
  i: q,
258
258
  o: q,
259
259
  d(a) {
260
- a && D(e), t && t.d(), n[19](null);
260
+ a && I(e), t && t.d(), n[19](null);
261
261
  }
262
262
  };
263
263
  }
264
264
  function W(n, e, t) {
265
265
  let { endpoint: a = "" } = e, { datasource: g = "" } = e, { currency: u = "" } = e, { lang: f = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: o = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: b = "false" } = e, { integratedgameframedesktop: v = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: k = "" } = e, { favorites: C = "" } = e, { casinomygames: S = "false" } = e, { fetchviaevent: F = "true" } = e, { mbsource: c } = e, m;
266
- N({ withLocale: "en", translations: {} }), V(() => () => {
266
+ J({ withLocale: "en", translations: {} }), T(() => () => {
267
267
  });
268
- function I(i) {
269
- H[i ? "unshift" : "push"](() => {
268
+ function M(i) {
269
+ V[i ? "unshift" : "push"](() => {
270
270
  m = i, t(18, m);
271
271
  });
272
272
  }
@@ -274,9 +274,9 @@ function W(n, e, t) {
274
274
  "endpoint" in i && t(0, a = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, u = i.currency), "lang" in i && t(3, f = i.lang), "session" in i && t(4, h = i.session), "userid" in i && t(5, d = i.userid), "clientstyling" in i && t(6, r = i.clientstyling), "clientstylingurl" in i && t(7, o = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, b = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, v = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, k = i.visiblegames), "favorites" in i && t(14, C = i.favorites), "casinomygames" in i && t(15, S = i.casinomygames), "fetchviaevent" in i && t(16, F = i.fetchviaevent), "mbsource" in i && t(17, c = i.mbsource);
275
275
  }, n.$$.update = () => {
276
276
  n.$$.dirty & /*clientstyling, customStylingContainer*/
277
- 262208 && r && m && J(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
278
- 262272 && o && m && B(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
279
- 393216 && m && K(m, `${c}.Style`);
277
+ 262208 && r && m && B(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
278
+ 262272 && o && m && U(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
279
+ 393216 && m && H(m, `${c}.Style`);
280
280
  }, [
281
281
  a,
282
282
  g,
@@ -297,17 +297,17 @@ function W(n, e, t) {
297
297
  F,
298
298
  c,
299
299
  m,
300
- I
300
+ M
301
301
  ];
302
302
  }
303
- class X extends O {
303
+ class X extends R {
304
304
  constructor(e) {
305
- super(), T(
305
+ super(), j(
306
306
  this,
307
307
  e,
308
308
  W,
309
- Q,
310
- z,
309
+ N,
310
+ G,
311
311
  {
312
312
  endpoint: 0,
313
313
  datasource: 1,
@@ -328,7 +328,7 @@ class X extends O {
328
328
  fetchviaevent: 16,
329
329
  mbsource: 17
330
330
  },
331
- P
331
+ K
332
332
  );
333
333
  }
334
334
  get endpoint() {
@@ -440,7 +440,7 @@ class X extends O {
440
440
  this.$$set({ mbsource: e }), l();
441
441
  }
442
442
  }
443
- j(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
443
+ z(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
444
444
  export {
445
445
  X as default
446
446
  };
@@ -1,4 +1,4 @@
1
- import { $ as le, R as fe, a as ue, S as ge, i as me, f as I, c as he, s as Fe, b as be, e as m, d as B, G as re, j as V, k as ye, o as ve, l as we, U as _e, q as Ce, r as ke, m as xe, v as ie, J as ee, w as D, x as T, y as o, z as s, A as te, E as j, F as Se, P as pe, V as ae, I as Ie, H as ne } from "./CasinoCalendar-B_WI7Mt3.js";
1
+ import { $ as le, P as fe, a as ue, S as ge, i as me, f as I, c as he, s as Fe, b as be, e as m, d as B, G as re, j as V, k as ye, o as ve, l as we, R as _e, q as Ce, r as ke, m as xe, v as ie, J as ee, w as D, x as T, y as o, z as s, A as te, E as j, F as Se, N as pe, T as ae, I as Ie, H as ne } from "./CasinoCalendar-qVpbXj-D.js";
2
2
  function Le({ withLocale: r, translations: e }) {
3
3
  le.subscribe((t) => {
4
4
  t == null && (fe.set(e), le.set(r));
@@ -134,7 +134,7 @@ function Ae(r) {
134
134
  ), C, S, g, d, F, P, W, E, k, A, M, Q, O, R = (
135
135
  /*$_*/
136
136
  r[11]("clear") + ""
137
- ), U, J, q, H, G, X;
137
+ ), q, J, G, H, U, X;
138
138
  function Y(n, f) {
139
139
  return (
140
140
  /*fullSelection*/
@@ -152,12 +152,12 @@ function Ae(r) {
152
152
  e = m("div"), t = m("div"), i = m("div"), a = ee("svg"), c = ee("path"), h = D(), v = m("div"), w = m("span"), u = T(b), _ = D(), y = m("div"), N = m("span"), C = T(L), S = D(), x.c(), g = D(), d = m("span"), F = ee("svg"), P = ee("path"), k = D(), A = m("div"), M = m("ul");
153
153
  for (let n = 0; n < l.length; n += 1)
154
154
  l[n].c();
155
- Q = D(), O = m("button"), U = T(R), o(c, "id", "noun_filter_736223"), o(c, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), o(c, "transform", "translate(-5 -6.2)"), o(c, "fill", "#fff"), o(a, "xmlns", "http://www.w3.org/2000/svg"), o(a, "width", "16"), o(a, "height", "16"), o(a, "viewBox", "0 0 16 16"), o(w, "class", "FilterName"), o(y, "class", "FilterValueContainer"), o(v, "class", "FilterTextContainer"), o(i, "class", "FilterMainArea"), o(P, "id", "arrow"), o(P, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), o(P, "transform", "translate(-274.511 -441.088)"), o(P, "fill", "#d1d1d1"), o(F, "xmlns", "http://www.w3.org/2000/svg"), o(F, "width", "14"), o(F, "height", "6.835"), o(F, "viewBox", "0 0 14 6.835"), o(d, "class", W = "TriangleInactive " + /*isFilterActive*/
155
+ Q = D(), O = m("button"), q = T(R), o(c, "id", "noun_filter_736223"), o(c, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), o(c, "transform", "translate(-5 -6.2)"), o(c, "fill", "#fff"), o(a, "xmlns", "http://www.w3.org/2000/svg"), o(a, "width", "16"), o(a, "height", "16"), o(a, "viewBox", "0 0 16 16"), o(w, "class", "FilterName"), o(y, "class", "FilterValueContainer"), o(v, "class", "FilterTextContainer"), o(i, "class", "FilterMainArea"), o(P, "id", "arrow"), o(P, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), o(P, "transform", "translate(-274.511 -441.088)"), o(P, "fill", "#d1d1d1"), o(F, "xmlns", "http://www.w3.org/2000/svg"), o(F, "width", "14"), o(F, "height", "6.835"), o(F, "viewBox", "0 0 14 6.835"), o(d, "class", W = "TriangleInactive " + /*isFilterActive*/
156
156
  (r[4] ? "TriangleActive" : "")), o(t, "class", E = "FilterSelector " + /*isFilterActive*/
157
157
  (r[4] ? "FilterSelectorOpen" : "")), o(M, "class", "FilterDropdown"), o(O, "class", "ClearFilters"), O.disabled = J = /*fullSelection*/
158
158
  r[7] && /*selectedVendorArray*/
159
159
  r[6].length != /*vendorArray*/
160
- r[5].length, o(A, "class", q = "FilterDropdownContainer " + /*isFilterActive*/
160
+ r[5].length, o(A, "class", G = "FilterDropdownContainer " + /*isFilterActive*/
161
161
  (r[4] ? "FilterOpen" : "")), o(e, "class", H = "FilterContainer " + /*addfilterselector*/
162
162
  (r[0] == "true" && /*addsortingselector*/
163
163
  r[1] == "true" ? "FilerContainerSplit" : ""));
@@ -166,7 +166,7 @@ function Ae(r) {
166
166
  B(n, e, f), s(e, t), s(t, i), s(i, a), s(a, c), s(i, h), s(i, v), s(v, w), s(w, u), s(v, _), s(v, y), s(y, N), s(N, C), s(y, S), x.m(y, null), s(t, g), s(t, d), s(d, F), s(F, P), s(e, k), s(e, A), s(A, M);
167
167
  for (let p = 0; p < l.length; p += 1)
168
168
  l[p] && l[p].m(M, null);
169
- s(A, Q), s(A, O), s(O, U), G || (X = [
169
+ s(A, Q), s(A, O), s(O, q), U || (X = [
170
170
  te(
171
171
  t,
172
172
  "click",
@@ -179,7 +179,7 @@ function Ae(r) {
179
179
  /*click_handler_2*/
180
180
  r[26]
181
181
  )
182
- ], G = !0);
182
+ ], U = !0);
183
183
  },
184
184
  p(n, f) {
185
185
  if (f[0] & /*$_*/
@@ -207,19 +207,19 @@ function Ae(r) {
207
207
  }
208
208
  f[0] & /*$_*/
209
209
  2048 && R !== (R = /*$_*/
210
- n[11]("clear") + "") && j(U, R), f[0] & /*fullSelection, selectedVendorArray, vendorArray*/
210
+ n[11]("clear") + "") && j(q, R), f[0] & /*fullSelection, selectedVendorArray, vendorArray*/
211
211
  224 && J !== (J = /*fullSelection*/
212
212
  n[7] && /*selectedVendorArray*/
213
213
  n[6].length != /*vendorArray*/
214
214
  n[5].length) && (O.disabled = J), f[0] & /*isFilterActive*/
215
- 16 && q !== (q = "FilterDropdownContainer " + /*isFilterActive*/
216
- (n[4] ? "FilterOpen" : "")) && o(A, "class", q), f[0] & /*addfilterselector, addsortingselector*/
215
+ 16 && G !== (G = "FilterDropdownContainer " + /*isFilterActive*/
216
+ (n[4] ? "FilterOpen" : "")) && o(A, "class", G), f[0] & /*addfilterselector, addsortingselector*/
217
217
  3 && H !== (H = "FilterContainer " + /*addfilterselector*/
218
218
  (n[0] == "true" && /*addsortingselector*/
219
219
  n[1] == "true" ? "FilerContainerSplit" : "")) && o(e, "class", H);
220
220
  },
221
221
  d(n) {
222
- n && V(e), x.d(), Se(l, n), G = !1, pe(X);
222
+ n && V(e), x.d(), Se(l, n), U = !1, pe(X);
223
223
  }
224
224
  };
225
225
  }
@@ -463,31 +463,31 @@ function ze(r, e, t) {
463
463
  }).finally(() => {
464
464
  t(9, E = !1);
465
465
  });
466
- })), U = (l) => {
466
+ })), q = (l) => {
467
467
  let n = localStorage.getItem("vendorFiltersByCategory");
468
468
  l.isFilterSelected = !l.isFilterSelected, !d.length || d.filter((f) => f.name === l.name).length == 0 ? d.push(l) : t(6, d = d.filter((f) => f.name !== l.name)), n == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(F = {
469
469
  [u]: d.map((f) => f.id)
470
470
  })) : (n = JSON.parse(n), n[u] = d.map((f) => f.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(n))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), J();
471
471
  }, J = () => {
472
472
  t(7, P = d.length === g.length || d.length == 0), t(8, W = d.length);
473
- }, q = () => {
473
+ }, G = () => {
474
474
  const l = new URL(`${a}/v1/casino/vendors`);
475
475
  t(4, C = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", h), l.searchParams.append("datasource", c), l.searchParams.append("platform", _e(S)), (u.match(/\$/g) || []).length > 1 ? (l.searchParams.append("filter", `games(subGroups=${u})`), l.searchParams.append("subVendors", `games(subGroups=${u})`)) : l.searchParams.append("filter", `games(groups=${u})`), R(l);
476
476
  }, H = () => {
477
477
  t(6, d = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(F = {
478
478
  [u]: d.map((l) => l.id)
479
479
  })), g.forEach((l) => l.isFilterSelected = !1), t(5, g), window.postMessage({ type: "ApplyFilters" }, window.location.href), t(7, P = !0), t(4, C = !1);
480
- }, G = (l) => {
480
+ }, U = (l) => {
481
481
  l.data.type == "SortingOpened" && t(4, C = !1);
482
482
  };
483
- ve(() => (window.addEventListener("message", G, !1), () => {
484
- window.emMessageBus != null && M && M.unsubscribe(), window.removeEventListener("message", G);
483
+ ve(() => (window.addEventListener("message", U, !1), () => {
484
+ window.emMessageBus != null && M && M.unsubscribe(), window.removeEventListener("message", U);
485
485
  }));
486
486
  const X = () => O();
487
487
  function Y(l, n) {
488
488
  l[n].isFilterSelected = this.checked, t(5, g);
489
489
  }
490
- const Z = (l) => U(l), x = () => H();
490
+ const Z = (l) => q(l), x = () => H();
491
491
  function z(l) {
492
492
  Ce[l ? "unshift" : "push"](() => {
493
493
  k = l, t(3, k);
@@ -497,7 +497,7 @@ function ze(r, e, t) {
497
497
  "endpoint" in l && t(15, a = l.endpoint), "datasource" in l && t(16, c = l.datasource), "lang" in l && t(17, h = l.lang), "translationurl" in l && t(18, v = l.translationurl), "clientstyling" in l && t(19, w = l.clientstyling), "clientstylingurl" in l && t(20, b = l.clientstylingurl), "categoryid" in l && t(21, u = l.categoryid), "addfilterselector" in l && t(0, _ = l.addfilterselector), "addsortingselector" in l && t(1, y = l.addsortingselector), "filterbylogo" in l && t(2, N = l.filterbylogo), "mbsource" in l && t(22, L = l.mbsource);
498
498
  }, r.$$.update = () => {
499
499
  r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
500
- 2195460 && a && c && u && N && q(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
500
+ 2195460 && a && c && u && N && G(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
501
501
  524296 && w && k && ke(k, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
502
502
  1048584 && b && k && we(k, b), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
503
503
  4194312 && k && xe(k, `${L}.Style`), r.$$.dirty[0] & /*translationurl*/
@@ -516,7 +516,7 @@ function ze(r, e, t) {
516
516
  A,
517
517
  i,
518
518
  O,
519
- U,
519
+ q,
520
520
  H,
521
521
  a,
522
522
  c,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BYA6uJQI.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,g,b,y,h=i[11]("filterby")+"",u,v,F,P,k=i[11]("providers")+"",_,x,f,c,m,S,T,A,w,I,O,J,L,E=i[11]("clear")+"",j,M,z,N,B,q;function H(o,p){return o[7]?re:le}let V=H(i),C=V(i),D=e.ensure_array_like(i[5]),r=[];for(let o=0;o<D.length;o+=1)r[o]=Q(K(i,D,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),P=e.element("span"),_=e.text(k),x=e.space(),C.c(),f=e.space(),c=e.element("span"),m=e.svg_element("svg"),S=e.svg_element("path"),w=e.space(),I=e.element("div"),O=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();J=e.space(),L=e.element("button"),j=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(S,"id","arrow"),e.attr(S,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(c,"class",T="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",A="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(L,"class","ClearFilters"),L.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",z="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,P),e.append(P,_),e.append(F,x),C.m(F,null),e.append(l,f),e.append(l,c),e.append(c,m),e.append(m,S),e.append(t,w),e.append(t,I),e.append(I,O);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(O,null);e.append(I,J),e.append(I,L),e.append(L,j),B||(q=[e.listen(l,"click",i[23]),e.listen(L,"click",i[26])],B=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&k!==(k=o[11]("providers")+"")&&e.set_data(_,k),V===(V=H(o))&&C?C.p(o,p):(C.d(1),C=V(o),C&&(C.c(),C.m(F,null))),p[0]&16&&T!==(T="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(c,"class",T),p[0]&16&&A!==(A="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",A),p[0]&8228){D=e.ensure_array_like(o[5]);let d;for(d=0;d<D.length;d+=1){const W=K(o,D,d);r[d]?r[d].p(W,p):(r[d]=Q(W),r[d].c(),r[d].m(O,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=D.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(j,E),p[0]&224&&M!==(M=o[7]&&o[6].length!=o[5].length)&&(L.disabled=M),p[0]&16&&z!==(z="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",z),p[0]&3&&N!==(N="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(o){o&&e.detach(t),C.d(),e.destroy_each(r,o),B=!1,e.run_all(q)}}}function te(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function re(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,g,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,b),e.append(g,h),e.append(g,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,g,b,y,h,u,v,F;function P(){i[24].call(a,i[37],i[38])}function k(){return i[25](i[36])}function _(c,m){if(c[2]==="false")return ae;if(c[2]==="true")return ie}let x=_(i),f=x&&x(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),b=e.space(),f&&f.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(c,m){e.insert(c,t,m),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,b),f&&f.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",P),e.listen(a,"click",k)],v=!0)},p(c,m){i=c,m[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=i[36].isFilterSelected),x===(x=_(i))&&f?f.p(i,m):(f&&f.d(1),f=x&&x(i),f&&(f.c(),f.m(l,null))),m[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),m[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(c){c&&e.detach(t),f&&f.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,g){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),i[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[27](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:P="false"}=t,{mbsource:k}=t,_=!1,x=window.navigator.userAgent,f=[],c=[],m={},S=!1,T=0,A=!0,w,I=!1,O;Y({withLocale:"en",translations:{}});const J=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])}),m[u]&&(m={[u]:[]});const L=()=>{l(4,_=!_),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,f=d),M()}).catch(d=>{console.error(d),l(10,I=!0),p(d)}).finally(()=>{l(9,A=!1)})})),j=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),M()},M=()=>{l(7,S=c.length===f.length||c.length==0),l(8,T=c.length)},z=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,_=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(x)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),f.forEach(r=>r.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,S=!0),l(4,_=!1)},B=r=>{r.data.type=="SortingOpened"&&l(4,_=!1)};e.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.emMessageBus!=null&&O&&O.unsubscribe(),window.removeEventListener("message",B)}));const q=()=>L();function H(r,o){r[o].isFilterSelected=this.checked,l(5,f)}const V=r=>j(r),C=()=>N();function D(r){e.binding_callbacks[r?"unshift":"push"](()=>{w=r,l(3,w)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,g=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,P=r.filterbylogo),"mbsource"in r&&l(22,k=r.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&P&&z(),i.$$.dirty[0]&524296&&y&&w&&e.setClientStyling(w,y),i.$$.dirty[0]&1048584&&h&&w&&e.setClientStylingURL(w,h),i.$$.dirty[0]&4194312&&w&&e.setStreamStyling(w,`${k}.Style`),i.$$.dirty[0]&262144&&b&&J()},[v,F,P,w,_,f,c,S,T,A,I,a,L,j,N,n,s,g,b,y,h,u,k,q,H,V,C,D]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22},$,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl: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 categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-zkVoyaEl.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,g,b,y,h=i[11]("filterby")+"",u,v,F,P,k=i[11]("providers")+"",_,x,f,c,m,S,T,A,w,I,O,J,L,E=i[11]("clear")+"",j,M,z,N,B,q;function H(o,p){return o[7]?re:le}let V=H(i),C=V(i),D=e.ensure_array_like(i[5]),r=[];for(let o=0;o<D.length;o+=1)r[o]=Q(K(i,D,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),P=e.element("span"),_=e.text(k),x=e.space(),C.c(),f=e.space(),c=e.element("span"),m=e.svg_element("svg"),S=e.svg_element("path"),w=e.space(),I=e.element("div"),O=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();J=e.space(),L=e.element("button"),j=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(S,"id","arrow"),e.attr(S,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(c,"class",T="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",A="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(L,"class","ClearFilters"),L.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",z="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,P),e.append(P,_),e.append(F,x),C.m(F,null),e.append(l,f),e.append(l,c),e.append(c,m),e.append(m,S),e.append(t,w),e.append(t,I),e.append(I,O);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(O,null);e.append(I,J),e.append(I,L),e.append(L,j),B||(q=[e.listen(l,"click",i[23]),e.listen(L,"click",i[26])],B=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&k!==(k=o[11]("providers")+"")&&e.set_data(_,k),V===(V=H(o))&&C?C.p(o,p):(C.d(1),C=V(o),C&&(C.c(),C.m(F,null))),p[0]&16&&T!==(T="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(c,"class",T),p[0]&16&&A!==(A="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",A),p[0]&8228){D=e.ensure_array_like(o[5]);let d;for(d=0;d<D.length;d+=1){const W=K(o,D,d);r[d]?r[d].p(W,p):(r[d]=Q(W),r[d].c(),r[d].m(O,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=D.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(j,E),p[0]&224&&M!==(M=o[7]&&o[6].length!=o[5].length)&&(L.disabled=M),p[0]&16&&z!==(z="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",z),p[0]&3&&N!==(N="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(o){o&&e.detach(t),C.d(),e.destroy_each(r,o),B=!1,e.run_all(q)}}}function te(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function re(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,g,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,b),e.append(g,h),e.append(g,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,g,b,y,h,u,v,F;function P(){i[24].call(a,i[37],i[38])}function k(){return i[25](i[36])}function _(c,m){if(c[2]==="false")return ae;if(c[2]==="true")return ie}let x=_(i),f=x&&x(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),b=e.space(),f&&f.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(c,m){e.insert(c,t,m),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,b),f&&f.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",P),e.listen(a,"click",k)],v=!0)},p(c,m){i=c,m[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=i[36].isFilterSelected),x===(x=_(i))&&f?f.p(i,m):(f&&f.d(1),f=x&&x(i),f&&(f.c(),f.m(l,null))),m[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),m[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(c){c&&e.detach(t),f&&f.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,g){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),i[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[27](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:P="false"}=t,{mbsource:k}=t,_=!1,x=window.navigator.userAgent,f=[],c=[],m={},S=!1,T=0,A=!0,w,I=!1,O;Y({withLocale:"en",translations:{}});const J=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])}),m[u]&&(m={[u]:[]});const L=()=>{l(4,_=!_),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,f=d),M()}).catch(d=>{console.error(d),l(10,I=!0),p(d)}).finally(()=>{l(9,A=!1)})})),j=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),M()},M=()=>{l(7,S=c.length===f.length||c.length==0),l(8,T=c.length)},z=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,_=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(x)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),f.forEach(r=>r.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,S=!0),l(4,_=!1)},B=r=>{r.data.type=="SortingOpened"&&l(4,_=!1)};e.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.emMessageBus!=null&&O&&O.unsubscribe(),window.removeEventListener("message",B)}));const q=()=>L();function H(r,o){r[o].isFilterSelected=this.checked,l(5,f)}const V=r=>j(r),C=()=>N();function D(r){e.binding_callbacks[r?"unshift":"push"](()=>{w=r,l(3,w)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,g=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,P=r.filterbylogo),"mbsource"in r&&l(22,k=r.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&P&&z(),i.$$.dirty[0]&524296&&y&&w&&e.setClientStyling(w,y),i.$$.dirty[0]&1048584&&h&&w&&e.setClientStylingURL(w,h),i.$$.dirty[0]&4194312&&w&&e.setStreamStyling(w,`${k}.Style`),i.$$.dirty[0]&262144&&b&&J()},[v,F,P,w,_,f,c,S,T,A,I,a,L,j,N,n,s,g,b,y,h,u,k,q,H,V,C,D]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22},$,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl: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 categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=X;