@everymatrix/casino-search-nd 1.62.4 → 1.63.1

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,8 +1,8 @@
1
- import { a as Be, $ as He, S as qe, i as We, f as L, s as Oe, c as Ue, b as Ve, n as ie, d as T, r as Je, e as f, g as ce, h as j, j as S, l as Z, k as y, m as N, o as ue, p as te, q as Ze, t as Ye, u as H, v as q, w as $, x as he, y as de, z as Ke, A as Re, B as u, C as Xe, D as Qe, E as $e, F as et } from "./CasinoGameThumbnailNd-CFNnCArZ.js";
1
+ import { a as Be, $ as He, S as qe, i as We, f as L, s as Oe, c as Ue, b as Ve, n as le, d as T, r as Je, e as f, g as ie, h as I, j as S, l as Z, k as y, m as D, o as ce, p as ee, q as Ze, t as Ye, u as H, v as q, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-BldGVfeb.js";
2
2
  function me(a, e) {
3
3
  Be(a, e);
4
4
  }
5
- function tt(a) {
5
+ function nt(a) {
6
6
  He.set(a);
7
7
  }
8
8
  const ge = {
@@ -200,11 +200,11 @@ if (typeof window != "undefined") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-CFNnCArZ.js").then((e) => e.G).then(({ default: e }) => {
203
+ customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-BldGVfeb.js").then((e) => e.I).then(({ default: e }) => {
204
204
  !customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
205
205
  });
206
206
  }
