@everymatrix/casino-most-played-section 1.54.12 → 1.55.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-CJJQfG-H.cjs +5 -0
- package/components/{CasinoFilter-DFZ3WYCN.js → CasinoFilter-CcGaG3ex.js} +925 -883
- package/components/{CasinoFilter-BI27xzap.js → CasinoFilter-D9GxWv_2.js} +900 -858
- package/components/{CasinoGameThumbnail-SsDw02qF.cjs → CasinoGameThumbnail-B5F2b_gj.cjs} +16 -16
- package/components/{CasinoGameThumbnail-DalrsvwA.js → CasinoGameThumbnail-C_pO1yTw.js} +1384 -1373
- package/components/{CasinoGameThumbnail-B9ayiLVX.js → CasinoGameThumbnail-O5kps24w.js} +1221 -1242
- package/components/{CasinoGamesCategorySection-CX7b8KGX.js → CasinoGamesCategorySection-D45-SyaF.js} +1171 -1109
- package/components/{CasinoGamesCategorySection-CDCimaA-.js → CasinoGamesCategorySection-aoiRWaqn.js} +696 -634
- package/components/CasinoGamesCategorySection-gkpB3kQF.cjs +1 -0
- package/components/{CasinoMostPlayedSection-ChLe2LA-.js → CasinoMostPlayedSection-Bv9MrlaN.js} +17 -17
- package/components/{CasinoMostPlayedSection-CxjLLmgE.cjs → CasinoMostPlayedSection-C1RECc2M.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-D01DQAMD.js → CasinoMostPlayedSection-CccYQM4K.js} +22 -22
- package/components/CasinoSort-B6oacblG.js +428 -0
- package/components/CasinoSort-BpcWn3OF.cjs +1 -0
- package/components/CasinoSort-xzzdKSv3.js +427 -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/CasinoGamesCategorySection-CaE16Il2.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,428 @@
|
|
1
|
+
import { $ as q, L 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, k as P, n as U, o as R, p as it, q as ct, r as dt, y as pt, z as ut, A as gt, B as G, F as Z, d as I, t as K, h as r, l, u as tt, m as Q, C as ht, D as mt } from "./CasinoFilter-CcGaG3ex.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
|
+
lt(t, "svelte-kh3a1g", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
|
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, f, u, k, b, g, w = (
|
147
|
+
/*$_*/
|
148
|
+
t[4]("sortby") + ""
|
149
|
+
), S, v, x, D, C = (
|
150
|
+
/*vendorSortingBy*/
|
151
|
+
(t[3] || /*$_*/
|
152
|
+
t[4]("all")) + ""
|
153
|
+
), L, T, F, A, N, B, O, n, p, _, j, E, V, M = G(Object.values(
|
154
|
+
/*vendorMap*/
|
155
|
+
t[5]
|
156
|
+
)), y = [];
|
157
|
+
for (let c = 0; c < M.length; c += 1)
|
158
|
+
y[c] = $(Y(t, M, c));
|
159
|
+
return {
|
160
|
+
c() {
|
161
|
+
e = m("div"), o = m("div"), a = m("div"), s = Z("svg"), i = Z("g"), d = Z("path"), f = Z("path"), u = Z("path"), k = I(), b = m("div"), g = m("span"), S = K(w), v = I(), x = m("div"), D = m("span"), L = K(C), T = I(), F = m("span"), A = Z("svg"), N = Z("path"), n = I(), p = 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(u, "id", "Path_5269"), r(u, "data-name", "Path 5269"), r(u, "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(u, "transform", "translate(-412.896 0)"), r(u, "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", B = "TriangleInactive " + /*isSorterActive*/
|
165
|
+
(t[1] ? "TriangleActive" : "")), r(o, "class", O = "SorterSelector " + /*isSorterActive*/
|
166
|
+
(t[1] ? "SorterSelectorOpen" : "")), r(_, "class", "SorterDropdown"), r(p, "class", j = "SorterDropdownContainer " + /*isSorterActive*/
|
167
|
+
(t[1] ? "SorterOpen" : "")), r(e, "class", "SorterContainer");
|
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, u), l(a, k), l(a, b), l(b, g), l(g, S), l(b, v), l(b, x), l(x, D), l(D, L), l(o, T), l(o, F), l(F, A), l(A, N), l(e, n), l(e, p), l(p, _);
|
171
|
+
for (let h = 0; h < y.length; h += 1)
|
172
|
+
y[h] && y[h].m(_, null);
|
173
|
+
E || (V = tt(
|
174
|
+
o,
|
175
|
+
"click",
|
176
|
+
/*click_handler*/
|
177
|
+
t[14]
|
178
|
+
), E = !0);
|
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*/
|
185
|
+
(c[3] || /*$_*/
|
186
|
+
c[4]("all")) + "") && Q(L, C), z & /*isSorterActive*/
|
187
|
+
2 && B !== (B = "TriangleInactive " + /*isSorterActive*/
|
188
|
+
(c[1] ? "TriangleActive" : "")) && r(F, "class", B), z & /*isSorterActive*/
|
189
|
+
2 && O !== (O = "SorterSelector " + /*isSorterActive*/
|
190
|
+
(c[1] ? "SorterSelectorOpen" : "")) && r(o, "class", O), z & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
191
|
+
120) {
|
192
|
+
M = G(Object.values(
|
193
|
+
/*vendorMap*/
|
194
|
+
c[5]
|
195
|
+
));
|
196
|
+
let h;
|
197
|
+
for (h = 0; h < M.length; h += 1) {
|
198
|
+
const J = Y(c, M, h);
|
199
|
+
y[h] ? y[h].p(J, z) : (y[h] = $(J), y[h].c(), y[h].m(_, null));
|
200
|
+
}
|
201
|
+
for (; h < y.length; h += 1)
|
202
|
+
y[h].d(1);
|
203
|
+
y.length = M.length;
|
204
|
+
}
|
205
|
+
z & /*isSorterActive*/
|
206
|
+
2 && j !== (j = "SorterDropdownContainer " + /*isSorterActive*/
|
207
|
+
(c[1] ? "SorterOpen" : "")) && r(p, "class", j);
|
208
|
+
},
|
209
|
+
d(c) {
|
210
|
+
c && R(e), ht(y, c), E = !1, V();
|
211
|
+
}
|
212
|
+
};
|
213
|
+
}
|
214
|
+
function $(t) {
|
215
|
+
let e, o, a, s, i, d, f, u, k, b, g;
|
216
|
+
function w() {
|
217
|
+
return (
|
218
|
+
/*click_handler_1*/
|
219
|
+
t[15](
|
220
|
+
/*sort*/
|
221
|
+
t[23]
|
222
|
+
)
|
223
|
+
);
|
224
|
+
}
|
225
|
+
return {
|
226
|
+
c() {
|
227
|
+
e = m("li"), o = m("label"), a = m("input"), i = I(), d = m("span"), f = I(), u = m("span"), u.textContent = `${/*sort*/
|
228
|
+
t[23]}`, k = I(), 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(S, v) {
|
240
|
+
P(S, e, v), l(e, o), l(o, a), l(o, i), l(o, d), l(o, f), l(o, u), l(e, k), b || (g = tt(a, "click", w), b = !0);
|
241
|
+
},
|
242
|
+
p(S, v) {
|
243
|
+
t = S, v & /*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(S) {
|
254
|
+
S && R(e), b = !1, g();
|
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 = m("div"), s && s.c();
|
268
|
+
},
|
269
|
+
m(i, d) {
|
270
|
+
P(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 && R(e), s && s.d(), t[16](null);
|
279
|
+
}
|
280
|
+
};
|
281
|
+
}
|
282
|
+
function St(t, e, o) {
|
283
|
+
let a;
|
284
|
+
it(t, mt, (n) => o(4, a = n));
|
285
|
+
let { lang: s = "" } = e, { translationurl: i = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: f = "" } = e, { categoryid: u = "" } = e, { mbsource: k } = e, b, g, w = !1, S = !0, v = "", x = "All";
|
286
|
+
ft({ withLocale: "en", translations: {} });
|
287
|
+
const D = () => {
|
288
|
+
fetch(i).then((p) => p.json()).then((p) => {
|
289
|
+
Object.keys(p).forEach((_) => {
|
290
|
+
W(_, p[_]);
|
291
|
+
});
|
292
|
+
}).catch((p) => {
|
293
|
+
console.log(p);
|
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
|
+
}, L = () => {
|
305
|
+
var p;
|
306
|
+
o(3, x = "All"), o(2, S = !1), o(1, w = !1);
|
307
|
+
let n = (p = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : p[u];
|
308
|
+
n ? o(3, x = n) : o(3, x = "All"), o(3, x = C[n]);
|
309
|
+
}, T = (n) => {
|
310
|
+
o(3, x = n);
|
311
|
+
let p = localStorage.getItem("vendorSortingBy");
|
312
|
+
v = n;
|
313
|
+
for (let _ in C)
|
314
|
+
if (C[_] === n) {
|
315
|
+
v = _;
|
316
|
+
break;
|
317
|
+
}
|
318
|
+
p == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [u]: v })) : (p = JSON.parse(p), p[u] = v, localStorage.setItem("vendorSortingBy", JSON.stringify(p))), window.postMessage(
|
319
|
+
{
|
320
|
+
type: "ApplySorter",
|
321
|
+
sortBy: v,
|
322
|
+
itemId: u
|
323
|
+
},
|
324
|
+
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);
|
330
|
+
};
|
331
|
+
ct(() => (window.addEventListener("message", A, !1), () => {
|
332
|
+
window.emMessageBus != null && b && b.unsubscribe(), window.removeEventListener("message", A);
|
333
|
+
}));
|
334
|
+
const N = () => F(), B = (n) => T(n);
|
335
|
+
function O(n) {
|
336
|
+
pt[n ? "unshift" : "push"](() => {
|
337
|
+
g = n, o(0, g);
|
338
|
+
});
|
339
|
+
}
|
340
|
+
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, u = n.categoryid), "mbsource" in n && o(13, k = n.mbsource);
|
342
|
+
}, t.$$.update = () => {
|
343
|
+
t.$$.dirty & /*categoryid*/
|
344
|
+
4096 && u && 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 && D();
|
349
|
+
}, [
|
350
|
+
g,
|
351
|
+
w,
|
352
|
+
S,
|
353
|
+
x,
|
354
|
+
a,
|
355
|
+
C,
|
356
|
+
T,
|
357
|
+
F,
|
358
|
+
s,
|
359
|
+
i,
|
360
|
+
d,
|
361
|
+
f,
|
362
|
+
u,
|
363
|
+
k,
|
364
|
+
N,
|
365
|
+
B,
|
366
|
+
O
|
367
|
+
];
|
368
|
+
}
|
369
|
+
class vt extends ot {
|
370
|
+
constructor(e) {
|
371
|
+
super(), nt(
|
372
|
+
this,
|
373
|
+
e,
|
374
|
+
St,
|
375
|
+
bt,
|
376
|
+
st,
|
377
|
+
{
|
378
|
+
lang: 8,
|
379
|
+
translationurl: 9,
|
380
|
+
clientstyling: 10,
|
381
|
+
clientstylingurl: 11,
|
382
|
+
categoryid: 12,
|
383
|
+
mbsource: 13
|
384
|
+
},
|
385
|
+
yt
|
386
|
+
);
|
387
|
+
}
|
388
|
+
get lang() {
|
389
|
+
return this.$$.ctx[8];
|
390
|
+
}
|
391
|
+
set lang(e) {
|
392
|
+
this.$$set({ lang: e }), H();
|
393
|
+
}
|
394
|
+
get translationurl() {
|
395
|
+
return this.$$.ctx[9];
|
396
|
+
}
|
397
|
+
set translationurl(e) {
|
398
|
+
this.$$set({ translationurl: e }), H();
|
399
|
+
}
|
400
|
+
get clientstyling() {
|
401
|
+
return this.$$.ctx[10];
|
402
|
+
}
|
403
|
+
set clientstyling(e) {
|
404
|
+
this.$$set({ clientstyling: e }), H();
|
405
|
+
}
|
406
|
+
get clientstylingurl() {
|
407
|
+
return this.$$.ctx[11];
|
408
|
+
}
|
409
|
+
set clientstylingurl(e) {
|
410
|
+
this.$$set({ clientstylingurl: e }), H();
|
411
|
+
}
|
412
|
+
get categoryid() {
|
413
|
+
return this.$$.ctx[12];
|
414
|
+
}
|
415
|
+
set categoryid(e) {
|
416
|
+
this.$$set({ categoryid: e }), H();
|
417
|
+
}
|
418
|
+
get mbsource() {
|
419
|
+
return this.$$.ctx[13];
|
420
|
+
}
|
421
|
+
set mbsource(e) {
|
422
|
+
this.$$set({ mbsource: e }), H();
|
423
|
+
}
|
424
|
+
}
|
425
|
+
at(vt, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
|
426
|
+
export {
|
427
|
+
vt as default
|
428
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-CJJQfG-H.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-kh3a1g",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function 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,x,y,u,f=e[4]("sortby")+"",b,w,S,I,A=(e[3]||e[4]("all"))+"",O,M,C,_,z,F,N,a,c,v,B,H,D,Z=t.ensure_array_like(Object.values(e[5])),m=[];for(let i=0;i<Z.length;i+=1)m[i]=P(E(e,Z,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"),x=t.space(),y=t.element("div"),u=t.element("span"),b=t.text(f),w=t.space(),S=t.element("div"),I=t.element("span"),O=t.text(A),M=t.space(),C=t.element("span"),_=t.svg_element("svg"),z=t.svg_element("path"),a=t.space(),c=t.element("div"),v=t.element("ul");for(let i=0;i<m.length;i+=1)m[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(u,"class","SorterName"),t.attr(S,"class","SorterValueContainer"),t.attr(y,"class","SorterTextContainer"),t.attr(o,"class","SorterMainArea"),t.attr(z,"id","arrow"),t.attr(z,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(z,"transform","translate(-274.511 -441.088)"),t.attr(z,"fill","#d1d1d1"),t.attr(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(C,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(v,"class","SorterDropdown"),t.attr(c,"class",B="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,k){t.insert(i,r,k),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,x),t.append(o,y),t.append(y,u),t.append(u,b),t.append(y,w),t.append(y,S),t.append(S,I),t.append(I,O),t.append(n,M),t.append(n,C),t.append(C,_),t.append(_,z),t.append(r,a),t.append(r,c),t.append(c,v);for(let g=0;g<m.length;g+=1)m[g]&&m[g].m(v,null);H||(D=t.listen(n,"click",e[14]),H=!0)},p(i,k){if(k&16&&f!==(f=i[4]("sortby")+"")&&t.set_data(b,f),k&24&&A!==(A=(i[3]||i[4]("all"))+"")&&t.set_data(O,A),k&2&&F!==(F="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(C,"class",F),k&2&&N!==(N="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),k&120){Z=t.ensure_array_like(Object.values(i[5]));let g;for(g=0;g<Z.length;g+=1){const L=E(i,Z,g);m[g]?m[g].p(L,k):(m[g]=P(L),m[g].c(),m[g].m(v,null))}for(;g<m.length;g+=1)m[g].d(1);m.length=Z.length}k&2&&B!==(B="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(c,"class",B)},d(i){i&&t.detach(r),t.destroy_each(m,i),H=!1,D()}}}function P(e){let r,n,o,l,s,p,h,d,x,y,u;function f(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,x=t.space(),t.attr(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(b,w){t.insert(b,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,x),y||(u=t.listen(o,"click",f),y=!0)},p(b,w){e=b,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(b){b&&t.detach(r),y=!1,u()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let 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:x}=r,y,u,f=!1,b=!0,w="",S="All";V({withLocale:"en",translations:{}});const I=()=>{fetch(s).then(c=>c.json()).then(c=>{Object.keys(c).forEach(v=>{T(v,c[v])})}).catch(c=>{console.log(c)})};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")},O=()=>{var c;n(3,S="All"),n(2,b=!1),n(1,f=!1);let a=(c=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:c[d];a?n(3,S=a):n(3,S="All"),n(3,S=A[a])},M=a=>{n(3,S=a);let c=localStorage.getItem("vendorSortingBy");w=a;for(let v in A)if(A[v]===a){w=v;break}c==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:w})):(c=JSON.parse(c),c[d]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(c))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:d},window.location.href),n(1,f=!f)},C=()=>{n(1,f=!f),window.postMessage({type:"SortingOpened"},window.location.href)},_=a=>{a.data.type=="FilterOpened"&&n(1,f=!1)};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.emMessageBus!=null&&y&&y.unsubscribe(),window.removeEventListener("message",_)}));const z=()=>C(),F=a=>M(a);function N(a){t.binding_callbacks[a?"unshift":"push"](()=>{u=a,n(0,u)})}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,x=a.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&O(),e.$$.dirty&1025&&p&&u&&t.setClientStyling(u,p),e.$$.dirty&2049&&h&&u&&t.setClientStylingURL(u,h),e.$$.dirty&8193&&u&&t.setStreamStyling(u,`${x}.Style`),e.$$.dirty&512&&s&&I()},[u,f,b,S,o,A,M,C,l,s,p,h,d,x,z,F,N]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;
|