@everymatrix/casino-lobby 1.43.4 → 1.45.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-DEhfBjpm.js +5138 -0
- package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
- package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
- package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
- package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
- package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
- package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
- package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
- package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
- package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
- package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
- package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
- package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
- package/components/CasinoFilter-D3p7c7qu.js +628 -0
- package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
- package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
- package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
- package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
- package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
- package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
- package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
- package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
- package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
- package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
- package/components/CasinoLobby-Djp4HDWL.js +2341 -0
- package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
- package/components/CasinoModal-BebrYWjS.cjs +1 -0
- package/components/CasinoModal-CSwMAX-g.js +372 -0
- package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
- package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
- package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
- package/components/CasinoMyGames-shcqTml8.cjs +1 -0
- package/components/CasinoPage-CCcJd2fQ.js +3514 -0
- package/components/CasinoPage-DZmE3VFL.cjs +1 -0
- package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
- package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
- package/components/CasinoSearch-CW-eesDy.cjs +1 -0
- package/components/CasinoSearch-DkEAmw-j.js +1066 -0
- package/components/CasinoSlider-CNWDP_I-.js +803 -0
- package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
- package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
- package/components/CasinoSort-CPcJqhWU.js +425 -0
- package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
- package/components/CasinoWinners-DSsJp1KQ.js +884 -0
- package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
- package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/package.json +20 -32
- package/CHANGELOG.md +0 -39
- package/README.md +0 -0
- package/dist/casino-lobby.js +0 -33
- package/dist/casino-lobby.js.map +0 -1
- package/documentation.md +0 -176
- package/index.html +0 -50
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoLobby.svelte +0 -454
- package/src/i18n.js +0 -25
- package/src/index.ts +0 -4
- package/stories/CasinoLobby.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-egUFg4eK.cjs");function ee({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function I(n,t){e.addMessages(n,t)}function te(n){e.$locale.set(n)}const W={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 ae(n){e.append_styles(n,"svelte-1uy6d6f",".svelte-1uy6d6f.svelte-1uy6d6f,.svelte-1uy6d6f.svelte-1uy6d6f::before,.svelte-1uy6d6f.svelte-1uy6d6f::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow.svelte-1uy6d6f.svelte-1uy6d6f{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.svelte-1uy6d6f .ModalContainer.svelte-1uy6d6f{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow.svelte-1uy6d6f .ModalCloseBtn.svelte-1uy6d6f{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.svelte-1uy6d6f .ModalCloseBtn svg.svelte-1uy6d6f{width:28px;height:28px}.ModalWindow.svelte-1uy6d6f .ModalCloseBtn.svelte-1uy6d6f:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow.svelte-1uy6d6f .ModalMobileContainer .ModalCloseBtn.svelte-1uy6d6f{margin:10px}.ModalWindow.svelte-1uy6d6f .ModalMobileContainer .ModalCloseBtn svg.svelte-1uy6d6f{width:24px;height:24px}.RandomGameWrapper.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper.svelte-1uy6d6f.svelte-1uy6d6f{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items.svelte-1uy6d6f.svelte-1uy6d6f{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading.svelte-1uy6d6f.svelte-1uy6d6f{padding:30px 0}.RandomGameImage.svelte-1uy6d6f.svelte-1uy6d6f{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain.svelte-1uy6d6f.svelte-1uy6d6f{position:absolute;bottom:-10px;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.svelte-1uy6d6f svg.svelte-1uy6d6f{width:22px;height:22px}.item.svelte-1uy6d6f.svelte-1uy6d6f{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails.svelte-1uy6d6f .RandomGameTitle.svelte-1uy6d6f{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails.svelte-1uy6d6f .RandomGameVendor.svelte-1uy6d6f{font-size:10px;margin-bottom:10px}.RandomGameDetails.svelte-1uy6d6f .RandomGamePlay.svelte-1uy6d6f{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.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper.svelte-1uy6d6f .RandomButton.svelte-1uy6d6f{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 N(n,t,a){const l=n.slice();return l[38]=t[a],l[40]=a,l}const ne=n=>({}),z=n=>({});function B(n){let t,a,l,o,d,u,p,g;const f=n[22].close,s=e.create_slot(f,n,n[21],z),y=s||le();let i=!n[7]&&J(n),c=n[7]&&P(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("span"),y&&y.c(),o=e.space(),i&&i.c(),d=e.space(),c&&c.c(),e.attr(l,"class","ModalCloseBtn svelte-1uy6d6f"),e.attr(l,"role","button"),e.attr(a,"class","ModalContainer svelte-1uy6d6f"),e.attr(t,"class","ModalWindow svelte-1uy6d6f")},m(m,h){e.insert(m,t,h),e.append(t,a),e.append(a,l),y&&y.m(l,null),e.append(a,o),i&&i.m(a,null),e.append(a,d),c&&c.m(a,null),u=!0,p||(g=e.listen(l,"click",n[12]),p=!0)},p(m,h){s&&s.p&&(!u||h[0]&2097152)&&e.update_slot_base(s,f,m,m[21],u?e.get_slot_changes(f,m[21],h,ne):e.get_all_dirty_from_scope(m[21]),z),m[7]?i&&(i.d(1),i=null):i?i.p(m,h):(i=J(m),i.c(),i.m(a,d)),m[7]?c?c.p(m,h):(c=P(m),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},i(m){u||(e.transition_in(y,m),u=!0)},o(m){e.transition_out(y,m),u=!1},d(m){m&&e.detach(t),y&&y.d(m),i&&i.d(),c&&c.d(),p=!1,g()}}}function le(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(a,"class","svelte-1uy6d6f"),e.attr(t,"class","w-6 h-6 svelte-1uy6d6f"),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(l,o){e.insert(l,t,o),e.append(t,a)},p:e.noop,d(l){l&&e.detach(t)}}}function J(n){let t,a,l,o,d,u=n[9]("randomGameLoading")+"",p,g=e.ensure_array_like(n[4]),f=[];for(let s=0;s<g.length;s+=1)f[s]=D(N(n,g,s));return{c(){t=e.element("div"),a=e.element("main"),l=e.element("div");for(let s=0;s<f.length;s+=1)f[s].c();o=e.space(),d=e.element("p"),p=e.text(u),e.attr(l,"class","items svelte-1uy6d6f"),e.set_style(l,"transform","translateY("+n[6]+"px)"),e.attr(a,"class","RandomGamesSliderWrapper svelte-1uy6d6f"),e.attr(d,"class","RandomGameLoading svelte-1uy6d6f"),e.attr(t,"class","RandomGameWrapper svelte-1uy6d6f")},m(s,y){e.insert(s,t,y),e.append(t,a),e.append(a,l);for(let i=0;i<f.length;i+=1)f[i]&&f[i].m(l,null);e.append(t,o),e.append(t,d),e.append(d,p)},p(s,y){if(y[0]&16){g=e.ensure_array_like(s[4]);let i;for(i=0;i<g.length;i+=1){const c=N(s,g,i);f[i]?f[i].p(c,y):(f[i]=D(c),f[i].c(),f[i].m(l,null))}for(;i<f.length;i+=1)f[i].d(1);f.length=g.length}y[0]&64&&e.set_style(l,"transform","translateY("+s[6]+"px)"),y[0]&512&&u!==(u=s[9]("randomGameLoading")+"")&&e.set_data(p,u)},d(s){s&&e.detach(t),e.destroy_each(f,s)}}}function D(n){let t,a,l,o,d,u;return{c(){t=e.element("div"),a=e.element("img"),u=e.space(),e.attr(a,"class","RandomGameImage svelte-1uy6d6f"),e.src_url_equal(a.src,l=n[38].thumbnail)||e.attr(a,"src",l),e.attr(a,"alt",o=n[38].name),e.attr(a,"title",d=n[38].name),e.attr(t,"class","item svelte-1uy6d6f")},m(p,g){e.insert(p,t,g),e.append(t,a),e.append(t,u)},p(p,g){g[0]&16&&!e.src_url_equal(a.src,l=p[38].thumbnail)&&e.attr(a,"src",l),g[0]&16&&o!==(o=p[38].name)&&e.attr(a,"alt",o),g[0]&16&&d!==(d=p[38].name)&&e.attr(a,"title",d)},d(p){p&&e.detach(t)}}}function P(n){let t;function a(d,u){return d[8]?se:oe}let l=a(n),o=l(n);return{c(){o.c(),t=e.empty()},m(d,u){o.m(d,u),e.insert(d,t,u)},p(d,u){l===(l=a(d))&&o?o.p(d,u):(o.d(1),o=l(d),o&&(o.c(),o.m(t.parentNode,t)))},d(d){d&&e.detach(t),o.d(d)}}}function oe(n){let t,a=n[9]("noGames")+"",l;return{c(){t=e.element("p"),l=e.text(a),e.attr(t,"class","RandomGameLoading svelte-1uy6d6f")},m(o,d){e.insert(o,t,d),e.append(t,l)},p(o,d){d[0]&512&&a!==(a=o[9]("noGames")+"")&&e.set_data(l,a)},d(o){o&&e.detach(t)}}}function se(n){let t,a,l,o,d,u,p,g,f,s,y,i=n[3].name+"",c,m,h,G=n[3].vendor.name+"",b,k,w,M=n[9]("playNowRandomGame")+"",L,F,C;return{c(){t=e.element("div"),a=e.element("div"),l=e.element("img"),p=e.space(),g=e.element("button"),g.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" class="svelte-1uy6d6f"><style type="text/css" class="svelte-1uy6d6f">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
|
|
2
|
+
</style><path class="st0 svelte-1uy6d6f" 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>`,f=e.space(),s=e.element("div"),y=e.element("p"),c=e.text(i),m=e.space(),h=e.element("p"),b=e.text(G),k=e.space(),w=e.element("button"),L=e.text(M),e.attr(l,"class","RandomGameImage svelte-1uy6d6f"),e.src_url_equal(l.src,o=n[3].thumbnail)||e.attr(l,"src",o),e.attr(l,"alt",d=n[3].name),e.attr(l,"title",u=n[3].name),e.attr(g,"class","RandomTryAgain svelte-1uy6d6f"),e.attr(a,"class","item svelte-1uy6d6f"),e.attr(y,"class","RandomGameTitle svelte-1uy6d6f"),e.attr(h,"class","RandomGameVendor svelte-1uy6d6f"),e.attr(w,"class","RandomGamePlay svelte-1uy6d6f"),e.attr(s,"class","RandomGameDetails svelte-1uy6d6f"),e.attr(t,"class","RandomGameWrapper svelte-1uy6d6f")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,l),e.append(a,p),e.append(a,g),e.append(t,f),e.append(t,s),e.append(s,y),e.append(y,c),e.append(s,m),e.append(s,h),e.append(h,b),e.append(s,k),e.append(s,w),e.append(w,L),F||(C=[e.listen(g,"click",n[23]),e.listen(w,"click",n[24])],F=!0)},p(_,R){R[0]&8&&!e.src_url_equal(l.src,o=_[3].thumbnail)&&e.attr(l,"src",o),R[0]&8&&d!==(d=_[3].name)&&e.attr(l,"alt",d),R[0]&8&&u!==(u=_[3].name)&&e.attr(l,"title",u),R[0]&8&&i!==(i=_[3].name+"")&&e.set_data(c,i),R[0]&8&&G!==(G=_[3].vendor.name+"")&&e.set_data(b,G),R[0]&512&&M!==(M=_[9]("playNowRandomGame")+"")&&e.set_data(L,M)},d(_){_&&e.detach(t),F=!1,e.run_all(C)}}}function re(n){let t,a=n[9]("playRandomGame")+"",l;return{c(){t=e.element("span"),l=e.text(a),e.attr(t,"class","RandomButtonText svelte-1uy6d6f")},m(o,d){e.insert(o,t,d),e.append(t,l)},p(o,d){d[0]&512&&a!==(a=o[9]("playRandomGame")+"")&&e.set_data(l,a)},d(o){o&&e.detach(t)}}}function ie(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText svelte-1uy6d6f")},m(l,o){e.insert(l,t,o),e.append(t,a)},p(l,o){o[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function de(n){let t,a,l,o,d,u,p,g,f,s=n[5]&&B(n);function y(m,h){if(m[1])return ie;if(!m[1])return re}let i=y(n),c=i&&i(n);return{c(){t=e.element("div"),s&&s.c(),a=e.space(),l=e.element("div"),o=e.element("button"),c&&c.c(),d=e.space(),u=e.element("span"),e.attr(u,"class","RandomButtonIcon svelte-1uy6d6f"),e.attr(o,"class","RandomButton svelte-1uy6d6f"),e.attr(l,"class","RandomButtonWrapper svelte-1uy6d6f"),e.attr(t,"part","CustomStylingContainer"),e.attr(t,"class","svelte-1uy6d6f")},m(m,h){e.insert(m,t,h),s&&s.m(t,null),e.append(t,a),e.append(t,l),e.append(l,o),c&&c.m(o,null),e.append(o,d),e.append(o,u),u.innerHTML=n[0],n[26](t),p=!0,g||(f=e.listen(o,"click",n[25]),g=!0)},p(m,h){m[5]?s?(s.p(m,h),h[0]&32&&e.transition_in(s,1)):(s=B(m),s.c(),e.transition_in(s,1),s.m(t,a)):s&&(e.group_outros(),e.transition_out(s,1,1,()=>{s=null}),e.check_outros()),i===(i=y(m))&&c?c.p(m,h):(c&&c.d(1),c=i&&i(m),c&&(c.c(),c.m(o,d))),(!p||h[0]&1)&&(u.innerHTML=m[0])},i(m){p||(e.transition_in(s),p=!0)},o(m){e.transition_out(s),p=!1},d(m){m&&e.detach(t),s&&s.d(),c&&c.d(),n[26](null),g=!1,f()}}}function me(n,t,a){let l;e.component_subscribe(n,e.$format,r=>a(9,l=r));let{$$slots:o={},$$scope:d}=t,{endpoint:u=""}=t,{datasource:p=""}=t,{gameevent:g=""}=t,{lang:f=""}=t,{randombuttonicon:s=""}=t,{buttontext:y=""}=t,{translationurl:i=""}=t,{clientstyling:c=""}=t,{clientstylingurl:m=""}=t,{filteredrandomgamecategories:h=""}=t,G=[],b="",k,w=!1,M=0,L=0,F=!1,C=!1,_,R=window.navigator.userAgent,T;ee({withLocale:"en",translations:{}});const H=()=>{fetch(i).then(v=>v.json()).then(v=>{Object.keys(v).forEach(x=>{I(x,v[x])})}).catch(v=>{console.log(v)})};Object.keys(W).forEach(r=>{I(r,W[r])});const O=()=>{a(4,k=q(k)),a(6,M=0),L=0,a(7,F=!1),a(3,b=G[Math.floor(Math.random()*G.length)]),a(5,w=!0)},S=r=>{C?(O(),clearInterval(_),_=setInterval(()=>{a(6,M-=75),L++,L==20&&(a(7,F=!0),clearInterval(_))},150)):(a(5,w=!0),a(7,F=!0)),r&&typeof gtag=="function"&>ag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`}),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href)},q=r=>{let v=r.length,x;for(;v!=0;)x=Math.floor(Math.random()*v),v--,[r[v],r[x]]=[r[x],r[v]];return r},j=()=>{window.postMessage({type:g,gameId:b.gId||b.id},window.location.href),a(5,w=!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,w=!1),window.postMessage({type:"RandomWidgetState",state:w},window.location.href)},E=()=>{let r=new URL(`${u}/v1/casino/games`);r.searchParams.append("platform",e.getDevice(R)),r.searchParams.append("datasource",p),r.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),h&&r.searchParams.append("filter",`groups=${h}`),r.searchParams.append("expand","categories,vendor"),r.searchParams.append("pagination","offset=0,limit=1000"),fetch(r.href).then(v=>v.json()).then(v=>{G=v.items,G.length?(a(4,k=G.slice(0,19)),a(8,C=!0)):(a(4,k=[]),a(8,C=!1))}).catch(v=>{console.log(v),a(8,C=!1)})},U=()=>{te(f)},V=()=>{let r=document.createElement("style");r.innerHTML=c,T.appendChild(r)},Z=()=>{let r=new URL(m),v=document.createElement("style");fetch(r.href).then(x=>x.text()).then(x=>{v.innerHTML=x,setTimeout(()=>{T.appendChild(v)},1)})},K=()=>S(!0),Q=()=>j(),X=()=>S();function $(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,a(2,T)})}return n.$$set=r=>{"endpoint"in r&&a(13,u=r.endpoint),"datasource"in r&&a(14,p=r.datasource),"gameevent"in r&&a(15,g=r.gameevent),"lang"in r&&a(16,f=r.lang),"randombuttonicon"in r&&a(0,s=r.randombuttonicon),"buttontext"in r&&a(1,y=r.buttontext),"translationurl"in r&&a(17,i=r.translationurl),"clientstyling"in r&&a(18,c=r.clientstyling),"clientstylingurl"in r&&a(19,m=r.clientstylingurl),"filteredrandomgamecategories"in r&&a(20,h=r.filteredrandomgamecategories),"$$scope"in r&&a(21,d=r.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&f&&U(),n.$$.dirty[0]&131072&&i&&H(),n.$$.dirty[0]&24576&&u&&p&&E(),n.$$.dirty[0]&262148&&c&&T&&V(),n.$$.dirty[0]&524292&&m&&T&&Z()},[s,y,T,b,k,w,M,F,C,l,S,j,Y,u,p,g,f,i,c,m,h,d,o,K,Q,X,$]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,de,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},ae,[-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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-egUFg4eK.cjs");require("./CasinoGamesCategorySection-CasxxP7n.cjs");const H=require("./CasinoGamePage-BHxY5XUD.cjs");function K(n,t){e.addMessages(n,t)}function Ce(n){e.$locale.set(n)}const X={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"Sırala:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."}};function Re(n){e.append_styles(n,"svelte-rw33q",".svelte-rw33q.svelte-rw33q,.svelte-rw33q.svelte-rw33q::before,.svelte-rw33q.svelte-rw33q::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input.svelte-rw33q.svelte-rw33q{font-family:inherit}.CasinoSearch.svelte-rw33q.svelte-rw33q{margin:30px 16px;position:relative}.SearchWrap.svelte-rw33q.svelte-rw33q{width:100%;margin:auto}.OverlayCancel.svelte-rw33q.svelte-rw33q{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent.svelte-rw33q.svelte-rw33q{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Search.svelte-rw33q.svelte-rw33q{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon.svelte-rw33q.svelte-rw33q{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon.svelte-rw33q svg.svelte-rw33q{height:14px;width:13px}.SearchInput.svelte-rw33q.svelte-rw33q{border-radius:4px;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput.svelte-rw33q.svelte-rw33q::placeholder{color:var(--emfe-w-color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput.svelte-rw33q.svelte-rw33q:focus{outline:1px solid var(--emfe-w-color-gray-300, #58586B)}.SearchInput.svelte-rw33q.svelte-rw33q::-webkit-search-decoration,.SearchInput.svelte-rw33q.svelte-rw33q::-webkit-search-cancel-button,.SearchInput.svelte-rw33q.svelte-rw33q::-webkit-search-results-button,.SearchInput.svelte-rw33q.svelte-rw33q::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton.svelte-rw33q.svelte-rw33q{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel.svelte-rw33q.svelte-rw33q{right:18px}.SearchCancelButton.svelte-rw33q.svelte-rw33q{color:var(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage.svelte-rw33q.svelte-rw33q{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-color-contrast, #000000)}.SearchErrorIcon.svelte-rw33q.svelte-rw33q{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer.svelte-rw33q.svelte-rw33q{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer.svelte-rw33q.svelte-rw33q{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer.svelte-rw33q.svelte-rw33q{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer.svelte-rw33q.svelte-rw33q{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer.svelte-rw33q.svelte-rw33q{padding:0 2.4%}}.ResultsContainerError.svelte-rw33q.svelte-rw33q{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.NotVisible.svelte-rw33q.svelte-rw33q{display:none}.Desktop.svelte-rw33q .NotVisible.svelte-rw33q{opacity:0;visibility:hidden;display:inline}.Desktop.svelte-rw33q .SearchWrap.svelte-rw33q{width:50%;margin:auto}.Desktop.CasinoSearch.svelte-rw33q.svelte-rw33q{margin:30px auto;position:relative}.Desktop.svelte-rw33q .ResultsContainerError.svelte-rw33q{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop.svelte-rw33q .ResultsContainerError.WithIcon.svelte-rw33q{top:60%}.Desktop.svelte-rw33q .Search.svelte-rw33q{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop.svelte-rw33q .SearchIcon.svelte-rw33q{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop.svelte-rw33q .SearchClearButton.svelte-rw33q{position:relative;top:0;right:0;margin-left:-23px}.Desktop.svelte-rw33q .SearchCancelButton.svelte-rw33q{margin-left:20px}.Desktop.svelte-rw33q .SearchAnimation.svelte-rw33q{transform:scaleX(110%)}.Desktop.svelte-rw33q .SearchAnimation Input.svelte-rw33q{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop.svelte-rw33q .SearchMessage.svelte-rw33q{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop.svelte-rw33q .SearchErrorIcon.svelte-rw33q{height:190px;margin-bottom:-70px}.Desktop.svelte-rw33q .OverlayCancel.svelte-rw33q{height:90vh;z-index:2}")}function Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[20]("cancel")+"",r,l,i,o;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",l="SearchCancelButton "+(n[12]?"NotVisible":"")+" svelte-rw33q")},m(c,u){e.insert(c,t,u),e.append(t,r),i||(o=e.listen(t,"click",n[35]),i=!0)},p(c,u){u[0]&1048576&&a!==(a=c[20]("cancel")+"")&&e.set_data(r,a),u[0]&4096&&l!==(l="SearchCancelButton "+(c[12]?"NotVisible":"")+" svelte-rw33q")&&e.attr(t,"class",l)},d(c){c&&e.detach(t),i=!1,o()}}}function Le(n){let t,a,r,l;function i(d,f){if(d[16]==!0&&d[11].length<2)return je;if(d[14].length!=0)return Te}let o=i(n),c=o&&o(n),u=n[12]===!1&&ne(n),m=n[11].length>=2&&n[14].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",l="SearchResultsContainer "+(n[16]==!0?"":"NotVisible")+" svelte-rw33q")},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,null)},p(d,f){o===(o=i(d))&&c?c.p(d,f):(c&&c.d(1),c=o&&o(d),c&&(c.c(),c.m(t.parentNode,t))),d[12]===!1?u?u.p(d,f):(u=ne(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[11].length>=2&&d[14].length==0?m?m.p(d,f):(m=se(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[0]&65536&&l!==(l="SearchResultsContainer "+(d[16]==!0?"":"NotVisible")+" svelte-rw33q")&&e.attr(a,"class",l)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),m&&m.d()}}}function Fe(n){let t,a=n[20]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent svelte-rw33q")},m(l,i){e.insert(l,t,i),e.append(t,r)},p(l,i){i[0]&1048576&&a!==(a=l[20]("loading")+"")&&e.set_data(r,a)},d(l){l&&e.detach(t)}}}function Te(n){let t,a=n[20]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage svelte-rw33q")},m(l,i){e.insert(l,t,i),e.append(t,r)},p(l,i){i[0]&1048576&&a!==(a=l[20]("searchResult")+"")&&e.set_data(r,a)},d(l){l&&e.detach(t)}}}function je(n){let t,a,r=n[14].length!==0&&ee(n),l=n[14].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),l&&l.c(),a=e.empty()},m(i,o){r&&r.m(i,o),e.insert(i,t,o),l&&l.m(i,o),e.insert(i,a,o)},p(i,o){i[14].length!==0?r?r.p(i,o):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[14].length==0?l?l.p(i,o):(l=te(i),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),l&&l.d(i)}}}function ee(n){let t,a=n[20]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage svelte-rw33q")},m(l,i){e.insert(l,t,i),e.append(t,r)},p(l,i){i[0]&1048576&&a!==(a=l[20]("recentSearch")+"")&&e.set_data(r,a)},d(l){l&&e.detach(t)}}}function te(n){let t,a,r,l=n[20]("noRecentSearches")+"",i,o,c=n[10]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(l),e.attr(r,"class","SearchMessage svelte-rw33q"),e.attr(t,"class",o="ResultsContainerError "+(n[10]=="true"?"WithIcon":"")+" svelte-rw33q")},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&1048576&&l!==(l=u[20]("noRecentSearches")+"")&&e.set_data(i,l),m[0]&1024&&o!==(o="ResultsContainerError "+(u[10]=="true"?"WithIcon":"")+" svelte-rw33q")&&e.attr(t,"class",o)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-rw33q"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6" class="svelte-rw33q"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round" class="svelte-rw33q"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="svelte-rw33q"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emfe-w-color-contrast, #131313)" class="svelte-rw33q"></path></svg>',e.attr(t,"class","SearchErrorIcon svelte-rw33q")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[14]),r=[];for(let l=0;l<a.length;l+=1)r[l]=re(Q(n,a,l));return{c(){for(let l=0;l<r.length;l+=1)r[l].c();t=e.empty()},m(l,i){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(l,i);e.insert(l,t,i)},p(l,i){if(i[0]&17580543){a=e.ensure_array_like(l[14]);let o;for(o=0;o<a.length;o+=1){const c=Q(l,a,o);r[o]?r[o].p(c,i):(r[o]=re(c),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=a.length}},d(l){l&&e.detach(t),e.destroy_each(r,l)}}}function re(n){let t,a,r,l,i,o,c,u,m,d,f,S;return{c(){var h;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[18]),e.set_custom_element_data(t,"userid",n[19]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",l=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",o=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[24](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7]),e.set_custom_element_data(t,"class","svelte-rw33q")},m(h,p){e.insert(h,t,p)},p(h,p){var F;p[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),p[0]&262144&&e.set_custom_element_data(t,"session",h[18]),p[0]&524288&&e.set_custom_element_data(t,"userid",h[19]),p[0]&256&&e.set_custom_element_data(t,"favorites",h[8]),p[0]&2&&e.set_custom_element_data(t,"lang",h[1]),p[0]&16384&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&16384&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),p[0]&16384&&l!==(l=h[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",l),p[0]&16384&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),p[0]&16384&&o!==(o=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",o),p[0]&16384&&c!==(c=((F=h[53].advancedTags)==null?void 0:F.length)>0&&h[24](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),p[0]&16384&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),p[0]&16384&&m!==(m=h[53].id)&&e.set_custom_element_data(t,"gameid",m),p[0]&64&&e.set_custom_element_data(t,"showgamename",h[6]),p[0]&16384&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),p[0]&16384&&f!==(f=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),p[0]&16384&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),p[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",h[4]),p[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",h[5]),p[0]&4&&e.set_custom_element_data(t,"clientstyling",h[2]),p[0]&8&&e.set_custom_element_data(t,"clientstylingurl",h[3]),p[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",h[7])},d(h){h&&e.detach(t)}}}function se(n){let t,a,r,l=n[20]("notFound")+"",i,o,c,u=n[20]("notFoundText")+"",m,d,f=n[10]==="true"&&le();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(l),o=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","SearchMessage svelte-rw33q"),e.attr(c,"class","svelte-rw33q"),e.attr(t,"class",d="ResultsContainerError "+(n[10]=="true"?"WithIcon":"")+" svelte-rw33q")},m(S,h){e.insert(S,t,h),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,o),e.append(t,c),e.append(c,m)},p(S,h){S[10]==="true"?f||(f=le(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),h[0]&1048576&&l!==(l=S[20]("notFound")+"")&&e.set_data(i,l),h[0]&1048576&&u!==(u=S[20]("notFoundText")+"")&&e.set_data(m,u),h[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":"")+" svelte-rw33q")&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-rw33q"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6" class="svelte-rw33q"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round" class="svelte-rw33q"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="svelte-rw33q"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emfe-w-color-contrast, #131313)" class="svelte-rw33q"></path></svg>',e.attr(t,"class","SearchErrorIcon svelte-rw33q")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ie(n){let t,a,r,l,i,o,c,u,m,d,f,S,h,p,F,T,I,P,E,j,v=n[9]==="true"&&$(n);function N(w,k){return w[17]?Fe:Le}let C=N(n),y=C(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),l=e.element("div"),l.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-rw33q"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373" class="svelte-rw33q"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5" class="svelte-rw33q"></circle></svg>',i=e.space(),o=e.element("input"),u=e.space(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),v&&v.c(),F=e.space(),T=e.element("div"),P=e.space(),y.c(),e.attr(l,"class","SearchIcon svelte-rw33q"),e.attr(o,"class","SearchInput svelte-rw33q"),e.attr(o,"type","search"),e.attr(o,"placeholder",c=n[20]("placeHolderSearchGames")),e.attr(o,"maxlength",Ee),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(f,"class","svelte-rw33q"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class","svelte-rw33q"),e.attr(m,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[11].length!=0?"":"NotVisible")+" svelte-rw33q"),e.attr(r,"class",p="Search "+(n[12]?"":"SearchAnimation")+" svelte-rw33q"),e.attr(a,"class","SearchWrap svelte-rw33q"),e.attr(T,"class",I=e.null_to_empty(n[9]!="true"?"OverlayCancel":"")+" svelte-rw33q"),e.attr(t,"class",(e.getDevice(n[21])!=="PC"?"":"Desktop")+" CasinoSearch svelte-rw33q")},m(w,k){e.insert(w,t,k),e.append(t,a),e.append(a,r),e.append(r,l),e.append(r,i),e.append(r,o),e.set_input_value(o,n[11]),n[33](o),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),v&&v.m(r,null),e.append(t,F),e.append(t,T),e.append(t,P),y.m(t,null),n[36](t),E||(j=[e.listen(o,"input",n[32]),e.listen(o,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(T,"click",n[23])],E=!0)},p(w,k){k[0]&1048576&&c!==(c=w[20]("placeHolderSearchGames"))&&e.attr(o,"placeholder",c),k[0]&2048&&o.value!==w[11]&&e.set_input_value(o,w[11]),k[0]&2560&&S!==(S="SearchClearButton "+(w[9]!="true"?"WithoutCancel":"")+" "+(w[11].length!=0?"":"NotVisible")+" svelte-rw33q")&&e.attr(m,"class",S),w[9]==="true"?v?v.p(w,k):(v=$(w),v.c(),v.m(r,null)):v&&(v.d(1),v=null),k[0]&4096&&p!==(p="Search "+(w[12]?"":"SearchAnimation")+" svelte-rw33q")&&e.attr(r,"class",p),k[0]&512&&I!==(I=e.null_to_empty(w[9]!="true"?"OverlayCancel":"")+" svelte-rw33q")&&e.attr(T,"class",I),C===(C=N(w))&&y?y.p(w,k):(y.d(1),y=C(w),y&&(y.c(),y.m(t,null)))},i:e.noop,o:e.noop,d(w){w&&e.detach(t),n[33](null),v&&v.d(),y.d(),n[36](null),E=!1,e.run_all(j)}}}let Ee=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,s=>a(20,r=s));let{endpoint:l=""}=t,{datasource:i=""}=t,{session:o=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:h=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:F=""}=t,{showfavorites:T=""}=t,{cancelbutton:I="true"}=t,{notfoundicon:P="false"}=t,E=window.navigator.userAgent,j=[],v=[],N={},C="",y,w=!0,k=!1,L=!1,G,M=!1,D,A,O=[];const ie=()=>{fetch(F).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{K(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(X).forEach(s=>{K(s,X[s])});const U=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ge(s.data.gameId),s.data.type=="UserSessionID"&&(a(18,D=s.data.session),a(19,A=s.data.userid),a(31,M=!0)),s.data.type=="CategoryChange"&&B()},V=()=>{if(a(12,w=!1),a(16,k=!0),l&&i&&u&&C.length<2){a(14,j=[]);let s=localStorage.getItem("searchedGamesWds_casino"),g=[];s&&(g=s.split(","));let _=[],q=0,b=g.length;if(b>0){for(q=0;q<b;q++){let R=new URL(`${l}/v1/casino/games/${g[q]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(E)),_.push(de(R,g[q]))}Promise.all(_).then(R=>{R=R.filter(function(z){return!!z}),a(14,j=R.map(z=>(z.isFavorite=J(z.id),z))),j.length?x("searchSuccess","SearchWidget"):x("searchFail","SearchWidget")}).catch(R=>{x("searchError","SearchWidget")})}}Y(k),x("searchAttempt","SearchWidget"),x("SearchInitialized","SearchWidget")},x=(s,g)=>{typeof gtag=="function"&>ag("event",s,{context:g})},ce=()=>{I!="true"&&B()},ue=s=>new Promise((g,_)=>{a(17,L=!0),fetch(s.href).then(q=>q.json()).then(q=>{a(17,L=!1),g(q)}).catch(q=>{a(17,L=!1),console.error(q),_(q)})}),de=(s,g)=>new Promise((_,q)=>{a(17,L=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,L=!1),_(N[g])):fetch(s).then(b=>b.json()).then(b=>{a(17,L=!1),b.error||(N[b[0].gameId]=b[0]),_(b[0])}).catch(b=>{a(17,L=!1),console.error(b),q(b)})}),he=()=>{const s=new URL(`${l}/v1/player/${A}/favorites/`);a(17,L=!0);let g={method:"GET",headers:{"X-SessionID":D}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,L=!1),O=_.items.map(q=>q.id)})},me=()=>{a(31,M=!0),a(18,D=o),a(19,A=c)},J=s=>O.findIndex(g=>g==s)!==-1,fe=s=>{if((s==null?void 0:s.length)===0)return"";let g,_=99999999999,q;const b=new Date(Date.now());return s.forEach((R,z)=>{const ye=new Date(R.schedules[0].startTime),W=new Date(R.schedules[0].endTime);H.hooks(W).diff(b)<_&&(_=H.hooks(W).diff(b),q=z),H.hooks(b).isAfter(ye)&&H.hooks(b).isBefore(W)&&(g=s[q].name)}),g},ge=s=>{if(v=localStorage.getItem("searchedGamesWds_casino"),v?v=v.split(","):v=[],v.indexOf(s)===-1){let g;v.unshift(s),g=v.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},B=()=>{a(11,C=""),a(12,w=!0),a(17,L=!1),a(14,j=[]),a(16,k=!1),Y(k)},Z=()=>{a(11,C=""),y.focus()},Y=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},pe=()=>{Ce(u)},_e=()=>{let s=document.createElement("style");s.innerHTML=m,G.appendChild(s)},we=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{G.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function ve(){C=this.value,a(11,C)}function Se(s){e.binding_callbacks[s?"unshift":"push"](()=>{y=s,a(15,y)})}const qe=()=>Z(),be=()=>B();function ke(s){e.binding_callbacks[s?"unshift":"push"](()=>{G=s,a(13,G)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(27,i=s.datasource),"session"in s&&a(28,o=s.session),"userid"in s&&a(29,c=s.userid),"lang"in s&&a(1,u=s.lang),"clientstyling"in s&&a(2,m=s.clientstyling),"clientstylingurl"in s&&a(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&a(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&a(5,S=s.integratedgameframemobile),"showgamename"in s&&a(6,h=s.showgamename),"gamepagemodalurl"in s&&a(7,p=s.gamepagemodalurl),"translationurl"in s&&a(30,F=s.translationurl),"showfavorites"in s&&a(8,T=s.showfavorites),"cancelbutton"in s&&a(9,I=s.cancelbutton),"notfoundicon"in s&&a(10,P=s.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&134223875)if(C.length>=2){const s=new URL(`${l}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(E)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${C}`),ue(s).then(g=>{a(14,j=g.items.map(_=>(_.isFavorite=J(_.id),_)))})}else w||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[0]&1073741824&&F&&ie(),n.$$.dirty[0]&805306368&&o&&c&&me(),n.$$.dirty[0]&256|n.$$.dirty[1]&1&&T&&M&&he(),n.$$.dirty[0]&8196&&m&&G&&_e(),n.$$.dirty[0]&8200&&d&&G&&we()},[l,u,m,d,f,S,h,p,T,I,P,C,w,G,j,y,k,L,D,A,r,E,V,ce,fe,B,Z,i,o,c,F,M,ve,Se,qe,be,ke]}class oe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Ie,e.safe_not_equal,{endpoint:0,datasource:27,session:28,userid:29,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:30,showfavorites:8,cancelbutton:9,notfoundicon:10},Re,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[27]}set datasource(t){this.$$set({datasource: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 lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[30]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(oe,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=oe;
|