@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,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as Qe, $ as Xe, c as $e, S as et, i as tt, s as at, f as L, b as nt, n as ge, d as T, r as rt, e as f, g as fe, h as E, j as w, l as J, k, m as z, o as pe, p as se, q as ot, t as st, u as H, v as q, w as Se, x as lt, y as it, z as _e, A as we, B as ct, C as je, D as u, E as ut, F as ht, G as dt, H as mt } from "./CasinoGameThumbnailNd-J2hPizFf.js";
|
|
2
|
+
function be(a, e) {
|
|
3
|
+
Qe(a, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function gt(a) {
|
|
6
|
+
Xe.set(a);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const ve = {
|
|
9
9
|
en: {
|
|
10
10
|
recentSearch: "Recent search",
|
|
11
11
|
placeHolderSearchGames: "Search for Games",
|
|
@@ -187,7 +187,7 @@ const ge = {
|
|
|
187
187
|
notFoundText: "Please type the correct name of the game to start to play.",
|
|
188
188
|
noRecentSearches: "No recent searches yet. Search for any of our games."
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, ft = (a, e) => function(...t) {
|
|
191
191
|
clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
|
|
192
192
|
a.apply(this, t);
|
|
193
193
|
}, e);
|
|
@@ -197,10 +197,10 @@ if (typeof window < "u") {
|
|
|
197
197
|
return function(...t) {
|
|
198
198
|
try {
|
|
199
199
|
return e.apply(this, t);
|
|
200
|
-
} catch (
|
|
201
|
-
if (
|
|
200
|
+
} catch (r) {
|
|
201
|
+
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"))
|
|
202
202
|
return !1;
|
|
203
|
-
throw
|
|
203
|
+
throw r;
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
};
|
|
@@ -208,266 +208,266 @@ if (typeof window < "u") {
|
|
|
208
208
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
211
|
+
function pt(a) {
|
|
212
|
+
nt(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}");
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
return
|
|
214
|
+
function ye(a, e, t) {
|
|
215
|
+
const r = a.slice();
|
|
216
|
+
return r[63] = e[t], r;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ke(a) {
|
|
219
219
|
let e, t = (
|
|
220
220
|
/*$_*/
|
|
221
221
|
a[21]("cancel") + ""
|
|
222
|
-
),
|
|
222
|
+
), r, o, l, s;
|
|
223
223
|
return {
|
|
224
224
|
c() {
|
|
225
|
-
e =
|
|
225
|
+
e = k("small"), r = q(t), f(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
|
|
226
226
|
(a[16] ? "NotVisible" : ""));
|
|
227
227
|
},
|
|
228
228
|
m(i, c) {
|
|
229
|
-
|
|
229
|
+
E(i, e, c), w(e, r), l || (s = J(
|
|
230
230
|
e,
|
|
231
231
|
"click",
|
|
232
232
|
/*click_handler_1*/
|
|
233
|
-
a[
|
|
233
|
+
a[39]
|
|
234
234
|
), l = !0);
|
|
235
235
|
},
|
|
236
236
|
p(i, c) {
|
|
237
237
|
c[0] & /*$_*/
|
|
238
238
|
2097152 && t !== (t = /*$_*/
|
|
239
|
-
i[21]("cancel") + "") &&
|
|
240
|
-
65536 &&
|
|
241
|
-
(i[16] ? "NotVisible" : "")) && f(e, "class",
|
|
239
|
+
i[21]("cancel") + "") && H(r, t), c[0] & /*searchCancelled*/
|
|
240
|
+
65536 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
|
|
241
|
+
(i[16] ? "NotVisible" : "")) && f(e, "class", o);
|
|
242
242
|
},
|
|
243
243
|
d(i) {
|
|
244
|
-
i &&
|
|
244
|
+
i && T(e), l = !1, s();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
let e, t,
|
|
248
|
+
function St(a) {
|
|
249
|
+
let e, t, r, o;
|
|
250
250
|
function l(h, m) {
|
|
251
251
|
if (
|
|
252
252
|
/*searchActive*/
|
|
253
253
|
h[17] == !0 && /*searchValue*/
|
|
254
254
|
h[14].length < 2
|
|
255
255
|
)
|
|
256
|
-
return
|
|
256
|
+
return bt;
|
|
257
257
|
if (
|
|
258
258
|
/*searchArray*/
|
|
259
259
|
h[13].length != 0
|
|
260
260
|
)
|
|
261
|
-
return
|
|
261
|
+
return wt;
|
|
262
262
|
}
|
|
263
263
|
let s = l(a), i = s && s(a), c = (
|
|
264
264
|
/*searchCancelled*/
|
|
265
|
-
a[16] === !1 &&
|
|
265
|
+
a[16] === !1 && Le(a)
|
|
266
266
|
), g = (
|
|
267
267
|
/*searchValue*/
|
|
268
268
|
a[14].length >= 2 && /*searchArray*/
|
|
269
|
-
a[13].length == 0 &&
|
|
269
|
+
a[13].length == 0 && Ee(a)
|
|
270
270
|
);
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
i && i.c(), e =
|
|
273
|
+
i && i.c(), e = z(), t = k("div"), c && c.c(), r = z(), g && g.c(), f(t, "class", o = "SearchResultsContainer " + /*searchActive*/
|
|
274
274
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
275
275
|
},
|
|
276
276
|
m(h, m) {
|
|
277
|
-
i && i.m(h, m),
|
|
277
|
+
i && i.m(h, m), E(h, e, m), E(h, t, m), c && c.m(t, null), w(t, r), g && g.m(t, null);
|
|
278
278
|
},
|
|
279
279
|
p(h, m) {
|
|
280
280
|
s === (s = l(h)) && i ? i.p(h, m) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
281
|
-
h[16] === !1 ? c ? c.p(h, m) : (c =
|
|
281
|
+
h[16] === !1 ? c ? c.p(h, m) : (c = Le(h), c.c(), c.m(t, r)) : c && (c.d(1), c = null), /*searchValue*/
|
|
282
282
|
h[14].length >= 2 && /*searchArray*/
|
|
283
|
-
h[13].length == 0 ? g ? g.p(h, m) : (g =
|
|
284
|
-
131072 &&
|
|
285
|
-
(h[17] == !0 ? "" : "NotVisible")) && f(t, "class",
|
|
283
|
+
h[13].length == 0 ? g ? g.p(h, m) : (g = Ee(h), g.c(), g.m(t, null)) : g && (g.d(1), g = null), m[0] & /*searchActive*/
|
|
284
|
+
131072 && o !== (o = "SearchResultsContainer " + /*searchActive*/
|
|
285
|
+
(h[17] == !0 ? "" : "NotVisible")) && f(t, "class", o);
|
|
286
286
|
},
|
|
287
287
|
d(h) {
|
|
288
|
-
h && (
|
|
288
|
+
h && (T(e), T(t)), i && i.d(h), c && c.d(), g && g.d();
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function _t(a) {
|
|
293
293
|
let e, t = (
|
|
294
294
|
/*$_*/
|
|
295
295
|
a[21]("loading") + ""
|
|
296
|
-
),
|
|
296
|
+
), r;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
299
|
-
e =
|
|
299
|
+
e = k("p"), r = q(t), f(e, "class", "LoadingContent");
|
|
300
300
|
},
|
|
301
|
-
m(
|
|
302
|
-
|
|
301
|
+
m(o, l) {
|
|
302
|
+
E(o, e, l), w(e, r);
|
|
303
303
|
},
|
|
304
|
-
p(
|
|
304
|
+
p(o, l) {
|
|
305
305
|
l[0] & /*$_*/
|
|
306
306
|
2097152 && t !== (t = /*$_*/
|
|
307
|
-
|
|
307
|
+
o[21]("loading") + "") && H(r, t);
|
|
308
308
|
},
|
|
309
|
-
d(
|
|
310
|
-
|
|
309
|
+
d(o) {
|
|
310
|
+
o && T(e);
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function wt(a) {
|
|
315
315
|
let e, t = (
|
|
316
316
|
/*$_*/
|
|
317
317
|
a[21]("searchResult") + ""
|
|
318
|
-
),
|
|
318
|
+
), r;
|
|
319
319
|
return {
|
|
320
320
|
c() {
|
|
321
|
-
e =
|
|
321
|
+
e = k("p"), r = q(t), f(e, "class", "SearchMessage");
|
|
322
322
|
},
|
|
323
|
-
m(
|
|
324
|
-
|
|
323
|
+
m(o, l) {
|
|
324
|
+
E(o, e, l), w(e, r);
|
|
325
325
|
},
|
|
326
|
-
p(
|
|
326
|
+
p(o, l) {
|
|
327
327
|
l[0] & /*$_*/
|
|
328
328
|
2097152 && t !== (t = /*$_*/
|
|
329
|
-
|
|
329
|
+
o[21]("searchResult") + "") && H(r, t);
|
|
330
330
|
},
|
|
331
|
-
d(
|
|
332
|
-
|
|
331
|
+
d(o) {
|
|
332
|
+
o && T(e);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
let e, t,
|
|
336
|
+
function bt(a) {
|
|
337
|
+
let e, t, r = (
|
|
338
338
|
/*searchArray*/
|
|
339
|
-
a[13].length !== 0 &&
|
|
340
|
-
),
|
|
339
|
+
a[13].length !== 0 && Re(a)
|
|
340
|
+
), o = (
|
|
341
341
|
/*searchArray*/
|
|
342
|
-
a[13].length == 0 &&
|
|
342
|
+
a[13].length == 0 && Ce(a)
|
|
343
343
|
);
|
|
344
344
|
return {
|
|
345
345
|
c() {
|
|
346
|
-
|
|
346
|
+
r && r.c(), e = z(), o && o.c(), t = je();
|
|
347
347
|
},
|
|
348
348
|
m(l, s) {
|
|
349
|
-
|
|
349
|
+
r && r.m(l, s), E(l, e, s), o && o.m(l, s), E(l, t, s);
|
|
350
350
|
},
|
|
351
351
|
p(l, s) {
|
|
352
352
|
/*searchArray*/
|
|
353
|
-
l[13].length !== 0 ?
|
|
354
|
-
l[13].length == 0 ?
|
|
353
|
+
l[13].length !== 0 ? r ? r.p(l, s) : (r = Re(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*searchArray*/
|
|
354
|
+
l[13].length == 0 ? o ? o.p(l, s) : (o = Ce(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
|
355
355
|
},
|
|
356
356
|
d(l) {
|
|
357
|
-
l && (
|
|
357
|
+
l && (T(e), T(t)), r && r.d(l), o && o.d(l);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Re(a) {
|
|
362
362
|
let e, t = (
|
|
363
363
|
/*$_*/
|
|
364
364
|
a[21]("recentSearch") + ""
|
|
365
|
-
),
|
|
365
|
+
), r;
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
|
-
e =
|
|
368
|
+
e = k("p"), r = q(t), f(e, "class", "SearchMessage");
|
|
369
369
|
},
|
|
370
|
-
m(
|
|
371
|
-
|
|
370
|
+
m(o, l) {
|
|
371
|
+
E(o, e, l), w(e, r);
|
|
372
372
|
},
|
|
373
|
-
p(
|
|
373
|
+
p(o, l) {
|
|
374
374
|
l[0] & /*$_*/
|
|
375
375
|
2097152 && t !== (t = /*$_*/
|
|
376
|
-
|
|
376
|
+
o[21]("recentSearch") + "") && H(r, t);
|
|
377
377
|
},
|
|
378
|
-
d(
|
|
379
|
-
|
|
378
|
+
d(o) {
|
|
379
|
+
o && T(e);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let e, t,
|
|
383
|
+
function Ce(a) {
|
|
384
|
+
let e, t, r, o = (
|
|
385
385
|
/*$_*/
|
|
386
386
|
a[21]("noRecentSearches") + ""
|
|
387
387
|
), l, s, i = (
|
|
388
388
|
/*notfoundicon*/
|
|
389
|
-
a[11] === "true" &&
|
|
389
|
+
a[11] === "true" && Fe()
|
|
390
390
|
);
|
|
391
391
|
return {
|
|
392
392
|
c() {
|
|
393
|
-
e =
|
|
393
|
+
e = k("div"), i && i.c(), t = z(), r = k("p"), l = q(o), f(r, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
394
394
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
395
395
|
},
|
|
396
396
|
m(c, g) {
|
|
397
|
-
|
|
397
|
+
E(c, e, g), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
|
|
398
398
|
},
|
|
399
399
|
p(c, g) {
|
|
400
400
|
/*notfoundicon*/
|
|
401
|
-
c[11] === "true" ? i || (i =
|
|
402
|
-
2097152 &&
|
|
403
|
-
c[21]("noRecentSearches") + "") &&
|
|
401
|
+
c[11] === "true" ? i || (i = Fe(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
|
|
402
|
+
2097152 && o !== (o = /*$_*/
|
|
403
|
+
c[21]("noRecentSearches") + "") && H(l, o), g[0] & /*notfoundicon*/
|
|
404
404
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
405
405
|
(c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
|
406
406
|
},
|
|
407
407
|
d(c) {
|
|
408
|
-
c &&
|
|
408
|
+
c && T(e), i && i.d();
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Fe(a) {
|
|
413
413
|
let e;
|
|
414
414
|
return {
|
|
415
415
|
c() {
|
|
416
|
-
e =
|
|
416
|
+
e = k("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
|
417
417
|
},
|
|
418
|
-
m(t,
|
|
419
|
-
|
|
418
|
+
m(t, r) {
|
|
419
|
+
E(t, e, r);
|
|
420
420
|
},
|
|
421
421
|
d(t) {
|
|
422
|
-
t &&
|
|
422
|
+
t && T(e);
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
let e, t =
|
|
426
|
+
function Le(a) {
|
|
427
|
+
let e, t = we(
|
|
428
428
|
/*searchArray*/
|
|
429
429
|
a[13]
|
|
430
|
-
),
|
|
431
|
-
for (let
|
|
432
|
-
|
|
430
|
+
), r = [];
|
|
431
|
+
for (let o = 0; o < t.length; o += 1)
|
|
432
|
+
r[o] = Te(ye(a, t, o));
|
|
433
433
|
return {
|
|
434
434
|
c() {
|
|
435
|
-
for (let
|
|
436
|
-
|
|
437
|
-
e =
|
|
435
|
+
for (let o = 0; o < r.length; o += 1)
|
|
436
|
+
r[o].c();
|
|
437
|
+
e = je();
|
|
438
438
|
},
|
|
439
|
-
m(
|
|
440
|
-
for (let s = 0; s <
|
|
441
|
-
|
|
442
|
-
|
|
439
|
+
m(o, l) {
|
|
440
|
+
for (let s = 0; s < r.length; s += 1)
|
|
441
|
+
r[s] && r[s].m(o, l);
|
|
442
|
+
E(o, e, l);
|
|
443
443
|
},
|
|
444
|
-
p(
|
|
444
|
+
p(o, l) {
|
|
445
445
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
446
446
|
35136511) {
|
|
447
|
-
t =
|
|
447
|
+
t = we(
|
|
448
448
|
/*searchArray*/
|
|
449
|
-
|
|
449
|
+
o[13]
|
|
450
450
|
);
|
|
451
451
|
let s;
|
|
452
452
|
for (s = 0; s < t.length; s += 1) {
|
|
453
|
-
const i =
|
|
454
|
-
|
|
453
|
+
const i = ye(o, t, s);
|
|
454
|
+
r[s] ? r[s].p(i, l) : (r[s] = Te(i), r[s].c(), r[s].m(e.parentNode, e));
|
|
455
455
|
}
|
|
456
|
-
for (; s <
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
for (; s < r.length; s += 1)
|
|
457
|
+
r[s].d(1);
|
|
458
|
+
r.length = t.length;
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
|
-
d(
|
|
462
|
-
|
|
461
|
+
d(o) {
|
|
462
|
+
o && T(e), ct(r, o);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
467
|
-
let e, t,
|
|
466
|
+
function Te(a) {
|
|
467
|
+
let e, t, r, o, l, s, i, c, g, h, m, v;
|
|
468
468
|
return {
|
|
469
469
|
c() {
|
|
470
|
-
e =
|
|
470
|
+
e = k("casino-game-thumbnail-nd"), u(
|
|
471
471
|
e,
|
|
472
472
|
"endpoint",
|
|
473
473
|
/*endpoint*/
|
|
@@ -493,28 +493,28 @@ function ve(a) {
|
|
|
493
493
|
/*lang*/
|
|
494
494
|
a[1]
|
|
495
495
|
), u(e, "gamethumbnail", t = /*game*/
|
|
496
|
-
a[
|
|
497
|
-
a[
|
|
498
|
-
a[
|
|
499
|
-
a[
|
|
500
|
-
a[
|
|
501
|
-
a[
|
|
496
|
+
a[63].thumbnail), u(e, "gamename", r = /*game*/
|
|
497
|
+
a[63].name), u(e, "gamevendor", o = /*game*/
|
|
498
|
+
a[63].vendor.name), u(e, "gameLaunchUrl", l = /*game*/
|
|
499
|
+
a[63].launchUrl), u(e, "gameisnew", s = /*game*/
|
|
500
|
+
a[63].isNew), u(e, "gametag", i = /*game*/
|
|
501
|
+
a[63].advancedTags?.length > 0 && /*addGameTag*/
|
|
502
502
|
a[25](
|
|
503
503
|
/*game*/
|
|
504
|
-
a[
|
|
504
|
+
a[63].advancedTags
|
|
505
505
|
)), u(e, "gamecellsize", c = /*game*/
|
|
506
|
-
a[
|
|
507
|
-
a[
|
|
506
|
+
a[63].cellSize), u(e, "gameid", g = /*game*/
|
|
507
|
+
a[63].id), u(
|
|
508
508
|
e,
|
|
509
509
|
"showgamename",
|
|
510
510
|
/*showgamename*/
|
|
511
511
|
a[7]
|
|
512
512
|
), u(e, "gamefunmode", h = /*game*/
|
|
513
|
-
a[
|
|
514
|
-
a[
|
|
515
|
-
a[
|
|
513
|
+
a[63].hasFunMode), u(e, "gamefavorite", m = /*game*/
|
|
514
|
+
a[63].isFavorite), u(e, "livelobbyendpoint", v = /*game*/
|
|
515
|
+
a[63].details ? (
|
|
516
516
|
/*game*/
|
|
517
|
-
a[
|
|
517
|
+
a[63].launchUrl
|
|
518
518
|
) : ""), u(
|
|
519
519
|
e,
|
|
520
520
|
"integratedgameframedesktop",
|
|
@@ -547,106 +547,106 @@ function ve(a) {
|
|
|
547
547
|
a[2]
|
|
548
548
|
);
|
|
549
549
|
},
|
|
550
|
-
m(d,
|
|
551
|
-
|
|
550
|
+
m(d, S) {
|
|
551
|
+
E(d, e, S);
|
|
552
552
|
},
|
|
553
|
-
p(d,
|
|
554
|
-
|
|
553
|
+
p(d, S) {
|
|
554
|
+
S[0] & /*endpoint*/
|
|
555
555
|
1 && u(
|
|
556
556
|
e,
|
|
557
557
|
"endpoint",
|
|
558
558
|
/*endpoint*/
|
|
559
559
|
d[0]
|
|
560
|
-
),
|
|
560
|
+
), S[0] & /*sessionID*/
|
|
561
561
|
524288 && u(
|
|
562
562
|
e,
|
|
563
563
|
"session",
|
|
564
564
|
/*sessionID*/
|
|
565
565
|
d[19]
|
|
566
|
-
),
|
|
566
|
+
), S[0] & /*playerID*/
|
|
567
567
|
1048576 && u(
|
|
568
568
|
e,
|
|
569
569
|
"userid",
|
|
570
570
|
/*playerID*/
|
|
571
571
|
d[20]
|
|
572
|
-
),
|
|
572
|
+
), S[0] & /*showfavorites*/
|
|
573
573
|
512 && u(
|
|
574
574
|
e,
|
|
575
575
|
"favorites",
|
|
576
576
|
/*showfavorites*/
|
|
577
577
|
d[9]
|
|
578
|
-
),
|
|
578
|
+
), S[0] & /*lang*/
|
|
579
579
|
2 && u(
|
|
580
580
|
e,
|
|
581
581
|
"lang",
|
|
582
582
|
/*lang*/
|
|
583
583
|
d[1]
|
|
584
|
-
),
|
|
584
|
+
), S[0] & /*searchArray*/
|
|
585
585
|
8192 && t !== (t = /*game*/
|
|
586
|
-
d[
|
|
587
|
-
8192 && n !== (n = /*game*/
|
|
588
|
-
d[55].name) && u(e, "gamename", n), p[0] & /*searchArray*/
|
|
586
|
+
d[63].thumbnail) && u(e, "gamethumbnail", t), S[0] & /*searchArray*/
|
|
589
587
|
8192 && r !== (r = /*game*/
|
|
590
|
-
d[
|
|
588
|
+
d[63].name) && u(e, "gamename", r), S[0] & /*searchArray*/
|
|
589
|
+
8192 && o !== (o = /*game*/
|
|
590
|
+
d[63].vendor.name) && u(e, "gamevendor", o), S[0] & /*searchArray*/
|
|
591
591
|
8192 && l !== (l = /*game*/
|
|
592
|
-
d[
|
|
592
|
+
d[63].launchUrl) && u(e, "gameLaunchUrl", l), S[0] & /*searchArray*/
|
|
593
593
|
8192 && s !== (s = /*game*/
|
|
594
|
-
d[
|
|
594
|
+
d[63].isNew) && u(e, "gameisnew", s), S[0] & /*searchArray*/
|
|
595
595
|
8192 && i !== (i = /*game*/
|
|
596
|
-
d[
|
|
596
|
+
d[63].advancedTags?.length > 0 && /*addGameTag*/
|
|
597
597
|
d[25](
|
|
598
598
|
/*game*/
|
|
599
|
-
d[
|
|
600
|
-
)) && u(e, "gametag", i),
|
|
599
|
+
d[63].advancedTags
|
|
600
|
+
)) && u(e, "gametag", i), S[0] & /*searchArray*/
|
|
601
601
|
8192 && c !== (c = /*game*/
|
|
602
|
-
d[
|
|
602
|
+
d[63].cellSize) && u(e, "gamecellsize", c), S[0] & /*searchArray*/
|
|
603
603
|
8192 && g !== (g = /*game*/
|
|
604
|
-
d[
|
|
604
|
+
d[63].id) && u(e, "gameid", g), S[0] & /*showgamename*/
|
|
605
605
|
128 && u(
|
|
606
606
|
e,
|
|
607
607
|
"showgamename",
|
|
608
608
|
/*showgamename*/
|
|
609
609
|
d[7]
|
|
610
|
-
),
|
|
610
|
+
), S[0] & /*searchArray*/
|
|
611
611
|
8192 && h !== (h = /*game*/
|
|
612
|
-
d[
|
|
612
|
+
d[63].hasFunMode) && u(e, "gamefunmode", h), S[0] & /*searchArray*/
|
|
613
613
|
8192 && m !== (m = /*game*/
|
|
614
|
-
d[
|
|
615
|
-
8192 &&
|
|
616
|
-
d[
|
|
614
|
+
d[63].isFavorite) && u(e, "gamefavorite", m), S[0] & /*searchArray*/
|
|
615
|
+
8192 && v !== (v = /*game*/
|
|
616
|
+
d[63].details ? (
|
|
617
617
|
/*game*/
|
|
618
|
-
d[
|
|
619
|
-
) : "") && u(e, "livelobbyendpoint",
|
|
618
|
+
d[63].launchUrl
|
|
619
|
+
) : "") && u(e, "livelobbyendpoint", v), S[0] & /*integratedgameframedesktop*/
|
|
620
620
|
32 && u(
|
|
621
621
|
e,
|
|
622
622
|
"integratedgameframedesktop",
|
|
623
623
|
/*integratedgameframedesktop*/
|
|
624
624
|
d[5]
|
|
625
|
-
),
|
|
625
|
+
), S[0] & /*integratedgameframemobile*/
|
|
626
626
|
64 && u(
|
|
627
627
|
e,
|
|
628
628
|
"integratedgameframemobile",
|
|
629
629
|
/*integratedgameframemobile*/
|
|
630
630
|
d[6]
|
|
631
|
-
),
|
|
631
|
+
), S[0] & /*clientstyling*/
|
|
632
632
|
8 && u(
|
|
633
633
|
e,
|
|
634
634
|
"clientstyling",
|
|
635
635
|
/*clientstyling*/
|
|
636
636
|
d[3]
|
|
637
|
-
),
|
|
637
|
+
), S[0] & /*clientstylingurl*/
|
|
638
638
|
16 && u(
|
|
639
639
|
e,
|
|
640
640
|
"clientstylingurl",
|
|
641
641
|
/*clientstylingurl*/
|
|
642
642
|
d[4]
|
|
643
|
-
),
|
|
643
|
+
), S[0] & /*gamepagemodalurl*/
|
|
644
644
|
256 && u(
|
|
645
645
|
e,
|
|
646
646
|
"gamepagemodalurl",
|
|
647
647
|
/*gamepagemodalurl*/
|
|
648
648
|
d[8]
|
|
649
|
-
),
|
|
649
|
+
), S[0] & /*mbsource*/
|
|
650
650
|
4 && u(
|
|
651
651
|
e,
|
|
652
652
|
"mbsource",
|
|
@@ -655,12 +655,12 @@ function ve(a) {
|
|
|
655
655
|
);
|
|
656
656
|
},
|
|
657
657
|
d(d) {
|
|
658
|
-
d &&
|
|
658
|
+
d && T(e);
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
let e, t,
|
|
662
|
+
function Ee(a) {
|
|
663
|
+
let e, t, r, o = (
|
|
664
664
|
/*$_*/
|
|
665
665
|
a[21]("notFound") + ""
|
|
666
666
|
), l, s, i, c = (
|
|
@@ -668,318 +668,388 @@ function ke(a) {
|
|
|
668
668
|
a[21]("notFoundText") + ""
|
|
669
669
|
), g, h, m = (
|
|
670
670
|
/*notfoundicon*/
|
|
671
|
-
a[11] === "true" &&
|
|
671
|
+
a[11] === "true" && Ie()
|
|
672
672
|
);
|
|
673
673
|
return {
|
|
674
674
|
c() {
|
|
675
|
-
e =
|
|
675
|
+
e = k("div"), m && m.c(), t = z(), r = k("p"), l = q(o), s = z(), i = k("p"), g = q(c), f(r, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
676
676
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
677
677
|
},
|
|
678
|
-
m(
|
|
679
|
-
|
|
678
|
+
m(v, d) {
|
|
679
|
+
E(v, e, d), m && m.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, g);
|
|
680
680
|
},
|
|
681
|
-
p(
|
|
681
|
+
p(v, d) {
|
|
682
682
|
/*notfoundicon*/
|
|
683
|
-
|
|
684
|
-
2097152 &&
|
|
685
|
-
|
|
683
|
+
v[11] === "true" ? m || (m = Ie(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
|
|
684
|
+
2097152 && o !== (o = /*$_*/
|
|
685
|
+
v[21]("notFound") + "") && H(l, o), d[0] & /*$_*/
|
|
686
686
|
2097152 && c !== (c = /*$_*/
|
|
687
|
-
|
|
687
|
+
v[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
|
|
688
688
|
2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
689
|
-
(
|
|
689
|
+
(v[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
|
|
690
690
|
},
|
|
691
|
-
d(
|
|
692
|
-
|
|
691
|
+
d(v) {
|
|
692
|
+
v && T(e), m && m.d();
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Ie(a) {
|
|
697
697
|
let e;
|
|
698
698
|
return {
|
|
699
699
|
c() {
|
|
700
|
-
e =
|
|
700
|
+
e = k("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
|
701
701
|
},
|
|
702
|
-
m(t,
|
|
703
|
-
|
|
702
|
+
m(t, r) {
|
|
703
|
+
E(t, e, r);
|
|
704
704
|
},
|
|
705
705
|
d(t) {
|
|
706
|
-
t &&
|
|
706
|
+
t && T(e);
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
let e, t,
|
|
710
|
+
function vt(a) {
|
|
711
|
+
let e, t, r, o, l, s, i, c, g, h, m, v, d, S, Z, D, x, W, U, B, R = (
|
|
712
712
|
/*cancelbutton*/
|
|
713
|
-
a[10] === "true" &&
|
|
713
|
+
a[10] === "true" && ke(a)
|
|
714
714
|
);
|
|
715
|
-
function
|
|
715
|
+
function X(_, I) {
|
|
716
716
|
return (
|
|
717
717
|
/*isLoading*/
|
|
718
|
-
|
|
718
|
+
_[18] ? _t : St
|
|
719
719
|
);
|
|
720
720
|
}
|
|
721
|
-
let
|
|
721
|
+
let A = X(a), C = A(a);
|
|
722
722
|
return {
|
|
723
723
|
c() {
|
|
724
|
-
e =
|
|
725
|
-
a[21]("placeHolderSearchGames")), f(s, "maxlength",
|
|
724
|
+
e = k("div"), t = k("div"), r = k("div"), o = k("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 = k("input"), c = z(), g = k("span"), h = pe("svg"), m = pe("path"), d = z(), R && R.c(), Z = z(), D = k("div"), W = z(), C.c(), f(o, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
725
|
+
a[21]("placeHolderSearchGames")), f(s, "maxlength", Ge), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "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(g, "class", v = "SearchClearButton " + /*cancelbutton*/
|
|
726
726
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
727
|
-
(a[14].length != 0 ? "" : "NotVisible")), f(
|
|
728
|
-
(a[16] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(
|
|
729
|
-
a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (
|
|
727
|
+
(a[14].length != 0 ? "" : "NotVisible")), f(r, "class", S = "Search " + /*searchCancelled*/
|
|
728
|
+
(a[16] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(D, "class", x = /*cancelbutton*/
|
|
729
|
+
a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (se(
|
|
730
730
|
/*userAgent*/
|
|
731
731
|
a[22]
|
|
732
732
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
733
733
|
},
|
|
734
|
-
m(
|
|
735
|
-
|
|
734
|
+
m(_, I) {
|
|
735
|
+
E(_, e, I), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), fe(
|
|
736
736
|
s,
|
|
737
737
|
/*searchValue*/
|
|
738
738
|
a[14]
|
|
739
|
-
), a[
|
|
740
|
-
|
|
739
|
+
), a[37](s), w(r, c), w(r, g), w(g, h), w(h, m), w(r, d), R && R.m(r, null), w(e, Z), w(e, D), w(e, W), C.m(e, null), a[40](e), U || (B = [
|
|
740
|
+
J(
|
|
741
741
|
s,
|
|
742
742
|
"input",
|
|
743
743
|
/*input_input_handler*/
|
|
744
|
-
a[
|
|
744
|
+
a[36]
|
|
745
745
|
),
|
|
746
|
-
|
|
746
|
+
J(
|
|
747
747
|
s,
|
|
748
748
|
"focus",
|
|
749
749
|
/*onFocus*/
|
|
750
750
|
a[23]
|
|
751
751
|
),
|
|
752
|
-
|
|
752
|
+
J(
|
|
753
753
|
s,
|
|
754
754
|
"input",
|
|
755
755
|
/*handleSearchInput*/
|
|
756
756
|
a[28]
|
|
757
757
|
),
|
|
758
|
-
|
|
758
|
+
J(
|
|
759
759
|
g,
|
|
760
760
|
"click",
|
|
761
761
|
/*click_handler*/
|
|
762
|
-
a[
|
|
762
|
+
a[38]
|
|
763
763
|
),
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
J(
|
|
765
|
+
D,
|
|
766
766
|
"click",
|
|
767
767
|
/*handleOverlay*/
|
|
768
768
|
a[24]
|
|
769
769
|
)
|
|
770
|
-
],
|
|
770
|
+
], U = !0);
|
|
771
771
|
},
|
|
772
|
-
p(
|
|
773
|
-
|
|
772
|
+
p(_, I) {
|
|
773
|
+
I[0] & /*$_*/
|
|
774
774
|
2097152 && i !== (i = /*$_*/
|
|
775
|
-
|
|
775
|
+
_[21]("placeHolderSearchGames")) && f(s, "placeholder", i), I[0] & /*searchValue*/
|
|
776
776
|
16384 && s.value !== /*searchValue*/
|
|
777
|
-
|
|
777
|
+
_[14] && fe(
|
|
778
778
|
s,
|
|
779
779
|
/*searchValue*/
|
|
780
|
-
|
|
781
|
-
),
|
|
782
|
-
17408 &&
|
|
783
|
-
(
|
|
784
|
-
(
|
|
785
|
-
|
|
786
|
-
65536 &&
|
|
787
|
-
(
|
|
788
|
-
1024 &&
|
|
789
|
-
|
|
780
|
+
_[14]
|
|
781
|
+
), I[0] & /*cancelbutton, searchValue*/
|
|
782
|
+
17408 && v !== (v = "SearchClearButton " + /*cancelbutton*/
|
|
783
|
+
(_[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
784
|
+
(_[14].length != 0 ? "" : "NotVisible")) && f(g, "class", v), /*cancelbutton*/
|
|
785
|
+
_[10] === "true" ? R ? R.p(_, I) : (R = ke(_), R.c(), R.m(r, null)) : R && (R.d(1), R = null), I[0] & /*searchCancelled*/
|
|
786
|
+
65536 && S !== (S = "Search " + /*searchCancelled*/
|
|
787
|
+
(_[16] ? "" : "SearchAnimation")) && f(r, "class", S), I[0] & /*cancelbutton*/
|
|
788
|
+
1024 && x !== (x = /*cancelbutton*/
|
|
789
|
+
_[10] != "true" ? "OverlayCancel" : "") && f(D, "class", x), A === (A = X(_)) && C ? C.p(_, I) : (C.d(1), C = A(_), C && (C.c(), C.m(e, null)));
|
|
790
790
|
},
|
|
791
|
-
i:
|
|
792
|
-
o:
|
|
793
|
-
d(
|
|
794
|
-
|
|
791
|
+
i: ge,
|
|
792
|
+
o: ge,
|
|
793
|
+
d(_) {
|
|
794
|
+
_ && T(e), a[37](null), R && R.d(), C.d(), a[40](null), U = !1, rt(B);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
let
|
|
799
|
-
function
|
|
800
|
-
let
|
|
801
|
-
|
|
802
|
-
let { endpoint:
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
798
|
+
let Ge = 50;
|
|
799
|
+
function yt(a, e, t) {
|
|
800
|
+
let r;
|
|
801
|
+
ot(a, ut, (n) => t(21, r = n));
|
|
802
|
+
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: S = "" } = e, { gamepagemodalurl: Z = "true" } = e, { translationurl: D = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: U = "false" } = e, { controlchannel: B = "casino-search" } = e, { allowedorigins: R = window.location.origin } = e;
|
|
803
|
+
const X = () => (R || "").split(",").map((n) => n.trim()).filter(Boolean);
|
|
804
|
+
let A = window.navigator.userAgent, C = [], _ = [], I = {}, N = "", Y, $ = !0, P = !1, G = !1, M, ee = !1, te, ae, le = [];
|
|
805
|
+
const ze = () => {
|
|
806
|
+
fetch(D).then((p) => p.json()).then((p) => {
|
|
807
|
+
Object.keys(p).forEach((b) => {
|
|
808
|
+
be(b, p[b]);
|
|
807
809
|
});
|
|
808
|
-
}).catch((
|
|
809
|
-
console.log(
|
|
810
|
+
}).catch((p) => {
|
|
811
|
+
console.log(p);
|
|
810
812
|
});
|
|
811
813
|
};
|
|
812
|
-
Object.keys(
|
|
813
|
-
|
|
814
|
+
Object.keys(ve).forEach((n) => {
|
|
815
|
+
be(n, ve[n]);
|
|
814
816
|
});
|
|
815
|
-
const
|
|
816
|
-
|
|
817
|
+
const ie = (n) => {
|
|
818
|
+
n.data && n.data.type == "SearchedItemClicked" && He(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();
|
|
819
|
+
try {
|
|
820
|
+
const p = n.origin === window.location.origin, b = X();
|
|
821
|
+
if (!(p || b.length > 0 && b.includes(n.origin)) || !n.data || n.data.channel !== B)
|
|
822
|
+
return;
|
|
823
|
+
switch (n.data.type) {
|
|
824
|
+
case "OpenSearch":
|
|
825
|
+
re();
|
|
826
|
+
break;
|
|
827
|
+
case "CloseSearch":
|
|
828
|
+
ce();
|
|
829
|
+
break;
|
|
830
|
+
case "ToggleSearch":
|
|
831
|
+
De();
|
|
832
|
+
break;
|
|
833
|
+
case "SetSearchQuery":
|
|
834
|
+
Ne(String(n.data.value ?? ""));
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
} catch {
|
|
838
|
+
}
|
|
817
839
|
}, ne = () => {
|
|
818
|
-
if (t(16,
|
|
819
|
-
t(13,
|
|
820
|
-
let
|
|
821
|
-
|
|
822
|
-
let
|
|
840
|
+
if (t(16, $ = !1), t(17, P = !0), o && l && c && N.length < 2) {
|
|
841
|
+
t(13, C = []);
|
|
842
|
+
let n = localStorage.getItem("searchedGamesWds_casino"), p = [];
|
|
843
|
+
n && (p = n.split(","));
|
|
844
|
+
let b = [], y = 0, F = p.length;
|
|
823
845
|
if (F > 0) {
|
|
824
|
-
for (
|
|
825
|
-
let j = new URL(`${
|
|
826
|
-
j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform",
|
|
846
|
+
for (y = 0; y < F; y++) {
|
|
847
|
+
let j = new URL(`${o}/v1/casino/games/${p[y]}`);
|
|
848
|
+
j.searchParams.append("language", c), j.searchParams.append("datasource", l), j.searchParams.append("platform", se(A)), b.push(xe(j, p[y]));
|
|
827
849
|
}
|
|
828
|
-
Promise.all(
|
|
829
|
-
j = j.filter(function(
|
|
830
|
-
return !!
|
|
831
|
-
}), t(13,
|
|
850
|
+
Promise.all(b).then((j) => {
|
|
851
|
+
j = j.filter(function(O) {
|
|
852
|
+
return !!O;
|
|
853
|
+
}), t(13, C = j.map((O) => (O.isFavorite = ue(O.id), O))), C.length ? K("searchSuccess", "SearchWidget") : K("searchFail", "SearchWidget");
|
|
832
854
|
}).catch((j) => {
|
|
833
|
-
|
|
855
|
+
K("searchError", "SearchWidget");
|
|
834
856
|
});
|
|
835
857
|
}
|
|
836
858
|
}
|
|
837
|
-
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
859
|
+
de(P), K("searchAttempt", "SearchWidget"), K("SearchInitialized", "SearchWidget");
|
|
860
|
+
};
|
|
861
|
+
function re() {
|
|
862
|
+
P || (ne(), requestAnimationFrame(() => Y?.focus()), V({ type: "SearchOpen" }));
|
|
863
|
+
}
|
|
864
|
+
function ce() {
|
|
865
|
+
P && (Q(), V({ type: "SearchClose" }));
|
|
866
|
+
}
|
|
867
|
+
function De() {
|
|
868
|
+
P ? ce() : re();
|
|
869
|
+
}
|
|
870
|
+
function Ne(n) {
|
|
871
|
+
t(14, N = (n ?? "").slice(0, Ge)), P || re(), me();
|
|
872
|
+
}
|
|
873
|
+
const K = (n, p) => {
|
|
874
|
+
typeof gtag == "function" && gtag("event", n, { context: p });
|
|
875
|
+
}, Pe = () => {
|
|
876
|
+
W != "true" && Q();
|
|
877
|
+
}, Me = (n) => new Promise((p, b) => {
|
|
878
|
+
t(18, G = !0), fetch(n.href).then((y) => y.json()).then((y) => {
|
|
879
|
+
t(18, G = !1), p(y);
|
|
880
|
+
}).catch((y) => {
|
|
881
|
+
t(18, G = !1), console.error(y);
|
|
882
|
+
try {
|
|
883
|
+
V({
|
|
884
|
+
type: "SearchError",
|
|
885
|
+
message: String(y)
|
|
886
|
+
});
|
|
887
|
+
} catch {
|
|
888
|
+
}
|
|
889
|
+
b(y);
|
|
847
890
|
});
|
|
848
|
-
}),
|
|
849
|
-
t(18,
|
|
850
|
-
t(18,
|
|
891
|
+
}), xe = (n, p) => new Promise((b, y) => {
|
|
892
|
+
t(18, G = !0), p && Object.keys(I).indexOf(p) >= 0 ? (t(18, G = !1), b(I[p])) : fetch(n).then((F) => F.json()).then((F) => {
|
|
893
|
+
t(18, G = !1), F.error || (I[F[0].gameId] = F[0]), b(F[0]);
|
|
851
894
|
}).catch((F) => {
|
|
852
|
-
t(18,
|
|
895
|
+
t(18, G = !1), console.error(F);
|
|
896
|
+
try {
|
|
897
|
+
V({
|
|
898
|
+
type: "SearchError",
|
|
899
|
+
message: String(F)
|
|
900
|
+
});
|
|
901
|
+
} catch {
|
|
902
|
+
}
|
|
903
|
+
y(F);
|
|
853
904
|
});
|
|
854
|
-
}),
|
|
855
|
-
const
|
|
856
|
-
t(18,
|
|
857
|
-
let
|
|
905
|
+
}), Ae = () => {
|
|
906
|
+
const n = new URL(`${o}/v1/player/${ae}/favorites/`);
|
|
907
|
+
t(18, G = !0);
|
|
908
|
+
let p = {
|
|
858
909
|
method: "GET",
|
|
859
|
-
headers: { "X-SessionID":
|
|
910
|
+
headers: { "X-SessionID": te }
|
|
860
911
|
};
|
|
861
|
-
fetch(
|
|
862
|
-
t(18,
|
|
912
|
+
fetch(n.href, p).then((b) => b.json()).then((b) => {
|
|
913
|
+
t(18, G = !1), le = b.items.map((y) => y.id);
|
|
863
914
|
});
|
|
864
|
-
},
|
|
865
|
-
t(
|
|
866
|
-
},
|
|
867
|
-
if (
|
|
915
|
+
}, Be = () => {
|
|
916
|
+
t(35, ee = !0), t(19, te = s), t(20, ae = i);
|
|
917
|
+
}, ue = (n) => le.findIndex((p) => p == n) !== -1, Oe = (n) => {
|
|
918
|
+
if (n?.length === 0)
|
|
868
919
|
return "";
|
|
869
|
-
let
|
|
920
|
+
let p, b = 99999999999, y;
|
|
870
921
|
const F = new Date(Date.now());
|
|
871
|
-
return
|
|
872
|
-
const
|
|
873
|
-
|
|
874
|
-
}),
|
|
875
|
-
},
|
|
876
|
-
if (
|
|
877
|
-
let
|
|
878
|
-
|
|
922
|
+
return n.forEach((j, O) => {
|
|
923
|
+
const Ke = new Date(j.schedules[0].startTime), oe = new Date(j.schedules[0].endTime);
|
|
924
|
+
Se(new Date(oe), new Date(F)) < b && (b = Se(new Date(oe), new Date(F)), y = O), lt(new Date(F), new Date(Ke)) && it(new Date(F), new Date(oe)) && (p = n[y].name);
|
|
925
|
+
}), p;
|
|
926
|
+
}, He = (n) => {
|
|
927
|
+
if (_ = localStorage.getItem("searchedGamesWds_casino"), _ ? _ = _.split(",") : _ = [], _.indexOf(n) === -1) {
|
|
928
|
+
let p;
|
|
929
|
+
_.unshift(n), p = _.join(","), localStorage.setItem("searchedGamesWds_casino", p);
|
|
879
930
|
}
|
|
880
931
|
}, Q = () => {
|
|
881
|
-
t(14,
|
|
882
|
-
},
|
|
883
|
-
t(14,
|
|
884
|
-
},
|
|
932
|
+
t(14, N = ""), t(16, $ = !0), t(18, G = !1), t(13, C = []), t(17, P = !1), de(P);
|
|
933
|
+
}, he = () => {
|
|
934
|
+
t(14, N = ""), Y.focus();
|
|
935
|
+
}, de = (n) => {
|
|
885
936
|
window.postMessage(
|
|
886
937
|
{
|
|
887
|
-
type:
|
|
888
|
-
searchStatus:
|
|
938
|
+
type: n === !0 ? "searchActive" : "searchCancelled",
|
|
939
|
+
searchStatus: n
|
|
889
940
|
},
|
|
890
941
|
window.location.href
|
|
891
|
-
)
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
942
|
+
), V({
|
|
943
|
+
type: n ? "SearchOpen" : "SearchClose"
|
|
944
|
+
});
|
|
945
|
+
};
|
|
946
|
+
function V(n) {
|
|
947
|
+
try {
|
|
948
|
+
const p = { channel: B, ...n };
|
|
949
|
+
window.postMessage(p, window.location.href);
|
|
950
|
+
} catch {
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
const qe = () => {
|
|
954
|
+
gt(c);
|
|
955
|
+
}, me = async () => {
|
|
956
|
+
if (N.length >= 2) {
|
|
957
|
+
const n = new URL(`${o}/v1/casino/games`);
|
|
958
|
+
n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform", se(A)), n.searchParams.append("language", c), n.searchParams.append("pagination", "offset=0,limit=30"), n.searchParams.append("filter", `name=${N}`), Me(n).then((p) => {
|
|
959
|
+
t(13, C = p.items.map((b) => (b.isFavorite = ue(b.id), b)));
|
|
960
|
+
try {
|
|
961
|
+
V({
|
|
962
|
+
type: "SearchResults",
|
|
963
|
+
count: C.length
|
|
964
|
+
});
|
|
965
|
+
} catch {
|
|
966
|
+
}
|
|
899
967
|
});
|
|
900
968
|
} else
|
|
901
|
-
|
|
902
|
-
}, 500);
|
|
903
|
-
|
|
904
|
-
window.removeEventListener("message",
|
|
969
|
+
$ || ne();
|
|
970
|
+
}, We = ft(me, 500);
|
|
971
|
+
st(() => (window.addEventListener("message", ie, !1), () => {
|
|
972
|
+
window.removeEventListener("message", ie);
|
|
905
973
|
}));
|
|
906
|
-
function
|
|
907
|
-
|
|
974
|
+
function Ue() {
|
|
975
|
+
N = this.value, t(14, N);
|
|
908
976
|
}
|
|
909
|
-
function
|
|
910
|
-
|
|
911
|
-
|
|
977
|
+
function Ve(n) {
|
|
978
|
+
_e[n ? "unshift" : "push"](() => {
|
|
979
|
+
Y = n, t(15, Y);
|
|
912
980
|
});
|
|
913
981
|
}
|
|
914
|
-
const
|
|
915
|
-
function
|
|
916
|
-
|
|
917
|
-
|
|
982
|
+
const Je = () => he(), Ze = () => Q();
|
|
983
|
+
function Ye(n) {
|
|
984
|
+
_e[n ? "unshift" : "push"](() => {
|
|
985
|
+
M = n, t(12, M);
|
|
918
986
|
});
|
|
919
987
|
}
|
|
920
|
-
return a.$$set = (
|
|
921
|
-
"endpoint" in
|
|
988
|
+
return a.$$set = (n) => {
|
|
989
|
+
"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, g = n.mbsource), "clientstyling" in n && t(3, h = n.clientstyling), "clientstylingurl" in n && t(4, m = n.clientstylingurl), "integratedgameframedesktop" in n && t(5, v = n.integratedgameframedesktop), "integratedgameframemobile" in n && t(6, d = n.integratedgameframemobile), "showgamename" in n && t(7, S = n.showgamename), "gamepagemodalurl" in n && t(8, Z = n.gamepagemodalurl), "translationurl" in n && t(32, D = n.translationurl), "showfavorites" in n && t(9, x = n.showfavorites), "cancelbutton" in n && t(10, W = n.cancelbutton), "notfoundicon" in n && t(11, U = n.notfoundicon), "controlchannel" in n && t(33, B = n.controlchannel), "allowedorigins" in n && t(34, R = n.allowedorigins);
|
|
922
990
|
}, a.$$.update = () => {
|
|
923
991
|
a.$$.dirty[0] & /*lang*/
|
|
924
|
-
2 && c &&
|
|
925
|
-
2 &&
|
|
992
|
+
2 && c && qe(), a.$$.dirty[1] & /*translationurl*/
|
|
993
|
+
2 && D && ze(), a.$$.dirty[0] & /*session*/
|
|
926
994
|
1073741824 | a.$$.dirty[1] & /*userid*/
|
|
927
|
-
1 && s && i &&
|
|
995
|
+
1 && s && i && Be(), a.$$.dirty[0] & /*showfavorites*/
|
|
928
996
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
929
|
-
|
|
930
|
-
4104 && h &&
|
|
931
|
-
4112 && m &&
|
|
932
|
-
4100 && g &&
|
|
997
|
+
16 && x && ee && Ae(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
998
|
+
4104 && h && M && ht(M, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
999
|
+
4112 && m && M && dt(M, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1000
|
+
4100 && g && M && mt(M, `${g}.Style`);
|
|
933
1001
|
}, [
|
|
934
|
-
|
|
1002
|
+
o,
|
|
935
1003
|
c,
|
|
936
1004
|
g,
|
|
937
1005
|
h,
|
|
938
1006
|
m,
|
|
939
|
-
|
|
1007
|
+
v,
|
|
940
1008
|
d,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
q,
|
|
1009
|
+
S,
|
|
1010
|
+
Z,
|
|
1011
|
+
x,
|
|
945
1012
|
W,
|
|
1013
|
+
U,
|
|
1014
|
+
M,
|
|
1015
|
+
C,
|
|
1016
|
+
N,
|
|
1017
|
+
Y,
|
|
1018
|
+
$,
|
|
946
1019
|
P,
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
z,
|
|
953
|
-
K,
|
|
954
|
-
X,
|
|
955
|
-
n,
|
|
956
|
-
O,
|
|
1020
|
+
G,
|
|
1021
|
+
te,
|
|
1022
|
+
ae,
|
|
1023
|
+
r,
|
|
1024
|
+
A,
|
|
957
1025
|
ne,
|
|
958
|
-
|
|
959
|
-
|
|
1026
|
+
Pe,
|
|
1027
|
+
Oe,
|
|
960
1028
|
Q,
|
|
961
|
-
|
|
962
|
-
|
|
1029
|
+
he,
|
|
1030
|
+
We,
|
|
963
1031
|
l,
|
|
964
1032
|
s,
|
|
965
1033
|
i,
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1034
|
+
D,
|
|
1035
|
+
B,
|
|
1036
|
+
R,
|
|
1037
|
+
ee,
|
|
1038
|
+
Ue,
|
|
1039
|
+
Ve,
|
|
1040
|
+
Je,
|
|
1041
|
+
Ze,
|
|
1042
|
+
Ye
|
|
973
1043
|
];
|
|
974
1044
|
}
|
|
975
|
-
class
|
|
1045
|
+
class kt extends et {
|
|
976
1046
|
constructor(e) {
|
|
977
|
-
super(),
|
|
1047
|
+
super(), tt(
|
|
978
1048
|
this,
|
|
979
1049
|
e,
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1050
|
+
yt,
|
|
1051
|
+
vt,
|
|
1052
|
+
at,
|
|
983
1053
|
{
|
|
984
1054
|
endpoint: 0,
|
|
985
1055
|
datasource: 29,
|
|
@@ -996,10 +1066,12 @@ class gt extends Oe {
|
|
|
996
1066
|
translationurl: 32,
|
|
997
1067
|
showfavorites: 9,
|
|
998
1068
|
cancelbutton: 10,
|
|
999
|
-
notfoundicon: 11
|
|
1069
|
+
notfoundicon: 11,
|
|
1070
|
+
controlchannel: 33,
|
|
1071
|
+
allowedorigins: 34
|
|
1000
1072
|
},
|
|
1001
|
-
|
|
1002
|
-
[-1, -1]
|
|
1073
|
+
pt,
|
|
1074
|
+
[-1, -1, -1]
|
|
1003
1075
|
);
|
|
1004
1076
|
}
|
|
1005
1077
|
get endpoint() {
|
|
@@ -1098,8 +1170,20 @@ class gt extends Oe {
|
|
|
1098
1170
|
set notfoundicon(e) {
|
|
1099
1171
|
this.$$set({ notfoundicon: e }), L();
|
|
1100
1172
|
}
|
|
1173
|
+
get controlchannel() {
|
|
1174
|
+
return this.$$.ctx[33];
|
|
1175
|
+
}
|
|
1176
|
+
set controlchannel(e) {
|
|
1177
|
+
this.$$set({ controlchannel: e }), L();
|
|
1178
|
+
}
|
|
1179
|
+
get allowedorigins() {
|
|
1180
|
+
return this.$$.ctx[34];
|
|
1181
|
+
}
|
|
1182
|
+
set allowedorigins(e) {
|
|
1183
|
+
this.$$set({ allowedorigins: e }), L();
|
|
1184
|
+
}
|
|
1101
1185
|
}
|
|
1102
|
-
|
|
1186
|
+
$e(kt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, controlchannel: {}, allowedorigins: {} }, [], [], !0);
|
|
1103
1187
|
export {
|
|
1104
|
-
|
|
1188
|
+
kt as C
|
|
1105
1189
|
};
|