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