@everymatrix/casino-most-played-section 1.74.2 → 1.74.3

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 (35) hide show
  1. package/components/{CasinoFilter-BPwlHha2.js → CasinoFilter-BWDdRcwT.js} +1007 -1021
  2. package/components/CasinoFilter-Be3uuCeT.cjs +18 -0
  3. package/components/{CasinoFilter-BUlwRomz.js → CasinoFilter-CtjITeYr.js} +973 -987
  4. package/components/{CasinoGameThumbnail-CIPUqxT7.js → CasinoGameThumbnail-BkaE9rXW.js} +768 -752
  5. package/components/{CasinoGameThumbnail-CRJt980b.js → CasinoGameThumbnail-DLDMVInP.js} +1238 -1254
  6. package/components/CasinoGameThumbnail-DfGHmR_R.cjs +47 -0
  7. package/components/{CasinoGamesCategorySection-BCGzm5PP.js → CasinoGamesCategorySection-BRWpZ039.js} +179 -179
  8. package/components/CasinoGamesCategorySection-BRasZVSy.cjs +1 -0
  9. package/components/{CasinoGamesCategorySection--M4HOJTs.js → CasinoGamesCategorySection-BdD3uAHD.js} +176 -176
  10. package/components/{CasinoMostPlayedSection-Cdb7KogI.js → CasinoMostPlayedSection-8xelfobL.js} +7 -7
  11. package/components/{CasinoMostPlayedSection-C7Z2IBkg.cjs → CasinoMostPlayedSection-C-JheG5y.cjs} +1 -1
  12. package/components/{CasinoMostPlayedSection-Df_6BF77.js → CasinoMostPlayedSection-yX_4DU_5.js} +7 -7
  13. package/components/{CasinoSort-CwuCYmVi.js → CasinoSort-BtGvvVOr.js} +107 -106
  14. package/components/{CasinoSort-BC0bXCb5.cjs → CasinoSort-BxmnDARn.cjs} +1 -1
  15. package/components/{CasinoSort-O-SBq3yY.js → CasinoSort-oXtmKLou.js} +112 -113
  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-BgKdDb-e.cjs +1 -0
  21. package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
  22. package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
  23. package/stencil/{ui-image-BW8AeEVd.js → ui-image-CYuYAlOX.js} +1 -1
  24. package/stencil/{ui-image-CX3MBBZL.js → ui-image-D3_FGUyo.js} +1 -1
  25. package/stencil/{ui-image-BMiZteNE.cjs → ui-image-DJWD4G-S.cjs} +1 -1
  26. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  27. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  28. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  29. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-CzFe50WB.js} +2 -2
  30. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  31. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-z5LhXZY2.js} +2 -2
  32. package/components/CasinoFilter-BTWS0FsQ.cjs +0 -18
  33. package/components/CasinoGameThumbnail-6gj212_i.cjs +0 -47
  34. package/components/CasinoGamesCategorySection-Dm94_v6W.cjs +0 -1
  35. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { a as $, $ as ee, c as te, S as se, i as ae, s as ne, f as r, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as me, B as le, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BUlwRomz.js";
1
+ import { a as $, $ as ee, c as te, S as se, i as ae, s as ne, f as r, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, x as me, y as le, z as ge, A as ce, B as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-CtjITeYr.js";
2
2
  function Y(a, e) {
3
3
  $(a, e);
4
4
  }
@@ -73,7 +73,7 @@ if (typeof window < "u") {
73
73
  }
74
74
  };
75
75
  };
76
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-BCGzm5PP.js").then(({ default: e }) => {
76
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-BRWpZ039.js").then(({ default: e }) => {
77
77
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
78
78
  });
79
79
  }
