@everymatrix/casino-search-nd 1.85.21 → 1.85.23

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,11 @@
1
- import { a as $e, $ as et, c as tt, S as at, i as nt, s as rt, f as C, b as ot, n as fe, d as I, r as st, e as f, g as pe, h as E, j as w, l as Y, k, m as D, o as Se, p as le, q as lt, t as it, u as x, v as H, w as _e, x as ct, y as ut, z as we, A as be, B as ht, C as Ge, D as u, E as dt, F as mt, G as gt, H as ft } from "./CasinoGameThumbnailNd-BiVK2l1I.js";
2
- function ve(a, e) {
1
+ import { a as $e, $ as et, c as tt, S as at, i as nt, s as rt, f as C, b as ot, n as pe, d as I, r as st, e as p, g as Se, h as E, j as w, l as Y, k, m as N, o as _e, p as ie, q as lt, t as it, u as ct, v as x, w as H, x as we, y as ut, z as ht, A as be, B as ve, C as dt, D as je, E as u, F as mt, G as gt, H as ft, I as pt } from "./CasinoGameThumbnailNd-CKbbtXF6.js";
2
+ function St(a, e) {
3
3
  $e(a, e);
4
4
  }
5
- function pt(a) {
5
+ function _t(a) {
6
6
  et.set(a);
7
7
  }
8
- const ye = {
8
+ const wt = {
9
9
  en: {
10
10
  recentSearch: "Recent search",
11
11
  placeHolderSearchGames: "Search for Games",
@@ -187,7 +187,7 @@ const ye = {
187
187
  notFoundText: "Please type the correct name of the game to start to play.",
188
188
  noRecentSearches: "No recent searches yet. Search for any of our games."
189
189
  }
190
- }, St = (a, e) => function(...t) {
190
+ }, bt = (a, e) => function(...t) {
191
191
  clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
192
192
  a.apply(this, t);
193
193
  }, e);
@@ -204,25 +204,25 @@ if (typeof window < "u") {
204
204
  }
205
205
  };
206
206
  };
207
- customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-BiVK2l1I.js").then((e) => e.I).then(({ default: e }) => {
207
+ customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-CKbbtXF6.js").then((e) => e.J).then(({ default: e }) => {
208
208
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
209
209
  });
210
210
  }
