@everymatrix/casino-lobby 1.74.0 → 1.74.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 (107) hide show
  1. package/components/{CasinoCalendar-BxCFWVMO.js → CasinoCalendar-D4jWXhPt.js} +1010 -1031
  2. package/components/{CasinoCalendar-cecf3yV9.js → CasinoCalendar-W89MyM3R.js} +837 -858
  3. package/components/CasinoCalendar-wYGJExu0.cjs +19 -0
  4. package/components/{CasinoCalendarDailyDetails-BenTRCF-.js → CasinoCalendarDailyDetails-B7a0AWc5.js} +38 -38
  5. package/components/{CasinoCalendarDailyDetails-B_q2ojzj.cjs → CasinoCalendarDailyDetails-CIDfmzEU.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-9M3Wc-65.js → CasinoCalendarDailyDetails-ZqdthZ8T.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-a6X6lpVV.js → CasinoCalendarDailyItem-B4VNj6qm.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-Dn8aZPDI.cjs → CasinoCalendarDailyItem-BofIs4hH.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem--eOkU17z.js → CasinoCalendarDailyItem-C_KcFF9v.js} +34 -34
  10. package/components/{CasinoCategoriesSlider-cVm1UEVZ.js → CasinoCategoriesSlider-BNtVy9dZ.js} +72 -72
  11. package/components/{CasinoCategoriesSlider-DTXP5MCD.js → CasinoCategoriesSlider-ByWiiCre.js} +73 -73
  12. package/components/CasinoCategoriesSlider-DXG58TlK.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-BxI7WaY-.js → CasinoCollectionsProviders-BWHjNJ7D.js} +77 -77
  14. package/components/{CasinoCollectionsProviders-DYgLBp3O.cjs → CasinoCollectionsProviders-Iwvjux90.cjs} +1 -1
  15. package/components/{CasinoCollectionsProviders-kbD1J4nL.js → CasinoCollectionsProviders-sp73chER.js} +64 -64
  16. package/components/{CasinoFavoritesSection-COL7maO6.js → CasinoFavoritesSection-CNJE8CmR.js} +17 -17
  17. package/components/{CasinoFavoritesSection-f8yiTIJQ.cjs → CasinoFavoritesSection-DCveWnxo.cjs} +1 -1
  18. package/components/{CasinoFavoritesSection-CC2FWkDe.js → CasinoFavoritesSection-DL9l3rme.js} +17 -17
  19. package/components/{CasinoFilter-8cIt8X5M.js → CasinoFilter-BJ9RAH6X.js} +245 -244
  20. package/components/CasinoFilter-Bwx_m9X7.cjs +1 -0
  21. package/components/{CasinoFilter-Z8P4TCHb.js → CasinoFilter-CEPRTXcd.js} +224 -225
  22. package/components/{CasinoGameThumbnail-4b8r0cT9.js → CasinoGameThumbnail-BLX7B2C9.js} +762 -778
  23. package/components/{CasinoGameThumbnail-DzaTuQ47.js → CasinoGameThumbnail-ByNzt_lj.js} +1269 -1253
  24. package/components/CasinoGameThumbnail-DAYBIv1-.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-BQutphJy.cjs → CasinoGamesCategorySection-Bcy4b4v7.cjs} +1 -1
  26. package/components/{CasinoGamesCategorySection-Dw5wr4Nu.js → CasinoGamesCategorySection-CkaPpe4H.js} +246 -246
  27. package/components/{CasinoGamesCategorySection-SoYJu5Gt.js → CasinoGamesCategorySection-DLtyXL4y.js} +249 -249
  28. package/components/{CasinoJackpotBanner-Cuk9Hinn.js → CasinoJackpotBanner-0_7xAHq_.js} +83 -83
  29. package/components/{CasinoJackpotBanner-Bo3DtwGk.cjs → CasinoJackpotBanner-D1FBank_.cjs} +1 -1
  30. package/components/{CasinoJackpotBanner-BI4BRDQ5.js → CasinoJackpotBanner-suOjEdKK.js} +88 -88
  31. package/components/{CasinoLastPlayedSection-DK5pVGi_.cjs → CasinoLastPlayedSection-DeRqmDvT.cjs} +1 -1
  32. package/components/{CasinoLastPlayedSection-BMlvUb-p.js → CasinoLastPlayedSection-EIkfMv8e.js} +37 -37
  33. package/components/{CasinoLastPlayedSection-CT0io6jK.js → CasinoLastPlayedSection-iNRVps0U.js} +37 -37
  34. package/components/{CasinoLobby-CprkaLDb.js → CasinoLobby-B66cbcSf.js} +59 -59
  35. package/components/{CasinoLobby-RvOVr_uh.js → CasinoLobby-C_n2KRef.js} +59 -59
  36. package/components/{CasinoLobby-BrFoet8C.cjs → CasinoLobby-CdXuoMWk.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-CRAI7pbg.cjs → CasinoMostPlayedSection-CFC20GVB.cjs} +1 -1
  38. package/components/{CasinoMostPlayedSection-BiJuBAns.js → CasinoMostPlayedSection-D8RGYKns.js} +46 -46
  39. package/components/{CasinoMostPlayedSection-DoiaQ9-H.js → CasinoMostPlayedSection-QkJYVQSD.js} +46 -46
  40. package/components/{CasinoMyGames-ChpeH2aN.js → CasinoMyGames-C5h1cvdX.js} +39 -39
  41. package/components/{CasinoMyGames--Zd_0i6N.cjs → CasinoMyGames-DGNRAJan.cjs} +1 -1
  42. package/components/{CasinoMyGames-evCuPqC7.js → CasinoMyGames-XuPrviRw.js} +42 -42
  43. package/components/{CasinoPage-CWdUDo2b.js → CasinoPage-CaJ_4wEu.js} +124 -124
  44. package/components/{CasinoPage-CyZkKltf.cjs → CasinoPage-DxnqqgsK.cjs} +1 -1
  45. package/components/{CasinoPage-DE_Ogva8.js → CasinoPage-zqbBeRpH.js} +110 -110
  46. package/components/{CasinoRandomGame-DtRLPA4l.js → CasinoRandomGame-BP_u-dZo.js} +56 -56
  47. package/components/{CasinoRandomGame-BtYuGyAc.cjs → CasinoRandomGame-CP2us9wQ.cjs} +1 -1
  48. package/components/{CasinoRandomGame-fGHWpPMz.js → CasinoRandomGame-DxRM8_Bw.js} +57 -57
  49. package/components/{CasinoSearch-CYCrFdK6.js → CasinoSearch-DUVU8u9P.js} +95 -95
  50. package/components/{CasinoSearch-C4egv7cj.js → CasinoSearch-DYLKBkXz.js} +98 -98
  51. package/components/{CasinoSearch-DqU2OnNm.cjs → CasinoSearch-E6byHH4y.cjs} +1 -1
  52. package/components/{CasinoSlider-BxMmHxNN.cjs → CasinoSlider-CKrkEFp2.cjs} +1 -1
  53. package/components/{CasinoSlider-Bc4XHMvA.js → CasinoSlider-D4GSh0Rr.js} +68 -68
  54. package/components/{CasinoSlider-BnZNKO4Z.js → CasinoSlider-DIeqeNfV.js} +95 -95
  55. package/components/{CasinoSort-C3XYwVvu.js → CasinoSort-CWqOWBmI.js} +112 -111
  56. package/components/{CasinoSort-CU7Sv-_a.cjs → CasinoSort-DnffDijG.cjs} +1 -1
  57. package/components/{CasinoSort-Cpl8-mZs.js → CasinoSort-zYMJUN8W.js} +102 -103
  58. package/components/{CasinoWinners-CnyEfY3y.js → CasinoWinners-BD8HtIIt.js} +145 -145
  59. package/components/{CasinoWinners-BJ15FnbR.cjs → CasinoWinners-CgGvis-Q.cjs} +1 -1
  60. package/components/{CasinoWinners-CbLarqtW.js → CasinoWinners-vOM5e-zn.js} +152 -152
  61. package/components/{GeneralAnimationLoading-Cu3EumIG.js → GeneralAnimationLoading-B9fWkZ6F.js} +16 -16
  62. package/components/{GeneralAnimationLoading-3ff4R40K.cjs → GeneralAnimationLoading-CB353I6v.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-qJGhyr02.js → GeneralAnimationLoading-SN6B4e8D.js} +16 -16
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{casino-play-random-game-BMX5GkhL.cjs → casino-play-random-game-C3hhQjhn.cjs} +2 -2
  69. package/stencil/{casino-play-random-game-Ct3VSPhq.js → casino-play-random-game-qroM0e64.js} +2 -2
  70. package/stencil/{casino-play-random-game-DyfvRpYv.js → casino-play-random-game-uBjWXXLi.js} +2 -2
  71. package/stencil/index-97d17652-BD-QREJe.js +558 -0
  72. package/stencil/index-97d17652-DJqGt8q2.js +542 -0
  73. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  74. package/stencil/index-ab3202d6-CSUArOSv.js +559 -0
  75. package/stencil/index-ab3202d6-CoRS04SH.js +575 -0
  76. package/stencil/index-ab3202d6-DitihRZv.cjs +1 -0
  77. package/stencil/index-b2193545-3zPNeE9v.cjs +1 -0
  78. package/stencil/index-b2193545-D_cUvAA-.js +519 -0
  79. package/stencil/index-b2193545-kN0z2MLt.js +503 -0
  80. package/stencil/{ui-image-2_i-_1cj.js → ui-image-BAqS-hS6.js} +1 -1
  81. package/stencil/{ui-image-eY8BEG3a.cjs → ui-image-CH2Jdp7k.cjs} +1 -1
  82. package/stencil/{ui-image-bN_3pDWc.js → ui-image-I_uR7pAI.js} +1 -1
  83. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  84. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  85. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  86. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  87. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  88. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-_K8Pt3w9.js} +2 -2
  89. package/stencil/{ui-skeleton-DcmFcn7k.cjs → ui-skeleton-5mt1L8pA.cjs} +1 -1
  90. package/stencil/{ui-skeleton-CSMUbPcJ.js → ui-skeleton-C0GZ2ncD.js} +2 -2
  91. package/stencil/{ui-skeleton-CiszU04_.js → ui-skeleton-CYeeBz0Q.js} +2 -2
  92. package/stencil/{ui-skeleton-ae35c6f2-9hZ7WFQc.js → ui-skeleton-ae35c6f2-BSwiS43c.js} +1 -1
  93. package/stencil/{ui-skeleton-ae35c6f2-DDHvWmVB.js → ui-skeleton-ae35c6f2-BmKf7IvD.js} +1 -1
  94. package/stencil/{ui-skeleton-ae35c6f2-D1Tb0H8D.cjs → ui-skeleton-ae35c6f2-CQ3pH6qH.cjs} +1 -1
  95. package/components/CasinoCalendar-CqIFh2Q5.cjs +0 -19
  96. package/components/CasinoCategoriesSlider-Xyi6Epkq.cjs +0 -1
  97. package/components/CasinoFilter-DENEZ_Ic.cjs +0 -1
  98. package/components/CasinoGameThumbnail-8aXbWXN_.cjs +0 -47
  99. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  100. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  101. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  102. package/stencil/index-ab3202d6-BXlsno-y.js +0 -559
  103. package/stencil/index-ab3202d6-Dv-5ZSZX.cjs +0 -1
  104. package/stencil/index-ab3202d6-ncf4oQhs.js +0 -575
  105. package/stencil/index-b2193545-DVT8jgVo.cjs +0 -1
  106. package/stencil/index-b2193545-Dxw-xjac.js +0 -503
  107. package/stencil/index-b2193545-TbRClz6K.js +0 -519
