@everymatrix/casino-most-played-section 1.50.0 → 1.51.0

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,4 +1,4 @@
1
- import { a as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, h as L, k as M, l as Y, n as H, o as S, p as le, w as re, x as me, F as n, t as ge, m as ce, A as de } from "./CasinoFilter-CVuKaCwW.js";
1
+ import { a as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, h as L, k as M, l as Y, n as H, o as S, p as le, w as me, x as re, F as n, t as ge, m as ce, A as de } from "./CasinoFilter-XACP-J3y.js";
2
2
  function I(a, e) {
3
3
  ee(a, e);
4
4
  }
@@ -56,6 +56,9 @@ const J = {
56
56
  },
57
57
  "es-mx": {
58
58
  noGames: "No hay juegos en los más jugados"
59
+ },
60
+ "en-us": {
61
+ noGames: "No games in most played"
59
62
  }
60
63
  };
61
64
  if (typeof window != "undefined") {
@@ -70,7 +73,7 @@ if (typeof window != "undefined") {
70
73
  }
71
74
  };
72
75
  };
73
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-Ch_YioYX.js").then(({ default: e }) => {
76
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-Dn0LaRd5.js").then(({ default: e }) => {
74
77
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
75
78
  });
76
79
  }
@@ -290,16 +293,16 @@ function ye(a) {
290
293
  c() {
291
294
  e = N("p"), i = ge(s), L(e, "class", "SearchLoading");
292
295
  },
293
- m(m, r) {
294
- M(m, e, r), Y(e, i);
296
+ m(r, m) {
297
+ M(r, e, m), Y(e, i);
295
298
  },
296
- p(m, r) {
297
- r[0] & /*$_*/
299
+ p(r, m) {
300
+ m[0] & /*$_*/
298
301
  524288 && s !== (s = /*$_*/
299
- m[19]("noGames") + "") && ce(i, s);
302
+ r[19]("noGames") + "") && ce(i, s);
300
303
  },
301
- d(m) {
302
- m && S(e);
304
+ d(r) {
305
+ r && S(e);
303
306
  }
304
307
  };
305
308
  }
@@ -311,28 +314,28 @@ function ve(a) {
311
314
  g[18] ? ye : he
312
315
  );
313
316
  }
314
- let m = i(a), r = m(a);
317
+ let r = i(a), m = r(a);
315
318
  return {
316
319
  c() {
317
- e = N("div"), s = N("div"), r.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
320
+ e = N("div"), s = N("div"), m.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
318
321
  },
319
322
  m(g, c) {
320
- M(g, e, c), Y(e, s), r.m(s, null), a[23](e);
323
+ M(g, e, c), Y(e, s), m.m(s, null), a[23](e);
321
324
  },
322
325
  p(g, c) {
323
- m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
326
+ r === (r = i(g)) && m ? m.p(g, c) : (m.d(1), m = r(g), m && (m.c(), m.m(s, null)));
324
327
  },
325
328
  i: H,
326
329
  o: H,
327
330
  d(g) {
328
- g && S(e), r.d(), a[23](null);
331
+ g && S(e), m.d(), a[23](null);
329
332
  }
330
333
  };
331
334
  }
