@everymatrix/casino-search 1.59.2 → 1.60.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/{CasinoGameThumbnail-B1rxYT3M.js → CasinoGameThumbnail-DMxybz7n.js} +461 -450
- package/components/{CasinoGameThumbnail-B9HYnO2R.cjs → CasinoGameThumbnail-DyZ-T8TY.cjs} +12 -12
- package/components/{CasinoGameThumbnail-CA5NbMX6.js → CasinoGameThumbnail-HjTPktj_.js} +461 -450
- package/components/{CasinoSearch-BwqcGdd9.js → CasinoSearch-B98wL-kk.js} +105 -105
- package/components/{CasinoSearch-B7Ou1rC4.cjs → CasinoSearch-D32v1ue2.cjs} +1 -1
- package/components/{CasinoSearch-BFsYQwaV.js → CasinoSearch-Hl6jRPAD.js} +122 -122
- package/es2015/casino-search.cjs +1 -1
- package/es2015/casino-search.js +1 -1
- package/esnext/casino-search.js +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as Ae, $ as
|
|
1
|
+
import { a as Ae, $ as He, S as Oe, i as qe, f as L, c as We, s as Ue, b as Ve, e as R, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Re, E as et, F as u, G as tt } from "./CasinoGameThumbnail-HjTPktj_.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
Ae(a, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function at(a) {
|
|
6
|
+
He.set(a);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const ge = {
|
|
9
9
|
en: {
|
|
10
10
|
recentSearch: "Recent search",
|
|
11
11
|
placeHolderSearchGames: "Search for Games",
|
|
@@ -200,14 +200,14 @@ if (typeof window != "undefined") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-
|
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnail-HjTPktj_.js").then((e) => e.H).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function nt(a) {
|
|
208
208
|
Ve(a, "svelte-8vixmz", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function fe(a, e, t) {
|
|
211
211
|
const n = a.slice();
|
|
212
212
|
return n[53] = e[t], n;
|
|
213
213
|
}
|
|
@@ -218,11 +218,11 @@ function pe(a) {
|
|
|
218
218
|
), n, r, l, s;
|
|
219
219
|
return {
|
|
220
220
|
c() {
|
|
221
|
-
e =
|
|
221
|
+
e = R("small"), n = O(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
|
222
222
|
(a[13] ? "NotVisible" : ""));
|
|
223
223
|
},
|
|
224
224
|
m(i, c) {
|
|
225
|
-
|
|
225
|
+
T(i, e, c), _(e, n), l || (s = Z(
|
|
226
226
|
e,
|
|
227
227
|
"click",
|
|
228
228
|
/*click_handler_1*/
|
|
@@ -232,29 +232,29 @@ function pe(a) {
|
|
|
232
232
|
p(i, c) {
|
|
233
233
|
c[0] & /*$_*/
|
|
234
234
|
2097152 && t !== (t = /*$_*/
|
|
235
|
-
i[21]("cancel") + "") &&
|
|
235
|
+
i[21]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
|
|
236
236
|
8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
|
|
237
|
-
(i[13] ? "NotVisible" : "")) &&
|
|
237
|
+
(i[13] ? "NotVisible" : "")) && f(e, "class", r);
|
|
238
238
|
},
|
|
239
239
|
d(i) {
|
|
240
240
|
i && j(e), l = !1, s();
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function rt(a) {
|
|
245
245
|
let e, t, n, r;
|
|
246
|
-
function l(h,
|
|
246
|
+
function l(h, g) {
|
|
247
247
|
if (
|
|
248
248
|
/*searchActive*/
|
|
249
249
|
h[17] == !0 && /*searchValue*/
|
|
250
250
|
h[12].length < 2
|
|
251
251
|
)
|
|
252
|
-
return
|
|
252
|
+
return lt;
|
|
253
253
|
if (
|
|
254
254
|
/*searchArray*/
|
|
255
255
|
h[15].length != 0
|
|
256
256
|
)
|
|
257
|
-
return
|
|
257
|
+
return st;
|
|
258
258
|
}
|
|
259
259
|
let s = l(a), i = s && s(a), c = (
|
|
260
260
|
/*searchCancelled*/
|
|
@@ -266,70 +266,70 @@ function nt(a) {
|
|
|
266
266
|
);
|
|
267
267
|
return {
|
|
268
268
|
c() {
|
|
269
|
-
i && i.c(), e = N(), t =
|
|
269
|
+
i && i.c(), e = N(), t = R("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
|
|
270
270
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
271
271
|
},
|
|
272
|
-
m(h,
|
|
273
|
-
i && i.m(h,
|
|
272
|
+
m(h, g) {
|
|
273
|
+
i && i.m(h, g), T(h, e, g), T(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
|
|
274
274
|
},
|
|
275
|
-
p(h,
|
|
276
|
-
s === (s = l(h)) && i ? i.p(h,
|
|
277
|
-
h[13] === !1 ? c ? c.p(h,
|
|
275
|
+
p(h, g) {
|
|
276
|
+
s === (s = l(h)) && i ? i.p(h, g) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
277
|
+
h[13] === !1 ? c ? c.p(h, g) : (c = we(h), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
|
|
278
278
|
h[12].length >= 2 && /*searchArray*/
|
|
279
|
-
h[15].length == 0 ? m ? m.p(h,
|
|
279
|
+
h[15].length == 0 ? m ? m.p(h, g) : (m = ye(h), m.c(), m.m(t, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
|
|
280
280
|
131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
|
|
281
|
-
(h[17] == !0 ? "" : "NotVisible")) &&
|
|
281
|
+
(h[17] == !0 ? "" : "NotVisible")) && f(t, "class", r);
|
|
282
282
|
},
|
|
283
283
|
d(h) {
|
|
284
284
|
h && (j(e), j(t)), i && i.d(h), c && c.d(), m && m.d();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function ot(a) {
|
|
289
289
|
let e, t = (
|
|
290
290
|
/*$_*/
|
|
291
291
|
a[21]("loading") + ""
|
|
292
292
|
), n;
|
|
293
293
|
return {
|
|
294
294
|
c() {
|
|
295
|
-
e =
|
|
295
|
+
e = R("p"), n = O(t), f(e, "class", "LoadingContent");
|
|
296
296
|
},
|
|
297
297
|
m(r, l) {
|
|
298
|
-
|
|
298
|
+
T(r, e, l), _(e, n);
|
|
299
299
|
},
|
|
300
300
|
p(r, l) {
|
|
301
301
|
l[0] & /*$_*/
|
|
302
302
|
2097152 && t !== (t = /*$_*/
|
|
303
|
-
r[21]("loading") + "") &&
|
|
303
|
+
r[21]("loading") + "") && q(n, t);
|
|
304
304
|
},
|
|
305
305
|
d(r) {
|
|
306
306
|
r && j(e);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function st(a) {
|
|
311
311
|
let e, t = (
|
|
312
312
|
/*$_*/
|
|
313
313
|
a[21]("searchResult") + ""
|
|
314
314
|
), n;
|
|
315
315
|
return {
|
|
316
316
|
c() {
|
|
317
|
-
e =
|
|
317
|
+
e = R("p"), n = O(t), f(e, "class", "SearchMessage");
|
|
318
318
|
},
|
|
319
319
|
m(r, l) {
|
|
320
|
-
|
|
320
|
+
T(r, e, l), _(e, n);
|
|
321
321
|
},
|
|
322
322
|
p(r, l) {
|
|
323
323
|
l[0] & /*$_*/
|
|
324
324
|
2097152 && t !== (t = /*$_*/
|
|
325
|
-
r[21]("searchResult") + "") &&
|
|
325
|
+
r[21]("searchResult") + "") && q(n, t);
|
|
326
326
|
},
|
|
327
327
|
d(r) {
|
|
328
328
|
r && j(e);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function lt(a) {
|
|
333
333
|
let e, t, n = (
|
|
334
334
|
/*searchArray*/
|
|
335
335
|
a[15].length !== 0 && Se(a)
|
|
@@ -342,7 +342,7 @@ function st(a) {
|
|
|
342
342
|
n && n.c(), e = N(), r && r.c(), t = Re();
|
|
343
343
|
},
|
|
344
344
|
m(l, s) {
|
|
345
|
-
n && n.m(l, s),
|
|
345
|
+
n && n.m(l, s), T(l, e, s), r && r.m(l, s), T(l, t, s);
|
|
346
346
|
},
|
|
347
347
|
p(l, s) {
|
|
348
348
|
/*searchArray*/
|
|
@@ -361,15 +361,15 @@ function Se(a) {
|
|
|
361
361
|
), n;
|
|
362
362
|
return {
|
|
363
363
|
c() {
|
|
364
|
-
e =
|
|
364
|
+
e = R("p"), n = O(t), f(e, "class", "SearchMessage");
|
|
365
365
|
},
|
|
366
366
|
m(r, l) {
|
|
367
|
-
|
|
367
|
+
T(r, e, l), _(e, n);
|
|
368
368
|
},
|
|
369
369
|
p(r, l) {
|
|
370
370
|
l[0] & /*$_*/
|
|
371
371
|
2097152 && t !== (t = /*$_*/
|
|
372
|
-
r[21]("recentSearch") + "") &&
|
|
372
|
+
r[21]("recentSearch") + "") && q(n, t);
|
|
373
373
|
},
|
|
374
374
|
d(r) {
|
|
375
375
|
r && j(e);
|
|
@@ -386,19 +386,19 @@ function _e(a) {
|
|
|
386
386
|
);
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
389
|
-
e =
|
|
389
|
+
e = R("div"), i && i.c(), t = N(), n = R("p"), l = O(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
390
390
|
(a[10] == "true" ? "WithIcon" : ""));
|
|
391
391
|
},
|
|
392
392
|
m(c, m) {
|
|
393
|
-
|
|
393
|
+
T(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
|
|
394
394
|
},
|
|
395
395
|
p(c, m) {
|
|
396
396
|
/*notfoundicon*/
|
|
397
397
|
c[10] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
|
|
398
398
|
2097152 && r !== (r = /*$_*/
|
|
399
|
-
c[21]("noRecentSearches") + "") &&
|
|
399
|
+
c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
|
|
400
400
|
1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
401
|
-
(c[10] == "true" ? "WithIcon" : "")) &&
|
|
401
|
+
(c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
|
402
402
|
},
|
|
403
403
|
d(c) {
|
|
404
404
|
c && j(e), i && i.d();
|
|
@@ -409,10 +409,10 @@ function be(a) {
|
|
|
409
409
|
let e;
|
|
410
410
|
return {
|
|
411
411
|
c() {
|
|
412
|
-
e =
|
|
412
|
+
e = R("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
|
413
413
|
},
|
|
414
414
|
m(t, n) {
|
|
415
|
-
|
|
415
|
+
T(t, e, n);
|
|
416
416
|
},
|
|
417
417
|
d(t) {
|
|
418
418
|
t && j(e);
|
|
@@ -425,7 +425,7 @@ function we(a) {
|
|
|
425
425
|
a[15]
|
|
426
426
|
), n = [];
|
|
427
427
|
for (let r = 0; r < t.length; r += 1)
|
|
428
|
-
n[r] = ve(
|
|
428
|
+
n[r] = ve(fe(a, t, r));
|
|
429
429
|
return {
|
|
430
430
|
c() {
|
|
431
431
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -435,7 +435,7 @@ function we(a) {
|
|
|
435
435
|
m(r, l) {
|
|
436
436
|
for (let s = 0; s < n.length; s += 1)
|
|
437
437
|
n[s] && n[s].m(r, l);
|
|
438
|
-
|
|
438
|
+
T(r, e, l);
|
|
439
439
|
},
|
|
440
440
|
p(r, l) {
|
|
441
441
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
|
@@ -446,7 +446,7 @@ function we(a) {
|
|
|
446
446
|
);
|
|
447
447
|
let s;
|
|
448
448
|
for (s = 0; s < t.length; s += 1) {
|
|
449
|
-
const i =
|
|
449
|
+
const i = fe(r, t, s);
|
|
450
450
|
n[s] ? n[s].p(i, l) : (n[s] = ve(i), n[s].c(), n[s].m(e.parentNode, e));
|
|
451
451
|
}
|
|
452
452
|
for (; s < n.length; s += 1)
|
|
@@ -455,16 +455,16 @@ function we(a) {
|
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
d(r) {
|
|
458
|
-
r && j(e),
|
|
458
|
+
r && j(e), et(n, r);
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
462
|
function ve(a) {
|
|
463
|
-
let e, t, n, r, l, s, i, c, m, h,
|
|
463
|
+
let e, t, n, r, l, s, i, c, m, h, g, w;
|
|
464
464
|
return {
|
|
465
465
|
c() {
|
|
466
466
|
var d;
|
|
467
|
-
e =
|
|
467
|
+
e = R("casino-game-thumbnail"), u(
|
|
468
468
|
e,
|
|
469
469
|
"endpoint",
|
|
470
470
|
/*endpoint*/
|
|
@@ -507,7 +507,7 @@ function ve(a) {
|
|
|
507
507
|
/*showgamename*/
|
|
508
508
|
a[6]
|
|
509
509
|
), u(e, "gamefunmode", h = /*game*/
|
|
510
|
-
a[53].hasFunMode), u(e, "gamefavorite",
|
|
510
|
+
a[53].hasFunMode), u(e, "gamefavorite", g = /*game*/
|
|
511
511
|
a[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
|
|
512
512
|
a[53].details ? (
|
|
513
513
|
/*game*/
|
|
@@ -545,7 +545,7 @@ function ve(a) {
|
|
|
545
545
|
);
|
|
546
546
|
},
|
|
547
547
|
m(d, p) {
|
|
548
|
-
|
|
548
|
+
T(d, e, p);
|
|
549
549
|
},
|
|
550
550
|
p(d, p) {
|
|
551
551
|
var x;
|
|
@@ -608,8 +608,8 @@ function ve(a) {
|
|
|
608
608
|
), p[0] & /*searchArray*/
|
|
609
609
|
32768 && h !== (h = /*game*/
|
|
610
610
|
d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
|
|
611
|
-
32768 &&
|
|
612
|
-
d[53].isFavorite) && u(e, "gamefavorite",
|
|
611
|
+
32768 && g !== (g = /*game*/
|
|
612
|
+
d[53].isFavorite) && u(e, "gamefavorite", g), p[0] & /*searchArray*/
|
|
613
613
|
32768 && w !== (w = /*game*/
|
|
614
614
|
d[53].details ? (
|
|
615
615
|
/*game*/
|
|
@@ -664,30 +664,30 @@ function ye(a) {
|
|
|
664
664
|
), l, s, i, c = (
|
|
665
665
|
/*$_*/
|
|
666
666
|
a[21]("notFoundText") + ""
|
|
667
|
-
), m, h,
|
|
667
|
+
), m, h, g = (
|
|
668
668
|
/*notfoundicon*/
|
|
669
669
|
a[10] === "true" && ke()
|
|
670
670
|
);
|
|
671
671
|
return {
|
|
672
672
|
c() {
|
|
673
|
-
e =
|
|
673
|
+
e = R("div"), g && g.c(), t = N(), n = R("p"), l = O(r), s = N(), i = R("p"), m = O(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
674
674
|
(a[10] == "true" ? "WithIcon" : ""));
|
|
675
675
|
},
|
|
676
676
|
m(w, d) {
|
|
677
|
-
|
|
677
|
+
T(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
|
|
678
678
|
},
|
|
679
679
|
p(w, d) {
|
|
680
680
|
/*notfoundicon*/
|
|
681
|
-
w[10] === "true" ?
|
|
681
|
+
w[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
|
|
682
682
|
2097152 && r !== (r = /*$_*/
|
|
683
|
-
w[21]("notFound") + "") &&
|
|
683
|
+
w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
|
|
684
684
|
2097152 && c !== (c = /*$_*/
|
|
685
|
-
w[21]("notFoundText") + "") &&
|
|
685
|
+
w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
|
|
686
686
|
1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
687
|
-
(w[10] == "true" ? "WithIcon" : "")) &&
|
|
687
|
+
(w[10] == "true" ? "WithIcon" : "")) && f(e, "class", h);
|
|
688
688
|
},
|
|
689
689
|
d(w) {
|
|
690
|
-
w && j(e),
|
|
690
|
+
w && j(e), g && g.d();
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
693
|
}
|
|
@@ -695,46 +695,46 @@ function ke(a) {
|
|
|
695
695
|
let e;
|
|
696
696
|
return {
|
|
697
697
|
c() {
|
|
698
|
-
e =
|
|
698
|
+
e = R("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
|
699
699
|
},
|
|
700
700
|
m(t, n) {
|
|
701
|
-
|
|
701
|
+
T(t, e, n);
|
|
702
702
|
},
|
|
703
703
|
d(t) {
|
|
704
704
|
t && j(e);
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
let e, t, n, r, l, s, i, c, m, h,
|
|
708
|
+
function it(a) {
|
|
709
|
+
let e, t, n, r, l, s, i, c, m, h, g, w, d, p, x, P, M, U, A, W, v = (
|
|
710
710
|
/*cancelbutton*/
|
|
711
711
|
a[9] === "true" && pe(a)
|
|
712
712
|
);
|
|
713
|
-
function G(b,
|
|
713
|
+
function G(b, E) {
|
|
714
714
|
return (
|
|
715
715
|
/*isLoading*/
|
|
716
|
-
b[18] ?
|
|
716
|
+
b[18] ? ot : rt
|
|
717
717
|
);
|
|
718
718
|
}
|
|
719
|
-
let B = G(a),
|
|
719
|
+
let B = G(a), k = B(a);
|
|
720
720
|
return {
|
|
721
721
|
c() {
|
|
722
|
-
e =
|
|
723
|
-
a[21]("placeHolderSearchGames")),
|
|
722
|
+
e = R("div"), t = R("div"), n = R("div"), r = R("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = R("input"), c = N(), m = R("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), x = N(), P = R("div"), U = N(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
723
|
+
a[21]("placeHolderSearchGames")), f(s, "maxlength", ct), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
|
|
724
724
|
(a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
725
|
-
(a[12].length != 0 ? "" : "NotVisible")),
|
|
726
|
-
(a[13] ? "" : "SearchAnimation")),
|
|
727
|
-
a[9] != "true" ? "OverlayCancel" : ""),
|
|
725
|
+
(a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
|
|
726
|
+
(a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", M = /*cancelbutton*/
|
|
727
|
+
a[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (te(
|
|
728
728
|
/*userAgent*/
|
|
729
729
|
a[22]
|
|
730
730
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
731
731
|
},
|
|
732
|
-
m(b,
|
|
733
|
-
|
|
732
|
+
m(b, E) {
|
|
733
|
+
T(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
|
|
734
734
|
s,
|
|
735
735
|
/*searchValue*/
|
|
736
736
|
a[12]
|
|
737
|
-
), a[34](s), _(n, c), _(n, m), _(m, h), _(h,
|
|
737
|
+
), a[34](s), _(n, c), _(n, m), _(m, h), _(h, g), _(n, d), v && v.m(n, null), _(e, x), _(e, P), _(e, U), k.m(e, null), a[37](e), A || (W = [
|
|
738
738
|
Z(
|
|
739
739
|
s,
|
|
740
740
|
"input",
|
|
@@ -761,37 +761,37 @@ function lt(a) {
|
|
|
761
761
|
)
|
|
762
762
|
], A = !0);
|
|
763
763
|
},
|
|
764
|
-
p(b,
|
|
765
|
-
|
|
764
|
+
p(b, E) {
|
|
765
|
+
E[0] & /*$_*/
|
|
766
766
|
2097152 && i !== (i = /*$_*/
|
|
767
|
-
b[21]("placeHolderSearchGames")) &&
|
|
767
|
+
b[21]("placeHolderSearchGames")) && f(s, "placeholder", i), E[0] & /*searchValue*/
|
|
768
768
|
4096 && s.value !== /*searchValue*/
|
|
769
769
|
b[12] && ce(
|
|
770
770
|
s,
|
|
771
771
|
/*searchValue*/
|
|
772
772
|
b[12]
|
|
773
|
-
),
|
|
773
|
+
), E[0] & /*cancelbutton, searchValue*/
|
|
774
774
|
4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
|
|
775
775
|
(b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
776
|
-
(b[12].length != 0 ? "" : "NotVisible")) &&
|
|
777
|
-
b[9] === "true" ? v ? v.p(b,
|
|
776
|
+
(b[12].length != 0 ? "" : "NotVisible")) && f(m, "class", w), /*cancelbutton*/
|
|
777
|
+
b[9] === "true" ? v ? v.p(b, E) : (v = pe(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), E[0] & /*searchCancelled*/
|
|
778
778
|
8192 && p !== (p = "Search " + /*searchCancelled*/
|
|
779
|
-
(b[13] ? "" : "SearchAnimation")) &&
|
|
779
|
+
(b[13] ? "" : "SearchAnimation")) && f(n, "class", p), E[0] & /*cancelbutton*/
|
|
780
780
|
512 && M !== (M = /*cancelbutton*/
|
|
781
|
-
b[9] != "true" ? "OverlayCancel" : "") &&
|
|
781
|
+
b[9] != "true" ? "OverlayCancel" : "") && f(P, "class", M), B === (B = G(b)) && k ? k.p(b, E) : (k.d(1), k = B(b), k && (k.c(), k.m(e, null)));
|
|
782
782
|
},
|
|
783
783
|
i: ue,
|
|
784
784
|
o: ue,
|
|
785
785
|
d(b) {
|
|
786
|
-
b && j(e), a[34](null), v && v.d(),
|
|
786
|
+
b && j(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
|
-
let
|
|
791
|
-
function
|
|
790
|
+
let ct = 50;
|
|
791
|
+
function ut(a, e, t) {
|
|
792
792
|
let n;
|
|
793
|
-
Ze(a,
|
|
794
|
-
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop:
|
|
793
|
+
Ze(a, tt, (o) => t(21, n = o));
|
|
794
|
+
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: x = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", b, E = !0, V = !1, I = !1, D, Y = !1, X, K, ae = [];
|
|
795
795
|
const Ce = () => {
|
|
796
796
|
fetch(x).then((S) => S.json()).then((S) => {
|
|
797
797
|
Object.keys(S).forEach((y) => {
|
|
@@ -801,13 +801,13 @@ function ct(a, e, t) {
|
|
|
801
801
|
console.log(S);
|
|
802
802
|
});
|
|
803
803
|
};
|
|
804
|
-
Object.keys(
|
|
805
|
-
me(o,
|
|
804
|
+
Object.keys(ge).forEach((o) => {
|
|
805
|
+
me(o, ge[o]);
|
|
806
806
|
});
|
|
807
807
|
const ne = (o) => {
|
|
808
808
|
o.data && o.data.type == "SearchedItemClicked" && Ge(o.data.gameId), o.data.type == "UserSessionID" && (t(19, X = o.data.session), t(20, K = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
|
|
809
809
|
}, re = () => {
|
|
810
|
-
if (t(13,
|
|
810
|
+
if (t(13, E = !1), t(17, V = !0), r && l && c && k.length < 2) {
|
|
811
811
|
t(15, v = []);
|
|
812
812
|
let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
|
|
813
813
|
o && (S = o.split(","));
|
|
@@ -815,12 +815,12 @@ function ct(a, e, t) {
|
|
|
815
815
|
if (F > 0) {
|
|
816
816
|
for (C = 0; C < F; C++) {
|
|
817
817
|
let z = new URL(`${r}/v1/casino/games/${S[C]}`);
|
|
818
|
-
z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", te(W)), y.push(
|
|
818
|
+
z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", te(W)), y.push(Ee(z, S[C]));
|
|
819
819
|
}
|
|
820
820
|
Promise.all(y).then((z) => {
|
|
821
|
-
z = z.filter(function(
|
|
822
|
-
return !!
|
|
823
|
-
}), t(15, v = z.map((
|
|
821
|
+
z = z.filter(function(H) {
|
|
822
|
+
return !!H;
|
|
823
|
+
}), t(15, v = z.map((H) => (H.isFavorite = oe(H.id), H))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
|
|
824
824
|
}).catch((z) => {
|
|
825
825
|
J("searchError", "SearchWidget");
|
|
826
826
|
});
|
|
@@ -837,13 +837,13 @@ function ct(a, e, t) {
|
|
|
837
837
|
}).catch((C) => {
|
|
838
838
|
t(18, I = !1), console.error(C), y(C);
|
|
839
839
|
});
|
|
840
|
-
}),
|
|
840
|
+
}), Ee = (o, S) => new Promise((y, C) => {
|
|
841
841
|
t(18, I = !0), S && Object.keys(B).indexOf(S) >= 0 ? (t(18, I = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
|
|
842
842
|
t(18, I = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
|
|
843
843
|
}).catch((F) => {
|
|
844
844
|
t(18, I = !1), console.error(F), C(F);
|
|
845
845
|
});
|
|
846
|
-
}),
|
|
846
|
+
}), Te = () => {
|
|
847
847
|
const o = new URL(`${r}/v1/player/${K}/favorites/`);
|
|
848
848
|
t(18, I = !0);
|
|
849
849
|
let S = {
|
|
@@ -860,9 +860,9 @@ function ct(a, e, t) {
|
|
|
860
860
|
return "";
|
|
861
861
|
let S, y = 99999999999, C;
|
|
862
862
|
const F = new Date(Date.now());
|
|
863
|
-
return o.forEach((z,
|
|
863
|
+
return o.forEach((z, H) => {
|
|
864
864
|
const Be = new Date(z.schedules[0].startTime), ee = new Date(z.schedules[0].endTime);
|
|
865
|
-
$(ee).diff(F) < y && (y = $(ee).diff(F), C =
|
|
865
|
+
$(ee).diff(F) < y && (y = $(ee).diff(F), C = H), $(F).isAfter(Be) && $(F).isBefore(ee) && (S = o[C].name);
|
|
866
866
|
}), S;
|
|
867
867
|
}, Ge = (o) => {
|
|
868
868
|
if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
|
|
@@ -870,9 +870,9 @@ function ct(a, e, t) {
|
|
|
870
870
|
G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
|
|
871
871
|
}
|
|
872
872
|
}, Q = () => {
|
|
873
|
-
t(12,
|
|
873
|
+
t(12, k = ""), t(13, E = !0), t(18, I = !1), t(15, v = []), t(17, V = !1), le(V);
|
|
874
874
|
}, se = () => {
|
|
875
|
-
t(12,
|
|
875
|
+
t(12, k = ""), b.focus();
|
|
876
876
|
}, le = (o) => {
|
|
877
877
|
window.postMessage(
|
|
878
878
|
{
|
|
@@ -882,13 +882,13 @@ function ct(a, e, t) {
|
|
|
882
882
|
window.location.href
|
|
883
883
|
);
|
|
884
884
|
}, Ie = () => {
|
|
885
|
-
|
|
885
|
+
at(c);
|
|
886
886
|
};
|
|
887
887
|
Ye(() => (window.addEventListener("message", ne, !1), () => {
|
|
888
888
|
window.removeEventListener("message", ne);
|
|
889
889
|
}));
|
|
890
890
|
function Ne() {
|
|
891
|
-
|
|
891
|
+
k = this.value, t(12, k);
|
|
892
892
|
}
|
|
893
893
|
function xe(o) {
|
|
894
894
|
he[o ? "unshift" : "push"](() => {
|
|
@@ -902,32 +902,32 @@ function ct(a, e, t) {
|
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
return a.$$set = (o) => {
|
|
905
|
-
"endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "clientstyling" in o && t(2, m = o.clientstyling), "clientstylingurl" in o && t(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && t(4,
|
|
905
|
+
"endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "clientstyling" in o && t(2, m = o.clientstyling), "clientstylingurl" in o && t(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && t(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(5, w = o.integratedgameframemobile), "showgamename" in o && t(6, d = o.showgamename), "gamepagemodalurl" in o && t(7, p = o.gamepagemodalurl), "translationurl" in o && t(31, x = o.translationurl), "showfavorites" in o && t(8, P = o.showfavorites), "cancelbutton" in o && t(9, M = o.cancelbutton), "notfoundicon" in o && t(10, U = o.notfoundicon), "mbsource" in o && t(11, A = o.mbsource);
|
|
906
906
|
}, a.$$.update = () => {
|
|
907
907
|
if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
|
908
908
|
268447747)
|
|
909
|
-
if (
|
|
909
|
+
if (k.length >= 2) {
|
|
910
910
|
const o = new URL(`${r}/v1/casino/games`);
|
|
911
|
-
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${
|
|
912
|
-
t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
|
|
911
|
+
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", te(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Le(o).then((S) => {
|
|
912
|
+
Xe("game_search", { searchValue: k }), t(15, v = S.items.map((y) => (y.isFavorite = oe(y.id), y)));
|
|
913
913
|
});
|
|
914
914
|
} else
|
|
915
|
-
|
|
915
|
+
E || re();
|
|
916
916
|
a.$$.dirty[0] & /*lang*/
|
|
917
917
|
2 && c && Ie(), a.$$.dirty[1] & /*translationurl*/
|
|
918
918
|
1 && x && Ce(), a.$$.dirty[0] & /*session, userid*/
|
|
919
919
|
1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
|
|
920
920
|
256 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
921
|
-
2 && P && Y &&
|
|
922
|
-
16388 && m && D &&
|
|
923
|
-
16392 && h && D &&
|
|
924
|
-
18432 && D &&
|
|
921
|
+
2 && P && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
922
|
+
16388 && m && D && Qe(D, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
923
|
+
16392 && h && D && Ke(D, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
924
|
+
18432 && D && $e(D, `${A}.Style`);
|
|
925
925
|
}, [
|
|
926
926
|
r,
|
|
927
927
|
c,
|
|
928
928
|
m,
|
|
929
929
|
h,
|
|
930
|
-
|
|
930
|
+
g,
|
|
931
931
|
w,
|
|
932
932
|
d,
|
|
933
933
|
p,
|
|
@@ -935,8 +935,8 @@ function ct(a, e, t) {
|
|
|
935
935
|
M,
|
|
936
936
|
U,
|
|
937
937
|
A,
|
|
938
|
-
|
|
939
|
-
|
|
938
|
+
k,
|
|
939
|
+
E,
|
|
940
940
|
D,
|
|
941
941
|
v,
|
|
942
942
|
b,
|
|
@@ -963,13 +963,13 @@ function ct(a, e, t) {
|
|
|
963
963
|
Me
|
|
964
964
|
];
|
|
965
965
|
}
|
|
966
|
-
class
|
|
966
|
+
class ht extends Oe {
|
|
967
967
|
constructor(e) {
|
|
968
|
-
super(),
|
|
968
|
+
super(), qe(
|
|
969
969
|
this,
|
|
970
970
|
e,
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
ut,
|
|
972
|
+
it,
|
|
973
973
|
Ue,
|
|
974
974
|
{
|
|
975
975
|
endpoint: 0,
|
|
@@ -989,7 +989,7 @@ class ut extends qe {
|
|
|
989
989
|
notfoundicon: 10,
|
|
990
990
|
mbsource: 11
|
|
991
991
|
},
|
|
992
|
-
|
|
992
|
+
nt,
|
|
993
993
|
[-1, -1]
|
|
994
994
|
);
|
|
995
995
|
}
|
|
@@ -1090,7 +1090,7 @@ class ut extends qe {
|
|
|
1090
1090
|
this.$$set({ mbsource: e }), L();
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
|
-
We(
|
|
1093
|
+
We(ht, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
|
|
1094
1094
|
export {
|
|
1095
|
-
|
|
1095
|
+
ht as default
|
|
1096
1096
|
};
|