@everymatrix/casino-lobby 1.62.0 → 1.62.2

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 (127) hide show
  1. package/components/CasinoCalendar-B4GcXKnc.cjs +22 -0
  2. package/components/{CasinoCalendar-Ds_auLbt.js → CasinoCalendar-CinFtvuW.js} +1099 -1078
  3. package/components/{CasinoCalendar-DwNK-Krf.js → CasinoCalendar-zRo_9Za0.js} +873 -852
  4. package/components/{CasinoCalendarDailyDetails-CfPB55Pq.cjs → CasinoCalendarDailyDetails-Cn37GUIj.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-C_XI9wqh.js → CasinoCalendarDailyDetails-DL8uHwSN.js} +49 -49
  6. package/components/{CasinoCalendarDailyDetails-Bsp_M9tm.js → CasinoCalendarDailyDetails-qkwXMyxI.js} +49 -49
  7. package/components/{CasinoCalendarDailyItem-DKNNV9h9.cjs → CasinoCalendarDailyItem-Bo9evLEj.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-DX4mmW--.js → CasinoCalendarDailyItem-DcqDKyz5.js} +33 -33
  9. package/components/{CasinoCalendarDailyItem-BZFRiT1-.js → CasinoCalendarDailyItem-DoK3veTp.js} +33 -33
  10. package/components/{CasinoCategoriesSlider-3nT06xt_.js → CasinoCategoriesSlider-BBVXEukg.js} +70 -70
  11. package/components/{CasinoCategoriesSlider-BpGXCaMb.js → CasinoCategoriesSlider-YxbN9BpC.js} +71 -71
  12. package/components/CasinoCategoriesSlider-n2yKGzdi.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-Dk4psn1e.js → CasinoCollectionsProviders-BvaxV9cb.js} +77 -77
  14. package/components/CasinoCollectionsProviders-CPX65G1M.cjs +1 -0
  15. package/components/{CasinoCollectionsProviders-BGPURFbw.js → CasinoCollectionsProviders-Q0qcn7b_.js} +58 -58
  16. package/components/{CasinoFavoritesSection-vRmZpBaX.cjs → CasinoFavoritesSection-B1f0uSCY.cjs} +1 -1
  17. package/components/{CasinoFavoritesSection-C0CsEcw_.js → CasinoFavoritesSection-CR--CUNF.js} +23 -23
  18. package/components/{CasinoFavoritesSection-Bc0fMYjF.js → CasinoFavoritesSection-DG1Vt4HX.js} +23 -23
  19. package/components/CasinoFilter-ChsEa9Bx.js +645 -0
  20. package/components/CasinoFilter-DbcntrTg.js +644 -0
  21. package/components/CasinoFilter-DhiwjMr2.cjs +1 -0
  22. package/components/{CasinoGamePage-JBZLEvnG.js → CasinoGamePage-C7LOIY6s.js} +783 -783
  23. package/components/{CasinoGamePage-ChuDdD-6.cjs → CasinoGamePage-CmF8v1Cv.cjs} +6 -6
  24. package/components/{CasinoGamePage-DJvIg2Lf.js → CasinoGamePage-DccB7M76.js} +746 -746
  25. package/components/CasinoGameThumbnail-BtO5lRYS.cjs +38 -0
  26. package/components/CasinoGameThumbnail-CZYWQzTY.js +1836 -0
  27. package/components/CasinoGameThumbnail-DZFIn3jP.js +1852 -0
  28. package/components/{CasinoGamesCategorySection-GOjPf7-0.cjs → CasinoGamesCategorySection-CQaK0CN3.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-foSq_Gr6.js → CasinoGamesCategorySection-CujQbdKb.js} +249 -249
  30. package/components/{CasinoGamesCategorySection-Ch0WIANe.js → CasinoGamesCategorySection-DFNU_Gsz.js} +332 -332
  31. package/components/{CasinoJackpotBanner-Iq9Ey3dk.js → CasinoJackpotBanner-BhgV3UvA.js} +131 -131
  32. package/components/{CasinoJackpotBanner-B2CksgLI.js → CasinoJackpotBanner-CkVmxLVH.js} +163 -163
  33. package/components/CasinoJackpotBanner-D5DqHlAR.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-DbANdFuL.js → CasinoLastPlayedSection-CE97lSQ6.js} +46 -46
  35. package/components/{CasinoLastPlayedSection-Bp4Lsv3s.js → CasinoLastPlayedSection-CTorwEQu.js} +46 -46
  36. package/components/{CasinoLastPlayedSection-cmf92qRb.cjs → CasinoLastPlayedSection-U57Y5miR.cjs} +1 -1
  37. package/components/{CasinoLobby-siRHhGuy.js → CasinoLobby-80EyIh80.js} +74 -74
  38. package/components/{CasinoLobby-CAeLQ5BE.cjs → CasinoLobby-C1-TdZOS.cjs} +1 -1
  39. package/components/{CasinoLobby-B8ucHOFp.js → CasinoLobby-hiqWHHHg.js} +73 -73
  40. package/components/{CasinoModal-DGa_AIvk.cjs → CasinoModal-7GCtnm_K.cjs} +1 -1
  41. package/components/{CasinoModal-Pt4nHM76.js → CasinoModal-DRoX6zuP.js} +43 -43
  42. package/components/{CasinoModal-e0s3ToYA.js → CasinoModal-DTJpGGWW.js} +43 -43
  43. package/components/{CasinoMostPlayedSection-Dk8rng9q.js → CasinoMostPlayedSection-CKuVf-En.js} +44 -44
  44. package/components/{CasinoMostPlayedSection-Cxmg0Bai.cjs → CasinoMostPlayedSection-Cptq1E56.cjs} +1 -1
  45. package/components/{CasinoMostPlayedSection-DuO2XrE8.js → CasinoMostPlayedSection-oxfCPIeN.js} +44 -44
  46. package/components/{CasinoMyGames-BXV5DJsV.cjs → CasinoMyGames-DhHqogUJ.cjs} +1 -1
  47. package/components/{CasinoMyGames-ZgZazIms.js → CasinoMyGames-gq_8VbcF.js} +47 -47
  48. package/components/{CasinoMyGames-DDhJiodD.js → CasinoMyGames-sC9ouRW_.js} +51 -51
  49. package/components/{CasinoPage-BfG57-mo.js → CasinoPage-BCAEtuBw.js} +77 -77
  50. package/components/{CasinoPage-DlenCL5e.js → CasinoPage-Bh2MrJ1P.js} +77 -77
  51. package/components/{CasinoPage-QkYfyrIK.cjs → CasinoPage-BzbZtzqt.cjs} +1 -1
  52. package/components/{CasinoRandomGame-CFxey-Hj.js → CasinoRandomGame-CbQvQHMi.js} +165 -166
  53. package/components/CasinoRandomGame-D4bGW7wH.cjs +2 -0
  54. package/components/{CasinoRandomGame-C-KByRhW.js → CasinoRandomGame-neIdOgUC.js} +201 -202
  55. package/components/{CasinoSearch-BjnGir-z.js → CasinoSearch-B65DzQEn.js} +69 -69
  56. package/components/{CasinoSearch-Ci-NvpMW.cjs → CasinoSearch-BYuM1VFZ.cjs} +1 -1
  57. package/components/{CasinoSearch-Cwi_srKc.js → CasinoSearch-d7Y-IpLr.js} +69 -69
  58. package/components/CasinoSlider-CotyciEv.cjs +1 -0
  59. package/components/{CasinoSlider-39QtmWWi.js → CasinoSlider-DGETBGTm.js} +177 -178
  60. package/components/{CasinoSlider-C7tccz8y.js → CasinoSlider-TfFHBss2.js} +228 -229
  61. package/components/{CasinoSort-DgtkEGDb.js → CasinoSort-B-2h6Htw.js} +110 -111
  62. package/components/{CasinoSort-BvuV6OEx.js → CasinoSort-Cmgp5JM5.js} +104 -103
  63. package/components/{CasinoSort-Big21575.cjs → CasinoSort-X6V8pABW.cjs} +1 -1
  64. package/components/{CasinoWinners-CAaxaJlt.js → CasinoWinners-BSQs3S54.js} +151 -151
  65. package/components/{CasinoWinners-YGc-x05i.cjs → CasinoWinners-CuaTZjz4.cjs} +1 -1
  66. package/components/{CasinoWinners-CUHNrZzd.js → CasinoWinners-CyDC7j5x.js} +138 -138
  67. package/components/{GeneralAnimationLoading-DgYbDns-.js → GeneralAnimationLoading-B1-7gNLR.js} +18 -18
  68. package/components/{GeneralAnimationLoading-GRiNTyhV.js → GeneralAnimationLoading-BV3DII71.js} +18 -18
  69. package/components/{GeneralAnimationLoading-DS00gkfg.cjs → GeneralAnimationLoading-DasE8cAb.cjs} +1 -1
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +1 -1
  74. package/stencil/{casino-play-random-game-C7EJAFXg.js → casino-play-random-game-6EpPs13y.js} +2 -2
  75. package/stencil/{casino-play-random-game-BXqbLgi6.js → casino-play-random-game-BUvMKyaw.js} +2 -2
  76. package/stencil/{casino-play-random-game-DjzHFI4S.cjs → casino-play-random-game-IjQER553.cjs} +2 -2
  77. package/stencil/index-97d17652-B8yQdy7J.js +542 -0
  78. package/stencil/index-97d17652-C616IYj2.js +558 -0
  79. package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
  80. package/stencil/index-ab3202d6-9zuW-dLG.js +575 -0
  81. package/stencil/index-ab3202d6-CGVciVSL.js +559 -0
  82. package/stencil/index-ab3202d6-c7Vf1NJ1.cjs +1 -0
  83. package/stencil/index-b2193545-60VR4wV3.js +519 -0
  84. package/stencil/index-b2193545-LYFajSbf.js +503 -0
  85. package/stencil/index-b2193545-nJb2J-aJ.cjs +1 -0
  86. package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
  87. package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
  88. package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
  89. package/stencil/ui-image-BSTP7sZO.js +7 -0
  90. package/stencil/ui-image-C3XzpHRB.cjs +1 -0
  91. package/stencil/ui-image-CYB9UUHg.js +25 -0
  92. package/stencil/ui-image_2-BXgptLvl.js +154 -0
  93. package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
  94. package/stencil/ui-image_2-Cyqb4u7k.js +154 -0
  95. package/stencil/{ui-skeleton-6d1c12ae-CrQ3Yom_.js → ui-skeleton-1cb75d00-BWUmrSx4.js} +4 -4
  96. package/stencil/{ui-skeleton-6d1c12ae-C2t65ZQ6.cjs → ui-skeleton-1cb75d00-C9ZtbYpX.cjs} +2 -2
  97. package/stencil/{ui-skeleton-6d1c12ae-D9cBvSa8.js → ui-skeleton-1cb75d00-D5AevndQ.js} +4 -4
  98. package/stencil/{ui-skeleton-BEBLuDwu.js → ui-skeleton-CDhNSEbX.js} +2 -2
  99. package/stencil/{ui-skeleton-D595e_7Y.cjs → ui-skeleton-CUmVjhrn.cjs} +1 -1
  100. package/stencil/{ui-skeleton-Z7IcB7dJ.js → ui-skeleton-D5ACyLBl.js} +2 -2
  101. package/components/CasinoCalendar-mfnJr7FR.cjs +0 -22
  102. package/components/CasinoCategoriesSlider-BcnId76H.cjs +0 -1
  103. package/components/CasinoCollectionsProviders-By4Ga1uR.cjs +0 -1
  104. package/components/CasinoFilter-CAtpk4a4.js +0 -645
  105. package/components/CasinoFilter-CtjgbEie.js +0 -646
  106. package/components/CasinoFilter-dn8i37bN.cjs +0 -1
  107. package/components/CasinoGameThumbnail-DjAdZZBA.js +0 -1883
  108. package/components/CasinoGameThumbnail-DrQpg0EE.js +0 -1867
  109. package/components/CasinoGameThumbnail-Ue2ReDmO.cjs +0 -38
  110. package/components/CasinoJackpotBanner-B_eZxp_D.cjs +0 -1
  111. package/components/CasinoRandomGame-Cs9kjDxc.cjs +0 -2
  112. package/components/CasinoSlider-DrdLTNh9.cjs +0 -1
  113. package/stencil/index-ab3202d6-CMLJROQf.cjs +0 -1
  114. package/stencil/index-ab3202d6-CqQYxn8J.js +0 -575
  115. package/stencil/index-ab3202d6-D5caeC50.js +0 -559
  116. package/stencil/index-b2193545-CJX9lIo2.js +0 -519
  117. package/stencil/index-b2193545-CbB5TWd2.js +0 -503
  118. package/stencil/index-b2193545-DQd_Uk3t.cjs +0 -1
  119. package/stencil/index-b7bbd57e-BO976FKE.js +0 -534
  120. package/stencil/index-b7bbd57e-CRts68dn.cjs +0 -1
  121. package/stencil/index-b7bbd57e-ChiHMF5W.js +0 -550
  122. package/stencil/ui-image-38c3c15f-C4x7O9FA.js +0 -39
  123. package/stencil/ui-image-38c3c15f-DQqFo7p2.cjs +0 -1
  124. package/stencil/ui-image-38c3c15f-DY2A0QkK.js +0 -39
  125. package/stencil/ui-image-CzWACXX6.js +0 -11
  126. package/stencil/ui-image-c5YAxRRi.cjs +0 -1
  127. package/stencil/ui-image-shmNN3yX.js +0 -29