332
335
  function be(a, e, s) {
333
336
  let i;
334
337
  le(a, de, (t) => s(19, i = t));
335
- let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: A = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: p = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: T = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: R = "true" } = e, B = window.navigator.userAgent;
338
+ let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: p = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: A = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: T = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: R = "true" } = e, B = window.navigator.userAgent;
336
339
  const K = () => {
337
340
  fetch(k).then((o) => o.json()).then((o) => {
338
341
  Object.keys(o).forEach((d) => {
@@ -347,7 +350,7 @@ function be(a, e, s) {
347
350
  });
348
351
  let G = [], U, z = !1, h;
349
352
  const Q = (t) => {
350
- let o = new URL(`${m}/v1/player/${v}/games/most-played`);
353
+ let o = new URL(`${r}/v1/player/${v}/games/most-played`);
351
354
  t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
352
355
  let d = t.device;
353
356
  return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), U = _ ? o : o.href, new Promise((u, y) => {
@@ -363,14 +366,14 @@ function be(a, e, s) {
363
366
  }, V = () => {
364
367
  Q({
365
368
  limit: 100,
366
- device: re(B),
369
+ device: me(B),
367
370
  rounds: E
368
371
  }).then((t) => {
369
372
  if (t.count > 0) {
370
373
  let o = [];
371
374
  t.items.forEach((d) => {
372
- let u = new URL(`${m}/v1/casino/games/${d.gameId}`);
373
- u.searchParams.append("datasource", r), _ ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
375
+ let u = new URL(`${r}/v1/casino/games/${d.gameId}`);
376
+ u.searchParams.append("datasource", m), _ ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
374
377
  }), Promise.all(o).then((d) => {
375
378
  G = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
376
379
  });
@@ -394,30 +397,30 @@ function be(a, e, s) {
394
397
  });
395
398
  };
396
399
  function x(t) {
397
- me[t ? "unshift" : "push"](() => {
400
+ re[t ? "unshift" : "push"](() => {
398
401
  h = t, s(17, h);
399
402
  });
400
403
  }
401
404
  return a.$$set = (t) => {
402
- "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, A = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, p = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, D = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, T = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, E = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
405
+ "endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, p = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, A = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, D = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, T = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, E = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
403
406
  }, a.$$.update = () => {
404
407
  a.$$.dirty[0] & /*endpoint, userid, lang*/
405
- 41 && m && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
408
+ 41 && r && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
406
409
  131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
407
410
  131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
408
411
  1048576 && k && K(), a.$$.dirty[0] & /*lang*/
409
412
  8 && c && W();
410
413
  }, [
411
- m,
412
414
  r,
415
+ m,
413
416
  g,
414
417
  c,
415
- A,
418
+ p,
416
419
  v,
417
420
  b,
418
421
  w,
419
422
  _,
420
- p,
423
+ A,
421
424
  F,
422
425
  D,
423
426
  O,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-tzredHGl.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-CQQHka3g.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function W(n){t.append_styles(n,"svelte-14zqglz","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:_=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:E="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:S=""}=e,{visiblegames:k}=e,{favorites:p=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:A="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let G=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${_}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,h)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let T=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,T=!1),T}),d(g)}).catch(g=>{console.error(g),h(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(h=>h.json())):l.push(fetch(d.href).then(h=>h.json()))}),Promise.all(l).then(u=>{G=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(G=G.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:G},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,_=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,E=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,S=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,p=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,A=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,_,y,v,b,E,L,M,S,k,p,N,A,f,O,i,w,P,C,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
@@ -1,4 +1,4 @@
1
- import { $ as q, I as te, a as re, S as oe, i as ne, f as D, c as ae, s as le, b as se, e as f, k as R, n as U, o as P, p as ie, q as ce, x as de, y as G, C as N, d as Z, t as K, h as r, l as s, r as ee, m as Q, z as pe, A as ge } from "./CasinoFilter-CVuKaCwW.js";
1
+ import { $ as q, I as te, a as re, S as oe, i as ne, f as D, c as ae, s as le, b as se, e as f, k as R, n as U, o as P, p as ie, q as ce, x as de, y as G, C as N, d as Z, t as K, h as r, l as s, r as ee, m as Q, z as pe, A as ge } from "./CasinoFilter-XACP-J3y.js";
2
2
  function ue({ withLocale: e, translations: t }) {
3
3
  q.subscribe((o) => {
4
4
  o == null && (te.set(t), q.set(e));
@@ -126,6 +126,13 @@ const X = {
126
126
  az: "A-Z",
127
127
  newest: "Más nuevos",
128
128
  hottest: "Más calientes"
129
+ },
130
+ "en-us": {
131
+ sortby: "Sort by:",
132
+ all: "All",
133
+ az: "A-Z",
134
+ newest: "Newest",
135
+ hottest: "Hottest"
129
136
  }
130
137
  };
131
138
  function he(e) {
@@ -143,19 +150,19 @@ function me(e) {
143
150
  /*vendorSortingBy*/
144
151
  (e[3] || /*$_*/
145
152
  e[4]("all")) + ""
146
- ), B, T, z, _, F, M, O, n, c, v, E, j, V, H = G(Object.values(
153
+ ), B, T, z, _, F, H, M, n, c, v, E, j, V, O = G(Object.values(
147
154
  /*vendorMap*/
148
155
  e[5]
149
156
  )), w = [];
150
- for (let d = 0; d < H.length; d += 1)
151
- w[d] = $(Y(e, H, d));
157
+ for (let d = 0; d < O.length; d += 1)
158
+ w[d] = $(Y(e, O, d));
152
159
  return {
153
160
  c() {
154
161
  t = f("div"), o = f("div"), a = f("div"), l = N("svg"), i = N("g"), p = N("path"), y = N("path"), g = N("path"), b = Z(), u = f("div"), x = f("span"), m = K(S), C = Z(), A = f("div"), L = f("span"), B = K(I), T = Z(), z = f("span"), _ = N("svg"), F = N("path"), n = Z(), c = f("div"), v = f("ul");
155
162
  for (let d = 0; d < w.length; d += 1)
156
163
  w[d].c();
157
- r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(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"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "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"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "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"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "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"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class", M = "TriangleInactive " + /*isSorterActive*/
158
- (e[1] ? "TriangleActive" : "")), r(o, "class", O = "SorterSelector " + /*isSorterActive*/
164
+ r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(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"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "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"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "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"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "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"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class", H = "TriangleInactive " + /*isSorterActive*/
165
+ (e[1] ? "TriangleActive" : "")), r(o, "class", M = "SorterSelector " + /*isSorterActive*/
159
166
  (e[1] ? "SorterSelectorOpen" : "")), r(v, "class", "SorterDropdown"), r(c, "class", E = "SorterDropdownContainer " + /*isSorterActive*/
160
167
  (e[1] ? "SorterOpen" : "")), r(t, "class", "SorterContainer");
161
168
  },
@@ -177,23 +184,23 @@ function me(e) {
177
184
  24 && I !== (I = /*vendorSortingBy*/
178
185
  (d[3] || /*$_*/
179
186
  d[4]("all")) + "") && Q(B, I), k & /*isSorterActive*/
180
- 2 && M !== (M = "TriangleInactive " + /*isSorterActive*/
181
- (d[1] ? "TriangleActive" : "")) && r(z, "class", M), k & /*isSorterActive*/
182
- 2 && O !== (O = "SorterSelector " + /*isSorterActive*/
183
- (d[1] ? "SorterSelectorOpen" : "")) && r(o, "class", O), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
187
+ 2 && H !== (H = "TriangleInactive " + /*isSorterActive*/
188
+ (d[1] ? "TriangleActive" : "")) && r(z, "class", H), k & /*isSorterActive*/
189
+ 2 && M !== (M = "SorterSelector " + /*isSorterActive*/
190
+ (d[1] ? "SorterSelectorOpen" : "")) && r(o, "class", M), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
184
191
  120) {
185
- H = G(Object.values(
192
+ O = G(Object.values(
186
193
  /*vendorMap*/
187
194
  d[5]
188
195
  ));
189
196
  let h;
190
- for (h = 0; h < H.length; h += 1) {
191
- const J = Y(d, H, h);
197
+ for (h = 0; h < O.length; h += 1) {
198
+ const J = Y(d, O, h);
192
199
  w[h] ? w[h].p(J, k) : (w[h] = $(J), w[h].c(), w[h].m(v, null));
193
200
  }
194
201
  for (; h < w.length; h += 1)
195
202
  w[h].d(1);
196
- w.length = H.length;
203
+ w.length = O.length;
197
204
  }
198
205
  k & /*isSorterActive*/
199
206
  2 && E !== (E = "SorterDropdownContainer " + /*isSorterActive*/
@@ -337,8 +344,8 @@ function ye(e, t, o) {
337
344
  ce(() => (window.addEventListener("message", _, !1), () => {
338
345
  window.removeEventListener("message", _);
339
346
  }));
340
- const F = () => z(), M = (n) => T(n);
341
- function O(n) {
347
+ const F = () => z(), H = (n) => T(n);
348
+ function M(n) {
342
349
  de[n ? "unshift" : "push"](() => {
343
350
  b = n, o(0, b);
344
351
  });
@@ -366,8 +373,8 @@ function ye(e, t, o) {
366
373
  y,
367
374
  g,
368
375
  F,
369
- M,
370
- O
376
+ H,
377
+ M
371
378
  ];
372
379
  }
373
380
  class we extends oe {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-tzredHGl.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function D(e,r){t.addMessages(e,r)}const E={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-kh3a1g",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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, #D0046C));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, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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 j(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,d,m,c,y,g,S,w=e[4]("sortby")+"",h,A,_,I,z=(e[3]||e[4]("all"))+"",M,O,k,v,C,F,N,a,i,b,H,L,T,Z=t.ensure_array_like(Object.values(e[5])),f=[];for(let p=0;p<Z.length;p+=1)f[p]=P(j(e,Z,p));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),d=t.svg_element("path"),m=t.svg_element("path"),c=t.svg_element("path"),y=t.space(),g=t.element("div"),S=t.element("span"),h=t.text(w),A=t.space(),_=t.element("div"),I=t.element("span"),M=t.text(z),O=t.space(),k=t.element("span"),v=t.svg_element("svg"),C=t.svg_element("path"),a=t.space(),i=t.element("div"),b=t.element("ul");for(let p=0;p<f.length;p+=1)f[p].c();t.attr(d,"id","Path_5267"),t.attr(d,"data-name","Path 5267"),t.attr(d,"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(d,"transform","translate(-206.448 0)"),t.attr(d,"fill","#fff"),t.attr(m,"id","Path_5268"),t.attr(m,"data-name","Path 5268"),t.attr(m,"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(m,"transform","translate(0 0)"),t.attr(m,"fill","#fff"),t.attr(c,"id","Path_5269"),t.attr(c,"data-name","Path 5269"),t.attr(c,"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(c,"transform","translate(-412.896 0)"),t.attr(c,"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(S,"class","SorterName"),t.attr(_,"class","SorterValueContainer"),t.attr(g,"class","SorterTextContainer"),t.attr(o,"class","SorterMainArea"),t.attr(C,"id","arrow"),t.attr(C,"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(C,"transform","translate(-274.511 -441.088)"),t.attr(C,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(k,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(b,"class","SorterDropdown"),t.attr(i,"class",H="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(p,x){t.insert(p,r,x),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,d),t.append(s,m),t.append(s,c),t.append(o,y),t.append(o,g),t.append(g,S),t.append(S,h),t.append(g,A),t.append(g,_),t.append(_,I),t.append(I,M),t.append(n,O),t.append(n,k),t.append(k,v),t.append(v,C),t.append(r,a),t.append(r,i),t.append(i,b);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(b,null);L||(T=t.listen(n,"click",e[13]),L=!0)},p(p,x){if(x&16&&w!==(w=p[4]("sortby")+"")&&t.set_data(h,w),x&24&&z!==(z=(p[3]||p[4]("all"))+"")&&t.set_data(M,z),x&2&&F!==(F="TriangleInactive "+(p[1]?"TriangleActive":""))&&t.attr(k,"class",F),x&2&&N!==(N="SorterSelector "+(p[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),x&120){Z=t.ensure_array_like(Object.values(p[5]));let u;for(u=0;u<Z.length;u+=1){const B=j(p,Z,u);f[u]?f[u].p(B,x):(f[u]=P(B),f[u].c(),f[u].m(b,null))}for(;u<f.length;u+=1)f[u].d(1);f.length=Z.length}x&2&&H!==(H="SorterDropdownContainer "+(p[1]?"SorterOpen":""))&&t.attr(i,"class",H)},d(p){p&&t.detach(r),t.destroy_each(f,p),L=!1,T()}}}function P(e){let r,n,o,l,s,d,m,c,y,g,S;function w(){return e[14](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),d=t.element("span"),m=t.space(),c=t.element("span"),c.textContent=`${e[23]}`,y=t.space(),t.attr(o,"type","radio"),t.attr(o,"name","radio"),o.value=e[23],o.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(d,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(h,A){t.insert(h,r,A),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,d),t.append(n,m),t.append(n,c),t.append(r,y),g||(S=t.listen(o,"click",w),g=!0)},p(h,A){e=h,A&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(h){h&&t.detach(r),g=!1,S()}}}function U(e){let r;function n(s,d){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,d){t.insert(s,r,d),l&&l.m(r,null),e[15](r)},p(s,[d]){o===(o=n(s))&&l?l.p(s,d):(l&&l.d(1),l=o&&o(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[15](null)}}}function G(e,r,n){let o;t.component_subscribe(e,t.$format,a=>n(4,o=a));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:d=""}=r,{clientstylingurl:m=""}=r,{categoryid:c=""}=r,y,g=!1,S=!0,w="",h="All";V({withLocale:"en",translations:{}});const A=()=>{fetch(s).then(i=>i.json()).then(i=>{Object.keys(i).forEach(b=>{D(b,i[b])})}).catch(i=>{console.log(i)})};Object.keys(E).forEach(a=>{D(a,E[a])});const _={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},I=()=>{let a=document.createElement("style");a.innerHTML=d,y.appendChild(a)},z=()=>{let a=document.createElement("style");fetch(new URL(m)).then(i=>i.text()).then(i=>{a.innerHTML=i,setTimeout(()=>{y.appendChild(a)},1)})},M=()=>{var i;n(3,h="All"),n(2,S=!1),n(1,g=!1);let a=(i=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:i[c];a?n(3,h=a):n(3,h="All"),n(3,h=_[a])},O=a=>{n(3,h=a);let i=localStorage.getItem("vendorSortingBy");w=a;for(let b in _)if(_[b]===a){w=b;break}i==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:w})):(i=JSON.parse(i),i[c]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(i))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:c},window.location.href),n(1,g=!g)},k=()=>{n(1,g=!g),window.postMessage({type:"SortingOpened"},window.location.href)},v=a=>{a.data.type=="FilterOpened"&&n(1,g=!1)};t.onMount(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}));const C=()=>k(),F=a=>O(a);function N(a){t.binding_callbacks[a?"unshift":"push"](()=>{y=a,n(0,y)})}return e.$$set=a=>{"lang"in a&&n(8,l=a.lang),"translationurl"in a&&n(9,s=a.translationurl),"clientstyling"in a&&n(10,d=a.clientstyling),"clientstylingurl"in a&&n(11,m=a.clientstylingurl),"categoryid"in a&&n(12,c=a.categoryid)},e.$$.update=()=>{e.$$.dirty&4096&&c&&M(),e.$$.dirty&1025&&d&&y&&I(),e.$$.dirty&2049&&m&&y&&z(),e.$$.dirty&512&&s&&A()},[y,g,S,h,o,_,O,k,l,s,d,m,c,C,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},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()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{}},[],[],!0);exports.default=R;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-zHFHx5Q4.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-DStK35l5.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-DN7kThFx.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-CmrvGWTm.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-most-played-section",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-most-played-section.cjs",
6
6
  "module": "es2015/casino-most-played-section.js",