@@ -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, H as x, I as _, J as S, K as C } from "./CasinoCalendar-BxCFWVMO.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-D4jWXhPt.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-CqIFh2Q5.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-wYGJExu0.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, H as x, I as _, J as S, K as C } from "./CasinoCalendar-cecf3yV9.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-W89MyM3R.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-BrFoet8C.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-CdXuoMWk.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-CprkaLDb.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-B66cbcSf.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-RvOVr_uh.js";
1
+ import { C as s } from "../components/CasinoLobby-C_n2KRef.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.74.0",
3
+ "version": "1.74.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-lobby.cjs",
6
6
  "module": "esnext/casino-lobby.js",
@@ -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-Dv-5ZSZX.cjs"),x=require("./app-globals-0f993ce5-4b17CI_n.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-BMX5GkhL.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-DitihRZv.cjs"),x=require("./app-globals-0f993ce5-4b17CI_n.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-C3hhQjhn.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);
@@ -375,4 +375,4 @@
375
375
  width: 70px;
376
376
  height: 85px;
377
377
  }
378
- }`,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(){return i.h("div",{key:"07d7315d72cc4a34fd8ce7085efebd9161584570",ref:n=>this.stylingContainer=n},this.hasErrors?i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language))):this.isLoading?i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("randomGameLoading",this.language))):i.h("div",{class:"RandomGameWrapper"},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():void 0},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;
378
+ }`,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(){return i.h("div",{key:"07d7315d72cc4a34fd8ce7085efebd9161584570",ref:n=>this.stylingContainer=n},this.hasErrors?i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language))):this.isLoading?i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("randomGameLoading",this.language))):i.h("div",{class:"RandomGameWrapper"},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():void 0},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;
@@ -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-ncf4oQhs.js";
17
+ import { b as w, p as y, r as x, c as b, h as i, g as G } from "./index-ab3202d6-CoRS04SH.js";
18
18
  import { g as v } from "./app-globals-0f993ce5-DfNOCk8l.js";
19
19
  var R = () => {
20
20
  const n = import.meta.url, e = {};
@@ -483,7 +483,7 @@ const F = `:host {
483
483
  }
484
484
  }`, L = F, I = class {
485
485
  constructor(n) {
486
- x(this, n), this.dataLoaded = b(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
486
+ 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) => {
487
487
  let a = e.length, t;
488
488
  for (; a !== 0; )
489
489
  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-BXlsno-y.js";
1
+ import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-CSUArOSv.js";
2
2
  import { g as y } from "./app-globals-0f993ce5-DfNOCk8l.js";
3
3
  var x = () => {
4
4
  const n = import.meta.url, e = {};
@@ -465,7 +465,7 @@ const R = `:host {
465
465
  }
466
466
  }`, C = R, k = class {
467
467
  constructor(n) {
468
- u(this, n), this.dataLoaded = f(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
468
+ 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) => {
469
469
  let t = e.length, a;
470
470
  for (; t !== 0; )
471
471
  a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];