@everymatrix/casino-navigation-search 1.94.57 → 1.94.59

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.
Files changed (22) hide show
  1. package/components/{CasinoCategories-DPlQAMMs.js → CasinoCategories-0z95Zr6X.js} +2 -2
  2. package/components/{CasinoCategories-DPZ9O23N.cjs → CasinoCategories-BlfPG0x2.cjs} +1 -1
  3. package/components/{CasinoCategories-DUHuUF3Y.js → CasinoCategories-DUXogC3c.js} +2 -2
  4. package/components/{CasinoCategoriesProviders-DnAFzl9y.js → CasinoCategoriesProviders-CLfVa__L.js} +4 -4
  5. package/components/{CasinoCategoriesProviders-b868yoe6.cjs → CasinoCategoriesProviders-DxKmwl6e.cjs} +1 -1
  6. package/components/{CasinoCategoriesProviders-AZK-LyHz.js → CasinoCategoriesProviders-sy4CqkL0.js} +4 -4
  7. package/components/{CasinoGameThumbnail-CxoRJp_b.cjs → CasinoGameThumbnail-BHm_y5d3.cjs} +1 -1
  8. package/components/{CasinoGameThumbnail-BmHSvVP3.js → CasinoGameThumbnail-BUO6p3jL.js} +2 -2
  9. package/components/{CasinoGameThumbnail-BMUwvi16.js → CasinoGameThumbnail-DPH_lsJ4.js} +2 -2
  10. package/components/{CasinoNavigationSearch-D2TFQtTD.js → CasinoNavigationSearch-Chy4UUVM.js} +2 -2
  11. package/components/{CasinoNavigationSearch-CCkQbdS5.js → CasinoNavigationSearch-D1kW0fKC.js} +2 -2
  12. package/components/{CasinoNavigationSearch-CvEgXDMX.cjs → CasinoNavigationSearch-T97ixxPr.cjs} +1 -1
  13. package/components/{CasinoProviders-B9qHUUqw.cjs → CasinoProviders-CMVS-Ewf.cjs} +1 -1
  14. package/components/{CasinoProviders-COFyT8ms.js → CasinoProviders-ZNNE6KdV.js} +2 -2
  15. package/components/{CasinoProviders-Ba3olyJg.js → CasinoProviders-cGkzaAkJ.js} +2 -2
  16. package/components/{CasinoSearch-DAbJt683.cjs → CasinoSearch-B-URKwds.cjs} +2 -2
  17. package/components/{CasinoSearch-B8ruAPZm.js → CasinoSearch-Czy2BrGR.js} +74 -74
  18. package/components/{CasinoSearch-y9Hu7PaC.js → CasinoSearch-Du5QvUcO.js} +74 -74
  19. package/es2015/casino-navigation-search.cjs +1 -1
  20. package/es2015/casino-navigation-search.js +1 -1
  21. package/esnext/casino-navigation-search.js +1 -1
  22. package/package.json +1 -1
@@ -14,7 +14,7 @@ var bt = (e, t, r) => new Promise((n, i) => {
14
14
  }, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(a, o);
15
15
  s((r = r.apply(e, t)).next());
16
16
  });
17
- import { n as K, s as er, a as Yr, r as tr, i as Kr, S as $r, b as en, f as N, c as tn, d as G, e as b, g as vt, h as F, j as x, l as ne, k as P, m as X, o as yt, p as rn, q as nn, t as $, u as ee, v as _t, w as St, x as an, y as rr, z as g, A as on, B as sn, C as un, D as ln } from "./CasinoNavigationSearch-CCkQbdS5.js";
17
+ import { n as K, s as er, a as Yr, r as tr, i as Kr, S as $r, b as en, f as N, c as tn, d as G, e as b, g as vt, h as F, j as x, l as ne, k as A, m as X, o as yt, p as rn, q as nn, t as $, u as ee, v as _t, w as St, x as an, y as rr, z as g, A as on, B as sn, C as un, D as ln } from "./CasinoNavigationSearch-D1kW0fKC.js";
18
18
  const re = [];
