@everymatrix/casino-search 1.59.2 → 1.60.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,9 +1,9 @@
1
- import { a as Ae, $ as Oe, c as qe, S as He, i as We, s as Ue, f as L, b as Ve, e as k, d as N, g as ie, h as f, j as te, k as E, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as q, w as H, x as $, y as he, z as Ke, A as Qe, B as de, C as Re, D as $e, E as u, F as et } from "./CasinoGameThumbnail-B1rxYT3M.js";
1
+ import { a as Ae, $ as He, c as Oe, S as qe, i as We, s as Ue, f as L, b as Ve, e as C, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Ce, E as et, F as u, G as tt } from "./CasinoGameThumbnail-DMxybz7n.js";
2
2
  function me(a, e) {
3
3
  Ae(a, e);
4
4
  }
5
- function tt(a) {
6
- Oe.set(a);
5
+ function at(a) {
6
+ He.set(a);
7
7
  }
8
8
  const ge = {
9
9
  en: {
@@ -200,11 +200,11 @@ if (typeof window < "u") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnail-B1rxYT3M.js").then((e) => e.G).then(({ default: e }) => {
203
+ customElements.define = a(customElements.define), import("./CasinoGameThumbnail-DMxybz7n.js").then((e) => e.H).then(({ default: e }) => {
204
204
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
205
205
  });
206
206
  }
207
- function at(a) {
207
+ function nt(a) {
208
208
  Ve(a, "svelte-8vixmz", "*,*::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 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;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;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin: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-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
209
209
  }
210
210
  function fe(a, e, t) {
@@ -218,11 +218,11 @@ function pe(a) {
218
218
  ), n, r, l, s;
219
219
  return {
220
220
  c() {
221
- e = k("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
221
+ e = C("small"), n = O(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
222
222
  (a[13] ? "NotVisible" : ""));
223
223
  },
224
224
  m(i, c) {
225
- E(i, e, c), _(e, n), l || (s = Z(
225
+ T(i, e, c), _(e, n), l || (s = Z(
226
226
  e,
227
227
  "click",
228
228
  /*click_handler_1*/
@@ -232,7 +232,7 @@ function pe(a) {
232
232
  p(i, c) {
233
233
  c[0] & /*$_*/
234
234
  2097152 && t !== (t = /*$_*/
235
- i[21]("cancel") + "") && H(n, t), c[0] & /*searchCancelled*/
235
+ i[21]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
236
236
  8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
237
237
  (i[13] ? "NotVisible" : "")) && f(e, "class", r);
238
238
  },
@@ -241,7 +241,7 @@ function pe(a) {
241
241
  }
242
242
  };
243
243
  }
244
- function nt(a) {
244
+ function rt(a) {
245
245
  let e, t, n, r;
246
246
  function l(h, g) {
247
247
  if (
@@ -249,12 +249,12 @@ function nt(a) {
249
249
  h[17] == !0 && /*searchValue*/
250
250
  h[12].length < 2
251
251
  )
252
- return st;
252
+ return lt;
253
253
  if (
254
254
  /*searchArray*/
255
255
  h[15].length != 0
256
256
  )
257
- return ot;
257
+ return st;
258
258
  }
259
259
  let s = l(a), i = s && s(a), c = (
260
260
  /*searchCancelled*/
@@ -266,11 +266,11 @@ function nt(a) {
266
266
  );
267
267
  return {
268
268
  c() {
269
- i && i.c(), e = N(), t = k("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
269
+ i && i.c(), e = N(), t = C("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
270
270
  (a[17] == !0 ? "" : "NotVisible"));
271
271
  },
272
272
  m(h, g) {
273
- i && i.m(h, g), E(h, e, g), E(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
273
+ i && i.m(h, g), T(h, e, g), T(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
274
274
  },
275
275
  p(h, g) {
276
276
  s === (s = l(h)) && i ? i.p(h, g) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
@@ -285,51 +285,51 @@ function nt(a) {
285
285
  }
286
286
  };
287
287
  }
288
- function rt(a) {
288
+ function ot(a) {
289
289
  let e, t = (
290
290
  /*$_*/
291
291
  a[21]("loading") + ""
292
292
  ), n;
293
293
  return {
294
294
  c() {
295
- e = k("p"), n = q(t), f(e, "class", "LoadingContent");
295
+ e = C("p"), n = O(t), f(e, "class", "LoadingContent");
296
296
  },
297
297
  m(r, l) {
298
- E(r, e, l), _(e, n);
298
+ T(r, e, l), _(e, n);
299
299
  },
300
300
  p(r, l) {
301
301
  l[0] & /*$_*/
302
302
  2097152 && t !== (t = /*$_*/
303
- r[21]("loading") + "") && H(n, t);
303
+ r[21]("loading") + "") && q(n, t);
304
304
  },
305
305
  d(r) {
306
306
  r && j(e);
307
307
  }
308
308
  };
309
309
  }
310
- function ot(a) {
310
+ function st(a) {
311
311
  let e, t = (
312
312
  /*$_*/
313
313
  a[21]("searchResult") + ""
314
314
  ), n;
315
315
  return {
316
316
  c() {
317
- e = k("p"), n = q(t), f(e, "class", "SearchMessage");
317
+ e = C("p"), n = O(t), f(e, "class", "SearchMessage");
318
318
  },
319
319
  m(r, l) {
320
- E(r, e, l), _(e, n);
320
+ T(r, e, l), _(e, n);
321
321
  },
322
322
  p(r, l) {
323
323
  l[0] & /*$_*/
324
324
  2097152 && t !== (t = /*$_*/
325
- r[21]("searchResult") + "") && H(n, t);
325
+ r[21]("searchResult") + "") && q(n, t);
326
326
  },
327
327
  d(r) {
328
328
  r && j(e);
329
329
  }
330
330
  };
331
331
  }
332
- function st(a) {
332
+ function lt(a) {
333
333
  let e, t, n = (
334
334
  /*searchArray*/
335
335
  a[15].length !== 0 && Se(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 = N(), r && r.c(), t = Ce();
343
343
  },
344
344
  m(l, s) {
345
- n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, t, s);
345
+ n && n.m(l, s), T(l, e, s), r && r.m(l, s), T(l, t, s);
346
346
  },
347
347
  p(l, s) {
348
348
  /*searchArray*/
@@ -361,15 +361,15 @@ function Se(a) {
361
361
  ), n;
362
362
  return {
363
363
  c() {
364
- e = k("p"), n = q(t), f(e, "class", "SearchMessage");
364
+ e = C("p"), n = O(t), f(e, "class", "SearchMessage");
365
365
  },
366
366
  m(r, l) {
367
- E(r, e, l), _(e, n);
367
+ T(r, e, l), _(e, n);
368
368
  },
369
369
  p(r, l) {
370
370
  l[0] & /*$_*/
371
371
  2097152 && t !== (t = /*$_*/
372
- r[21]("recentSearch") + "") && H(n, t);
372
+ r[21]("recentSearch") + "") && q(n, t);
373
373
  },
374
374
  d(r) {
375
375
  r && j(e);
@@ -386,17 +386,17 @@ function _e(a) {
386
386
  );
387
387
  return {
388
388
  c() {
389
- e = k("div"), i && i.c(), t = N(), n = k("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
389
+ e = C("div"), i && i.c(), t = N(), n = C("p"), l = O(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
390
390
  (a[10] == "true" ? "WithIcon" : ""));
391
391
  },
392
392
  m(c, m) {
393
- E(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
393
+ T(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
394
394
  },
395
395
  p(c, m) {
396
396
  /*notfoundicon*/
397
397
  c[10] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
398
398
  2097152 && r !== (r = /*$_*/
399
- c[21]("noRecentSearches") + "") && H(l, r), m[0] & /*notfoundicon*/
399
+ c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
400
400
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
401
401
  (c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
402
402
  },
@@ -409,10 +409,10 @@ function be(a) {
409
409
  let e;
410
410
  return {
411
411
  c() {
412
- 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");
412
+ e = C("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
413
413
  },
414
414
  m(t, n) {
415
- E(t, e, n);
415
+ T(t, e, n);
416
416
  },
417
417
  d(t) {
418
418
  t && j(e);
@@ -430,12 +430,12 @@ function we(a) {
430
430
  c() {
431
431
  for (let r = 0; r < n.length; r += 1)
432
432
  n[r].c();
433
- e = Re();
433
+ e = Ce();
434
434
  },
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
- E(r, e, l);
438
+ T(r, e, l);
439
439
  },
440
440
  p(r, l) {
441
441
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
@@ -455,7 +455,7 @@ function we(a) {
455
455
  }
456
456
  },
457
457
  d(r) {
458
- r && j(e), $e(n, r);
458
+ r && j(e), et(n, r);
459
459
  }
460
460
  };
461
461
  }
@@ -463,7 +463,7 @@ function ve(a) {
463
463
  let e, t, n, r, l, s, i, c, m, h, g, w;
464
464
  return {
465
465
  c() {
466
- e = k("casino-game-thumbnail"), u(
466
+ e = C("casino-game-thumbnail"), u(
467
467
  e,
468
468
  "endpoint",
469
469
  /*endpoint*/
@@ -544,7 +544,7 @@ function ve(a) {
544
544
  );
545
545
  },
546
546
  m(d, p) {
547
- E(d, e, p);
547
+ T(d, e, p);
548
548
  },
549
549
  p(d, p) {
550
550
  p[0] & /*endpoint*/
@@ -668,19 +668,19 @@ function ye(a) {
668
668
  );
669
669
  return {
670
670
  c() {
671
- e = k("div"), g && g.c(), t = N(), n = k("p"), l = q(r), s = N(), i = k("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
671
+ e = C("div"), g && g.c(), t = N(), n = C("p"), l = O(r), s = N(), i = C("p"), m = O(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
672
672
  (a[10] == "true" ? "WithIcon" : ""));
673
673
  },
674
674
  m(w, d) {
675
- E(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
675
+ T(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
676
676
  },
677
677
  p(w, d) {
678
678
  /*notfoundicon*/
679
679
  w[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
680
680
  2097152 && r !== (r = /*$_*/
681
- w[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
681
+ w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
682
682
  2097152 && c !== (c = /*$_*/
683
- w[21]("notFoundText") + "") && H(m, c), d[0] & /*notfoundicon*/
683
+ w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
684
684
  1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
685
685
  (w[10] == "true" ? "WithIcon" : "")) && f(e, "class", h);
686
686
  },
@@ -693,32 +693,32 @@ function ke(a) {
693
693
  let e;
694
694
  return {
695
695
  c() {
696
- 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");
696
+ e = C("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
697
697
  },
698
698
  m(t, n) {
699
- E(t, e, n);
699
+ T(t, e, n);
700
700
  },
701
701
  d(t) {
702
702
  t && j(e);
703
703
  }
704
704
  };
705
705
  }
706
- function lt(a) {
706
+ function it(a) {
707
707
  let e, t, n, r, l, s, i, c, m, h, g, w, d, p, B, x, D, U, A, W, v = (
708
708
  /*cancelbutton*/
709
709
  a[9] === "true" && pe(a)
710
710
  );
711
- function G(b, T) {
711
+ function G(b, E) {
712
712
  return (
713
713
  /*isLoading*/
714
- b[18] ? rt : nt
714
+ b[18] ? ot : rt
715
715
  );
716
716
  }
717
- let M = G(a), R = M(a);
717
+ let M = G(a), k = M(a);
718
718
  return {
719
719
  c() {
720
- e = k("div"), t = k("div"), n = k("div"), r = k("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = k("input"), c = N(), m = k("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), B = N(), x = k("div"), U = 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(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "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", w = "SearchClearButton " + /*cancelbutton*/
720
+ e = C("div"), t = C("div"), n = C("div"), r = C("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = C("input"), c = N(), m = C("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), B = N(), x = C("div"), U = N(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
721
+ a[21]("placeHolderSearchGames")), f(s, "maxlength", ct), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "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", w = "SearchClearButton " + /*cancelbutton*/
722
722
  (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
723
723
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
724
724
  (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(x, "class", D = /*cancelbutton*/
@@ -727,12 +727,12 @@ function lt(a) {
727
727
  a[22]
728
728
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
729
729
  },
730
- m(b, T) {
731
- E(b, e, T), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
730
+ m(b, E) {
731
+ T(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
732
732
  s,
733
733
  /*searchValue*/
734
734
  a[12]
735
- ), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, B), _(e, x), _(e, U), R.m(e, null), a[37](e), A || (W = [
735
+ ), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, B), _(e, x), _(e, U), k.m(e, null), a[37](e), A || (W = [
736
736
  Z(
737
737
  s,
738
738
  "input",
@@ -759,38 +759,38 @@ function lt(a) {
759
759
  )
760
760
  ], A = !0);
761
761
  },
762
- p(b, T) {
763
- T[0] & /*$_*/
762
+ p(b, E) {
763
+ E[0] & /*$_*/
764
764
  2097152 && i !== (i = /*$_*/
765
- b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), T[0] & /*searchValue*/
765
+ b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
766
766
  4096 && s.value !== /*searchValue*/
767
767
  b[12] && ce(
768
768
  s,
769
769
  /*searchValue*/
770
770
  b[12]
771
- ), T[0] & /*cancelbutton, searchValue*/
771
+ ), E[0] & /*cancelbutton, searchValue*/
772
772
  4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
773
773
  (b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
774
774
  (b[12].length != 0 ? "" : "NotVisible")) && f(m, "class", w), /*cancelbutton*/
775
- b[9] === "true" ? v ? v.p(b, T) : (v = pe(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
775
+ b[9] === "true" ? v ? v.p(b, E) : (v = pe(b), 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), T[0] & /*cancelbutton*/
777
+ (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
778
778
  512 && D !== (D = /*cancelbutton*/
779
- b[9] != "true" ? "OverlayCancel" : "") && f(x, "class", D), M === (M = G(b)) && R ? R.p(b, T) : (R.d(1), R = M(b), R && (R.c(), R.m(e, null)));
779
+ b[9] != "true" ? "OverlayCancel" : "") && f(x, "class", D), M === (M = G(b)) && k ? k.p(b, E) : (k.d(1), k = M(b), k && (k.c(), k.m(e, null)));
780
780
  },
781
781
  i: ue,
782
782
  o: ue,
783
783
  d(b) {
784
- b && j(e), a[34](null), v && v.d(), R.d(), a[37](null), A = !1, Je(W);
784
+ b && j(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
785
785
  }
786
786
  };
787
787
  }
788
- let it = 50;
789
- function ct(a, e, t) {
788
+ let ct = 50;
789
+ function ut(a, e, t) {
790
790
  let n;
791
- Ze(a, et, (o) => t(21, n = o));
792
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, R = "", b, T = !0, V = !1, I = !1, P, Y = !1, X, K, ae = [];
793
- const Ce = () => {
791
+ Ze(a, tt, (o) => t(21, n = o));
792
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", b, E = !0, V = !1, I = !1, P, Y = !1, X, K, ae = [];
793
+ const Re = () => {
794
794
  fetch(B).then((S) => S.json()).then((S) => {
795
795
  Object.keys(S).forEach((y) => {
796
796
  me(y, S[y]);
@@ -805,20 +805,20 @@ function ct(a, e, t) {
805
805
  const ne = (o) => {
806
806
  o.data && o.data.type == "SearchedItemClicked" && Ge(o.data.gameId), o.data.type == "UserSessionID" && (t(19, X = o.data.session), t(20, K = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
807
807
  }, re = () => {
808
- if (t(13, T = !1), t(17, V = !0), r && l && c && R.length < 2) {
808
+ if (t(13, E = !1), t(17, V = !0), r && l && c && k.length < 2) {
809
809
  t(15, v = []);
810
810
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
811
811
  o && (S = o.split(","));
812
- let y = [], C = 0, F = S.length;
812
+ let y = [], R = 0, F = S.length;
813
813
  if (F > 0) {
814
- for (C = 0; C < F; C++) {
815
- let z = new URL(`${r}/v1/casino/games/${S[C]}`);
816
- z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", te(W)), y.push(Te(z, S[C]));
814
+ for (R = 0; R < F; R++) {
815
+ let z = new URL(`${r}/v1/casino/games/${S[R]}`);
816
+ z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", te(W)), y.push(Ee(z, S[R]));
817
817
  }
818
818
  Promise.all(y).then((z) => {
819
- z = z.filter(function(O) {
820
- return !!O;
821
- }), t(15, v = z.map((O) => (O.isFavorite = oe(O.id), O))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
819
+ z = z.filter(function(H) {
820
+ return !!H;
821
+ }), t(15, v = z.map((H) => (H.isFavorite = oe(H.id), H))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
822
822
  }).catch((z) => {
823
823
  J("searchError", "SearchWidget");
824
824
  });
@@ -830,18 +830,18 @@ function ct(a, e, t) {
830
830
  }, Fe = () => {
831
831
  D != "true" && Q();
832
832
  }, Le = (o) => new Promise((S, y) => {
833
- t(18, I = !0), fetch(o.href).then((C) => C.json()).then((C) => {
834
- t(18, I = !1), S(C);
835
- }).catch((C) => {
836
- t(18, I = !1), console.error(C), y(C);
833
+ t(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
834
+ t(18, I = !1), S(R);
835
+ }).catch((R) => {
836
+ t(18, I = !1), console.error(R), y(R);
837
837
  });
838
- }), Te = (o, S) => new Promise((y, C) => {
838
+ }), Ee = (o, S) => new Promise((y, R) => {
839
839
  t(18, I = !0), S && Object.keys(M).indexOf(S) >= 0 ? (t(18, I = !1), y(M[S])) : fetch(o).then((F) => F.json()).then((F) => {
840
840
  t(18, I = !1), F.error || (M[F[0].gameId] = F[0]), y(F[0]);
841
841
  }).catch((F) => {
842
- t(18, I = !1), console.error(F), C(F);
842
+ t(18, I = !1), console.error(F), R(F);
843
843
  });
844
- }), Ee = () => {
844
+ }), Te = () => {
845
845
  const o = new URL(`${r}/v1/player/${K}/favorites/`);
846
846
  t(18, I = !0);
847
847
  let S = {
@@ -849,18 +849,18 @@ function ct(a, e, t) {
849
849
  headers: { "X-SessionID": X }
850
850
  };
851
851
  fetch(o.href, S).then((y) => y.json()).then((y) => {
852
- t(18, I = !1), ae = y.items.map((C) => C.id);
852
+ t(18, I = !1), ae = y.items.map((R) => R.id);
853
853
  });
854
854
  }, je = () => {
855
855
  t(32, Y = !0), t(19, X = s), t(20, K = i);
856
856
  }, oe = (o) => ae.findIndex((S) => S == o) !== -1, ze = (o) => {
857
857
  if (o?.length === 0)
858
858
  return "";
859
- let S, y = 99999999999, C;
859
+ let S, y = 99999999999, R;
860
860
  const F = new Date(Date.now());
861
- return o.forEach((z, O) => {
861
+ return o.forEach((z, H) => {
862
862
  const Be = new Date(z.schedules[0].startTime), ee = new Date(z.schedules[0].endTime);
863
- $(ee).diff(F) < y && (y = $(ee).diff(F), C = O), $(F).isAfter(Be) && $(F).isBefore(ee) && (S = o[C].name);
863
+ $(ee).diff(F) < y && (y = $(ee).diff(F), R = H), $(F).isAfter(Be) && $(F).isBefore(ee) && (S = o[R].name);
864
864
  }), S;
865
865
  }, Ge = (o) => {
866
866
  if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
@@ -868,9 +868,9 @@ function ct(a, e, t) {
868
868
  G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
869
869
  }
870
870
  }, Q = () => {
871
- t(12, R = ""), t(13, T = !0), t(18, I = !1), t(15, v = []), t(17, V = !1), le(V);
871
+ t(12, k = ""), t(13, E = !0), t(18, I = !1), t(15, v = []), t(17, V = !1), le(V);
872
872
  }, se = () => {
873
- t(12, R = ""), b.focus();
873
+ t(12, k = ""), b.focus();
874
874
  }, le = (o) => {
875
875
  window.postMessage(
876
876
  {
@@ -880,13 +880,13 @@ function ct(a, e, t) {
880
880
  window.location.href
881
881
  );
882
882
  }, Ie = () => {
883
- tt(c);
883
+ at(c);
884
884
  };
885
885
  Ye(() => (window.addEventListener("message", ne, !1), () => {
886
886
  window.removeEventListener("message", ne);
887
887
  }));
888
888
  function Ne() {
889
- R = this.value, t(12, R);
889
+ k = this.value, t(12, k);
890
890
  }
891
891
  function xe(o) {
892
892
  he[o ? "unshift" : "push"](() => {
@@ -904,22 +904,22 @@ function ct(a, e, t) {
904
904
  }, a.$$.update = () => {
905
905
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
906
906
  268447747)
907
- if (R.length >= 2) {
907
+ if (k.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(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Le(o).then((S) => {
910
- t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
909
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Le(o).then((S) => {
910
+ Xe("game_search", { searchValue: k }), t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
911
911
  });
912
912
  } else
913
- T || re();
913
+ E || re();
914
914
  a.$$.dirty[0] & /*lang*/
915
915
  2 && c && Ie(), a.$$.dirty[1] & /*translationurl*/
916
- 1 && B && Ce(), a.$$.dirty[0] & /*session, userid*/
916
+ 1 && B && Re(), a.$$.dirty[0] & /*session, userid*/
917
917
  1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
918
918
  256 | a.$$.dirty[1] & /*isLoggedIn*/
919
- 2 && x && Y && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
- 16388 && m && P && Ke(P, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
- 16392 && h && P && Xe(P, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
922
- 18432 && P && Qe(P, `${A}.Style`);
919
+ 2 && x && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
+ 16388 && m && P && Qe(P, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
+ 16392 && h && P && Ke(P, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
922
+ 18432 && P && $e(P, `${A}.Style`);
923
923
  }, [
924
924
  r,
925
925
  c,
@@ -933,8 +933,8 @@ function ct(a, e, t) {
933
933
  D,
934
934
  U,
935
935
  A,
936
- R,
937
- T,
936
+ k,
937
+ E,
938
938
  P,
939
939
  v,
940
940
  b,
@@ -961,13 +961,13 @@ function ct(a, e, t) {
961
961
  Me
962
962
  ];
963
963
  }
964
- class ut extends He {
964
+ class ht extends qe {
965
965
  constructor(e) {
966
966
  super(), We(
967
967
  this,
968
968
  e,
969
- ct,
970
- lt,
969
+ ut,
970
+ it,
971
971
  Ue,
972
972
  {
973
973
  endpoint: 0,
@@ -987,7 +987,7 @@ class ut extends He {
987
987
  notfoundicon: 10,
988
988
  mbsource: 11
989
989
  },
990
- at,
990
+ nt,
991
991
  [-1, -1]
992
992
  );
993
993
  }
@@ -1088,7 +1088,7 @@ class ut extends He {
1088
1088
  this.$$set({ mbsource: e }), L();
1089
1089
  }
1090
1090
  }
1091
- qe(ut, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1091
+ Oe(ht, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1092
1092
  export {
1093
- ut as C
1093
+ ht as C
1094
1094
  };