@everymatrix/casino-most-played-section 1.94.112 → 1.94.113

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 (33) hide show
  1. package/components/{CasinoFilter-t2CEyrKW.js → CasinoFilter-CP0qfJti.js} +1 -1
  2. package/components/{CasinoFilter-Cr9B4Zsl.js → CasinoFilter-GuC5DTcc.js} +1 -1
  3. package/components/{CasinoFilter-BIdG9OaR.cjs → CasinoFilter-xoh-vVIh.cjs} +1 -1
  4. package/components/{CasinoGameThumbnail-SD7D0Q-3.cjs → CasinoGameThumbnail-B9PUgDgU.cjs} +1 -1
  5. package/components/{CasinoGameThumbnail-CQRdXF9-.js → CasinoGameThumbnail-CW6hbN7w.js} +3 -3
  6. package/components/{CasinoGameThumbnail-DjIxYEkG.js → CasinoGameThumbnail-D5IUlDsB.js} +3 -3
  7. package/components/{CasinoGamesCategorySection-VkYcrEch.js → CasinoGamesCategorySection-B0e3tS5m.js} +4 -4
  8. package/components/{CasinoGamesCategorySection-CWorB0zE.js → CasinoGamesCategorySection-Dgv-rUKk.js} +4 -4
  9. package/components/{CasinoGamesCategorySection-C7AkaxpY.cjs → CasinoGamesCategorySection-krTMM8Wl.cjs} +2 -2
  10. package/components/{CasinoMostPlayedSection-Bik5aMJZ.cjs → CasinoMostPlayedSection-Bw61IMuN.cjs} +4 -4
  11. package/components/{CasinoMostPlayedSection-wwY8jPJY.js → CasinoMostPlayedSection-LdBSfQmA.js} +25 -27
  12. package/components/{CasinoMostPlayedSection-BxWxObpE.js → CasinoMostPlayedSection-Yb2MH92F.js} +2 -2
  13. package/components/{CasinoSort-IscG-suj.js → CasinoSort-B-bcCY-O.js} +1 -1
  14. package/components/{CasinoSort-Bx6ZL3lO.js → CasinoSort-BTml9rv8.js} +1 -1
  15. package/components/{CasinoSort-Bo3Ztjy1.cjs → CasinoSort-Body1ZAe.cjs} +1 -1
  16. package/es2015/casino-most-played-section.cjs +1 -1
  17. package/es2015/casino-most-played-section.js +1 -1
  18. package/esnext/casino-most-played-section.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-97d17652-BeQGJyxy.js +532 -0
  21. package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-Ce2P8K1l.js} +176 -170
  22. package/stencil/index-97d17652-QrAXVnlo.cjs +1 -0
  23. package/stencil/{ui-image-BX-FBhad.cjs → ui-image-DYxxHglY.cjs} +1 -1
  24. package/stencil/{ui-image-Ch-GHki1.js → ui-image-Du28hUkG.js} +1 -1
  25. package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Kp-i1Epn.js} +1 -1
  26. package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CEPR_2Zl.js} +1 -1
  27. package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-CynWE8qT.cjs} +1 -1
  28. package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-DdUCzkcr.js} +1 -1
  29. package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-C0sJC5CL.cjs} +1 -1
  30. package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-Do1rIyeJ.js} +2 -2
  31. package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-N1zHirfP.js} +2 -2
  32. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  33. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
@@ -672,7 +672,7 @@ function Je(e, t, r) {
672
672
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
673
673
  return e.concat(s || t);
674
674
  }
