@everymatrix/casino-lobby 1.71.1 → 1.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/components/CasinoCalendar-CqIFh2Q5.cjs +19 -0
  2. package/components/{CasinoCalendar-BsOWkLVp.js → CasinoCalendar-D8285A_4.js} +858 -837
  3. package/components/{CasinoCalendar-RmQ6YNrd.js → CasinoCalendar-DaqInWFB.js} +1031 -1010
  4. package/components/{CasinoCalendarDailyDetails-CIDfmzEU.cjs → CasinoCalendarDailyDetails-B_q2ojzj.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-CZvv-VEw.js → CasinoCalendarDailyDetails-Bawf2lVh.js} +38 -38
  6. package/components/{CasinoCalendarDailyDetails-CgySlNqk.js → CasinoCalendarDailyDetails-D17fJmHk.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-Bqhwdp9N.js → CasinoCalendarDailyItem-C-jXPiMc.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-6fstg8rl.js → CasinoCalendarDailyItem-CNU2dbWb.js} +34 -34
  9. package/components/{CasinoCalendarDailyItem-BofIs4hH.cjs → CasinoCalendarDailyItem-Dn8aZPDI.cjs} +1 -1
  10. package/components/{CasinoCategoriesSlider-BrMd9akG.js → CasinoCategoriesSlider-CeLXgUCx.js} +73 -73
  11. package/components/{CasinoCategoriesSlider-rcQ6H4dN.js → CasinoCategoriesSlider-DH7-Jx22.js} +72 -72
  12. package/components/CasinoCategoriesSlider-Xyi6Epkq.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-RmY6DCmf.js → CasinoCollectionsProviders-BMYO5_oZ.js} +77 -77
  14. package/components/{CasinoCollectionsProviders-X_gMs4dQ.js → CasinoCollectionsProviders-BvTs6B-x.js} +64 -64
  15. package/components/{CasinoCollectionsProviders-Iwvjux90.cjs → CasinoCollectionsProviders-DYgLBp3O.cjs} +1 -1
  16. package/components/{CasinoFavoritesSection-b-j22ATa.js → CasinoFavoritesSection-BKqd6QPI.js} +17 -17
  17. package/components/{CasinoFavoritesSection-D1C6HI9v.js → CasinoFavoritesSection-C70AjovE.js} +17 -17
  18. package/components/{CasinoFavoritesSection-Db99Uv7P.cjs → CasinoFavoritesSection-XYINNBSA.cjs} +1 -1
  19. package/components/CasinoFilter-BcJ-9hhc.js +645 -0
  20. package/components/CasinoFilter-DENEZ_Ic.cjs +1 -0
  21. package/components/CasinoFilter-dnkB-x_S.js +644 -0
  22. package/components/CasinoGameThumbnail-DhG_1DP9.cjs +47 -0
  23. package/components/{CasinoGameThumbnail-MrOCBFNA.js → CasinoGameThumbnail-DoFtJNVa.js} +1253 -1269
  24. package/components/{CasinoGameThumbnail-CeT997Kx.js → CasinoGameThumbnail-fh7soJLK.js} +778 -762
  25. package/components/{CasinoGamesCategorySection-CxiyhVqf.js → CasinoGamesCategorySection-BUme-Htd.js} +246 -246
  26. package/components/{CasinoGamesCategorySection-C8xeG4sY.cjs → CasinoGamesCategorySection-CR3TsCIr.cjs} +1 -1
  27. package/components/{CasinoGamesCategorySection-Dk6YpheO.js → CasinoGamesCategorySection-DvtiqWF7.js} +249 -249
  28. package/components/{CasinoJackpotBanner-g0X8UAFW.js → CasinoJackpotBanner-Afzkq4td.js} +119 -119
  29. package/components/{CasinoJackpotBanner-CpGio5N4.cjs → CasinoJackpotBanner-SH08_0Ad.cjs} +1 -1
  30. package/components/{CasinoJackpotBanner-CUP2An9A.js → CasinoJackpotBanner-THaCe8Q8.js} +113 -113
  31. package/components/{CasinoLastPlayedSection-lO1pohBq.cjs → CasinoLastPlayedSection-1yhfRFjo.cjs} +1 -1
  32. package/components/{CasinoLastPlayedSection-B668qxot.js → CasinoLastPlayedSection-Rb4msFL_.js} +37 -37
  33. package/components/{CasinoLastPlayedSection-D_0OBhSj.js → CasinoLastPlayedSection-oGkfGBwG.js} +37 -37
  34. package/components/{CasinoLobby-DwdNm6xo.js → CasinoLobby-CQ3V0-l_.js} +57 -57
  35. package/components/{CasinoLobby-BaQGWp9s.js → CasinoLobby-DnWoXtXL.js} +56 -56
  36. package/components/{CasinoLobby-lkQTAmN7.cjs → CasinoLobby-aB9f0zFp.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-C5gy3zyh.js → CasinoMostPlayedSection-BVvh0OQ0.js} +46 -46
  38. package/components/{CasinoMostPlayedSection-87nEdbm3.cjs → CasinoMostPlayedSection-CZOxOZVF.cjs} +1 -1
  39. package/components/{CasinoMostPlayedSection-CGXfghDB.js → CasinoMostPlayedSection-CckjcAvV.js} +46 -46
  40. package/components/{CasinoMyGames-BC98Tqse.js → CasinoMyGames-BUX8JdRW.js} +39 -39
  41. package/components/{CasinoMyGames-BkWFi0SD.js → CasinoMyGames-DBk0qpL0.js} +42 -42
  42. package/components/{CasinoMyGames-B4eUiwD2.cjs → CasinoMyGames-DMeOP0Ir.cjs} +1 -1
  43. package/components/{CasinoPage-mW7N_X4p.js → CasinoPage-963K0qkA.js} +881 -881
  44. package/components/{CasinoPage-DCj9ufQS.js → CasinoPage-CTQ4pjz5.js} +203 -203
  45. package/components/CasinoPage-DBbBQIRX.cjs +1 -0
  46. package/components/{CasinoRandomGame-CP2us9wQ.cjs → CasinoRandomGame-BtYuGyAc.cjs} +1 -1
  47. package/components/{CasinoRandomGame-BOlMftfW.js → CasinoRandomGame-DR9ShIKc.js} +56 -56
  48. package/components/{CasinoRandomGame-BPoQwGvz.js → CasinoRandomGame-DdY0LMqV.js} +57 -57
  49. package/components/{CasinoSearch-CxY1btEF.js → CasinoSearch-BFj2WAB3.js} +95 -95
  50. package/components/{CasinoSearch-_PkKs4Jp.cjs → CasinoSearch-D41XnJOo.cjs} +1 -1
  51. package/components/{CasinoSearch-DYeI3pnX.js → CasinoSearch-O8BFfuMh.js} +98 -98
  52. package/components/{CasinoSlider-CKrkEFp2.cjs → CasinoSlider-BxMmHxNN.cjs} +1 -1
  53. package/components/{CasinoSlider-mFk7hXGi.js → CasinoSlider-DxPhvmx5.js} +95 -95
  54. package/components/{CasinoSlider-D5pUgU6y.js → CasinoSlider-zDcdSGZI.js} +68 -68
  55. package/components/{CasinoSort-Bu7GAVyk.js → CasinoSort-BqIqZPtn.js} +103 -102
  56. package/components/{CasinoSort-CR3_Z1HP.js → CasinoSort-Bv9Xm47a.js} +111 -112
  57. package/components/{CasinoSort-DnffDijG.cjs → CasinoSort-CU7Sv-_a.cjs} +1 -1
  58. package/components/{CasinoWinners-CgGvis-Q.cjs → CasinoWinners-BJ15FnbR.cjs} +1 -1
  59. package/components/{CasinoWinners-BTigQx6l.js → CasinoWinners-C9LGaZlh.js} +145 -145
  60. package/components/{CasinoWinners-BHsWULT4.js → CasinoWinners-CkNCqfiv.js} +152 -152
  61. package/components/{GeneralAnimationLoading-CB353I6v.cjs → GeneralAnimationLoading-3ff4R40K.cjs} +1 -1
  62. package/components/{GeneralAnimationLoading-BYX0Qvf2.js → GeneralAnimationLoading-Dnw96YoY.js} +16 -16
  63. package/components/{GeneralAnimationLoading-DkDspmaZ.js → GeneralAnimationLoading-oBd_asJT.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-C3hhQjhn.cjs → casino-play-random-game-BMX5GkhL.cjs} +2 -2
  69. package/stencil/{casino-play-random-game-qroM0e64.js → casino-play-random-game-Ct3VSPhq.js} +2 -2
  70. package/stencil/{casino-play-random-game-uBjWXXLi.js → casino-play-random-game-DyfvRpYv.js} +2 -2
  71. package/stencil/index-97d17652--F7PvMq9.js +542 -0
  72. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  73. package/stencil/index-97d17652-CCFHkzJw.js +558 -0
  74. package/stencil/index-ab3202d6-BXlsno-y.js +559 -0
  75. package/stencil/index-ab3202d6-Dv-5ZSZX.cjs +1 -0
  76. package/stencil/index-ab3202d6-ncf4oQhs.js +575 -0
  77. package/stencil/index-b2193545-DVT8jgVo.cjs +1 -0
  78. package/stencil/index-b2193545-Dxw-xjac.js +503 -0
  79. package/stencil/index-b2193545-TbRClz6K.js +519 -0
  80. package/stencil/{ui-image-BAqS-hS6.js → ui-image-2_i-_1cj.js} +1 -1
  81. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  82. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  83. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  84. package/stencil/{ui-image-I_uR7pAI.js → ui-image-bN_3pDWc.js} +1 -1
  85. package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-eY8BEG3a.cjs} +1 -1
  86. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
  87. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  88. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
  89. package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CSMUbPcJ.js} +2 -2
  90. package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-CiszU04_.js} +2 -2
  91. package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DcmFcn7k.cjs} +1 -1
  92. package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-9hZ7WFQc.js} +1 -1
  93. package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-D1Tb0H8D.cjs} +1 -1
  94. package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-DDHvWmVB.js} +1 -1
  95. package/components/CasinoCalendar-wYGJExu0.cjs +0 -19
  96. package/components/CasinoCategoriesSlider-DXG58TlK.cjs +0 -1
  97. package/components/CasinoFilter-BG-xQ7Z9.js +0 -645
  98. package/components/CasinoFilter-Czto4aq6.js +0 -644
  99. package/components/CasinoFilter-DSxqwRvu.cjs +0 -1
  100. package/components/CasinoGameThumbnail-0cRYBNZ8.cjs +0 -47
  101. package/components/CasinoPage-CJXFGWAG.cjs +0 -1
  102. package/stencil/index-97d17652-BD-QREJe.js +0 -558
  103. package/stencil/index-97d17652-DJqGt8q2.js +0 -542
  104. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
  105. package/stencil/index-ab3202d6-CSUArOSv.js +0 -559
  106. package/stencil/index-ab3202d6-CoRS04SH.js +0 -575
  107. package/stencil/index-ab3202d6-DitihRZv.cjs +0 -1
  108. package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
  109. package/stencil/index-b2193545-D_cUvAA-.js +0 -519
  110. package/stencil/index-b2193545-kN0z2MLt.js +0 -503
