@everymatrix/casino-lobby 0.0.167 → 0.0.171
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/dist/casino-lobby.js +126 -57
- package/dist/casino-lobby.js.map +1 -1
- package/index.html +2 -2
- package/package.json +2 -2
package/dist/casino-lobby.js
CHANGED
|
@@ -5685,7 +5685,7 @@
|
|
|
5685
5685
|
const { console: console_1$7 } = globals;
|
|
5686
5686
|
const file$8 = "../casino-categories-slider/src/CasinoCategoriesSlider.svelte";
|
|
5687
5687
|
|
|
5688
|
-
// (
|
|
5688
|
+
// (224:4) {:else}
|
|
5689
5689
|
function create_else_block$5(ctx) {
|
|
5690
5690
|
let div;
|
|
5691
5691
|
let casino_slider;
|
|
@@ -5700,32 +5700,32 @@
|
|
|
5700
5700
|
set_custom_element_data(casino_slider, "clientstylingurl", /*clientstylingurl*/ ctx[1]);
|
|
5701
5701
|
set_custom_element_data(casino_slider, "containermaxwidth", /*containermaxwidth*/ ctx[2]);
|
|
5702
5702
|
set_custom_element_data(casino_slider, "onclickeventname", "CategoryChange");
|
|
5703
|
-
add_location(casino_slider, file$8,
|
|
5703
|
+
add_location(casino_slider, file$8, 225, 8, 7246);
|
|
5704
5704
|
attr_dev(div, "class", "CasinoCategoriesContainer");
|
|
5705
|
-
add_location(div, file$8,
|
|
5705
|
+
add_location(div, file$8, 224, 6, 7198);
|
|
5706
5706
|
},
|
|
5707
5707
|
m: function mount(target, anchor) {
|
|
5708
5708
|
insert_dev(target, div, anchor);
|
|
5709
5709
|
append_dev(div, casino_slider);
|
|
5710
5710
|
},
|
|
5711
5711
|
p: function update(ctx, dirty) {
|
|
5712
|
-
if (dirty & /*numberOfFavoredGames*/ 128) {
|
|
5712
|
+
if (dirty[0] & /*numberOfFavoredGames*/ 128) {
|
|
5713
5713
|
set_custom_element_data(casino_slider, "favoritesnumber", /*numberOfFavoredGames*/ ctx[7]);
|
|
5714
5714
|
}
|
|
5715
5715
|
|
|
5716
|
-
if (dirty & /*categories*/ 16) {
|
|
5716
|
+
if (dirty[0] & /*categories*/ 16) {
|
|
5717
5717
|
set_custom_element_data(casino_slider, "sliderdata", /*categories*/ ctx[4]);
|
|
5718
5718
|
}
|
|
5719
5719
|
|
|
5720
|
-
if (dirty & /*clientstyling*/ 1) {
|
|
5720
|
+
if (dirty[0] & /*clientstyling*/ 1) {
|
|
5721
5721
|
set_custom_element_data(casino_slider, "clientstyling", /*clientstyling*/ ctx[0]);
|
|
5722
5722
|
}
|
|
5723
5723
|
|
|
5724
|
-
if (dirty & /*clientstylingurl*/ 2) {
|
|
5724
|
+
if (dirty[0] & /*clientstylingurl*/ 2) {
|
|
5725
5725
|
set_custom_element_data(casino_slider, "clientstylingurl", /*clientstylingurl*/ ctx[1]);
|
|
5726
5726
|
}
|
|
5727
5727
|
|
|
5728
|
-
if (dirty & /*containermaxwidth*/ 4) {
|
|
5728
|
+
if (dirty[0] & /*containermaxwidth*/ 4) {
|
|
5729
5729
|
set_custom_element_data(casino_slider, "containermaxwidth", /*containermaxwidth*/ ctx[2]);
|
|
5730
5730
|
}
|
|
5731
5731
|
},
|
|
@@ -5738,14 +5738,14 @@
|
|
|
5738
5738
|
block,
|
|
5739
5739
|
id: create_else_block$5.name,
|
|
5740
5740
|
type: "else",
|
|
5741
|
-
source: "(
|
|
5741
|
+
source: "(224:4) {:else}",
|
|
5742
5742
|
ctx
|
|
5743
5743
|
});
|
|
5744
5744
|
|
|
5745
5745
|
return block;
|
|
5746
5746
|
}
|
|
5747
5747
|
|
|
5748
|
-
// (
|
|
5748
|
+
// (222:4) {#if hasErrors}
|
|
5749
5749
|
function create_if_block_1$5(ctx) {
|
|
5750
5750
|
let p;
|
|
5751
5751
|
|
|
@@ -5754,7 +5754,7 @@
|
|
|
5754
5754
|
p = element("p");
|
|
5755
5755
|
p.textContent = "500 Error - Internal Server Error.";
|
|
5756
5756
|
attr_dev(p, "class", "SearchLoading");
|
|
5757
|
-
add_location(p, file$8,
|
|
5757
|
+
add_location(p, file$8, 222, 6, 7116);
|
|
5758
5758
|
},
|
|
5759
5759
|
m: function mount(target, anchor) {
|
|
5760
5760
|
insert_dev(target, p, anchor);
|
|
@@ -5769,14 +5769,14 @@
|
|
|
5769
5769
|
block,
|
|
5770
5770
|
id: create_if_block_1$5.name,
|
|
5771
5771
|
type: "if",
|
|
5772
|
-
source: "(
|
|
5772
|
+
source: "(222:4) {#if hasErrors}",
|
|
5773
5773
|
ctx
|
|
5774
5774
|
});
|
|
5775
5775
|
|
|
5776
5776
|
return block;
|
|
5777
5777
|
}
|
|
5778
5778
|
|
|
5779
|
-
// (
|
|
5779
|
+
// (219:2) {#if isLoading}
|
|
5780
5780
|
function create_if_block$8(ctx) {
|
|
5781
5781
|
let p;
|
|
5782
5782
|
|
|
@@ -5784,7 +5784,7 @@
|
|
|
5784
5784
|
c: function create() {
|
|
5785
5785
|
p = element("p");
|
|
5786
5786
|
p.textContent = "Please wait ...";
|
|
5787
|
-
add_location(p, file$8,
|
|
5787
|
+
add_location(p, file$8, 219, 4, 7057);
|
|
5788
5788
|
},
|
|
5789
5789
|
m: function mount(target, anchor) {
|
|
5790
5790
|
insert_dev(target, p, anchor);
|
|
@@ -5799,7 +5799,7 @@
|
|
|
5799
5799
|
block,
|
|
5800
5800
|
id: create_if_block$8.name,
|
|
5801
5801
|
type: "if",
|
|
5802
|
-
source: "(
|
|
5802
|
+
source: "(219:2) {#if isLoading}",
|
|
5803
5803
|
ctx
|
|
5804
5804
|
});
|
|
5805
5805
|
|
|
@@ -5823,7 +5823,7 @@
|
|
|
5823
5823
|
div = element("div");
|
|
5824
5824
|
if_block.c();
|
|
5825
5825
|
this.c = noop$1;
|
|
5826
|
-
add_location(div, file$8,
|
|
5826
|
+
add_location(div, file$8, 217, 0, 6994);
|
|
5827
5827
|
},
|
|
5828
5828
|
l: function claim(nodes) {
|
|
5829
5829
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5831,9 +5831,9 @@
|
|
|
5831
5831
|
m: function mount(target, anchor) {
|
|
5832
5832
|
insert_dev(target, div, anchor);
|
|
5833
5833
|
if_block.m(div, null);
|
|
5834
|
-
/*div_binding*/ ctx[
|
|
5834
|
+
/*div_binding*/ ctx[18](div);
|
|
5835
5835
|
},
|
|
5836
|
-
p: function update(ctx,
|
|
5836
|
+
p: function update(ctx, dirty) {
|
|
5837
5837
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
5838
5838
|
if_block.p(ctx, dirty);
|
|
5839
5839
|
} else {
|
|
@@ -5851,7 +5851,7 @@
|
|
|
5851
5851
|
d: function destroy(detaching) {
|
|
5852
5852
|
if (detaching) detach_dev(div);
|
|
5853
5853
|
if_block.d();
|
|
5854
|
-
/*div_binding*/ ctx[
|
|
5854
|
+
/*div_binding*/ ctx[18](null);
|
|
5855
5855
|
}
|
|
5856
5856
|
};
|
|
5857
5857
|
|
|
@@ -5873,6 +5873,7 @@
|
|
|
5873
5873
|
let { endpoint = "" } = $$props;
|
|
5874
5874
|
let { datasource = "" } = $$props;
|
|
5875
5875
|
let { lang = "" } = $$props; // Language
|
|
5876
|
+
let { userid = "" } = $$props;
|
|
5876
5877
|
let { session = "" } = $$props; // Value for sessionID
|
|
5877
5878
|
let { mostplayed = "" } = $$props; // True - add MostPlayed category in slider
|
|
5878
5879
|
let { favorites = "" } = $$props; // True - add Favorites category in slider
|
|
@@ -5895,6 +5896,9 @@
|
|
|
5895
5896
|
let numberOfFavoredGames;
|
|
5896
5897
|
let favoritesAdded = false;
|
|
5897
5898
|
let mostPlayedAdded = false;
|
|
5899
|
+
let favoritesLoaded = false;
|
|
5900
|
+
let mostPlayedLoaded = false;
|
|
5901
|
+
let categoriesLoaded = false;
|
|
5898
5902
|
|
|
5899
5903
|
const messageHandler = e => {
|
|
5900
5904
|
if (e.data) {
|
|
@@ -5925,6 +5929,36 @@
|
|
|
5925
5929
|
}
|
|
5926
5930
|
};
|
|
5927
5931
|
|
|
5932
|
+
const getMostPlayedGames = () => {
|
|
5933
|
+
let url = new URL(`${endpoint}/player/${userid}/games/most-played`);
|
|
5934
|
+
let device = getDevice(userAgent);
|
|
5935
|
+
|
|
5936
|
+
if (device) {
|
|
5937
|
+
if (device === "PC") {
|
|
5938
|
+
url.searchParams.append("device", "Desktop");
|
|
5939
|
+
} else {
|
|
5940
|
+
url.searchParams.append("device", "Mobile");
|
|
5941
|
+
}
|
|
5942
|
+
} else {
|
|
5943
|
+
url.searchParams.append("device", "All");
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
url.searchParams.append("rounds", "50");
|
|
5947
|
+
|
|
5948
|
+
return new Promise((resolve, reject) => {
|
|
5949
|
+
fetch(url.href).then(res => res.json()).then(data => {
|
|
5950
|
+
if (data.count == 0) {
|
|
5951
|
+
resolve(false);
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
resolve(true);
|
|
5955
|
+
}).catch(err => {
|
|
5956
|
+
console.error("err", err);
|
|
5957
|
+
reject(false);
|
|
5958
|
+
});
|
|
5959
|
+
});
|
|
5960
|
+
};
|
|
5961
|
+
|
|
5928
5962
|
const addFavoritesCategory = () => {
|
|
5929
5963
|
if (favoritesAdded == false && favorites == "true") {
|
|
5930
5964
|
categories.splice(1, 0, {
|
|
@@ -5936,22 +5970,24 @@
|
|
|
5936
5970
|
}
|
|
5937
5971
|
|
|
5938
5972
|
favoritesAdded = true;
|
|
5939
|
-
$$invalidate(
|
|
5973
|
+
$$invalidate(15, favoritesLoaded = true);
|
|
5940
5974
|
};
|
|
5941
5975
|
|
|
5942
5976
|
const addMostPlayedCategory = () => {
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5977
|
+
getMostPlayedGames().then(display => {
|
|
5978
|
+
if (mostPlayedAdded == false && mostplayed == "true" && display) {
|
|
5979
|
+
categories.splice(2, 0, {
|
|
5980
|
+
id: "MOSTPLAYED",
|
|
5981
|
+
name: "Most Played",
|
|
5982
|
+
href: "",
|
|
5983
|
+
games: [],
|
|
5984
|
+
triggerFetch: false
|
|
5985
|
+
});
|
|
5986
|
+
}
|
|
5952
5987
|
|
|
5953
|
-
|
|
5954
|
-
|
|
5988
|
+
mostPlayedAdded = true;
|
|
5989
|
+
$$invalidate(16, mostPlayedLoaded = true);
|
|
5990
|
+
});
|
|
5955
5991
|
};
|
|
5956
5992
|
|
|
5957
5993
|
const checkAttrs = () => {
|
|
@@ -5979,14 +6015,15 @@
|
|
|
5979
6015
|
return hasErrors;
|
|
5980
6016
|
};
|
|
5981
6017
|
|
|
6018
|
+
const checkIfLoaded = () => {
|
|
6019
|
+
$$invalidate(3, isLoading = !favoritesLoaded && !mostPlayedLoaded && !categoriesLoaded);
|
|
6020
|
+
};
|
|
6021
|
+
|
|
5982
6022
|
const initialLoad = () => {
|
|
5983
6023
|
if (!checkAttrs()) {
|
|
5984
|
-
$$invalidate(3, isLoading = true);
|
|
5985
6024
|
let url = new URL(`${endpoint}/casino/groups/${datasource}`);
|
|
5986
6025
|
url.searchParams.append("datasource", datasource);
|
|
5987
|
-
|
|
5988
|
-
// @TODO add back getDevice method
|
|
5989
|
-
// url.searchParams.append('platform', getDevice(userAgent));
|
|
6026
|
+
url.searchParams.append("platform", getDevice(userAgent));
|
|
5990
6027
|
url.searchParams.append("language", lang);
|
|
5991
6028
|
|
|
5992
6029
|
fetch(url).then(res => res.json()).then(
|
|
@@ -6006,8 +6043,8 @@
|
|
|
6006
6043
|
games: []
|
|
6007
6044
|
});
|
|
6008
6045
|
|
|
6046
|
+
$$invalidate(17, categoriesLoaded = true);
|
|
6009
6047
|
window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
|
6010
|
-
$$invalidate(3, isLoading = false);
|
|
6011
6048
|
},
|
|
6012
6049
|
err => {
|
|
6013
6050
|
$$invalidate(5, hasErrors = true);
|
|
@@ -6067,6 +6104,7 @@
|
|
|
6067
6104
|
"endpoint",
|
|
6068
6105
|
"datasource",
|
|
6069
6106
|
"lang",
|
|
6107
|
+
"userid",
|
|
6070
6108
|
"session",
|
|
6071
6109
|
"mostplayed",
|
|
6072
6110
|
"favorites",
|
|
@@ -6090,9 +6128,10 @@
|
|
|
6090
6128
|
if ("endpoint" in $$props) $$invalidate(8, endpoint = $$props.endpoint);
|
|
6091
6129
|
if ("datasource" in $$props) $$invalidate(9, datasource = $$props.datasource);
|
|
6092
6130
|
if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
|
|
6093
|
-
if ("
|
|
6094
|
-
if ("
|
|
6095
|
-
if ("
|
|
6131
|
+
if ("userid" in $$props) $$invalidate(11, userid = $$props.userid);
|
|
6132
|
+
if ("session" in $$props) $$invalidate(12, session = $$props.session);
|
|
6133
|
+
if ("mostplayed" in $$props) $$invalidate(13, mostplayed = $$props.mostplayed);
|
|
6134
|
+
if ("favorites" in $$props) $$invalidate(14, favorites = $$props.favorites);
|
|
6096
6135
|
if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
|
|
6097
6136
|
if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
|
|
6098
6137
|
if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
|
|
@@ -6105,6 +6144,7 @@
|
|
|
6105
6144
|
endpoint,
|
|
6106
6145
|
datasource,
|
|
6107
6146
|
lang,
|
|
6147
|
+
userid,
|
|
6108
6148
|
session,
|
|
6109
6149
|
mostplayed,
|
|
6110
6150
|
favorites,
|
|
@@ -6124,10 +6164,15 @@
|
|
|
6124
6164
|
numberOfFavoredGames,
|
|
6125
6165
|
favoritesAdded,
|
|
6126
6166
|
mostPlayedAdded,
|
|
6167
|
+
favoritesLoaded,
|
|
6168
|
+
mostPlayedLoaded,
|
|
6169
|
+
categoriesLoaded,
|
|
6127
6170
|
messageHandler,
|
|
6171
|
+
getMostPlayedGames,
|
|
6128
6172
|
addFavoritesCategory,
|
|
6129
6173
|
addMostPlayedCategory,
|
|
6130
6174
|
checkAttrs,
|
|
6175
|
+
checkIfLoaded,
|
|
6131
6176
|
initialLoad,
|
|
6132
6177
|
setSession,
|
|
6133
6178
|
setClientStyling,
|
|
@@ -6138,9 +6183,10 @@
|
|
|
6138
6183
|
if ("endpoint" in $$props) $$invalidate(8, endpoint = $$props.endpoint);
|
|
6139
6184
|
if ("datasource" in $$props) $$invalidate(9, datasource = $$props.datasource);
|
|
6140
6185
|
if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
|
|
6141
|
-
if ("
|
|
6142
|
-
if ("
|
|
6143
|
-
if ("
|
|
6186
|
+
if ("userid" in $$props) $$invalidate(11, userid = $$props.userid);
|
|
6187
|
+
if ("session" in $$props) $$invalidate(12, session = $$props.session);
|
|
6188
|
+
if ("mostplayed" in $$props) $$invalidate(13, mostplayed = $$props.mostplayed);
|
|
6189
|
+
if ("favorites" in $$props) $$invalidate(14, favorites = $$props.favorites);
|
|
6144
6190
|
if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
|
|
6145
6191
|
if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
|
|
6146
6192
|
if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
|
|
@@ -6157,6 +6203,9 @@
|
|
|
6157
6203
|
if ("numberOfFavoredGames" in $$props) $$invalidate(7, numberOfFavoredGames = $$props.numberOfFavoredGames);
|
|
6158
6204
|
if ("favoritesAdded" in $$props) favoritesAdded = $$props.favoritesAdded;
|
|
6159
6205
|
if ("mostPlayedAdded" in $$props) mostPlayedAdded = $$props.mostPlayedAdded;
|
|
6206
|
+
if ("favoritesLoaded" in $$props) $$invalidate(15, favoritesLoaded = $$props.favoritesLoaded);
|
|
6207
|
+
if ("mostPlayedLoaded" in $$props) $$invalidate(16, mostPlayedLoaded = $$props.mostPlayedLoaded);
|
|
6208
|
+
if ("categoriesLoaded" in $$props) $$invalidate(17, categoriesLoaded = $$props.categoriesLoaded);
|
|
6160
6209
|
};
|
|
6161
6210
|
|
|
6162
6211
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -6164,27 +6213,31 @@
|
|
|
6164
6213
|
}
|
|
6165
6214
|
|
|
6166
6215
|
$$self.$$.update = () => {
|
|
6167
|
-
if ($$self.$$.dirty & /*
|
|
6216
|
+
if ($$self.$$.dirty[0] & /*favoritesLoaded, mostPlayedLoaded, categoriesLoaded*/ 229376) {
|
|
6217
|
+
favoritesLoaded && mostPlayedLoaded && categoriesLoaded && checkIfLoaded();
|
|
6218
|
+
}
|
|
6219
|
+
|
|
6220
|
+
if ($$self.$$.dirty[0] & /*endpoint, datasource, lang*/ 1792) {
|
|
6168
6221
|
endpoint && datasource && lang && initialLoad();
|
|
6169
6222
|
}
|
|
6170
6223
|
|
|
6171
|
-
if ($$self.$$.dirty & /*session, endpoint*/
|
|
6224
|
+
if ($$self.$$.dirty[0] & /*session, endpoint*/ 4352) {
|
|
6172
6225
|
session && endpoint && setSession();
|
|
6173
6226
|
}
|
|
6174
6227
|
|
|
6175
|
-
if ($$self.$$.dirty & /*session, favorites*/
|
|
6228
|
+
if ($$self.$$.dirty[0] & /*session, favorites*/ 20480) {
|
|
6176
6229
|
session && favorites && addFavoritesCategory();
|
|
6177
6230
|
}
|
|
6178
6231
|
|
|
6179
|
-
if ($$self.$$.dirty & /*session, mostplayed*/
|
|
6180
|
-
session && mostplayed && addMostPlayedCategory();
|
|
6232
|
+
if ($$self.$$.dirty[0] & /*session, userid, mostplayed*/ 14336) {
|
|
6233
|
+
session && userid && mostplayed && addMostPlayedCategory();
|
|
6181
6234
|
}
|
|
6182
6235
|
|
|
6183
|
-
if ($$self.$$.dirty & /*clientstyling*/ 1) {
|
|
6236
|
+
if ($$self.$$.dirty[0] & /*clientstyling*/ 1) {
|
|
6184
6237
|
clientstyling && setClientStyling();
|
|
6185
6238
|
}
|
|
6186
6239
|
|
|
6187
|
-
if ($$self.$$.dirty & /*clientstylingurl*/ 2) {
|
|
6240
|
+
if ($$self.$$.dirty[0] & /*clientstylingurl*/ 2) {
|
|
6188
6241
|
clientstylingurl && setClientStylingURL();
|
|
6189
6242
|
}
|
|
6190
6243
|
};
|
|
@@ -6203,9 +6256,13 @@
|
|
|
6203
6256
|
endpoint,
|
|
6204
6257
|
datasource,
|
|
6205
6258
|
lang,
|
|
6259
|
+
userid,
|
|
6206
6260
|
session,
|
|
6207
6261
|
mostplayed,
|
|
6208
6262
|
favorites,
|
|
6263
|
+
favoritesLoaded,
|
|
6264
|
+
mostPlayedLoaded,
|
|
6265
|
+
categoriesLoaded,
|
|
6209
6266
|
div_binding
|
|
6210
6267
|
];
|
|
6211
6268
|
}
|
|
@@ -6229,13 +6286,15 @@
|
|
|
6229
6286
|
endpoint: 8,
|
|
6230
6287
|
datasource: 9,
|
|
6231
6288
|
lang: 10,
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6289
|
+
userid: 11,
|
|
6290
|
+
session: 12,
|
|
6291
|
+
mostplayed: 13,
|
|
6292
|
+
favorites: 14,
|
|
6235
6293
|
clientstyling: 0,
|
|
6236
6294
|
clientstylingurl: 1,
|
|
6237
6295
|
containermaxwidth: 2
|
|
6238
|
-
}
|
|
6296
|
+
},
|
|
6297
|
+
[-1, -1]
|
|
6239
6298
|
);
|
|
6240
6299
|
|
|
6241
6300
|
if (options) {
|
|
@@ -6255,6 +6314,7 @@
|
|
|
6255
6314
|
"endpoint",
|
|
6256
6315
|
"datasource",
|
|
6257
6316
|
"lang",
|
|
6317
|
+
"userid",
|
|
6258
6318
|
"session",
|
|
6259
6319
|
"mostplayed",
|
|
6260
6320
|
"favorites",
|
|
@@ -6291,17 +6351,26 @@
|
|
|
6291
6351
|
flush();
|
|
6292
6352
|
}
|
|
6293
6353
|
|
|
6294
|
-
get
|
|
6354
|
+
get userid() {
|
|
6295
6355
|
return this.$$.ctx[11];
|
|
6296
6356
|
}
|
|
6297
6357
|
|
|
6358
|
+
set userid(userid) {
|
|
6359
|
+
this.$set({ userid });
|
|
6360
|
+
flush();
|
|
6361
|
+
}
|
|
6362
|
+
|
|
6363
|
+
get session() {
|
|
6364
|
+
return this.$$.ctx[12];
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6298
6367
|
set session(session) {
|
|
6299
6368
|
this.$set({ session });
|
|
6300
6369
|
flush();
|
|
6301
6370
|
}
|
|
6302
6371
|
|
|
6303
6372
|
get mostplayed() {
|
|
6304
|
-
return this.$$.ctx[
|
|
6373
|
+
return this.$$.ctx[13];
|
|
6305
6374
|
}
|
|
6306
6375
|
|
|
6307
6376
|
set mostplayed(mostplayed) {
|
|
@@ -6310,7 +6379,7 @@
|
|
|
6310
6379
|
}
|
|
6311
6380
|
|
|
6312
6381
|
get favorites() {
|
|
6313
|
-
return this.$$.ctx[
|
|
6382
|
+
return this.$$.ctx[14];
|
|
6314
6383
|
}
|
|
6315
6384
|
|
|
6316
6385
|
set favorites(favorites) {
|
|
@@ -14300,7 +14369,7 @@
|
|
|
14300
14369
|
class CasinoPage extends SvelteElement {
|
|
14301
14370
|
constructor(options) {
|
|
14302
14371
|
super();
|
|
14303
|
-
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CategoriesLobby{margin:0 auto;padding:0 10px}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:#fff}.PanicButton{border-radius:2px;border:1px solid #D0046C;background-color:#D0046C;width:240px;height:48px;color:#fff;cursor:pointer}[type="search"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}.SearchLoading{color:#fff;font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 5% auto 15%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:0;padding-left:8px;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid #58586B;border-radius:5px;text-transform:uppercase;color:#fff;cursor:pointer}.ClearFilterButtonWrapper{border:1px solid #FD2839;color:#FD2839}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid #D0046C;background:#D0046C;color:#fff;font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:#fff}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:25px}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:#fff;text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:#fff}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid #fff;border-radius:0;background:#fff;color:#D0046C}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:#D0046C}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign
|
|
14372
|
+
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CategoriesLobby{margin:0 auto;padding:0 10px}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:#fff}.PanicButton{border-radius:2px;border:1px solid #D0046C;background-color:#D0046C;width:240px;height:48px;color:#fff;cursor:pointer}[type="search"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}.SearchLoading{color:#fff;font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 5% auto 15%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:0;padding-left:8px;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid #58586B;border-radius:5px;text-transform:uppercase;color:#fff;cursor:pointer}.ClearFilterButtonWrapper{border:1px solid #FD2839;color:#FD2839}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid #D0046C;background:#D0046C;color:#fff;font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:#fff}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:25px}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:#fff;text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:#fff}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid #fff;border-radius:0;background:#fff;color:#D0046C}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:#D0046C}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection{flex-direction:row;position:relative;margin-top:30px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer{background-color:#07072A}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{justify-content:center}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{width:90%;border:1px solid #58586B;border-radius:6.4px;background-color:transparent;color:#fff;padding:12px 50px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:active,.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:focus{width:90%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{position:absolute;top:64px;right:5px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{border-radius:6.4px;border:2px solid #fff;background:transparent;color:#fff}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper{padding:10px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection.CategoriesHeaderSearchActive{top:0}.CategoriesHeaderSectionAltDesign .FiltersActive.ClearFilterButtonWrapper{display:block}.CategoriesHeaderSectionAltDesign .ClearSearchButton,.CategoriesHeaderSectionAltDesign .ClearSearchButtonMobile{right:30px;top:9px}.ClearFilterMobileButtonWrapper{position:absolute;right:5px;padding:8px 18px;display:inline-flex;border:1px solid #58586B;border-radius:5px;border:1px solid #FD2839;text-transform:uppercase;color:#fff;cursor:pointer;color:#FD2839;font-size:14px}.ClearFilterMobileButtonWrapper .ClearIcon svg{width:12px}.CategoriesHeaderSearchActive{position:fixed;bottom:unset;top:70px;margin-top:0}.CategoriesHeaderSearchActive .SearchContainer{background-color:white}.CategoriesHeaderSearchActive .SearchContainer .SearchWrapper .SearchInput{background-color:white;color:#000}.SearchStickTop{margin-top:0}@media(max-width: 768px){.SearchContainer{margin:auto 3% auto 0%}}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}.ClearSearchButton,.ClearSearchButtonMobile{cursor:pointer;position:absolute;right:14px;top:11px}.ClearSearchButton .CloseIconContainer,.ClearSearchButtonMobile .CloseIconContainer{width:25px;height:25px}.ClearSearchButton .CloseIconWrapper,.ClearSearchButtonMobile .CloseIconWrapper{height:25px;width:3px;margin-left:12px;background-color:#FFF;transform:rotate(45deg);Z-index:1}.ClearSearchButton .CloseIcon,.ClearSearchButtonMobile .CloseIcon{height:25px;width:3px;background-color:#FFF;transform:rotate(90deg);Z-index:2}.SearchContainer .CloseIconWrapper,.SearchContainer .CloseIcon{background-color:#FD2839}.ClearSearchButtonMobile{display:none}.CategoriesHeaderSearchActive .ClearSearchButtonMobile{display:block}.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIconWrapper,.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIcon{background-color:#FD2839}</style>`;
|
|
14304
14373
|
|
|
14305
14374
|
init(
|
|
14306
14375
|
this,
|