@everymatrix/casino-page 1.94.3 → 1.94.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/components/{CasinoCalendar-iX5FwPys.cjs → CasinoCalendar-C_xNmRaY.cjs} +1 -1
  2. package/components/{CasinoCalendar-DdiZxohs.js → CasinoCalendar-DoiSP2I7.js} +19 -19
  3. package/components/{CasinoCalendar-BHeQ80tF.js → CasinoCalendar-_CWLjC1Y.js} +19 -19
  4. package/components/{CasinoCalendarDailyDetails-C9xNw0VK.js → CasinoCalendarDailyDetails-B_8f8qzU.js} +45 -45
  5. package/components/{CasinoCalendarDailyDetails-rJ0lw1Bf.js → CasinoCalendarDailyDetails-DNbGCFHk.js} +45 -45
  6. package/components/{CasinoCalendarDailyDetails-B9BrMN4H.cjs → CasinoCalendarDailyDetails-YEjcNmsF.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-12W3CM9z.js → CasinoCalendarDailyItem-CqS8Ln6p.js} +35 -35
  8. package/components/{CasinoCalendarDailyItem--9fOdz4H.js → CasinoCalendarDailyItem-Cvbbh3vk.js} +35 -35
  9. package/components/{CasinoCalendarDailyItem-heQht4N8.cjs → CasinoCalendarDailyItem-Cx0R3UXy.cjs} +1 -1
  10. package/components/{CasinoCollectionsProviders-C9Ous_Ql.js → CasinoCollectionsProviders-BA0B8THH.js} +84 -84
  11. package/components/{CasinoCollectionsProviders-DPvvU3Av.js → CasinoCollectionsProviders-BTgMKpir.js} +81 -81
  12. package/components/{CasinoCollectionsProviders-Dv-fgI1R.cjs → CasinoCollectionsProviders-DCU6_3Wg.cjs} +1 -1
  13. package/components/{CasinoFavoritesSection-BkIAYJSC.js → CasinoFavoritesSection-8MiofleI.js} +23 -23
  14. package/components/{CasinoFavoritesSection-DteeubNI.js → CasinoFavoritesSection-Cmmacvha.js} +28 -28
  15. package/components/{CasinoFavoritesSection-BnlTienl.cjs → CasinoFavoritesSection-qpggR3Qy.cjs} +1 -1
  16. package/components/{CasinoFilter-D1j1LhxK.cjs → CasinoFilter-BswGziub.cjs} +1 -1
  17. package/components/{CasinoFilter-D8MkH-4Q.js → CasinoFilter-COdEoLjO.js} +54 -54
  18. package/components/{CasinoFilter-C55Lrry3.js → CasinoFilter-TtmhdKfx.js} +54 -54
  19. package/components/{CasinoGameThumbnail-DYyzolvn.cjs → CasinoGameThumbnail-DE-NMEuD.cjs} +1 -1
  20. package/components/{CasinoGameThumbnail-DTnruajK.js → CasinoGameThumbnail-N0cDXPXp.js} +43 -43
  21. package/components/{CasinoGameThumbnail-BNEufhwb.js → CasinoGameThumbnail-pwrLIXix.js} +43 -43
  22. package/components/{CasinoGamesCategorySection-B7Ta1_M4.js → CasinoGamesCategorySection-BYHWSV0p.js} +82 -82
  23. package/components/{CasinoGamesCategorySection-DTEqJ_KB.js → CasinoGamesCategorySection-C66IQnHS.js} +82 -82
  24. package/components/{CasinoGamesCategorySection-D940qem2.cjs → CasinoGamesCategorySection-Txs4kY7i.cjs} +2 -2
  25. package/components/{CasinoJackpotBanner-ByWwJ4C5.js → CasinoJackpotBanner-CY7oG81S.js} +102 -102
  26. package/components/{CasinoJackpotBanner-DK4BrTug.js → CasinoJackpotBanner-D425xvs0.js} +134 -134
  27. package/components/{CasinoJackpotBanner-yhREwK_H.cjs → CasinoJackpotBanner-DqudSIOc.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSection-B1vBZ7l9.js → CasinoLastPlayedSection-BqU5YDmM.js} +19 -19
  29. package/components/{CasinoLastPlayedSection-B0JTjuBB.cjs → CasinoLastPlayedSection-C9UO4Qz7.cjs} +1 -1
  30. package/components/{CasinoLastPlayedSection-ExzDPIbt.js → CasinoLastPlayedSection-De8G3raR.js} +23 -23
  31. package/components/{CasinoMostPlayedSection-Bsk9FXm3.js → CasinoMostPlayedSection-CV7AJd8z.js} +18 -18
  32. package/components/{CasinoMostPlayedSection-DQIQnM1X.cjs → CasinoMostPlayedSection-D2Rlw1f1.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSection-Ame3-jcv.js → CasinoMostPlayedSection-W9-m-sR8.js} +31 -31
  34. package/components/{CasinoMyGames-DfamQkx2.js → CasinoMyGames-DFMmpy81.js} +28 -28
  35. package/components/{CasinoMyGames-B-X6yrUU.js → CasinoMyGames-D_KzlM9N.js} +29 -29
  36. package/components/{CasinoMyGames-BWgXDtlO.cjs → CasinoMyGames-XpXtcAlx.cjs} +1 -1
  37. package/components/{CasinoPage-Ce3vvxMH.js → CasinoPage-D4PlCd03.js} +62 -62
  38. package/components/{CasinoPage-CHVt9han.cjs → CasinoPage-eCv6pYb2.cjs} +1 -1
  39. package/components/{CasinoPage-nKYoHhhQ.js → CasinoPage-mjm62-7D.js} +62 -62
  40. package/components/{CasinoRandomGame-QERWgnCn.js → CasinoRandomGame-BdAsD-Ea.js} +32 -32
  41. package/components/{CasinoRandomGame-COJQL0lT.cjs → CasinoRandomGame-D6NekiHl.cjs} +1 -1
  42. package/components/{CasinoRandomGame-DnTWVNlN.js → CasinoRandomGame-DVm9BGzt.js} +31 -31
  43. package/components/{CasinoSearch-BefbNgYb.cjs → CasinoSearch-BWgZwgU4.cjs} +1 -1
  44. package/components/{CasinoSearch-R__GMn2Q.js → CasinoSearch-CBwcnKDo.js} +57 -57
  45. package/components/{CasinoSearch-D3yM26T4.js → CasinoSearch-CO236ngV.js} +55 -55
  46. package/components/{CasinoSort-w_c_Casp.js → CasinoSort-CHqs-Ttt.js} +44 -44
  47. package/components/{CasinoSort-DLTTSyjd.cjs → CasinoSort-Cffcaqi0.cjs} +1 -1
  48. package/components/{CasinoSort-DIeg_AZz.js → CasinoSort-H2zd8iw-.js} +60 -60
  49. package/components/{CasinoWinners-CwSpkdaG.js → CasinoWinners-C5vj7iay.js} +342 -324
  50. package/components/CasinoWinners-DTz1XF6s.cjs +1 -0
  51. package/components/CasinoWinners-D_coj2DG.js +1012 -0
  52. package/components/{GeneralAnimationLoading-CVQbbqfD.js → GeneralAnimationLoading-B4pGZ94-.js} +6 -6
  53. package/components/{GeneralAnimationLoading-Cj3h7Z1Q.js → GeneralAnimationLoading-BkgOGtdu.js} +7 -7
  54. package/components/{GeneralAnimationLoading-CZktzcW8.cjs → GeneralAnimationLoading-oA1BDcyB.cjs} +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/CasinoWinners-9D47i5gK.js +0 -994
  60. package/components/CasinoWinners-Dm-upaG0.cjs +0 -1
