@everymatrix/casino-lobby 1.74.8 → 1.74.10

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-BMDbprh6.js → CasinoCalendar-B0K8z0GJ.js} +781 -795
  2. package/components/CasinoCalendar-Bo-lripz.cjs +19 -0
  3. package/components/{CasinoCalendar-FUyH3So6.js → CasinoCalendar-CzMBlFEu.js} +995 -1009
  4. package/components/{CasinoCalendarDailyDetails-PT-ciuLj.js → CasinoCalendarDailyDetails-8b-Ie2Hl.js} +75 -75
  5. package/components/{CasinoCalendarDailyDetails-qb4mpvz6.js → CasinoCalendarDailyDetails-D5cq8_6v.js} +75 -75
  6. package/components/CasinoCalendarDailyDetails-DZ2juA5b.cjs +1 -0
  7. package/components/{CasinoCalendarDailyItem-E_UK8J-P.js → CasinoCalendarDailyItem-BglEC2TQ.js} +6 -6
  8. package/components/{CasinoCalendarDailyItem-BJAYmacx.cjs → CasinoCalendarDailyItem-Cl7eHYxY.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-Ddvjsin9.js → CasinoCalendarDailyItem-DXREwm9q.js} +6 -6
  10. package/components/CasinoCategoriesSlider-B6_EYUBm.cjs +1 -0
  11. package/components/{CasinoCategoriesSlider-CyY1HQ0P.js → CasinoCategoriesSlider-BKQxQQyV.js} +64 -64
  12. package/components/{CasinoCategoriesSlider-DTKia-BC.js → CasinoCategoriesSlider-C7_ke4uB.js} +64 -64
  13. package/components/{CasinoCollectionsProviders-DnxgcymV.cjs → CasinoCollectionsProviders-Abg7c3OD.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-G6IEHMff.js → CasinoCollectionsProviders-BpkF43eH.js} +4 -4
  15. package/components/{CasinoCollectionsProviders-C66vF5px.js → CasinoCollectionsProviders-BzU-DnW_.js} +4 -4
  16. package/components/{CasinoFavoritesSection-DvljpfJ3.js → CasinoFavoritesSection-9lyxUggQ.js} +5 -5
  17. package/components/{CasinoFavoritesSection-Cv6jIUlD.js → CasinoFavoritesSection-CYeNzAvT.js} +5 -5
  18. package/components/{CasinoFavoritesSection-BQm3vLN4.cjs → CasinoFavoritesSection-yx4YyO7z.cjs} +1 -1
  19. package/components/CasinoFilter-Bc_k_xiT.cjs +1 -0
  20. package/components/{CasinoFilter-CFd1r73g.js → CasinoFilter-CekYy95Z.js} +225 -224
  21. package/components/{CasinoFilter-BW0CkIQU.js → CasinoFilter-Cve0ticX.js} +253 -254
  22. package/components/{CasinoGameThumbnail-CP707TN8.js → CasinoGameThumbnail-1vnHRePz.js} +1239 -1255
  23. package/components/{CasinoGameThumbnail-Cl2nd2Ao.js → CasinoGameThumbnail-CWVvNagJ.js} +768 -752
  24. package/components/CasinoGameThumbnail-MNCUvtBB.cjs +47 -0
  25. package/components/{CasinoGamesCategorySection-_5PoZwz5.js → CasinoGamesCategorySection-Cfjz1dku.js} +179 -179
  26. package/components/CasinoGamesCategorySection-D5XSzosp.cjs +1 -0
  27. package/components/{CasinoGamesCategorySection-BexCIH6G.js → CasinoGamesCategorySection-DmOLQ3Vd.js} +182 -182
  28. package/components/{CasinoJackpotBanner-DdPrmZDs.js → CasinoJackpotBanner-B_dYLQp4.js} +8 -8
  29. package/components/{CasinoJackpotBanner-nsvJTIO2.js → CasinoJackpotBanner-CBz6E__7.js} +8 -8
  30. package/components/{CasinoJackpotBanner-0uMNuf8D.cjs → CasinoJackpotBanner-DrTQC7xJ.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-B7Zksu4A.js → CasinoLastPlayedSection--Qe6ZhCg.js} +8 -8
  32. package/components/{CasinoLastPlayedSection-BvLbRXcm.js → CasinoLastPlayedSection-BDaudheg.js} +8 -8
  33. package/components/{CasinoLastPlayedSection-DbfXEbef.cjs → CasinoLastPlayedSection-gXkDFCLp.cjs} +1 -1
  34. package/components/{CasinoLobby-BN2EJtl2.js → CasinoLobby-2yiegknV.js} +7 -7
  35. package/components/{CasinoLobby-D8qvx3h6.js → CasinoLobby-C-nPEaqC.js} +7 -7
  36. package/components/{CasinoLobby-nUsTGR-H.cjs → CasinoLobby-Yi98Oora.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-Bol1_zkd.js → CasinoMostPlayedSection--ioyWjg0.js} +13 -13
  38. package/components/{CasinoMostPlayedSection-ts0YqE3Q.js → CasinoMostPlayedSection-OQTrFFYj.js} +13 -13
  39. package/components/{CasinoMostPlayedSection-Du_UlvPc.cjs → CasinoMostPlayedSection-ahrkwe03.cjs} +1 -1
  40. package/components/{CasinoMyGames-a2l-w517.js → CasinoMyGames-C3d24Otj.js} +8 -8
  41. package/components/{CasinoMyGames-D9v-iYaj.js → CasinoMyGames-CdCBPj7p.js} +8 -8
  42. package/components/{CasinoMyGames-DqGcye1D.cjs → CasinoMyGames-nNbPPI-D.cjs} +1 -1
  43. package/components/{CasinoPage-C9nOimHH.js → CasinoPage-5bRpNKaS.js} +15 -15
  44. package/components/{CasinoPage-BOiAVVXu.cjs → CasinoPage-BzYIzPcD.cjs} +1 -1
  45. package/components/{CasinoPage-KebAtIf2.js → CasinoPage-D-B9FS4G.js} +15 -15
  46. package/components/{CasinoRandomGame-CytI5GjM.js → CasinoRandomGame-Bqh0v1th.js} +83 -83
  47. package/components/{CasinoRandomGame-R-0QqjwX.js → CasinoRandomGame-DUQ2O7Ih.js} +12 -12
  48. package/components/{CasinoRandomGame-D6dNIU7H.cjs → CasinoRandomGame-DwpEKRBx.cjs} +2 -2
  49. package/components/{CasinoSearch-PQxlpdIr.js → CasinoSearch-B4WLyXex.js} +5 -5
  50. package/components/{CasinoSearch-CgNC2d7t.cjs → CasinoSearch-CAVnTiiU.cjs} +1 -1
  51. package/components/{CasinoSearch-DMIFjlPK.js → CasinoSearch-RDMeVLj-.js} +5 -5
  52. package/components/{CasinoSlider-BUdXNBUn.js → CasinoSlider-BSy-pbt8.js} +5 -5
  53. package/components/{CasinoSlider-CgGTFca7.js → CasinoSlider-BZe1q5jA.js} +5 -5
  54. package/components/{CasinoSlider-B_4OKAXx.cjs → CasinoSlider-Gf_263k6.cjs} +1 -1
  55. package/components/{CasinoSort-d_O_44vv.js → CasinoSort-B25h8Cud.js} +102 -103
  56. package/components/{CasinoSort-_My6LmSq.cjs → CasinoSort-BjPW0QaZ.cjs} +1 -1
  57. package/components/{CasinoSort-CFRGv5Ze.js → CasinoSort-DHRPAHDE.js} +94 -93
  58. package/components/{CasinoWinners-BX9jBJGA.cjs → CasinoWinners-D1tkG_oD.cjs} +1 -1
  59. package/components/{CasinoWinners-Co-G3_VH.js → CasinoWinners-DUN0A3--.js} +122 -122
  60. package/components/{CasinoWinners-DBM7TeCL.js → CasinoWinners-DYd8q5Sh.js} +126 -126
  61. package/components/{GeneralAnimationLoading-CfouZ-sx.js → GeneralAnimationLoading-8efHmhFw.js} +7 -7
  62. package/components/{GeneralAnimationLoading-D47HGjTy.cjs → GeneralAnimationLoading-CUK4MKI8.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-eg8O-l55.js → GeneralAnimationLoading-DUAt1hpi.js} +7 -7
  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-BGnpW6-t.js +25 -0
  69. package/stencil/casino-play-random-game-Dkt8_s5i.js +7 -0
  70. package/stencil/casino-play-random-game-DxDk4Aim.cjs +1 -0
  71. package/stencil/casino-play-random-game_2-BxEiwCaH.cjs +432 -0
  72. package/stencil/{casino-play-random-game-uBjWXXLi.js → casino-play-random-game_2-CO_ycbvG.js} +216 -66
  73. package/stencil/{casino-play-random-game-qroM0e64.js → casino-play-random-game_2-OLkBGlKQ.js} +223 -91
  74. package/stencil/{index-ab3202d6-CoRS04SH.js → index-328e660d-CgCMs0nk.js} +198 -197
  75. package/stencil/{index-ab3202d6-CSUArOSv.js → index-328e660d-DIiqSVTN.js} +194 -193
  76. package/stencil/index-328e660d-pKNw3-4H.cjs +1 -0
  77. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  78. package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
  79. package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
  80. package/stencil/{index-b2193545-kN0z2MLt.js → index-b2193545-BL364Gzq.js} +169 -169
  81. package/stencil/{index-b2193545-D_cUvAA-.js → index-b2193545-DdqB2rk5.js} +176 -176
  82. package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
  83. package/stencil/{ui-image-I_uR7pAI.js → ui-image-B_HWMBI-.js} +1 -1
  84. package/stencil/{ui-image-BAqS-hS6.js → ui-image-CzGNxx73.js} +1 -1
  85. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  86. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  87. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  88. package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-wubI3fkK.cjs} +1 -1
  89. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-CzFe50WB.js} +2 -2
  90. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  91. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-z5LhXZY2.js} +2 -2
  92. package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CsmgJUYN.js} +2 -2
  93. package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
  94. package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
  95. package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
  96. package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
  97. package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-yRWBmyfK.js} +2 -2
  98. package/components/CasinoCalendar-BGhJ1cEV.cjs +0 -19
  99. package/components/CasinoCalendarDailyDetails-DyNw1uMX.cjs +0 -1
  100. package/components/CasinoCategoriesSlider-CMchkLFc.cjs +0 -1
  101. package/components/CasinoFilter-BKrzmU_V.cjs +0 -1
  102. package/components/CasinoGameThumbnail-xpkz1cUi.cjs +0 -47
  103. package/components/CasinoGamesCategorySection-DkolOoEE.cjs +0 -1
  104. package/stencil/casino-play-random-game-C3hhQjhn.cjs +0 -378
  105. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  106. package/stencil/index-ab3202d6-DitihRZv.cjs +0 -1
  107. package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-BGhJ1cEV.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-Bo-lripz.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,4 +1,4 @@
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-BMDbprh6.js";
1
+ import { S as u, i as f, f as c, c as m, s as g, b as y, e as p, d as h, G as d, j as b, o as v, n as x, p as _, q as S, r as k } from "./CasinoCalendar-CzMBlFEu.js";
2
2
  function C(t) {
3
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
  }
