@everymatrix/casino-categories-providers 1.87.26 → 1.87.28

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.
@@ -1,5 +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, j as C, m as S, g as v, p as $, u as ee, e as A, k as c, t as z, z as N, A as R, o as L, B as te, C as V, l as J, w as re, x as ie, y as le, c as se, v as oe } from "./CasinoCategories-CT9K9KfS.js";
2
- const U = {
1
+ import { a as Q, $ as W, S as X, i as Y, s as Z, f as M, b as $, n as I, d as O, e as L, g as S, k as v, h as ee, j as te, p as A, q as c, t as z, l as N, m as q, r as C, B as re, u as V, w as J, y as ie, z as le, A as se, c as oe, x as ae } from "./CasinoCategoriesProviders-39Ny5Xou.js";
2
+ const R = {
3
3
  en: {
4
4
  popularProviders: "Popular Suppliers",
5
5
  otherProviders: "Other Suppliers",
@@ -109,14 +109,14 @@ const U = {
109
109
  games: "games"
110
110
  }
111
111
  };
112
- function q(t, e) {
113
- K(t, e);
114
- }
115
- function ae(t) {
116
- Q.set(t);
112
+ function U(t, e) {
113
+ Q(t, e);
117
114
  }
118
115
  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%)}");
116
+ W.set(t);
117
+ }
118
+ function ue(t) {
119
+ $(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
120
  }
121
121
  function B(t, e, i) {
122
122
  const a = t.slice();
@@ -126,7 +126,7 @@ function G(t, e, i) {
126
126
  const a = t.slice();
127
127
  return a[21] = e[i], a;
128
128
  }
129
- function ue(t) {
129
+ function de(t) {
130
130
  let e, i = (
131
131
  /*$_*/
132
132
  t[4]("popularProviders") + ""
@@ -147,22 +147,22 @@ function ue(t) {
147
147
  g[r] = H(B(t, f, r));
148
148
  return {
149
149
  c() {
150
- e = S("h4"), a = z(i), o = L();
150
+ e = S("h4"), a = z(i), o = C();
151
151
  for (let r = 0; r < d.length; r += 1)
152
152
  d[r].c();
153
- u = L(), n = S("h4"), h = z(P), _ = L();
153
+ u = C(), n = S("h4"), h = z(P), _ = C();
154
154
  for (let r = 0; r < g.length; r += 1)
155
155
  g[r].c();
156
- b = te(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
156
+ b = re(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
157
157
  },
158
158
  m(r, p) {
159
- C(r, e, p), c(e, a), C(r, o, p);
159
+ L(r, e, p), c(e, a), L(r, o, p);
160
160
  for (let l = 0; l < d.length; l += 1)
161
161
  d[l] && d[l].m(r, p);
162
- C(r, u, p), C(r, n, p), c(n, h), C(r, _, p);
162
+ L(r, u, p), L(r, n, p), c(n, h), L(r, _, p);
163
163
  for (let l = 0; l < g.length; l += 1)
164
164
  g[l] && g[l].m(r, p);
165
- C(r, b, p);
165
+ L(r, b, p);
166
166
  },
167
167
  p(r, p) {
168
168
  if (p & /*$_*/
@@ -175,8 +175,8 @@ function ue(t) {
175
175
  );
176
176
  let l;
177
177
  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));
178
+ const w = G(r, m, l);
179
+ d[l] ? d[l].p(w, p) : (d[l] = D(w), d[l].c(), d[l].m(u.parentNode, u));
180
180
  }
181
181
  for (; l < d.length; l += 1)
182
182
  d[l].d(1);
@@ -192,8 +192,8 @@ function ue(t) {
192
192
  );
193
193
  let l;
194
194
  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));
195
+ const w = B(r, f, l);
196
+ g[l] ? g[l].p(w, p) : (g[l] = H(w), g[l].c(), g[l].m(b.parentNode, b));
197
197
  }
198
198
  for (; l < g.length; l += 1)
199
199
  g[l].d(1);
@@ -201,11 +201,11 @@ function ue(t) {
201
201
  }
202
202
  },
203
203
  d(r) {
204
- r && (O(e), O(o), O(u), O(n), O(_), O(b)), R(d, r), R(g, r);
204
+ r && (O(e), O(o), O(u), O(n), O(_), O(b)), q(d, r), q(g, r);
205
205
  }
206
206
  };
207
207
  }
208
- function de(t) {
208
+ function ge(t) {
209
209
  let e, i = (
210
210
  /*$_*/
211
211
  t[4]("loading") + ""
@@ -215,7 +215,7 @@ function de(t) {
215
215
  e = S("p"), a = z(i), v(e, "class", "Message");
216
216
  },
217
217
  m(o, u) {
218
- C(o, e, u), c(e, a);
218
+ L(o, e, u), c(e, a);
219
219
  },
220
220
  p(o, u) {
221
221
  u & /*$_*/
@@ -237,8 +237,8 @@ function D(t) {
237
237
  ), f, g, r = (
238
238
  /*$_*/
239
239
  t[4]("games") + ""
240
- ), p, l, y;
241
- function M() {
240
+ ), p, l, w;
241
+ function x() {
242
242
  return (
243
243
  /*click_handler*/
244
244
  t[13](
@@ -249,28 +249,28 @@ function D(t) {
249
249
  }
250
250
  return {
251
251
  c() {
252
- e = S("div"), i = S("img"), u = L(), n = S("div"), P = S("p"), _ = z(h), b = L(), m = S("p"), f = z(d), g = L(), p = z(r), V(i.src, a = /*provider*/
252
+ e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), V(i.src, a = /*provider*/
253
253
  t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
254
254
  t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
255
255
  },
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);
256
+ m(j, y) {
257
+ L(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", x), l = !0);
258
258
  },
259
- p(j, w) {
260
- t = j, w & /*topProviders*/
259
+ p(j, y) {
260
+ t = j, y & /*topProviders*/
261
261
  2 && !V(i.src, a = /*provider*/
262
- t[21].logo) && v(i, "src", a), w & /*topProviders*/
262
+ t[21].logo) && v(i, "src", a), y & /*topProviders*/
263
263
  2 && o !== (o = /*provider*/
264
- t[21].name) && v(i, "alt", o), w & /*topProviders*/
264
+ t[21].name) && v(i, "alt", o), y & /*topProviders*/
265
265
  2 && h !== (h = /*provider*/
266
- t[21].name + "") && A(_, h), w & /*topProviders*/
266
+ t[21].name + "") && A(_, h), y & /*topProviders*/
267
267
  2 && d !== (d = /*provider*/
268
- t[21].games.count + "") && A(f, d), w & /*$_*/
268
+ t[21].games.count + "") && A(f, d), y & /*$_*/
269
269
  16 && r !== (r = /*$_*/
270
270
  t[4]("games") + "") && A(p, r);
271
271
  },
272
272
  d(j) {
273
- j && O(e), l = !1, y();
273
+ j && O(e), l = !1, w();
274
274
  }
275
275
  };
276
276
  }
@@ -284,7 +284,7 @@ function H(t) {
284
284
  ), f, g, r = (
285
285
  /*$_*/
286
286
  t[4]("games") + ""
287
- ), p, l, y, M;
287
+ ), p, l, w, x;
288
288
  function j() {
289
289
  return (
290
290
  /*click_handler_1*/
@@ -296,15 +296,15 @@ function H(t) {
296
296
  }
297
297
  return {
298
298
  c() {
299
- e = S("div"), i = S("img"), u = L(), n = S("div"), P = S("p"), _ = z(h), b = L(), m = S("p"), f = z(d), g = L(), p = z(r), l = L(), V(i.src, a = /*provider*/
299
+ e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), l = C(), V(i.src, a = /*provider*/
300
300
  t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
301
301
  t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
302
302
  },
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);
303
+ m(y, F) {
304
+ L(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 || (x = J(e, "click", j), w = !0);
305
305
  },
306
- p(w, F) {
307
- t = w, F & /*otherProviders*/
306
+ p(y, F) {
307
+ t = y, F & /*otherProviders*/
308
308
  4 && !V(i.src, a = /*provider*/
309
309
  t[21].logo) && v(i, "src", a), F & /*otherProviders*/
310
310
  4 && o !== (o = /*provider*/
@@ -316,17 +316,17 @@ function H(t) {
316
316
  16 && r !== (r = /*$_*/
317
317
  t[4]("games") + "") && A(p, r);
318
318
  },
319
- d(w) {
320
- w && O(e), y = !1, M();
319
+ d(y) {
320
+ y && O(e), w = !1, x();
321
321
  }
322
322
  };
323
323
  }
324
- function ge(t) {
324
+ function pe(t) {
325
325
  let e;
326
326
  function i(u, n) {
327
327
  return (
328
328
  /*isLoading*/
329
- u[3] === !0 ? de : ue
329
+ u[3] === !0 ? ge : de
330
330
  );
331
331
  }
332
332
  let a = i(t), o = a(t);
@@ -335,7 +335,7 @@ function ge(t) {
335
335
  e = S("div"), o.c(), v(e, "class", "CasinoProviders");
336
336
  },
337
337
  m(u, n) {
338
- C(u, e, n), o.m(e, null), t[15](e);
338
+ L(u, e, n), o.m(e, null), t[15](e);
339
339
  },
340
340
  p(u, [n]) {
341
341
  a === (a = i(u)) && o ? o.p(u, n) : (o.d(1), o = a(u), o && (o.c(), o.m(e, null)));
@@ -347,45 +347,45 @@ function ge(t) {
347
347
  }
348
348
  };
349
349
  }
350
- function pe(t, e, i) {
350
+ function ce(t, e, i) {
351
351
  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 = () => {
352
+ ee(t, ae, (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, p;
354
+ const l = () => {
355
355
  fetch(_).then((k) => k.json()).then((k) => {
356
- Object.keys(k).forEach((x) => {
357
- q(x, k[x]);
356
+ Object.keys(k).forEach((E) => {
357
+ U(E, k[E]);
358
358
  });
359
359
  }).catch((k) => {
360
360
  console.log(k);
361
361
  });
362
362
  };
363
- Object.keys(U).forEach((s) => {
364
- q(s, U[s]);
363
+ Object.keys(R).forEach((s) => {
364
+ U(s, R[s]);
365
365
  });
366
- const l = () => {
366
+ const w = () => {
367
367
  i(3, g = !0);
368
368
  const s = new URL(`${o}/v1/casino/vendors`);
369
369
  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) => {
370
370
  i(3, g = !1), m = k.items.map((T) => T), i(1, d = m.filter((T) => T.isTopVendor === !0)), i(2, f = m.filter((T) => T.isTopVendor === !1));
371
- let x = [];
372
- x = m.flatMap((T) => T.subVendors), f.push(...x.filter((T) => T.games.count > 0));
371
+ let E = [];
372
+ E = m.flatMap((T) => T.subVendors), f.push(...E.filter((T) => T.games.count > 0));
373
373
  });
374
- }, y = (s, k, x) => {
374
+ }, x = (s, k, E) => {
375
375
  window.postMessage(
376
376
  {
377
377
  type: "OpenGameProvider",
378
378
  providerId: s,
379
379
  providerName: k,
380
- providerLogo: x
380
+ providerLogo: E
381
381
  },
382
382
  window.location.href
383
383
  );
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"](() => {
384
+ }, j = () => {
385
+ ne(n);
386
+ }, y = (s) => x(s.id, s.name, s.logo), F = (s) => x(s.id, s.name, s.logo);
387
+ function K(s) {
388
+ te[s ? "unshift" : "push"](() => {
389
389
  r = s, i(0, r);
390
390
  });
391
391
  }
@@ -393,19 +393,19 @@ function pe(t, e, i) {
393
393
  "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
394
  }, t.$$.update = () => {
395
395
  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`);
396
+ 448 && o && n && u && w(), t.$$.dirty & /*lang*/
397
+ 256 && n && j(), t.$$.dirty & /*translationurl*/
398
+ 2048 && _ && l(), t.$$.dirty & /*clientstyling, customStylingContainer*/
399
+ 513 && P && r && ie(r, P), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
400
+ 1025 && h && r && le(r, h), t.$$.dirty & /*mbsource, customStylingContainer*/
401
+ 4097 && b && r && se(r, `${b}.Style`, p);
402
402
  }, [
403
403
  r,
404
404
  d,
405
405
  f,
406
406
  g,
407
407
  a,
408
- y,
408
+ x,
409
409
  o,
410
410
  u,
411
411
  n,
@@ -413,19 +413,19 @@ function pe(t, e, i) {
413
413
  h,
414
414
  _,
415
415
  b,
416
- j,
417
- w,
418
- F
416
+ y,
417
+ F,
418
+ K
419
419
  ];
420
420
  }
421
- class ce extends W {
421
+ class me extends X {
422
422
  constructor(e) {
423
- super(), X(
423
+ super(), Y(
424
424
  this,
425
425
  e,
426
+ ce,
426
427
  pe,
427
- ge,
428
- Y,
428
+ Z,
429
429
  {
430
430
  endpoint: 6,
431
431
  datasource: 7,
@@ -435,53 +435,53 @@ class ce extends W {
435
435
  translationurl: 11,
436
436
  mbsource: 12
437
437
  },
438
- ne
438
+ ue
439
439
  );
440
440
  }
441
441
  get endpoint() {
442
442
  return this.$$.ctx[6];
443
443
  }
444
444
  set endpoint(e) {
445
- this.$$set({ endpoint: e }), E();
445
+ this.$$set({ endpoint: e }), M();
446
446
  }
447
447
  get datasource() {
448
448
  return this.$$.ctx[7];
449
449
  }
450
450
  set datasource(e) {
451
- this.$$set({ datasource: e }), E();
451
+ this.$$set({ datasource: e }), M();
452
452
  }
453
453
  get lang() {
454
454
  return this.$$.ctx[8];
455
455
  }
456
456
  set lang(e) {
457
- this.$$set({ lang: e }), E();
457
+ this.$$set({ lang: e }), M();
458
458
  }
459
459
  get clientstyling() {
460
460
  return this.$$.ctx[9];
461
461
  }
462
462
  set clientstyling(e) {
463
- this.$$set({ clientstyling: e }), E();
463
+ this.$$set({ clientstyling: e }), M();
464
464
  }
465
465
  get clientstylingurl() {
466
466
  return this.$$.ctx[10];
467
467
  }
468
468
  set clientstylingurl(e) {
469
- this.$$set({ clientstylingurl: e }), E();
469
+ this.$$set({ clientstylingurl: e }), M();
470
470
  }
471
471
  get translationurl() {
472
472
  return this.$$.ctx[11];
473
473
  }
474
474
  set translationurl(e) {
475
- this.$$set({ translationurl: e }), E();
475
+ this.$$set({ translationurl: e }), M();
476
476
  }
477
477
  get mbsource() {
478
478
  return this.$$.ctx[12];
479
479
  }
480
480
  set mbsource(e) {
481
- this.$$set({ mbsource: e }), E();
481
+ this.$$set({ mbsource: e }), M();
482
482
  }
483
483
  }
484
- se(ce, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
484
+ oe(me, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
485
485
  export {
486
- ce as default
486
+ me as default
487
487
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategoriesProviders-DqzzKa4_.cjs"),T={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 j(r,t){e.addMessages(r,t)}function E(r){e.$locale.set(r)}function N(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 F(r,t,l){const o=r.slice();return o[21]=t[l],o}function x(r,t,l){const o=r.slice();return o[21]=t[l],o}function V(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]=A(x(r,h,a));let f=e.ensure_array_like(r[2]),c=[];for(let a=0;a<f.length;a+=1)c[a]=q(F(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=x(a,h,i);u[i]?u[i].p(y,g):(u[i]=A(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=F(a,f,i);c[i]?c[i].p(y,g):(c[i]=q(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 I(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 A(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 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,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 R(r){let t;function l(p,d){return p[3]===!0?I:V}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 U(r,t,l){let o;e.component_subscribe(r,e.$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=>{j(L,S[L])})}).catch(S=>{console.log(S)})};Object.keys(T).forEach(s=>{j(s,T[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 M extends e.SvelteComponent{constructor(t){super(),e.init(this,t,U,R,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11,mbsource:12},N)}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(M,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=M;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesProviders-DBRRnd30.cjs")).then(({default:t})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesProviders-DqzzKa4_.cjs")).then(e=>e.CasinoCategoriesProviders_ce).then(({default:e})=>{!customElements.get("casino-categories-providers")&&customElements.define("casino-categories-providers",e.element)})}
@@ -1,16 +1,16 @@
1
1
  if (typeof window != "undefined") {
2
- let n = function(t) {
2
+ let n = function(e) {
3
3
  return function(...s) {
4
4
  try {
5
- return t.apply(this, s);
6
- } catch (e) {
7
- if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
5
+ return e.apply(this, s);
6
+ } catch (t) {
7
+ if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
8
8
  return !1;
9
- throw e;
9
+ throw t;
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoCategoriesProviders-D6Sm0rlt.js").then(({ default: t }) => {
14
- !customElements.get("casino-categories-providers") && customElements.define("casino-categories-providers", t.element);
13
+ customElements.define = n(customElements.define), import("../components/CasinoCategoriesProviders-BjN4wQLw.js").then((e) => e.C).then(({ default: e }) => {
14
+ !customElements.get("casino-categories-providers") && customElements.define("casino-categories-providers", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CasinoCategoriesProviders-CyDccbmP.js";
1
+ import { C as n } from "../components/CasinoCategoriesProviders-39Ny5Xou.js";
2
2
  function i(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-categories-providers",
3
- "version": "1.87.26",
3
+ "version": "1.87.28",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-categories-providers.cjs",
6
6
  "module": "esnext/casino-categories-providers.js",