@everymatrix/casino-search-nd 1.62.3 → 1.63.0

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, c as qe, S as We, i as Oe, s as Ue, f as L, 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 B, v as H, 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-CXTnmYmz.js";
1
+ import { a as Be, $ as He, c as qe, S as We, i as Oe, s as Ue, f as L, b as Ve, n as le, d as 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 B, v as H, w as ue, x as Ke, y as Xe, z as he, A as de, B as Qe, C as Re, D as u, E as $e, F as et, G as tt, H as at } from "./CasinoGameThumbnailNd-BwLrcmmK.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 < "u") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-CXTnmYmz.js").then((e) => e.G).then(({ default: e }) => {
203
+ customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-BwLrcmmK.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 = H(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 = H(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 = H(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 = H(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
389
+ e = y("div"), i && i.c(), t = D(), n = y("p"), l = H(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") + "") && B(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
  e = y("casino-game-thumbnail-nd"), u(
@@ -507,7 +507,7 @@ function ve(a) {
507
507
  a[7]
508
508
  ), u(e, "gamefunmode", h = /*game*/
509
509
  a[53].hasFunMode), u(e, "gamefavorite", m = /*game*/
510
- a[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
510
+ a[53].isFavorite), u(e, "livelobbyendpoint", b = /*game*/
511
511
  a[53].details ? (
512
512
  /*game*/
513
513
  a[53].launchUrl
@@ -544,7 +544,7 @@ function ve(a) {
544
544
  );
545
545
  },
546
546
  m(d, p) {
547
- j(d, e, p);
547
+ I(d, e, p);
548
548
  },
549
549
  p(d, p) {
550
550
  p[0] & /*endpoint*/
@@ -608,11 +608,11 @@ function ve(a) {
608
608
  d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
609
609
  32768 && m !== (m = /*game*/
610
610
  d[53].isFavorite) && u(e, "gamefavorite", m), p[0] & /*searchArray*/
611
- 32768 && w !== (w = /*game*/
611
+ 32768 && b !== (b = /*game*/
612
612
  d[53].details ? (
613
613
  /*game*/
614
614
  d[53].launchUrl
615
- ) : "") && u(e, "livelobbyendpoint", w), p[0] & /*integratedgameframedesktop*/
615
+ ) : "") && u(e, "livelobbyendpoint", b), p[0] & /*integratedgameframedesktop*/
616
616
  32 && u(
617
617
  e,
618
618
  "integratedgameframedesktop",
@@ -668,24 +668,24 @@ function ke(a) {
668
668
  );
669
669
  return {
670
670
  c() {
671
- e = y("div"), m && m.c(), t = N(), n = y("p"), l = H(r), s = N(), i = y("p"), g = H(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
671
+ e = y("div"), m && m.c(), t = D(), n = y("p"), l = H(r), s = D(), i = y("p"), g = H(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
672
672
  (a[11] == "true" ? "WithIcon" : ""));
673
673
  },
674
- m(w, d) {
675
- 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);
674
+ m(b, d) {
675
+ 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);
676
676
  },
677
- p(w, d) {
677
+ p(b, d) {
678
678
  /*notfoundicon*/
679
- w[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
679
+ b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
680
680
  2097152 && r !== (r = /*$_*/
681
- w[21]("notFound") + "") && B(l, r), d[0] & /*$_*/
681
+ b[21]("notFound") + "") && B(l, r), d[0] & /*$_*/
682
682
  2097152 && c !== (c = /*$_*/
683
- w[21]("notFoundText") + "") && B(g, c), d[0] & /*notfoundicon*/
683
+ b[21]("notFoundText") + "") && B(g, c), d[0] & /*notfoundicon*/
684
684
  2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
685
- (w[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
685
+ (b[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
686
686
  },
687
- d(w) {
688
- w && T(e), m && m.d();
687
+ d(b) {
688
+ b && T(e), m && m.d();
689
689
  }
690
690
  };
691
691
  }
@@ -696,43 +696,43 @@ function ye(a) {
696
696
  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");
697
697
  },
698
698
  m(t, n) {
699
- j(t, e, n);
699
+ I(t, e, n);
700
700
  },
701
701
  d(t) {
702
702
  t && T(e);
703
703
  }
704
704
  };
705
705
  }
706
- function lt(a) {
707
- let e, t, n, r, l, s, i, c, g, h, m, w, d, p, U, x, D, q, W, O, v = (
706
+ function ct(a) {
707
+ let e, t, n, r, l, s, i, c, g, h, m, b, d, p, U, N, P, q, W, O, v = (
708
708
  /*cancelbutton*/
709
709
  a[10] === "true" && pe(a)
710
710
  );
711
- function I(b, E) {
711
+ function G(w, E) {
712
712
  return (
713
713
  /*isLoading*/
714
- b[18] ? rt : nt
714
+ w[18] ? st : ot
715
715
  );
716
716
  }
717
- let A = I(a), R = A(a);
717
+ let M = G(a), R = M(a);
718
718
  return {
719
719
  c() {
720
- e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ue("svg"), m = ue("path"), d = N(), v && v.c(), U = N(), x = y("div"), q = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
721
- a[21]("placeHolderSearchGames")), f(s, "maxlength", 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*/
720
+ e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = D(), s = y("input"), c = D(), g = y("span"), h = ce("svg"), m = ce("path"), d = D(), v && v.c(), U = D(), N = y("div"), q = D(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
721
+ a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", b = "SearchClearButton " + /*cancelbutton*/
722
722
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
723
723
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
724
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(x, "class", D = /*cancelbutton*/
725
- a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (te(
724
+ (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", P = /*cancelbutton*/
725
+ a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
726
726
  /*userAgent*/
727
727
  a[22]
728
728
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
729
729
  },
730
- m(b, E) {
731
- j(b, e, E), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ce(
730
+ m(w, E) {
731
+ I(w, e, E), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
732
732
  s,
733
733
  /*searchValue*/
734
734
  a[12]
735
- ), a[34](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, U), S(e, x), S(e, q), R.m(e, null), a[37](e), W || (O = [
735
+ ), a[34](s), S(n, c), S(n, g), S(g, h), S(h, m), S(n, d), v && v.m(n, null), S(e, U), S(e, N), S(e, q), R.m(e, null), a[37](e), W || (O = [
736
736
  Z(
737
737
  s,
738
738
  "input",
@@ -752,46 +752,46 @@ function lt(a) {
752
752
  a[35]
753
753
  ),
754
754
  Z(
755
- x,
755
+ N,
756
756
  "click",
757
757
  /*handleOverlay*/
758
758
  a[24]
759
759
  )
760
760
  ], W = !0);
761
761
  },
762
- p(b, E) {
762
+ p(w, E) {
763
763
  E[0] & /*$_*/
764
764
  2097152 && i !== (i = /*$_*/
765
- b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
765
+ w[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
766
766
  4096 && s.value !== /*searchValue*/
767
- b[12] && ce(
767
+ w[12] && ie(
768
768
  s,
769
769
  /*searchValue*/
770
- b[12]
770
+ w[12]
771
771
  ), E[0] & /*cancelbutton, searchValue*/
772
- 5120 && w !== (w = "SearchClearButton " + /*cancelbutton*/
773
- (b[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
774
- (b[12].length != 0 ? "" : "NotVisible")) && f(g, "class", w), /*cancelbutton*/
775
- 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*/
772
+ 5120 && b !== (b = "SearchClearButton " + /*cancelbutton*/
773
+ (w[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
774
+ (w[12].length != 0 ? "" : "NotVisible")) && f(g, "class", b), /*cancelbutton*/
775
+ 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*/
776
776
  8192 && p !== (p = "Search " + /*searchCancelled*/
777
- (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
778
- 1024 && D !== (D = /*cancelbutton*/
779
- b[10] != "true" ? "OverlayCancel" : "") && f(x, "class", D), A === (A = I(b)) && R ? R.p(b, E) : (R.d(1), R = A(b), R && (R.c(), R.m(e, null)));
777
+ (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
778
+ 1024 && P !== (P = /*cancelbutton*/
779
+ w[10] != "true" ? "OverlayCancel" : "") && f(N, "class", P), M === (M = G(w)) && R ? R.p(w, E) : (R.d(1), R = M(w), R && (R.c(), R.m(e, null)));
780
780
  },
781
- i: ie,
782
- o: ie,
783
- d(b) {
784
- b && T(e), a[34](null), v && v.d(), R.d(), a[37](null), W = !1, Je(O);
781
+ i: le,
782
+ o: le,
783
+ d(w) {
784
+ w && T(e), a[34](null), v && v.d(), R.d(), a[37](null), W = !1, Je(O);
785
785
  }
786
786
  };
787
787
  }
788
- let it = 50;
789
- function ct(a, e, t) {
788
+ let ut = 50;
789
+ function ht(a, e, t) {
790
790
  let n;
791
- Ze(a, Xe, (o) => t(21, n = o));
792
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: w = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: x = "" } = e, { showfavorites: D = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], I = [], A = {}, R = "", b, E = !0, V = !1, z = !1, P, Y = !1, K, X, ae = [];
791
+ Ze(a, $e, (o) => t(21, n = o));
792
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], G = [], M = {}, R = "", w, E = !0, V = !1, z = !1, x, Y = !1, K, X, te = [];
793
793
  const Ce = () => {
794
- fetch(x).then((_) => _.json()).then((_) => {
794
+ fetch(N).then((_) => _.json()).then((_) => {
795
795
  Object.keys(_).forEach((k) => {
796
796
  me(k, _[k]);
797
797
  });
@@ -802,9 +802,9 @@ function ct(a, e, t) {
802
802
  Object.keys(ge).forEach((o) => {
803
803
  me(o, ge[o]);
804
804
  });
805
- const ne = (o) => {
806
- 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();
807
- }, re = () => {
805
+ const ae = (o) => {
806
+ o.data && o.data.type == "SearchedItemClicked" && Ge(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
807
+ }, ne = () => {
808
808
  if (t(13, E = !1), t(17, V = !0), r && l && c && R.length < 2) {
809
809
  t(15, v = []);
810
810
  let o = localStorage.getItem("searchedGamesWds_casino"), _ = [];
@@ -812,19 +812,19 @@ function ct(a, e, t) {
812
812
  let k = [], C = 0, F = _.length;
813
813
  if (F > 0) {
814
814
  for (C = 0; C < F; C++) {
815
- let G = new URL(`${r}/v1/casino/games/${_[C]}`);
816
- G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", te(O)), k.push(Ee(G, _[C]));
815
+ let j = new URL(`${r}/v1/casino/games/${_[C]}`);
816
+ j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", ee(O)), k.push(Ee(j, _[C]));
817
817
  }
818
- Promise.all(k).then((G) => {
819
- G = G.filter(function(M) {
820
- return !!M;
821
- }), t(15, v = G.map((M) => (M.isFavorite = oe(M.id), M))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
822
- }).catch((G) => {
818
+ Promise.all(k).then((j) => {
819
+ j = j.filter(function(A) {
820
+ return !!A;
821
+ }), t(15, v = j.map((A) => (A.isFavorite = re(A.id), A))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
822
+ }).catch((j) => {
823
823
  J("searchError", "SearchWidget");
824
824
  });
825
825
  }
826
826
  }
827
- le(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
827
+ se(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
828
828
  }, J = (o, _) => {
829
829
  typeof gtag == "function" && gtag("event", o, { context: _ });
830
830
  }, Fe = () => {
@@ -836,8 +836,8 @@ function ct(a, e, t) {
836
836
  t(18, z = !1), console.error(C), k(C);
837
837
  });
838
838
  }), Ee = (o, _) => new Promise((k, C) => {
839
- t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
840
- t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
839
+ t(18, z = !0), _ && Object.keys(M).indexOf(_) >= 0 ? (t(18, z = !1), k(M[_])) : fetch(o).then((F) => F.json()).then((F) => {
840
+ t(18, z = !1), F.error || (M[F[0].gameId] = F[0]), k(F[0]);
841
841
  }).catch((F) => {
842
842
  t(18, z = !1), console.error(F), C(F);
843
843
  });
@@ -849,29 +849,29 @@ function ct(a, e, t) {
849
849
  headers: { "X-SessionID": K }
850
850
  };
851
851
  fetch(o.href, _).then((k) => k.json()).then((k) => {
852
- t(18, z = !1), ae = k.items.map((C) => C.id);
852
+ t(18, z = !1), te = k.items.map((C) => C.id);
853
853
  });
854
- }, je = () => {
854
+ }, Ie = () => {
855
855
  t(32, Y = !0), t(19, K = s), t(20, X = i);
856
- }, oe = (o) => ae.findIndex((_) => _ == o) !== -1, Ge = (o) => {
856
+ }, re = (o) => te.findIndex((_) => _ == o) !== -1, je = (o) => {
857
857
  if (o?.length === 0)
858
858
  return "";
859
859
  let _, k = 99999999999, C;
860
860
  const F = new Date(Date.now());
861
- return o.forEach((G, M) => {
862
- const Me = new Date(G.schedules[0].startTime), ee = new Date(G.schedules[0].endTime);
863
- $(ee).diff(F) < k && (k = $(ee).diff(F), C = M), $(F).isAfter(Me) && $(F).isBefore(ee) && (_ = o[C].name);
861
+ return o.forEach((j, A) => {
862
+ const Ae = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
863
+ ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = A), Ke(new Date(F), new Date(Ae)) && Xe(new Date(F), new Date($)) && (_ = o[C].name);
864
864
  }), _;
865
- }, Ie = (o) => {
866
- if (I = localStorage.getItem("searchedGamesWds_casino"), I ? I = I.split(",") : I = [], I.indexOf(o) === -1) {
865
+ }, Ge = (o) => {
866
+ if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
867
867
  let _;
868
- I.unshift(o), _ = I.join(","), localStorage.setItem("searchedGamesWds_casino", _);
868
+ G.unshift(o), _ = G.join(","), localStorage.setItem("searchedGamesWds_casino", _);
869
869
  }
870
870
  }, Q = () => {
871
- t(12, R = ""), t(13, E = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), le(V);
872
- }, se = () => {
873
- t(12, R = ""), b.focus();
874
- }, le = (o) => {
871
+ t(12, R = ""), t(13, E = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), se(V);
872
+ }, oe = () => {
873
+ t(12, R = ""), w.focus();
874
+ }, se = (o) => {
875
875
  window.postMessage(
876
876
  {
877
877
  type: o === !0 ? "searchActive" : "searchCancelled",
@@ -880,94 +880,94 @@ function ct(a, e, t) {
880
880
  window.location.href
881
881
  );
882
882
  }, ze = () => {
883
- tt(c);
883
+ nt(c);
884
884
  };
885
- Ye(() => (window.addEventListener("message", ne, !1), () => {
886
- window.removeEventListener("message", ne);
885
+ Ye(() => (window.addEventListener("message", ae, !1), () => {
886
+ window.removeEventListener("message", ae);
887
887
  }));
888
- function Ne() {
888
+ function De() {
889
889
  R = this.value, t(12, R);
890
890
  }
891
- function xe(o) {
891
+ function Ne(o) {
892
892
  he[o ? "unshift" : "push"](() => {
893
- b = o, t(16, b);
893
+ w = o, t(16, w);
894
894
  });
895
895
  }
896
- const Pe = () => se(), De = () => Q();
897
- function Ae(o) {
896
+ const xe = () => oe(), Pe = () => Q();
897
+ function Me(o) {
898
898
  he[o ? "unshift" : "push"](() => {
899
- P = o, t(14, P);
899
+ x = o, t(14, x);
900
900
  });
901
901
  }
902
902
  return a.$$set = (o) => {
903
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, w = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, U = o.gamepagemodalurl), "translationurl" in o && t(31, x = o.translationurl), "showfavorites" in o && t(9, D = o.showfavorites), "cancelbutton" in o && t(10, q = o.cancelbutton), "notfoundicon" in o && t(11, W = o.notfoundicon);
903
+ "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, U = o.gamepagemodalurl), "translationurl" in o && t(31, N = o.translationurl), "showfavorites" in o && t(9, P = o.showfavorites), "cancelbutton" in o && t(10, q = o.cancelbutton), "notfoundicon" in o && t(11, W = o.notfoundicon);
904
904
  }, a.$$.update = () => {
905
905
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
906
906
  268447747)
907
907
  if (R.length >= 2) {
908
908
  const o = new URL(`${r}/v1/casino/games`);
909
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(O)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
910
- t(15, v = _.items.map((k) => (k.isFavorite = oe(k.id), k)));
909
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(O)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((_) => {
910
+ t(15, v = _.items.map((k) => (k.isFavorite = re(k.id), k)));
911
911
  });
912
912
  } else
913
- E || re();
913
+ E || ne();
914
914
  a.$$.dirty[0] & /*lang*/
915
915
  2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
916
- 1 && x && Ce(), a.$$.dirty[0] & /*session, userid*/
917
- 1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
916
+ 1 && N && Ce(), a.$$.dirty[0] & /*session, userid*/
917
+ 1610612736 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
918
918
  512 | a.$$.dirty[1] & /*isLoggedIn*/
919
- 2 && D && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
- 16392 && h && P && Qe(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
- 16400 && m && P && $e(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
922
- 16388 && g && P && et(P, `${g}.Style`);
919
+ 2 && P && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
+ 16392 && h && x && et(x, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
+ 16400 && m && x && tt(x, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
922
+ 16388 && g && x && at(x, `${g}.Style`);
923
923
  }, [
924
924
  r,
925
925
  c,
926
926
  g,
927
927
  h,
928
928
  m,
929
- w,
929
+ b,
930
930
  d,
931
931
  p,
932
932
  U,
933
- D,
933
+ P,
934
934
  q,
935
935
  W,
936
936
  R,
937
937
  E,
938
- P,
938
+ x,
939
939
  v,
940
- b,
940
+ w,
941
941
  V,
942
942
  z,
943
943
  K,
944
944
  X,
945
945
  n,
946
946
  O,
947
- re,
947
+ ne,
948
948
  Fe,
949
- Ge,
949
+ je,
950
950
  Q,
951
- se,
951
+ oe,
952
952
  l,
953
953
  s,
954
954
  i,
955
- x,
955
+ N,
956
956
  Y,
957
+ De,
957
958
  Ne,
958
959
  xe,
959
960
  Pe,
960
- De,
961
- Ae
961
+ Me
962
962
  ];
963
963
  }
964
- class ut extends We {
964
+ class dt extends We {
965
965
  constructor(e) {
966
966
  super(), Oe(
967
967
  this,
968
968
  e,
969
+ ht,
969
970
  ct,
970
- lt,
971
971
  Ue,
972
972
  {
973
973
  endpoint: 0,
@@ -987,7 +987,7 @@ class ut extends We {
987
987
  cancelbutton: 10,
988
988
  notfoundicon: 11
989
989
  },
990
- at,
990
+ rt,
991
991
  [-1, -1]
992
992
  );
993
993
  }
@@ -1088,7 +1088,7 @@ class ut extends We {
1088
1088
  this.$$set({ notfoundicon: e }), L();
1089
1089
  }
1090
1090
  }
1091
- qe(ut, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1091
+ qe(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1092
1092
  export {
1093
- ut as C
1093
+ dt as C
1094
1094
  };