@everymatrix/casino-most-played-section 1.45.0 → 1.45.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.
@@ -0,0 +1,425 @@
1
+ import { $ as q, F as te, a as re, S as oe, i as ne, f as D, c as ae, s as le, b as se, e as m, k as R, n as U, o as P, p as ie, q as ce, x as de, y as G, C as N, d as Z, t as K, h as r, l as s, r as ee, m as Q, z as pe, A as ge } from "./CasinoFilter-H10ltJK5.js";
2
+ function ue({ withLocale: e, translations: t }) {
3
+ q.subscribe((o) => {
4
+ o == null && (te.set(t), q.set(e));
5
+ });
6
+ }
7
+ function W(e, t) {
8
+ re(e, t);
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
+ };
131
+ function he(e) {
132
+ se(e, "svelte-k01d1b", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.SorterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-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}}');
133
+ }
134
+ function Y(e, t, o) {
135
+ const a = e.slice();
136
+ return a[23] = t[o], a;
137
+ }
138
+ function fe(e) {
139
+ let t, o, a, l, i, p, y, g, b, u, x, S = (
140
+ /*$_*/
141
+ e[4]("sortby") + ""
142
+ ), f, C, A, L, I = (
143
+ /*vendorSortingBy*/
144
+ (e[3] || /*$_*/
145
+ e[4]("all")) + ""
146
+ ), B, T, z, _, F, M, O, n, c, v, E, j, V, H = G(Object.values(
147
+ /*vendorMap*/
148
+ e[5]
149
+ )), w = [];
150
+ for (let d = 0; d < H.length; d += 1)
151
+ w[d] = $(Y(e, H, d));
152
+ return {
153
+ c() {
154
+ t = m("div"), o = m("div"), a = m("div"), l = N("svg"), i = N("g"), p = N("path"), y = N("path"), g = N("path"), b = Z(), u = m("div"), x = m("span"), f = K(S), C = Z(), A = m("div"), L = m("span"), B = K(I), T = Z(), z = m("span"), _ = N("svg"), F = N("path"), n = Z(), c = m("div"), v = m("ul");
155
+ for (let d = 0; d < w.length; d += 1)
156
+ w[d].c();
157
+ r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(p, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class", M = "TriangleInactive " + /*isSorterActive*/
158
+ (e[1] ? "TriangleActive" : "")), r(o, "class", O = "SorterSelector " + /*isSorterActive*/
159
+ (e[1] ? "SorterSelectorOpen" : "")), r(v, "class", "SorterDropdown"), r(c, "class", E = "SorterDropdownContainer " + /*isSorterActive*/
160
+ (e[1] ? "SorterOpen" : "")), r(t, "class", "SorterContainer");
161
+ },
162
+ m(d, k) {
163
+ R(d, t, k), s(t, o), s(o, a), s(a, l), s(l, i), s(i, p), s(i, y), s(i, g), s(a, b), s(a, u), s(u, x), s(x, f), s(u, C), s(u, A), s(A, L), s(L, B), s(o, T), s(o, z), s(z, _), s(_, F), s(t, n), s(t, c), s(c, v);
164
+ for (let h = 0; h < w.length; h += 1)
165
+ w[h] && w[h].m(v, null);
166
+ j || (V = ee(
167
+ o,
168
+ "click",
169
+ /*click_handler*/
170
+ e[13]
171
+ ), j = !0);
172
+ },
173
+ p(d, k) {
174
+ if (k & /*$_*/
175
+ 16 && S !== (S = /*$_*/
176
+ d[4]("sortby") + "") && Q(f, S), k & /*vendorSortingBy, $_*/
177
+ 24 && I !== (I = /*vendorSortingBy*/
178
+ (d[3] || /*$_*/
179
+ d[4]("all")) + "") && Q(B, I), k & /*isSorterActive*/
180
+ 2 && M !== (M = "TriangleInactive " + /*isSorterActive*/
181
+ (d[1] ? "TriangleActive" : "")) && r(z, "class", M), k & /*isSorterActive*/
182
+ 2 && O !== (O = "SorterSelector " + /*isSorterActive*/
183
+ (d[1] ? "SorterSelectorOpen" : "")) && r(o, "class", O), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
184
+ 120) {
185
+ H = G(Object.values(
186
+ /*vendorMap*/
187
+ d[5]
188
+ ));
189
+ let h;
190
+ for (h = 0; h < H.length; h += 1) {
191
+ const J = Y(d, H, h);
192
+ w[h] ? w[h].p(J, k) : (w[h] = $(J), w[h].c(), w[h].m(v, null));
193
+ }
194
+ for (; h < w.length; h += 1)
195
+ w[h].d(1);
196
+ w.length = H.length;
197
+ }
198
+ k & /*isSorterActive*/
199
+ 2 && E !== (E = "SorterDropdownContainer " + /*isSorterActive*/
200
+ (d[1] ? "SorterOpen" : "")) && r(c, "class", E);
201
+ },
202
+ d(d) {
203
+ d && P(t), pe(w, d), j = !1, V();
204
+ }
205
+ };
206
+ }
207
+ function $(e) {
208
+ let t, o, a, l, i, p, y, g, b, u, x;
209
+ function S() {
210
+ return (
211
+ /*click_handler_1*/
212
+ e[14](
213
+ /*sort*/
214
+ e[23]
215
+ )
216
+ );
217
+ }
218
+ return {
219
+ c() {
220
+ t = m("li"), o = m("label"), a = m("input"), i = Z(), p = m("span"), y = Z(), g = m("span"), g.textContent = `${/*sort*/
221
+ e[23]}`, b = Z(), r(a, "type", "radio"), r(a, "name", "radio"), a.value = /*sort*/
222
+ e[23], a.checked = l = /*vendorSortingBy*/
223
+ e[3] == /*sort*/
224
+ e[23] ? !0 : (
225
+ /*vendorSortingBy*/
226
+ e[3] == null && /*sort*/
227
+ e[23] == /*$_*/
228
+ e[4]("all")
229
+ ), r(p, "class", "SortersCheckmark"), r(o, "class", "SorterLabel CustomRadioButton"), r(t, "class", "SorterItem"), t.value = /*sort*/
230
+ e[23];
231
+ },
232
+ m(f, C) {
233
+ R(f, t, C), s(t, o), s(o, a), s(o, i), s(o, p), s(o, y), s(o, g), s(t, b), u || (x = ee(a, "click", S), u = !0);
234
+ },
235
+ p(f, C) {
236
+ e = f, C & /*vendorSortingBy, $_*/
237
+ 24 && l !== (l = /*vendorSortingBy*/
238
+ e[3] == /*sort*/
239
+ e[23] ? !0 : (
240
+ /*vendorSortingBy*/
241
+ e[3] == null && /*sort*/
242
+ e[23] == /*$_*/
243
+ e[4]("all")
244
+ )) && (a.checked = l);
245
+ },
246
+ d(f) {
247
+ f && P(t), u = !1, x();
248
+ }
249
+ };
250
+ }
251
+ function me(e) {
252
+ let t;
253
+ function o(i, p) {
254
+ if (!/*isLoading*/
255
+ i[2]) return fe;
256
+ }
257
+ let a = o(e), l = a && a(e);
258
+ return {
259
+ c() {
260
+ t = m("div"), l && l.c();
261
+ },
262
+ m(i, p) {
263
+ R(i, t, p), l && l.m(t, null), e[15](t);
264
+ },
265
+ p(i, [p]) {
266
+ a === (a = o(i)) && l ? l.p(i, p) : (l && l.d(1), l = a && a(i), l && (l.c(), l.m(t, null)));
267
+ },
268
+ i: U,
269
+ o: U,
270
+ d(i) {
271
+ i && P(t), l && l.d(), e[15](null);
272
+ }
273
+ };
274
+ }
275
+ function ye(e, t, o) {
276
+ let a;
277
+ ie(e, ge, (n) => o(4, a = n));
278
+ let { lang: l = "" } = t, { translationurl: i = "" } = t, { clientstyling: p = "" } = t, { clientstylingurl: y = "" } = t, { categoryid: g = "" } = t, b, u = !1, x = !0, S = "", f = "All";
279
+ ue({ withLocale: "en", translations: {} });
280
+ const C = () => {
281
+ fetch(i).then((c) => c.json()).then((c) => {
282
+ Object.keys(c).forEach((v) => {
283
+ W(v, c[v]);
284
+ });
285
+ }).catch((c) => {
286
+ console.log(c);
287
+ });
288
+ };
289
+ Object.keys(X).forEach((n) => {
290
+ W(n, X[n]);
291
+ });
292
+ const A = {
293
+ All: a("all"),
294
+ name: a("az"),
295
+ isNew: a("newest"),
296
+ "advancedTags(name(hot))": a("hottest")
297
+ }, L = () => {
298
+ let n = document.createElement("style");
299
+ n.innerHTML = p, b.appendChild(n);
300
+ }, I = () => {
301
+ let n = document.createElement("style");
302
+ fetch(new URL(y)).then((c) => c.text()).then((c) => {
303
+ n.innerHTML = c, setTimeout(
304
+ () => {
305
+ b.appendChild(n);
306
+ },
307
+ 1
308
+ );
309
+ });
310
+ }, B = () => {
311
+ var c;
312
+ o(3, f = "All"), o(2, x = !1), o(1, u = !1);
313
+ let n = (c = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : c[g];
314
+ n ? o(3, f = n) : o(3, f = "All"), o(3, f = A[n]);
315
+ }, T = (n) => {
316
+ o(3, f = n);
317
+ let c = localStorage.getItem("vendorSortingBy");
318
+ S = n;
319
+ for (let v in A)
320
+ if (A[v] === n) {
321
+ S = v;
322
+ break;
323
+ }
324
+ c == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [g]: S })) : (c = JSON.parse(c), c[g] = S, localStorage.setItem("vendorSortingBy", JSON.stringify(c))), window.postMessage(
325
+ {
326
+ type: "ApplySorter",
327
+ sortBy: S,
328
+ itemId: g
329
+ },
330
+ window.location.href
331
+ ), o(1, u = !u);
332
+ }, z = () => {
333
+ o(1, u = !u), window.postMessage({ type: "SortingOpened" }, window.location.href);
334
+ }, _ = (n) => {
335
+ n.data.type == "FilterOpened" && o(1, u = !1);
336
+ };
337
+ ce(() => (window.addEventListener("message", _, !1), () => {
338
+ window.removeEventListener("message", _);
339
+ }));
340
+ const F = () => z(), M = (n) => T(n);
341
+ function O(n) {
342
+ de[n ? "unshift" : "push"](() => {
343
+ b = n, o(0, b);
344
+ });
345
+ }
346
+ return e.$$set = (n) => {
347
+ "lang" in n && o(8, l = n.lang), "translationurl" in n && o(9, i = n.translationurl), "clientstyling" in n && o(10, p = n.clientstyling), "clientstylingurl" in n && o(11, y = n.clientstylingurl), "categoryid" in n && o(12, g = n.categoryid);
348
+ }, e.$$.update = () => {
349
+ e.$$.dirty & /*categoryid*/
350
+ 4096 && g && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
351
+ 1025 && p && b && L(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
352
+ 2049 && y && b && I(), e.$$.dirty & /*translationurl*/
353
+ 512 && i && C();
354
+ }, [
355
+ b,
356
+ u,
357
+ x,
358
+ f,
359
+ a,
360
+ A,
361
+ T,
362
+ z,
363
+ l,
364
+ i,
365
+ p,
366
+ y,
367
+ g,
368
+ F,
369
+ M,
370
+ O
371
+ ];
372
+ }
373
+ class we extends oe {
374
+ constructor(t) {
375
+ super(), ne(
376
+ this,
377
+ t,
378
+ ye,
379
+ me,
380
+ le,
381
+ {
382
+ lang: 8,
383
+ translationurl: 9,
384
+ clientstyling: 10,
385
+ clientstylingurl: 11,
386
+ categoryid: 12
387
+ },
388
+ he
389
+ );
390
+ }
391
+ get lang() {
392
+ return this.$$.ctx[8];
393
+ }
394
+ set lang(t) {
395
+ this.$$set({ lang: t }), D();
396
+ }
397
+ get translationurl() {
398
+ return this.$$.ctx[9];
399
+ }
400
+ set translationurl(t) {
401
+ this.$$set({ translationurl: t }), D();
402
+ }
403
+ get clientstyling() {
404
+ return this.$$.ctx[10];
405
+ }
406
+ set clientstyling(t) {
407
+ this.$$set({ clientstyling: t }), D();
408
+ }
409
+ get clientstylingurl() {
410
+ return this.$$.ctx[11];
411
+ }
412
+ set clientstylingurl(t) {
413
+ this.$$set({ clientstylingurl: t }), D();
414
+ }
415
+ get categoryid() {
416
+ return this.$$.ctx[12];
417
+ }
418
+ set categoryid(t) {
419
+ this.$$set({ categoryid: t }), D();
420
+ }
421
+ }
422
+ ae(we, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
423
+ export {
424
+ we as default
425
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoFilter-DvwXHWZ_.cjs");function V({withLocale:t,translations:r}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(r),e.$locale.set(t))})}function D(t,r){e.addMessages(t,r)}const E={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"}};function J(t){e.append_styles(t,"svelte-k01d1b",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.SorterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-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}}')}function j(t,r,n){const o=t.slice();return o[23]=r[n],o}function q(t){let r,n,o,l,s,d,m,c,y,g,S,w=t[4]("sortby")+"",h,A,_,I,z=(t[3]||t[4]("all"))+"",M,O,k,v,C,F,N,a,i,b,H,L,T,Z=e.ensure_array_like(Object.values(t[5])),f=[];for(let p=0;p<Z.length;p+=1)f[p]=P(j(t,Z,p));return{c(){r=e.element("div"),n=e.element("div"),o=e.element("div"),l=e.svg_element("svg"),s=e.svg_element("g"),d=e.svg_element("path"),m=e.svg_element("path"),c=e.svg_element("path"),y=e.space(),g=e.element("div"),S=e.element("span"),h=e.text(w),A=e.space(),_=e.element("div"),I=e.element("span"),M=e.text(z),O=e.space(),k=e.element("span"),v=e.svg_element("svg"),C=e.svg_element("path"),a=e.space(),i=e.element("div"),b=e.element("ul");for(let p=0;p<f.length;p+=1)f[p].c();e.attr(d,"id","Path_5267"),e.attr(d,"data-name","Path 5267"),e.attr(d,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),e.attr(d,"transform","translate(-206.448 0)"),e.attr(d,"fill","#fff"),e.attr(m,"id","Path_5268"),e.attr(m,"data-name","Path 5268"),e.attr(m,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),e.attr(m,"transform","translate(0 0)"),e.attr(m,"fill","#fff"),e.attr(c,"id","Path_5269"),e.attr(c,"data-name","Path 5269"),e.attr(c,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),e.attr(c,"transform","translate(-412.896 0)"),e.attr(c,"fill","#fff"),e.attr(s,"id","sortby"),e.attr(s,"transform","translate(-306 -342)"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","20"),e.attr(l,"height","20"),e.attr(l,"viewBox","0 0 26.003 22.819"),e.attr(S,"class","SorterName"),e.attr(_,"class","SorterValueContainer"),e.attr(g,"class","SorterTextContainer"),e.attr(o,"class","SorterMainArea"),e.attr(C,"id","arrow"),e.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"),e.attr(C,"transform","translate(-274.511 -441.088)"),e.attr(C,"fill","#d1d1d1"),e.attr(v,"xmlns","http://www.w3.org/2000/svg"),e.attr(v,"width","14"),e.attr(v,"height","6.835"),e.attr(v,"viewBox","0 0 14 6.835"),e.attr(k,"class",F="TriangleInactive "+(t[1]?"TriangleActive":"")),e.attr(n,"class",N="SorterSelector "+(t[1]?"SorterSelectorOpen":"")),e.attr(b,"class","SorterDropdown"),e.attr(i,"class",H="SorterDropdownContainer "+(t[1]?"SorterOpen":"")),e.attr(r,"class","SorterContainer")},m(p,x){e.insert(p,r,x),e.append(r,n),e.append(n,o),e.append(o,l),e.append(l,s),e.append(s,d),e.append(s,m),e.append(s,c),e.append(o,y),e.append(o,g),e.append(g,S),e.append(S,h),e.append(g,A),e.append(g,_),e.append(_,I),e.append(I,M),e.append(n,O),e.append(n,k),e.append(k,v),e.append(v,C),e.append(r,a),e.append(r,i),e.append(i,b);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(b,null);L||(T=e.listen(n,"click",t[13]),L=!0)},p(p,x){if(x&16&&w!==(w=p[4]("sortby")+"")&&e.set_data(h,w),x&24&&z!==(z=(p[3]||p[4]("all"))+"")&&e.set_data(M,z),x&2&&F!==(F="TriangleInactive "+(p[1]?"TriangleActive":""))&&e.attr(k,"class",F),x&2&&N!==(N="SorterSelector "+(p[1]?"SorterSelectorOpen":""))&&e.attr(n,"class",N),x&120){Z=e.ensure_array_like(Object.values(p[5]));let u;for(u=0;u<Z.length;u+=1){const B=j(p,Z,u);f[u]?f[u].p(B,x):(f[u]=P(B),f[u].c(),f[u].m(b,null))}for(;u<f.length;u+=1)f[u].d(1);f.length=Z.length}x&2&&H!==(H="SorterDropdownContainer "+(p[1]?"SorterOpen":""))&&e.attr(i,"class",H)},d(p){p&&e.detach(r),e.destroy_each(f,p),L=!1,T()}}}function P(t){let r,n,o,l,s,d,m,c,y,g,S;function w(){return t[14](t[23])}return{c(){r=e.element("li"),n=e.element("label"),o=e.element("input"),s=e.space(),d=e.element("span"),m=e.space(),c=e.element("span"),c.textContent=`${t[23]}`,y=e.space(),e.attr(o,"type","radio"),e.attr(o,"name","radio"),o.value=t[23],o.checked=l=t[3]==t[23]?!0:t[3]==null&&t[23]==t[4]("all"),e.attr(d,"class","SortersCheckmark"),e.attr(n,"class","SorterLabel CustomRadioButton"),e.attr(r,"class","SorterItem"),r.value=t[23]},m(h,A){e.insert(h,r,A),e.append(r,n),e.append(n,o),e.append(n,s),e.append(n,d),e.append(n,m),e.append(n,c),e.append(r,y),g||(S=e.listen(o,"click",w),g=!0)},p(h,A){t=h,A&24&&l!==(l=t[3]==t[23]?!0:t[3]==null&&t[23]==t[4]("all"))&&(o.checked=l)},d(h){h&&e.detach(r),g=!1,S()}}}function U(t){let r;function n(s,d){if(!s[2])return q}let o=n(t),l=o&&o(t);return{c(){r=e.element("div"),l&&l.c()},m(s,d){e.insert(s,r,d),l&&l.m(r,null),t[15](r)},p(s,[d]){o===(o=n(s))&&l?l.p(s,d):(l&&l.d(1),l=o&&o(s),l&&(l.c(),l.m(r,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(r),l&&l.d(),t[15](null)}}}function G(t,r,n){let o;e.component_subscribe(t,e.$format,a=>n(4,o=a));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:d=""}=r,{clientstylingurl:m=""}=r,{categoryid:c=""}=r,y,g=!1,S=!0,w="",h="All";V({withLocale:"en",translations:{}});const A=()=>{fetch(s).then(i=>i.json()).then(i=>{Object.keys(i).forEach(b=>{D(b,i[b])})}).catch(i=>{console.log(i)})};Object.keys(E).forEach(a=>{D(a,E[a])});const _={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},I=()=>{let a=document.createElement("style");a.innerHTML=d,y.appendChild(a)},z=()=>{let a=document.createElement("style");fetch(new URL(m)).then(i=>i.text()).then(i=>{a.innerHTML=i,setTimeout(()=>{y.appendChild(a)},1)})},M=()=>{var i;n(3,h="All"),n(2,S=!1),n(1,g=!1);let a=(i=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:i[c];a?n(3,h=a):n(3,h="All"),n(3,h=_[a])},O=a=>{n(3,h=a);let i=localStorage.getItem("vendorSortingBy");w=a;for(let b in _)if(_[b]===a){w=b;break}i==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:w})):(i=JSON.parse(i),i[c]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(i))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:c},window.location.href),n(1,g=!g)},k=()=>{n(1,g=!g),window.postMessage({type:"SortingOpened"},window.location.href)},v=a=>{a.data.type=="FilterOpened"&&n(1,g=!1)};e.onMount(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}));const C=()=>k(),F=a=>O(a);function N(a){e.binding_callbacks[a?"unshift":"push"](()=>{y=a,n(0,y)})}return t.$$set=a=>{"lang"in a&&n(8,l=a.lang),"translationurl"in a&&n(9,s=a.translationurl),"clientstyling"in a&&n(10,d=a.clientstyling),"clientstylingurl"in a&&n(11,m=a.clientstylingurl),"categoryid"in a&&n(12,c=a.categoryid)},t.$$.update=()=>{t.$$.dirty&4096&&c&&M(),t.$$.dirty&1025&&d&&y&&I(),t.$$.dirty&2049&&m&&y&&z(),t.$$.dirty&512&&s&&A()},[y,g,S,h,o,_,O,k,l,s,d,m,c,C,F,N]}class R extends e.SvelteComponent{constructor(r){super(),e.init(this,r,G,U,e.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),e.flush()}}e.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{}},[],[],!0);exports.default=R;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-Dh2nzc19.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-lRTCHR6P.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-DItMviDj.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-BvugFrhs.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-most-played-section",
3
- "version": "1.45.0",
3
+ "version": "1.45.3",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-most-played-section.cjs",
6
6
  "module": "es2015/casino-most-played-section.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/casino-most-played-section.cjs": "./es2015/casino-most-played-section.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],