19
19
  function hn(e, t) {
20
20
  return {
@@ -65,8 +65,8 @@ function le(e, t, r) {
65
65
  }, p = i.map(
66
66
  (d, v) => Yr(
67
67
  d,
68
- (A) => {
69
- h[v] = A, l &= ~(1 << v), u && m();
68
+ (C) => {
69
+ h[v] = C, l &= ~(1 << v), u && m();
70
70
  },
71
71
  () => {
72
72
  l |= 1 << v;
@@ -389,15 +389,15 @@ function Gn(e) {
389
389
  return "";
390
390
  }), t;
391
391
  }
392
- var H = function() {
393
- return H = Object.assign || function(t) {
392
+ var B = function() {
393
+ return B = Object.assign || function(t) {
394
394
  for (var r, n = 1, i = arguments.length; n < i; n++) {
395
395
  r = arguments[n];
396
396
  for (var a in r)
397
397
  Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
398
398
  }
399
399
  return t;
400
- }, H.apply(this, arguments);
400
+ }, B.apply(this, arguments);
401
401
  };
402
402
  var Fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
403
403
  function Un(e) {
@@ -521,13 +521,13 @@ function zn(e) {
521
521
  t.notation = "compact", t.compactDisplay = "long";
522
522
  continue;
523
523
  case "scientific":
524
- t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
525
- return H(H({}, u), Ht(h));
524
+ t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
525
+ return B(B({}, u), Ht(h));
526
526
  }, {}));
527
527
  continue;
528
528
  case "engineering":
529
- t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
530
- return H(H({}, u), Ht(h));
529
+ t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
530
+ return B(B({}, u), Ht(h));
531
531
  }, {}));
532
532
  continue;
533
533
  case "notation-simple":
@@ -596,17 +596,17 @@ function zn(e) {
596
596
  return l === "*" ? t.minimumFractionDigits = h.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
597
597
  });
598
598
  var a = i.options[0];
599
- a === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = H(H({}, t), Tt(a)));
599
+ a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), Tt(a)));
600
600
  continue;
601
601
  }
602
602
  if (pr.test(i.stem)) {
603
- t = H(H({}, t), Tt(i.stem));
603
+ t = B(B({}, t), Tt(i.stem));
604
604
  continue;
605
605
  }
606
606
  var o = gr(i.stem);
607
- o && (t = H(H({}, t), o));
607
+ o && (t = B(B({}, t), o));
608
608
  var s = Vn(i.stem);
609
- s && (t = H(H({}, t), s));
609
+ s && (t = B(B({}, t), s));
610
610
  }
611
611
  return t;
612
612
  }
