@everymatrix/casino-lobby 1.62.3 → 1.63.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.
Files changed (95) hide show
  1. package/components/{CasinoCalendar-zRo_9Za0.js → CasinoCalendar-CNMPPqgx.js} +1285 -1469
  2. package/components/{CasinoCalendar-CinFtvuW.js → CasinoCalendar-DF0Pr_uv.js} +1025 -1209
  3. package/components/CasinoCalendar-DoxssdOG.cjs +19 -0
  4. package/components/{CasinoCalendarDailyDetails-qkwXMyxI.js → CasinoCalendarDailyDetails-305OBzqh.js} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-Cn37GUIj.cjs → CasinoCalendarDailyDetails-DUp41baV.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-DL8uHwSN.js → CasinoCalendarDailyDetails-OB1lJeYE.js} +1 -1
  7. package/components/{CasinoCalendarDailyItem-Bo9evLEj.cjs → CasinoCalendarDailyItem-B-DrlkeE.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-DoK3veTp.js → CasinoCalendarDailyItem-D51VouvS.js} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DcqDKyz5.js → CasinoCalendarDailyItem-O-Ka4MG6.js} +1 -1
  10. package/components/{CasinoCategoriesSlider-BBVXEukg.js → CasinoCategoriesSlider-BRS5bbYT.js} +2 -2
  11. package/components/{CasinoCategoriesSlider-n2yKGzdi.cjs → CasinoCategoriesSlider-BiaZvSw4.cjs} +1 -1
  12. package/components/{CasinoCategoriesSlider-YxbN9BpC.js → CasinoCategoriesSlider-Bte1Sqxk.js} +2 -2
  13. package/components/{CasinoCollectionsProviders-CPX65G1M.cjs → CasinoCollectionsProviders-CMAAQr-q.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-BvaxV9cb.js → CasinoCollectionsProviders-eQakUMn6.js} +1 -1
  15. package/components/{CasinoCollectionsProviders-Q0qcn7b_.js → CasinoCollectionsProviders-kaCgm3e1.js} +1 -1
  16. package/components/{CasinoFavoritesSection-DG1Vt4HX.js → CasinoFavoritesSection-B2bVaaP6.js} +2 -2
  17. package/components/{CasinoFavoritesSection-B1f0uSCY.cjs → CasinoFavoritesSection-CzigR-dL.cjs} +1 -1
  18. package/components/{CasinoFavoritesSection-CR--CUNF.js → CasinoFavoritesSection-hUEe-Tf0.js} +2 -2
  19. package/components/{CasinoFilter-DbcntrTg.js → CasinoFilter-CE3HGSQ0.js} +1 -1
  20. package/components/{CasinoFilter-DhiwjMr2.cjs → CasinoFilter-CaXIhjO3.cjs} +1 -1
  21. package/components/{CasinoFilter-ChsEa9Bx.js → CasinoFilter-g1NekVQ2.js} +1 -1
  22. package/components/CasinoGameThumbnail-DCRwj3vq.js +4360 -0
  23. package/components/CasinoGameThumbnail-DUG_Uqdj.js +4376 -0
  24. package/components/CasinoGameThumbnail-ODsH-VZ2.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-CujQbdKb.js → CasinoGamesCategorySection-CLNhR4hD.js} +238 -222
  26. package/components/CasinoGamesCategorySection-CsL3VdHS.cjs +1 -0
  27. package/components/{CasinoGamesCategorySection-DFNU_Gsz.js → CasinoGamesCategorySection-l-jRCUnZ.js} +510 -494
  28. package/components/CasinoJackpotBanner-BGP5NlAK.cjs +1 -0
  29. package/components/CasinoJackpotBanner-DiFabula.js +806 -0
  30. package/components/CasinoJackpotBanner-DnctL7sJ.js +810 -0
  31. package/components/{CasinoLastPlayedSection-CTorwEQu.js → CasinoLastPlayedSection-BO-V6sRP.js} +2 -2
  32. package/components/{CasinoLastPlayedSection-CE97lSQ6.js → CasinoLastPlayedSection-Ce3mzuku.js} +2 -2
  33. package/components/{CasinoLastPlayedSection-U57Y5miR.cjs → CasinoLastPlayedSection-WTRz13SW.cjs} +1 -1
  34. package/components/CasinoLobby-CbK-afWM.cjs +1 -0
  35. package/components/CasinoLobby-CoHmXJCL.js +2001 -0
  36. package/components/CasinoLobby-zjNcK2iE.js +2001 -0
  37. package/components/{CasinoMostPlayedSection-CKuVf-En.js → CasinoMostPlayedSection-CJg1aY33.js} +2 -2
  38. package/components/{CasinoMostPlayedSection-oxfCPIeN.js → CasinoMostPlayedSection-Di8djDRq.js} +2 -2
  39. package/components/{CasinoMostPlayedSection-Cptq1E56.cjs → CasinoMostPlayedSection-fwCxYxEp.cjs} +1 -1
  40. package/components/{CasinoMyGames-DhHqogUJ.cjs → CasinoMyGames-5EDtkMnj.cjs} +1 -1
  41. package/components/{CasinoMyGames-sC9ouRW_.js → CasinoMyGames-C2kQ8Kej.js} +4 -4
  42. package/components/{CasinoMyGames-gq_8VbcF.js → CasinoMyGames-D5jH8lu_.js} +4 -4
  43. package/components/{CasinoPage-BCAEtuBw.js → CasinoPage-BgHbGm-g.js} +801 -769
  44. package/components/CasinoPage-DYbiUa8_.cjs +1 -0
  45. package/components/{CasinoPage-Bh2MrJ1P.js → CasinoPage-Dc9zsqhK.js} +781 -749
  46. package/components/{CasinoRandomGame-CbQvQHMi.js → CasinoRandomGame-BB4A3Me6.js} +1 -1
  47. package/components/{CasinoRandomGame-neIdOgUC.js → CasinoRandomGame-BalTtz4n.js} +1 -1
  48. package/components/{CasinoRandomGame-D4bGW7wH.cjs → CasinoRandomGame-qzNaZ__f.cjs} +1 -1
  49. package/components/CasinoSearch-DEbU_mnO.cjs +1 -0
  50. package/components/{CasinoSearch-B65DzQEn.js → CasinoSearch-KJl38A6K.js} +335 -306
  51. package/components/{CasinoSearch-d7Y-IpLr.js → CasinoSearch-_Q2V5zZj.js} +319 -290
  52. package/components/{CasinoSlider-TfFHBss2.js → CasinoSlider-CCs2pkhA.js} +15 -15
  53. package/components/{CasinoSlider-CotyciEv.cjs → CasinoSlider-Q3CLkzHo.cjs} +1 -1
  54. package/components/{CasinoSlider-DGETBGTm.js → CasinoSlider-VfpP1c2C.js} +15 -15
  55. package/components/{CasinoSort-B-2h6Htw.js → CasinoSort-BFlIPfWc.js} +1 -1
  56. package/components/{CasinoSort-Cmgp5JM5.js → CasinoSort-BRX2Xq-L.js} +1 -1
  57. package/components/{CasinoSort-X6V8pABW.cjs → CasinoSort-Ds5Gxm-O.cjs} +1 -1
  58. package/components/CasinoWinners-B_hz9jpe.cjs +1 -0
  59. package/components/CasinoWinners-DMV8Yt40.js +983 -0
  60. package/components/CasinoWinners-j5Ay-YXI.js +981 -0
  61. package/components/{GeneralAnimationLoading-B1-7gNLR.js → GeneralAnimationLoading-7OFxqSZ5.js} +1 -1
  62. package/components/{GeneralAnimationLoading-BV3DII71.js → GeneralAnimationLoading-BdfUf0_9.js} +1 -1
  63. package/components/{GeneralAnimationLoading-DasE8cAb.cjs → GeneralAnimationLoading-cgso8Mxu.cjs} +1 -1
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{casino-play-random-game-6EpPs13y.js → casino-play-random-game-BYqESYAt.js} +6 -1
  69. package/stencil/{casino-play-random-game-BUvMKyaw.js → casino-play-random-game-QQFB7p9f.js} +6 -1
  70. package/stencil/{casino-play-random-game-IjQER553.cjs → casino-play-random-game-cxzdDqDs.cjs} +6 -1
  71. package/stencil/{index-ab3202d6-c7Vf1NJ1.cjs → index-ab3202d6-4wRb7_uS.cjs} +1 -1
  72. package/stencil/{index-ab3202d6-9zuW-dLG.js → index-ab3202d6-ClNgaMg-.js} +1 -1
  73. package/stencil/{index-ab3202d6-CGVciVSL.js → index-ab3202d6-CvVYHCZs.js} +1 -1
  74. package/components/CasinoCalendar-B4GcXKnc.cjs +0 -22
  75. package/components/CasinoGamePage-C7LOIY6s.js +0 -4240
  76. package/components/CasinoGamePage-CmF8v1Cv.cjs +0 -18
  77. package/components/CasinoGamePage-DccB7M76.js +0 -4219
  78. package/components/CasinoGameThumbnail-BtO5lRYS.cjs +0 -38
  79. package/components/CasinoGameThumbnail-CZYWQzTY.js +0 -1836
  80. package/components/CasinoGameThumbnail-DZFIn3jP.js +0 -1852
  81. package/components/CasinoGamesCategorySection-CQaK0CN3.cjs +0 -1
  82. package/components/CasinoJackpotBanner-BhgV3UvA.js +0 -698
  83. package/components/CasinoJackpotBanner-CkVmxLVH.js +0 -694
  84. package/components/CasinoJackpotBanner-D5DqHlAR.cjs +0 -1
  85. package/components/CasinoLobby-80EyIh80.js +0 -2445
  86. package/components/CasinoLobby-C1-TdZOS.cjs +0 -1
  87. package/components/CasinoLobby-hiqWHHHg.js +0 -2445
  88. package/components/CasinoModal-7GCtnm_K.cjs +0 -1
  89. package/components/CasinoModal-DRoX6zuP.js +0 -368
  90. package/components/CasinoModal-DTJpGGWW.js +0 -368
  91. package/components/CasinoPage-BzbZtzqt.cjs +0 -1
  92. package/components/CasinoSearch-BYuM1VFZ.cjs +0 -1
  93. package/components/CasinoWinners-BSQs3S54.js +0 -980
  94. package/components/CasinoWinners-CuaTZjz4.cjs +0 -1
  95. package/components/CasinoWinners-CyDC7j5x.js +0 -978
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B4GcXKnc.cjs");require("../stencil/ui-image-C3XzpHRB.cjs");function le(r,t){e.addMessages(r,t)}function Ae(r){e.$locale.set(r)}const ae={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢",noWinnersMessage:"現在暫時沒有贏家!"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen",noWinnersMessage:"Zurzeit gibt es keine Gewinner!"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Non ci sono vincitori al momento!"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner",noWinnersMessage:"Il n’y a pas de gagnants pour le moment !"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores",noWinnersMessage:"No hay ganadores en este momento."},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε",noWinnersMessage:"Δεν υπάρχουν νικητές αυτή τη στιγμή!"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı",noWinnersMessage:"Şu anda kazanan yok!"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"В данный момент нет победителей!"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat",noWinnersMessage:"Nu există câștigători în acest moment!"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio",noWinnersMessage:"Trenutno nema pobjednika!"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert",noWinnersMessage:"Jelenleg nincsenek nyertesek!"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Obecnie nie ma żadnych zwycięzców!"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Trenutno nema pobednika!"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar",noWinnersMessage:"Não há vencedores no momento!"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano",noWinnersMessage:"No hay ganadores en este momento."},"en-us":{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-DasE8cAb.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-1x13ubp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--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}.WinnersSlider .NoWinnersMessage{color:var(--emw--casino-typography, var(--emw--color-typography, #FFFFFF));font-size:var(--emw--font-size-medium, 16px)}.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(--emw--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(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emw--casino-color-primary, var(--emw--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 oe(r,t,n){const i=r.slice();return i[70]=t[n],i}function ce(r,t,n){const i=r.slice();return i[73]=t[n],i}function Ee(r){let t,n,i,l,a,o,d,u,W,j,F,h,p,A,x,z,B,T,k,w=e.ensure_array_like(r[18]),f=[];for(let c=0;c<w.length;c+=1)f[c]=fe(ce(r,w,c));function E(c,_){return c[19]?Re:Oe}let N=E(r),g=N(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("div");for(let c=0;c<f.length;c+=1)f[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),d=e.svg_element("svg"),u=e.svg_element("path"),j=e.space(),F=e.element("button"),h=e.svg_element("svg"),p=e.svg_element("path"),z=e.space(),g.c(),e.attr(i,"class","WinnerButtonsContainer"),e.attr(u,"style",W=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(u,"id","Path_36"),e.attr(u,"data-name","Path 36"),e.attr(u,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(u,"transform","translate(14.656 0) rotate(90)"),e.attr(u,"fill","#fff"),e.attr(d,"id","Component_46_2"),e.attr(d,"data-name","Component 46 – 2"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","15"),e.attr(d,"height","15"),e.attr(d,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(p,"style",A=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(p,"id","Path_36"),e.attr(p,"data-name","Path 36"),e.attr(p,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(p,"transform","translate(0 24.656) rotate(-90)"),e.attr(p,"fill","#fff"),e.attr(h,"id","Component_46_2"),e.attr(h,"data-name","Component 46 – 2"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"width","15"),e.attr(h,"height","15"),e.attr(h,"viewBox","0 0 16 24.656"),e.attr(F,"class","SliderButton"),e.attr(a,"class",x="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",B="CasinoWinners "+(r[14]?"Mobile":""))},m(c,_){e.insert(c,t,_),e.append(t,n),e.append(n,i);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(i,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,d),e.append(d,u),e.append(a,j),e.append(a,F),e.append(F,h),e.append(h,p),e.append(t,z),g.m(t,null),T||(k=[e.listen(o,"click",r[44]),e.listen(F,"click",r[45])],T=!0)},p(c,_){if(_[0]&6555651){w=e.ensure_array_like(c[18]);let m;for(m=0;m<w.length;m+=1){const M=ce(c,w,m);f[m]?f[m].p(M,_):(f[m]=fe(M),f[m].c(),f[m].m(i,null))}for(;m<f.length;m+=1)f[m].d(1);f.length=w.length}_[0]&12288&&W!==(W=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(u,"style",W),_[0]&12288&&A!==(A=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(p,"style",A),_[0]&64&&x!==(x="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",x),N===(N=E(c))&&g?g.p(c,_):(g.d(1),g=N(c),g&&(g.c(),g.m(t,null))),_[0]&16384&&B!==(B="CasinoWinners "+(c[14]?"Mobile":""))&&e.attr(t,"class",B)},d(c){c&&e.detach(t),e.destroy_each(f,c),g.d(),T=!1,e.run_all(k)}}}function Le(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,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ue(r){let t,n=r[0]==="true"&&de(r);return{c(){n&&n.c(),t=e.empty()},m(i,l){n&&n.m(i,l),e.insert(i,t,l)},p(i,l){i[0]==="true"?n?n.p(i,l):(n=de(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&e.detach(t),n&&n.d(i)}}}function de(r){let t,n=r[21]("recentWinners")+"",i,l,a,o;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[11]=="recent"?"Active":""))},m(d,u){e.insert(d,t,u),e.append(t,i),a||(o=e.listen(t,"click",r[42]),a=!0)},p(d,u){u[0]&2097152&&n!==(n=d[21]("recentWinners")+"")&&e.set_data(i,n),u[0]&2048&&l!==(l="WinnersButton "+(d[11]=="recent"?"Active":""))&&e.attr(t,"class",l)},d(d){d&&e.detach(t),a=!1,o()}}}function me(r){let t,n=r[21]("topWinners")+"",i,l,a,o,d;return{c(){t=e.element("button"),i=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[11]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(u,W){e.insert(u,t,W),e.append(t,i),e.append(t,l),o||(d=e.listen(t,"click",r[43]),o=!0)},p(u,W){W[0]&2097152&&n!==(n=u[21]("topWinners")+"")&&e.set_data(i,n),W[0]&2050&&a!==(a="WinnersButton "+(u[11]=="top"?"Active":"")+" "+(u[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(u){u&&e.detach(t),o=!1,d()}}}function fe(r){let t,n,i=r[73]=="recent"&&ue(r),l=r[73]=="top"&&me(r);return{c(){i&&i.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){i&&i.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?i?i.p(a,o):(i=ue(a),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),a[73]=="top"?l?l.p(a,o):(l=me(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),i&&i.d(a),l&&l.d(a)}}}function Oe(r){let t;function n(a,o){return a[12].length!==0?Ge:Pe}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c(),e.attr(t,"class","WinnersSlider")},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(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]),e.set_custom_element_data(t,"mbsource",r[7])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),i[0]&128&&e.set_custom_element_data(t,"mbsource",n[7])},d(n){n&&e.detach(t)}}}function Pe(r){let t,n=r[21]("noWinnersMessage")+"",i;return{c(){t=e.element("p"),i=e.text(n),e.attr(t,"class","NoWinnersMessage")},m(l,a){e.insert(l,t,a),e.append(t,i)},p(l,a){a[0]&2097152&&n!==(n=l[21]("noWinnersMessage")+"")&&e.set_data(i,n)},d(l){l&&e.detach(t)}}}function Ge(r){let t,n=e.ensure_array_like(r[12]),i=[];for(let l=0;l<n.length;l+=1)i[l]=pe(oe(r,n,l));return{c(){for(let l=0;l<i.length;l+=1)i[l].c();t=e.empty()},m(l,a){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(l,a);e.insert(l,t,a)},p(l,a){if(a[0]&28446988){n=e.ensure_array_like(l[12]);let o;for(o=0;o<n.length;o+=1){const d=oe(l,n,o);i[o]?i[o].p(d,a):(i[o]=pe(d),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(i,l)}}}function pe(r){let t,n,i,l,a,o,d,u=r[70].gameName+"",W,j,F,h=r[23](r[70].username)+"",p,A,x,z=r[21]("won")+"",B,T,k,w=r[70].specifiedCurrencyAmount.toFixed(2)+"",f,E,N,g=(r[8]?r[3]:r[2])+"",c,_,m,M,b;function v(){return r[46](r[70])}return{c(){var L,C,O,R;t=e.element("div"),n=e.element("div"),i=e.element("ui-image"),o=e.space(),d=e.element("p"),W=e.text(u),j=e.space(),F=e.element("p"),p=e.text(h),A=e.space(),x=e.element("p"),B=e.text(z),T=e.space(),k=e.element("p"),f=e.text(w),E=e.space(),N=e.element("span"),c=e.text(g),_=e.space(),e.src_url_equal(i.src,l=(C=(L=r[70])==null?void 0:L.gameModel)==null?void 0:C.thumbnail)||e.set_custom_element_data(i,"src",l),e.set_custom_element_data(i,"alt",a=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail),e.set_custom_element_data(i,"class","WinnersImage"),e.attr(x,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))},m(L,C){e.insert(L,t,C),e.append(t,n),e.append(n,i),e.append(n,o),e.append(n,d),e.append(d,W),e.append(n,j),e.append(n,F),e.append(F,p),e.append(n,A),e.append(n,x),e.append(x,B),e.append(n,T),e.append(n,k),e.append(k,f),e.append(k,E),e.append(k,N),e.append(N,c),e.append(t,_),r[47](t),M||(b=e.listen(i,"click",v),M=!0)},p(L,C){var O,R,S,G;r=L,C[0]&4096&&!e.src_url_equal(i.src,l=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail)&&e.set_custom_element_data(i,"src",l),C[0]&4096&&a!==(a=(G=(S=r[70])==null?void 0:S.gameModel)==null?void 0:G.thumbnail)&&e.set_custom_element_data(i,"alt",a),C[0]&4096&&u!==(u=r[70].gameName+"")&&e.set_data(W,u),C[0]&4096&&h!==(h=r[23](r[70].username)+"")&&e.set_data(p,h),C[0]&2097152&&z!==(z=r[21]("won")+"")&&e.set_data(B,z),C[0]&4096&&w!==(w=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(f,w),C[0]&268&&g!==(g=(r[8]?r[3]:r[2])+"")&&e.set_data(c,g),C[0]&131072&&m!==(m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))&&e.attr(t,"class",m)},d(L){L&&e.detach(t),r[47](null),M=!1,b()}}}function De(r){let t;function n(a,o){return a[15]||a[16]?Le:Ee}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[49](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[49](null)}}}function Ie(r,t,n){let i;e.component_subscribe(r,e.$format,s=>n(21,i=s));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:d="Today"}=t,{periodtop:u="Last7Days"}=t,{numberusersrecent:W="20"}=t,{numberuserstop:j="20"}=t,{amountlimit:F="1"}=t,{vendorCategory:h="All"}=t,{lang:p="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:x="true"}=t,{defaultcurrency:z=""}=t,{usercurrency:B=""}=t,{clientstyling:T=""}=t,{clientstylingurl:k=""}=t,{enableautoscroll:w=""}=t,{tabsorder:f=""}=t,{translationurl:E=""}=t,{winnersdatasources:N=""}=t,{hascustomstyling:g="false"}=t,{mbsource:c}=t,_,m,M=[],b=0,v=0,L=window.navigator.userAgent,C,O,R,S,G=!0,J=!1,X=!1,Y,D,V,I,Q=[],H=!1,U,$=0;const he=()=>{let s=new URL(E);fetch(s.href).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{le(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(ae).forEach(s=>{le(s,ae[s])});const ee=()=>{Q=N.split(",").map(function(y){return y.trim()});const s=new URL(`${l}/v1/casino/${m}-winners`);n(19,H=!0),s.searchParams.append("limit",m=="recent"?W:j),s.searchParams.append("specifiedCurrency",I),s.searchParams.append("period",m=="recent"?d:u),s.searchParams.append("language",p),s.searchParams.append("amountLimit",F),s.searchParams.append("vendorCategory",h),Q.forEach(y=>{s.searchParams.append("dataSource",y)}),setTimeout(()=>{fetch(s.href).then(y=>y.json()).then(y=>{n(12,M=[]),n(12,M=y.items.map(P=>P)),n(19,H=!1),setTimeout(()=>{We(),ne(),w=="true"&&(clearInterval(D),ye()),n(15,G=!1),_e()},5)})},1e3)},_e=()=>{const s=S.getRootNode().host;s.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:s}}))},K=s=>{m!==s&&(n(12,M=[]),n(11,m=s),ee())},be=s=>s.slice(0,2)+s.slice(2,-2).replace(/./g,"*")+s.slice(-2),te=(s,y,P,q)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:s,launchUrl:y,gameName:P,subVendor:q},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:`${s}`,userId:`${R||"Not logged in"}`})},ne=s=>{const y=[..._.children];Y=y.length,y.forEach((P,q)=>{P.style.transform=`translateX(${100*(s?q-s:q)}%)`}),setTimeout(()=>{n(17,X=!0)},10)},ye=()=>{b=0,v<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},re=()=>{ne(b)},We=()=>{$=U.offsetWidth,n(13,v=Math.round(_.offsetWidth/$))},ie=()=>{if(v>=M.length)return;const s=M.length;b===0?b=s-v:b-v<0?b=0:b=b-v,re()},Z=()=>{if(v>=M.length)return;const s=M.length;w=="true"&&(b===s-v?b=0:b++),w=="false"&&(b===s-v?b=0:s-v<b+v?b=s-v:b+=v),re()},we=()=>{Ae(p)},ve=()=>{n(8,O=!0),R=o},se=()=>{n(41,I=O?B:z)},Ce=()=>{g==="true"&&(!T&&!k&&S&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!T&&k&&n(16,J=!0))},ke=()=>{n(18,V=f.split(",")),n(11,m=V[0]),se(),n(15,G=!1)};e.onMount(()=>(n(14,C=e.isMobile(L)),()=>{clearInterval(D)}));const Me=()=>K("recent"),Fe=()=>K("top"),Se=()=>ie(),xe=()=>Z(),Be=s=>te(s.gameId,s.gameModel.launchUrl,s.gameModel.name,s.gameModel.subVendor);function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{U=s,n(20,U)})}function Ne(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(10,_)})}function ze(s){e.binding_callbacks[s?"unshift":"push"](()=>{S=s,n(9,S)})}return r.$$set=s=>{"endpoint"in s&&n(27,l=s.endpoint),"session"in s&&n(28,a=s.session),"userid"in s&&n(29,o=s.userid),"periodrecent"in s&&n(30,d=s.periodrecent),"periodtop"in s&&n(31,u=s.periodtop),"numberusersrecent"in s&&n(32,W=s.numberusersrecent),"numberuserstop"in s&&n(33,j=s.numberuserstop),"amountlimit"in s&&n(34,F=s.amountlimit),"vendorCategory"in s&&n(35,h=s.vendorCategory),"lang"in s&&n(36,p=s.lang),"isrecentavailable"in s&&n(0,A=s.isrecentavailable),"istopavailable"in s&&n(1,x=s.istopavailable),"defaultcurrency"in s&&n(2,z=s.defaultcurrency),"usercurrency"in s&&n(3,B=s.usercurrency),"clientstyling"in s&&n(4,T=s.clientstyling),"clientstylingurl"in s&&n(5,k=s.clientstylingurl),"enableautoscroll"in s&&n(6,w=s.enableautoscroll),"tabsorder"in s&&n(37,f=s.tabsorder),"translationurl"in s&&n(38,E=s.translationurl),"winnersdatasources"in s&&n(39,N=s.winnersdatasources),"hascustomstyling"in s&&n(40,g=s.hascustomstyling),"mbsource"in s&&n(7,c=s.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&1073741827|r.$$.dirty[1]&127&&A&&x&&d&&u&&W&&j&&F&&h&&p&&f&&ke(),r.$$.dirty[0]&268435456&&a&&ve(),r.$$.dirty[0]&268&&O&&(B||z)&&se(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&1280&&l&&N&&I&&ee(),r.$$.dirty[1]&32&&p&&we(),r.$$.dirty[1]&128&&E&&he(),r.$$.dirty[1]&512&&g&&Ce(),r.$$.dirty[0]&528&&T&&S&&e.setClientStyling(S,T),r.$$.dirty[0]&544&&k&&S&&e.setClientStylingURL(S,k),r.$$.dirty[0]&640&&S&&e.setStreamStyling(S,`${c}.Style`)},[A,x,z,B,T,k,w,c,O,S,_,m,M,v,C,G,J,X,V,H,U,i,K,be,te,ie,Z,l,a,o,d,u,W,j,F,h,p,f,E,N,g,I,Me,Fe,Se,xe,Be,Te,Ne,ze]}class ge extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ie,De,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:34,vendorCategory:35,lang:36,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:37,translationurl:38,winnersdatasources:39,hascustomstyling:40,mbsource:7},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[34]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[35]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[36]}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[37]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[38]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[39]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[40]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(ge,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{},mbsource:{}},[],[],!0);exports.default=ge;