@everymatrix/casino-search-nd 1.77.7 → 1.77.9

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,11 +1,27 @@
1
- import { a as Be, $ as He, S as qe, i as We, f as L, s as Oe, c as Ue, b as Ve, n as le, d as E, r as Je, e as g, 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 H, v as q, 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-BR_xotBc.js";
2
- function me(a, e) {
3
- Be(a, e);
1
+ var le = (a, e, t) => new Promise((n, r) => {
2
+ var l = (c) => {
3
+ try {
4
+ i(t.next(c));
5
+ } catch (m) {
6
+ r(m);
7
+ }
8
+ }, s = (c) => {
9
+ try {
10
+ i(t.throw(c));
11
+ } catch (m) {
12
+ r(m);
13
+ }
14
+ }, i = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(l, s);
15
+ i((t = t.apply(a, e)).next());
16
+ });
17
+ import { a as qe, $ as We, S as Oe, i as Ue, f as L, s as Ve, c as Je, b as Ze, n as ie, d as E, r as Ye, e as g, g as ce, h as I, j as S, l as V, k as y, m as D, o as ue, p as ee, q as Ke, t as Xe, u as H, v as q, w as he, x as Qe, y as $e, z as de, A as me, B as et, C as Ce, D as u, E as tt, F as at, G as nt, H as rt } from "./CasinoGameThumbnailNd-BR_xotBc.js";
18
+ function fe(a, e) {
19
+ qe(a, e);
4
20
  }
5
- function nt(a) {
6
- He.set(a);
21
+ function ot(a) {
22
+ We.set(a);
7
23
  }
8
- const fe = {
24
+ const ge = {
9
25
  en: {
10
26
  recentSearch: "Recent search",
11
27
  placeHolderSearchGames: "Search for Games",
@@ -187,6 +203,10 @@ const fe = {
187
203
  notFoundText: "Please type the correct name of the game to start to play.",
188
204
  noRecentSearches: "No recent searches yet. Search for any of our games."
189
205
  }
206
+ }, st = (a, e) => function(...t) {
207
+ clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
208
+ a.apply(this, t);
209
+ }, e);
190
210
  };
191
211
  if (typeof window != "undefined") {
192
212
  let a = function(e) {
@@ -204,14 +224,14 @@ if (typeof window != "undefined") {
204
224
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
205
225
  });
206
226
  }
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}");
227
+ function lt(a) {
228
+ Ze(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
229
  }
210
- function ge(a, e, t) {
230
+ function pe(a, e, t) {
211
231
  const n = a.slice();
212
- return n[53] = e[t], n;
232
+ return n[55] = e[t], n;
213
233
  }
214
- function pe(a) {
234
+ function _e(a) {
215
235
  let e, t = (
216
236
  /*$_*/
217
237
  a[21]("cancel") + ""
@@ -219,73 +239,73 @@ function pe(a) {
219
239
  return {
220
240
  c() {
221
241
  e = y("small"), n = q(t), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
222
- (a[13] ? "NotVisible" : ""));
242
+ (a[16] ? "NotVisible" : ""));
223
243
  },
224
244
  m(i, c) {
225
- I(i, e, c), S(e, n), l || (s = Z(
245
+ I(i, e, c), S(e, n), l || (s = V(
226
246
  e,
227
247
  "click",
228
248
  /*click_handler_1*/
229
- a[36]
249
+ a[37]
230
250
  ), l = !0);
231
251
  },
232
252
  p(i, c) {
233
253
  c[0] & /*$_*/
234
254
  2097152 && t !== (t = /*$_*/
235
255
  i[21]("cancel") + "") && H(n, t), c[0] & /*searchCancelled*/
236
- 8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
237
- (i[13] ? "NotVisible" : "")) && g(e, "class", r);
256
+ 65536 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
257
+ (i[16] ? "NotVisible" : "")) && g(e, "class", r);
238
258
  },
239
259
  d(i) {
240
260
  i && E(e), l = !1, s();
241
261
  }
242
262
  };
243
263
  }
244
- function ot(a) {
264
+ function it(a) {
245
265
  let e, t, n, r;
246
- function l(h, m) {
266
+ function l(h, f) {
247
267
  if (
248
268
  /*searchActive*/
249
269
  h[17] == !0 && /*searchValue*/
250
- h[12].length < 2
270
+ h[14].length < 2
251
271
  )
252
- return it;
272
+ return ht;
253
273
  if (
254
274
  /*searchArray*/
255
- h[15].length != 0
275
+ h[13].length != 0
256
276
  )
257
- return lt;
277
+ return ut;
258
278
  }
259
279
  let s = l(a), i = s && s(a), c = (
260
280
  /*searchCancelled*/
261
- a[13] === !1 && be(a)
262
- ), f = (
281
+ a[16] === !1 && ve(a)
282
+ ), m = (
263
283
  /*searchValue*/
264
- a[12].length >= 2 && /*searchArray*/
265
- a[15].length == 0 && ke(a)
284
+ a[14].length >= 2 && /*searchArray*/
285
+ a[13].length == 0 && ye(a)
266
286
  );
267
287
  return {
268
288
  c() {
269
- i && i.c(), e = D(), t = y("div"), c && c.c(), n = D(), f && f.c(), g(t, "class", r = "SearchResultsContainer " + /*searchActive*/
289
+ i && i.c(), e = D(), t = y("div"), c && c.c(), n = D(), m && m.c(), g(t, "class", r = "SearchResultsContainer " + /*searchActive*/
270
290
  (a[17] == !0 ? "" : "NotVisible"));
271
291
  },
272
- m(h, m) {
273
- i && i.m(h, m), I(h, e, m), I(h, t, m), c && c.m(t, null), S(t, n), f && f.m(t, null);
292
+ m(h, f) {
293
+ i && i.m(h, f), I(h, e, f), I(h, t, f), c && c.m(t, null), S(t, n), m && m.m(t, null);
274
294
  },
275
- p(h, m) {
276
- 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 ? f ? f.p(h, m) : (f = ke(h), f.c(), f.m(t, null)) : f && (f.d(1), f = null), m[0] & /*searchActive*/
295
+ p(h, f) {
296
+ s === (s = l(h)) && i ? i.p(h, f) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
297
+ h[16] === !1 ? c ? c.p(h, f) : (c = ve(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
298
+ h[14].length >= 2 && /*searchArray*/
299
+ h[13].length == 0 ? m ? m.p(h, f) : (m = ye(h), m.c(), m.m(t, null)) : m && (m.d(1), m = null), f[0] & /*searchActive*/
280
300
  131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
281
301
  (h[17] == !0 ? "" : "NotVisible")) && g(t, "class", r);
282
302
  },
283
303
  d(h) {
284
- h && (E(e), E(t)), i && i.d(h), c && c.d(), f && f.d();
304
+ h && (E(e), E(t)), i && i.d(h), c && c.d(), m && m.d();
285
305
  }
286
306
  };
287
307
  }
288
- function st(a) {
308
+ function ct(a) {
289
309
  let e, t = (
290
310
  /*$_*/
291
311
  a[21]("loading") + ""
@@ -307,7 +327,7 @@ function st(a) {
307
327
  }
308
328
  };
309
329
  }
310
- function lt(a) {
330
+ function ut(a) {
311
331
  let e, t = (
312
332
  /*$_*/
313
333
  a[21]("searchResult") + ""
@@ -329,32 +349,32 @@ function lt(a) {
329
349
  }
330
350
  };
331
351
  }
332
- function it(a) {
352
+ function ht(a) {
333
353
  let e, t, n = (
334
354
  /*searchArray*/
335
- a[15].length !== 0 && _e(a)
355
+ a[13].length !== 0 && Se(a)
336
356
  ), r = (
337
357
  /*searchArray*/
338
- a[15].length == 0 && Se(a)
358
+ a[13].length == 0 && we(a)
339
359
  );
340
360
  return {
341
361
  c() {
342
- n && n.c(), e = D(), r && r.c(), t = Re();
362
+ n && n.c(), e = D(), r && r.c(), t = Ce();
343
363
  },
344
364
  m(l, s) {
345
365
  n && n.m(l, s), I(l, e, s), r && r.m(l, s), I(l, t, s);
346
366
  },
347
367
  p(l, s) {
348
368
  /*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);
369
+ l[13].length !== 0 ? n ? n.p(l, s) : (n = Se(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
370
+ l[13].length == 0 ? r ? r.p(l, s) : (r = we(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
351
371
  },
352
372
  d(l) {
353
373
  l && (E(e), E(t)), n && n.d(l), r && r.d(l);
354
374
  }
355
375
  };
356
376
  }
357
- function _e(a) {
377
+ function Se(a) {
358
378
  let e, t = (
359
379
  /*$_*/
360
380
  a[21]("recentSearch") + ""
@@ -376,27 +396,27 @@ function _e(a) {
376
396
  }
377
397
  };
378
398
  }
379
- function Se(a) {
399
+ function we(a) {
380
400
  let e, t, n, r = (
381
401
  /*$_*/
382
402
  a[21]("noRecentSearches") + ""
383
403
  ), l, s, i = (
384
404
  /*notfoundicon*/
385
- a[11] === "true" && we()
405
+ a[11] === "true" && be()
386
406
  );
387
407
  return {
388
408
  c() {
389
409
  e = y("div"), i && i.c(), t = D(), n = y("p"), l = q(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
390
410
  (a[11] == "true" ? "WithIcon" : ""));
391
411
  },
392
- m(c, f) {
393
- I(c, e, f), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
412
+ m(c, m) {
413
+ I(c, e, m), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
394
414
  },
395
- p(c, f) {
415
+ p(c, m) {
396
416
  /*notfoundicon*/
397
- c[11] === "true" ? i || (i = we(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), f[0] & /*$_*/
417
+ c[11] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
398
418
  2097152 && r !== (r = /*$_*/
399
- c[21]("noRecentSearches") + "") && H(l, r), f[0] & /*notfoundicon*/
419
+ c[21]("noRecentSearches") + "") && H(l, r), m[0] & /*notfoundicon*/
400
420
  2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
401
421
  (c[11] == "true" ? "WithIcon" : "")) && g(e, "class", s);
402
422
  },
@@ -405,7 +425,7 @@ function Se(a) {
405
425
  }
406
426
  };
407
427
  }
408
- function we(a) {
428
+ function be(a) {
409
429
  let e;
410
430
  return {
411
431
  c() {
@@ -419,18 +439,18 @@ function we(a) {
419
439
  }
420
440
  };
421
441
  }
422
- function be(a) {
423
- let e, t = de(
442
+ function ve(a) {
443
+ let e, t = me(
424
444
  /*searchArray*/
425
- a[15]
445
+ a[13]
426
446
  ), n = [];
427
447
  for (let r = 0; r < t.length; r += 1)
428
- n[r] = ve(ge(a, t, r));
448
+ n[r] = ke(pe(a, t, r));
429
449
  return {
430
450
  c() {
431
451
  for (let r = 0; r < n.length; r += 1)
432
452
  n[r].c();
433
- e = Re();
453
+ e = Ce();
434
454
  },
435
455
  m(r, l) {
436
456
  for (let s = 0; s < n.length; s += 1)
@@ -439,15 +459,15 @@ function be(a) {
439
459
  },
440
460
  p(r, l) {
441
461
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
442
- 35161087) {
443
- t = de(
462
+ 35136511) {
463
+ t = me(
444
464
  /*searchArray*/
445
- r[15]
465
+ r[13]
446
466
  );
447
467
  let s;
448
468
  for (s = 0; s < t.length; s += 1) {
449
- const i = ge(r, t, s);
450
- n[s] ? n[s].p(i, l) : (n[s] = ve(i), n[s].c(), n[s].m(e.parentNode, e));
469
+ const i = pe(r, t, s);
470
+ n[s] ? n[s].p(i, l) : (n[s] = ke(i), n[s].c(), n[s].m(e.parentNode, e));
451
471
  }
452
472
  for (; s < n.length; s += 1)
453
473
  n[s].d(1);
@@ -455,12 +475,12 @@ function be(a) {
455
475
  }
456
476
  },
457
477
  d(r) {
458
- r && E(e), Qe(n, r);
478
+ r && E(e), et(n, r);
459
479
  }
460
480
  };
461
481
  }
462
- function ve(a) {
463
- let e, t, n, r, l, s, i, c, f, h, m, b;
482
+ function ke(a) {
483
+ let e, t, n, r, l, s, i, c, m, h, f, b;
464
484
  return {
465
485
  c() {
466
486
  var d;
@@ -490,28 +510,28 @@ function ve(a) {
490
510
  /*lang*/
491
511
  a[1]
492
512
  ), u(e, "gamethumbnail", t = /*game*/
493
- a[53].thumbnail), u(e, "gamename", n = /*game*/
494
- a[53].name), u(e, "gamevendor", r = /*game*/
495
- a[53].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
496
- a[53].launchUrl), u(e, "gameisnew", s = /*game*/
497
- a[53].isNew), u(e, "gametag", i = /*game*/
498
- ((d = a[53].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
513
+ a[55].thumbnail), u(e, "gamename", n = /*game*/
514
+ a[55].name), u(e, "gamevendor", r = /*game*/
515
+ a[55].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
516
+ a[55].launchUrl), u(e, "gameisnew", s = /*game*/
517
+ a[55].isNew), u(e, "gametag", i = /*game*/
518
+ ((d = a[55].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
499
519
  a[25](
500
520
  /*game*/
501
- a[53].advancedTags
521
+ a[55].advancedTags
502
522
  )), u(e, "gamecellsize", c = /*game*/
503
- a[53].cellSize), u(e, "gameid", f = /*game*/
504
- a[53].id), u(
523
+ a[55].cellSize), u(e, "gameid", m = /*game*/
524
+ a[55].id), u(
505
525
  e,
506
526
  "showgamename",
507
527
  /*showgamename*/
508
528
  a[7]
509
529
  ), u(e, "gamefunmode", h = /*game*/
510
- a[53].hasFunMode), u(e, "gamefavorite", m = /*game*/
511
- a[53].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
512
- a[53].details ? (
530
+ a[55].hasFunMode), u(e, "gamefavorite", f = /*game*/
531
+ a[55].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
532
+ a[55].details ? (
513
533
  /*game*/
514
- a[53].launchUrl
534
+ a[55].launchUrl
515
535
  ) : ""), u(
516
536
  e,
517
537
  "integratedgameframedesktop",
@@ -580,40 +600,40 @@ function ve(a) {
580
600
  /*lang*/
581
601
  d[1]
582
602
  ), p[0] & /*searchArray*/
583
- 32768 && t !== (t = /*game*/
584
- d[53].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
585
- 32768 && n !== (n = /*game*/
586
- d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
587
- 32768 && r !== (r = /*game*/
588
- d[53].vendor.name) && u(e, "gamevendor", r), p[0] & /*searchArray*/
589
- 32768 && l !== (l = /*game*/
590
- d[53].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
591
- 32768 && s !== (s = /*game*/
592
- d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
593
- 32768 && i !== (i = /*game*/
594
- ((M = d[53].advancedTags) == null ? void 0 : M.length) > 0 && /*addGameTag*/
603
+ 8192 && t !== (t = /*game*/
604
+ d[55].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
605
+ 8192 && n !== (n = /*game*/
606
+ d[55].name) && u(e, "gamename", n), p[0] & /*searchArray*/
607
+ 8192 && r !== (r = /*game*/
608
+ d[55].vendor.name) && u(e, "gamevendor", r), p[0] & /*searchArray*/
609
+ 8192 && l !== (l = /*game*/
610
+ d[55].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
611
+ 8192 && s !== (s = /*game*/
612
+ d[55].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
613
+ 8192 && i !== (i = /*game*/
614
+ ((M = d[55].advancedTags) == null ? void 0 : M.length) > 0 && /*addGameTag*/
595
615
  d[25](
596
616
  /*game*/
597
- d[53].advancedTags
617
+ d[55].advancedTags
598
618
  )) && u(e, "gametag", i), p[0] & /*searchArray*/
599
- 32768 && c !== (c = /*game*/
600
- d[53].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
601
- 32768 && f !== (f = /*game*/
602
- d[53].id) && u(e, "gameid", f), p[0] & /*showgamename*/
619
+ 8192 && c !== (c = /*game*/
620
+ d[55].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
621
+ 8192 && m !== (m = /*game*/
622
+ d[55].id) && u(e, "gameid", m), p[0] & /*showgamename*/
603
623
  128 && u(
604
624
  e,
605
625
  "showgamename",
606
626
  /*showgamename*/
607
627
  d[7]
608
628
  ), p[0] & /*searchArray*/
609
- 32768 && h !== (h = /*game*/
610
- d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
611
- 32768 && m !== (m = /*game*/
612
- d[53].isFavorite) && u(e, "gamefavorite", m), p[0] & /*searchArray*/
613
- 32768 && b !== (b = /*game*/
614
- d[53].details ? (
629
+ 8192 && h !== (h = /*game*/
630
+ d[55].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
631
+ 8192 && f !== (f = /*game*/
632
+ d[55].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
633
+ 8192 && b !== (b = /*game*/
634
+ d[55].details ? (
615
635
  /*game*/
616
- d[53].launchUrl
636
+ d[55].launchUrl
617
637
  ) : "") && u(e, "livelobbyendpoint", b), p[0] & /*integratedgameframedesktop*/
618
638
  32 && u(
619
639
  e,
@@ -657,41 +677,41 @@ function ve(a) {
657
677
  }
658
678
  };
659
679
  }
660
- function ke(a) {
680
+ function ye(a) {
661
681
  let e, t, n, r = (
662
682
  /*$_*/
663
683
  a[21]("notFound") + ""
664
684
  ), l, s, i, c = (
665
685
  /*$_*/
666
686
  a[21]("notFoundText") + ""
667
- ), f, h, m = (
687
+ ), m, h, f = (
668
688
  /*notfoundicon*/
669
- a[11] === "true" && ye()
689
+ a[11] === "true" && Re()
670
690
  );
671
691
  return {
672
692
  c() {
673
- e = y("div"), m && m.c(), t = D(), n = y("p"), l = q(r), s = D(), i = y("p"), f = q(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
693
+ e = y("div"), f && f.c(), t = D(), n = y("p"), l = q(r), s = D(), i = y("p"), m = q(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
674
694
  (a[11] == "true" ? "WithIcon" : ""));
675
695
  },
676
696
  m(b, d) {
677
- I(b, e, d), m && m.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, f);
697
+ I(b, e, d), f && f.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, m);
678
698
  },
679
699
  p(b, d) {
680
700
  /*notfoundicon*/
681
- b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
701
+ b[11] === "true" ? f || (f = Re(), f.c(), f.m(e, t)) : f && (f.d(1), f = null), d[0] & /*$_*/
682
702
  2097152 && r !== (r = /*$_*/
683
703
  b[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
684
704
  2097152 && c !== (c = /*$_*/
685
- b[21]("notFoundText") + "") && H(f, c), d[0] & /*notfoundicon*/
705
+ b[21]("notFoundText") + "") && H(m, c), d[0] & /*notfoundicon*/
686
706
  2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
687
707
  (b[11] == "true" ? "WithIcon" : "")) && g(e, "class", h);
688
708
  },
689
709
  d(b) {
690
- b && E(e), m && m.d();
710
+ b && E(e), f && f.d();
691
711
  }
692
712
  };
693
713
  }
694
- function ye(a) {
714
+ function Re(a) {
695
715
  let e;
696
716
  return {
697
717
  c() {
@@ -705,55 +725,61 @@ function ye(a) {
705
725
  }
706
726
  };
707
727
  }
708
- function ct(a) {
709
- let e, t, n, r, l, s, i, c, f, h, m, b, d, p, M, N, x, W, O, U, v = (
728
+ function dt(a) {
729
+ let e, t, n, r, l, s, i, c, m, h, f, b, d, p, M, N, x, W, O, U, v = (
710
730
  /*cancelbutton*/
711
- a[10] === "true" && pe(a)
731
+ a[10] === "true" && _e(a)
712
732
  );
713
733
  function G(w, T) {
714
734
  return (
715
735
  /*isLoading*/
716
- w[18] ? st : ot
736
+ w[18] ? ct : it
717
737
  );
718
738
  }
719
739
  let A = G(a), R = A(a);
720
740
  return {
721
741
  c() {
722
- 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(), f = y("span"), h = ce("svg"), m = ce("path"), d = D(), v && v.c(), M = D(), N = y("div"), W = D(), R.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
723
- a[21]("placeHolderSearchGames")), g(s, "maxlength", ut), g(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(m, "stroke", "#717171"), g(m, "stroke-width", "2"), g(m, "stroke-linecap", "round"), g(m, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(f, "class", b = "SearchClearButton " + /*cancelbutton*/
742
+ 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(), m = y("span"), h = ue("svg"), f = ue("path"), d = D(), v && v.c(), M = D(), N = y("div"), W = D(), R.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
743
+ a[21]("placeHolderSearchGames")), g(s, "maxlength", mt), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", b = "SearchClearButton " + /*cancelbutton*/
724
744
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
725
- (a[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
726
- (a[13] ? "" : "SearchAnimation")), g(t, "class", "SearchWrap"), g(N, "class", x = /*cancelbutton*/
745
+ (a[14].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
746
+ (a[16] ? "" : "SearchAnimation")), g(t, "class", "SearchWrap"), g(N, "class", x = /*cancelbutton*/
727
747
  a[10] != "true" ? "OverlayCancel" : ""), g(e, "class", (ee(
728
748
  /*userAgent*/
729
749
  a[22]
730
750
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
731
751
  },
732
752
  m(w, T) {
733
- I(w, e, T), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
753
+ I(w, e, T), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ce(
734
754
  s,
735
755
  /*searchValue*/
736
- a[12]
737
- ), a[34](s), S(n, c), S(n, f), S(f, h), S(h, m), S(n, d), v && v.m(n, null), S(e, M), S(e, N), S(e, W), R.m(e, null), a[37](e), O || (U = [
738
- Z(
756
+ a[14]
757
+ ), a[35](s), S(n, c), S(n, m), S(m, h), S(h, f), S(n, d), v && v.m(n, null), S(e, M), S(e, N), S(e, W), R.m(e, null), a[38](e), O || (U = [
758
+ V(
739
759
  s,
740
760
  "input",
741
761
  /*input_input_handler*/
742
- a[33]
762
+ a[34]
743
763
  ),
744
- Z(
764
+ V(
745
765
  s,
746
766
  "focus",
747
767
  /*onFocus*/
748
768
  a[23]
749
769
  ),
750
- Z(
751
- f,
770
+ V(
771
+ s,
772
+ "input",
773
+ /*handleSearchInput*/
774
+ a[28]
775
+ ),
776
+ V(
777
+ m,
752
778
  "click",
753
779
  /*click_handler*/
754
- a[35]
780
+ a[36]
755
781
  ),
756
- Z(
782
+ V(
757
783
  N,
758
784
  "click",
759
785
  /*handleOverlay*/
@@ -765,85 +791,85 @@ function ct(a) {
765
791
  T[0] & /*$_*/
766
792
  2097152 && i !== (i = /*$_*/
767
793
  w[21]("placeHolderSearchGames")) && g(s, "placeholder", i), T[0] & /*searchValue*/
768
- 4096 && s.value !== /*searchValue*/
769
- w[12] && ie(
794
+ 16384 && s.value !== /*searchValue*/
795
+ w[14] && ce(
770
796
  s,
771
797
  /*searchValue*/
772
- w[12]
798
+ w[14]
773
799
  ), T[0] & /*cancelbutton, searchValue*/
774
- 5120 && b !== (b = "SearchClearButton " + /*cancelbutton*/
800
+ 17408 && b !== (b = "SearchClearButton " + /*cancelbutton*/
775
801
  (w[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
776
- (w[12].length != 0 ? "" : "NotVisible")) && g(f, "class", b), /*cancelbutton*/
777
- 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*/
778
- 8192 && p !== (p = "Search " + /*searchCancelled*/
779
- (w[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
802
+ (w[14].length != 0 ? "" : "NotVisible")) && g(m, "class", b), /*cancelbutton*/
803
+ w[10] === "true" ? v ? v.p(w, T) : (v = _e(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
804
+ 65536 && p !== (p = "Search " + /*searchCancelled*/
805
+ (w[16] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
780
806
  1024 && x !== (x = /*cancelbutton*/
781
807
  w[10] != "true" ? "OverlayCancel" : "") && g(N, "class", x), A === (A = G(w)) && R ? R.p(w, T) : (R.d(1), R = A(w), R && (R.c(), R.m(e, null)));
782
808
  },
783
- i: le,
784
- o: le,
809
+ i: ie,
810
+ o: ie,
785
811
  d(w) {
786
- w && E(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Je(U);
812
+ w && E(e), a[35](null), v && v.d(), R.d(), a[38](null), O = !1, Ye(U);
787
813
  }
788
814
  };
789
815
  }
790
- let ut = 50;
791
- function ht(a, e, t) {
816
+ let mt = 50;
817
+ function ft(a, e, t) {
792
818
  let n;
793
- Ze(a, $e, (o) => t(21, n = o));
794
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: f } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: N = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], G = [], A = {}, R = "", w, T = !0, V = !1, z = !1, P, Y = !1, K, X, te = [];
795
- const Ce = () => {
819
+ Ke(a, tt, (o) => t(21, n = o));
820
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: m } = e, { clientstyling: h = "" } = e, { clientstylingurl: f = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: N = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], G = [], A = {}, R = "", w, T = !0, J = !1, z = !1, P, Y = !1, K, X, te = [];
821
+ const Fe = () => {
796
822
  fetch(N).then((_) => _.json()).then((_) => {
797
823
  Object.keys(_).forEach((k) => {
798
- me(k, _[k]);
824
+ fe(k, _[k]);
799
825
  });
800
826
  }).catch((_) => {
801
827
  console.log(_);
802
828
  });
803
829
  };
804
- Object.keys(fe).forEach((o) => {
805
- me(o, fe[o]);
830
+ Object.keys(ge).forEach((o) => {
831
+ fe(o, ge[o]);
806
832
  });
807
833
  const ae = (o) => {
808
- 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();
834
+ o.data && o.data.type == "SearchedItemClicked" && ze(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();
809
835
  }, ne = () => {
810
- if (t(13, T = !1), t(17, V = !0), r && l && c && R.length < 2) {
811
- t(15, v = []);
836
+ if (t(16, T = !1), t(17, J = !0), r && l && c && R.length < 2) {
837
+ t(13, v = []);
812
838
  let o = localStorage.getItem("searchedGamesWds_casino"), _ = [];
813
839
  o && (_ = o.split(","));
814
840
  let k = [], C = 0, F = _.length;
815
841
  if (F > 0) {
816
842
  for (C = 0; C < F; C++) {
817
843
  let j = new URL(`${r}/v1/casino/games/${_[C]}`);
818
- j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", ee(U)), k.push(Te(j, _[C]));
844
+ j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", ee(U)), k.push(Ee(j, _[C]));
819
845
  }
820
846
  Promise.all(k).then((j) => {
821
847
  j = j.filter(function(B) {
822
848
  return !!B;
823
- }), t(15, v = j.map((B) => (B.isFavorite = re(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
849
+ }), t(13, v = j.map((B) => (B.isFavorite = re(B.id), B))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
824
850
  }).catch((j) => {
825
- J("searchError", "SearchWidget");
851
+ Z("searchError", "SearchWidget");
826
852
  });
827
853
  }
828
854
  }
829
- se(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
830
- }, J = (o, _) => {
855
+ se(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
856
+ }, Z = (o, _) => {
831
857
  typeof gtag == "function" && gtag("event", o, { context: _ });
832
- }, Fe = () => {
858
+ }, Le = () => {
833
859
  W != "true" && Q();
834
- }, Le = (o) => new Promise((_, k) => {
860
+ }, Te = (o) => new Promise((_, k) => {
835
861
  t(18, z = !0), fetch(o.href).then((C) => C.json()).then((C) => {
836
862
  t(18, z = !1), _(C);
837
863
  }).catch((C) => {
838
864
  t(18, z = !1), console.error(C), k(C);
839
865
  });
840
- }), Te = (o, _) => new Promise((k, C) => {
866
+ }), Ee = (o, _) => new Promise((k, C) => {
841
867
  t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
842
868
  t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
843
869
  }).catch((F) => {
844
870
  t(18, z = !1), console.error(F), C(F);
845
871
  });
846
- }), Ee = () => {
872
+ }), Ie = () => {
847
873
  const o = new URL(`${r}/v1/player/${X}/favorites/`);
848
874
  t(18, z = !0);
849
875
  let _ = {
@@ -853,26 +879,26 @@ function ht(a, e, t) {
853
879
  fetch(o.href, _).then((k) => k.json()).then((k) => {
854
880
  t(18, z = !1), te = k.items.map((C) => C.id);
855
881
  });
856
- }, Ie = () => {
857
- t(32, Y = !0), t(19, K = s), t(20, X = i);
858
- }, re = (o) => te.findIndex((_) => _ == o) !== -1, je = (o) => {
882
+ }, je = () => {
883
+ t(33, Y = !0), t(19, K = s), t(20, X = i);
884
+ }, re = (o) => te.findIndex((_) => _ == o) !== -1, Ge = (o) => {
859
885
  if ((o == null ? void 0 : o.length) === 0)
860
886
  return "";
861
887
  let _, k = 99999999999, C;
862
888
  const F = new Date(Date.now());
863
889
  return o.forEach((j, B) => {
864
- const Ae = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
865
- ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = B), Ke(new Date(F), new Date(Ae)) && Xe(new Date(F), new Date($)) && (_ = o[C].name);
890
+ const He = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
891
+ he(new Date($), new Date(F)) < k && (k = he(new Date($), new Date(F)), C = B), Qe(new Date(F), new Date(He)) && $e(new Date(F), new Date($)) && (_ = o[C].name);
866
892
  }), _;
867
- }, Ge = (o) => {
893
+ }, ze = (o) => {
868
894
  if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
869
895
  let _;
870
896
  G.unshift(o), _ = G.join(","), localStorage.setItem("searchedGamesWds_casino", _);
871
897
  }
872
898
  }, Q = () => {
873
- t(12, R = ""), t(13, T = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), se(V);
899
+ t(14, R = ""), t(16, T = !0), t(18, z = !1), t(13, v = []), t(17, J = !1), se(J);
874
900
  }, oe = () => {
875
- t(12, R = ""), w.focus();
901
+ t(14, R = ""), w.focus();
876
902
  }, se = (o) => {
877
903
  window.postMessage(
878
904
  {
@@ -881,53 +907,53 @@ function ht(a, e, t) {
881
907
  },
882
908
  window.location.href
883
909
  );
884
- }, ze = () => {
885
- nt(c);
886
- };
887
- Ye(() => (window.addEventListener("message", ae, !1), () => {
910
+ }, De = () => {
911
+ ot(c);
912
+ }, Ne = st(() => le(this, null, function* () {
913
+ if (R.length >= 2) {
914
+ const o = new URL(`${r}/v1/casino/games`);
915
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(U)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Te(o).then((_) => {
916
+ t(13, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
917
+ });
918
+ } else
919
+ T || ne();
920
+ }), 500);
921
+ Xe(() => (window.addEventListener("message", ae, !1), () => {
888
922
  window.removeEventListener("message", ae);
889
923
  }));
890
- function De() {
891
- R = this.value, t(12, R);
924
+ function Pe() {
925
+ R = this.value, t(14, R);
892
926
  }
893
- function Ne(o) {
894
- he[o ? "unshift" : "push"](() => {
895
- w = o, t(16, w);
927
+ function Me(o) {
928
+ de[o ? "unshift" : "push"](() => {
929
+ w = o, t(15, w);
896
930
  });
897
931
  }
898
- const Pe = () => oe(), Me = () => Q();
899
- function xe(o) {
900
- he[o ? "unshift" : "push"](() => {
901
- P = o, t(14, P);
932
+ const xe = () => oe(), Ae = () => Q();
933
+ function Be(o) {
934
+ de[o ? "unshift" : "push"](() => {
935
+ P = o, t(12, P);
902
936
  });
903
937
  }
904
938
  return a.$$set = (o) => {
905
- "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, f = 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, M = o.gamepagemodalurl), "translationurl" in o && t(31, N = o.translationurl), "showfavorites" in o && t(9, x = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
939
+ "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, m = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, f = 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, M = o.gamepagemodalurl), "translationurl" in o && t(32, N = o.translationurl), "showfavorites" in o && t(9, x = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
906
940
  }, a.$$.update = () => {
907
- if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
908
- 268447747)
909
- if (R.length >= 2) {
910
- const o = new URL(`${r}/v1/casino/games`);
911
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(U)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
912
- t(15, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
913
- });
914
- } else
915
- T || ne();
916
941
  a.$$.dirty[0] & /*lang*/
917
- 2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
918
- 1 && N && Ce(), a.$$.dirty[0] & /*session, userid*/
919
- 1610612736 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
942
+ 2 && c && De(), a.$$.dirty[1] & /*translationurl*/
943
+ 2 && N && Fe(), a.$$.dirty[0] & /*session*/
944
+ 1073741824 | a.$$.dirty[1] & /*userid*/
945
+ 1 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
920
946
  512 | a.$$.dirty[1] & /*isLoggedIn*/
921
- 2 && x && Y && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
922
- 16392 && h && P && et(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
923
- 16400 && m && P && tt(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
924
- 16388 && f && P && at(P, `${f}.Style`);
947
+ 4 && x && Y && Ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
948
+ 4104 && h && P && at(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
949
+ 4112 && f && P && nt(P, f), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
950
+ 4100 && m && P && rt(P, `${m}.Style`);
925
951
  }, [
926
952
  r,
927
953
  c,
928
- f,
929
- h,
930
954
  m,
955
+ h,
956
+ f,
931
957
  b,
932
958
  d,
933
959
  p,
@@ -935,47 +961,48 @@ function ht(a, e, t) {
935
961
  x,
936
962
  W,
937
963
  O,
938
- R,
939
- T,
940
964
  P,
941
965
  v,
966
+ R,
942
967
  w,
943
- V,
968
+ T,
969
+ J,
944
970
  z,
945
971
  K,
946
972
  X,
947
973
  n,
948
974
  U,
949
975
  ne,
950
- Fe,
951
- je,
976
+ Le,
977
+ Ge,
952
978
  Q,
953
979
  oe,
980
+ Ne,
954
981
  l,
955
982
  s,
956
983
  i,
957
984
  N,
958
985
  Y,
959
- De,
960
- Ne,
961
986
  Pe,
962
987
  Me,
963
- xe
988
+ xe,
989
+ Ae,
990
+ Be
964
991
  ];
965
992
  }
966
- class dt extends qe {
993
+ class gt extends Oe {
967
994
  constructor(e) {
968
- super(), We(
995
+ super(), Ue(
969
996
  this,
970
997
  e,
971
- ht,
972
- ct,
973
- Oe,
998
+ ft,
999
+ dt,
1000
+ Ve,
974
1001
  {
975
1002
  endpoint: 0,
976
- datasource: 28,
977
- session: 29,
978
- userid: 30,
1003
+ datasource: 29,
1004
+ session: 30,
1005
+ userid: 31,
979
1006
  lang: 1,
980
1007
  mbsource: 2,
981
1008
  clientstyling: 3,
@@ -984,12 +1011,12 @@ class dt extends qe {
984
1011
  integratedgameframemobile: 6,
985
1012
  showgamename: 7,
986
1013
  gamepagemodalurl: 8,
987
- translationurl: 31,
1014
+ translationurl: 32,
988
1015
  showfavorites: 9,
989
1016
  cancelbutton: 10,
990
1017
  notfoundicon: 11
991
1018
  },
992
- rt,
1019
+ lt,
993
1020
  [-1, -1]
994
1021
  );
995
1022
  }
@@ -1000,19 +1027,19 @@ class dt extends qe {
1000
1027
  this.$$set({ endpoint: e }), L();
1001
1028
  }
1002
1029
  get datasource() {
1003
- return this.$$.ctx[28];
1030
+ return this.$$.ctx[29];
1004
1031
  }
1005
1032
  set datasource(e) {
1006
1033
  this.$$set({ datasource: e }), L();
1007
1034
  }
1008
1035
  get session() {
1009
- return this.$$.ctx[29];
1036
+ return this.$$.ctx[30];
1010
1037
  }
1011
1038
  set session(e) {
1012
1039
  this.$$set({ session: e }), L();
1013
1040
  }
1014
1041
  get userid() {
1015
- return this.$$.ctx[30];
1042
+ return this.$$.ctx[31];
1016
1043
  }
1017
1044
  set userid(e) {
1018
1045
  this.$$set({ userid: e }), L();
@@ -1066,7 +1093,7 @@ class dt extends qe {
1066
1093
  this.$$set({ gamepagemodalurl: e }), L();
1067
1094
  }
1068
1095
  get translationurl() {
1069
- return this.$$.ctx[31];
1096
+ return this.$$.ctx[32];
1070
1097
  }
1071
1098
  set translationurl(e) {
1072
1099
  this.$$set({ translationurl: e }), L();
@@ -1090,7 +1117,7 @@ class dt extends qe {
1090
1117
  this.$$set({ notfoundicon: e }), L();
1091
1118
  }
1092
1119
  }
1093
- Ue(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1120
+ Je(gt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1094
1121
  export {
1095
- dt as default
1122
+ gt as default
1096
1123
  };