@everymatrix/casino-most-played-section 1.54.0 → 1.54.4
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-mem-FaeW.js → CasinoFilter-BYeEBK-a.js} +1035 -1073
- package/components/{CasinoGameThumbnail-CjKe5Nf-.js → CasinoGameThumbnail-BfeiKtC4.js} +660 -676
- package/components/{CasinoGamesCategorySection-Y4iSR8hd.js → CasinoGamesCategorySection-mzPrMyYZ.js} +1106 -1144
- package/components/{CasinoMostPlayedSection-CBDTIrp5.js → CasinoMostPlayedSection-CN_wisPE.js} +12 -12
- package/components/{CasinoSort-D7m2_Jlu.js → CasinoSort-B1pgdr2s.js} +2 -3
- package/esnext/casino-most-played-section.js +14 -0
- package/package.json +10 -11
- package/components/CasinoFilter-BBwmPB6M.cjs +0 -5
- package/components/CasinoGameThumbnail-yQMtXZgD.cjs +0 -47
- package/components/CasinoGamesCategorySection-2veUfIC4.cjs +0 -1
- package/components/CasinoMostPlayedSection-BdhDbM3Z.cjs +0 -1
- package/components/CasinoSort-CyZigHgu.cjs +0 -1
- package/es2015/casino-most-played-section.cjs +0 -1
- package/es2015/casino-most-played-section.js +0 -16
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BBwmPB6M.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 +0,0 @@
|
|
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-BdhDbM3Z.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
if (typeof window != "undefined") {
|
2
|
-
let n = function(t) {
|
3
|
-
return function(...s) {
|
4
|
-
try {
|
5
|
-
return t.apply(this, s);
|
6
|
-
} catch (e) {
|
7
|
-
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"))
|
8
|
-
return !1;
|
9
|
-
throw e;
|
10
|
-
}
|
11
|
-
};
|
12
|
-
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-CBDTIrp5.js").then(({ default: t }) => {
|
14
|
-
!customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", t.element);
|
15
|
-
});
|
16
|
-
}
|