@everymatrix/casino-categories-providers 1.87.26 → 1.87.27
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/CasinoCategories-BIaoSRDi.cjs +1 -0
- package/components/CasinoCategories-C45Gost4.js +504 -0
- package/components/CasinoCategories-Dw86jNJS.js +507 -0
- package/components/{CasinoCategories-CT9K9KfS.js → CasinoCategoriesProviders-39Ny5Xou.js} +1179 -1182
- package/components/{CasinoCategories-DhMD53wI.js → CasinoCategoriesProviders-BjN4wQLw.js} +1220 -1221
- package/components/CasinoCategoriesProviders-DqzzKa4_.cjs +3 -0
- package/components/{CasinoProviders-BTGbC_k5.js → CasinoProviders-BNHmYoF1.js} +87 -87
- package/components/{CasinoProviders-CkMeINEO.js → CasinoProviders-DkCsxxN1.js} +87 -87
- package/components/CasinoProviders-bixPzXq7.cjs +1 -0
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +7 -7
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategories-HwnxesgF.cjs +0 -3
- package/components/CasinoCategoriesProviders-CyDccbmP.js +0 -478
- package/components/CasinoCategoriesProviders-D6Sm0rlt.js +0 -478
- package/components/CasinoCategoriesProviders-DBRRnd30.cjs +0 -1
- package/components/CasinoProviders-X-basL9D.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategoriesProviders-DqzzKa4_.cjs");require("../stencil/ui-image-BX-FBhad.cjs");function A(a,t){e.addMessages(a,t)}function R(a){e.$locale.set(a)}const E={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"En İyi Kategoriler",otherCategories:"Diğer Kategoriler",loading:"Yükleniyor, lütfen bekleyin...",games:"oyunlar"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Najbolje kategorije",otherCategories:"Ostale kategorije",loading:"Učitavam",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"pt-br":{topCategories:"Categorias Principais",otherCategories:"Outras Categorias",Loading:"Carregando, por favor espere...",games:"jogos"},"es-mx":{topCategories:"Categorias Principales",otherCategories:"Otras Categorias",Loading:"Cargando, por favor espere...",games:"juegos"},"en-us":{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};function G(a){e.append_styles(a,"svelte-2l182v","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}")}function q(a,t,i){const n=a.slice();return n[23]=t[i],n}function M(a,t,i){const n=a.slice();return n[23]=t[i],n}function D(a){let t,i,n=a[5]("topCategories")+"",g,d,c,v,_=a[5]("otherCategories")+"",C,b,p=e.ensure_array_like(a[3]),r=[];for(let o=0;o<p.length;o+=1)r[o]=z(M(a,p,o));let u=e.ensure_array_like(a[4]),m=[];for(let o=0;o<u.length;o+=1)m[o]=I(q(a,u,o));return{c(){t=e.element("div"),i=e.element("h4"),g=e.text(n),d=e.space();for(let o=0;o<r.length;o+=1)r[o].c();c=e.space(),v=e.element("h4"),C=e.text(_),b=e.space();for(let o=0;o<m.length;o+=1)m[o].c();e.attr(i,"class","CategoryTitle"),e.attr(v,"class","CategoryTitle"),e.attr(t,"class","CasinoCategories")},m(o,h){e.insert(o,t,h),e.append(t,i),e.append(i,g),e.append(t,d);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(t,null);e.append(t,c),e.append(t,v),e.append(v,C),e.append(t,b);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(t,null)},p(o,h){if(h&32&&n!==(n=o[5]("topCategories")+"")&&e.set_data(g,n),h&105){p=e.ensure_array_like(o[3]);let s;for(s=0;s<p.length;s+=1){const f=M(o,p,s);r[s]?r[s].p(f,h):(r[s]=z(f),r[s].c(),r[s].m(t,c))}for(;s<r.length;s+=1)r[s].d(1);r.length=p.length}if(h&32&&_!==(_=o[5]("otherCategories")+"")&&e.set_data(C,_),h&113){u=e.ensure_array_like(o[4]);let s;for(s=0;s<u.length;s+=1){const f=q(o,u,s);m[s]?m[s].p(f,h):(m[s]=I(f),m[s].c(),m[s].m(t,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=u.length}},d(o){o&&e.detach(t),e.destroy_each(r,o),e.destroy_each(m,o)}}}function Y(a){let t;return{c(){t=e.element("p"),t.textContent="Loading, please wait...",e.attr(t,"class","Message")},m(i,n){e.insert(i,t,n)},p:e.noop,d(i){i&&e.detach(t)}}}function z(a){let t,i,n,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x;function O(){return a[15](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),e.src_url_equal(i.src,n=a[23].icon)||e.set_custom_element_data(i,"src",n),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",s="Category "+(a[0]===a[23].id?"Active":""))},m(w,y){e.insert(w,t,y),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),f||(x=e.listen(t,"click",O),f=!0)},p(w,y){a=w,y&8&&!e.src_url_equal(i.src,n=a[23].icon)&&e.set_custom_element_data(i,"src",n),y&8&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),y&8&&_!==(_=a[23].name+"")&&e.set_data(C,_),y&8&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),y&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),y&9&&s!==(s="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",s)},d(w){w&&e.detach(t),f=!1,x()}}}function I(a){let t,i,n,g,d,c,v,_=a[23].name+"",C,b,p,r=a[23].games.count+"",u,m,o=a[5]("games")+"",h,s,f,x,O;function w(){return a[16](a[23])}return{c(){t=e.element("div"),i=e.element("ui-image"),d=e.space(),c=e.element("div"),v=e.element("p"),C=e.text(_),b=e.space(),p=e.element("p"),u=e.text(r),m=e.space(),h=e.text(o),s=e.space(),e.src_url_equal(i.src,n=a[23].icon)||e.set_custom_element_data(i,"src",n),e.set_custom_element_data(i,"alt",g=a[23].name),e.set_custom_element_data(i,"class","CategoryImage"),e.attr(c,"class","CategoryTextContainer"),e.attr(t,"class",f="Category "+(a[0]===a[23].id?"Active":""))},m(y,k){e.insert(y,t,k),e.append(t,i),e.append(t,d),e.append(t,c),e.append(c,v),e.append(v,C),e.append(c,b),e.append(c,p),e.append(p,u),e.append(p,m),e.append(p,h),e.append(t,s),x||(O=e.listen(t,"click",w),x=!0)},p(y,k){a=y,k&16&&!e.src_url_equal(i.src,n=a[23].icon)&&e.set_custom_element_data(i,"src",n),k&16&&g!==(g=a[23].name)&&e.set_custom_element_data(i,"alt",g),k&16&&_!==(_=a[23].name+"")&&e.set_data(C,_),k&16&&r!==(r=a[23].games.count+"")&&e.set_data(u,r),k&32&&o!==(o=a[5]("games")+"")&&e.set_data(h,o),k&17&&f!==(f="Category "+(a[0]===a[23].id?"Active":""))&&e.attr(t,"class",f)},d(y){y&&e.detach(t),x=!1,O()}}}function B(a){let t;function i(d,c){return d[2]?Y:D}let n=i(a),g=n(a);return{c(){t=e.element("div"),g.c()},m(d,c){e.insert(d,t,c),g.m(t,null),a[17](t)},p(d,[c]){n===(n=i(d))&&g?g.p(d,c):(g.d(1),g=n(d),g&&(g.c(),g.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),g.d(),a[17](null)}}}function H(a,t,i){let n;e.component_subscribe(a,e.$format,l=>i(5,n=l));let{endpoint:g=""}=t,{datasource:d=""}=t,{lang:c="en"}=t,{activecategory:v=""}=t,{excludedflags:_=""}=t,{clientstyling:C=""}=t,{clientstylingurl:b=""}=t,{translationurl:p=""}=t,{mbsource:r}=t,u,m,o=!1;const h=[];let s=[],f=[];Object.keys(E).forEach(l=>{A(l,E[l])});const x=()=>{fetch(p).then(T=>T.json()).then(T=>{Object.keys(T).forEach(L=>{A(L,T[L])})}).catch(T=>{console.log(T)})},O=()=>{i(2,o=!0);const l=new URL(`${g}/v1/casino/groups/${d}`);l.searchParams.append("language",c),fetch(l).then(T=>T.json()).then(T=>{i(2,o=!1);const L=_.split(",").map(F=>F.trim());h.push(...T.items);const j=h.filter(F=>!L.some(U=>{var S;return((S=F.flags)==null?void 0:S.indexOf(U))>=0}));i(3,s=j.filter(F=>F.isTopCategory===!0)),i(4,f=j.filter(F=>F.isTopCategory===!1))})},w=l=>{window.postMessage({type:"OpenGameCategory",categoryId:l},window.location.href)},y=()=>{R(c)};e.onMount(()=>()=>{});const k=l=>w(l.id),K=l=>w(l.id);function N(l){e.binding_callbacks[l?"unshift":"push"](()=>{u=l,i(1,u)})}return a.$$set=l=>{"endpoint"in l&&i(7,g=l.endpoint),"datasource"in l&&i(8,d=l.datasource),"lang"in l&&i(9,c=l.lang),"activecategory"in l&&i(0,v=l.activecategory),"excludedflags"in l&&i(10,_=l.excludedflags),"clientstyling"in l&&i(11,C=l.clientstyling),"clientstylingurl"in l&&i(12,b=l.clientstylingurl),"translationurl"in l&&i(13,p=l.translationurl),"mbsource"in l&&i(14,r=l.mbsource)},a.$$.update=()=>{a.$$.dirty&384&&g&&d&&O(),a.$$.dirty&8192&&p&&x(),a.$$.dirty&512&&c&&y(),a.$$.dirty&2050&&C&&u&&e.setClientStyling(u,C),a.$$.dirty&4098&&b&&u&&e.setClientStylingURL(u,b),a.$$.dirty&16386&&r&&u&&e.setStreamStyling(u,`${r}.Style`,m)},[v,u,o,s,f,n,w,g,d,c,_,C,b,p,r,k,K,N]}class P extends e.SvelteComponent{constructor(t){super(),e.init(this,t,H,B,e.safe_not_equal,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14},G)}get endpoint(){return this.$$.ctx[7]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[8]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(t){this.$$set({excludedflags:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(P,{endpoint:{},datasource:{},lang:{},activecategory:{},excludedflags:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=P;
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import { a as $, $ as ee, S as te, i as ae, f as x, s as ie, c as oe, b as se, n as P, d as I, e as K, g as b, h as re, o as le, j as ne, k as j, l as U, m as G, p as S, q as c, t as E, r as O, u as q, v as L, w as V, x as ge, y as ce, z as ue, A as de } from "./CasinoCategoriesProviders-39Ny5Xou.js";
|
|
2
|
+
import "../stencil/ui-image-Ch-GHki1.js";
|
|
3
|
+
function D(t, e) {
|
|
4
|
+
$(t, e);
|
|
5
|
+
}
|
|
6
|
+
function he(t) {
|
|
7
|
+
ee.set(t);
|
|
8
|
+
}
|
|
9
|
+
const Y = {
|
|
10
|
+
en: {
|
|
11
|
+
topCategories: "Top Categories",
|
|
12
|
+
otherCategories: "Other Categories",
|
|
13
|
+
loading: "Loading, please wait...",
|
|
14
|
+
games: "games"
|
|
15
|
+
},
|
|
16
|
+
"zh-hk": {
|
|
17
|
+
topCategories: "热门类别",
|
|
18
|
+
otherCategories: "其他类别",
|
|
19
|
+
loading: "加载请稍候...",
|
|
20
|
+
games: "游戏"
|
|
21
|
+
},
|
|
22
|
+
de: {
|
|
23
|
+
topCategories: "Top Kategorien",
|
|
24
|
+
otherCategories: "Andere Kategorien",
|
|
25
|
+
loading: "Es lädt, bitte warten...",
|
|
26
|
+
games: "Spiele"
|
|
27
|
+
},
|
|
28
|
+
it: {
|
|
29
|
+
topCategories: "Top Categories",
|
|
30
|
+
otherCategories: "Other Categories",
|
|
31
|
+
loading: "Loading, please wait...",
|
|
32
|
+
games: "games"
|
|
33
|
+
},
|
|
34
|
+
fr: {
|
|
35
|
+
topCategories: "Catégories principales",
|
|
36
|
+
otherCategories: "Autres catégories",
|
|
37
|
+
loading: "Chargement, veuillez patienter...",
|
|
38
|
+
games: "jeux"
|
|
39
|
+
},
|
|
40
|
+
es: {
|
|
41
|
+
topCategories: "Categorias Top",
|
|
42
|
+
otherCategories: "Otras Categorias",
|
|
43
|
+
loading: "Cargando...",
|
|
44
|
+
games: "juegos"
|
|
45
|
+
},
|
|
46
|
+
tr: {
|
|
47
|
+
topCategories: "En İyi Kategoriler",
|
|
48
|
+
otherCategories: "Diğer Kategoriler",
|
|
49
|
+
loading: "Yükleniyor, lütfen bekleyin...",
|
|
50
|
+
games: "oyunlar"
|
|
51
|
+
},
|
|
52
|
+
ru: {
|
|
53
|
+
topCategories: "Top Categories",
|
|
54
|
+
otherCategories: "Other Categories",
|
|
55
|
+
loading: "Loading, please wait...",
|
|
56
|
+
games: "games"
|
|
57
|
+
},
|
|
58
|
+
ro: {
|
|
59
|
+
topCategories: "Categorii de top",
|
|
60
|
+
otherCategories: "Alte categorii",
|
|
61
|
+
loading: "Se incarca, te rugam asteapta…",
|
|
62
|
+
games: "jocuri"
|
|
63
|
+
},
|
|
64
|
+
hr: {
|
|
65
|
+
topCategories: "Najbolje kategorije",
|
|
66
|
+
otherCategories: "Ostale kategorije",
|
|
67
|
+
loading: "Učitavam",
|
|
68
|
+
games: "Igre"
|
|
69
|
+
},
|
|
70
|
+
hu: {
|
|
71
|
+
topCategories: "Top Categories",
|
|
72
|
+
otherCategories: "Other Categories",
|
|
73
|
+
loading: "Loading, please wait...",
|
|
74
|
+
games: "games"
|
|
75
|
+
},
|
|
76
|
+
pl: {
|
|
77
|
+
topCategories: "Top Categories",
|
|
78
|
+
otherCategories: "Other Categories",
|
|
79
|
+
loading: "Loading, please wait...",
|
|
80
|
+
games: "games"
|
|
81
|
+
},
|
|
82
|
+
pt: {
|
|
83
|
+
topCategories: "Top Categories",
|
|
84
|
+
otherCategories: "Other Categories",
|
|
85
|
+
loading: "Loading, please wait...",
|
|
86
|
+
games: "games"
|
|
87
|
+
},
|
|
88
|
+
sl: {
|
|
89
|
+
topCategories: "Top Categories",
|
|
90
|
+
otherCategories: "Other Categories",
|
|
91
|
+
loading: "Loading, please wait...",
|
|
92
|
+
games: "games"
|
|
93
|
+
},
|
|
94
|
+
sr: {
|
|
95
|
+
topCategories: "Top Categories",
|
|
96
|
+
otherCategories: "Other Categories",
|
|
97
|
+
loading: "Loading, please wait...",
|
|
98
|
+
games: "games"
|
|
99
|
+
},
|
|
100
|
+
"pt-br": {
|
|
101
|
+
topCategories: "Categorias Principais",
|
|
102
|
+
otherCategories: "Outras Categorias",
|
|
103
|
+
Loading: "Carregando, por favor espere...",
|
|
104
|
+
games: "jogos"
|
|
105
|
+
},
|
|
106
|
+
"es-mx": {
|
|
107
|
+
topCategories: "Categorias Principales",
|
|
108
|
+
otherCategories: "Otras Categorias",
|
|
109
|
+
Loading: "Cargando, por favor espere...",
|
|
110
|
+
games: "juegos"
|
|
111
|
+
},
|
|
112
|
+
"en-us": {
|
|
113
|
+
topCategories: "Top Categories",
|
|
114
|
+
otherCategories: "Other Categories",
|
|
115
|
+
loading: "Loading, please wait...",
|
|
116
|
+
games: "games"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
function fe(t) {
|
|
120
|
+
se(t, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
121
|
+
}
|
|
122
|
+
function B(t, e, a) {
|
|
123
|
+
const r = t.slice();
|
|
124
|
+
return r[23] = e[a], r;
|
|
125
|
+
}
|
|
126
|
+
function H(t, e, a) {
|
|
127
|
+
const r = t.slice();
|
|
128
|
+
return r[23] = e[a], r;
|
|
129
|
+
}
|
|
130
|
+
function me(t) {
|
|
131
|
+
let e, a, r = (
|
|
132
|
+
/*$_*/
|
|
133
|
+
t[5]("topCategories") + ""
|
|
134
|
+
), n, d, g, v, C = (
|
|
135
|
+
/*$_*/
|
|
136
|
+
t[5]("otherCategories") + ""
|
|
137
|
+
), _, w, h = U(
|
|
138
|
+
/*topCategories*/
|
|
139
|
+
t[3]
|
|
140
|
+
), l = [];
|
|
141
|
+
for (let o = 0; o < h.length; o += 1)
|
|
142
|
+
l[o] = J(H(t, h, o));
|
|
143
|
+
let u = U(
|
|
144
|
+
/*otherCategories*/
|
|
145
|
+
t[4]
|
|
146
|
+
), f = [];
|
|
147
|
+
for (let o = 0; o < u.length; o += 1)
|
|
148
|
+
f[o] = Q(B(t, u, o));
|
|
149
|
+
return {
|
|
150
|
+
c() {
|
|
151
|
+
e = b("div"), a = b("h4"), n = E(r), d = O();
|
|
152
|
+
for (let o = 0; o < l.length; o += 1)
|
|
153
|
+
l[o].c();
|
|
154
|
+
g = O(), v = b("h4"), _ = E(C), w = O();
|
|
155
|
+
for (let o = 0; o < f.length; o += 1)
|
|
156
|
+
f[o].c();
|
|
157
|
+
j(a, "class", "CategoryTitle"), j(v, "class", "CategoryTitle"), j(e, "class", "CasinoCategories");
|
|
158
|
+
},
|
|
159
|
+
m(o, m) {
|
|
160
|
+
K(o, e, m), c(e, a), c(a, n), c(e, d);
|
|
161
|
+
for (let i = 0; i < l.length; i += 1)
|
|
162
|
+
l[i] && l[i].m(e, null);
|
|
163
|
+
c(e, g), c(e, v), c(v, _), c(e, w);
|
|
164
|
+
for (let i = 0; i < f.length; i += 1)
|
|
165
|
+
f[i] && f[i].m(e, null);
|
|
166
|
+
},
|
|
167
|
+
p(o, m) {
|
|
168
|
+
if (m & /*$_*/
|
|
169
|
+
32 && r !== (r = /*$_*/
|
|
170
|
+
o[5]("topCategories") + "") && S(n, r), m & /*activecategory, topCategories, openGameCategory, $_*/
|
|
171
|
+
105) {
|
|
172
|
+
h = U(
|
|
173
|
+
/*topCategories*/
|
|
174
|
+
o[3]
|
|
175
|
+
);
|
|
176
|
+
let i;
|
|
177
|
+
for (i = 0; i < h.length; i += 1) {
|
|
178
|
+
const p = H(o, h, i);
|
|
179
|
+
l[i] ? l[i].p(p, m) : (l[i] = J(p), l[i].c(), l[i].m(e, g));
|
|
180
|
+
}
|
|
181
|
+
for (; i < l.length; i += 1)
|
|
182
|
+
l[i].d(1);
|
|
183
|
+
l.length = h.length;
|
|
184
|
+
}
|
|
185
|
+
if (m & /*$_*/
|
|
186
|
+
32 && C !== (C = /*$_*/
|
|
187
|
+
o[5]("otherCategories") + "") && S(_, C), m & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
188
|
+
113) {
|
|
189
|
+
u = U(
|
|
190
|
+
/*otherCategories*/
|
|
191
|
+
o[4]
|
|
192
|
+
);
|
|
193
|
+
let i;
|
|
194
|
+
for (i = 0; i < u.length; i += 1) {
|
|
195
|
+
const p = B(o, u, i);
|
|
196
|
+
f[i] ? f[i].p(p, m) : (f[i] = Q(p), f[i].c(), f[i].m(e, null));
|
|
197
|
+
}
|
|
198
|
+
for (; i < f.length; i += 1)
|
|
199
|
+
f[i].d(1);
|
|
200
|
+
f.length = u.length;
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
d(o) {
|
|
204
|
+
o && I(e), G(l, o), G(f, o);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function Ce(t) {
|
|
209
|
+
let e;
|
|
210
|
+
return {
|
|
211
|
+
c() {
|
|
212
|
+
e = b("p"), e.textContent = "Loading, please wait...", j(e, "class", "Message");
|
|
213
|
+
},
|
|
214
|
+
m(a, r) {
|
|
215
|
+
K(a, e, r);
|
|
216
|
+
},
|
|
217
|
+
p: P,
|
|
218
|
+
d(a) {
|
|
219
|
+
a && I(e);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function J(t) {
|
|
224
|
+
let e, a, r, n, d, g, v, C = (
|
|
225
|
+
/*category*/
|
|
226
|
+
t[23].name + ""
|
|
227
|
+
), _, w, h, l = (
|
|
228
|
+
/*category*/
|
|
229
|
+
t[23].games.count + ""
|
|
230
|
+
), u, f, o = (
|
|
231
|
+
/*$_*/
|
|
232
|
+
t[5]("games") + ""
|
|
233
|
+
), m, i, p, A;
|
|
234
|
+
function M() {
|
|
235
|
+
return (
|
|
236
|
+
/*click_handler*/
|
|
237
|
+
t[15](
|
|
238
|
+
/*category*/
|
|
239
|
+
t[23]
|
|
240
|
+
)
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
c() {
|
|
245
|
+
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), q(a.src, r = /*category*/
|
|
246
|
+
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
247
|
+
t[23].name), L(a, "class", "CategoryImage"), j(g, "class", "CategoryTextContainer"), j(e, "class", i = "Category " + /*activecategory*/
|
|
248
|
+
(t[0] === /*category*/
|
|
249
|
+
t[23].id ? "Active" : ""));
|
|
250
|
+
},
|
|
251
|
+
m(k, y) {
|
|
252
|
+
K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), p || (A = V(e, "click", M), p = !0);
|
|
253
|
+
},
|
|
254
|
+
p(k, y) {
|
|
255
|
+
t = k, y & /*topCategories*/
|
|
256
|
+
8 && !q(a.src, r = /*category*/
|
|
257
|
+
t[23].icon) && L(a, "src", r), y & /*topCategories*/
|
|
258
|
+
8 && n !== (n = /*category*/
|
|
259
|
+
t[23].name) && L(a, "alt", n), y & /*topCategories*/
|
|
260
|
+
8 && C !== (C = /*category*/
|
|
261
|
+
t[23].name + "") && S(_, C), y & /*topCategories*/
|
|
262
|
+
8 && l !== (l = /*category*/
|
|
263
|
+
t[23].games.count + "") && S(u, l), y & /*$_*/
|
|
264
|
+
32 && o !== (o = /*$_*/
|
|
265
|
+
t[5]("games") + "") && S(m, o), y & /*activecategory, topCategories*/
|
|
266
|
+
9 && i !== (i = "Category " + /*activecategory*/
|
|
267
|
+
(t[0] === /*category*/
|
|
268
|
+
t[23].id ? "Active" : "")) && j(e, "class", i);
|
|
269
|
+
},
|
|
270
|
+
d(k) {
|
|
271
|
+
k && I(e), p = !1, A();
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function Q(t) {
|
|
276
|
+
let e, a, r, n, d, g, v, C = (
|
|
277
|
+
/*category*/
|
|
278
|
+
t[23].name + ""
|
|
279
|
+
), _, w, h, l = (
|
|
280
|
+
/*category*/
|
|
281
|
+
t[23].games.count + ""
|
|
282
|
+
), u, f, o = (
|
|
283
|
+
/*$_*/
|
|
284
|
+
t[5]("games") + ""
|
|
285
|
+
), m, i, p, A, M;
|
|
286
|
+
function k() {
|
|
287
|
+
return (
|
|
288
|
+
/*click_handler_1*/
|
|
289
|
+
t[16](
|
|
290
|
+
/*category*/
|
|
291
|
+
t[23]
|
|
292
|
+
)
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
c() {
|
|
297
|
+
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), i = O(), q(a.src, r = /*category*/
|
|
298
|
+
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
299
|
+
t[23].name), L(a, "class", "CategoryImage"), j(g, "class", "CategoryTextContainer"), j(e, "class", p = "Category " + /*activecategory*/
|
|
300
|
+
(t[0] === /*category*/
|
|
301
|
+
t[23].id ? "Active" : ""));
|
|
302
|
+
},
|
|
303
|
+
m(y, T) {
|
|
304
|
+
K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), c(e, i), A || (M = V(e, "click", k), A = !0);
|
|
305
|
+
},
|
|
306
|
+
p(y, T) {
|
|
307
|
+
t = y, T & /*otherCategories*/
|
|
308
|
+
16 && !q(a.src, r = /*category*/
|
|
309
|
+
t[23].icon) && L(a, "src", r), T & /*otherCategories*/
|
|
310
|
+
16 && n !== (n = /*category*/
|
|
311
|
+
t[23].name) && L(a, "alt", n), T & /*otherCategories*/
|
|
312
|
+
16 && C !== (C = /*category*/
|
|
313
|
+
t[23].name + "") && S(_, C), T & /*otherCategories*/
|
|
314
|
+
16 && l !== (l = /*category*/
|
|
315
|
+
t[23].games.count + "") && S(u, l), T & /*$_*/
|
|
316
|
+
32 && o !== (o = /*$_*/
|
|
317
|
+
t[5]("games") + "") && S(m, o), T & /*activecategory, otherCategories*/
|
|
318
|
+
17 && p !== (p = "Category " + /*activecategory*/
|
|
319
|
+
(t[0] === /*category*/
|
|
320
|
+
t[23].id ? "Active" : "")) && j(e, "class", p);
|
|
321
|
+
},
|
|
322
|
+
d(y) {
|
|
323
|
+
y && I(e), A = !1, M();
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
function pe(t) {
|
|
328
|
+
let e;
|
|
329
|
+
function a(d, g) {
|
|
330
|
+
return (
|
|
331
|
+
/*isLoading*/
|
|
332
|
+
d[2] ? Ce : me
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
let r = a(t), n = r(t);
|
|
336
|
+
return {
|
|
337
|
+
c() {
|
|
338
|
+
e = b("div"), n.c();
|
|
339
|
+
},
|
|
340
|
+
m(d, g) {
|
|
341
|
+
K(d, e, g), n.m(e, null), t[17](e);
|
|
342
|
+
},
|
|
343
|
+
p(d, [g]) {
|
|
344
|
+
r === (r = a(d)) && n ? n.p(d, g) : (n.d(1), n = r(d), n && (n.c(), n.m(e, null)));
|
|
345
|
+
},
|
|
346
|
+
i: P,
|
|
347
|
+
o: P,
|
|
348
|
+
d(d) {
|
|
349
|
+
d && I(e), n.d(), t[17](null);
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function _e(t, e, a) {
|
|
354
|
+
let r;
|
|
355
|
+
re(t, ge, (s) => a(5, r = s));
|
|
356
|
+
let { endpoint: n = "" } = e, { datasource: d = "" } = e, { lang: g = "en" } = e, { activecategory: v = "" } = e, { excludedflags: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { translationurl: h = "" } = e, { mbsource: l } = e, u, f, o = !1;
|
|
357
|
+
const m = [];
|
|
358
|
+
let i = [], p = [];
|
|
359
|
+
Object.keys(Y).forEach((s) => {
|
|
360
|
+
D(s, Y[s]);
|
|
361
|
+
});
|
|
362
|
+
const A = () => {
|
|
363
|
+
fetch(h).then((F) => F.json()).then((F) => {
|
|
364
|
+
Object.keys(F).forEach((N) => {
|
|
365
|
+
D(N, F[N]);
|
|
366
|
+
});
|
|
367
|
+
}).catch((F) => {
|
|
368
|
+
console.log(F);
|
|
369
|
+
});
|
|
370
|
+
}, M = () => {
|
|
371
|
+
a(2, o = !0);
|
|
372
|
+
const s = new URL(`${n}/v1/casino/groups/${d}`);
|
|
373
|
+
s.searchParams.append("language", g), fetch(s).then((F) => F.json()).then((F) => {
|
|
374
|
+
a(2, o = !1);
|
|
375
|
+
const N = C.split(",").map((z) => z.trim());
|
|
376
|
+
m.push(...F.items);
|
|
377
|
+
const R = m.filter((z) => !N.some((Z) => z.flags?.indexOf(Z) >= 0));
|
|
378
|
+
a(3, i = R.filter((z) => z.isTopCategory === !0)), a(4, p = R.filter((z) => z.isTopCategory === !1));
|
|
379
|
+
});
|
|
380
|
+
}, k = (s) => {
|
|
381
|
+
window.postMessage({ type: "OpenGameCategory", categoryId: s }, window.location.href);
|
|
382
|
+
}, y = () => {
|
|
383
|
+
he(g);
|
|
384
|
+
};
|
|
385
|
+
le(() => () => {
|
|
386
|
+
});
|
|
387
|
+
const T = (s) => k(s.id), W = (s) => k(s.id);
|
|
388
|
+
function X(s) {
|
|
389
|
+
ne[s ? "unshift" : "push"](() => {
|
|
390
|
+
u = s, a(1, u);
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
return t.$$set = (s) => {
|
|
394
|
+
"endpoint" in s && a(7, n = s.endpoint), "datasource" in s && a(8, d = s.datasource), "lang" in s && a(9, g = s.lang), "activecategory" in s && a(0, v = s.activecategory), "excludedflags" in s && a(10, C = s.excludedflags), "clientstyling" in s && a(11, _ = s.clientstyling), "clientstylingurl" in s && a(12, w = s.clientstylingurl), "translationurl" in s && a(13, h = s.translationurl), "mbsource" in s && a(14, l = s.mbsource);
|
|
395
|
+
}, t.$$.update = () => {
|
|
396
|
+
t.$$.dirty & /*endpoint, datasource*/
|
|
397
|
+
384 && n && d && M(), t.$$.dirty & /*translationurl*/
|
|
398
|
+
8192 && h && A(), t.$$.dirty & /*lang*/
|
|
399
|
+
512 && g && y(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
400
|
+
2050 && _ && u && ce(u, _), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
401
|
+
4098 && w && u && ue(u, w), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
402
|
+
16386 && l && u && de(u, `${l}.Style`, f);
|
|
403
|
+
}, [
|
|
404
|
+
v,
|
|
405
|
+
u,
|
|
406
|
+
o,
|
|
407
|
+
i,
|
|
408
|
+
p,
|
|
409
|
+
r,
|
|
410
|
+
k,
|
|
411
|
+
n,
|
|
412
|
+
d,
|
|
413
|
+
g,
|
|
414
|
+
C,
|
|
415
|
+
_,
|
|
416
|
+
w,
|
|
417
|
+
h,
|
|
418
|
+
l,
|
|
419
|
+
T,
|
|
420
|
+
W,
|
|
421
|
+
X
|
|
422
|
+
];
|
|
423
|
+
}
|
|
424
|
+
class ye extends te {
|
|
425
|
+
constructor(e) {
|
|
426
|
+
super(), ae(
|
|
427
|
+
this,
|
|
428
|
+
e,
|
|
429
|
+
_e,
|
|
430
|
+
pe,
|
|
431
|
+
ie,
|
|
432
|
+
{
|
|
433
|
+
endpoint: 7,
|
|
434
|
+
datasource: 8,
|
|
435
|
+
lang: 9,
|
|
436
|
+
activecategory: 0,
|
|
437
|
+
excludedflags: 10,
|
|
438
|
+
clientstyling: 11,
|
|
439
|
+
clientstylingurl: 12,
|
|
440
|
+
translationurl: 13,
|
|
441
|
+
mbsource: 14
|
|
442
|
+
},
|
|
443
|
+
fe
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
get endpoint() {
|
|
447
|
+
return this.$$.ctx[7];
|
|
448
|
+
}
|
|
449
|
+
set endpoint(e) {
|
|
450
|
+
this.$$set({ endpoint: e }), x();
|
|
451
|
+
}
|
|
452
|
+
get datasource() {
|
|
453
|
+
return this.$$.ctx[8];
|
|
454
|
+
}
|
|
455
|
+
set datasource(e) {
|
|
456
|
+
this.$$set({ datasource: e }), x();
|
|
457
|
+
}
|
|
458
|
+
get lang() {
|
|
459
|
+
return this.$$.ctx[9];
|
|
460
|
+
}
|
|
461
|
+
set lang(e) {
|
|
462
|
+
this.$$set({ lang: e }), x();
|
|
463
|
+
}
|
|
464
|
+
get activecategory() {
|
|
465
|
+
return this.$$.ctx[0];
|
|
466
|
+
}
|
|
467
|
+
set activecategory(e) {
|
|
468
|
+
this.$$set({ activecategory: e }), x();
|
|
469
|
+
}
|
|
470
|
+
get excludedflags() {
|
|
471
|
+
return this.$$.ctx[10];
|
|
472
|
+
}
|
|
473
|
+
set excludedflags(e) {
|
|
474
|
+
this.$$set({ excludedflags: e }), x();
|
|
475
|
+
}
|
|
476
|
+
get clientstyling() {
|
|
477
|
+
return this.$$.ctx[11];
|
|
478
|
+
}
|
|
479
|
+
set clientstyling(e) {
|
|
480
|
+
this.$$set({ clientstyling: e }), x();
|
|
481
|
+
}
|
|
482
|
+
get clientstylingurl() {
|
|
483
|
+
return this.$$.ctx[12];
|
|
484
|
+
}
|
|
485
|
+
set clientstylingurl(e) {
|
|
486
|
+
this.$$set({ clientstylingurl: e }), x();
|
|
487
|
+
}
|
|
488
|
+
get translationurl() {
|
|
489
|
+
return this.$$.ctx[13];
|
|
490
|
+
}
|
|
491
|
+
set translationurl(e) {
|
|
492
|
+
this.$$set({ translationurl: e }), x();
|
|
493
|
+
}
|
|
494
|
+
get mbsource() {
|
|
495
|
+
return this.$$.ctx[14];
|
|
496
|
+
}
|
|
497
|
+
set mbsource(e) {
|
|
498
|
+
this.$$set({ mbsource: e }), x();
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
oe(ye, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
502
|
+
export {
|
|
503
|
+
ye as default
|
|
504
|
+
};
|