@everymatrix/casino-most-played-section 1.54.12 → 1.56.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.
- package/components/CasinoFilter-BAdLTnAD.cjs +5 -0
- package/components/{CasinoFilter-BI27xzap.js → CasinoFilter-fbj0IAUu.js} +1008 -988
- package/components/{CasinoFilter-DFZ3WYCN.js → CasinoFilter-whrvW_Wr.js} +1041 -1021
- package/components/{CasinoGameThumbnail-B9ayiLVX.js → CasinoGameThumbnail-ByOsKdAz.js} +1192 -1197
- package/components/CasinoGameThumbnail-CC4Sp_8e.cjs +47 -0
- package/components/{CasinoGameThumbnail-DalrsvwA.js → CasinoGameThumbnail-DDm68IkO.js} +1193 -1198
- package/components/{CasinoGamesCategorySection-CX7b8KGX.js → CasinoGamesCategorySection-BRqdWRg5.js} +945 -919
- package/components/{CasinoGamesCategorySection-CDCimaA-.js → CasinoGamesCategorySection-CrUw-cLw.js} +855 -829
- package/components/CasinoGamesCategorySection-vJ4GHywW.cjs +1 -0
- package/components/{CasinoMostPlayedSection-ChLe2LA-.js → CasinoMostPlayedSection-BEBD5zQW.js} +192 -183
- package/components/{CasinoMostPlayedSection-D01DQAMD.js → CasinoMostPlayedSection-BII2-3JX.js} +192 -183
- package/components/CasinoMostPlayedSection-BtV5x3I6.cjs +1 -0
- package/components/CasinoSort-CkG6j04g.js +427 -0
- package/components/CasinoSort-DipisPF3.cjs +1 -0
- package/components/CasinoSort-Pgz0Acwm.js +428 -0
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
- package/components/CasinoFilter-DsPFGyLq.cjs +0 -5
- package/components/CasinoGameThumbnail-SsDw02qF.cjs +0 -47
- package/components/CasinoGamesCategorySection-CaE16Il2.cjs +0 -1
- package/components/CasinoMostPlayedSection-CxjLLmgE.cjs +0 -1
- package/components/CasinoSort-CEbh5FL7.cjs +0 -1
- package/components/CasinoSort-DHs5pqaK.js +0 -432
- package/components/CasinoSort-Dhqq-EhY.js +0 -431
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BAdLTnAD.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-vJ4GHywW.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;
|
@@ -0,0 +1,427 @@
|
|
1
|
+
import { $ as q, L as et, a as rt, S as ot, i as nt, s as at, f as D, b as st, n as U, d as P, h as R, k as h, o as lt, p as it, w as ct, x as G, y as dt, g as K, e as r, j as l, q as tt, A as N, l as Z, m as Q, B as pt, C as gt, D as ut, E as ht, F as mt } from "./CasinoFilter-fbj0IAUu.js";
|
2
|
+
function ft({ withLocale: t, translations: e }) {
|
3
|
+
q.subscribe((o) => {
|
4
|
+
o == null && (et.set(e), q.set(t));
|
5
|
+
});
|
6
|
+
}
|
7
|
+
function W(t, e) {
|
8
|
+
rt(t, e);
|
9
|
+
}
|
10
|
+
const X = {
|
11
|
+
en: {
|
12
|
+
sortby: "Sort by:",
|
13
|
+
all: "All",
|
14
|
+
az: "A-Z",
|
15
|
+
newest: "Newest",
|
16
|
+
hottest: "Hottest"
|
17
|
+
},
|
18
|
+
zh: {
|
19
|
+
sortby: "Sort by",
|
20
|
+
all: "All",
|
21
|
+
az: "A-Z",
|
22
|
+
newest: "Newest",
|
23
|
+
hottest: "Hottest"
|
24
|
+
},
|
25
|
+
de: {
|
26
|
+
sortby: "Sort by:",
|
27
|
+
all: "All",
|
28
|
+
az: "A-Z",
|
29
|
+
newest: "Newest",
|
30
|
+
hottest: "Hottest"
|
31
|
+
},
|
32
|
+
it: {
|
33
|
+
sortby: "Sort by:",
|
34
|
+
all: "All",
|
35
|
+
az: "A-Z",
|
36
|
+
newest: "Newest",
|
37
|
+
hottest: "Hottest"
|
38
|
+
},
|
39
|
+
fr: {
|
40
|
+
sortby: "Sort by:",
|
41
|
+
all: "All",
|
42
|
+
az: "A-Z",
|
43
|
+
newest: "Newest",
|
44
|
+
hottest: "Hottest"
|
45
|
+
},
|
46
|
+
es: {
|
47
|
+
sortby: "Sort by:",
|
48
|
+
all: "All",
|
49
|
+
az: "A-Z",
|
50
|
+
newest: "Newest",
|
51
|
+
hottest: "Hottest"
|
52
|
+
},
|
53
|
+
tr: {
|
54
|
+
sortby: "Sırala:",
|
55
|
+
all: "Hepsi",
|
56
|
+
az: "A-Z",
|
57
|
+
newest: "En yeni",
|
58
|
+
hottest: "Öne Çıkan"
|
59
|
+
},
|
60
|
+
ru: {
|
61
|
+
sortby: "Sort by:",
|
62
|
+
all: "All",
|
63
|
+
az: "A-Z",
|
64
|
+
newest: "Newest",
|
65
|
+
hottest: "Hottest"
|
66
|
+
},
|
67
|
+
ro: {
|
68
|
+
sortby: "Sort by:",
|
69
|
+
all: "All",
|
70
|
+
az: "A-Z",
|
71
|
+
newest: "Newest",
|
72
|
+
hottest: "Hottest"
|
73
|
+
},
|
74
|
+
hr: {
|
75
|
+
sortby: "Poredaj po:",
|
76
|
+
all: "Sve",
|
77
|
+
az: "A-Z",
|
78
|
+
newest: "Najnovije",
|
79
|
+
hottest: "Hot igre"
|
80
|
+
},
|
81
|
+
hu: {
|
82
|
+
sortby: "Sort by:",
|
83
|
+
all: "All",
|
84
|
+
az: "A-Z",
|
85
|
+
newest: "Newest",
|
86
|
+
hottest: "Hottest"
|
87
|
+
},
|
88
|
+
pl: {
|
89
|
+
sortby: "Sort by:",
|
90
|
+
all: "All",
|
91
|
+
az: "A-Z",
|
92
|
+
newest: "Newest",
|
93
|
+
hottest: "Hottest"
|
94
|
+
},
|
95
|
+
pt: {
|
96
|
+
sortby: "Sort by:",
|
97
|
+
all: "All",
|
98
|
+
az: "A-Z",
|
99
|
+
newest: "Newest",
|
100
|
+
hottest: "Hottest"
|
101
|
+
},
|
102
|
+
sl: {
|
103
|
+
sortby: "Sort by:",
|
104
|
+
all: "All",
|
105
|
+
az: "A-Z",
|
106
|
+
newest: "Newest",
|
107
|
+
hottest: "Hottest"
|
108
|
+
},
|
109
|
+
sr: {
|
110
|
+
sortby: "Sort by:",
|
111
|
+
all: "All",
|
112
|
+
az: "A-Z",
|
113
|
+
newest: "Newest",
|
114
|
+
hottest: "Hottest"
|
115
|
+
},
|
116
|
+
"pt-br": {
|
117
|
+
sortby: "Organizar por:",
|
118
|
+
all: "Todos",
|
119
|
+
az: "A-Z",
|
120
|
+
newest: "Mais recente",
|
121
|
+
hottest: "mais quente"
|
122
|
+
},
|
123
|
+
"es-mx": {
|
124
|
+
sortby: "Ordenar Por:",
|
125
|
+
all: "Todo",
|
126
|
+
az: "A-Z",
|
127
|
+
newest: "Más nuevos",
|
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"
|
136
|
+
}
|
137
|
+
};
|
138
|
+
function yt(t) {
|
139
|
+
st(t, "svelte-54zse8", ':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, #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)}}');
|
140
|
+
}
|
141
|
+
function Y(t, e, o) {
|
142
|
+
const a = t.slice();
|
143
|
+
return a[23] = e[o], a;
|
144
|
+
}
|
145
|
+
function wt(t) {
|
146
|
+
let e, o, a, s, i, d, m, g, x, p, f, _ = (
|
147
|
+
/*$_*/
|
148
|
+
t[4]("sortby") + ""
|
149
|
+
), y, S, I, C, O = (
|
150
|
+
/*vendorSortingBy*/
|
151
|
+
(t[3] || /*$_*/
|
152
|
+
t[4]("all")) + ""
|
153
|
+
), B, L, z, A, F, H, n, w, v, T, j, E, V, M = G(Object.values(
|
154
|
+
/*vendorMap*/
|
155
|
+
t[5]
|
156
|
+
)), b = [];
|
157
|
+
for (let c = 0; c < M.length; c += 1)
|
158
|
+
b[c] = $(Y(t, M, c));
|
159
|
+
return {
|
160
|
+
c() {
|
161
|
+
e = h("div"), o = h("div"), a = h("div"), s = N("svg"), i = N("g"), d = N("path"), m = N("path"), g = N("path"), x = Z(), p = h("div"), f = h("span"), y = Q(_), S = Z(), I = h("div"), C = h("span"), B = Q(O), L = Z(), z = h("span"), A = N("svg"), F = N("path"), w = Z(), v = h("div"), T = h("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(m, "id", "Path_5268"), r(m, "data-name", "Path 5268"), r(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"), r(m, "transform", "translate(0 0)"), r(m, "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(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(f, "class", "SorterName"), r(I, "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", H = "TriangleInactive " + /*isSorterActive*/
|
165
|
+
(t[1] ? "TriangleActive" : "")), r(o, "class", n = "SorterSelector " + /*isSorterActive*/
|
166
|
+
(t[1] ? "SorterSelectorOpen" : "")), r(T, "class", "SorterDropdown"), r(v, "class", j = "SorterDropdownContainer " + /*isSorterActive*/
|
167
|
+
(t[1] ? "SorterOpen" : "")), r(e, "class", "SorterContainer");
|
168
|
+
},
|
169
|
+
m(c, k) {
|
170
|
+
R(c, e, k), l(e, o), l(o, a), l(a, s), l(s, i), l(i, d), l(i, m), l(i, g), l(a, x), l(a, p), l(p, f), l(f, y), l(p, S), l(p, I), l(I, C), l(C, B), l(o, L), l(o, z), l(z, A), l(A, F), l(e, w), l(e, v), l(v, T);
|
171
|
+
for (let u = 0; u < b.length; u += 1)
|
172
|
+
b[u] && b[u].m(T, null);
|
173
|
+
E || (V = tt(
|
174
|
+
o,
|
175
|
+
"click",
|
176
|
+
/*click_handler*/
|
177
|
+
t[14]
|
178
|
+
), E = !0);
|
179
|
+
},
|
180
|
+
p(c, k) {
|
181
|
+
if (k & /*$_*/
|
182
|
+
16 && _ !== (_ = /*$_*/
|
183
|
+
c[4]("sortby") + "") && K(y, _), k & /*vendorSortingBy, $_*/
|
184
|
+
24 && O !== (O = /*vendorSortingBy*/
|
185
|
+
(c[3] || /*$_*/
|
186
|
+
c[4]("all")) + "") && K(B, O), k & /*isSorterActive*/
|
187
|
+
2 && H !== (H = "TriangleInactive " + /*isSorterActive*/
|
188
|
+
(c[1] ? "TriangleActive" : "")) && r(z, "class", H), k & /*isSorterActive*/
|
189
|
+
2 && n !== (n = "SorterSelector " + /*isSorterActive*/
|
190
|
+
(c[1] ? "SorterSelectorOpen" : "")) && r(o, "class", n), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
191
|
+
120) {
|
192
|
+
M = G(Object.values(
|
193
|
+
/*vendorMap*/
|
194
|
+
c[5]
|
195
|
+
));
|
196
|
+
let u;
|
197
|
+
for (u = 0; u < M.length; u += 1) {
|
198
|
+
const J = Y(c, M, u);
|
199
|
+
b[u] ? b[u].p(J, k) : (b[u] = $(J), b[u].c(), b[u].m(T, null));
|
200
|
+
}
|
201
|
+
for (; u < b.length; u += 1)
|
202
|
+
b[u].d(1);
|
203
|
+
b.length = M.length;
|
204
|
+
}
|
205
|
+
k & /*isSorterActive*/
|
206
|
+
2 && j !== (j = "SorterDropdownContainer " + /*isSorterActive*/
|
207
|
+
(c[1] ? "SorterOpen" : "")) && r(v, "class", j);
|
208
|
+
},
|
209
|
+
d(c) {
|
210
|
+
c && P(e), dt(b, c), E = !1, V();
|
211
|
+
}
|
212
|
+
};
|
213
|
+
}
|
214
|
+
function $(t) {
|
215
|
+
let e, o, a, s, i, d, m, g, x, p, f;
|
216
|
+
function _() {
|
217
|
+
return (
|
218
|
+
/*click_handler_1*/
|
219
|
+
t[15](
|
220
|
+
/*sort*/
|
221
|
+
t[23]
|
222
|
+
)
|
223
|
+
);
|
224
|
+
}
|
225
|
+
return {
|
226
|
+
c() {
|
227
|
+
e = h("li"), o = h("label"), a = h("input"), i = Z(), d = h("span"), m = Z(), g = h("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 = s = /*vendorSortingBy*/
|
230
|
+
t[3] == /*sort*/
|
231
|
+
t[23] ? !0 : (
|
232
|
+
/*vendorSortingBy*/
|
233
|
+
t[3] == null && /*sort*/
|
234
|
+
t[23] == /*$_*/
|
235
|
+
t[4]("all")
|
236
|
+
), r(d, "class", "SortersCheckmark"), r(o, "class", "SorterLabel CustomRadioButton"), r(e, "class", "SorterItem"), e.value = /*sort*/
|
237
|
+
t[23];
|
238
|
+
},
|
239
|
+
m(y, S) {
|
240
|
+
R(y, e, S), l(e, o), l(o, a), l(o, i), l(o, d), l(o, m), l(o, g), l(e, x), p || (f = tt(a, "click", _), p = !0);
|
241
|
+
},
|
242
|
+
p(y, S) {
|
243
|
+
t = y, S & /*vendorSortingBy, $_*/
|
244
|
+
24 && s !== (s = /*vendorSortingBy*/
|
245
|
+
t[3] == /*sort*/
|
246
|
+
t[23] ? !0 : (
|
247
|
+
/*vendorSortingBy*/
|
248
|
+
t[3] == null && /*sort*/
|
249
|
+
t[23] == /*$_*/
|
250
|
+
t[4]("all")
|
251
|
+
)) && (a.checked = s);
|
252
|
+
},
|
253
|
+
d(y) {
|
254
|
+
y && P(e), p = !1, f();
|
255
|
+
}
|
256
|
+
};
|
257
|
+
}
|
258
|
+
function bt(t) {
|
259
|
+
let e;
|
260
|
+
function o(i, d) {
|
261
|
+
if (!/*isLoading*/
|
262
|
+
i[2]) return wt;
|
263
|
+
}
|
264
|
+
let a = o(t), s = a && a(t);
|
265
|
+
return {
|
266
|
+
c() {
|
267
|
+
e = h("div"), s && s.c();
|
268
|
+
},
|
269
|
+
m(i, d) {
|
270
|
+
R(i, e, d), s && s.m(e, null), t[16](e);
|
271
|
+
},
|
272
|
+
p(i, [d]) {
|
273
|
+
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
|
+
},
|
275
|
+
i: U,
|
276
|
+
o: U,
|
277
|
+
d(i) {
|
278
|
+
i && P(e), s && s.d(), t[16](null);
|
279
|
+
}
|
280
|
+
};
|
281
|
+
}
|
282
|
+
function St(t, e, o) {
|
283
|
+
let a;
|
284
|
+
lt(t, mt, (n) => o(4, a = n));
|
285
|
+
let { lang: s = "" } = e, { translationurl: i = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: m = "" } = e, { categoryid: g = "" } = e, { mbsource: x } = e, p, f = !1, _ = !0, y = "", S = "All";
|
286
|
+
ft({ withLocale: "en", translations: {} });
|
287
|
+
const I = () => {
|
288
|
+
fetch(i).then((w) => w.json()).then((w) => {
|
289
|
+
Object.keys(w).forEach((v) => {
|
290
|
+
W(v, w[v]);
|
291
|
+
});
|
292
|
+
}).catch((w) => {
|
293
|
+
console.log(w);
|
294
|
+
});
|
295
|
+
};
|
296
|
+
Object.keys(X).forEach((n) => {
|
297
|
+
W(n, X[n]);
|
298
|
+
});
|
299
|
+
const C = {
|
300
|
+
All: a("all"),
|
301
|
+
name: a("az"),
|
302
|
+
isNew: a("newest"),
|
303
|
+
"advancedTags(name(hot))": a("hottest")
|
304
|
+
}, O = () => {
|
305
|
+
o(3, S = "All"), o(2, _ = !1), o(1, f = !1);
|
306
|
+
let n = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[g];
|
307
|
+
n ? o(3, S = n) : o(3, S = "All"), o(3, S = C[n]);
|
308
|
+
}, B = (n) => {
|
309
|
+
o(3, S = n);
|
310
|
+
let w = localStorage.getItem("vendorSortingBy");
|
311
|
+
y = n;
|
312
|
+
for (let v in C)
|
313
|
+
if (C[v] === n) {
|
314
|
+
y = v;
|
315
|
+
break;
|
316
|
+
}
|
317
|
+
w == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [g]: y })) : (w = JSON.parse(w), w[g] = y, localStorage.setItem("vendorSortingBy", JSON.stringify(w))), window.postMessage(
|
318
|
+
{
|
319
|
+
type: "ApplySorter",
|
320
|
+
sortBy: y,
|
321
|
+
itemId: g
|
322
|
+
},
|
323
|
+
window.location.href
|
324
|
+
), o(1, f = !f);
|
325
|
+
}, L = () => {
|
326
|
+
o(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
|
327
|
+
}, z = (n) => {
|
328
|
+
n.data.type == "FilterOpened" && o(1, f = !1);
|
329
|
+
};
|
330
|
+
it(() => (window.addEventListener("message", z, !1), () => {
|
331
|
+
window.removeEventListener("message", z);
|
332
|
+
}));
|
333
|
+
const A = () => L(), F = (n) => B(n);
|
334
|
+
function H(n) {
|
335
|
+
ct[n ? "unshift" : "push"](() => {
|
336
|
+
p = n, o(0, p);
|
337
|
+
});
|
338
|
+
}
|
339
|
+
return t.$$set = (n) => {
|
340
|
+
"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, m = n.clientstylingurl), "categoryid" in n && o(12, g = n.categoryid), "mbsource" in n && o(13, x = n.mbsource);
|
341
|
+
}, t.$$.update = () => {
|
342
|
+
t.$$.dirty & /*categoryid*/
|
343
|
+
4096 && g && O(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
344
|
+
1025 && d && p && pt(p, d), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
345
|
+
2049 && m && p && gt(p, m), t.$$.dirty & /*customStylingContainer, mbsource*/
|
346
|
+
8193 && p && ut(p, `${x}.Style`), t.$$.dirty & /*translationurl*/
|
347
|
+
512 && i && I();
|
348
|
+
}, [
|
349
|
+
p,
|
350
|
+
f,
|
351
|
+
_,
|
352
|
+
S,
|
353
|
+
a,
|
354
|
+
C,
|
355
|
+
B,
|
356
|
+
L,
|
357
|
+
s,
|
358
|
+
i,
|
359
|
+
d,
|
360
|
+
m,
|
361
|
+
g,
|
362
|
+
x,
|
363
|
+
A,
|
364
|
+
F,
|
365
|
+
H
|
366
|
+
];
|
367
|
+
}
|
368
|
+
class vt extends ot {
|
369
|
+
constructor(e) {
|
370
|
+
super(), nt(
|
371
|
+
this,
|
372
|
+
e,
|
373
|
+
St,
|
374
|
+
bt,
|
375
|
+
at,
|
376
|
+
{
|
377
|
+
lang: 8,
|
378
|
+
translationurl: 9,
|
379
|
+
clientstyling: 10,
|
380
|
+
clientstylingurl: 11,
|
381
|
+
categoryid: 12,
|
382
|
+
mbsource: 13
|
383
|
+
},
|
384
|
+
yt
|
385
|
+
);
|
386
|
+
}
|
387
|
+
get lang() {
|
388
|
+
return this.$$.ctx[8];
|
389
|
+
}
|
390
|
+
set lang(e) {
|
391
|
+
this.$$set({ lang: e }), D();
|
392
|
+
}
|
393
|
+
get translationurl() {
|
394
|
+
return this.$$.ctx[9];
|
395
|
+
}
|
396
|
+
set translationurl(e) {
|
397
|
+
this.$$set({ translationurl: e }), D();
|
398
|
+
}
|
399
|
+
get clientstyling() {
|
400
|
+
return this.$$.ctx[10];
|
401
|
+
}
|
402
|
+
set clientstyling(e) {
|
403
|
+
this.$$set({ clientstyling: e }), D();
|
404
|
+
}
|
405
|
+
get clientstylingurl() {
|
406
|
+
return this.$$.ctx[11];
|
407
|
+
}
|
408
|
+
set clientstylingurl(e) {
|
409
|
+
this.$$set({ clientstylingurl: e }), D();
|
410
|
+
}
|
411
|
+
get categoryid() {
|
412
|
+
return this.$$.ctx[12];
|
413
|
+
}
|
414
|
+
set categoryid(e) {
|
415
|
+
this.$$set({ categoryid: e }), D();
|
416
|
+
}
|
417
|
+
get mbsource() {
|
418
|
+
return this.$$.ctx[13];
|
419
|
+
}
|
420
|
+
set mbsource(e) {
|
421
|
+
this.$$set({ mbsource: e }), D();
|
422
|
+
}
|
423
|
+
}
|
424
|
+
ht(vt, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
|
425
|
+
export {
|
426
|
+
vt as default
|
427
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BAdLTnAD.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function T(e,r){t.addMessages(e,r)}const j={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-54zse8",':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, #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 E(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,p,h,d,S,c,m,v=e[4]("sortby")+"",f,w,z,A,F=(e[3]||e[4]("all"))+"",N,O,k,_,C,Z,a,g,b,M,B,H,D,I=t.ensure_array_like(Object.values(e[5])),y=[];for(let i=0;i<I.length;i+=1)y[i]=P(E(e,I,i));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),p=t.svg_element("path"),h=t.svg_element("path"),d=t.svg_element("path"),S=t.space(),c=t.element("div"),m=t.element("span"),f=t.text(v),w=t.space(),z=t.element("div"),A=t.element("span"),N=t.text(F),O=t.space(),k=t.element("span"),_=t.svg_element("svg"),C=t.svg_element("path"),g=t.space(),b=t.element("div"),M=t.element("ul");for(let i=0;i<y.length;i+=1)y[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(m,"class","SorterName"),t.attr(z,"class","SorterValueContainer"),t.attr(c,"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(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(k,"class",Z="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",a="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(M,"class","SorterDropdown"),t.attr(b,"class",B="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,x){t.insert(i,r,x),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,p),t.append(s,h),t.append(s,d),t.append(o,S),t.append(o,c),t.append(c,m),t.append(m,f),t.append(c,w),t.append(c,z),t.append(z,A),t.append(A,N),t.append(n,O),t.append(n,k),t.append(k,_),t.append(_,C),t.append(r,g),t.append(r,b),t.append(b,M);for(let u=0;u<y.length;u+=1)y[u]&&y[u].m(M,null);H||(D=t.listen(n,"click",e[14]),H=!0)},p(i,x){if(x&16&&v!==(v=i[4]("sortby")+"")&&t.set_data(f,v),x&24&&F!==(F=(i[3]||i[4]("all"))+"")&&t.set_data(N,F),x&2&&Z!==(Z="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(k,"class",Z),x&2&&a!==(a="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",a),x&120){I=t.ensure_array_like(Object.values(i[5]));let u;for(u=0;u<I.length;u+=1){const L=E(i,I,u);y[u]?y[u].p(L,x):(y[u]=P(L),y[u].c(),y[u].m(M,null))}for(;u<y.length;u+=1)y[u].d(1);y.length=I.length}x&2&&B!==(B="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(b,"class",B)},d(i){i&&t.detach(r),t.destroy_each(y,i),H=!1,D()}}}function P(e){let r,n,o,l,s,p,h,d,S,c,m;function v(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,S=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(p,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(f,w){t.insert(f,r,w),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,p),t.append(n,h),t.append(n,d),t.append(r,S),c||(m=t.listen(o,"click",v),c=!0)},p(f,w){e=f,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(f){f&&t.detach(r),c=!1,m()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,p){t.insert(s,r,p),l&&l.m(r,null),e[16](r)},p(s,[p]){o===(o=n(s))&&l?l.p(s,p):(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[16](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:p=""}=r,{clientstylingurl:h=""}=r,{categoryid:d=""}=r,{mbsource:S}=r,c,m=!1,v=!0,f="",w="All";V({withLocale:"en",translations:{}});const z=()=>{fetch(s).then(g=>g.json()).then(g=>{Object.keys(g).forEach(b=>{T(b,g[b])})}).catch(g=>{console.log(g)})};Object.keys(j).forEach(a=>{T(a,j[a])});const A={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},F=()=>{var g;n(3,w="All"),n(2,v=!1),n(1,m=!1);let a=(g=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:g[d];a?n(3,w=a):n(3,w="All"),n(3,w=A[a])},N=a=>{n(3,w=a);let g=localStorage.getItem("vendorSortingBy");f=a;for(let b in A)if(A[b]===a){f=b;break}g==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:f})):(g=JSON.parse(g),g[d]=f,localStorage.setItem("vendorSortingBy",JSON.stringify(g))),window.postMessage({type:"ApplySorter",sortBy:f,itemId:d},window.location.href),n(1,m=!m)},O=()=>{n(1,m=!m),window.postMessage({type:"SortingOpened"},window.location.href)},k=a=>{a.data.type=="FilterOpened"&&n(1,m=!1)};t.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));const _=()=>O(),C=a=>N(a);function Z(a){t.binding_callbacks[a?"unshift":"push"](()=>{c=a,n(0,c)})}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,p=a.clientstyling),"clientstylingurl"in a&&n(11,h=a.clientstylingurl),"categoryid"in a&&n(12,d=a.categoryid),"mbsource"in a&&n(13,S=a.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&F(),e.$$.dirty&1025&&p&&c&&t.setClientStyling(c,p),e.$$.dirty&2049&&h&&c&&t.setClientStylingURL(c,h),e.$$.dirty&8193&&c&&t.setStreamStyling(c,`${S}.Style`),e.$$.dirty&512&&s&&z()},[c,m,v,w,o,A,N,O,l,s,p,h,d,S,_,C,Z]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;
|