@everymatrix/casino-lobby 1.54.12 → 1.56.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/CasinoCalendar-CFPK0TM5.cjs +9 -0
- package/components/{CasinoCalendar-D3cTwZsW.js → CasinoCalendar-CSMUhfCr.js} +1066 -1022
- package/components/{CasinoCalendar-CKCvu8d9.js → CasinoCalendar-_T8fa3tA.js} +1215 -1171
- package/components/CasinoCalendarDailyDetails-CGRqVKFV.js +693 -0
- package/components/CasinoCalendarDailyDetails-DspcjY5l.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-DueCbaZn.js +693 -0
- package/components/CasinoCalendarDailyItem-DaSrAYwS.cjs +1 -0
- package/components/CasinoCalendarDailyItem-DpLOlYVI.js +306 -0
- package/components/CasinoCalendarDailyItem-DxYbPmky.js +306 -0
- package/components/{CasinoCategoriesSlider-06Zx2Iq-.js → CasinoCategoriesSlider-B7jmX0uM.js} +204 -197
- package/components/{CasinoCategoriesSlider-Bjd1r5S5.js → CasinoCategoriesSlider-DkmZ6uE9.js} +203 -196
- package/components/CasinoCategoriesSlider-Tm48k88y.cjs +1 -0
- package/components/CasinoCollectionsProviders-CFJKyip5.js +654 -0
- package/components/CasinoCollectionsProviders-XHUKRCjH.js +659 -0
- package/components/CasinoCollectionsProviders-fHbyEo_l.cjs +1 -0
- package/components/{CasinoFavoritesSection-WWaIxjOj.js → CasinoFavoritesSection-BJKuORXc.js} +138 -131
- package/components/CasinoFavoritesSection-DAfQZFKH.cjs +1 -0
- package/components/{CasinoFavoritesSection-Dumr9yPV.js → CasinoFavoritesSection-ui8ebJSk.js} +138 -131
- package/components/CasinoFilter-BZrHKXm3.cjs +1 -0
- package/components/{CasinoFilter-CT6gjm3V.js → CasinoFilter-Cj6Ya1tA.js} +237 -244
- package/components/{CasinoFilter-ckjDwsuD.js → CasinoFilter-t6_A4K9e.js} +232 -237
- package/components/CasinoGamePage-BCpBojD8.cjs +18 -0
- package/components/{CasinoGamePage-BUpAQtEi.js → CasinoGamePage-DH-mxVYx.js} +1012 -1018
- package/components/{CasinoGamePage-VEREng8k.js → CasinoGamePage-DQ1Yd_-1.js} +1004 -1010
- package/components/CasinoGameThumbnail-B15M2LaO.js +1829 -0
- package/components/CasinoGameThumbnail-CHGG4fWS.cjs +38 -0
- package/components/CasinoGameThumbnail-CmtUwom1.js +1845 -0
- package/components/{CasinoGamesCategorySection-DK9t7zLa.js → CasinoGamesCategorySection-D9nxbG-c.js} +945 -919
- package/components/CasinoGamesCategorySection-Dw87pk8g.cjs +1 -0
- package/components/{CasinoGamesCategorySection-u0JnTvTn.js → CasinoGamesCategorySection-lpoHUMLN.js} +855 -829
- package/components/CasinoJackpotBanner-COZRcenh.js +692 -0
- package/components/CasinoJackpotBanner-DcwCa-Hp.js +688 -0
- package/components/CasinoJackpotBanner-vFHgMV4j.cjs +1 -0
- package/components/CasinoLastPlayedSection-DUCFQv-7.cjs +1 -0
- package/components/{CasinoLastPlayedSection-CChe4Dsm.js → CasinoLastPlayedSection-IZ9mars2.js} +143 -134
- package/components/{CasinoLastPlayedSection-BoyL9RQI.js → CasinoLastPlayedSection-yetII3tl.js} +143 -134
- package/components/CasinoLobby-CZ0buhgH.cjs +1 -0
- package/components/{CasinoLobby-ClLV4i9d.js → CasinoLobby-CoCRB4M8.js} +706 -657
- package/components/{CasinoLobby-DUYjTD-X.js → CasinoLobby-DOvk4Q1L.js} +706 -657
- package/components/CasinoModal-6keCUEEx.cjs +1 -0
- package/components/CasinoModal-DDDhdR0c.js +368 -0
- package/components/CasinoModal-Dzu3FQyi.js +368 -0
- package/components/CasinoMostPlayedSection-BNDdZOM6.cjs +1 -0
- package/components/{CasinoMostPlayedSection-DIF7og_k.js → CasinoMostPlayedSection-CGqU9ZQv.js} +171 -162
- package/components/{CasinoMostPlayedSection-qZnaHjV9.js → CasinoMostPlayedSection-D0w6a_z2.js} +171 -162
- package/components/{CasinoMyGames-Bu2sU_i0.js → CasinoMyGames-BKqlNnO1.js} +382 -352
- package/components/CasinoMyGames-CX5HKRLY.cjs +1 -0
- package/components/{CasinoMyGames-BfCr8pSL.js → CasinoMyGames-Dy3IMfzN.js} +389 -359
- package/components/CasinoPage--1tMufa9.cjs +1 -0
- package/components/{CasinoPage-CoKfFrmH.js → CasinoPage-BnrghJel.js} +1207 -1046
- package/components/{CasinoPage-BAJC3ryR.js → CasinoPage-DYcUhqdZ.js} +833 -678
- package/components/{CasinoRandomGame-C6-dDxie.cjs → CasinoRandomGame-B1qCGSlR.cjs} +2 -2
- package/components/{CasinoRandomGame-Df62wtxc.js → CasinoRandomGame-Cup5oHY3.js} +247 -249
- package/components/{CasinoRandomGame-DXFHIw0O.js → CasinoRandomGame-Dq7oLh0O.js} +229 -231
- package/components/CasinoSearch-B1D8nnr0.cjs +1 -0
- package/components/{CasinoSearch-DP4hDzq5.js → CasinoSearch-DlUwO5L4.js} +385 -378
- package/components/{CasinoSearch-U2PDpXMA.js → CasinoSearch-jV0H_1Yg.js} +442 -435
- package/components/CasinoSlider-4pDZHG6x.cjs +1 -0
- package/components/CasinoSlider-ChnKJ8kH.js +797 -0
- package/components/CasinoSlider-Ot2uFDD8.js +803 -0
- package/components/CasinoSort-BnarJSWg.js +428 -0
- package/components/CasinoSort-DltZUpda.js +427 -0
- package/components/CasinoSort-jqMnIqLs.cjs +1 -0
- package/components/{CasinoWinners-6mr0X-kZ.js → CasinoWinners-BkJBCXPe.js} +354 -351
- package/components/CasinoWinners-Bs7Oh-m-.cjs +1 -0
- package/components/{CasinoWinners-CADOvOsd.js → CasinoWinners-CBgbYBfP.js} +343 -340
- package/components/GeneralAnimationLoading-BLss2VP4.cjs +1 -0
- package/components/GeneralAnimationLoading-BUY2TGQr.js +84 -0
- package/components/GeneralAnimationLoading-CRju5T01.js +84 -0
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-NI77_BKB.js → casino-play-random-game-CBXhEsCq.js} +54 -29
- package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-PZXnDzfs.js} +73 -48
- package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
- package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
- package/stencil/{index-8b2c4ca7-BNDGCsVn.js → index-29915e18-CQ_kWzEh.js} +134 -133
- package/stencil/{index-8b2c4ca7-CtUqBgXG.js → index-29915e18-MPiqo7vY.js} +131 -130
- package/components/CasinoCalendar-BlfnJwZ-.cjs +0 -9
- package/components/CasinoCalendarDailyDetails-B7hChP4v.js +0 -701
- package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +0 -1
- package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +0 -701
- package/components/CasinoCalendarDailyItem-1iPwEmjb.js +0 -315
- package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +0 -315
- package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +0 -1
- package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +0 -1
- package/components/CasinoCollectionsProviders-BQPjVzK8.js +0 -659
- package/components/CasinoCollectionsProviders-CSISd5u6.cjs +0 -1
- package/components/CasinoCollectionsProviders-CVDFBiI0.js +0 -664
- package/components/CasinoFavoritesSection-Dc3krq_m.cjs +0 -1
- package/components/CasinoFilter-C10Tgn3c.cjs +0 -1
- package/components/CasinoGamePage-DOzefHFS.cjs +0 -18
- package/components/CasinoGameThumbnail-CWQWsl_s.cjs +0 -38
- package/components/CasinoGameThumbnail-D08-4naW.js +0 -1834
- package/components/CasinoGameThumbnail-nmpLDgoF.js +0 -1850
- package/components/CasinoGamesCategorySection-LHUR2_EB.cjs +0 -1
- package/components/CasinoJackpotBanner-D3s92J-3.js +0 -614
- package/components/CasinoJackpotBanner-q02RPv4N.js +0 -618
- package/components/CasinoJackpotBanner-uWVFzOiI.cjs +0 -1
- package/components/CasinoLastPlayedSection-BVbeW3YI.cjs +0 -1
- package/components/CasinoLobby-bvh2k3lg.cjs +0 -1
- package/components/CasinoModal-C1oW3YF4.js +0 -372
- package/components/CasinoModal-DRtZi6gR.cjs +0 -1
- package/components/CasinoModal-IbVlgg7Z.js +0 -372
- package/components/CasinoMostPlayedSection-DQ_xJPuX.cjs +0 -1
- package/components/CasinoMyGames-B0pWVqCz.cjs +0 -1
- package/components/CasinoPage-CoSWrE10.cjs +0 -1
- package/components/CasinoSearch-Cnu1-6cZ.cjs +0 -1
- package/components/CasinoSlider-BDjskQjI.cjs +0 -1
- package/components/CasinoSlider-BWEc4YT5.js +0 -800
- package/components/CasinoSlider-BjpV4pLV.js +0 -806
- package/components/CasinoSort-CS53Uvnz.cjs +0 -1
- package/components/CasinoSort-DFdgT3Dt.js +0 -432
- package/components/CasinoSort-DFljh5Sg.js +0 -431
- package/components/CasinoWinners-DU3xFq2b.cjs +0 -1
- package/components/GeneralAnimationLoading-BG_QynCK.cjs +0 -1
- package/components/GeneralAnimationLoading-CX9baArf.js +0 -75
- package/components/GeneralAnimationLoading-DVLCsjn0.js +0 -75
- package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CFPK0TM5.cjs");function J(i,e){t.addMessages(i,e)}const K={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-4pDZHG6x.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(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 ae(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 ie(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 ne(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 oe(i){let e;function s(n,o){return n[13]||le||re?ne:n[15]?ie:ae}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",le=!1,re=!1;function ce(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:N=""}=e,{clientstyling:w=""}=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,I,g=!0,f,y=[],d=!1,V=window.navigator.userAgent,m,B,Y=!1,S=!1;const W=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{J(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(a=>{J(a,K[a])});const X=()=>{Y==!1&&(N=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:q,href:"",games:[]}),t.tick(),Y=!0,s(26,S=!0),k()},Z=()=>(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),x=()=>{if(q=l("myGamesName"),I=l("lobbyName"),!Z()){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(V)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),ee=c.items.filter(H=>{let E=!1;if(H.games.total>0&&(E=!0,M))for(let te of C)H.flags==te&&(E=!1);return E});y=[],y=y.concat(ee),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)})}},p=()=>{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)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(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,N=a.favorites),"clientstyling"in a&&s(4,w=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&&x(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||N)&&!g&&X(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&p(),i.$$.dirty[0]&33554432&&v&&W(),i.$$.dirty[0]&16400&&w&&m&&t.setClientStyling(m,w),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,B=0),[u,r,n,o,w,L,F,D,O,T,R,U,G,g,m,d,B,k,P,h,b,_,N,A,M,v,S,$]}class Q extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,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},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[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(Q,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=Q;
|
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
import { a as _e, $ as be, S as Ce, i as ye, s as we, f as L, b as Se, n as z, d as j, h as x, j as b, k as ke, o as Ge, l as Pe, C as Z, r as f, v as O, w as oe, m as I, p as _, R as Le, q as R, B as T, T as Me, U as je, A as B, G as N, D as H, V as xe, I as Te, J as Fe, K as ze, L as Oe, M as Be } from "./CasinoCalendar-_T8fa3tA.js";
|
|
2
|
+
function X(t, e) {
|
|
3
|
+
_e(t, e);
|
|
4
|
+
}
|
|
5
|
+
function He(t) {
|
|
6
|
+
be.set(t);
|
|
7
|
+
}
|
|
8
|
+
const Y = {
|
|
9
|
+
en: {
|
|
10
|
+
collections: "Game Collections",
|
|
11
|
+
providers: "Game Providers",
|
|
12
|
+
loading: "Loading, please wait ..."
|
|
13
|
+
},
|
|
14
|
+
"zh-hk": {
|
|
15
|
+
collections: "收藏品",
|
|
16
|
+
providers: "供应商",
|
|
17
|
+
loading: "加載請稍候 ..."
|
|
18
|
+
},
|
|
19
|
+
de: {
|
|
20
|
+
collections: "Game Collections",
|
|
21
|
+
providers: "Game Providers",
|
|
22
|
+
loading: "Laden, bitte warten..."
|
|
23
|
+
},
|
|
24
|
+
it: {
|
|
25
|
+
collections: "Game Collections",
|
|
26
|
+
providers: "Game Providers",
|
|
27
|
+
loading: "Loading, please wait ..."
|
|
28
|
+
},
|
|
29
|
+
fr: {
|
|
30
|
+
collections: "Collections",
|
|
31
|
+
providers: "Fournisseurs",
|
|
32
|
+
loading: "Chargement, veuillez patienter ..."
|
|
33
|
+
},
|
|
34
|
+
es: {
|
|
35
|
+
collections: "Colecciones de juegos",
|
|
36
|
+
providers: "Proveedores de juegos",
|
|
37
|
+
loading: "Cargando…"
|
|
38
|
+
},
|
|
39
|
+
el: {
|
|
40
|
+
collections: "Game Collections",
|
|
41
|
+
providers: "Game Providers",
|
|
42
|
+
loading: "Φορτώνει, παρακαλούμε περιμένετε ..."
|
|
43
|
+
},
|
|
44
|
+
tr: {
|
|
45
|
+
collections: "Oyun Koleksiyonları",
|
|
46
|
+
providers: "Oyun Sağlayıcıları",
|
|
47
|
+
loading: "Yükleniyor, lütfen bekleyin..."
|
|
48
|
+
},
|
|
49
|
+
ru: {
|
|
50
|
+
collections: "Game Collections",
|
|
51
|
+
providers: "Game Providers",
|
|
52
|
+
loading: "Loading, please wait ..."
|
|
53
|
+
},
|
|
54
|
+
ro: {
|
|
55
|
+
collections: "Selectie Jocuri",
|
|
56
|
+
providers: "Furnizori",
|
|
57
|
+
loading: "Se încarcă, asteptati ..."
|
|
58
|
+
},
|
|
59
|
+
hr: {
|
|
60
|
+
collections: "Kolekcije igara",
|
|
61
|
+
providers: "Brendovi igara",
|
|
62
|
+
loading: "Učitavam"
|
|
63
|
+
},
|
|
64
|
+
hu: {
|
|
65
|
+
collections: "Game Collections",
|
|
66
|
+
providers: "Game Providers",
|
|
67
|
+
loading: "Betöltés, kérjük várjon..."
|
|
68
|
+
},
|
|
69
|
+
pl: {
|
|
70
|
+
collections: "Game Collections",
|
|
71
|
+
providers: "Game Providers",
|
|
72
|
+
loading: "Loading, please wait ..."
|
|
73
|
+
},
|
|
74
|
+
pt: {
|
|
75
|
+
collections: "Game Collections",
|
|
76
|
+
providers: "Game Providers",
|
|
77
|
+
loading: "Carregando, por favor espere ..."
|
|
78
|
+
},
|
|
79
|
+
sl: {
|
|
80
|
+
collections: "Game Collections",
|
|
81
|
+
providers: "Game Providers",
|
|
82
|
+
loading: "Loading, please wait ..."
|
|
83
|
+
},
|
|
84
|
+
sr: {
|
|
85
|
+
collections: "Game Collections",
|
|
86
|
+
providers: "Game Providers",
|
|
87
|
+
loading: "Loading, please wait ..."
|
|
88
|
+
},
|
|
89
|
+
"pt-br": {
|
|
90
|
+
collections: "Coleções de jogos",
|
|
91
|
+
providers: "Provedores de jogos",
|
|
92
|
+
Loading: "Carregando, por favor espere..."
|
|
93
|
+
},
|
|
94
|
+
"es-mx": {
|
|
95
|
+
collections: "Colecciones de juego",
|
|
96
|
+
providers: "Proveedores de juego",
|
|
97
|
+
Loading: "Cargando, por favor espere..."
|
|
98
|
+
},
|
|
99
|
+
"en-us": {
|
|
100
|
+
collections: "Game Collections",
|
|
101
|
+
providers: "Game Providers",
|
|
102
|
+
loading: "Loading, please wait ..."
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
function Ae(t) {
|
|
106
|
+
Se(t, "svelte-3oqkg3", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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)}}');
|
|
107
|
+
}
|
|
108
|
+
function Q(t, e, i) {
|
|
109
|
+
const n = t.slice();
|
|
110
|
+
return n[41] = e[i], n;
|
|
111
|
+
}
|
|
112
|
+
function $(t, e, i) {
|
|
113
|
+
const n = t.slice();
|
|
114
|
+
return n[44] = e[i], n;
|
|
115
|
+
}
|
|
116
|
+
function Ne(t) {
|
|
117
|
+
let e, i, n, l = (
|
|
118
|
+
/*type*/
|
|
119
|
+
(t[0] == "vendor" ? (
|
|
120
|
+
/*$_*/
|
|
121
|
+
t[11]("providers")
|
|
122
|
+
) : (
|
|
123
|
+
/*$_*/
|
|
124
|
+
t[11]("collections")
|
|
125
|
+
)) + ""
|
|
126
|
+
), r, d, C, v, w, u, c = (
|
|
127
|
+
/*numberOfSlides*/
|
|
128
|
+
t[8] > /*numberOfVisibleSlides*/
|
|
129
|
+
t[9] && ee(t)
|
|
130
|
+
), g = O(
|
|
131
|
+
/*gameCategories*/
|
|
132
|
+
t[3]
|
|
133
|
+
), m = [];
|
|
134
|
+
for (let a = 0; a < g.length; a += 1)
|
|
135
|
+
m[a] = le(Q(t, g, a));
|
|
136
|
+
return {
|
|
137
|
+
c() {
|
|
138
|
+
e = b("div"), i = b("div"), n = b("p"), r = R(l), d = T(), c && c.c(), C = T(), v = b("div");
|
|
139
|
+
for (let a = 0; a < m.length; a += 1)
|
|
140
|
+
m[a].c();
|
|
141
|
+
f(n, "class", "Title"), f(i, "class", "CategoriesHeader"), f(v, "class", "CategoriesSlider"), Me(() => (
|
|
142
|
+
/*div1_elementresize_handler*/
|
|
143
|
+
t[28].call(v)
|
|
144
|
+
)), f(e, "class", u = "CasinoCollectionsProviders " + /*mobile*/
|
|
145
|
+
(t[10] ? "Mobile" : "") + " " + /*type*/
|
|
146
|
+
(t[0] === "vendor" ? "Providers" : "Collections"));
|
|
147
|
+
},
|
|
148
|
+
m(a, S) {
|
|
149
|
+
x(a, e, S), _(e, i), _(i, n), _(n, r), _(i, d), c && c.m(i, null), _(e, C), _(e, v);
|
|
150
|
+
for (let s = 0; s < m.length; s += 1)
|
|
151
|
+
m[s] && m[s].m(v, null);
|
|
152
|
+
t[27](v), w = Le(
|
|
153
|
+
v,
|
|
154
|
+
/*div1_elementresize_handler*/
|
|
155
|
+
t[28].bind(v)
|
|
156
|
+
);
|
|
157
|
+
},
|
|
158
|
+
p(a, S) {
|
|
159
|
+
if (S[0] & /*type, $_*/
|
|
160
|
+
2049 && l !== (l = /*type*/
|
|
161
|
+
(a[0] == "vendor" ? (
|
|
162
|
+
/*$_*/
|
|
163
|
+
a[11]("providers")
|
|
164
|
+
) : (
|
|
165
|
+
/*$_*/
|
|
166
|
+
a[11]("collections")
|
|
167
|
+
)) + "") && I(r, l), /*numberOfSlides*/
|
|
168
|
+
a[8] > /*numberOfVisibleSlides*/
|
|
169
|
+
a[9] ? c ? c.p(a, S) : (c = ee(a), c.c(), c.m(i, null)) : c && (c.d(1), c = null), S[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
|
170
|
+
49166) {
|
|
171
|
+
g = O(
|
|
172
|
+
/*gameCategories*/
|
|
173
|
+
a[3]
|
|
174
|
+
);
|
|
175
|
+
let s;
|
|
176
|
+
for (s = 0; s < g.length; s += 1) {
|
|
177
|
+
const h = Q(a, g, s);
|
|
178
|
+
m[s] ? m[s].p(h, S) : (m[s] = le(h), m[s].c(), m[s].m(v, null));
|
|
179
|
+
}
|
|
180
|
+
for (; s < m.length; s += 1)
|
|
181
|
+
m[s].d(1);
|
|
182
|
+
m.length = g.length;
|
|
183
|
+
}
|
|
184
|
+
S[0] & /*mobile, type*/
|
|
185
|
+
1025 && u !== (u = "CasinoCollectionsProviders " + /*mobile*/
|
|
186
|
+
(a[10] ? "Mobile" : "") + " " + /*type*/
|
|
187
|
+
(a[0] === "vendor" ? "Providers" : "Collections")) && f(e, "class", u);
|
|
188
|
+
},
|
|
189
|
+
d(a) {
|
|
190
|
+
a && j(e), c && c.d(), oe(m, a), t[27](null), w();
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function Ie(t) {
|
|
195
|
+
let e;
|
|
196
|
+
return {
|
|
197
|
+
c() {
|
|
198
|
+
e = b("div"), f(e, "class", "LoadingSpinner");
|
|
199
|
+
},
|
|
200
|
+
m(i, n) {
|
|
201
|
+
x(i, e, n);
|
|
202
|
+
},
|
|
203
|
+
p: z,
|
|
204
|
+
d(i) {
|
|
205
|
+
i && j(e);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function ee(t) {
|
|
210
|
+
let e, i, n, l, r, d;
|
|
211
|
+
return {
|
|
212
|
+
c() {
|
|
213
|
+
e = b("div"), i = b("button"), i.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>', n = T(), l = b("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(0 24.656) rotate(-90)" fill="#fff"></path></svg>', f(e, "class", "ButtonsContainer");
|
|
214
|
+
},
|
|
215
|
+
m(C, v) {
|
|
216
|
+
x(C, e, v), _(e, i), _(e, n), _(e, l), r || (d = [
|
|
217
|
+
B(
|
|
218
|
+
i,
|
|
219
|
+
"click",
|
|
220
|
+
/*click_handler*/
|
|
221
|
+
t[23]
|
|
222
|
+
),
|
|
223
|
+
B(
|
|
224
|
+
l,
|
|
225
|
+
"click",
|
|
226
|
+
/*click_handler_1*/
|
|
227
|
+
t[24]
|
|
228
|
+
)
|
|
229
|
+
], r = !0);
|
|
230
|
+
},
|
|
231
|
+
p: z,
|
|
232
|
+
d(C) {
|
|
233
|
+
C && j(e), r = !1, je(d);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function Re(t) {
|
|
238
|
+
let e, i = (
|
|
239
|
+
/*category*/
|
|
240
|
+
t[41].name + ""
|
|
241
|
+
), n;
|
|
242
|
+
return {
|
|
243
|
+
c() {
|
|
244
|
+
e = b("p"), n = R(i), f(e, "class", "CategorySlideTitle");
|
|
245
|
+
},
|
|
246
|
+
m(l, r) {
|
|
247
|
+
x(l, e, r), _(e, n);
|
|
248
|
+
},
|
|
249
|
+
p(l, r) {
|
|
250
|
+
r[0] & /*gameCategories*/
|
|
251
|
+
8 && i !== (i = /*category*/
|
|
252
|
+
l[41].name + "") && I(n, i);
|
|
253
|
+
},
|
|
254
|
+
d(l) {
|
|
255
|
+
l && j(e);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function Ue(t) {
|
|
260
|
+
let e, i, n;
|
|
261
|
+
return {
|
|
262
|
+
c() {
|
|
263
|
+
e = b("img"), f(e, "class", "CategorySlideLogo"), H(e.src, i = /*category*/
|
|
264
|
+
t[41].icon) || f(e, "src", i), f(e, "alt", n = /*category*/
|
|
265
|
+
t[41].name + " icon");
|
|
266
|
+
},
|
|
267
|
+
m(l, r) {
|
|
268
|
+
x(l, e, r);
|
|
269
|
+
},
|
|
270
|
+
p(l, r) {
|
|
271
|
+
r[0] & /*gameCategories*/
|
|
272
|
+
8 && !H(e.src, i = /*category*/
|
|
273
|
+
l[41].icon) && f(e, "src", i), r[0] & /*gameCategories*/
|
|
274
|
+
8 && n !== (n = /*category*/
|
|
275
|
+
l[41].name + " icon") && f(e, "alt", n);
|
|
276
|
+
},
|
|
277
|
+
d(l) {
|
|
278
|
+
l && j(e);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
function te(t) {
|
|
283
|
+
let e, i = (
|
|
284
|
+
/*game*/
|
|
285
|
+
t[44].name + ""
|
|
286
|
+
), n, l;
|
|
287
|
+
return {
|
|
288
|
+
c() {
|
|
289
|
+
e = b("p"), n = R(i), f(e, "title", l = /*game*/
|
|
290
|
+
t[44].name);
|
|
291
|
+
},
|
|
292
|
+
m(r, d) {
|
|
293
|
+
x(r, e, d), _(e, n);
|
|
294
|
+
},
|
|
295
|
+
p(r, d) {
|
|
296
|
+
d[0] & /*gameCategories*/
|
|
297
|
+
8 && i !== (i = /*game*/
|
|
298
|
+
r[44].name + "") && I(n, i), d[0] & /*gameCategories*/
|
|
299
|
+
8 && l !== (l = /*game*/
|
|
300
|
+
r[44].name) && f(e, "title", l);
|
|
301
|
+
},
|
|
302
|
+
d(r) {
|
|
303
|
+
r && j(e);
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function ie(t) {
|
|
308
|
+
let e, i, n, l, r, d, C, v;
|
|
309
|
+
function w() {
|
|
310
|
+
return (
|
|
311
|
+
/*click_handler_2*/
|
|
312
|
+
t[25](
|
|
313
|
+
/*game*/
|
|
314
|
+
t[44]
|
|
315
|
+
)
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
let u = (
|
|
319
|
+
/*collectionprovidersgamenames*/
|
|
320
|
+
t[2] == "true" && te(t)
|
|
321
|
+
);
|
|
322
|
+
return {
|
|
323
|
+
c() {
|
|
324
|
+
e = b("div"), i = b("img"), r = T(), u && u.c(), d = T(), f(i, "class", "CategorySlideGameImage"), H(i.src, n = /*game*/
|
|
325
|
+
t[44].defaultThumbnail) || f(i, "src", n), f(i, "alt", l = /*game*/
|
|
326
|
+
t[44].name), f(e, "class", "CategorySlideGames");
|
|
327
|
+
},
|
|
328
|
+
m(c, g) {
|
|
329
|
+
x(c, e, g), _(e, i), _(e, r), u && u.m(e, null), _(e, d), C || (v = B(i, "click", xe(w)), C = !0);
|
|
330
|
+
},
|
|
331
|
+
p(c, g) {
|
|
332
|
+
t = c, g[0] & /*gameCategories*/
|
|
333
|
+
8 && !H(i.src, n = /*game*/
|
|
334
|
+
t[44].defaultThumbnail) && f(i, "src", n), g[0] & /*gameCategories*/
|
|
335
|
+
8 && l !== (l = /*game*/
|
|
336
|
+
t[44].name) && f(i, "alt", l), /*collectionprovidersgamenames*/
|
|
337
|
+
t[2] == "true" ? u ? u.p(t, g) : (u = te(t), u.c(), u.m(e, d)) : u && (u.d(1), u = null);
|
|
338
|
+
},
|
|
339
|
+
d(c) {
|
|
340
|
+
c && j(e), u && u.d(), C = !1, v();
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function le(t) {
|
|
345
|
+
let e, i, n, l, r, d, C, v, w;
|
|
346
|
+
function u(s, h) {
|
|
347
|
+
if (
|
|
348
|
+
/*titletype*/
|
|
349
|
+
s[1] == "logo"
|
|
350
|
+
) return Ue;
|
|
351
|
+
if (
|
|
352
|
+
/*titletype*/
|
|
353
|
+
s[1] == "title"
|
|
354
|
+
) return Re;
|
|
355
|
+
}
|
|
356
|
+
let c = u(t), g = c && c(t), m = O(
|
|
357
|
+
/*category*/
|
|
358
|
+
t[41].games
|
|
359
|
+
), a = [];
|
|
360
|
+
for (let s = 0; s < m.length; s += 1)
|
|
361
|
+
a[s] = ie($(t, m, s));
|
|
362
|
+
function S() {
|
|
363
|
+
return (
|
|
364
|
+
/*click_handler_3*/
|
|
365
|
+
t[26](
|
|
366
|
+
/*category*/
|
|
367
|
+
t[41]
|
|
368
|
+
)
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
c() {
|
|
373
|
+
e = b("div"), i = b("div"), n = b("div"), g && g.c(), l = T(), r = b("div");
|
|
374
|
+
for (let s = 0; s < a.length; s += 1)
|
|
375
|
+
a[s].c();
|
|
376
|
+
C = T(), f(n, "class", "CategorySlideTopContainer"), f(r, "class", "CategorySlideGameContainer"), f(i, "class", d = "CategorySlide " + /*category*/
|
|
377
|
+
(t[41]?.flag[0] == "vendor" ? "CategorySlideNoHighlight" : "")), N(i, "background-image", "url(" + /*category*/
|
|
378
|
+
t[41]?.background + ")"), N(i, "background-size", "cover"), f(e, "class", "CategoriesSliderWrapper Animation");
|
|
379
|
+
},
|
|
380
|
+
m(s, h) {
|
|
381
|
+
x(s, e, h), _(e, i), _(i, n), g && g.m(n, null), _(i, l), _(i, r);
|
|
382
|
+
for (let p = 0; p < a.length; p += 1)
|
|
383
|
+
a[p] && a[p].m(r, null);
|
|
384
|
+
_(e, C), v || (w = B(i, "click", S), v = !0);
|
|
385
|
+
},
|
|
386
|
+
p(s, h) {
|
|
387
|
+
if (t = s, c === (c = u(t)) && g ? g.p(t, h) : (g && g.d(1), g = c && c(t), g && (g.c(), g.m(n, null))), h[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
|
388
|
+
16396) {
|
|
389
|
+
m = O(
|
|
390
|
+
/*category*/
|
|
391
|
+
t[41].games
|
|
392
|
+
);
|
|
393
|
+
let p;
|
|
394
|
+
for (p = 0; p < m.length; p += 1) {
|
|
395
|
+
const G = $(t, m, p);
|
|
396
|
+
a[p] ? a[p].p(G, h) : (a[p] = ie(G), a[p].c(), a[p].m(r, null));
|
|
397
|
+
}
|
|
398
|
+
for (; p < a.length; p += 1)
|
|
399
|
+
a[p].d(1);
|
|
400
|
+
a.length = m.length;
|
|
401
|
+
}
|
|
402
|
+
h[0] & /*gameCategories*/
|
|
403
|
+
8 && d !== (d = "CategorySlide " + /*category*/
|
|
404
|
+
(t[41]?.flag[0] == "vendor" ? "CategorySlideNoHighlight" : "")) && f(i, "class", d), h[0] & /*gameCategories*/
|
|
405
|
+
8 && N(i, "background-image", "url(" + /*category*/
|
|
406
|
+
t[41]?.background + ")");
|
|
407
|
+
},
|
|
408
|
+
d(s) {
|
|
409
|
+
s && j(e), g && g.d(), oe(a, s), v = !1, w();
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
function Ve(t) {
|
|
414
|
+
let e;
|
|
415
|
+
function i(r, d) {
|
|
416
|
+
return (
|
|
417
|
+
/*isLoading*/
|
|
418
|
+
r[7] ? Ie : Ne
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
let n = i(t), l = n(t);
|
|
422
|
+
return {
|
|
423
|
+
c() {
|
|
424
|
+
e = b("div"), l.c();
|
|
425
|
+
},
|
|
426
|
+
m(r, d) {
|
|
427
|
+
x(r, e, d), l.m(e, null), t[29](e);
|
|
428
|
+
},
|
|
429
|
+
p(r, d) {
|
|
430
|
+
n === (n = i(r)) && l ? l.p(r, d) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
|
|
431
|
+
},
|
|
432
|
+
i: z,
|
|
433
|
+
o: z,
|
|
434
|
+
d(r) {
|
|
435
|
+
r && j(e), l.d(), t[29](null);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function We(t, e, i) {
|
|
440
|
+
let n;
|
|
441
|
+
ke(t, Be, (o) => i(11, n = o));
|
|
442
|
+
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: C = "" } = e, { titletype: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: c = "" } = e, { collectionprovidersgamenames: g = "" } = e, { mbsource: m } = e, a = [], S = !0, s, h = 0, p = 0, G = 0, U, A, M, ne = window.navigator.userAgent, V, F = 0;
|
|
443
|
+
const re = () => {
|
|
444
|
+
fetch(c).then((y) => y.json()).then((y) => {
|
|
445
|
+
Object.keys(y).forEach((P) => {
|
|
446
|
+
X(P, y[P]);
|
|
447
|
+
});
|
|
448
|
+
}).catch((y) => {
|
|
449
|
+
console.log(y);
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
Object.keys(Y).forEach((o) => {
|
|
453
|
+
X(o, Y[o]);
|
|
454
|
+
});
|
|
455
|
+
const ae = () => {
|
|
456
|
+
const o = new URL(`${l}/v2/casino/groups/${r}`);
|
|
457
|
+
o.searchParams.append("language", d), o.searchParams.append("expand", "games"), fetch(o.href).then((y) => y.json()).then((y) => {
|
|
458
|
+
i(7, S = !1);
|
|
459
|
+
let P = y.items.filter((k) => k.flags == C);
|
|
460
|
+
i(3, a = P.map((k) => ({
|
|
461
|
+
id: k.id,
|
|
462
|
+
name: k.name,
|
|
463
|
+
icon: k.icon ? k.icon : k.vendors?.items[0]?.subVendors[0]?.logo,
|
|
464
|
+
games: k.games.items.slice(0, 4).map((ve) => ve),
|
|
465
|
+
background: k.background,
|
|
466
|
+
flag: k.flags
|
|
467
|
+
}))), i(8, p = a.length);
|
|
468
|
+
});
|
|
469
|
+
}, W = (o) => {
|
|
470
|
+
A = [...s.children], A.forEach((y, P) => {
|
|
471
|
+
y.style.transform = `translateX(${100 * (o ? P - o : P)}%)`;
|
|
472
|
+
}), U = A[0].getBoundingClientRect().width, se();
|
|
473
|
+
}, se = () => {
|
|
474
|
+
i(9, G = Math.floor(F / U));
|
|
475
|
+
}, q = () => {
|
|
476
|
+
W(h);
|
|
477
|
+
}, D = () => {
|
|
478
|
+
h === 0 ? h = p - G : h - G < -1 ? h = 0 : h--, q();
|
|
479
|
+
}, E = () => {
|
|
480
|
+
h === p - G ? h = 0 : p - G < h + 1 ? h = p - G : h++, q();
|
|
481
|
+
}, K = (o, y, P, k) => {
|
|
482
|
+
window.postMessage(
|
|
483
|
+
{
|
|
484
|
+
type: "OpenCollectionsProvidersGame",
|
|
485
|
+
gameId: o,
|
|
486
|
+
launchUrl: y,
|
|
487
|
+
gameName: P,
|
|
488
|
+
subVendor: k
|
|
489
|
+
},
|
|
490
|
+
window.location.href
|
|
491
|
+
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
492
|
+
context: "CollectionsProviders",
|
|
493
|
+
gameName: `${P}`
|
|
494
|
+
});
|
|
495
|
+
}, J = (o) => {
|
|
496
|
+
window.postMessage(
|
|
497
|
+
{
|
|
498
|
+
type: "OpenCollectionsProvidersCategory",
|
|
499
|
+
categoryId: o
|
|
500
|
+
},
|
|
501
|
+
window.location.href
|
|
502
|
+
);
|
|
503
|
+
}, ce = () => {
|
|
504
|
+
He(d);
|
|
505
|
+
};
|
|
506
|
+
Ge(() => (i(10, V = Pe(ne)), () => {
|
|
507
|
+
}));
|
|
508
|
+
const de = () => D(), ge = () => E(), ue = (o) => K(o.gameId, o.launchUrl, o.name, o.subVendor), me = (o) => J(o.id);
|
|
509
|
+
function fe(o) {
|
|
510
|
+
Z[o ? "unshift" : "push"](() => {
|
|
511
|
+
s = o, i(4, s);
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
function pe() {
|
|
515
|
+
F = this.clientWidth, i(6, F);
|
|
516
|
+
}
|
|
517
|
+
function he(o) {
|
|
518
|
+
Z[o ? "unshift" : "push"](() => {
|
|
519
|
+
M = o, i(5, M);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
return t.$$set = (o) => {
|
|
523
|
+
"endpoint" in o && i(16, l = o.endpoint), "datasource" in o && i(17, r = o.datasource), "lang" in o && i(18, d = o.lang), "type" in o && i(0, C = o.type), "titletype" in o && i(1, v = o.titletype), "clientstyling" in o && i(19, w = o.clientstyling), "clientstylingurl" in o && i(20, u = o.clientstylingurl), "translationurl" in o && i(21, c = o.translationurl), "collectionprovidersgamenames" in o && i(2, g = o.collectionprovidersgamenames), "mbsource" in o && i(22, m = o.mbsource);
|
|
524
|
+
}, t.$$.update = () => {
|
|
525
|
+
t.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
526
|
+
458752 && l && r && d && ae(), t.$$.dirty[0] & /*categoriesSliderWidth, gameCategories, categoriesSlider*/
|
|
527
|
+
88 && F && a && s && W(), t.$$.dirty[0] & /*lang*/
|
|
528
|
+
262144 && d && ce(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
529
|
+
524320 && w && M && Te(M, w), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
530
|
+
1048608 && u && M && Fe(M, u), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
531
|
+
4194336 && M && ze(M, `${m}.Style`), t.$$.dirty[0] & /*translationurl*/
|
|
532
|
+
2097152 && c && re();
|
|
533
|
+
}, [
|
|
534
|
+
C,
|
|
535
|
+
v,
|
|
536
|
+
g,
|
|
537
|
+
a,
|
|
538
|
+
s,
|
|
539
|
+
M,
|
|
540
|
+
F,
|
|
541
|
+
S,
|
|
542
|
+
p,
|
|
543
|
+
G,
|
|
544
|
+
V,
|
|
545
|
+
n,
|
|
546
|
+
D,
|
|
547
|
+
E,
|
|
548
|
+
K,
|
|
549
|
+
J,
|
|
550
|
+
l,
|
|
551
|
+
r,
|
|
552
|
+
d,
|
|
553
|
+
w,
|
|
554
|
+
u,
|
|
555
|
+
c,
|
|
556
|
+
m,
|
|
557
|
+
de,
|
|
558
|
+
ge,
|
|
559
|
+
ue,
|
|
560
|
+
me,
|
|
561
|
+
fe,
|
|
562
|
+
pe,
|
|
563
|
+
he
|
|
564
|
+
];
|
|
565
|
+
}
|
|
566
|
+
class qe extends Ce {
|
|
567
|
+
constructor(e) {
|
|
568
|
+
super(), ye(
|
|
569
|
+
this,
|
|
570
|
+
e,
|
|
571
|
+
We,
|
|
572
|
+
Ve,
|
|
573
|
+
we,
|
|
574
|
+
{
|
|
575
|
+
endpoint: 16,
|
|
576
|
+
datasource: 17,
|
|
577
|
+
lang: 18,
|
|
578
|
+
type: 0,
|
|
579
|
+
titletype: 1,
|
|
580
|
+
clientstyling: 19,
|
|
581
|
+
clientstylingurl: 20,
|
|
582
|
+
translationurl: 21,
|
|
583
|
+
collectionprovidersgamenames: 2,
|
|
584
|
+
mbsource: 22
|
|
585
|
+
},
|
|
586
|
+
Ae,
|
|
587
|
+
[-1, -1]
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
get endpoint() {
|
|
591
|
+
return this.$$.ctx[16];
|
|
592
|
+
}
|
|
593
|
+
set endpoint(e) {
|
|
594
|
+
this.$$set({ endpoint: e }), L();
|
|
595
|
+
}
|
|
596
|
+
get datasource() {
|
|
597
|
+
return this.$$.ctx[17];
|
|
598
|
+
}
|
|
599
|
+
set datasource(e) {
|
|
600
|
+
this.$$set({ datasource: e }), L();
|
|
601
|
+
}
|
|
602
|
+
get lang() {
|
|
603
|
+
return this.$$.ctx[18];
|
|
604
|
+
}
|
|
605
|
+
set lang(e) {
|
|
606
|
+
this.$$set({ lang: e }), L();
|
|
607
|
+
}
|
|
608
|
+
get type() {
|
|
609
|
+
return this.$$.ctx[0];
|
|
610
|
+
}
|
|
611
|
+
set type(e) {
|
|
612
|
+
this.$$set({ type: e }), L();
|
|
613
|
+
}
|
|
614
|
+
get titletype() {
|
|
615
|
+
return this.$$.ctx[1];
|
|
616
|
+
}
|
|
617
|
+
set titletype(e) {
|
|
618
|
+
this.$$set({ titletype: e }), L();
|
|
619
|
+
}
|
|
620
|
+
get clientstyling() {
|
|
621
|
+
return this.$$.ctx[19];
|
|
622
|
+
}
|
|
623
|
+
set clientstyling(e) {
|
|
624
|
+
this.$$set({ clientstyling: e }), L();
|
|
625
|
+
}
|
|
626
|
+
get clientstylingurl() {
|
|
627
|
+
return this.$$.ctx[20];
|
|
628
|
+
}
|
|
629
|
+
set clientstylingurl(e) {
|
|
630
|
+
this.$$set({ clientstylingurl: e }), L();
|
|
631
|
+
}
|
|
632
|
+
get translationurl() {
|
|
633
|
+
return this.$$.ctx[21];
|
|
634
|
+
}
|
|
635
|
+
set translationurl(e) {
|
|
636
|
+
this.$$set({ translationurl: e }), L();
|
|
637
|
+
}
|
|
638
|
+
get collectionprovidersgamenames() {
|
|
639
|
+
return this.$$.ctx[2];
|
|
640
|
+
}
|
|
641
|
+
set collectionprovidersgamenames(e) {
|
|
642
|
+
this.$$set({ collectionprovidersgamenames: e }), L();
|
|
643
|
+
}
|
|
644
|
+
get mbsource() {
|
|
645
|
+
return this.$$.ctx[22];
|
|
646
|
+
}
|
|
647
|
+
set mbsource(e) {
|
|
648
|
+
this.$$set({ mbsource: e }), L();
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
Oe(qe, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
|
652
|
+
export {
|
|
653
|
+
qe as default
|
|
654
|
+
};
|