@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, S as Oe, i as qe, f as L, s as We, c as Ue, b as Ve, n as ie, d as T, r as Je, e as f, g as ce, h as j, j as _, l as Z, k as R, 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 Re, C as u, D as Qe, E as $e, F as et, G as tt } from "./CasinoGameThumbnail-C7i7EJOW.js";
2
- function me(a, e) {
3
- Ae(a, e);
1
+ import { a as He, $ as We, S as Ue, i as Ve, f as L, s as Je, c as Ze, 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-CJZzQFb3.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 != "undefined") {
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,355 +200,385 @@ if (typeof window != "undefined") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnail-C7i7EJOW.js").then((e) => e.H).then(({ default: e }) => {
203
+ customElements.define = t(customElements.define), import("./CasinoGameThumbnail-CJZzQFb3.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 != "undefined" && (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 = R("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 = R("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 = R("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 = R("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 = Re();
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 = R("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 = R("div"), i && i.c(), t = N(), n = R("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 = R("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 = Re();
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
  var d;
467
- e = R("casino-game-thumbnail"), u(
497
+ e = C("casino-game-thumbnail"), u(
468
498
  e,
469
499
  "endpoint",
470
500
  /*endpoint*/
471
- a[0]
501
+ t[0]
472
502
  ), u(
473
503
  e,
474
504
  "session",
475
505
  /*sessionID*/
476
- a[19]
506
+ t[19]
477
507
  ), u(
478
508
  e,
479
509
  "userid",
480
510
  /*playerID*/
481
- a[20]
511
+ t[20]
482
512
  ), u(
483
513
  e,
484
514
  "favorites",
485
515
  /*showfavorites*/
486
- a[8]
516
+ t[8]
487
517
  ), u(
488
518
  e,
489
519
  "lang",
490
520
  /*lang*/
491
- a[1]
492
- ), u(e, "gamethumbnail", t = /*game*/
493
- a[53].thumbnail), u(e, "gamename", n = /*game*/
494
- a[53].name), u(e, "gamevendor", r = /*game*/
495
- a[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
496
- a[53].launchUrl), u(e, "gameisnew", s = /*game*/
497
- a[53].isNew), u(e, "gametag", i = /*game*/
498
- ((d = a[53].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
499
- a[25](
521
+ t[1]
522
+ ), u(e, "gamethumbnail", a = /*game*/
523
+ t[53].thumbnail), u(e, "gamename", n = /*game*/
524
+ t[53].name), u(e, "gamevendor", r = /*game*/
525
+ t[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
526
+ t[53].launchUrl), u(e, "gameisnew", s = /*game*/
527
+ t[53].isNew), u(e, "gametag", i = /*game*/
528
+ ((d = t[53].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
529
+ t[25](
500
530
  /*game*/
501
- a[53].advancedTags
531
+ t[53].advancedTags
502
532
  )), u(e, "gamecellsize", c = /*game*/
503
- a[53].cellSize), u(e, "gameid", m = /*game*/
504
- a[53].id), u(
533
+ t[53].cellSize), u(e, "gameid", m = /*game*/
534
+ t[53].id), u(
505
535
  e,
506
536
  "showgamename",
507
537
  /*showgamename*/
508
- a[6]
538
+ t[6]
509
539
  ), u(e, "gamefunmode", h = /*game*/
510
- a[53].hasFunMode), u(e, "gamefavorite", g = /*game*/
511
- a[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
512
- a[53].details ? (
540
+ t[53].hasFunMode), u(e, "gamefavorite", f = /*game*/
541
+ t[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
542
+ t[53].details ? (
513
543
  /*game*/
514
- a[53].launchUrl
544
+ t[53].launchUrl
515
545
  ) : ""), u(
516
546
  e,
517
547
  "integratedgameframedesktop",
518
548
  /*integratedgameframedesktop*/
519
- a[4]
549
+ t[4]
520
550
  ), u(
521
551
  e,
522
552
  "mbsource",
523
553
  /*mbsource*/
524
- a[11]
554
+ t[11]
525
555
  ), u(
526
556
  e,
527
557
  "integratedgameframemobile",
528
558
  /*integratedgameframemobile*/
529
- a[5]
559
+ t[5]
530
560
  ), u(
531
561
  e,
532
562
  "clientstyling",
533
563
  /*clientstyling*/
534
- a[2]
564
+ t[2]
535
565
  ), u(
536
566
  e,
537
567
  "clientstylingurl",
538
568
  /*clientstylingurl*/
539
- a[3]
569
+ t[3]
540
570
  ), u(
541
571
  e,
542
572
  "gamepagemodalurl",
543
573
  /*gamepagemodalurl*/
544
- a[7]
574
+ t[7]
545
575
  );
546
576
  },
547
577
  m(d, p) {
548
- j(d, e, p);
578
+ E(d, e, p);
549
579
  },
550
580
  p(d, p) {
551
- var x;
581
+ var N;
552
582
  p[0] & /*endpoint*/
553
583
  1 && u(
554
584
  e,
@@ -580,8 +610,8 @@ function ve(a) {
580
610
  /*lang*/
581
611
  d[1]
582
612
  ), p[0] & /*searchArray*/
583
- 32768 && t !== (t = /*game*/
584
- d[53].thumbnail) && u(e, "gamethumbnail", t), p[0] & /*searchArray*/
613
+ 32768 && a !== (a = /*game*/
614
+ d[53].thumbnail) && u(e, "gamethumbnail", a), p[0] & /*searchArray*/
585
615
  32768 && n !== (n = /*game*/
586
616
  d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
587
617
  32768 && r !== (r = /*game*/
@@ -591,7 +621,7 @@ function ve(a) {
591
621
  32768 && s !== (s = /*game*/
592
622
  d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
593
623
  32768 && i !== (i = /*game*/
594
- ((x = d[53].advancedTags) == null ? void 0 : x.length) > 0 && /*addGameTag*/
624
+ ((N = d[53].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
595
625
  d[25](
596
626
  /*game*/
597
627
  d[53].advancedTags
@@ -608,8 +638,8 @@ function ve(a) {
608
638
  ), p[0] & /*searchArray*/
609
639
  32768 && h !== (h = /*game*/
610
640
  d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
611
- 32768 && g !== (g = /*game*/
612
- d[53].isFavorite) && u(e, "gamefavorite", g), p[0] & /*searchArray*/
641
+ 32768 && f !== (f = /*game*/
642
+ d[53].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
613
643
  32768 && w !== (w = /*game*/
614
644
  d[53].details ? (
615
645
  /*game*/
@@ -653,227 +683,227 @@ function ve(a) {
653
683
  );
654
684
  },
655
685
  d(d) {
656
- d && T(e);
686
+ d && j(e);
657
687
  }
658
688
  };
659
689
  }
660
- function ye(a) {
661
- let e, t, n, r = (
690
+ function Re(t) {
691
+ let e, a, n, r = (
662
692
  /*$_*/
663
- a[21]("notFound") + ""
693
+ t[21]("notFound") + ""
664
694
  ), l, s, i, c = (
665
695
  /*$_*/
666
- a[21]("notFoundText") + ""
667
- ), m, h, g = (
696
+ t[21]("notFoundText") + ""
697
+ ), m, h, f = (
668
698
  /*notfoundicon*/
669
- a[10] === "true" && ke()
699
+ t[10] === "true" && Fe()
670
700
  );
671
701
  return {
672
702
  c() {
673
- e = R("div"), g && g.c(), t = N(), n = R("p"), l = q(r), s = N(), i = R("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
674
- (a[10] == "true" ? "WithIcon" : ""));
703
+ 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*/
704
+ (t[10] == "true" ? "WithIcon" : ""));
675
705
  },
676
706
  m(w, d) {
677
- j(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
707
+ 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);
678
708
  },
679
709
  p(w, d) {
680
710
  /*notfoundicon*/
681
- w[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
711
+ w[10] === "true" ? f || (f = Fe(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
682
712
  2097152 && r !== (r = /*$_*/
683
- w[21]("notFound") + "") && O(l, r), d[0] & /*$_*/
713
+ w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
684
714
  2097152 && c !== (c = /*$_*/
685
- w[21]("notFoundText") + "") && O(m, c), d[0] & /*notfoundicon*/
715
+ w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
686
716
  1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
687
- (w[10] == "true" ? "WithIcon" : "")) && f(e, "class", h);
717
+ (w[10] == "true" ? "WithIcon" : "")) && g(e, "class", h);
688
718
  },
689
719
  d(w) {
690
- w && T(e), g && g.d();
720
+ w && j(e), f && f.d();
691
721
  }
692
722
  };
693
723
  }
694
- function ke(a) {
724
+ function Fe(t) {
695
725
  let e;
696
726
  return {
697
727
  c() {
698
- e = R("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");
728
+ 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");
699
729
  },
700
- m(t, n) {
701
- j(t, e, n);
730
+ m(a, n) {
731
+ E(a, e, n);
702
732
  },
703
- d(t) {
704
- t && T(e);
733
+ d(a) {
734
+ a && j(e);
705
735
  }
706
736
  };
707
737
  }
708
- function it(a) {
709
- let e, t, n, r, l, s, i, c, m, h, g, w, d, p, x, P, M, U, A, W, v = (
738
+ function mt(t) {
739
+ let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, x, M, V, A, W, v = (
710
740
  /*cancelbutton*/
711
- a[9] === "true" && pe(a)
741
+ t[9] === "true" && _e(t)
712
742
  );
713
- function G(b, E) {
743
+ function G(_, T) {
714
744
  return (
715
745
  /*isLoading*/
716
- b[18] ? ot : rt
746
+ _[18] ? ut : ct
717
747
  );
718
748
  }
719
- let B = G(a), k = B(a);
749
+ let B = G(t), k = B(t);
720
750
  return {
721
751
  c() {
722
- e = R("div"), t = R("div"), n = R("div"), r = R("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 = R("input"), c = N(), m = R("span"), h = ue("svg"), g = ue("path"), d = N(), v && v.c(), x = N(), P = R("div"), U = N(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
723
- 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*/
724
- (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
725
- (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
726
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", M = /*cancelbutton*/
727
- a[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (te(
752
+ 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(), N = z(), x = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
753
+ 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*/
754
+ (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
755
+ (t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
756
+ (t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(x, "class", M = /*cancelbutton*/
757
+ t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
728
758
  /*userAgent*/
729
- a[22]
759
+ t[22]
730
760
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
731
761
  },
732
- m(b, E) {
733
- j(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
762
+ m(_, T) {
763
+ E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
734
764
  s,
735
765
  /*searchValue*/
736
- a[12]
737
- ), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, x), _(e, P), _(e, U), k.m(e, null), a[37](e), A || (W = [
738
- Z(
766
+ t[12]
767
+ ), 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, N), b(e, x), b(e, V), k.m(e, null), t[37](e), A || (W = [
768
+ Y(
739
769
  s,
740
770
  "input",
741
771
  /*input_input_handler*/
742
- a[33]
772
+ t[33]
743
773
  ),
744
- Z(
774
+ Y(
745
775
  s,
746
776
  "focus",
747
777
  /*onFocus*/
748
- a[23]
778
+ t[23]
749
779
  ),
750
- Z(
780
+ Y(
751
781
  m,
752
782
  "click",
753
783
  /*click_handler*/
754
- a[35]
784
+ t[35]
755
785
  ),
756
- Z(
757
- P,
786
+ Y(
787
+ x,
758
788
  "click",
759
789
  /*handleOverlay*/
760
- a[24]
790
+ t[24]
761
791
  )
762
792
  ], A = !0);
763
793
  },
764
- p(b, E) {
765
- E[0] & /*$_*/
794
+ p(_, T) {
795
+ T[0] & /*$_*/
766
796
  2097152 && i !== (i = /*$_*/
767
- b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
797
+ _[21]("placeHolderSearchGames")) && g(s, "placeholder", i), T[0] & /*searchValue*/
768
798
  4096 && s.value !== /*searchValue*/
769
- b[12] && ce(
799
+ _[12] && he(
770
800
  s,
771
801
  /*searchValue*/
772
- b[12]
773
- ), E[0] & /*cancelbutton, searchValue*/
802
+ _[12]
803
+ ), T[0] & /*cancelbutton, searchValue*/
774
804
  4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
775
- (b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
776
- (b[12].length != 0 ? "" : "NotVisible")) && f(m, "class", w), /*cancelbutton*/
777
- 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*/
805
+ (_[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
806
+ (_[12].length != 0 ? "" : "NotVisible")) && g(m, "class", w), /*cancelbutton*/
807
+ _[9] === "true" ? v ? v.p(_, T) : (v = _e(_), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
778
808
  8192 && p !== (p = "Search " + /*searchCancelled*/
779
- (b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
809
+ (_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
780
810
  512 && M !== (M = /*cancelbutton*/
781
- b[9] != "true" ? "OverlayCancel" : "") && f(P, "class", M), B === (B = G(b)) && k ? k.p(b, E) : (k.d(1), k = B(b), k && (k.c(), k.m(e, null)));
811
+ _[9] != "true" ? "OverlayCancel" : "") && g(x, "class", M), B === (B = G(_)) && k ? k.p(_, T) : (k.d(1), k = B(_), k && (k.c(), k.m(e, null)));
782
812
  },
783
- i: ie,
784
- o: ie,
785
- d(b) {
786
- b && T(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
813
+ i: ue,
814
+ o: ue,
815
+ d(_) {
816
+ _ && j(e), t[34](null), v && v.d(), k.d(), t[37](null), A = !1, Xe(W);
787
817
  }
788
818
  };
789
819
  }
790
- let ct = 50;
791
- function ut(a, e, t) {
820
+ let ft = 50;
821
+ function gt(t, e, a) {
792
822
  let n;
793
- Ze(a, Qe, (o) => t(21, n = o));
794
- 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: x = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", b, E = !0, V = !1, I = !1, D, Y = !1, X, K, ae = [];
795
- const Ce = () => {
796
- fetch(x).then((S) => S.json()).then((S) => {
823
+ Ke(t, tt, (o) => a(21, n = o));
824
+ 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: N = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", _, T = !0, J = !1, I = !1, P, X = !1, K, Q, re = [];
825
+ const Te = () => {
826
+ fetch(N).then((S) => S.json()).then((S) => {
797
827
  Object.keys(S).forEach((y) => {
798
- me(y, S[y]);
828
+ ge(y, S[y]);
799
829
  });
800
830
  }).catch((S) => {
801
831
  console.log(S);
802
832
  });
803
833
  };
804
- Object.keys(ge).forEach((o) => {
805
- me(o, ge[o]);
834
+ Object.keys(pe).forEach((o) => {
835
+ ge(o, pe[o]);
806
836
  });
807
- const ne = (o) => {
808
- 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();
809
- }, re = () => {
810
- if (t(13, E = !1), t(17, V = !0), r && l && c && k.length < 2) {
811
- t(15, v = []);
837
+ const oe = (o) => {
838
+ 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" && $();
839
+ }, se = () => {
840
+ if (a(13, T = !1), a(17, J = !0), r && l && c && k.length < 2) {
841
+ a(15, v = []);
812
842
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
813
843
  o && (S = o.split(","));
814
- let y = [], C = 0, F = S.length;
844
+ let y = [], R = 0, F = S.length;
815
845
  if (F > 0) {
816
- for (C = 0; C < F; C++) {
817
- let z = new URL(`${r}/v1/casino/games/${S[C]}`);
818
- z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", te(W)), y.push(Ee(z, S[C]));
846
+ for (R = 0; R < F; R++) {
847
+ let D = new URL(`${r}/v1/casino/games/${S[R]}`);
848
+ D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), y.push(De(D, S[R]));
819
849
  }
820
- Promise.all(y).then((z) => {
821
- z = z.filter(function(H) {
822
- return !!H;
823
- }), t(15, v = z.map((H) => (H.isFavorite = oe(H.id), H))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
824
- }).catch((z) => {
825
- J("searchError", "SearchWidget");
850
+ Promise.all(y).then((D) => {
851
+ D = D.filter(function(O) {
852
+ return !!O;
853
+ }), a(15, v = D.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
854
+ }).catch((D) => {
855
+ Z("searchError", "SearchWidget");
826
856
  });
827
857
  }
828
858
  }
829
- le(V), J("searchAttempt", "SearchWidget"), J("SearchInitialized", "SearchWidget");
830
- }, J = (o, S) => {
859
+ ce(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
860
+ }, Z = (o, S) => {
831
861
  typeof gtag == "function" && gtag("event", o, { context: S });
832
- }, Fe = () => {
833
- M != "true" && Q();
834
- }, Le = (o) => new Promise((S, y) => {
835
- t(18, I = !0), fetch(o.href).then((C) => C.json()).then((C) => {
836
- t(18, I = !1), S(C);
837
- }).catch((C) => {
838
- t(18, I = !1), console.error(C), y(C);
862
+ }, je = () => {
863
+ M != "true" && $();
864
+ }, Ee = (o) => new Promise((S, y) => {
865
+ a(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
866
+ a(18, I = !1), S(R);
867
+ }).catch((R) => {
868
+ a(18, I = !1), console.error(R), y(R);
839
869
  });
840
- }), Ee = (o, S) => new Promise((y, C) => {
841
- t(18, I = !0), S && Object.keys(B).indexOf(S) >= 0 ? (t(18, I = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
842
- t(18, I = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
870
+ }), De = (o, S) => new Promise((y, R) => {
871
+ a(18, I = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, I = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
872
+ a(18, I = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
843
873
  }).catch((F) => {
844
- t(18, I = !1), console.error(F), C(F);
874
+ a(18, I = !1), console.error(F), R(F);
845
875
  });
846
- }), Te = () => {
847
- const o = new URL(`${r}/v1/player/${K}/favorites/`);
848
- t(18, I = !0);
876
+ }), Ge = () => {
877
+ const o = new URL(`${r}/v1/player/${Q}/favorites/`);
878
+ a(18, I = !0);
849
879
  let S = {
850
880
  method: "GET",
851
- headers: { "X-SessionID": X }
881
+ headers: { "X-SessionID": K }
852
882
  };
853
883
  fetch(o.href, S).then((y) => y.json()).then((y) => {
854
- t(18, I = !1), ae = y.items.map((C) => C.id);
884
+ a(18, I = !1), re = y.items.map((R) => R.id);
855
885
  });
856
- }, je = () => {
857
- t(32, Y = !0), t(19, X = s), t(20, K = i);
858
- }, oe = (o) => ae.findIndex((S) => S == o) !== -1, ze = (o) => {
886
+ }, Ie = () => {
887
+ a(32, X = !0), a(19, K = s), a(20, Q = i);
888
+ }, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
859
889
  if ((o == null ? void 0 : o.length) === 0)
860
890
  return "";
861
- let S, y = 99999999999, C;
891
+ let S, y = 99999999999, R;
862
892
  const F = new Date(Date.now());
863
- return o.forEach((z, H) => {
864
- const Be = new Date(z.schedules[0].startTime), ee = new Date(z.schedules[0].endTime);
865
- $(ee).diff(F) < y && (y = $(ee).diff(F), C = H), $(F).isAfter(Be) && $(F).isBefore(ee) && (S = o[C].name);
893
+ return o.forEach((D, O) => {
894
+ const qe = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
895
+ 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);
866
896
  }), S;
867
- }, Ge = (o) => {
897
+ }, Ne = (o) => {
868
898
  if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
869
899
  let S;
870
900
  G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
871
901
  }
872
- }, Q = () => {
873
- t(12, k = ""), t(13, E = !0), t(18, I = !1), t(15, v = []), t(17, V = !1), le(V);
874
- }, se = () => {
875
- t(12, k = ""), b.focus();
876
- }, le = (o) => {
902
+ }, $ = () => {
903
+ a(12, k = ""), a(13, T = !0), a(18, I = !1), a(15, v = []), a(17, J = !1), ce(J);
904
+ }, ie = () => {
905
+ a(12, k = ""), _.focus();
906
+ }, ce = (o) => {
877
907
  window.postMessage(
878
908
  {
879
909
  type: o === !0 ? "searchActive" : "searchCancelled",
@@ -881,96 +911,96 @@ function ut(a, e, t) {
881
911
  },
882
912
  window.location.href
883
913
  );
884
- }, Ie = () => {
885
- at(c);
914
+ }, xe = () => {
915
+ ot(c);
886
916
  };
887
- Ye(() => (window.addEventListener("message", ne, !1), () => {
888
- window.removeEventListener("message", ne);
917
+ Qe(() => (window.addEventListener("message", oe, !1), () => {
918
+ window.removeEventListener("message", oe);
889
919
  }));
890
- function Ne() {
891
- k = this.value, t(12, k);
920
+ function Pe() {
921
+ k = this.value, a(12, k);
892
922
  }
893
- function xe(o) {
894
- he[o ? "unshift" : "push"](() => {
895
- b = o, t(16, b);
923
+ function Me(o) {
924
+ me[o ? "unshift" : "push"](() => {
925
+ _ = o, a(16, _);
896
926
  });
897
927
  }
898
- const Pe = () => se(), De = () => Q();
899
- function Me(o) {
900
- he[o ? "unshift" : "push"](() => {
901
- D = o, t(14, D);
928
+ const Be = () => ie(), Ae = () => $();
929
+ function Oe(o) {
930
+ me[o ? "unshift" : "push"](() => {
931
+ P = o, a(14, P);
902
932
  });
903
933
  }
904
- return a.$$set = (o) => {
905
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "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, x = o.translationurl), "showfavorites" in o && t(8, P = o.showfavorites), "cancelbutton" in o && t(9, M = o.cancelbutton), "notfoundicon" in o && t(10, U = o.notfoundicon), "mbsource" in o && t(11, A = o.mbsource);
906
- }, a.$$.update = () => {
907
- if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
934
+ return t.$$set = (o) => {
935
+ "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, N = o.translationurl), "showfavorites" in o && a(8, x = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
936
+ }, t.$$.update = () => {
937
+ if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
908
938
  268447747)
909
939
  if (k.length >= 2) {
910
940
  const o = new URL(`${r}/v1/casino/games`);
911
- 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) => {
912
- Xe("game_search", { searchValue: k }), t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
941
+ 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) => {
942
+ $e("game_search", { searchValue: k }), a(15, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
913
943
  });
914
944
  } else
915
- E || re();
916
- a.$$.dirty[0] & /*lang*/
917
- 2 && c && Ie(), a.$$.dirty[1] & /*translationurl*/
918
- 1 && x && Ce(), a.$$.dirty[0] & /*session, userid*/
919
- 1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
920
- 256 | a.$$.dirty[1] & /*isLoggedIn*/
921
- 2 && P && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
922
- 16388 && m && D && $e(D, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
923
- 16392 && h && D && et(D, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
924
- 18432 && D && tt(D, `${A}.Style`);
945
+ T || se();
946
+ t.$$.dirty[0] & /*lang*/
947
+ 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
948
+ 1 && N && Te(), t.$$.dirty[0] & /*session, userid*/
949
+ 1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
950
+ 256 | t.$$.dirty[1] & /*isLoggedIn*/
951
+ 2 && x && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
952
+ 16388 && m && P && at(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
953
+ 16392 && h && P && nt(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
954
+ 18432 && P && rt(P, `${A}.Style`);
925
955
  }, [
926
956
  r,
927
957
  c,
928
958
  m,
929
959
  h,
930
- g,
960
+ f,
931
961
  w,
932
962
  d,
933
963
  p,
934
- P,
964
+ x,
935
965
  M,
936
- U,
966
+ V,
937
967
  A,
938
968
  k,
939
- E,
940
- D,
969
+ T,
970
+ P,
941
971
  v,
942
- b,
943
- V,
972
+ _,
973
+ J,
944
974
  I,
945
- X,
946
975
  K,
976
+ Q,
947
977
  n,
948
978
  W,
949
- re,
950
- Fe,
951
- ze,
952
- Q,
953
979
  se,
980
+ je,
981
+ ze,
982
+ $,
983
+ ie,
954
984
  l,
955
985
  s,
956
986
  i,
957
- x,
958
- Y,
959
- Ne,
960
- xe,
987
+ N,
988
+ X,
961
989
  Pe,
962
- De,
963
- Me
990
+ Me,
991
+ Be,
992
+ Ae,
993
+ Oe
964
994
  ];
965
995
  }
966
- class ht extends Oe {
996
+ class pt extends Ue {
967
997
  constructor(e) {
968
- super(), qe(
998
+ super(), Ve(
969
999
  this,
970
1000
  e,
971
- ut,
972
- it,
973
- We,
1001
+ gt,
1002
+ mt,
1003
+ Je,
974
1004
  {
975
1005
  endpoint: 0,
976
1006
  datasource: 28,
@@ -989,7 +1019,7 @@ class ht extends Oe {
989
1019
  notfoundicon: 10,
990
1020
  mbsource: 11
991
1021
  },
992
- nt,
1022
+ it,
993
1023
  [-1, -1]
994
1024
  );
995
1025
  }
@@ -1090,7 +1120,7 @@ class ht extends Oe {
1090
1120
  this.$$set({ mbsource: e }), L();
1091
1121
  }
1092
1122
  }
1093
- Ue(ht, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1123
+ Ze(pt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1094
1124
  export {
1095
- ht as default
1125
+ pt as default
1096
1126
  };