@everymatrix/casino-search 1.62.4 → 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,11 +1,11 @@
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, n as ie, d as T, r as Je, e as f, g as ce, h as j, j as _, l as Z, k as C, m as N, o as ue, p as te, q as Ze, t as Ye, u as Xe, v as O, w as q, x as $, y as he, z as de, A as Ke, B as Ce, C as u, D as Qe, E as $e, F as et, G as tt } from "./CasinoGameThumbnail-D6-rkFWh.js";
2
- function me(a, e) {
3
- Ae(a, e);
1
+ import { a as He, $ as We, c as Ue, S as Ve, i as Je, s as Ze, f as L, b as Ye, n as ue, d as j, r as Xe, e as g, g as he, h as E, j as b, l as Y, k as C, m as z, o as de, p as ae, q as Ke, t as Qe, u as $e, v as q, w as H, x as me, y as fe, z as et, A as Le, B as u, C as tt, D as at, E as nt, F as rt } from "./CasinoGameThumbnail-C-I2_16Q.js";
2
+ function ge(t, e) {
3
+ He(t, e);
4
4
  }
5
- function at(a) {
6
- He.set(a);
5
+ function ot(t) {
6
+ We.set(t);
7
7
  }
8
- const ge = {
8
+ const pe = {
9
9
  en: {
10
10
  recentSearch: "Recent search",
11
11
  placeHolderSearchGames: "Search for Games",
@@ -189,10 +189,10 @@ const ge = {
189
189
  }
190
190
  };
191
191
  if (typeof window < "u") {
192
- let a = function(e) {
193
- return function(...t) {
192
+ let t = function(e) {
193
+ return function(...a) {
194
194
  try {
195
- return e.apply(this, t);
195
+ return e.apply(this, a);
196
196
  } catch (n) {
197
197
  if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
198
198
  return !1;
@@ -200,351 +200,381 @@ if (typeof window < "u") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnail-D6-rkFWh.js").then((e) => e.H).then(({ default: e }) => {
203
+ customElements.define = t(customElements.define), import("./CasinoGameThumbnail-C-I2_16Q.js").then((e) => e.G).then(({ default: e }) => {
204
204
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
205
205
  });
206
206
  }
207
- function nt(a) {
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}");
207
+ function ne(t) {
208
+ "@babel/helpers - typeof";
209
+ return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
210
+ return typeof e;
211
+ } : function(e) {
212
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
213
+ }, ne(t);
209
214
  }
210
- function fe(a, e, t) {
211
- const n = a.slice();
212
- return n[53] = e[t], n;
215
+ function ee(t, e) {
216
+ if (e.length < t)
217
+ throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present");
213
218
  }
214
- function pe(a) {
215
- let e, t = (
219
+ function U(t) {
220
+ ee(1, arguments);
221
+ var e = Object.prototype.toString.call(t);
222
+ return t instanceof Date || ne(t) === "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
223
+ }
224
+ function Se(t, e) {
225
+ return ee(2, arguments), U(t).getTime() - U(e).getTime();
226
+ }
227
+ function st(t, e) {
228
+ ee(2, arguments);
229
+ var a = U(t), n = U(e);
230
+ return a.getTime() > n.getTime();
231
+ }
232
+ function lt(t, e) {
233
+ ee(2, arguments);
234
+ var a = U(t), n = U(e);
235
+ return a.getTime() < n.getTime();
236
+ }
237
+ function it(t) {
238
+ Ye(t, "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}");
239
+ }
240
+ function be(t, e, a) {
241
+ const n = t.slice();
242
+ return n[53] = e[a], n;
243
+ }
244
+ function _e(t) {
245
+ let e, a = (
216
246
  /*$_*/
217
- a[21]("cancel") + ""
247
+ t[21]("cancel") + ""
218
248
  ), n, r, l, s;
219
249
  return {
220
250
  c() {
221
- e = C("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
222
- (a[13] ? "NotVisible" : ""));
251
+ e = C("small"), n = H(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
252
+ (t[13] ? "NotVisible" : ""));
223
253
  },
224
254
  m(i, c) {
225
- j(i, e, c), _(e, n), l || (s = Z(
255
+ E(i, e, c), b(e, n), l || (s = Y(
226
256
  e,
227
257
  "click",
228
258
  /*click_handler_1*/
229
- a[36]
259
+ t[36]
230
260
  ), l = !0);
231
261
  },
232
262
  p(i, c) {
233
263
  c[0] & /*$_*/
234
- 2097152 && t !== (t = /*$_*/
235
- i[21]("cancel") + "") && O(n, t), c[0] & /*searchCancelled*/
264
+ 2097152 && a !== (a = /*$_*/
265
+ i[21]("cancel") + "") && q(n, a), c[0] & /*searchCancelled*/
236
266
  8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
237
- (i[13] ? "NotVisible" : "")) && f(e, "class", r);
267
+ (i[13] ? "NotVisible" : "")) && g(e, "class", r);
238
268
  },
239
269
  d(i) {
240
- i && T(e), l = !1, s();
270
+ i && j(e), l = !1, s();
241
271
  }
242
272
  };
243
273
  }
244
- function rt(a) {
245
- let e, t, n, r;
246
- function l(h, g) {
274
+ function ct(t) {
275
+ let e, a, n, r;
276
+ function l(h, f) {
247
277
  if (
248
278
  /*searchActive*/
249
279
  h[17] == !0 && /*searchValue*/
250
280
  h[12].length < 2
251
281
  )
252
- return lt;
282
+ return dt;
253
283
  if (
254
284
  /*searchArray*/
255
285
  h[15].length != 0
256
286
  )
257
- return st;
287
+ return ht;
258
288
  }
259
- let s = l(a), i = s && s(a), c = (
289
+ let s = l(t), i = s && s(t), c = (
260
290
  /*searchCancelled*/
261
- a[13] === !1 && we(a)
291
+ t[13] === !1 && ke(t)
262
292
  ), m = (
263
293
  /*searchValue*/
264
- a[12].length >= 2 && /*searchArray*/
265
- a[15].length == 0 && ye(a)
294
+ t[12].length >= 2 && /*searchArray*/
295
+ t[15].length == 0 && Re(t)
266
296
  );
267
297
  return {
268
298
  c() {
269
- i && i.c(), e = N(), t = C("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
270
- (a[17] == !0 ? "" : "NotVisible"));
299
+ i && i.c(), e = z(), a = C("div"), c && c.c(), n = z(), m && m.c(), g(a, "class", r = "SearchResultsContainer " + /*searchActive*/
300
+ (t[17] == !0 ? "" : "NotVisible"));
271
301
  },
272
- m(h, g) {
273
- i && i.m(h, g), j(h, e, g), j(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
302
+ m(h, f) {
303
+ i && i.m(h, f), E(h, e, f), E(h, a, f), c && c.m(a, null), b(a, n), m && m.m(a, null);
274
304
  },
275
- p(h, g) {
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*/
277
- h[13] === !1 ? c ? c.p(h, g) : (c = we(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
305
+ p(h, f) {
306
+ s === (s = l(h)) && i ? i.p(h, f) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
307
+ h[13] === !1 ? c ? c.p(h, f) : (c = ke(h), c.c(), c.m(a, n)) : c && (c.d(1), c = null), /*searchValue*/
278
308
  h[12].length >= 2 && /*searchArray*/
279
- h[15].length == 0 ? m ? m.p(h, g) : (m = ye(h), m.c(), m.m(t, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
309
+ h[15].length == 0 ? m ? m.p(h, f) : (m = Re(h), m.c(), m.m(a, null)) : m && (m.d(1), m = null), f[0] & /*searchActive*/
280
310
  131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
281
- (h[17] == !0 ? "" : "NotVisible")) && f(t, "class", r);
311
+ (h[17] == !0 ? "" : "NotVisible")) && g(a, "class", r);
282
312
  },
283
313
  d(h) {
284
- h && (T(e), T(t)), i && i.d(h), c && c.d(), m && m.d();
314
+ h && (j(e), j(a)), i && i.d(h), c && c.d(), m && m.d();
285
315
  }
286
316
  };
287
317
  }
288
- function ot(a) {
289
- let e, t = (
318
+ function ut(t) {
319
+ let e, a = (
290
320
  /*$_*/
291
- a[21]("loading") + ""
321
+ t[21]("loading") + ""
292
322
  ), n;
293
323
  return {
294
324
  c() {
295
- e = C("p"), n = q(t), f(e, "class", "LoadingContent");
325
+ e = C("p"), n = H(a), g(e, "class", "LoadingContent");
296
326
  },
297
327
  m(r, l) {
298
- j(r, e, l), _(e, n);
328
+ E(r, e, l), b(e, n);
299
329
  },
300
330
  p(r, l) {
301
331
  l[0] & /*$_*/
302
- 2097152 && t !== (t = /*$_*/
303
- r[21]("loading") + "") && O(n, t);
332
+ 2097152 && a !== (a = /*$_*/
333
+ r[21]("loading") + "") && q(n, a);
304
334
  },
305
335
  d(r) {
306
- r && T(e);
336
+ r && j(e);
307
337
  }
308
338
  };
309
339
  }
310
- function st(a) {
311
- let e, t = (
340
+ function ht(t) {
341
+ let e, a = (
312
342
  /*$_*/
313
- a[21]("searchResult") + ""
343
+ t[21]("searchResult") + ""
314
344
  ), n;
315
345
  return {
316
346
  c() {
317
- e = C("p"), n = q(t), f(e, "class", "SearchMessage");
347
+ e = C("p"), n = H(a), g(e, "class", "SearchMessage");
318
348
  },
319
349
  m(r, l) {
320
- j(r, e, l), _(e, n);
350
+ E(r, e, l), b(e, n);
321
351
  },
322
352
  p(r, l) {
323
353
  l[0] & /*$_*/
324
- 2097152 && t !== (t = /*$_*/
325
- r[21]("searchResult") + "") && O(n, t);
354
+ 2097152 && a !== (a = /*$_*/
355
+ r[21]("searchResult") + "") && q(n, a);
326
356
  },
327
357
  d(r) {
328
- r && T(e);
358
+ r && j(e);
329
359
  }
330
360
  };
331
361
  }
332
- function lt(a) {
333
- let e, t, n = (
362
+ function dt(t) {
363
+ let e, a, n = (
334
364
  /*searchArray*/
335
- a[15].length !== 0 && Se(a)
365
+ t[15].length !== 0 && we(t)
336
366
  ), r = (
337
367
  /*searchArray*/
338
- a[15].length == 0 && _e(a)
368
+ t[15].length == 0 && ve(t)
339
369
  );
340
370
  return {
341
371
  c() {
342
- n && n.c(), e = N(), r && r.c(), t = Ce();
372
+ n && n.c(), e = z(), r && r.c(), a = Le();
343
373
  },
344
374
  m(l, s) {
345
- n && n.m(l, s), j(l, e, s), r && r.m(l, s), j(l, t, s);
375
+ n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, a, s);
346
376
  },
347
377
  p(l, s) {
348
378
  /*searchArray*/
349
- l[15].length !== 0 ? n ? n.p(l, s) : (n = Se(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
350
- l[15].length == 0 ? r ? r.p(l, s) : (r = _e(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
379
+ l[15].length !== 0 ? n ? n.p(l, s) : (n = we(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
380
+ l[15].length == 0 ? r ? r.p(l, s) : (r = ve(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
351
381
  },
352
382
  d(l) {
353
- l && (T(e), T(t)), n && n.d(l), r && r.d(l);
383
+ l && (j(e), j(a)), n && n.d(l), r && r.d(l);
354
384
  }
355
385
  };
356
386
  }
357
- function Se(a) {
358
- let e, t = (
387
+ function we(t) {
388
+ let e, a = (
359
389
  /*$_*/
360
- a[21]("recentSearch") + ""
390
+ t[21]("recentSearch") + ""
361
391
  ), n;
362
392
  return {
363
393
  c() {
364
- e = C("p"), n = q(t), f(e, "class", "SearchMessage");
394
+ e = C("p"), n = H(a), g(e, "class", "SearchMessage");
365
395
  },
366
396
  m(r, l) {
367
- j(r, e, l), _(e, n);
397
+ E(r, e, l), b(e, n);
368
398
  },
369
399
  p(r, l) {
370
400
  l[0] & /*$_*/
371
- 2097152 && t !== (t = /*$_*/
372
- r[21]("recentSearch") + "") && O(n, t);
401
+ 2097152 && a !== (a = /*$_*/
402
+ r[21]("recentSearch") + "") && q(n, a);
373
403
  },
374
404
  d(r) {
375
- r && T(e);
405
+ r && j(e);
376
406
  }
377
407
  };
378
408
  }
379
- function _e(a) {
380
- let e, t, n, r = (
409
+ function ve(t) {
410
+ let e, a, n, r = (
381
411
  /*$_*/
382
- a[21]("noRecentSearches") + ""
412
+ t[21]("noRecentSearches") + ""
383
413
  ), l, s, i = (
384
414
  /*notfoundicon*/
385
- a[10] === "true" && be()
415
+ t[10] === "true" && ye()
386
416
  );
387
417
  return {
388
418
  c() {
389
- e = C("div"), i && i.c(), t = N(), n = C("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
390
- (a[10] == "true" ? "WithIcon" : ""));
419
+ e = C("div"), i && i.c(), a = z(), n = C("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
420
+ (t[10] == "true" ? "WithIcon" : ""));
391
421
  },
392
422
  m(c, m) {
393
- j(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
423
+ E(c, e, m), i && i.m(e, null), b(e, a), b(e, n), b(n, l);
394
424
  },
395
425
  p(c, m) {
396
426
  /*notfoundicon*/
397
- c[10] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
427
+ c[10] === "true" ? i || (i = ye(), i.c(), i.m(e, a)) : i && (i.d(1), i = null), m[0] & /*$_*/
398
428
  2097152 && r !== (r = /*$_*/
399
- c[21]("noRecentSearches") + "") && O(l, r), m[0] & /*notfoundicon*/
429
+ c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
400
430
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
401
- (c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
431
+ (c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
402
432
  },
403
433
  d(c) {
404
- c && T(e), i && i.d();
434
+ c && j(e), i && i.d();
405
435
  }
406
436
  };
407
437
  }
408
- function be(a) {
438
+ function ye(t) {
409
439
  let e;
410
440
  return {
411
441
  c() {
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");
442
+ 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>', g(e, "class", "SearchErrorIcon");
413
443
  },
414
- m(t, n) {
415
- j(t, e, n);
444
+ m(a, n) {
445
+ E(a, e, n);
416
446
  },
417
- d(t) {
418
- t && T(e);
447
+ d(a) {
448
+ a && j(e);
419
449
  }
420
450
  };
421
451
  }
422
- function we(a) {
423
- let e, t = de(
452
+ function ke(t) {
453
+ let e, a = fe(
424
454
  /*searchArray*/
425
- a[15]
455
+ t[15]
426
456
  ), n = [];
427
- for (let r = 0; r < t.length; r += 1)
428
- n[r] = ve(fe(a, t, r));
457
+ for (let r = 0; r < a.length; r += 1)
458
+ n[r] = Ce(be(t, a, r));
429
459
  return {
430
460
  c() {
431
461
  for (let r = 0; r < n.length; r += 1)
432
462
  n[r].c();
433
- e = Ce();
463
+ e = Le();
434
464
  },
435
465
  m(r, l) {
436
466
  for (let s = 0; s < n.length; s += 1)
437
467
  n[s] && n[s].m(r, l);
438
- j(r, e, l);
468
+ E(r, e, l);
439
469
  },
440
470
  p(r, l) {
441
471
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
442
472
  35162623) {
443
- t = de(
473
+ a = fe(
444
474
  /*searchArray*/
445
475
  r[15]
446
476
  );
447
477
  let s;
448
- for (s = 0; s < t.length; s += 1) {
449
- const i = fe(r, t, s);
450
- n[s] ? n[s].p(i, l) : (n[s] = ve(i), n[s].c(), n[s].m(e.parentNode, e));
478
+ for (s = 0; s < a.length; s += 1) {
479
+ const i = be(r, a, s);
480
+ n[s] ? n[s].p(i, l) : (n[s] = Ce(i), n[s].c(), n[s].m(e.parentNode, e));
451
481
  }
452
482
  for (; s < n.length; s += 1)
453
483
  n[s].d(1);
454
- n.length = t.length;
484
+ n.length = a.length;
455
485
  }
456
486
  },
457
487
  d(r) {
458
- r && T(e), Ke(n, r);
488
+ r && j(e), et(n, r);
459
489
  }
460
490
  };
461
491
  }
462
- function ve(a) {
463
- let e, t, n, r, l, s, i, c, m, h, g, w;
492
+ function Ce(t) {
493
+ let e, a, n, r, l, s, i, c, m, h, f, w;
464
494
  return {
465
495
  c() {
466
496
  e = C("casino-game-thumbnail"), u(
467
497
  e,
468
498
  "endpoint",
469
499
  /*endpoint*/
470
- a[0]
500
+ t[0]
471
501
  ), u(
472
502
  e,
473
503
  "session",
474
504
  /*sessionID*/
475
- a[19]
505
+ t[19]
476
506
  ), u(
477
507
  e,
478
508
  "userid",
479
509
  /*playerID*/
480
- a[20]
510
+ t[20]
481
511
  ), u(
482
512
  e,
483
513
  "favorites",
484
514
  /*showfavorites*/
485
- a[8]
515
+ t[8]
486
516
  ), u(
487
517
  e,
488
518
  "lang",
489
519
  /*lang*/
490
- a[1]
491
- ), u(e, "gamethumbnail", t = /*game*/
492
- a[53].thumbnail), u(e, "gamename", n = /*game*/
493
- a[53].name), u(e, "gamevendor", r = /*game*/
494
- a[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
495
- a[53].launchUrl), u(e, "gameisnew", s = /*game*/
496
- a[53].isNew), u(e, "gametag", i = /*game*/
497
- a[53].advancedTags?.length > 0 && /*addGameTag*/
498
- a[25](
520
+ t[1]
521
+ ), u(e, "gamethumbnail", a = /*game*/
522
+ t[53].thumbnail), u(e, "gamename", n = /*game*/
523
+ t[53].name), u(e, "gamevendor", r = /*game*/
524
+ t[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
525
+ t[53].launchUrl), u(e, "gameisnew", s = /*game*/
526
+ t[53].isNew), u(e, "gametag", i = /*game*/
527
+ t[53].advancedTags?.length > 0 && /*addGameTag*/
528
+ t[25](
499
529
  /*game*/
500
- a[53].advancedTags
530
+ t[53].advancedTags
501
531
  )), u(e, "gamecellsize", c = /*game*/
502
- a[53].cellSize), u(e, "gameid", m = /*game*/
503
- a[53].id), u(
532
+ t[53].cellSize), u(e, "gameid", m = /*game*/
533
+ t[53].id), u(
504
534
  e,
505
535
  "showgamename",
506
536
  /*showgamename*/
507
- a[6]
537
+ t[6]
508
538
  ), u(e, "gamefunmode", h = /*game*/
509
- a[53].hasFunMode), u(e, "gamefavorite", g = /*game*/
510
- a[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
511
- a[53].details ? (
539
+ t[53].hasFunMode), u(e, "gamefavorite", f = /*game*/
540
+ t[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
541
+ t[53].details ? (
512
542
  /*game*/
513
- a[53].launchUrl
543
+ t[53].launchUrl
514
544
  ) : ""), u(
515
545
  e,
516
546
  "integratedgameframedesktop",
517
547
  /*integratedgameframedesktop*/
518
- a[4]
548
+ t[4]
519
549
  ), u(
520
550
  e,
521
551
  "mbsource",
522
552
  /*mbsource*/
523
- a[11]
553
+ t[11]
524
554
  ), u(
525
555
  e,
526
556
  "integratedgameframemobile",
527
557
  /*integratedgameframemobile*/
528
- a[5]
558
+ t[5]
529
559
  ), u(
530
560
  e,
531
561
  "clientstyling",
532
562
  /*clientstyling*/
533
- a[2]
563
+ t[2]
534
564
  ), u(
535
565
  e,
536
566
  "clientstylingurl",
537
567
  /*clientstylingurl*/
538
- a[3]
568
+ t[3]
539
569
  ), u(
540
570
  e,
541
571
  "gamepagemodalurl",
542
572
  /*gamepagemodalurl*/
543
- a[7]
573
+ t[7]
544
574
  );
545
575
  },
546
576
  m(d, p) {
547
- j(d, e, p);
577
+ E(d, e, p);
548
578
  },
549
579
  p(d, p) {
550
580
  p[0] & /*endpoint*/
@@ -578,8 +608,8 @@ function ve(a) {
578
608
  /*lang*/
579
609
  d[1]
580
610
  ), p[0] & /*searchArray*/
581
- 32768 && t !== (t = /*game*/
582
- d[53].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
611
+ 32768 && a !== (a = /*game*/
612
+ d[53].thumbnail) && u(e, "gamethumbnail", a), p[0] & /*searchArray*/
583
613
  32768 && n !== (n = /*game*/
584
614
  d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
585
615
  32768 && r !== (r = /*game*/
@@ -606,8 +636,8 @@ function ve(a) {
606
636
  ), p[0] & /*searchArray*/
607
637
  32768 && h !== (h = /*game*/
608
638
  d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
609
- 32768 && g !== (g = /*game*/
610
- d[53].isFavorite) && u(e, "gamefavorite", g), p[0] & /*searchArray*/
639
+ 32768 && f !== (f = /*game*/
640
+ d[53].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
611
641
  32768 && w !== (w = /*game*/
612
642
  d[53].details ? (
613
643
  /*game*/
@@ -651,227 +681,227 @@ function ve(a) {
651
681
  );
652
682
  },
653
683
  d(d) {
654
- d && T(e);
684
+ d && j(e);
655
685
  }
656
686
  };
657
687
  }
658
- function ye(a) {
659
- let e, t, n, r = (
688
+ function Re(t) {
689
+ let e, a, n, r = (
660
690
  /*$_*/
661
- a[21]("notFound") + ""
691
+ t[21]("notFound") + ""
662
692
  ), l, s, i, c = (
663
693
  /*$_*/
664
- a[21]("notFoundText") + ""
665
- ), m, h, g = (
694
+ t[21]("notFoundText") + ""
695
+ ), m, h, f = (
666
696
  /*notfoundicon*/
667
- a[10] === "true" && ke()
697
+ t[10] === "true" && Fe()
668
698
  );
669
699
  return {
670
700
  c() {
671
- e = C("div"), g && g.c(), t = N(), n = C("p"), l = q(r), s = N(), i = C("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
672
- (a[10] == "true" ? "WithIcon" : ""));
701
+ e = C("div"), f && f.c(), a = z(), n = C("p"), l = H(r), s = z(), i = C("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
702
+ (t[10] == "true" ? "WithIcon" : ""));
673
703
  },
674
704
  m(w, d) {
675
- j(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
705
+ E(w, e, d), f && f.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
676
706
  },
677
707
  p(w, d) {
678
708
  /*notfoundicon*/
679
- w[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
709
+ w[10] === "true" ? f || (f = Fe(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
680
710
  2097152 && r !== (r = /*$_*/
681
- w[21]("notFound") + "") && O(l, r), d[0] & /*$_*/
711
+ w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
682
712
  2097152 && c !== (c = /*$_*/
683
- w[21]("notFoundText") + "") && O(m, c), d[0] & /*notfoundicon*/
713
+ w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
684
714
  1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
685
- (w[10] == "true" ? "WithIcon" : "")) && f(e, "class", h);
715
+ (w[10] == "true" ? "WithIcon" : "")) && g(e, "class", h);
686
716
  },
687
717
  d(w) {
688
- w && T(e), g && g.d();
718
+ w && j(e), f && f.d();
689
719
  }
690
720
  };
691
721
  }
692
- function ke(a) {
722
+ function Fe(t) {
693
723
  let e;
694
724
  return {
695
725
  c() {
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");
726
+ 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>', g(e, "class", "SearchErrorIcon");
697
727
  },
698
- m(t, n) {
699
- j(t, e, n);
728
+ m(a, n) {
729
+ E(a, e, n);
700
730
  },
701
- d(t) {
702
- t && T(e);
731
+ d(a) {
732
+ a && j(e);
703
733
  }
704
734
  };
705
735
  }
706
- function it(a) {
707
- let e, t, n, r, l, s, i, c, m, h, g, w, d, p, B, x, D, U, A, W, v = (
736
+ function mt(t) {
737
+ let e, a, n, r, l, s, i, c, m, h, f, w, d, p, B, N, P, V, A, W, v = (
708
738
  /*cancelbutton*/
709
- a[9] === "true" && pe(a)
739
+ t[9] === "true" && _e(t)
710
740
  );
711
- function G(b, E) {
741
+ function G(_, T) {
712
742
  return (
713
743
  /*isLoading*/
714
- b[18] ? ot : rt
744
+ _[18] ? ut : ct
715
745
  );
716
746
  }
717
- let M = G(a), k = M(a);
747
+ let M = G(t), k = M(t);
718
748
  return {
719
749
  c() {
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 = ue("svg"), g = ue("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
- (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
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[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (te(
750
+ e = C("div"), a = 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 = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), f = de("path"), d = z(), v && v.c(), B = z(), N = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
751
+ t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
752
+ (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
753
+ (t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
754
+ (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(N, "class", P = /*cancelbutton*/
755
+ t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
726
756
  /*userAgent*/
727
- a[22]
757
+ t[22]
728
758
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
729
759
  },
730
- m(b, E) {
731
- j(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
760
+ m(_, T) {
761
+ E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
732
762
  s,
733
763
  /*searchValue*/
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), k.m(e, null), a[37](e), A || (W = [
736
- Z(
764
+ t[12]
765
+ ), t[34](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), v && v.m(n, null), b(e, B), b(e, N), b(e, V), k.m(e, null), t[37](e), A || (W = [
766
+ Y(
737
767
  s,
738
768
  "input",
739
769
  /*input_input_handler*/
740
- a[33]
770
+ t[33]
741
771
  ),
742
- Z(
772
+ Y(
743
773
  s,
744
774
  "focus",
745
775
  /*onFocus*/
746
- a[23]
776
+ t[23]
747
777
  ),
748
- Z(
778
+ Y(
749
779
  m,
750
780
  "click",
751
781
  /*click_handler*/
752
- a[35]
782
+ t[35]
753
783
  ),
754
- Z(
755
- x,
784
+ Y(
785
+ N,
756
786
  "click",
757
787
  /*handleOverlay*/
758
- a[24]
788
+ t[24]
759
789
  )
760
790
  ], A = !0);
761
791
  },
762
- p(b, E) {
763
- E[0] & /*$_*/
792
+ p(_, T) {
793
+ T[0] & /*$_*/
764
794
  2097152 && i !== (i = /*$_*/
765
- b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
795
+ _[21]("placeHolderSearchGames")) && g(s, "placeholder", i), T[0] & /*searchValue*/
766
796
  4096 && s.value !== /*searchValue*/
767
- b[12] && ce(
797
+ _[12] && he(
768
798
  s,
769
799
  /*searchValue*/
770
- b[12]
771
- ), E[0] & /*cancelbutton, searchValue*/
800
+ _[12]
801
+ ), T[0] & /*cancelbutton, searchValue*/
772
802
  4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
773
- (b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
774
- (b[12].length != 0 ? "" : "NotVisible")) && f(m, "class", w), /*cancelbutton*/
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*/
803
+ (_[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
804
+ (_[12].length != 0 ? "" : "NotVisible")) && g(m, "class", w), /*cancelbutton*/
805
+ _[9] === "true" ? v ? v.p(_, T) : (v = _e(_), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
776
806
  8192 && p !== (p = "Search " + /*searchCancelled*/
777
- (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
778
- 512 && D !== (D = /*cancelbutton*/
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)));
807
+ (_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
808
+ 512 && P !== (P = /*cancelbutton*/
809
+ _[9] != "true" ? "OverlayCancel" : "") && g(N, "class", P), M === (M = G(_)) && k ? k.p(_, T) : (k.d(1), k = M(_), k && (k.c(), k.m(e, null)));
780
810
  },
781
- i: ie,
782
- o: ie,
783
- d(b) {
784
- b && T(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
811
+ i: ue,
812
+ o: ue,
813
+ d(_) {
814
+ _ && j(e), t[34](null), v && v.d(), k.d(), t[37](null), A = !1, Xe(W);
785
815
  }
786
816
  };
787
817
  }
788
- let ct = 50;
789
- function ut(a, e, t) {
818
+ let ft = 50;
819
+ function gt(t, e, a) {
790
820
  let n;
791
- Ze(a, Qe, (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 = () => {
821
+ Ke(t, tt, (o) => a(21, n = o));
822
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: P = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", _, T = !0, J = !1, I = !1, x, X = !1, K, Q, re = [];
823
+ const Te = () => {
794
824
  fetch(B).then((S) => S.json()).then((S) => {
795
825
  Object.keys(S).forEach((y) => {
796
- me(y, S[y]);
826
+ ge(y, S[y]);
797
827
  });
798
828
  }).catch((S) => {
799
829
  console.log(S);
800
830
  });
801
831
  };
802
- Object.keys(ge).forEach((o) => {
803
- me(o, ge[o]);
832
+ Object.keys(pe).forEach((o) => {
833
+ ge(o, pe[o]);
804
834
  });
805
- const ne = (o) => {
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
- }, re = () => {
808
- if (t(13, E = !1), t(17, V = !0), r && l && c && k.length < 2) {
809
- t(15, v = []);
835
+ const oe = (o) => {
836
+ o.data && o.data.type == "SearchedItemClicked" && Ne(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(32, X = !0)), o.data.type == "CategoryChange" && $();
837
+ }, se = () => {
838
+ if (a(13, T = !1), a(17, J = !0), r && l && c && k.length < 2) {
839
+ a(15, v = []);
810
840
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
811
841
  o && (S = o.split(","));
812
842
  let y = [], R = 0, F = S.length;
813
843
  if (F > 0) {
814
844
  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]));
845
+ let D = new URL(`${r}/v1/casino/games/${S[R]}`);
846
+ D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), y.push(De(D, S[R]));
817
847
  }
818
- Promise.all(y).then((z) => {
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
- }).catch((z) => {
823
- J("searchError", "SearchWidget");
848
+ Promise.all(y).then((D) => {
849
+ D = D.filter(function(O) {
850
+ return !!O;
851
+ }), a(15, v = D.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
852
+ }).catch((D) => {
853
+ Z("searchError", "SearchWidget");
824
854
  });
825
855
  }
826
856
  }
827
- le(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
828
- }, J = (o, S) => {
857
+ ce(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
858
+ }, Z = (o, S) => {
829
859
  typeof gtag == "function" && gtag("event", o, { context: S });
830
- }, Fe = () => {
831
- D != "true" && Q();
832
- }, Le = (o) => new Promise((S, y) => {
833
- t(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
834
- t(18, I = !1), S(R);
860
+ }, je = () => {
861
+ P != "true" && $();
862
+ }, Ee = (o) => new Promise((S, y) => {
863
+ a(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
864
+ a(18, I = !1), S(R);
835
865
  }).catch((R) => {
836
- t(18, I = !1), console.error(R), y(R);
866
+ a(18, I = !1), console.error(R), y(R);
837
867
  });
838
- }), Ee = (o, S) => new Promise((y, R) => {
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
- t(18, I = !1), F.error || (M[F[0].gameId] = F[0]), y(F[0]);
868
+ }), De = (o, S) => new Promise((y, R) => {
869
+ a(18, I = !0), S && Object.keys(M).indexOf(S) >= 0 ? (a(18, I = !1), y(M[S])) : fetch(o).then((F) => F.json()).then((F) => {
870
+ a(18, I = !1), F.error || (M[F[0].gameId] = F[0]), y(F[0]);
841
871
  }).catch((F) => {
842
- t(18, I = !1), console.error(F), R(F);
872
+ a(18, I = !1), console.error(F), R(F);
843
873
  });
844
- }), Te = () => {
845
- const o = new URL(`${r}/v1/player/${K}/favorites/`);
846
- t(18, I = !0);
874
+ }), Ge = () => {
875
+ const o = new URL(`${r}/v1/player/${Q}/favorites/`);
876
+ a(18, I = !0);
847
877
  let S = {
848
878
  method: "GET",
849
- headers: { "X-SessionID": X }
879
+ headers: { "X-SessionID": K }
850
880
  };
851
881
  fetch(o.href, S).then((y) => y.json()).then((y) => {
852
- t(18, I = !1), ae = y.items.map((R) => R.id);
882
+ a(18, I = !1), re = y.items.map((R) => R.id);
853
883
  });
854
- }, je = () => {
855
- t(32, Y = !0), t(19, X = s), t(20, K = i);
856
- }, oe = (o) => ae.findIndex((S) => S == o) !== -1, ze = (o) => {
884
+ }, Ie = () => {
885
+ a(32, X = !0), a(19, K = s), a(20, Q = i);
886
+ }, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
857
887
  if (o?.length === 0)
858
888
  return "";
859
889
  let S, y = 99999999999, R;
860
890
  const F = new Date(Date.now());
861
- return o.forEach((z, H) => {
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), R = H), $(F).isAfter(Be) && $(F).isBefore(ee) && (S = o[R].name);
891
+ return o.forEach((D, O) => {
892
+ const qe = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
893
+ Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), R = O), st(new Date(F), new Date(qe)) && lt(new Date(F), new Date(te)) && (S = o[R].name);
864
894
  }), S;
865
- }, Ge = (o) => {
895
+ }, Ne = (o) => {
866
896
  if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
867
897
  let S;
868
898
  G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
869
899
  }
870
- }, Q = () => {
871
- t(12, k = ""), t(13, E = !0), t(18, I = !1), t(15, v = []), t(17, V = !1), le(V);
872
- }, se = () => {
873
- t(12, k = ""), b.focus();
874
- }, le = (o) => {
900
+ }, $ = () => {
901
+ a(12, k = ""), a(13, T = !0), a(18, I = !1), a(15, v = []), a(17, J = !1), ce(J);
902
+ }, ie = () => {
903
+ a(12, k = ""), _.focus();
904
+ }, ce = (o) => {
875
905
  window.postMessage(
876
906
  {
877
907
  type: o === !0 ? "searchActive" : "searchCancelled",
@@ -879,96 +909,96 @@ function ut(a, e, t) {
879
909
  },
880
910
  window.location.href
881
911
  );
882
- }, Ie = () => {
883
- at(c);
912
+ }, xe = () => {
913
+ ot(c);
884
914
  };
885
- Ye(() => (window.addEventListener("message", ne, !1), () => {
886
- window.removeEventListener("message", ne);
915
+ Qe(() => (window.addEventListener("message", oe, !1), () => {
916
+ window.removeEventListener("message", oe);
887
917
  }));
888
- function Ne() {
889
- k = this.value, t(12, k);
918
+ function Pe() {
919
+ k = this.value, a(12, k);
890
920
  }
891
- function xe(o) {
892
- he[o ? "unshift" : "push"](() => {
893
- b = o, t(16, b);
921
+ function Me(o) {
922
+ me[o ? "unshift" : "push"](() => {
923
+ _ = o, a(16, _);
894
924
  });
895
925
  }
896
- const Pe = () => se(), De = () => Q();
897
- function Me(o) {
898
- he[o ? "unshift" : "push"](() => {
899
- P = o, t(14, P);
926
+ const Be = () => ie(), Ae = () => $();
927
+ function Oe(o) {
928
+ me[o ? "unshift" : "push"](() => {
929
+ x = o, a(14, x);
900
930
  });
901
931
  }
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), "clientstyling" in o && t(2, m = o.clientstyling), "clientstylingurl" in o && t(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && t(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(5, w = o.integratedgameframemobile), "showgamename" in o && t(6, d = o.showgamename), "gamepagemodalurl" in o && t(7, p = o.gamepagemodalurl), "translationurl" in o && t(31, B = o.translationurl), "showfavorites" in o && t(8, x = o.showfavorites), "cancelbutton" in o && t(9, D = o.cancelbutton), "notfoundicon" in o && t(10, U = o.notfoundicon), "mbsource" in o && t(11, A = o.mbsource);
904
- }, a.$$.update = () => {
905
- if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
932
+ return t.$$set = (o) => {
933
+ "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, B = o.translationurl), "showfavorites" in o && a(8, N = o.showfavorites), "cancelbutton" in o && a(9, P = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
934
+ }, t.$$.update = () => {
935
+ if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
906
936
  268447747)
907
937
  if (k.length >= 2) {
908
938
  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=${k}`), Le(o).then((S) => {
910
- Xe("game_search", { searchValue: k }), t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
939
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Ee(o).then((S) => {
940
+ $e("game_search", { searchValue: k }), a(15, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
911
941
  });
912
942
  } else
913
- E || re();
914
- a.$$.dirty[0] & /*lang*/
915
- 2 && c && Ie(), a.$$.dirty[1] & /*translationurl*/
916
- 1 && B && Re(), a.$$.dirty[0] & /*session, userid*/
917
- 1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
918
- 256 | a.$$.dirty[1] & /*isLoggedIn*/
919
- 2 && x && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
- 16388 && m && P && $e(P, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
- 16392 && h && P && et(P, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
922
- 18432 && P && tt(P, `${A}.Style`);
943
+ T || se();
944
+ t.$$.dirty[0] & /*lang*/
945
+ 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
946
+ 1 && B && Te(), t.$$.dirty[0] & /*session, userid*/
947
+ 1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
948
+ 256 | t.$$.dirty[1] & /*isLoggedIn*/
949
+ 2 && N && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
950
+ 16388 && m && x && at(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
951
+ 16392 && h && x && nt(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
952
+ 18432 && x && rt(x, `${A}.Style`);
923
953
  }, [
924
954
  r,
925
955
  c,
926
956
  m,
927
957
  h,
928
- g,
958
+ f,
929
959
  w,
930
960
  d,
931
961
  p,
932
- x,
933
- D,
934
- U,
962
+ N,
963
+ P,
964
+ V,
935
965
  A,
936
966
  k,
937
- E,
938
- P,
967
+ T,
968
+ x,
939
969
  v,
940
- b,
941
- V,
970
+ _,
971
+ J,
942
972
  I,
943
- X,
944
973
  K,
974
+ Q,
945
975
  n,
946
976
  W,
947
- re,
948
- Fe,
949
- ze,
950
- Q,
951
977
  se,
978
+ je,
979
+ ze,
980
+ $,
981
+ ie,
952
982
  l,
953
983
  s,
954
984
  i,
955
985
  B,
956
- Y,
957
- Ne,
958
- xe,
986
+ X,
959
987
  Pe,
960
- De,
961
- Me
988
+ Me,
989
+ Be,
990
+ Ae,
991
+ Oe
962
992
  ];
963
993
  }
964
- class ht extends qe {
994
+ class pt extends Ve {
965
995
  constructor(e) {
966
- super(), We(
996
+ super(), Je(
967
997
  this,
968
998
  e,
969
- ut,
970
- it,
971
- Ue,
999
+ gt,
1000
+ mt,
1001
+ Ze,
972
1002
  {
973
1003
  endpoint: 0,
974
1004
  datasource: 28,
@@ -987,7 +1017,7 @@ class ht extends qe {
987
1017
  notfoundicon: 10,
988
1018
  mbsource: 11
989
1019
  },
990
- nt,
1020
+ it,
991
1021
  [-1, -1]
992
1022
  );
993
1023
  }
@@ -1088,7 +1118,7 @@ class ht extends qe {
1088
1118
  this.$$set({ mbsource: e }), L();
1089
1119
  }
1090
1120
  }
1091
- Oe(ht, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1121
+ Ue(pt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1092
1122
  export {
1093
- ht as C
1123
+ pt as C
1094
1124
  };