@everymatrix/casino-lobby 1.59.0 → 1.59.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 (104) hide show
  1. package/components/{CasinoCalendar-CEPKCmvL.js → CasinoCalendar-6ncpIgng.js} +937 -912
  2. package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
  3. package/components/{CasinoCalendar-BWZKTjt3.js → CasinoCalendar-Km8tdNHN.js} +930 -905
  4. package/components/{CasinoCalendarDailyDetails-C4rdfT96.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-BZxw5rrd.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
  6. package/components/{CasinoCalendarDailyDetails-CneP-8H4.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-B3mEEjHA.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-yxm1jout.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DAH0pKrw.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
  10. package/components/{CasinoCategoriesSlider-t9Ea10Xr.js → CasinoCategoriesSlider-CZHyRC-C.js} +67 -67
  11. package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-Dd33-jys.js → CasinoCategoriesSlider-Dm2i_QTf.js} +66 -66
  13. package/components/{CasinoCollectionsProviders-CBiEhbus.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-bmfbt1iI.js → CasinoCollectionsProviders-B7d5LuGP.js} +145 -142
  15. package/components/{CasinoCollectionsProviders-DAgGlzwM.js → CasinoCollectionsProviders-pk8jpLQt.js} +142 -139
  16. package/components/{CasinoFavoritesSection-B9pa_5wC.js → CasinoFavoritesSection-C949lfcK.js} +26 -26
  17. package/components/{CasinoFavoritesSection-Dm0Ylorq.js → CasinoFavoritesSection-V5ybOUJC.js} +26 -26
  18. package/components/{CasinoFavoritesSection-n_i25VDL.cjs → CasinoFavoritesSection-hHKNAcoS.cjs} +1 -1
  19. package/components/{CasinoFilter-BTP1X8zp.js → CasinoFilter-BTof425X.js} +247 -246
  20. package/components/{CasinoFilter-BaCM2CFg.js → CasinoFilter-BWjq7W1e.js} +234 -235
  21. package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
  22. package/components/{CasinoGamePage-DSk7OmI2.js → CasinoGamePage-Cp2CKRka.js} +742 -742
  23. package/components/{CasinoGamePage-CIvFWln2.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
  24. package/components/{CasinoGamePage-jh3dkrf4.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
  25. package/components/CasinoGameThumbnail-CVz7FpsB.js +1866 -0
  26. package/components/CasinoGameThumbnail-DK9cpR-G.cjs +38 -0
  27. package/components/CasinoGameThumbnail-NLieCJGe.js +1850 -0
  28. package/components/{CasinoGamesCategorySection-BBfNK7Mo.cjs → CasinoGamesCategorySection-BAcJus2G.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-dyyrntic.js → CasinoGamesCategorySection-BP3bZsZg.js} +433 -428
  30. package/components/{CasinoGamesCategorySection-BU3JMFcx.js → CasinoGamesCategorySection-Bpy9vh6D.js} +520 -515
  31. package/components/{CasinoJackpotBanner-BvW5shKI.js → CasinoJackpotBanner-CuP8WP5Q.js} +219 -214
  32. package/components/{CasinoJackpotBanner-7unbFH4I.js → CasinoJackpotBanner-Dl2rX6vI.js} +191 -186
  33. package/components/CasinoJackpotBanner-DredUN6K.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-BtSsd68j.js → CasinoLastPlayedSection-B9I2fZm5.js} +43 -43
  35. package/components/{CasinoLastPlayedSection-YmqYIIYS.cjs → CasinoLastPlayedSection-COAM1aoc.cjs} +1 -1
  36. package/components/{CasinoLastPlayedSection--cJ8dS0F.js → CasinoLastPlayedSection-CVEuFsbi.js} +43 -43
  37. package/components/{CasinoLobby--nSc5THC.js → CasinoLobby-AoZlXLOV.js} +45 -45
  38. package/components/{CasinoLobby-DngFRvmY.js → CasinoLobby-BRiasSXJ.js} +47 -47
  39. package/components/{CasinoLobby-BUcjKu4u.cjs → CasinoLobby-CYqI5Bvp.cjs} +1 -1
  40. package/components/{CasinoModal-88yfZulM.js → CasinoModal-B9Gmdwc0.js} +41 -41
  41. package/components/{CasinoModal-D9_hs2c9.js → CasinoModal-DLgyWFbs.js} +41 -41
  42. package/components/{CasinoModal-Ce5Pthg0.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
  43. package/components/{CasinoMostPlayedSection-BldCqqK1.js → CasinoMostPlayedSection-9B6X9czZ.js} +50 -50
  44. package/components/{CasinoMostPlayedSection-DI5TANog.cjs → CasinoMostPlayedSection-BUwIld9p.cjs} +1 -1
  45. package/components/{CasinoMostPlayedSection-CvX-e31F.js → CasinoMostPlayedSection-DwZh0uxo.js} +50 -50
  46. package/components/{CasinoMyGames-CJm9ApZ8.js → CasinoMyGames-76IMIo9z.js} +50 -50
  47. package/components/{CasinoMyGames-CNSxKFTG.js → CasinoMyGames-DRCxYUHg.js} +53 -53
  48. package/components/{CasinoMyGames-DQEE59aC.cjs → CasinoMyGames-DTGaTHyO.cjs} +1 -1
  49. package/components/{CasinoPage-Renb8OYu.js → CasinoPage-BPxxsTeq.js} +1502 -1456
  50. package/components/CasinoPage-CikRIum6.js +3755 -0
  51. package/components/CasinoPage-DZ6Yhwli.cjs +1 -0
  52. package/components/{CasinoRandomGame-CjLDPmJh.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
  53. package/components/{CasinoRandomGame-CaLII6na.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
  54. package/components/{CasinoRandomGame-8kMXdgrA.js → CasinoRandomGame-CqripZYr.js} +64 -64
  55. package/components/{CasinoSearch-eN8ZAKdn.js → CasinoSearch-CCcjmB9U.js} +72 -72
  56. package/components/{CasinoSearch-Cf4ivtxM.cjs → CasinoSearch-CZSrkWFZ.cjs} +1 -1
  57. package/components/{CasinoSearch-ISBqoS_l.js → CasinoSearch-Cs8FRwGb.js} +72 -72
  58. package/components/{CasinoSlider-DLY4ZBJR.js → CasinoSlider-0rdHVHjG.js} +65 -65
  59. package/components/{CasinoSlider-BqOuFEE1.cjs → CasinoSlider-CMKmgXUK.cjs} +1 -1
  60. package/components/{CasinoSlider-DTLHID6G.js → CasinoSlider-CleETLFf.js} +74 -74
  61. package/components/{CasinoSort-DKL_qMEQ.js → CasinoSort-BRC8Jmi_.js} +103 -104
  62. package/components/{CasinoSort-BpUmCYRy.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
  63. package/components/{CasinoSort-BNFUwAYT.js → CasinoSort-xZsxfLYC.js} +111 -110
  64. package/components/{CasinoWinners-Czg0Gq3N.js → CasinoWinners-BEOhs5WG.js} +181 -178
  65. package/components/{CasinoWinners-DRdsN9K_.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
  66. package/components/{CasinoWinners-BoSyqMDy.js → CasinoWinners-DD8ZyQkV.js} +187 -184
  67. package/components/{GeneralAnimationLoading-CVr2zyUi.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
  68. package/components/{GeneralAnimationLoading-DL8bFxE7.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
  69. package/components/{GeneralAnimationLoading-swHQRr7H.js → GeneralAnimationLoading-uswxvfCW.js} +16 -16
  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 +3 -2
  74. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  75. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  76. package/stencil/{casino-play-random-game-BOnTgUqC.js → casino-play-random-game-BW66Civ1.js} +20 -18
  77. package/stencil/{casino-play-random-game-NcJEjFWA.js → casino-play-random-game-Bk7toWLj.js} +19 -17
  78. package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
  79. package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
  80. package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
  81. package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
  82. package/stencil/index-ae04a8b1-BvZmaj3p.js +532 -0
  83. package/stencil/index-ae04a8b1-DoeYpoC5.js +516 -0
  84. package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +1 -0
  85. package/stencil/ui-skeleton-C02hm1pt.js +29 -0
  86. package/stencil/ui-skeleton-DET4YE0J.js +11 -0
  87. package/stencil/ui-skeleton-DlNNnOZy.cjs +1 -0
  88. package/stencil/ui-skeleton-a642cced-7C4Fyb2d.js +122 -0
  89. package/stencil/ui-skeleton-a642cced-BhVS1i2r.cjs +1 -0
  90. package/stencil/ui-skeleton-a642cced-Dn9GOtgo.js +122 -0
  91. package/components/CasinoCalendar-YzaZrGBf.cjs +0 -22
  92. package/components/CasinoCategoriesSlider-DozoHOzF.cjs +0 -1
  93. package/components/CasinoFilter-B7H_n_MD.cjs +0 -1
  94. package/components/CasinoGameThumbnail-BXCu7VY7.js +0 -1834
  95. package/components/CasinoGameThumbnail-Mnpd_s_M.js +0 -1850
  96. package/components/CasinoGameThumbnail-uCJn0tBq.cjs +0 -38
  97. package/components/CasinoJackpotBanner-RjyciaDJ.cjs +0 -1
  98. package/components/CasinoPage-DeZ_xrWS.js +0 -3709
  99. package/components/CasinoPage-_d_6nEdh.cjs +0 -1
  100. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  101. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  102. package/stencil/index-510a6ba4-1RrL4Z6e.js +0 -564
  103. package/stencil/index-510a6ba4-CNr-xCZE.js +0 -548
  104. package/stencil/index-510a6ba4-eEczisTR.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-YzaZrGBf.cjs");function u(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function f(e){let t;return{c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,r){i.insert(l,t,r),e[4](t)},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null)}}}function m(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n;i.onMount(()=>()=>{});function a(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n)})}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`)},[n,r,c,d,a]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,m,f,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},u)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-CkNAiTx8.cjs");function u(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function f(e){let t;return{c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,r){i.insert(l,t,r),e[4](t)},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null)}}}function m(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n;i.onMount(()=>()=>{});function a(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n)})}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`)},[n,r,c,d,a]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,m,f,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},u)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
@@ -1,30 +1,30 @@
1
- import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, I as x, J as _, K as S, L as C } from "./CasinoCalendar-CEPKCmvL.js";
2
- function k(t) {
3
- g(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
1
+ import { S as u, i as f, f as c, c as m, s as g, b as y, e as h, d as p, G as d, j as b, o as v, l as x, m as _, q as S, r as k } from "./CasinoCalendar-Km8tdNHN.js";
2
+ function C(t) {
3
+ y(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
4
4
  }
5
5
  function L(t) {
6
6
  let i;
7
7
  return {
8
8
  c() {
9
- i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
9
+ i = h("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
10
10
  },
11
11
  m(n, l) {
12
- h(n, i, l), t[4](i);
12
+ p(n, i, l), t[4](i);
13
13
  },
14
14
  p: d,
15
15
  i: d,
16
16
  o: d,
17
17
  d(n) {
18
- n && y(i), t[4](null);
18
+ n && b(i), t[4](null);
19
19
  }
20
20
  };
21
21
  }
22
22
  function j(t, i, n) {
23
23
  let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
24
- b(() => () => {
24
+ v(() => () => {
25
25
  });
26
26
  function o(e) {
27
- v[e ? "unshift" : "push"](() => {
27
+ S[e ? "unshift" : "push"](() => {
28
28
  s = e, n(0, s);
29
29
  });
30
30
  }
@@ -32,9 +32,9 @@ function j(t, i, n) {
32
32
  "clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
33
33
  }, t.$$.update = () => {
34
34
  t.$$.dirty & /*clientstyling, customStylingContainer*/
35
- 3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
36
- 5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
37
- 9 && r && s && S(s, `${r}.Style`);
35
+ 3 && l && s && k(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
36
+ 5 && a && s && x(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
37
+ 9 && r && s && _(s, `${r}.Style`);
38
38
  }, [
39
39
  s,
40
40
  l,
@@ -43,20 +43,20 @@ function j(t, i, n) {
43
43
  o
44
44
  ];
45
45
  }
46
- class w extends u {
46
+ class q extends u {
47
47
  constructor(i) {
48
48
  super(), f(
49
49
  this,
50
50
  i,
51
51
  j,
52
52
  L,
53
- m,
53
+ g,
54
54
  {
55
55
  clientstyling: 1,
56
56
  clientstylingurl: 2,
57
57
  mbsource: 3
58
58
  },
59
- k
59
+ C
60
60
  );
61
61
  }
62
62
  get clientstyling() {
@@ -78,7 +78,7 @@ class w extends u {
78
78
  this.$$set({ mbsource: i }), c();
79
79
  }
80
80
  }
81
- C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
81
+ m(q, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
82
82
  export {
83
- w as default
83
+ q as default
84
84
  };
@@ -1,30 +1,30 @@
1
- import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, I as x, J as _, K as S, L as C } from "./CasinoCalendar-BWZKTjt3.js";
2
- function k(t) {
3
- g(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
1
+ import { S as u, i as f, f as c, c as m, s as g, b as y, e as h, d as p, G as d, j as b, o as v, l as x, m as _, q as S, r as k } from "./CasinoCalendar-6ncpIgng.js";
2
+ function C(t) {
3
+ y(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
4
4
  }
5
5
  function L(t) {
6
6
  let i;
7
7
  return {
8
8
  c() {
9
- i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
9
+ i = h("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
10
10
  },
11
11
  m(n, l) {
12
- h(n, i, l), t[4](i);
12
+ p(n, i, l), t[4](i);
13
13
  },
14
14
  p: d,
15
15
  i: d,
16
16
  o: d,
17
17
  d(n) {
18
- n && y(i), t[4](null);
18
+ n && b(i), t[4](null);
19
19
  }
20
20
  };
21
21
  }
22
22
  function j(t, i, n) {
23
23
  let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
24
- b(() => () => {
24
+ v(() => () => {
25
25
  });
26
26
  function o(e) {
27
- v[e ? "unshift" : "push"](() => {
27
+ S[e ? "unshift" : "push"](() => {
28
28
  s = e, n(0, s);
29
29
  });
30
30
  }
@@ -32,9 +32,9 @@ function j(t, i, n) {
32
32
  "clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
33
33
  }, t.$$.update = () => {
34
34
  t.$$.dirty & /*clientstyling, customStylingContainer*/
35
- 3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
36
- 5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
37
- 9 && r && s && S(s, `${r}.Style`);
35
+ 3 && l && s && k(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
36
+ 5 && a && s && x(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
37
+ 9 && r && s && _(s, `${r}.Style`);
38
38
  }, [
39
39
  s,
40
40
  l,
@@ -43,20 +43,20 @@ function j(t, i, n) {
43
43
  o
44
44
  ];
45
45
  }
46
- class w extends u {
46
+ class q extends u {
47
47
  constructor(i) {
48
48
  super(), f(
49
49
  this,
50
50
  i,
51
51
  j,
52
52
  L,
53
- m,
53
+ g,
54
54
  {
55
55
  clientstyling: 1,
56
56
  clientstylingurl: 2,
57
57
  mbsource: 3
58
58
  },
59
- k
59
+ C
60
60
  );
61
61
  }
62
62
  get clientstyling() {
@@ -78,7 +78,7 @@ class w extends u {
78
78
  this.$$set({ mbsource: i }), c();
79
79
  }
80
80
  }
81
- C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
81
+ m(q, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
82
82
  export {
83
- w as default
83
+ q as default
84
84
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-BUcjKu4u.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-CYqI5Bvp.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoLobby-DngFRvmY.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-BRiasSXJ.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoLobby--nSc5THC.js";
1
+ import { C as s } from "../components/CasinoLobby-AoZlXLOV.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "1.59.0",
3
+ "version": "1.59.2",
4
4
  "type": "module",
5
5
  "main": "esnext/casino-lobby.js",
6
6
  "module": "esnext/casino-lobby.js",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./esnext/casino-lobby.js"
9
+ "import": "./esnext/casino-lobby.js",
10
+ "require": "./es2015/casino-lobby.cjs"
10
11
  },
11
12
  "./es2015/casino-lobby.cjs": "./es2015/casino-lobby.cjs",
12
13
  "./es2015/casino-lobby.js": "./es2015/casino-lobby.js"
@@ -0,0 +1 @@
1
+ "use strict";const l=()=>{},s=()=>{};exports.globalScripts=l;exports.globalScripts$1=s;
@@ -0,0 +1,7 @@
1
+ const s = () => {
2
+ }, a = () => {
3
+ };
4
+ export {
5
+ a,
6
+ s as g
7
+ };
@@ -14,19 +14,19 @@ var p = (n, e, a) => new Promise((t, o) => {
14
14
  }, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
15
15
  c((a = a.apply(n, e)).next());
16
16
  });
17
- import { b as w, p as y, r as x, h as i, g as b } from "./index-510a6ba4-1RrL4Z6e.js";
18
- import { g as G } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- var v = () => {
17
+ import { b as w, p as y, r as x, c as b, h as i, g as G } from "./index-ab3202d6-BW1TSmQg.js";
18
+ import { g as v } from "./app-globals-0f993ce5-Cgk0KVAu.js";
19
+ var R = () => {
20
20
  const n = import.meta.url, e = {};
21
21
  return n !== "" && (e.resourcesUrl = new URL(".", n).href), y(e);
22
22
  };
23
- v().then((n) => p(void 0, null, function* () {
24
- return yield G(), w([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n);
23
+ R().then((n) => p(void 0, null, function* () {
24
+ return yield v(), w([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n);
25
25
  }));
26
- const R = () => {
26
+ const C = () => {
27
27
  let n = window.navigator.userAgent;
28
28
  return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
29
- }, C = "en", l = {
29
+ }, k = "en", l = {
30
30
  en: {
31
31
  error: "Error",
32
32
  randomGameLoading: "Loading ...",
@@ -79,7 +79,7 @@ const R = () => {
79
79
  });
80
80
  }), s = (n, e) => {
81
81
  const a = e;
82
- return l[a !== void 0 && a in l ? a : C][n];
82
+ return l[a !== void 0 && a in l ? a : k][n];
83
83
  };
84
84
  function u(n, e) {
85
85
  if (n) {
@@ -96,7 +96,7 @@ function f(n, e) {
96
96
  console.error("There was an error while trying to load client styling from URL", t);
97
97
  });
98
98
  }
99
- function k(n, e, a) {
99
+ function S(n, e, a) {
100
100
  if (window.emMessageBus) {
101
101
  const t = document.createElement("style");
102
102
  window.emMessageBus.subscribe(e, (o) => {
@@ -104,7 +104,7 @@ function k(n, e, a) {
104
104
  });
105
105
  }
106
106
  }
107
- const S = `:host {
107
+ const L = `:host {
108
108
  display: block;
109
109
  font-family: inherit;
110
110
  -webkit-transform: translate3d(0, 0, 0);
@@ -474,9 +474,9 @@ const S = `:host {
474
474
  width: 70px;
475
475
  height: 85px;
476
476
  }
477
- }`, F = S, L = class {
477
+ }`, F = L, I = class {
478
478
  constructor(n) {
479
- x(this, n), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
479
+ x(this, n), this.dataLoaded = b(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
480
480
  let a = e.length, t;
481
481
  for (; a !== 0; )
482
482
  t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
@@ -508,20 +508,22 @@ const S = `:host {
508
508
  return this.fetchGameList();
509
509
  }
510
510
  componentDidLoad() {
511
- window.emMessageBus != null ? k(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl));
511
+ window.emMessageBus != null ? S(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl));
512
512
  }
513
513
  disconnectedCallback() {
514
514
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
515
515
  }
516
516
  fetchGameList() {
517
517
  let n = new URL(`${this.endpoint}/v1/casino/games`);
518
- return n.searchParams.append("platform", R()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, a) => {
518
+ return n.searchParams.append("platform", C()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, a) => {
519
519
  this.isLoading = !0, fetch(n.href).then((t) => t.json()).then((t) => {
520
520
  this.gamesToShow = this.setUpGames(t == null ? void 0 : t.items), e(!0);
521
521
  }).catch((t) => {
522
522
  console.error(t), this.hasErrors = !0, a(t);
523
523
  }).finally(() => {
524
- this.isLoading = !1;
524
+ this.isLoading = !1, this.dataLoaded.emit({
525
+ target: this.host
526
+ });
525
527
  });
526
528
  });
527
529
  }
@@ -582,7 +584,7 @@ const S = `:host {
582
584
  return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language)))));
583
585
  }
584
586
  get host() {
585
- return b(this);
587
+ return G(this);
586
588
  }
587
589
  static get watchers() {
588
590
  return {
@@ -596,7 +598,7 @@ const S = `:host {
596
598
  };
597
599
  }
598
600
  };
599
- L.style = F;
601
+ I.style = F;
600
602
  export {
601
- L as casino_play_random_game
603
+ I as casino_play_random_game
602
604
  };
@@ -1,14 +1,14 @@
1
- import { b as p, p as g, r as u, h as i, g as f } from "./index-510a6ba4-CNr-xCZE.js";
2
- import { g as w } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- var y = () => {
1
+ import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-CkTejM5U.js";
2
+ import { g as y } from "./app-globals-0f993ce5-Cgk0KVAu.js";
3
+ var x = () => {
4
4
  const n = import.meta.url, e = {};
5
5
  return n !== "" && (e.resourcesUrl = new URL(".", n).href), g(e);
6
6
  };
7
- y().then(async (n) => (await w(), p([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
8
- const x = () => {
7
+ x().then(async (n) => (await y(), p([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
8
+ const b = () => {
9
9
  let n = window.navigator.userAgent;
10
10
  return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
11
- }, b = "en", s = {
11
+ }, G = "en", s = {
12
12
  en: {
13
13
  error: "Error",
14
14
  randomGameLoading: "Loading ...",
@@ -61,7 +61,7 @@ const x = () => {
61
61
  });
62
62
  }), r = (n, e) => {
63
63
  const t = e;
64
- return s[t !== void 0 && t in s ? t : b][n];
64
+ return s[t !== void 0 && t in s ? t : G][n];
65
65
  };
66
66
  function m(n, e) {
67
67
  if (n) {
@@ -78,7 +78,7 @@ function d(n, e) {
78
78
  console.error("There was an error while trying to load client styling from URL", a);
79
79
  });
80
80
  }
81
- function G(n, e, t) {
81
+ function v(n, e, t) {
82
82
  if (window.emMessageBus) {
83
83
  const a = document.createElement("style");
84
84
  window.emMessageBus.subscribe(e, (o) => {
@@ -86,7 +86,7 @@ function G(n, e, t) {
86
86
  });
87
87
  }
88
88
  }
89
- const v = `:host {
89
+ const R = `:host {
90
90
  display: block;
91
91
  font-family: inherit;
92
92
  -webkit-transform: translate3d(0, 0, 0);
@@ -456,9 +456,9 @@ const v = `:host {
456
456
  width: 70px;
457
457
  height: 85px;
458
458
  }
459
- }`, R = v, C = class {
459
+ }`, C = R, k = class {
460
460
  constructor(n) {
461
- u(this, n), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
461
+ u(this, n), this.dataLoaded = f(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
462
462
  let t = e.length, a;
463
463
  for (; t !== 0; )
464
464
  a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
@@ -490,20 +490,22 @@ const v = `:host {
490
490
  return this.fetchGameList();
491
491
  }
492
492
  componentDidLoad() {
493
- window.emMessageBus != null ? G(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
493
+ window.emMessageBus != null ? v(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
494
494
  }
495
495
  disconnectedCallback() {
496
496
  this.stylingSubscription && this.stylingSubscription.unsubscribe();
497
497
  }
498
498
  fetchGameList() {
499
499
  let n = new URL(`${this.endpoint}/v1/casino/games`);
500
- return n.searchParams.append("platform", x()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, t) => {
500
+ return n.searchParams.append("platform", b()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, t) => {
501
501
  this.isLoading = !0, fetch(n.href).then((a) => a.json()).then((a) => {
502
502
  this.gamesToShow = this.setUpGames(a?.items), e(!0);
503
503
  }).catch((a) => {
504
504
  console.error(a), this.hasErrors = !0, t(a);
505
505
  }).finally(() => {
506
- this.isLoading = !1;
506
+ this.isLoading = !1, this.dataLoaded.emit({
507
+ target: this.host
508
+ });
507
509
  });
508
510
  });
509
511
  }
@@ -564,7 +566,7 @@ const v = `:host {
564
566
  return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, r("playRandomGame", this.language)))));
565
567
  }
566
568
  get host() {
567
- return f(this);
569
+ return w(this);
568
570
  }
569
571
  static get watchers() {
570
572
  return {
@@ -578,7 +580,7 @@ const v = `:host {
578
580
  };
579
581
  }
580
582
  };
581
- C.style = R;
583
+ k.style = C;
582
584
  export {
583
- C as casino_play_random_game
585
+ k as casino_play_random_game
584
586
  };
@@ -1,4 +1,4 @@
1
- "use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-510a6ba4-eEczisTR.cjs"),x=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,b=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/casino-play-random-game-DjdZ0XM0.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),i.promiseResolve(e)};b().then(n=>g(exports,null,function*(){return yield x.globalScripts(),i.bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const G=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},v="en",l={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{l[t]||(l[t]={});for(let o in a[t])l[t][o]=a[t][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:v][n]};function f(n,e){if(n){const a=document.createElement("style");a.innerHTML=e,n.appendChild(a)}}function w(n,e){const a=new URL(e);fetch(a.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function R(n,e,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,o=>{t.innerHTML=o,n&&n.appendChild(t)})}}const C=`:host {
1
+ "use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ab3202d6-C6VFhXtX.cjs"),x=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var p=typeof document!="undefined"?document.currentScript:null,b=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/casino-play-random-game-CKM_xKne.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),i.promiseResolve(e)};b().then(n=>g(exports,null,function*(){return yield x.globalScripts(),i.bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const G=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},v="en",l={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{l[t]||(l[t]={});for(let o in a[t])l[t][o]=a[t][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:v][n]};function f(n,e){if(n){const a=document.createElement("style");a.innerHTML=e,n.appendChild(a)}}function w(n,e){const a=new URL(e);fetch(a.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function R(n,e,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,o=>{t.innerHTML=o,n&&n.appendChild(t)})}}const C=`:host {
2
2
  display: block;
3
3
  font-family: inherit;
4
4
  -webkit-transform: translate3d(0, 0, 0);
@@ -368,4 +368,4 @@
368
368
  width: 70px;
369
369
  height: 85px;
370
370
  }
371
- }`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&&gtag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&&gtag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;
371
+ }`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.dataLoaded=i.createEvent(this,"data-loaded",7),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&&gtag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&&gtag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&&gtag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;