@everymatrix/casino-lobby 1.59.2 → 1.60.0

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 (42) hide show
  1. package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-DRIsr69C.js} +1 -1
  2. package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-DYab11Z3.js} +1 -1
  3. package/components/{CasinoCategoriesSlider-DMR3iCVW.cjs → CasinoCategoriesSlider-_X531XfJ.cjs} +1 -1
  4. package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BPeaXKGM.js} +1 -1
  5. package/components/{CasinoFavoritesSection-V5ybOUJC.js → CasinoFavoritesSection-D5EqqGMj.js} +1 -1
  6. package/components/{CasinoFavoritesSection-hHKNAcoS.cjs → CasinoFavoritesSection-DIHre_7t.cjs} +1 -1
  7. package/components/{CasinoGameThumbnail-CVz7FpsB.js → CasinoGameThumbnail-CMvbY2cI.js} +200 -184
  8. package/components/CasinoGameThumbnail-Fwlc2vjJ.cjs +38 -0
  9. package/components/{CasinoGameThumbnail-NLieCJGe.js → CasinoGameThumbnail-XbLpvdZ1.js} +201 -185
  10. package/components/{CasinoGamesCategorySection-BP3bZsZg.js → CasinoGamesCategorySection-Cgi_LzIk.js} +1 -1
  11. package/components/CasinoGamesCategorySection-DHyFvtM3.cjs +1 -0
  12. package/components/{CasinoGamesCategorySection-Bpy9vh6D.js → CasinoGamesCategorySection-kZn6gz5M.js} +1 -1
  13. package/components/{CasinoLastPlayedSection-CVEuFsbi.js → CasinoLastPlayedSection-BmYQ5e4f.js} +1 -1
  14. package/components/{CasinoLastPlayedSection-COAM1aoc.cjs → CasinoLastPlayedSection-DtfR0xRC.cjs} +1 -1
  15. package/components/{CasinoLastPlayedSection-B9I2fZm5.js → CasinoLastPlayedSection-NSl0yoZv.js} +1 -1
  16. package/components/{CasinoLobby-CYqI5Bvp.cjs → CasinoLobby-Bsmr_ax3.cjs} +1 -1
  17. package/components/{CasinoLobby-AoZlXLOV.js → CasinoLobby-CX4NLxiX.js} +2 -2
  18. package/components/{CasinoLobby-BRiasSXJ.js → CasinoLobby-Q5uhRd4e.js} +2 -2
  19. package/components/{CasinoMostPlayedSection-DwZh0uxo.js → CasinoMostPlayedSection-BCjRlbbD.js} +1 -1
  20. package/components/{CasinoMostPlayedSection-BUwIld9p.cjs → CasinoMostPlayedSection-C_ohqFyM.cjs} +1 -1
  21. package/components/{CasinoMostPlayedSection-9B6X9czZ.js → CasinoMostPlayedSection-CtfOCgLC.js} +1 -1
  22. package/components/{CasinoMyGames-76IMIo9z.js → CasinoMyGames-B7uSkUNa.js} +3 -3
  23. package/components/{CasinoMyGames-DTGaTHyO.cjs → CasinoMyGames-CCejo695.cjs} +1 -1
  24. package/components/{CasinoMyGames-DRCxYUHg.js → CasinoMyGames-DR5bMRpI.js} +3 -3
  25. package/components/{CasinoPage-BPxxsTeq.js → CasinoPage-Bvi4UG6U.js} +3 -3
  26. package/components/{CasinoPage-DZ6Yhwli.cjs → CasinoPage-D67L8dJp.cjs} +1 -1
  27. package/components/{CasinoPage-CikRIum6.js → CasinoPage-D_LGB2VJ.js} +3 -3
  28. package/components/{CasinoSearch-Cs8FRwGb.js → CasinoSearch-Bdtzeemo.js} +47 -46
  29. package/components/CasinoSearch-BzqcnIfq.cjs +1 -0
  30. package/components/{CasinoSearch-CCcjmB9U.js → CasinoSearch-DgadCAWn.js} +47 -46
  31. package/components/CasinoSlider---x4M_hm.js +803 -0
  32. package/components/CasinoSlider-BsszznrS.cjs +1 -0
  33. package/components/{CasinoSlider-0rdHVHjG.js → CasinoSlider-PeKujgAE.js} +111 -111
  34. package/es2015/casino-lobby.cjs +1 -1
  35. package/es2015/casino-lobby.js +1 -1
  36. package/esnext/casino-lobby.js +1 -1
  37. package/package.json +2 -2
  38. package/components/CasinoGameThumbnail-DK9cpR-G.cjs +0 -38
  39. package/components/CasinoGamesCategorySection-BAcJus2G.cjs +0 -1
  40. package/components/CasinoSearch-CZSrkWFZ.cjs +0 -1
  41. package/components/CasinoSlider-CMKmgXUK.cjs +0 -1
  42. package/components/CasinoSlider-CleETLFf.js +0 -803
