@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, S as Ue, i as Ve, f as L, s as Je, c as Ze, b as Ye, n as ue, d as j, r as Xe, e as g, g as he, h as E, j as b, l as Y, k as C, m as z, o as de, p as ae, q as Ke, t as Qe, u as $e, v as q, w as H, x as me, y as fe, z as et, A as Le, B as u, C as tt, D as at, E as nt, F as rt } from "./CasinoGameThumbnail-CJZzQFb3.js";
|
|
2
|
+
function ge(t, e) {
|
|
3
|
+
He(t, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
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 != "undefined") {
|
|
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,355 +200,385 @@ if (typeof window != "undefined") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define =
|
|
203
|
+
customElements.define = t(customElements.define), import("./CasinoGameThumbnail-CJZzQFb3.js").then((e) => e.G).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
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 != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
223
|
+
}
|
|
224
|
+
function Se(t, e) {
|
|
225
|
+
return ee(2, arguments), U(t).getTime() - U(e).getTime();
|
|
226
|
+
}
|
|
227
|
+
function st(t, e) {
|
|
228
|
+
ee(2, arguments);
|
|
229
|
+
var a = U(t), n = U(e);
|
|
230
|
+
return a.getTime() > n.getTime();
|
|
231
|
+
}
|
|
232
|
+
function lt(t, e) {
|
|
233
|
+
ee(2, arguments);
|
|
234
|
+
var a = U(t), n = U(e);
|
|
235
|
+
return a.getTime() < n.getTime();
|
|
236
|
+
}
|
|
237
|
+
function it(t) {
|
|
238
|
+
Ye(t, "svelte-8vixmz", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
|
|
239
|
+
}
|
|
240
|
+
function be(t, e, a) {
|
|
241
|
+
const n = t.slice();
|
|
242
|
+
return n[53] = e[a], n;
|
|
243
|
+
}
|
|
244
|
+
function _e(t) {
|
|
245
|
+
let e, a = (
|
|
216
246
|
/*$_*/
|
|
217
|
-
|
|
247
|
+
t[21]("cancel") + ""
|
|
218
248
|
), n, r, l, s;
|
|
219
249
|
return {
|
|
220
250
|
c() {
|
|
221
|
-
e =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
var d;
|
|
467
|
-
e =
|
|
497
|
+
e = C("casino-game-thumbnail"), u(
|
|
468
498
|
e,
|
|
469
499
|
"endpoint",
|
|
470
500
|
/*endpoint*/
|
|
471
|
-
|
|
501
|
+
t[0]
|
|
472
502
|
), u(
|
|
473
503
|
e,
|
|
474
504
|
"session",
|
|
475
505
|
/*sessionID*/
|
|
476
|
-
|
|
506
|
+
t[19]
|
|
477
507
|
), u(
|
|
478
508
|
e,
|
|
479
509
|
"userid",
|
|
480
510
|
/*playerID*/
|
|
481
|
-
|
|
511
|
+
t[20]
|
|
482
512
|
), u(
|
|
483
513
|
e,
|
|
484
514
|
"favorites",
|
|
485
515
|
/*showfavorites*/
|
|
486
|
-
|
|
516
|
+
t[8]
|
|
487
517
|
), u(
|
|
488
518
|
e,
|
|
489
519
|
"lang",
|
|
490
520
|
/*lang*/
|
|
491
|
-
|
|
492
|
-
), u(e, "gamethumbnail",
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
((d =
|
|
499
|
-
|
|
521
|
+
t[1]
|
|
522
|
+
), u(e, "gamethumbnail", a = /*game*/
|
|
523
|
+
t[53].thumbnail), u(e, "gamename", n = /*game*/
|
|
524
|
+
t[53].name), u(e, "gamevendor", r = /*game*/
|
|
525
|
+
t[53].vendor.displayName), u(e, "gameLaunchUrl", l = /*game*/
|
|
526
|
+
t[53].launchUrl), u(e, "gameisnew", s = /*game*/
|
|
527
|
+
t[53].isNew), u(e, "gametag", i = /*game*/
|
|
528
|
+
((d = t[53].advancedTags) == null ? void 0 : d.length) > 0 && /*addGameTag*/
|
|
529
|
+
t[25](
|
|
500
530
|
/*game*/
|
|
501
|
-
|
|
531
|
+
t[53].advancedTags
|
|
502
532
|
)), u(e, "gamecellsize", c = /*game*/
|
|
503
|
-
|
|
504
|
-
|
|
533
|
+
t[53].cellSize), u(e, "gameid", m = /*game*/
|
|
534
|
+
t[53].id), u(
|
|
505
535
|
e,
|
|
506
536
|
"showgamename",
|
|
507
537
|
/*showgamename*/
|
|
508
|
-
|
|
538
|
+
t[6]
|
|
509
539
|
), u(e, "gamefunmode", h = /*game*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
540
|
+
t[53].hasFunMode), u(e, "gamefavorite", f = /*game*/
|
|
541
|
+
t[53].isFavorite), u(e, "livelobbyendpoint", w = /*game*/
|
|
542
|
+
t[53].details ? (
|
|
513
543
|
/*game*/
|
|
514
|
-
|
|
544
|
+
t[53].launchUrl
|
|
515
545
|
) : ""), u(
|
|
516
546
|
e,
|
|
517
547
|
"integratedgameframedesktop",
|
|
518
548
|
/*integratedgameframedesktop*/
|
|
519
|
-
|
|
549
|
+
t[4]
|
|
520
550
|
), u(
|
|
521
551
|
e,
|
|
522
552
|
"mbsource",
|
|
523
553
|
/*mbsource*/
|
|
524
|
-
|
|
554
|
+
t[11]
|
|
525
555
|
), u(
|
|
526
556
|
e,
|
|
527
557
|
"integratedgameframemobile",
|
|
528
558
|
/*integratedgameframemobile*/
|
|
529
|
-
|
|
559
|
+
t[5]
|
|
530
560
|
), u(
|
|
531
561
|
e,
|
|
532
562
|
"clientstyling",
|
|
533
563
|
/*clientstyling*/
|
|
534
|
-
|
|
564
|
+
t[2]
|
|
535
565
|
), u(
|
|
536
566
|
e,
|
|
537
567
|
"clientstylingurl",
|
|
538
568
|
/*clientstylingurl*/
|
|
539
|
-
|
|
569
|
+
t[3]
|
|
540
570
|
), u(
|
|
541
571
|
e,
|
|
542
572
|
"gamepagemodalurl",
|
|
543
573
|
/*gamepagemodalurl*/
|
|
544
|
-
|
|
574
|
+
t[7]
|
|
545
575
|
);
|
|
546
576
|
},
|
|
547
577
|
m(d, p) {
|
|
548
|
-
|
|
578
|
+
E(d, e, p);
|
|
549
579
|
},
|
|
550
580
|
p(d, p) {
|
|
551
|
-
var
|
|
581
|
+
var N;
|
|
552
582
|
p[0] & /*endpoint*/
|
|
553
583
|
1 && u(
|
|
554
584
|
e,
|
|
@@ -580,8 +610,8 @@ function ve(a) {
|
|
|
580
610
|
/*lang*/
|
|
581
611
|
d[1]
|
|
582
612
|
), p[0] & /*searchArray*/
|
|
583
|
-
32768 &&
|
|
584
|
-
d[53].thumbnail) && u(e, "gamethumbnail",
|
|
613
|
+
32768 && a !== (a = /*game*/
|
|
614
|
+
d[53].thumbnail) && u(e, "gamethumbnail", a), p[0] & /*searchArray*/
|
|
585
615
|
32768 && n !== (n = /*game*/
|
|
586
616
|
d[53].name) && u(e, "gamename", n), p[0] & /*searchArray*/
|
|
587
617
|
32768 && r !== (r = /*game*/
|
|
@@ -591,7 +621,7 @@ function ve(a) {
|
|
|
591
621
|
32768 && s !== (s = /*game*/
|
|
592
622
|
d[53].isNew) && u(e, "gameisnew", s), p[0] & /*searchArray*/
|
|
593
623
|
32768 && i !== (i = /*game*/
|
|
594
|
-
((
|
|
624
|
+
((N = d[53].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
|
|
595
625
|
d[25](
|
|
596
626
|
/*game*/
|
|
597
627
|
d[53].advancedTags
|
|
@@ -608,8 +638,8 @@ function ve(a) {
|
|
|
608
638
|
), p[0] & /*searchArray*/
|
|
609
639
|
32768 && h !== (h = /*game*/
|
|
610
640
|
d[53].hasFunMode) && u(e, "gamefunmode", h), p[0] & /*searchArray*/
|
|
611
|
-
32768 &&
|
|
612
|
-
d[53].isFavorite) && u(e, "gamefavorite",
|
|
641
|
+
32768 && f !== (f = /*game*/
|
|
642
|
+
d[53].isFavorite) && u(e, "gamefavorite", f), p[0] & /*searchArray*/
|
|
613
643
|
32768 && w !== (w = /*game*/
|
|
614
644
|
d[53].details ? (
|
|
615
645
|
/*game*/
|
|
@@ -653,227 +683,227 @@ function ve(a) {
|
|
|
653
683
|
);
|
|
654
684
|
},
|
|
655
685
|
d(d) {
|
|
656
|
-
d &&
|
|
686
|
+
d && j(e);
|
|
657
687
|
}
|
|
658
688
|
};
|
|
659
689
|
}
|
|
660
|
-
function
|
|
661
|
-
let e,
|
|
690
|
+
function Re(t) {
|
|
691
|
+
let e, a, n, r = (
|
|
662
692
|
/*$_*/
|
|
663
|
-
|
|
693
|
+
t[21]("notFound") + ""
|
|
664
694
|
), l, s, i, c = (
|
|
665
695
|
/*$_*/
|
|
666
|
-
|
|
667
|
-
), m, h,
|
|
696
|
+
t[21]("notFoundText") + ""
|
|
697
|
+
), m, h, f = (
|
|
668
698
|
/*notfoundicon*/
|
|
669
|
-
|
|
699
|
+
t[10] === "true" && Fe()
|
|
670
700
|
);
|
|
671
701
|
return {
|
|
672
702
|
c() {
|
|
673
|
-
e =
|
|
674
|
-
(
|
|
703
|
+
e = C("div"), f && f.c(), a = z(), n = C("p"), l = H(r), s = z(), i = C("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
704
|
+
(t[10] == "true" ? "WithIcon" : ""));
|
|
675
705
|
},
|
|
676
706
|
m(w, d) {
|
|
677
|
-
|
|
707
|
+
E(w, e, d), f && f.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
|
|
678
708
|
},
|
|
679
709
|
p(w, d) {
|
|
680
710
|
/*notfoundicon*/
|
|
681
|
-
w[10] === "true" ?
|
|
711
|
+
w[10] === "true" ? f || (f = Fe(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
|
|
682
712
|
2097152 && r !== (r = /*$_*/
|
|
683
|
-
w[21]("notFound") + "") &&
|
|
713
|
+
w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
|
|
684
714
|
2097152 && c !== (c = /*$_*/
|
|
685
|
-
w[21]("notFoundText") + "") &&
|
|
715
|
+
w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
|
|
686
716
|
1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
687
|
-
(w[10] == "true" ? "WithIcon" : "")) &&
|
|
717
|
+
(w[10] == "true" ? "WithIcon" : "")) && g(e, "class", h);
|
|
688
718
|
},
|
|
689
719
|
d(w) {
|
|
690
|
-
w &&
|
|
720
|
+
w && j(e), f && f.d();
|
|
691
721
|
}
|
|
692
722
|
};
|
|
693
723
|
}
|
|
694
|
-
function
|
|
724
|
+
function Fe(t) {
|
|
695
725
|
let e;
|
|
696
726
|
return {
|
|
697
727
|
c() {
|
|
698
|
-
e =
|
|
728
|
+
e = C("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', g(e, "class", "SearchErrorIcon");
|
|
699
729
|
},
|
|
700
|
-
m(
|
|
701
|
-
|
|
730
|
+
m(a, n) {
|
|
731
|
+
E(a, e, n);
|
|
702
732
|
},
|
|
703
|
-
d(
|
|
704
|
-
|
|
733
|
+
d(a) {
|
|
734
|
+
a && j(e);
|
|
705
735
|
}
|
|
706
736
|
};
|
|
707
737
|
}
|
|
708
|
-
function
|
|
709
|
-
let e,
|
|
738
|
+
function mt(t) {
|
|
739
|
+
let e, a, n, r, l, s, i, c, m, h, f, w, d, p, N, x, M, V, A, W, v = (
|
|
710
740
|
/*cancelbutton*/
|
|
711
|
-
|
|
741
|
+
t[9] === "true" && _e(t)
|
|
712
742
|
);
|
|
713
|
-
function G(
|
|
743
|
+
function G(_, T) {
|
|
714
744
|
return (
|
|
715
745
|
/*isLoading*/
|
|
716
|
-
|
|
746
|
+
_[18] ? ut : ct
|
|
717
747
|
);
|
|
718
748
|
}
|
|
719
|
-
let B = G(
|
|
749
|
+
let B = G(t), k = B(t);
|
|
720
750
|
return {
|
|
721
751
|
c() {
|
|
722
|
-
e =
|
|
723
|
-
|
|
724
|
-
(
|
|
725
|
-
(
|
|
726
|
-
(
|
|
727
|
-
|
|
752
|
+
e = C("div"), a = C("div"), n = C("div"), r = C("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), f = de("path"), d = z(), v && v.c(), N = z(), x = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
|
|
753
|
+
t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
|
|
754
|
+
(t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
755
|
+
(t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
|
|
756
|
+
(t[13] ? "" : "SearchAnimation")), g(a, "class", "SearchWrap"), g(x, "class", M = /*cancelbutton*/
|
|
757
|
+
t[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ae(
|
|
728
758
|
/*userAgent*/
|
|
729
|
-
|
|
759
|
+
t[22]
|
|
730
760
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
731
761
|
},
|
|
732
|
-
m(
|
|
733
|
-
|
|
762
|
+
m(_, T) {
|
|
763
|
+
E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
|
|
734
764
|
s,
|
|
735
765
|
/*searchValue*/
|
|
736
|
-
|
|
737
|
-
),
|
|
738
|
-
|
|
766
|
+
t[12]
|
|
767
|
+
), t[34](s), b(n, c), b(n, m), b(m, h), b(h, f), b(n, d), v && v.m(n, null), b(e, N), b(e, x), b(e, V), k.m(e, null), t[37](e), A || (W = [
|
|
768
|
+
Y(
|
|
739
769
|
s,
|
|
740
770
|
"input",
|
|
741
771
|
/*input_input_handler*/
|
|
742
|
-
|
|
772
|
+
t[33]
|
|
743
773
|
),
|
|
744
|
-
|
|
774
|
+
Y(
|
|
745
775
|
s,
|
|
746
776
|
"focus",
|
|
747
777
|
/*onFocus*/
|
|
748
|
-
|
|
778
|
+
t[23]
|
|
749
779
|
),
|
|
750
|
-
|
|
780
|
+
Y(
|
|
751
781
|
m,
|
|
752
782
|
"click",
|
|
753
783
|
/*click_handler*/
|
|
754
|
-
|
|
784
|
+
t[35]
|
|
755
785
|
),
|
|
756
|
-
|
|
757
|
-
|
|
786
|
+
Y(
|
|
787
|
+
x,
|
|
758
788
|
"click",
|
|
759
789
|
/*handleOverlay*/
|
|
760
|
-
|
|
790
|
+
t[24]
|
|
761
791
|
)
|
|
762
792
|
], A = !0);
|
|
763
793
|
},
|
|
764
|
-
p(
|
|
765
|
-
|
|
794
|
+
p(_, T) {
|
|
795
|
+
T[0] & /*$_*/
|
|
766
796
|
2097152 && i !== (i = /*$_*/
|
|
767
|
-
|
|
797
|
+
_[21]("placeHolderSearchGames")) && g(s, "placeholder", i), T[0] & /*searchValue*/
|
|
768
798
|
4096 && s.value !== /*searchValue*/
|
|
769
|
-
|
|
799
|
+
_[12] && he(
|
|
770
800
|
s,
|
|
771
801
|
/*searchValue*/
|
|
772
|
-
|
|
773
|
-
),
|
|
802
|
+
_[12]
|
|
803
|
+
), T[0] & /*cancelbutton, searchValue*/
|
|
774
804
|
4608 && w !== (w = "SearchClearButton " + /*cancelbutton*/
|
|
775
|
-
(
|
|
776
|
-
(
|
|
777
|
-
|
|
805
|
+
(_[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
806
|
+
(_[12].length != 0 ? "" : "NotVisible")) && g(m, "class", w), /*cancelbutton*/
|
|
807
|
+
_[9] === "true" ? v ? v.p(_, T) : (v = _e(_), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
|
|
778
808
|
8192 && p !== (p = "Search " + /*searchCancelled*/
|
|
779
|
-
(
|
|
809
|
+
(_[13] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
|
|
780
810
|
512 && M !== (M = /*cancelbutton*/
|
|
781
|
-
|
|
811
|
+
_[9] != "true" ? "OverlayCancel" : "") && g(x, "class", M), B === (B = G(_)) && k ? k.p(_, T) : (k.d(1), k = B(_), k && (k.c(), k.m(e, null)));
|
|
782
812
|
},
|
|
783
|
-
i:
|
|
784
|
-
o:
|
|
785
|
-
d(
|
|
786
|
-
|
|
813
|
+
i: ue,
|
|
814
|
+
o: ue,
|
|
815
|
+
d(_) {
|
|
816
|
+
_ && j(e), t[34](null), v && v.d(), k.d(), t[37](null), A = !1, Xe(W);
|
|
787
817
|
}
|
|
788
818
|
};
|
|
789
819
|
}
|
|
790
|
-
let
|
|
791
|
-
function
|
|
820
|
+
let ft = 50;
|
|
821
|
+
function gt(t, e, a) {
|
|
792
822
|
let n;
|
|
793
|
-
|
|
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:
|
|
795
|
-
const
|
|
796
|
-
fetch(
|
|
823
|
+
Ke(t, tt, (o) => a(21, n = o));
|
|
824
|
+
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, k = "", _, T = !0, J = !1, I = !1, P, X = !1, K, Q, re = [];
|
|
825
|
+
const Te = () => {
|
|
826
|
+
fetch(N).then((S) => S.json()).then((S) => {
|
|
797
827
|
Object.keys(S).forEach((y) => {
|
|
798
|
-
|
|
828
|
+
ge(y, S[y]);
|
|
799
829
|
});
|
|
800
830
|
}).catch((S) => {
|
|
801
831
|
console.log(S);
|
|
802
832
|
});
|
|
803
833
|
};
|
|
804
|
-
Object.keys(
|
|
805
|
-
|
|
834
|
+
Object.keys(pe).forEach((o) => {
|
|
835
|
+
ge(o, pe[o]);
|
|
806
836
|
});
|
|
807
|
-
const
|
|
808
|
-
o.data && o.data.type == "SearchedItemClicked" &&
|
|
809
|
-
},
|
|
810
|
-
if (
|
|
811
|
-
|
|
837
|
+
const oe = (o) => {
|
|
838
|
+
o.data && o.data.type == "SearchedItemClicked" && Ne(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(32, X = !0)), o.data.type == "CategoryChange" && $();
|
|
839
|
+
}, se = () => {
|
|
840
|
+
if (a(13, T = !1), a(17, J = !0), r && l && c && k.length < 2) {
|
|
841
|
+
a(15, v = []);
|
|
812
842
|
let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
|
|
813
843
|
o && (S = o.split(","));
|
|
814
|
-
let y = [],
|
|
844
|
+
let y = [], R = 0, F = S.length;
|
|
815
845
|
if (F > 0) {
|
|
816
|
-
for (
|
|
817
|
-
let
|
|
818
|
-
|
|
846
|
+
for (R = 0; R < F; R++) {
|
|
847
|
+
let D = new URL(`${r}/v1/casino/games/${S[R]}`);
|
|
848
|
+
D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), y.push(De(D, S[R]));
|
|
819
849
|
}
|
|
820
|
-
Promise.all(y).then((
|
|
821
|
-
|
|
822
|
-
return !!
|
|
823
|
-
}),
|
|
824
|
-
}).catch((
|
|
825
|
-
|
|
850
|
+
Promise.all(y).then((D) => {
|
|
851
|
+
D = D.filter(function(O) {
|
|
852
|
+
return !!O;
|
|
853
|
+
}), a(15, v = D.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
|
|
854
|
+
}).catch((D) => {
|
|
855
|
+
Z("searchError", "SearchWidget");
|
|
826
856
|
});
|
|
827
857
|
}
|
|
828
858
|
}
|
|
829
|
-
|
|
830
|
-
},
|
|
859
|
+
ce(J), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
|
|
860
|
+
}, Z = (o, S) => {
|
|
831
861
|
typeof gtag == "function" && gtag("event", o, { context: S });
|
|
832
|
-
},
|
|
833
|
-
M != "true" &&
|
|
834
|
-
},
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}).catch((
|
|
838
|
-
|
|
862
|
+
}, je = () => {
|
|
863
|
+
M != "true" && $();
|
|
864
|
+
}, Ee = (o) => new Promise((S, y) => {
|
|
865
|
+
a(18, I = !0), fetch(o.href).then((R) => R.json()).then((R) => {
|
|
866
|
+
a(18, I = !1), S(R);
|
|
867
|
+
}).catch((R) => {
|
|
868
|
+
a(18, I = !1), console.error(R), y(R);
|
|
839
869
|
});
|
|
840
|
-
}),
|
|
841
|
-
|
|
842
|
-
|
|
870
|
+
}), De = (o, S) => new Promise((y, R) => {
|
|
871
|
+
a(18, I = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, I = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
|
|
872
|
+
a(18, I = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
|
|
843
873
|
}).catch((F) => {
|
|
844
|
-
|
|
874
|
+
a(18, I = !1), console.error(F), R(F);
|
|
845
875
|
});
|
|
846
|
-
}),
|
|
847
|
-
const o = new URL(`${r}/v1/player/${
|
|
848
|
-
|
|
876
|
+
}), Ge = () => {
|
|
877
|
+
const o = new URL(`${r}/v1/player/${Q}/favorites/`);
|
|
878
|
+
a(18, I = !0);
|
|
849
879
|
let S = {
|
|
850
880
|
method: "GET",
|
|
851
|
-
headers: { "X-SessionID":
|
|
881
|
+
headers: { "X-SessionID": K }
|
|
852
882
|
};
|
|
853
883
|
fetch(o.href, S).then((y) => y.json()).then((y) => {
|
|
854
|
-
|
|
884
|
+
a(18, I = !1), re = y.items.map((R) => R.id);
|
|
855
885
|
});
|
|
856
|
-
},
|
|
857
|
-
|
|
858
|
-
},
|
|
886
|
+
}, Ie = () => {
|
|
887
|
+
a(32, X = !0), a(19, K = s), a(20, Q = i);
|
|
888
|
+
}, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
|
|
859
889
|
if ((o == null ? void 0 : o.length) === 0)
|
|
860
890
|
return "";
|
|
861
|
-
let S, y = 99999999999,
|
|
891
|
+
let S, y = 99999999999, R;
|
|
862
892
|
const F = new Date(Date.now());
|
|
863
|
-
return o.forEach((
|
|
864
|
-
const
|
|
865
|
-
|
|
893
|
+
return o.forEach((D, O) => {
|
|
894
|
+
const qe = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
|
|
895
|
+
Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), R = O), st(new Date(F), new Date(qe)) && lt(new Date(F), new Date(te)) && (S = o[R].name);
|
|
866
896
|
}), S;
|
|
867
|
-
},
|
|
897
|
+
}, Ne = (o) => {
|
|
868
898
|
if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
|
|
869
899
|
let S;
|
|
870
900
|
G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
|
|
871
901
|
}
|
|
872
|
-
},
|
|
873
|
-
|
|
874
|
-
},
|
|
875
|
-
|
|
876
|
-
},
|
|
902
|
+
}, $ = () => {
|
|
903
|
+
a(12, k = ""), a(13, T = !0), a(18, I = !1), a(15, v = []), a(17, J = !1), ce(J);
|
|
904
|
+
}, ie = () => {
|
|
905
|
+
a(12, k = ""), _.focus();
|
|
906
|
+
}, ce = (o) => {
|
|
877
907
|
window.postMessage(
|
|
878
908
|
{
|
|
879
909
|
type: o === !0 ? "searchActive" : "searchCancelled",
|
|
@@ -881,96 +911,96 @@ function ut(a, e, t) {
|
|
|
881
911
|
},
|
|
882
912
|
window.location.href
|
|
883
913
|
);
|
|
884
|
-
},
|
|
885
|
-
|
|
914
|
+
}, xe = () => {
|
|
915
|
+
ot(c);
|
|
886
916
|
};
|
|
887
|
-
|
|
888
|
-
window.removeEventListener("message",
|
|
917
|
+
Qe(() => (window.addEventListener("message", oe, !1), () => {
|
|
918
|
+
window.removeEventListener("message", oe);
|
|
889
919
|
}));
|
|
890
|
-
function
|
|
891
|
-
k = this.value,
|
|
920
|
+
function Pe() {
|
|
921
|
+
k = this.value, a(12, k);
|
|
892
922
|
}
|
|
893
|
-
function
|
|
894
|
-
|
|
895
|
-
|
|
923
|
+
function Me(o) {
|
|
924
|
+
me[o ? "unshift" : "push"](() => {
|
|
925
|
+
_ = o, a(16, _);
|
|
896
926
|
});
|
|
897
927
|
}
|
|
898
|
-
const
|
|
899
|
-
function
|
|
900
|
-
|
|
901
|
-
|
|
928
|
+
const Be = () => ie(), Ae = () => $();
|
|
929
|
+
function Oe(o) {
|
|
930
|
+
me[o ? "unshift" : "push"](() => {
|
|
931
|
+
P = o, a(14, P);
|
|
902
932
|
});
|
|
903
933
|
}
|
|
904
|
-
return
|
|
905
|
-
"endpoint" in o &&
|
|
906
|
-
},
|
|
907
|
-
if (
|
|
934
|
+
return t.$$set = (o) => {
|
|
935
|
+
"endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, f = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, N = o.translationurl), "showfavorites" in o && a(8, x = o.showfavorites), "cancelbutton" in o && a(9, M = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
|
|
936
|
+
}, t.$$.update = () => {
|
|
937
|
+
if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
|
908
938
|
268447747)
|
|
909
939
|
if (k.length >= 2) {
|
|
910
940
|
const o = new URL(`${r}/v1/casino/games`);
|
|
911
|
-
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform",
|
|
912
|
-
|
|
941
|
+
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Ee(o).then((S) => {
|
|
942
|
+
$e("game_search", { searchValue: k }), a(15, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
|
|
913
943
|
});
|
|
914
944
|
} else
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
2 && c &&
|
|
918
|
-
1 &&
|
|
919
|
-
1610612736 && s && i &&
|
|
920
|
-
256 |
|
|
921
|
-
2 &&
|
|
922
|
-
16388 && m &&
|
|
923
|
-
16392 && h &&
|
|
924
|
-
18432 &&
|
|
945
|
+
T || se();
|
|
946
|
+
t.$$.dirty[0] & /*lang*/
|
|
947
|
+
2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
|
|
948
|
+
1 && N && Te(), t.$$.dirty[0] & /*session, userid*/
|
|
949
|
+
1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
|
|
950
|
+
256 | t.$$.dirty[1] & /*isLoggedIn*/
|
|
951
|
+
2 && x && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
952
|
+
16388 && m && P && at(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
953
|
+
16392 && h && P && nt(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
954
|
+
18432 && P && rt(P, `${A}.Style`);
|
|
925
955
|
}, [
|
|
926
956
|
r,
|
|
927
957
|
c,
|
|
928
958
|
m,
|
|
929
959
|
h,
|
|
930
|
-
|
|
960
|
+
f,
|
|
931
961
|
w,
|
|
932
962
|
d,
|
|
933
963
|
p,
|
|
934
|
-
|
|
964
|
+
x,
|
|
935
965
|
M,
|
|
936
|
-
|
|
966
|
+
V,
|
|
937
967
|
A,
|
|
938
968
|
k,
|
|
939
|
-
|
|
940
|
-
|
|
969
|
+
T,
|
|
970
|
+
P,
|
|
941
971
|
v,
|
|
942
|
-
|
|
943
|
-
|
|
972
|
+
_,
|
|
973
|
+
J,
|
|
944
974
|
I,
|
|
945
|
-
X,
|
|
946
975
|
K,
|
|
976
|
+
Q,
|
|
947
977
|
n,
|
|
948
978
|
W,
|
|
949
|
-
re,
|
|
950
|
-
Fe,
|
|
951
|
-
ze,
|
|
952
|
-
Q,
|
|
953
979
|
se,
|
|
980
|
+
je,
|
|
981
|
+
ze,
|
|
982
|
+
$,
|
|
983
|
+
ie,
|
|
954
984
|
l,
|
|
955
985
|
s,
|
|
956
986
|
i,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
Ne,
|
|
960
|
-
xe,
|
|
987
|
+
N,
|
|
988
|
+
X,
|
|
961
989
|
Pe,
|
|
962
|
-
|
|
963
|
-
|
|
990
|
+
Me,
|
|
991
|
+
Be,
|
|
992
|
+
Ae,
|
|
993
|
+
Oe
|
|
964
994
|
];
|
|
965
995
|
}
|
|
966
|
-
class
|
|
996
|
+
class pt extends Ue {
|
|
967
997
|
constructor(e) {
|
|
968
|
-
super(),
|
|
998
|
+
super(), Ve(
|
|
969
999
|
this,
|
|
970
1000
|
e,
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
1001
|
+
gt,
|
|
1002
|
+
mt,
|
|
1003
|
+
Je,
|
|
974
1004
|
{
|
|
975
1005
|
endpoint: 0,
|
|
976
1006
|
datasource: 28,
|
|
@@ -989,7 +1019,7 @@ class ht extends Oe {
|
|
|
989
1019
|
notfoundicon: 10,
|
|
990
1020
|
mbsource: 11
|
|
991
1021
|
},
|
|
992
|
-
|
|
1022
|
+
it,
|
|
993
1023
|
[-1, -1]
|
|
994
1024
|
);
|
|
995
1025
|
}
|
|
@@ -1090,7 +1120,7 @@ class ht extends Oe {
|
|
|
1090
1120
|
this.$$set({ mbsource: e }), L();
|
|
1091
1121
|
}
|
|
1092
1122
|
}
|
|
1093
|
-
|
|
1123
|
+
Ze(pt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
|
|
1094
1124
|
export {
|
|
1095
|
-
|
|
1125
|
+
pt as default
|
|
1096
1126
|
};
|