@@ -377,7 +377,7 @@ function Ge(a, e, s) {
377
377
  }, X = () => {
378
378
  W({
379
379
  limit: 100,
380
- device: ge(Q),
380
+ device: me(Q),
381
381
  rounds: E
382
382
  }).then((t) => {
383
383
  if (t.count > 0) {
@@ -397,7 +397,7 @@ function Ge(a, e, s) {
397
397
  re(() => () => {
398
398
  });
399
399
  function p(t) {
400
- ce[t ? "unshift" : "push"](() => {
400
+ le[t ? "unshift" : "push"](() => {
401
401
  u = t, s(18, u);
402
402
  });
403
403
  }
@@ -406,9 +406,9 @@ function Ge(a, e, s) {
406
406
  }, a.$$.update = () => {
407
407
  a.$$.dirty[0] & /*endpoint, userid, lang*/
408
408
  41 && l && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
409
- 262272 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
- 262400 && _ && u && me(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
- 262208 && v && u && le(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
409
+ 262272 && w && u && ge(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
+ 262400 && _ && u && ce(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
+ 262208 && v && u && ue(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
412
412
  2097152 && k && V(), a.$$.dirty[0] & /*lang*/
413
413
  8 && c && Z();
414
414
  }, [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={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-Dm94_v6W.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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 W(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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16]),t.set_custom_element_data(e,"mbsource",n[6])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&1048576&&a!==(a=l[20]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,c){return r[19]?X:W}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.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),o.m(a,null),n[24](e)},p(r,c){l===(l=i(r))&&o?o.p(r,c):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,u;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},B=()=>{Q(c)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{u=s,a(18,u)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=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,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&c&&p(),n.$$.dirty[0]&262272&&b&&u&&t.setClientStyling(u,b),n.$$.dirty[0]&262400&&v&&u&&t.setClientStylingURL(u,v),n.$$.dirty[0]&262208&&y&&u&&t.setStreamStyling(u,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&c&&B()},[l,o,r,c,j,h,y,b,v,w,M,E,L,A,N,O,P,D,u,T,i,G,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},V,[-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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-Be3uuCeT.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={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-BRasZVSy.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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 W(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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16]),t.set_custom_element_data(e,"mbsource",n[6])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&1048576&&a!==(a=l[20]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,c){return r[19]?X:W}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.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),o.m(a,null),n[24](e)},p(r,c){l===(l=i(r))&&o?o.p(r,c):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,u;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},B=()=>{Q(c)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{u=s,a(18,u)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=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,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&c&&p(),n.$$.dirty[0]&262272&&b&&u&&t.setClientStyling(u,b),n.$$.dirty[0]&262400&&v&&u&&t.setClientStylingURL(u,v),n.$$.dirty[0]&262208&&y&&u&&t.setStreamStyling(u,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&c&&B()},[l,o,r,c,j,h,y,b,v,w,M,E,L,A,N,O,P,D,u,T,i,G,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},V,[-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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
@@ -1,4 +1,4 @@
1
- import { a as $, $ as ee, S as te, i as se, f as r, c as ae, s as ne, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as me, B as le, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BPwlHha2.js";
1
+ import { a as $, $ as ee, S as te, i as se, f as r, c as ae, s as ne, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, x as me, y as le, z as ge, A as ce, B as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BWDdRcwT.js";
2
2
  function Y(a, e) {
3
3
  $(a, e);
4
4
  }
@@ -73,7 +73,7 @@ if (typeof window != "undefined") {
73
73
  }
74
74
  };
75
75
  };
76
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySection--M4HOJTs.js").then(({ default: e }) => {
76
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-BdD3uAHD.js").then(({ default: e }) => {
77
77
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
78
78
  });
79
79
  }
@@ -377,7 +377,7 @@ function Ge(a, e, s) {
377
377
  }, X = () => {
378
378
  W({
379
379
  limit: 100,
380
- device: ge(Q),
380
+ device: me(Q),
381
381
  rounds: E
382
382
  }).then((t) => {
383
383
  if (t.count > 0) {
@@ -397,7 +397,7 @@ function Ge(a, e, s) {
397
397
  re(() => () => {
398
398
  });
399
399
  function p(t) {
400
- ce[t ? "unshift" : "push"](() => {
400
+ le[t ? "unshift" : "push"](() => {
401
401
  u = t, s(18, u);
402
402
  });
403
403
  }
@@ -406,9 +406,9 @@ function Ge(a, e, s) {
406
406
  }, a.$$.update = () => {
407
407
  a.$$.dirty[0] & /*endpoint, userid, lang*/
408
408
  41 && l && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
409
- 262272 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
- 262400 && _ && u && me(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
- 262208 && v && u && le(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
409
+ 262272 && w && u && ge(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
+ 262400 && _ && u && ce(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
+ 262208 && v && u && ue(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
412
412
  2097152 && k && V(), a.$$.dirty[0] & /*lang*/
413
413
  8 && c && Z();
414
414
  }, [
@@ -1,4 +1,4 @@
1
- import { $ as q, M as et, a as rt, S as ot, i as nt, f as H, c as at, s as st, b as lt, e as m, l as P, o as U, p as R, q as it, r as ct, u as dt, z as pt, A as ut, B as gt, C as G, G as Z, d as B, t as K, j as r, m as l, v as tt, n as Q, D as ht, E as mt } from "./CasinoFilter-BUlwRomz.js";
1
+ import { $ as q, M as et, a as rt, S as ot, i as nt, f as E, c as at, s as lt, b as st, e as m, l as P, o as U, p as R, q as it, r as ct, y as dt, z as pt, A as gt, B as ut, C as G, G as N, d as Z, t as K, j as r, m as s, u as tt, n as Q, D as ht, E as mt } from "./CasinoFilter-BWDdRcwT.js";
2
2
  function ft({ withLocale: t, translations: e }) {
3
3
  q.subscribe((o) => {
4
4
  o == null && (et.set(e), q.set(t));
@@ -136,40 +136,40 @@ const X = {
136
136
  }
137
137
  };
138
138
  function yt(t) {
139
- lt(t, "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)}}');
139
+ st(t, "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)}}');
140
140
  }
141
141
  function Y(t, e, o) {
142
142
  const a = t.slice();
143
143
  return a[23] = e[o], a;
144
144
  }
145
145
  function wt(t) {
146
- let e, o, a, s, i, d, f, p, k, b, g, w = (
146
+ let e, o, a, l, i, d, f, g, x, p, y, _ = (
147
147
  /*$_*/
148
148
  t[4]("sortby") + ""
149
- ), S, v, x, E, C = (
149
+ ), w, S, B, C, I = (
150
150
  /*vendorSortingBy*/
151
151
  (t[3] || /*$_*/
152
152
  t[4]("all")) + ""
153
- ), L, T, F, A, N, I, M, n, u, _, D, j, V, O = G(Object.values(
153
+ ), O, L, z, A, F, M, n, u, v, T, D, j, V, H = G(Object.values(
154
154
  /*vendorMap*/
155
155
  t[5]
156
- )), y = [];
157
- for (let c = 0; c < O.length; c += 1)
158
- y[c] = $(Y(t, O, c));
156
+ )), b = [];
157
+ for (let c = 0; c < H.length; c += 1)
158
+ b[c] = $(Y(t, H, c));
159
159
  return {
160
160
  c() {
161
- e = m("div"), o = m("div"), a = m("div"), s = Z("svg"), i = Z("g"), d = Z("path"), f = Z("path"), p = Z("path"), k = B(), b = m("div"), g = m("span"), S = K(w), v = B(), x = m("div"), E = m("span"), L = K(C), T = B(), F = m("span"), A = Z("svg"), N = Z("path"), n = B(), u = m("div"), _ = m("ul");
162
- for (let c = 0; c < y.length; c += 1)
163
- y[c].c();
164
- r(d, "id", "Path_5267"), r(d, "data-name", "Path 5267"), r(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"), r(d, "transform", "translate(-206.448 0)"), r(d, "fill", "#fff"), r(f, "id", "Path_5268"), r(f, "data-name", "Path 5268"), r(f, "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(f, "transform", "translate(0 0)"), r(f, "fill", "#fff"), r(p, "id", "Path_5269"), r(p, "data-name", "Path 5269"), r(p, "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(p, "transform", "translate(-412.896 0)"), r(p, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(s, "xmlns", "http://www.w3.org/2000/svg"), r(s, "width", "20"), r(s, "height", "20"), r(s, "viewBox", "0 0 26.003 22.819"), r(g, "class", "SorterName"), r(x, "class", "SorterValueContainer"), r(b, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(N, "id", "arrow"), r(N, "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(N, "transform", "translate(-274.511 -441.088)"), r(N, "fill", "#d1d1d1"), r(A, "xmlns", "http://www.w3.org/2000/svg"), r(A, "width", "14"), r(A, "height", "6.835"), r(A, "viewBox", "0 0 14 6.835"), r(F, "class", I = "TriangleInactive " + /*isSorterActive*/
165
- (t[1] ? "TriangleActive" : "")), r(o, "class", M = "SorterSelector " + /*isSorterActive*/
166
- (t[1] ? "SorterSelectorOpen" : "")), r(_, "class", "SorterDropdown"), r(u, "class", D = "SorterDropdownContainer " + /*isSorterActive*/
161
+ e = m("div"), o = m("div"), a = m("div"), l = N("svg"), i = N("g"), d = N("path"), f = N("path"), g = N("path"), x = Z(), p = m("div"), y = m("span"), w = K(_), S = Z(), B = m("div"), C = m("span"), O = K(I), L = Z(), z = m("span"), A = N("svg"), F = N("path"), u = Z(), v = m("div"), T = m("ul");
162
+ for (let c = 0; c < b.length; c += 1)
163
+ b[c].c();
164
+ r(d, "id", "Path_5267"), r(d, "data-name", "Path 5267"), r(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"), r(d, "transform", "translate(-206.448 0)"), r(d, "fill", "#fff"), r(f, "id", "Path_5268"), r(f, "data-name", "Path 5268"), r(f, "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(f, "transform", "translate(0 0)"), r(f, "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(y, "class", "SorterName"), r(B, "class", "SorterValueContainer"), r(p, "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(A, "xmlns", "http://www.w3.org/2000/svg"), r(A, "width", "14"), r(A, "height", "6.835"), r(A, "viewBox", "0 0 14 6.835"), r(z, "class", M = "TriangleInactive " + /*isSorterActive*/
165
+ (t[1] ? "TriangleActive" : "")), r(o, "class", n = "SorterSelector " + /*isSorterActive*/
166
+ (t[1] ? "SorterSelectorOpen" : "")), r(T, "class", "SorterDropdown"), r(v, "class", D = "SorterDropdownContainer " + /*isSorterActive*/
167
167
  (t[1] ? "SorterOpen" : "")), r(e, "class", "SorterContainer");
168
168
  },
169
- m(c, z) {
170
- P(c, e, z), l(e, o), l(o, a), l(a, s), l(s, i), l(i, d), l(i, f), l(i, p), l(a, k), l(a, b), l(b, g), l(g, S), l(b, v), l(b, x), l(x, E), l(E, L), l(o, T), l(o, F), l(F, A), l(A, N), l(e, n), l(e, u), l(u, _);
171
- for (let h = 0; h < y.length; h += 1)
172
- y[h] && y[h].m(_, null);
169
+ m(c, k) {
170
+ P(c, e, k), s(e, o), s(o, a), s(a, l), s(l, i), s(i, d), s(i, f), s(i, g), s(a, x), s(a, p), s(p, y), s(y, w), s(p, S), s(p, B), s(B, C), s(C, O), s(o, L), s(o, z), s(z, A), s(A, F), s(e, u), s(e, v), s(v, T);
171
+ for (let h = 0; h < b.length; h += 1)
172
+ b[h] && b[h].m(T, null);
173
173
  j || (V = tt(
174
174
  o,
175
175
  "click",
@@ -177,43 +177,43 @@ function wt(t) {
177
177
  t[14]
178
178
  ), j = !0);
179
179
  },
180
- p(c, z) {
181
- if (z & /*$_*/
182
- 16 && w !== (w = /*$_*/
183
- c[4]("sortby") + "") && Q(S, w), z & /*vendorSortingBy, $_*/
184
- 24 && C !== (C = /*vendorSortingBy*/
180
+ p(c, k) {
181
+ if (k & /*$_*/
182
+ 16 && _ !== (_ = /*$_*/
183
+ c[4]("sortby") + "") && Q(w, _), k & /*vendorSortingBy, $_*/
184
+ 24 && I !== (I = /*vendorSortingBy*/
185
185
  (c[3] || /*$_*/
186
- c[4]("all")) + "") && Q(L, C), z & /*isSorterActive*/
187
- 2 && I !== (I = "TriangleInactive " + /*isSorterActive*/
188
- (c[1] ? "TriangleActive" : "")) && r(F, "class", I), z & /*isSorterActive*/
189
- 2 && M !== (M = "SorterSelector " + /*isSorterActive*/
190
- (c[1] ? "SorterSelectorOpen" : "")) && r(o, "class", M), z & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
186
+ c[4]("all")) + "") && Q(O, I), k & /*isSorterActive*/
187
+ 2 && M !== (M = "TriangleInactive " + /*isSorterActive*/
188
+ (c[1] ? "TriangleActive" : "")) && r(z, "class", M), k & /*isSorterActive*/
189
+ 2 && n !== (n = "SorterSelector " + /*isSorterActive*/
190
+ (c[1] ? "SorterSelectorOpen" : "")) && r(o, "class", n), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
191
191
  120) {
192
- O = G(Object.values(
192
+ H = G(Object.values(
193
193
  /*vendorMap*/
194
194
  c[5]
195
195
  ));
196
196
  let h;
197
- for (h = 0; h < O.length; h += 1) {
198
- const J = Y(c, O, h);
199
- y[h] ? y[h].p(J, z) : (y[h] = $(J), y[h].c(), y[h].m(_, null));
197
+ for (h = 0; h < H.length; h += 1) {
198
+ const J = Y(c, H, h);
199
+ b[h] ? b[h].p(J, k) : (b[h] = $(J), b[h].c(), b[h].m(T, null));
200
200
  }
201
- for (; h < y.length; h += 1)
202
- y[h].d(1);
203
- y.length = O.length;
201
+ for (; h < b.length; h += 1)
202
+ b[h].d(1);
203
+ b.length = H.length;
204
204
  }
205
- z & /*isSorterActive*/
205
+ k & /*isSorterActive*/
206
206
  2 && D !== (D = "SorterDropdownContainer " + /*isSorterActive*/
207
- (c[1] ? "SorterOpen" : "")) && r(u, "class", D);
207
+ (c[1] ? "SorterOpen" : "")) && r(v, "class", D);
208
208
  },
209
209
  d(c) {
210
- c && R(e), ht(y, c), j = !1, V();
210
+ c && R(e), ht(b, c), j = !1, V();
211
211
  }
212
212
  };
213
213
  }
214
214
  function $(t) {
215
- let e, o, a, s, i, d, f, p, k, b, g;
216
- function w() {
215
+ let e, o, a, l, i, d, f, g, x, p, y;
216
+ function _() {
217
217
  return (
218
218
  /*click_handler_1*/
219
219
  t[15](
@@ -224,9 +224,9 @@ function $(t) {
224
224
  }
225
225
  return {
226
226
  c() {
227
- e = m("li"), o = m("label"), a = m("input"), i = B(), d = m("span"), f = B(), p = m("span"), p.textContent = `${/*sort*/
228
- t[23]}`, k = B(), r(a, "type", "radio"), r(a, "name", "radio"), a.value = /*sort*/
229
- t[23], a.checked = s = /*vendorSortingBy*/
227
+ e = m("li"), o = m("label"), a = m("input"), i = Z(), d = m("span"), f = Z(), g = m("span"), g.textContent = `${/*sort*/
228
+ t[23]}`, x = Z(), r(a, "type", "radio"), r(a, "name", "radio"), a.value = /*sort*/
229
+ t[23], a.checked = l = /*vendorSortingBy*/
230
230
  t[3] == /*sort*/
231
231
  t[23] ? !0 : (
232
232
  /*vendorSortingBy*/
@@ -236,22 +236,22 @@ function $(t) {
236
236
  ), r(d, "class", "SortersCheckmark"), r(o, "class", "SorterLabel CustomRadioButton"), r(e, "class", "SorterItem"), e.value = /*sort*/
237
237
  t[23];
238
238
  },
239
- m(S, v) {
240
- P(S, e, v), l(e, o), l(o, a), l(o, i), l(o, d), l(o, f), l(o, p), l(e, k), b || (g = tt(a, "click", w), b = !0);
239
+ m(w, S) {
240
+ P(w, e, S), s(e, o), s(o, a), s(o, i), s(o, d), s(o, f), s(o, g), s(e, x), p || (y = tt(a, "click", _), p = !0);
241
241
  },
242
- p(S, v) {
243
- t = S, v & /*vendorSortingBy, $_*/
244
- 24 && s !== (s = /*vendorSortingBy*/
242
+ p(w, S) {
243
+ t = w, S & /*vendorSortingBy, $_*/
244
+ 24 && l !== (l = /*vendorSortingBy*/
245
245
  t[3] == /*sort*/
246
246
  t[23] ? !0 : (
247
247
  /*vendorSortingBy*/
248
248
  t[3] == null && /*sort*/
249
249
  t[23] == /*$_*/
250
250
  t[4]("all")
251
- )) && (a.checked = s);
251
+ )) && (a.checked = l);
252
252
  },
253
- d(S) {
254
- S && R(e), b = !1, g();
253
+ d(w) {
254
+ w && R(e), p = !1, y();
255
255
  }
256
256
  };
257
257
  }
@@ -262,33 +262,33 @@ function bt(t) {
262
262
  i[2])
263
263
  return wt;
264
264
  }
265
- let a = o(t), s = a && a(t);
265
+ let a = o(t), l = a && a(t);
266
266
  return {
267
267
  c() {
268
- e = m("div"), s && s.c();
268
+ e = m("div"), l && l.c();
269
269
  },
270
270
  m(i, d) {
271
- P(i, e, d), s && s.m(e, null), t[16](e);
271
+ P(i, e, d), l && l.m(e, null), t[16](e);
272
272
  },
273
273
  p(i, [d]) {
274
- a === (a = o(i)) && s ? s.p(i, d) : (s && s.d(1), s = a && a(i), s && (s.c(), s.m(e, null)));
274
+ a === (a = o(i)) && l ? l.p(i, d) : (l && l.d(1), l = a && a(i), l && (l.c(), l.m(e, null)));
275
275
  },
276
276
  i: U,
277
277
  o: U,
278
278
  d(i) {
279
- i && R(e), s && s.d(), t[16](null);
279
+ i && R(e), l && l.d(), t[16](null);
280
280
  }
281
281
  };
282
282
  }
283
283
  function St(t, e, o) {
284
284
  let a;
285
285
  it(t, mt, (n) => o(4, a = n));
286
- let { lang: s = "" } = e, { translationurl: i = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: f = "" } = e, { categoryid: p = "" } = e, { mbsource: k } = e, b, g, w = !1, S = !0, v = "", x = "All";
286
+ let { lang: l = "" } = e, { translationurl: i = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: f = "" } = e, { categoryid: g = "" } = e, { mbsource: x } = e, p, y = !1, _ = !0, w = "", S = "All";
287
287
  ft({ withLocale: "en", translations: {} });
288
- const E = () => {
288
+ const B = () => {
289
289
  fetch(i).then((u) => u.json()).then((u) => {
290
- Object.keys(u).forEach((_) => {
291
- W(_, u[_]);
290
+ Object.keys(u).forEach((v) => {
291
+ W(v, u[v]);
292
292
  });
293
293
  }).catch((u) => {
294
294
  console.log(u);
@@ -302,67 +302,68 @@ function St(t, e, o) {
302
302
  name: a("az"),
303
303
  isNew: a("newest"),
304
304
  "advancedTags(name(hot))": a("hottest")
305
- }, L = () => {
306
- o(3, x = "All"), o(2, S = !1), o(1, w = !1);
307
- let n = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[p];
308
- n ? o(3, x = n) : o(3, x = "All"), o(3, x = C[n]);
309
- }, T = (n) => {
310
- o(3, x = n);
305
+ }, I = () => {
306
+ var u;
307
+ o(3, S = "All"), o(2, _ = !1), o(1, y = !1);
308
+ let n = (u = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : u[g];
309
+ n ? o(3, S = n) : o(3, S = "All"), o(3, S = C[n]);
310
+ }, O = (n) => {
311
+ o(3, S = n);
311
312
  let u = localStorage.getItem("vendorSortingBy");
312
- v = n;
313
- for (let _ in C)
314
- if (C[_] === n) {
315
- v = _;
313
+ w = n;
314
+ for (let v in C)
315
+ if (C[v] === n) {
316
+ w = v;
316
317
  break;
317
318
  }
318
- u == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [p]: v })) : (u = JSON.parse(u), u[p] = v, localStorage.setItem("vendorSortingBy", JSON.stringify(u))), window.postMessage(
319
+ u == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [g]: w })) : (u = JSON.parse(u), u[g] = w, localStorage.setItem("vendorSortingBy", JSON.stringify(u))), window.postMessage(
319
320
  {
320
321
  type: "ApplySorter",
321
- sortBy: v,
322
- itemId: p
322
+ sortBy: w,
323
+ itemId: g
323
324
  },
324
325
  window.location.href
325
- ), o(1, w = !w);
326
- }, F = () => {
327
- o(1, w = !w), window.postMessage({ type: "SortingOpened" }, window.location.href);
328
- }, A = (n) => {
329
- n.data.type == "FilterOpened" && o(1, w = !1);
326
+ ), o(1, y = !y);
327
+ }, L = () => {
328
+ o(1, y = !y), window.postMessage({ type: "SortingOpened" }, window.location.href);
329
+ }, z = (n) => {
330
+ n.data.type == "FilterOpened" && o(1, y = !1);
330
331
  };
331
- ct(() => (window.addEventListener("message", A, !1), () => {
332
- window.emMessageBus != null && b && b.unsubscribe(), window.removeEventListener("message", A);
332
+ ct(() => (window.addEventListener("message", z, !1), () => {
333
+ window.removeEventListener("message", z);
333
334
  }));
334
- const N = () => F(), I = (n) => T(n);
335
+ const A = () => L(), F = (n) => O(n);
335
336
  function M(n) {
336
- pt[n ? "unshift" : "push"](() => {
337
- g = n, o(0, g);
337
+ dt[n ? "unshift" : "push"](() => {
338
+ p = n, o(0, p);
338
339
  });
339
340
  }
340
341
  return t.$$set = (n) => {
341
- "lang" in n && o(8, s = n.lang), "translationurl" in n && o(9, i = n.translationurl), "clientstyling" in n && o(10, d = n.clientstyling), "clientstylingurl" in n && o(11, f = n.clientstylingurl), "categoryid" in n && o(12, p = n.categoryid), "mbsource" in n && o(13, k = n.mbsource);
342
+ "lang" in n && o(8, l = n.lang), "translationurl" in n && o(9, i = n.translationurl), "clientstyling" in n && o(10, d = n.clientstyling), "clientstylingurl" in n && o(11, f = n.clientstylingurl), "categoryid" in n && o(12, g = n.categoryid), "mbsource" in n && o(13, x = n.mbsource);
342
343
  }, t.$$.update = () => {
343
344
  t.$$.dirty & /*categoryid*/
344
- 4096 && p && L(), t.$$.dirty & /*clientstyling, customStylingContainer*/
345
- 1025 && d && g && ut(g, d), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
346
- 2049 && f && g && dt(g, f), t.$$.dirty & /*customStylingContainer, mbsource*/
347
- 8193 && g && gt(g, `${k}.Style`), t.$$.dirty & /*translationurl*/
348
- 512 && i && E();
345
+ 4096 && g && I(), t.$$.dirty & /*clientstyling, customStylingContainer*/
346
+ 1025 && d && p && pt(p, d), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
347
+ 2049 && f && p && gt(p, f), t.$$.dirty & /*customStylingContainer, mbsource*/
348
+ 8193 && p && ut(p, `${x}.Style`), t.$$.dirty & /*translationurl*/
349
+ 512 && i && B();
349
350
  }, [
350
- g,
351
- w,
351
+ p,
352
+ y,
353
+ _,
352
354
  S,
353
- x,
354
355
  a,
355
356
  C,
356
- T,
357
- F,
358
- s,
357
+ O,
358
+ L,
359
+ l,
359
360
  i,
360
361
  d,
361
362
  f,
362
- p,
363
- k,
364
- N,
365
- I,
363
+ g,
364
+ x,
365
+ A,
366
+ F,
366
367
  M
367
368
  ];
368
369
  }
@@ -373,7 +374,7 @@ class vt extends ot {
373
374
  e,
374
375
  St,
375
376
  bt,
376
- st,
377
+ lt,
377
378
  {
378
379
  lang: 8,
379
380
  translationurl: 9,
@@ -389,37 +390,37 @@ class vt extends ot {
389
390
  return this.$$.ctx[8];
390
391
  }
391
392
  set lang(e) {
392
- this.$$set({ lang: e }), H();
393
+ this.$$set({ lang: e }), E();
393
394
  }
394
395
  get translationurl() {
395
396
  return this.$$.ctx[9];
396
397
  }
397
398
  set translationurl(e) {
398
- this.$$set({ translationurl: e }), H();
399
+ this.$$set({ translationurl: e }), E();
399
400
  }
400
401
  get clientstyling() {
401
402
  return this.$$.ctx[10];
402
403
  }
403
404
  set clientstyling(e) {
404
- this.$$set({ clientstyling: e }), H();
405
+ this.$$set({ clientstyling: e }), E();
405
406
  }
406
407
  get clientstylingurl() {
407
408
  return this.$$.ctx[11];
408
409
  }
409
410
  set clientstylingurl(e) {
410
- this.$$set({ clientstylingurl: e }), H();
411
+ this.$$set({ clientstylingurl: e }), E();
411
412
  }
412
413
  get categoryid() {
413
414
  return this.$$.ctx[12];
414
415
  }
415
416
  set categoryid(e) {
416
- this.$$set({ categoryid: e }), H();
417
+ this.$$set({ categoryid: e }), E();
417
418
  }
418
419
  get mbsource() {
419
420
  return this.$$.ctx[13];
420
421
  }
421
422
  set mbsource(e) {
422
- this.$$set({ mbsource: e }), H();
423
+ this.$$set({ mbsource: e }), E();
423
424
  }
424
425
  }
425
426
  at(vt, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);