@@ -6,10 +6,10 @@ function L(t) {
6
6
  let i;
7
7
  return {
8
8
  c() {
9
- i = h("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
9
+ i = p("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
- p(n, i, l), t[4](i);
12
+ h(n, i, l), t[4](i);
13
13
  },
14
14
  p: d,
15
15
  i: d,
@@ -24,7 +24,7 @@ function j(t, i, n) {
24
24
  v(() => () => {
25
25
  });
26
26
  function o(e) {
27
- S[e ? "unshift" : "push"](() => {
27
+ x[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 && 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`);
35
+ 3 && l && s && _(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
36
+ 5 && a && s && S(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
37
+ 9 && r && s && k(s, `${r}.Style`);
38
38
  }, [
39
39
  s,
40
40
  l,
@@ -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-nUsTGR-H.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-Yi98Oora.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-BN2EJtl2.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-2yiegknV.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-D8qvx3h6.js";
1
+ import { C as s } from "../components/CasinoLobby-C-nPEaqC.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.8",
3
+ "version": "1.74.10",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-lobby.cjs",
6
6
  "module": "esnext/casino-lobby.js",
@@ -0,0 +1,25 @@
1
+ var l = (i, a, t) => new Promise((s, o) => {
2
+ var c = (n) => {
3
+ try {
4
+ e(t.next(n));
5
+ } catch (r) {
6
+ o(r);
7
+ }
8
+ }, g = (n) => {
9
+ try {
10
+ e(t.throw(n));
11
+ } catch (r) {
12
+ o(r);
13
+ }
14
+ }, e = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(c, g);
15
+ e((t = t.apply(i, a)).next());
16
+ });
17
+ import { b as m, p as u } from "./index-328e660d-CgCMs0nk.js";
18
+ import { g as d } from "./app-globals-0f993ce5-DfNOCk8l.js";
19
+ var h = () => {
20
+ const i = import.meta.url, a = {};
21
+ return i !== "" && (a.resourcesUrl = new URL(".", i).href), u(a);
22
+ };
23
+ h().then((i) => l(void 0, null, function* () {
24
+ return yield d(), m([["casino-play-random-game_2", [[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"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], i);
25
+ }));
@@ -0,0 +1,7 @@
1
+ import { b as a, p as t } from "./index-328e660d-DIiqSVTN.js";
2
+ import { g as e } from "./app-globals-0f993ce5-DfNOCk8l.js";
3
+ var r = () => {
4
+ const n = import.meta.url, i = {};
5
+ return n !== "" && (i.resourcesUrl = new URL(".", n).href), t(i);
6
+ };
7
+ r().then(async (n) => (await e(), a([["casino-play-random-game_2", [[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"] }], [0, "ui-skeleton", { structure: [1], width: [1], height: [1], borderRadius: [8, "border-radius"], marginBottom: [8, "margin-bottom"], marginTop: [8, "margin-top"], marginLeft: [8, "margin-left"], marginRight: [8, "margin-right"], animation: [4], rows: [2], size: [1] }, null, { structure: ["handleStructureChange"] }]]]], n)));
@@ -0,0 +1 @@
1
+ "use strict";var c=(e,i,t)=>new Promise((u,l)=>{var m=n=>{try{a(t.next(n))}catch(r){l(r)}},d=n=>{try{a(t.throw(n))}catch(r){l(r)}},a=n=>n.done?u(n.value):Promise.resolve(n.value).then(m,d);a((t=t.apply(e,i)).next())});const s=require("./index-328e660d-pKNw3-4H.cjs"),g=require("./app-globals-0f993ce5-4b17CI_n.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/casino-play-random-game-DxDk4Aim.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),s.promiseResolve(i)};h().then(e=>c(exports,null,function*(){return yield g.globalScripts(),s.bootstrapLazy([["casino-play-random-game_2",[[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"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],e)}));
@@ -0,0 +1,432 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-328e660d-pKNw3-4H.cjs"),p=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},w="en",r={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"}},l=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(a=>{r[a]||(r[a]={});for(let o in i[a])r[a][o]=i[a][o]}),t(!0)})}),s=(e,t)=>{const i=t;return r[i!==void 0&&i in r?i:w][e]};function m(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function d(e,t){const i=new URL(t);fetch(i.href).then(a=>a.text()).then(a=>{const o=document.createElement("style");o.innerHTML=a,e&&e.appendChild(o)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function f(e,t,i){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,o=>{a.innerHTML=o,e&&e.appendChild(a)})}}const y=`:host {
2
+ display: block;
3
+ font-family: inherit;
4
+ -webkit-transform: translate3d(0, 0, 0);
5
+ transform: translate3d(0, 0, 0);
6
+ }
7
+
8
+ :host * {
9
+ -webkit-transform: translate3d(0, 0, 0);
10
+ transform: translate3d(0, 0, 0);
11
+ }
12
+
13
+ .RandomGameWrapper {
14
+ width: 100%;
15
+ height: var(--emw--size-4x-medium, 700px);
16
+ background: transparent;
17
+ position: relative;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .GameContainerGradient {
22
+ position: absolute;
23
+ top: 10%;
24
+ left: -5px;
25
+ width: 100vw;
26
+ height: 80%;
27
+ background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.5) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.5) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
28
+ pointer-events: none;
29
+ z-index: 1;
30
+ filter: blur(10px);
31
+ }
32
+
33
+ .GamesContainer {
34
+ display: flex;
35
+ height: var(--emw--size-4x-medium, 600px);
36
+ flex-direction: row;
37
+ flex-wrap: nowrap;
38
+ justify-content: flex-start;
39
+ align-items: center;
40
+ align-content: flex-start;
41
+ gap: var(--emw--spacing-large, 20px);
42
+ }
43
+
44
+ .RandomGameCard {
45
+ position: relative;
46
+ width: var(--emw--size-3x-medium, 300px);
47
+ height: var(--emw--size-4x-medium, 420px);
48
+ border-radius: var(--emw--border-radius-large, 10px);
49
+ top: 8%;
50
+ filter: blur(5px);
51
+ }
52
+ .RandomGameCard .RandomGameVendor {
53
+ position: absolute;
54
+ font-size: var(--emw--font-size-x-small, 12px);
55
+ bottom: var(--emw--spacing-small-minus, 10px);
56
+ left: var(--emw--spacing-small-minus, 10px);
57
+ color: var(--emw--color-typography, #FFFFFF);
58
+ }
59
+
60
+ .TheRandomGame {
61
+ animation-name: ZoomFadeIn;
62
+ animation-duration: 0.5s;
63
+ animation-fill-mode: forwards;
64
+ -webkit-animation-name: ZoomFadeIn;
65
+ -webkit-animation-duration: 0.5s;
66
+ -webkit-animation-fill-mode: forwards;
67
+ opacity: 1;
68
+ cursor: pointer;
69
+ filter: blur(0);
70
+ }
71
+
72
+ .RandomGameImage {
73
+ width: inherit;
74
+ height: inherit;
75
+ object-fit: cover;
76
+ border-radius: var(--emw--border-radius-large, 10px);
77
+ }
78
+
79
+ .RandomGameDetails {
80
+ display: flex;
81
+ flex-direction: row;
82
+ justify-content: space-between;
83
+ align-items: center;
84
+ color: var(--emw--color-typography, #FFFFFF);
85
+ font-size: var(--emw--font-size-small, 14px);
86
+ width: 100%;
87
+ }
88
+ .RandomGameDetails .RandomGameTitle {
89
+ line-height: 18px;
90
+ margin: 5px 0;
91
+ }
92
+ .RandomGameDetails .RandomGameInfo {
93
+ border-radius: 50%;
94
+ width: var(--emw--spacing-medium, 16px);
95
+ height: var(--emw--spacing-medium, 16px);
96
+ font-size: var(--emw--font-size-x-small, 12px);
97
+ font-weight: var(--emw--font-weight-normal, 400);
98
+ border: solid 1px var(--emw--color-typography, #FFFFFF);
99
+ text-align: center;
100
+ margin: var(--emw--spacing-2x-small, 4px) 0;
101
+ line-height: 14px;
102
+ cursor: pointer;
103
+ }
104
+ .RandomGameDetails .RandomGamePlay {
105
+ background: var(--emw--color-primary, #4bd004);
106
+ color: var(--emw--color-typography, #FFFFFF);
107
+ border: none;
108
+ border-radius: var(--emw--border-radius-medium, 5px);
109
+ width: 200px;
110
+ height: 40px;
111
+ font-size: var(--emw--font-size-small, 14px);
112
+ cursor: pointer;
113
+ }
114
+
115
+ .ButtonWrapper {
116
+ position: absolute;
117
+ top: 50%;
118
+ left: 50%;
119
+ transform: translate(-50%, -50%);
120
+ z-index: 20;
121
+ }
122
+
123
+ .ButtonContainer {
124
+ display: flex;
125
+ flex-direction: column;
126
+ justify-content: center;
127
+ align-items: center;
128
+ gap: 10px;
129
+ width: 100%;
130
+ position: relative;
131
+ }
132
+
133
+ .ButtonIcon {
134
+ display: flex;
135
+ flex-direction: column;
136
+ justify-content: center;
137
+ align-items: center;
138
+ gap: var(--emw--spacing-2x-small, 5px);
139
+ }
140
+
141
+ .QustionMark {
142
+ position: absolute;
143
+ font-family: sans-serif;
144
+ font-size: 120px;
145
+ font-weight: 900;
146
+ color: color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 10%);
147
+ text-shadow: 0px 12px 0px color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 50%);
148
+ left: 50%;
149
+ top: -20%;
150
+ transform: translateX(-50%);
151
+ z-index: 10;
152
+ }
153
+
154
+ .HexagonMarkShadow {
155
+ width: 100px;
156
+ height: 115px;
157
+ display: flex;
158
+ justify-content: center;
159
+ align-items: center;
160
+ background: color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 70%);
161
+ clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
162
+ }
163
+
164
+ .HexagonMark {
165
+ position: absolute;
166
+ width: var(--emw--size-medium, 90px);
167
+ height: 105px;
168
+ background: linear-gradient(to bottom, color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 20%) 0%, var(--emw--categories-color-secondary, var(--emw--color-secondary, #eeac4a)) 100%);
169
+ clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
170
+ }
171
+
172
+ .RandomButtons {
173
+ display: flex;
174
+ flex-direction: row;
175
+ justify-content: center;
176
+ align-items: center;
177
+ gap: var(--emw--spacing-2x-small, 5px);
178
+ width: 100%;
179
+ position: relative;
180
+ z-index: 10;
181
+ }
182
+
183
+ .RandomButton {
184
+ font-size: var(--emw--font-size-large, 12px);
185
+ text-transform: uppercase;
186
+ width: max-content;
187
+ border-radius: var(--emw--button-border-radius, 10px);
188
+ padding: var(--emw--spacing-large, 20px) var(--emw--spacing-2x-large, 40px);
189
+ border: solid 3px var(--emw--button-border-color, #063B17);
190
+ color: var(--emw--button-text-color, #FFFFFF);
191
+ opacity: 1;
192
+ animation: ButtonEffect 3s linear infinite;
193
+ background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));
194
+ background-size: 300% 100%;
195
+ cursor: pointer;
196
+ position: relative;
197
+ z-index: 10;
198
+ }
199
+ .RandomButton:hover {
200
+ opacity: 0.8;
201
+ }
202
+
203
+ .HideAnimation {
204
+ filter: blur(5px);
205
+ animation: AnimateButton 0.2s forwards;
206
+ }
207
+
208
+ .Flip {
209
+ animation-name: Flip, Blur;
210
+ animation-duration: 0.75s, 3s;
211
+ animation-iteration-count: infinite, 1;
212
+ -webkit-animation-name: Flip, Blur;
213
+ -webkit-animation-duration: 0.75s, 3s;
214
+ -webkit-animation-iteration-count: infinite, 1;
215
+ }
216
+
217
+ @keyframes ButtonEffect {
218
+ 0% {
219
+ background-position: 0% 50%;
220
+ }
221
+ 33% {
222
+ background-position: 100% 50%;
223
+ }
224
+ 66% {
225
+ background-position: 200% 50%;
226
+ }
227
+ 100% {
228
+ background-position: 300% 50%;
229
+ }
230
+ }
231
+ @keyframes ZoomFadeIn {
232
+ 0% {
233
+ transform: scale(0.2) translateY(0);
234
+ filter: blur(5px);
235
+ opacity: 0.3;
236
+ }
237
+ 50% {
238
+ transform: scale(1.1) translateY(-30px);
239
+ filter: blur(2px);
240
+ opacity: 0.7;
241
+ }
242
+ 100% {
243
+ transform: scale(1) translateY(-30px);
244
+ filter: blur(0px);
245
+ opacity: 1;
246
+ }
247
+ }
248
+ @keyframes AnimateButton {
249
+ 0% {
250
+ opacity: 0.7;
251
+ }
252
+ 50% {
253
+ opacity: 0.4;
254
+ }
255
+ 100% {
256
+ opacity: 0;
257
+ display: none;
258
+ }
259
+ }
260
+ @keyframes Flip {
261
+ 0% {
262
+ transform: rotateY(0deg);
263
+ }
264
+ 50% {
265
+ transform: rotateY(180deg);
266
+ }
267
+ 100% {
268
+ transform: rotateY(360deg);
269
+ }
270
+ }
271
+ @keyframes Blur {
272
+ 0% {
273
+ filter: blur(0);
274
+ }
275
+ 50% {
276
+ filter: blur(1px);
277
+ }
278
+ 100% {
279
+ filter: blur(3px);
280
+ }
281
+ }
282
+ @media screen and (max-width: 480px) {
283
+ .RandomButtons .RandomButton {
284
+ font-size: var(--emw--font-size-medium, 12px);
285
+ }
286
+ }
287
+ @container (max-width: 475px) {
288
+ .GamesContainer {
289
+ height: inherit;
290
+ gap: var(--emw--spacing-2x-small, 5px);
291
+ }
292
+ .RandomGameWrapper {
293
+ width: 100%;
294
+ height: 300px;
295
+ overflow: hidden;
296
+ background: transparent;
297
+ position: relative;
298
+ }
299
+ .GameContainerGradient {
300
+ position: absolute;
301
+ top: 10%;
302
+ left: -5px;
303
+ width: 100vw;
304
+ height: 80%;
305
+ background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.2) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.2) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
306
+ pointer-events: none;
307
+ z-index: 1;
308
+ filter: blur(5px);
309
+ }
310
+ .RandomGameCard {
311
+ width: 100px;
312
+ height: 150px;
313
+ top: 0%;
314
+ border-radius: var(--emw--border-radius-medium, 4px);
315
+ filter: blur(5px);
316
+ }
317
+ .RandomGameImage {
318
+ width: 102px;
319
+ height: inherit;
320
+ top: 0%;
321
+ }
322
+ .RandomGameDetails {
323
+ font-size: 14px;
324
+ width: 100%;
325
+ }
326
+ .RandomGameDetails .RandomGameTitle {
327
+ margin: 5px 0;
328
+ line-height: 18px;
329
+ width: 75%;
330
+ }
331
+ .RandomGameDetails .RandomGameInfo {
332
+ border-radius: 50%;
333
+ width: 16px;
334
+ height: 16px;
335
+ font-size: var(--emw--font-size-x-small, 12px);
336
+ line-height: 14px;
337
+ }
338
+ .RandomGameDetails .RandomGamePlay {
339
+ background: var(--emw--color-primary, #52d004);
340
+ color: var(--emw--color-typography, #FFFFFF);
341
+ border: none;
342
+ border-radius: 5px;
343
+ width: 200px;
344
+ height: 40px;
345
+ font-size: 14px;
346
+ cursor: pointer;
347
+ }
348
+ .RandomGameCard .RandomGameVendor {
349
+ font-size: var(--emw--font-size-x-small, 12px);
350
+ bottom: 5px;
351
+ right: 5px;
352
+ }
353
+ .RandomButtons {
354
+ display: flex;
355
+ flex-direction: column;
356
+ justify-content: center;
357
+ align-items: center;
358
+ gap: 5px;
359
+ width: 100%;
360
+ }
361
+ .RandomButton {
362
+ font-size: var(--emw--font-size-x-small, 12px);
363
+ padding: 10px 15px;
364
+ border: solid 1px var(--emw--button-border-color, #063B17);
365
+ }
366
+ .QustionMark {
367
+ font-size: 100px;
368
+ font-weight: 700;
369
+ }
370
+ .HexagonMarkShadow {
371
+ width: 80px;
372
+ height: 95px;
373
+ }
374
+ .HexagonMark {
375
+ width: 70px;
376
+ height: 85px;
377
+ }
378
+ }`,x=y,h=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=t=>{let i=t.length,a;for(;i!==0;)a=Math.floor(Math.random()*i),i--,[t[i],t[a]]=[t[a],t[i]];return t},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(e,t){e&&e!=t&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,t){e!=t&&m(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&m(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",p()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((t,i)=>{this.isLoading=!0,fetch(e.href).then(a=>a.json()).then(a=>{this.gamesToShow=this.setUpGames(a==null?void 0:a.items),t(!0)}).catch(a=>{console.error(a),this.hasErrors=!0,i(a)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const t=this.shuffle(e).slice(0,40);return t.concat(t)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,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 e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),t=parseInt(e,10),i=this.selectedGameEl.offsetWidth,a=this.gameContainer.offsetWidth,o=(i+t)*this.selectedGameIndex+i/2-a/2,g=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],u={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(g,u),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 n.h("div",{class:"RandomButtonsWrapper"},n.h("div",{class:"RandomGameDetails"},n.h("span",{class:"RandomGameTitle"},this.selectedGame.name),n.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),n.h("div",{class:"RandomButtons"},n.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(t,i)=>n.h("div",{class:"RandomGameCard",key:i},n.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer"},e))}render(){return n.h("div",{key:"ccc1e77093402e72a300ded18465085c182fbd79",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},s("error",this.language))):this.isLoading?this.renderSkeleton():n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,t)=>n.h("div",{class:"RandomGameCard",key:t,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},n.h("div",{class:"RandomGameVendor"},e.vendor.name),n.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===t&&this.renderGameDetails()))),n.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},n.h("div",{class:"ButtonContainer"},this.iconVisibility&&n.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},n.h("div",{class:"QustionMark"},"?"),n.h("div",{class:"HexagonMarkShadow"}),n.h("div",{class:"HexagonMark"})),!this.animationStarted&&n.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language))))))}get host(){return n.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};h.style=x;const b=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",k=b,c=class{constructor(e){n.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return n.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,t)=>n.h("div",{key:t,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
379
+ :host {
380
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
381
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
382
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
383
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
384
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
385
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
386
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
387
+ }
388
+ `;break;case"image":e=`
389
+ :host {
390
+ --emw-skeleton-image-width: ${this.stylingValue.width};
391
+ --emw-skeleton-image-height: ${this.stylingValue.height};
392
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
393
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
394
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
395
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
396
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
397
+ }
398
+ `;break;case"title":e=`
399
+ :host {
400
+ --emw-skeleton-title-width: ${this.stylingValue.width};
401
+ --emw-skeleton-title-height: ${this.stylingValue.height};
402
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
403
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
404
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
405
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
406
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
407
+ }
408
+ `;break;case"text":e=`
409
+ :host {
410
+ --emw-skeleton-text-width: ${this.stylingValue.width};
411
+ --emw-skeleton-text-height: ${this.stylingValue.height};
412
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
413
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
414
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
415
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
416
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
417
+ }
418
+ `;break;case"rectangle":e=`
419
+ :host {
420
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
421
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
422
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
423
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
424
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
425
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
426
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
427
+ }
428
+ `;break;case"circle":e=`
429
+ :host {
430
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
431
+ }
432
+ `;break;default:e=""}return n.h(n.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},n.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};c.style=k;exports.casino_play_random_game=h;exports.ui_skeleton=c;