@everymatrix/casino-navigation-search 1.87.25 → 1.87.27

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.
Files changed (36) hide show
  1. package/components/CasinoCategories-D03ywWap.js +508 -0
  2. package/components/CasinoCategories-De2O7nY7.cjs +1 -0
  3. package/components/CasinoCategories-DwrD955W.js +505 -0
  4. package/components/{CasinoCategoriesProviders-wiBurw3I.js → CasinoCategoriesProviders-BdtzkzB9.js} +151 -150
  5. package/components/{CasinoCategoriesProviders-C6jaH_bi.js → CasinoCategoriesProviders-CEig9pqM.js} +145 -144
  6. package/components/CasinoCategoriesProviders-CjzJD4F5.cjs +1 -0
  7. package/components/CasinoGameThumbnail-9VdwPGp6.cjs +47 -0
  8. package/components/CasinoGameThumbnail-BhUMu5jg.js +4355 -0
  9. package/components/CasinoGameThumbnail-D-MyFmoL.js +4371 -0
  10. package/components/CasinoNavigationSearch-BXnm3TTr.js +1094 -0
  11. package/components/CasinoNavigationSearch-DCzsTtAH.cjs +1 -0
  12. package/components/CasinoNavigationSearch-eJclHiIa.js +1136 -0
  13. package/components/{CasinoProviders-unwzg6FV.js → CasinoProviders-BZ1HrZLf.js} +84 -83
  14. package/components/{CasinoProviders-CNXaeFol.js → CasinoProviders-Bs8WnLeF.js} +69 -68
  15. package/components/CasinoProviders-mQfo2558.cjs +1 -0
  16. package/components/CasinoSearch-BLkMZ3g_.js +4928 -0
  17. package/components/CasinoSearch-BZ_ZSZxR.cjs +18 -0
  18. package/components/CasinoSearch-jAxRxn7o.js +4946 -0
  19. package/es2015/casino-navigation-search.cjs +1 -1
  20. package/es2015/casino-navigation-search.js +7 -7
  21. package/esnext/casino-navigation-search.js +1 -1
  22. package/package.json +1 -1
  23. package/components/CasinoCategories-BIfo87kb.js +0 -4363
  24. package/components/CasinoCategories-B_XS4BnL.cjs +0 -3
  25. package/components/CasinoCategories-EyDPHbRr.js +0 -4403
  26. package/components/CasinoCategoriesProviders-DwzgJQIC.cjs +0 -1
  27. package/components/CasinoGameThumbnail-COVYIHKr.js +0 -4898
  28. package/components/CasinoGameThumbnail-DJvF4m00.cjs +0 -62
  29. package/components/CasinoGameThumbnail-UFeFBP15.js +0 -4882
  30. package/components/CasinoNavigationSearch-7vC0vX_R.js +0 -472
  31. package/components/CasinoNavigationSearch-DZnDLNrA.js +0 -472
  32. package/components/CasinoNavigationSearch-DdLipJ-m.cjs +0 -1
  33. package/components/CasinoProviders-CXfeouVv.cjs +0 -1
  34. package/components/CasinoSearch-4z15LzHk.js +0 -1136
  35. package/components/CasinoSearch-Axyir5wR.js +0 -1154
  36. package/components/CasinoSearch-DVaxD--r.cjs +0 -1
