@everymatrix/casino-search 1.77.6 → 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,11 +1,27 @@
1
- import { a as He, $ as We, S as Ue, i as Ve, f as L, s as Je, c as Ze, b as Ye, n as ue, d as j, r as Xe, e as g, g as he, h as E, j as b, l as Y, k as C, m as z, o as de, p as ae, q as Ke, t as Qe, u as $e, v as q, w as H, x as me, y as fe, z as et, A as Le, B as u, C as tt, D as at, E as nt, F as rt } from "./CasinoGameThumbnail-CwGrVNIN.js";
2
- function ge(t, e) {
3
- He(t, e);
1
+ var ue = (t, e, a) => new Promise((n, r) => {
2
+ var l = (c) => {
3
+ try {
4
+ i(a.next(c));
5
+ } catch (m) {
6
+ r(m);
7
+ }
8
+ }, s = (c) => {
9
+ try {
10
+ i(a.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((a = a.apply(t, e)).next());
16
+ });
17
+ import { a as Ue, $ as Ve, S as Je, i as Ze, f as L, s as Ye, c as Xe, b as Ke, n as he, d as j, r as Qe, e as g, g as de, h as E, j as b, l as U, k, m as z, o as me, p as ae, q as $e, t as et, u as q, v as H, w as fe, x as ge, y as tt, z as Te, A as u, B as at, C as nt, D as rt, E as ot } from "./CasinoGameThumbnail-CVh85MEQ.js";
18
+ function pe(t, e) {
19
+ Ue(t, e);
4
20
  }
5
- function ot(t) {
6
- We.set(t);
21
+ function st(t) {
22
+ Ve.set(t);
7
23
  }
8
- const pe = {
24
+ const Se = {
9
25
  en: {
10
26
  recentSearch: "Recent search",
11
27
  placeHolderSearchGames: "Search for Games",
@@ -187,6 +203,10 @@ const pe = {
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
+ }, lt = (t, e) => function(...a) {
207
+ clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
208
+ t.apply(this, a);
209
+ }, e);
190
210
  };
191
211
  if (typeof window != "undefined") {
192
212
  let t = function(e) {
@@ -200,7 +220,7 @@ if (typeof window != "undefined") {
200
220
  }
201
221
  };
202
222
  };
203
- customElements.define = t(customElements.define), import("./CasinoGameThumbnail-CwGrVNIN.js").then((e) => e.G).then(({ default: e }) => {
223
+ customElements.define = t(customElements.define), import("./CasinoGameThumbnail-CVh85MEQ.js").then((e) => e.F).then(({ default: e }) => {
204
224
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
205
225
  });
206
226
  }
@@ -216,87 +236,87 @@ function ee(t, e) {
216
236
  if (e.length < t)
217
237
  throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present");
218
238
  }
219
- function U(t) {
239
+ function V(t) {
220
240
  ee(1, arguments);
221
241
  var e = Object.prototype.toString.call(t);
222
242
  return t instanceof Date || ne(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
223
243
  }
224
- function Se(t, e) {
225
- return ee(2, arguments), U(t).getTime() - U(e).getTime();
244
+ function be(t, e) {
245
+ return ee(2, arguments), V(t).getTime() - V(e).getTime();
226
246
  }
227
- function st(t, e) {
247
+ function it(t, e) {
228
248
  ee(2, arguments);
229
- var a = U(t), n = U(e);
249
+ var a = V(t), n = V(e);
230
250
  return a.getTime() > n.getTime();
231
251
  }
232
- function lt(t, e) {
252
+ function ct(t, e) {
233
253
  ee(2, arguments);
234
- var a = U(t), n = U(e);
254
+ var a = V(t), n = V(e);
235
255
  return a.getTime() < n.getTime();
236
256
  }
237
- function it(t) {
238
- Ye(t, "svelte-nijkoq", "*,*::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 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;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: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 .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}");
257
+ function ut(t) {
258
+ Ke(t, "svelte-nijkoq", "*,*::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 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;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: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 .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}");
239
259
  }
240
- function be(t, e, a) {
260
+ function _e(t, e, a) {
241
261
  const n = t.slice();
242
- return n[53] = e[a], n;
262
+ return n[55] = e[a], n;
243
263
  }
244
- function _e(t) {
264
+ function we(t) {
245
265
  let e, a = (
246
266
  /*$_*/
247
267
  t[21]("cancel") + ""
248
268
  ), n, r, l, s;
249
269
  return {
250
270
  c() {
251
- e = C("small"), n = H(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
252
- (t[13] ? "NotVisible" : ""));
271
+ e = k("small"), n = H(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
272
+ (t[16] ? "NotVisible" : ""));
253
273
  },
254
274
  m(i, c) {
255
- E(i, e, c), b(e, n), l || (s = Y(
275
+ E(i, e, c), b(e, n), l || (s = U(
256
276
  e,
257
277
  "click",
258
278
  /*click_handler_1*/
259
- t[36]
279
+ t[37]
260
280
  ), l = !0);
261
281
  },
262
282
  p(i, c) {
263
283
  c[0] & /*$_*/
264
284
  2097152 && a !== (a = /*$_*/
265
285
  i[21]("cancel") + "") && q(n, a), c[0] & /*searchCancelled*/
266
- 8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
267
- (i[13] ? "NotVisible" : "")) && g(e, "class", r);
286
+ 65536 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
287
+ (i[16] ? "NotVisible" : "")) && g(e, "class", r);
268
288
  },
269
289
  d(i) {
270
290
  i && j(e), l = !1, s();
271
291
  }
272
292
  };
273
293
  }
274
- function ct(t) {
294
+ function ht(t) {
275
295
  let e, a, n, r;
276
296
  function l(h, f) {
277
297
  if (
278
298
  /*searchActive*/
279
299
  h[17] == !0 && /*searchValue*/
280
- h[12].length < 2
300
+ h[14].length < 2
281
301
  )
282
- return dt;
302
+ return ft;
283
303
  if (
284
304
  /*searchArray*/
285
- h[15].length != 0
305
+ h[13].length != 0
286
306
  )
287
- return ht;
307
+ return mt;
288
308
  }
289
309
  let s = l(t), i = s && s(t), c = (
290
310
  /*searchCancelled*/
291
- t[13] === !1 && ke(t)
311
+ t[16] === !1 && Ce(t)
292
312
  ), m = (
293
313
  /*searchValue*/
294
- t[12].length >= 2 && /*searchArray*/
295
- t[15].length == 0 && Re(t)
314
+ t[14].length >= 2 && /*searchArray*/
315
+ t[13].length == 0 && Fe(t)
296
316
  );
297
317
  return {
298
318
  c() {
299
- i && i.c(), e = z(), a = C("div"), c && c.c(), n = z(), m && m.c(), g(a, "class", r = "SearchResultsContainer " + /*searchActive*/
319
+ i && i.c(), e = z(), a = k("div"), c && c.c(), n = z(), m && m.c(), g(a, "class", r = "SearchResultsContainer " + /*searchActive*/
300
320
  (t[17] == !0 ? "" : "NotVisible"));
301
321
  },
302
322
  m(h, f) {
@@ -304,9 +324,9 @@ function ct(t) {
304
324
  },
305
325
  p(h, f) {
306
326
  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*/
307
- h[13] === !1 ? c ? c.p(h, f) : (c = ke(h), c.c(), c.m(a, n)) : c && (c.d(1), c = null), /*searchValue*/
308
- h[12].length >= 2 && /*searchArray*/
309
- h[15].length == 0 ? m ? m.p(h, f) : (m = Re(h), m.c(), m.m(a, null)) : m && (m.d(1), m = null), f[0] & /*searchActive*/
327
+ h[16] === !1 ? c ? c.p(h, f) : (c = Ce(h), c.c(), c.m(a, n)) : c && (c.d(1), c = null), /*searchValue*/
328
+ h[14].length >= 2 && /*searchArray*/
329
+ h[13].length == 0 ? m ? m.p(h, f) : (m = Fe(h), m.c(), m.m(a, null)) : m && (m.d(1), m = null), f[0] & /*searchActive*/
310
330
  131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
311
331
  (h[17] == !0 ? "" : "NotVisible")) && g(a, "class", r);
312
332
  },
@@ -315,14 +335,14 @@ function ct(t) {
315
335
  }
316
336
  };
317
337
  }
318
- function ut(t) {
338
+ function dt(t) {
319
339
  let e, a = (
320
340
  /*$_*/
321
341
  t[21]("loading") + ""
322
342
  ), n;
323
343
  return {
324
344
  c() {
325
- e = C("p"), n = H(a), g(e, "class", "LoadingContent");
345
+ e = k("p"), n = H(a), g(e, "class", "LoadingContent");
326
346
  },
327
347
  m(r, l) {
328
348
  E(r, e, l), b(e, n);
@@ -337,14 +357,14 @@ function ut(t) {
337
357
  }
338
358
  };
339
359
  }
340
- function ht(t) {
360
+ function mt(t) {
341
361
  let e, a = (
342
362
  /*$_*/
343
363
  t[21]("searchResult") + ""
344
364
  ), n;
345
365
  return {
346
366
  c() {
347
- e = C("p"), n = H(a), g(e, "class", "SearchMessage");
367
+ e = k("p"), n = H(a), g(e, "class", "SearchMessage");
348
368
  },
349
369
  m(r, l) {
350
370
  E(r, e, l), b(e, n);
@@ -359,39 +379,39 @@ function ht(t) {
359
379
  }
360
380
  };
361
381
  }
362
- function dt(t) {
382
+ function ft(t) {
363
383
  let e, a, n = (
364
384
  /*searchArray*/
365
- t[15].length !== 0 && we(t)
385
+ t[13].length !== 0 && ye(t)
366
386
  ), r = (
367
387
  /*searchArray*/
368
- t[15].length == 0 && ve(t)
388
+ t[13].length == 0 && ve(t)
369
389
  );
370
390
  return {
371
391
  c() {
372
- n && n.c(), e = z(), r && r.c(), a = Le();
392
+ n && n.c(), e = z(), r && r.c(), a = Te();
373
393
  },
374
394
  m(l, s) {
375
395
  n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, a, s);
376
396
  },
377
397
  p(l, s) {
378
398
  /*searchArray*/
379
- l[15].length !== 0 ? n ? n.p(l, s) : (n = we(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
380
- l[15].length == 0 ? r ? r.p(l, s) : (r = ve(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
399
+ l[13].length !== 0 ? n ? n.p(l, s) : (n = ye(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
400
+ l[13].length == 0 ? r ? r.p(l, s) : (r = ve(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
381
401
  },
382
402
  d(l) {
383
403
  l && (j(e), j(a)), n && n.d(l), r && r.d(l);
384
404
  }
385
405
  };
386
406
  }
387
- function we(t) {
407
+ function ye(t) {
388
408
  let e, a = (
389
409
  /*$_*/
390
410
  t[21]("recentSearch") + ""
391
411
  ), n;
392
412
  return {
393
413
  c() {
394
- e = C("p"), n = H(a), g(e, "class", "SearchMessage");
414
+ e = k("p"), n = H(a), g(e, "class", "SearchMessage");
395
415
  },
396
416
  m(r, l) {
397
417
  E(r, e, l), b(e, n);
@@ -412,11 +432,11 @@ function ve(t) {
412
432
  t[21]("noRecentSearches") + ""
413
433
  ), l, s, i = (
414
434
  /*notfoundicon*/
415
- t[10] === "true" && ye()
435
+ t[10] === "true" && ke()
416
436
  );
417
437
  return {
418
438
  c() {
419
- e = C("div"), i && i.c(), a = z(), n = C("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
439
+ e = k("div"), i && i.c(), a = z(), n = k("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
420
440
  (t[10] == "true" ? "WithIcon" : ""));
421
441
  },
422
442
  m(c, m) {
@@ -424,7 +444,7 @@ function ve(t) {
424
444
  },
425
445
  p(c, m) {
426
446
  /*notfoundicon*/
427
- c[10] === "true" ? i || (i = ye(), i.c(), i.m(e, a)) : i && (i.d(1), i = null), m[0] & /*$_*/
447
+ c[10] === "true" ? i || (i = ke(), i.c(), i.m(e, a)) : i && (i.d(1), i = null), m[0] & /*$_*/
428
448
  2097152 && r !== (r = /*$_*/
429
449
  c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
430
450
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
@@ -435,11 +455,11 @@ function ve(t) {
435
455
  }
436
456
  };
437
457
  }
438
- function ye(t) {
458
+ function ke(t) {
439
459
  let e;
440
460
  return {
441
461
  c() {
442
- e = C("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>', g(e, "class", "SearchErrorIcon");
462
+ e = k("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>', g(e, "class", "SearchErrorIcon");
443
463
  },
444
464
  m(a, n) {
445
465
  E(a, e, n);
@@ -449,18 +469,18 @@ function ye(t) {
449
469
  }
450
470
  };
451
471
  }
452
- function ke(t) {
453
- let e, a = fe(
472
+ function Ce(t) {
473
+ let e, a = ge(
454
474
  /*searchArray*/
455
- t[15]
475
+ t[13]
456
476
  ), n = [];
457
477
  for (let r = 0; r < a.length; r += 1)
458
- n[r] = Ce(be(t, a, r));
478
+ n[r] = Re(_e(t, a, r));
459
479
  return {
460
480
  c() {
461
481
  for (let r = 0; r < n.length; r += 1)
462
482
  n[r].c();
463
- e = Le();
483
+ e = Te();
464
484
  },
465
485
  m(r, l) {
466
486
  for (let s = 0; s < n.length; s += 1)
@@ -469,15 +489,15 @@ function ke(t) {
469
489
  },
470
490
  p(r, l) {
471
491
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
472
- 35162623) {
473
- a = fe(
492
+ 35138047) {
493
+ a = ge(
474
494
  /*searchArray*/
475
- r[15]
495
+ r[13]
476
496
  );
477
497
  let s;
478
498
  for (s = 0; s < a.length; s += 1) {
479
- const i = be(r, a, s);
480
- n[s] ? n[s].p(i, l) : (n[s] = Ce(i), n[s].c(), n[s].m(e.parentNode, e));
499
+ const i = _e(r, a, s);
500
+ n[s] ? n[s].p(i, l) : (n[s] = Re(i), n[s].c(), n[s].m(e.parentNode, e));
481
501
  }
482
502
  for (; s < n.length; s += 1)
483
503
  n[s].d(1);
@@ -485,16 +505,16 @@ function ke(t) {
485
505
  }
486
506
  },
487
507
  d(r) {
488
- r && j(e), et(n, r);
508
+ r && j(e), tt(n, r);
489
509
  }
490
510
  };
491
511
  }
492
- function Ce(t) {
512
+ function Re(t) {
493
513
  let e, a, n, r, l, s, i, c, m, h, f, w;
494
514
  return {
495
515
  c() {
496
516
  var d;
497
- e = C("casino-game-thumbnail"), u(
517
+ e = k("casino-game-thumbnail"), u(
498
518
  e,
499
519
  "endpoint",
500
520
  /*endpoint*/
@@ -520,28 +540,28 @@ function Ce(t) {
520
540
  /*lang*/
521
541
  t[1]
522
542
  ), u(e, "gamethumbnail", a = /*game*/
523
- t[53].thumbnail), u(e, "gamename", n = /*game*/
524
- t[53].name), u(e, "gamevendor", r = /*game*/
525
- t[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
526
- t[53].launchUrl), u(e, "gameisnew", s = /*game*/
527
- t[53].isNew), u(e, "gametag", i = /*game*/
528
- ((d = t[53].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
543
+ t[55].thumbnail), u(e, "gamename", n = /*game*/
544
+ t[55].name), u(e, "gamevendor", r = /*game*/
545
+ t[55].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
546
+ t[55].launchUrl), u(e, "gameisnew", s = /*game*/
547
+ t[55].isNew), u(e, "gametag", i = /*game*/
548
+ ((d = t[55].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
529
549
  t[25](
530
550
  /*game*/
531
- t[53].advancedTags
551
+ t[55].advancedTags
532
552
  )), u(e, "gamecellsize", c = /*game*/
533
- t[53].cellSize), u(e, "gameid", m = /*game*/
534
- t[53].id), u(
553
+ t[55].cellSize), u(e, "gameid", m = /*game*/
554
+ t[55].id), u(
535
555
  e,
536
556
  "showgamename",
537
557
  /*showgamename*/
538
558
  t[6]
539
559
  ), u(e, "gamefunmode", h = /*game*/
540
- t[53].hasFunMode), u(e, "gamefavorite", f = /*game*/
541
- t[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
542
- t[53].details ? (
560
+ t[55].hasFunMode), u(e, "gamefavorite", f = /*game*/
561
+ t[55].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
562
+ t[55].details ? (
543
563
  /*game*/
544
- t[53].launchUrl
564
+ t[55].launchUrl
545
565
  ) : ""), u(
546
566
  e,
547
567
  "integratedgameframedesktop",
@@ -610,40 +630,40 @@ function Ce(t) {
610
630
  /*lang*/
611
631
  d[1]
612
632
  ), p[0] & /*searchArray*/
613
- 32768 && a !== (a = /*game*/
614
- d[53].thumbnail) && u(e, "gamethumbnail", a), p[0] & /*searchArray*/
615
- 32768 && n !== (n = /*game*/
616
- d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
617
- 32768 && r !== (r = /*game*/
618
- d[53].vendor.displayName) && u(e, "gamevendor", r), p[0] & /*searchArray*/
619
- 32768 && l !== (l = /*game*/
620
- d[53].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
621
- 32768 && s !== (s = /*game*/
622
- d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
623
- 32768 && i !== (i = /*game*/
624
- ((N = d[53].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
633
+ 8192 && a !== (a = /*game*/
634
+ d[55].thumbnail) && u(e, "gamethumbnail", a), p[0] & /*searchArray*/
635
+ 8192 && n !== (n = /*game*/
636
+ d[55].name) && u(e, "gamename", n), p[0] & /*searchArray*/
637
+ 8192 && r !== (r = /*game*/
638
+ d[55].vendor.displayName) && u(e, "gamevendor", r), p[0] & /*searchArray*/
639
+ 8192 && l !== (l = /*game*/
640
+ d[55].launchUrl) && u(e, "gameLaunchUrl", l), p[0] & /*searchArray*/
641
+ 8192 && s !== (s = /*game*/
642
+ d[55].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
643
+ 8192 && i !== (i = /*game*/
644
+ ((N = d[55].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
625
645
  d[25](
626
646
  /*game*/
627
- d[53].advancedTags
647
+ d[55].advancedTags
628
648
  )) && u(e, "gametag", i), p[0] & /*searchArray*/
629
- 32768 && c !== (c = /*game*/
630
- d[53].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
631
- 32768 && m !== (m = /*game*/
632
- d[53].id) && u(e, "gameid", m), p[0] & /*showgamename*/
649
+ 8192 && c !== (c = /*game*/
650
+ d[55].cellSize) && u(e, "gamecellsize", c), p[0] & /*searchArray*/
651
+ 8192 && m !== (m = /*game*/
652
+ d[55].id) && u(e, "gameid", m), p[0] & /*showgamename*/
633
653
  64 && u(
634
654
  e,
635
655
  "showgamename",
636
656
  /*showgamename*/
637
657
  d[6]
638
658
  ), p[0] & /*searchArray*/
639
- 32768 && h !== (h = /*game*/
640
- d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
641
- 32768 && f !== (f = /*game*/
642
- d[53].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
643
- 32768 && w !== (w = /*game*/
644
- d[53].details ? (
659
+ 8192 && h !== (h = /*game*/
660
+ d[55].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
661
+ 8192 && f !== (f = /*game*/
662
+ d[55].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
663
+ 8192 && w !== (w = /*game*/
664
+ d[55].details ? (
645
665
  /*game*/
646
- d[53].launchUrl
666
+ d[55].launchUrl
647
667
  ) : "") && u(e, "livelobbyendpoint", w), p[0] & /*integratedgameframedesktop*/
648
668
  16 && u(
649
669
  e,
@@ -687,7 +707,7 @@ function Ce(t) {
687
707
  }
688
708
  };
689
709
  }
690
- function Re(t) {
710
+ function Fe(t) {
691
711
  let e, a, n, r = (
692
712
  /*$_*/
693
713
  t[21]("notFound") + ""
@@ -696,11 +716,11 @@ function Re(t) {
696
716
  t[21]("notFoundText") + ""
697
717
  ), m, h, f = (
698
718
  /*notfoundicon*/
699
- t[10] === "true" && Fe()
719
+ t[10] === "true" && Le()
700
720
  );
701
721
  return {
702
722
  c() {
703
- e = C("div"), f && f.c(), a = z(), n = C("p"), l = H(r), s = z(), i = C("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
723
+ e = k("div"), f && f.c(), a = z(), n = k("p"), l = H(r), s = z(), i = k("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
704
724
  (t[10] == "true" ? "WithIcon" : ""));
705
725
  },
706
726
  m(w, d) {
@@ -708,7 +728,7 @@ function Re(t) {
708
728
  },
709
729
  p(w, d) {
710
730
  /*notfoundicon*/
711
- w[10] === "true" ? f || (f = Fe(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
731
+ w[10] === "true" ? f || (f = Le(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
712
732
  2097152 && r !== (r = /*$_*/
713
733
  w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
714
734
  2097152 && c !== (c = /*$_*/
@@ -721,11 +741,11 @@ function Re(t) {
721
741
  }
722
742
  };
723
743
  }
724
- function Fe(t) {
744
+ function Le(t) {
725
745
  let e;
726
746
  return {
727
747
  c() {
728
- e = C("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>', g(e, "class", "SearchErrorIcon");
748
+ e = k("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>', g(e, "class", "SearchErrorIcon");
729
749
  },
730
750
  m(a, n) {
731
751
  E(a, e, n);
@@ -735,55 +755,61 @@ function Fe(t) {
735
755
  }
736
756
  };
737
757
  }
738
- function mt(t) {
739
- let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, P, M, V, A, W, v = (
758
+ function gt(t) {
759
+ let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, P, M, J, A, W, y = (
740
760
  /*cancelbutton*/
741
- t[9] === "true" && _e(t)
761
+ t[9] === "true" && we(t)
742
762
  );
743
- function G(_, T) {
763
+ function I(_, T) {
744
764
  return (
745
765
  /*isLoading*/
746
- _[18] ? ut : ct
766
+ _[18] ? dt : ht
747
767
  );
748
768
  }
749
- let B = G(t), k = B(t);
769
+ let B = I(t), C = B(t);
750
770
  return {
751
771
  c() {
752
- e = C("div"), a = C("div"), n = C("div"), r = C("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 = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), f = de("path"), d = z(), v && v.c(), N = z(), P = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
753
- t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), 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", w = "SearchClearButton " + /*cancelbutton*/
772
+ e = k("div"), a = k("div"), n = k("div"), r = k("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 = z(), s = k("input"), c = z(), m = k("span"), h = me("svg"), f = me("path"), d = z(), y && y.c(), N = z(), P = k("div"), J = z(), C.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
773
+ t[21]("placeHolderSearchGames")), g(s, "maxlength", pt), 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", w = "SearchClearButton " + /*cancelbutton*/
754
774
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
755
- (t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
756
- (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(P, "class", M = /*cancelbutton*/
775
+ (t[14].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
776
+ (t[16] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(P, "class", M = /*cancelbutton*/
757
777
  t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
758
778
  /*userAgent*/
759
779
  t[22]
760
780
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
761
781
  },
762
782
  m(_, T) {
763
- E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
783
+ E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), de(
764
784
  s,
765
785
  /*searchValue*/
766
- t[12]
767
- ), t[34](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), v && v.m(n, null), b(e, N), b(e, P), b(e, V), k.m(e, null), t[37](e), A || (W = [
768
- Y(
786
+ t[14]
787
+ ), t[35](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), y && y.m(n, null), b(e, N), b(e, P), b(e, J), C.m(e, null), t[38](e), A || (W = [
788
+ U(
769
789
  s,
770
790
  "input",
771
791
  /*input_input_handler*/
772
- t[33]
792
+ t[34]
773
793
  ),
774
- Y(
794
+ U(
775
795
  s,
776
796
  "focus",
777
797
  /*onFocus*/
778
798
  t[23]
779
799
  ),
780
- Y(
800
+ U(
801
+ s,
802
+ "input",
803
+ /*handleSearchInput*/
804
+ t[28]
805
+ ),
806
+ U(
781
807
  m,
782
808
  "click",
783
809
  /*click_handler*/
784
- t[35]
810
+ t[36]
785
811
  ),
786
- Y(
812
+ U(
787
813
  P,
788
814
  "click",
789
815
  /*handleOverlay*/
@@ -795,114 +821,114 @@ function mt(t) {
795
821
  T[0] & /*$_*/
796
822
  2097152 && i !== (i = /*$_*/
797
823
  _[21]("placeHolderSearchGames")) && g(s, "placeholder", i), T[0] & /*searchValue*/
798
- 4096 && s.value !== /*searchValue*/
799
- _[12] && he(
824
+ 16384 && s.value !== /*searchValue*/
825
+ _[14] && de(
800
826
  s,
801
827
  /*searchValue*/
802
- _[12]
828
+ _[14]
803
829
  ), T[0] & /*cancelbutton, searchValue*/
804
- 4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
830
+ 16896 && w !== (w = "SearchClearButton " + /*cancelbutton*/
805
831
  (_[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
806
- (_[12].length != 0 ? "" : "NotVisible")) && g(m, "class", w), /*cancelbutton*/
807
- _[9] === "true" ? v ? v.p(_, T) : (v = _e(_), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
808
- 8192 && p !== (p = "Search " + /*searchCancelled*/
809
- (_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
832
+ (_[14].length != 0 ? "" : "NotVisible")) && g(m, "class", w), /*cancelbutton*/
833
+ _[9] === "true" ? y ? y.p(_, T) : (y = we(_), y.c(), y.m(n, null)) : y && (y.d(1), y = null), T[0] & /*searchCancelled*/
834
+ 65536 && p !== (p = "Search " + /*searchCancelled*/
835
+ (_[16] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
810
836
  512 && M !== (M = /*cancelbutton*/
811
- _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = G(_)) && k ? k.p(_, T) : (k.d(1), k = B(_), k && (k.c(), k.m(e, null)));
837
+ _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = I(_)) && C ? C.p(_, T) : (C.d(1), C = B(_), C && (C.c(), C.m(e, null)));
812
838
  },
813
- i: ue,
814
- o: ue,
839
+ i: he,
840
+ o: he,
815
841
  d(_) {
816
- _ && j(e), t[34](null), v && v.d(), k.d(), t[37](null), A = !1, Xe(W);
842
+ _ && j(e), t[35](null), y && y.d(), C.d(), t[38](null), A = !1, Qe(W);
817
843
  }
818
844
  };
819
845
  }
820
- let ft = 50;
821
- function gt(t, e, a) {
846
+ let pt = 50;
847
+ function St(t, e, a) {
822
848
  let n;
823
- Ke(t, tt, (o) => a(21, n = o));
824
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", _, T = !0, J = !1, I = !1, x, X = !1, K, Q, re = [];
825
- const Te = () => {
849
+ $e(t, at, (o) => a(21, n = o));
850
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, y = [], I = [], B = {}, C = "", _, T = !0, Z = !1, G = !1, x, X = !1, K, Q, re = [];
851
+ const je = () => {
826
852
  fetch(N).then((S) => S.json()).then((S) => {
827
- Object.keys(S).forEach((y) => {
828
- ge(y, S[y]);
853
+ Object.keys(S).forEach((v) => {
854
+ pe(v, S[v]);
829
855
  });
830
856
  }).catch((S) => {
831
857
  console.log(S);
832
858
  });
833
859
  };
834
- Object.keys(pe).forEach((o) => {
835
- ge(o, pe[o]);
860
+ Object.keys(Se).forEach((o) => {
861
+ pe(o, Se[o]);
836
862
  });
837
863
  const oe = (o) => {
838
- o.data && o.data.type == "SearchedItemClicked" && Ne(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(32, X = !0)), o.data.type == "CategoryChange" && $();
864
+ o.data && o.data.type == "SearchedItemClicked" && Pe(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(33, X = !0)), o.data.type == "CategoryChange" && $();
839
865
  }, se = () => {
840
- if (a(13, T = !1), a(17, J = !0), r && l && c && k.length < 2) {
841
- a(15, v = []);
866
+ if (a(16, T = !1), a(17, Z = !0), r && l && c && C.length < 2) {
867
+ a(13, y = []);
842
868
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
843
869
  o && (S = o.split(","));
844
- let y = [], R = 0, F = S.length;
870
+ let v = [], R = 0, F = S.length;
845
871
  if (F > 0) {
846
872
  for (R = 0; R < F; R++) {
847
873
  let D = new URL(`${r}/v1/casino/games/${S[R]}`);
848
- D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), y.push(De(D, S[R]));
874
+ D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), v.push(Ie(D, S[R]));
849
875
  }
850
- Promise.all(y).then((D) => {
876
+ Promise.all(v).then((D) => {
851
877
  D = D.filter(function(O) {
852
878
  return !!O;
853
- }), a(15, v = D.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
879
+ }), a(13, y = D.map((O) => (O.isFavorite = le(O.id), O))), y.length ? Y("searchSuccess", "SearchWidget") : Y("searchFail", "SearchWidget");
854
880
  }).catch((D) => {
855
- Z("searchError", "SearchWidget");
881
+ Y("searchError", "SearchWidget");
856
882
  });
857
883
  }
858
884
  }
859
- ce(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
860
- }, Z = (o, S) => {
885
+ ce(Z), Y("searchAttempt", "SearchWidget"), Y("SearchInitialized", "SearchWidget");
886
+ }, Y = (o, S) => {
861
887
  typeof gtag == "function" && gtag("event", o, { context: S });
862
- }, je = () => {
888
+ }, Ee = () => {
863
889
  M != "true" && $();
864
- }, Ee = (o) => new Promise((S, y) => {
865
- a(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
866
- a(18, I = !1), S(R);
890
+ }, De = (o) => new Promise((S, v) => {
891
+ a(18, G = !0), fetch(o.href).then((R) => R.json()).then((R) => {
892
+ a(18, G = !1), S(R);
867
893
  }).catch((R) => {
868
- a(18, I = !1), console.error(R), y(R);
894
+ a(18, G = !1), console.error(R), v(R);
869
895
  });
870
- }), De = (o, S) => new Promise((y, R) => {
871
- a(18, I = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, I = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
872
- a(18, I = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
896
+ }), Ie = (o, S) => new Promise((v, R) => {
897
+ a(18, G = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, G = !1), v(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
898
+ a(18, G = !1), F.error || (B[F[0].gameId] = F[0]), v(F[0]);
873
899
  }).catch((F) => {
874
- a(18, I = !1), console.error(F), R(F);
900
+ a(18, G = !1), console.error(F), R(F);
875
901
  });
876
902
  }), Ge = () => {
877
903
  const o = new URL(`${r}/v1/player/${Q}/favorites/`);
878
- a(18, I = !0);
904
+ a(18, G = !0);
879
905
  let S = {
880
906
  method: "GET",
881
907
  headers: { "X-SessionID": K }
882
908
  };
883
- fetch(o.href, S).then((y) => y.json()).then((y) => {
884
- a(18, I = !1), re = y.items.map((R) => R.id);
909
+ fetch(o.href, S).then((v) => v.json()).then((v) => {
910
+ a(18, G = !1), re = v.items.map((R) => R.id);
885
911
  });
886
- }, Ie = () => {
887
- a(32, X = !0), a(19, K = s), a(20, Q = i);
888
- }, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
912
+ }, ze = () => {
913
+ a(33, X = !0), a(19, K = s), a(20, Q = i);
914
+ }, le = (o) => re.findIndex((S) => S == o) !== -1, Ne = (o) => {
889
915
  if ((o == null ? void 0 : o.length) === 0)
890
916
  return "";
891
- let S, y = 99999999999, R;
917
+ let S, v = 99999999999, R;
892
918
  const F = new Date(Date.now());
893
919
  return o.forEach((D, O) => {
894
- const qe = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
895
- Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), R = O), st(new Date(F), new Date(qe)) && lt(new Date(F), new Date(te)) && (S = o[R].name);
920
+ const We = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
921
+ be(new Date(te), new Date(F)) < v && (v = be(new Date(te), new Date(F)), R = O), it(new Date(F), new Date(We)) && ct(new Date(F), new Date(te)) && (S = o[R].name);
896
922
  }), S;
897
- }, Ne = (o) => {
898
- if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
923
+ }, Pe = (o) => {
924
+ if (I = localStorage.getItem("searchedGamesWds_casino"), I ? I = I.split(",") : I = [], I.indexOf(o) === -1) {
899
925
  let S;
900
- G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
926
+ I.unshift(o), S = I.join(","), localStorage.setItem("searchedGamesWds_casino", S);
901
927
  }
902
928
  }, $ = () => {
903
- a(12, k = ""), a(13, T = !0), a(18, I = !1), a(15, v = []), a(17, J = !1), ce(J);
929
+ a(14, C = ""), a(16, T = !0), a(18, G = !1), a(13, y = []), a(17, Z = !1), ce(Z);
904
930
  }, ie = () => {
905
- a(12, k = ""), _.focus();
931
+ a(14, C = ""), _.focus();
906
932
  }, ce = (o) => {
907
933
  window.postMessage(
908
934
  {
@@ -911,47 +937,47 @@ function gt(t, e, a) {
911
937
  },
912
938
  window.location.href
913
939
  );
914
- }, Pe = () => {
915
- ot(c);
916
- };
917
- Qe(() => (window.addEventListener("message", oe, !1), () => {
940
+ }, xe = () => {
941
+ st(c);
942
+ }, Me = lt(() => ue(this, null, function* () {
943
+ if (C.length >= 2) {
944
+ const o = new URL(`${r}/v1/casino/games`);
945
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${C}`), De(o).then((S) => {
946
+ a(13, y = S.items.map((v) => (v.isFavorite = le(v.id), v)));
947
+ });
948
+ } else
949
+ T || se();
950
+ }), 500);
951
+ et(() => (window.addEventListener("message", oe, !1), () => {
918
952
  window.removeEventListener("message", oe);
919
953
  }));
920
- function xe() {
921
- k = this.value, a(12, k);
954
+ function Be() {
955
+ C = this.value, a(14, C);
922
956
  }
923
- function Me(o) {
924
- me[o ? "unshift" : "push"](() => {
925
- _ = o, a(16, _);
957
+ function Ae(o) {
958
+ fe[o ? "unshift" : "push"](() => {
959
+ _ = o, a(15, _);
926
960
  });
927
961
  }
928
- const Be = () => ie(), Ae = () => $();
929
- function Oe(o) {
930
- me[o ? "unshift" : "push"](() => {
931
- x = o, a(14, x);
962
+ const Oe = () => ie(), qe = () => $();
963
+ function He(o) {
964
+ fe[o ? "unshift" : "push"](() => {
965
+ x = o, a(12, x);
932
966
  });
933
967
  }
934
968
  return t.$$set = (o) => {
935
- "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = 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, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, N = o.translationurl), "showfavorites" in o && a(8, P = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
969
+ "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(29, l = o.datasource), "session" in o && a(30, s = o.session), "userid" in o && a(31, i = o.userid), "lang" in o && a(1, c = 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, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(32, N = o.translationurl), "showfavorites" in o && a(8, P = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, J = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
936
970
  }, t.$$.update = () => {
937
- if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
938
- 268447747)
939
- if (k.length >= 2) {
940
- const o = new URL(`${r}/v1/casino/games`);
941
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Ee(o).then((S) => {
942
- $e("game_search", { searchValue: k }), a(15, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
943
- });
944
- } else
945
- T || se();
946
971
  t.$$.dirty[0] & /*lang*/
947
- 2 && c && Pe(), t.$$.dirty[1] & /*translationurl*/
948
- 1 && N && Te(), t.$$.dirty[0] & /*session, userid*/
949
- 1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
972
+ 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
973
+ 2 && N && je(), t.$$.dirty[0] & /*session*/
974
+ 1073741824 | t.$$.dirty[1] & /*userid*/
975
+ 1 && s && i && ze(), t.$$.dirty[0] & /*showfavorites*/
950
976
  256 | t.$$.dirty[1] & /*isLoggedIn*/
951
- 2 && P && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
952
- 16388 && m && x && at(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
953
- 16392 && h && x && nt(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
954
- 18432 && x && rt(x, `${A}.Style`);
977
+ 4 && P && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
978
+ 4100 && m && x && nt(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
979
+ 4104 && h && x && rt(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
980
+ 6144 && x && ot(x, `${A}.Style`);
955
981
  }, [
956
982
  r,
957
983
  c,
@@ -963,49 +989,50 @@ function gt(t, e, a) {
963
989
  p,
964
990
  P,
965
991
  M,
966
- V,
992
+ J,
967
993
  A,
968
- k,
969
- T,
970
994
  x,
971
- v,
995
+ y,
996
+ C,
972
997
  _,
973
- J,
974
- I,
998
+ T,
999
+ Z,
1000
+ G,
975
1001
  K,
976
1002
  Q,
977
1003
  n,
978
1004
  W,
979
1005
  se,
980
- je,
981
- ze,
1006
+ Ee,
1007
+ Ne,
982
1008
  $,
983
1009
  ie,
1010
+ Me,
984
1011
  l,
985
1012
  s,
986
1013
  i,
987
1014
  N,
988
1015
  X,
989
- xe,
990
- Me,
991
1016
  Be,
992
1017
  Ae,
993
- Oe
1018
+ Oe,
1019
+ qe,
1020
+ He
994
1021
  ];
995
1022
  }
996
- class pt extends Ue {
1023
+ class bt extends Je {
997
1024
  constructor(e) {
998
- super(), Ve(
1025
+ super(), Ze(
999
1026
  this,
1000
1027
  e,
1028
+ St,
1001
1029
  gt,
1002
- mt,
1003
- Je,
1030
+ Ye,
1004
1031
  {
1005
1032
  endpoint: 0,
1006
- datasource: 28,
1007
- session: 29,
1008
- userid: 30,
1033
+ datasource: 29,
1034
+ session: 30,
1035
+ userid: 31,
1009
1036
  lang: 1,
1010
1037
  clientstyling: 2,
1011
1038
  clientstylingurl: 3,
@@ -1013,13 +1040,13 @@ class pt extends Ue {
1013
1040
  integratedgameframemobile: 5,
1014
1041
  showgamename: 6,
1015
1042
  gamepagemodalurl: 7,
1016
- translationurl: 31,
1043
+ translationurl: 32,
1017
1044
  showfavorites: 8,
1018
1045
  cancelbutton: 9,
1019
1046
  notfoundicon: 10,
1020
1047
  mbsource: 11
1021
1048
  },
1022
- it,
1049
+ ut,
1023
1050
  [-1, -1]
1024
1051
  );
1025
1052
  }
@@ -1030,19 +1057,19 @@ class pt extends Ue {
1030
1057
  this.$$set({ endpoint: e }), L();
1031
1058
  }
1032
1059
  get datasource() {
1033
- return this.$$.ctx[28];
1060
+ return this.$$.ctx[29];
1034
1061
  }
1035
1062
  set datasource(e) {
1036
1063
  this.$$set({ datasource: e }), L();
1037
1064
  }
1038
1065
  get session() {
1039
- return this.$$.ctx[29];
1066
+ return this.$$.ctx[30];
1040
1067
  }
1041
1068
  set session(e) {
1042
1069
  this.$$set({ session: e }), L();
1043
1070
  }
1044
1071
  get userid() {
1045
- return this.$$.ctx[30];
1072
+ return this.$$.ctx[31];
1046
1073
  }
1047
1074
  set userid(e) {
1048
1075
  this.$$set({ userid: e }), L();
@@ -1090,7 +1117,7 @@ class pt extends Ue {
1090
1117
  this.$$set({ gamepagemodalurl: e }), L();
1091
1118
  }
1092
1119
  get translationurl() {
1093
- return this.$$.ctx[31];
1120
+ return this.$$.ctx[32];
1094
1121
  }
1095
1122
  set translationurl(e) {
1096
1123
  this.$$set({ translationurl: e }), L();
@@ -1120,7 +1147,7 @@ class pt extends Ue {
1120
1147
  this.$$set({ mbsource: e }), L();
1121
1148
  }
1122
1149
  }
1123
- Ze(pt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1150
+ Xe(bt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1124
1151
  export {
1125
- pt as default
1152
+ bt as default
1126
1153
  };