@@ -1,10 +1,11 @@
1
- import { a as Ae, $ as Oe, S as qe, i as He, f as L, c as We, s as Ue, b as Ve, e as y, w as N, J as ie, y as f, O as te, d as j, z as _, V as ce, A as Z, G as ue, j as z, R as Je, k as Ze, o as Ye, l as Ke, x as q, E as H, q as he, r as Xe, m as Qe, v as de, K as Re, F as $e, P as u, I as et } from "./CasinoCalendar-6ncpIgng.js";
2
- import "./CasinoGamesCategorySection-Bpy9vh6D.js";
1
+ import { a as Ae, $ as Oe, S as qe, i as He, f as L, c as We, s as Ue, b as Ve, e as R, w as N, J as ie, y as f, O as te, d as j, z as _, V as ce, A as Z, G as ue, j as z, R as Je, k as Ze, o as Ye, l as Ke, x as q, E as H, q as he, r as Xe, m as Qe, v as de, K as Re, F as $e, P as u, I as et } from "./CasinoCalendar-6ncpIgng.js";
2
+ import { d as tt } from "./CasinoGameThumbnail-CMvbY2cI.js";
3
+ import "./CasinoGamesCategorySection-kZn6gz5M.js";
3
4
  import { h as $ } from "./CasinoGamePage-Cp2CKRka.js";
4
5
  function me(a, e) {
5
6
  Ae(a, e);
6
7
  }
