@everymatrix/casino-lobby 1.59.2 → 1.60.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-CZHyRC-C.js → CasinoCategoriesSlider-DRIsr69C.js} +1 -1
- package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-DYab11Z3.js} +1 -1
- package/components/{CasinoCategoriesSlider-DMR3iCVW.cjs → CasinoCategoriesSlider-_X531XfJ.cjs} +1 -1
- package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BPeaXKGM.js} +1 -1
- package/components/{CasinoFavoritesSection-V5ybOUJC.js → CasinoFavoritesSection-D5EqqGMj.js} +1 -1
- package/components/{CasinoFavoritesSection-hHKNAcoS.cjs → CasinoFavoritesSection-DIHre_7t.cjs} +1 -1
- package/components/{CasinoGameThumbnail-CVz7FpsB.js → CasinoGameThumbnail-CMvbY2cI.js} +200 -184
- package/components/CasinoGameThumbnail-Fwlc2vjJ.cjs +38 -0
- package/components/{CasinoGameThumbnail-NLieCJGe.js → CasinoGameThumbnail-XbLpvdZ1.js} +201 -185
- package/components/{CasinoGamesCategorySection-BP3bZsZg.js → CasinoGamesCategorySection-Cgi_LzIk.js} +1 -1
- package/components/CasinoGamesCategorySection-DHyFvtM3.cjs +1 -0
- package/components/{CasinoGamesCategorySection-Bpy9vh6D.js → CasinoGamesCategorySection-kZn6gz5M.js} +1 -1
- package/components/{CasinoLastPlayedSection-CVEuFsbi.js → CasinoLastPlayedSection-BmYQ5e4f.js} +1 -1
- package/components/{CasinoLastPlayedSection-COAM1aoc.cjs → CasinoLastPlayedSection-DtfR0xRC.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-B9I2fZm5.js → CasinoLastPlayedSection-NSl0yoZv.js} +1 -1
- package/components/{CasinoLobby-CYqI5Bvp.cjs → CasinoLobby-Bsmr_ax3.cjs} +1 -1
- package/components/{CasinoLobby-AoZlXLOV.js → CasinoLobby-CX4NLxiX.js} +2 -2
- package/components/{CasinoLobby-BRiasSXJ.js → CasinoLobby-Q5uhRd4e.js} +2 -2
- package/components/{CasinoMostPlayedSection-DwZh0uxo.js → CasinoMostPlayedSection-BCjRlbbD.js} +1 -1
- package/components/{CasinoMostPlayedSection-BUwIld9p.cjs → CasinoMostPlayedSection-C_ohqFyM.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-9B6X9czZ.js → CasinoMostPlayedSection-CtfOCgLC.js} +1 -1
- package/components/{CasinoMyGames-76IMIo9z.js → CasinoMyGames-B7uSkUNa.js} +3 -3
- package/components/{CasinoMyGames-DTGaTHyO.cjs → CasinoMyGames-CCejo695.cjs} +1 -1
- package/components/{CasinoMyGames-DRCxYUHg.js → CasinoMyGames-DR5bMRpI.js} +3 -3
- package/components/{CasinoPage-BPxxsTeq.js → CasinoPage-Bvi4UG6U.js} +3 -3
- package/components/{CasinoPage-DZ6Yhwli.cjs → CasinoPage-D67L8dJp.cjs} +1 -1
- package/components/{CasinoPage-CikRIum6.js → CasinoPage-D_LGB2VJ.js} +3 -3
- package/components/{CasinoSearch-Cs8FRwGb.js → CasinoSearch-Bdtzeemo.js} +47 -46
- package/components/CasinoSearch-BzqcnIfq.cjs +1 -0
- package/components/{CasinoSearch-CCcjmB9U.js → CasinoSearch-DgadCAWn.js} +47 -46
- package/components/CasinoSlider---x4M_hm.js +803 -0
- package/components/CasinoSlider-BsszznrS.cjs +1 -0
- package/components/{CasinoSlider-0rdHVHjG.js → CasinoSlider-PeKujgAE.js} +111 -111
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +2 -2
- package/components/CasinoGameThumbnail-DK9cpR-G.cjs +0 -38
- package/components/CasinoGamesCategorySection-BAcJus2G.cjs +0 -1
- package/components/CasinoSearch-CZSrkWFZ.cjs +0 -1
- package/components/CasinoSlider-CMKmgXUK.cjs +0 -1
- package/components/CasinoSlider-CleETLFf.js +0 -803
package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-DRIsr69C.js}
RENAMED
|
@@ -88,7 +88,7 @@ if (typeof window < "u") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-PeKujgAE.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-DYab11Z3.js}
RENAMED
|
@@ -88,7 +88,7 @@ if (typeof window != "undefined") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider---x4M_hm.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
package/components/{CasinoCategoriesSlider-DMR3iCVW.cjs → CasinoCategoriesSlider-_X531XfJ.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");function K(i,e){t.addMessages(i,e)}const Q={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 i=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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CMKmgXUK.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(i){t.append_styles(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))}")}function ie(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ne(i){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(i){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(i){let e;function s(n,o){return n[13]||re||ce?oe:n[15]?ne:ie}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",re=!1,ce=!1;function me(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:w=""}=e,{clientstyling:N=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,B,I,g=!0,f,y=[],d=!1,W=window.navigator.userAgent,m,Y,z=!1,S=!1;const X=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{K(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(Q).forEach(a=>{K(a,Q[a])});const Z=()=>{z==!1&&(w=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:B,href:"",games:[]}),t.tick(),z=!0,s(26,S=!0),k()},x=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),p=()=>{if(B=l("myGamesName"),I=l("lobbyName"),!x()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(W)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),te=c.items.filter(J=>{let E=!1;if(J.games.total>0&&(E=!0,M))for(let se of C)J.flags==se&&(E=!1);return E});y=[],y=y.concat(te),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},$=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},H=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",H,!1),()=>{window.emMessageBus&&q&&q.unsubscribe(),window.removeEventListener("message",H)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,w=a.favorites),"clientstyling"in a&&s(4,N=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&p(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||w)&&!g&&Z(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&$(),i.$$.dirty[0]&33554432&&v&&X(),i.$$.dirty[0]&16400&&N&&m&&t.setClientStyling(m,N),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,Y=0),[u,r,n,o,N,L,F,D,O,T,R,U,G,g,m,d,Y,k,P,h,b,_,w,A,M,v,S,ee]}class V extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},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[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}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[23]}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[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}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()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(V,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=V;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");function K(i,e){t.addMessages(i,e)}const Q={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 i=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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-BsszznrS.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(i){t.append_styles(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))}")}function ie(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ne(i){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(i){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(i){let e;function s(n,o){return n[13]||re||ce?oe:n[15]?ne:ie}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",re=!1,ce=!1;function me(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:w=""}=e,{clientstyling:N=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,B,I,g=!0,f,y=[],d=!1,W=window.navigator.userAgent,m,Y,z=!1,S=!1;const X=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{K(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(Q).forEach(a=>{K(a,Q[a])});const Z=()=>{z==!1&&(w=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:B,href:"",games:[]}),t.tick(),z=!0,s(26,S=!0),k()},x=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),p=()=>{if(B=l("myGamesName"),I=l("lobbyName"),!x()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(W)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),te=c.items.filter(J=>{let E=!1;if(J.games.total>0&&(E=!0,M))for(let se of C)J.flags==se&&(E=!1);return E});y=[],y=y.concat(te),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},$=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},H=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",H,!1),()=>{window.emMessageBus&&q&&q.unsubscribe(),window.removeEventListener("message",H)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,w=a.favorites),"clientstyling"in a&&s(4,N=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&p(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||w)&&!g&&Z(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&$(),i.$$.dirty[0]&33554432&&v&&X(),i.$$.dirty[0]&16400&&N&&m&&t.setClientStyling(m,N),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,Y=0),[u,r,n,o,N,L,F,D,O,T,R,U,G,g,m,d,Y,k,P,h,b,_,w,A,M,v,S,ee]}class V extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},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[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}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[23]}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[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}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()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(V,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=V;
|
package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BPeaXKGM.js}
RENAMED
|
@@ -11,7 +11,7 @@ if (typeof window < "u") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-
|
|
14
|
+
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-Cgi_LzIk.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-V5ybOUJC.js → CasinoFavoritesSection-D5EqqGMj.js}
RENAMED
|
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-
|
|
14
|
+
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-kZn6gz5M.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-hHKNAcoS.cjs → CasinoFavoritesSection-DIHre_7t.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");if(typeof window!="undefined"){let a=function(e){return function(...s){try{return e.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");if(typeof window!="undefined"){let a=function(e){return function(...s){try{return e.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-DHyFvtM3.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function L({withLocale:a,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(a))})}function M(a){t.append_styles(a,"svelte-nazqps",".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function F(a){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",a[4]),t.set_custom_element_data(e,"userid",a[5]),t.set_custom_element_data(e,"endpoint",a[0]),t.set_custom_element_data(e,"datasource",a[1]),t.set_custom_element_data(e,"lang",a[3]),t.set_custom_element_data(e,"currency",a[2]),t.set_custom_element_data(e,"favorites",a[14]),t.set_custom_element_data(e,"fetchviaevent",a[16]),t.set_custom_element_data(e,"mbsource",a[17]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",a[11]),t.set_custom_element_data(e,"clientstyling",a[6]),t.set_custom_element_data(e,"clientstylingurl",a[7]),t.set_custom_element_data(e,"livecasino",a[8]),t.set_custom_element_data(e,"visiblegames",a[13]),t.set_custom_element_data(e,"gamepagemodalurl",a[12]),t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),t.set_custom_element_data(e,"integratedgameframemobile",a[9]),t.set_custom_element_data(e,"casinomygames",a[15])},m(s,i){t.insert(s,e,i)},p(s,i){i&16&&t.set_custom_element_data(e,"session",s[4]),i&32&&t.set_custom_element_data(e,"userid",s[5]),i&1&&t.set_custom_element_data(e,"endpoint",s[0]),i&2&&t.set_custom_element_data(e,"datasource",s[1]),i&8&&t.set_custom_element_data(e,"lang",s[3]),i&4&&t.set_custom_element_data(e,"currency",s[2]),i&16384&&t.set_custom_element_data(e,"favorites",s[14]),i&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i&131072&&t.set_custom_element_data(e,"mbsource",s[17]),i&2048&&t.set_custom_element_data(e,"showgamename",s[11]),i&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i&256&&t.set_custom_element_data(e,"livecasino",s[8]),i&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),i&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function O(a){let e,s=a[4]&&F(a);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,l){t.insert(i,e,l),s&&s.m(e,null),a[19](e)},p(i,[l]){i[4]?s?s.p(i,l):(s=F(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),s&&s.d(),a[19](null)}}}function A(a,e,s){let{endpoint:i=""}=e,{datasource:l=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:b=""}=e,{gamepagemodalurl:v="false"}=e,{visiblegames:w=""}=e,{favorites:k=""}=e,{casinomygames:C="false"}=e,{fetchviaevent:S="true"}=e,{mbsource:c}=e,m;L({withLocale:"en",translations:{}}),t.onMount(()=>()=>{});function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(18,m)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,l=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,u=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,b=n.showgamename),"gamepagemodalurl"in n&&s(12,v=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,k=n.favorites),"casinomygames"in n&&s(15,C=n.casinomygames),"fetchviaevent"in n&&s(16,S=n.fetchviaevent),"mbsource"in n&&s(17,c=n.mbsource)},a.$$.update=()=>{a.$$.dirty&262208&&o&&m&&t.setClientStyling(m,o),a.$$.dirty&262272&&u&&m&&t.setClientStylingURL(m,u),a.$$.dirty&393216&&m&&t.setStreamStyling(m,`${c}.Style`)},[i,l,g,r,f,_,o,u,d,h,y,b,v,w,k,C,S,c,m,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,O,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,mbsource:17},M)}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()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource: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:{},mbsource:{}},[],[],!0);exports.default=E;
|