@@ -1 +1 @@
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
+ "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,30 +1,30 @@
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-BsOWkLVp.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)}}");
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-D8285A_4.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)}}");
4
4
  }
5
5
  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,
16
16
  o: d,
17
17
  d(n) {
18
- n && b(i), t[4](null);
18
+ n && y(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
- v(() => () => {
24
+ b(() => () => {
25
25
  });
26
26
  function o(e) {
27
- S[e ? "unshift" : "push"](() => {
27
+ v[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 && 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`);
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 q extends u {
46
+ class w extends u {
47
47
  constructor(i) {
48
48
  super(), f(
49
49
  this,
50
50
  i,
51
51
  j,
52
52
  L,
53
- g,
53
+ m,
54
54
  {
55
55
  clientstyling: 1,
56
56
  clientstylingurl: 2,
57
57
  mbsource: 3
58
58
  },
59
- C
59
+ k
60
60
  );
61
61
  }
62
62
  get clientstyling() {
@@ -78,7 +78,7 @@ class q extends u {
78
78
  this.$$set({ mbsource: i }), c();
79
79
  }
80
80
  }
81
- m(q, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
81
+ C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
82
82
  export {
83
- q as default
83
+ w as default
84
84
  };
@@ -1,30 +1,30 @@
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-RmQ6YNrd.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)}}");
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-DaqInWFB.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)}}");
4
4
  }
5
5
  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,
16
16
  o: d,
17
17
  d(n) {
18
- n && b(i), t[4](null);
18
+ n && y(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
- v(() => () => {
24
+ b(() => () => {
25
25
  });
26
26
  function o(e) {
27
- S[e ? "unshift" : "push"](() => {
27
+ v[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 && 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`);
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 q extends u {
46
+ class w extends u {
47
47
  constructor(i) {
48
48
  super(), f(
49
49
  this,
50
50
  i,
51
51
  j,
52
52
  L,
53
- g,
53
+ m,
54
54
  {
55
55
  clientstyling: 1,
56
56
  clientstylingurl: 2,
57
57
  mbsource: 3
58
58
  },
59
- C
59
+ k
60
60
  );
61
61
  }
62
62
  get clientstyling() {
@@ -78,7 +78,7 @@ class q extends u {
78
78
  this.$$set({ mbsource: i }), c();
79
79
  }
80
80
  }
81
- m(q, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
81
+ C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
82
82
  export {
83
- q as default
83
+ w 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-lkQTAmN7.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-aB9f0zFp.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-DwdNm6xo.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-CQ3V0-l_.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-BaQGWp9s.js";
1
+ import { C as s } from "../components/CasinoLobby-DnWoXtXL.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.71.1",
3
+ "version": "1.72.0",
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-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 {
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 {
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",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;
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;
@@ -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-CoRS04SH.js";
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";
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", 7), 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"), 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-CSUArOSv.js";
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";
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", 7), 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"), 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]];