@everymatrix/casino-lobby 1.46.1 → 1.47.1

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.
Files changed (56) hide show
  1. package/components/{CasinoCalendar-9cVNHt1-.cjs → CasinoCalendar-B3jjGeXh.cjs} +5 -5
  2. package/components/{CasinoCalendar-3HRZGpnG.js → CasinoCalendar-BuNYmxT2.js} +43 -48
  3. package/components/{CasinoCalendarDailyDetails-MwTyCObT.js → CasinoCalendarDailyDetails-CXA-hOPw.js} +1 -1
  4. package/components/{CasinoCalendarDailyDetails-Dcf0TKzH.cjs → CasinoCalendarDailyDetails-D1jKEWfR.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyItem-B-h-76yh.js → CasinoCalendarDailyItem-CXBzGC5j.js} +1 -1
  6. package/components/{CasinoCalendarDailyItem-Cahte_IM.cjs → CasinoCalendarDailyItem-zl4-e9DC.cjs} +1 -1
  7. package/components/{CasinoCategoriesSlider-B3Aneyii.js → CasinoCategoriesSlider-BusDUIsJ.js} +2 -2
  8. package/components/{CasinoCategoriesSlider-AAgG2_xb.cjs → CasinoCategoriesSlider-C0zvzKUl.cjs} +1 -1
  9. package/components/{CasinoCollectionsProviders-BvEenHqO.cjs → CasinoCollectionsProviders-CHDbSVYn.cjs} +1 -1
  10. package/components/{CasinoCollectionsProviders-D-DgSMvu.js → CasinoCollectionsProviders-rLy8aW01.js} +1 -1
  11. package/components/{CasinoFavoritesSection-BqD5E07c.cjs → CasinoFavoritesSection-RMtaQmk3.cjs} +1 -1
  12. package/components/{CasinoFavoritesSection-DvEsLHfg.js → CasinoFavoritesSection-uqcus7J_.js} +2 -2
  13. package/components/{CasinoFilter-Bdc0mE0X.cjs → CasinoFilter-BMNiE4RM.cjs} +1 -1
  14. package/components/{CasinoFilter-BWEtfBml.js → CasinoFilter-DvTOnHYj.js} +1 -1
  15. package/components/{CasinoGamePage-C4GA4fUE.js → CasinoGamePage-DAsfOU8X.js} +1 -1
  16. package/components/{CasinoGamePage-AiLzsSGU.cjs → CasinoGamePage-oxi03_5O.cjs} +1 -1
  17. package/components/{CasinoGameThumbnail-BOdBhhkI.js → CasinoGameThumbnail-CIjludJv.js} +2 -2
  18. package/components/{CasinoGameThumbnail-ssiYMbtr.cjs → CasinoGameThumbnail-aayeTjp3.cjs} +1 -1
  19. package/components/{CasinoGamesCategorySection-kk_bJDeP.cjs → CasinoGamesCategorySection-CbKid5So.cjs} +1 -1
  20. package/components/{CasinoGamesCategorySection-D_mxWhRi.js → CasinoGamesCategorySection-DmNsoS_K.js} +5 -5
  21. package/components/{CasinoJackpotBanner-BftFjZpI.cjs → CasinoJackpotBanner-AjhcDuUc.cjs} +1 -1
  22. package/components/{CasinoJackpotBanner-D1RCyJGt.js → CasinoJackpotBanner-hWTETjFb.js} +1 -1
  23. package/components/{CasinoLastPlayedSection-DJ2FxLNe.js → CasinoLastPlayedSection-B1ezatY7.js} +2 -2
  24. package/components/{CasinoLastPlayedSection-Bz5Qb3Ib.cjs → CasinoLastPlayedSection-B9y4sMJw.cjs} +1 -1
  25. package/components/{CasinoLobby-DrNupA3v.cjs → CasinoLobby-DQp8R35R.cjs} +1 -1
  26. package/components/{CasinoLobby-CES-96FR.js → CasinoLobby-fdlZEYrv.js} +5 -5
  27. package/components/{CasinoModal-DqBbtAjA.cjs → CasinoModal-B71hMJhL.cjs} +1 -1
  28. package/components/{CasinoModal-CZbdtmLm.js → CasinoModal-C0mMA0JZ.js} +1 -1
  29. package/components/{CasinoMostPlayedSection-CNNXVH17.js → CasinoMostPlayedSection-CQWFs5qH.js} +2 -2
  30. package/components/{CasinoMostPlayedSection-Bat5kmHE.cjs → CasinoMostPlayedSection-DgiDKdly.cjs} +1 -1
  31. package/components/{CasinoMyGames-Df-GsccB.js → CasinoMyGames-B1qu8JUd.js} +4 -4
  32. package/components/{CasinoMyGames-Bmn2f_Ow.cjs → CasinoMyGames-BxbclHBX.cjs} +1 -1
  33. package/components/CasinoPage-1snYAINT.cjs +1 -0
  34. package/components/{CasinoPage-Cec_LYGK.js → CasinoPage-dHpPzlUR.js} +417 -417
  35. package/components/{CasinoRandomGame-BSD5DYtt.js → CasinoRandomGame-C2aJSdJJ.js} +1 -1
  36. package/components/{CasinoRandomGame-CNdoKY0C.cjs → CasinoRandomGame-DAhFi06u.cjs} +1 -1
  37. package/components/{CasinoSearch-D_Me-I1t.cjs → CasinoSearch-CY-mTY8I.cjs} +1 -1
  38. package/components/{CasinoSearch-TES6haMv.js → CasinoSearch-CYWXVXo2.js} +3 -3
  39. package/components/{CasinoSlider-kzZxK81G.cjs → CasinoSlider-DU8y1oGD.cjs} +1 -1
  40. package/components/{CasinoSlider-D5B-CjPM.js → CasinoSlider-reGFKOnL.js} +1 -1
  41. package/components/{CasinoSort-9pQqbHyF.cjs → CasinoSort--SQX874a.cjs} +1 -1
  42. package/components/{CasinoSort-T6UQhFka.js → CasinoSort-CcG6ImMT.js} +1 -1
  43. package/components/{CasinoWinners-CD5HS4Gb.cjs → CasinoWinners-B1LRzKTu.cjs} +1 -1
  44. package/components/{CasinoWinners-auSd-4D9.js → CasinoWinners-CA6s2Z0J.js} +2 -2
  45. package/components/{GeneralAnimationLoading-DRiG33XR.js → GeneralAnimationLoading-DG0Zw3Hq.js} +1 -1
  46. package/components/{GeneralAnimationLoading-CIYgtCsE.cjs → GeneralAnimationLoading-DmhAiTlH.cjs} +1 -1
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +3 -2
  50. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  51. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  52. package/stencil/casino-play-random-game-DJ_HpP4O.cjs +371 -0
  53. package/stencil/casino-play-random-game-c-goQ4iU.js +577 -0
  54. package/stencil/index-7666b794-CHdM2q8W.cjs +1 -0
  55. package/stencil/index-7666b794-KI7j9CY0.js +571 -0
  56. package/components/CasinoPage-CnPyTaPP.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function se(r,t){e.addMessages(r,t)}function Le(r){e.$locale.set(r)}const le={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores"},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano"}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-CIYgtCsE.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-14orrs9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emfe-w-color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}")}function ae(r,t,n){const s=r.slice();return s[70]=t[n],s}function oe(r,t,n){const s=r.slice();return s[73]=t[n],s}function ze(r){let t,n,s,l,a,o,u,d,w,E,k,y,b,A,F,L,S,B,x,v=e.ensure_array_like(r[17]),m=[];for(let c=0;c<v.length;c+=1)m[c]=de(oe(r,v,c));function O(c,g){return c[18]?Ne:Oe}let T=O(r),_=T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("div");for(let c=0;c<m.length;c+=1)m[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),u=e.svg_element("svg"),d=e.svg_element("path"),E=e.space(),k=e.element("button"),y=e.svg_element("svg"),b=e.svg_element("path"),L=e.space(),_.c(),e.attr(s,"class","WinnerButtonsContainer"),e.attr(d,"style",w=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(d,"id","Path_36"),e.attr(d,"data-name","Path 36"),e.attr(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(d,"transform","translate(14.656 0) rotate(90)"),e.attr(d,"fill","#fff"),e.attr(u,"id","Component_46_2"),e.attr(u,"data-name","Component 46 – 2"),e.attr(u,"xmlns","http://www.w3.org/2000/svg"),e.attr(u,"width","15"),e.attr(u,"height","15"),e.attr(u,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(b,"style",A=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(b,"id","Path_36"),e.attr(b,"data-name","Path 36"),e.attr(b,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(b,"transform","translate(0 24.656) rotate(-90)"),e.attr(b,"fill","#fff"),e.attr(y,"id","Component_46_2"),e.attr(y,"data-name","Component 46 – 2"),e.attr(y,"xmlns","http://www.w3.org/2000/svg"),e.attr(y,"width","15"),e.attr(y,"height","15"),e.attr(y,"viewBox","0 0 16 24.656"),e.attr(k,"class","SliderButton"),e.attr(a,"class",F="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",S="CasinoWinners "+(r[13]?"Mobile":""))},m(c,g){e.insert(c,t,g),e.append(t,n),e.append(n,s);for(let f=0;f<m.length;f+=1)m[f]&&m[f].m(s,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,u),e.append(u,d),e.append(a,E),e.append(a,k),e.append(k,y),e.append(y,b),e.append(t,L),_.m(t,null),B||(x=[e.listen(o,"click",r[43]),e.listen(k,"click",r[44])],B=!0)},p(c,g){if(g[0]&3277827){v=e.ensure_array_like(c[17]);let f;for(f=0;f<v.length;f+=1){const p=oe(c,v,f);m[f]?m[f].p(p,g):(m[f]=de(p),m[f].c(),m[f].m(s,null))}for(;f<m.length;f+=1)m[f].d(1);m.length=v.length}g[0]&6144&&w!==(w=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(d,"style",w),g[0]&6144&&A!==(A=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(b,"style",A),g[0]&64&&F!==(F="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",F),T===(T=O(c))&&_?_.p(c,g):(_.d(1),_=T(c),_&&(_.c(),_.m(t,null))),g[0]&8192&&S!==(S="CasinoWinners "+(c[13]?"Mobile":""))&&e.attr(t,"class",S)},d(c){c&&e.detach(t),e.destroy_each(m,c),_.d(),B=!1,e.run_all(x)}}}function Ee(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ce(r){let t,n=r[20]("recentWinners")+"",s,l,a,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[10]=="recent"?"Active":"")+" "+(r[0]=="false"?"Off":""))},m(u,d){e.insert(u,t,d),e.append(t,s),a||(o=e.listen(t,"click",r[41]),a=!0)},p(u,d){d[0]&1048576&&n!==(n=u[20]("recentWinners")+"")&&e.set_data(s,n),d[0]&1025&&l!==(l="WinnersButton "+(u[10]=="recent"?"Active":"")+" "+(u[0]=="false"?"Off":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),a=!1,o()}}}function ue(r){let t,n=r[20]("topWinners")+"",s,l,a,o,u;return{c(){t=e.element("button"),s=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[10]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(d,w){e.insert(d,t,w),e.append(t,s),e.append(t,l),o||(u=e.listen(t,"click",r[42]),o=!0)},p(d,w){w[0]&1048576&&n!==(n=d[20]("topWinners")+"")&&e.set_data(s,n),w[0]&1026&&a!==(a="WinnersButton "+(d[10]=="top"?"Active":"")+" "+(d[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(d){d&&e.detach(t),o=!1,u()}}}function de(r){let t,n,s=r[73]=="recent"&&ce(r),l=r[73]=="top"&&ue(r);return{c(){s&&s.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){s&&s.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?s?s.p(a,o):(s=ce(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),a[73]=="top"?l?l.p(a,o):(l=ue(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),s&&s.d(a),l&&l.d(a)}}}function Oe(r){let t,n=e.ensure_array_like(r[11]),s=[];for(let l=0;l<n.length;l+=1)s[l]=fe(ae(r,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","WinnersSlider")},m(l,a){e.insert(l,t,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null);r[47](t)},p(l,a){if(a[0]&14223500){n=e.ensure_array_like(l[11]);let o;for(o=0;o<n.length;o+=1){const u=ae(l,n,o);s[o]?s[o].p(u,a):(s[o]=fe(u),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),r[47](null)}}}function Ne(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function fe(r){let t,n,s,l,a,o,u,d=r[70].gameName+"",w,E,k,y=r[22](r[70].username)+"",b,A,F,L=r[20]("won")+"",S,B,x,v=r[70].specifiedCurrencyAmount.toFixed(2)+"",m,O,T,_=(r[7]?r[3]:r[2])+"",c,g,f,p,C;function q(){return r[45](r[70])}return{c(){var z,W,N,M;t=e.element("div"),n=e.element("div"),s=e.element("img"),o=e.space(),u=e.element("p"),w=e.text(d),E=e.space(),k=e.element("p"),b=e.text(y),A=e.space(),F=e.element("p"),S=e.text(L),B=e.space(),x=e.element("p"),m=e.text(v),O=e.space(),T=e.element("span"),c=e.text(_),g=e.space(),e.src_url_equal(s.src,l=(W=(z=r[70])==null?void 0:z.gameModel)==null?void 0:W.thumbnail)||e.attr(s,"src",l),e.attr(s,"alt",a=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail),e.attr(s,"class","WinnersImage"),e.attr(F,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))},m(z,W){e.insert(z,t,W),e.append(t,n),e.append(n,s),e.append(n,o),e.append(n,u),e.append(u,w),e.append(n,E),e.append(n,k),e.append(k,b),e.append(n,A),e.append(n,F),e.append(F,S),e.append(n,B),e.append(n,x),e.append(x,m),e.append(x,O),e.append(x,T),e.append(T,c),e.append(t,g),r[46](t),p||(C=e.listen(s,"click",q),p=!0)},p(z,W){var N,M,P,R;r=z,W[0]&2048&&!e.src_url_equal(s.src,l=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail)&&e.attr(s,"src",l),W[0]&2048&&a!==(a=(R=(P=r[70])==null?void 0:P.gameModel)==null?void 0:R.thumbnail)&&e.attr(s,"alt",a),W[0]&2048&&d!==(d=r[70].gameName+"")&&e.set_data(w,d),W[0]&2048&&y!==(y=r[22](r[70].username)+"")&&e.set_data(b,y),W[0]&1048576&&L!==(L=r[20]("won")+"")&&e.set_data(S,L),W[0]&2048&&v!==(v=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(m,v),W[0]&140&&_!==(_=(r[7]?r[3]:r[2])+"")&&e.set_data(c,_),W[0]&65536&&f!==(f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))&&e.attr(t,"class",f)},d(z){z&&e.detach(t),r[46](null),p=!1,C()}}}function Pe(r){let t;function n(a,o){return a[14]||a[15]?Ee:ze}let s=n(r),l=s(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){s===(s=n(a))&&l?l.p(a,o):(l.d(1),l=s(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(r,t,n){let s;e.component_subscribe(r,e.$format,i=>n(20,s=i));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:u="Today"}=t,{periodtop:d="Last7Days"}=t,{numberusersrecent:w="20"}=t,{numberuserstop:E="20"}=t,{amountlimit:k="1"}=t,{vendorCategory:y="All"}=t,{lang:b="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:F="true"}=t,{defaultcurrency:L=""}=t,{usercurrency:S=""}=t,{clientstyling:B=""}=t,{clientstylingurl:x=""}=t,{enableautoscroll:v=""}=t,{tabsorder:m=""}=t,{translationurl:O=""}=t,{winnersdatasources:T=""}=t,{hascustomstyling:_="false"}=t,c,g,f=[],p=0,C=0,q=window.navigator.userAgent,z,W,N,M,P=!0,R=!1,X=!1,Y,D,H,G,J=[],V=!1,I,Q=0;const pe=()=>{let i=new URL(O);fetch(i.href).then(h=>h.json()).then(h=>{Object.keys(h).forEach(j=>{se(j,h[j])})}).catch(h=>{console.log(h)})};Object.keys(le).forEach(i=>{se(i,le[i])});const $=()=>{J=T.split(",").map(function(h){return h.trim()});const i=new URL(`${l}/v1/casino/${g}-winners`);n(18,V=!0),i.searchParams.append("limit",g=="recent"?w:E),i.searchParams.append("specifiedCurrency",G),i.searchParams.append("period",g=="recent"?u:d),i.searchParams.append("language",b),i.searchParams.append("amountLimit",k),i.searchParams.append("vendorCategory",y),J.forEach(h=>{i.searchParams.append("dataSource",h)}),setTimeout(()=>{fetch(i.href).then(h=>h.json()).then(h=>{n(11,f=[]),n(11,f=h.items.map(j=>j)),n(18,V=!1),setTimeout(()=>{be(),te(),v=="true"&&(clearInterval(D),ge()),n(14,P=!1)},5)})},1e3)},K=i=>{g!==i&&(n(11,f=[]),n(10,g=i),$())},he=i=>i.slice(0,2)+i.slice(2,-2).replace(/./g,"*")+i.slice(-2),ee=(i,h,j,U)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:i,launchUrl:h,gameName:j,subVendor:U},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:`${i}`,userId:`${N||"Not logged in"}`})},te=i=>{const h=[...c.children];Y=h.length,h.forEach((j,U)=>{j.style.transform=`translateX(${100*(i?U-i:U)}%)`}),setTimeout(()=>{n(16,X=!0)},10)},ge=()=>{p=0,C<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},ne=()=>{te(p)},be=()=>{Q=I.offsetWidth,n(12,C=Math.round(c.offsetWidth/Q))},re=()=>{if(C>=f.length)return;const i=f.length;p===0?p=i-C:p-C<0?p=0:p=p-C,ne()},Z=()=>{if(C>=f.length)return;const i=f.length;v=="true"&&(p===i-C?p=0:p++),v=="false"&&(p===i-C?p=0:i-C<p+C?p=i-C:p+=C),ne()},_e=()=>{Le(b)},ye=()=>{n(7,W=!0),N=o},ie=()=>{n(40,G=W?S:L)},we=()=>{let i=document.createElement("style");i.innerHTML=B,M.appendChild(i)},We=()=>{let i=new URL(x),h=document.createElement("style");fetch(i.href).then(j=>j.text()).then(j=>{h.innerHTML=j,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500),n(15,R=!1)})},ve=()=>{_==="true"&&(!B&&!x&&M&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!B&&x&&n(15,R=!0))},Ce=()=>{n(17,H=m.split(",")),n(10,g=H[0]),A=="false"&&n(26,k=""),ie(),n(14,P=!1)};e.onMount(()=>(n(13,z=e.isMobile(q)),()=>{clearInterval(D)}));const ke=()=>K("recent"),xe=()=>K("top"),Me=()=>re(),Fe=()=>Z(),Se=i=>ee(i.gameId,i.gameModel.launchUrl,i.gameModel.name,i.gameModel.subVendor);function Be(i){e.binding_callbacks[i?"unshift":"push"](()=>{I=i,n(19,I)})}function Te(i){e.binding_callbacks[i?"unshift":"push"](()=>{c=i,n(9,c)})}function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{M=i,n(8,M)})}return r.$$set=i=>{"endpoint"in i&&n(27,l=i.endpoint),"session"in i&&n(28,a=i.session),"userid"in i&&n(29,o=i.userid),"periodrecent"in i&&n(30,u=i.periodrecent),"periodtop"in i&&n(31,d=i.periodtop),"numberusersrecent"in i&&n(32,w=i.numberusersrecent),"numberuserstop"in i&&n(33,E=i.numberuserstop),"amountlimit"in i&&n(26,k=i.amountlimit),"vendorCategory"in i&&n(34,y=i.vendorCategory),"lang"in i&&n(35,b=i.lang),"isrecentavailable"in i&&n(0,A=i.isrecentavailable),"istopavailable"in i&&n(1,F=i.istopavailable),"defaultcurrency"in i&&n(2,L=i.defaultcurrency),"usercurrency"in i&&n(3,S=i.usercurrency),"clientstyling"in i&&n(4,B=i.clientstyling),"clientstylingurl"in i&&n(5,x=i.clientstylingurl),"enableautoscroll"in i&&n(6,v=i.enableautoscroll),"tabsorder"in i&&n(36,m=i.tabsorder),"translationurl"in i&&n(37,O=i.translationurl),"winnersdatasources"in i&&n(38,T=i.winnersdatasources),"hascustomstyling"in i&&n(39,_=i.hascustomstyling)},r.$$.update=()=>{r.$$.dirty[0]&1140850691|r.$$.dirty[1]&63&&A&&F&&u&&d&&w&&E&&k&&y&&b&&m&&Ce(),r.$$.dirty[0]&268435456&&a&&ye(),r.$$.dirty[0]&140&&W&&(S||L)&&ie(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&640&&l&&T&&G&&$(),r.$$.dirty[1]&16&&b&&_e(),r.$$.dirty[1]&64&&O&&pe(),r.$$.dirty[1]&256&&_&&ve(),r.$$.dirty[0]&272&&B&&M&&we(),r.$$.dirty[0]&288&&x&&M&&We()},[A,F,L,S,B,x,v,W,M,c,g,f,C,z,P,R,X,H,V,I,s,K,he,ee,re,Z,k,l,a,o,u,d,w,E,y,b,m,O,T,_,G,ke,xe,Me,Fe,Se,Be,Te,Ae]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Re,Pe,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:26,vendorCategory:34,lang:35,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:36,translationurl:37,winnersdatasources:38,hascustomstyling:39},je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[30]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[31]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[32]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[33]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[26]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[34]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[35]}set lang(t){this.$$set({lang:t}),e.flush()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(t){this.$$set({isrecentavailable:t}),e.flush()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(t){this.$$set({istopavailable:t}),e.flush()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[6]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[36]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[38]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[39]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{}},[],[],!0);exports.default=me;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B3jjGeXh.cjs");function se(r,t){e.addMessages(r,t)}function Le(r){e.$locale.set(r)}const le={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores"},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano"}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-DmhAiTlH.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-14orrs9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emfe-w-color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}")}function ae(r,t,n){const s=r.slice();return s[70]=t[n],s}function oe(r,t,n){const s=r.slice();return s[73]=t[n],s}function ze(r){let t,n,s,l,a,o,u,d,w,E,k,y,b,A,F,L,S,B,x,v=e.ensure_array_like(r[17]),m=[];for(let c=0;c<v.length;c+=1)m[c]=de(oe(r,v,c));function O(c,g){return c[18]?Ne:Oe}let T=O(r),_=T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("div");for(let c=0;c<m.length;c+=1)m[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),u=e.svg_element("svg"),d=e.svg_element("path"),E=e.space(),k=e.element("button"),y=e.svg_element("svg"),b=e.svg_element("path"),L=e.space(),_.c(),e.attr(s,"class","WinnerButtonsContainer"),e.attr(d,"style",w=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(d,"id","Path_36"),e.attr(d,"data-name","Path 36"),e.attr(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(d,"transform","translate(14.656 0) rotate(90)"),e.attr(d,"fill","#fff"),e.attr(u,"id","Component_46_2"),e.attr(u,"data-name","Component 46 – 2"),e.attr(u,"xmlns","http://www.w3.org/2000/svg"),e.attr(u,"width","15"),e.attr(u,"height","15"),e.attr(u,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(b,"style",A=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(b,"id","Path_36"),e.attr(b,"data-name","Path 36"),e.attr(b,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(b,"transform","translate(0 24.656) rotate(-90)"),e.attr(b,"fill","#fff"),e.attr(y,"id","Component_46_2"),e.attr(y,"data-name","Component 46 – 2"),e.attr(y,"xmlns","http://www.w3.org/2000/svg"),e.attr(y,"width","15"),e.attr(y,"height","15"),e.attr(y,"viewBox","0 0 16 24.656"),e.attr(k,"class","SliderButton"),e.attr(a,"class",F="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",S="CasinoWinners "+(r[13]?"Mobile":""))},m(c,g){e.insert(c,t,g),e.append(t,n),e.append(n,s);for(let f=0;f<m.length;f+=1)m[f]&&m[f].m(s,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,u),e.append(u,d),e.append(a,E),e.append(a,k),e.append(k,y),e.append(y,b),e.append(t,L),_.m(t,null),B||(x=[e.listen(o,"click",r[43]),e.listen(k,"click",r[44])],B=!0)},p(c,g){if(g[0]&3277827){v=e.ensure_array_like(c[17]);let f;for(f=0;f<v.length;f+=1){const p=oe(c,v,f);m[f]?m[f].p(p,g):(m[f]=de(p),m[f].c(),m[f].m(s,null))}for(;f<m.length;f+=1)m[f].d(1);m.length=v.length}g[0]&6144&&w!==(w=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(d,"style",w),g[0]&6144&&A!==(A=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(b,"style",A),g[0]&64&&F!==(F="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",F),T===(T=O(c))&&_?_.p(c,g):(_.d(1),_=T(c),_&&(_.c(),_.m(t,null))),g[0]&8192&&S!==(S="CasinoWinners "+(c[13]?"Mobile":""))&&e.attr(t,"class",S)},d(c){c&&e.detach(t),e.destroy_each(m,c),_.d(),B=!1,e.run_all(x)}}}function Ee(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ce(r){let t,n=r[20]("recentWinners")+"",s,l,a,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[10]=="recent"?"Active":"")+" "+(r[0]=="false"?"Off":""))},m(u,d){e.insert(u,t,d),e.append(t,s),a||(o=e.listen(t,"click",r[41]),a=!0)},p(u,d){d[0]&1048576&&n!==(n=u[20]("recentWinners")+"")&&e.set_data(s,n),d[0]&1025&&l!==(l="WinnersButton "+(u[10]=="recent"?"Active":"")+" "+(u[0]=="false"?"Off":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),a=!1,o()}}}function ue(r){let t,n=r[20]("topWinners")+"",s,l,a,o,u;return{c(){t=e.element("button"),s=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[10]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(d,w){e.insert(d,t,w),e.append(t,s),e.append(t,l),o||(u=e.listen(t,"click",r[42]),o=!0)},p(d,w){w[0]&1048576&&n!==(n=d[20]("topWinners")+"")&&e.set_data(s,n),w[0]&1026&&a!==(a="WinnersButton "+(d[10]=="top"?"Active":"")+" "+(d[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(d){d&&e.detach(t),o=!1,u()}}}function de(r){let t,n,s=r[73]=="recent"&&ce(r),l=r[73]=="top"&&ue(r);return{c(){s&&s.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){s&&s.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?s?s.p(a,o):(s=ce(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),a[73]=="top"?l?l.p(a,o):(l=ue(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),s&&s.d(a),l&&l.d(a)}}}function Oe(r){let t,n=e.ensure_array_like(r[11]),s=[];for(let l=0;l<n.length;l+=1)s[l]=fe(ae(r,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","WinnersSlider")},m(l,a){e.insert(l,t,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null);r[47](t)},p(l,a){if(a[0]&14223500){n=e.ensure_array_like(l[11]);let o;for(o=0;o<n.length;o+=1){const u=ae(l,n,o);s[o]?s[o].p(u,a):(s[o]=fe(u),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),r[47](null)}}}function Ne(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function fe(r){let t,n,s,l,a,o,u,d=r[70].gameName+"",w,E,k,y=r[22](r[70].username)+"",b,A,F,L=r[20]("won")+"",S,B,x,v=r[70].specifiedCurrencyAmount.toFixed(2)+"",m,O,T,_=(r[7]?r[3]:r[2])+"",c,g,f,p,C;function q(){return r[45](r[70])}return{c(){var z,W,N,M;t=e.element("div"),n=e.element("div"),s=e.element("img"),o=e.space(),u=e.element("p"),w=e.text(d),E=e.space(),k=e.element("p"),b=e.text(y),A=e.space(),F=e.element("p"),S=e.text(L),B=e.space(),x=e.element("p"),m=e.text(v),O=e.space(),T=e.element("span"),c=e.text(_),g=e.space(),e.src_url_equal(s.src,l=(W=(z=r[70])==null?void 0:z.gameModel)==null?void 0:W.thumbnail)||e.attr(s,"src",l),e.attr(s,"alt",a=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail),e.attr(s,"class","WinnersImage"),e.attr(F,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))},m(z,W){e.insert(z,t,W),e.append(t,n),e.append(n,s),e.append(n,o),e.append(n,u),e.append(u,w),e.append(n,E),e.append(n,k),e.append(k,b),e.append(n,A),e.append(n,F),e.append(F,S),e.append(n,B),e.append(n,x),e.append(x,m),e.append(x,O),e.append(x,T),e.append(T,c),e.append(t,g),r[46](t),p||(C=e.listen(s,"click",q),p=!0)},p(z,W){var N,M,P,R;r=z,W[0]&2048&&!e.src_url_equal(s.src,l=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail)&&e.attr(s,"src",l),W[0]&2048&&a!==(a=(R=(P=r[70])==null?void 0:P.gameModel)==null?void 0:R.thumbnail)&&e.attr(s,"alt",a),W[0]&2048&&d!==(d=r[70].gameName+"")&&e.set_data(w,d),W[0]&2048&&y!==(y=r[22](r[70].username)+"")&&e.set_data(b,y),W[0]&1048576&&L!==(L=r[20]("won")+"")&&e.set_data(S,L),W[0]&2048&&v!==(v=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(m,v),W[0]&140&&_!==(_=(r[7]?r[3]:r[2])+"")&&e.set_data(c,_),W[0]&65536&&f!==(f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))&&e.attr(t,"class",f)},d(z){z&&e.detach(t),r[46](null),p=!1,C()}}}function Pe(r){let t;function n(a,o){return a[14]||a[15]?Ee:ze}let s=n(r),l=s(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){s===(s=n(a))&&l?l.p(a,o):(l.d(1),l=s(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(r,t,n){let s;e.component_subscribe(r,e.$format,i=>n(20,s=i));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:u="Today"}=t,{periodtop:d="Last7Days"}=t,{numberusersrecent:w="20"}=t,{numberuserstop:E="20"}=t,{amountlimit:k="1"}=t,{vendorCategory:y="All"}=t,{lang:b="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:F="true"}=t,{defaultcurrency:L=""}=t,{usercurrency:S=""}=t,{clientstyling:B=""}=t,{clientstylingurl:x=""}=t,{enableautoscroll:v=""}=t,{tabsorder:m=""}=t,{translationurl:O=""}=t,{winnersdatasources:T=""}=t,{hascustomstyling:_="false"}=t,c,g,f=[],p=0,C=0,q=window.navigator.userAgent,z,W,N,M,P=!0,R=!1,X=!1,Y,D,H,G,J=[],V=!1,I,Q=0;const pe=()=>{let i=new URL(O);fetch(i.href).then(h=>h.json()).then(h=>{Object.keys(h).forEach(j=>{se(j,h[j])})}).catch(h=>{console.log(h)})};Object.keys(le).forEach(i=>{se(i,le[i])});const $=()=>{J=T.split(",").map(function(h){return h.trim()});const i=new URL(`${l}/v1/casino/${g}-winners`);n(18,V=!0),i.searchParams.append("limit",g=="recent"?w:E),i.searchParams.append("specifiedCurrency",G),i.searchParams.append("period",g=="recent"?u:d),i.searchParams.append("language",b),i.searchParams.append("amountLimit",k),i.searchParams.append("vendorCategory",y),J.forEach(h=>{i.searchParams.append("dataSource",h)}),setTimeout(()=>{fetch(i.href).then(h=>h.json()).then(h=>{n(11,f=[]),n(11,f=h.items.map(j=>j)),n(18,V=!1),setTimeout(()=>{be(),te(),v=="true"&&(clearInterval(D),ge()),n(14,P=!1)},5)})},1e3)},K=i=>{g!==i&&(n(11,f=[]),n(10,g=i),$())},he=i=>i.slice(0,2)+i.slice(2,-2).replace(/./g,"*")+i.slice(-2),ee=(i,h,j,U)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:i,launchUrl:h,gameName:j,subVendor:U},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:`${i}`,userId:`${N||"Not logged in"}`})},te=i=>{const h=[...c.children];Y=h.length,h.forEach((j,U)=>{j.style.transform=`translateX(${100*(i?U-i:U)}%)`}),setTimeout(()=>{n(16,X=!0)},10)},ge=()=>{p=0,C<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},ne=()=>{te(p)},be=()=>{Q=I.offsetWidth,n(12,C=Math.round(c.offsetWidth/Q))},re=()=>{if(C>=f.length)return;const i=f.length;p===0?p=i-C:p-C<0?p=0:p=p-C,ne()},Z=()=>{if(C>=f.length)return;const i=f.length;v=="true"&&(p===i-C?p=0:p++),v=="false"&&(p===i-C?p=0:i-C<p+C?p=i-C:p+=C),ne()},_e=()=>{Le(b)},ye=()=>{n(7,W=!0),N=o},ie=()=>{n(40,G=W?S:L)},we=()=>{let i=document.createElement("style");i.innerHTML=B,M.appendChild(i)},We=()=>{let i=new URL(x),h=document.createElement("style");fetch(i.href).then(j=>j.text()).then(j=>{h.innerHTML=j,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500),n(15,R=!1)})},ve=()=>{_==="true"&&(!B&&!x&&M&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!B&&x&&n(15,R=!0))},Ce=()=>{n(17,H=m.split(",")),n(10,g=H[0]),A=="false"&&n(26,k=""),ie(),n(14,P=!1)};e.onMount(()=>(n(13,z=e.isMobile(q)),()=>{clearInterval(D)}));const ke=()=>K("recent"),xe=()=>K("top"),Me=()=>re(),Fe=()=>Z(),Se=i=>ee(i.gameId,i.gameModel.launchUrl,i.gameModel.name,i.gameModel.subVendor);function Be(i){e.binding_callbacks[i?"unshift":"push"](()=>{I=i,n(19,I)})}function Te(i){e.binding_callbacks[i?"unshift":"push"](()=>{c=i,n(9,c)})}function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{M=i,n(8,M)})}return r.$$set=i=>{"endpoint"in i&&n(27,l=i.endpoint),"session"in i&&n(28,a=i.session),"userid"in i&&n(29,o=i.userid),"periodrecent"in i&&n(30,u=i.periodrecent),"periodtop"in i&&n(31,d=i.periodtop),"numberusersrecent"in i&&n(32,w=i.numberusersrecent),"numberuserstop"in i&&n(33,E=i.numberuserstop),"amountlimit"in i&&n(26,k=i.amountlimit),"vendorCategory"in i&&n(34,y=i.vendorCategory),"lang"in i&&n(35,b=i.lang),"isrecentavailable"in i&&n(0,A=i.isrecentavailable),"istopavailable"in i&&n(1,F=i.istopavailable),"defaultcurrency"in i&&n(2,L=i.defaultcurrency),"usercurrency"in i&&n(3,S=i.usercurrency),"clientstyling"in i&&n(4,B=i.clientstyling),"clientstylingurl"in i&&n(5,x=i.clientstylingurl),"enableautoscroll"in i&&n(6,v=i.enableautoscroll),"tabsorder"in i&&n(36,m=i.tabsorder),"translationurl"in i&&n(37,O=i.translationurl),"winnersdatasources"in i&&n(38,T=i.winnersdatasources),"hascustomstyling"in i&&n(39,_=i.hascustomstyling)},r.$$.update=()=>{r.$$.dirty[0]&1140850691|r.$$.dirty[1]&63&&A&&F&&u&&d&&w&&E&&k&&y&&b&&m&&Ce(),r.$$.dirty[0]&268435456&&a&&ye(),r.$$.dirty[0]&140&&W&&(S||L)&&ie(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&640&&l&&T&&G&&$(),r.$$.dirty[1]&16&&b&&_e(),r.$$.dirty[1]&64&&O&&pe(),r.$$.dirty[1]&256&&_&&ve(),r.$$.dirty[0]&272&&B&&M&&we(),r.$$.dirty[0]&288&&x&&M&&We()},[A,F,L,S,B,x,v,W,M,c,g,f,C,z,P,R,X,H,V,I,s,K,he,ee,re,Z,k,l,a,o,u,d,w,E,y,b,m,O,T,_,G,ke,xe,Me,Fe,Se,Be,Te,Ae]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Re,Pe,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:26,vendorCategory:34,lang:35,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:36,translationurl:37,winnersdatasources:38,hascustomstyling:39},je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[30]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[31]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[32]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[33]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[26]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[34]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[35]}set lang(t){this.$$set({lang:t}),e.flush()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(t){this.$$set({isrecentavailable:t}),e.flush()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(t){this.$$set({istopavailable:t}),e.flush()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[6]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[36]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[38]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[39]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{}},[],[],!0);exports.default=me;
