@everymatrix/casino-lobby 1.63.3 → 1.64.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 (99) hide show
  1. package/components/{CasinoCalendar-Csi0tXv8.js → CasinoCalendar-BONyZpYE.js} +121 -121
  2. package/components/{CasinoCalendar-B7GhaaB1.cjs → CasinoCalendar-DglR4hXB.cjs} +4 -4
  3. package/components/{CasinoCalendar-7kqLzYIJ.js → CasinoCalendar-IdM-lXMG.js} +208 -208
  4. package/components/CasinoCalendarDailyDetails-Cprq9q2q.js +567 -0
  5. package/components/CasinoCalendarDailyDetails-MqRoHEO5.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-Nhcvxsh6.js +567 -0
  7. package/components/CasinoCalendarDailyItem-DLR65l5h.cjs +1 -0
  8. package/components/{CasinoCalendarDailyItem-DBZbBU6V.js → CasinoCalendarDailyItem-j9fcZJnF.js} +45 -45
  9. package/components/{CasinoCalendarDailyItem-CE8ew-fF.js → CasinoCalendarDailyItem-s-bZS2Jp.js} +45 -45
  10. package/components/CasinoCategoriesSlider--HeFAg7z.cjs +1 -0
  11. package/components/{CasinoCategoriesSlider-CdwDeUzc.js → CasinoCategoriesSlider-BwaHpYXA.js} +177 -181
  12. package/components/{CasinoCategoriesSlider-D4LBBsWH.js → CasinoCategoriesSlider-Daxulx9q.js} +177 -181
  13. package/components/CasinoCollectionsProviders-B_huGyx5.cjs +1 -0
  14. package/components/{CasinoCollectionsProviders-BbBtM28b.js → CasinoCollectionsProviders-DCfKtqH3.js} +118 -118
  15. package/components/{CasinoCollectionsProviders-Bpb7sM1P.js → CasinoCollectionsProviders-QF8UYQEH.js} +122 -122
  16. package/components/{CasinoFavoritesSection-DoU7Ci-7.js → CasinoFavoritesSection-C8XELxGM.js} +23 -23
  17. package/components/{CasinoFavoritesSection-Cl-6cioz.js → CasinoFavoritesSection-CqeUShM0.js} +23 -23
  18. package/components/{CasinoFavoritesSection-BTM3dZNo.cjs → CasinoFavoritesSection-D-UkXryn.cjs} +1 -1
  19. package/components/{CasinoFilter-jbZAMnJ7.cjs → CasinoFilter-1GsfPr4q.cjs} +1 -1
  20. package/components/{CasinoFilter-BN4Wtk2h.js → CasinoFilter-Dm91I-UU.js} +111 -111
  21. package/components/{CasinoFilter-Ct-8nr2l.js → CasinoFilter-hFLJX_M2.js} +108 -108
  22. package/components/{CasinoGameThumbnail-BgaKFGIJ.cjs → CasinoGameThumbnail-BvOIlOOi.cjs} +2 -2
  23. package/components/{CasinoGameThumbnail-CDstK8Y3.js → CasinoGameThumbnail-CQSUN92B.js} +3 -3
  24. package/components/{CasinoGameThumbnail-CiaYYLXu.js → CasinoGameThumbnail-CXKT4Qo5.js} +3 -3
  25. package/components/CasinoGamesCategorySection-BQlZuqHv.js +3202 -0
  26. package/components/CasinoGamesCategorySection-CKD6dg5N.cjs +1 -0
  27. package/components/CasinoGamesCategorySection-DFvVele9.js +3170 -0
  28. package/components/{CasinoJackpotBanner-DX2K3Sso.js → CasinoJackpotBanner-BpAtani6.js} +108 -108
  29. package/components/{CasinoJackpotBanner-C5x3Mdln.js → CasinoJackpotBanner-Da7u-e53.js} +100 -100
  30. package/components/{CasinoJackpotBanner-BjEKJiKG.cjs → CasinoJackpotBanner-DhRXbZof.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-DgtwB0LY.js → CasinoLastPlayedSection-CLQF0gH3.js} +9 -9
  32. package/components/{CasinoLastPlayedSection-p0ilcCTC.js → CasinoLastPlayedSection-Cn_6Tyrh.js} +9 -9
  33. package/components/{CasinoLastPlayedSection-CI_0ECL-.cjs → CasinoLastPlayedSection-r9eIV0bz.cjs} +1 -1
  34. package/components/{CasinoLobby-CseOv8Yj.js → CasinoLobby-BBAE1WZB.js} +135 -120
  35. package/components/CasinoLobby-CfPzMoKq.cjs +1 -0
  36. package/components/{CasinoLobby-DG6dQueF.js → CasinoLobby-CnppP-Q0.js} +135 -120
  37. package/components/{CasinoMostPlayedSection-DkMxb2tp.js → CasinoMostPlayedSection-CD3McVCV.js} +21 -21
  38. package/components/{CasinoMostPlayedSection-Y7GkBB4c.js → CasinoMostPlayedSection-CEcrV8uf.js} +21 -21
  39. package/components/{CasinoMostPlayedSection-DgjP9n0o.cjs → CasinoMostPlayedSection-CYbsPd70.cjs} +1 -1
  40. package/components/{CasinoMyGames-bw2jzPSz.cjs → CasinoMyGames-BYorv67w.cjs} +1 -1
  41. package/components/{CasinoMyGames-iW34NgHs.js → CasinoMyGames-Clh_ZKUG.js} +39 -39
  42. package/components/{CasinoMyGames-lcaVAF4Y.js → CasinoMyGames-CsEp2Q-H.js} +43 -43
  43. package/components/{CasinoPage-DlCmgNUk.js → CasinoPage-BZesrUyc.js} +189 -189
  44. package/components/{CasinoPage-NFQopbTN.js → CasinoPage-CPmBzeSF.js} +189 -189
  45. package/components/{CasinoPage-D1nj7ju_.cjs → CasinoPage-CxXdS_KY.cjs} +1 -1
  46. package/components/{CasinoRandomGame-DX--_O5S.js → CasinoRandomGame-FkDPrD9e.js} +52 -52
  47. package/components/{CasinoRandomGame-D5rbkfAP.cjs → CasinoRandomGame-mZ24kU0C.cjs} +2 -2
  48. package/components/{CasinoRandomGame-BjmFZ_DM.js → CasinoRandomGame-pFW4WJwl.js} +53 -53
  49. package/components/{CasinoSearch-DZXW71Hu.js → CasinoSearch--m6RPf0J.js} +52 -52
  50. package/components/{CasinoSearch-CVPUjeCK.cjs → CasinoSearch-DUQJhn3X.cjs} +1 -1
  51. package/components/{CasinoSearch--VdAWMEG.js → CasinoSearch-DZTQwy97.js} +50 -50
  52. package/components/CasinoSlider-BR0_If4T.js +797 -0
  53. package/components/{CasinoSlider-8av7ygLi.js → CasinoSlider-CtMPHXUh.js} +136 -136
  54. package/components/CasinoSlider-e9OjOUTr.cjs +1 -0
  55. package/components/{CasinoSort-BJup_vct.js → CasinoSort-CFaQhCeN.js} +32 -32
  56. package/components/{CasinoSort-CV4P6WUH.cjs → CasinoSort-CWyjQZ3C.cjs} +1 -1
  57. package/components/{CasinoSort-Dn39QhX6.js → CasinoSort-CjTUg9jC.js} +32 -32
  58. package/components/{CasinoWinners-DY-XeuDT.js → CasinoWinners-CJI2fDKO.js} +151 -151
  59. package/components/{CasinoWinners-BceQ59PS.js → CasinoWinners-CvtwPY7V.js} +157 -157
  60. package/components/CasinoWinners-DgXBOTeI.cjs +1 -0
  61. package/components/{GeneralAnimationLoading-B-qNTlQZ.cjs → GeneralAnimationLoading-Bgob1QKM.cjs} +1 -1
  62. package/components/{GeneralAnimationLoading-Bu3UyKqx.js → GeneralAnimationLoading-CcIPxHUX.js} +6 -6
  63. package/components/{GeneralAnimationLoading-HRytW6Io.js → GeneralAnimationLoading-cKyjkdOs.js} +6 -6
  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-BYqESYAt.js → casino-play-random-game-BLl4u8GF.js} +8 -6
  69. package/stencil/{casino-play-random-game-QQFB7p9f.js → casino-play-random-game-C0BJMsSD.js} +8 -6
  70. package/stencil/{casino-play-random-game-cxzdDqDs.cjs → casino-play-random-game-Dkk0BTsb.cjs} +8 -6
  71. package/stencil/{index-97d17652-DYdohc-6.js → index-97d17652-BEnqZAxL.js} +1 -1
  72. package/stencil/{index-97d17652-_wmLv9aI.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
  73. package/stencil/{index-97d17652-__SOROv4.js → index-97d17652-WK_DbPS4.js} +1 -1
  74. package/stencil/{index-ab3202d6-CvVYHCZs.js → index-ab3202d6-CZKlrnZf.js} +1 -1
  75. package/stencil/{index-ab3202d6-ClNgaMg-.js → index-ab3202d6-ClDKsCJv.js} +1 -1
  76. package/stencil/{index-ab3202d6-4wRb7_uS.cjs → index-ab3202d6-DFbwTHas.cjs} +1 -1
  77. package/stencil/{ui-image-NUzlC2fG.cjs → ui-image-DLXwOzO2.cjs} +1 -1
  78. package/stencil/{ui-image-B5jMTPJS.js → ui-image-YGEFo8L0.js} +1 -1
  79. package/stencil/{ui-image-d1314fef-Juydh_ii.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
  80. package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
  81. package/stencil/{ui-image-d1314fef-CQsVQg0l.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
  82. package/stencil/{ui-image-DZfaeMnX.js → ui-image-w38Eao2h.js} +1 -1
  83. package/stencil/{ui-image_2-OR-2QD6I.js → ui-image_2-B56t6kXT.js} +2 -2
  84. package/stencil/{ui-image_2-BK3m47_O.js → ui-image_2-BncuYpLi.js} +2 -2
  85. package/stencil/{ui-image_2-DbIvpcwA.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  86. package/components/CasinoCalendarDailyDetails-BovhUzXq.js +0 -694
  87. package/components/CasinoCalendarDailyDetails-DRn6XNlS.cjs +0 -1
  88. package/components/CasinoCalendarDailyDetails-MY6BRTWf.js +0 -694
  89. package/components/CasinoCalendarDailyItem-i0FRrjoK.cjs +0 -1
  90. package/components/CasinoCategoriesSlider-DltcuPbJ.cjs +0 -1
  91. package/components/CasinoCollectionsProviders-BzpUMq8J.cjs +0 -1
  92. package/components/CasinoGamesCategorySection-8tZbstvF.cjs +0 -1
  93. package/components/CasinoGamesCategorySection-DJohdErr.js +0 -3139
  94. package/components/CasinoGamesCategorySection-Dovm2bNV.js +0 -3170
  95. package/components/CasinoLobby-BxdCeX3T.cjs +0 -1
  96. package/components/CasinoSlider-DpYcXyrl.js +0 -797
  97. package/components/CasinoSlider-chctBr3W.cjs +0 -1
  98. package/components/CasinoWinners-DMlbI9Rh.cjs +0 -1
  99. package/stencil/ui-image-d1314fef-Dwwl-kWw.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { $ as H, U as be, a as we, S as _e, i as Ge, s as Re, f as v, b as xe, d as x, t as O, c as J, g as ke, e as ve, h as k, p as h, A as D, j as w, B as F, r as u, k as Me, o as Ce, u as Fe, x as Le, y as Se, z as Te, O as We, C as V, n as je, F as Y, m as L, q as S, Q as Ne, v as K, w as ze, D as Q, R as Be, J as Ie, K as Je, L as De, M as Pe, N as Ae } from "./CasinoCalendar-7kqLzYIJ.js";
1
+ import { $ as H, Q as be, a as we, S as _e, i as Ge, s as Re, f as v, b as xe, d as x, t as O, c as J, g as ke, e as ve, h as k, p as h, A as P, j as w, B as C, r as u, k as Me, o as Fe, u as Ce, x as Le, y as Se, z as We, M as Te, C as V, n as je, F as Y, m as L, q as S, N as Ne, v as K, w as Be, D as Q, O as ze, H as Ie, I as Je, J as Pe, K as Ae, L as De } from "./CasinoCalendar-IdM-lXMG.js";
2
2
  function He({ withLocale: a, translations: e }) {
3
3
  H.subscribe((t) => {
4
4
  t == null && (be.set(e), H.set(a));
@@ -84,26 +84,26 @@ const Z = {
84
84
  noGames: "There are no random games to play"
85
85
  }
86
86
  };
87
- function Ue(a) {
88
- xe(a, "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}");
87
+ function Ee(a) {
88
+ xe(a, "svelte-kfgfhx", "*,*::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}.CasinoPlayRandomGameWrapper{min-height:0}.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, #22B04E));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{margin:5px 0;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, #22B04E));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, #22B04E));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}");
89
89
  }
90
90
  function $(a, e, t) {
91
91
  const n = a.slice();
92
92
  return n[41] = e[t], n;
93
93
  }
94
- const qe = (a) => ({}), ee = (a) => ({});
94
+ const Ue = (a) => ({}), ee = (a) => ({});
95
95
  function te(a) {
96
96
  let e, t, n, l, s, c, f;
97
97
  const p = (
98
98
  /*#slots*/
99
99
  a[23].close
100
- ), g = Fe(
100
+ ), g = Ce(
101
101
  p,
102
102
  a,
103
103
  /*$$scope*/
104
104
  a[22],
105
105
  ee
106
- ), o = g || Ee();
106
+ ), o = g || qe();
107
107
  function _(r, b) {
108
108
  return (
109
109
  /*hasRandomGames*/
@@ -113,10 +113,10 @@ function te(a) {
113
113
  let m = _(a), d = m(a);
114
114
  return {
115
115
  c() {
116
- e = w("div"), t = w("div"), n = w("span"), o && o.c(), l = F(), d.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(t, "class", "ModalContainer"), u(e, "class", "ModalWindow");
116
+ e = w("div"), t = w("div"), n = w("span"), o && o.c(), l = C(), d.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(t, "class", "ModalContainer"), u(e, "class", "ModalWindow");
117
117
  },
118
118
  m(r, b) {
119
- k(r, e, b), h(e, t), h(t, n), o && o.m(n, null), h(t, l), d.m(t, null), s = !0, c || (f = D(
119
+ k(r, e, b), h(e, t), h(t, n), o && o.m(n, null), h(t, l), d.m(t, null), s = !0, c || (f = P(
120
120
  n,
121
121
  "click",
122
122
  /*closeModal*/
@@ -131,12 +131,12 @@ function te(a) {
131
131
  r,
132
132
  /*$$scope*/
133
133
  r[22],
134
- s ? Te(
134
+ s ? We(
135
135
  p,
136
136
  /*$$scope*/
137
137
  r[22],
138
138
  b,
139
- qe
139
+ Ue
140
140
  ) : Se(
141
141
  /*$$scope*/
142
142
  r[22]
@@ -155,7 +155,7 @@ function te(a) {
155
155
  }
156
156
  };
157
157
  }
158
- function Ee(a) {
158
+ function qe(a) {
159
159
  let e, t;
160
160
  return {
161
161
  c() {
@@ -211,7 +211,7 @@ function Ye(a) {
211
211
  e = w("div"), t = w("main"), n = w("div");
212
212
  for (let o = 0; o < c.length; o += 1)
213
213
  c[o].c();
214
- l = F(), g.c(), u(n, "class", "GamesContainer"), u(t, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
214
+ l = C(), g.c(), u(n, "class", "GamesContainer"), u(t, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
215
215
  },
216
216
  m(o, _) {
217
217
  k(o, e, _), h(e, t), h(t, n);
@@ -238,7 +238,7 @@ function Ye(a) {
238
238
  p === (p = f(o)) && g ? g.p(o, _) : (g.d(1), g = p(o), g && (g.c(), g.m(e, null)));
239
239
  },
240
240
  d(o) {
241
- o && x(e), ze(c, o), a[24](null), g.d();
241
+ o && x(e), Be(c, o), a[24](null), g.d();
242
242
  }
243
243
  };
244
244
  }
@@ -246,7 +246,7 @@ function ae(a) {
246
246
  let e, t, n, l, s, c;
247
247
  return {
248
248
  c() {
249
- e = w("div"), t = w("img"), c = F(), u(t, "class", "RandomGameImage"), Q(t.src, n = /*game*/
249
+ e = w("div"), t = w("img"), c = C(), u(t, "class", "RandomGameImage"), Q(t.src, n = /*game*/
250
250
  a[41].thumbnail) || u(t, "src", n), u(t, "alt", l = /*game*/
251
251
  a[41].name), u(t, "title", s = /*game*/
252
252
  a[41].name), u(e, "class", "item");
@@ -300,21 +300,21 @@ function Qe(a) {
300
300
  ), o, _, m, d = (
301
301
  /*$_*/
302
302
  a[9]("playNowRandomGame") + ""
303
- ), r, b, T;
303
+ ), r, b, W;
304
304
  return {
305
305
  c() {
306
306
  e = w("button"), e.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));}
307
- </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>`, t = F(), n = w("div"), l = w("p"), c = S(s), f = F(), p = w("p"), o = S(g), _ = F(), m = w("button"), r = S(d), u(e, "class", "RandomTryAgain"), u(l, "class", "RandomGameTitle"), u(p, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
307
+ </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>`, t = C(), n = w("div"), l = w("p"), c = S(s), f = C(), p = w("p"), o = S(g), _ = C(), m = w("button"), r = S(d), u(e, "class", "RandomTryAgain"), u(l, "class", "RandomGameTitle"), u(p, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
308
308
  },
309
309
  m(R, G) {
310
- k(R, e, G), k(R, t, G), k(R, n, G), h(n, l), h(l, c), h(n, f), h(n, p), h(p, o), h(n, _), h(n, m), h(m, r), b || (T = [
311
- D(
310
+ k(R, e, G), k(R, t, G), k(R, n, G), h(n, l), h(l, c), h(n, f), h(n, p), h(p, o), h(n, _), h(n, m), h(m, r), b || (W = [
311
+ P(
312
312
  e,
313
313
  "click",
314
314
  /*click_handler*/
315
315
  a[25]
316
316
  ),
317
- D(
317
+ P(
318
318
  m,
319
319
  "click",
320
320
  /*click_handler_1*/
@@ -332,7 +332,7 @@ function Qe(a) {
332
332
  R[9]("playNowRandomGame") + "") && L(r, d);
333
333
  },
334
334
  d(R) {
335
- R && (x(e), x(t), x(n)), b = !1, Be(T);
335
+ R && (x(e), x(t), x(n)), b = !1, ze(W);
336
336
  }
337
337
  };
338
338
  }
@@ -401,11 +401,11 @@ function $e(a) {
401
401
  let m = _(a), d = m && m(a);
402
402
  return {
403
403
  c() {
404
- e = w("div"), o && o.c(), t = F(), n = w("div"), l = w("button"), d && d.c(), s = F(), c = w("span"), u(c, "class", "RandomButtonIcon"), u(l, "class", "RandomButton"), u(n, "class", "RandomButtonWrapper");
404
+ e = w("div"), o && o.c(), t = C(), n = w("div"), l = w("button"), d && d.c(), s = C(), c = w("span"), u(c, "class", "RandomButtonIcon"), u(l, "class", "RandomButton"), u(n, "class", "RandomButtonWrapper");
405
405
  },
406
406
  m(r, b) {
407
407
  k(r, e, b), o && o.m(e, null), h(e, t), h(e, n), h(n, l), d && d.m(l, null), h(l, s), h(l, c), c.innerHTML = /*randombuttonicon*/
408
- a[0], a[28](e), f = !0, p || (g = D(
408
+ a[0], a[28](e), f = !0, p || (g = P(
409
409
  l,
410
410
  "click",
411
411
  /*click_handler_2*/
@@ -434,13 +434,13 @@ function $e(a) {
434
434
  }
435
435
  function et(a, e, t) {
436
436
  let n;
437
- Me(a, Ae, (i) => t(9, n = i));
438
- let { $$slots: l = {}, $$scope: s } = e, { endpoint: c = "" } = e, { datasource: f = "" } = e, { gameevent: p = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: r = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: T } = e, R = [], G = "", W, N = !1, P = !1, B = !1, ne = window.navigator.userAgent, M, j, U, I, q = null;
437
+ Me(a, De, (i) => t(9, n = i));
438
+ let { $$slots: l = {}, $$scope: s } = e, { endpoint: c = "" } = e, { datasource: f = "" } = e, { gameevent: p = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: r = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: W } = e, R = [], G = "", T, N = !1, A = !1, z = !1, ne = window.navigator.userAgent, M, j, E, I, U = null;
439
439
  He({ withLocale: "en", translations: {} });
440
440
  const oe = () => {
441
441
  fetch(m).then((y) => y.json()).then((y) => {
442
- Object.keys(y).forEach((C) => {
443
- X(C, y[C]);
442
+ Object.keys(y).forEach((F) => {
443
+ X(F, y[F]);
444
444
  });
445
445
  }).catch((y) => {
446
446
  console.log(y);
@@ -451,39 +451,39 @@ function et(a, e, t) {
451
451
  });
452
452
  const le = () => {
453
453
  let i = new URL(`${c}/v1/casino/games`);
454
- i.searchParams.append("platform", We(ne)), i.searchParams.append("datasource", f), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && i.searchParams.append("filter", `groups=${b}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
455
- R = y.items, R.length ? (t(4, W = ie(R.slice(0, 19))), t(7, B = !0)) : (t(4, W = []), t(7, B = !1));
454
+ i.searchParams.append("platform", Te(ne)), i.searchParams.append("datasource", f), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && i.searchParams.append("filter", `groups=${b}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
455
+ R = y.items, R.length ? (t(4, T = ie(R.slice(0, 19))), t(7, z = !0)) : (t(4, T = []), t(7, z = !1));
456
456
  }).catch((y) => {
457
- console.log(y), t(7, B = !1);
457
+ console.log(y), t(7, z = !1);
458
458
  });
459
459
  }, ie = (i) => {
460
460
  const y = se(i);
461
461
  return y.concat(y);
462
462
  }, re = async () => {
463
- await Ne(), I = Math.floor(Math.random() * (W.length / 2)) + W.length / 2, t(3, G = W[I]), U = j.children[I];
464
- }, A = async () => {
465
- t(6, P = !1), t(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await re();
466
- const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, z = (U.offsetHeight + y) * I, he = [
463
+ await Ne(), I = Math.floor(Math.random() * (T.length / 2)) + T.length / 2, t(3, G = T[I]), E = j.children[I];
464
+ }, D = async () => {
465
+ t(6, A = !1), t(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), await re();
466
+ const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, B = (E.offsetHeight + y) * I, he = [
467
467
  { transform: "translateX(0px)" },
468
468
  { filter: "blur(5px)" },
469
469
  {
470
- transform: `translateY(-${z}px)`
470
+ transform: `translateY(-${B}px)`
471
471
  }
472
472
  ], ye = {
473
473
  duration: 2e3,
474
474
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
475
475
  fill: "forwards"
476
476
  };
477
- q = j.animate(he, ye), q.onfinish = () => {
478
- t(6, P = !0);
477
+ U = j.animate(he, ye), U.onfinish = () => {
478
+ t(6, A = !0);
479
479
  };
480
480
  }, se = (i) => {
481
481
  const y = structuredClone(i);
482
- let C = y.length, z;
483
- for (; C != 0; )
484
- z = Math.floor(Math.random() * C), C--, [y[C], y[z]] = [y[z], y[C]];
482
+ let F = y.length, B;
483
+ for (; F != 0; )
484
+ B = Math.floor(Math.random() * F), F--, [y[F], y[B]] = [y[B], y[F]];
485
485
  return y;
486
- }, E = () => {
486
+ }, q = () => {
487
487
  window.postMessage(
488
488
  {
489
489
  type: p,
@@ -499,21 +499,21 @@ function et(a, e, t) {
499
499
  }, de = () => {
500
500
  Oe(g);
501
501
  };
502
- Ce(() => () => {
502
+ Fe(() => () => {
503
503
  });
504
504
  function ce(i) {
505
505
  V[i ? "unshift" : "push"](() => {
506
506
  j = i, t(8, j);
507
507
  });
508
508
  }
509
- const ue = () => A(), ge = () => E(), fe = () => A();
509
+ const ue = () => D(), ge = () => q(), fe = () => D();
510
510
  function pe(i) {
511
511
  V[i ? "unshift" : "push"](() => {
512
512
  M = i, t(2, M);
513
513
  });
514
514
  }
515
515
  return a.$$set = (i) => {
516
- "endpoint" in i && t(13, c = i.endpoint), "datasource" in i && t(14, f = i.datasource), "gameevent" in i && t(15, p = i.gameevent), "lang" in i && t(16, g = i.lang), "randombuttonicon" in i && t(0, o = i.randombuttonicon), "buttontext" in i && t(1, _ = i.buttontext), "translationurl" in i && t(17, m = i.translationurl), "clientstyling" in i && t(18, d = i.clientstyling), "clientstylingurl" in i && t(19, r = i.clientstylingurl), "filteredrandomgamecategories" in i && t(20, b = i.filteredrandomgamecategories), "mbsource" in i && t(21, T = i.mbsource), "$$scope" in i && t(22, s = i.$$scope);
516
+ "endpoint" in i && t(13, c = i.endpoint), "datasource" in i && t(14, f = i.datasource), "gameevent" in i && t(15, p = i.gameevent), "lang" in i && t(16, g = i.lang), "randombuttonicon" in i && t(0, o = i.randombuttonicon), "buttontext" in i && t(1, _ = i.buttontext), "translationurl" in i && t(17, m = i.translationurl), "clientstyling" in i && t(18, d = i.clientstyling), "clientstylingurl" in i && t(19, r = i.clientstylingurl), "filteredrandomgamecategories" in i && t(20, b = i.filteredrandomgamecategories), "mbsource" in i && t(21, W = i.mbsource), "$$scope" in i && t(22, s = i.$$scope);
517
517
  }, a.$$.update = () => {
518
518
  a.$$.dirty[0] & /*lang*/
519
519
  65536 && g && de(), a.$$.dirty[0] & /*translationurl*/
@@ -521,20 +521,20 @@ function et(a, e, t) {
521
521
  24576 && c && f && le(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
522
522
  262148 && d && M && Ie(M, d), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
523
523
  524292 && r && M && Je(M, r), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
524
- 2097156 && M && De(M, `${T}.Style`);
524
+ 2097156 && M && Pe(M, `${W}.Style`);
525
525
  }, [
526
526
  o,
527
527
  _,
528
528
  M,
529
529
  G,
530
- W,
530
+ T,
531
531
  N,
532
- P,
533
- B,
532
+ A,
533
+ z,
534
534
  j,
535
535
  n,
536
- A,
537
- E,
536
+ D,
537
+ q,
538
538
  me,
539
539
  c,
540
540
  f,
@@ -544,7 +544,7 @@ function et(a, e, t) {
544
544
  d,
545
545
  r,
546
546
  b,
547
- T,
547
+ W,
548
548
  s,
549
549
  l,
550
550
  ce,
@@ -575,7 +575,7 @@ class tt extends _e {
575
575
  filteredrandomgamecategories: 20,
576
576
  mbsource: 21
577
577
  },
578
- Ue,
578
+ Ee,
579
579
  [-1, -1]
580
580
  );
581
581
  }
@@ -646,7 +646,7 @@ class tt extends _e {
646
646
  this.$$set({ mbsource: e }), v();
647
647
  }
648
648
  }
649
- Pe(tt, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
649
+ Ae(tt, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
650
650
  export {
651
651
  tt as default
652
652
  };
@@ -1,2 +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-B7GhaaB1.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;
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-DglR4hXB.cjs");function oe({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(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-kfgfhx","*,*::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}.CasinoPlayRandomGameWrapper{min-height:0}.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, #22B04E));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{margin:5px 0;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, #22B04E));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, #22B04E));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 A(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]=D(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]=D(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 D(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]&&A(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=A(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 E=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(x=>{z(x,h[x])})}).catch(h=>{console.log(h)})};Object.keys(I).forEach(i=>{z(i,I[i])});const q=()=>{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=U(w.slice(0,19))),a(7,F=!0)):(a(4,k=[]),a(7,F=!1))}).catch(h=>{console.log(h),a(7,F=!1)})},U=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},B=()=>{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(),$=()=>B(),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&&E(),n.$$.dirty[0]&24576&&c&&f&&q(),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,B,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;