@@ -0,0 +1,2 @@
1
+ "use strict";var W=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},c=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,c);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B4GcXKnc.cjs");function oe({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function B(n,t){e.addMessages(n,t)}function le(n){e.$locale.set(n)}const I={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"},"en-us":{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"}};function re(n){e.append_styles(n,"svelte-fd0a5p","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function P(n,t,a){const o=n.slice();return o[41]=t[a],o}const ie=n=>({}),J=n=>({});function D(n){let t,a,o,r,s,c,f;const p=n[23].close,g=e.create_slot(p,n,n[22],J),l=g||se();function _(d,y){return d[7]?me:de}let m=_(n),u=m(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,c||(f=e.listen(o,"click",n[12]),c=!0)},p(d,y){g&&g.p&&(!s||y[0]&4194304)&&e.update_slot_base(g,p,d,d[22],s?e.get_slot_changes(p,d[22],y,ie):e.get_all_dirty_from_scope(d[22]),J),m===(m=_(d))&&u?u.p(d,y):(u.d(1),u=m(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),c=!1,f()}}}function se(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function de(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function me(n){let t,a,o,r,s=e.ensure_array_like(n[4]),c=[];for(let l=0;l<s.length;l+=1)c[l]=A(P(n,s,l));function f(l,_){return l[6]?ue:ce}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<c.length;l+=1)c[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(o,null);n[24](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let m;for(m=0;m<s.length;m+=1){const u=P(l,s,m);c[m]?c[m].p(u,_):(c[m]=A(u),c[m].c(),c[m].m(o,null))}for(;m<c.length;m+=1)c[m].d(1);c.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(c,l),n[24](null),g.d()}}}function A(n){let t,a,o,r,s,c;return{c(){t=e.element("div"),a=e.element("img"),c=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,c)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ce(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function ue(n){let t,a,o,r,s=n[3].name+"",c,f,p,g=n[3].vendor.name+"",l,_,m,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
2
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,a=e.space(),o=e.element("div"),r=e.element("p"),c=e.text(s),f=e.space(),p=e.element("p"),l=e.text(g),_=e.space(),m=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(r,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(m,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(w,b){e.insert(w,t,b),e.insert(w,a,b),e.insert(w,o,b),e.append(o,r),e.append(r,c),e.append(o,f),e.append(o,p),e.append(p,l),e.append(o,_),e.append(o,m),e.append(m,d),y||(R=[e.listen(t,"click",n[25]),e.listen(m,"click",n[26])],y=!0)},p(w,b){b[0]&8&&s!==(s=w[3].name+"")&&e.set_data(c,s),b[0]&8&&g!==(g=w[3].vendor.name+"")&&e.set_data(l,g),b[0]&512&&u!==(u=w[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(w){w&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function pe(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("playRandomGame")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function ge(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,r){e.insert(o,t,r),e.append(t,a)},p(o,r){r[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function fe(n){let t,a,o,r,s,c,f,p,g,l=n[5]&&D(n);function _(d,y){if(d[1])return ge;if(!d[1])return pe}let m=_(n),u=m&&m(n);return{c(){t=e.element("div"),l&&l.c(),a=e.space(),o=e.element("div"),r=e.element("button"),u&&u.c(),s=e.space(),c=e.element("span"),e.attr(c,"class","RandomButtonIcon"),e.attr(r,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper")},m(d,y){e.insert(d,t,y),l&&l.m(t,null),e.append(t,a),e.append(t,o),e.append(o,r),u&&u.m(r,null),e.append(r,s),e.append(r,c),c.innerHTML=n[0],n[28](t),f=!0,p||(g=e.listen(r,"click",n[27]),p=!0)},p(d,y){d[5]?l?(l.p(d,y),y[0]&32&&e.transition_in(l,1)):(l=D(d),l.c(),e.transition_in(l,1),l.m(t,a)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros()),m===(m=_(d))&&u?u.p(d,y):(u&&u.d(1),u=m&&m(d),u&&(u.c(),u.m(r,s))),(!f||y[0]&1)&&(c.innerHTML=d[0])},i(d){f||(e.transition_in(l),f=!0)},o(d){e.transition_out(l),f=!1},d(d){d&&e.detach(t),l&&l.d(),u&&u.d(),n[28](null),p=!1,g()}}}function he(n,t,a){let o;e.component_subscribe(n,e.$format,i=>a(9,o=i));let{$$slots:r={},$$scope:s}=t,{endpoint:c=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:l=""}=t,{buttontext:_=""}=t,{translationurl:m=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,{mbsource:R}=t,w=[],b="",k,M=!1,S=!1,F=!1,O=window.navigator.userAgent,G,v,j,L,N=null;oe({withLocale:"en",translations:{}});const q=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(x=>{B(x,h[x])})}).catch(h=>{console.log(h)})};Object.keys(I).forEach(i=>{B(i,I[i])});const U=()=>{let i=new URL(`${c}/v1/casino/games`);i.searchParams.append("platform",e.getDevice(O)),i.searchParams.append("datasource",f),i.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&i.searchParams.append("filter",`groups=${y}`),i.searchParams.append("expand","categories,vendor"),i.searchParams.append("pagination","offset=0,limit=1000"),fetch(i.href).then(h=>h.json()).then(h=>{w=h.items,w.length?(a(4,k=E(w.slice(0,19))),a(7,F=!0)):(a(4,k=[]),a(7,F=!1))}).catch(h=>{console.log(h),a(7,F=!1)})},E=i=>{const h=Y(i);return h.concat(h)},V=()=>W(this,null,function*(){yield e.tick(),L=Math.floor(Math.random()*(k.length/2))+k.length/2,a(3,b=k[L]),j=v.children[L]}),T=()=>W(this,null,function*(){a(6,S=!1),a(5,M=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield V();const i=window.getComputedStyle(v).getPropertyValue("gap"),h=parseInt(i,10)||0,C=(j.offsetHeight+h)*L,ae=[{transform:"translateX(0px)"},{filter:"blur(5px)"},{transform:`translateY(-${C}px)`}],ne={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};N=v.animate(ae,ne),N.onfinish=()=>{a(6,S=!0)}}),Y=i=>{const h=structuredClone(i);let x=h.length,C;for(;x!=0;)C=Math.floor(Math.random()*x),x--,[h[x],h[C]]=[h[C],h[x]];return h},z=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,M=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},X=()=>{a(5,M=!1),window.postMessage({type:"RandomWidgetState",state:M},window.location.href)},Z=()=>{le(g)};e.onMount(()=>()=>{});function K(i){e.binding_callbacks[i?"unshift":"push"](()=>{v=i,a(8,v)})}const Q=()=>T(),$=()=>z(),ee=()=>T();function te(i){e.binding_callbacks[i?"unshift":"push"](()=>{G=i,a(2,G)})}return n.$$set=i=>{"endpoint"in i&&a(13,c=i.endpoint),"datasource"in i&&a(14,f=i.datasource),"gameevent"in i&&a(15,p=i.gameevent),"lang"in i&&a(16,g=i.lang),"randombuttonicon"in i&&a(0,l=i.randombuttonicon),"buttontext"in i&&a(1,_=i.buttontext),"translationurl"in i&&a(17,m=i.translationurl),"clientstyling"in i&&a(18,u=i.clientstyling),"clientstylingurl"in i&&a(19,d=i.clientstylingurl),"filteredrandomgamecategories"in i&&a(20,y=i.filteredrandomgamecategories),"mbsource"in i&&a(21,R=i.mbsource),"$$scope"in i&&a(22,s=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&Z(),n.$$.dirty[0]&131072&&m&&q(),n.$$.dirty[0]&24576&&c&&f&&U(),n.$$.dirty[0]&262148&&u&&G&&e.setClientStyling(G,u),n.$$.dirty[0]&524292&&d&&G&&e.setClientStylingURL(G,d),n.$$.dirty[0]&2097156&&G&&e.setStreamStyling(G,`${R}.Style`)},[l,_,G,b,k,M,S,F,v,o,T,z,X,c,f,p,g,m,u,d,y,R,s,r,K,Q,$,ee,te]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,fe,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20,mbsource:21},re,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(H,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{},mbsource:{}},["close"],[],!0);exports.default=H;