@@ -1,4 +1,4 @@
1
- import { I as Ke, $ as Ze, S as Je, i as Xe, f as y, c as Ye, s as Qe, b as $e, e as W, d as I, C as ye, j as P, J as et, o as tt, l as nt, m as oe, p as te, q as R, E as ee, u as a, v as u, w as J, B as Se, R as it, M as H, F as rt, O as st, r as V, A as q, D as we } from "./CasinoCalendar-3HRZGpnG.js";
1
+ import { I as Ke, $ as Ze, S as Je, i as Xe, f as y, c as Ye, s as Qe, b as $e, e as W, d as I, C as ye, j as P, J as et, o as tt, l as nt, m as oe, p as te, q as R, E as ee, u as a, v as u, w as J, B as Se, R as it, M as H, F as rt, O as st, r as V, A as q, D as we } from "./CasinoCalendar-BuNYmxT2.js";
2
2
  function _e(n, e) {
3
3
  Ke(n, e);
4
4
  }
@@ -109,7 +109,7 @@ if (typeof window != "undefined") {
109
109
  }
110
110
  };
111
111
  };
112
- customElements.define = n(customElements.define), import("./GeneralAnimationLoading-DRiG33XR.js").then(({ default: e }) => {
112
+ customElements.define = n(customElements.define), import("./GeneralAnimationLoading-DG0Zw3Hq.js").then(({ default: e }) => {
113
113
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
114
114
  });
115
115
  }
@@ -1,4 +1,4 @@
1
- import { S as m, i as h, f as o, c as g, s as y, b as v, e as x, d as b, C as r, j as C, m as _ } from "./CasinoCalendar-3HRZGpnG.js";
1
+ import { S as m, i as h, f as o, c as g, s as y, b as v, e as x, d as b, C as r, j as C, m as _ } from "./CasinoCalendar-BuNYmxT2.js";
2
2
  function L(e) {
3
3
  v(e, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-9cVNHt1-.cjs");function h(n){t.append_styles(n,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function m(n){let i;return{c(){i=t.element("div"),i.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,d){t.insert(l,i,d),n[3](i)},p:t.noop,i:t.noop,o:t.noop,d(l){l&&t.detach(i),n[3](null)}}}function g(n,i,l){let{clientstyling:d=""}=i,{clientstylingurl:r=""}=i,s;const u=()=>{let e=document.createElement("style");e.innerHTML=d,s.appendChild(e)},p=()=>{let e=new URL(r),c=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{c.innerHTML=a,setTimeout(()=>{s.appendChild(c)},1),setTimeout(()=>{},500)})};function f(e){t.binding_callbacks[e?"unshift":"push"](()=>{s=e,l(0,s)})}return n.$$set=e=>{"clientstyling"in e&&l(1,d=e.clientstyling),"clientstylingurl"in e&&l(2,r=e.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&3&&d&&s&&u(),n.$$.dirty&5&&r&&s&&p()},[s,d,r,f]}class o extends t.SvelteComponent{constructor(i){super(),t.init(this,i,g,m,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(i){this.$$set({clientstyling:i}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),t.flush()}}t.create_custom_element(o,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B3jjGeXh.cjs");function h(n){t.append_styles(n,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function m(n){let i;return{c(){i=t.element("div"),i.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,d){t.insert(l,i,d),n[3](i)},p:t.noop,i:t.noop,o:t.noop,d(l){l&&t.detach(i),n[3](null)}}}function g(n,i,l){let{clientstyling:d=""}=i,{clientstylingurl:r=""}=i,s;const u=()=>{let e=document.createElement("style");e.innerHTML=d,s.appendChild(e)},p=()=>{let e=new URL(r),c=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{c.innerHTML=a,setTimeout(()=>{s.appendChild(c)},1),setTimeout(()=>{},500)})};function f(e){t.binding_callbacks[e?"unshift":"push"](()=>{s=e,l(0,s)})}return n.$$set=e=>{"clientstyling"in e&&l(1,d=e.clientstyling),"clientstylingurl"in e&&l(2,r=e.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&3&&d&&s&&u(),n.$$.dirty&5&&r&&s&&p()},[s,d,r,f]}class o extends t.SvelteComponent{constructor(i){super(),t.init(this,i,g,m,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(i){this.$$set({clientstyling:i}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),t.flush()}}t.create_custom_element(o,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=o;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-DrNupA3v.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-DQp8R35R.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoLobby-CES-96FR.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-fdlZEYrv.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "1.46.1",
3
+ "version": "1.47.1",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-lobby.cjs",
6
6
  "module": "es2015/casino-lobby.js",
@@ -13,7 +13,8 @@
13
13
  },
14
14
  "files": [
15
15
  "es2015/",
16
- "components"
16
+ "components",
17
+ "stencil"
17
18
  ],
18
19
  "publishConfig": {
19
20
  "access": "public"
@@ -0,0 +1,5 @@
1
+ const o = () => {
2
+ };
3
+ export {
4
+ o as g
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=()=>{};exports.globalScripts=s;
@@ -0,0 +1,371 @@
1
+ "use strict";var p=(n,e,a)=>new Promise((i,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?i(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-7666b794-CHdM2q8W.cjs"),w=require("./app-globals-0f993ce5-sCt45RkC.cjs");var g=typeof document!="undefined"?document.currentScript:null,y=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:g&&g.src||new URL("stencil/casino-play-random-game-DJ_HpP4O.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),t.promiseResolve(e)};y().then(n=>p(exports,null,function*(){return yield w.globalScripts(),t.bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"]}]]]],n)}));const x=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},G="en",l={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(i=>{l[i]||(l[i]={});for(let o in a[i])l[i][o]=a[i][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:G][n]},b=`:host {
2
+ display: block;
3
+ font-family: inherit;
4
+ -webkit-transform: translate3d(0, 0, 0);
5
+ transform: translate3d(0, 0, 0);
6
+ }
7
+
8
+ :host * {
9
+ -webkit-transform: translate3d(0, 0, 0);
10
+ transform: translate3d(0, 0, 0);
11
+ }
12
+
13
+ .RandomGameWrapper {
14
+ width: 100%;
15
+ height: var(--emw--size-4x-medium, 700px);
16
+ background: transparent;
17
+ position: relative;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .GameContainerGradient {
22
+ position: absolute;
23
+ top: 10%;
24
+ left: -5px;
25
+ width: 100vw;
26
+ height: 80%;
27
+ background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.5) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.5) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
28
+ pointer-events: none;
29
+ z-index: 1;
30
+ filter: blur(10px);
31
+ }
32
+
33
+ .GamesContainer {
34
+ display: flex;
35
+ height: var(--emw--size-4x-medium, 600px);
36
+ flex-direction: row;
37
+ flex-wrap: nowrap;
38
+ justify-content: flex-start;
39
+ align-items: center;
40
+ align-content: flex-start;
41
+ gap: var(--emw--spacing-large, 20px);
42
+ }
43
+
44
+ .RandomGameCard {
45
+ position: relative;
46
+ width: var(--emw--size-3x-medium, 300px);
47
+ height: var(--emw--size-4x-medium, 420px);
48
+ border-radius: var(--emw--border-radius-large, 20px);
49
+ top: 8%;
50
+ filter: blur(5px);
51
+ }
52
+ .RandomGameCard .RandomGameVendor {
53
+ position: absolute;
54
+ font-size: var(--emw--font-size-x-small, 12px);
55
+ bottom: var(--emw--spacing-small-minus, 10px);
56
+ left: var(--emw--spacing-small-minus, 10px);
57
+ color: var(--emw--color-typography, #FFFFFF);
58
+ }
59
+
60
+ .TheRandomGame {
61
+ animation-name: ZoomFadeIn;
62
+ animation-duration: 0.5s;
63
+ animation-fill-mode: forwards;
64
+ -webkit-animation-name: ZoomFadeIn;
65
+ -webkit-animation-duration: 0.5s;
66
+ -webkit-animation-fill-mode: forwards;
67
+ opacity: 1;
68
+ cursor: pointer;
69
+ filter: blur(0);
70
+ }
71
+
72
+ .RandomGameImage {
73
+ width: inherit;
74
+ height: inherit;
75
+ object-fit: cover;
76
+ border-radius: var(--emw--border-radius-large, 20px);
77
+ }
78
+
79
+ .RandomGameDetails {
80
+ display: flex;
81
+ flex-direction: row;
82
+ justify-content: space-between;
83
+ align-items: center;
84
+ color: var(--emw--color-typography, #FFFFFF);
85
+ font-size: var(--emw--font-size-small, 14px);
86
+ width: 100%;
87
+ }
88
+ .RandomGameDetails .RandomGameTitle {
89
+ line-height: 18px;
90
+ }
91
+ .RandomGameDetails .RandomGameInfo {
92
+ border-radius: 50%;
93
+ width: var(--emw--spacing-medium, 16px);
94
+ height: var(--emw--spacing-medium, 16px);
95
+ font-size: var(--emw--font-size-x-small, 12px);
96
+ font-weight: var(--emw--font-weight-normal, 400);
97
+ border: solid 1px var(--emw--color-typography, #FFFFFF);
98
+ text-align: center;
99
+ margin: var(--emw--spacing-2x-small, 4px) 0;
100
+ line-height: 14px;
101
+ cursor: pointer;
102
+ }
103
+ .RandomGameDetails .RandomGamePlay {
104
+ background: var(--emw--color-primary, #4bd004);
105
+ color: var(--emw--color-typography, #FFFFFF);
106
+ border: none;
107
+ border-radius: var(--emw--border-radius-medium, 5px);
108
+ width: 200px;
109
+ height: 40px;
110
+ font-size: var(--emw--font-size-small, 14px);
111
+ cursor: pointer;
112
+ }
113
+
114
+ .ButtonWrapper {
115
+ position: absolute;
116
+ top: 50%;
117
+ left: 50%;
118
+ transform: translate(-50%, -50%);
119
+ z-index: 20;
120
+ }
121
+
122
+ .ButtonContainer {
123
+ display: flex;
124
+ flex-direction: column;
125
+ justify-content: center;
126
+ align-items: center;
127
+ gap: 10px;
128
+ width: 100%;
129
+ position: relative;
130
+ }
131
+
132
+ .ButtonIcon {
133
+ display: flex;
134
+ flex-direction: column;
135
+ justify-content: center;
136
+ align-items: center;
137
+ gap: var(--emw--spacing-2x-small, 5px);
138
+ }
139
+
140
+ .QustionMark {
141
+ position: absolute;
142
+ font-family: sans-serif;
143
+ font-size: 120px;
144
+ font-weight: 900;
145
+ color: color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 10%);
146
+ text-shadow: 0px 12px 0px color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 50%);
147
+ left: 50%;
148
+ top: -20%;
149
+ transform: translateX(-50%);
150
+ z-index: 10;
151
+ }
152
+
153
+ .HexagonMarkShadow {
154
+ width: 100px;
155
+ height: 115px;
156
+ display: flex;
157
+ justify-content: center;
158
+ align-items: center;
159
+ background: color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 70%);
160
+ clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
161
+ }
162
+
163
+ .HexagonMark {
164
+ position: absolute;
165
+ width: var(--emw--size-medium, 90px);
166
+ height: 105px;
167
+ background: linear-gradient(to bottom, color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 20%) 0%, var(--emw--categories-color-secondary, var(--emw--color-secondary, #eeac4a)) 100%);
168
+ clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
169
+ }
170
+
171
+ .RandomButtons {
172
+ display: flex;
173
+ flex-direction: row;
174
+ justify-content: center;
175
+ align-items: center;
176
+ gap: var(--emw--spacing-2x-small, 5px);
177
+ width: 100%;
178
+ position: relative;
179
+ z-index: 10;
180
+ }
181
+
182
+ .RandomButton {
183
+ font-size: var(--emw--font-size-large, 20px);
184
+ text-transform: uppercase;
185
+ width: max-content;
186
+ border-radius: var(--emw--button-border-radius, 50px);
187
+ padding: var(--emw--spacing-large, 20px) var(--emw--spacing-2x-large, 40px);
188
+ border: solid 3px var(--emw--button-border-color, #063B17);
189
+ color: var(--emw--button-text-color, #FFFFFF);
190
+ opacity: 1;
191
+ animation: ButtonEffect 3s linear infinite;
192
+ background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));
193
+ background-size: 300% 100%;
194
+ cursor: pointer;
195
+ position: relative;
196
+ z-index: 10;
197
+ }
198
+ .RandomButton:hover {
199
+ opacity: 0.8;
200
+ }
201
+
202
+ .HideAnimation {
203
+ filter: blur(5px);
204
+ animation: AnimateButton 0.2s forwards;
205
+ }
206
+
207
+ .Flip {
208
+ animation-name: Flip, Blur;
209
+ animation-duration: 0.75s, 3s;
210
+ animation-iteration-count: infinite, 1;
211
+ -webkit-animation-name: Flip, Blur;
212
+ -webkit-animation-duration: 0.75s, 3s;
213
+ -webkit-animation-iteration-count: infinite, 1;
214
+ }
215
+
216
+ @keyframes ButtonEffect {
217
+ 0% {
218
+ background-position: 0% 50%;
219
+ }
220
+ 33% {
221
+ background-position: 100% 50%;
222
+ }
223
+ 66% {
224
+ background-position: 200% 50%;
225
+ }
226
+ 100% {
227
+ background-position: 300% 50%;
228
+ }
229
+ }
230
+ @keyframes ZoomFadeIn {
231
+ 0% {
232
+ transform: scale(0.2) translateY(0);
233
+ filter: blur(5px);
234
+ opacity: 0.3;
235
+ }
236
+ 50% {
237
+ transform: scale(1.1) translateY(-30px);
238
+ filter: blur(2px);
239
+ opacity: 0.7;
240
+ }
241
+ 100% {
242
+ transform: scale(1) translateY(-30px);
243
+ filter: blur(0px);
244
+ opacity: 1;
245
+ }
246
+ }
247
+ @keyframes AnimateButton {
248
+ 0% {
249
+ opacity: 0.7;
250
+ }
251
+ 50% {
252
+ opacity: 0.4;
253
+ }
254
+ 100% {
255
+ opacity: 0;
256
+ display: none;
257
+ }
258
+ }
259
+ @keyframes Flip {
260
+ 0% {
261
+ transform: rotateY(0deg);
262
+ }
263
+ 50% {
264
+ transform: rotateY(180deg);
265
+ }
266
+ 100% {
267
+ transform: rotateY(360deg);
268
+ }
269
+ }
270
+ @keyframes Blur {
271
+ 0% {
272
+ filter: blur(0);
273
+ }
274
+ 50% {
275
+ filter: blur(1px);
276
+ }
277
+ 100% {
278
+ filter: blur(3px);
279
+ }
280
+ }
281
+ @container (max-width: 475px) {
282
+ .GamesContainer {
283
+ height: inherit;
284
+ gap: var(--emw--spacing-2x-small, 5px);
285
+ }
286
+ .RandomGameWrapper {
287
+ width: 100%;
288
+ height: 300px;
289
+ overflow: hidden;
290
+ background: transparent;
291
+ position: relative;
292
+ }
293
+ .GameContainerGradient {
294
+ position: absolute;
295
+ top: 10%;
296
+ left: -5px;
297
+ width: 100vw;
298
+ height: 80%;
299
+ background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.2) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.2) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
300
+ pointer-events: none;
301
+ z-index: 1;
302
+ filter: blur(5px);
303
+ }
304
+ .RandomGameCard {
305
+ width: 100px;
306
+ height: 150px;
307
+ top: 0%;
308
+ border-radius: var(--emw--border-radius-medium, 4px);
309
+ filter: blur(5px);
310
+ }
311
+ .RandomGameImage {
312
+ width: 102px;
313
+ height: inherit;
314
+ top: 0%;
315
+ }
316
+ .RandomGameDetails {
317
+ font-size: 14px;
318
+ width: 100%;
319
+ }
320
+ .RandomGameDetails .RandomGameTitle {
321
+ line-height: 18px;
322
+ width: 75%;
323
+ }
324
+ .RandomGameDetails .RandomGameInfo {
325
+ border-radius: 50%;
326
+ width: 16px;
327
+ height: 16px;
328
+ font-size: var(--emw--font-size-x-small, 12px);
329
+ line-height: 14px;
330
+ }
331
+ .RandomGameDetails .RandomGamePlay {
332
+ background: var(--emw--color-primary, #52d004);
333
+ color: var(--emw--color-typography, #FFFFFF);
334
+ border: none;
335
+ border-radius: 5px;
336
+ width: 200px;
337
+ height: 40px;
338
+ font-size: 14px;
339
+ cursor: pointer;
340
+ }
341
+ .RandomGameCard .RandomGameVendor {
342
+ font-size: var(--emw--font-size-x-small, 12px);
343
+ bottom: 5px;
344
+ right: 5px;
345
+ }
346
+ .RandomButtons {
347
+ display: flex;
348
+ flex-direction: column;
349
+ justify-content: center;
350
+ align-items: center;
351
+ gap: 5px;
352
+ width: 100%;
353
+ }
354
+ .RandomButton {
355
+ font-size: var(--emw--font-size-x-small, 12px);
356
+ padding: 10px 15px;
357
+ border: solid 1px var(--emw--button-border-color, #063B17);
358
+ }
359
+ .QustionMark {
360
+ font-size: 100px;
361
+ font-weight: 700;
362
+ }
363
+ .HexagonMarkShadow {
364
+ width: 80px;
365
+ height: 95px;
366
+ }
367
+ .HexagonMark {
368
+ width: 70px;
369
+ height: 85px;
370
+ }
371
+ }`,v=b,f=class{constructor(n){t.registerInstance(this,n),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[e[a],e[i]]=[e[i],e[a]];return e},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),a=document.createElement("style");fetch(e.href).then(i=>i.text()).then(i=>{a.innerHTML=i,this.clientStyling=i,setTimeout(()=>{this.host.shadowRoot.prepend(a)},1)})},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.limitStylingAppends=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",x()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),e(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&&gtag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&&gtag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-i/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return t.h("div",{class:"RandomGameLoading"},t.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>t.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},t.h("div",{class:"RandomGameVendor"},n.vendor.name),t.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"]}}};f.style=v;exports.casino_play_random_game=f;