@@ -2376,18 +2376,18 @@ var oi = (
2376
2376
  return d;
2377
2377
  var v = _(i, this.clonePosition());
2378
2378
  if (h && Bt(h == null ? void 0 : h.style, "::", 0)) {
2379
- var A = ii(h.style.slice(2));
2379
+ var C = ii(h.style.slice(2));
2380
2380
  if (s === "number") {
2381
- var f = this.parseNumberSkeletonFromString(A, h.styleLocation);
2381
+ var f = this.parseNumberSkeletonFromString(C, h.styleLocation);
2382
2382
  return f.err ? f : {
2383
2383
  val: { type: T.number, value: n, location: v, style: f.val },
2384
2384
  err: null
2385
2385
  };
2386
2386
  } else {
2387
- if (A.length === 0)
2387
+ if (C.length === 0)
2388
2388
  return this.error(y.EXPECT_DATE_TIME_SKELETON, v);
2389
- var U = A;
2390
- this.locale && (U = Wn(A, this.locale));
2389
+ var U = C;
2390
+ this.locale && (U = Wn(C, this.locale));
2391
2391
  var m = {
2392
2392
  type: ae.dateTime,
2393
2393
  pattern: U,
@@ -2769,10 +2769,10 @@ function Te(e, t, r, n, i, a, o) {
2769
2769
  continue;
2770
2770
  }
2771
2771
  if (cr(l)) {
2772
- var d = l.children, v = l.value, A = i[v];
2773
- if (!pi(A))
2772
+ var d = l.children, v = l.value, C = i[v];
2773
+ if (!pi(C))
2774
2774
  throw new ci(v, "function", o);
2775
- var U = Te(d, t, r, n, i, a), k = A(U.map(function(E) {
2775
+ var U = Te(d, t, r, n, i, a), k = C(U.map(function(E) {
2776
2776
  return E.value;
2777
2777
  }));
2778
2778
  Array.isArray(k) || (k = [k]), s.push.apply(s, k.map(function(E) {
@@ -4004,7 +4004,7 @@ if (typeof window != "undefined") {
4004
4004
  }
4005
4005
  };
4006
4006
  };
4007
- customElements.define = e(customElements.define), import("./CasinoGameThumbnail-BmHSvVP3.js").then(({ default: t }) => {
4007
+ customElements.define = e(customElements.define), import("./CasinoGameThumbnail-BUO6p3jL.js").then(({ default: t }) => {
4008
4008
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", t.element);
4009
4009
  });
4010
4010
  }
@@ -4052,7 +4052,7 @@ function Xt(e) {
4052
4052
  ), n, i, a, o;
4053
4053
  return {
4054
4054
  c() {
4055
- t = P("small"), n = ee(r), b(t, "class", i = "SearchCancelButton " + /*searchCancelled*/
4055
+ t = A("small"), n = ee(r), b(t, "class", i = "SearchCancelButton " + /*searchCancelled*/
4056
4056
  (e[16] ? "NotVisible" : ""));
4057
4057
  },
4058
4058
  m(s, u) {
@@ -4100,7 +4100,7 @@ function ba(e) {
4100
4100
  );
4101
4101
  return {
4102
4102
  c() {
4103
- s && s.c(), t = X(), r = P("div"), u && u.c(), n = X(), h && h.c(), b(r, "class", i = "SearchResultsContainer " + /*searchActive*/
4103
+ s && s.c(), t = X(), r = A("div"), u && u.c(), n = X(), h && h.c(), b(r, "class", i = "SearchResultsContainer " + /*searchActive*/
4104
4104
  (e[17] == !0 ? "" : "NotVisible"));
4105
4105
  },
4106
4106
  m(l, f) {
@@ -4126,7 +4126,7 @@ function va(e) {
4126
4126
  ), n;
4127
4127
  return {
4128
4128
  c() {
4129
- t = P("p"), n = ee(r), b(t, "class", "LoadingContent");
4129
+ t = A("p"), n = ee(r), b(t, "class", "LoadingContent");
4130
4130
  },
4131
4131
  m(i, a) {
4132
4132
  F(i, t, a), x(t, n);
@@ -4148,7 +4148,7 @@ function ya(e) {
4148
4148
  ), n;
4149
4149
  return {
4150
4150
  c() {
4151
- t = P("p"), n = ee(r), b(t, "class", "SearchMessage");
4151
+ t = A("p"), n = ee(r), b(t, "class", "SearchMessage");
4152
4152
  },
4153
4153
  m(i, a) {
4154
4154
  F(i, t, a), x(t, n);
@@ -4195,7 +4195,7 @@ function qt(e) {
4195
4195
  ), n;
4196
4196
  return {
4197
4197
  c() {
4198
- t = P("p"), n = ee(r), b(t, "class", "SearchMessage");
4198
+ t = A("p"), n = ee(r), b(t, "class", "SearchMessage");
4199
4199
  },
4200
4200
  m(i, a) {
4201
4201
  F(i, t, a), x(t, n);
@@ -4220,7 +4220,7 @@ function Zt(e) {
4220
4220
  );
4221
4221
  return {
4222
4222
  c() {
4223
- t = P("div"), s && s.c(), r = X(), n = P("p"), a = ee(i), b(n, "class", "SearchMessage"), b(t, "class", o = "ResultsContainerError " + /*notfoundicon*/
4223
+ t = A("div"), s && s.c(), r = X(), n = A("p"), a = ee(i), b(n, "class", "SearchMessage"), b(t, "class", o = "ResultsContainerError " + /*notfoundicon*/
4224
4224
  (e[10] == "true" ? "WithIcon" : ""));
4225
4225
  },
4226
4226
  m(u, h) {
@@ -4243,7 +4243,7 @@ function Jt(e) {
4243
4243
  let t;
4244
4244
  return {
4245
4245
  c() {
4246
- t = P("div"), t.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>', b(t, "class", "SearchErrorIcon");
4246
+ t = A("div"), t.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>', b(t, "class", "SearchErrorIcon");
4247
4247
  },
4248
4248
  m(r, n) {
4249
4249
  F(r, t, n);
@@ -4298,7 +4298,7 @@ function Yt(e) {
4298
4298
  return {
4299
4299
  c() {
4300
4300
  var p;
4301
- t = P("casino-game-thumbnail"), g(
4301
+ t = A("casino-game-thumbnail"), g(
4302
4302
  t,
4303
4303
  "endpoint",
4304
4304
  /*endpoint*/
@@ -4504,7 +4504,7 @@ function Kt(e) {
4504
4504
  );
4505
4505
  return {
4506
4506
  c() {
4507
- t = P("div"), f && f.c(), r = X(), n = P("p"), a = ee(i), o = X(), s = P("p"), h = ee(u), b(n, "class", "SearchMessage"), b(t, "class", l = "ResultsContainerError " + /*notfoundicon*/
4507
+ t = A("div"), f && f.c(), r = X(), n = A("p"), a = ee(i), o = X(), s = A("p"), h = ee(u), b(n, "class", "SearchMessage"), b(t, "class", l = "ResultsContainerError " + /*notfoundicon*/
4508
4508
  (e[10] == "true" ? "WithIcon" : ""));
4509
4509
  },
4510
4510
  m(m, p) {
@@ -4529,7 +4529,7 @@ function $t(e) {
4529
4529
  let t;
4530
4530
  return {
4531
4531
  c() {
4532
- t = P("div"), t.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>', b(t, "class", "SearchErrorIcon");
4532
+ t = A("div"), t.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>', b(t, "class", "SearchErrorIcon");
4533
4533
  },
4534
4534
  m(r, n) {
4535
4535
  F(r, t, n);
@@ -4540,7 +4540,7 @@ function $t(e) {
4540
4540
  };
4541
4541
  }
4542
4542
  function Sa(e) {
4543
- let t, r, n, i, a, o, s, u, h, l, f, m, p, d, v, A, U, k, O, j, E = (
4543
+ let t, r, n, i, a, o, s, u, h, l, f, m, p, d, v, C, U, k, O, j, E = (
4544
4544
  /*cancelbutton*/
4545
4545
  e[9] === "true" && Xt(e)
4546
4546
  );
@@ -4550,14 +4550,14 @@ function Sa(e) {
4550
4550
  w[18] ? va : ba
4551
4551
  );
4552
4552
  }
4553
- let z = L(e), C = z(e);
4553
+ let z = L(e), I = z(e);
4554
4554
  return {
4555
4555
  c() {
4556
- t = P("div"), r = P("div"), n = P("div"), i = P("div"), i.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>', a = X(), o = P("input"), u = X(), h = P("span"), l = yt("svg"), f = yt("path"), p = X(), E && E.c(), v = X(), A = P("div"), k = X(), C.c(), b(i, "class", "SearchIcon"), b(o, "class", "SearchInput"), b(o, "type", "search"), b(o, "placeholder", s = /*$_*/
4556
+ t = A("div"), r = A("div"), n = A("div"), i = A("div"), i.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>', a = X(), o = A("input"), u = X(), h = A("span"), l = yt("svg"), f = yt("path"), p = X(), E && E.c(), v = X(), C = A("div"), k = X(), I.c(), b(i, "class", "SearchIcon"), b(o, "class", "SearchInput"), b(o, "type", "search"), b(o, "placeholder", s = /*$_*/
4557
4557
  e[21]("placeHolderSearchGames")), b(o, "maxlength", Ea), b(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), b(f, "stroke", "#717171"), b(f, "stroke-width", "2"), b(f, "stroke-linecap", "round"), b(f, "stroke-linejoin", "round"), b(l, "width", "11"), b(l, "height", "11"), b(l, "fill", "none"), b(l, "xmlns", "http://www.w3.org/2000/svg"), b(h, "class", m = "SearchClearButton " + /*cancelbutton*/
4558
4558
  (e[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
4559
4559
  (e[14].length != 0 ? "" : "NotVisible")), b(n, "class", d = "Search " + /*searchCancelled*/
4560
- (e[16] ? "" : "SearchAnimation")), b(r, "class", "SearchWrap"), b(A, "class", U = /*cancelbutton*/
4560
+ (e[16] ? "" : "SearchAnimation")), b(r, "class", "SearchWrap"), b(C, "class", U = /*cancelbutton*/
4561
4561
  e[9] != "true" ? "OverlayCancel" : ""), b(t, "class", (st(
4562
4562
  /*userAgent*/
4563
4563
  e[22]
@@ -4568,7 +4568,7 @@ function Sa(e) {
4568
4568
  o,
4569
4569
  /*searchValue*/
4570
4570
  e[14]
4571
- ), e[35](o), x(n, u), x(n, h), x(h, l), x(l, f), x(n, p), E && E.m(n, null), x(t, v), x(t, A), x(t, k), C.m(t, null), e[38](t), O || (j = [
4571
+ ), e[35](o), x(n, u), x(n, h), x(h, l), x(l, f), x(n, p), E && E.m(n, null), x(t, v), x(t, C), x(t, k), I.m(t, null), e[38](t), O || (j = [
4572
4572
  ne(
4573
4573
  o,
4574
4574
  "input",
@@ -4594,7 +4594,7 @@ function Sa(e) {
4594
4594
  e[36]
4595
4595
  ),
4596
4596
  ne(
4597
- A,
4597
+ C,
4598
4598
  "click",
4599
4599
  /*handleOverlay*/
4600
4600
  e[24]
@@ -4618,12 +4618,12 @@ function Sa(e) {
4618
4618
  65536 && d !== (d = "Search " + /*searchCancelled*/
4619
4619
  (w[16] ? "" : "SearchAnimation")) && b(n, "class", d), M[0] & /*cancelbutton*/
4620
4620
  512 && U !== (U = /*cancelbutton*/
4621
- w[9] != "true" ? "OverlayCancel" : "") && b(A, "class", U), z === (z = L(w)) && C ? C.p(w, M) : (C.d(1), C = z(w), C && (C.c(), C.m(t, null)));
4621
+ w[9] != "true" ? "OverlayCancel" : "") && b(C, "class", U), z === (z = L(w)) && I ? I.p(w, M) : (I.d(1), I = z(w), I && (I.c(), I.m(t, null)));
4622
4622
  },
4623
4623
  i: K,
4624
4624
  o: K,
4625
4625
  d(w) {
4626
- w && G(t), e[35](null), E && E.d(), C.d(), e[38](null), O = !1, tr(j);
4626
+ w && G(t), e[35](null), E && E.d(), I.d(), e[38](null), O = !1, tr(j);
4627
4627
  }
4628
4628
  };
4629
4629
  }
@@ -4631,11 +4631,11 @@ let Ea = 50;
4631
4631
  function xa(e, t, r) {
4632
4632
  let n;
4633
4633
  rn(e, Yi, (c) => r(21, n = c));
4634
- let { endpoint: i = "" } = t, { datasource: a = "" } = t, { session: o = "" } = t, { userid: s = "" } = t, { lang: u = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { integratedgameframedesktop: f = "false" } = t, { integratedgameframemobile: m = "false" } = t, { showgamename: p = "" } = t, { gamepagemodalurl: d = "true" } = t, { translationurl: v = "" } = t, { showfavorites: A = "" } = t, { cancelbutton: U = "true" } = t, { notfoundicon: k = "false" } = t, { mbsource: O } = t, j = window.navigator.userAgent, E = [], L = [], z = {}, C = "", w, M = !0, fe = !1, W = !1, Z, ye = !1, _e, Se, ct = [], Lr;
4634
+ let { endpoint: i = "" } = t, { datasource: a = "" } = t, { session: o = "" } = t, { userid: s = "" } = t, { lang: u = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { integratedgameframedesktop: f = "false" } = t, { integratedgameframemobile: m = "false" } = t, { showgamename: p = "" } = t, { gamepagemodalurl: d = "true" } = t, { translationurl: v = "" } = t, { showfavorites: C = "" } = t, { cancelbutton: U = "true" } = t, { notfoundicon: k = "false" } = t, { mbsource: O } = t, j = window.navigator.userAgent, E = [], L = [], z = {}, I = "", w, M = !0, fe = !1, W = !1, Z, ye = !1, _e, Se, ct = [], Lr;
4635
4635
  const Nr = () => {
4636
4636
  fetch(v).then((S) => S.json()).then((S) => {
4637
- Object.keys(S).forEach((B) => {
4638
- Nt(B, S[B]);
4637
+ Object.keys(S).forEach((P) => {
4638
+ Nt(P, S[P]);
4639
4639
  });
4640
4640
  }).catch((S) => {
4641
4641
  console.log(S);
@@ -4647,17 +4647,17 @@ function xa(e, t, r) {
4647
4647
  const ft = (c) => {
4648
4648
  c.data && c.data.type == "SearchedItemClicked" && jr(c.data.gameId), c.data.type == "UserSessionID" && (r(19, _e = c.data.session), r(20, Se = c.data.userid), r(33, ye = !0)), c.data.type == "CategoryChange" && Ee();
4649
4649
  }, mt = () => {
4650
- if (r(16, M = !1), r(17, fe = !0), i && a && u && C.length < 2) {
4650
+ if (r(16, M = !1), r(17, fe = !0), i && a && u && I.length < 2) {
4651
4651
  r(13, E = []);
4652
4652
  let c = localStorage.getItem("searchedGamesWds_casino"), S = [];
4653
4653
  c && (S = c.split(","));
4654
- let B = [], I = 0, R = S.length;
4654
+ let P = [], H = 0, R = S.length;
4655
4655
  if (R > 0) {
4656
- for (I = 0; I < R; I++) {
4657
- let V = new URL(`${i}/v1/casino/games/${S[I]}`);
4658
- V.searchParams.append("language", u), V.searchParams.append("datasource", a), V.searchParams.append("platform", st(j)), B.push(Gr(V, S[I]));
4656
+ for (H = 0; H < R; H++) {
4657
+ let V = new URL(`${i}/v1/casino/games/${S[H]}`);
4658
+ V.searchParams.append("language", u), V.searchParams.append("datasource", a), V.searchParams.append("platform", st(j)), P.push(Gr(V, S[H]));
4659
4659
  }
4660
- Promise.all(B).then((V) => {
4660
+ Promise.all(P).then((V) => {
4661
4661
  V = V.filter(function(Y) {
4662
4662
  return !!Y;
4663
4663
  }), r(13, E = V.map((Y) => (Y.isFavorite = pt(Y.id), Y))), E.length ? me("searchSuccess", "SearchWidget") : me("searchFail", "SearchWidget");
@@ -4671,17 +4671,17 @@ function xa(e, t, r) {
4671
4671
  typeof gtag == "function" && gtag("event", c, { context: S });
4672
4672
  }, Mr = () => {
4673
4673
  U != "true" && Ee();
4674
- }, Dr = (c) => new Promise((S, B) => {
4675
- r(18, W = !0), fetch(c.href).then((I) => I.json()).then((I) => {
4676
- r(18, W = !1), S(I);
4677
- }).catch((I) => {
4678
- r(18, W = !1), console.error(I), B(I);
4674
+ }, Dr = (c) => new Promise((S, P) => {
4675
+ r(18, W = !0), fetch(c.href).then((H) => H.json()).then((H) => {
4676
+ r(18, W = !1), S(H);
4677
+ }).catch((H) => {
4678
+ r(18, W = !1), console.error(H), P(H);
4679
4679
  });
4680
- }), Gr = (c, S) => new Promise((B, I) => {
4681
- r(18, W = !0), S && Object.keys(z).indexOf(S) >= 0 ? (r(18, W = !1), B(z[S])) : fetch(c).then((R) => R.json()).then((R) => {
4682
- r(18, W = !1), R.error || (z[R[0].gameId] = R[0]), B(R[0]);
4680
+ }), Gr = (c, S) => new Promise((P, H) => {
4681
+ r(18, W = !0), S && Object.keys(z).indexOf(S) >= 0 ? (r(18, W = !1), P(z[S])) : fetch(c).then((R) => R.json()).then((R) => {
4682
+ r(18, W = !1), R.error || (z[R[0].gameId] = R[0]), P(R[0]);
4683
4683
  }).catch((R) => {
4684
- r(18, W = !1), console.error(R), I(R);
4684
+ r(18, W = !1), console.error(R), H(R);
4685
4685
  });
4686
4686
  }), Fr = () => {
4687
4687
  const c = new URL(`${i}/v1/player/${Se}/favorites/`);
@@ -4690,19 +4690,19 @@ function xa(e, t, r) {
4690
4690
  method: "GET",
4691
4691
  headers: { "X-SessionID": _e }
4692
4692
  };
4693
- fetch(c.href, S).then((B) => B.json()).then((B) => {
4694
- r(18, W = !1), ct = B.items.map((I) => I.id);
4693
+ fetch(c.href, S).then((P) => P.json()).then((P) => {
4694
+ r(18, W = !1), ct = P.items.map((H) => H.id);
4695
4695
  });
4696
4696
  }, Ur = () => {
4697
4697
  r(33, ye = !0), r(19, _e = o), r(20, Se = s);
4698
4698
  }, pt = (c) => ct.findIndex((S) => S == c) !== -1, kr = (c) => {
4699
4699
  if ((c == null ? void 0 : c.length) === 0)
4700
4700
  return "";
4701
- let S, B = 99999999999, I;
4701
+ let S, P = 99999999999, H;
4702
4702
  const R = new Date(Date.now());
4703
4703
  return c.forEach((V, Y) => {
4704
4704
  const Qr = new Date(V.schedules[0].startTime), Ge = new Date(V.schedules[0].endTime);
4705
- zt(new Date(Ge), new Date(R)) < B && (B = zt(new Date(Ge), new Date(R)), I = Y), pa(new Date(R), new Date(Qr)) && da(new Date(R), new Date(Ge)) && (S = c[I].name);
4705
+ zt(new Date(Ge), new Date(R)) < P && (P = zt(new Date(Ge), new Date(R)), H = Y), pa(new Date(R), new Date(Qr)) && da(new Date(R), new Date(Ge)) && (S = c[H].name);
4706
4706
  }), S;
4707
4707
  }, jr = (c) => {
4708
4708
  if (L = localStorage.getItem("searchedGamesWds_casino"), L ? L = L.split(",") : L = [], L.indexOf(c) === -1) {
@@ -4710,9 +4710,9 @@ function xa(e, t, r) {
4710
4710
  L.unshift(c), S = L.join(","), localStorage.setItem("searchedGamesWds_casino", S);
4711
4711
  }
4712
4712
  }, Ee = () => {
4713
- r(14, C = ""), r(16, M = !0), r(18, W = !1), r(13, E = []), r(17, fe = !1), gt(fe);
4713
+ r(14, I = ""), r(16, M = !0), r(18, W = !1), r(13, E = []), r(17, fe = !1), gt(fe);
4714
4714
  }, dt = () => {
4715
- r(14, C = ""), w.focus();
4715
+ r(14, I = ""), w.focus();
4716
4716
  }, gt = (c) => {
4717
4717
  window.postMessage(
4718
4718
  {
@@ -4724,10 +4724,10 @@ function xa(e, t, r) {
4724
4724
  }, Vr = () => {
4725
4725
  Ki(u);
4726
4726
  }, zr = ma(() => bt(this, null, function* () {
4727
- if (C.length >= 2) {
4728
- const c = new URL(`${i}/v1/casino/games`);
4729
- c.searchParams.append("datasource", a), c.searchParams.append("expand", "vendor"), c.searchParams.append("platform", st(j)), c.searchParams.append("language", u), c.searchParams.append("pagination", "offset=0,limit=30"), c.searchParams.append("filter", `name=${C}`), Dr(c).then((S) => {
4730
- r(13, E = S.items.map((B) => (B.isFavorite = pt(B.id), B)));
4727
+ if (I.length >= 2) {
4728
+ const c = new URL(`${i}/v1/casino/games`), S = I.trim().split(/[\s,.]+/).filter(Boolean);
4729
+ c.searchParams.append("datasource", a), c.searchParams.append("expand", "vendor"), c.searchParams.append("platform", st(j)), c.searchParams.append("language", u), c.searchParams.append("pagination", "offset=0,limit=30"), c.searchParams.append("filter", S.map((P) => `name=${P}`).join(",")), Dr(c).then((P) => {
4730
+ r(13, E = P.items.map((H) => (H.isFavorite = pt(H.id), H)));
4731
4731
  });
4732
4732
  } else
4733
4733
  M || mt();
@@ -4736,7 +4736,7 @@ function xa(e, t, r) {
4736
4736
  window.removeEventListener("message", ft);
4737
4737
  }));
4738
4738
  function Wr() {
4739
- C = this.value, r(14, C);
4739
+ I = this.value, r(14, I);
4740
4740
  }
4741
4741
  function Xr(c) {
4742
4742
  _t[c ? "unshift" : "push"](() => {
@@ -4750,7 +4750,7 @@ function xa(e, t, r) {
4750
4750
  });
4751
4751
  }
4752
4752
  return e.$$set = (c) => {
4753
- "endpoint" in c && r(0, i = c.endpoint), "datasource" in c && r(29, a = c.datasource), "session" in c && r(30, o = c.session), "userid" in c && r(31, s = c.userid), "lang" in c && r(1, u = c.lang), "clientstyling" in c && r(2, h = c.clientstyling), "clientstylingurl" in c && r(3, l = c.clientstylingurl), "integratedgameframedesktop" in c && r(4, f = c.integratedgameframedesktop), "integratedgameframemobile" in c && r(5, m = c.integratedgameframemobile), "showgamename" in c && r(6, p = c.showgamename), "gamepagemodalurl" in c && r(7, d = c.gamepagemodalurl), "translationurl" in c && r(32, v = c.translationurl), "showfavorites" in c && r(8, A = c.showfavorites), "cancelbutton" in c && r(9, U = c.cancelbutton), "notfoundicon" in c && r(10, k = c.notfoundicon), "mbsource" in c && r(11, O = c.mbsource);
4753
+ "endpoint" in c && r(0, i = c.endpoint), "datasource" in c && r(29, a = c.datasource), "session" in c && r(30, o = c.session), "userid" in c && r(31, s = c.userid), "lang" in c && r(1, u = c.lang), "clientstyling" in c && r(2, h = c.clientstyling), "clientstylingurl" in c && r(3, l = c.clientstylingurl), "integratedgameframedesktop" in c && r(4, f = c.integratedgameframedesktop), "integratedgameframemobile" in c && r(5, m = c.integratedgameframemobile), "showgamename" in c && r(6, p = c.showgamename), "gamepagemodalurl" in c && r(7, d = c.gamepagemodalurl), "translationurl" in c && r(32, v = c.translationurl), "showfavorites" in c && r(8, C = c.showfavorites), "cancelbutton" in c && r(9, U = c.cancelbutton), "notfoundicon" in c && r(10, k = c.notfoundicon), "mbsource" in c && r(11, O = c.mbsource);
4754
4754
  }, e.$$.update = () => {
4755
4755
  e.$$.dirty[0] & /*lang*/
4756
4756
  2 && u && Vr(), e.$$.dirty[1] & /*translationurl*/
@@ -4758,7 +4758,7 @@ function xa(e, t, r) {
4758
4758
  1073741824 | e.$$.dirty[1] & /*userid*/
4759
4759
  1 && o && s && Ur(), e.$$.dirty[0] & /*showfavorites*/
4760
4760
  256 | e.$$.dirty[1] & /*isLoggedIn*/
4761
- 4 && A && ye && Fr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4761
+ 4 && C && ye && Fr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4762
4762
  4100 && h && Z && on(Z, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4763
4763
  4104 && l && Z && sn(Z, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4764
4764
  6144 && Z && un(Z, `${O}.Style`, Lr);
@@ -4771,13 +4771,13 @@ function xa(e, t, r) {
4771
4771
  m,
4772
4772
  p,
4773
4773
  d,
4774
- A,
4774
+ C,
4775
4775
  U,
4776
4776
  k,
4777
4777
  O,
4778
4778
  Z,
4779
4779
  E,
4780
- C,
4780
+ I,
4781
4781
  w,
4782
4782
  M,
4783
4783
  fe,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoNavigationSearch-CvEgXDMX.cjs")).then(e=>e.CasinoNavigationSearch_ce).then(({default:e})=>{!customElements.get("casino-navigation-search")&&customElements.define("casino-navigation-search",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoNavigationSearch-T97ixxPr.cjs")).then(e=>e.CasinoNavigationSearch_ce).then(({default:e})=>{!customElements.get("casino-navigation-search")&&customElements.define("casino-navigation-search",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-CCkQbdS5.js").then((e) => e.I).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoNavigationSearch-D1kW0fKC.js").then((e) => e.I).then(({ default: e }) => {
14
14
  !customElements.get("casino-navigation-search") && customElements.define("casino-navigation-search", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { I as s } from "../components/CasinoNavigationSearch-D2TFQtTD.js";
1
+ import { I as s } from "../components/CasinoNavigationSearch-Chy4UUVM.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-navigation-search",
3
- "version": "1.94.57",
3
+ "version": "1.94.59",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-navigation-search.cjs",
6
6
  "module": "esnext/casino-navigation-search.js",