@everymatrix/casino-lobby 1.47.4 → 1.48.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-Dfx9Vnxp.js → CasinoCategoriesSlider-CQ2jtwmC.js} +91 -91
- package/components/CasinoCategoriesSlider-DI2g7-y8.cjs +1 -0
- package/components/{CasinoLobby-DgrgfPpR.js → CasinoLobby-DKLr7P_o.js} +2 -2
- package/components/{CasinoLobby-CpOHG2Go.cjs → CasinoLobby-Dx7WdbZp.cjs} +1 -1
- package/components/{CasinoPage-6L1WKOYd.js → CasinoPage-BILjSGW2.js} +2 -2
- package/components/{CasinoPage-DqINO6SW.cjs → CasinoPage-BUf9o6ay.cjs} +1 -1
- package/components/CasinoRandomGame-DiITGB_u.cjs +2 -0
- package/components/{CasinoRandomGame-DLcF2u3L.js → CasinoRandomGame-DwCzuOyV.js} +107 -106
- package/components/{CasinoSlider-BMDqluc_.cjs → CasinoSlider-Cyun8L26.cjs} +1 -1
- package/components/{CasinoSlider-B1E3wbGI.js → CasinoSlider-kGTpzOy8.js} +18 -18
- package/components/CasinoWinners-CflzKW0N.cjs +1 -0
- package/components/{CasinoWinners-CA6s2Z0J.js → CasinoWinners-D6fP2vkl.js} +218 -204
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-B8xMrRuK.cjs +0 -1
- package/components/CasinoRandomGame-Dw5KkOWz.cjs +0 -2
- package/components/CasinoWinners-B1LRzKTu.cjs +0 -1
package/es2015/casino-lobby.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-Dx7WdbZp.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
|
package/es2015/casino-lobby.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLobby-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLobby-DKLr7P_o.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B3jjGeXh.cjs");function H(n,e){t.addMessages(n,e)}const Y={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"}};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-BMDqluc_.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(n){t.append_styles(n,"svelte-1ydghqy",".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}")}function ae(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",z),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-1ydghqy"),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 ne(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ie(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;function s(i,o){return i[12]||le||re?ie:i[14]?ne:ae}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 z="CasinoSliderData",le=!1,re=!1;function ce(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:S=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:E=""}=e,{sessioncheck:T=""}=e,{location:j="secondaryMenu"}=e,{showsubgroups:P="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:q=""}=e,{lobbyiconimage:F=""}=e,{mygamesiconimage:A=""}=e,D,O,g=!0,d,h=[],y=!1,J=window.navigator.userAgent,f,R,U=!1,G=!1;const K=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{H(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(Y).forEach(a=>{H(a,Y[a])});const Q=()=>{U==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:D,href:"",games:[]}),t.tick(),U=!0,s(25,G=!0),I()},V=()=>(r||(d="Endpoint is missing! Please provide a valid endpointURL.",s(14,y=!0),s(12,g=!1),console.error(d)),i||(d="Datasource is missing! Please provide a valid datasource.",s(14,y=!0),s(12,g=!1),console.error(d)),(!o||o.length<2)&&(d="Language is missing! Please provide a valid language (alpha2code)",s(14,y=!0),s(12,g=!1),console.error(d)),y),W=()=>{if(D=l("myGamesName"),O=l("lobbyName"),!V()){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(J)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),ee=c.items.filter(B=>{let k=!1;if(B.games.total>0&&(k=!0,M))for(let te of m)B.flags==te&&(k=!1);return k});h=[],h=h.concat(ee),h.unshift({id:"LOBBY",name:O,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)})}},X=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Z=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},p=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},I=()=>{setTimeout(()=>{window.postMessage({type:"SliderData",identity:z,data:h},window.location.href)},200)};function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}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,S=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,E=a.actionevent),"sessioncheck"in a&&s(22,T=a.sessioncheck),"location"in a&&s(7,j=a.location),"showsubgroups"in a&&s(8,P=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,q=a.categoriesicon),"lobbyiconimage"in a&&s(10,F=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,A=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&W(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&Q(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&X(),n.$$.dirty[0]&8208&&L&&f&&Z(),n.$$.dirty[0]&16777216&&v&&K(),n.$$.dirty[0]&8224&&C&&f&&p()},s(15,R=0),[u,r,i,o,L,C,E,j,P,q,F,A,g,f,y,R,I,S,b,_,N,w,T,M,v,G,$]}class x extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,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},se,[-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(x,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=x;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var S=(n,t,a)=>new Promise((o,i)=>{var s=p=>{try{f(a.next(p))}catch(g){i(g)}},m=p=>{try{f(a.throw(p))}catch(g){i(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,m);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B3jjGeXh.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function ie(n){e.$locale.set(n)}const B={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};function re(n){e.append_styles(n,"svelte-16glv4x","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative}.RandomGamesSliderWrapper{overflow:hidden;height:170px}.GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function I(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function D(n){let t,a,o,i,s,m,f;const p=n[22].close,g=e.create_slot(p,n,n[21],J),l=g||de();function _(d,y){return d[7]?me:ce}let c=_(n),u=c(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),i=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,i),u.m(a,null),s=!0,m||(f=e.listen(o,"click",n[12]),m=!0)},p(d,y){g&&g.p&&(!s||y[0]&2097152)&&e.update_slot_base(g,p,d,d[21],s?e.get_slot_changes(p,d[21],y,se):e.get_all_dirty_from_scope(d[21]),J),c===(c=_(d))&&u?u.p(d,y):(u.d(1),u=c(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),m=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,i){e.insert(o,t,i),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function ce(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(i,s){e.insert(i,t,s),e.append(t,o)},p(i,s){s[0]&512&&a!==(a=i[9]("noGames")+"")&&e.set_data(o,a)},d(i){i&&e.detach(t)}}}function me(n){let t,a,o,i,s=e.ensure_array_like(n[4]),m=[];for(let l=0;l<s.length;l+=1)m[l]=P(I(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<m.length;l+=1)m[l].c();i=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(o,null);n[23](o),e.append(t,i),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let c;for(c=0;c<s.length;c+=1){const u=I(l,s,c);m[c]?m[c].p(u,_):(m[c]=P(u),m[c].c(),m[c].m(o,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(m,l),n[23](null),g.d()}}}function P(n){let t,a,o,i,s,m;return{c(){t=e.element("div"),a=e.element("img"),m=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",i=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,m)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&i!==(i=f[41].name)&&e.attr(a,"alt",i),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(i,s){e.insert(i,t,s),e.append(t,o)},p(i,s){s[0]&512&&a!==(a=i[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(i){i&&e.detach(t)}}}function pe(n){let t,a,o,i,s=n[3].name+"",m,f,p,g=n[3].vendor.name+"",l,_,c,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
|
|
2
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,a=e.space(),o=e.element("div"),i=e.element("p"),m=e.text(s),f=e.space(),p=e.element("p"),l=e.text(g),_=e.space(),c=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(i,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(c,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(b,w){e.insert(b,t,w),e.insert(b,a,w),e.insert(b,o,w),e.append(o,i),e.append(i,m),e.append(o,f),e.append(o,p),e.append(p,l),e.append(o,_),e.append(o,c),e.append(c,d),y||(R=[e.listen(t,"click",n[24]),e.listen(c,"click",n[25])],y=!0)},p(b,w){w[0]&8&&s!==(s=b[3].name+"")&&e.set_data(m,s),w[0]&8&&g!==(g=b[3].vendor.name+"")&&e.set_data(l,g),w[0]&512&&u!==(u=b[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(b){b&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function ge(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(i,s){e.insert(i,t,s),e.append(t,o)},p(i,s){s[0]&512&&a!==(a=i[9]("playRandomGame")+"")&&e.set_data(o,a)},d(i){i&&e.detach(t)}}}function fe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,i){e.insert(o,t,i),e.append(t,a)},p(o,i){i[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function he(n){let t,a,o,i,s,m,f,p,g,l=n[5]&&D(n);function _(d,y){if(d[1])return fe;if(!d[1])return ge}let c=_(n),u=c&&c(n);return{c(){t=e.element("div"),l&&l.c(),a=e.space(),o=e.element("div"),i=e.element("button"),u&&u.c(),s=e.space(),m=e.element("span"),e.attr(m,"class","RandomButtonIcon"),e.attr(i,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper"),e.attr(t,"part","CustomStylingContainer")},m(d,y){e.insert(d,t,y),l&&l.m(t,null),e.append(t,a),e.append(t,o),e.append(o,i),u&&u.m(i,null),e.append(i,s),e.append(i,m),m.innerHTML=n[0],n[27](t),f=!0,p||(g=e.listen(i,"click",n[26]),p=!0)},p(d,y){d[5]?l?(l.p(d,y),y[0]&32&&e.transition_in(l,1)):(l=D(d),l.c(),e.transition_in(l,1),l.m(t,a)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros()),c===(c=_(d))&&u?u.p(d,y):(u&&u.d(1),u=c&&c(d),u&&(u.c(),u.m(i,s))),(!f||y[0]&1)&&(m.innerHTML=d[0])},i(d){f||(e.transition_in(l),f=!0)},o(d){e.transition_out(l),f=!1},d(d){d&&e.detach(t),l&&l.d(),u&&u.d(),n[27](null),p=!1,g()}}}function ye(n,t,a){let o;e.component_subscribe(n,e.$format,r=>a(9,o=r));let{$$slots:i={},$$scope:s}=t,{endpoint:m=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:l=""}=t,{buttontext:_=""}=t,{translationurl:c=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,R=[],b="",w,k=!1,L=!1,C=!1,H=window.navigator.userAgent,x,v,j,F,W=null;le({withLocale:"en",translations:{}});const O=()=>{fetch(c).then(h=>h.json()).then(h=>{Object.keys(h).forEach(G=>{z(G,h[G])})}).catch(h=>{console.log(h)})};Object.keys(B).forEach(r=>{z(r,B[r])});const E=()=>{let r=new URL(`${m}/v1/casino/games`);r.searchParams.append("platform",e.getDevice(H)),r.searchParams.append("datasource",f),r.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&r.searchParams.append("filter",`groups=${y}`),r.searchParams.append("expand","categories,vendor"),r.searchParams.append("pagination","offset=0,limit=1000"),fetch(r.href).then(h=>h.json()).then(h=>{R=h.items,R.length?(a(4,w=U(R.slice(0,19))),a(7,C=!0)):(a(4,w=[]),a(7,C=!1))}).catch(h=>{console.log(h),a(7,C=!1)})},U=r=>{const h=V(r);return h.concat(h)},q=()=>S(this,null,function*(){yield e.tick(),F=Math.floor(Math.random()*(w.length/2))+w.length/2,a(3,b=w[F]),j=v.children[F]}),T=()=>S(this,null,function*(){a(6,L=!1),a(5,k=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield q();const r=window.getComputedStyle(v).getPropertyValue("gap"),h=parseInt(r,10)||0,M=(j.offsetHeight+h)*F,ne=[{transform:"translateX(0px)"},{transform:`translateY(-${M}px)`}],oe={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};W=v.animate(ne,oe),W.onfinish=()=>{a(6,L=!0)}}),V=r=>{const h=structuredClone(r);let G=h.length,M;for(;G!=0;)M=Math.floor(Math.random()*G),G--,[h[G],h[M]]=[h[M],h[G]];return h},N=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,k=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},Y=()=>{a(5,k=!1),window.postMessage({type:"RandomWidgetState",state:k},window.location.href)},X=()=>{ie(g)},Z=()=>{let r=document.createElement("style");r.innerHTML=u,x.appendChild(r)},K=()=>{let r=new URL(d),h=document.createElement("style");fetch(r.href).then(G=>G.text()).then(G=>{h.innerHTML=G,setTimeout(()=>{x.appendChild(h)},1)})};function Q(r){e.binding_callbacks[r?"unshift":"push"](()=>{v=r,a(8,v)})}const $=()=>T(),ee=()=>N(),te=()=>T();function ae(r){e.binding_callbacks[r?"unshift":"push"](()=>{x=r,a(2,x)})}return n.$$set=r=>{"endpoint"in r&&a(13,m=r.endpoint),"datasource"in r&&a(14,f=r.datasource),"gameevent"in r&&a(15,p=r.gameevent),"lang"in r&&a(16,g=r.lang),"randombuttonicon"in r&&a(0,l=r.randombuttonicon),"buttontext"in r&&a(1,_=r.buttontext),"translationurl"in r&&a(17,c=r.translationurl),"clientstyling"in r&&a(18,u=r.clientstyling),"clientstylingurl"in r&&a(19,d=r.clientstylingurl),"filteredrandomgamecategories"in r&&a(20,y=r.filteredrandomgamecategories),"$$scope"in r&&a(21,s=r.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&X(),n.$$.dirty[0]&131072&&c&&O(),n.$$.dirty[0]&24576&&m&&f&&E(),n.$$.dirty[0]&262148&&u&&x&&Z(),n.$$.dirty[0]&524292&&d&&x&&K()},[l,_,x,b,w,k,L,C,v,o,T,N,Y,m,f,p,g,c,u,d,y,s,i,Q,$,ee,te,ae]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,he,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},re,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}}e.create_custom_element(A,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{}},["close"],[],!0);exports.default=A;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B3jjGeXh.cjs");function se(r,t){e.addMessages(r,t)}function Le(r){e.$locale.set(r)}const le={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores"},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano"}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-DmhAiTlH.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-14orrs9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emfe-w-color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}")}function ae(r,t,n){const s=r.slice();return s[70]=t[n],s}function oe(r,t,n){const s=r.slice();return s[73]=t[n],s}function ze(r){let t,n,s,l,a,o,u,d,w,E,k,y,b,A,F,L,S,B,x,v=e.ensure_array_like(r[17]),m=[];for(let c=0;c<v.length;c+=1)m[c]=de(oe(r,v,c));function O(c,g){return c[18]?Ne:Oe}let T=O(r),_=T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("div");for(let c=0;c<m.length;c+=1)m[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),u=e.svg_element("svg"),d=e.svg_element("path"),E=e.space(),k=e.element("button"),y=e.svg_element("svg"),b=e.svg_element("path"),L=e.space(),_.c(),e.attr(s,"class","WinnerButtonsContainer"),e.attr(d,"style",w=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(d,"id","Path_36"),e.attr(d,"data-name","Path 36"),e.attr(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(d,"transform","translate(14.656 0) rotate(90)"),e.attr(d,"fill","#fff"),e.attr(u,"id","Component_46_2"),e.attr(u,"data-name","Component 46 – 2"),e.attr(u,"xmlns","http://www.w3.org/2000/svg"),e.attr(u,"width","15"),e.attr(u,"height","15"),e.attr(u,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(b,"style",A=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(b,"id","Path_36"),e.attr(b,"data-name","Path 36"),e.attr(b,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(b,"transform","translate(0 24.656) rotate(-90)"),e.attr(b,"fill","#fff"),e.attr(y,"id","Component_46_2"),e.attr(y,"data-name","Component 46 – 2"),e.attr(y,"xmlns","http://www.w3.org/2000/svg"),e.attr(y,"width","15"),e.attr(y,"height","15"),e.attr(y,"viewBox","0 0 16 24.656"),e.attr(k,"class","SliderButton"),e.attr(a,"class",F="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",S="CasinoWinners "+(r[13]?"Mobile":""))},m(c,g){e.insert(c,t,g),e.append(t,n),e.append(n,s);for(let f=0;f<m.length;f+=1)m[f]&&m[f].m(s,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,u),e.append(u,d),e.append(a,E),e.append(a,k),e.append(k,y),e.append(y,b),e.append(t,L),_.m(t,null),B||(x=[e.listen(o,"click",r[43]),e.listen(k,"click",r[44])],B=!0)},p(c,g){if(g[0]&3277827){v=e.ensure_array_like(c[17]);let f;for(f=0;f<v.length;f+=1){const p=oe(c,v,f);m[f]?m[f].p(p,g):(m[f]=de(p),m[f].c(),m[f].m(s,null))}for(;f<m.length;f+=1)m[f].d(1);m.length=v.length}g[0]&6144&&w!==(w=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(d,"style",w),g[0]&6144&&A!==(A=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(b,"style",A),g[0]&64&&F!==(F="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",F),T===(T=O(c))&&_?_.p(c,g):(_.d(1),_=T(c),_&&(_.c(),_.m(t,null))),g[0]&8192&&S!==(S="CasinoWinners "+(c[13]?"Mobile":""))&&e.attr(t,"class",S)},d(c){c&&e.detach(t),e.destroy_each(m,c),_.d(),B=!1,e.run_all(x)}}}function Ee(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ce(r){let t,n=r[20]("recentWinners")+"",s,l,a,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[10]=="recent"?"Active":"")+" "+(r[0]=="false"?"Off":""))},m(u,d){e.insert(u,t,d),e.append(t,s),a||(o=e.listen(t,"click",r[41]),a=!0)},p(u,d){d[0]&1048576&&n!==(n=u[20]("recentWinners")+"")&&e.set_data(s,n),d[0]&1025&&l!==(l="WinnersButton "+(u[10]=="recent"?"Active":"")+" "+(u[0]=="false"?"Off":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),a=!1,o()}}}function ue(r){let t,n=r[20]("topWinners")+"",s,l,a,o,u;return{c(){t=e.element("button"),s=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[10]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(d,w){e.insert(d,t,w),e.append(t,s),e.append(t,l),o||(u=e.listen(t,"click",r[42]),o=!0)},p(d,w){w[0]&1048576&&n!==(n=d[20]("topWinners")+"")&&e.set_data(s,n),w[0]&1026&&a!==(a="WinnersButton "+(d[10]=="top"?"Active":"")+" "+(d[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(d){d&&e.detach(t),o=!1,u()}}}function de(r){let t,n,s=r[73]=="recent"&&ce(r),l=r[73]=="top"&&ue(r);return{c(){s&&s.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){s&&s.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?s?s.p(a,o):(s=ce(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),a[73]=="top"?l?l.p(a,o):(l=ue(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),s&&s.d(a),l&&l.d(a)}}}function Oe(r){let t,n=e.ensure_array_like(r[11]),s=[];for(let l=0;l<n.length;l+=1)s[l]=fe(ae(r,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","WinnersSlider")},m(l,a){e.insert(l,t,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null);r[47](t)},p(l,a){if(a[0]&14223500){n=e.ensure_array_like(l[11]);let o;for(o=0;o<n.length;o+=1){const u=ae(l,n,o);s[o]?s[o].p(u,a):(s[o]=fe(u),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),r[47](null)}}}function Ne(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function fe(r){let t,n,s,l,a,o,u,d=r[70].gameName+"",w,E,k,y=r[22](r[70].username)+"",b,A,F,L=r[20]("won")+"",S,B,x,v=r[70].specifiedCurrencyAmount.toFixed(2)+"",m,O,T,_=(r[7]?r[3]:r[2])+"",c,g,f,p,C;function q(){return r[45](r[70])}return{c(){var z,W,N,M;t=e.element("div"),n=e.element("div"),s=e.element("img"),o=e.space(),u=e.element("p"),w=e.text(d),E=e.space(),k=e.element("p"),b=e.text(y),A=e.space(),F=e.element("p"),S=e.text(L),B=e.space(),x=e.element("p"),m=e.text(v),O=e.space(),T=e.element("span"),c=e.text(_),g=e.space(),e.src_url_equal(s.src,l=(W=(z=r[70])==null?void 0:z.gameModel)==null?void 0:W.thumbnail)||e.attr(s,"src",l),e.attr(s,"alt",a=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail),e.attr(s,"class","WinnersImage"),e.attr(F,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))},m(z,W){e.insert(z,t,W),e.append(t,n),e.append(n,s),e.append(n,o),e.append(n,u),e.append(u,w),e.append(n,E),e.append(n,k),e.append(k,b),e.append(n,A),e.append(n,F),e.append(F,S),e.append(n,B),e.append(n,x),e.append(x,m),e.append(x,O),e.append(x,T),e.append(T,c),e.append(t,g),r[46](t),p||(C=e.listen(s,"click",q),p=!0)},p(z,W){var N,M,P,R;r=z,W[0]&2048&&!e.src_url_equal(s.src,l=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail)&&e.attr(s,"src",l),W[0]&2048&&a!==(a=(R=(P=r[70])==null?void 0:P.gameModel)==null?void 0:R.thumbnail)&&e.attr(s,"alt",a),W[0]&2048&&d!==(d=r[70].gameName+"")&&e.set_data(w,d),W[0]&2048&&y!==(y=r[22](r[70].username)+"")&&e.set_data(b,y),W[0]&1048576&&L!==(L=r[20]("won")+"")&&e.set_data(S,L),W[0]&2048&&v!==(v=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(m,v),W[0]&140&&_!==(_=(r[7]?r[3]:r[2])+"")&&e.set_data(c,_),W[0]&65536&&f!==(f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))&&e.attr(t,"class",f)},d(z){z&&e.detach(t),r[46](null),p=!1,C()}}}function Pe(r){let t;function n(a,o){return a[14]||a[15]?Ee:ze}let s=n(r),l=s(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){s===(s=n(a))&&l?l.p(a,o):(l.d(1),l=s(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(r,t,n){let s;e.component_subscribe(r,e.$format,i=>n(20,s=i));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:u="Today"}=t,{periodtop:d="Last7Days"}=t,{numberusersrecent:w="20"}=t,{numberuserstop:E="20"}=t,{amountlimit:k="1"}=t,{vendorCategory:y="All"}=t,{lang:b="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:F="true"}=t,{defaultcurrency:L=""}=t,{usercurrency:S=""}=t,{clientstyling:B=""}=t,{clientstylingurl:x=""}=t,{enableautoscroll:v=""}=t,{tabsorder:m=""}=t,{translationurl:O=""}=t,{winnersdatasources:T=""}=t,{hascustomstyling:_="false"}=t,c,g,f=[],p=0,C=0,q=window.navigator.userAgent,z,W,N,M,P=!0,R=!1,X=!1,Y,D,H,G,J=[],V=!1,I,Q=0;const pe=()=>{let i=new URL(O);fetch(i.href).then(h=>h.json()).then(h=>{Object.keys(h).forEach(j=>{se(j,h[j])})}).catch(h=>{console.log(h)})};Object.keys(le).forEach(i=>{se(i,le[i])});const $=()=>{J=T.split(",").map(function(h){return h.trim()});const i=new URL(`${l}/v1/casino/${g}-winners`);n(18,V=!0),i.searchParams.append("limit",g=="recent"?w:E),i.searchParams.append("specifiedCurrency",G),i.searchParams.append("period",g=="recent"?u:d),i.searchParams.append("language",b),i.searchParams.append("amountLimit",k),i.searchParams.append("vendorCategory",y),J.forEach(h=>{i.searchParams.append("dataSource",h)}),setTimeout(()=>{fetch(i.href).then(h=>h.json()).then(h=>{n(11,f=[]),n(11,f=h.items.map(j=>j)),n(18,V=!1),setTimeout(()=>{be(),te(),v=="true"&&(clearInterval(D),ge()),n(14,P=!1)},5)})},1e3)},K=i=>{g!==i&&(n(11,f=[]),n(10,g=i),$())},he=i=>i.slice(0,2)+i.slice(2,-2).replace(/./g,"*")+i.slice(-2),ee=(i,h,j,U)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:i,launchUrl:h,gameName:j,subVendor:U},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"WinnersWidget",gameId:`${i}`,userId:`${N||"Not logged in"}`})},te=i=>{const h=[...c.children];Y=h.length,h.forEach((j,U)=>{j.style.transform=`translateX(${100*(i?U-i:U)}%)`}),setTimeout(()=>{n(16,X=!0)},10)},ge=()=>{p=0,C<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},ne=()=>{te(p)},be=()=>{Q=I.offsetWidth,n(12,C=Math.round(c.offsetWidth/Q))},re=()=>{if(C>=f.length)return;const i=f.length;p===0?p=i-C:p-C<0?p=0:p=p-C,ne()},Z=()=>{if(C>=f.length)return;const i=f.length;v=="true"&&(p===i-C?p=0:p++),v=="false"&&(p===i-C?p=0:i-C<p+C?p=i-C:p+=C),ne()},_e=()=>{Le(b)},ye=()=>{n(7,W=!0),N=o},ie=()=>{n(40,G=W?S:L)},we=()=>{let i=document.createElement("style");i.innerHTML=B,M.appendChild(i)},We=()=>{let i=new URL(x),h=document.createElement("style");fetch(i.href).then(j=>j.text()).then(j=>{h.innerHTML=j,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500),n(15,R=!1)})},ve=()=>{_==="true"&&(!B&&!x&&M&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!B&&x&&n(15,R=!0))},Ce=()=>{n(17,H=m.split(",")),n(10,g=H[0]),A=="false"&&n(26,k=""),ie(),n(14,P=!1)};e.onMount(()=>(n(13,z=e.isMobile(q)),()=>{clearInterval(D)}));const ke=()=>K("recent"),xe=()=>K("top"),Me=()=>re(),Fe=()=>Z(),Se=i=>ee(i.gameId,i.gameModel.launchUrl,i.gameModel.name,i.gameModel.subVendor);function Be(i){e.binding_callbacks[i?"unshift":"push"](()=>{I=i,n(19,I)})}function Te(i){e.binding_callbacks[i?"unshift":"push"](()=>{c=i,n(9,c)})}function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{M=i,n(8,M)})}return r.$$set=i=>{"endpoint"in i&&n(27,l=i.endpoint),"session"in i&&n(28,a=i.session),"userid"in i&&n(29,o=i.userid),"periodrecent"in i&&n(30,u=i.periodrecent),"periodtop"in i&&n(31,d=i.periodtop),"numberusersrecent"in i&&n(32,w=i.numberusersrecent),"numberuserstop"in i&&n(33,E=i.numberuserstop),"amountlimit"in i&&n(26,k=i.amountlimit),"vendorCategory"in i&&n(34,y=i.vendorCategory),"lang"in i&&n(35,b=i.lang),"isrecentavailable"in i&&n(0,A=i.isrecentavailable),"istopavailable"in i&&n(1,F=i.istopavailable),"defaultcurrency"in i&&n(2,L=i.defaultcurrency),"usercurrency"in i&&n(3,S=i.usercurrency),"clientstyling"in i&&n(4,B=i.clientstyling),"clientstylingurl"in i&&n(5,x=i.clientstylingurl),"enableautoscroll"in i&&n(6,v=i.enableautoscroll),"tabsorder"in i&&n(36,m=i.tabsorder),"translationurl"in i&&n(37,O=i.translationurl),"winnersdatasources"in i&&n(38,T=i.winnersdatasources),"hascustomstyling"in i&&n(39,_=i.hascustomstyling)},r.$$.update=()=>{r.$$.dirty[0]&1140850691|r.$$.dirty[1]&63&&A&&F&&u&&d&&w&&E&&k&&y&&b&&m&&Ce(),r.$$.dirty[0]&268435456&&a&&ye(),r.$$.dirty[0]&140&&W&&(S||L)&&ie(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&640&&l&&T&&G&&$(),r.$$.dirty[1]&16&&b&&_e(),r.$$.dirty[1]&64&&O&&pe(),r.$$.dirty[1]&256&&_&&ve(),r.$$.dirty[0]&272&&B&&M&&we(),r.$$.dirty[0]&288&&x&&M&&We()},[A,F,L,S,B,x,v,W,M,c,g,f,C,z,P,R,X,H,V,I,s,K,he,ee,re,Z,k,l,a,o,u,d,w,E,y,b,m,O,T,_,G,ke,xe,Me,Fe,Se,Be,Te,Ae]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Re,Pe,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:26,vendorCategory:34,lang:35,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:36,translationurl:37,winnersdatasources:38,hascustomstyling:39},je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[30]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[31]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[32]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[33]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[26]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[34]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[35]}set lang(t){this.$$set({lang:t}),e.flush()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(t){this.$$set({isrecentavailable:t}),e.flush()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(t){this.$$set({istopavailable:t}),e.flush()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[6]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[36]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[38]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[39]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{}},[],[],!0);exports.default=me;
|