7
- function tt(a) {
8
+ function at(a) {
8
9
  Oe.set(a);
9
10
  }
10
11
  const ge = {
@@ -190,7 +191,7 @@ const ge = {
190
191
  noRecentSearches: "No recent searches yet. Search for any of our games."
191
192
  }
192
193
  };
193
- function at(a) {
194
+ function nt(a) {
194
195
  Ve(a, "svelte-8vixmz", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
195
196
  }
196
197
  function fe(a, e, t) {
@@ -204,7 +205,7 @@ function pe(a) {
204
205
  ), n, r, l, s;
205
206
  return {
206
207
  c() {
207
- e = y("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
208
+ e = R("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
208
209
  (a[13] ? "NotVisible" : ""));
209
210
  },
210
211
  m(i, c) {
@@ -227,7 +228,7 @@ function pe(a) {
227
228
  }
228
229
  };
229
230
  }
230
- function nt(a) {
231
+ function rt(a) {
231
232
  let e, t, n, r;
232
233
  function l(h, g) {
233
234
  if (
@@ -235,12 +236,12 @@ function nt(a) {
235
236
  h[17] == !0 && /*searchValue*/
236
237
  h[12].length < 2
237
238
  )
238
- return st;
239
+ return lt;
239
240
  if (
240
241
  /*searchArray*/
241
242
  h[15].length != 0
242
243
  )
243
- return ot;
244
+ return st;
244
245
  }
245
246
  let s = l(a), i = s && s(a), c = (
246
247
  /*searchCancelled*/
@@ -252,7 +253,7 @@ function nt(a) {
252
253
  );
253
254
  return {
254
255
  c() {
255
- i && i.c(), e = N(), t = y("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
256
+ i && i.c(), e = N(), t = R("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
256
257
  (a[17] == !0 ? "" : "NotVisible"));
257
258
  },
258
259
  m(h, g) {
@@ -271,14 +272,14 @@ function nt(a) {
271
272
  }
272
273
  };
273
274
  }
274
- function rt(a) {
275
+ function ot(a) {
275
276
  let e, t = (
276
277
  /*$_*/
277
278
  a[21]("loading") + ""
278
279
  ), n;
279
280
  return {
280
281
  c() {
281
- e = y("p"), n = q(t), f(e, "class", "LoadingContent");
282
+ e = R("p"), n = q(t), f(e, "class", "LoadingContent");
282
283
  },
283
284
  m(r, l) {
284
285
  j(r, e, l), _(e, n);
@@ -293,14 +294,14 @@ function rt(a) {
293
294
  }
294
295
  };
295
296
  }
296
- function ot(a) {
297
+ function st(a) {
297
298
  let e, t = (
298
299
  /*$_*/
299
300
  a[21]("searchResult") + ""
300
301
  ), n;
301
302
  return {
302
303
  c() {
303
- e = y("p"), n = q(t), f(e, "class", "SearchMessage");
304
+ e = R("p"), n = q(t), f(e, "class", "SearchMessage");
304
305
  },
305
306
  m(r, l) {
306
307
  j(r, e, l), _(e, n);
@@ -315,7 +316,7 @@ function ot(a) {
315
316
  }
316
317
  };
317
318
  }
318
- function st(a) {
319
+ function lt(a) {
319
320
  let e, t, n = (
320
321
  /*searchArray*/
321
322
  a[15].length !== 0 && Se(a)
@@ -347,7 +348,7 @@ function Se(a) {
347
348
  ), n;
348
349
  return {
349
350
  c() {
350
- e = y("p"), n = q(t), f(e, "class", "SearchMessage");
351
+ e = R("p"), n = q(t), f(e, "class", "SearchMessage");
351
352
  },
352
353
  m(r, l) {
353
354
  j(r, e, l), _(e, n);
@@ -372,7 +373,7 @@ function _e(a) {
372
373
  );
373
374
  return {
374
375
  c() {
375
- e = y("div"), i && i.c(), t = N(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
376
+ e = R("div"), i && i.c(), t = N(), n = R("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
376
377
  (a[10] == "true" ? "WithIcon" : ""));
377
378
  },
378
379
  m(c, m) {
@@ -395,7 +396,7 @@ function be(a) {
395
396
  let e;
396
397
  return {
397
398
  c() {
398
- e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
399
+ e = R("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
399
400
  },
400
401
  m(t, n) {
401
402
  j(t, e, n);
@@ -450,7 +451,7 @@ function ve(a) {
450
451
  return {
451
452
  c() {
452
453
  var d;
453
- e = y("casino-game-thumbnail"), u(
454
+ e = R("casino-game-thumbnail"), u(
454
455
  e,
455
456
  "endpoint",
456
457
  /*endpoint*/
@@ -656,7 +657,7 @@ function ke(a) {
656
657
  );
657
658
  return {
658
659
  c() {
659
- e = y("div"), g && g.c(), t = N(), n = y("p"), l = q(r), s = N(), i = y("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
660
+ e = R("div"), g && g.c(), t = N(), n = R("p"), l = q(r), s = N(), i = R("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
660
661
  (a[10] == "true" ? "WithIcon" : ""));
661
662
  },
662
663
  m(w, d) {
@@ -681,7 +682,7 @@ function ye(a) {
681
682
  let e;
682
683
  return {
683
684
  c() {
684
- e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
685
+ e = R("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
685
686
  },
686
687
  m(t, n) {
687
688
  j(t, e, n);
@@ -691,7 +692,7 @@ function ye(a) {
691
692
  }
692
693
  };
693
694
  }
694
- function lt(a) {
695
+ function it(a) {
695
696
  let e, t, n, r, l, s, i, c, m, h, g, w, d, p, P, x, B, U, A, W, v = (
696
697
  /*cancelbutton*/
697
698
  a[9] === "true" && pe(a)
@@ -699,14 +700,14 @@ function lt(a) {
699
700
  function I(b, T) {
700
701
  return (
701
702
  /*isLoading*/
702
- b[18] ? rt : nt
703
+ b[18] ? ot : rt
703
704
  );
704
705
  }
705
- let D = I(a), R = D(a);
706
+ let D = I(a), y = D(a);
706
707
  return {
707
708
  c() {
708
- e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), m = y("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), P = N(), x = y("div"), U = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
709
- a[21]("placeHolderSearchGames")), f(s, "maxlength", it), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
709
+ e = R("div"), t = R("div"), n = R("div"), r = R("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = R("input"), c = N(), m = R("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), P = N(), x = R("div"), U = N(), y.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
710
+ a[21]("placeHolderSearchGames")), f(s, "maxlength", ct), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
710
711
  (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
711
712
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
712
713
  (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(x, "class", B = /*cancelbutton*/
@@ -720,7 +721,7 @@ function lt(a) {
720
721
  s,
721
722
  /*searchValue*/
722
723
  a[12]
723
- ), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, P), _(e, x), _(e, U), R.m(e, null), a[37](e), A || (W = [
724
+ ), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, P), _(e, x), _(e, U), y.m(e, null), a[37](e), A || (W = [
724
725
  Z(
725
726
  s,
726
727
  "input",
@@ -764,20 +765,20 @@ function lt(a) {
764
765
  8192 && p !== (p = "Search " + /*searchCancelled*/
765
766
  (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
766
767
  512 && B !== (B = /*cancelbutton*/
767
- b[9] != "true" ? "OverlayCancel" : "") && f(x, "class", B), D === (D = I(b)) && R ? R.p(b, T) : (R.d(1), R = D(b), R && (R.c(), R.m(e, null)));
768
+ b[9] != "true" ? "OverlayCancel" : "") && f(x, "class", B), D === (D = I(b)) && y ? y.p(b, T) : (y.d(1), y = D(b), y && (y.c(), y.m(e, null)));
768
769
  },
769
770
  i: ue,
770
771
  o: ue,
771
772
  d(b) {
772
- b && z(e), a[34](null), v && v.d(), R.d(), a[37](null), A = !1, Je(W);
773
+ b && z(e), a[34](null), v && v.d(), y.d(), a[37](null), A = !1, Je(W);
773
774
  }
774
775
  };
775
776
  }
776
- let it = 50;
777
- function ct(a, e, t) {
777
+ let ct = 50;
778
+ function ut(a, e, t) {
778
779
  let n;
779
780
  Ze(a, et, (o) => t(21, n = o));
780
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: B = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], I = [], D = {}, R = "", b, T = !0, V = !1, E = !1, M, Y = !1, K, X, ae = [];
781
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: B = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], I = [], D = {}, y = "", b, T = !0, V = !1, E = !1, M, Y = !1, K, X, ae = [];
781
782
  const Ce = () => {
782
783
  fetch(P).then((S) => S.json()).then((S) => {
783
784
  Object.keys(S).forEach((k) => {
@@ -793,7 +794,7 @@ function ct(a, e, t) {
793
794
  const ne = (o) => {
794
795
  o.data && o.data.type == "SearchedItemClicked" && Ie(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
795
796
  }, re = () => {
796
- if (t(13, T = !1), t(17, V = !0), r && l && c && R.length < 2) {
797
+ if (t(13, T = !1), t(17, V = !0), r && l && c && y.length < 2) {
797
798
  t(15, v = []);
798
799
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
799
800
  o && (S = o.split(","));
@@ -856,9 +857,9 @@ function ct(a, e, t) {
856
857
  I.unshift(o), S = I.join(","), localStorage.setItem("searchedGamesWds_casino", S);
857
858
  }
858
859
  }, Q = () => {
859
- t(12, R = ""), t(13, T = !0), t(18, E = !1), t(15, v = []), t(17, V = !1), le(V);
860
+ t(12, y = ""), t(13, T = !0), t(18, E = !1), t(15, v = []), t(17, V = !1), le(V);
860
861
  }, se = () => {
861
- t(12, R = ""), b.focus();
862
+ t(12, y = ""), b.focus();
862
863
  }, le = (o) => {
863
864
  window.postMessage(
864
865
  {
@@ -868,13 +869,13 @@ function ct(a, e, t) {
868
869
  window.location.href
869
870
  );
870
871
  }, Ee = () => {
871
- tt(c);
872
+ at(c);
872
873
  };
873
874
  Ye(() => (window.addEventListener("message", ne, !1), () => {
874
875
  window.removeEventListener("message", ne);
875
876
  }));
876
877
  function Ne() {
877
- R = this.value, t(12, R);
878
+ y = this.value, t(12, y);
878
879
  }
879
880
  function Pe(o) {
880
881
  he[o ? "unshift" : "push"](() => {
@@ -892,10 +893,10 @@ function ct(a, e, t) {
892
893
  }, a.$$.update = () => {
893
894
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
894
895
  268447747)
895
- if (R.length >= 2) {
896
+ if (y.length >= 2) {
896
897
  const o = new URL(`${r}/v1/casino/games`);
897
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((S) => {
898
- t(15, v = S.items.map((k) => (k.isFavorite = oe(k.id), k)));
898
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${y}`), Le(o).then((S) => {
899
+ tt("game_search", { searchValue: y }), t(15, v = S.items.map((k) => (k.isFavorite = oe(k.id), k)));
899
900
  });
900
901
  } else
901
902
  T || re();
@@ -921,7 +922,7 @@ function ct(a, e, t) {
921
922
  B,
922
923
  U,
923
924
  A,
924
- R,
925
+ y,
925
926
  T,
926
927
  M,
927
928
  v,
@@ -949,13 +950,13 @@ function ct(a, e, t) {
949
950
  Be
950
951
  ];
951
952
  }
952
- class ut extends qe {
953
+ class ht extends qe {
953
954
  constructor(e) {
954
955
  super(), He(
955
956
  this,
956
957
  e,
957
- ct,
958
- lt,
958
+ ut,
959
+ it,
959
960
  Ue,
960
961
  {
961
962
  endpoint: 0,
@@ -975,7 +976,7 @@ class ut extends qe {
975
976
  notfoundicon: 10,
976
977
  mbsource: 11
977
978
  },
978
- at,
979
+ nt,
979
980
  [-1, -1]
980
981
  );
981
982
  }
@@ -1076,7 +1077,7 @@ class ut extends qe {
1076
1077
  this.$$set({ mbsource: e }), L();
1077
1078
  }
1078
1079
  }
1079
- We(ut, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1080
+ We(ht, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1080
1081
  export {
1081
- ut as default
1082
+ ht as default
1082
1083
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs"),Ce=require("./CasinoGameThumbnail-Fwlc2vjJ.cjs");require("./CasinoGamesCategorySection-DHyFvtM3.cjs");const H=require("./CasinoGamePage-D2huRBJX.cjs");function K(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function Fe(n){e.append_styles(n,"svelte-8vixmz","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Le(n){let t,a,r,s;function i(h,f){if(h[17]==!0&&h[12].length<2)return Ge;if(h[15].length!=0)return je}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),m=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[13]===!1?u?u.p(h,f):(u=re(h),u.c(),u.m(a,r)):u&&(u.d(1),u=null),h[12].length>=2&&h[15].length==0?m?m.p(h,f):(m=oe(h),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),m&&m.d()}}}function Te(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function je(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ge(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[10]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[10]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),m[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35162623){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,m,h,f,S;return{c(){var d;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((d=n[53].advancedTags)==null?void 0:d.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",h=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"mbsource",n[11]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7])},m(d,g){e.insert(d,t,g)},p(d,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&e.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",d[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&e.set_custom_element_data(t,"lang",d[1]),g[0]&32768&&a!==(a=d[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=d[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=d[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=d[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=d[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=d[53].advancedTags)==null?void 0:T.length)>0&&d[25](d[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=d[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&m!==(m=d[53].id)&&e.set_custom_element_data(t,"gameid",m),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&32768&&h!==(h=d[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",h),g[0]&32768&&f!==(f=d[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=d[53].details?d[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",m,h,f=n[10]==="true"&&le();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(S,d){e.insert(S,t,d),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,m)},p(S,d){S[10]==="true"?f||(f=le(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),d[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),d[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(m,u),d[0]&1024&&h!==(h="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(S){S&&e.detach(t),f&&f.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ze(n){let t,a,r,s,i,l,c,u,m,h,f,S,d,g,T,j,z,P,E,N,b=n[9]==="true"&&ee(n);function F(_,C){return _[18]?Te:Le}let I=F(n),v=I(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),m=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),d=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(j,"class",z=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,m),e.append(m,h),e.append(h,f),e.append(r,d),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),n[37](t),E||(N=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(m,"click",n[35]),e.listen(j,"click",n[24])],E=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(m,"class",S),_[9]==="true"?b?b.p(_,C):(b=ee(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&z!==(z=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",z),I===(I=F(_))&&v?v.p(_,C):(v.d(1),v=I(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),E=!1,e.run_all(N)}}}let Ie=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:z="true"}=t,{notfoundicon:P="false"}=t,{mbsource:E}=t,N=window.navigator.userAgent,b=[],F=[],I={},v="",_,C=!0,D=!1,L=!1,G,B=!1,q,A,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{K(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{K(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,A=o.data.userid),a(32,B=!0)),o.data.type=="CategoryChange"&&O()},J=()=>{if(a(13,C=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let R=new URL(`${s}/v1/casino/games/${p[k]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(de(R,p[k]))}Promise.all(w).then(R=>{R=R.filter(function(x){return!!x}),a(15,b=R.map(x=>(x.isFavorite=Z(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(R=>{M("searchError","SearchWidget")})}}X(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ue=()=>{z!="true"&&O()},he=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),w(k)})}),de=(o,p)=>new Promise((w,k)=>{a(18,L=!0),p&&Object.keys(I).indexOf(p)>=0?(a(18,L=!1),w(I[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(I[y[0].gameId]=y[0]),w(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${A}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),U=w.items.map(k=>k.id)})},fe=()=>{a(32,B=!0),a(19,q=l),a(20,A=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,k;const y=new Date(Date.now());return o.forEach((R,x)=>{const ye=new Date(R.schedules[0].startTime),W=new Date(R.schedules[0].endTime);H.hooks(W).diff(y)<w&&(w=H.hooks(W).diff(y),k=x),H.hooks(y).isAfter(ye)&&H.hooks(y).isBefore(W)&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},O=()=>{a(12,v=""),a(13,C=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),X(D)},Y=()=>{a(12,v=""),_.focus()},X=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function be(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const we=()=>Y(),ve=()=>O();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{G=o,a(14,G)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"clientstyling"in o&&a(2,m=o.clientstyling),"clientstylingurl"in o&&a(3,h=o.clientstylingurl),"integratedgameframedesktop"in o&&a(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(5,S=o.integratedgameframemobile),"showgamename"in o&&a(6,d=o.showgamename),"gamepagemodalurl"in o&&a(7,g=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(8,j=o.showfavorites),"cancelbutton"in o&&a(9,z=o.cancelbutton),"notfoundicon"in o&&a(10,P=o.notfoundicon),"mbsource"in o&&a(11,E=o.mbsource)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),he(o).then(p=>{Ce.dispatchCustomEvent("game_search",{searchValue:v}),a(15,b=p.items.map(w=>(w.isFavorite=Z(w.id),w)))})}else C||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&256|n.$$.dirty[1]&2&&j&&B&&me(),n.$$.dirty[0]&16388&&m&&G&&e.setClientStyling(G,m),n.$$.dirty[0]&16392&&h&&G&&e.setClientStylingURL(G,h),n.$$.dirty[0]&18432&&G&&e.setStreamStyling(G,`${E}.Style`)},[s,u,m,h,f,S,d,g,j,z,P,E,v,C,G,b,_,D,L,q,A,r,N,J,ue,ge,O,Y,i,l,c,T,B,Se,be,we,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,ze,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Fe,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=ie;