675
- function j(e) {
675
+ function F(e) {
676
676
  return typeof e == "function";
677
677
  }
678
678
  function Yt(e) {
@@ -725,7 +725,7 @@ var Ae = function() {
725
725
  else
726
726
  o.remove(this);
727
727
  var l = this.initialTeardown;
728
- if (j(l))
728
+ if (F(l))
729
729
  try {
730
730
  l();
731
731
  } catch (v) {
@@ -788,10 +788,10 @@ var Ae = function() {
788
788
  }(), e;
789
789
  }(), qt = Ae.EMPTY;
790
790
  function Kt(e) {
791
- return e instanceof Ae || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
791
+ return e instanceof Ae || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
792
792
  }
793
793
  function Et(e) {
794
- j(e) ? e() : e.unsubscribe();
794
+ F(e) ? e() : e.unsubscribe();
795
795
  }
796
796
  var on = {
797
797
  Promise: void 0
@@ -882,7 +882,7 @@ var er = function(e) {
882
882
  pe(t, e);
883
883
  function t(r, n, i) {
884
884
  var s = e.call(this) || this, o;
885
- return j(r) || !r ? o = {
885
+ return F(r) || !r ? o = {
886
886
  next: r != null ? r : void 0,
887
887
  error: n != null ? n : void 0,
888
888
  complete: i != null ? i : void 0
@@ -979,7 +979,7 @@ function wt(e) {
979
979
  return (t = e != null ? e : on.Promise) !== null && t !== void 0 ? t : Promise;
980
980
  }
981
981
  function pn(e) {
982
- return e && j(e.next) && j(e.error) && j(e.complete);
982
+ return e && F(e.next) && F(e.error) && F(e.complete);
983
983
  }
984
984
  function bn(e) {
985
985
  return e && e instanceof er || pn(e) && Kt(e);
@@ -4103,11 +4103,11 @@ function Bi(e, t) {
4103
4103
  n = void 0;
4104
4104
  return n;
4105
4105
  }
4106
- const k = {}, Oi = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), _r = (e, t) => {
4106
+ const j = {}, Oi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), _r = (e, t) => {
4107
4107
  if (t == null)
4108
4108
  return;
4109
- if (t in k && e in k[t])
4110
- return k[t][e];
4109
+ if (t in j && e in j[t])
4110
+ return j[t][e];
4111
4111
  const r = Ce(t);
4112
4112
  for (let n = 0; n < r.length; n++) {
4113
4113
  const i = r[n], s = Ci(i, e);
@@ -4140,7 +4140,7 @@ function Li(e) {
4140
4140
  }
4141
4141
  }
4142
4142
  function xr(e, ...t) {
4143
- delete k[e], be.update((r) => (r[e] = Rn.all([r[e] || {}, ...t]), r));
4143
+ delete j[e], be.update((r) => (r[e] = Rn.all([r[e] || {}, ...t]), r));
4144
4144
  }
4145
4145
  ie(
4146
4146
  [be],
@@ -4521,7 +4521,7 @@ if (typeof window != "undefined") {
4521
4521
  }
4522
4522
  };
4523
4523
  };
4524
- customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-CWorB0zE.js").then((t) => t.C).then(({ default: t }) => {
4524
+ customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-Dgv-rUKk.js").then((t) => t.C).then(({ default: t }) => {
4525
4525
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
4526
4526
  });
4527
4527
  }
@@ -4808,8 +4808,8 @@ function _s(e, t, r) {
4808
4808
  let { endpoint: i = "" } = t, { datasource: s = "" } = t, { currency: o = "" } = t, { lang: a = "" } = t, { session: h = "" } = t, { userid: u = "" } = t, { mbsource: l } = t, { clientstyling: m = "" } = t, { clientstylingurl: c = "" } = t, { livecasino: d = "false" } = t, { integratedgameframemobile: b = "false" } = t, { integratedgameframedesktop: v = "false" } = t, { gamepagemodalurl: T = "false" } = t, { showgamename: L = "" } = t, { visiblegames: B } = t, { favorites: P = "" } = t, { translationurl: N = "" } = t, { casinomygames: O = "false" } = t, { mostplayedperiod: I = "Last30Days" } = t, { mostplayedrounds: _ = "10" } = t, { fetchviaevent: C = "true" } = t, M = window.navigator.userAgent;
4809
4809
  const W = () => {
4810
4810
  fetch(N).then((w) => w.json()).then((w) => {
4811
- Object.keys(w).forEach(($) => {
4812
- Ft($, w[$]);
4811
+ Object.keys(w).forEach((k) => {
4812
+ Ft(k, w[k]);
4813
4813
  });
4814
4814
  }).catch((w) => {
4815
4815
  console.log(w);
@@ -4821,16 +4821,14 @@ function _s(e, t, r) {
4821
4821
  let ge = [], ft, mt = !1, U, Ar;
4822
4822
  const Br = (f) => {
4823
4823
  let w = new URL(`${i}/v1/player/${u}/games/most-played`);
4824
- f.limit && w.searchParams.append("limit", f.limit), f.order && w.searchParams.append("order", f.order), w.searchParams.append("expand", "games"), w.searchParams.append("period", I);
4825
- let $ = f.device;
4826
- return $ ? $ === "PC" ? w.searchParams.append("device", "Desktop") : w.searchParams.append("device", "Mobile") : w.searchParams.append("device", "All"), f.rounds && w.searchParams.append("rounds", f.rounds), ft = d ? w : w.href, new Promise((D, ae) => {
4827
- fetch(ft).then((F) => F.json()).then((F) => {
4828
- F.items = F.items.filter((Lr) => {
4824
+ return f.limit && w.searchParams.append("limit", f.limit), f.order && w.searchParams.append("order", f.order), w.searchParams.append("expand", "games"), w.searchParams.append("period", I), f.device === "PC" ? w.searchParams.append("device", "Desktop") : w.searchParams.append("device", "Mobile"), f.rounds && w.searchParams.append("rounds", f.rounds), ft = d ? w : w.href, new Promise(($, ae) => {
4825
+ fetch(ft).then((D) => D.json()).then((D) => {
4826
+ D.items = D.items.filter((Lr) => {
4829
4827
  let dt = !0;
4830
- return Lr.gameCode == "OddsMatrix2" && (F.count--, dt = !1), dt;
4831
- }), D(F);
4832
- }).catch((F) => {
4833
- console.error(F), ae(F);
4828
+ return Lr.gameCode == "OddsMatrix2" && (D.count--, dt = !1), dt;
4829
+ }), $(D);
4830
+ }).catch((D) => {
4831
+ console.error(D), ae(D);
4834
4832
  });
4835
4833
  });
4836
4834
  }, Or = () => {
@@ -4841,11 +4839,11 @@ function _s(e, t, r) {
4841
4839
  }).then((f) => {
4842
4840
  if (f.count > 0) {
4843
4841
  let w = [];
4844
- f.items.forEach(($) => {
4845
- let D = new URL(`${i}/v1/casino/games/${$.gameId}`);
4846
- D.searchParams.append("datasource", s), d ? w.push(fetch(D.href).then((ae) => ae.json())) : w.push(fetch(D.href).then((ae) => ae.json()));
4847
- }), Promise.all(w).then(($) => {
4848
- ge = $.filter((D) => !("error" in D)).map((D) => D[0]), O === "true" && (ge = ge.slice(0, JSON.parse(B))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: ge }, window.location.href);
4842
+ f.items.forEach((k) => {
4843
+ let $ = new URL(`${i}/v1/casino/games/${k.gameId}`);
4844
+ $.searchParams.append("datasource", s), d ? w.push(fetch($.href).then((ae) => ae.json())) : w.push(fetch($.href).then((ae) => ae.json()));
4845
+ }), Promise.all(w).then((k) => {
4846
+ ge = k.filter(($) => !("error" in $)).map(($) => $[0]), O === "true" && (ge = ge.slice(0, JSON.parse(B))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: ge }, window.location.href);
4849
4847
  });
4850
4848
  } else
4851
4849
  r(20, mt = !0);
@@ -4484,7 +4484,7 @@ if (typeof window < "u") {
4484
4484
  }
4485
4485
  };
4486
4486
  };
4487
- customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-VkYcrEch.js").then((t) => t.C).then(({ default: t }) => {
4487
+ customElements.define = e(customElements.define), import("./CasinoGamesCategorySection-B0e3tS5m.js").then((t) => t.C).then(({ default: t }) => {
4488
4488
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", t.element);
4489
4489
  });
4490
4490
  }
@@ -4786,7 +4786,7 @@ function us(e, t, r) {
4786
4786
  let w = new URL(`${i}/v1/player/${u}/games/most-played`);
4787
4787
  f.limit && w.searchParams.append("limit", f.limit), f.order && w.searchParams.append("order", f.order), w.searchParams.append("expand", "games"), w.searchParams.append("period", L);
4788
4788
  let U = f.device;
4789
- return U ? U === "PC" ? w.searchParams.append("device", "Desktop") : w.searchParams.append("device", "Mobile") : w.searchParams.append("device", "All"), f.rounds && w.searchParams.append("rounds", f.rounds), lt = d ? w : w.href, new Promise(($, oe) => {
4789
+ return U && (U === "PC" ? w.searchParams.append("device", "Desktop") : w.searchParams.append("device", "Mobile")), f.rounds && w.searchParams.append("rounds", f.rounds), lt = d ? w : w.href, new Promise(($, oe) => {
4790
4790
  fetch(lt).then((D) => D.json()).then((D) => {
4791
4791
  D.items = D.items.filter((Hr) => {
4792
4792
  let ft = !0;
@@ -1,4 +1,4 @@
1
- import { $ as q, M as et, a as rt, S as ot, i as nt, s as at, f as M, b as lt, n as U, d as P, e as R, g as m, j as st, k as it, l as ct, x as G, B as dt, v as K, h as r, q as s, C as tt, D as Z, r as B, w as Q, F as pt, G as gt, H as ut, c as ht, E as mt } from "./CasinoMostPlayedSection-BxWxObpE.js";
1
+ import { $ as q, M as et, a as rt, S as ot, i as nt, s as at, f as M, b as lt, n as U, d as P, e as R, g as m, j as st, k as it, l as ct, x as G, B as dt, v as K, h as r, q as s, C as tt, D as Z, r as B, w as Q, F as pt, G as gt, H as ut, c as ht, E as mt } from "./CasinoMostPlayedSection-Yb2MH92F.js";
2
2
  function ft({ withLocale: t, translations: e }) {
3
3
  q.subscribe((o) => {
4
4
  o == null && (et.set(e), q.set(t));
@@ -1,4 +1,4 @@
1
- import { $ as q, M as et, a as rt, S as ot, i as nt, s as at, f as M, b as st, n as U, d as P, c as R, e as m, h as lt, j as it, k as ct, w as G, A as dt, u as K, g as r, m as l, B as tt, C as Z, q as B, v as Q, D as pt, E as gt, F as ut, G as ht, H as mt } from "./CasinoMostPlayedSection-wwY8jPJY.js";
1
+ import { $ as q, M as et, a as rt, S as ot, i as nt, s as at, f as M, b as st, n as U, d as P, c as R, e as m, h as lt, j as it, k as ct, w as G, A as dt, u as K, g as r, m as l, B as tt, C as Z, q as B, v as Q, D as pt, E as gt, F as ut, G as ht, H as mt } from "./CasinoMostPlayedSection-LdBSfQmA.js";
2
2
  function ft({ withLocale: t, translations: e }) {
3
3
  q.subscribe((o) => {
4
4
  o == null && (et.set(e), q.set(t));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoMostPlayedSection-Bik5aMJZ.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function E(e,r){t.addMessages(e,r)}const j={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-p37neu",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function D(e,r,n){const a=e.slice();return a[23]=r[n],a}function q(e){let r,n,a,l,s,p,h,d,x,y,u,f=e[4]("sortby")+"",b,w,S,B,A=(e[3]||e[4]("all"))+"",I,O,C,_,z,F,N,o,c,v,M,H,L,Z=t.ensure_array_like(Object.values(e[5])),m=[];for(let i=0;i<Z.length;i+=1)m[i]=P(D(e,Z,i));return{c(){r=t.element("div"),n=t.element("div"),a=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),p=t.svg_element("path"),h=t.svg_element("path"),d=t.svg_element("path"),x=t.space(),y=t.element("div"),u=t.element("span"),b=t.text(f),w=t.space(),S=t.element("div"),B=t.element("span"),I=t.text(A),O=t.space(),C=t.element("span"),_=t.svg_element("svg"),z=t.svg_element("path"),o=t.space(),c=t.element("div"),v=t.element("ul");for(let i=0;i<m.length;i+=1)m[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(u,"class","SorterName"),t.attr(S,"class","SorterValueContainer"),t.attr(y,"class","SorterTextContainer"),t.attr(a,"class","SorterMainArea"),t.attr(z,"id","arrow"),t.attr(z,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(z,"transform","translate(-274.511 -441.088)"),t.attr(z,"fill","#d1d1d1"),t.attr(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(C,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(v,"class","SorterDropdown"),t.attr(c,"class",M="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,k){t.insert(i,r,k),t.append(r,n),t.append(n,a),t.append(a,l),t.append(l,s),t.append(s,p),t.append(s,h),t.append(s,d),t.append(a,x),t.append(a,y),t.append(y,u),t.append(u,b),t.append(y,w),t.append(y,S),t.append(S,B),t.append(B,I),t.append(n,O),t.append(n,C),t.append(C,_),t.append(_,z),t.append(r,o),t.append(r,c),t.append(c,v);for(let g=0;g<m.length;g+=1)m[g]&&m[g].m(v,null);H||(L=t.listen(n,"click",e[14]),H=!0)},p(i,k){if(k&16&&f!==(f=i[4]("sortby")+"")&&t.set_data(b,f),k&24&&A!==(A=(i[3]||i[4]("all"))+"")&&t.set_data(I,A),k&2&&F!==(F="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(C,"class",F),k&2&&N!==(N="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),k&120){Z=t.ensure_array_like(Object.values(i[5]));let g;for(g=0;g<Z.length;g+=1){const T=D(i,Z,g);m[g]?m[g].p(T,k):(m[g]=P(T),m[g].c(),m[g].m(v,null))}for(;g<m.length;g+=1)m[g].d(1);m.length=Z.length}k&2&&M!==(M="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(c,"class",M)},d(i){i&&t.detach(r),t.destroy_each(m,i),H=!1,L()}}}function P(e){let r,n,a,l,s,p,h,d,x,y,u;function f(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),a=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,x=t.space(),t.attr(a,"type","radio"),t.attr(a,"name","radio"),a.value=e[23],a.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(p,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(b,w){t.insert(b,r,w),t.append(r,n),t.append(n,a),t.append(n,s),t.append(n,p),t.append(n,h),t.append(n,d),t.append(r,x),y||(u=t.listen(a,"click",f),y=!0)},p(b,w){e=b,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(a.checked=l)},d(b){b&&t.detach(r),y=!1,u()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let a=n(e),l=a&&a(e);return{c(){r=t.element("div"),l&&l.c()},m(s,p){t.insert(s,r,p),l&&l.m(r,null),e[16](r)},p(s,[p]){a===(a=n(s))&&l?l.p(s,p):(l&&l.d(1),l=a&&a(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[16](null)}}}function G(e,r,n){let a;t.component_subscribe(e,t.$format,o=>n(4,a=o));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:p=""}=r,{clientstylingurl:h=""}=r,{categoryid:d=""}=r,{mbsource:x}=r,y,u,f=!1,b=!0,w="",S="All";V({withLocale:"en",translations:{}});const B=()=>{fetch(s).then(c=>c.json()).then(c=>{Object.keys(c).forEach(v=>{E(v,c[v])})}).catch(c=>{console.log(c)})};Object.keys(j).forEach(o=>{E(o,j[o])});const A={All:a("all"),name:a("az"),isNew:a("newest"),"advancedTags(name(hot))":a("hottest")},I=()=>{var c;n(3,S="All"),n(2,b=!1),n(1,f=!1);let o=(c=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:c[d];o?n(3,S=o):n(3,S="All"),n(3,S=A[o])},O=o=>{n(3,S=o);let c=localStorage.getItem("vendorSortingBy");w=o;for(let v in A)if(A[v]===o){w=v;break}c==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:w})):(c=JSON.parse(c),c[d]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(c))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:d},window.location.href),n(1,f=!f)},C=()=>{n(1,f=!f),window.postMessage({type:"SortingOpened"},window.location.href)},_=o=>{o.data.type=="FilterOpened"&&n(1,f=!1)};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));const z=()=>C(),F=o=>O(o);function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return e.$$set=o=>{"lang"in o&&n(8,l=o.lang),"translationurl"in o&&n(9,s=o.translationurl),"clientstyling"in o&&n(10,p=o.clientstyling),"clientstylingurl"in o&&n(11,h=o.clientstylingurl),"categoryid"in o&&n(12,d=o.categoryid),"mbsource"in o&&n(13,x=o.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&I(),e.$$.dirty&1025&&p&&u&&t.setClientStyling(u,p),e.$$.dirty&2049&&h&&u&&t.setClientStylingURL(u,h),e.$$.dirty&8193&&u&&t.setStreamStyling(u,`${x}.Style`,y),e.$$.dirty&512&&s&&B()},[u,f,b,S,a,A,O,C,l,s,p,h,d,x,z,F,N]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoMostPlayedSection-Bw61IMuN.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function E(e,r){t.addMessages(e,r)}const j={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-p37neu",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function D(e,r,n){const a=e.slice();return a[23]=r[n],a}function q(e){let r,n,a,l,s,p,h,d,x,y,u,f=e[4]("sortby")+"",b,w,S,B,A=(e[3]||e[4]("all"))+"",I,O,C,_,z,F,N,o,c,v,M,H,L,Z=t.ensure_array_like(Object.values(e[5])),m=[];for(let i=0;i<Z.length;i+=1)m[i]=P(D(e,Z,i));return{c(){r=t.element("div"),n=t.element("div"),a=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),p=t.svg_element("path"),h=t.svg_element("path"),d=t.svg_element("path"),x=t.space(),y=t.element("div"),u=t.element("span"),b=t.text(f),w=t.space(),S=t.element("div"),B=t.element("span"),I=t.text(A),O=t.space(),C=t.element("span"),_=t.svg_element("svg"),z=t.svg_element("path"),o=t.space(),c=t.element("div"),v=t.element("ul");for(let i=0;i<m.length;i+=1)m[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(u,"class","SorterName"),t.attr(S,"class","SorterValueContainer"),t.attr(y,"class","SorterTextContainer"),t.attr(a,"class","SorterMainArea"),t.attr(z,"id","arrow"),t.attr(z,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(z,"transform","translate(-274.511 -441.088)"),t.attr(z,"fill","#d1d1d1"),t.attr(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(C,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(v,"class","SorterDropdown"),t.attr(c,"class",M="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,k){t.insert(i,r,k),t.append(r,n),t.append(n,a),t.append(a,l),t.append(l,s),t.append(s,p),t.append(s,h),t.append(s,d),t.append(a,x),t.append(a,y),t.append(y,u),t.append(u,b),t.append(y,w),t.append(y,S),t.append(S,B),t.append(B,I),t.append(n,O),t.append(n,C),t.append(C,_),t.append(_,z),t.append(r,o),t.append(r,c),t.append(c,v);for(let g=0;g<m.length;g+=1)m[g]&&m[g].m(v,null);H||(L=t.listen(n,"click",e[14]),H=!0)},p(i,k){if(k&16&&f!==(f=i[4]("sortby")+"")&&t.set_data(b,f),k&24&&A!==(A=(i[3]||i[4]("all"))+"")&&t.set_data(I,A),k&2&&F!==(F="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(C,"class",F),k&2&&N!==(N="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),k&120){Z=t.ensure_array_like(Object.values(i[5]));let g;for(g=0;g<Z.length;g+=1){const T=D(i,Z,g);m[g]?m[g].p(T,k):(m[g]=P(T),m[g].c(),m[g].m(v,null))}for(;g<m.length;g+=1)m[g].d(1);m.length=Z.length}k&2&&M!==(M="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(c,"class",M)},d(i){i&&t.detach(r),t.destroy_each(m,i),H=!1,L()}}}function P(e){let r,n,a,l,s,p,h,d,x,y,u;function f(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),a=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,x=t.space(),t.attr(a,"type","radio"),t.attr(a,"name","radio"),a.value=e[23],a.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(p,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(b,w){t.insert(b,r,w),t.append(r,n),t.append(n,a),t.append(n,s),t.append(n,p),t.append(n,h),t.append(n,d),t.append(r,x),y||(u=t.listen(a,"click",f),y=!0)},p(b,w){e=b,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(a.checked=l)},d(b){b&&t.detach(r),y=!1,u()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let a=n(e),l=a&&a(e);return{c(){r=t.element("div"),l&&l.c()},m(s,p){t.insert(s,r,p),l&&l.m(r,null),e[16](r)},p(s,[p]){a===(a=n(s))&&l?l.p(s,p):(l&&l.d(1),l=a&&a(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[16](null)}}}function G(e,r,n){let a;t.component_subscribe(e,t.$format,o=>n(4,a=o));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:p=""}=r,{clientstylingurl:h=""}=r,{categoryid:d=""}=r,{mbsource:x}=r,y,u,f=!1,b=!0,w="",S="All";V({withLocale:"en",translations:{}});const B=()=>{fetch(s).then(c=>c.json()).then(c=>{Object.keys(c).forEach(v=>{E(v,c[v])})}).catch(c=>{console.log(c)})};Object.keys(j).forEach(o=>{E(o,j[o])});const A={All:a("all"),name:a("az"),isNew:a("newest"),"advancedTags(name(hot))":a("hottest")},I=()=>{var c;n(3,S="All"),n(2,b=!1),n(1,f=!1);let o=(c=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:c[d];o?n(3,S=o):n(3,S="All"),n(3,S=A[o])},O=o=>{n(3,S=o);let c=localStorage.getItem("vendorSortingBy");w=o;for(let v in A)if(A[v]===o){w=v;break}c==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:w})):(c=JSON.parse(c),c[d]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(c))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:d},window.location.href),n(1,f=!f)},C=()=>{n(1,f=!f),window.postMessage({type:"SortingOpened"},window.location.href)},_=o=>{o.data.type=="FilterOpened"&&n(1,f=!1)};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));const z=()=>C(),F=o=>O(o);function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return e.$$set=o=>{"lang"in o&&n(8,l=o.lang),"translationurl"in o&&n(9,s=o.translationurl),"clientstyling"in o&&n(10,p=o.clientstyling),"clientstylingurl"in o&&n(11,h=o.clientstylingurl),"categoryid"in o&&n(12,d=o.categoryid),"mbsource"in o&&n(13,x=o.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&I(),e.$$.dirty&1025&&p&&u&&t.setClientStyling(u,p),e.$$.dirty&2049&&h&&u&&t.setClientStylingURL(u,h),e.$$.dirty&8193&&u&&t.setStreamStyling(u,`${x}.Style`,y),e.$$.dirty&512&&s&&B()},[u,f,b,S,a,A,O,C,l,s,p,h,d,x,z,F,N]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}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=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-Bik5aMJZ.cjs")).then(e=>e.CasinoMostPlayedSection_ce).then(({default:e})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}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=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-Bw61IMuN.cjs")).then(e=>e.CasinoMostPlayedSection_ce).then(({default:e})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-wwY8jPJY.js").then((e) => e.P).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-LdBSfQmA.js").then((e) => e.P).then(({ default: e }) => {
14
14
  !customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as n } from "../components/CasinoMostPlayedSection-BxWxObpE.js";
1
+ import { P as n } from "../components/CasinoMostPlayedSection-Yb2MH92F.js";
2
2
  function o(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-most-played-section",
3
- "version": "1.94.112",
3
+ "version": "1.94.113",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-most-played-section.cjs",
6
6
  "module": "esnext/casino-most-played-section.js",