@everymatrix/casino-search-nd 1.81.2 → 1.83.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.
- package/components/CasinoSearchNd-AP1-3n0t.cjs +1 -0
- package/components/{CasinoSearchNd-BaiUwMQp.js → CasinoSearchNd-DZg5Tj2H.js} +438 -354
- package/components/{CasinoSearchNd-CDd9k_es.js → CasinoSearchNd-ZLzc-W7U.js} +466 -370
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/esnext/casino-search-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSearchNd-q8JuV0zo.cjs +0 -1
|
@@ -1,27 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var tt = Object.defineProperty;
|
|
2
|
+
var ge = Object.getOwnPropertySymbols;
|
|
3
|
+
var at = Object.prototype.hasOwnProperty, nt = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var fe = (a, e, t) => e in a ? tt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, pe = (a, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
at.call(e, t) && fe(a, t, e[t]);
|
|
7
|
+
if (ge)
|
|
8
|
+
for (var t of ge(e))
|
|
9
|
+
nt.call(e, t) && fe(a, t, e[t]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
var Se = (a, e, t) => new Promise((r, o) => {
|
|
2
13
|
var l = (c) => {
|
|
3
14
|
try {
|
|
4
15
|
i(t.next(c));
|
|
5
16
|
} catch (m) {
|
|
6
|
-
|
|
17
|
+
o(m);
|
|
7
18
|
}
|
|
8
19
|
}, s = (c) => {
|
|
9
20
|
try {
|
|
10
21
|
i(t.throw(c));
|
|
11
22
|
} catch (m) {
|
|
12
|
-
|
|
23
|
+
o(m);
|
|
13
24
|
}
|
|
14
|
-
}, i = (c) => c.done ?
|
|
25
|
+
}, i = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(l, s);
|
|
15
26
|
i((t = t.apply(a, e)).next());
|
|
16
27
|
});
|
|
17
|
-
import { a as
|
|
18
|
-
function
|
|
19
|
-
|
|
28
|
+
import { a as rt, $ as ot, S as st, i as lt, f as L, s as it, c as ct, b as ut, n as _e, d as T, r as ht, e as f, g as we, h as E, j as w, l as Y, k as R, m as z, o as be, p as se, q as dt, t as mt, u as q, v as U, w as ve, x as gt, y as ft, z as ye, A as ke, B as pt, C as Ne, D as u, E as St, F as _t, G as wt, H as bt } from "./CasinoGameThumbnailNd-YLxBrh6Q.js";
|
|
29
|
+
function Re(a, e) {
|
|
30
|
+
rt(a, e);
|
|
20
31
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
32
|
+
function vt(a) {
|
|
33
|
+
ot.set(a);
|
|
23
34
|
}
|
|
24
|
-
const
|
|
35
|
+
const Ce = {
|
|
25
36
|
en: {
|
|
26
37
|
recentSearch: "Recent search",
|
|
27
38
|
placeHolderSearchGames: "Search for Games",
|
|
@@ -203,7 +214,7 @@ const ge = {
|
|
|
203
214
|
notFoundText: "Please type the correct name of the game to start to play.",
|
|
204
215
|
noRecentSearches: "No recent searches yet. Search for any of our games."
|
|
205
216
|
}
|
|
206
|
-
},
|
|
217
|
+
}, yt = (a, e) => function(...t) {
|
|
207
218
|
clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
|
|
208
219
|
a.apply(this, t);
|
|
209
220
|
}, e);
|
|
@@ -213,10 +224,10 @@ if (typeof window != "undefined") {
|
|
|
213
224
|
return function(...t) {
|
|
214
225
|
try {
|
|
215
226
|
return e.apply(this, t);
|
|
216
|
-
} catch (
|
|
217
|
-
if (
|
|
227
|
+
} catch (r) {
|
|
228
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
218
229
|
return !1;
|
|
219
|
-
throw
|
|
230
|
+
throw r;
|
|
220
231
|
}
|
|
221
232
|
};
|
|
222
233
|
};
|
|
@@ -224,267 +235,267 @@ if (typeof window != "undefined") {
|
|
|
224
235
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
225
236
|
});
|
|
226
237
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
238
|
+
function kt(a) {
|
|
239
|
+
ut(a, "svelte-1vt65d9", "*,*::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:10px 10px;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;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px 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 .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}");
|
|
229
240
|
}
|
|
230
|
-
function
|
|
231
|
-
const
|
|
232
|
-
return
|
|
241
|
+
function Fe(a, e, t) {
|
|
242
|
+
const r = a.slice();
|
|
243
|
+
return r[63] = e[t], r;
|
|
233
244
|
}
|
|
234
|
-
function
|
|
245
|
+
function Le(a) {
|
|
235
246
|
let e, t = (
|
|
236
247
|
/*$_*/
|
|
237
248
|
a[21]("cancel") + ""
|
|
238
|
-
),
|
|
249
|
+
), r, o, l, s;
|
|
239
250
|
return {
|
|
240
251
|
c() {
|
|
241
|
-
e =
|
|
252
|
+
e = R("small"), r = U(t), f(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
|
|
242
253
|
(a[16] ? "NotVisible" : ""));
|
|
243
254
|
},
|
|
244
255
|
m(i, c) {
|
|
245
|
-
|
|
256
|
+
E(i, e, c), w(e, r), l || (s = Y(
|
|
246
257
|
e,
|
|
247
258
|
"click",
|
|
248
259
|
/*click_handler_1*/
|
|
249
|
-
a[
|
|
260
|
+
a[39]
|
|
250
261
|
), l = !0);
|
|
251
262
|
},
|
|
252
263
|
p(i, c) {
|
|
253
264
|
c[0] & /*$_*/
|
|
254
265
|
2097152 && t !== (t = /*$_*/
|
|
255
|
-
i[21]("cancel") + "") &&
|
|
256
|
-
65536 &&
|
|
257
|
-
(i[16] ? "NotVisible" : "")) &&
|
|
266
|
+
i[21]("cancel") + "") && q(r, t), c[0] & /*searchCancelled*/
|
|
267
|
+
65536 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
|
|
268
|
+
(i[16] ? "NotVisible" : "")) && f(e, "class", o);
|
|
258
269
|
},
|
|
259
270
|
d(i) {
|
|
260
|
-
i &&
|
|
271
|
+
i && T(e), l = !1, s();
|
|
261
272
|
}
|
|
262
273
|
};
|
|
263
274
|
}
|
|
264
|
-
function
|
|
265
|
-
let e, t,
|
|
266
|
-
function l(h,
|
|
275
|
+
function Rt(a) {
|
|
276
|
+
let e, t, r, o;
|
|
277
|
+
function l(h, g) {
|
|
267
278
|
if (
|
|
268
279
|
/*searchActive*/
|
|
269
280
|
h[17] == !0 && /*searchValue*/
|
|
270
281
|
h[14].length < 2
|
|
271
282
|
)
|
|
272
|
-
return
|
|
283
|
+
return Lt;
|
|
273
284
|
if (
|
|
274
285
|
/*searchArray*/
|
|
275
286
|
h[13].length != 0
|
|
276
287
|
)
|
|
277
|
-
return
|
|
288
|
+
return Ft;
|
|
278
289
|
}
|
|
279
290
|
let s = l(a), i = s && s(a), c = (
|
|
280
291
|
/*searchCancelled*/
|
|
281
|
-
a[16] === !1 &&
|
|
292
|
+
a[16] === !1 && je(a)
|
|
282
293
|
), m = (
|
|
283
294
|
/*searchValue*/
|
|
284
295
|
a[14].length >= 2 && /*searchArray*/
|
|
285
|
-
a[13].length == 0 &&
|
|
296
|
+
a[13].length == 0 && ze(a)
|
|
286
297
|
);
|
|
287
298
|
return {
|
|
288
299
|
c() {
|
|
289
|
-
i && i.c(), e =
|
|
300
|
+
i && i.c(), e = z(), t = R("div"), c && c.c(), r = z(), m && m.c(), f(t, "class", o = "SearchResultsContainer " + /*searchActive*/
|
|
290
301
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
291
302
|
},
|
|
292
|
-
m(h,
|
|
293
|
-
i && i.m(h,
|
|
303
|
+
m(h, g) {
|
|
304
|
+
i && i.m(h, g), E(h, e, g), E(h, t, g), c && c.m(t, null), w(t, r), m && m.m(t, null);
|
|
294
305
|
},
|
|
295
|
-
p(h,
|
|
296
|
-
s === (s = l(h)) && i ? i.p(h,
|
|
297
|
-
h[16] === !1 ? c ? c.p(h,
|
|
306
|
+
p(h, g) {
|
|
307
|
+
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*/
|
|
308
|
+
h[16] === !1 ? c ? c.p(h, g) : (c = je(h), c.c(), c.m(t, r)) : c && (c.d(1), c = null), /*searchValue*/
|
|
298
309
|
h[14].length >= 2 && /*searchArray*/
|
|
299
|
-
h[13].length == 0 ? m ? m.p(h,
|
|
300
|
-
131072 &&
|
|
301
|
-
(h[17] == !0 ? "" : "NotVisible")) &&
|
|
310
|
+
h[13].length == 0 ? m ? m.p(h, g) : (m = ze(h), m.c(), m.m(t, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
|
|
311
|
+
131072 && o !== (o = "SearchResultsContainer " + /*searchActive*/
|
|
312
|
+
(h[17] == !0 ? "" : "NotVisible")) && f(t, "class", o);
|
|
302
313
|
},
|
|
303
314
|
d(h) {
|
|
304
|
-
h && (
|
|
315
|
+
h && (T(e), T(t)), i && i.d(h), c && c.d(), m && m.d();
|
|
305
316
|
}
|
|
306
317
|
};
|
|
307
318
|
}
|
|
308
|
-
function
|
|
319
|
+
function Ct(a) {
|
|
309
320
|
let e, t = (
|
|
310
321
|
/*$_*/
|
|
311
322
|
a[21]("loading") + ""
|
|
312
|
-
),
|
|
323
|
+
), r;
|
|
313
324
|
return {
|
|
314
325
|
c() {
|
|
315
|
-
e =
|
|
326
|
+
e = R("p"), r = U(t), f(e, "class", "LoadingContent");
|
|
316
327
|
},
|
|
317
|
-
m(
|
|
318
|
-
|
|
328
|
+
m(o, l) {
|
|
329
|
+
E(o, e, l), w(e, r);
|
|
319
330
|
},
|
|
320
|
-
p(
|
|
331
|
+
p(o, l) {
|
|
321
332
|
l[0] & /*$_*/
|
|
322
333
|
2097152 && t !== (t = /*$_*/
|
|
323
|
-
|
|
334
|
+
o[21]("loading") + "") && q(r, t);
|
|
324
335
|
},
|
|
325
|
-
d(
|
|
326
|
-
|
|
336
|
+
d(o) {
|
|
337
|
+
o && T(e);
|
|
327
338
|
}
|
|
328
339
|
};
|
|
329
340
|
}
|
|
330
|
-
function
|
|
341
|
+
function Ft(a) {
|
|
331
342
|
let e, t = (
|
|
332
343
|
/*$_*/
|
|
333
344
|
a[21]("searchResult") + ""
|
|
334
|
-
),
|
|
345
|
+
), r;
|
|
335
346
|
return {
|
|
336
347
|
c() {
|
|
337
|
-
e =
|
|
348
|
+
e = R("p"), r = U(t), f(e, "class", "SearchMessage");
|
|
338
349
|
},
|
|
339
|
-
m(
|
|
340
|
-
|
|
350
|
+
m(o, l) {
|
|
351
|
+
E(o, e, l), w(e, r);
|
|
341
352
|
},
|
|
342
|
-
p(
|
|
353
|
+
p(o, l) {
|
|
343
354
|
l[0] & /*$_*/
|
|
344
355
|
2097152 && t !== (t = /*$_*/
|
|
345
|
-
|
|
356
|
+
o[21]("searchResult") + "") && q(r, t);
|
|
346
357
|
},
|
|
347
|
-
d(
|
|
348
|
-
|
|
358
|
+
d(o) {
|
|
359
|
+
o && T(e);
|
|
349
360
|
}
|
|
350
361
|
};
|
|
351
362
|
}
|
|
352
|
-
function
|
|
353
|
-
let e, t,
|
|
363
|
+
function Lt(a) {
|
|
364
|
+
let e, t, r = (
|
|
354
365
|
/*searchArray*/
|
|
355
|
-
a[13].length !== 0 &&
|
|
356
|
-
),
|
|
366
|
+
a[13].length !== 0 && Te(a)
|
|
367
|
+
), o = (
|
|
357
368
|
/*searchArray*/
|
|
358
|
-
a[13].length == 0 &&
|
|
369
|
+
a[13].length == 0 && Ee(a)
|
|
359
370
|
);
|
|
360
371
|
return {
|
|
361
372
|
c() {
|
|
362
|
-
|
|
373
|
+
r && r.c(), e = z(), o && o.c(), t = Ne();
|
|
363
374
|
},
|
|
364
375
|
m(l, s) {
|
|
365
|
-
|
|
376
|
+
r && r.m(l, s), E(l, e, s), o && o.m(l, s), E(l, t, s);
|
|
366
377
|
},
|
|
367
378
|
p(l, s) {
|
|
368
379
|
/*searchArray*/
|
|
369
|
-
l[13].length !== 0 ?
|
|
370
|
-
l[13].length == 0 ?
|
|
380
|
+
l[13].length !== 0 ? r ? r.p(l, s) : (r = Te(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*searchArray*/
|
|
381
|
+
l[13].length == 0 ? o ? o.p(l, s) : (o = Ee(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
|
371
382
|
},
|
|
372
383
|
d(l) {
|
|
373
|
-
l && (
|
|
384
|
+
l && (T(e), T(t)), r && r.d(l), o && o.d(l);
|
|
374
385
|
}
|
|
375
386
|
};
|
|
376
387
|
}
|
|
377
|
-
function
|
|
388
|
+
function Te(a) {
|
|
378
389
|
let e, t = (
|
|
379
390
|
/*$_*/
|
|
380
391
|
a[21]("recentSearch") + ""
|
|
381
|
-
),
|
|
392
|
+
), r;
|
|
382
393
|
return {
|
|
383
394
|
c() {
|
|
384
|
-
e =
|
|
395
|
+
e = R("p"), r = U(t), f(e, "class", "SearchMessage");
|
|
385
396
|
},
|
|
386
|
-
m(
|
|
387
|
-
|
|
397
|
+
m(o, l) {
|
|
398
|
+
E(o, e, l), w(e, r);
|
|
388
399
|
},
|
|
389
|
-
p(
|
|
400
|
+
p(o, l) {
|
|
390
401
|
l[0] & /*$_*/
|
|
391
402
|
2097152 && t !== (t = /*$_*/
|
|
392
|
-
|
|
403
|
+
o[21]("recentSearch") + "") && q(r, t);
|
|
393
404
|
},
|
|
394
|
-
d(
|
|
395
|
-
|
|
405
|
+
d(o) {
|
|
406
|
+
o && T(e);
|
|
396
407
|
}
|
|
397
408
|
};
|
|
398
409
|
}
|
|
399
|
-
function
|
|
400
|
-
let e, t,
|
|
410
|
+
function Ee(a) {
|
|
411
|
+
let e, t, r, o = (
|
|
401
412
|
/*$_*/
|
|
402
413
|
a[21]("noRecentSearches") + ""
|
|
403
414
|
), l, s, i = (
|
|
404
415
|
/*notfoundicon*/
|
|
405
|
-
a[11] === "true" &&
|
|
416
|
+
a[11] === "true" && Ie()
|
|
406
417
|
);
|
|
407
418
|
return {
|
|
408
419
|
c() {
|
|
409
|
-
e =
|
|
420
|
+
e = R("div"), i && i.c(), t = z(), r = R("p"), l = U(o), f(r, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
410
421
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
411
422
|
},
|
|
412
423
|
m(c, m) {
|
|
413
|
-
|
|
424
|
+
E(c, e, m), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
|
|
414
425
|
},
|
|
415
426
|
p(c, m) {
|
|
416
427
|
/*notfoundicon*/
|
|
417
|
-
c[11] === "true" ? i || (i =
|
|
418
|
-
2097152 &&
|
|
419
|
-
c[21]("noRecentSearches") + "") &&
|
|
428
|
+
c[11] === "true" ? i || (i = Ie(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
|
|
429
|
+
2097152 && o !== (o = /*$_*/
|
|
430
|
+
c[21]("noRecentSearches") + "") && q(l, o), m[0] & /*notfoundicon*/
|
|
420
431
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
421
|
-
(c[11] == "true" ? "WithIcon" : "")) &&
|
|
432
|
+
(c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
|
422
433
|
},
|
|
423
434
|
d(c) {
|
|
424
|
-
c &&
|
|
435
|
+
c && T(e), i && i.d();
|
|
425
436
|
}
|
|
426
437
|
};
|
|
427
438
|
}
|
|
428
|
-
function
|
|
439
|
+
function Ie(a) {
|
|
429
440
|
let e;
|
|
430
441
|
return {
|
|
431
442
|
c() {
|
|
432
|
-
e =
|
|
443
|
+
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");
|
|
433
444
|
},
|
|
434
|
-
m(t,
|
|
435
|
-
|
|
445
|
+
m(t, r) {
|
|
446
|
+
E(t, e, r);
|
|
436
447
|
},
|
|
437
448
|
d(t) {
|
|
438
|
-
t &&
|
|
449
|
+
t && T(e);
|
|
439
450
|
}
|
|
440
451
|
};
|
|
441
452
|
}
|
|
442
|
-
function
|
|
443
|
-
let e, t =
|
|
453
|
+
function je(a) {
|
|
454
|
+
let e, t = ke(
|
|
444
455
|
/*searchArray*/
|
|
445
456
|
a[13]
|
|
446
|
-
),
|
|
447
|
-
for (let
|
|
448
|
-
|
|
457
|
+
), r = [];
|
|
458
|
+
for (let o = 0; o < t.length; o += 1)
|
|
459
|
+
r[o] = Ge(Fe(a, t, o));
|
|
449
460
|
return {
|
|
450
461
|
c() {
|
|
451
|
-
for (let
|
|
452
|
-
|
|
453
|
-
e =
|
|
462
|
+
for (let o = 0; o < r.length; o += 1)
|
|
463
|
+
r[o].c();
|
|
464
|
+
e = Ne();
|
|
454
465
|
},
|
|
455
|
-
m(
|
|
456
|
-
for (let s = 0; s <
|
|
457
|
-
|
|
458
|
-
|
|
466
|
+
m(o, l) {
|
|
467
|
+
for (let s = 0; s < r.length; s += 1)
|
|
468
|
+
r[s] && r[s].m(o, l);
|
|
469
|
+
E(o, e, l);
|
|
459
470
|
},
|
|
460
|
-
p(
|
|
471
|
+
p(o, l) {
|
|
461
472
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
462
473
|
35136511) {
|
|
463
|
-
t =
|
|
474
|
+
t = ke(
|
|
464
475
|
/*searchArray*/
|
|
465
|
-
|
|
476
|
+
o[13]
|
|
466
477
|
);
|
|
467
478
|
let s;
|
|
468
479
|
for (s = 0; s < t.length; s += 1) {
|
|
469
|
-
const i =
|
|
470
|
-
|
|
480
|
+
const i = Fe(o, t, s);
|
|
481
|
+
r[s] ? r[s].p(i, l) : (r[s] = Ge(i), r[s].c(), r[s].m(e.parentNode, e));
|
|
471
482
|
}
|
|
472
|
-
for (; s <
|
|
473
|
-
|
|
474
|
-
|
|
483
|
+
for (; s < r.length; s += 1)
|
|
484
|
+
r[s].d(1);
|
|
485
|
+
r.length = t.length;
|
|
475
486
|
}
|
|
476
487
|
},
|
|
477
|
-
d(
|
|
478
|
-
|
|
488
|
+
d(o) {
|
|
489
|
+
o && T(e), pt(r, o);
|
|
479
490
|
}
|
|
480
491
|
};
|
|
481
492
|
}
|
|
482
|
-
function
|
|
483
|
-
let e, t,
|
|
493
|
+
function Ge(a) {
|
|
494
|
+
let e, t, r, o, l, s, i, c, m, h, g, y;
|
|
484
495
|
return {
|
|
485
496
|
c() {
|
|
486
497
|
var d;
|
|
487
|
-
e =
|
|
498
|
+
e = R("casino-game-thumbnail-nd"), u(
|
|
488
499
|
e,
|
|
489
500
|
"endpoint",
|
|
490
501
|
/*endpoint*/
|
|
@@ -510,28 +521,28 @@ function ke(a) {
|
|
|
510
521
|
/*lang*/
|
|
511
522
|
a[1]
|
|
512
523
|
), u(e, "gamethumbnail", t = /*game*/
|
|
513
|
-
a[
|
|
514
|
-
a[
|
|
515
|
-
a[
|
|
516
|
-
a[
|
|
517
|
-
a[
|
|
518
|
-
((d = a[
|
|
524
|
+
a[63].thumbnail), u(e, "gamename", r = /*game*/
|
|
525
|
+
a[63].name), u(e, "gamevendor", o = /*game*/
|
|
526
|
+
a[63].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
|
|
527
|
+
a[63].launchUrl), u(e, "gameisnew", s = /*game*/
|
|
528
|
+
a[63].isNew), u(e, "gametag", i = /*game*/
|
|
529
|
+
((d = a[63].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
|
|
519
530
|
a[25](
|
|
520
531
|
/*game*/
|
|
521
|
-
a[
|
|
532
|
+
a[63].advancedTags
|
|
522
533
|
)), u(e, "gamecellsize", c = /*game*/
|
|
523
|
-
a[
|
|
524
|
-
a[
|
|
534
|
+
a[63].cellSize), u(e, "gameid", m = /*game*/
|
|
535
|
+
a[63].id), u(
|
|
525
536
|
e,
|
|
526
537
|
"showgamename",
|
|
527
538
|
/*showgamename*/
|
|
528
539
|
a[7]
|
|
529
540
|
), u(e, "gamefunmode", h = /*game*/
|
|
530
|
-
a[
|
|
531
|
-
a[
|
|
532
|
-
a[
|
|
541
|
+
a[63].hasFunMode), u(e, "gamefavorite", g = /*game*/
|
|
542
|
+
a[63].isFavorite), u(e, "livelobbyendpoint", y = /*game*/
|
|
543
|
+
a[63].details ? (
|
|
533
544
|
/*game*/
|
|
534
|
-
a[
|
|
545
|
+
a[63].launchUrl
|
|
535
546
|
) : ""), u(
|
|
536
547
|
e,
|
|
537
548
|
"integratedgameframedesktop",
|
|
@@ -564,107 +575,107 @@ function ke(a) {
|
|
|
564
575
|
a[2]
|
|
565
576
|
);
|
|
566
577
|
},
|
|
567
|
-
m(d,
|
|
568
|
-
|
|
578
|
+
m(d, S) {
|
|
579
|
+
E(d, e, S);
|
|
569
580
|
},
|
|
570
|
-
p(d,
|
|
571
|
-
var
|
|
572
|
-
|
|
581
|
+
p(d, S) {
|
|
582
|
+
var x;
|
|
583
|
+
S[0] & /*endpoint*/
|
|
573
584
|
1 && u(
|
|
574
585
|
e,
|
|
575
586
|
"endpoint",
|
|
576
587
|
/*endpoint*/
|
|
577
588
|
d[0]
|
|
578
|
-
),
|
|
589
|
+
), S[0] & /*sessionID*/
|
|
579
590
|
524288 && u(
|
|
580
591
|
e,
|
|
581
592
|
"session",
|
|
582
593
|
/*sessionID*/
|
|
583
594
|
d[19]
|
|
584
|
-
),
|
|
595
|
+
), S[0] & /*playerID*/
|
|
585
596
|
1048576 && u(
|
|
586
597
|
e,
|
|
587
598
|
"userid",
|
|
588
599
|
/*playerID*/
|
|
589
600
|
d[20]
|
|
590
|
-
),
|
|
601
|
+
), S[0] & /*showfavorites*/
|
|
591
602
|
512 && u(
|
|
592
603
|
e,
|
|
593
604
|
"favorites",
|
|
594
605
|
/*showfavorites*/
|
|
595
606
|
d[9]
|
|
596
|
-
),
|
|
607
|
+
), S[0] & /*lang*/
|
|
597
608
|
2 && u(
|
|
598
609
|
e,
|
|
599
610
|
"lang",
|
|
600
611
|
/*lang*/
|
|
601
612
|
d[1]
|
|
602
|
-
),
|
|
613
|
+
), S[0] & /*searchArray*/
|
|
603
614
|
8192 && t !== (t = /*game*/
|
|
604
|
-
d[
|
|
605
|
-
8192 && n !== (n = /*game*/
|
|
606
|
-
d[55].name) && u(e, "gamename", n), p[0] & /*searchArray*/
|
|
615
|
+
d[63].thumbnail) && u(e, "gamethumbnail", t), S[0] & /*searchArray*/
|
|
607
616
|
8192 && r !== (r = /*game*/
|
|
608
|
-
d[
|
|
617
|
+
d[63].name) && u(e, "gamename", r), S[0] & /*searchArray*/
|
|
618
|
+
8192 && o !== (o = /*game*/
|
|
619
|
+
d[63].vendor.name) && u(e, "gamevendor", o), S[0] & /*searchArray*/
|
|
609
620
|
8192 && l !== (l = /*game*/
|
|
610
|
-
d[
|
|
621
|
+
d[63].launchUrl) && u(e, "gameLaunchUrl", l), S[0] & /*searchArray*/
|
|
611
622
|
8192 && s !== (s = /*game*/
|
|
612
|
-
d[
|
|
623
|
+
d[63].isNew) && u(e, "gameisnew", s), S[0] & /*searchArray*/
|
|
613
624
|
8192 && i !== (i = /*game*/
|
|
614
|
-
((
|
|
625
|
+
((x = d[63].advancedTags) == null ? void 0 : x.length) > 0 && /*addGameTag*/
|
|
615
626
|
d[25](
|
|
616
627
|
/*game*/
|
|
617
|
-
d[
|
|
618
|
-
)) && u(e, "gametag", i),
|
|
628
|
+
d[63].advancedTags
|
|
629
|
+
)) && u(e, "gametag", i), S[0] & /*searchArray*/
|
|
619
630
|
8192 && c !== (c = /*game*/
|
|
620
|
-
d[
|
|
631
|
+
d[63].cellSize) && u(e, "gamecellsize", c), S[0] & /*searchArray*/
|
|
621
632
|
8192 && m !== (m = /*game*/
|
|
622
|
-
d[
|
|
633
|
+
d[63].id) && u(e, "gameid", m), S[0] & /*showgamename*/
|
|
623
634
|
128 && u(
|
|
624
635
|
e,
|
|
625
636
|
"showgamename",
|
|
626
637
|
/*showgamename*/
|
|
627
638
|
d[7]
|
|
628
|
-
),
|
|
639
|
+
), S[0] & /*searchArray*/
|
|
629
640
|
8192 && h !== (h = /*game*/
|
|
630
|
-
d[
|
|
631
|
-
8192 &&
|
|
632
|
-
d[
|
|
633
|
-
8192 &&
|
|
634
|
-
d[
|
|
641
|
+
d[63].hasFunMode) && u(e, "gamefunmode", h), S[0] & /*searchArray*/
|
|
642
|
+
8192 && g !== (g = /*game*/
|
|
643
|
+
d[63].isFavorite) && u(e, "gamefavorite", g), S[0] & /*searchArray*/
|
|
644
|
+
8192 && y !== (y = /*game*/
|
|
645
|
+
d[63].details ? (
|
|
635
646
|
/*game*/
|
|
636
|
-
d[
|
|
637
|
-
) : "") && u(e, "livelobbyendpoint",
|
|
647
|
+
d[63].launchUrl
|
|
648
|
+
) : "") && u(e, "livelobbyendpoint", y), S[0] & /*integratedgameframedesktop*/
|
|
638
649
|
32 && u(
|
|
639
650
|
e,
|
|
640
651
|
"integratedgameframedesktop",
|
|
641
652
|
/*integratedgameframedesktop*/
|
|
642
653
|
d[5]
|
|
643
|
-
),
|
|
654
|
+
), S[0] & /*integratedgameframemobile*/
|
|
644
655
|
64 && u(
|
|
645
656
|
e,
|
|
646
657
|
"integratedgameframemobile",
|
|
647
658
|
/*integratedgameframemobile*/
|
|
648
659
|
d[6]
|
|
649
|
-
),
|
|
660
|
+
), S[0] & /*clientstyling*/
|
|
650
661
|
8 && u(
|
|
651
662
|
e,
|
|
652
663
|
"clientstyling",
|
|
653
664
|
/*clientstyling*/
|
|
654
665
|
d[3]
|
|
655
|
-
),
|
|
666
|
+
), S[0] & /*clientstylingurl*/
|
|
656
667
|
16 && u(
|
|
657
668
|
e,
|
|
658
669
|
"clientstylingurl",
|
|
659
670
|
/*clientstylingurl*/
|
|
660
671
|
d[4]
|
|
661
|
-
),
|
|
672
|
+
), S[0] & /*gamepagemodalurl*/
|
|
662
673
|
256 && u(
|
|
663
674
|
e,
|
|
664
675
|
"gamepagemodalurl",
|
|
665
676
|
/*gamepagemodalurl*/
|
|
666
677
|
d[8]
|
|
667
|
-
),
|
|
678
|
+
), S[0] & /*mbsource*/
|
|
668
679
|
4 && u(
|
|
669
680
|
e,
|
|
670
681
|
"mbsource",
|
|
@@ -673,331 +684,402 @@ function ke(a) {
|
|
|
673
684
|
);
|
|
674
685
|
},
|
|
675
686
|
d(d) {
|
|
676
|
-
d &&
|
|
687
|
+
d && T(e);
|
|
677
688
|
}
|
|
678
689
|
};
|
|
679
690
|
}
|
|
680
|
-
function
|
|
681
|
-
let e, t,
|
|
691
|
+
function ze(a) {
|
|
692
|
+
let e, t, r, o = (
|
|
682
693
|
/*$_*/
|
|
683
694
|
a[21]("notFound") + ""
|
|
684
695
|
), l, s, i, c = (
|
|
685
696
|
/*$_*/
|
|
686
697
|
a[21]("notFoundText") + ""
|
|
687
|
-
), m, h,
|
|
698
|
+
), m, h, g = (
|
|
688
699
|
/*notfoundicon*/
|
|
689
|
-
a[11] === "true" &&
|
|
700
|
+
a[11] === "true" && De()
|
|
690
701
|
);
|
|
691
702
|
return {
|
|
692
703
|
c() {
|
|
693
|
-
e =
|
|
704
|
+
e = R("div"), g && g.c(), t = z(), r = R("p"), l = U(o), s = z(), i = R("p"), m = U(c), f(r, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
694
705
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
695
706
|
},
|
|
696
|
-
m(
|
|
697
|
-
|
|
707
|
+
m(y, d) {
|
|
708
|
+
E(y, e, d), g && g.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, m);
|
|
698
709
|
},
|
|
699
|
-
p(
|
|
710
|
+
p(y, d) {
|
|
700
711
|
/*notfoundicon*/
|
|
701
|
-
|
|
702
|
-
2097152 &&
|
|
703
|
-
|
|
712
|
+
y[11] === "true" ? g || (g = De(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
|
|
713
|
+
2097152 && o !== (o = /*$_*/
|
|
714
|
+
y[21]("notFound") + "") && q(l, o), d[0] & /*$_*/
|
|
704
715
|
2097152 && c !== (c = /*$_*/
|
|
705
|
-
|
|
716
|
+
y[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
|
|
706
717
|
2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
707
|
-
(
|
|
718
|
+
(y[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
|
|
708
719
|
},
|
|
709
|
-
d(
|
|
710
|
-
|
|
720
|
+
d(y) {
|
|
721
|
+
y && T(e), g && g.d();
|
|
711
722
|
}
|
|
712
723
|
};
|
|
713
724
|
}
|
|
714
|
-
function
|
|
725
|
+
function De(a) {
|
|
715
726
|
let e;
|
|
716
727
|
return {
|
|
717
728
|
c() {
|
|
718
|
-
e =
|
|
729
|
+
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");
|
|
719
730
|
},
|
|
720
|
-
m(t,
|
|
721
|
-
|
|
731
|
+
m(t, r) {
|
|
732
|
+
E(t, e, r);
|
|
722
733
|
},
|
|
723
734
|
d(t) {
|
|
724
|
-
t &&
|
|
735
|
+
t && T(e);
|
|
725
736
|
}
|
|
726
737
|
};
|
|
727
738
|
}
|
|
728
|
-
function
|
|
729
|
-
let e, t,
|
|
739
|
+
function Tt(a) {
|
|
740
|
+
let e, t, r, o, l, s, i, c, m, h, g, y, d, S, x, D, A, V, J, O, C = (
|
|
730
741
|
/*cancelbutton*/
|
|
731
|
-
a[10] === "true" &&
|
|
742
|
+
a[10] === "true" && Le(a)
|
|
732
743
|
);
|
|
733
|
-
function
|
|
744
|
+
function X(_, I) {
|
|
734
745
|
return (
|
|
735
746
|
/*isLoading*/
|
|
736
|
-
|
|
747
|
+
_[18] ? Ct : Rt
|
|
737
748
|
);
|
|
738
749
|
}
|
|
739
|
-
let
|
|
750
|
+
let B = X(a), F = B(a);
|
|
740
751
|
return {
|
|
741
752
|
c() {
|
|
742
|
-
e =
|
|
743
|
-
a[21]("placeHolderSearchGames")),
|
|
753
|
+
e = R("div"), t = R("div"), r = R("div"), o = R("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = z(), s = R("input"), c = z(), m = R("span"), h = be("svg"), g = be("path"), d = z(), C && C.c(), x = z(), D = R("div"), V = z(), F.c(), f(o, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
754
|
+
a[21]("placeHolderSearchGames")), f(s, "maxlength", Pe), 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", y = "SearchClearButton " + /*cancelbutton*/
|
|
744
755
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
745
|
-
(a[14].length != 0 ? "" : "NotVisible")),
|
|
746
|
-
(a[16] ? "" : "SearchAnimation")),
|
|
747
|
-
a[10] != "true" ? "OverlayCancel" : ""),
|
|
756
|
+
(a[14].length != 0 ? "" : "NotVisible")), f(r, "class", S = "Search " + /*searchCancelled*/
|
|
757
|
+
(a[16] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(D, "class", A = /*cancelbutton*/
|
|
758
|
+
a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (se(
|
|
748
759
|
/*userAgent*/
|
|
749
760
|
a[22]
|
|
750
761
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
751
762
|
},
|
|
752
|
-
m(
|
|
753
|
-
|
|
763
|
+
m(_, I) {
|
|
764
|
+
E(_, e, I), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), we(
|
|
754
765
|
s,
|
|
755
766
|
/*searchValue*/
|
|
756
767
|
a[14]
|
|
757
|
-
), a[
|
|
758
|
-
|
|
768
|
+
), a[37](s), w(r, c), w(r, m), w(m, h), w(h, g), w(r, d), C && C.m(r, null), w(e, x), w(e, D), w(e, V), F.m(e, null), a[40](e), J || (O = [
|
|
769
|
+
Y(
|
|
759
770
|
s,
|
|
760
771
|
"input",
|
|
761
772
|
/*input_input_handler*/
|
|
762
|
-
a[
|
|
773
|
+
a[36]
|
|
763
774
|
),
|
|
764
|
-
|
|
775
|
+
Y(
|
|
765
776
|
s,
|
|
766
777
|
"focus",
|
|
767
778
|
/*onFocus*/
|
|
768
779
|
a[23]
|
|
769
780
|
),
|
|
770
|
-
|
|
781
|
+
Y(
|
|
771
782
|
s,
|
|
772
783
|
"input",
|
|
773
784
|
/*handleSearchInput*/
|
|
774
785
|
a[28]
|
|
775
786
|
),
|
|
776
|
-
|
|
787
|
+
Y(
|
|
777
788
|
m,
|
|
778
789
|
"click",
|
|
779
790
|
/*click_handler*/
|
|
780
|
-
a[
|
|
791
|
+
a[38]
|
|
781
792
|
),
|
|
782
|
-
|
|
783
|
-
|
|
793
|
+
Y(
|
|
794
|
+
D,
|
|
784
795
|
"click",
|
|
785
796
|
/*handleOverlay*/
|
|
786
797
|
a[24]
|
|
787
798
|
)
|
|
788
|
-
],
|
|
799
|
+
], J = !0);
|
|
789
800
|
},
|
|
790
|
-
p(
|
|
791
|
-
|
|
801
|
+
p(_, I) {
|
|
802
|
+
I[0] & /*$_*/
|
|
792
803
|
2097152 && i !== (i = /*$_*/
|
|
793
|
-
|
|
804
|
+
_[21]("placeHolderSearchGames")) && f(s, "placeholder", i), I[0] & /*searchValue*/
|
|
794
805
|
16384 && s.value !== /*searchValue*/
|
|
795
|
-
|
|
806
|
+
_[14] && we(
|
|
796
807
|
s,
|
|
797
808
|
/*searchValue*/
|
|
798
|
-
|
|
799
|
-
),
|
|
800
|
-
17408 &&
|
|
801
|
-
(
|
|
802
|
-
(
|
|
803
|
-
|
|
804
|
-
65536 &&
|
|
805
|
-
(
|
|
806
|
-
1024 &&
|
|
807
|
-
|
|
809
|
+
_[14]
|
|
810
|
+
), I[0] & /*cancelbutton, searchValue*/
|
|
811
|
+
17408 && y !== (y = "SearchClearButton " + /*cancelbutton*/
|
|
812
|
+
(_[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
813
|
+
(_[14].length != 0 ? "" : "NotVisible")) && f(m, "class", y), /*cancelbutton*/
|
|
814
|
+
_[10] === "true" ? C ? C.p(_, I) : (C = Le(_), C.c(), C.m(r, null)) : C && (C.d(1), C = null), I[0] & /*searchCancelled*/
|
|
815
|
+
65536 && S !== (S = "Search " + /*searchCancelled*/
|
|
816
|
+
(_[16] ? "" : "SearchAnimation")) && f(r, "class", S), I[0] & /*cancelbutton*/
|
|
817
|
+
1024 && A !== (A = /*cancelbutton*/
|
|
818
|
+
_[10] != "true" ? "OverlayCancel" : "") && f(D, "class", A), B === (B = X(_)) && F ? F.p(_, I) : (F.d(1), F = B(_), F && (F.c(), F.m(e, null)));
|
|
808
819
|
},
|
|
809
|
-
i:
|
|
810
|
-
o:
|
|
811
|
-
d(
|
|
812
|
-
|
|
820
|
+
i: _e,
|
|
821
|
+
o: _e,
|
|
822
|
+
d(_) {
|
|
823
|
+
_ && T(e), a[37](null), C && C.d(), F.d(), a[40](null), J = !1, ht(O);
|
|
813
824
|
}
|
|
814
825
|
};
|
|
815
826
|
}
|
|
816
|
-
let
|
|
817
|
-
function
|
|
818
|
-
let
|
|
819
|
-
|
|
820
|
-
let { endpoint:
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
827
|
+
let Pe = 50;
|
|
828
|
+
function Et(a, e, t) {
|
|
829
|
+
let r;
|
|
830
|
+
dt(a, St, (n) => t(21, r = n));
|
|
831
|
+
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: m } = e, { clientstyling: h = "" } = e, { clientstylingurl: g = "" } = e, { integratedgameframedesktop: y = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: S = "" } = e, { gamepagemodalurl: x = "true" } = e, { translationurl: D = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: V = "true" } = e, { notfoundicon: J = "false" } = e, { controlchannel: O = "casino-search" } = e, { allowedorigins: C = window.location.origin } = e;
|
|
832
|
+
const X = () => (C || "").split(",").map((n) => n.trim()).filter(Boolean);
|
|
833
|
+
let B = window.navigator.userAgent, F = [], _ = [], I = {}, N = "", H, $ = !0, P = !1, G = !1, M, ee = !1, te, ae, le = [];
|
|
834
|
+
const Me = () => {
|
|
835
|
+
fetch(D).then((p) => p.json()).then((p) => {
|
|
836
|
+
Object.keys(p).forEach((b) => {
|
|
837
|
+
Re(b, p[b]);
|
|
825
838
|
});
|
|
826
|
-
}).catch((
|
|
827
|
-
console.log(
|
|
839
|
+
}).catch((p) => {
|
|
840
|
+
console.log(p);
|
|
828
841
|
});
|
|
829
842
|
};
|
|
830
|
-
Object.keys(
|
|
831
|
-
|
|
843
|
+
Object.keys(Ce).forEach((n) => {
|
|
844
|
+
Re(n, Ce[n]);
|
|
832
845
|
});
|
|
833
|
-
const
|
|
834
|
-
|
|
846
|
+
const ie = (n) => {
|
|
847
|
+
var p;
|
|
848
|
+
n.data && n.data.type == "SearchedItemClicked" && Ve(n.data.gameId), n.data.type == "UserSessionID" && (t(19, te = n.data.session), t(20, ae = n.data.userid), t(35, ee = !0)), n.data.type == "CategoryChange" && Q();
|
|
849
|
+
try {
|
|
850
|
+
const b = n.origin === window.location.origin, v = X();
|
|
851
|
+
if (!(b || v.length > 0 && v.includes(n.origin)) || !n.data || n.data.channel !== O)
|
|
852
|
+
return;
|
|
853
|
+
switch (n.data.type) {
|
|
854
|
+
case "OpenSearch":
|
|
855
|
+
re();
|
|
856
|
+
break;
|
|
857
|
+
case "CloseSearch":
|
|
858
|
+
ce();
|
|
859
|
+
break;
|
|
860
|
+
case "ToggleSearch":
|
|
861
|
+
xe();
|
|
862
|
+
break;
|
|
863
|
+
case "SetSearchQuery":
|
|
864
|
+
Ae(String((p = n.data.value) != null ? p : ""));
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
} catch (b) {
|
|
868
|
+
}
|
|
835
869
|
}, ne = () => {
|
|
836
|
-
if (t(16,
|
|
837
|
-
t(13,
|
|
838
|
-
let
|
|
839
|
-
|
|
840
|
-
let
|
|
841
|
-
if (
|
|
842
|
-
for (
|
|
843
|
-
let j = new URL(`${
|
|
844
|
-
j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform",
|
|
870
|
+
if (t(16, $ = !1), t(17, P = !0), o && l && c && N.length < 2) {
|
|
871
|
+
t(13, F = []);
|
|
872
|
+
let n = localStorage.getItem("searchedGamesWds_casino"), p = [];
|
|
873
|
+
n && (p = n.split(","));
|
|
874
|
+
let b = [], v = 0, k = p.length;
|
|
875
|
+
if (k > 0) {
|
|
876
|
+
for (v = 0; v < k; v++) {
|
|
877
|
+
let j = new URL(`${o}/v1/casino/games/${p[v]}`);
|
|
878
|
+
j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", se(B)), b.push(He(j, p[v]));
|
|
845
879
|
}
|
|
846
|
-
Promise.all(
|
|
847
|
-
j = j.filter(function(
|
|
848
|
-
return !!
|
|
849
|
-
}), t(13,
|
|
880
|
+
Promise.all(b).then((j) => {
|
|
881
|
+
j = j.filter(function(W) {
|
|
882
|
+
return !!W;
|
|
883
|
+
}), t(13, F = j.map((W) => (W.isFavorite = ue(W.id), W))), F.length ? K("searchSuccess", "SearchWidget") : K("searchFail", "SearchWidget");
|
|
850
884
|
}).catch((j) => {
|
|
851
|
-
|
|
885
|
+
K("searchError", "SearchWidget");
|
|
852
886
|
});
|
|
853
887
|
}
|
|
854
888
|
}
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
889
|
+
de(P), K("searchAttempt", "SearchWidget"), K("SearchInitialized", "SearchWidget");
|
|
890
|
+
};
|
|
891
|
+
function re() {
|
|
892
|
+
P || (ne(), requestAnimationFrame(() => H == null ? void 0 : H.focus()), Z({ type: "SearchOpen" }));
|
|
893
|
+
}
|
|
894
|
+
function ce() {
|
|
895
|
+
P && (Q(), Z({ type: "SearchClose" }));
|
|
896
|
+
}
|
|
897
|
+
function xe() {
|
|
898
|
+
P ? ce() : re();
|
|
899
|
+
}
|
|
900
|
+
function Ae(n) {
|
|
901
|
+
t(14, N = (n != null ? n : "").slice(0, Pe)), P || re(), me();
|
|
902
|
+
}
|
|
903
|
+
const K = (n, p) => {
|
|
904
|
+
typeof gtag == "function" && gtag("event", n, { context: p });
|
|
905
|
+
}, Be = () => {
|
|
906
|
+
V != "true" && Q();
|
|
907
|
+
}, Oe = (n) => new Promise((p, b) => {
|
|
908
|
+
t(18, G = !0), fetch(n.href).then((v) => v.json()).then((v) => {
|
|
909
|
+
t(18, G = !1), p(v);
|
|
910
|
+
}).catch((v) => {
|
|
911
|
+
t(18, G = !1), console.error(v);
|
|
912
|
+
try {
|
|
913
|
+
Z({
|
|
914
|
+
type: "SearchError",
|
|
915
|
+
message: String(v)
|
|
916
|
+
});
|
|
917
|
+
} catch (k) {
|
|
918
|
+
}
|
|
919
|
+
b(v);
|
|
865
920
|
});
|
|
866
|
-
}),
|
|
867
|
-
t(18,
|
|
868
|
-
t(18,
|
|
869
|
-
}).catch((
|
|
870
|
-
t(18,
|
|
921
|
+
}), He = (n, p) => new Promise((b, v) => {
|
|
922
|
+
t(18, G = !0), p && Object.keys(I).indexOf(p) >= 0 ? (t(18, G = !1), b(I[p])) : fetch(n).then((k) => k.json()).then((k) => {
|
|
923
|
+
t(18, G = !1), k.error || (I[k[0].gameId] = k[0]), b(k[0]);
|
|
924
|
+
}).catch((k) => {
|
|
925
|
+
t(18, G = !1), console.error(k);
|
|
926
|
+
try {
|
|
927
|
+
Z({
|
|
928
|
+
type: "SearchError",
|
|
929
|
+
message: String(k)
|
|
930
|
+
});
|
|
931
|
+
} catch (j) {
|
|
932
|
+
}
|
|
933
|
+
v(k);
|
|
871
934
|
});
|
|
872
|
-
}),
|
|
873
|
-
const
|
|
874
|
-
t(18,
|
|
875
|
-
let
|
|
935
|
+
}), We = () => {
|
|
936
|
+
const n = new URL(`${o}/v1/player/${ae}/favorites/`);
|
|
937
|
+
t(18, G = !0);
|
|
938
|
+
let p = {
|
|
876
939
|
method: "GET",
|
|
877
|
-
headers: { "X-SessionID":
|
|
940
|
+
headers: { "X-SessionID": te }
|
|
878
941
|
};
|
|
879
|
-
fetch(
|
|
880
|
-
t(18,
|
|
942
|
+
fetch(n.href, p).then((b) => b.json()).then((b) => {
|
|
943
|
+
t(18, G = !1), le = b.items.map((v) => v.id);
|
|
881
944
|
});
|
|
882
|
-
},
|
|
883
|
-
t(
|
|
884
|
-
},
|
|
885
|
-
if ((
|
|
945
|
+
}, qe = () => {
|
|
946
|
+
t(35, ee = !0), t(19, te = s), t(20, ae = i);
|
|
947
|
+
}, ue = (n) => le.findIndex((p) => p == n) !== -1, Ue = (n) => {
|
|
948
|
+
if ((n == null ? void 0 : n.length) === 0)
|
|
886
949
|
return "";
|
|
887
|
-
let
|
|
888
|
-
const
|
|
889
|
-
return
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
}),
|
|
893
|
-
},
|
|
894
|
-
if (
|
|
895
|
-
let
|
|
896
|
-
|
|
950
|
+
let p, b = 99999999999, v;
|
|
951
|
+
const k = new Date(Date.now());
|
|
952
|
+
return n.forEach((j, W) => {
|
|
953
|
+
const et = new Date(j.schedules[0].startTime), oe = new Date(j.schedules[0].endTime);
|
|
954
|
+
ve(new Date(oe), new Date(k)) < b && (b = ve(new Date(oe), new Date(k)), v = W), gt(new Date(k), new Date(et)) && ft(new Date(k), new Date(oe)) && (p = n[v].name);
|
|
955
|
+
}), p;
|
|
956
|
+
}, Ve = (n) => {
|
|
957
|
+
if (_ = localStorage.getItem("searchedGamesWds_casino"), _ ? _ = _.split(",") : _ = [], _.indexOf(n) === -1) {
|
|
958
|
+
let p;
|
|
959
|
+
_.unshift(n), p = _.join(","), localStorage.setItem("searchedGamesWds_casino", p);
|
|
897
960
|
}
|
|
898
961
|
}, Q = () => {
|
|
899
|
-
t(14,
|
|
900
|
-
},
|
|
901
|
-
t(14,
|
|
902
|
-
},
|
|
962
|
+
t(14, N = ""), t(16, $ = !0), t(18, G = !1), t(13, F = []), t(17, P = !1), de(P);
|
|
963
|
+
}, he = () => {
|
|
964
|
+
t(14, N = ""), H.focus();
|
|
965
|
+
}, de = (n) => {
|
|
903
966
|
window.postMessage(
|
|
904
967
|
{
|
|
905
|
-
type:
|
|
906
|
-
searchStatus:
|
|
968
|
+
type: n === !0 ? "searchActive" : "searchCancelled",
|
|
969
|
+
searchStatus: n
|
|
907
970
|
},
|
|
908
971
|
window.location.href
|
|
909
|
-
)
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
972
|
+
), Z({
|
|
973
|
+
type: n ? "SearchOpen" : "SearchClose"
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
function Z(n) {
|
|
977
|
+
try {
|
|
978
|
+
const p = pe({ channel: O }, n);
|
|
979
|
+
window.postMessage(p, window.location.href);
|
|
980
|
+
} catch (p) {
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
const Je = () => {
|
|
984
|
+
vt(c);
|
|
985
|
+
}, me = () => Se(this, null, function* () {
|
|
986
|
+
if (N.length >= 2) {
|
|
987
|
+
const n = new URL(`${o}/v1/casino/games`);
|
|
988
|
+
n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform", se(B)), n.searchParams.append("language", c), n.searchParams.append("pagination", "offset=0,limit=30"), n.searchParams.append("filter", `name=${N}`), Oe(n).then((p) => {
|
|
989
|
+
t(13, F = p.items.map((b) => (b.isFavorite = ue(b.id), b)));
|
|
990
|
+
try {
|
|
991
|
+
Z({
|
|
992
|
+
type: "SearchResults",
|
|
993
|
+
count: F.length
|
|
994
|
+
});
|
|
995
|
+
} catch (b) {
|
|
996
|
+
}
|
|
917
997
|
});
|
|
918
998
|
} else
|
|
919
|
-
|
|
920
|
-
}), 500);
|
|
921
|
-
|
|
922
|
-
window.removeEventListener("message",
|
|
999
|
+
$ || ne();
|
|
1000
|
+
}), Ze = yt(me, 500);
|
|
1001
|
+
mt(() => (window.addEventListener("message", ie, !1), () => {
|
|
1002
|
+
window.removeEventListener("message", ie);
|
|
923
1003
|
}));
|
|
924
|
-
function
|
|
925
|
-
|
|
1004
|
+
function Ye() {
|
|
1005
|
+
N = this.value, t(14, N);
|
|
926
1006
|
}
|
|
927
|
-
function
|
|
928
|
-
|
|
929
|
-
|
|
1007
|
+
function Ke(n) {
|
|
1008
|
+
ye[n ? "unshift" : "push"](() => {
|
|
1009
|
+
H = n, t(15, H);
|
|
930
1010
|
});
|
|
931
1011
|
}
|
|
932
|
-
const
|
|
933
|
-
function
|
|
934
|
-
|
|
935
|
-
|
|
1012
|
+
const Qe = () => he(), Xe = () => Q();
|
|
1013
|
+
function $e(n) {
|
|
1014
|
+
ye[n ? "unshift" : "push"](() => {
|
|
1015
|
+
M = n, t(12, M);
|
|
936
1016
|
});
|
|
937
1017
|
}
|
|
938
|
-
return a.$$set = (
|
|
939
|
-
"endpoint" in
|
|
1018
|
+
return a.$$set = (n) => {
|
|
1019
|
+
"endpoint" in n && t(0, o = n.endpoint), "datasource" in n && t(29, l = n.datasource), "session" in n && t(30, s = n.session), "userid" in n && t(31, i = n.userid), "lang" in n && t(1, c = n.lang), "mbsource" in n && t(2, m = n.mbsource), "clientstyling" in n && t(3, h = n.clientstyling), "clientstylingurl" in n && t(4, g = n.clientstylingurl), "integratedgameframedesktop" in n && t(5, y = n.integratedgameframedesktop), "integratedgameframemobile" in n && t(6, d = n.integratedgameframemobile), "showgamename" in n && t(7, S = n.showgamename), "gamepagemodalurl" in n && t(8, x = n.gamepagemodalurl), "translationurl" in n && t(32, D = n.translationurl), "showfavorites" in n && t(9, A = n.showfavorites), "cancelbutton" in n && t(10, V = n.cancelbutton), "notfoundicon" in n && t(11, J = n.notfoundicon), "controlchannel" in n && t(33, O = n.controlchannel), "allowedorigins" in n && t(34, C = n.allowedorigins);
|
|
940
1020
|
}, a.$$.update = () => {
|
|
941
1021
|
a.$$.dirty[0] & /*lang*/
|
|
942
|
-
2 && c &&
|
|
943
|
-
2 &&
|
|
1022
|
+
2 && c && Je(), a.$$.dirty[1] & /*translationurl*/
|
|
1023
|
+
2 && D && Me(), a.$$.dirty[0] & /*session*/
|
|
944
1024
|
1073741824 | a.$$.dirty[1] & /*userid*/
|
|
945
|
-
1 && s && i &&
|
|
1025
|
+
1 && s && i && qe(), a.$$.dirty[0] & /*showfavorites*/
|
|
946
1026
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
947
|
-
|
|
948
|
-
4104 && h &&
|
|
949
|
-
4112 &&
|
|
950
|
-
4100 && m &&
|
|
1027
|
+
16 && A && ee && We(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1028
|
+
4104 && h && M && _t(M, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1029
|
+
4112 && g && M && wt(M, g), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1030
|
+
4100 && m && M && bt(M, `${m}.Style`);
|
|
951
1031
|
}, [
|
|
952
|
-
|
|
1032
|
+
o,
|
|
953
1033
|
c,
|
|
954
1034
|
m,
|
|
955
1035
|
h,
|
|
956
|
-
|
|
957
|
-
|
|
1036
|
+
g,
|
|
1037
|
+
y,
|
|
958
1038
|
d,
|
|
959
|
-
|
|
960
|
-
M,
|
|
1039
|
+
S,
|
|
961
1040
|
x,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
P,
|
|
965
|
-
v,
|
|
966
|
-
R,
|
|
967
|
-
w,
|
|
968
|
-
T,
|
|
1041
|
+
A,
|
|
1042
|
+
V,
|
|
969
1043
|
J,
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1044
|
+
M,
|
|
1045
|
+
F,
|
|
1046
|
+
N,
|
|
1047
|
+
H,
|
|
1048
|
+
$,
|
|
1049
|
+
P,
|
|
1050
|
+
G,
|
|
1051
|
+
te,
|
|
1052
|
+
ae,
|
|
1053
|
+
r,
|
|
1054
|
+
B,
|
|
975
1055
|
ne,
|
|
976
|
-
|
|
977
|
-
|
|
1056
|
+
Be,
|
|
1057
|
+
Ue,
|
|
978
1058
|
Q,
|
|
979
|
-
|
|
980
|
-
|
|
1059
|
+
he,
|
|
1060
|
+
Ze,
|
|
981
1061
|
l,
|
|
982
1062
|
s,
|
|
983
1063
|
i,
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1064
|
+
D,
|
|
1065
|
+
O,
|
|
1066
|
+
C,
|
|
1067
|
+
ee,
|
|
1068
|
+
Ye,
|
|
1069
|
+
Ke,
|
|
1070
|
+
Qe,
|
|
1071
|
+
Xe,
|
|
1072
|
+
$e
|
|
991
1073
|
];
|
|
992
1074
|
}
|
|
993
|
-
class
|
|
1075
|
+
class It extends st {
|
|
994
1076
|
constructor(e) {
|
|
995
|
-
super(),
|
|
1077
|
+
super(), lt(
|
|
996
1078
|
this,
|
|
997
1079
|
e,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1080
|
+
Et,
|
|
1081
|
+
Tt,
|
|
1082
|
+
it,
|
|
1001
1083
|
{
|
|
1002
1084
|
endpoint: 0,
|
|
1003
1085
|
datasource: 29,
|
|
@@ -1014,10 +1096,12 @@ class gt extends Oe {
|
|
|
1014
1096
|
translationurl: 32,
|
|
1015
1097
|
showfavorites: 9,
|
|
1016
1098
|
cancelbutton: 10,
|
|
1017
|
-
notfoundicon: 11
|
|
1099
|
+
notfoundicon: 11,
|
|
1100
|
+
controlchannel: 33,
|
|
1101
|
+
allowedorigins: 34
|
|
1018
1102
|
},
|
|
1019
|
-
|
|
1020
|
-
[-1, -1]
|
|
1103
|
+
kt,
|
|
1104
|
+
[-1, -1, -1]
|
|
1021
1105
|
);
|
|
1022
1106
|
}
|
|
1023
1107
|
get endpoint() {
|
|
@@ -1116,8 +1200,20 @@ class gt extends Oe {
|
|
|
1116
1200
|
set notfoundicon(e) {
|
|
1117
1201
|
this.$$set({ notfoundicon: e }), L();
|
|
1118
1202
|
}
|
|
1203
|
+
get controlchannel() {
|
|
1204
|
+
return this.$$.ctx[33];
|
|
1205
|
+
}
|
|
1206
|
+
set controlchannel(e) {
|
|
1207
|
+
this.$$set({ controlchannel: e }), L();
|
|
1208
|
+
}
|
|
1209
|
+
get allowedorigins() {
|
|
1210
|
+
return this.$$.ctx[34];
|
|
1211
|
+
}
|
|
1212
|
+
set allowedorigins(e) {
|
|
1213
|
+
this.$$set({ allowedorigins: e }), L();
|
|
1214
|
+
}
|
|
1119
1215
|
}
|
|
1120
|
-
|
|
1216
|
+
ct(It, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, controlchannel: {}, allowedorigins: {} }, [], [], !0);
|
|
1121
1217
|
export {
|
|
1122
|
-
|
|
1218
|
+
It as default
|
|
1123
1219
|
};
|