@everymatrix/casino-search-nd 1.77.7 → 1.77.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { a as Be, $ as He, c as qe, S as We, i as Oe, s as Ue, f as L, b as Ve, n as le, d as E, r as Je, e as f, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as B, v as H, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-DjVoy2Yg.js";
1
+ import { a as He, $ as qe, c as We, S as Oe, i as Ue, s as Ve, f as L, b as Je, n as le, d as E, r as Ze, e as f, g as ie, h as I, j as S, l as U, k as y, m as D, o as ce, p as ee, q as Ye, t as Ke, u as B, v as H, w as ue, x as Xe, y as Qe, z as he, A as de, B as $e, C as Re, D as u, E as et, F as tt, G as at, H as nt } from "./CasinoGameThumbnailNd-DjVoy2Yg.js";
2
2
  function me(a, e) {
3
- Be(a, e);
3
+ He(a, e);
4
4
  }
5
- function nt(a) {
6
- He.set(a);
5
+ function rt(a) {
6
+ qe.set(a);
7
7
  }
8
8
  const ge = {
9
9
  en: {
@@ -187,6 +187,10 @@ const ge = {
187
187
  notFoundText: "Please type the correct name of the game to start to play.",
188
188
  noRecentSearches: "No recent searches yet. Search for any of our games."
189
189
  }
190
+ }, ot = (a, e) => function(...t) {
191
+ clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
192
+ a.apply(this, t);
193
+ }, e);
190
194
  };
191
195
  if (typeof window < "u") {
192
196
  let a = function(e) {
@@ -204,12 +208,12 @@ if (typeof window < "u") {
204
208
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
205
209
  });
206
210
  }
207
- function rt(a) {
208
- Ve(a, "svelte-1vt65d9", "*,*::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:10px 10px;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;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px 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 .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}");
211
+ function st(a) {
212
+ Je(a, "svelte-1vt65d9", "*,*::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:10px 10px;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;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px 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 .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}");
209
213
  }
210
214
  function fe(a, e, t) {
211
215
  const n = a.slice();
212
- return n[53] = e[t], n;
216
+ return n[55] = e[t], n;
213
217
  }
214
218
  function pe(a) {
215
219
  let e, t = (
@@ -219,50 +223,50 @@ function pe(a) {
219
223
  return {
220
224
  c() {
221
225
  e = y("small"), n = H(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
222
- (a[13] ? "NotVisible" : ""));
226
+ (a[16] ? "NotVisible" : ""));
223
227
  },
224
228
  m(i, c) {
225
- I(i, e, c), S(e, n), l || (s = Z(
229
+ I(i, e, c), S(e, n), l || (s = U(
226
230
  e,
227
231
  "click",
228
232
  /*click_handler_1*/
229
- a[36]
233
+ a[37]
230
234
  ), l = !0);
231
235
  },
232
236
  p(i, c) {
233
237
  c[0] & /*$_*/
234
238
  2097152 && t !== (t = /*$_*/
235
239
  i[21]("cancel") + "") && B(n, t), c[0] & /*searchCancelled*/
236
- 8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
237
- (i[13] ? "NotVisible" : "")) && f(e, "class", r);
240
+ 65536 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
241
+ (i[16] ? "NotVisible" : "")) && f(e, "class", r);
238
242
  },
239
243
  d(i) {
240
244
  i && E(e), l = !1, s();
241
245
  }
242
246
  };
243
247
  }
244
- function ot(a) {
248
+ function lt(a) {
245
249
  let e, t, n, r;
246
250
  function l(h, m) {
247
251
  if (
248
252
  /*searchActive*/
249
253
  h[17] == !0 && /*searchValue*/
250
- h[12].length < 2
254
+ h[14].length < 2
251
255
  )
252
- return it;
256
+ return ut;
253
257
  if (
254
258
  /*searchArray*/
255
- h[15].length != 0
259
+ h[13].length != 0
256
260
  )
257
- return lt;
261
+ return ct;
258
262
  }
259
263
  let s = l(a), i = s && s(a), c = (
260
264
  /*searchCancelled*/
261
- a[13] === !1 && be(a)
265
+ a[16] === !1 && be(a)
262
266
  ), g = (
263
267
  /*searchValue*/
264
- a[12].length >= 2 && /*searchArray*/
265
- a[15].length == 0 && ke(a)
268
+ a[14].length >= 2 && /*searchArray*/
269
+ a[13].length == 0 && ke(a)
266
270
  );
267
271
  return {
268
272
  c() {
@@ -274,9 +278,9 @@ function ot(a) {
274
278
  },
275
279
  p(h, m) {
276
280
  s === (s = l(h)) && i ? i.p(h, m) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
277
- h[13] === !1 ? c ? c.p(h, m) : (c = be(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
278
- h[12].length >= 2 && /*searchArray*/
279
- h[15].length == 0 ? g ? g.p(h, m) : (g = ke(h), g.c(), g.m(t, null)) : g && (g.d(1), g = null), m[0] & /*searchActive*/
281
+ h[16] === !1 ? c ? c.p(h, m) : (c = be(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
282
+ h[14].length >= 2 && /*searchArray*/
283
+ h[13].length == 0 ? g ? g.p(h, m) : (g = ke(h), g.c(), g.m(t, null)) : g && (g.d(1), g = null), m[0] & /*searchActive*/
280
284
  131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
281
285
  (h[17] == !0 ? "" : "NotVisible")) && f(t, "class", r);
282
286
  },
@@ -285,7 +289,7 @@ function ot(a) {
285
289
  }
286
290
  };
287
291
  }
288
- function st(a) {
292
+ function it(a) {
289
293
  let e, t = (
290
294
  /*$_*/
291
295
  a[21]("loading") + ""
@@ -307,7 +311,7 @@ function st(a) {
307
311
  }
308
312
  };
309
313
  }
310
- function lt(a) {
314
+ function ct(a) {
311
315
  let e, t = (
312
316
  /*$_*/
313
317
  a[21]("searchResult") + ""
@@ -329,13 +333,13 @@ function lt(a) {
329
333
  }
330
334
  };
331
335
  }
332
- function it(a) {
336
+ function ut(a) {
333
337
  let e, t, n = (
334
338
  /*searchArray*/
335
- a[15].length !== 0 && _e(a)
339
+ a[13].length !== 0 && _e(a)
336
340
  ), r = (
337
341
  /*searchArray*/
338
- a[15].length == 0 && Se(a)
342
+ a[13].length == 0 && Se(a)
339
343
  );
340
344
  return {
341
345
  c() {
@@ -346,8 +350,8 @@ function it(a) {
346
350
  },
347
351
  p(l, s) {
348
352
  /*searchArray*/
349
- l[15].length !== 0 ? n ? n.p(l, s) : (n = _e(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
350
- l[15].length == 0 ? r ? r.p(l, s) : (r = Se(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
353
+ l[13].length !== 0 ? n ? n.p(l, s) : (n = _e(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
354
+ l[13].length == 0 ? r ? r.p(l, s) : (r = Se(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
351
355
  },
352
356
  d(l) {
353
357
  l && (E(e), E(t)), n && n.d(l), r && r.d(l);
@@ -422,7 +426,7 @@ function we(a) {
422
426
  function be(a) {
423
427
  let e, t = de(
424
428
  /*searchArray*/
425
- a[15]
429
+ a[13]
426
430
  ), n = [];
427
431
  for (let r = 0; r < t.length; r += 1)
428
432
  n[r] = ve(fe(a, t, r));
@@ -439,10 +443,10 @@ function be(a) {
439
443
  },
440
444
  p(r, l) {
441
445
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
442
- 35161087) {
446
+ 35136511) {
443
447
  t = de(
444
448
  /*searchArray*/
445
- r[15]
449
+ r[13]
446
450
  );
447
451
  let s;
448
452
  for (s = 0; s < t.length; s += 1) {
@@ -455,7 +459,7 @@ function be(a) {
455
459
  }
456
460
  },
457
461
  d(r) {
458
- r && E(e), Qe(n, r);
462
+ r && E(e), $e(n, r);
459
463
  }
460
464
  };
461
465
  }
@@ -489,28 +493,28 @@ function ve(a) {
489
493
  /*lang*/
490
494
  a[1]
491
495
  ), u(e, "gamethumbnail", t = /*game*/
492
- a[53].thumbnail), u(e, "gamename", n = /*game*/
493
- a[53].name), u(e, "gamevendor", r = /*game*/
494
- a[53].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
495
- a[53].launchUrl), u(e, "gameisnew", s = /*game*/
496
- a[53].isNew), u(e, "gametag", i = /*game*/
497
- a[53].advancedTags?.length > 0 && /*addGameTag*/
496
+ a[55].thumbnail), u(e, "gamename", n = /*game*/
497
+ a[55].name), u(e, "gamevendor", r = /*game*/
498
+ a[55].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
499
+ a[55].launchUrl), u(e, "gameisnew", s = /*game*/
500
+ a[55].isNew), u(e, "gametag", i = /*game*/
501
+ a[55].advancedTags?.length > 0 && /*addGameTag*/
498
502
  a[25](
499
503
  /*game*/
500
- a[53].advancedTags
504
+ a[55].advancedTags
501
505
  )), u(e, "gamecellsize", c = /*game*/
502
- a[53].cellSize), u(e, "gameid", g = /*game*/
503
- a[53].id), u(
506
+ a[55].cellSize), u(e, "gameid", g = /*game*/
507
+ a[55].id), u(
504
508
  e,
505
509
  "showgamename",
506
510
  /*showgamename*/
507
511
  a[7]
508
512
  ), u(e, "gamefunmode", h = /*game*/
509
- a[53].hasFunMode), u(e, "gamefavorite", m = /*game*/
510
- a[53].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
511
- a[53].details ? (
513
+ a[55].hasFunMode), u(e, "gamefavorite", m = /*game*/
514
+ a[55].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
515
+ a[55].details ? (
512
516
  /*game*/
513
- a[53].launchUrl
517
+ a[55].launchUrl
514
518
  ) : ""), u(
515
519
  e,
516
520
  "integratedgameframedesktop",
@@ -578,40 +582,40 @@ function ve(a) {
578
582
  /*lang*/
579
583
  d[1]
580
584
  ), p[0] & /*searchArray*/
581
- 32768 && t !== (t = /*game*/
582
- d[53].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
583
- 32768 && n !== (n = /*game*/
584
- d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
585
- 32768 && r !== (r = /*game*/
586
- d[53].vendor.name) && u(e, "gamevendor", r), p[0] & /*searchArray*/
587
- 32768 && l !== (l = /*game*/
588
- d[53].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
589
- 32768 && s !== (s = /*game*/
590
- d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
591
- 32768 && i !== (i = /*game*/
592
- d[53].advancedTags?.length > 0 && /*addGameTag*/
585
+ 8192 && t !== (t = /*game*/
586
+ d[55].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
587
+ 8192 && n !== (n = /*game*/
588
+ d[55].name) && u(e, "gamename", n), p[0] & /*searchArray*/
589
+ 8192 && r !== (r = /*game*/
590
+ d[55].vendor.name) && u(e, "gamevendor", r), p[0] & /*searchArray*/
591
+ 8192 && l !== (l = /*game*/
592
+ d[55].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
593
+ 8192 && s !== (s = /*game*/
594
+ d[55].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
595
+ 8192 && i !== (i = /*game*/
596
+ d[55].advancedTags?.length > 0 && /*addGameTag*/
593
597
  d[25](
594
598
  /*game*/
595
- d[53].advancedTags
599
+ d[55].advancedTags
596
600
  )) && u(e, "gametag", i), p[0] & /*searchArray*/
597
- 32768 && c !== (c = /*game*/
598
- d[53].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
599
- 32768 && g !== (g = /*game*/
600
- d[53].id) && u(e, "gameid", g), p[0] & /*showgamename*/
601
+ 8192 && c !== (c = /*game*/
602
+ d[55].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
603
+ 8192 && g !== (g = /*game*/
604
+ d[55].id) && u(e, "gameid", g), p[0] & /*showgamename*/
601
605
  128 && u(
602
606
  e,
603
607
  "showgamename",
604
608
  /*showgamename*/
605
609
  d[7]
606
610
  ), p[0] & /*searchArray*/
607
- 32768 && h !== (h = /*game*/
608
- d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
609
- 32768 && m !== (m = /*game*/
610
- d[53].isFavorite) && u(e, "gamefavorite", m), p[0] & /*searchArray*/
611
- 32768 && b !== (b = /*game*/
612
- d[53].details ? (
611
+ 8192 && h !== (h = /*game*/
612
+ d[55].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
613
+ 8192 && m !== (m = /*game*/
614
+ d[55].isFavorite) && u(e, "gamefavorite", m), p[0] & /*searchArray*/
615
+ 8192 && b !== (b = /*game*/
616
+ d[55].details ? (
613
617
  /*game*/
614
- d[53].launchUrl
618
+ d[55].launchUrl
615
619
  ) : "") && u(e, "livelobbyendpoint", b), p[0] & /*integratedgameframedesktop*/
616
620
  32 && u(
617
621
  e,
@@ -703,25 +707,25 @@ function ye(a) {
703
707
  }
704
708
  };
705
709
  }
706
- function ct(a) {
707
- let e, t, n, r, l, s, i, c, g, h, m, b, d, p, U, N, M, q, W, O, v = (
710
+ function ht(a) {
711
+ let e, t, n, r, l, s, i, c, g, h, m, b, d, p, V, N, M, q, W, O, v = (
708
712
  /*cancelbutton*/
709
713
  a[10] === "true" && pe(a)
710
714
  );
711
715
  function G(w, T) {
712
716
  return (
713
717
  /*isLoading*/
714
- w[18] ? st : ot
718
+ w[18] ? it : lt
715
719
  );
716
720
  }
717
721
  let x = G(a), R = x(a);
718
722
  return {
719
723
  c() {
720
- 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="#FFF" 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="#FFF" stroke-width="1.5"></circle></svg>', l = D(), s = y("input"), c = D(), g = y("span"), h = ce("svg"), m = ce("path"), d = D(), v && v.c(), U = D(), N = y("div"), q = D(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
721
- a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "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(g, "class", b = "SearchClearButton " + /*cancelbutton*/
724
+ 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="#FFF" 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="#FFF" stroke-width="1.5"></circle></svg>', l = D(), s = y("input"), c = D(), g = y("span"), h = ce("svg"), m = ce("path"), d = D(), v && v.c(), V = D(), N = y("div"), q = D(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
725
+ a[21]("placeHolderSearchGames")), f(s, "maxlength", dt), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "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(g, "class", b = "SearchClearButton " + /*cancelbutton*/
722
726
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
723
- (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
724
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", M = /*cancelbutton*/
727
+ (a[14].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
728
+ (a[16] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", M = /*cancelbutton*/
725
729
  a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
726
730
  /*userAgent*/
727
731
  a[22]
@@ -731,27 +735,33 @@ function ct(a) {
731
735
  I(w, e, T), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
732
736
  s,
733
737
  /*searchValue*/
734
- a[12]
735
- ), a[34](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, U), S(e, N), S(e, q), R.m(e, null), a[37](e), W || (O = [
736
- Z(
738
+ a[14]
739
+ ), a[35](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, V), S(e, N), S(e, q), R.m(e, null), a[38](e), W || (O = [
740
+ U(
737
741
  s,
738
742
  "input",
739
743
  /*input_input_handler*/
740
- a[33]
744
+ a[34]
741
745
  ),
742
- Z(
746
+ U(
743
747
  s,
744
748
  "focus",
745
749
  /*onFocus*/
746
750
  a[23]
747
751
  ),
748
- Z(
752
+ U(
753
+ s,
754
+ "input",
755
+ /*handleSearchInput*/
756
+ a[28]
757
+ ),
758
+ U(
749
759
  g,
750
760
  "click",
751
761
  /*click_handler*/
752
- a[35]
762
+ a[36]
753
763
  ),
754
- Z(
764
+ U(
755
765
  N,
756
766
  "click",
757
767
  /*handleOverlay*/
@@ -763,33 +773,33 @@ function ct(a) {
763
773
  T[0] & /*$_*/
764
774
  2097152 && i !== (i = /*$_*/
765
775
  w[21]("placeHolderSearchGames")) && f(s, "placeholder", i), T[0] & /*searchValue*/
766
- 4096 && s.value !== /*searchValue*/
767
- w[12] && ie(
776
+ 16384 && s.value !== /*searchValue*/
777
+ w[14] && ie(
768
778
  s,
769
779
  /*searchValue*/
770
- w[12]
780
+ w[14]
771
781
  ), T[0] & /*cancelbutton, searchValue*/
772
- 5120 && b !== (b = "SearchClearButton " + /*cancelbutton*/
782
+ 17408 && b !== (b = "SearchClearButton " + /*cancelbutton*/
773
783
  (w[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
774
- (w[12].length != 0 ? "" : "NotVisible")) && f(g, "class", b), /*cancelbutton*/
784
+ (w[14].length != 0 ? "" : "NotVisible")) && f(g, "class", b), /*cancelbutton*/
775
785
  w[10] === "true" ? v ? v.p(w, T) : (v = pe(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
776
- 8192 && p !== (p = "Search " + /*searchCancelled*/
777
- (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
786
+ 65536 && p !== (p = "Search " + /*searchCancelled*/
787
+ (w[16] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
778
788
  1024 && M !== (M = /*cancelbutton*/
779
789
  w[10] != "true" ? "OverlayCancel" : "") && f(N, "class", M), x === (x = G(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
780
790
  },
781
791
  i: le,
782
792
  o: le,
783
793
  d(w) {
784
- w && E(e), a[34](null), v && v.d(), R.d(), a[37](null), W = !1, Je(O);
794
+ w && E(e), a[35](null), v && v.d(), R.d(), a[38](null), W = !1, Ze(O);
785
795
  }
786
796
  };
787
797
  }
788
- let ut = 50;
789
- function ht(a, e, t) {
798
+ let dt = 50;
799
+ function mt(a, e, t) {
790
800
  let n;
791
- Ze(a, $e, (o) => t(21, n = o));
792
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: N = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], G = [], x = {}, R = "", w, T = !0, V = !1, z = !1, P, Y = !1, K, X, te = [];
801
+ Ye(a, et, (o) => t(21, n = o));
802
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: V = "true" } = e, { translationurl: N = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], G = [], x = {}, R = "", w, T = !0, J = !1, z = !1, P, Y = !1, K, X, te = [];
793
803
  const Ce = () => {
794
804
  fetch(N).then((_) => _.json()).then((_) => {
795
805
  Object.keys(_).forEach((k) => {
@@ -803,10 +813,10 @@ function ht(a, e, t) {
803
813
  me(o, ge[o]);
804
814
  });
805
815
  const ae = (o) => {
806
- o.data && o.data.type == "SearchedItemClicked" && Ge(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();
816
+ o.data && o.data.type == "SearchedItemClicked" && Ge(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(33, Y = !0)), o.data.type == "CategoryChange" && Q();
807
817
  }, ne = () => {
808
- if (t(13, T = !1), t(17, V = !0), r && l && c && R.length < 2) {
809
- t(15, v = []);
818
+ if (t(16, T = !1), t(17, J = !0), r && l && c && R.length < 2) {
819
+ t(13, v = []);
810
820
  let o = localStorage.getItem("searchedGamesWds_casino"), _ = [];
811
821
  o && (_ = o.split(","));
812
822
  let k = [], C = 0, F = _.length;
@@ -818,14 +828,14 @@ function ht(a, e, t) {
818
828
  Promise.all(k).then((j) => {
819
829
  j = j.filter(function(A) {
820
830
  return !!A;
821
- }), t(15, v = j.map((A) => (A.isFavorite = re(A.id), A))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
831
+ }), t(13, v = j.map((A) => (A.isFavorite = re(A.id), A))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
822
832
  }).catch((j) => {
823
- J("searchError", "SearchWidget");
833
+ Z("searchError", "SearchWidget");
824
834
  });
825
835
  }
826
836
  }
827
- se(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
828
- }, J = (o, _) => {
837
+ se(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
838
+ }, Z = (o, _) => {
829
839
  typeof gtag == "function" && gtag("event", o, { context: _ });
830
840
  }, Fe = () => {
831
841
  q != "true" && Q();
@@ -852,15 +862,15 @@ function ht(a, e, t) {
852
862
  t(18, z = !1), te = k.items.map((C) => C.id);
853
863
  });
854
864
  }, Ie = () => {
855
- t(32, Y = !0), t(19, K = s), t(20, X = i);
865
+ t(33, Y = !0), t(19, K = s), t(20, X = i);
856
866
  }, re = (o) => te.findIndex((_) => _ == o) !== -1, je = (o) => {
857
867
  if (o?.length === 0)
858
868
  return "";
859
869
  let _, k = 99999999999, C;
860
870
  const F = new Date(Date.now());
861
871
  return o.forEach((j, A) => {
862
- const Ae = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
863
- ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = A), Ke(new Date(F), new Date(Ae)) && Xe(new Date(F), new Date($)) && (_ = o[C].name);
872
+ const Be = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
873
+ ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = A), Xe(new Date(F), new Date(Be)) && Qe(new Date(F), new Date($)) && (_ = o[C].name);
864
874
  }), _;
865
875
  }, Ge = (o) => {
866
876
  if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
@@ -868,9 +878,9 @@ function ht(a, e, t) {
868
878
  G.unshift(o), _ = G.join(","), localStorage.setItem("searchedGamesWds_casino", _);
869
879
  }
870
880
  }, Q = () => {
871
- t(12, R = ""), t(13, T = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), se(V);
881
+ t(14, R = ""), t(16, T = !0), t(18, z = !1), t(13, v = []), t(17, J = !1), se(J);
872
882
  }, oe = () => {
873
- t(12, R = ""), w.focus();
883
+ t(14, R = ""), w.focus();
874
884
  }, se = (o) => {
875
885
  window.postMessage(
876
886
  {
@@ -880,46 +890,46 @@ function ht(a, e, t) {
880
890
  window.location.href
881
891
  );
882
892
  }, ze = () => {
883
- nt(c);
884
- };
885
- Ye(() => (window.addEventListener("message", ae, !1), () => {
893
+ rt(c);
894
+ }, De = ot(async () => {
895
+ if (R.length >= 2) {
896
+ const o = new URL(`${r}/v1/casino/games`);
897
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(O)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
898
+ t(13, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
899
+ });
900
+ } else
901
+ T || ne();
902
+ }, 500);
903
+ Ke(() => (window.addEventListener("message", ae, !1), () => {
886
904
  window.removeEventListener("message", ae);
887
905
  }));
888
- function De() {
889
- R = this.value, t(12, R);
906
+ function Ne() {
907
+ R = this.value, t(14, R);
890
908
  }
891
- function Ne(o) {
909
+ function Pe(o) {
892
910
  he[o ? "unshift" : "push"](() => {
893
- w = o, t(16, w);
911
+ w = o, t(15, w);
894
912
  });
895
913
  }
896
- const Pe = () => oe(), Me = () => Q();
897
- function xe(o) {
914
+ const Me = () => oe(), xe = () => Q();
915
+ function Ae(o) {
898
916
  he[o ? "unshift" : "push"](() => {
899
- P = o, t(14, P);
917
+ P = o, t(12, P);
900
918
  });
901
919
  }
902
920
  return a.$$set = (o) => {
903
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, U = o.gamepagemodalurl), "translationurl" in o && t(31, N = o.translationurl), "showfavorites" in o && t(9, M = o.showfavorites), "cancelbutton" in o && t(10, q = o.cancelbutton), "notfoundicon" in o && t(11, W = o.notfoundicon);
921
+ "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(29, l = o.datasource), "session" in o && t(30, s = o.session), "userid" in o && t(31, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, V = o.gamepagemodalurl), "translationurl" in o && t(32, N = o.translationurl), "showfavorites" in o && t(9, M = o.showfavorites), "cancelbutton" in o && t(10, q = o.cancelbutton), "notfoundicon" in o && t(11, W = o.notfoundicon);
904
922
  }, a.$$.update = () => {
905
- if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
906
- 268447747)
907
- if (R.length >= 2) {
908
- const o = new URL(`${r}/v1/casino/games`);
909
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(O)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
910
- t(15, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
911
- });
912
- } else
913
- T || ne();
914
923
  a.$$.dirty[0] & /*lang*/
915
924
  2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
916
- 1 && N && Ce(), a.$$.dirty[0] & /*session, userid*/
917
- 1610612736 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
925
+ 2 && N && Ce(), a.$$.dirty[0] & /*session*/
926
+ 1073741824 | a.$$.dirty[1] & /*userid*/
927
+ 1 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
918
928
  512 | a.$$.dirty[1] & /*isLoggedIn*/
919
- 2 && M && Y && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
- 16392 && h && P && et(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
- 16400 && m && P && tt(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
922
- 16388 && g && P && at(P, `${g}.Style`);
929
+ 4 && M && Y && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
930
+ 4104 && h && P && tt(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
931
+ 4112 && m && P && at(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
932
+ 4100 && g && P && nt(P, `${g}.Style`);
923
933
  }, [
924
934
  r,
925
935
  c,
@@ -929,16 +939,16 @@ function ht(a, e, t) {
929
939
  b,
930
940
  d,
931
941
  p,
932
- U,
942
+ V,
933
943
  M,
934
944
  q,
935
945
  W,
936
- R,
937
- T,
938
946
  P,
939
947
  v,
948
+ R,
940
949
  w,
941
- V,
950
+ T,
951
+ J,
942
952
  z,
943
953
  K,
944
954
  X,
@@ -949,31 +959,32 @@ function ht(a, e, t) {
949
959
  je,
950
960
  Q,
951
961
  oe,
962
+ De,
952
963
  l,
953
964
  s,
954
965
  i,
955
966
  N,
956
967
  Y,
957
- De,
958
968
  Ne,
959
969
  Pe,
960
970
  Me,
961
- xe
971
+ xe,
972
+ Ae
962
973
  ];
963
974
  }
964
- class dt extends We {
975
+ class gt extends Oe {
965
976
  constructor(e) {
966
- super(), Oe(
977
+ super(), Ue(
967
978
  this,
968
979
  e,
980
+ mt,
969
981
  ht,
970
- ct,
971
- Ue,
982
+ Ve,
972
983
  {
973
984
  endpoint: 0,
974
- datasource: 28,
975
- session: 29,
976
- userid: 30,
985
+ datasource: 29,
986
+ session: 30,
987
+ userid: 31,
977
988
  lang: 1,
978
989
  mbsource: 2,
979
990
  clientstyling: 3,
@@ -982,12 +993,12 @@ class dt extends We {
982
993
  integratedgameframemobile: 6,
983
994
  showgamename: 7,
984
995
  gamepagemodalurl: 8,
985
- translationurl: 31,
996
+ translationurl: 32,
986
997
  showfavorites: 9,
987
998
  cancelbutton: 10,
988
999
  notfoundicon: 11
989
1000
  },
990
- rt,
1001
+ st,
991
1002
  [-1, -1]
992
1003
  );
993
1004
  }
@@ -998,19 +1009,19 @@ class dt extends We {
998
1009
  this.$$set({ endpoint: e }), L();
999
1010
  }
1000
1011
  get datasource() {
1001
- return this.$$.ctx[28];
1012
+ return this.$$.ctx[29];
1002
1013
  }
1003
1014
  set datasource(e) {
1004
1015
  this.$$set({ datasource: e }), L();
1005
1016
  }
1006
1017
  get session() {
1007
- return this.$$.ctx[29];
1018
+ return this.$$.ctx[30];
1008
1019
  }
1009
1020
  set session(e) {
1010
1021
  this.$$set({ session: e }), L();
1011
1022
  }
1012
1023
  get userid() {
1013
- return this.$$.ctx[30];
1024
+ return this.$$.ctx[31];
1014
1025
  }
1015
1026
  set userid(e) {
1016
1027
  this.$$set({ userid: e }), L();
@@ -1064,7 +1075,7 @@ class dt extends We {
1064
1075
  this.$$set({ gamepagemodalurl: e }), L();
1065
1076
  }
1066
1077
  get translationurl() {
1067
- return this.$$.ctx[31];
1078
+ return this.$$.ctx[32];
1068
1079
  }
1069
1080
  set translationurl(e) {
1070
1081
  this.$$set({ translationurl: e }), L();
@@ -1088,7 +1099,7 @@ class dt extends We {
1088
1099
  this.$$set({ notfoundicon: e }), L();
1089
1100
  }
1090
1101
  }
1091
- qe(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1102
+ We(gt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1092
1103
  export {
1093
- dt as C
1104
+ gt as C
1094
1105
  };