@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.
Files changed (26) hide show
  1. package/components/CasinoFilter-BAdLTnAD.cjs +5 -0
  2. package/components/{CasinoFilter-BI27xzap.js → CasinoFilter-fbj0IAUu.js} +1008 -988
  3. package/components/{CasinoFilter-DFZ3WYCN.js → CasinoFilter-whrvW_Wr.js} +1041 -1021
  4. package/components/{CasinoGameThumbnail-B9ayiLVX.js → CasinoGameThumbnail-ByOsKdAz.js} +1192 -1197
  5. package/components/CasinoGameThumbnail-CC4Sp_8e.cjs +47 -0
  6. package/components/{CasinoGameThumbnail-DalrsvwA.js → CasinoGameThumbnail-DDm68IkO.js} +1193 -1198
  7. package/components/{CasinoGamesCategorySection-CX7b8KGX.js → CasinoGamesCategorySection-BRqdWRg5.js} +945 -919
  8. package/components/{CasinoGamesCategorySection-CDCimaA-.js → CasinoGamesCategorySection-CrUw-cLw.js} +855 -829
  9. package/components/CasinoGamesCategorySection-vJ4GHywW.cjs +1 -0
  10. package/components/{CasinoMostPlayedSection-ChLe2LA-.js → CasinoMostPlayedSection-BEBD5zQW.js} +192 -183
  11. package/components/{CasinoMostPlayedSection-D01DQAMD.js → CasinoMostPlayedSection-BII2-3JX.js} +192 -183
  12. package/components/CasinoMostPlayedSection-BtV5x3I6.cjs +1 -0
  13. package/components/CasinoSort-CkG6j04g.js +427 -0
  14. package/components/CasinoSort-DipisPF3.cjs +1 -0
  15. package/components/CasinoSort-Pgz0Acwm.js +428 -0
  16. package/es2015/casino-most-played-section.cjs +1 -1
  17. package/es2015/casino-most-played-section.js +1 -1
  18. package/esnext/casino-most-played-section.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoFilter-DsPFGyLq.cjs +0 -5
  21. package/components/CasinoGameThumbnail-SsDw02qF.cjs +0 -47
  22. package/components/CasinoGamesCategorySection-CaE16Il2.cjs +0 -1
  23. package/components/CasinoMostPlayedSection-CxjLLmgE.cjs +0 -1
  24. package/components/CasinoSort-CEbh5FL7.cjs +0 -1
  25. package/components/CasinoSort-DHs5pqaK.js +0 -432
  26. package/components/CasinoSort-Dhqq-EhY.js +0 -431
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-DsPFGyLq.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function D(e,r){t.addMessages(e,r)}const E={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-kh3a1g",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function j(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,d,m,c,y,g,S,w=e[4]("sortby")+"",h,A,_,I,z=(e[3]||e[4]("all"))+"",M,O,k,v,C,F,N,a,i,b,H,L,T,Z=t.ensure_array_like(Object.values(e[5])),f=[];for(let p=0;p<Z.length;p+=1)f[p]=P(j(e,Z,p));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),d=t.svg_element("path"),m=t.svg_element("path"),c=t.svg_element("path"),y=t.space(),g=t.element("div"),S=t.element("span"),h=t.text(w),A=t.space(),_=t.element("div"),I=t.element("span"),M=t.text(z),O=t.space(),k=t.element("span"),v=t.svg_element("svg"),C=t.svg_element("path"),a=t.space(),i=t.element("div"),b=t.element("ul");for(let p=0;p<f.length;p+=1)f[p].c();t.attr(d,"id","Path_5267"),t.attr(d,"data-name","Path 5267"),t.attr(d,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(d,"transform","translate(-206.448 0)"),t.attr(d,"fill","#fff"),t.attr(m,"id","Path_5268"),t.attr(m,"data-name","Path 5268"),t.attr(m,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(m,"transform","translate(0 0)"),t.attr(m,"fill","#fff"),t.attr(c,"id","Path_5269"),t.attr(c,"data-name","Path 5269"),t.attr(c,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(c,"transform","translate(-412.896 0)"),t.attr(c,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(S,"class","SorterName"),t.attr(_,"class","SorterValueContainer"),t.attr(g,"class","SorterTextContainer"),t.attr(o,"class","SorterMainArea"),t.attr(C,"id","arrow"),t.attr(C,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(C,"transform","translate(-274.511 -441.088)"),t.attr(C,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(k,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(b,"class","SorterDropdown"),t.attr(i,"class",H="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(p,x){t.insert(p,r,x),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,d),t.append(s,m),t.append(s,c),t.append(o,y),t.append(o,g),t.append(g,S),t.append(S,h),t.append(g,A),t.append(g,_),t.append(_,I),t.append(I,M),t.append(n,O),t.append(n,k),t.append(k,v),t.append(v,C),t.append(r,a),t.append(r,i),t.append(i,b);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(b,null);L||(T=t.listen(n,"click",e[13]),L=!0)},p(p,x){if(x&16&&w!==(w=p[4]("sortby")+"")&&t.set_data(h,w),x&24&&z!==(z=(p[3]||p[4]("all"))+"")&&t.set_data(M,z),x&2&&F!==(F="TriangleInactive "+(p[1]?"TriangleActive":""))&&t.attr(k,"class",F),x&2&&N!==(N="SorterSelector "+(p[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),x&120){Z=t.ensure_array_like(Object.values(p[5]));let u;for(u=0;u<Z.length;u+=1){const B=j(p,Z,u);f[u]?f[u].p(B,x):(f[u]=P(B),f[u].c(),f[u].m(b,null))}for(;u<f.length;u+=1)f[u].d(1);f.length=Z.length}x&2&&H!==(H="SorterDropdownContainer "+(p[1]?"SorterOpen":""))&&t.attr(i,"class",H)},d(p){p&&t.detach(r),t.destroy_each(f,p),L=!1,T()}}}function P(e){let r,n,o,l,s,d,m,c,y,g,S;function w(){return e[14](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),d=t.element("span"),m=t.space(),c=t.element("span"),c.textContent=`${e[23]}`,y=t.space(),t.attr(o,"type","radio"),t.attr(o,"name","radio"),o.value=e[23],o.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(d,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(h,A){t.insert(h,r,A),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,d),t.append(n,m),t.append(n,c),t.append(r,y),g||(S=t.listen(o,"click",w),g=!0)},p(h,A){e=h,A&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(h){h&&t.detach(r),g=!1,S()}}}function U(e){let r;function n(s,d){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,d){t.insert(s,r,d),l&&l.m(r,null),e[15](r)},p(s,[d]){o===(o=n(s))&&l?l.p(s,d):(l&&l.d(1),l=o&&o(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[15](null)}}}function G(e,r,n){let o;t.component_subscribe(e,t.$format,a=>n(4,o=a));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:d=""}=r,{clientstylingurl:m=""}=r,{categoryid:c=""}=r,y,g=!1,S=!0,w="",h="All";V({withLocale:"en",translations:{}});const A=()=>{fetch(s).then(i=>i.json()).then(i=>{Object.keys(i).forEach(b=>{D(b,i[b])})}).catch(i=>{console.log(i)})};Object.keys(E).forEach(a=>{D(a,E[a])});const _={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},I=()=>{let a=document.createElement("style");a.innerHTML=d,y.appendChild(a)},z=()=>{let a=document.createElement("style");fetch(new URL(m)).then(i=>i.text()).then(i=>{a.innerHTML=i,setTimeout(()=>{y.appendChild(a)},1)})},M=()=>{var i;n(3,h="All"),n(2,S=!1),n(1,g=!1);let a=(i=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:i[c];a?n(3,h=a):n(3,h="All"),n(3,h=_[a])},O=a=>{n(3,h=a);let i=localStorage.getItem("vendorSortingBy");w=a;for(let b in _)if(_[b]===a){w=b;break}i==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:w})):(i=JSON.parse(i),i[c]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(i))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:c},window.location.href),n(1,g=!g)},k=()=>{n(1,g=!g),window.postMessage({type:"SortingOpened"},window.location.href)},v=a=>{a.data.type=="FilterOpened"&&n(1,g=!1)};t.onMount(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}));const C=()=>k(),F=a=>O(a);function N(a){t.binding_callbacks[a?"unshift":"push"](()=>{y=a,n(0,y)})}return e.$$set=a=>{"lang"in a&&n(8,l=a.lang),"translationurl"in a&&n(9,s=a.translationurl),"clientstyling"in a&&n(10,d=a.clientstyling),"clientstylingurl"in a&&n(11,m=a.clientstylingurl),"categoryid"in a&&n(12,c=a.categoryid)},e.$$.update=()=>{e.$$.dirty&4096&&c&&M(),e.$$.dirty&1025&&d&&y&&I(),e.$$.dirty&2049&&m&&y&&z(),e.$$.dirty&512&&s&&A()},[y,g,S,h,o,_,O,k,l,s,d,m,c,C,F,N]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{}},[],[],!0);exports.default=R;
@@ -1,432 +0,0 @@
1
- import { $ as q, I as te, a as re, S as oe, i as ne, s as ae, f as D, b as le, n as U, d as R, h as P, k as f, o as se, p as ie, w as ce, x as G, y as de, g as K, e as r, j as s, q as ee, A as N, l as Z, m as Q, B as pe, C as ge } from "./CasinoFilter-DFZ3WYCN.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
- "en-us": {
131
- sortby: "Sort by:",
132
- all: "All",
133
- az: "A-Z",
134
- newest: "Newest",
135
- hottest: "Hottest"
136
- }
137
- };
138
- function he(e) {
139
- le(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)}}');
140
- }
141
- function Y(e, t, o) {
142
- const a = e.slice();
143
- return a[23] = t[o], a;
144
- }
145
- function me(e) {
146
- let t, o, a, l, i, p, y, g, b, u, x, S = (
147
- /*$_*/
148
- e[4]("sortby") + ""
149
- ), m, C, A, B, I = (
150
- /*vendorSortingBy*/
151
- (e[3] || /*$_*/
152
- e[4]("all")) + ""
153
- ), L, T, z, _, F, H, M, n, c, v, E, j, V, O = G(Object.values(
154
- /*vendorMap*/
155
- e[5]
156
- )), w = [];
157
- for (let d = 0; d < O.length; d += 1)
158
- w[d] = $(Y(e, O, d));
159
- return {
160
- c() {
161
- t = f("div"), o = f("div"), a = f("div"), l = N("svg"), i = N("g"), p = N("path"), y = N("path"), g = N("path"), b = Z(), u = f("div"), x = f("span"), m = Q(S), C = Z(), A = f("div"), B = f("span"), L = Q(I), T = Z(), z = f("span"), _ = N("svg"), F = N("path"), n = Z(), c = f("div"), v = f("ul");
162
- for (let d = 0; d < w.length; d += 1)
163
- w[d].c();
164
- r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(p, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class", H = "TriangleInactive " + /*isSorterActive*/
165
- (e[1] ? "TriangleActive" : "")), r(o, "class", M = "SorterSelector " + /*isSorterActive*/
166
- (e[1] ? "SorterSelectorOpen" : "")), r(v, "class", "SorterDropdown"), r(c, "class", E = "SorterDropdownContainer " + /*isSorterActive*/
167
- (e[1] ? "SorterOpen" : "")), r(t, "class", "SorterContainer");
168
- },
169
- m(d, k) {
170
- P(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, m), s(u, C), s(u, A), s(A, B), s(B, L), s(o, T), s(o, z), s(z, _), s(_, F), s(t, n), s(t, c), s(c, v);
171
- for (let h = 0; h < w.length; h += 1)
172
- w[h] && w[h].m(v, null);
173
- j || (V = ee(
174
- o,
175
- "click",
176
- /*click_handler*/
177
- e[13]
178
- ), j = !0);
179
- },
180
- p(d, k) {
181
- if (k & /*$_*/
182
- 16 && S !== (S = /*$_*/
183
- d[4]("sortby") + "") && K(m, S), k & /*vendorSortingBy, $_*/
184
- 24 && I !== (I = /*vendorSortingBy*/
185
- (d[3] || /*$_*/
186
- d[4]("all")) + "") && K(L, I), k & /*isSorterActive*/
187
- 2 && H !== (H = "TriangleInactive " + /*isSorterActive*/
188
- (d[1] ? "TriangleActive" : "")) && r(z, "class", H), k & /*isSorterActive*/
189
- 2 && M !== (M = "SorterSelector " + /*isSorterActive*/
190
- (d[1] ? "SorterSelectorOpen" : "")) && r(o, "class", M), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
191
- 120) {
192
- O = G(Object.values(
193
- /*vendorMap*/
194
- d[5]
195
- ));
196
- let h;
197
- for (h = 0; h < O.length; h += 1) {
198
- const J = Y(d, O, h);
199
- w[h] ? w[h].p(J, k) : (w[h] = $(J), w[h].c(), w[h].m(v, null));
200
- }
201
- for (; h < w.length; h += 1)
202
- w[h].d(1);
203
- w.length = O.length;
204
- }
205
- k & /*isSorterActive*/
206
- 2 && E !== (E = "SorterDropdownContainer " + /*isSorterActive*/
207
- (d[1] ? "SorterOpen" : "")) && r(c, "class", E);
208
- },
209
- d(d) {
210
- d && R(t), de(w, d), j = !1, V();
211
- }
212
- };
213
- }
214
- function $(e) {
215
- let t, o, a, l, i, p, y, g, b, u, x;
216
- function S() {
217
- return (
218
- /*click_handler_1*/
219
- e[14](
220
- /*sort*/
221
- e[23]
222
- )
223
- );
224
- }
225
- return {
226
- c() {
227
- t = f("li"), o = f("label"), a = f("input"), i = Z(), p = f("span"), y = Z(), g = f("span"), g.textContent = `${/*sort*/
228
- e[23]}`, b = Z(), r(a, "type", "radio"), r(a, "name", "radio"), a.value = /*sort*/
229
- e[23], a.checked = l = /*vendorSortingBy*/
230
- e[3] == /*sort*/
231
- e[23] ? !0 : (
232
- /*vendorSortingBy*/
233
- e[3] == null && /*sort*/
234
- e[23] == /*$_*/
235
- e[4]("all")
236
- ), r(p, "class", "SortersCheckmark"), r(o, "class", "SorterLabel CustomRadioButton"), r(t, "class", "SorterItem"), t.value = /*sort*/
237
- e[23];
238
- },
239
- m(m, C) {
240
- P(m, 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);
241
- },
242
- p(m, C) {
243
- e = m, C & /*vendorSortingBy, $_*/
244
- 24 && l !== (l = /*vendorSortingBy*/
245
- e[3] == /*sort*/
246
- e[23] ? !0 : (
247
- /*vendorSortingBy*/
248
- e[3] == null && /*sort*/
249
- e[23] == /*$_*/
250
- e[4]("all")
251
- )) && (a.checked = l);
252
- },
253
- d(m) {
254
- m && R(t), u = !1, x();
255
- }
256
- };
257
- }
258
- function fe(e) {
259
- let t;
260
- function o(i, p) {
261
- if (!/*isLoading*/
262
- i[2]) return me;
263
- }
264
- let a = o(e), l = a && a(e);
265
- return {
266
- c() {
267
- t = f("div"), l && l.c();
268
- },
269
- m(i, p) {
270
- P(i, t, p), l && l.m(t, null), e[15](t);
271
- },
272
- p(i, [p]) {
273
- a === (a = o(i)) && l ? l.p(i, p) : (l && l.d(1), l = a && a(i), l && (l.c(), l.m(t, null)));
274
- },
275
- i: U,
276
- o: U,
277
- d(i) {
278
- i && R(t), l && l.d(), e[15](null);
279
- }
280
- };
281
- }
282
- function ye(e, t, o) {
283
- let a;
284
- se(e, ge, (n) => o(4, a = n));
285
- let { lang: l = "" } = t, { translationurl: i = "" } = t, { clientstyling: p = "" } = t, { clientstylingurl: y = "" } = t, { categoryid: g = "" } = t, b, u = !1, x = !0, S = "", m = "All";
286
- ue({ withLocale: "en", translations: {} });
287
- const C = () => {
288
- fetch(i).then((c) => c.json()).then((c) => {
289
- Object.keys(c).forEach((v) => {
290
- W(v, c[v]);
291
- });
292
- }).catch((c) => {
293
- console.log(c);
294
- });
295
- };
296
- Object.keys(X).forEach((n) => {
297
- W(n, X[n]);
298
- });
299
- const A = {
300
- All: a("all"),
301
- name: a("az"),
302
- isNew: a("newest"),
303
- "advancedTags(name(hot))": a("hottest")
304
- }, B = () => {
305
- let n = document.createElement("style");
306
- n.innerHTML = p, b.appendChild(n);
307
- }, I = () => {
308
- let n = document.createElement("style");
309
- fetch(new URL(y)).then((c) => c.text()).then((c) => {
310
- n.innerHTML = c, setTimeout(
311
- () => {
312
- b.appendChild(n);
313
- },
314
- 1
315
- );
316
- });
317
- }, L = () => {
318
- var c;
319
- o(3, m = "All"), o(2, x = !1), o(1, u = !1);
320
- let n = (c = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : c[g];
321
- n ? o(3, m = n) : o(3, m = "All"), o(3, m = A[n]);
322
- }, T = (n) => {
323
- o(3, m = n);
324
- let c = localStorage.getItem("vendorSortingBy");
325
- S = n;
326
- for (let v in A)
327
- if (A[v] === n) {
328
- S = v;
329
- break;
330
- }
331
- c == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [g]: S })) : (c = JSON.parse(c), c[g] = S, localStorage.setItem("vendorSortingBy", JSON.stringify(c))), window.postMessage(
332
- {
333
- type: "ApplySorter",
334
- sortBy: S,
335
- itemId: g
336
- },
337
- window.location.href
338
- ), o(1, u = !u);
339
- }, z = () => {
340
- o(1, u = !u), window.postMessage({ type: "SortingOpened" }, window.location.href);
341
- }, _ = (n) => {
342
- n.data.type == "FilterOpened" && o(1, u = !1);
343
- };
344
- ie(() => (window.addEventListener("message", _, !1), () => {
345
- window.removeEventListener("message", _);
346
- }));
347
- const F = () => z(), H = (n) => T(n);
348
- function M(n) {
349
- ce[n ? "unshift" : "push"](() => {
350
- b = n, o(0, b);
351
- });
352
- }
353
- return e.$$set = (n) => {
354
- "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);
355
- }, e.$$.update = () => {
356
- e.$$.dirty & /*categoryid*/
357
- 4096 && g && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
358
- 1025 && p && b && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
359
- 2049 && y && b && I(), e.$$.dirty & /*translationurl*/
360
- 512 && i && C();
361
- }, [
362
- b,
363
- u,
364
- x,
365
- m,
366
- a,
367
- A,
368
- T,
369
- z,
370
- l,
371
- i,
372
- p,
373
- y,
374
- g,
375
- F,
376
- H,
377
- M
378
- ];
379
- }
380
- class we extends oe {
381
- constructor(t) {
382
- super(), ne(
383
- this,
384
- t,
385
- ye,
386
- fe,
387
- ae,
388
- {
389
- lang: 8,
390
- translationurl: 9,
391
- clientstyling: 10,
392
- clientstylingurl: 11,
393
- categoryid: 12
394
- },
395
- he
396
- );
397
- }
398
- get lang() {
399
- return this.$$.ctx[8];
400
- }
401
- set lang(t) {
402
- this.$$set({ lang: t }), D();
403
- }
404
- get translationurl() {
405
- return this.$$.ctx[9];
406
- }
407
- set translationurl(t) {
408
- this.$$set({ translationurl: t }), D();
409
- }
410
- get clientstyling() {
411
- return this.$$.ctx[10];
412
- }
413
- set clientstyling(t) {
414
- this.$$set({ clientstyling: t }), D();
415
- }
416
- get clientstylingurl() {
417
- return this.$$.ctx[11];
418
- }
419
- set clientstylingurl(t) {
420
- this.$$set({ clientstylingurl: t }), D();
421
- }
422
- get categoryid() {
423
- return this.$$.ctx[12];
424
- }
425
- set categoryid(t) {
426
- this.$$set({ categoryid: t }), D();
427
- }
428
- }
429
- pe(we, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
430
- export {
431
- we as default
432
- };