@@ -0,0 +1,505 @@
1
+ import { S as $, b as ee, s as te, f as x, d as ae, n as P, e as I, j as K, m as b, q as ie, t as oe, w as se, g as j, x as U, y as D, u as S, k as c, v as E, o as O, E as q, A as L, l as V, B as re, C as le, D as ne, c as ge } from "./CasinoNavigationSearch-BXnm3TTr.js";
2
+ import { a as ce, $ as ue, b as de } from "./CasinoSearch-BLkMZ3g_.js";
3
+ import "../stencil/ui-image-Ch-GHki1.js";
4
+ function G(t, e) {
5
+ ce(t, e);
6
+ }
7
+ function fe(t) {
8
+ ue.set(t);
9
+ }
10
+ const B = {
11
+ en: {
12
+ topCategories: "Top Categories",
13
+ otherCategories: "Other Categories",
14
+ loading: "Loading, please wait...",
15
+ games: "games"
16
+ },
17
+ "zh-hk": {
18
+ topCategories: "热门类别",
19
+ otherCategories: "其他类别",
20
+ loading: "加载请稍候...",
21
+ games: "游戏"
22
+ },
23
+ de: {
24
+ topCategories: "Top Kategorien",
25
+ otherCategories: "Andere Kategorien",
26
+ loading: "Es lädt, bitte warten...",
27
+ games: "Spiele"
28
+ },
29
+ it: {
30
+ topCategories: "Top Categories",
31
+ otherCategories: "Other Categories",
32
+ loading: "Loading, please wait...",
33
+ games: "games"
34
+ },
35
+ fr: {
36
+ topCategories: "Catégories principales",
37
+ otherCategories: "Autres catégories",
38
+ loading: "Chargement, veuillez patienter...",
39
+ games: "jeux"
40
+ },
41
+ es: {
42
+ topCategories: "Categorias Top",
43
+ otherCategories: "Otras Categorias",
44
+ loading: "Cargando...",
45
+ games: "juegos"
46
+ },
47
+ tr: {
48
+ topCategories: "En İyi Kategoriler",
49
+ otherCategories: "Diğer Kategoriler",
50
+ loading: "Yükleniyor, lütfen bekleyin...",
51
+ games: "oyunlar"
52
+ },
53
+ ru: {
54
+ topCategories: "Top Categories",
55
+ otherCategories: "Other Categories",
56
+ loading: "Loading, please wait...",
57
+ games: "games"
58
+ },
59
+ ro: {
60
+ topCategories: "Categorii de top",
61
+ otherCategories: "Alte categorii",
62
+ loading: "Se incarca, te rugam asteapta…",
63
+ games: "jocuri"
64
+ },
65
+ hr: {
66
+ topCategories: "Najbolje kategorije",
67
+ otherCategories: "Ostale kategorije",
68
+ loading: "Učitavam",
69
+ games: "Igre"
70
+ },
71
+ hu: {
72
+ topCategories: "Top Categories",
73
+ otherCategories: "Other Categories",
74
+ loading: "Loading, please wait...",
75
+ games: "games"
76
+ },
77
+ pl: {
78
+ topCategories: "Top Categories",
79
+ otherCategories: "Other Categories",
80
+ loading: "Loading, please wait...",
81
+ games: "games"
82
+ },
83
+ pt: {
84
+ topCategories: "Top Categories",
85
+ otherCategories: "Other Categories",
86
+ loading: "Loading, please wait...",
87
+ games: "games"
88
+ },
89
+ sl: {
90
+ topCategories: "Top Categories",
91
+ otherCategories: "Other Categories",
92
+ loading: "Loading, please wait...",
93
+ games: "games"
94
+ },
95
+ sr: {
96
+ topCategories: "Top Categories",
97
+ otherCategories: "Other Categories",
98
+ loading: "Loading, please wait...",
99
+ games: "games"
100
+ },
101
+ "pt-br": {
102
+ topCategories: "Categorias Principais",
103
+ otherCategories: "Outras Categorias",
104
+ Loading: "Carregando, por favor espere...",
105
+ games: "jogos"
106
+ },
107
+ "es-mx": {
108
+ topCategories: "Categorias Principales",
109
+ otherCategories: "Otras Categorias",
110
+ Loading: "Cargando, por favor espere...",
111
+ games: "juegos"
112
+ },
113
+ "en-us": {
114
+ topCategories: "Top Categories",
115
+ otherCategories: "Other Categories",
116
+ loading: "Loading, please wait...",
117
+ games: "games"
118
+ }
119
+ };
120
+ function he(t) {
121
+ ae(t, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
122
+ }
123
+ function Y(t, e, a) {
124
+ const r = t.slice();
125
+ return r[23] = e[a], r;
126
+ }
127
+ function H(t, e, a) {
128
+ const r = t.slice();
129
+ return r[23] = e[a], r;
130
+ }
131
+ function me(t) {
132
+ let e, a, r = (
133
+ /*$_*/
134
+ t[5]("topCategories") + ""
135
+ ), n, d, g, v, C = (
136
+ /*$_*/
137
+ t[5]("otherCategories") + ""
138
+ ), _, w, f = U(
139
+ /*topCategories*/
140
+ t[3]
141
+ ), l = [];
142
+ for (let o = 0; o < f.length; o += 1)
143
+ l[o] = J(H(t, f, o));
144
+ let u = U(
145
+ /*otherCategories*/
146
+ t[4]
147
+ ), h = [];
148
+ for (let o = 0; o < u.length; o += 1)
149
+ h[o] = Q(Y(t, u, o));
150
+ return {
151
+ c() {
152
+ e = b("div"), a = b("h4"), n = E(r), d = O();
153
+ for (let o = 0; o < l.length; o += 1)
154
+ l[o].c();
155
+ g = O(), v = b("h4"), _ = E(C), w = O();
156
+ for (let o = 0; o < h.length; o += 1)
157
+ h[o].c();
158
+ j(a, "class", "CategoryTitle"), j(v, "class", "CategoryTitle"), j(e, "class", "CasinoCategories");
159
+ },
160
+ m(o, m) {
161
+ K(o, e, m), c(e, a), c(a, n), c(e, d);
162
+ for (let i = 0; i < l.length; i += 1)
163
+ l[i] && l[i].m(e, null);
164
+ c(e, g), c(e, v), c(v, _), c(e, w);
165
+ for (let i = 0; i < h.length; i += 1)
166
+ h[i] && h[i].m(e, null);
167
+ },
168
+ p(o, m) {
169
+ if (m & /*$_*/
170
+ 32 && r !== (r = /*$_*/
171
+ o[5]("topCategories") + "") && S(n, r), m & /*activecategory, topCategories, openGameCategory, $_*/
172
+ 105) {
173
+ f = U(
174
+ /*topCategories*/
175
+ o[3]
176
+ );
177
+ let i;
178
+ for (i = 0; i < f.length; i += 1) {
179
+ const p = H(o, f, i);
180
+ l[i] ? l[i].p(p, m) : (l[i] = J(p), l[i].c(), l[i].m(e, g));
181
+ }
182
+ for (; i < l.length; i += 1)
183
+ l[i].d(1);
184
+ l.length = f.length;
185
+ }
186
+ if (m & /*$_*/
187
+ 32 && C !== (C = /*$_*/
188
+ o[5]("otherCategories") + "") && S(_, C), m & /*activecategory, otherCategories, openGameCategory, $_*/
189
+ 113) {
190
+ u = U(
191
+ /*otherCategories*/
192
+ o[4]
193
+ );
194
+ let i;
195
+ for (i = 0; i < u.length; i += 1) {
196
+ const p = Y(o, u, i);
197
+ h[i] ? h[i].p(p, m) : (h[i] = Q(p), h[i].c(), h[i].m(e, null));
198
+ }
199
+ for (; i < h.length; i += 1)
200
+ h[i].d(1);
201
+ h.length = u.length;
202
+ }
203
+ },
204
+ d(o) {
205
+ o && I(e), D(l, o), D(h, o);
206
+ }
207
+ };
208
+ }
209
+ function Ce(t) {
210
+ let e;
211
+ return {
212
+ c() {
213
+ e = b("p"), e.textContent = "Loading, please wait...", j(e, "class", "Message");
214
+ },
215
+ m(a, r) {
216
+ K(a, e, r);
217
+ },
218
+ p: P,
219
+ d(a) {
220
+ a && I(e);
221
+ }
222
+ };
223
+ }
224
+ function J(t) {
225
+ let e, a, r, n, d, g, v, C = (
226
+ /*category*/
227
+ t[23].name + ""
228
+ ), _, w, f, l = (
229
+ /*category*/
230
+ t[23].games.count + ""
231
+ ), u, h, o = (
232
+ /*$_*/
233
+ t[5]("games") + ""
234
+ ), m, i, p, A;
235
+ function z() {
236
+ return (
237
+ /*click_handler*/
238
+ t[15](
239
+ /*category*/
240
+ t[23]
241
+ )
242
+ );
243
+ }
244
+ return {
245
+ c() {
246
+ e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), f = b("p"), u = E(l), h = O(), m = E(o), q(a.src, r = /*category*/
247
+ t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
248
+ t[23].name), L(a, "class", "CategoryImage"), j(g, "class", "CategoryTextContainer"), j(e, "class", i = "Category " + /*activecategory*/
249
+ (t[0] === /*category*/
250
+ t[23].id ? "Active" : ""));
251
+ },
252
+ m(k, y) {
253
+ K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, f), c(f, u), c(f, h), c(f, m), p || (A = V(e, "click", z), p = !0);
254
+ },
255
+ p(k, y) {
256
+ t = k, y & /*topCategories*/
257
+ 8 && !q(a.src, r = /*category*/
258
+ t[23].icon) && L(a, "src", r), y & /*topCategories*/
259
+ 8 && n !== (n = /*category*/
260
+ t[23].name) && L(a, "alt", n), y & /*topCategories*/
261
+ 8 && C !== (C = /*category*/
262
+ t[23].name + "") && S(_, C), y & /*topCategories*/
263
+ 8 && l !== (l = /*category*/
264
+ t[23].games.count + "") && S(u, l), y & /*$_*/
265
+ 32 && o !== (o = /*$_*/
266
+ t[5]("games") + "") && S(m, o), y & /*activecategory, topCategories*/
267
+ 9 && i !== (i = "Category " + /*activecategory*/
268
+ (t[0] === /*category*/
269
+ t[23].id ? "Active" : "")) && j(e, "class", i);
270
+ },
271
+ d(k) {
272
+ k && I(e), p = !1, A();
273
+ }
274
+ };
275
+ }
276
+ function Q(t) {
277
+ let e, a, r, n, d, g, v, C = (
278
+ /*category*/
279
+ t[23].name + ""
280
+ ), _, w, f, l = (
281
+ /*category*/
282
+ t[23].games.count + ""
283
+ ), u, h, o = (
284
+ /*$_*/
285
+ t[5]("games") + ""
286
+ ), m, i, p, A, z;
287
+ function k() {
288
+ return (
289
+ /*click_handler_1*/
290
+ t[16](
291
+ /*category*/
292
+ t[23]
293
+ )
294
+ );
295
+ }
296
+ return {
297
+ c() {
298
+ e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), f = b("p"), u = E(l), h = O(), m = E(o), i = O(), q(a.src, r = /*category*/
299
+ t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
300
+ t[23].name), L(a, "class", "CategoryImage"), j(g, "class", "CategoryTextContainer"), j(e, "class", p = "Category " + /*activecategory*/
301
+ (t[0] === /*category*/
302
+ t[23].id ? "Active" : ""));
303
+ },
304
+ m(y, T) {
305
+ K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, f), c(f, u), c(f, h), c(f, m), c(e, i), A || (z = V(e, "click", k), A = !0);
306
+ },
307
+ p(y, T) {
308
+ t = y, T & /*otherCategories*/
309
+ 16 && !q(a.src, r = /*category*/
310
+ t[23].icon) && L(a, "src", r), T & /*otherCategories*/
311
+ 16 && n !== (n = /*category*/
312
+ t[23].name) && L(a, "alt", n), T & /*otherCategories*/
313
+ 16 && C !== (C = /*category*/
314
+ t[23].name + "") && S(_, C), T & /*otherCategories*/
315
+ 16 && l !== (l = /*category*/
316
+ t[23].games.count + "") && S(u, l), T & /*$_*/
317
+ 32 && o !== (o = /*$_*/
318
+ t[5]("games") + "") && S(m, o), T & /*activecategory, otherCategories*/
319
+ 17 && p !== (p = "Category " + /*activecategory*/
320
+ (t[0] === /*category*/
321
+ t[23].id ? "Active" : "")) && j(e, "class", p);
322
+ },
323
+ d(y) {
324
+ y && I(e), A = !1, z();
325
+ }
326
+ };
327
+ }
328
+ function pe(t) {
329
+ let e;
330
+ function a(d, g) {
331
+ return (
332
+ /*isLoading*/
333
+ d[2] ? Ce : me
334
+ );
335
+ }
336
+ let r = a(t), n = r(t);
337
+ return {
338
+ c() {
339
+ e = b("div"), n.c();
340
+ },
341
+ m(d, g) {
342
+ K(d, e, g), n.m(e, null), t[17](e);
343
+ },
344
+ p(d, [g]) {
345
+ r === (r = a(d)) && n ? n.p(d, g) : (n.d(1), n = r(d), n && (n.c(), n.m(e, null)));
346
+ },
347
+ i: P,
348
+ o: P,
349
+ d(d) {
350
+ d && I(e), n.d(), t[17](null);
351
+ }
352
+ };
353
+ }
354
+ function _e(t, e, a) {
355
+ let r;
356
+ ie(t, de, (s) => a(5, r = s));
357
+ let { endpoint: n = "" } = e, { datasource: d = "" } = e, { lang: g = "en" } = e, { activecategory: v = "" } = e, { excludedflags: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { translationurl: f = "" } = e, { mbsource: l } = e, u, h, o = !1;
358
+ const m = [];
359
+ let i = [], p = [];
360
+ Object.keys(B).forEach((s) => {
361
+ G(s, B[s]);
362
+ });
363
+ const A = () => {
364
+ fetch(f).then((F) => F.json()).then((F) => {
365
+ Object.keys(F).forEach((N) => {
366
+ G(N, F[N]);
367
+ });
368
+ }).catch((F) => {
369
+ console.log(F);
370
+ });
371
+ }, z = () => {
372
+ a(2, o = !0);
373
+ const s = new URL(`${n}/v1/casino/groups/${d}`);
374
+ s.searchParams.append("language", g), fetch(s).then((F) => F.json()).then((F) => {
375
+ a(2, o = !1);
376
+ const N = C.split(",").map((M) => M.trim());
377
+ m.push(...F.items);
378
+ const R = m.filter((M) => !N.some((Z) => M.flags?.indexOf(Z) >= 0));
379
+ a(3, i = R.filter((M) => M.isTopCategory === !0)), a(4, p = R.filter((M) => M.isTopCategory === !1));
380
+ });
381
+ }, k = (s) => {
382
+ window.postMessage({ type: "OpenGameCategory", categoryId: s }, window.location.href);
383
+ }, y = () => {
384
+ fe(g);
385
+ };
386
+ oe(() => () => {
387
+ });
388
+ const T = (s) => k(s.id), W = (s) => k(s.id);
389
+ function X(s) {
390
+ se[s ? "unshift" : "push"](() => {
391
+ u = s, a(1, u);
392
+ });
393
+ }
394
+ return t.$$set = (s) => {
395
+ "endpoint" in s && a(7, n = s.endpoint), "datasource" in s && a(8, d = s.datasource), "lang" in s && a(9, g = s.lang), "activecategory" in s && a(0, v = s.activecategory), "excludedflags" in s && a(10, C = s.excludedflags), "clientstyling" in s && a(11, _ = s.clientstyling), "clientstylingurl" in s && a(12, w = s.clientstylingurl), "translationurl" in s && a(13, f = s.translationurl), "mbsource" in s && a(14, l = s.mbsource);
396
+ }, t.$$.update = () => {
397
+ t.$$.dirty & /*endpoint, datasource*/
398
+ 384 && n && d && z(), t.$$.dirty & /*translationurl*/
399
+ 8192 && f && A(), t.$$.dirty & /*lang*/
400
+ 512 && g && y(), t.$$.dirty & /*clientstyling, customStylingContainer*/
401
+ 2050 && _ && u && re(u, _), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
402
+ 4098 && w && u && le(u, w), t.$$.dirty & /*mbsource, customStylingContainer*/
403
+ 16386 && l && u && ne(u, `${l}.Style`, h);
404
+ }, [
405
+ v,
406
+ u,
407
+ o,
408
+ i,
409
+ p,
410
+ r,
411
+ k,
412
+ n,
413
+ d,
414
+ g,
415
+ C,
416
+ _,
417
+ w,
418
+ f,
419
+ l,
420
+ T,
421
+ W,
422
+ X
423
+ ];
424
+ }
425
+ class ye extends $ {
426
+ constructor(e) {
427
+ super(), ee(
428
+ this,
429
+ e,
430
+ _e,
431
+ pe,
432
+ te,
433
+ {
434
+ endpoint: 7,
435
+ datasource: 8,
436
+ lang: 9,
437
+ activecategory: 0,
438
+ excludedflags: 10,
439
+ clientstyling: 11,
440
+ clientstylingurl: 12,
441
+ translationurl: 13,
442
+ mbsource: 14
443
+ },
444
+ he
445
+ );
446
+ }
447
+ get endpoint() {
448
+ return this.$$.ctx[7];
449
+ }
450
+ set endpoint(e) {
451
+ this.$$set({ endpoint: e }), x();
452
+ }
453
+ get datasource() {
454
+ return this.$$.ctx[8];
455
+ }
456
+ set datasource(e) {
457
+ this.$$set({ datasource: e }), x();
458
+ }
459
+ get lang() {
460
+ return this.$$.ctx[9];
461
+ }
462
+ set lang(e) {
463
+ this.$$set({ lang: e }), x();
464
+ }
465
+ get activecategory() {
466
+ return this.$$.ctx[0];
467
+ }
468
+ set activecategory(e) {
469
+ this.$$set({ activecategory: e }), x();
470
+ }
471
+ get excludedflags() {
472
+ return this.$$.ctx[10];
473
+ }
474
+ set excludedflags(e) {
475
+ this.$$set({ excludedflags: e }), x();
476
+ }
477
+ get clientstyling() {
478
+ return this.$$.ctx[11];
479
+ }
480
+ set clientstyling(e) {
481
+ this.$$set({ clientstyling: e }), x();
482
+ }
483
+ get clientstylingurl() {
484
+ return this.$$.ctx[12];
485
+ }
486
+ set clientstylingurl(e) {
487
+ this.$$set({ clientstylingurl: e }), x();
488
+ }
489
+ get translationurl() {
490
+ return this.$$.ctx[13];
491
+ }
492
+ set translationurl(e) {
493
+ this.$$set({ translationurl: e }), x();
494
+ }
495
+ get mbsource() {
496
+ return this.$$.ctx[14];
497
+ }
498
+ set mbsource(e) {
499
+ this.$$set({ mbsource: e }), x();
500
+ }
501
+ }
502
+ ge(ye, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
503
+ export {
504
+ ye as default
505
+ };