@everymatrix/casino-lobby 1.59.1 → 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 (97) hide show
  1. package/components/{CasinoCalendar-CI-C6zUY.js → CasinoCalendar-6ncpIgng.js} +718 -696
  2. package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
  3. package/components/{CasinoCalendar-BYTytQgJ.js → CasinoCalendar-Km8tdNHN.js} +712 -690
  4. package/components/{CasinoCalendarDailyDetails-Xi-Uo8v-.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-DQB9Y3_Q.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
  6. package/components/{CasinoCalendarDailyDetails-DUQWFLJJ.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-DC91__VM.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-CVt2FFo1.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-CjRZKnnD.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
  10. package/components/{CasinoCategoriesSlider-BeqGvJrA.js → CasinoCategoriesSlider-CZHyRC-C.js} +67 -67
  11. package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-Cvb-krxJ.js → CasinoCategoriesSlider-Dm2i_QTf.js} +66 -66
  13. package/components/{CasinoCollectionsProviders-FGrPURo4.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-BMyAx20Y.js → CasinoCollectionsProviders-B7d5LuGP.js} +73 -73
  15. package/components/{CasinoCollectionsProviders-B_4F6cIK.js → CasinoCollectionsProviders-pk8jpLQt.js} +71 -71
  16. package/components/{CasinoFavoritesSection-BZmf5I3g.js → CasinoFavoritesSection-C949lfcK.js} +26 -26
  17. package/components/{CasinoFavoritesSection-Dmko0_Ik.js → CasinoFavoritesSection-V5ybOUJC.js} +26 -26
  18. package/components/{CasinoFavoritesSection-CBb3Eo8J.cjs → CasinoFavoritesSection-hHKNAcoS.cjs} +1 -1
  19. package/components/{CasinoFilter-Dt8GhenI.js → CasinoFilter-BTof425X.js} +247 -246
  20. package/components/{CasinoFilter-BHLJqOwW.js → CasinoFilter-BWjq7W1e.js} +234 -235
  21. package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
  22. package/components/{CasinoGamePage-D_TzJsC-.js → CasinoGamePage-Cp2CKRka.js} +742 -742
  23. package/components/{CasinoGamePage-BmgERtPr.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
  24. package/components/{CasinoGamePage-5moXxd0d.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
  25. package/components/{CasinoGameThumbnail-DSjNVacg.js → CasinoGameThumbnail-CVz7FpsB.js} +528 -512
  26. package/components/{CasinoGameThumbnail-OrvrYv4V.cjs → CasinoGameThumbnail-DK9cpR-G.cjs} +15 -15
  27. package/components/{CasinoGameThumbnail-DqBpfUwf.js → CasinoGameThumbnail-NLieCJGe.js} +420 -436
  28. package/components/{CasinoGamesCategorySection-DEh7yuGp.cjs → CasinoGamesCategorySection-BAcJus2G.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-Ce43OSOZ.js → CasinoGamesCategorySection-BP3bZsZg.js} +247 -247
  30. package/components/{CasinoGamesCategorySection-d8QOFywW.js → CasinoGamesCategorySection-Bpy9vh6D.js} +247 -247
  31. package/components/{CasinoJackpotBanner-Dxq2Y_-S.js → CasinoJackpotBanner-CuP8WP5Q.js} +74 -74
  32. package/components/{CasinoJackpotBanner-UQaC63Zv.js → CasinoJackpotBanner-Dl2rX6vI.js} +69 -69
  33. package/components/{CasinoJackpotBanner-B_CnR3Kj.cjs → CasinoJackpotBanner-DredUN6K.cjs} +1 -1
  34. package/components/{CasinoLastPlayedSection-BVANPPTi.js → CasinoLastPlayedSection-B9I2fZm5.js} +43 -43
  35. package/components/{CasinoLastPlayedSection-CyL83M3y.cjs → CasinoLastPlayedSection-COAM1aoc.cjs} +1 -1
  36. package/components/{CasinoLastPlayedSection-Bmr8n1pA.js → CasinoLastPlayedSection-CVEuFsbi.js} +43 -43
  37. package/components/{CasinoLobby-CWzN0imw.js → CasinoLobby-AoZlXLOV.js} +45 -45
  38. package/components/{CasinoLobby-DUI1Ki3q.js → CasinoLobby-BRiasSXJ.js} +47 -47
  39. package/components/{CasinoLobby-os94WdnE.cjs → CasinoLobby-CYqI5Bvp.cjs} +1 -1
  40. package/components/{CasinoModal-BaV1FE12.js → CasinoModal-B9Gmdwc0.js} +41 -41
  41. package/components/{CasinoModal-Bn6r73ff.js → CasinoModal-DLgyWFbs.js} +41 -41
  42. package/components/{CasinoModal-DWbCqr0p.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
  43. package/components/{CasinoMostPlayedSection-B4SHGVp4.js → CasinoMostPlayedSection-9B6X9czZ.js} +50 -50
  44. package/components/{CasinoMostPlayedSection-y-GWnOes.cjs → CasinoMostPlayedSection-BUwIld9p.cjs} +1 -1
  45. package/components/{CasinoMostPlayedSection-CD00UC6r.js → CasinoMostPlayedSection-DwZh0uxo.js} +50 -50
  46. package/components/{CasinoMyGames-BBsq56wQ.js → CasinoMyGames-76IMIo9z.js} +50 -50
  47. package/components/{CasinoMyGames-DRCL87dq.js → CasinoMyGames-DRCxYUHg.js} +53 -53
  48. package/components/{CasinoMyGames-DKu8rYmc.cjs → CasinoMyGames-DTGaTHyO.cjs} +1 -1
  49. package/components/{CasinoPage-DXP80Vgm.js → CasinoPage-BPxxsTeq.js} +85 -85
  50. package/components/{CasinoPage-BJ2hLXJb.js → CasinoPage-CikRIum6.js} +93 -93
  51. package/components/{CasinoPage-CXAKd3oS.cjs → CasinoPage-DZ6Yhwli.cjs} +1 -1
  52. package/components/{CasinoRandomGame-BO7BqLXA.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
  53. package/components/{CasinoRandomGame-CsA5xgwc.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
  54. package/components/{CasinoRandomGame-DLzqJj4x.js → CasinoRandomGame-CqripZYr.js} +64 -64
  55. package/components/{CasinoSearch-CzUqsTgU.js → CasinoSearch-CCcjmB9U.js} +72 -72
  56. package/components/{CasinoSearch-CxFbGTdy.cjs → CasinoSearch-CZSrkWFZ.cjs} +1 -1
  57. package/components/{CasinoSearch-atJ6AGYa.js → CasinoSearch-Cs8FRwGb.js} +72 -72
  58. package/components/{CasinoSlider-DjqwMakd.js → CasinoSlider-0rdHVHjG.js} +65 -65
  59. package/components/{CasinoSlider-CgiDJzPs.cjs → CasinoSlider-CMKmgXUK.cjs} +1 -1
  60. package/components/{CasinoSlider-zHVThApL.js → CasinoSlider-CleETLFf.js} +74 -74
  61. package/components/{CasinoSort-DtUIrmuZ.js → CasinoSort-BRC8Jmi_.js} +103 -104
  62. package/components/{CasinoSort-23PYwtO1.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
  63. package/components/{CasinoSort-B3A_Ar_A.js → CasinoSort-xZsxfLYC.js} +111 -110
  64. package/components/{CasinoWinners-Gb2w2dXe.js → CasinoWinners-BEOhs5WG.js} +179 -179
  65. package/components/{CasinoWinners-KEY7dD3z.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
  66. package/components/{CasinoWinners-CF_PptIS.js → CasinoWinners-DD8ZyQkV.js} +162 -162
  67. package/components/{GeneralAnimationLoading-B-6s0l9d.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
  68. package/components/{GeneralAnimationLoading-8TvNjXay.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
  69. package/components/{GeneralAnimationLoading-Bbxdne1m.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 +1 -1
  74. package/stencil/{casino-play-random-game-Dm8A9dTR.js → casino-play-random-game-BW66Civ1.js} +2 -2
  75. package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-Bk7toWLj.js} +2 -2
  76. package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
  77. package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
  78. package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
  79. package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
  80. package/stencil/index-ae04a8b1-BvZmaj3p.js +532 -0
  81. package/stencil/index-ae04a8b1-DoeYpoC5.js +516 -0
  82. package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +1 -0
  83. package/stencil/{ui-skeleton-DDYD_XHU.js → ui-skeleton-C02hm1pt.js} +2 -2
  84. package/stencil/{ui-skeleton-Bz6cw7xJ.js → ui-skeleton-DET4YE0J.js} +2 -2
  85. package/stencil/{ui-skeleton-D9k-xWaS.cjs → ui-skeleton-DlNNnOZy.cjs} +1 -1
  86. package/stencil/{ui-skeleton-a642cced-Bg6oYmhk.js → ui-skeleton-a642cced-7C4Fyb2d.js} +1 -1
  87. package/stencil/{ui-skeleton-a642cced-CVw8zpGJ.cjs → ui-skeleton-a642cced-BhVS1i2r.cjs} +1 -1
  88. package/stencil/{ui-skeleton-a642cced-MvzXi5-c.js → ui-skeleton-a642cced-Dn9GOtgo.js} +1 -1
  89. package/components/CasinoCalendar-DqS7aKva.cjs +0 -22
  90. package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +0 -1
  91. package/components/CasinoFilter-Bg-VilMd.cjs +0 -1
  92. package/stencil/index-ab3202d6-C1hgKWrC.cjs +0 -1
  93. package/stencil/index-ab3202d6-OPh7hJp9.js +0 -575
  94. package/stencil/index-ab3202d6-hGs51skN.js +0 -559
  95. package/stencil/index-ae04a8b1-BhaHMrLE.js +0 -516
  96. package/stencil/index-ae04a8b1-Dn3cponN.js +0 -532
  97. package/stencil/index-ae04a8b1-jEvGbYrB.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-DqS7aKva.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-BYTytQgJ.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-CI-C6zUY.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-os94WdnE.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-DUI1Ki3q.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-CWzN0imw.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "1.59.1",
3
+ "version": "1.59.2",
4
4
  "type": "module",
5
5
  "main": "esnext/casino-lobby.js",
6
6
  "module": "esnext/casino-lobby.js",
@@ -14,7 +14,7 @@ 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, c as b, h as i, g as G } from "./index-ab3202d6-OPh7hJp9.js";
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
18
  import { g as v } from "./app-globals-0f993ce5-Cgk0KVAu.js";
19
19
  var R = () => {
20
20
  const n = import.meta.url, e = {};
@@ -476,7 +476,7 @@ const L = `:host {
476
476
  }
477
477
  }`, F = L, I = class {
478
478
  constructor(n) {
479
- x(this, n), this.dataLoaded = b(this, "data-loaded"), 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]];
@@ -1,4 +1,4 @@
1
- import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-hGs51skN.js";
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
2
  import { g as y } from "./app-globals-0f993ce5-Cgk0KVAu.js";
3
3
  var x = () => {
4
4
  const n = import.meta.url, e = {};
@@ -458,7 +458,7 @@ const R = `:host {
458
458
  }
459
459
  }`, C = R, k = class {
460
460
  constructor(n) {
461
- u(this, n), this.dataLoaded = f(this, "data-loaded"), 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]];
@@ -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-ab3202d6-C1hgKWrC.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-CdZKN03s.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.dataLoaded=i.createEvent(this,"data-loaded"),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;
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;