@@ -4802,7 +4802,7 @@ if (typeof window != "undefined") {
4802
4802
  }
4803
4803
  };
4804
4804
  };
4805
- customElements.define = t(customElements.define), import("./CasinoGamesCategorySection-DTEqJ_KB.js").then((e) => e.C).then(({ default: e }) => {
4805
+ customElements.define = t(customElements.define), import("./CasinoGamesCategorySection-C66IQnHS.js").then((e) => e.C).then(({ default: e }) => {
4806
4806
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
4807
4807
  });
4808
4808
  }
@@ -4818,7 +4818,7 @@ if (typeof window != "undefined") {
4818
4818
  }
4819
4819
  };
4820
4820
  };
4821
- customElements.define = t(customElements.define), import("./CasinoRandomGame-DnTWVNlN.js").then(({ default: e }) => {
4821
+ customElements.define = t(customElements.define), import("./CasinoRandomGame-DVm9BGzt.js").then(({ default: e }) => {
4822
4822
  !customElements.get("casino-random-game") && customElements.define("casino-random-game", e.element);
4823
4823
  });
4824
4824
  }
@@ -4834,7 +4834,7 @@ if (typeof window != "undefined") {
4834
4834
  }
4835
4835
  };
4836
4836
  };
4837
- customElements.define = t(customElements.define), import("./CasinoWinners-CwSpkdaG.js").then(({ default: e }) => {
4837
+ customElements.define = t(customElements.define), import("./CasinoWinners-C5vj7iay.js").then(({ default: e }) => {
4838
4838
  !customElements.get("casino-winners") && customElements.define("casino-winners", e.element);
4839
4839
  });
4840
4840
  }
@@ -4850,7 +4850,7 @@ if (typeof window != "undefined") {
4850
4850
  }
4851
4851
  };
