@everymatrix/casino-lobby 1.50.1 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategoriesSlider-C6tCM7PI.cjs +1 -0
- package/components/{CasinoCategoriesSlider-BnLGhDj2.js → CasinoCategoriesSlider-DZ3Xi2sD.js} +44 -40
- package/components/CasinoCollectionsProviders-BrLC6Grn.cjs +1 -0
- package/components/{CasinoCollectionsProviders-O5eYWKqu.js → CasinoCollectionsProviders-CNZ2cCAe.js} +5 -0
- package/components/{CasinoFavoritesSection-CumUm71T.js → CasinoFavoritesSection-B9gBh0NZ.js} +1 -1
- package/components/{CasinoFavoritesSection-CSDBLW4w.cjs → CasinoFavoritesSection-ChFh3su6.cjs} +1 -1
- package/components/CasinoFilter-BRH4KgQb.cjs +1 -0
- package/components/{CasinoFilter-Ba4pyyzC.js → CasinoFilter-D4w5681f.js} +6 -0
- package/components/{CasinoGamePage-D-0bV9s0.js → CasinoGamePage-CDh-e6Wj.js} +102 -93
- package/components/{CasinoGamePage-CAEcKO2C.cjs → CasinoGamePage-D-wyPyQN.cjs} +1 -1
- package/components/CasinoGameThumbnail-Cy1VrIc2.cjs +38 -0
- package/components/{CasinoGameThumbnail-Br4gzW2I.js → CasinoGameThumbnail-E3DsUeGg.js} +89 -81
- package/components/CasinoGamesCategorySection-B4Qu6J6Z.cjs +1 -0
- package/components/{CasinoGamesCategorySection-IDIjeUsC.js → CasinoGamesCategorySection-BMrvvE60.js} +93 -80
- package/components/CasinoJackpotBanner-BlShS5Vc.cjs +1 -0
- package/components/{CasinoJackpotBanner-D-0bynYa.js → CasinoJackpotBanner-DPuhYIS9.js} +30 -27
- package/components/CasinoLastPlayedSection-DffnfNRE.cjs +1 -0
- package/components/{CasinoLastPlayedSection-BHZA2U-l.js → CasinoLastPlayedSection-dSLftjtV.js} +43 -40
- package/components/{CasinoLobby-DQGjTjXn.cjs → CasinoLobby-Dz801OXj.cjs} +1 -1
- package/components/{CasinoLobby-BSBqQiwz.js → CasinoLobby-Th0vuI9M.js} +3 -3
- package/components/{CasinoMostPlayedSection-B4cUve-8.js → CasinoMostPlayedSection-CVtfFNhO.js} +35 -32
- package/components/CasinoMostPlayedSection-DZGaHB3O.cjs +1 -0
- package/components/{CasinoMyGames-DG40cnqo.js → CasinoMyGames-BnnaietT.js} +40 -35
- package/components/CasinoMyGames-CfS6qq0G.cjs +1 -0
- package/components/{CasinoPage-DZofqKdq.js → CasinoPage-Bl_V6Pl7.js} +600 -588
- package/components/CasinoPage-BmEQljJI.cjs +1 -0
- package/components/CasinoRandomGame-BpdxwlFB.cjs +2 -0
- package/components/{CasinoRandomGame-ClDKDIUi.js → CasinoRandomGame-Cw331FLx.js} +75 -69
- package/components/CasinoSearch-Dd4amKB_.cjs +1 -0
- package/components/{CasinoSearch-nhPFLDr6.js → CasinoSearch-Y5NcDcXt.js} +60 -50
- package/components/CasinoSlider-GXmtset2.cjs +1 -0
- package/components/{CasinoSlider-DDJYl0_C.js → CasinoSlider-b2MX1hWZ.js} +164 -159
- package/components/CasinoSort-Bb3WIr_q.cjs +1 -0
- package/components/{CasinoSort-COqebE70.js → CasinoSort-ContI1pC.js} +24 -17
- package/components/CasinoWinners-CUORt5E8.cjs +1 -0
- package/components/{CasinoWinners-B-NBTMbI.js → CasinoWinners-CwPF3r2V.js} +102 -92
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-MGSqtuSH.cjs +0 -1
- package/components/CasinoCollectionsProviders-7MJNy6vH.cjs +0 -1
- package/components/CasinoFilter-DPFQTDnp.cjs +0 -1
- package/components/CasinoGameThumbnail-q80EbGZc.cjs +0 -38
- package/components/CasinoGamesCategorySection-ChO8lRW6.cjs +0 -1
- package/components/CasinoJackpotBanner-DBLcL6wU.cjs +0 -1
- package/components/CasinoLastPlayedSection-Dn26Po-i.cjs +0 -1
- package/components/CasinoMostPlayedSection-DWj3eB25.cjs +0 -1
- package/components/CasinoMyGames-JPu4ITbh.cjs +0 -1
- package/components/CasinoPage-CUgnyFdX.cjs +0 -1
- package/components/CasinoRandomGame-BopxEXk6.cjs +0 -2
- package/components/CasinoSearch-BHqi_Ojn.cjs +0 -1
- package/components/CasinoSlider-DzlnKD97.cjs +0 -1
- package/components/CasinoSort-DqAXg8IN.cjs +0 -1
- package/components/CasinoWinners-GJyWRA8u.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-aMUXtMPt.cjs");function z(n,e){t.addMessages(n,e)}const x={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-GXmtset2.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(n){t.append_styles(n,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ne(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",E),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ie(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function le(n){let e;function s(i,o){return i[12]||re||ce?oe:i[14]?ie:ne}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let E="CasinoSliderData",re=!1,ce=!1;function me(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:j=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:P=""}=e,{sessioncheck:T=""}=e,{location:F="secondaryMenu"}=e,{showsubgroups:A="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:D=""}=e,{lobbyiconimage:O=""}=e,{mygamesiconimage:R=""}=e,U,q,g=!0,f,h=[],d=!1,K=window.navigator.userAgent,y,H,I=!1,G=!1;const Q=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(x).forEach(a=>{z(a,x[a])});const V=()=>{I==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:U,href:"",games:[]}),t.tick(),I=!0,s(25,G=!0),k()},W=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(14,d=!0),s(12,g=!1),console.error(f)),i||(f="Datasource is missing! Please provide a valid datasource.",s(14,d=!0),s(12,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(14,d=!0),s(12,g=!1),console.error(f)),d),X=()=>{if(U=l("myGamesName"),q=l("lobbyName"),!W()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(K)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),te=c.items.filter(Y=>{let S=!1;if(Y.games.total>0&&(S=!0,M))for(let se of m)Y.flags==se&&(S=!1);return S});h=[],h=h.concat(te),h.unshift({id:"LOBBY",name:q,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)})}},Z=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},p=()=>{let a=document.createElement("style");a.innerHTML=L,y.appendChild(a)},$=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{y.appendChild(a)},1)})},k=()=>{window.postMessage({type:"SliderData",identity:E,data:h},window.location.href)},B=a=>{a.data&&a.data.type=="SliderLoaded"&&E==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{y=a,s(13,y)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,j=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,N=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,P=a.actionevent),"sessioncheck"in a&&s(22,T=a.sessioncheck),"location"in a&&s(7,F=a.location),"showsubgroups"in a&&s(8,A=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,D=a.categoriesicon),"lobbyiconimage"in a&&s(10,O=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,R=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&X(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&V(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&Z(),n.$$.dirty[0]&8208&&L&&y&&p(),n.$$.dirty[0]&16777216&&v&&Q(),n.$$.dirty[0]&8224&&C&&y&&$()},s(15,H=0),[u,r,i,o,L,C,P,F,A,D,O,R,g,y,d,H,k,j,b,_,N,w,T,M,v,G,ee]}class J extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},ae,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[22]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(J,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=J;
|
package/components/{CasinoCategoriesSlider-BnLGhDj2.js → CasinoCategoriesSlider-DZ3Xi2sD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as re, S as ce, i as
|
|
1
|
+
import { I as re, S as ce, i as me, f as c, c as ge, s as ue, b as ye, e as N, d as j, C as S, j as F, J as fe, o as de, K as be, L as he, m as Ne, M as o, u as E, v as we, N as Le, O as Me } from "./CasinoCalendar-0AyYaYr6.js";
|
|
2
2
|
function W(i, e) {
|
|
3
3
|
re(i, e);
|
|
4
4
|
}
|
|
@@ -70,6 +70,10 @@ const X = {
|
|
|
70
70
|
"es-mx": {
|
|
71
71
|
lobbyName: "Lobby",
|
|
72
72
|
myGamesName: "Mis juegos"
|
|
73
|
+
},
|
|
74
|
+
"en-us": {
|
|
75
|
+
lobbyName: "Lobby",
|
|
76
|
+
myGamesName: "My games"
|
|
73
77
|
}
|
|
74
78
|
};
|
|
75
79
|
if (typeof window != "undefined") {
|
|
@@ -84,18 +88,18 @@ if (typeof window != "undefined") {
|
|
|
84
88
|
}
|
|
85
89
|
};
|
|
86
90
|
};
|
|
87
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-b2MX1hWZ.js").then(({ default: e }) => {
|
|
88
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
89
93
|
});
|
|
90
94
|
}
|
|
91
|
-
function
|
|
95
|
+
function Ce(i) {
|
|
92
96
|
ye(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
|
93
97
|
}
|
|
94
98
|
function _e(i) {
|
|
95
99
|
let e, t, l, r;
|
|
96
100
|
return {
|
|
97
101
|
c() {
|
|
98
|
-
e =
|
|
102
|
+
e = N("div"), t = N("casino-slider"), o(
|
|
99
103
|
t,
|
|
100
104
|
"lang",
|
|
101
105
|
/*lang*/
|
|
@@ -163,7 +167,7 @@ function _e(i) {
|
|
|
163
167
|
), E(e, "class", "CasinoCategoriesContainer svelte-2g6deg"), E(e, "part", "CasinoCategoriesContainer");
|
|
164
168
|
},
|
|
165
169
|
m(a, n) {
|
|
166
|
-
j(a, e, n),
|
|
170
|
+
j(a, e, n), we(e, t), l || (r = Le(
|
|
167
171
|
/*sendSliderData*/
|
|
168
172
|
i[16].call(null, t)
|
|
169
173
|
), l = !0);
|
|
@@ -258,7 +262,7 @@ function ve(i) {
|
|
|
258
262
|
let e;
|
|
259
263
|
return {
|
|
260
264
|
c() {
|
|
261
|
-
e =
|
|
265
|
+
e = N("p"), e.textContent = "500 Error - Internal Server Error.", E(e, "class", "SearchLoading svelte-2g6deg");
|
|
262
266
|
},
|
|
263
267
|
m(t, l) {
|
|
264
268
|
j(t, e, l);
|
|
@@ -273,7 +277,7 @@ function Ge(i) {
|
|
|
273
277
|
let e;
|
|
274
278
|
return {
|
|
275
279
|
c() {
|
|
276
|
-
e =
|
|
280
|
+
e = N("div"), E(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
|
|
277
281
|
},
|
|
278
282
|
m(t, l) {
|
|
279
283
|
j(t, e, l);
|
|
@@ -298,7 +302,7 @@ function ke(i) {
|
|
|
298
302
|
let l = t(i), r = l(i);
|
|
299
303
|
return {
|
|
300
304
|
c() {
|
|
301
|
-
e =
|
|
305
|
+
e = N("div"), r.c();
|
|
302
306
|
},
|
|
303
307
|
m(a, n) {
|
|
304
308
|
j(a, e, n), r.m(e, null), i[26](e);
|
|
@@ -316,41 +320,41 @@ function ke(i) {
|
|
|
316
320
|
let D = "CasinoSliderData", Se = !1, Ee = !1;
|
|
317
321
|
function je(i, e, t) {
|
|
318
322
|
let l;
|
|
319
|
-
fe(i,
|
|
320
|
-
let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: O = "" } = e, { session:
|
|
323
|
+
fe(i, Me, (s) => t(32, l = s));
|
|
324
|
+
let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: O = "" } = e, { session: w = "" } = e, { mostplayed: L = "" } = e, { lastplayed: M = "false" } = e, { favorites: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: I = "secondaryMenu" } = e, { showsubgroups: H = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: k = "" } = e, { categoriesicon: B = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: q = "" } = e, x, z, y = !0, b, h = [], f = !1, Z = window.navigator.userAgent, d, J, K = !1, T = !1;
|
|
321
325
|
const p = () => {
|
|
322
|
-
fetch(k).then((
|
|
323
|
-
Object.keys(
|
|
324
|
-
W(
|
|
326
|
+
fetch(k).then((m) => m.json()).then((m) => {
|
|
327
|
+
Object.keys(m).forEach((g) => {
|
|
328
|
+
W(g, m[g]);
|
|
325
329
|
});
|
|
326
|
-
}).catch((
|
|
327
|
-
console.log(
|
|
330
|
+
}).catch((m) => {
|
|
331
|
+
console.log(m);
|
|
328
332
|
});
|
|
329
333
|
};
|
|
330
334
|
Object.keys(X).forEach((s) => {
|
|
331
335
|
W(s, X[s]);
|
|
332
336
|
});
|
|
333
337
|
const $ = () => {
|
|
334
|
-
K == !1 && (
|
|
338
|
+
K == !1 && (C == "true" || L == "true" || M == "true") && h.splice(1, 0, {
|
|
335
339
|
// @ts-ignore
|
|
336
340
|
id: "MYGAMES",
|
|
337
341
|
name: x,
|
|
338
342
|
href: "",
|
|
339
343
|
games: []
|
|
340
|
-
}),
|
|
341
|
-
}, ee = () => (r || (
|
|
344
|
+
}), be(), K = !0, t(25, T = !0), P();
|
|
345
|
+
}, ee = () => (r || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(14, f = !0), t(12, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(14, f = !0), t(12, y = !1), console.error(b)), (!n || n.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(14, f = !0), t(12, y = !1), console.error(b)), f), te = () => {
|
|
342
346
|
if (x = l("myGamesName"), z = l("lobbyName"), !ee()) {
|
|
343
347
|
let s = new URL(`${r}/v1/casino/groups/${a}`);
|
|
344
|
-
s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform",
|
|
345
|
-
(
|
|
346
|
-
let
|
|
348
|
+
s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform", he(Z)), fetch(s).then((m) => m.json()).then(
|
|
349
|
+
(m) => {
|
|
350
|
+
let g = G.split(","), oe = m.items.filter((V) => {
|
|
347
351
|
let A = !1;
|
|
348
352
|
if (V.games.total > 0 && (A = !0, G))
|
|
349
|
-
for (let le of
|
|
353
|
+
for (let le of g)
|
|
350
354
|
V.flags == le && (A = !1);
|
|
351
355
|
return A;
|
|
352
356
|
});
|
|
353
|
-
|
|
357
|
+
h = [], h = h.concat(oe), h.unshift({
|
|
354
358
|
// @ts-ignore
|
|
355
359
|
id: "LOBBY",
|
|
356
360
|
name: z,
|
|
@@ -358,11 +362,11 @@ function je(i, e, t) {
|
|
|
358
362
|
games: []
|
|
359
363
|
}), t(12, y = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
|
360
364
|
},
|
|
361
|
-
(
|
|
362
|
-
t(14, f = !0), console.error("There was an error while fetching the categories",
|
|
365
|
+
(m) => {
|
|
366
|
+
t(14, f = !0), console.error("There was an error while fetching the categories", m);
|
|
363
367
|
}
|
|
364
|
-
).catch((
|
|
365
|
-
t(14, f = !0), console.error("There was an error while fetching the categories",
|
|
368
|
+
).catch((m) => {
|
|
369
|
+
t(14, f = !0), console.error("There was an error while fetching the categories", m);
|
|
366
370
|
});
|
|
367
371
|
}
|
|
368
372
|
}, se = () => {
|
|
@@ -372,9 +376,9 @@ function je(i, e, t) {
|
|
|
372
376
|
let s = document.createElement("style");
|
|
373
377
|
s.innerHTML = _, d.appendChild(s);
|
|
374
378
|
}, ae = () => {
|
|
375
|
-
let s = document.createElement("style"),
|
|
376
|
-
fetch(
|
|
377
|
-
s.innerHTML =
|
|
379
|
+
let s = document.createElement("style"), m = new URL(v);
|
|
380
|
+
fetch(m.href).then((g) => g.text()).then((g) => {
|
|
381
|
+
s.innerHTML = g, setTimeout(
|
|
378
382
|
() => {
|
|
379
383
|
d.appendChild(s);
|
|
380
384
|
},
|
|
@@ -386,7 +390,7 @@ function je(i, e, t) {
|
|
|
386
390
|
{
|
|
387
391
|
type: "SliderData",
|
|
388
392
|
identity: D,
|
|
389
|
-
data:
|
|
393
|
+
data: h
|
|
390
394
|
},
|
|
391
395
|
window.location.href
|
|
392
396
|
);
|
|
@@ -397,17 +401,17 @@ function je(i, e, t) {
|
|
|
397
401
|
window.removeEventListener("message", Q);
|
|
398
402
|
}));
|
|
399
403
|
function ne(s) {
|
|
400
|
-
|
|
404
|
+
Ne[s ? "unshift" : "push"](() => {
|
|
401
405
|
d = s, t(13, d);
|
|
402
406
|
});
|
|
403
407
|
}
|
|
404
408
|
return i.$$set = (s) => {
|
|
405
|
-
"endpoint" in s && t(1, r = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, n = s.lang), "userid" in s && t(17, O = s.userid), "session" in s && t(18,
|
|
409
|
+
"endpoint" in s && t(1, r = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, n = s.lang), "userid" in s && t(17, O = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, L = s.mostplayed), "lastplayed" in s && t(20, M = s.lastplayed), "favorites" in s && t(21, C = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(22, U = s.sessioncheck), "location" in s && t(7, I = s.location), "showsubgroups" in s && t(8, H = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, k = s.translationurl), "categoriesicon" in s && t(9, B = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, q = s.mygamesiconimage);
|
|
406
410
|
}, i.$$.update = () => {
|
|
407
411
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
408
412
|
14 && r && a && n && te(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
409
|
-
3936258 && r &&
|
|
410
|
-
33820673 && !y && u && (!
|
|
413
|
+
3936258 && r && w && (L || M || C) && !y && $(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
414
|
+
33820673 && !y && u && (!w || T) && se(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
411
415
|
8208 && _ && d && ie(), i.$$.dirty[0] & /*translationurl*/
|
|
412
416
|
16777216 && k && p(), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
413
417
|
8224 && v && d && ae();
|
|
@@ -430,10 +434,10 @@ function je(i, e, t) {
|
|
|
430
434
|
J,
|
|
431
435
|
P,
|
|
432
436
|
O,
|
|
433
|
-
|
|
437
|
+
w,
|
|
434
438
|
L,
|
|
435
|
-
C,
|
|
436
439
|
M,
|
|
440
|
+
C,
|
|
437
441
|
U,
|
|
438
442
|
G,
|
|
439
443
|
k,
|
|
@@ -443,7 +447,7 @@ function je(i, e, t) {
|
|
|
443
447
|
}
|
|
444
448
|
class Fe extends ce {
|
|
445
449
|
constructor(e) {
|
|
446
|
-
super(),
|
|
450
|
+
super(), me(
|
|
447
451
|
this,
|
|
448
452
|
e,
|
|
449
453
|
je,
|
|
@@ -471,7 +475,7 @@ class Fe extends ce {
|
|
|
471
475
|
lobbyiconimage: 10,
|
|
472
476
|
mygamesiconimage: 11
|
|
473
477
|
},
|
|
474
|
-
|
|
478
|
+
Ce,
|
|
475
479
|
[-1, -1]
|
|
476
480
|
);
|
|
477
481
|
}
|
|
@@ -596,7 +600,7 @@ class Fe extends ce {
|
|
|
596
600
|
this.$$set({ mygamesiconimage: e }), c();
|
|
597
601
|
}
|
|
598
602
|
}
|
|
599
|
-
|
|
603
|
+
ge(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
600
604
|
export {
|
|
601
605
|
Fe as default
|
|
602
606
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function N(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const q={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function de(i){e.append_styles(i,"svelte-1myc38z",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,f,k,u,c=i[8]>i[9]&&E(i),p=e.ensure_array_like(i[3]),m=[];for(let d=0;d<p.length;d+=1)m[d]=V(R(i,p,d));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),c&&c.c(),v=e.space(),f=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(f,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(f)),e.attr(t,"class",u="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,y){e.insert(d,t,y),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,f);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(f,null);i[26](f),k=e.add_iframe_resize_listener(f,i[27].bind(f))},p(d,y){if(y[0]&2049&&o!==(o=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,o),d[8]>d[9]?c?c.p(d,y):(c=E(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),y[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=R(d,p,s);m[s]?m[s].p(h,y):(m[s]=V(h),m[s].c(),m[s].m(f,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=p.length}y[0]&1025&&u!==(u="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",u)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(m,d),i[26](null),k()}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function E(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(v,f){e.insert(v,t,f),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[22]),e.listen(o,"click",i[23])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function pe(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function I(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function W(i){let t,l,r,o,a,g,v,f;function k(){return i[24](i[44])}let u=i[2]=="true"&&I(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),u&&u.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),u&&u.m(t,null),e.append(t,g),v||(f=e.listen(l,"click",e.stop_propagation(k)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?u?u.p(i,p):(u=I(i),u.c(),u.m(t,g)):u&&(u.d(1),u=null)},d(c){c&&e.detach(t),u&&u.d(),v=!1,f()}}}function V(i){let t,l,r,o,a,g,v,f,k;function u(s,h){if(s[1]=="logo")return ue;if(s[1]=="title")return pe}let c=u(i),p=c&&c(i),m=e.ensure_array_like(i[41].games),d=[];for(let s=0;s<m.length;s+=1)d[s]=W(U(i,m,s));function y(){return i[25](i[41])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),o=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[41])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[41])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),f||(k=e.listen(l,"click",y),f=!0)},p(s,h){var _,P;if(i=s,c===(c=u(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const G=U(i,m,b);d[b]?d[b].p(G,h):(d[b]=W(G),d[b].c(),d[b].m(a,null))}for(;b<d.length;b+=1)d[b].d(1);d.length=m.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[41])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),f=!1,k()}}}function me(i){let t;function l(a,g){return a[7]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[28](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[28](null)}}}function fe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(11,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:f=""}=t,{clientstyling:k=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,m=[],d=!0,y,s=0,h=0,_=0,P,b,G,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(C=>C.json()).then(C=>{Object.keys(C).forEach(w=>{N(w,C[w])})}).catch(C=>{console.log(C)})};Object.keys(q).forEach(n=>{N(n,q[n])});const J=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),fetch(n.href).then(C=>C.json()).then(C=>{l(7,d=!1);let w=C.items.filter(S=>S.flags==v);l(3,m=w.map(S=>{var O,B,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(B=(O=S.vendors)==null?void 0:O.items[0])==null?void 0:B.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}})),l(8,h=m.length)})},j=n=>{b=[...y.children],b.forEach((C,w)=>{C.style.transform=`translateX(${100*(n?w-n:w)}%)`}),P=b[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},T=()=>{j(s)},x=()=>{s===0?s=h-_:s-_<-1?s=0:s--,T()},F=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,T()},z=(n,C,w,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:w,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${w}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},Y=()=>{se(g)},Q=()=>{let n=document.createElement("style");n.innerHTML=k,G.appendChild(n)},$=()=>{let n=new URL(u),C=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{C.innerHTML=w,setTimeout(()=>{G.appendChild(C)},1)})};e.onMount(()=>{l(10,M=e.isMobile(K))});const ee=()=>x(),te=()=>F(),ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{y=n,l(4,y)})}function oe(){L=this.clientWidth,l(6,L)}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(16,o=n.endpoint),"datasource"in n&&l(17,a=n.datasource),"lang"in n&&l(18,g=n.lang),"type"in n&&l(0,v=n.type),"titletype"in n&&l(1,f=n.titletype),"clientstyling"in n&&l(19,k=n.clientstyling),"clientstylingurl"in n&&l(20,u=n.clientstylingurl),"translationurl"in n&&l(21,c=n.translationurl),"collectionprovidersgamenames"in n&&l(2,p=n.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&o&&a&&g&&J(),i.$$.dirty[0]&88&&L&&m&&y&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&k&&G&&Q(),i.$$.dirty[0]&1048608&&u&&G&&$(),i.$$.dirty[0]&2097152&&c&&Z()},[v,f,p,m,y,G,L,d,h,_,M,r,x,F,z,H,o,a,g,k,u,c,ee,te,ie,le,ne,oe,re]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,me,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},de,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=D;
|
package/components/{CasinoCollectionsProviders-O5eYWKqu.js → CasinoCollectionsProviders-CNZ2cCAe.js}
RENAMED
|
@@ -95,6 +95,11 @@ const $ = {
|
|
|
95
95
|
collections: "Colecciones de juego",
|
|
96
96
|
providers: "Proveedores de juego",
|
|
97
97
|
Loading: "Cargando, por favor espere..."
|
|
98
|
+
},
|
|
99
|
+
"en-us": {
|
|
100
|
+
collections: "Game Collections",
|
|
101
|
+
providers: "Game Providers",
|
|
102
|
+
loading: "Loading, please wait ..."
|
|
98
103
|
}
|
|
99
104
|
};
|
|
100
105
|
function Ne(t) {
|
package/components/{CasinoFavoritesSection-CumUm71T.js → CasinoFavoritesSection-B9gBh0NZ.js}
RENAMED
|
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
|
14
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-BMrvvE60.js").then(({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
package/components/{CasinoFavoritesSection-CSDBLW4w.cjs → CasinoFavoritesSection-ChFh3su6.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-aMUXtMPt.cjs");if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-aMUXtMPt.cjs");if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-B4Qu6J6Z.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function M({withLocale:i,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function O(i){t.append_styles(i,"svelte-1rh2qpg",".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function S(i){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",i[4]),t.set_custom_element_data(e,"userid",i[5]),t.set_custom_element_data(e,"endpoint",i[0]),t.set_custom_element_data(e,"datasource",i[1]),t.set_custom_element_data(e,"lang",i[3]),t.set_custom_element_data(e,"currency",i[2]),t.set_custom_element_data(e,"favorites",i[14]),t.set_custom_element_data(e,"fetchviaevent",i[16]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",i[11]),t.set_custom_element_data(e,"clientstyling",i[6]),t.set_custom_element_data(e,"clientstylingurl",i[7]),t.set_custom_element_data(e,"livecasino",i[8]),t.set_custom_element_data(e,"visiblegames",i[13]),t.set_custom_element_data(e,"gamepagemodalurl",i[12]),t.set_custom_element_data(e,"integratedgameframedesktop",i[10]),t.set_custom_element_data(e,"integratedgameframemobile",i[9]),t.set_custom_element_data(e,"casinomygames",i[15])},m(s,a){t.insert(s,e,a)},p(s,a){a&16&&t.set_custom_element_data(e,"session",s[4]),a&32&&t.set_custom_element_data(e,"userid",s[5]),a&1&&t.set_custom_element_data(e,"endpoint",s[0]),a&2&&t.set_custom_element_data(e,"datasource",s[1]),a&8&&t.set_custom_element_data(e,"lang",s[3]),a&4&&t.set_custom_element_data(e,"currency",s[2]),a&16384&&t.set_custom_element_data(e,"favorites",s[14]),a&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),a&2048&&t.set_custom_element_data(e,"showgamename",s[11]),a&64&&t.set_custom_element_data(e,"clientstyling",s[6]),a&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),a&256&&t.set_custom_element_data(e,"livecasino",s[8]),a&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),a&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),a&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),a&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),a&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function R(i){let e,s=i[4]&&S(i);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(a,m){t.insert(a,e,m),s&&s.m(e,null),i[18](e)},p(a,[m]){a[4]?s?s.p(a,m):(s=S(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(),i[18](null)}}}function A(i,e,s){let{endpoint:a=""}=e,{datasource:m=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{clientstyling:o=""}=e,{clientstylingurl:c=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:v=""}=e,{gamepagemodalurl:b="false"}=e,{visiblegames:w=""}=e,{favorites:C=""}=e,{casinomygames:k="false"}=e,{fetchviaevent:F="true"}=e,l;M({withLocale:"en",translations:{}});const L=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},T=()=>{let n=document.createElement("style");fetch(new URL(c)).then(u=>u.text()).then(u=>{n.innerHTML=u,setTimeout(()=>{l.appendChild(n)},1)})};function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(17,l)})}return i.$$set=n=>{"endpoint"in n&&s(0,a=n.endpoint),"datasource"in n&&s(1,m=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,c=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,v=n.showgamename),"gamepagemodalurl"in n&&s(12,b=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,C=n.favorites),"casinomygames"in n&&s(15,k=n.casinomygames),"fetchviaevent"in n&&s(16,F=n.fetchviaevent)},i.$$.update=()=>{i.$$.dirty&131136&&o&&l&&L(),i.$$.dirty&131200&&c&&l&&T()},[a,m,g,r,f,_,o,c,d,h,y,v,b,w,C,k,F,l,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,R,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16},O)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{}},[],[],!0);exports.default=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-ub9f39",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{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;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{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}.FilterDropdownContainer{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:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{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))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;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}.ClearFilters: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){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,f,b,y,h=i[11]("filterby")+"",u,v,F,S,w=i[11]("providers")+"",P,_,c,m,g,I,A,C,W,L,T,H,x,E=i[11]("clear")+"",N,D,j,M,z,J;function q(o,p){return o[7]?re:le}let B=q(i),k=B(i),O=e.ensure_array_like(i[5]),r=[];for(let o=0;o<O.length;o+=1)r[o]=Q(K(i,O,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),f=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),S=e.element("span"),P=e.text(w),_=e.space(),k.c(),c=e.space(),m=e.element("span"),g=e.svg_element("svg"),I=e.svg_element("path"),W=e.space(),L=e.element("div"),T=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();H=e.space(),x=e.element("button"),N=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(I,"id","arrow"),e.attr(I,"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(I,"transform","translate(-274.511 -441.088)"),e.attr(I,"fill","#d1d1d1"),e.attr(g,"xmlns","http://www.w3.org/2000/svg"),e.attr(g,"width","14"),e.attr(g,"height","6.835"),e.attr(g,"viewBox","0 0 14 6.835"),e.attr(m,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",C="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(x,"class","ClearFilters"),x.disabled=D=i[7]&&i[6].length!=i[5].length,e.attr(L,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",M="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,f),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,S),e.append(S,P),e.append(F,_),k.m(F,null),e.append(l,c),e.append(l,m),e.append(m,g),e.append(g,I),e.append(t,W),e.append(t,L),e.append(L,T);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(T,null);e.append(L,H),e.append(L,x),e.append(x,N),z||(J=[e.listen(l,"click",i[22]),e.listen(x,"click",i[25])],z=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&w!==(w=o[11]("providers")+"")&&e.set_data(P,w),B===(B=q(o))&&k?k.p(o,p):(k.d(1),k=B(o),k&&(k.c(),k.m(F,null))),p[0]&16&&A!==(A="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(m,"class",A),p[0]&16&&C!==(C="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",C),p[0]&8228){O=e.ensure_array_like(o[5]);let d;for(d=0;d<O.length;d+=1){const V=K(o,O,d);r[d]?r[d].p(V,p):(r[d]=Q(V),r[d].c(),r[d].m(T,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=O.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(N,E),p[0]&224&&D!==(D=o[7]&&o[6].length!=o[5].length)&&(x.disabled=D),p[0]&16&&j!==(j="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(L,"class",j),p[0]&3&&M!==(M="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",M)},d(o){o&&e.detach(t),k.d(),e.destroy_each(r,o),z=!1,e.run_all(J)}}}function te(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function re(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,f,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),f=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,f),e.append(f,b),e.append(f,h),e.append(f,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,f,b,y,h,u,v,F;function S(){i[23].call(a,i[37],i[38])}function w(){return i[24](i[36])}function P(m,g){if(m[2]==="false")return ae;if(m[2]==="true")return ie}let _=P(i),c=_&&_(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),f=e.element("span"),b=e.space(),c&&c.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(f,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(m,g){e.insert(m,t,g),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,f),e.append(l,b),c&&c.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",S),e.listen(a,"click",w)],v=!0)},p(m,g){i=m,g[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),g[0]&32&&(a.checked=i[36].isFilterSelected),_===(_=P(i))&&c?c.p(i,g):(c&&c.d(1),c=_&&_(i),c&&(c.c(),c.m(l,null))),g[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),g[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(m){m&&e.detach(t),c&&c.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,f){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,f){e.insert(s,t,f),n&&n.m(t,null),i[26](t)},p(s,f){a===(a=l(s))&&n?n.p(s,f):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[26](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:f=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:S="false"}=t,w=!1,P=window.navigator.userAgent,_=[],c=[],m={},g=!1,I=0,A=!0,C,W=!1;Y({withLocale:"en",translations:{}});const L=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])});const T=()=>{let r=document.createElement("style");r.innerHTML=y,C.appendChild(r)},H=()=>{let r=document.createElement("style");fetch(new URL(h)).then(o=>o.text()).then(o=>{r.innerHTML=o,setTimeout(()=>{C.appendChild(r)},1)})};m[u]&&(m={[u]:[]});const x=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let V=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;V||(V={currentCategoryId:[]}),((U=V[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,_=d),D()}).catch(d=>{console.error(d),l(10,W=!0),p(d)}).finally(()=>{l(9,A=!1)})})),N=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),D()},D=()=>{l(7,g=c.length===_.length||c.length==0),l(8,I=c.length)},j=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",f),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(P)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},M=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),_.forEach(r=>r.isFilterSelected=!1),l(5,_),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,g=!0),l(4,w=!1)},z=r=>{r.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const J=()=>x();function q(r,o){r[o].isFilterSelected=this.checked,l(5,_)}const B=r=>N(r),k=()=>M();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{C=r,l(3,C)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,f=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,S=r.filterbylogo)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&S&&j(),i.$$.dirty[0]&524296&&y&&C&&T(),i.$$.dirty[0]&1048584&&h&&C&&H(),i.$$.dirty[0]&262144&&b&&L()},[v,F,S,C,w,_,c,g,I,A,W,a,x,N,M,n,s,f,b,y,h,u,J,q,B,k,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},$,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);exports.default=X;
|