@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
@@ -1,4 +1,5 @@
1
- import { a as K, $ as Q, S as W, i as X, s as Y, f as E, b as Z, n as I, d as O, h as C, k as S, e as v, o as $, q as ee, c as A, j as c, t as z, C as N, D as q, m as L, B as te, z as V, l as J, u as re, v as ie, w as le, x as se, y as oe } from "./CasinoCategories-BIfo87kb.js";
1
+ import { S as Q, b as W, s as X, f as M, d as Y, n as I, e as O, j as C, m as S, g as v, q as Z, w as $, u as A, k as c, v as z, x as N, y as q, o as L, z as ee, E as V, l as J, B as te, C as re, D as ie, c as le } from "./CasinoNavigationSearch-BXnm3TTr.js";
2
+ import { a as se, $ as oe, b as ae } from "./CasinoSearch-BLkMZ3g_.js";
2
3
  const R = {
3
4
  en: {
4
5
  popularProviders: "Popular Suppliers",
@@ -110,13 +111,13 @@ const R = {
110
111
  }
111
112
  };
112
113
  function U(t, e) {
113
- K(t, e);
114
- }
115
- function ae(t) {
116
- Q.set(t);
114
+ se(t, e);
117
115
  }
118
116
  function ne(t) {
119
- Z(t, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
117
+ oe.set(t);
118
+ }
119
+ function ue(t) {
120
+ Y(t, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
120
121
  }
121
122
  function B(t, e, i) {
122
123
  const a = t.slice();
@@ -126,7 +127,7 @@ function G(t, e, i) {
126
127
  const a = t.slice();
127
128
  return a[21] = e[i], a;
128
129
  }
129
- function ue(t) {
130
+ function de(t) {
130
131
  let e, i = (
131
132
  /*$_*/
132
133
  t[4]("popularProviders") + ""
@@ -153,7 +154,7 @@ function ue(t) {
153
154
  u = L(), n = S("h4"), h = z(P), _ = L();
154
155
  for (let r = 0; r < g.length; r += 1)
155
156
  g[r].c();
156
- b = te(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
157
+ b = ee(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
157
158
  },
158
159
  m(r, p) {
159
160
  C(r, e, p), c(e, a), C(r, o, p);
@@ -175,8 +176,8 @@ function ue(t) {
175
176
  );
176
177
  let l;
177
178
  for (l = 0; l < m.length; l += 1) {
178
- const y = G(r, m, l);
179
- d[l] ? d[l].p(y, p) : (d[l] = D(y), d[l].c(), d[l].m(u.parentNode, u));
179
+ const w = G(r, m, l);
180
+ d[l] ? d[l].p(w, p) : (d[l] = D(w), d[l].c(), d[l].m(u.parentNode, u));
180
181
  }
181
182
  for (; l < d.length; l += 1)
182
183
  d[l].d(1);
@@ -192,8 +193,8 @@ function ue(t) {
192
193
  );
193
194
  let l;
194
195
  for (l = 0; l < f.length; l += 1) {
195
- const y = B(r, f, l);
196
- g[l] ? g[l].p(y, p) : (g[l] = H(y), g[l].c(), g[l].m(b.parentNode, b));
196
+ const w = B(r, f, l);
197
+ g[l] ? g[l].p(w, p) : (g[l] = H(w), g[l].c(), g[l].m(b.parentNode, b));
197
198
  }
198
199
  for (; l < g.length; l += 1)
199
200
  g[l].d(1);
@@ -205,7 +206,7 @@ function ue(t) {
205
206
  }
206
207
  };
207
208
  }
208
- function de(t) {
209
+ function ge(t) {
209
210
  let e, i = (
210
211
  /*$_*/
211
212
  t[4]("loading") + ""
@@ -237,8 +238,8 @@ function D(t) {
237
238
  ), f, g, r = (
238
239
  /*$_*/
239
240
  t[4]("games") + ""
240
- ), p, l, y;
241
- function M() {
241
+ ), p, l, w;
242
+ function E() {
242
243
  return (
243
244
  /*click_handler*/
244
245
  t[13](
@@ -253,24 +254,24 @@ function D(t) {
253
254
  t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
254
255
  t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
255
256
  },
256
- m(j, w) {
257
- C(j, e, w), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), l || (y = J(e, "click", M), l = !0);
257
+ m(j, y) {
258
+ C(j, e, y), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), l || (w = J(e, "click", E), l = !0);
258
259
  },
259
- p(j, w) {
260
- t = j, w & /*topProviders*/
260
+ p(j, y) {
261
+ t = j, y & /*topProviders*/
261
262
  2 && !V(i.src, a = /*provider*/
262
- t[21].logo) && v(i, "src", a), w & /*topProviders*/
263
+ t[21].logo) && v(i, "src", a), y & /*topProviders*/
263
264
  2 && o !== (o = /*provider*/
264
- t[21].name) && v(i, "alt", o), w & /*topProviders*/
265
+ t[21].name) && v(i, "alt", o), y & /*topProviders*/
265
266
  2 && h !== (h = /*provider*/
266
- t[21].name + "") && A(_, h), w & /*topProviders*/
267
+ t[21].name + "") && A(_, h), y & /*topProviders*/
267
268
  2 && d !== (d = /*provider*/
268
- t[21].games.count + "") && A(f, d), w & /*$_*/
269
+ t[21].games.count + "") && A(f, d), y & /*$_*/
269
270
  16 && r !== (r = /*$_*/
270
271
  t[4]("games") + "") && A(p, r);
271
272
  },
272
273
  d(j) {
273
- j && O(e), l = !1, y();
274
+ j && O(e), l = !1, w();
274
275
  }
275
276
  };
276
277
  }
@@ -284,7 +285,7 @@ function H(t) {
284
285
  ), f, g, r = (
285
286
  /*$_*/
286
287
  t[4]("games") + ""
287
- ), p, l, y, M;
288
+ ), p, l, w, E;
288
289
  function j() {
289
290
  return (
290
291
  /*click_handler_1*/
@@ -300,11 +301,11 @@ function H(t) {
300
301
  t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
301
302
  t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
302
303
  },
303
- m(w, F) {
304
- C(w, e, F), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), c(e, l), y || (M = J(e, "click", j), y = !0);
304
+ m(y, F) {
305
+ C(y, e, F), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), c(e, l), w || (E = J(e, "click", j), w = !0);
305
306
  },
306
- p(w, F) {
307
- t = w, F & /*otherProviders*/
307
+ p(y, F) {
308
+ t = y, F & /*otherProviders*/
308
309
  4 && !V(i.src, a = /*provider*/
309
310
  t[21].logo) && v(i, "src", a), F & /*otherProviders*/
310
311
  4 && o !== (o = /*provider*/
@@ -316,17 +317,17 @@ function H(t) {
316
317
  16 && r !== (r = /*$_*/
317
318
  t[4]("games") + "") && A(p, r);
318
319
  },
319
- d(w) {
320
- w && O(e), y = !1, M();
320
+ d(y) {
321
+ y && O(e), w = !1, E();
321
322
  }
322
323
  };
323
324
  }
324
- function ge(t) {
325
+ function pe(t) {
325
326
  let e;
326
327
  function i(u, n) {
327
328
  return (
328
329
  /*isLoading*/
329
- u[3] === !0 ? de : ue
330
+ u[3] === !0 ? ge : de
330
331
  );
331
332
  }
332
333
  let a = i(t), o = a(t);
@@ -347,11 +348,11 @@ function ge(t) {
347
348
  }
348
349
  };
349
350
  }
350
- function pe(t, e, i) {
351
+ function ce(t, e, i) {
351
352
  let a;
352
- $(t, oe, (s) => i(4, a = s));
353
- let { endpoint: o = "" } = e, { datasource: u = "" } = e, { lang: n = "en" } = e, { clientstyling: P = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: _ = "" } = e, { mbsource: b } = e, m = [], d = [], f = [], g = !1, r;
354
- const p = () => {
353
+ Z(t, ae, (s) => i(4, a = s));
354
+ let { endpoint: o = "" } = e, { datasource: u = "" } = e, { lang: n = "en" } = e, { clientstyling: P = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: _ = "" } = e, { mbsource: b } = e, m = [], d = [], f = [], g = !1, r, p;
355
+ const l = () => {
355
356
  fetch(_).then((k) => k.json()).then((k) => {
356
357
  Object.keys(k).forEach((x) => {
357
358
  U(x, k[x]);
@@ -363,7 +364,7 @@ function pe(t, e, i) {
363
364
  Object.keys(R).forEach((s) => {
364
365
  U(s, R[s]);
365
366
  });
366
- const l = () => {
367
+ const w = () => {
367
368
  i(3, g = !0);
368
369
  const s = new URL(`${o}/v1/casino/vendors`);
369
370
  s.searchParams.append("datasource", u), s.searchParams.append("language", n), s.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(s).then((k) => k.json()).then((k) => {
@@ -371,7 +372,7 @@ function pe(t, e, i) {
371
372
  let x = [];
372
373
  x = m.flatMap((T) => T.subVendors), f.push(...x.filter((T) => T.games.count > 0));
373
374
  });
374
- }, y = (s, k, x) => {
375
+ }, E = (s, k, x) => {
375
376
  window.postMessage(
376
377
  {
377
378
  type: "OpenGameProvider",
@@ -381,11 +382,11 @@ function pe(t, e, i) {
381
382
  },
382
383
  window.location.href
383
384
  );
384
- }, M = () => {
385
- ae(n);
386
- }, j = (s) => y(s.id, s.name, s.logo), w = (s) => y(s.id, s.name, s.logo);
387
- function F(s) {
388
- ee[s ? "unshift" : "push"](() => {
385
+ }, j = () => {
386
+ ne(n);
387
+ }, y = (s) => E(s.id, s.name, s.logo), F = (s) => E(s.id, s.name, s.logo);
388
+ function K(s) {
389
+ $[s ? "unshift" : "push"](() => {
389
390
  r = s, i(0, r);
390
391
  });
391
392
  }
@@ -393,19 +394,19 @@ function pe(t, e, i) {
393
394
  "endpoint" in s && i(6, o = s.endpoint), "datasource" in s && i(7, u = s.datasource), "lang" in s && i(8, n = s.lang), "clientstyling" in s && i(9, P = s.clientstyling), "clientstylingurl" in s && i(10, h = s.clientstylingurl), "translationurl" in s && i(11, _ = s.translationurl), "mbsource" in s && i(12, b = s.mbsource);
394
395
  }, t.$$.update = () => {
395
396
  t.$$.dirty & /*endpoint, lang, datasource*/
396
- 448 && o && n && u && l(), t.$$.dirty & /*lang*/
397
- 256 && n && M(), t.$$.dirty & /*translationurl*/
398
- 2048 && _ && p(), t.$$.dirty & /*clientstyling, customStylingContainer*/
399
- 513 && P && r && re(r, P), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
400
- 1025 && h && r && ie(r, h), t.$$.dirty & /*mbsource, customStylingContainer*/
401
- 4097 && b && r && le(r, `${b}.Style`);
397
+ 448 && o && n && u && w(), t.$$.dirty & /*lang*/
398
+ 256 && n && j(), t.$$.dirty & /*translationurl*/
399
+ 2048 && _ && l(), t.$$.dirty & /*clientstyling, customStylingContainer*/
400
+ 513 && P && r && te(r, P), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
401
+ 1025 && h && r && re(r, h), t.$$.dirty & /*mbsource, customStylingContainer*/
402
+ 4097 && b && r && ie(r, `${b}.Style`, p);
402
403
  }, [
403
404
  r,
404
405
  d,
405
406
  f,
406
407
  g,
407
408
  a,
408
- y,
409
+ E,
409
410
  o,
410
411
  u,
411
412
  n,
@@ -413,19 +414,19 @@ function pe(t, e, i) {
413
414
  h,
414
415
  _,
415
416
  b,
416
- j,
417
- w,
418
- F
417
+ y,
418
+ F,
419
+ K
419
420
  ];
420
421
  }
421
- class ce extends W {
422
+ class me extends Q {
422
423
  constructor(e) {
423
- super(), X(
424
+ super(), W(
424
425
  this,
425
426
  e,
427
+ ce,
426
428
  pe,
427
- ge,
428
- Y,
429
+ X,
429
430
  {
430
431
  endpoint: 6,
431
432
  datasource: 7,
@@ -435,53 +436,53 @@ class ce extends W {
435
436
  translationurl: 11,
436
437
  mbsource: 12
437
438
  },
438
- ne
439
+ ue
439
440
  );
440
441
  }
441
442
  get endpoint() {
442
443
  return this.$$.ctx[6];
443
444
  }
444
445
  set endpoint(e) {
445
- this.$$set({ endpoint: e }), E();
446
+ this.$$set({ endpoint: e }), M();
446
447
  }
447
448
  get datasource() {
448
449
  return this.$$.ctx[7];
449
450
  }
450
451
  set datasource(e) {
451
- this.$$set({ datasource: e }), E();
452
+ this.$$set({ datasource: e }), M();
452
453
  }
453
454
  get lang() {
454
455
  return this.$$.ctx[8];
455
456
  }
456
457
  set lang(e) {
457
- this.$$set({ lang: e }), E();
458
+ this.$$set({ lang: e }), M();
458
459
  }
459
460
  get clientstyling() {
460
461
  return this.$$.ctx[9];
461
462
  }
462
463
  set clientstyling(e) {
463
- this.$$set({ clientstyling: e }), E();
464
+ this.$$set({ clientstyling: e }), M();
464
465
  }
465
466
  get clientstylingurl() {
466
467
  return this.$$.ctx[10];
467
468
  }
468
469
  set clientstylingurl(e) {
469
- this.$$set({ clientstylingurl: e }), E();
470
+ this.$$set({ clientstylingurl: e }), M();
470
471
  }
471
472
  get translationurl() {
472
473
  return this.$$.ctx[11];
473
474
  }
474
475
  set translationurl(e) {
475
- this.$$set({ translationurl: e }), E();
476
+ this.$$set({ translationurl: e }), M();
476
477
  }
477
478
  get mbsource() {
478
479
  return this.$$.ctx[12];
479
480
  }
480
481
  set mbsource(e) {
481
- this.$$set({ mbsource: e }), E();
482
+ this.$$set({ mbsource: e }), M();
482
483
  }
483
484
  }
484
- se(ce, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
485
+ le(me, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
485
486
  export {
486
- ce as default
487
+ me as default
487
488
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoNavigationSearch-DCzsTtAH.cjs"),T=require("./CasinoSearch-BZ_ZSZxR.cjs"),j={en:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"},"zh-hk":{popularProviders:"热门供应商",otherProviders:"其他供应商",loading:"加载请稍候...",games:"游戏"},de:{popularProviders:"Beliebte Anbieter",otherProviders:"Andere Anbieter",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},fr:{popularProviders:"Fournisseurs populaires",otherProviders:"Autres fournisseurs",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{popularProviders:"Proveedores Populares",otherProviders:"Otros Proveedores",loading:"Cargando",games:"juegos"},tr:{popularProviders:"Şimdi Oyna",otherProviders:"Rastgele oynanacak oyun yok",loading:"Son arama",games:"Oyunları Ara"},ru:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ro:{popularProviders:"Furnizori de top",otherProviders:"Alti furnizori",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{popularProviders:"Popularni brendovi",otherProviders:"Ostali brendovi",loading:"Učitavanje",games:"Igre"},hu:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pt:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},"pt-br":{popularProviders:"provedores populares",otherProviders:"Outros provedores",Loading:"Carregando",games:"jogos"},"es-mx":{popularProviders:"Proveedores Populares",otherProviders:"Otros proveedores",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"}};function F(r,t){T.addMessages(r,t)}function E(r){T.$locale.set(r)}function V(r){e.append_styles(r,"svelte-1bsli1q","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}")}function x(r,t,l){const o=r.slice();return o[21]=t[l],o}function A(r,t,l){const o=r.slice();return o[21]=t[l],o}function I(r){let t,l=r[4]("popularProviders")+"",o,n,p,d,v=r[4]("otherProviders")+"",m,_,P,h=e.ensure_array_like(r[1]),u=[];for(let a=0;a<h.length;a+=1)u[a]=q(A(r,h,a));let f=e.ensure_array_like(r[2]),c=[];for(let a=0;a<f.length;a+=1)c[a]=M(x(r,f,a));return{c(){t=e.element("h4"),o=e.text(l),n=e.space();for(let a=0;a<u.length;a+=1)u[a].c();p=e.space(),d=e.element("h4"),m=e.text(v),_=e.space();for(let a=0;a<c.length;a+=1)c[a].c();P=e.empty(),e.attr(t,"class","ProviderTitle"),e.attr(d,"class","ProviderTitle")},m(a,g){e.insert(a,t,g),e.append(t,o),e.insert(a,n,g);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(a,g);e.insert(a,p,g),e.insert(a,d,g),e.append(d,m),e.insert(a,_,g);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(a,g);e.insert(a,P,g)},p(a,g){if(g&16&&l!==(l=a[4]("popularProviders")+"")&&e.set_data(o,l),g&50){h=e.ensure_array_like(a[1]);let i;for(i=0;i<h.length;i+=1){const y=A(a,h,i);u[i]?u[i].p(y,g):(u[i]=q(y),u[i].c(),u[i].m(p.parentNode,p))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}if(g&16&&v!==(v=a[4]("otherProviders")+"")&&e.set_data(m,v),g&52){f=e.ensure_array_like(a[2]);let i;for(i=0;i<f.length;i+=1){const y=x(a,f,i);c[i]?c[i].p(y,g):(c[i]=M(y),c[i].c(),c[i].m(P.parentNode,P))}for(;i<c.length;i+=1)c[i].d(1);c.length=f.length}},d(a){a&&(e.detach(t),e.detach(n),e.detach(p),e.detach(d),e.detach(_),e.detach(P)),e.destroy_each(u,a),e.destroy_each(c,a)}}}function R(r){let t,l=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(l),e.attr(t,"class","Message")},m(n,p){e.insert(n,t,p),e.append(t,o)},p(n,p){p&16&&l!==(l=n[4]("loading")+"")&&e.set_data(o,l)},d(n){n&&e.detach(t)}}}function q(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y;function C(){return r[13](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(w,b){e.insert(w,t,b),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),i||(y=e.listen(t,"click",C),i=!0)},p(w,b){r=w,b&2&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),b&2&&n!==(n=r[21].name)&&e.attr(l,"alt",n),b&2&&m!==(m=r[21].name+"")&&e.set_data(_,m),b&2&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),b&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(w){w&&e.detach(t),i=!1,y()}}}function M(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,y,C;function w(){return r[14](r[21])}return{c(){t=e.element("div"),l=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(a),i=e.space(),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(b,k){e.insert(b,t,k),e.append(t,l),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),e.append(t,i),y||(C=e.listen(t,"click",w),y=!0)},p(b,k){r=b,k&4&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),k&4&&n!==(n=r[21].name)&&e.attr(l,"alt",n),k&4&&m!==(m=r[21].name+"")&&e.set_data(_,m),k&4&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),k&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(b){b&&e.detach(t),y=!1,C()}}}function U(r){let t;function l(p,d){return p[3]===!0?R:I}let o=l(r),n=o(r);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","CasinoProviders")},m(p,d){e.insert(p,t,d),n.m(t,null),r[15](t)},p(p,[d]){o===(o=l(p))&&n?n.p(p,d):(n.d(1),n=o(p),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(p){p&&e.detach(t),n.d(),r[15](null)}}}function G(r,t,l){let o;e.component_subscribe(r,T.$format,s=>l(4,o=s));let{endpoint:n=""}=t,{datasource:p=""}=t,{lang:d="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:m=""}=t,{translationurl:_=""}=t,{mbsource:P}=t,h=[],u=[],f=[],c=!1,a,g;const i=()=>{fetch(_).then(S=>S.json()).then(S=>{Object.keys(S).forEach(L=>{F(L,S[L])})}).catch(S=>{console.log(S)})};Object.keys(j).forEach(s=>{F(s,j[s])});const y=()=>{l(3,c=!0);const s=new URL(`${n}/v1/casino/vendors`);s.searchParams.append("datasource",p),s.searchParams.append("language",d),s.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(s).then(S=>S.json()).then(S=>{l(3,c=!1),h=S.items.map(O=>O),l(1,u=h.filter(O=>O.isTopVendor===!0)),l(2,f=h.filter(O=>O.isTopVendor===!1));let L=[];L=h.flatMap(O=>O.subVendors),f.push(...L.filter(O=>O.games.count>0))})},C=(s,S,L)=>{window.postMessage({type:"OpenGameProvider",providerId:s,providerName:S,providerLogo:L},window.location.href)},w=()=>{E(d)},b=s=>C(s.id,s.name,s.logo),k=s=>C(s.id,s.name,s.logo);function z(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(0,a)})}return r.$$set=s=>{"endpoint"in s&&l(6,n=s.endpoint),"datasource"in s&&l(7,p=s.datasource),"lang"in s&&l(8,d=s.lang),"clientstyling"in s&&l(9,v=s.clientstyling),"clientstylingurl"in s&&l(10,m=s.clientstylingurl),"translationurl"in s&&l(11,_=s.translationurl),"mbsource"in s&&l(12,P=s.mbsource)},r.$$.update=()=>{r.$$.dirty&448&&n&&d&&p&&y(),r.$$.dirty&256&&d&&w(),r.$$.dirty&2048&&_&&i(),r.$$.dirty&513&&v&&a&&e.setClientStyling(a,v),r.$$.dirty&1025&&m&&a&&e.setClientStylingURL(a,m),r.$$.dirty&4097&&P&&a&&e.setStreamStyling(a,`${P}.Style`,g)},[a,u,f,c,o,C,n,p,d,v,m,_,P,b,k,z]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,G,U,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11,mbsource:12},V)}get endpoint(){return this.$$.ctx[6]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[7]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(N,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=N;