4852
4852
  };
4853
- customElements.define = t(customElements.define), import("./CasinoJackpotBanner-DK4BrTug.js").then(({ default: e }) => {
4853
+ customElements.define = t(customElements.define), import("./CasinoJackpotBanner-D425xvs0.js").then(({ default: e }) => {
4854
4854
  !customElements.get("casino-jackpot-banner") && customElements.define("casino-jackpot-banner", e.element);
4855
4855
  });
4856
4856
  }
@@ -4866,7 +4866,7 @@ if (typeof window != "undefined") {
4866
4866
  }
4867
4867
  };
4868
4868
  };
4869
- customElements.define = t(customElements.define), import("./CasinoCollectionsProviders-DPvvU3Av.js").then(({ default: e }) => {
4869
+ customElements.define = t(customElements.define), import("./CasinoCollectionsProviders-BTgMKpir.js").then(({ default: e }) => {
4870
4870
  !customElements.get("casino-collections-providers") && customElements.define("casino-collections-providers", e.element);
4871
4871
  });
4872
4872
  }
@@ -4882,7 +4882,7 @@ if (typeof window != "undefined") {
4882
4882
  }
4883
4883
  };
4884
4884
  };
4885
- customElements.define = t(customElements.define), import("./CasinoMyGames-DfamQkx2.js").then(({ default: e }) => {
4885
+ customElements.define = t(customElements.define), import("./CasinoMyGames-DFMmpy81.js").then(({ default: e }) => {
4886
4886
  !customElements.get("casino-my-games") && customElements.define("casino-my-games", e.element);
4887
4887
  });
4888
4888
  }
@@ -4898,7 +4898,7 @@ if (typeof window != "undefined") {
4898
4898
  }
4899
4899
  };
4900
4900
  };
4901
- customElements.define = t(customElements.define), import("./CasinoSearch-R__GMn2Q.js").then(({ default: e }) => {
4901
+ customElements.define = t(customElements.define), import("./CasinoSearch-CBwcnKDo.js").then(({ default: e }) => {
4902
4902
  !customElements.get("casino-search") && customElements.define("casino-search", e.element);
4903
4903
  });
4904
4904
  }
@@ -4914,7 +4914,7 @@ if (typeof window != "undefined") {
4914
4914
  }
4915
4915
  };
4916
4916
  };
4917
- customElements.define = t(customElements.define), import("./CasinoCalendar-DdiZxohs.js").then(({ default: e }) => {
4917
+ customElements.define = t(customElements.define), import("./CasinoCalendar-DoiSP2I7.js").then(({ default: e }) => {
4918
4918
  !customElements.get("casino-calendar") && customElements.define("casino-calendar", e.element);
4919
4919
  });
4920
4920
  }
@@ -4930,7 +4930,7 @@ if (typeof window != "undefined") {
4930
4930
  }
4931
4931
  };
4932
4932
  };
4933
- customElements.define = t(customElements.define), import("./CasinoFilter-C55Lrry3.js").then(({ default: e }) => {
4933
+ customElements.define = t(customElements.define), import("./CasinoFilter-TtmhdKfx.js").then(({ default: e }) => {
4934
4934
  !customElements.get("casino-filter") && customElements.define("casino-filter", e.element);
4935
4935
  });
4936
4936
  }
@@ -8901,58 +8901,58 @@ const kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8901
8901
  default: Zi
8902
8902
  }, Symbol.toStringTag, { value: "Module" }));