207
- function at(a) {
207
+ function rt(a) {
208
208
  Ve(a, "svelte-2xbwo7", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 40px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-white, #FFF);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));padding-right:28px}.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:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E))}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
209
209
  }
210
210
  function fe(a, e, t) {
@@ -222,7 +222,7 @@ function pe(a) {
222
222
  (a[13] ? "NotVisible" : ""));
223
223
  },
224
224
  m(i, c) {
225
- j(i, e, c), S(e, n), l || (s = Z(
225
+ I(i, e, c), S(e, n), l || (s = Z(
226
226
  e,
227
227
  "click",
228
228
  /*click_handler_1*/
@@ -241,7 +241,7 @@ function pe(a) {
241
241
  }
242
242
  };
243
243
  }
244
- function nt(a) {
244
+ function ot(a) {
245
245
  let e, t, n, r;
246
246
  function l(h, m) {
247
247
  if (
@@ -249,16 +249,16 @@ function nt(a) {
249
249
  h[17] == !0 && /*searchValue*/
250
250
  h[12].length < 2
251
251
  )
252
- return st;
252
+ return it;
253
253
  if (
254
254
  /*searchArray*/
255
255
  h[15].length != 0
256
256
  )
257
- return ot;
257
+ return lt;
258
258
  }
259
259
  let s = l(a), i = s && s(a), c = (
260
260
  /*searchCancelled*/
261
- a[13] === !1 && we(a)
261
+ a[13] === !1 && be(a)
262
262
  ), g = (
263
263
  /*searchValue*/
264
264
  a[12].length >= 2 && /*searchArray*/
@@ -266,15 +266,15 @@ function nt(a) {
266
266
  );
267
267
  return {
268
268
  c() {
269
- i && i.c(), e = N(), t = y("div"), c && c.c(), n = N(), g && g.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
269
+ i && i.c(), e = D(), t = y("div"), c && c.c(), n = D(), g && g.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
270
270
  (a[17] == !0 ? "" : "NotVisible"));
271
271
  },
272
272
  m(h, m) {
273
- i && i.m(h, m), j(h, e, m), j(h, t, m), c && c.m(t, null), S(t, n), g && g.m(t, null);
273
+ i && i.m(h, m), I(h, e, m), I(h, t, m), c && c.m(t, null), S(t, n), g && g.m(t, null);
274
274
  },
275
275
  p(h, m) {
276
276
  s === (s = l(h)) && i ? i.p(h, m) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
277
- h[13] === !1 ? c ? c.p(h, m) : (c = we(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
277
+ h[13] === !1 ? c ? c.p(h, m) : (c = be(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
278
278
  h[12].length >= 2 && /*searchArray*/
279
279
  h[15].length == 0 ? g ? g.p(h, m) : (g = ke(h), g.c(), g.m(t, null)) : g && (g.d(1), g = null), m[0] & /*searchActive*/
280
280
  131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
@@ -285,7 +285,7 @@ function nt(a) {
285
285
  }
286
286
  };
287
287
  }
288
- function rt(a) {
288
+ function st(a) {
289
289
  let e, t = (
290
290
  /*$_*/
291
291
  a[21]("loading") + ""
@@ -295,7 +295,7 @@ function rt(a) {
295
295
  e = y("p"), n = q(t), f(e, "class", "LoadingContent");
296
296
  },
297
297
  m(r, l) {
298
- j(r, e, l), S(e, n);
298
+ I(r, e, l), S(e, n);
299
299
  },
300
300
  p(r, l) {
301
301
  l[0] & /*$_*/
@@ -307,7 +307,7 @@ function rt(a) {
307
307
  }
308
308
  };
309
309
  }
310
- function ot(a) {
310
+ function lt(a) {
311
311
  let e, t = (
312
312
  /*$_*/
313
313
  a[21]("searchResult") + ""
@@ -317,7 +317,7 @@ function ot(a) {
317
317
  e = y("p"), n = q(t), f(e, "class", "SearchMessage");
318
318
  },
319
319
  m(r, l) {
320
- j(r, e, l), S(e, n);
320
+ I(r, e, l), S(e, n);
321
321
  },
322
322
  p(r, l) {
323
323
  l[0] & /*$_*/
@@ -329,7 +329,7 @@ function ot(a) {
329
329
  }
330
330
  };
331
331
  }
332
- function st(a) {
332
+ function it(a) {
333
333
  let e, t, n = (
334
334
  /*searchArray*/
335
335
  a[15].length !== 0 && _e(a)
@@ -339,10 +339,10 @@ function st(a) {
339
339
  );
340
340
  return {
341
341
  c() {
342
- n && n.c(), e = N(), r && r.c(), t = Re();
342
+ n && n.c(), e = D(), r && r.c(), t = Re();
343
343
  },
344
344
  m(l, s) {
345
- n && n.m(l, s), j(l, e, s), r && r.m(l, s), j(l, t, s);
345
+ n && n.m(l, s), I(l, e, s), r && r.m(l, s), I(l, t, s);
346
346
  },
347
347
  p(l, s) {
348
348
  /*searchArray*/
@@ -364,7 +364,7 @@ function _e(a) {
364
364
  e = y("p"), n = q(t), f(e, "class", "SearchMessage");
365
365
  },
366
366
  m(r, l) {
367
- j(r, e, l), S(e, n);
367
+ I(r, e, l), S(e, n);
368
368
  },
369
369
  p(r, l) {
370
370
  l[0] & /*$_*/
@@ -382,19 +382,19 @@ function Se(a) {
382
382
  a[21]("noRecentSearches") + ""
383
383
  ), l, s, i = (
384
384
  /*notfoundicon*/
385
- a[11] === "true" && be()
385
+ a[11] === "true" && we()
386
386
  );
387
387
  return {
388
388
  c() {
389
- e = y("div"), i && i.c(), t = N(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
389
+ e = y("div"), i && i.c(), t = D(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
390
390
  (a[11] == "true" ? "WithIcon" : ""));
391
391
  },
392
392
  m(c, g) {
393
- j(c, e, g), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
393
+ I(c, e, g), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
394
394
  },
395
395
  p(c, g) {
396
396
  /*notfoundicon*/
397
- c[11] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
397
+ c[11] === "true" ? i || (i = we(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
398
398
  2097152 && r !== (r = /*$_*/
399
399
  c[21]("noRecentSearches") + "") && H(l, r), g[0] & /*notfoundicon*/
400
400
  2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
@@ -405,21 +405,21 @@ function Se(a) {
405
405
  }
406
406
  };
407
407
  }
408
- function be(a) {
408
+ function we(a) {
409
409
  let e;
410
410
  return {
411
411
  c() {
412
412
  e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
413
413
  },
414
414
  m(t, n) {
415
- j(t, e, n);
415
+ I(t, e, n);
416
416
  },
417
417
  d(t) {
418
418
  t && T(e);
419
419
  }
420
420
  };
421
421
  }
422
- function we(a) {
422
+ function be(a) {
423
423
  let e, t = de(
424
424
  /*searchArray*/
425
425
  a[15]
@@ -435,7 +435,7 @@ function we(a) {
435
435
  m(r, l) {
436
436
  for (let s = 0; s < n.length; s += 1)
437
437
  n[s] && n[s].m(r, l);
438
- j(r, e, l);
438
+ I(r, e, l);
439
439
  },
440
440
  p(r, l) {
441
441
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
@@ -455,12 +455,12 @@ function we(a) {
455
455
  }
456
456
  },
457
457
  d(r) {
458
- r && T(e), Ke(n, r);
458
+ r && T(e), Qe(n, r);
459
459
  }
460
460
  };
461
461
  }
462
462
  function ve(a) {
463
- let e, t, n, r, l, s, i, c, g, h, m, w;
463
+ let e, t, n, r, l, s, i, c, g, h, m, b;
464
464
  return {
465
465
  c() {
466
466
  var d;
@@ -508,7 +508,7 @@ function ve(a) {
508
508
  a[7]
509
509
  ), u(e, "gamefunmode", h = /*game*/
510
510
  a[53].hasFunMode), u(e, "gamefavorite", m = /*game*/
511
- a[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
511
+ a[53].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
512
512
  a[53].details ? (
513
513
  /*game*/
514
514
  a[53].launchUrl
@@ -545,10 +545,10 @@ function ve(a) {
545
545
  );
546
546
  },
547
547
  m(d, p) {
548
- j(d, e, p);
548
+ I(d, e, p);
549
549
  },
550
550
  p(d, p) {
551
- var D;
551
+ var P;
552
552
  p[0] & /*endpoint*/
553
553
  1 && u(
554
554
  e,
@@ -591,7 +591,7 @@ function ve(a) {
591
591
  32768 && s !== (s = /*game*/
592
592
  d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
593
593
  32768 && i !== (i = /*game*/
594
- ((D = d[53].advancedTags) == null ? void 0 : D.length) > 0 && /*addGameTag*/
594
+ ((P = d[53].advancedTags) == null ? void 0 : P.length) > 0 && /*addGameTag*/
595
595
  d[25](
596
596
  /*game*/
597
597
  d[53].advancedTags
@@ -610,11 +610,11 @@ function ve(a) {
610
610
  d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
611
611
  32768 && m !== (m = /*game*/
612
612
  d[53].isFavorite) && u(e, "gamefavorite", m), p[0] & /*searchArray*/
613
- 32768 && w !== (w = /*game*/
613
+ 32768 && b !== (b = /*game*/
614
614
  d[53].details ? (
615
615
  /*game*/
616
616
  d[53].launchUrl
617
- ) : "") && u(e, "livelobbyendpoint", w), p[0] & /*integratedgameframedesktop*/
617
+ ) : "") && u(e, "livelobbyendpoint", b), p[0] & /*integratedgameframedesktop*/
618
618
  32 && u(
619
619
  e,
620
620
  "integratedgameframedesktop",
@@ -670,24 +670,24 @@ function ke(a) {
670
670
  );
671
671
  return {
672
672
  c() {
673
- e = y("div"), m && m.c(), t = N(), n = y("p"), l = q(r), s = N(), i = y("p"), g = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
673
+ e = y("div"), m && m.c(), t = D(), n = y("p"), l = q(r), s = D(), i = y("p"), g = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
674
674
  (a[11] == "true" ? "WithIcon" : ""));
675
675
  },
676
- m(w, d) {
677
- j(w, e, d), m && m.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, g);
676
+ m(b, d) {
677
+ I(b, e, d), m && m.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, g);
678
678
  },
679
- p(w, d) {
679
+ p(b, d) {
680
680
  /*notfoundicon*/
681
- w[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
681
+ b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
682
682
  2097152 && r !== (r = /*$_*/
683
- w[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
683
+ b[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
684
684
  2097152 && c !== (c = /*$_*/
685
- w[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
685
+ b[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
686
686
  2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
687
- (w[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
687
+ (b[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
688
688
  },
689
- d(w) {
690
- w && T(e), m && m.d();
689
+ d(b) {
690
+ b && T(e), m && m.d();
691
691
  }
692
692
  };
693
693
  }
@@ -698,43 +698,43 @@ function ye(a) {
698
698
  e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
699
699
  },
700
700
  m(t, n) {
701
- j(t, e, n);
701
+ I(t, e, n);
702
702
  },
703
703
  d(t) {
704
704
  t && T(e);
705
705
  }
706
706
  };
707
707
  }
708
- function lt(a) {
709
- let e, t, n, r, l, s, i, c, g, h, m, w, d, p, D, x, A, W, O, U, v = (
708
+ function ct(a) {
709
+ let e, t, n, r, l, s, i, c, g, h, m, b, d, p, P, N, M, W, O, U, v = (
710
710
  /*cancelbutton*/
711
711
  a[10] === "true" && pe(a)
712
712
  );
713
- function I(b, E) {
713
+ function G(w, E) {
714
714
  return (
715
715
  /*isLoading*/
716
- b[18] ? rt : nt
716
+ w[18] ? st : ot
717
717
  );
718
718
  }
719
- let M = I(a), R = M(a);
719
+ let A = G(a), R = A(a);
720
720
  return {
721
721
  c() {
722
- e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ue("svg"), m = ue("path"), d = N(), v && v.c(), D = N(), x = y("div"), W = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
723
- a[21]("placeHolderSearchGames")), f(s, "maxlength", it), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", w = "SearchClearButton " + /*cancelbutton*/
722
+ e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = D(), s = y("input"), c = D(), g = y("span"), h = ce("svg"), m = ce("path"), d = D(), v && v.c(), P = D(), N = y("div"), W = D(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
723
+ a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", b = "SearchClearButton " + /*cancelbutton*/
724
724
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
725
725
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
726
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(x, "class", A = /*cancelbutton*/
727
- a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (te(
726
+ (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", M = /*cancelbutton*/
727
+ a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
728
728
  /*userAgent*/
729
729
  a[22]
730
730
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
731
731
  },
732
- m(b, E) {
733
- j(b, e, E), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ce(
732
+ m(w, E) {
733
+ I(w, e, E), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
734
734
  s,
735
735
  /*searchValue*/
736
736
  a[12]
737
- ), a[34](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, D), S(e, x), S(e, W), R.m(e, null), a[37](e), O || (U = [
737
+ ), a[34](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, P), S(e, N), S(e, W), R.m(e, null), a[37](e), O || (U = [
738
738
  Z(
739
739
  s,
740
740
  "input",
@@ -754,46 +754,46 @@ function lt(a) {
754
754
  a[35]
755
755
  ),
756
756
  Z(
757
- x,
757
+ N,
758
758
  "click",
759
759
  /*handleOverlay*/
760
760
  a[24]
761
761
  )
762
762
  ], O = !0);
763
763
  },
764
- p(b, E) {
764
+ p(w, E) {
765
765
  E[0] & /*$_*/
766
766
  2097152 && i !== (i = /*$_*/
767
- b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
767
+ w[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
768
768
  4096 && s.value !== /*searchValue*/
769
- b[12] && ce(
769
+ w[12] && ie(
770
770
  s,
771
771
  /*searchValue*/
772
- b[12]
772
+ w[12]
773
773
  ), E[0] & /*cancelbutton, searchValue*/
774
- 5120 && w !== (w = "SearchClearButton " + /*cancelbutton*/
775
- (b[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
776
- (b[12].length != 0 ? "" : "NotVisible")) && f(g, "class", w), /*cancelbutton*/
777
- b[10] === "true" ? v ? v.p(b, E) : (v = pe(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), E[0] & /*searchCancelled*/
774
+ 5120 && b !== (b = "SearchClearButton " + /*cancelbutton*/
775
+ (w[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
776
+ (w[12].length != 0 ? "" : "NotVisible")) && f(g, "class", b), /*cancelbutton*/
777
+ w[10] === "true" ? v ? v.p(w, E) : (v = pe(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), E[0] & /*searchCancelled*/
778
778
  8192 && p !== (p = "Search " + /*searchCancelled*/
779
- (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
780
- 1024 && A !== (A = /*cancelbutton*/
781
- b[10] != "true" ? "OverlayCancel" : "") && f(x, "class", A), M === (M = I(b)) && R ? R.p(b, E) : (R.d(1), R = M(b), R && (R.c(), R.m(e, null)));
779
+ (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
780
+ 1024 && M !== (M = /*cancelbutton*/
781
+ w[10] != "true" ? "OverlayCancel" : "") && f(N, "class", M), A === (A = G(w)) && R ? R.p(w, E) : (R.d(1), R = A(w), R && (R.c(), R.m(e, null)));
782
782
  },
783
- i: ie,
784
- o: ie,
785
- d(b) {
786
- b && T(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Je(U);
783
+ i: le,
784
+ o: le,
785
+ d(w) {
786
+ w && T(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Je(U);
787
787
  }
788
788
  };
789
789
  }
790
- let it = 50;
791
- function ct(a, e, t) {
790
+ let ut = 50;
791
+ function ht(a, e, t) {
792
792
  let n;
793
- Ze(a, Xe, (o) => t(21, n = o));
794
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: w = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: D = "true" } = e, { translationurl: x = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], I = [], M = {}, R = "", b, E = !0, V = !1, z = !1, P, Y = !1, K, X, ae = [];
793
+ Ze(a, $e, (o) => t(21, n = o));
794
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: P = "true" } = e, { translationurl: N = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], G = [], A = {}, R = "", w, E = !0, V = !1, z = !1, x, Y = !1, K, X, te = [];
795
795
  const Ce = () => {
796
- fetch(x).then((_) => _.json()).then((_) => {
796
+ fetch(N).then((_) => _.json()).then((_) => {
797
797
  Object.keys(_).forEach((k) => {
798
798
  me(k, _[k]);
799
799
  });
@@ -804,9 +804,9 @@ function ct(a, e, t) {
804
804
  Object.keys(ge).forEach((o) => {
805
805
  me(o, ge[o]);
806
806
  });
807
- const ne = (o) => {
808
- o.data && o.data.type == "SearchedItemClicked" && Ie(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
809
- }, re = () => {
807
+ const ae = (o) => {
808
+ o.data && o.data.type == "SearchedItemClicked" && Ge(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
809
+ }, ne = () => {
810
810
  if (t(13, E = !1), t(17, V = !0), r && l && c && R.length < 2) {
811
811
  t(15, v = []);
812
812
  let o = localStorage.getItem("searchedGamesWds_casino"), _ = [];
@@ -814,19 +814,19 @@ function ct(a, e, t) {
814
814
  let k = [], C = 0, F = _.length;
815
815
  if (F > 0) {
816
816
  for (C = 0; C < F; C++) {
817
- let G = new URL(`${r}/v1/casino/games/${_[C]}`);
818
- G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", te(U)), k.push(Ee(G, _[C]));
817
+ let j = new URL(`${r}/v1/casino/games/${_[C]}`);
818
+ j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", ee(U)), k.push(Ee(j, _[C]));
819
819
  }
820
- Promise.all(k).then((G) => {
821
- G = G.filter(function(B) {
820
+ Promise.all(k).then((j) => {
821
+ j = j.filter(function(B) {
822
822
  return !!B;
823
- }), t(15, v = G.map((B) => (B.isFavorite = oe(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
824
- }).catch((G) => {
823
+ }), t(15, v = j.map((B) => (B.isFavorite = re(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
824
+ }).catch((j) => {
825
825
  J("searchError", "SearchWidget");
826
826
  });
827
827
  }
828
828
  }
829
- le(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
829
+ se(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
830
830
  }, J = (o, _) => {
831
831
  typeof gtag == "function" && gtag("event", o, { context: _ });
832
832
  }, Fe = () => {
@@ -838,8 +838,8 @@ function ct(a, e, t) {
838
838
  t(18, z = !1), console.error(C), k(C);
839
839
  });
840
840
  }), Ee = (o, _) => new Promise((k, C) => {
841
- t(18, z = !0), _ && Object.keys(M).indexOf(_) >= 0 ? (t(18, z = !1), k(M[_])) : fetch(o).then((F) => F.json()).then((F) => {
842
- t(18, z = !1), F.error || (M[F[0].gameId] = F[0]), k(F[0]);
841
+ t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
842
+ t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
843
843
  }).catch((F) => {
844
844
  t(18, z = !1), console.error(F), C(F);
845
845
  });
@@ -851,29 +851,29 @@ function ct(a, e, t) {
851
851
  headers: { "X-SessionID": K }
852
852
  };
853
853
  fetch(o.href, _).then((k) => k.json()).then((k) => {
854
- t(18, z = !1), ae = k.items.map((C) => C.id);
854
+ t(18, z = !1), te = k.items.map((C) => C.id);
855
855
  });
856
- }, je = () => {
856
+ }, Ie = () => {
857
857
  t(32, Y = !0), t(19, K = s), t(20, X = i);
858
- }, oe = (o) => ae.findIndex((_) => _ == o) !== -1, Ge = (o) => {
858
+ }, re = (o) => te.findIndex((_) => _ == o) !== -1, je = (o) => {
859
859
  if ((o == null ? void 0 : o.length) === 0)
860
860
  return "";
861
861
  let _, k = 99999999999, C;
862
862
  const F = new Date(Date.now());
863
- return o.forEach((G, B) => {
864
- const Me = new Date(G.schedules[0].startTime), ee = new Date(G.schedules[0].endTime);
865
- $(ee).diff(F) < k && (k = $(ee).diff(F), C = B), $(F).isAfter(Me) && $(F).isBefore(ee) && (_ = o[C].name);
863
+ return o.forEach((j, B) => {
864
+ const Ae = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
865
+ ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = B), Ke(new Date(F), new Date(Ae)) && Xe(new Date(F), new Date($)) && (_ = o[C].name);
866
866
  }), _;
867
- }, Ie = (o) => {
868
- if (I = localStorage.getItem("searchedGamesWds_casino"), I ? I = I.split(",") : I = [], I.indexOf(o) === -1) {
867
+ }, Ge = (o) => {
868
+ if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
869
869
  let _;
870
- I.unshift(o), _ = I.join(","), localStorage.setItem("searchedGamesWds_casino", _);
870
+ G.unshift(o), _ = G.join(","), localStorage.setItem("searchedGamesWds_casino", _);
871
871
  }
872
872
  }, Q = () => {
873
- t(12, R = ""), t(13, E = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), le(V);
874
- }, se = () => {
875
- t(12, R = ""), b.focus();
876
- }, le = (o) => {
873
+ t(12, R = ""), t(13, E = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), se(V);
874
+ }, oe = () => {
875
+ t(12, R = ""), w.focus();
876
+ }, se = (o) => {
877
877
  window.postMessage(
878
878
  {
879
879
  type: o === !0 ? "searchActive" : "searchCancelled",
@@ -882,94 +882,94 @@ function ct(a, e, t) {
882
882
  window.location.href
883
883
  );
884
884
  }, ze = () => {
885
- tt(c);
885
+ nt(c);
886
886
  };
887
- Ye(() => (window.addEventListener("message", ne, !1), () => {
888
- window.removeEventListener("message", ne);
887
+ Ye(() => (window.addEventListener("message", ae, !1), () => {
888
+ window.removeEventListener("message", ae);
889
889
  }));
890
- function Ne() {
890
+ function De() {
891
891
  R = this.value, t(12, R);
892
892
  }
893
- function xe(o) {
893
+ function Ne(o) {
894
894
  he[o ? "unshift" : "push"](() => {
895
- b = o, t(16, b);
895
+ w = o, t(16, w);
896
896
  });
897
897
  }
898
- const Pe = () => se(), De = () => Q();
899
- function Ae(o) {
898
+ const xe = () => oe(), Pe = () => Q();
899
+ function Me(o) {
900
900
  he[o ? "unshift" : "push"](() => {
901
- P = o, t(14, P);
901
+ x = o, t(14, x);
902
902
  });
903
903
  }
904
904
  return a.$$set = (o) => {
905
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, w = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, D = o.gamepagemodalurl), "translationurl" in o && t(31, x = o.translationurl), "showfavorites" in o && t(9, A = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
905
+ "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, P = o.gamepagemodalurl), "translationurl" in o && t(31, N = o.translationurl), "showfavorites" in o && t(9, M = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
906
906
  }, a.$$.update = () => {
907
907
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
908
908
  268447747)
909
909
  if (R.length >= 2) {
910
910
  const o = new URL(`${r}/v1/casino/games`);
911
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(U)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
912
- t(15, v = _.items.map((k) => (k.isFavorite = oe(k.id), k)));
911
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(U)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
912
+ t(15, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
913
913
  });
914
914
  } else
915
- E || re();
915
+ E || ne();
916
916
  a.$$.dirty[0] & /*lang*/
917
917
  2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
918
- 1 && x && Ce(), a.$$.dirty[0] & /*session, userid*/
919
- 1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
918
+ 1 && N && Ce(), a.$$.dirty[0] & /*session, userid*/
919
+ 1610612736 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
920
920
  512 | a.$$.dirty[1] & /*isLoggedIn*/
921
- 2 && A && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
922
- 16392 && h && P && Qe(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
923
- 16400 && m && P && $e(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
924
- 16388 && g && P && et(P, `${g}.Style`);
921
+ 2 && M && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
922
+ 16392 && h && x && et(x, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
923
+ 16400 && m && x && tt(x, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
924
+ 16388 && g && x && at(x, `${g}.Style`);
925
925
  }, [
926
926
  r,
927
927
  c,
928
928
  g,
929
929
  h,
930
930
  m,
931
- w,
931
+ b,
932
932
  d,
933
933
  p,
934
- D,
935
- A,
934
+ P,
935
+ M,
936
936
  W,
937
937
  O,
938
938
  R,
939
939
  E,
940
- P,
940
+ x,
941
941
  v,
942
- b,
942
+ w,
943
943
  V,
944
944
  z,
945
945
  K,
946
946
  X,
947
947
  n,
948
948
  U,
949
- re,
949
+ ne,
950
950
  Fe,
951
- Ge,
951
+ je,
952
952
  Q,
953
- se,
953
+ oe,
954
954
  l,
955
955
  s,
956
956
  i,
957
- x,
957
+ N,
958
958
  Y,
959
+ De,
959
960
  Ne,
960
961
  xe,
961
962
  Pe,
962
- De,
963
- Ae
963
+ Me
964
964
  ];
965
965
  }
966
- class ut extends qe {
966
+ class dt extends qe {
967
967
  constructor(e) {
968
968
  super(), We(
969
969
  this,
970
970
  e,
971
+ ht,
971
972
  ct,
972
- lt,
973
973
  Oe,
974
974
  {
975
975
  endpoint: 0,
@@ -989,7 +989,7 @@ class ut extends qe {
989
989
  cancelbutton: 10,
990
990
  notfoundicon: 11
991
991
  },
992
- at,
992
+ rt,
993
993
  [-1, -1]
994
994
  );
995
995
  }
@@ -1090,7 +1090,7 @@ class ut extends qe {
1090
1090
  this.$$set({ notfoundicon: e }), L();
1091
1091
  }
1092
1092
  }
1093
- Ue(ut, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1093
+ Ue(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1094
1094
  export {
1095
- ut as default
1095
+ dt as default
1096
1096
  };