@everymatrix/casino-search-nd 1.45.0 → 1.45.2
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CasinoGameThumbnailNd-CWTASeBg.cjs +43 -0
- package/components/CasinoGameThumbnailNd-HCOCEAwx.js +8715 -0
- package/components/CasinoSearchNd-Bpusljqi.cjs +1 -0
- package/components/CasinoSearchNd-Dkej7BDB.js +1076 -0
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/package.json +2 -2
- package/components/CasinoGameThumbnailNd-7H32R7MY.cjs +0 -43
- package/components/CasinoGameThumbnailNd-Cg1ZV2bZ.js +0 -8719
- package/components/CasinoSearchNd-D7G4gHiA.cjs +0 -1
- package/components/CasinoSearchNd-DeTDtCMz.js +0 -1080
@@ -0,0 +1,1076 @@
|
|
1
|
+
import { a as He, $ as qe, S as We, i as Oe, f as E, c as Ue, s as Ve, b as Je, e as y, d as x, g as le, h as g, j as ee, k as T, l as S, m as ie, n as J, o as ce, p as j, r as Ze, q as Ye, t as Ke, u as q, v as W, w as Q, x as ue, y as he, z as ye, A as Xe, B as d, C as Qe } from "./CasinoGameThumbnailNd-HCOCEAwx.js";
|
2
|
+
function de(a, e) {
|
3
|
+
He(a, e);
|
4
|
+
}
|
5
|
+
function $e(a) {
|
6
|
+
qe.set(a);
|
7
|
+
}
|
8
|
+
const me = {
|
9
|
+
en: {
|
10
|
+
recentSearch: "Recent search",
|
11
|
+
placeHolderSearchGames: "Search for Games",
|
12
|
+
loading: "Loading, please wait",
|
13
|
+
searchResult: "Search result",
|
14
|
+
cancel: "Cancel",
|
15
|
+
notFound: "Game not found!",
|
16
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
17
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
18
|
+
},
|
19
|
+
"zh-hk": {
|
20
|
+
recentSearch: "最近的搜索",
|
21
|
+
loading: "加载请稍候",
|
22
|
+
searchResult: "搜索结果",
|
23
|
+
cancel: "取消",
|
24
|
+
notFound: "找不到游戏!",
|
25
|
+
notFoundText: "请输入正确的游戏名称开始玩。",
|
26
|
+
noRecentSearches: "还没有最近的搜索。 搜索我们的任何游戏。"
|
27
|
+
},
|
28
|
+
de: {
|
29
|
+
recentSearch: "Letzte Suche",
|
30
|
+
placeHolderSearchGames: "Hier nach Spielen suchen",
|
31
|
+
loading: "Es lädt, bitte warten...",
|
32
|
+
searchResult: "Ergebnis suchen",
|
33
|
+
cancel: "Abbrechen",
|
34
|
+
notFound: "Spiel wurde nicht gefunden!",
|
35
|
+
notFoundText: "Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",
|
36
|
+
noRecentSearches: "Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"
|
37
|
+
},
|
38
|
+
it: {
|
39
|
+
recentSearch: "Recent search",
|
40
|
+
loading: "Loading, please wait",
|
41
|
+
searchResult: "Search result",
|
42
|
+
cancel: "Cancel",
|
43
|
+
notFound: "Game not found!",
|
44
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
45
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
46
|
+
},
|
47
|
+
fr: {
|
48
|
+
recentSearch: "Recherche récente",
|
49
|
+
placeHolderSearchGames: "Recherche de jeux de casino",
|
50
|
+
loading: "Chargement, veuillez patienter",
|
51
|
+
searchResult: "Résultat de la recherche",
|
52
|
+
cancel: "Annuler",
|
53
|
+
notFound: "Jeu non trouvé!",
|
54
|
+
notFoundText: "Veuillez saisir le nom correct du jeu pour commencer à jouer.",
|
55
|
+
noRecentSearches: "Pas encore de recherches récentes. Recherchez l'un de nos jeux."
|
56
|
+
},
|
57
|
+
es: {
|
58
|
+
recentSearch: "Busqueda reciente",
|
59
|
+
placeHolderSearchGames: "Buscar juegos",
|
60
|
+
loading: "Cargando",
|
61
|
+
searchResult: "Resultado de busqueda",
|
62
|
+
cancel: "Cancelar",
|
63
|
+
notFound: "Juego no encontrado!",
|
64
|
+
notFoundText: "Por favor escriba el nombre correcto del juego para empezar a jugar.",
|
65
|
+
noRecentSearches: "No hay búsquedas recientes. Busca cualquiera de nuestros juegos"
|
66
|
+
},
|
67
|
+
gr: {
|
68
|
+
recentSearch: "Recent search",
|
69
|
+
loading: "Loading, please wait",
|
70
|
+
searchResult: "Search result",
|
71
|
+
cancel: "Cancel",
|
72
|
+
notFound: "Game not found!",
|
73
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
74
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
75
|
+
},
|
76
|
+
tr: {
|
77
|
+
recentSearch: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
|
78
|
+
loading: "Kayıt olmak",
|
79
|
+
searchResult: "PARA YATIR",
|
80
|
+
cancel: "Sırala:",
|
81
|
+
notFound: "Hepsi",
|
82
|
+
notFoundText: "A-Z",
|
83
|
+
noRecentSearches: "En Yeni",
|
84
|
+
placeHolderSearchGames: "Oyun ara ..."
|
85
|
+
},
|
86
|
+
ru: {
|
87
|
+
recentSearch: "Recent search",
|
88
|
+
loading: "Loading, please wait",
|
89
|
+
searchResult: "Search result",
|
90
|
+
cancel: "Cancel",
|
91
|
+
notFound: "Game not found!",
|
92
|
+
notFoundText: "Please type the correct name of the game to start to play."
|
93
|
+
},
|
94
|
+
ro: {
|
95
|
+
recentSearch: "Cautari recente",
|
96
|
+
loading: "Se incarca, te rugam asteapta…",
|
97
|
+
searchResult: "Rezultat cautare",
|
98
|
+
cancel: "Anuleaza",
|
99
|
+
notFound: "Nu am gasit niciun rezultat!",
|
100
|
+
notFoundText: "Te rugam sa introduci corect numele jocului.",
|
101
|
+
noRecentSearches: "Nu sunt cautari recente. Cauta oricare din jocurile noastre.",
|
102
|
+
placeHolderSearchGames: "Căutați Jocuri"
|
103
|
+
},
|
104
|
+
hr: {
|
105
|
+
recentSearch: "Nedavna pretraga",
|
106
|
+
loading: "Učitavanje",
|
107
|
+
searchResult: "Rezultat pretrage",
|
108
|
+
cancel: "Otkaži",
|
109
|
+
notFound: "Igra nije pronađena!",
|
110
|
+
notFoundText: "Molimo upišite točan naziv igre kako biste započeli igrati.",
|
111
|
+
noRecentSearches: "Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",
|
112
|
+
placeHolderSearchGames: "Traži igre"
|
113
|
+
},
|
114
|
+
hu: {
|
115
|
+
recentSearch: "Recent search",
|
116
|
+
loading: "Loading, please wait",
|
117
|
+
searchResult: "Search result",
|
118
|
+
cancel: "Cancel",
|
119
|
+
notFound: "Game not found!",
|
120
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
121
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
122
|
+
},
|
123
|
+
pl: {
|
124
|
+
recentSearch: "Recent search",
|
125
|
+
loading: "Loading, please wait",
|
126
|
+
searchResult: "Search result",
|
127
|
+
cancel: "Cancel",
|
128
|
+
notFound: "Game not found!",
|
129
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
130
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
131
|
+
},
|
132
|
+
pt: {
|
133
|
+
recentSearch: "Recent search",
|
134
|
+
loading: "Loading, please wait",
|
135
|
+
searchResult: "Search result",
|
136
|
+
placeHolderSearchGames: "Pesquisar jogos",
|
137
|
+
cancel: "Cancel",
|
138
|
+
notFound: "Game not found!",
|
139
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
140
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
141
|
+
},
|
142
|
+
sl: {
|
143
|
+
recentSearch: "Recent search",
|
144
|
+
loading: "Loading, please wait",
|
145
|
+
searchResult: "Search result",
|
146
|
+
cancel: "Cancel",
|
147
|
+
notFound: "Game not found!",
|
148
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
149
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
150
|
+
},
|
151
|
+
sr: {
|
152
|
+
recentSearch: "Recent search",
|
153
|
+
loading: "Loading, please wait",
|
154
|
+
searchResult: "Search result",
|
155
|
+
cancel: "Cancel",
|
156
|
+
notFound: "Game not found!",
|
157
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
158
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
159
|
+
},
|
160
|
+
"es-mx": {
|
161
|
+
recentSearch: "Búsqueda reciente",
|
162
|
+
loading: "Cargando, por favor espera",
|
163
|
+
searchResult: "Resultado de la búsqueda",
|
164
|
+
placeHolderSearchGames: "Buscar juegos",
|
165
|
+
cancel: "Cancelar",
|
166
|
+
notFound: "¡Juego no encontrado!",
|
167
|
+
notFoundText: "Por favor, escribe el nombre correcto del juego para comenzar a jugar.",
|
168
|
+
noRecentSearches: "Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."
|
169
|
+
},
|
170
|
+
"pt-br": {
|
171
|
+
recentSearch: "Pesquisa recente",
|
172
|
+
loading: "Carregando, por favor aguarde",
|
173
|
+
searchResult: "Resultado da pesquisa",
|
174
|
+
placeHolderSearchGames: "Buscar jogos",
|
175
|
+
cancel: "Cancelar",
|
176
|
+
notFound: "Jogo não encontrado!",
|
177
|
+
notFoundText: "Por favor, digite o nome correto do jogo para começar a jogar.",
|
178
|
+
noRecentSearches: "Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."
|
179
|
+
}
|
180
|
+
};
|
181
|
+
if (typeof window != "undefined") {
|
182
|
+
let a = function(e) {
|
183
|
+
return function(...t) {
|
184
|
+
try {
|
185
|
+
return e.apply(this, t);
|
186
|
+
} catch (n) {
|
187
|
+
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"))
|
188
|
+
return !1;
|
189
|
+
throw n;
|
190
|
+
}
|
191
|
+
};
|
192
|
+
};
|
193
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-HCOCEAwx.js").then((e) => e.D).then(({ default: e }) => {
|
194
|
+
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
195
|
+
});
|
196
|
+
}
|
197
|
+
function et(a) {
|
198
|
+
Je(a, "svelte-nlsx85", "*,*::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 40px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emfe-w-casino-typography, var(--emfe-w-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;color:var(--emfe-w-color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emfe-w-color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-white, #FFF);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.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(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-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(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emfe-w-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:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.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}");
|
199
|
+
}
|
200
|
+
function fe(a, e, t) {
|
201
|
+
const n = a.slice();
|
202
|
+
return n[53] = e[t], n;
|
203
|
+
}
|
204
|
+
function ge(a) {
|
205
|
+
let e, t = (
|
206
|
+
/*$_*/
|
207
|
+
a[20]("cancel") + ""
|
208
|
+
), n, o, l, s;
|
209
|
+
return {
|
210
|
+
c() {
|
211
|
+
e = y("small"), n = q(t), g(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
|
212
|
+
(a[12] ? "NotVisible" : ""));
|
213
|
+
},
|
214
|
+
m(i, c) {
|
215
|
+
T(i, e, c), S(e, n), l || (s = J(
|
216
|
+
e,
|
217
|
+
"click",
|
218
|
+
/*click_handler_1*/
|
219
|
+
a[35]
|
220
|
+
), l = !0);
|
221
|
+
},
|
222
|
+
p(i, c) {
|
223
|
+
c[0] & /*$_*/
|
224
|
+
1048576 && t !== (t = /*$_*/
|
225
|
+
i[20]("cancel") + "") && W(n, t), c[0] & /*searchCancelled*/
|
226
|
+
4096 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
|
227
|
+
(i[12] ? "NotVisible" : "")) && g(e, "class", o);
|
228
|
+
},
|
229
|
+
d(i) {
|
230
|
+
i && j(e), l = !1, s();
|
231
|
+
}
|
232
|
+
};
|
233
|
+
}
|
234
|
+
function tt(a) {
|
235
|
+
let e, t, n, o;
|
236
|
+
function l(u, f) {
|
237
|
+
if (
|
238
|
+
/*searchActive*/
|
239
|
+
u[16] == !0 && /*searchValue*/
|
240
|
+
u[11].length < 2
|
241
|
+
) return rt;
|
242
|
+
if (
|
243
|
+
/*searchArray*/
|
244
|
+
u[14].length != 0
|
245
|
+
) return nt;
|
246
|
+
}
|
247
|
+
let s = l(a), i = s && s(a), c = (
|
248
|
+
/*searchCancelled*/
|
249
|
+
a[12] === !1 && we(a)
|
250
|
+
), m = (
|
251
|
+
/*searchValue*/
|
252
|
+
a[11].length >= 2 && /*searchArray*/
|
253
|
+
a[14].length == 0 && ve(a)
|
254
|
+
);
|
255
|
+
return {
|
256
|
+
c() {
|
257
|
+
i && i.c(), e = x(), t = y("div"), c && c.c(), n = x(), m && m.c(), g(t, "class", o = "SearchResultsContainer " + /*searchActive*/
|
258
|
+
(a[16] == !0 ? "" : "NotVisible"));
|
259
|
+
},
|
260
|
+
m(u, f) {
|
261
|
+
i && i.m(u, f), T(u, e, f), T(u, t, f), c && c.m(t, null), S(t, n), m && m.m(t, null);
|
262
|
+
},
|
263
|
+
p(u, f) {
|
264
|
+
s === (s = l(u)) && i ? i.p(u, f) : (i && i.d(1), i = s && s(u), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
265
|
+
u[12] === !1 ? c ? c.p(u, f) : (c = we(u), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
|
266
|
+
u[11].length >= 2 && /*searchArray*/
|
267
|
+
u[14].length == 0 ? m ? m.p(u, f) : (m = ve(u), m.c(), m.m(t, null)) : m && (m.d(1), m = null), f[0] & /*searchActive*/
|
268
|
+
65536 && o !== (o = "SearchResultsContainer " + /*searchActive*/
|
269
|
+
(u[16] == !0 ? "" : "NotVisible")) && g(t, "class", o);
|
270
|
+
},
|
271
|
+
d(u) {
|
272
|
+
u && (j(e), j(t)), i && i.d(u), c && c.d(), m && m.d();
|
273
|
+
}
|
274
|
+
};
|
275
|
+
}
|
276
|
+
function at(a) {
|
277
|
+
let e, t = (
|
278
|
+
/*$_*/
|
279
|
+
a[20]("loading") + ""
|
280
|
+
), n;
|
281
|
+
return {
|
282
|
+
c() {
|
283
|
+
e = y("p"), n = q(t), g(e, "class", "LoadingContent");
|
284
|
+
},
|
285
|
+
m(o, l) {
|
286
|
+
T(o, e, l), S(e, n);
|
287
|
+
},
|
288
|
+
p(o, l) {
|
289
|
+
l[0] & /*$_*/
|
290
|
+
1048576 && t !== (t = /*$_*/
|
291
|
+
o[20]("loading") + "") && W(n, t);
|
292
|
+
},
|
293
|
+
d(o) {
|
294
|
+
o && j(e);
|
295
|
+
}
|
296
|
+
};
|
297
|
+
}
|
298
|
+
function nt(a) {
|
299
|
+
let e, t = (
|
300
|
+
/*$_*/
|
301
|
+
a[20]("searchResult") + ""
|
302
|
+
), n;
|
303
|
+
return {
|
304
|
+
c() {
|
305
|
+
e = y("p"), n = q(t), g(e, "class", "SearchMessage");
|
306
|
+
},
|
307
|
+
m(o, l) {
|
308
|
+
T(o, e, l), S(e, n);
|
309
|
+
},
|
310
|
+
p(o, l) {
|
311
|
+
l[0] & /*$_*/
|
312
|
+
1048576 && t !== (t = /*$_*/
|
313
|
+
o[20]("searchResult") + "") && W(n, t);
|
314
|
+
},
|
315
|
+
d(o) {
|
316
|
+
o && j(e);
|
317
|
+
}
|
318
|
+
};
|
319
|
+
}
|
320
|
+
function rt(a) {
|
321
|
+
let e, t, n = (
|
322
|
+
/*searchArray*/
|
323
|
+
a[14].length !== 0 && pe(a)
|
324
|
+
), o = (
|
325
|
+
/*searchArray*/
|
326
|
+
a[14].length == 0 && _e(a)
|
327
|
+
);
|
328
|
+
return {
|
329
|
+
c() {
|
330
|
+
n && n.c(), e = x(), o && o.c(), t = ye();
|
331
|
+
},
|
332
|
+
m(l, s) {
|
333
|
+
n && n.m(l, s), T(l, e, s), o && o.m(l, s), T(l, t, s);
|
334
|
+
},
|
335
|
+
p(l, s) {
|
336
|
+
/*searchArray*/
|
337
|
+
l[14].length !== 0 ? n ? n.p(l, s) : (n = pe(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
|
338
|
+
l[14].length == 0 ? o ? o.p(l, s) : (o = _e(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
339
|
+
},
|
340
|
+
d(l) {
|
341
|
+
l && (j(e), j(t)), n && n.d(l), o && o.d(l);
|
342
|
+
}
|
343
|
+
};
|
344
|
+
}
|
345
|
+
function pe(a) {
|
346
|
+
let e, t = (
|
347
|
+
/*$_*/
|
348
|
+
a[20]("recentSearch") + ""
|
349
|
+
), n;
|
350
|
+
return {
|
351
|
+
c() {
|
352
|
+
e = y("p"), n = q(t), g(e, "class", "SearchMessage");
|
353
|
+
},
|
354
|
+
m(o, l) {
|
355
|
+
T(o, e, l), S(e, n);
|
356
|
+
},
|
357
|
+
p(o, l) {
|
358
|
+
l[0] & /*$_*/
|
359
|
+
1048576 && t !== (t = /*$_*/
|
360
|
+
o[20]("recentSearch") + "") && W(n, t);
|
361
|
+
},
|
362
|
+
d(o) {
|
363
|
+
o && j(e);
|
364
|
+
}
|
365
|
+
};
|
366
|
+
}
|
367
|
+
function _e(a) {
|
368
|
+
let e, t, n, o = (
|
369
|
+
/*$_*/
|
370
|
+
a[20]("noRecentSearches") + ""
|
371
|
+
), l, s, i = (
|
372
|
+
/*notfoundicon*/
|
373
|
+
a[10] === "true" && Se()
|
374
|
+
);
|
375
|
+
return {
|
376
|
+
c() {
|
377
|
+
e = y("div"), i && i.c(), t = x(), n = y("p"), l = q(o), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
378
|
+
(a[10] == "true" ? "WithIcon" : ""));
|
379
|
+
},
|
380
|
+
m(c, m) {
|
381
|
+
T(c, e, m), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
|
382
|
+
},
|
383
|
+
p(c, m) {
|
384
|
+
/*notfoundicon*/
|
385
|
+
c[10] === "true" ? i || (i = Se(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
|
386
|
+
1048576 && o !== (o = /*$_*/
|
387
|
+
c[20]("noRecentSearches") + "") && W(l, o), m[0] & /*notfoundicon*/
|
388
|
+
1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
389
|
+
(c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
|
390
|
+
},
|
391
|
+
d(c) {
|
392
|
+
c && j(e), i && i.d();
|
393
|
+
}
|
394
|
+
};
|
395
|
+
}
|
396
|
+
function Se(a) {
|
397
|
+
let e;
|
398
|
+
return {
|
399
|
+
c() {
|
400
|
+
e = y("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(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-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(--emfe-w-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(--emfe-w-color-contrast, #131313)"></path></svg>', g(e, "class", "SearchErrorIcon");
|
401
|
+
},
|
402
|
+
m(t, n) {
|
403
|
+
T(t, e, n);
|
404
|
+
},
|
405
|
+
d(t) {
|
406
|
+
t && j(e);
|
407
|
+
}
|
408
|
+
};
|
409
|
+
}
|
410
|
+
function we(a) {
|
411
|
+
let e, t = he(
|
412
|
+
/*searchArray*/
|
413
|
+
a[14]
|
414
|
+
), n = [];
|
415
|
+
for (let o = 0; o < t.length; o += 1)
|
416
|
+
n[o] = be(fe(a, t, o));
|
417
|
+
return {
|
418
|
+
c() {
|
419
|
+
for (let o = 0; o < n.length; o += 1)
|
420
|
+
n[o].c();
|
421
|
+
e = ye();
|
422
|
+
},
|
423
|
+
m(o, l) {
|
424
|
+
for (let s = 0; s < n.length; s += 1)
|
425
|
+
n[s] && n[s].m(o, l);
|
426
|
+
T(o, e, l);
|
427
|
+
},
|
428
|
+
p(o, l) {
|
429
|
+
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
430
|
+
17580543) {
|
431
|
+
t = he(
|
432
|
+
/*searchArray*/
|
433
|
+
o[14]
|
434
|
+
);
|
435
|
+
let s;
|
436
|
+
for (s = 0; s < t.length; s += 1) {
|
437
|
+
const i = fe(o, t, s);
|
438
|
+
n[s] ? n[s].p(i, l) : (n[s] = be(i), n[s].c(), n[s].m(e.parentNode, e));
|
439
|
+
}
|
440
|
+
for (; s < n.length; s += 1)
|
441
|
+
n[s].d(1);
|
442
|
+
n.length = t.length;
|
443
|
+
}
|
444
|
+
},
|
445
|
+
d(o) {
|
446
|
+
o && j(e), Xe(n, o);
|
447
|
+
}
|
448
|
+
};
|
449
|
+
}
|
450
|
+
function be(a) {
|
451
|
+
let e, t, n, o, l, s, i, c, m, u, f, k;
|
452
|
+
return {
|
453
|
+
c() {
|
454
|
+
var h;
|
455
|
+
e = y("casino-game-thumbnail-nd"), d(
|
456
|
+
e,
|
457
|
+
"endpoint",
|
458
|
+
/*endpoint*/
|
459
|
+
a[0]
|
460
|
+
), d(
|
461
|
+
e,
|
462
|
+
"session",
|
463
|
+
/*sessionID*/
|
464
|
+
a[18]
|
465
|
+
), d(
|
466
|
+
e,
|
467
|
+
"userid",
|
468
|
+
/*playerID*/
|
469
|
+
a[19]
|
470
|
+
), d(
|
471
|
+
e,
|
472
|
+
"favorites",
|
473
|
+
/*showfavorites*/
|
474
|
+
a[8]
|
475
|
+
), d(
|
476
|
+
e,
|
477
|
+
"lang",
|
478
|
+
/*lang*/
|
479
|
+
a[1]
|
480
|
+
), d(e, "gamethumbnail", t = /*game*/
|
481
|
+
a[53].thumbnail), d(e, "gamename", n = /*game*/
|
482
|
+
a[53].name), d(e, "gamevendor", o = /*game*/
|
483
|
+
a[53].vendor.name), d(e, "gameLaunchUrl", l = /*game*/
|
484
|
+
a[53].launchUrl), d(e, "gameisnew", s = /*game*/
|
485
|
+
a[53].isNew), d(e, "gametag", i = /*game*/
|
486
|
+
((h = a[53].advancedTags) == null ? void 0 : h.length) > 0 && /*addGameTag*/
|
487
|
+
a[24](
|
488
|
+
/*game*/
|
489
|
+
a[53].advancedTags
|
490
|
+
)), d(e, "gamecellsize", c = /*game*/
|
491
|
+
a[53].cellSize), d(e, "gameid", m = /*game*/
|
492
|
+
a[53].id), d(
|
493
|
+
e,
|
494
|
+
"showgamename",
|
495
|
+
/*showgamename*/
|
496
|
+
a[6]
|
497
|
+
), d(e, "gamefunmode", u = /*game*/
|
498
|
+
a[53].hasFunMode), d(e, "gamefavorite", f = /*game*/
|
499
|
+
a[53].isFavorite), d(e, "livelobbyendpoint", k = /*game*/
|
500
|
+
a[53].details ? (
|
501
|
+
/*game*/
|
502
|
+
a[53].launchUrl
|
503
|
+
) : ""), d(
|
504
|
+
e,
|
505
|
+
"integratedgameframedesktop",
|
506
|
+
/*integratedgameframedesktop*/
|
507
|
+
a[4]
|
508
|
+
), d(
|
509
|
+
e,
|
510
|
+
"integratedgameframemobile",
|
511
|
+
/*integratedgameframemobile*/
|
512
|
+
a[5]
|
513
|
+
), d(
|
514
|
+
e,
|
515
|
+
"clientstyling",
|
516
|
+
/*clientstyling*/
|
517
|
+
a[2]
|
518
|
+
), d(
|
519
|
+
e,
|
520
|
+
"clientstylingurl",
|
521
|
+
/*clientstylingurl*/
|
522
|
+
a[3]
|
523
|
+
), d(
|
524
|
+
e,
|
525
|
+
"gamepagemodalurl",
|
526
|
+
/*gamepagemodalurl*/
|
527
|
+
a[7]
|
528
|
+
);
|
529
|
+
},
|
530
|
+
m(h, _) {
|
531
|
+
T(h, e, _);
|
532
|
+
},
|
533
|
+
p(h, _) {
|
534
|
+
var N;
|
535
|
+
_[0] & /*endpoint*/
|
536
|
+
1 && d(
|
537
|
+
e,
|
538
|
+
"endpoint",
|
539
|
+
/*endpoint*/
|
540
|
+
h[0]
|
541
|
+
), _[0] & /*sessionID*/
|
542
|
+
262144 && d(
|
543
|
+
e,
|
544
|
+
"session",
|
545
|
+
/*sessionID*/
|
546
|
+
h[18]
|
547
|
+
), _[0] & /*playerID*/
|
548
|
+
524288 && d(
|
549
|
+
e,
|
550
|
+
"userid",
|
551
|
+
/*playerID*/
|
552
|
+
h[19]
|
553
|
+
), _[0] & /*showfavorites*/
|
554
|
+
256 && d(
|
555
|
+
e,
|
556
|
+
"favorites",
|
557
|
+
/*showfavorites*/
|
558
|
+
h[8]
|
559
|
+
), _[0] & /*lang*/
|
560
|
+
2 && d(
|
561
|
+
e,
|
562
|
+
"lang",
|
563
|
+
/*lang*/
|
564
|
+
h[1]
|
565
|
+
), _[0] & /*searchArray*/
|
566
|
+
16384 && t !== (t = /*game*/
|
567
|
+
h[53].thumbnail) && d(e, "gamethumbnail", t), _[0] & /*searchArray*/
|
568
|
+
16384 && n !== (n = /*game*/
|
569
|
+
h[53].name) && d(e, "gamename", n), _[0] & /*searchArray*/
|
570
|
+
16384 && o !== (o = /*game*/
|
571
|
+
h[53].vendor.name) && d(e, "gamevendor", o), _[0] & /*searchArray*/
|
572
|
+
16384 && l !== (l = /*game*/
|
573
|
+
h[53].launchUrl) && d(e, "gameLaunchUrl", l), _[0] & /*searchArray*/
|
574
|
+
16384 && s !== (s = /*game*/
|
575
|
+
h[53].isNew) && d(e, "gameisnew", s), _[0] & /*searchArray*/
|
576
|
+
16384 && i !== (i = /*game*/
|
577
|
+
((N = h[53].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
|
578
|
+
h[24](
|
579
|
+
/*game*/
|
580
|
+
h[53].advancedTags
|
581
|
+
)) && d(e, "gametag", i), _[0] & /*searchArray*/
|
582
|
+
16384 && c !== (c = /*game*/
|
583
|
+
h[53].cellSize) && d(e, "gamecellsize", c), _[0] & /*searchArray*/
|
584
|
+
16384 && m !== (m = /*game*/
|
585
|
+
h[53].id) && d(e, "gameid", m), _[0] & /*showgamename*/
|
586
|
+
64 && d(
|
587
|
+
e,
|
588
|
+
"showgamename",
|
589
|
+
/*showgamename*/
|
590
|
+
h[6]
|
591
|
+
), _[0] & /*searchArray*/
|
592
|
+
16384 && u !== (u = /*game*/
|
593
|
+
h[53].hasFunMode) && d(e, "gamefunmode", u), _[0] & /*searchArray*/
|
594
|
+
16384 && f !== (f = /*game*/
|
595
|
+
h[53].isFavorite) && d(e, "gamefavorite", f), _[0] & /*searchArray*/
|
596
|
+
16384 && k !== (k = /*game*/
|
597
|
+
h[53].details ? (
|
598
|
+
/*game*/
|
599
|
+
h[53].launchUrl
|
600
|
+
) : "") && d(e, "livelobbyendpoint", k), _[0] & /*integratedgameframedesktop*/
|
601
|
+
16 && d(
|
602
|
+
e,
|
603
|
+
"integratedgameframedesktop",
|
604
|
+
/*integratedgameframedesktop*/
|
605
|
+
h[4]
|
606
|
+
), _[0] & /*integratedgameframemobile*/
|
607
|
+
32 && d(
|
608
|
+
e,
|
609
|
+
"integratedgameframemobile",
|
610
|
+
/*integratedgameframemobile*/
|
611
|
+
h[5]
|
612
|
+
), _[0] & /*clientstyling*/
|
613
|
+
4 && d(
|
614
|
+
e,
|
615
|
+
"clientstyling",
|
616
|
+
/*clientstyling*/
|
617
|
+
h[2]
|
618
|
+
), _[0] & /*clientstylingurl*/
|
619
|
+
8 && d(
|
620
|
+
e,
|
621
|
+
"clientstylingurl",
|
622
|
+
/*clientstylingurl*/
|
623
|
+
h[3]
|
624
|
+
), _[0] & /*gamepagemodalurl*/
|
625
|
+
128 && d(
|
626
|
+
e,
|
627
|
+
"gamepagemodalurl",
|
628
|
+
/*gamepagemodalurl*/
|
629
|
+
h[7]
|
630
|
+
);
|
631
|
+
},
|
632
|
+
d(h) {
|
633
|
+
h && j(e);
|
634
|
+
}
|
635
|
+
};
|
636
|
+
}
|
637
|
+
function ve(a) {
|
638
|
+
let e, t, n, o = (
|
639
|
+
/*$_*/
|
640
|
+
a[20]("notFound") + ""
|
641
|
+
), l, s, i, c = (
|
642
|
+
/*$_*/
|
643
|
+
a[20]("notFoundText") + ""
|
644
|
+
), m, u, f = (
|
645
|
+
/*notfoundicon*/
|
646
|
+
a[10] === "true" && ke()
|
647
|
+
);
|
648
|
+
return {
|
649
|
+
c() {
|
650
|
+
e = y("div"), f && f.c(), t = x(), n = y("p"), l = q(o), s = x(), i = y("p"), m = q(c), g(n, "class", "SearchMessage"), g(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
|
651
|
+
(a[10] == "true" ? "WithIcon" : ""));
|
652
|
+
},
|
653
|
+
m(k, h) {
|
654
|
+
T(k, e, h), f && f.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, m);
|
655
|
+
},
|
656
|
+
p(k, h) {
|
657
|
+
/*notfoundicon*/
|
658
|
+
k[10] === "true" ? f || (f = ke(), f.c(), f.m(e, t)) : f && (f.d(1), f = null), h[0] & /*$_*/
|
659
|
+
1048576 && o !== (o = /*$_*/
|
660
|
+
k[20]("notFound") + "") && W(l, o), h[0] & /*$_*/
|
661
|
+
1048576 && c !== (c = /*$_*/
|
662
|
+
k[20]("notFoundText") + "") && W(m, c), h[0] & /*notfoundicon*/
|
663
|
+
1024 && u !== (u = "ResultsContainerError " + /*notfoundicon*/
|
664
|
+
(k[10] == "true" ? "WithIcon" : "")) && g(e, "class", u);
|
665
|
+
},
|
666
|
+
d(k) {
|
667
|
+
k && j(e), f && f.d();
|
668
|
+
}
|
669
|
+
};
|
670
|
+
}
|
671
|
+
function ke(a) {
|
672
|
+
let e;
|
673
|
+
return {
|
674
|
+
c() {
|
675
|
+
e = y("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(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-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(--emfe-w-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(--emfe-w-color-contrast, #131313)"></path></svg>', g(e, "class", "SearchErrorIcon");
|
676
|
+
},
|
677
|
+
m(t, n) {
|
678
|
+
T(t, e, n);
|
679
|
+
},
|
680
|
+
d(t) {
|
681
|
+
t && j(e);
|
682
|
+
}
|
683
|
+
};
|
684
|
+
}
|
685
|
+
function ot(a) {
|
686
|
+
let e, t, n, o, l, s, i, c, m, u, f, k, h, _, N, P, D, U, A, M, v = (
|
687
|
+
/*cancelbutton*/
|
688
|
+
a[9] === "true" && ge(a)
|
689
|
+
);
|
690
|
+
function O(b, F) {
|
691
|
+
return (
|
692
|
+
/*isLoading*/
|
693
|
+
b[17] ? at : tt
|
694
|
+
);
|
695
|
+
}
|
696
|
+
let I = O(a), L = I(a);
|
697
|
+
return {
|
698
|
+
c() {
|
699
|
+
e = y("div"), t = y("div"), n = y("div"), o = y("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = x(), s = y("input"), c = x(), m = y("span"), u = le("svg"), f = le("path"), h = x(), v && v.c(), N = x(), P = y("div"), U = x(), L.c(), g(o, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
|
700
|
+
a[20]("placeHolderSearchGames")), g(s, "maxlength", st), 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(u, "width", "11"), g(u, "height", "11"), g(u, "fill", "none"), g(u, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", k = "SearchClearButton " + /*cancelbutton*/
|
701
|
+
(a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
702
|
+
(a[11].length != 0 ? "" : "NotVisible")), g(n, "class", _ = "Search " + /*searchCancelled*/
|
703
|
+
(a[12] ? "" : "SearchAnimation")), g(t, "class", "SearchWrap"), g(P, "class", D = /*cancelbutton*/
|
704
|
+
a[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ee(
|
705
|
+
/*userAgent*/
|
706
|
+
a[21]
|
707
|
+
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
708
|
+
},
|
709
|
+
m(b, F) {
|
710
|
+
T(b, e, F), S(e, t), S(t, n), S(n, o), S(n, l), S(n, s), ie(
|
711
|
+
s,
|
712
|
+
/*searchValue*/
|
713
|
+
a[11]
|
714
|
+
), a[33](s), S(n, c), S(n, m), S(m, u), S(u, f), S(n, h), v && v.m(n, null), S(e, N), S(e, P), S(e, U), L.m(e, null), a[36](e), A || (M = [
|
715
|
+
J(
|
716
|
+
s,
|
717
|
+
"input",
|
718
|
+
/*input_input_handler*/
|
719
|
+
a[32]
|
720
|
+
),
|
721
|
+
J(
|
722
|
+
s,
|
723
|
+
"focus",
|
724
|
+
/*onFocus*/
|
725
|
+
a[22]
|
726
|
+
),
|
727
|
+
J(
|
728
|
+
m,
|
729
|
+
"click",
|
730
|
+
/*click_handler*/
|
731
|
+
a[34]
|
732
|
+
),
|
733
|
+
J(
|
734
|
+
P,
|
735
|
+
"click",
|
736
|
+
/*handleOverlay*/
|
737
|
+
a[23]
|
738
|
+
)
|
739
|
+
], A = !0);
|
740
|
+
},
|
741
|
+
p(b, F) {
|
742
|
+
F[0] & /*$_*/
|
743
|
+
1048576 && i !== (i = /*$_*/
|
744
|
+
b[20]("placeHolderSearchGames")) && g(s, "placeholder", i), F[0] & /*searchValue*/
|
745
|
+
2048 && s.value !== /*searchValue*/
|
746
|
+
b[11] && ie(
|
747
|
+
s,
|
748
|
+
/*searchValue*/
|
749
|
+
b[11]
|
750
|
+
), F[0] & /*cancelbutton, searchValue*/
|
751
|
+
2560 && k !== (k = "SearchClearButton " + /*cancelbutton*/
|
752
|
+
(b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
753
|
+
(b[11].length != 0 ? "" : "NotVisible")) && g(m, "class", k), /*cancelbutton*/
|
754
|
+
b[9] === "true" ? v ? v.p(b, F) : (v = ge(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), F[0] & /*searchCancelled*/
|
755
|
+
4096 && _ !== (_ = "Search " + /*searchCancelled*/
|
756
|
+
(b[12] ? "" : "SearchAnimation")) && g(n, "class", _), F[0] & /*cancelbutton*/
|
757
|
+
512 && D !== (D = /*cancelbutton*/
|
758
|
+
b[9] != "true" ? "OverlayCancel" : "") && g(P, "class", D), I === (I = O(b)) && L ? L.p(b, F) : (L.d(1), L = I(b), L && (L.c(), L.m(e, null)));
|
759
|
+
},
|
760
|
+
i: ce,
|
761
|
+
o: ce,
|
762
|
+
d(b) {
|
763
|
+
b && j(e), a[33](null), v && v.d(), L.d(), a[36](null), A = !1, Ze(M);
|
764
|
+
}
|
765
|
+
};
|
766
|
+
}
|
767
|
+
let st = 50;
|
768
|
+
function lt(a, e, t) {
|
769
|
+
let n;
|
770
|
+
Ye(a, Qe, (r) => t(20, n = r));
|
771
|
+
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, A = window.navigator.userAgent, M = [], v = [], O = {}, I = "", L, b = !0, F = !1, G = !1, B, Z = !1, Y, K, te = [];
|
772
|
+
const Re = () => {
|
773
|
+
fetch(N).then((p) => p.json()).then((p) => {
|
774
|
+
Object.keys(p).forEach((w) => {
|
775
|
+
de(w, p[w]);
|
776
|
+
});
|
777
|
+
}).catch((p) => {
|
778
|
+
console.log(p);
|
779
|
+
});
|
780
|
+
};
|
781
|
+
Object.keys(me).forEach((r) => {
|
782
|
+
de(r, me[r]);
|
783
|
+
});
|
784
|
+
const ae = (r) => {
|
785
|
+
r.data && r.data.type == "SearchedItemClicked" && Ie(r.data.gameId), r.data.type == "UserSessionID" && (t(18, Y = r.data.session), t(19, K = r.data.userid), t(31, Z = !0)), r.data.type == "CategoryChange" && X();
|
786
|
+
}, ne = () => {
|
787
|
+
if (t(12, b = !1), t(16, F = !0), o && l && c && I.length < 2) {
|
788
|
+
t(14, M = []);
|
789
|
+
let r = localStorage.getItem("searchedGamesWds_casino"), p = [];
|
790
|
+
r && (p = r.split(","));
|
791
|
+
let w = [], R = 0, C = p.length;
|
792
|
+
if (C > 0) {
|
793
|
+
for (R = 0; R < C; R++) {
|
794
|
+
let z = new URL(`${o}/v1/casino/games/${p[R]}`);
|
795
|
+
z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", ee(A)), w.push(Le(z, p[R]));
|
796
|
+
}
|
797
|
+
Promise.all(w).then((z) => {
|
798
|
+
z = z.filter(function(H) {
|
799
|
+
return !!H;
|
800
|
+
}), t(14, M = z.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
|
801
|
+
}).catch((z) => {
|
802
|
+
V("searchError", "SearchWidget");
|
803
|
+
});
|
804
|
+
}
|
805
|
+
}
|
806
|
+
se(F), V("searchAttempt", "SearchWidget"), V("SearchInitialized", "SearchWidget");
|
807
|
+
}, V = (r, p) => {
|
808
|
+
typeof gtag == "function" && gtag("event", r, { context: p });
|
809
|
+
}, Ce = () => {
|
810
|
+
D != "true" && X();
|
811
|
+
}, Fe = (r) => new Promise((p, w) => {
|
812
|
+
t(17, G = !0), fetch(r.href).then((R) => R.json()).then((R) => {
|
813
|
+
t(17, G = !1), p(R);
|
814
|
+
}).catch((R) => {
|
815
|
+
t(17, G = !1), console.error(R), w(R);
|
816
|
+
});
|
817
|
+
}), Le = (r, p) => new Promise((w, R) => {
|
818
|
+
t(17, G = !0), p && Object.keys(O).indexOf(p) >= 0 ? (t(17, G = !1), w(O[p])) : fetch(r).then((C) => C.json()).then((C) => {
|
819
|
+
t(17, G = !1), C.error || (O[C[0].gameId] = C[0]), w(C[0]);
|
820
|
+
}).catch((C) => {
|
821
|
+
t(17, G = !1), console.error(C), R(C);
|
822
|
+
});
|
823
|
+
}), Ee = () => {
|
824
|
+
const r = new URL(`${o}/v1/player/${K}/favorites/`);
|
825
|
+
t(17, G = !0);
|
826
|
+
let p = {
|
827
|
+
method: "GET",
|
828
|
+
headers: { "X-SessionID": Y }
|
829
|
+
};
|
830
|
+
fetch(r.href, p).then((w) => w.json()).then((w) => {
|
831
|
+
t(17, G = !1), te = w.items.map((R) => R.id);
|
832
|
+
});
|
833
|
+
}, Te = () => {
|
834
|
+
t(31, Z = !0), t(18, Y = s), t(19, K = i);
|
835
|
+
}, re = (r) => te.findIndex((p) => p == r) !== -1, je = (r) => {
|
836
|
+
if ((r == null ? void 0 : r.length) === 0) return "";
|
837
|
+
let p, w = 99999999999, R;
|
838
|
+
const C = new Date(Date.now());
|
839
|
+
return r.forEach((z, H) => {
|
840
|
+
const Be = new Date(z.schedules[0].startTime), $ = new Date(z.schedules[0].endTime);
|
841
|
+
Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(Be) && Q(C).isBefore($) && (p = r[R].name);
|
842
|
+
}), p;
|
843
|
+
}, Ie = (r) => {
|
844
|
+
if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(r) === -1) {
|
845
|
+
let p;
|
846
|
+
v.unshift(r), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
|
847
|
+
}
|
848
|
+
}, X = () => {
|
849
|
+
t(11, I = ""), t(12, b = !0), t(17, G = !1), t(14, M = []), t(16, F = !1), se(F);
|
850
|
+
}, oe = () => {
|
851
|
+
t(11, I = ""), L.focus();
|
852
|
+
}, se = (r) => {
|
853
|
+
window.postMessage(
|
854
|
+
{
|
855
|
+
type: r === !0 ? "searchActive" : "searchCancelled",
|
856
|
+
searchStatus: r
|
857
|
+
},
|
858
|
+
window.location.href
|
859
|
+
);
|
860
|
+
}, ze = () => {
|
861
|
+
$e(c);
|
862
|
+
}, Ge = () => {
|
863
|
+
let r = document.createElement("style");
|
864
|
+
r.innerHTML = m, B.appendChild(r);
|
865
|
+
}, xe = () => {
|
866
|
+
let r = new URL(u), p = document.createElement("style");
|
867
|
+
fetch(r.href).then((w) => w.text()).then((w) => {
|
868
|
+
p.innerHTML = w, setTimeout(
|
869
|
+
() => {
|
870
|
+
B.appendChild(p);
|
871
|
+
},
|
872
|
+
1
|
873
|
+
);
|
874
|
+
});
|
875
|
+
};
|
876
|
+
Ke(() => (window.addEventListener("message", ae, !1), () => {
|
877
|
+
window.removeEventListener("message", ae);
|
878
|
+
}));
|
879
|
+
function Ne() {
|
880
|
+
I = this.value, t(11, I);
|
881
|
+
}
|
882
|
+
function Pe(r) {
|
883
|
+
ue[r ? "unshift" : "push"](() => {
|
884
|
+
L = r, t(15, L);
|
885
|
+
});
|
886
|
+
}
|
887
|
+
const Me = () => oe(), De = () => X();
|
888
|
+
function Ae(r) {
|
889
|
+
ue[r ? "unshift" : "push"](() => {
|
890
|
+
B = r, t(13, B);
|
891
|
+
});
|
892
|
+
}
|
893
|
+
return a.$$set = (r) => {
|
894
|
+
"endpoint" in r && t(0, o = r.endpoint), "datasource" in r && t(27, l = r.datasource), "session" in r && t(28, s = r.session), "userid" in r && t(29, i = r.userid), "lang" in r && t(1, c = r.lang), "clientstyling" in r && t(2, m = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "integratedgameframedesktop" in r && t(4, f = r.integratedgameframedesktop), "integratedgameframemobile" in r && t(5, k = r.integratedgameframemobile), "showgamename" in r && t(6, h = r.showgamename), "gamepagemodalurl" in r && t(7, _ = r.gamepagemodalurl), "translationurl" in r && t(30, N = r.translationurl), "showfavorites" in r && t(8, P = r.showfavorites), "cancelbutton" in r && t(9, D = r.cancelbutton), "notfoundicon" in r && t(10, U = r.notfoundicon);
|
895
|
+
}, a.$$.update = () => {
|
896
|
+
if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
897
|
+
134223875)
|
898
|
+
if (I.length >= 2) {
|
899
|
+
const r = new URL(`${o}/v1/casino/games`);
|
900
|
+
r.searchParams.append("datasource", l), r.searchParams.append("expand", "vendor"), r.searchParams.append("platform", ee(A)), r.searchParams.append("language", c), r.searchParams.append("pagination", "offset=0,limit=30"), r.searchParams.append("filter", `name=${I}`), Fe(r).then((p) => {
|
901
|
+
t(14, M = p.items.map((w) => (w.isFavorite = re(w.id), w)));
|
902
|
+
});
|
903
|
+
} else
|
904
|
+
b || ne();
|
905
|
+
a.$$.dirty[0] & /*lang*/
|
906
|
+
2 && c && ze(), a.$$.dirty[0] & /*translationurl*/
|
907
|
+
1073741824 && N && Re(), a.$$.dirty[0] & /*session, userid*/
|
908
|
+
805306368 && s && i && Te(), a.$$.dirty[0] & /*showfavorites*/
|
909
|
+
256 | a.$$.dirty[1] & /*isLoggedIn*/
|
910
|
+
1 && P && Z && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
911
|
+
8196 && m && B && Ge(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
912
|
+
8200 && u && B && xe();
|
913
|
+
}, [
|
914
|
+
o,
|
915
|
+
c,
|
916
|
+
m,
|
917
|
+
u,
|
918
|
+
f,
|
919
|
+
k,
|
920
|
+
h,
|
921
|
+
_,
|
922
|
+
P,
|
923
|
+
D,
|
924
|
+
U,
|
925
|
+
I,
|
926
|
+
b,
|
927
|
+
B,
|
928
|
+
M,
|
929
|
+
L,
|
930
|
+
F,
|
931
|
+
G,
|
932
|
+
Y,
|
933
|
+
K,
|
934
|
+
n,
|
935
|
+
A,
|
936
|
+
ne,
|
937
|
+
Ce,
|
938
|
+
je,
|
939
|
+
X,
|
940
|
+
oe,
|
941
|
+
l,
|
942
|
+
s,
|
943
|
+
i,
|
944
|
+
N,
|
945
|
+
Z,
|
946
|
+
Ne,
|
947
|
+
Pe,
|
948
|
+
Me,
|
949
|
+
De,
|
950
|
+
Ae
|
951
|
+
];
|
952
|
+
}
|
953
|
+
class it extends We {
|
954
|
+
constructor(e) {
|
955
|
+
super(), Oe(
|
956
|
+
this,
|
957
|
+
e,
|
958
|
+
lt,
|
959
|
+
ot,
|
960
|
+
Ve,
|
961
|
+
{
|
962
|
+
endpoint: 0,
|
963
|
+
datasource: 27,
|
964
|
+
session: 28,
|
965
|
+
userid: 29,
|
966
|
+
lang: 1,
|
967
|
+
clientstyling: 2,
|
968
|
+
clientstylingurl: 3,
|
969
|
+
integratedgameframedesktop: 4,
|
970
|
+
integratedgameframemobile: 5,
|
971
|
+
showgamename: 6,
|
972
|
+
gamepagemodalurl: 7,
|
973
|
+
translationurl: 30,
|
974
|
+
showfavorites: 8,
|
975
|
+
cancelbutton: 9,
|
976
|
+
notfoundicon: 10
|
977
|
+
},
|
978
|
+
et,
|
979
|
+
[-1, -1]
|
980
|
+
);
|
981
|
+
}
|
982
|
+
get endpoint() {
|
983
|
+
return this.$$.ctx[0];
|
984
|
+
}
|
985
|
+
set endpoint(e) {
|
986
|
+
this.$$set({ endpoint: e }), E();
|
987
|
+
}
|
988
|
+
get datasource() {
|
989
|
+
return this.$$.ctx[27];
|
990
|
+
}
|
991
|
+
set datasource(e) {
|
992
|
+
this.$$set({ datasource: e }), E();
|
993
|
+
}
|
994
|
+
get session() {
|
995
|
+
return this.$$.ctx[28];
|
996
|
+
}
|
997
|
+
set session(e) {
|
998
|
+
this.$$set({ session: e }), E();
|
999
|
+
}
|
1000
|
+
get userid() {
|
1001
|
+
return this.$$.ctx[29];
|
1002
|
+
}
|
1003
|
+
set userid(e) {
|
1004
|
+
this.$$set({ userid: e }), E();
|
1005
|
+
}
|
1006
|
+
get lang() {
|
1007
|
+
return this.$$.ctx[1];
|
1008
|
+
}
|
1009
|
+
set lang(e) {
|
1010
|
+
this.$$set({ lang: e }), E();
|
1011
|
+
}
|
1012
|
+
get clientstyling() {
|
1013
|
+
return this.$$.ctx[2];
|
1014
|
+
}
|
1015
|
+
set clientstyling(e) {
|
1016
|
+
this.$$set({ clientstyling: e }), E();
|
1017
|
+
}
|
1018
|
+
get clientstylingurl() {
|
1019
|
+
return this.$$.ctx[3];
|
1020
|
+
}
|
1021
|
+
set clientstylingurl(e) {
|
1022
|
+
this.$$set({ clientstylingurl: e }), E();
|
1023
|
+
}
|
1024
|
+
get integratedgameframedesktop() {
|
1025
|
+
return this.$$.ctx[4];
|
1026
|
+
}
|
1027
|
+
set integratedgameframedesktop(e) {
|
1028
|
+
this.$$set({ integratedgameframedesktop: e }), E();
|
1029
|
+
}
|
1030
|
+
get integratedgameframemobile() {
|
1031
|
+
return this.$$.ctx[5];
|
1032
|
+
}
|
1033
|
+
set integratedgameframemobile(e) {
|
1034
|
+
this.$$set({ integratedgameframemobile: e }), E();
|
1035
|
+
}
|
1036
|
+
get showgamename() {
|
1037
|
+
return this.$$.ctx[6];
|
1038
|
+
}
|
1039
|
+
set showgamename(e) {
|
1040
|
+
this.$$set({ showgamename: e }), E();
|
1041
|
+
}
|
1042
|
+
get gamepagemodalurl() {
|
1043
|
+
return this.$$.ctx[7];
|
1044
|
+
}
|
1045
|
+
set gamepagemodalurl(e) {
|
1046
|
+
this.$$set({ gamepagemodalurl: e }), E();
|
1047
|
+
}
|
1048
|
+
get translationurl() {
|
1049
|
+
return this.$$.ctx[30];
|
1050
|
+
}
|
1051
|
+
set translationurl(e) {
|
1052
|
+
this.$$set({ translationurl: e }), E();
|
1053
|
+
}
|
1054
|
+
get showfavorites() {
|
1055
|
+
return this.$$.ctx[8];
|
1056
|
+
}
|
1057
|
+
set showfavorites(e) {
|
1058
|
+
this.$$set({ showfavorites: e }), E();
|
1059
|
+
}
|
1060
|
+
get cancelbutton() {
|
1061
|
+
return this.$$.ctx[9];
|
1062
|
+
}
|
1063
|
+
set cancelbutton(e) {
|
1064
|
+
this.$$set({ cancelbutton: e }), E();
|
1065
|
+
}
|
1066
|
+
get notfoundicon() {
|
1067
|
+
return this.$$.ctx[10];
|
1068
|
+
}
|
1069
|
+
set notfoundicon(e) {
|
1070
|
+
this.$$set({ notfoundicon: e }), E();
|
1071
|
+
}
|
1072
|
+
}
|
1073
|
+
Ue(it, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
|
1074
|
+
export {
|
1075
|
+
it as default
|
1076
|
+
};
|