211
- function _t(a) {
211
+ function vt(a) {
212
212
  ot(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}");
213
213
  }
214
- function ke(a, e, t) {
214
+ function ye(a, e, t) {
215
215
  const r = a.slice();
216
- return r[65] = e[t], r;
216
+ return r[67] = e[t], r;
217
217
  }
218
- function Re(a) {
218
+ function ke(a) {
219
219
  let e, t = (
220
220
  /*$_*/
221
221
  a[21]("cancel") + ""
222
222
  ), r, o, l, s;
223
223
  return {
224
224
  c() {
225
- e = k("small"), r = H(t), f(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
225
+ e = k("small"), r = H(t), p(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
226
226
  (a[16] ? "NotVisible" : ""));
227
227
  },
228
228
  m(i, c) {
@@ -238,65 +238,65 @@ function Re(a) {
238
238
  2097152 && t !== (t = /*$_*/
239
239
  i[21]("cancel") + "") && x(r, t), c[0] & /*searchCancelled*/
240
240
  65536 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
241
- (i[16] ? "NotVisible" : "")) && f(e, "class", o);
241
+ (i[16] ? "NotVisible" : "")) && p(e, "class", o);
242
242
  },
243
243
  d(i) {
244
244
  i && I(e), l = !1, s();
245
245
  }
246
246
  };
247
247
  }
248
- function wt(a) {
248
+ function yt(a) {
249
249
  let e, t, r, o;
250
- function l(h, d) {
250
+ function l(h, m) {
251
251
  if (
252
252
  /*searchActive*/
253
253
  h[17] == !0 && /*searchValue*/
254
254
  h[14].length < 2
255
255
  )
256
- return yt;
256
+ return Ct;
257
257
  if (
258
258
  /*searchArray*/
259
259
  h[13].length != 0
260
260
  )
261
- return vt;
261
+ return Rt;
262
262
  }
263
263
  let s = l(a), i = s && s(a), c = (
264
264
  /*searchCancelled*/
265
- a[16] === !1 && Te(a)
266
- ), m = (
265
+ a[16] === !1 && Le(a)
266
+ ), d = (
267
267
  /*searchValue*/
268
268
  a[14].length >= 2 && /*searchArray*/
269
- a[13].length == 0 && Ee(a)
269
+ a[13].length == 0 && Ie(a)
270
270
  );
271
271
  return {
272
272
  c() {
273
- i && i.c(), e = D(), t = k("div"), c && c.c(), r = D(), m && m.c(), f(t, "class", o = "SearchResultsContainer " + /*searchActive*/
273
+ i && i.c(), e = N(), t = k("div"), c && c.c(), r = N(), d && d.c(), p(t, "class", o = "SearchResultsContainer " + /*searchActive*/
274
274
  (a[17] == !0 ? "" : "NotVisible"));
275
275
  },
276
- m(h, d) {
277
- i && i.m(h, d), E(h, e, d), E(h, t, d), c && c.m(t, null), w(t, r), m && m.m(t, null);
276
+ m(h, m) {
277
+ i && i.m(h, m), E(h, e, m), E(h, t, m), c && c.m(t, null), w(t, r), d && d.m(t, null);
278
278
  },
279
- p(h, d) {
280
- s === (s = l(h)) && i ? i.p(h, d) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
281
- h[16] === !1 ? c ? c.p(h, d) : (c = Te(h), c.c(), c.m(t, r)) : c && (c.d(1), c = null), /*searchValue*/
279
+ p(h, m) {
280
+ s === (s = l(h)) && i ? i.p(h, m) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
281
+ h[16] === !1 ? c ? c.p(h, m) : (c = Le(h), c.c(), c.m(t, r)) : c && (c.d(1), c = null), /*searchValue*/
282
282
  h[14].length >= 2 && /*searchArray*/
283
- h[13].length == 0 ? m ? m.p(h, d) : (m = Ee(h), m.c(), m.m(t, null)) : m && (m.d(1), m = null), d[0] & /*searchActive*/
283
+ h[13].length == 0 ? d ? d.p(h, m) : (d = Ie(h), d.c(), d.m(t, null)) : d && (d.d(1), d = null), m[0] & /*searchActive*/
284
284
  131072 && o !== (o = "SearchResultsContainer " + /*searchActive*/
285
- (h[17] == !0 ? "" : "NotVisible")) && f(t, "class", o);
285
+ (h[17] == !0 ? "" : "NotVisible")) && p(t, "class", o);
286
286
  },
287
287
  d(h) {
288
- h && (I(e), I(t)), i && i.d(h), c && c.d(), m && m.d();
288
+ h && (I(e), I(t)), i && i.d(h), c && c.d(), d && d.d();
289
289
  }
290
290
  };
291
291
  }
292
- function bt(a) {
292
+ function kt(a) {
293
293
  let e, t = (
294
294
  /*$_*/
295
295
  a[21]("loading") + ""
296
296
  ), r;
297
297
  return {
298
298
  c() {
299
- e = k("p"), r = H(t), f(e, "class", "LoadingContent");
299
+ e = k("p"), r = H(t), p(e, "class", "LoadingContent");
300
300
  },
301
301
  m(o, l) {
302
302
  E(o, e, l), w(e, r);
@@ -311,14 +311,14 @@ function bt(a) {
311
311
  }
312
312
  };
313
313
  }
314
- function vt(a) {
314
+ function Rt(a) {
315
315
  let e, t = (
316
316
  /*$_*/
317
317
  a[21]("searchResult") + ""
318
318
  ), r;
319
319
  return {
320
320
  c() {
321
- e = k("p"), r = H(t), f(e, "class", "SearchMessage");
321
+ e = k("p"), r = H(t), p(e, "class", "SearchMessage");
322
322
  },
323
323
  m(o, l) {
324
324
  E(o, e, l), w(e, r);
@@ -333,39 +333,39 @@ function vt(a) {
333
333
  }
334
334
  };
335
335
  }
336
- function yt(a) {
336
+ function Ct(a) {
337
337
  let e, t, r = (
338
338
  /*searchArray*/
339
- a[13].length !== 0 && Ce(a)
339
+ a[13].length !== 0 && Re(a)
340
340
  ), o = (
341
341
  /*searchArray*/
342
- a[13].length == 0 && Fe(a)
342
+ a[13].length == 0 && Ce(a)
343
343
  );
344
344
  return {
345
345
  c() {
346
- r && r.c(), e = D(), o && o.c(), t = Ge();
346
+ r && r.c(), e = N(), o && o.c(), t = je();
347
347
  },
348
348
  m(l, s) {
349
349
  r && r.m(l, s), E(l, e, s), o && o.m(l, s), E(l, t, s);
350
350
  },
351
351
  p(l, s) {
352
352
  /*searchArray*/
353
- l[13].length !== 0 ? r ? r.p(l, s) : (r = Ce(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*searchArray*/
354
- l[13].length == 0 ? o ? o.p(l, s) : (o = Fe(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
353
+ l[13].length !== 0 ? r ? r.p(l, s) : (r = Re(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*searchArray*/
354
+ l[13].length == 0 ? o ? o.p(l, s) : (o = Ce(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
355
355
  },
356
356
  d(l) {
357
357
  l && (I(e), I(t)), r && r.d(l), o && o.d(l);
358
358
  }
359
359
  };
360
360
  }
361
- function Ce(a) {
361
+ function Re(a) {
362
362
  let e, t = (
363
363
  /*$_*/
364
364
  a[21]("recentSearch") + ""
365
365
  ), r;
366
366
  return {
367
367
  c() {
368
- e = k("p"), r = H(t), f(e, "class", "SearchMessage");
368
+ e = k("p"), r = H(t), p(e, "class", "SearchMessage");
369
369
  },
370
370
  m(o, l) {
371
371
  E(o, e, l), w(e, r);
@@ -380,40 +380,40 @@ function Ce(a) {
380
380
  }
381
381
  };
382
382
  }
383
- function Fe(a) {
383
+ function Ce(a) {
384
384
  let e, t, r, o = (
385
385
  /*$_*/
386
386
  a[21]("noRecentSearches") + ""
387
387
  ), l, s, i = (
388
388
  /*notfoundicon*/
389
- a[11] === "true" && Le()
389
+ a[11] === "true" && Fe()
390
390
  );
391
391
  return {
392
392
  c() {
393
- e = k("div"), i && i.c(), t = D(), r = k("p"), l = H(o), f(r, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
393
+ e = k("div"), i && i.c(), t = N(), r = k("p"), l = H(o), p(r, "class", "SearchMessage"), p(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
394
394
  (a[11] == "true" ? "WithIcon" : ""));
395
395
  },
396
- m(c, m) {
397
- E(c, e, m), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
396
+ m(c, d) {
397
+ E(c, e, d), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
398
398
  },
399
- p(c, m) {
399
+ p(c, d) {
400
400
  /*notfoundicon*/
401
- c[11] === "true" ? i || (i = Le(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
401
+ c[11] === "true" ? i || (i = Fe(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), d[0] & /*$_*/
402
402
  2097152 && o !== (o = /*$_*/
403
- c[21]("noRecentSearches") + "") && x(l, o), m[0] & /*notfoundicon*/
403
+ c[21]("noRecentSearches") + "") && x(l, o), d[0] & /*notfoundicon*/
404
404
  2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
405
- (c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
405
+ (c[11] == "true" ? "WithIcon" : "")) && p(e, "class", s);
406
406
  },
407
407
  d(c) {
408
408
  c && I(e), i && i.d();
409
409
  }
410
410
  };
411
411
  }
412
- function Le(a) {
412
+ function Fe(a) {
413
413
  let e;
414
414
  return {
415
415
  c() {
416
- 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>', f(e, "class", "SearchErrorIcon");
416
+ 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>', p(e, "class", "SearchErrorIcon");
417
417
  },
418
418
  m(t, r) {
419
419
  E(t, e, r);
@@ -423,18 +423,18 @@ function Le(a) {
423
423
  }
424
424
  };
425
425
  }
426
- function Te(a) {
427
- let e, t = be(
426
+ function Le(a) {
427
+ let e, t = ve(
428
428
  /*searchArray*/
429
429
  a[13]
430
430
  ), r = [];
431
431
  for (let o = 0; o < t.length; o += 1)
432
- r[o] = Ie(ke(a, t, o));
432
+ r[o] = Te(ye(a, t, o));
433
433
  return {
434
434
  c() {
435
435
  for (let o = 0; o < r.length; o += 1)
436
436
  r[o].c();
437
- e = Ge();
437
+ e = je();
438
438
  },
439
439
  m(o, l) {
440
440
  for (let s = 0; s < r.length; s += 1)
@@ -444,14 +444,14 @@ function Te(a) {
444
444
  p(o, l) {
445
445
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, getRequiredIcon, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
446
446
  77079551) {
447
- t = be(
447
+ t = ve(
448
448
  /*searchArray*/
449
449
  o[13]
450
450
  );
451
451
  let s;
452
452
  for (s = 0; s < t.length; s += 1) {
453
- const i = ke(o, t, s);
454
- r[s] ? r[s].p(i, l) : (r[s] = Ie(i), r[s].c(), r[s].m(e.parentNode, e));
453
+ const i = ye(o, t, s);
454
+ r[s] ? r[s].p(i, l) : (r[s] = Te(i), r[s].c(), r[s].m(e.parentNode, e));
455
455
  }
456
456
  for (; s < r.length; s += 1)
457
457
  r[s].d(1);
@@ -459,12 +459,12 @@ function Te(a) {
459
459
  }
460
460
  },
461
461
  d(o) {
462
- o && I(e), ht(r, o);
462
+ o && I(e), dt(r, o);
463
463
  }
464
464
  };
465
465
  }
466
- function Ie(a) {
467
- let e, t, r, o, l, s, i, c, m, h, d, v, T;
466
+ function Te(a) {
467
+ let e, t, r, o, l, s, i, c, d, h, m, v, T;
468
468
  return {
469
469
  c() {
470
470
  e = k("casino-game-thumbnail-nd"), u(
@@ -493,32 +493,32 @@ function Ie(a) {
493
493
  /*lang*/
494
494
  a[1]
495
495
  ), u(e, "gamethumbnail", t = /*game*/
496
- a[65].thumbnail), u(e, "icon", r = /*getRequiredIcon*/
496
+ a[67].thumbnail), u(e, "icon", r = /*getRequiredIcon*/
497
497
  a[23](
498
498
  /*game*/
499
- a[65]?.icons
499
+ a[67]?.icons
500
500
  )), u(e, "gamename", o = /*game*/
501
- a[65].name), u(e, "gamevendor", l = /*game*/
502
- a[65].vendor.name), u(e, "gameLaunchUrl", s = /*game*/
503
- a[65].launchUrl), u(e, "gameisnew", i = /*game*/
504
- a[65].isNew), u(e, "gametag", c = /*game*/
505
- a[65].advancedTags?.length > 0 && /*addGameTag*/
501
+ a[67].name), u(e, "gamevendor", l = /*game*/
502
+ a[67].vendor.name), u(e, "gameLaunchUrl", s = /*game*/
503
+ a[67].launchUrl), u(e, "gameisnew", i = /*game*/
504
+ a[67].isNew), u(e, "gametag", c = /*game*/
505
+ a[67].advancedTags?.length > 0 && /*addGameTag*/
506
506
  a[26](
507
507
  /*game*/
508
- a[65].advancedTags
509
- )), u(e, "gamecellsize", m = /*game*/
510
- a[65].cellSize), u(e, "gameid", h = /*game*/
511
- a[65].id), u(
508
+ a[67].advancedTags
509
+ )), u(e, "gamecellsize", d = /*game*/
510
+ a[67].cellSize), u(e, "gameid", h = /*game*/
511
+ a[67].id), u(
512
512
  e,
513
513
  "showgamename",
514
514
  /*showgamename*/
515
515
  a[7]
516
- ), u(e, "gamefunmode", d = /*game*/
517
- a[65].hasFunMode), u(e, "gamefavorite", v = /*game*/
518
- a[65].isFavorite), u(e, "livelobbyendpoint", T = /*game*/
519
- a[65].details ? (
516
+ ), u(e, "gamefunmode", m = /*game*/
517
+ a[67].hasFunMode), u(e, "gamefavorite", v = /*game*/
518
+ a[67].isFavorite), u(e, "livelobbyendpoint", T = /*game*/
519
+ a[67].details ? (
520
520
  /*game*/
521
- a[65].launchUrl
521
+ a[67].launchUrl
522
522
  ) : ""), u(
523
523
  e,
524
524
  "integratedgameframedesktop",
@@ -587,44 +587,44 @@ function Ie(a) {
587
587
  g[1]
588
588
  ), S[0] & /*searchArray*/
589
589
  8192 && t !== (t = /*game*/
590
- g[65].thumbnail) && u(e, "gamethumbnail", t), S[0] & /*searchArray*/
590
+ g[67].thumbnail) && u(e, "gamethumbnail", t), S[0] & /*searchArray*/
591
591
  8192 && r !== (r = /*getRequiredIcon*/
592
592
  g[23](
593
593
  /*game*/
594
- g[65]?.icons
594
+ g[67]?.icons
595
595
  )) && u(e, "icon", r), S[0] & /*searchArray*/
596
596
  8192 && o !== (o = /*game*/
597
- g[65].name) && u(e, "gamename", o), S[0] & /*searchArray*/
597
+ g[67].name) && u(e, "gamename", o), S[0] & /*searchArray*/
598
598
  8192 && l !== (l = /*game*/
599
- g[65].vendor.name) && u(e, "gamevendor", l), S[0] & /*searchArray*/
599
+ g[67].vendor.name) && u(e, "gamevendor", l), S[0] & /*searchArray*/
600
600
  8192 && s !== (s = /*game*/
601
- g[65].launchUrl) && u(e, "gameLaunchUrl", s), S[0] & /*searchArray*/
601
+ g[67].launchUrl) && u(e, "gameLaunchUrl", s), S[0] & /*searchArray*/
602
602
  8192 && i !== (i = /*game*/
603
- g[65].isNew) && u(e, "gameisnew", i), S[0] & /*searchArray*/
603
+ g[67].isNew) && u(e, "gameisnew", i), S[0] & /*searchArray*/
604
604
  8192 && c !== (c = /*game*/
605
- g[65].advancedTags?.length > 0 && /*addGameTag*/
605
+ g[67].advancedTags?.length > 0 && /*addGameTag*/
606
606
  g[26](
607
607
  /*game*/
608
- g[65].advancedTags
608
+ g[67].advancedTags
609
609
  )) && u(e, "gametag", c), S[0] & /*searchArray*/
610
- 8192 && m !== (m = /*game*/
611
- g[65].cellSize) && u(e, "gamecellsize", m), S[0] & /*searchArray*/
610
+ 8192 && d !== (d = /*game*/
611
+ g[67].cellSize) && u(e, "gamecellsize", d), S[0] & /*searchArray*/
612
612
  8192 && h !== (h = /*game*/
613
- g[65].id) && u(e, "gameid", h), S[0] & /*showgamename*/
613
+ g[67].id) && u(e, "gameid", h), S[0] & /*showgamename*/
614
614
  128 && u(
615
615
  e,
616
616
  "showgamename",
617
617
  /*showgamename*/
618
618
  g[7]
619
619
  ), S[0] & /*searchArray*/
620
- 8192 && d !== (d = /*game*/
621
- g[65].hasFunMode) && u(e, "gamefunmode", d), S[0] & /*searchArray*/
620
+ 8192 && m !== (m = /*game*/
621
+ g[67].hasFunMode) && u(e, "gamefunmode", m), S[0] & /*searchArray*/
622
622
  8192 && v !== (v = /*game*/
623
- g[65].isFavorite) && u(e, "gamefavorite", v), S[0] & /*searchArray*/
623
+ g[67].isFavorite) && u(e, "gamefavorite", v), S[0] & /*searchArray*/
624
624
  8192 && T !== (T = /*game*/
625
- g[65].details ? (
625
+ g[67].details ? (
626
626
  /*game*/
627
- g[65].launchUrl
627
+ g[67].launchUrl
628
628
  ) : "") && u(e, "livelobbyendpoint", T), S[0] & /*integratedgameframedesktop*/
629
629
  32 && u(
630
630
  e,
@@ -668,45 +668,45 @@ function Ie(a) {
668
668
  }
669
669
  };
670
670
  }
671
- function Ee(a) {
671
+ function Ie(a) {
672
672
  let e, t, r, o = (
673
673
  /*$_*/
674
674
  a[21]("notFound") + ""
675
675
  ), l, s, i, c = (
676
676
  /*$_*/
677
677
  a[21]("notFoundText") + ""
678
- ), m, h, d = (
678
+ ), d, h, m = (
679
679
  /*notfoundicon*/
680
- a[11] === "true" && je()
680
+ a[11] === "true" && Ee()
681
681
  );
682
682
  return {
683
683
  c() {
684
- e = k("div"), d && d.c(), t = D(), r = k("p"), l = H(o), s = D(), i = k("p"), m = H(c), f(r, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
684
+ e = k("div"), m && m.c(), t = N(), r = k("p"), l = H(o), s = N(), i = k("p"), d = H(c), p(r, "class", "SearchMessage"), p(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
685
685
  (a[11] == "true" ? "WithIcon" : ""));
686
686
  },
687
687
  m(v, T) {
688
- E(v, e, T), d && d.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, m);
688
+ E(v, e, T), m && m.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, d);
689
689
  },
690
690
  p(v, T) {
691
691
  /*notfoundicon*/
692
- v[11] === "true" ? d || (d = je(), d.c(), d.m(e, t)) : d && (d.d(1), d = null), T[0] & /*$_*/
692
+ v[11] === "true" ? m || (m = Ee(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), T[0] & /*$_*/
693
693
  2097152 && o !== (o = /*$_*/
694
694
  v[21]("notFound") + "") && x(l, o), T[0] & /*$_*/
695
695
  2097152 && c !== (c = /*$_*/
696
- v[21]("notFoundText") + "") && x(m, c), T[0] & /*notfoundicon*/
696
+ v[21]("notFoundText") + "") && x(d, c), T[0] & /*notfoundicon*/
697
697
  2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
698
- (v[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
698
+ (v[11] == "true" ? "WithIcon" : "")) && p(e, "class", h);
699
699
  },
700
700
  d(v) {
701
- v && I(e), d && d.d();
701
+ v && I(e), m && m.d();
702
702
  }
703
703
  };
704
704
  }
705
- function je(a) {
705
+ function Ee(a) {
706
706
  let e;
707
707
  return {
708
708
  c() {
709
- 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>', f(e, "class", "SearchErrorIcon");
709
+ 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>', p(e, "class", "SearchErrorIcon");
710
710
  },
711
711
  m(t, r) {
712
712
  E(t, e, r);
@@ -716,36 +716,36 @@ function je(a) {
716
716
  }
717
717
  };
718
718
  }
719
- function kt(a) {
720
- let e, t, r, o, l, s, i, c, m, h, d, v, T, g, S, N, A, W, U, B, F = (
719
+ function Ft(a) {
720
+ let e, t, r, o, l, s, i, c, d, h, m, v, T, g, S, z, A, W, U, B, F = (
721
721
  /*cancelbutton*/
722
- a[10] === "true" && Re(a)
722
+ a[10] === "true" && ke(a)
723
723
  );
724
724
  function V(_, R) {
725
725
  return (
726
726
  /*isLoading*/
727
- _[18] ? bt : wt
727
+ _[18] ? kt : yt
728
728
  );
729
729
  }
730
730
  let J = V(a), j = J(a);
731
731
  return {
732
732
  c() {
733
- e = k("div"), t = k("div"), r = k("div"), o = k("div"), o.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 = k("input"), c = D(), m = k("span"), h = Se("svg"), d = Se("path"), T = D(), F && F.c(), S = D(), N = k("div"), W = D(), j.c(), f(o, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
734
- a[21]("placeHolderSearchGames")), f(s, "maxlength", ze), f(d, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(d, "stroke", "#717171"), f(d, "stroke-width", "2"), f(d, "stroke-linecap", "round"), f(d, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", v = "SearchClearButton " + /*cancelbutton*/
733
+ e = k("div"), t = k("div"), r = k("div"), o = k("div"), o.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 = N(), s = k("input"), c = N(), d = k("span"), h = _e("svg"), m = _e("path"), T = N(), F && F.c(), S = N(), z = k("div"), W = N(), j.c(), p(o, "class", "SearchIcon"), p(s, "class", "SearchInput"), p(s, "type", "search"), p(s, "placeholder", i = /*$_*/
734
+ a[21]("placeHolderSearchGames")), p(s, "maxlength", Ge), p(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), p(m, "stroke", "#717171"), p(m, "stroke-width", "2"), p(m, "stroke-linecap", "round"), p(m, "stroke-linejoin", "round"), p(h, "width", "11"), p(h, "height", "11"), p(h, "fill", "none"), p(h, "xmlns", "http://www.w3.org/2000/svg"), p(d, "class", v = "SearchClearButton " + /*cancelbutton*/
735
735
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
736
- (a[14].length != 0 ? "" : "NotVisible")), f(r, "class", g = "Search " + /*searchCancelled*/
737
- (a[16] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", A = /*cancelbutton*/
738
- a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (le(
736
+ (a[14].length != 0 ? "" : "NotVisible")), p(r, "class", g = "Search " + /*searchCancelled*/
737
+ (a[16] ? "" : "SearchAnimation")), p(t, "class", "SearchWrap"), p(z, "class", A = /*cancelbutton*/
738
+ a[10] != "true" ? "OverlayCancel" : ""), p(e, "class", (ie(
739
739
  /*userAgent*/
740
740
  a[22]
741
741
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
742
742
  },
743
743
  m(_, R) {
744
- E(_, e, R), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), pe(
744
+ E(_, e, R), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), Se(
745
745
  s,
746
746
  /*searchValue*/
747
747
  a[14]
748
- ), a[39](s), w(r, c), w(r, m), w(m, h), w(h, d), w(r, T), F && F.m(r, null), w(e, S), w(e, N), w(e, W), j.m(e, null), a[42](e), U || (B = [
748
+ ), a[39](s), w(r, c), w(r, d), w(d, h), w(h, m), w(r, T), F && F.m(r, null), w(e, S), w(e, z), w(e, W), j.m(e, null), a[42](e), U || (B = [
749
749
  Y(
750
750
  s,
751
751
  "input",
@@ -765,13 +765,13 @@ function kt(a) {
765
765
  a[29]
766
766
  ),
767
767
  Y(
768
- m,
768
+ d,
769
769
  "click",
770
770
  /*click_handler*/
771
771
  a[40]
772
772
  ),
773
773
  Y(
774
- N,
774
+ z,
775
775
  "click",
776
776
  /*handleOverlay*/
777
777
  a[25]
@@ -781,60 +781,60 @@ function kt(a) {
781
781
  p(_, R) {
782
782
  R[0] & /*$_*/
783
783
  2097152 && i !== (i = /*$_*/
784
- _[21]("placeHolderSearchGames")) && f(s, "placeholder", i), R[0] & /*searchValue*/
784
+ _[21]("placeHolderSearchGames")) && p(s, "placeholder", i), R[0] & /*searchValue*/
785
785
  16384 && s.value !== /*searchValue*/
786
- _[14] && pe(
786
+ _[14] && Se(
787
787
  s,
788
788
  /*searchValue*/
789
789
  _[14]
790
790
  ), R[0] & /*cancelbutton, searchValue*/
791
791
  17408 && v !== (v = "SearchClearButton " + /*cancelbutton*/
792
792
  (_[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
793
- (_[14].length != 0 ? "" : "NotVisible")) && f(m, "class", v), /*cancelbutton*/
794
- _[10] === "true" ? F ? F.p(_, R) : (F = Re(_), F.c(), F.m(r, null)) : F && (F.d(1), F = null), R[0] & /*searchCancelled*/
793
+ (_[14].length != 0 ? "" : "NotVisible")) && p(d, "class", v), /*cancelbutton*/
794
+ _[10] === "true" ? F ? F.p(_, R) : (F = ke(_), F.c(), F.m(r, null)) : F && (F.d(1), F = null), R[0] & /*searchCancelled*/
795
795
  65536 && g !== (g = "Search " + /*searchCancelled*/
796
- (_[16] ? "" : "SearchAnimation")) && f(r, "class", g), R[0] & /*cancelbutton*/
796
+ (_[16] ? "" : "SearchAnimation")) && p(r, "class", g), R[0] & /*cancelbutton*/
797
797
  1024 && A !== (A = /*cancelbutton*/
798
- _[10] != "true" ? "OverlayCancel" : "") && f(N, "class", A), J === (J = V(_)) && j ? j.p(_, R) : (j.d(1), j = J(_), j && (j.c(), j.m(e, null)));
798
+ _[10] != "true" ? "OverlayCancel" : "") && p(z, "class", A), J === (J = V(_)) && j ? j.p(_, R) : (j.d(1), j = J(_), j && (j.c(), j.m(e, null)));
799
799
  },
800
- i: fe,
801
- o: fe,
800
+ i: pe,
801
+ o: pe,
802
802
  d(_) {
803
803
  _ && I(e), a[39](null), F && F.d(), j.d(), a[42](null), U = !1, st(B);
804
804
  }
805
805
  };
806
806
  }
807
- let ze = 50;
808
- function Rt(a, e, t) {
807
+ let Ge = 50;
808
+ function Lt(a, e, t) {
809
809
  let r;
810
- lt(a, dt, (n) => t(21, r = n));
811
- let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: m } = e, { clientstyling: h = "" } = e, { clientstylingurl: d = "" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: T = "false" } = e, { showgamename: g = "" } = e, { gamepagemodalurl: S = "true" } = e, { translationurl: N = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: U = "false" } = e, { controlchannel: B = "casino-search" } = e, { allowedorigins: F = window.location.origin } = e, { requiredicon: V = "false" } = e;
810
+ lt(a, mt, (n) => t(21, r = n));
811
+ let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: d } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: T = "false" } = e, { showgamename: g = "" } = e, { gamepagemodalurl: S = "true" } = e, { translationurl: z = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: U = "false" } = e, { controlchannel: B = "casino-search" } = e, { allowedorigins: F = window.location.origin } = e, { requiredicon: V = "false" } = e;
812
812
  const J = () => (F || "").split(",").map((n) => n.trim()).filter(Boolean);
813
- let j = window.navigator.userAgent, _ = [], R = [], ne = {}, P = "", K, $ = !0, q = !1, z = !1, M, ee = !1, te, ae, ie = [];
814
- const De = () => {
815
- fetch(N).then((p) => p.json()).then((p) => {
816
- Object.keys(p).forEach((b) => {
817
- ve(b, p[b]);
818
- });
819
- }).catch((p) => {
820
- console.log(p);
813
+ let j = window.navigator.userAgent, _ = [], R = [], ne = {}, P = "", K, $ = !0, q = !1, D = !1, M, ze, ee = !1, te, ae, ce = [];
814
+ const re = (n) => {
815
+ Object.keys(n).forEach((f) => {
816
+ St(f, n[f]);
817
+ });
818
+ }, De = () => {
819
+ fetch(z).then((f) => f.json()).then((f) => {
820
+ re(f);
821
+ }).catch((f) => {
822
+ console.log(f);
821
823
  });
822
824
  };
823
- Object.keys(ye).forEach((n) => {
824
- ve(n, ye[n]);
825
- });
826
- const ce = (n) => {
825
+ re(wt);
826
+ const ue = (n) => {
827
827
  n.data && n.data.type == "SearchedItemClicked" && We(n.data.gameId), n.data.type == "UserSessionID" && (t(19, te = n.data.session), t(20, ae = n.data.userid), t(37, ee = !0)), n.data.type == "CategoryChange" && X();
828
828
  try {
829
- const p = n.origin === window.location.origin, b = J();
830
- if (!(p || b.length > 0 && b.includes(n.origin)) || !n.data || n.data.channel !== B)
829
+ const f = n.origin === window.location.origin, b = J();
830
+ if (!(f || b.length > 0 && b.includes(n.origin)) || !n.data || n.data.channel !== B)
831
831
  return;
832
832
  switch (n.data.type) {
833
833
  case "OpenSearch":
834
- oe();
834
+ se();
835
835
  break;
836
836
  case "CloseSearch":
837
- ue();
837
+ he();
838
838
  break;
839
839
  case "ToggleSearch":
840
840
  Pe();
@@ -845,49 +845,49 @@ function Rt(a, e, t) {
845
845
  }
846
846
  } catch {
847
847
  }
848
- }, Ne = (n) => V !== "true" ? void 0 : Object.values(n ?? {}).pop(), re = () => {
848
+ }, Ne = (n) => V !== "true" ? void 0 : Object.values(n ?? {}).pop(), oe = () => {
849
849
  if (t(16, $ = !1), t(17, q = !0), o && l && c && P.length < 2) {
850
850
  t(13, _ = []);
851
- let n = localStorage.getItem("searchedGamesWds_casino"), p = [];
852
- n && (p = n.split(","));
853
- let b = [], y = 0, L = p.length;
851
+ let n = localStorage.getItem("searchedGamesWds_casino"), f = [];
852
+ n && (f = n.split(","));
853
+ let b = [], y = 0, L = f.length;
854
854
  if (L > 0) {
855
855
  for (y = 0; y < L; y++) {
856
- let G = new URL(`${o}/v1/casino/games/${p[y]}`);
857
- G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", le(j)), b.push(Be(G, p[y]));
856
+ let G = new URL(`${o}/v1/casino/games/${f[y]}`);
857
+ G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ie(j)), b.push(Be(G, f[y]));
858
858
  }
859
859
  Promise.all(b).then((G) => {
860
860
  G = G.filter(function(O) {
861
861
  return !!O;
862
- }), t(13, _ = G.map((O) => (O.isFavorite = he(O.id), O))), _.length ? Q("searchSuccess", "SearchWidget") : Q("searchFail", "SearchWidget");
862
+ }), t(13, _ = G.map((O) => (O.isFavorite = de(O.id), O))), _.length ? Q("searchSuccess", "SearchWidget") : Q("searchFail", "SearchWidget");
863
863
  }).catch((G) => {
864
864
  Q("searchError", "SearchWidget");
865
865
  });
866
866
  }
867
867
  }
868
- me(q), Q("searchAttempt", "SearchWidget"), Q("SearchInitialized", "SearchWidget");
868
+ ge(q), Q("searchAttempt", "SearchWidget"), Q("SearchInitialized", "SearchWidget");
869
869
  };
870
- function oe() {
871
- q || (re(), requestAnimationFrame(() => K?.focus()), Z({ type: "SearchOpen" }));
870
+ function se() {
871
+ q || (oe(), requestAnimationFrame(() => K?.focus()), Z({ type: "SearchOpen" }));
872
872
  }
873
- function ue() {
873
+ function he() {
874
874
  q && (X(), Z({ type: "SearchClose" }));
875
875
  }
876
876
  function Pe() {
877
- q ? ue() : oe();
877
+ q ? he() : se();
878
878
  }
879
879
  function qe(n) {
880
- t(14, P = (n ?? "").slice(0, ze)), q || oe(), ge();
880
+ t(14, P = (n ?? "").slice(0, Ge)), q || se(), fe();
881
881
  }
882
- const Q = (n, p) => {
883
- typeof gtag == "function" && gtag("event", n, { context: p });
882
+ const Q = (n, f) => {
883
+ typeof gtag == "function" && gtag("event", n, { context: f });
884
884
  }, Me = () => {
885
885
  W != "true" && X();
886
- }, Ae = (n) => new Promise((p, b) => {
887
- t(18, z = !0), fetch(n.href).then((y) => y.json()).then((y) => {
888
- t(18, z = !1), p(y);
886
+ }, Ae = (n) => new Promise((f, b) => {
887
+ t(18, D = !0), fetch(n.href).then((y) => y.json()).then((y) => {
888
+ t(18, D = !1), f(y);
889
889
  }).catch((y) => {
890
- t(18, z = !1), console.error(y);
890
+ t(18, D = !1), console.error(y);
891
891
  try {
892
892
  Z({
893
893
  type: "SearchError",
@@ -897,11 +897,11 @@ function Rt(a, e, t) {
897
897
  }
898
898
  b(y);
899
899
  });
900
- }), Be = (n, p) => new Promise((b, y) => {
901
- t(18, z = !0), p && Object.keys(ne).indexOf(p) >= 0 ? (t(18, z = !1), b(ne[p])) : fetch(n).then((L) => L.json()).then((L) => {
902
- t(18, z = !1), L.error || (ne[L[0].gameId] = L[0]), b(L[0]);
900
+ }), Be = (n, f) => new Promise((b, y) => {
901
+ t(18, D = !0), f && Object.keys(ne).indexOf(f) >= 0 ? (t(18, D = !1), b(ne[f])) : fetch(n).then((L) => L.json()).then((L) => {
902
+ t(18, D = !1), L.error || (ne[L[0].gameId] = L[0]), b(L[0]);
903
903
  }).catch((L) => {
904
- t(18, z = !1), console.error(L);
904
+ t(18, D = !1), console.error(L);
905
905
  try {
906
906
  Z({
907
907
  type: "SearchError",
@@ -913,35 +913,35 @@ function Rt(a, e, t) {
913
913
  });
914
914
  }), Oe = () => {
915
915
  const n = new URL(`${o}/v1/player/${ae}/favorites/`);
916
- t(18, z = !0);
917
- let p = {
916
+ t(18, D = !0);
917
+ let f = {
918
918
  method: "GET",
919
919
  headers: { "X-SessionID": te }
920
920
  };
921
- fetch(n.href, p).then((b) => b.json()).then((b) => {
922
- t(18, z = !1), ie = b.items.map((y) => y.id);
921
+ fetch(n.href, f).then((b) => b.json()).then((b) => {
922
+ t(18, D = !1), ce = b.items.map((y) => y.id);
923
923
  });
924
924
  }, xe = () => {
925
925
  t(37, ee = !0), t(19, te = s), t(20, ae = i);
926
- }, he = (n) => ie.findIndex((p) => p == n) !== -1, He = (n) => {
926
+ }, de = (n) => ce.findIndex((f) => f == n) !== -1, He = (n) => {
927
927
  if (n?.length === 0)
928
928
  return "";
929
- let p, b = 99999999999, y;
929
+ let f, b = 99999999999, y;
930
930
  const L = new Date(Date.now());
931
931
  return n.forEach((G, O) => {
932
- const Xe = new Date(G.schedules[0].startTime), se = new Date(G.schedules[0].endTime);
933
- _e(new Date(se), new Date(L)) < b && (b = _e(new Date(se), new Date(L)), y = O), ct(new Date(L), new Date(Xe)) && ut(new Date(L), new Date(se)) && (p = n[y].name);
934
- }), p;
932
+ const Xe = new Date(G.schedules[0].startTime), le = new Date(G.schedules[0].endTime);
933
+ we(new Date(le), new Date(L)) < b && (b = we(new Date(le), new Date(L)), y = O), ut(new Date(L), new Date(Xe)) && ht(new Date(L), new Date(le)) && (f = n[y].name);
934
+ }), f;
935
935
  }, We = (n) => {
936
936
  if (R = localStorage.getItem("searchedGamesWds_casino"), R ? R = R.split(",") : R = [], R.indexOf(n) === -1) {
937
- let p;
938
- R.unshift(n), p = R.join(","), localStorage.setItem("searchedGamesWds_casino", p);
937
+ let f;
938
+ R.unshift(n), f = R.join(","), localStorage.setItem("searchedGamesWds_casino", f);
939
939
  }
940
940
  }, X = () => {
941
- t(14, P = ""), t(16, $ = !0), t(18, z = !1), t(13, _ = []), t(17, q = !1), me(q);
942
- }, de = () => {
941
+ t(14, P = ""), t(16, $ = !0), t(18, D = !1), t(13, _ = []), t(17, q = !1), ge(q);
942
+ }, me = () => {
943
943
  t(14, P = ""), K.focus();
944
- }, me = (n) => {
944
+ }, ge = (n) => {
945
945
  window.postMessage(
946
946
  {
947
947
  type: n === !0 ? "searchActive" : "searchCancelled",
@@ -954,18 +954,18 @@ function Rt(a, e, t) {
954
954
  };
955
955
  function Z(n) {
956
956
  try {
957
- const p = { channel: B, ...n };
958
- window.postMessage(p, window.location.href);
957
+ const f = { channel: B, ...n };
958
+ window.postMessage(f, window.location.href);
959
959
  } catch {
960
960
  }
961
961
  }
962
962
  const Ue = () => {
963
- pt(c);
964
- }, ge = async () => {
963
+ _t(c);
964
+ }, fe = async () => {
965
965
  if (P.length >= 2) {
966
966
  const n = new URL(`${o}/v1/casino/games`);
967
- n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform", le(j)), n.searchParams.append("language", c), n.searchParams.append("pagination", "offset=0,limit=30"), n.searchParams.append("filter", `name=${P}`), Ae(n).then((p) => {
968
- t(13, _ = p.items.map((b) => (b.isFavorite = he(b.id), b)));
967
+ n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform", ie(j)), n.searchParams.append("language", c), n.searchParams.append("pagination", "offset=0,limit=30"), n.searchParams.append("filter", `name=${P}`), Ae(n).then((f) => {
968
+ t(13, _ = f.items.map((b) => (b.isFavorite = de(b.id), b)));
969
969
  try {
970
970
  Z({
971
971
  type: "SearchResults",
@@ -975,43 +975,45 @@ function Rt(a, e, t) {
975
975
  }
976
976
  });
977
977
  } else
978
- $ || re();
979
- }, Ve = St(ge, 500);
980
- it(() => (window.addEventListener("message", ce, !1), () => {
981
- window.removeEventListener("message", ce);
978
+ $ || oe();
979
+ }, Ve = bt(fe, 500);
980
+ it(() => (window.addEventListener("message", ue, !1), () => {
981
+ window.removeEventListener("message", ue);
982
982
  }));
983
983
  function Je() {
984
984
  P = this.value, t(14, P);
985
985
  }
986
986
  function Ze(n) {
987
- we[n ? "unshift" : "push"](() => {
987
+ be[n ? "unshift" : "push"](() => {
988
988
  K = n, t(15, K);
989
989
  });
990
990
  }
991
- const Ye = () => de(), Ke = () => X();
991
+ const Ye = () => me(), Ke = () => X();
992
992
  function Qe(n) {
993
- we[n ? "unshift" : "push"](() => {
993
+ be[n ? "unshift" : "push"](() => {
994
994
  M = n, t(12, M);
995
995
  });
996
996
  }
997
997
  return a.$$set = (n) => {
998
- "endpoint" in n && t(0, o = n.endpoint), "datasource" in n && t(30, l = n.datasource), "session" in n && t(31, s = n.session), "userid" in n && t(32, i = n.userid), "lang" in n && t(1, c = n.lang), "mbsource" in n && t(2, m = n.mbsource), "clientstyling" in n && t(3, h = n.clientstyling), "clientstylingurl" in n && t(4, d = n.clientstylingurl), "integratedgameframedesktop" in n && t(5, v = n.integratedgameframedesktop), "integratedgameframemobile" in n && t(6, T = n.integratedgameframemobile), "showgamename" in n && t(7, g = n.showgamename), "gamepagemodalurl" in n && t(8, S = n.gamepagemodalurl), "translationurl" in n && t(33, N = n.translationurl), "showfavorites" in n && t(9, A = n.showfavorites), "cancelbutton" in n && t(10, W = n.cancelbutton), "notfoundicon" in n && t(11, U = n.notfoundicon), "controlchannel" in n && t(34, B = n.controlchannel), "allowedorigins" in n && t(35, F = n.allowedorigins), "requiredicon" in n && t(36, V = n.requiredicon);
998
+ "endpoint" in n && t(0, o = n.endpoint), "datasource" in n && t(30, l = n.datasource), "session" in n && t(31, s = n.session), "userid" in n && t(32, i = n.userid), "lang" in n && t(1, c = n.lang), "mbsource" in n && t(2, d = n.mbsource), "clientstyling" in n && t(3, h = n.clientstyling), "clientstylingurl" in n && t(4, m = n.clientstylingurl), "integratedgameframedesktop" in n && t(5, v = n.integratedgameframedesktop), "integratedgameframemobile" in n && t(6, T = n.integratedgameframemobile), "showgamename" in n && t(7, g = n.showgamename), "gamepagemodalurl" in n && t(8, S = n.gamepagemodalurl), "translationurl" in n && t(33, z = n.translationurl), "showfavorites" in n && t(9, A = n.showfavorites), "cancelbutton" in n && t(10, W = n.cancelbutton), "notfoundicon" in n && t(11, U = n.notfoundicon), "controlchannel" in n && t(34, B = n.controlchannel), "allowedorigins" in n && t(35, F = n.allowedorigins), "requiredicon" in n && t(36, V = n.requiredicon);
999
999
  }, a.$$.update = () => {
1000
1000
  a.$$.dirty[0] & /*lang*/
1001
1001
  2 && c && Ue(), a.$$.dirty[1] & /*translationurl*/
1002
- 4 && N && De(), a.$$.dirty[1] & /*session, userid*/
1002
+ 4 && z && De(), a.$$.dirty[1] & /*session, userid*/
1003
1003
  3 && s && i && xe(), a.$$.dirty[0] & /*showfavorites*/
1004
1004
  512 | a.$$.dirty[1] & /*isLoggedIn*/
1005
1005
  64 && A && ee && Oe(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1006
- 4104 && h && M && mt(M, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1007
- 4112 && d && M && gt(M, d), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
1008
- 4100 && m && M && ft(M, `${m}.Style`);
1006
+ 4104 && h && M && gt(M, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1007
+ 4112 && m && M && ft(M, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
1008
+ 4100 && d && M && pt(M, `${d}.Style`), a.$$.dirty[0] & /*mbsource*/
1009
+ 4 | a.$$.dirty[1] & /*translationurl*/
1010
+ 4 && d && !z && ct(`${d}.Translation`, ze, re);
1009
1011
  }, [
1010
1012
  o,
1011
1013
  c,
1012
- m,
1013
- h,
1014
1014
  d,
1015
+ h,
1016
+ m,
1015
1017
  v,
1016
1018
  T,
1017
1019
  g,
@@ -1025,22 +1027,22 @@ function Rt(a, e, t) {
1025
1027
  K,
1026
1028
  $,
1027
1029
  q,
1028
- z,
1030
+ D,
1029
1031
  te,
1030
1032
  ae,
1031
1033
  r,
1032
1034
  j,
1033
1035
  Ne,
1034
- re,
1036
+ oe,
1035
1037
  Me,
1036
1038
  He,
1037
1039
  X,
1038
- de,
1040
+ me,
1039
1041
  Ve,
1040
1042
  l,
1041
1043
  s,
1042
1044
  i,
1043
- N,
1045
+ z,
1044
1046
  B,
1045
1047
  F,
1046
1048
  V,
@@ -1052,13 +1054,13 @@ function Rt(a, e, t) {
1052
1054
  Qe
1053
1055
  ];
1054
1056
  }
1055
- class Ct extends at {
1057
+ class Tt extends at {
1056
1058
  constructor(e) {
1057
1059
  super(), nt(
1058
1060
  this,
1059
1061
  e,
1060
- Rt,
1061
- kt,
1062
+ Lt,
1063
+ Ft,
1062
1064
  rt,
1063
1065
  {
1064
1066
  endpoint: 0,
@@ -1081,7 +1083,7 @@ class Ct extends at {
1081
1083
  allowedorigins: 35,
1082
1084
  requiredicon: 36
1083
1085
  },
1084
- _t,
1086
+ vt,
1085
1087
  [-1, -1, -1]
1086
1088
  );
1087
1089
  }
@@ -1200,7 +1202,7 @@ class Ct extends at {
1200
1202
  this.$$set({ requiredicon: e }), C();
1201
1203
  }
1202
1204
  }
1203
- tt(Ct, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, controlchannel: {}, allowedorigins: {}, requiredicon: {} }, [], [], !0);
1205
+ tt(Tt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, controlchannel: {}, allowedorigins: {}, requiredicon: {} }, [], [], !0);
1204
1206
  export {
1205
- Ct as C
1207
+ Tt as C
1206
1208
  };