8903
8903
  export {
8904
- fe as $,
8905
- El as A,
8906
- ne as B,
8907
- Bs as C,
8908
- Ya as D,
8909
- Za as E,
8910
- Ja as F,
8911
- xs as G,
8912
- qa as H,
8913
- Ie as I,
8914
- ee as J,
8915
- K,
8916
- Qe as L,
8917
- Es as M,
8918
- Ss as N,
8919
- Ts as O,
8920
- ws as P,
8921
- Pn as Q,
8922
- vl as R,
8904
+ Ie as $,
8905
+ W as A,
8906
+ Ms as B,
8907
+ kl as C,
8908
+ Os as D,
8909
+ Pl as E,
8910
+ he as F,
8911
+ hi as G,
8912
+ Tl as H,
8913
+ Ya as I,
8914
+ Za as J,
8915
+ Ja as K,
8916
+ i as L,
8917
+ wt as M,
8918
+ Sl as N,
8919
+ Sn as O,
8920
+ x as P,
8921
+ vl as Q,
8922
+ wl as R,
8923
8923
  Vs as S,
8924
- he as T,
8925
- Je as U,
8926
- Sn as V,
8927
- wl as W,
8928
- Tn as X,
8929
- Sl as Y,
8930
- Tl as Z,
8931
- kl as _,
8932
- Wi as a,
8933
- Ps as b,
8934
- k as c,
8935
- C as d,
8936
- w as e,
8937
- b as f,
8938
- z as g,
8939
- vs as h,
8940
- Us as i,
8941
- Os as j,
8942
- We as k,
8943
- Ze as l,
8944
- H as m,
8945
- W as n,
8946
- Ms as o,
8947
- Pl as p,
8948
- x as q,
8949
- pr as r,
8950
- hi as s,
8951
- Et as t,
8952
- wt as u,
8953
- Oe as v,
8954
- kn as w,
8955
- Gs as x,
8956
- i as y,
8957
- Cl as z
8924
+ Bs as T,
8925
+ Oe as U,
8926
+ Pn as V,
8927
+ Tn as W,
8928
+ K as X,
8929
+ ee as Y,
8930
+ Gs as Z,
8931
+ Ss as _,
8932
+ qa as a,
8933
+ fe as b,
8934
+ Wi as c,
8935
+ H as d,
8936
+ Ps as e,
8937
+ z as f,
8938
+ We as g,
8939
+ Qe as h,
8940
+ vs as i,
8941
+ xs as j,
8942
+ Es as k,
8943
+ Cl as l,
8944
+ El as m,
8945
+ C as n,
8946
+ w as o,
8947
+ Ze as p,
8948
+ kn as q,
8949
+ b as r,
8950
+ Et as s,
8951
+ Ts as t,
8952
+ ws as u,
8953
+ Je as v,
8954
+ Us as w,
8955
+ k as x,
8956
+ pr as y,
8957
+ ne as z
8958
8958
  };
@@ -1,10 +1,10 @@
1
- import { $ as H, I as we, a as _e, S as Ge, i as Re, s as xe, f as v, b as ke, d as x, J as E, K as P, L as ve, e as k, q as h, C as J, g as w, r as C, h as u, j as Me, k as Fe, M as Ce, N as Le, O as Se, P as Te, u as We, l as V, v as L, w as S, Q as je, x as Y, B as Ne, n as Be, D as K, R as Q, T as Ie, U as ze, F as Pe, G as Je, H as Ae, c as De, E as He } from "./CasinoPage-Ce3vvxMH.js";
1
+ import { b as H, $ as we, c as _e, S as Ge, w as Re, G as xe, r as v, e as ke, n as x, Y as E, X as P, h as ve, x as k, d as h, z as J, o as w, P as C, f as u, i as Me, D as Fe, k as Ce, _ as Le, t as Se, u as Te, s as We, g as Y, M as L, U as S, V as je, q, m as Ne, A as Be, T as X, Q as K, F as ze, v as Ie, I as Pe, J as Je, K as Ae, j as De, a as He } from "./CasinoPage-D4PlCd03.js";
2
2
  function Ee({ withLocale: a, translations: e }) {
3
3
  H.subscribe((t) => {
4
4
  t == null && (we.set(e), H.set(a));
5
5
  });
6
6
  }
