@everymatrix/casino-lobby 1.86.1 → 1.86.3
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.
- package/components/CasinoCalendar-Bh1m4DYa.cjs +19 -0
- package/components/{CasinoCalendar-DeuDpvc7.js → CasinoCalendar-CTTcluAF.js} +1012 -1033
- package/components/{CasinoCalendar-qxlVRlx3.js → CasinoCalendar-g3C0yL-l.js} +828 -849
- package/components/{CasinoCalendarDailyDetails-DgSA6Oos.js → CasinoCalendarDailyDetails-BReSw0PH.js} +38 -38
- package/components/{CasinoCalendarDailyDetails-oDArpqk3.js → CasinoCalendarDailyDetails-C6NZu63m.js} +38 -38
- package/components/{CasinoCalendarDailyDetails-0DzEjr4I.cjs → CasinoCalendarDailyDetails-MbSzyBl-.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-D1UMrOrr.js → CasinoCalendarDailyItem-DW4bwJrg.js} +34 -34
- package/components/{CasinoCalendarDailyItem--x4C1v1R.js → CasinoCalendarDailyItem-D_-hgIOG.js} +34 -34
- package/components/{CasinoCalendarDailyItem-BT_oTw81.cjs → CasinoCalendarDailyItem-vF8QUewM.cjs} +1 -1
- package/components/CasinoCategoriesSlider-CMW1BzhU.cjs +1 -0
- package/components/{CasinoCategoriesSlider-DnJiwJ-i.js → CasinoCategoriesSlider-DLioXO8u.js} +73 -73
- package/components/{CasinoCategoriesSlider-BmkD2GJJ.js → CasinoCategoriesSlider-uIpxZEDW.js} +70 -70
- package/components/{CasinoCollectionsProviders-DS-cICru.js → CasinoCollectionsProviders-BDJPyhyP.js} +64 -64
- package/components/{CasinoCollectionsProviders-KucGv4ev.cjs → CasinoCollectionsProviders-C66FXn8E.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-SF9NUz_s.js → CasinoCollectionsProviders-l8Bj7gLF.js} +77 -77
- package/components/{CasinoFavoritesSection-DBOa4rLG.js → CasinoFavoritesSection-1xjeruY9.js} +19 -19
- package/components/{CasinoFavoritesSection-Q91WkZtR.js → CasinoFavoritesSection-JbXta4ej.js} +19 -19
- package/components/{CasinoFavoritesSection-ioWl2WWa.cjs → CasinoFavoritesSection-flqQ1Txz.cjs} +1 -1
- package/components/{CasinoFilter-WlNu83Yo.js → CasinoFilter-AWMGrvg7.js} +222 -223
- package/components/CasinoFilter-CrCTTPvH.cjs +1 -0
- package/components/{CasinoFilter-Iy2ZAp7X.js → CasinoFilter-DK1IJtKj.js} +245 -244
- package/components/{CasinoGameThumbnail-yvrHp66V.js → CasinoGameThumbnail-AMyBxNdq.js} +762 -778
- package/components/{CasinoGameThumbnail-Ddpsxirj.js → CasinoGameThumbnail-DgEB-dkM.js} +1268 -1252
- package/components/CasinoGameThumbnail-Dymq8wWq.cjs +47 -0
- package/components/{CasinoGamesCategorySection-COcAuqTG.js → CasinoGamesCategorySection-UbxtEgDx.js} +301 -301
- package/components/{CasinoGamesCategorySection-DUgz8uau.cjs → CasinoGamesCategorySection-ZiaOwaIX.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-DDqd3M8L.js → CasinoGamesCategorySection-blhrWiJn.js} +302 -302
- package/components/{CasinoJackpotBanner-DEsoDJ4R.cjs → CasinoJackpotBanner-15vjCxeq.cjs} +1 -1
- package/components/{CasinoJackpotBanner-ovGVK744.js → CasinoJackpotBanner-OEQ6kTNX.js} +84 -84
- package/components/{CasinoJackpotBanner-CuHjieHv.js → CasinoJackpotBanner-sKWQEAXI.js} +89 -89
- package/components/{CasinoLastPlayedSection-C8WSFXnj.js → CasinoLastPlayedSection-DlDq9l_7.js} +33 -33
- package/components/{CasinoLastPlayedSection-cSkPcLtL.js → CasinoLastPlayedSection-Dv7S9x-o.js} +33 -33
- package/components/{CasinoLastPlayedSection-BHV-LRk1.cjs → CasinoLastPlayedSection-kM9yLvhD.cjs} +1 -1
- package/components/{CasinoLobby-Bkj4ZQu6.js → CasinoLobby-BknjaOeS.js} +59 -59
- package/components/{CasinoLobby-Bc2QHTe4.js → CasinoLobby-Dho7eG4P.js} +59 -59
- package/components/{CasinoLobby-Cs6HmQRu.cjs → CasinoLobby-odJbcWRR.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-DsX-pIXm.cjs → CasinoMostPlayedSection-BJpdcEGe.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CQdqKCZj.js → CasinoMostPlayedSection-CGxtqevB.js} +45 -45
- package/components/{CasinoMostPlayedSection-smiwW5Ol.js → CasinoMostPlayedSection-PvqfZR6v.js} +45 -45
- package/components/{CasinoMyGames-CJ7rioBh.cjs → CasinoMyGames-Baaz8xfL.cjs} +1 -1
- package/components/{CasinoMyGames-CYZ5nWjJ.js → CasinoMyGames-C22R6240.js} +29 -29
- package/components/{CasinoMyGames-CnnjGYeT.js → CasinoMyGames-Cr-QJTaa.js} +29 -29
- package/components/{CasinoPage-Dg5sPuQa.js → CasinoPage-BGrASQhH.js} +109 -109
- package/components/{CasinoPage-BzASY7Hg.cjs → CasinoPage-BZnxTJSo.cjs} +1 -1
- package/components/{CasinoPage-CUUEVdPt.js → CasinoPage-DcXwVMup.js} +123 -123
- package/components/{CasinoRandomGame-Dh5EVxCR.js → CasinoRandomGame-CLsTaSPD.js} +53 -53
- package/components/{CasinoRandomGame-DRJXaM_Z.cjs → CasinoRandomGame-Cz5w1Xkm.cjs} +1 -1
- package/components/{CasinoRandomGame-DBzLZj0J.js → CasinoRandomGame-DoBaxDNA.js} +52 -52
- package/components/{CasinoSearch--8BCnmOG.js → CasinoSearch-D4nuoT1C.js} +85 -85
- package/components/{CasinoSearch-r9ofFlZt.cjs → CasinoSearch-DHRGmpEd.cjs} +1 -1
- package/components/{CasinoSearch-BxyP0Ga2.js → CasinoSearch-M-zypI5B.js} +82 -82
- package/components/{CasinoSlider-C0mxz0hk.cjs → CasinoSlider-B_WI_7Qb.cjs} +1 -1
- package/components/{CasinoSlider-BihCQ92y.js → CasinoSlider-DvI5SCyj.js} +86 -86
- package/components/{CasinoSlider-DpYeYJhK.js → CasinoSlider-OSPrTvMo.js} +87 -87
- package/components/{CasinoSort-CbOOYzWs.js → CasinoSort-COpZLKBV.js} +102 -103
- package/components/{CasinoSort-BOsO5Bfe.js → CasinoSort-DEbYB6BH.js} +112 -111
- package/components/{CasinoSort-L9UM4M85.cjs → CasinoSort-KSHMLnqL.cjs} +1 -1
- package/components/{CasinoWinners-DAW-pGRt.js → CasinoWinners-6u19h4xG.js} +151 -151
- package/components/{CasinoWinners-CDQfWIM6.js → CasinoWinners-CtR1v_xw.js} +148 -148
- package/components/{CasinoWinners-CxuidCR1.cjs → CasinoWinners-DlPnBzX-.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CPc2UOwA.js → GeneralAnimationLoading-CEqG5qMY.js} +14 -14
- package/components/{GeneralAnimationLoading-CFokXkWs.cjs → GeneralAnimationLoading-oehLt3ob.cjs} +1 -1
- package/components/{GeneralAnimationLoading-D0quTPWA.js → GeneralAnimationLoading-rntZi33z.js} +14 -14
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-rBIQ75Yb.cjs → casino-play-random-game-111R1Frl.cjs} +1 -1
- package/stencil/{casino-play-random-game-bUDjgSKo.js → casino-play-random-game-D9PFB7B2.js} +1 -1
- package/stencil/{casino-play-random-game-DmsXPThq.js → casino-play-random-game-Dge6-qaF.js} +1 -1
- package/stencil/{casino-play-random-game_2-Bf4CHBc9.js → casino-play-random-game_2-CunwpDd1.js} +2 -2
- package/stencil/{casino-play-random-game_2-C30-vRGp.js → casino-play-random-game_2-auPXMZnz.js} +2 -2
- package/stencil/{casino-play-random-game_2-CCCLDakd.cjs → casino-play-random-game_2-cZvlv_fo.cjs} +2 -2
- package/stencil/index-328e660d-A_dWaOAX.cjs +1 -0
- package/stencil/index-328e660d-BiHqu78m.js +576 -0
- package/stencil/index-328e660d-DJbpQFmN.js +560 -0
- package/stencil/index-97d17652-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/index-b2193545-BkP0Nc2C.cjs +1 -0
- package/stencil/index-b2193545-CejVSlwL.js +519 -0
- package/stencil/index-b2193545-DL1I-QYR.js +503 -0
- package/stencil/{ui-image-BmLAbwvr.cjs → ui-image-C1Fl5HOc.cjs} +1 -1
- package/stencil/{ui-image-DDulMZDF.js → ui-image-DnOuibDF.js} +1 -1
- package/stencil/{ui-image-DwWgscwP.js → ui-image-_mAQXh8W.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/stencil/{ui-skeleton-BWEKzqTN.cjs → ui-skeleton-CWdppDyF.cjs} +1 -1
- package/stencil/{ui-skeleton-DgZQnowa.js → ui-skeleton-QCtPK7l5.js} +2 -2
- package/stencil/{ui-skeleton-D_tu1FGi.js → ui-skeleton-TkMXeWrD.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-Ti6Ksz7V.cjs → ui-skeleton-ed169f8f-BT7QFq3s.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Bs1q2JQr.js → ui-skeleton-ed169f8f-CiWqRE71.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D2rWx_KU.js → ui-skeleton-ed169f8f-pTYMIneT.js} +1 -1
- package/components/CasinoCalendar-CDybCkBw.cjs +0 -19
- package/components/CasinoCategoriesSlider-CDsrUsbe.cjs +0 -1
- package/components/CasinoFilter-S-pUTxvR.cjs +0 -1
- package/components/CasinoGameThumbnail-B386-P3k.cjs +0 -47
- package/stencil/index-328e660d-B6ge05AJ.js +0 -560
- package/stencil/index-328e660d-C6OCQOhB.cjs +0 -1
- package/stencil/index-328e660d-Duk3nD23.js +0 -576
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
- package/stencil/index-b2193545-BZAG_Jnw.js +0 -503
- package/stencil/index-b2193545-DG7pnr-7.js +0 -519
- package/stencil/index-b2193545-DuCTLpV-.cjs +0 -1
package/components/{CasinoCollectionsProviders-DS-cICru.js → CasinoCollectionsProviders-BDJPyhyP.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as be, $ as Ce, S as ye, i as _e,
|
|
2
|
-
function
|
|
1
|
+
import { a as be, $ as Ce, S as ye, i as _e, f as x, c as we, s as Se, b as ke, e as y, d as M, G as T, j, k as Ge, o as Pe, n as Le, p as Y, q as xe, r as Me, l as je, v as B, x as I, w as F, y as m, z as b, E as R, F as ne, A as O, O as Fe, L as N, J as Te, I as z, P as Be } from "./CasinoCalendar-g3C0yL-l.js";
|
|
2
|
+
function Q(t, e) {
|
|
3
3
|
be(t, e);
|
|
4
4
|
}
|
|
5
5
|
function Oe(t) {
|
|
6
6
|
Ce.set(t);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const D = {
|
|
9
9
|
en: {
|
|
10
10
|
collections: "Game Collections",
|
|
11
11
|
providers: "Game Providers",
|
|
@@ -102,8 +102,8 @@ const Q = {
|
|
|
102
102
|
loading: "Loading, please wait ..."
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function ze(t) {
|
|
106
|
+
ke(t, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
107
107
|
}
|
|
108
108
|
function $(t, e, i) {
|
|
109
109
|
const n = t.slice();
|
|
@@ -113,7 +113,7 @@ function ee(t, e, i) {
|
|
|
113
113
|
const n = t.slice();
|
|
114
114
|
return n[44] = e[i], n;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ee(t) {
|
|
117
117
|
let e, i, n, l = (
|
|
118
118
|
/*type*/
|
|
119
119
|
(t[0] === "vendor" ? (
|
|
@@ -135,7 +135,7 @@ function ze(t) {
|
|
|
135
135
|
a[d] = le($(t, f, d));
|
|
136
136
|
return {
|
|
137
137
|
c() {
|
|
138
|
-
e = y("div"), i = y("div"), n = y("p"), r =
|
|
138
|
+
e = y("div"), i = y("div"), n = y("p"), r = I(l), c = F(), s && s.c(), _ = F(), C = y("div");
|
|
139
139
|
for (let d = 0; d < a.length; d += 1)
|
|
140
140
|
a[d].c();
|
|
141
141
|
m(n, "class", "Title"), m(i, "class", "CategoriesHeader"), m(C, "class", "CategoriesSlider"), m(e, "class", S = "CasinoCollectionsProviders " + /*mobile*/
|
|
@@ -143,7 +143,7 @@ function ze(t) {
|
|
|
143
143
|
(t[0] === "vendor" ? "Providers" : "Collections"));
|
|
144
144
|
},
|
|
145
145
|
m(d, g) {
|
|
146
|
-
|
|
146
|
+
M(d, e, g), b(e, i), b(i, n), b(n, r), b(i, c), s && s.m(i, null), b(e, _), b(e, C);
|
|
147
147
|
for (let h = 0; h < a.length; h += 1)
|
|
148
148
|
a[h] && a[h].m(C, null);
|
|
149
149
|
t[25](C);
|
|
@@ -157,7 +157,7 @@ function ze(t) {
|
|
|
157
157
|
) : (
|
|
158
158
|
/*$_*/
|
|
159
159
|
d[10]("collections")
|
|
160
|
-
)) + "") &&
|
|
160
|
+
)) + "") && R(r, l), /*numberOfSlides*/
|
|
161
161
|
d[7] > /*numberOfVisibleSlides*/
|
|
162
162
|
d[8] ? s ? s.p(d, g) : (s = te(d), s.c(), s.m(i, null)) : s && (s.d(1), s = null), g[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
|
163
163
|
24590) {
|
|
@@ -184,14 +184,14 @@ function ze(t) {
|
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function He(t) {
|
|
188
188
|
let e;
|
|
189
189
|
return {
|
|
190
190
|
c() {
|
|
191
191
|
e = y("div"), m(e, "class", "LoadingSpinner");
|
|
192
192
|
},
|
|
193
193
|
m(i, n) {
|
|
194
|
-
|
|
194
|
+
M(i, e, n);
|
|
195
195
|
},
|
|
196
196
|
p: T,
|
|
197
197
|
d(i) {
|
|
@@ -206,7 +206,7 @@ function te(t) {
|
|
|
206
206
|
e = y("div"), i = y("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = F(), l = y("button"), l.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', m(e, "class", "ButtonsContainer");
|
|
207
207
|
},
|
|
208
208
|
m(_, C) {
|
|
209
|
-
|
|
209
|
+
M(_, e, C), b(e, i), b(e, n), b(e, l), r || (c = [
|
|
210
210
|
O(
|
|
211
211
|
i,
|
|
212
212
|
"click",
|
|
@@ -223,26 +223,26 @@ function te(t) {
|
|
|
223
223
|
},
|
|
224
224
|
p: T,
|
|
225
225
|
d(_) {
|
|
226
|
-
_ && j(e), r = !1,
|
|
226
|
+
_ && j(e), r = !1, Fe(c);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Ae(t) {
|
|
231
231
|
let e, i = (
|
|
232
232
|
/*category*/
|
|
233
233
|
t[41].name + ""
|
|
234
234
|
), n;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
e = y("p"), n =
|
|
237
|
+
e = y("p"), n = I(i), m(e, "class", "CategorySlideTitle");
|
|
238
238
|
},
|
|
239
239
|
m(l, r) {
|
|
240
|
-
|
|
240
|
+
M(l, e, r), b(e, n);
|
|
241
241
|
},
|
|
242
242
|
p(l, r) {
|
|
243
243
|
r[0] & /*gameCategories*/
|
|
244
244
|
8 && i !== (i = /*category*/
|
|
245
|
-
l[41].name + "") &&
|
|
245
|
+
l[41].name + "") && R(n, i);
|
|
246
246
|
},
|
|
247
247
|
d(l) {
|
|
248
248
|
l && j(e);
|
|
@@ -253,16 +253,16 @@ function Ne(t) {
|
|
|
253
253
|
let e, i, n;
|
|
254
254
|
return {
|
|
255
255
|
c() {
|
|
256
|
-
e = y("img"), m(e, "class", "CategorySlideLogo"),
|
|
256
|
+
e = y("img"), m(e, "class", "CategorySlideLogo"), z(e.src, i = /*category*/
|
|
257
257
|
t[41].icon) || m(e, "src", i), m(e, "alt", n = /*category*/
|
|
258
258
|
t[41].name + " icon");
|
|
259
259
|
},
|
|
260
260
|
m(l, r) {
|
|
261
|
-
|
|
261
|
+
M(l, e, r);
|
|
262
262
|
},
|
|
263
263
|
p(l, r) {
|
|
264
264
|
r[0] & /*gameCategories*/
|
|
265
|
-
8 && !
|
|
265
|
+
8 && !z(e.src, i = /*category*/
|
|
266
266
|
l[41].icon) && m(e, "src", i), r[0] & /*gameCategories*/
|
|
267
267
|
8 && n !== (n = /*category*/
|
|
268
268
|
l[41].name + " icon") && m(e, "alt", n);
|
|
@@ -279,16 +279,16 @@ function ie(t) {
|
|
|
279
279
|
), n, l;
|
|
280
280
|
return {
|
|
281
281
|
c() {
|
|
282
|
-
e = y("p"), n =
|
|
282
|
+
e = y("p"), n = I(i), m(e, "title", l = /*game*/
|
|
283
283
|
t[44].name);
|
|
284
284
|
},
|
|
285
285
|
m(r, c) {
|
|
286
|
-
|
|
286
|
+
M(r, e, c), b(e, n);
|
|
287
287
|
},
|
|
288
288
|
p(r, c) {
|
|
289
289
|
c[0] & /*gameCategories*/
|
|
290
290
|
8 && i !== (i = /*game*/
|
|
291
|
-
r[44].name + "") &&
|
|
291
|
+
r[44].name + "") && R(n, i), c[0] & /*gameCategories*/
|
|
292
292
|
8 && l !== (l = /*game*/
|
|
293
293
|
r[44].name) && m(e, "title", l);
|
|
294
294
|
},
|
|
@@ -314,16 +314,16 @@ function oe(t) {
|
|
|
314
314
|
);
|
|
315
315
|
return {
|
|
316
316
|
c() {
|
|
317
|
-
e = y("div"), i = y("img"), r = F(), s && s.c(), c = F(), m(i, "class", "CategorySlideGameImage"),
|
|
317
|
+
e = y("div"), i = y("img"), r = F(), s && s.c(), c = F(), m(i, "class", "CategorySlideGameImage"), z(i.src, n = /*game*/
|
|
318
318
|
t[44].defaultThumbnail) || m(i, "src", n), m(i, "alt", l = /*game*/
|
|
319
319
|
t[44].name), m(e, "class", "CategorySlideGames");
|
|
320
320
|
},
|
|
321
321
|
m(f, a) {
|
|
322
|
-
|
|
322
|
+
M(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, c), _ || (C = O(i, "click", Be(S)), _ = !0);
|
|
323
323
|
},
|
|
324
324
|
p(f, a) {
|
|
325
325
|
t = f, a[0] & /*gameCategories*/
|
|
326
|
-
8 && !
|
|
326
|
+
8 && !z(i.src, n = /*game*/
|
|
327
327
|
t[44].defaultThumbnail) && m(i, "src", n), a[0] & /*gameCategories*/
|
|
328
328
|
8 && l !== (l = /*game*/
|
|
329
329
|
t[44].name) && m(i, "alt", l), /*collectionprovidersgamenames*/
|
|
@@ -346,7 +346,7 @@ function le(t) {
|
|
|
346
346
|
/*titletype*/
|
|
347
347
|
u[1] === "title"
|
|
348
348
|
)
|
|
349
|
-
return
|
|
349
|
+
return Ae;
|
|
350
350
|
}
|
|
351
351
|
let f = s(t), a = f && f(t), d = B(
|
|
352
352
|
/*category*/
|
|
@@ -373,7 +373,7 @@ function le(t) {
|
|
|
373
373
|
t[41]?.background + ")"), N(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
|
|
374
374
|
},
|
|
375
375
|
m(u, v) {
|
|
376
|
-
|
|
376
|
+
M(u, e, v), b(e, i), b(i, n), a && a.m(n, null), b(i, l), b(i, r);
|
|
377
377
|
for (let p = 0; p < g.length; p += 1)
|
|
378
378
|
g[p] && g[p].m(r, null);
|
|
379
379
|
b(e, _), C || (S = O(i, "click", h), C = !0);
|
|
@@ -410,7 +410,7 @@ function Ie(t) {
|
|
|
410
410
|
function i(r, c) {
|
|
411
411
|
return (
|
|
412
412
|
/*isLoading*/
|
|
413
|
-
r[6] ?
|
|
413
|
+
r[6] ? He : Ee
|
|
414
414
|
);
|
|
415
415
|
}
|
|
416
416
|
let n = i(t), l = n(t);
|
|
@@ -419,7 +419,7 @@ function Ie(t) {
|
|
|
419
419
|
e = y("div"), l.c();
|
|
420
420
|
},
|
|
421
421
|
m(r, c) {
|
|
422
|
-
|
|
422
|
+
M(r, e, c), l.m(e, null), t[26](e);
|
|
423
423
|
},
|
|
424
424
|
p(r, c) {
|
|
425
425
|
n === (n = i(r)) && l ? l.p(r, c) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
|
|
@@ -433,24 +433,24 @@ function Ie(t) {
|
|
|
433
433
|
}
|
|
434
434
|
function Re(t, e, i) {
|
|
435
435
|
let n;
|
|
436
|
-
|
|
437
|
-
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U,
|
|
436
|
+
Ge(t, Te, (o) => i(10, n = o));
|
|
437
|
+
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, E, q = 0, H = 50, A = !1, G, re = window.navigator.userAgent, V;
|
|
438
438
|
const ae = () => {
|
|
439
439
|
fetch(f).then((w) => w.json()).then((w) => {
|
|
440
440
|
Object.keys(w).forEach((P) => {
|
|
441
|
-
|
|
441
|
+
Q(P, w[P]);
|
|
442
442
|
});
|
|
443
443
|
}).catch((w) => {
|
|
444
444
|
console.log(w);
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
|
-
Object.keys(
|
|
448
|
-
|
|
447
|
+
Object.keys(D).forEach((o) => {
|
|
448
|
+
Q(o, D[o]);
|
|
449
449
|
});
|
|
450
450
|
const W = () => {
|
|
451
451
|
const o = new URL(`${l}/v2/casino/groups/${r}`);
|
|
452
|
-
o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${q},limit=${
|
|
453
|
-
i(6, h = !1), w.total >
|
|
452
|
+
o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${q},limit=${H}`), fetch(o.href).then((w) => w.json()).then((w) => {
|
|
453
|
+
i(6, h = !1), w.total > H && (q += 50, H += 50, i(22, A = !0));
|
|
454
454
|
let P = w.items.map((L) => ({
|
|
455
455
|
id: L.id,
|
|
456
456
|
name: L.name,
|
|
@@ -464,18 +464,18 @@ function Re(t, e, i) {
|
|
|
464
464
|
}, se = () => {
|
|
465
465
|
const o = G.getRootNode().host;
|
|
466
466
|
o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
|
|
467
|
-
},
|
|
468
|
-
|
|
467
|
+
}, J = (o) => {
|
|
468
|
+
E = [...u.children], E.forEach((w, P) => {
|
|
469
469
|
w.style.transform = `translateX(${100 * (o ? P - o : P)}%)`;
|
|
470
|
-
}), U =
|
|
470
|
+
}), U = E[0]?.getBoundingClientRect().width, de();
|
|
471
471
|
}, de = () => {
|
|
472
472
|
i(8, k = Math.floor(u.clientWidth / U));
|
|
473
|
-
},
|
|
474
|
-
|
|
473
|
+
}, K = () => {
|
|
474
|
+
J(v);
|
|
475
475
|
}, ce = () => {
|
|
476
|
-
v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--,
|
|
476
|
+
v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--, K();
|
|
477
477
|
}, ge = () => {
|
|
478
|
-
v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++,
|
|
478
|
+
v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++, K();
|
|
479
479
|
}, Z = (o, w, P, L) => {
|
|
480
480
|
window.postMessage(
|
|
481
481
|
{
|
|
@@ -501,7 +501,7 @@ function Re(t, e, i) {
|
|
|
501
501
|
}, ue = () => {
|
|
502
502
|
Oe(c);
|
|
503
503
|
};
|
|
504
|
-
|
|
504
|
+
Pe(() => (i(9, V = Le(re)), () => {
|
|
505
505
|
}));
|
|
506
506
|
const me = (o) => Z(o.gameId, o.launchUrl, o.name, o.subVendor), fe = (o) => X(o.id);
|
|
507
507
|
function pe(o) {
|
|
@@ -519,13 +519,13 @@ function Re(t, e, i) {
|
|
|
519
519
|
}, t.$$.update = () => {
|
|
520
520
|
t.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
521
521
|
229376 && l && r && c && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
|
522
|
-
24 && g && u &&
|
|
522
|
+
24 && g && u && J(), t.$$.dirty[0] & /*lang*/
|
|
523
523
|
131072 && c && ue(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
524
|
-
262176 && S && G &&
|
|
525
|
-
524320 && s && G &&
|
|
526
|
-
2097184 && G &&
|
|
524
|
+
262176 && S && G && xe(G, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
525
|
+
524320 && s && G && Me(G, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
526
|
+
2097184 && G && je(G, `${d}.Style`), t.$$.dirty[0] & /*translationurl*/
|
|
527
527
|
1048576 && f && ae(), t.$$.dirty[0] & /*paginationrequired*/
|
|
528
|
-
4194304 &&
|
|
528
|
+
4194304 && A && W();
|
|
529
529
|
}, [
|
|
530
530
|
_,
|
|
531
531
|
C,
|
|
@@ -549,7 +549,7 @@ function Re(t, e, i) {
|
|
|
549
549
|
s,
|
|
550
550
|
f,
|
|
551
551
|
d,
|
|
552
|
-
|
|
552
|
+
A,
|
|
553
553
|
me,
|
|
554
554
|
fe,
|
|
555
555
|
pe,
|
|
@@ -563,7 +563,7 @@ class Ue extends ye {
|
|
|
563
563
|
e,
|
|
564
564
|
Re,
|
|
565
565
|
Ie,
|
|
566
|
-
|
|
566
|
+
Se,
|
|
567
567
|
{
|
|
568
568
|
endpoint: 15,
|
|
569
569
|
datasource: 16,
|
|
@@ -576,7 +576,7 @@ class Ue extends ye {
|
|
|
576
576
|
collectionprovidersgamenames: 2,
|
|
577
577
|
mbsource: 21
|
|
578
578
|
},
|
|
579
|
-
|
|
579
|
+
ze,
|
|
580
580
|
[-1, -1]
|
|
581
581
|
);
|
|
582
582
|
}
|
|
@@ -584,64 +584,64 @@ class Ue extends ye {
|
|
|
584
584
|
return this.$$.ctx[15];
|
|
585
585
|
}
|
|
586
586
|
set endpoint(e) {
|
|
587
|
-
this.$$set({ endpoint: e }),
|
|
587
|
+
this.$$set({ endpoint: e }), x();
|
|
588
588
|
}
|
|
589
589
|
get datasource() {
|
|
590
590
|
return this.$$.ctx[16];
|
|
591
591
|
}
|
|
592
592
|
set datasource(e) {
|
|
593
|
-
this.$$set({ datasource: e }),
|
|
593
|
+
this.$$set({ datasource: e }), x();
|
|
594
594
|
}
|
|
595
595
|
get lang() {
|
|
596
596
|
return this.$$.ctx[17];
|
|
597
597
|
}
|
|
598
598
|
set lang(e) {
|
|
599
|
-
this.$$set({ lang: e }),
|
|
599
|
+
this.$$set({ lang: e }), x();
|
|
600
600
|
}
|
|
601
601
|
get type() {
|
|
602
602
|
return this.$$.ctx[0];
|
|
603
603
|
}
|
|
604
604
|
set type(e) {
|
|
605
|
-
this.$$set({ type: e }),
|
|
605
|
+
this.$$set({ type: e }), x();
|
|
606
606
|
}
|
|
607
607
|
get titletype() {
|
|
608
608
|
return this.$$.ctx[1];
|
|
609
609
|
}
|
|
610
610
|
set titletype(e) {
|
|
611
|
-
this.$$set({ titletype: e }),
|
|
611
|
+
this.$$set({ titletype: e }), x();
|
|
612
612
|
}
|
|
613
613
|
get clientstyling() {
|
|
614
614
|
return this.$$.ctx[18];
|
|
615
615
|
}
|
|
616
616
|
set clientstyling(e) {
|
|
617
|
-
this.$$set({ clientstyling: e }),
|
|
617
|
+
this.$$set({ clientstyling: e }), x();
|
|
618
618
|
}
|
|
619
619
|
get clientstylingurl() {
|
|
620
620
|
return this.$$.ctx[19];
|
|
621
621
|
}
|
|
622
622
|
set clientstylingurl(e) {
|
|
623
|
-
this.$$set({ clientstylingurl: e }),
|
|
623
|
+
this.$$set({ clientstylingurl: e }), x();
|
|
624
624
|
}
|
|
625
625
|
get translationurl() {
|
|
626
626
|
return this.$$.ctx[20];
|
|
627
627
|
}
|
|
628
628
|
set translationurl(e) {
|
|
629
|
-
this.$$set({ translationurl: e }),
|
|
629
|
+
this.$$set({ translationurl: e }), x();
|
|
630
630
|
}
|
|
631
631
|
get collectionprovidersgamenames() {
|
|
632
632
|
return this.$$.ctx[2];
|
|
633
633
|
}
|
|
634
634
|
set collectionprovidersgamenames(e) {
|
|
635
|
-
this.$$set({ collectionprovidersgamenames: e }),
|
|
635
|
+
this.$$set({ collectionprovidersgamenames: e }), x();
|
|
636
636
|
}
|
|
637
637
|
get mbsource() {
|
|
638
638
|
return this.$$.ctx[21];
|
|
639
639
|
}
|
|
640
640
|
set mbsource(e) {
|
|
641
|
-
this.$$set({ mbsource: e }),
|
|
641
|
+
this.$$set({ mbsource: e }), x();
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
we(Ue, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
|
645
645
|
export {
|
|
646
646
|
Ue as default
|
|
647
647
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CDybCkBw.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-Bh1m4DYa.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|