@everymatrix/casino-lobby 1.54.4 → 1.54.8
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-Ic3lq1UY.js → CasinoCalendar-B6zL0TaE.js} +506 -514
- package/components/CasinoCalendar-BMfA7KN3.cjs +9 -0
- package/components/CasinoCalendar-yoWAbEkY.js +5197 -0
- package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-CHjjPOPl.js} +90 -90
- package/components/CasinoCalendarDailyDetails-CfDJdZRl.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-D3u4HZe8.js +701 -0
- package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-C0cqN7uc.js} +46 -46
- package/components/CasinoCalendarDailyItem-CUUQD6LO.cjs +1 -0
- package/components/CasinoCalendarDailyItem-DMCRSt77.js +315 -0
- package/components/CasinoCategoriesSlider-BcJr5qw4.js +606 -0
- package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-ClyY2tVk.js} +29 -29
- package/components/CasinoCategoriesSlider-Du23Vwbe.cjs +1 -0
- package/components/CasinoCollectionsProviders-D_RrWmcu.js +664 -0
- package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-DfPQERZb.js} +58 -58
- package/components/CasinoCollectionsProviders-okanqqGb.cjs +1 -0
- package/components/CasinoFavoritesSection-6Sdpq5gN.cjs +1 -0
- package/components/CasinoFavoritesSection-B73CXUAy.js +439 -0
- package/components/{CasinoFavoritesSection-D_VjX8kh.js → CasinoFavoritesSection-Bueg3sTp.js} +16 -16
- package/components/CasinoFilter-CLgilXuM.js +634 -0
- package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-Ck2-RKNG.js} +55 -55
- package/components/CasinoFilter-d5NvPsIU.cjs +1 -0
- package/components/{CasinoGamePage-CCqWDOmI.js → CasinoGamePage-B9T32UnC.js} +769 -769
- package/components/CasinoGamePage-BvAh0DGO.js +4300 -0
- package/components/CasinoGamePage-C99GYj8V.cjs +18 -0
- package/components/{CasinoGameThumbnail-DuQXK0BS.js → CasinoGameThumbnail-Bl2lRTS5.js} +66 -66
- package/components/CasinoGameThumbnail-Cnth3w2v.js +1850 -0
- package/components/CasinoGameThumbnail-DFxPFhew.cjs +38 -0
- package/components/CasinoGamesCategorySection-Cy8ehDrS.cjs +1 -0
- package/components/{CasinoGamesCategorySection-B7unf50a.js → CasinoGamesCategorySection-DU23YHrX.js} +157 -157
- package/components/CasinoGamesCategorySection-Vx-6j2_y.js +3032 -0
- package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-CwBo5Mul.js} +68 -68
- package/components/CasinoJackpotBanner-D8mirkf9.js +618 -0
- package/components/CasinoJackpotBanner-pF19c3bB.cjs +1 -0
- package/components/CasinoLastPlayedSection-CTeLaz5e.cjs +1 -0
- package/components/{CasinoLastPlayedSection-DtUKV7qS.js → CasinoLastPlayedSection-D2i1KYd6.js} +29 -29
- package/components/CasinoLastPlayedSection-DeHKMRjb.js +566 -0
- package/components/{CasinoLobby-Bhufm6di.js → CasinoLobby-DIuXNBMc.js} +49 -49
- package/components/CasinoLobby-DjqoKJ_Z.cjs +1 -0
- package/components/CasinoLobby-Ds8nok67.js +2337 -0
- package/components/{CasinoModal-z0xixUlG.js → CasinoModal-CdxckMSF.js} +69 -69
- package/components/CasinoModal-Cj4CFSu2.cjs +1 -0
- package/components/CasinoModal-_ukjEJqy.js +372 -0
- package/components/CasinoMostPlayedSection-BRG_Uq6C.cjs +1 -0
- package/components/{CasinoMostPlayedSection-DATKT5NZ.js → CasinoMostPlayedSection-BvIjl5pV.js} +32 -32
- package/components/CasinoMostPlayedSection-C9ey8EVj.js +583 -0
- package/components/CasinoMyGames-BH19YGDz.js +1318 -0
- package/components/{CasinoMyGames-CT8sf3p5.js → CasinoMyGames-CO15Aytm.js} +52 -52
- package/components/CasinoMyGames-DNs8c3Rb.cjs +1 -0
- package/components/CasinoPage-BEFfjziT.js +3550 -0
- package/components/{CasinoPage-CLrMZJtx.js → CasinoPage-DXue0b0t.js} +123 -123
- package/components/CasinoPage-sSUBPWhS.cjs +1 -0
- package/components/CasinoRandomGame-C57JuHHz.cjs +2 -0
- package/components/CasinoRandomGame-r6ZN573_.js +668 -0
- package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-z14CxLuC.js} +51 -51
- package/components/CasinoSearch-C5_rhVBG.js +1072 -0
- package/components/{CasinoSearch-DuPhm9II.js → CasinoSearch-Cbyb3s0J.js} +83 -83
- package/components/CasinoSearch-D1uEkiG3.cjs +1 -0
- package/components/CasinoSlider-C7bHIIsP.js +806 -0
- package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-C90aPXd2.js} +78 -78
- package/components/CasinoSlider-D1u-7DmV.cjs +1 -0
- package/components/CasinoSort-5a6WYp-y.cjs +1 -0
- package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-B9ucfWgD.js} +16 -16
- package/components/CasinoSort-DWu-WSlc.js +432 -0
- package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-BFkE1Nu3.js} +62 -62
- package/components/CasinoWinners-D-KQ7v4o.cjs +1 -0
- package/components/CasinoWinners-fPZD2C86.js +971 -0
- package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-BCUksgAT.js} +8 -8
- package/components/GeneralAnimationLoading-BtZxU34J.cjs +1 -0
- package/components/GeneralAnimationLoading-DSCrLTeR.js +75 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/esnext/casino-lobby.js +1 -1
- package/package.json +4 -1
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/casino-play-random-game-BKQH1Zx1.cjs +371 -0
- package/stencil/casino-play-random-game-BqK1nKDT.js +577 -0
- package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-pLVMnBV9.js} +1 -1
- package/stencil/index-f923e8d1-BWfXmHlD.js +645 -0
- package/stencil/index-f923e8d1-DEpJEd5d.cjs +1 -0
- package/stencil/index-f923e8d1-DkIbJRWP.js +629 -0
- package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as le, T as fe, a as ge, S as ue, i as me,
|
|
1
|
+
import { $ as le, T as fe, a as ge, S as ue, i as me, s as he, f as L, b as Fe, n as re, d as z, h as B, j as u, k as be, o as ye, K as ve, C as we, m as j, p as s, q as A, r as o, v as ie, w as _e, Q as pe, A as te, E as ee, B as P, U as ae, D as ne, I as Ce, J as ke } from "./CasinoCalendar-B6zL0TaE.js";
|
|
2
2
|
function xe({ withLocale: r, translations: e }) {
|
|
3
3
|
le.subscribe((t) => {
|
|
4
4
|
t == null && (fe.set(e), le.set(r));
|
|
@@ -118,20 +118,20 @@ const se = {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
function Se(r) {
|
|
121
|
-
|
|
121
|
+
Fe(r, "svelte-1v7rv6n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
|
122
122
|
}
|
|
123
123
|
function ce(r, e, t) {
|
|
124
124
|
const i = r.slice();
|
|
125
125
|
return i[36] = e[t], i[37] = e, i[38] = t, i;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Ie(r) {
|
|
128
128
|
let e, t, i, a, c, m, v, w, b = (
|
|
129
129
|
/*$_*/
|
|
130
130
|
r[11]("filterby") + ""
|
|
131
131
|
), g, _, y, T, k = (
|
|
132
132
|
/*$_*/
|
|
133
133
|
r[11]("providers") + ""
|
|
134
|
-
), E, C, d, F, h, D, M, x, K, O, V, Q,
|
|
134
|
+
), E, C, d, F, h, D, M, x, K, O, V, Q, I, J = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
r[11]("clear") + ""
|
|
137
137
|
), U, W, R, H, q, X;
|
|
@@ -141,7 +141,7 @@ function Le(r) {
|
|
|
141
141
|
n[7] ? Ae : Pe
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
let
|
|
144
|
+
let Z = Y(r), S = Z(r), N = ie(
|
|
145
145
|
/*vendorArray*/
|
|
146
146
|
r[5]
|
|
147
147
|
), l = [];
|
|
@@ -152,9 +152,9 @@ function Le(r) {
|
|
|
152
152
|
e = u("div"), t = u("div"), i = u("div"), a = ee("svg"), c = ee("path"), m = P(), v = u("div"), w = u("span"), g = A(b), _ = P(), y = u("div"), T = u("span"), E = A(k), C = P(), S.c(), d = P(), F = u("span"), h = ee("svg"), D = ee("path"), K = P(), O = u("div"), V = u("ul");
|
|
153
153
|
for (let n = 0; n < l.length; n += 1)
|
|
154
154
|
l[n].c();
|
|
155
|
-
Q = P(),
|
|
155
|
+
Q = P(), I = u("button"), U = A(J), o(c, "id", "noun_filter_736223"), o(c, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), o(c, "transform", "translate(-5 -6.2)"), o(c, "fill", "#fff"), o(a, "xmlns", "http://www.w3.org/2000/svg"), o(a, "width", "16"), o(a, "height", "16"), o(a, "viewBox", "0 0 16 16"), o(w, "class", "FilterName"), o(y, "class", "FilterValueContainer"), o(v, "class", "FilterTextContainer"), o(i, "class", "FilterMainArea"), o(D, "id", "arrow"), o(D, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), o(D, "transform", "translate(-274.511 -441.088)"), o(D, "fill", "#d1d1d1"), o(h, "xmlns", "http://www.w3.org/2000/svg"), o(h, "width", "14"), o(h, "height", "6.835"), o(h, "viewBox", "0 0 14 6.835"), o(F, "class", M = "TriangleInactive " + /*isFilterActive*/
|
|
156
156
|
(r[4] ? "TriangleActive" : "")), o(t, "class", x = "FilterSelector " + /*isFilterActive*/
|
|
157
|
-
(r[4] ? "FilterSelectorOpen" : "")), o(V, "class", "FilterDropdown"), o(
|
|
157
|
+
(r[4] ? "FilterSelectorOpen" : "")), o(V, "class", "FilterDropdown"), o(I, "class", "ClearFilters"), I.disabled = W = /*fullSelection*/
|
|
158
158
|
r[7] && /*selectedVendorArray*/
|
|
159
159
|
r[6].length != /*vendorArray*/
|
|
160
160
|
r[5].length, o(O, "class", R = "FilterDropdownContainer " + /*isFilterActive*/
|
|
@@ -163,10 +163,10 @@ function Le(r) {
|
|
|
163
163
|
r[1] == "true" ? "FilerContainerSplit" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(n, f) {
|
|
166
|
-
|
|
166
|
+
B(n, e, f), s(e, t), s(t, i), s(i, a), s(a, c), s(i, m), s(i, v), s(v, w), s(w, g), s(v, _), s(v, y), s(y, T), s(T, E), s(y, C), S.m(y, null), s(t, d), s(t, F), s(F, h), s(h, D), s(e, K), s(e, O), s(O, V);
|
|
167
167
|
for (let p = 0; p < l.length; p += 1)
|
|
168
168
|
l[p] && l[p].m(V, null);
|
|
169
|
-
s(O, Q), s(O,
|
|
169
|
+
s(O, Q), s(O, I), s(I, U), q || (X = [
|
|
170
170
|
te(
|
|
171
171
|
t,
|
|
172
172
|
"click",
|
|
@@ -174,7 +174,7 @@ function Le(r) {
|
|
|
174
174
|
r[22]
|
|
175
175
|
),
|
|
176
176
|
te(
|
|
177
|
-
|
|
177
|
+
I,
|
|
178
178
|
"click",
|
|
179
179
|
/*click_handler_2*/
|
|
180
180
|
r[25]
|
|
@@ -186,7 +186,7 @@ function Le(r) {
|
|
|
186
186
|
2048 && b !== (b = /*$_*/
|
|
187
187
|
n[11]("filterby") + "") && j(g, b), f[0] & /*$_*/
|
|
188
188
|
2048 && k !== (k = /*$_*/
|
|
189
|
-
n[11]("providers") + "") && j(E, k),
|
|
189
|
+
n[11]("providers") + "") && j(E, k), Z === (Z = Y(n)) && S ? S.p(n, f) : (S.d(1), S = Z(n), S && (S.c(), S.m(y, null))), f[0] & /*isFilterActive*/
|
|
190
190
|
16 && M !== (M = "TriangleInactive " + /*isFilterActive*/
|
|
191
191
|
(n[4] ? "TriangleActive" : "")) && o(F, "class", M), f[0] & /*isFilterActive*/
|
|
192
192
|
16 && x !== (x = "FilterSelector " + /*isFilterActive*/
|
|
@@ -198,8 +198,8 @@ function Le(r) {
|
|
|
198
198
|
);
|
|
199
199
|
let p;
|
|
200
200
|
for (p = 0; p < N.length; p += 1) {
|
|
201
|
-
const
|
|
202
|
-
l[p] ? l[p].p(
|
|
201
|
+
const G = ce(n, N, p);
|
|
202
|
+
l[p] ? l[p].p(G, f) : (l[p] = de(G), l[p].c(), l[p].m(V, null));
|
|
203
203
|
}
|
|
204
204
|
for (; p < l.length; p += 1)
|
|
205
205
|
l[p].d(1);
|
|
@@ -211,7 +211,7 @@ function Le(r) {
|
|
|
211
211
|
224 && W !== (W = /*fullSelection*/
|
|
212
212
|
n[7] && /*selectedVendorArray*/
|
|
213
213
|
n[6].length != /*vendorArray*/
|
|
214
|
-
n[5].length) && (
|
|
214
|
+
n[5].length) && (I.disabled = W), f[0] & /*isFilterActive*/
|
|
215
215
|
16 && R !== (R = "FilterDropdownContainer " + /*isFilterActive*/
|
|
216
216
|
(n[4] ? "FilterOpen" : "")) && o(O, "class", R), f[0] & /*addfilterselector, addsortingselector*/
|
|
217
217
|
3 && H !== (H = "FilterContainer " + /*addfilterselector*/
|
|
@@ -219,11 +219,11 @@ function Le(r) {
|
|
|
219
219
|
n[1] == "true" ? "FilerContainerSplit" : "")) && o(e, "class", H);
|
|
220
220
|
},
|
|
221
221
|
d(n) {
|
|
222
|
-
n &&
|
|
222
|
+
n && z(e), S.d(), _e(l, n), q = !1, pe(X);
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Le(r) {
|
|
227
227
|
let e, t = (
|
|
228
228
|
/*$_*/
|
|
229
229
|
r[11]("500") + ""
|
|
@@ -233,7 +233,7 @@ function Ie(r) {
|
|
|
233
233
|
e = u("p"), i = A(t), o(e, "class", "SearchLoading");
|
|
234
234
|
},
|
|
235
235
|
m(a, c) {
|
|
236
|
-
|
|
236
|
+
B(a, e, c), s(e, i);
|
|
237
237
|
},
|
|
238
238
|
p(a, c) {
|
|
239
239
|
c[0] & /*$_*/
|
|
@@ -241,7 +241,7 @@ function Ie(r) {
|
|
|
241
241
|
a[11]("500") + "") && j(i, t);
|
|
242
242
|
},
|
|
243
243
|
d(a) {
|
|
244
|
-
a &&
|
|
244
|
+
a && z(e);
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
@@ -255,7 +255,7 @@ function Pe(r) {
|
|
|
255
255
|
), o(e, "class", "FilterCounter");
|
|
256
256
|
},
|
|
257
257
|
m(i, a) {
|
|
258
|
-
|
|
258
|
+
B(i, e, a), s(e, t);
|
|
259
259
|
},
|
|
260
260
|
p(i, a) {
|
|
261
261
|
a[0] & /*selectionNumber*/
|
|
@@ -266,7 +266,7 @@ function Pe(r) {
|
|
|
266
266
|
);
|
|
267
267
|
},
|
|
268
268
|
d(i) {
|
|
269
|
-
i &&
|
|
269
|
+
i && z(e);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
@@ -280,7 +280,7 @@ function Ae(r) {
|
|
|
280
280
|
e = u("span"), i = A(t), o(e, "class", "FilterCounter");
|
|
281
281
|
},
|
|
282
282
|
m(a, c) {
|
|
283
|
-
|
|
283
|
+
B(a, e, c), s(e, i);
|
|
284
284
|
},
|
|
285
285
|
p(a, c) {
|
|
286
286
|
c[0] & /*$_*/
|
|
@@ -288,7 +288,7 @@ function Ae(r) {
|
|
|
288
288
|
a[11]("all") + "") && j(i, t);
|
|
289
289
|
},
|
|
290
290
|
d(a) {
|
|
291
|
-
a &&
|
|
291
|
+
a && z(e);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -300,7 +300,7 @@ function Te(r) {
|
|
|
300
300
|
r[36].logo) || o(e, "src", t), o(e, "alt", "vendor logo");
|
|
301
301
|
},
|
|
302
302
|
m(i, a) {
|
|
303
|
-
|
|
303
|
+
B(i, e, a);
|
|
304
304
|
},
|
|
305
305
|
p(i, a) {
|
|
306
306
|
a[0] & /*vendorArray*/
|
|
@@ -308,7 +308,7 @@ function Te(r) {
|
|
|
308
308
|
i[36].logo) && o(e, "src", t);
|
|
309
309
|
},
|
|
310
310
|
d(i) {
|
|
311
|
-
i &&
|
|
311
|
+
i && z(e);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -325,7 +325,7 @@ function De(r) {
|
|
|
325
325
|
e = u("div"), t = u("span"), a = A(i), c = P(), m = u("span"), v = A("("), b = A(w), g = A(")"), o(t, "class", "VendorName"), o(e, "class", "FilterItemLabel");
|
|
326
326
|
},
|
|
327
327
|
m(_, y) {
|
|
328
|
-
|
|
328
|
+
B(_, e, y), s(e, t), s(t, a), s(e, c), s(e, m), s(m, v), s(m, b), s(m, g);
|
|
329
329
|
},
|
|
330
330
|
p(_, y) {
|
|
331
331
|
y[0] & /*vendorArray*/
|
|
@@ -335,7 +335,7 @@ function De(r) {
|
|
|
335
335
|
_[36].games.count + "") && j(b, w);
|
|
336
336
|
},
|
|
337
337
|
d(_) {
|
|
338
|
-
_ &&
|
|
338
|
+
_ && z(e);
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
@@ -378,7 +378,7 @@ function de(r) {
|
|
|
378
378
|
r[36].name;
|
|
379
379
|
},
|
|
380
380
|
m(F, h) {
|
|
381
|
-
|
|
381
|
+
B(F, e, h), s(e, t), s(t, i), i.checked = /*vendor*/
|
|
382
382
|
r[36].isFilterSelected, s(t, c), s(t, m), s(t, v), d && d.m(t, null), s(e, w), _ || (y = [
|
|
383
383
|
te(i, "change", T),
|
|
384
384
|
te(i, "click", k)
|
|
@@ -396,7 +396,7 @@ function de(r) {
|
|
|
396
396
|
r[36].name) && (e.value = g);
|
|
397
397
|
},
|
|
398
398
|
d(F) {
|
|
399
|
-
F &&
|
|
399
|
+
F && z(e), d && d.d(), _ = !1, pe(y);
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
}
|
|
@@ -406,9 +406,9 @@ function Oe(r) {
|
|
|
406
406
|
if (
|
|
407
407
|
/*hasErrors*/
|
|
408
408
|
c[10]
|
|
409
|
-
) return
|
|
409
|
+
) return Le;
|
|
410
410
|
if (!/*isLoading*/
|
|
411
|
-
c[9]) return
|
|
411
|
+
c[9]) return Ie;
|
|
412
412
|
}
|
|
413
413
|
let i = t(r), a = i && i(r);
|
|
414
414
|
return {
|
|
@@ -416,7 +416,7 @@ function Oe(r) {
|
|
|
416
416
|
e = u("div"), a && a.c();
|
|
417
417
|
},
|
|
418
418
|
m(c, m) {
|
|
419
|
-
|
|
419
|
+
B(c, e, m), a && a.m(e, null), r[26](e);
|
|
420
420
|
},
|
|
421
421
|
p(c, m) {
|
|
422
422
|
i === (i = t(c)) && a ? a.p(c, m) : (a && a.d(1), a = i && i(c), a && (a.c(), a.m(e, null)));
|
|
@@ -424,13 +424,13 @@ function Oe(r) {
|
|
|
424
424
|
i: re,
|
|
425
425
|
o: re,
|
|
426
426
|
d(c) {
|
|
427
|
-
c &&
|
|
427
|
+
c && z(e), a && a.d(), r[26](null);
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
function Ee(r, e, t) {
|
|
432
432
|
let i;
|
|
433
|
-
|
|
433
|
+
be(r, ke, (l) => t(11, i = l));
|
|
434
434
|
let { endpoint: a = "" } = e, { datasource: c = "" } = e, { lang: m = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: g = "" } = e, { addfilterselector: _ = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: T = "false" } = e, k = !1, E = window.navigator.userAgent, C = [], d = [], F = {}, h = !1, D = 0, M = !0, x, K = !1;
|
|
435
435
|
xe({ withLocale: "en", translations: {} });
|
|
436
436
|
const O = () => {
|
|
@@ -460,14 +460,14 @@ function Ee(r, e, t) {
|
|
|
460
460
|
});
|
|
461
461
|
};
|
|
462
462
|
F[g] && (F = { [g]: [] });
|
|
463
|
-
const
|
|
463
|
+
const I = () => {
|
|
464
464
|
t(4, k = !k), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
465
465
|
}, J = (l) => (t(9, M = !0), new Promise((n, f) => {
|
|
466
466
|
fetch(l).then((p) => p.json()).then((p) => {
|
|
467
467
|
p = p.items, n(p.items), t(6, d = []);
|
|
468
|
-
let
|
|
468
|
+
let G = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
469
469
|
p.forEach(($) => {
|
|
470
|
-
|
|
470
|
+
G || (G = { currentCategoryId: [] }), G[g]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, d.push($)) : $.isFilterSelected = !1;
|
|
471
471
|
}), t(5, C = p), W();
|
|
472
472
|
}).catch((p) => {
|
|
473
473
|
console.error(p), t(10, K = !0), f(p);
|
|
@@ -483,7 +483,7 @@ function Ee(r, e, t) {
|
|
|
483
483
|
t(7, h = d.length === C.length || d.length == 0), t(8, D = d.length);
|
|
484
484
|
}, R = () => {
|
|
485
485
|
const l = new URL(`${a}/v1/casino/vendors`);
|
|
486
|
-
t(4, k = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", m), l.searchParams.append("datasource", c), l.searchParams.append("platform",
|
|
486
|
+
t(4, k = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", m), l.searchParams.append("datasource", c), l.searchParams.append("platform", ve(E)), (g.match(/\$/g) || []).length > 1 ? (l.searchParams.append("filter", `games(subGroups=${g})`), l.searchParams.append("subVendors", `games(subGroups=${g})`)) : l.searchParams.append("filter", `games(groups=${g})`), J(l);
|
|
487
487
|
}, H = () => {
|
|
488
488
|
t(6, d = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(F = {
|
|
489
489
|
[g]: d.map((l) => l.id)
|
|
@@ -491,16 +491,16 @@ function Ee(r, e, t) {
|
|
|
491
491
|
}, q = (l) => {
|
|
492
492
|
l.data.type == "SortingOpened" && t(4, k = !1);
|
|
493
493
|
};
|
|
494
|
-
|
|
494
|
+
ye(() => (window.addEventListener("message", q, !1), () => {
|
|
495
495
|
window.removeEventListener("message", q);
|
|
496
496
|
}));
|
|
497
|
-
const X = () =>
|
|
497
|
+
const X = () => I();
|
|
498
498
|
function Y(l, n) {
|
|
499
499
|
l[n].isFilterSelected = this.checked, t(5, C);
|
|
500
500
|
}
|
|
501
|
-
const
|
|
501
|
+
const Z = (l) => U(l), S = () => H();
|
|
502
502
|
function N(l) {
|
|
503
|
-
|
|
503
|
+
we[l ? "unshift" : "push"](() => {
|
|
504
504
|
x = l, t(3, x);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
@@ -525,7 +525,7 @@ function Ee(r, e, t) {
|
|
|
525
525
|
M,
|
|
526
526
|
K,
|
|
527
527
|
i,
|
|
528
|
-
|
|
528
|
+
I,
|
|
529
529
|
U,
|
|
530
530
|
H,
|
|
531
531
|
a,
|
|
@@ -537,7 +537,7 @@ function Ee(r, e, t) {
|
|
|
537
537
|
g,
|
|
538
538
|
X,
|
|
539
539
|
Y,
|
|
540
|
-
|
|
540
|
+
Z,
|
|
541
541
|
S,
|
|
542
542
|
N
|
|
543
543
|
];
|
|
@@ -549,7 +549,7 @@ class Me extends ue {
|
|
|
549
549
|
e,
|
|
550
550
|
Ee,
|
|
551
551
|
Oe,
|
|
552
|
-
|
|
552
|
+
he,
|
|
553
553
|
{
|
|
554
554
|
endpoint: 15,
|
|
555
555
|
datasource: 16,
|
|
@@ -570,64 +570,64 @@ class Me extends ue {
|
|
|
570
570
|
return this.$$.ctx[15];
|
|
571
571
|
}
|
|
572
572
|
set endpoint(e) {
|
|
573
|
-
this.$$set({ endpoint: e }),
|
|
573
|
+
this.$$set({ endpoint: e }), L();
|
|
574
574
|
}
|
|
575
575
|
get datasource() {
|
|
576
576
|
return this.$$.ctx[16];
|
|
577
577
|
}
|
|
578
578
|
set datasource(e) {
|
|
579
|
-
this.$$set({ datasource: e }),
|
|
579
|
+
this.$$set({ datasource: e }), L();
|
|
580
580
|
}
|
|
581
581
|
get lang() {
|
|
582
582
|
return this.$$.ctx[17];
|
|
583
583
|
}
|
|
584
584
|
set lang(e) {
|
|
585
|
-
this.$$set({ lang: e }),
|
|
585
|
+
this.$$set({ lang: e }), L();
|
|
586
586
|
}
|
|
587
587
|
get translationurl() {
|
|
588
588
|
return this.$$.ctx[18];
|
|
589
589
|
}
|
|
590
590
|
set translationurl(e) {
|
|
591
|
-
this.$$set({ translationurl: e }),
|
|
591
|
+
this.$$set({ translationurl: e }), L();
|
|
592
592
|
}
|
|
593
593
|
get clientstyling() {
|
|
594
594
|
return this.$$.ctx[19];
|
|
595
595
|
}
|
|
596
596
|
set clientstyling(e) {
|
|
597
|
-
this.$$set({ clientstyling: e }),
|
|
597
|
+
this.$$set({ clientstyling: e }), L();
|
|
598
598
|
}
|
|
599
599
|
get clientstylingurl() {
|
|
600
600
|
return this.$$.ctx[20];
|
|
601
601
|
}
|
|
602
602
|
set clientstylingurl(e) {
|
|
603
|
-
this.$$set({ clientstylingurl: e }),
|
|
603
|
+
this.$$set({ clientstylingurl: e }), L();
|
|
604
604
|
}
|
|
605
605
|
get categoryid() {
|
|
606
606
|
return this.$$.ctx[21];
|
|
607
607
|
}
|
|
608
608
|
set categoryid(e) {
|
|
609
|
-
this.$$set({ categoryid: e }),
|
|
609
|
+
this.$$set({ categoryid: e }), L();
|
|
610
610
|
}
|
|
611
611
|
get addfilterselector() {
|
|
612
612
|
return this.$$.ctx[0];
|
|
613
613
|
}
|
|
614
614
|
set addfilterselector(e) {
|
|
615
|
-
this.$$set({ addfilterselector: e }),
|
|
615
|
+
this.$$set({ addfilterselector: e }), L();
|
|
616
616
|
}
|
|
617
617
|
get addsortingselector() {
|
|
618
618
|
return this.$$.ctx[1];
|
|
619
619
|
}
|
|
620
620
|
set addsortingselector(e) {
|
|
621
|
-
this.$$set({ addsortingselector: e }),
|
|
621
|
+
this.$$set({ addsortingselector: e }), L();
|
|
622
622
|
}
|
|
623
623
|
get filterbylogo() {
|
|
624
624
|
return this.$$.ctx[2];
|
|
625
625
|
}
|
|
626
626
|
set filterbylogo(e) {
|
|
627
|
-
this.$$set({ filterbylogo: e }),
|
|
627
|
+
this.$$set({ filterbylogo: e }), L();
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
Ce(Me, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
|
|
631
631
|
export {
|
|
632
632
|
Me as default
|
|
633
633
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BMfA7KN3.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,u,b,y,h=i[11]("filterby")+"",f,v,F,S,w=i[11]("providers")+"",P,_,c,m,g,L,A,C,W,I,T,H,k,E=i[11]("clear")+"",N,D,j,M,z,J;function q(o,p){return o[7]?re:le}let B=q(i),x=B(i),O=e.ensure_array_like(i[5]),r=[];for(let o=0;o<O.length;o+=1)r[o]=Q(K(i,O,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),u=e.space(),b=e.element("div"),y=e.element("span"),f=e.text(h),v=e.space(),F=e.element("div"),S=e.element("span"),P=e.text(w),_=e.space(),x.c(),c=e.space(),m=e.element("span"),g=e.svg_element("svg"),L=e.svg_element("path"),W=e.space(),I=e.element("div"),T=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();H=e.space(),k=e.element("button"),N=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(L,"id","arrow"),e.attr(L,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(L,"transform","translate(-274.511 -441.088)"),e.attr(L,"fill","#d1d1d1"),e.attr(g,"xmlns","http://www.w3.org/2000/svg"),e.attr(g,"width","14"),e.attr(g,"height","6.835"),e.attr(g,"viewBox","0 0 14 6.835"),e.attr(m,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",C="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(k,"class","ClearFilters"),k.disabled=D=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",M="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,u),e.append(a,b),e.append(b,y),e.append(y,f),e.append(b,v),e.append(b,F),e.append(F,S),e.append(S,P),e.append(F,_),x.m(F,null),e.append(l,c),e.append(l,m),e.append(m,g),e.append(g,L),e.append(t,W),e.append(t,I),e.append(I,T);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(T,null);e.append(I,H),e.append(I,k),e.append(k,N),z||(J=[e.listen(l,"click",i[22]),e.listen(k,"click",i[25])],z=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(f,h),p[0]&2048&&w!==(w=o[11]("providers")+"")&&e.set_data(P,w),B===(B=q(o))&&x?x.p(o,p):(x.d(1),x=B(o),x&&(x.c(),x.m(F,null))),p[0]&16&&A!==(A="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(m,"class",A),p[0]&16&&C!==(C="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",C),p[0]&8228){O=e.ensure_array_like(o[5]);let d;for(d=0;d<O.length;d+=1){const V=K(o,O,d);r[d]?r[d].p(V,p):(r[d]=Q(V),r[d].c(),r[d].m(T,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=O.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(N,E),p[0]&224&&D!==(D=o[7]&&o[6].length!=o[5].length)&&(k.disabled=D),p[0]&16&&j!==(j="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",j),p[0]&3&&M!==(M="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",M)},d(o){o&&e.detach(t),x.d(),e.destroy_each(r,o),z=!1,e.run_all(J)}}}function te(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function re(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,u,b,y=i[36].games.count+"",h,f;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),u=e.element("span"),b=e.text("("),h=e.text(y),f=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,u),e.append(u,b),e.append(u,h),e.append(u,f)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,u,b,y,h,f,v,F;function S(){i[23].call(a,i[37],i[38])}function w(){return i[24](i[36])}function P(m,g){if(m[2]==="false")return ae;if(m[2]==="true")return ie}let _=P(i),c=_&&_(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),u=e.element("span"),b=e.space(),c&&c.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(u,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=f=i[36].name},m(m,g){e.insert(m,t,g),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,u),e.append(l,b),c&&c.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",S),e.listen(a,"click",w)],v=!0)},p(m,g){i=m,g[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),g[0]&32&&(a.checked=i[36].isFilterSelected),_===(_=P(i))&&c?c.p(i,g):(c&&c.d(1),c=_&&_(i),c&&(c.c(),c.m(l,null))),g[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),g[0]&32&&f!==(f=i[36].name)&&(t.value=f)},d(m){m&&e.detach(t),c&&c.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,u){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,u){e.insert(s,t,u),n&&n.m(t,null),i[26](t)},p(s,u){a===(a=l(s))&&n?n.p(s,u):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[26](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:u=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:f=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:S="false"}=t,w=!1,P=window.navigator.userAgent,_=[],c=[],m={},g=!1,L=0,A=!0,C,W=!1;Y({withLocale:"en",translations:{}});const I=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])});const T=()=>{let r=document.createElement("style");r.innerHTML=y,C.appendChild(r)},H=()=>{let r=document.createElement("style");fetch(new URL(h)).then(o=>o.text()).then(o=>{r.innerHTML=o,setTimeout(()=>{C.appendChild(r)},1)})};m[f]&&(m={[f]:[]});const k=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let V=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;V||(V={currentCategoryId:[]}),((U=V[f])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,_=d),D()}).catch(d=>{console.error(d),l(10,W=!0),p(d)}).finally(()=>{l(9,A=!1)})})),N=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[f]:c.map(p=>p.id)})):(o=JSON.parse(o),o[f]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),D()},D=()=>{l(7,g=c.length===_.length||c.length==0),l(8,L=c.length)},j=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",u),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(P)),(f.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${f})`),r.searchParams.append("subVendors",`games(subGroups=${f})`)):r.searchParams.append("filter",`games(groups=${f})`),E(r)},M=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[f]:c.map(r=>r.id)})),_.forEach(r=>r.isFilterSelected=!1),l(5,_),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,g=!0),l(4,w=!1)},z=r=>{r.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const J=()=>k();function q(r,o){r[o].isFilterSelected=this.checked,l(5,_)}const B=r=>N(r),x=()=>M();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{C=r,l(3,C)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,u=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,f=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,S=r.filterbylogo)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&f&&S&&j(),i.$$.dirty[0]&524296&&y&&C&&T(),i.$$.dirty[0]&1048584&&h&&C&&H(),i.$$.dirty[0]&262144&&b&&I()},[v,F,S,C,w,_,c,g,L,A,W,a,k,N,M,n,s,u,b,y,h,f,J,q,B,x,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},$,[-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 translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);exports.default=X;
|