7
- function X(a, e) {
7
+ function Q(a, e) {
8
8
  _e(a, e);
9
9
  }
10
10
  function Oe(a) {
@@ -91,7 +91,7 @@ function $(a, e, t) {
91
91
  const n = a.slice();
92
92
  return n[41] = e[t], n;
93
93
  }
94
- const qe = (a) => ({}), ee = (a) => ({});
94
+ const Ve = (a) => ({}), ee = (a) => ({});
95
95
  function te(a) {
96
96
  let e, t, n, l, s, d, f;
97
97
  const p = (
@@ -103,11 +103,11 @@ function te(a) {
103
103
  /*$$scope*/
104
104
  a[22],
105
105
  ee
106
- ), o = g || Ve();
106
+ ), o = g || Ye();
107
107
  function _(r, b) {
108
108
  return (
109
109
  /*hasRandomGames*/
110
- r[7] ? Ke : Ye
110
+ r[7] ? Xe : qe
111
111
  );
112
112
  }
113
113
  let m = _(a), c = m(a);
@@ -136,7 +136,7 @@ function te(a) {
136
136
  /*$$scope*/
137
137
  r[22],
138
138
  b,
139
- qe
139
+ Ve
140
140
  ) : Se(
141
141
  /*$$scope*/
142
142
  r[22]
@@ -155,11 +155,11 @@ function te(a) {
155
155
  }
156
156
  };
157
157
  }
158
- function Ve(a) {
158
+ function Ye(a) {
159
159
  let e, t;
160
160
  return {
161
161
  c() {
162
- e = K("svg"), t = K("path"), u(t, "stroke-linecap", "round"), u(t, "stroke-linejoin", "round"), u(t, "stroke-width", "2"), u(t, "d", "M6 18L18 6M6 6l12 12"), u(e, "class", "w-6 h-6"), u(e, "fill", "none"), u(e, "stroke", "currentColor"), u(e, "viewBox", "0 0 24 24"), u(e, "xmlns", "http://www.w3.org/2000/svg");
162
+ e = X("svg"), t = X("path"), u(t, "stroke-linecap", "round"), u(t, "stroke-linejoin", "round"), u(t, "stroke-width", "2"), u(t, "d", "M6 18L18 6M6 6l12 12"), u(e, "class", "w-6 h-6"), u(e, "fill", "none"), u(e, "stroke", "currentColor"), u(e, "viewBox", "0 0 24 24"), u(e, "xmlns", "http://www.w3.org/2000/svg");
163
163
  },
164
164
  m(n, l) {
165
165
  k(n, e, l), h(e, t);
@@ -170,7 +170,7 @@ function Ve(a) {
170
170
  }
171
171
  };
172
172
  }
173
- function Ye(a) {
173
+ function qe(a) {
174
174
  let e, t = (
175
175
  /*$_*/
176
176
  a[9]("noGames") + ""
@@ -192,8 +192,8 @@ function Ye(a) {
192
192
  }
193
193
  };
194
194
  }
195
- function Ke(a) {
196
- let e, t, n, l, s = Y(
195
+ function Xe(a) {
196
+ let e, t, n, l, s = q(
197
197
  /*gamesToShow*/
198
198
  a[4]
199
199
  ), d = [];
@@ -202,7 +202,7 @@ function Ke(a) {
202
202
  function f(o, _) {
203
203
  return (
204
204
  /*animationDone*/
205
- o[6] ? Xe : Qe
205
+ o[6] ? Qe : Ke
206
206
  );
207
207
  }
208
208
  let p = f(a), g = p(a);
@@ -222,7 +222,7 @@ function Ke(a) {
222
222
  p(o, _) {
223
223
  if (_[0] & /*gamesToShow*/
224
224
  16) {
225
- s = Y(
225
+ s = q(
226
226
  /*gamesToShow*/
227
227
  o[4]
228
228
  );
@@ -246,7 +246,7 @@ function ae(a) {
246
246
  let e, t, n, l, s, d;
247
247
  return {
248
248
  c() {
249
- e = w("div"), t = w("img"), d = C(), u(t, "class", "RandomGameImage"), Q(t.src, n = /*game*/
249
+ e = w("div"), t = w("img"), d = C(), u(t, "class", "RandomGameImage"), K(t.src, n = /*game*/
250
250
  a[41].thumbnail) || u(t, "src", n), u(t, "alt", l = /*game*/
251
251
  a[41].name), u(t, "title", s = /*game*/
252
252
  a[41].name), u(e, "class", "item");
@@ -256,7 +256,7 @@ function ae(a) {
256
256
  },
257
257
  p(f, p) {
258
258
  p[0] & /*gamesToShow*/
259
- 16 && !Q(t.src, n = /*game*/
259
+ 16 && !K(t.src, n = /*game*/
260
260
  f[41].thumbnail) && u(t, "src", n), p[0] & /*gamesToShow*/
261
261
  16 && l !== (l = /*game*/
262
262
  f[41].name) && u(t, "alt", l), p[0] & /*gamesToShow*/
@@ -268,7 +268,7 @@ function ae(a) {
268
268
  }
269
269
  };
270
270
  }
271
- function Qe(a) {
271
+ function Ke(a) {
272
272
  let e, t = (
273
273
  /*$_*/
274
274
  a[9]("randomGameLoading") + ""
@@ -290,7 +290,7 @@ function Qe(a) {
290
290
  }
291
291
  };
292
292
  }
293
- function Xe(a) {
293
+ function Qe(a) {
294
294
  let e, t, n, l, s = (
295
295
  /*randomGame*/
296
296
  a[3].name + ""
@@ -332,7 +332,7 @@ function Xe(a) {
332
332
  R[9]("playNowRandomGame") + "") && L(r, c);
333
333
  },
334
334
  d(R) {
335
- R && (x(e), x(t), x(n)), b = !1, Ie(T);
335
+ R && (x(e), x(t), x(n)), b = !1, ze(T);
336
336
  }
337
337
  };
338
338
  }
@@ -415,7 +415,7 @@ function et(a) {
415
415
  p(r, b) {
416
416
  /*show*/
417
417
  r[5] ? o ? (o.p(r, b), b[0] & /*show*/
418
- 32 && P(o, 1)) : (o = te(r), o.c(), P(o, 1), o.m(e, t)) : o && (ze(), E(o, 1, 1, () => {
418
+ 32 && P(o, 1)) : (o = te(r), o.c(), P(o, 1), o.m(e, t)) : o && (Ie(), E(o, 1, 1, () => {
419
419
  o = null;
420
420
  }), ve()), m === (m = _(r)) && c ? c.p(r, b) : (c && c.d(1), c = m && m(r), c && (c.c(), c.m(l, s))), (!f || b[0] & /*randombuttonicon*/
421
421
  1) && (d.innerHTML = /*randombuttonicon*/
@@ -435,35 +435,35 @@ function et(a) {
435
435
  function tt(a, e, t) {
436
436
  let n;
437
437
  Me(a, He, (i) => t(9, n = i));
438
- let { $$slots: l = {}, $$scope: s } = e, { endpoint: d = "" } = e, { datasource: f = "" } = e, { gameevent: p = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: r = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: T } = e, R = [], G = "", W, N = !1, A = !1, I = !1, ne = window.navigator.userAgent, M, j, O, z, oe, U = null;
438
+ let { $$slots: l = {}, $$scope: s } = e, { endpoint: d = "" } = e, { datasource: f = "" } = e, { gameevent: p = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: r = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: T } = e, R = [], G = "", W, N = !1, A = !1, z = !1, ne = window.navigator.userAgent, M, j, O, I, oe, U = null;
439
439
  Ee({ withLocale: "en", translations: {} });
440
440
  const le = () => {
441
441
  fetch(m).then((y) => y.json()).then((y) => {
442
442
  Object.keys(y).forEach((F) => {
443
- X(F, y[F]);
443
+ Q(F, y[F]);
444
444
  });
445
445
  }).catch((y) => {
446
446
  console.log(y);
447
447
  });
448
448
  };
449
449
  Object.keys(Z).forEach((i) => {
450
- X(i, Z[i]);
450
+ Q(i, Z[i]);
451
451
  });
452
452
  const ie = () => {
453
453
  let i = new URL(`${d}/v1/casino/games`);
454
454
  i.searchParams.append("platform", We(ne)), i.searchParams.append("datasource", f), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && i.searchParams.append("filter", `groups=${b}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
455
- R = y.items, R.length ? (t(4, W = re(R.slice(0, 19))), t(7, I = !0)) : (t(4, W = []), t(7, I = !1));
455
+ R = y.items, R.length ? (t(4, W = re(R.slice(0, 19))), t(7, z = !0)) : (t(4, W = []), t(7, z = !1));
456
456
  }).catch((y) => {
457
- console.log(y), t(7, I = !1);
457
+ console.log(y), t(7, z = !1);
458
458
  });
459
459
  }, re = (i) => {
460
460
  const y = me(i);
461
461
  return y.concat(y);
462
462
  }, se = async () => {
463
- await je(), z = Math.floor(Math.random() * (W.length / 2)) + W.length / 2, t(3, G = W[z]), O = j.children[z];
463
+ await je(), I = Math.floor(Math.random() * (W.length / 2)) + W.length / 2, t(3, G = W[I]), O = j.children[I];
464
464
  }, D = async () => {
465
465
  t(6, A = !1), t(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await se();
466
- const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, B = (O.offsetHeight + y) * z, ye = [
466
+ const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, B = (O.offsetHeight + y) * I, ye = [
467
467
  { transform: "translateX(0px)" },
468
468
  { filter: "blur(5px)" },
469
469
  {
@@ -483,7 +483,7 @@ function tt(a, e, t) {
483
483
  for (; F != 0; )
484
484
  B = Math.floor(Math.random() * F), F--, [y[F], y[B]] = [y[B], y[F]];
485
485
  return y;
486
- }, q = () => {
486
+ }, V = () => {
487
487
  window.postMessage(
488
488
  {
489
489
  type: p,
@@ -502,13 +502,13 @@ function tt(a, e, t) {
502
502
  Fe(() => () => {
503
503
  });
504
504
  function ue(i) {
505
- V[i ? "unshift" : "push"](() => {
505
+ Y[i ? "unshift" : "push"](() => {
506
506
  j = i, t(8, j);
507
507
  });
508
508
  }
509
- const ge = () => D(), fe = () => q(), pe = () => D();
509
+ const ge = () => D(), fe = () => V(), pe = () => D();
510
510
  function he(i) {
511
- V[i ? "unshift" : "push"](() => {
511
+ Y[i ? "unshift" : "push"](() => {
512
512
  M = i, t(2, M);
513
513
  });
514
514
  }
@@ -530,11 +530,11 @@ function tt(a, e, t) {
530
530
  W,
531
531
  N,
532
532
  A,
533
- I,
533
+ z,
534
534
  j,
535
535
  n,
536
536
  D,
537
- q,
537
+ V,
538
538
  ce,
539
539
  d,
540
540
  f,
@@ -1,2 +1,2 @@
1
- "use strict";var W=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},c=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,c);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-CHVt9han.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function re(n){e.$locale.set(n)}const I={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"},"en-us":{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"}};function ie(n){e.append_styles(n,"svelte-kfgfhx","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function P(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function A(n){let t,a,o,r,s,c,f;const p=n[23].close,g=e.create_slot(p,n,n[22],J),l=g||de();function _(d,y){return d[7]?ce:me}let m=_(n),u=m(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,c||(f=e.listen(o,"click",n[12]),c=!0)},p(d,y){g&&g.p&&(!s||y[0]&4194304)&&e.update_slot_base(g,p,d,d[22],s?e.get_slot_changes(p,d[22],y,se):e.get_all_dirty_from_scope(d[22]),J),m===(m=_(d))&&u?u.p(d,y):(u.d(1),u=m(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),c=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function me(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function ce(n){let t,a,o,r,s=e.ensure_array_like(n[4]),c=[];for(let l=0;l<s.length;l+=1)c[l]=D(P(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<c.length;l+=1)c[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(o,null);n[24](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let m;for(m=0;m<s.length;m+=1){const u=P(l,s,m);c[m]?c[m].p(u,_):(c[m]=D(u),c[m].c(),c[m].m(o,null))}for(;m<c.length;m+=1)c[m].d(1);c.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(c,l),n[24](null),g.d()}}}function D(n){let t,a,o,r,s,c;return{c(){t=e.element("div"),a=e.element("img"),c=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,c)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function pe(n){let t,a,o,r,s=n[3].name+"",c,f,p,g=n[3].vendor.name+"",l,_,m,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
1
+ "use strict";var W=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},c=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,c);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-eCv6pYb2.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function re(n){e.$locale.set(n)}const I={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"},"en-us":{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"}};function ie(n){e.append_styles(n,"svelte-kfgfhx","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function P(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function A(n){let t,a,o,r,s,c,f;const p=n[23].close,g=e.create_slot(p,n,n[22],J),l=g||de();function _(d,y){return d[7]?ce:me}let m=_(n),u=m(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,c||(f=e.listen(o,"click",n[12]),c=!0)},p(d,y){g&&g.p&&(!s||y[0]&4194304)&&e.update_slot_base(g,p,d,d[22],s?e.get_slot_changes(p,d[22],y,se):e.get_all_dirty_from_scope(d[22]),J),m===(m=_(d))&&u?u.p(d,y):(u.d(1),u=m(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),c=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function me(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function ce(n){let t,a,o,r,s=e.ensure_array_like(n[4]),c=[];for(let l=0;l<s.length;l+=1)c[l]=D(P(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<c.length;l+=1)c[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(o,null);n[24](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let m;for(m=0;m<s.length;m+=1){const u=P(l,s,m);c[m]?c[m].p(u,_):(c[m]=D(u),c[m].c(),c[m].m(o,null))}for(;m<c.length;m+=1)c[m].d(1);c.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(c,l),n[24](null),g.d()}}}function D(n){let t,a,o,r,s,c;return{c(){t=e.element("div"),a=e.element("img"),c=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,c)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function pe(n){let t,a,o,r,s=n[3].name+"",c,f,p,g=n[3].vendor.name+"",l,_,m,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
2
2
  </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,a=e.space(),o=e.element("div"),r=e.element("p"),c=e.text(s),f=e.space(),p=e.element("p"),l=e.text(g),_=e.space(),m=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(r,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(m,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(w,b){e.insert(w,t,b),e.insert(w,a,b),e.insert(w,o,b),e.append(o,r),e.append(r,c),e.append(o,f),e.append(o,p),e.append(p,l),e.append(o,_),e.append(o,m),e.append(m,d),y||(R=[e.listen(t,"click",n[25]),e.listen(m,"click",n[26])],y=!0)},p(w,b){b[0]&8&&s!==(s=w[3].name+"")&&e.set_data(c,s),b[0]&8&&g!==(g=w[3].vendor.name+"")&&e.set_data(l,g),b[0]&512&&u!==(u=w[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(w){w&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function ge(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("playRandomGame")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function fe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,r){e.insert(o,t,r),e.append(t,a)},p(o,r){r[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function he(n){let t,a,o,r,s,c,f,p,g,l=n[5]&&A(n);function _(d,y){if(d[1])return fe;if(!d[1])return ge}let m=_(n),u=m&&m(n);return{c(){t=e.element("div"),l&&l.c(),a=e.space(),o=e.element("div"),r=e.element("button"),u&&u.c(),s=e.space(),c=e.element("span"),e.attr(c,"class","RandomButtonIcon"),e.attr(r,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper")},m(d,y){e.insert(d,t,y),l&&l.m(t,null),e.append(t,a),e.append(t,o),e.append(o,r),u&&u.m(r,null),e.append(r,s),e.append(r,c),c.innerHTML=n[0],n[28](t),f=!0,p||(g=e.listen(r,"click",n[27]),p=!0)},p(d,y){d[5]?l?(l.p(d,y),y[0]&32&&e.transition_in(l,1)):(l=A(d),l.c(),e.transition_in(l,1),l.m(t,a)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros()),m===(m=_(d))&&u?u.p(d,y):(u&&u.d(1),u=m&&m(d),u&&(u.c(),u.m(r,s))),(!f||y[0]&1)&&(c.innerHTML=d[0])},i(d){f||(e.transition_in(l),f=!0)},o(d){e.transition_out(l),f=!1},d(d){d&&e.detach(t),l&&l.d(),u&&u.d(),n[28](null),p=!1,g()}}}function ye(n,t,a){let o;e.component_subscribe(n,e.$format,i=>a(9,o=i));let{$$slots:r={},$$scope:s}=t,{endpoint:c=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:l=""}=t,{buttontext:_=""}=t,{translationurl:m=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,{mbsource:R}=t,w=[],b="",k,M=!1,S=!1,C=!1,O=window.navigator.userAgent,G,v,j,L,E,N=null;le({withLocale:"en",translations:{}});const q=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(x=>{z(x,h[x])})}).catch(h=>{console.log(h)})};Object.keys(I).forEach(i=>{z(i,I[i])});const U=()=>{let i=new URL(`${c}/v1/casino/games`);i.searchParams.append("platform",e.getDevice(O)),i.searchParams.append("datasource",f),i.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&i.searchParams.append("filter",`groups=${y}`),i.searchParams.append("expand","categories,vendor"),i.searchParams.append("pagination","offset=0,limit=1000"),fetch(i.href).then(h=>h.json()).then(h=>{w=h.items,w.length?(a(4,k=V(w.slice(0,19))),a(7,C=!0)):(a(4,k=[]),a(7,C=!1))}).catch(h=>{console.log(h),a(7,C=!1)})},V=i=>{const h=X(i);return h.concat(h)},Y=()=>W(this,null,function*(){yield e.tick(),L=Math.floor(Math.random()*(k.length/2))+k.length/2,a(3,b=k[L]),j=v.children[L]}),T=()=>W(this,null,function*(){a(6,S=!1),a(5,M=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield Y();const i=window.getComputedStyle(v).getPropertyValue("gap"),h=parseInt(i,10)||0,F=(j.offsetHeight+h)*L,ne=[{transform:"translateX(0px)"},{filter:"blur(5px)"},{transform:`translateY(-${F}px)`}],oe={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};N=v.animate(ne,oe),N.onfinish=()=>{a(6,S=!0)}}),X=i=>{const h=structuredClone(i);let x=h.length,F;for(;x!=0;)F=Math.floor(Math.random()*x),x--,[h[x],h[F]]=[h[F],h[x]];return h},B=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,M=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},Z=()=>{a(5,M=!1),window.postMessage({type:"RandomWidgetState",state:M},window.location.href)},K=()=>{re(g)};e.onMount(()=>()=>{});function Q(i){e.binding_callbacks[i?"unshift":"push"](()=>{v=i,a(8,v)})}const $=()=>T(),ee=()=>B(),te=()=>T();function ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{G=i,a(2,G)})}return n.$$set=i=>{"endpoint"in i&&a(13,c=i.endpoint),"datasource"in i&&a(14,f=i.datasource),"gameevent"in i&&a(15,p=i.gameevent),"lang"in i&&a(16,g=i.lang),"randombuttonicon"in i&&a(0,l=i.randombuttonicon),"buttontext"in i&&a(1,_=i.buttontext),"translationurl"in i&&a(17,m=i.translationurl),"clientstyling"in i&&a(18,u=i.clientstyling),"clientstylingurl"in i&&a(19,d=i.clientstylingurl),"filteredrandomgamecategories"in i&&a(20,y=i.filteredrandomgamecategories),"mbsource"in i&&a(21,R=i.mbsource),"$$scope"in i&&a(22,s=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&K(),n.$$.dirty[0]&131072&&m&&q(),n.$$.dirty[0]&24576&&c&&f&&U(),n.$$.dirty[0]&262148&&u&&G&&e.setClientStyling(G,u),n.$$.dirty[0]&524292&&d&&G&&e.setClientStylingURL(G,d),n.$$.dirty[0]&2097156&&G&&e.setStreamStyling(G,`${R}.Style`,E)},[l,_,G,b,k,M,S,C,v,o,T,B,Z,c,f,p,g,m,u,d,y,R,s,r,Q,$,ee,te,ae]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,he,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20,mbsource:21},ie,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(H,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{},mbsource:{}},["close"],[],!0);exports.default=H;