@everymatrix/casino-categories-slider 0.0.172 → 0.0.176
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.
|
@@ -122,6 +122,10 @@
|
|
|
122
122
|
resolved_promise.then(flush);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
function tick() {
|
|
126
|
+
schedule_update();
|
|
127
|
+
return resolved_promise;
|
|
128
|
+
}
|
|
125
129
|
function add_render_callback(fn) {
|
|
126
130
|
render_callbacks.push(fn);
|
|
127
131
|
}
|
|
@@ -5307,9 +5311,9 @@
|
|
|
5307
5311
|
set_custom_element_data(casino_slider, "clientstylingurl", /*clientstylingurl*/ ctx[1]);
|
|
5308
5312
|
set_custom_element_data(casino_slider, "containermaxwidth", /*containermaxwidth*/ ctx[2]);
|
|
5309
5313
|
set_custom_element_data(casino_slider, "onclickeventname", "CategoryChange");
|
|
5310
|
-
add_location(casino_slider, file, 225, 8,
|
|
5314
|
+
add_location(casino_slider, file, 225, 8, 7254);
|
|
5311
5315
|
attr_dev(div, "class", "CasinoCategoriesContainer");
|
|
5312
|
-
add_location(div, file, 224, 6,
|
|
5316
|
+
add_location(div, file, 224, 6, 7206);
|
|
5313
5317
|
},
|
|
5314
5318
|
m: function mount(target, anchor) {
|
|
5315
5319
|
insert_dev(target, div, anchor);
|
|
@@ -5361,7 +5365,7 @@
|
|
|
5361
5365
|
p = element("p");
|
|
5362
5366
|
p.textContent = "500 Error - Internal Server Error.";
|
|
5363
5367
|
attr_dev(p, "class", "SearchLoading");
|
|
5364
|
-
add_location(p, file, 222, 6,
|
|
5368
|
+
add_location(p, file, 222, 6, 7124);
|
|
5365
5369
|
},
|
|
5366
5370
|
m: function mount(target, anchor) {
|
|
5367
5371
|
insert_dev(target, p, anchor);
|
|
@@ -5383,7 +5387,7 @@
|
|
|
5383
5387
|
return block;
|
|
5384
5388
|
}
|
|
5385
5389
|
|
|
5386
|
-
// (219:2) {#if isLoading}
|
|
5390
|
+
// (219:2) {#if isLoading || isLoadingMostPlayed}
|
|
5387
5391
|
function create_if_block(ctx) {
|
|
5388
5392
|
let p;
|
|
5389
5393
|
|
|
@@ -5391,7 +5395,7 @@
|
|
|
5391
5395
|
c: function create() {
|
|
5392
5396
|
p = element("p");
|
|
5393
5397
|
p.textContent = "Please wait ...";
|
|
5394
|
-
add_location(p, file, 219, 4,
|
|
5398
|
+
add_location(p, file, 219, 4, 7065);
|
|
5395
5399
|
},
|
|
5396
5400
|
m: function mount(target, anchor) {
|
|
5397
5401
|
insert_dev(target, p, anchor);
|
|
@@ -5406,7 +5410,7 @@
|
|
|
5406
5410
|
block,
|
|
5407
5411
|
id: create_if_block.name,
|
|
5408
5412
|
type: "if",
|
|
5409
|
-
source: "(219:2) {#if isLoading}",
|
|
5413
|
+
source: "(219:2) {#if isLoading || isLoadingMostPlayed}",
|
|
5410
5414
|
ctx
|
|
5411
5415
|
});
|
|
5412
5416
|
|
|
@@ -5417,7 +5421,7 @@
|
|
|
5417
5421
|
let div;
|
|
5418
5422
|
|
|
5419
5423
|
function select_block_type(ctx, dirty) {
|
|
5420
|
-
if (/*isLoading*/ ctx[3]) return create_if_block;
|
|
5424
|
+
if (/*isLoading*/ ctx[3] || /*isLoadingMostPlayed*/ ctx[8]) return create_if_block;
|
|
5421
5425
|
if (/*hasErrors*/ ctx[5]) return create_if_block_1;
|
|
5422
5426
|
return create_else_block;
|
|
5423
5427
|
}
|
|
@@ -5430,7 +5434,7 @@
|
|
|
5430
5434
|
div = element("div");
|
|
5431
5435
|
if_block.c();
|
|
5432
5436
|
this.c = noop$1;
|
|
5433
|
-
add_location(div, file, 217, 0,
|
|
5437
|
+
add_location(div, file, 217, 0, 6979);
|
|
5434
5438
|
},
|
|
5435
5439
|
l: function claim(nodes) {
|
|
5436
5440
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5438,7 +5442,7 @@
|
|
|
5438
5442
|
m: function mount(target, anchor) {
|
|
5439
5443
|
insert_dev(target, div, anchor);
|
|
5440
5444
|
if_block.m(div, null);
|
|
5441
|
-
/*div_binding*/ ctx[
|
|
5445
|
+
/*div_binding*/ ctx[16](div);
|
|
5442
5446
|
},
|
|
5443
5447
|
p: function update(ctx, dirty) {
|
|
5444
5448
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -5458,7 +5462,7 @@
|
|
|
5458
5462
|
d: function destroy(detaching) {
|
|
5459
5463
|
if (detaching) detach_dev(div);
|
|
5460
5464
|
if_block.d();
|
|
5461
|
-
/*div_binding*/ ctx[
|
|
5465
|
+
/*div_binding*/ ctx[16](null);
|
|
5462
5466
|
}
|
|
5463
5467
|
};
|
|
5464
5468
|
|
|
@@ -5531,8 +5535,7 @@
|
|
|
5531
5535
|
isLoggedIn = true;
|
|
5532
5536
|
}
|
|
5533
5537
|
break;
|
|
5534
|
-
}
|
|
5535
|
-
// playerID = userID;
|
|
5538
|
+
}
|
|
5536
5539
|
}
|
|
5537
5540
|
};
|
|
5538
5541
|
|
|
@@ -5577,10 +5580,14 @@
|
|
|
5577
5580
|
}
|
|
5578
5581
|
|
|
5579
5582
|
favoritesAdded = true;
|
|
5580
|
-
|
|
5583
|
+
favoritesLoaded = true;
|
|
5581
5584
|
};
|
|
5582
5585
|
|
|
5586
|
+
let isLoadingMostPlayed = false;
|
|
5587
|
+
|
|
5583
5588
|
const addMostPlayedCategory = () => {
|
|
5589
|
+
$$invalidate(8, isLoadingMostPlayed = true);
|
|
5590
|
+
|
|
5584
5591
|
getMostPlayedGames().then(display => {
|
|
5585
5592
|
if (mostPlayedAdded == false && mostplayed == "true" && display) {
|
|
5586
5593
|
categories.splice(2, 0, {
|
|
@@ -5592,8 +5599,10 @@
|
|
|
5592
5599
|
});
|
|
5593
5600
|
}
|
|
5594
5601
|
|
|
5602
|
+
$$invalidate(8, isLoadingMostPlayed = false);
|
|
5603
|
+
tick();
|
|
5595
5604
|
mostPlayedAdded = true;
|
|
5596
|
-
|
|
5605
|
+
mostPlayedLoaded = true;
|
|
5597
5606
|
});
|
|
5598
5607
|
};
|
|
5599
5608
|
|
|
@@ -5650,7 +5659,7 @@
|
|
|
5650
5659
|
games: []
|
|
5651
5660
|
});
|
|
5652
5661
|
|
|
5653
|
-
$$invalidate(
|
|
5662
|
+
$$invalidate(3, isLoading = false);
|
|
5654
5663
|
window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
|
5655
5664
|
},
|
|
5656
5665
|
err => {
|
|
@@ -5686,8 +5695,9 @@
|
|
|
5686
5695
|
|
|
5687
5696
|
const setClientStylingURL = () => {
|
|
5688
5697
|
let cssFile = document.createElement("style");
|
|
5698
|
+
let url = new URL(clientstylingurl);
|
|
5689
5699
|
|
|
5690
|
-
fetch(
|
|
5700
|
+
fetch(url.href).then(res => res.text()).then(data => {
|
|
5691
5701
|
cssFile.innerHTML = data;
|
|
5692
5702
|
|
|
5693
5703
|
setTimeout(
|
|
@@ -5732,13 +5742,13 @@
|
|
|
5732
5742
|
}
|
|
5733
5743
|
|
|
5734
5744
|
$$self.$$set = $$props => {
|
|
5735
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
5736
|
-
if ("datasource" in $$props) $$invalidate(
|
|
5737
|
-
if ("lang" in $$props) $$invalidate(
|
|
5738
|
-
if ("userid" in $$props) $$invalidate(
|
|
5739
|
-
if ("session" in $$props) $$invalidate(
|
|
5740
|
-
if ("mostplayed" in $$props) $$invalidate(
|
|
5741
|
-
if ("favorites" in $$props) $$invalidate(
|
|
5745
|
+
if ("endpoint" in $$props) $$invalidate(9, endpoint = $$props.endpoint);
|
|
5746
|
+
if ("datasource" in $$props) $$invalidate(10, datasource = $$props.datasource);
|
|
5747
|
+
if ("lang" in $$props) $$invalidate(11, lang = $$props.lang);
|
|
5748
|
+
if ("userid" in $$props) $$invalidate(12, userid = $$props.userid);
|
|
5749
|
+
if ("session" in $$props) $$invalidate(13, session = $$props.session);
|
|
5750
|
+
if ("mostplayed" in $$props) $$invalidate(14, mostplayed = $$props.mostplayed);
|
|
5751
|
+
if ("favorites" in $$props) $$invalidate(15, favorites = $$props.favorites);
|
|
5742
5752
|
if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
|
|
5743
5753
|
if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
|
|
5744
5754
|
if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
|
|
@@ -5746,6 +5756,7 @@
|
|
|
5746
5756
|
|
|
5747
5757
|
$$self.$capture_state = () => ({
|
|
5748
5758
|
onMount,
|
|
5759
|
+
tick,
|
|
5749
5760
|
getDevice,
|
|
5750
5761
|
checkSession,
|
|
5751
5762
|
endpoint,
|
|
@@ -5777,6 +5788,7 @@
|
|
|
5777
5788
|
messageHandler,
|
|
5778
5789
|
getMostPlayedGames,
|
|
5779
5790
|
addFavoritesCategory,
|
|
5791
|
+
isLoadingMostPlayed,
|
|
5780
5792
|
addMostPlayedCategory,
|
|
5781
5793
|
checkAttrs,
|
|
5782
5794
|
checkIfLoaded,
|
|
@@ -5787,13 +5799,13 @@
|
|
|
5787
5799
|
});
|
|
5788
5800
|
|
|
5789
5801
|
$$self.$inject_state = $$props => {
|
|
5790
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
5791
|
-
if ("datasource" in $$props) $$invalidate(
|
|
5792
|
-
if ("lang" in $$props) $$invalidate(
|
|
5793
|
-
if ("userid" in $$props) $$invalidate(
|
|
5794
|
-
if ("session" in $$props) $$invalidate(
|
|
5795
|
-
if ("mostplayed" in $$props) $$invalidate(
|
|
5796
|
-
if ("favorites" in $$props) $$invalidate(
|
|
5802
|
+
if ("endpoint" in $$props) $$invalidate(9, endpoint = $$props.endpoint);
|
|
5803
|
+
if ("datasource" in $$props) $$invalidate(10, datasource = $$props.datasource);
|
|
5804
|
+
if ("lang" in $$props) $$invalidate(11, lang = $$props.lang);
|
|
5805
|
+
if ("userid" in $$props) $$invalidate(12, userid = $$props.userid);
|
|
5806
|
+
if ("session" in $$props) $$invalidate(13, session = $$props.session);
|
|
5807
|
+
if ("mostplayed" in $$props) $$invalidate(14, mostplayed = $$props.mostplayed);
|
|
5808
|
+
if ("favorites" in $$props) $$invalidate(15, favorites = $$props.favorites);
|
|
5797
5809
|
if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
|
|
5798
5810
|
if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
|
|
5799
5811
|
if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
|
|
@@ -5810,9 +5822,10 @@
|
|
|
5810
5822
|
if ("numberOfFavoredGames" in $$props) $$invalidate(7, numberOfFavoredGames = $$props.numberOfFavoredGames);
|
|
5811
5823
|
if ("favoritesAdded" in $$props) favoritesAdded = $$props.favoritesAdded;
|
|
5812
5824
|
if ("mostPlayedAdded" in $$props) mostPlayedAdded = $$props.mostPlayedAdded;
|
|
5813
|
-
if ("favoritesLoaded" in $$props)
|
|
5814
|
-
if ("mostPlayedLoaded" in $$props)
|
|
5815
|
-
if ("categoriesLoaded" in $$props)
|
|
5825
|
+
if ("favoritesLoaded" in $$props) favoritesLoaded = $$props.favoritesLoaded;
|
|
5826
|
+
if ("mostPlayedLoaded" in $$props) mostPlayedLoaded = $$props.mostPlayedLoaded;
|
|
5827
|
+
if ("categoriesLoaded" in $$props) categoriesLoaded = $$props.categoriesLoaded;
|
|
5828
|
+
if ("isLoadingMostPlayed" in $$props) $$invalidate(8, isLoadingMostPlayed = $$props.isLoadingMostPlayed);
|
|
5816
5829
|
};
|
|
5817
5830
|
|
|
5818
5831
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -5820,23 +5833,20 @@
|
|
|
5820
5833
|
}
|
|
5821
5834
|
|
|
5822
5835
|
$$self.$$.update = () => {
|
|
5823
|
-
if ($$self.$$.dirty[0] & /*
|
|
5824
|
-
favoritesLoaded && mostPlayedLoaded && categoriesLoaded && checkIfLoaded();
|
|
5825
|
-
}
|
|
5826
|
-
|
|
5827
|
-
if ($$self.$$.dirty[0] & /*endpoint, datasource, lang*/ 1792) {
|
|
5836
|
+
if ($$self.$$.dirty[0] & /*endpoint, datasource, lang*/ 3584) {
|
|
5837
|
+
// $: favoritesLoaded && mostPlayedLoaded && categoriesLoaded && checkIfLoaded();
|
|
5828
5838
|
endpoint && datasource && lang && initialLoad();
|
|
5829
5839
|
}
|
|
5830
5840
|
|
|
5831
|
-
if ($$self.$$.dirty[0] & /*session, endpoint*/
|
|
5841
|
+
if ($$self.$$.dirty[0] & /*session, endpoint*/ 8704) {
|
|
5832
5842
|
session && endpoint && setSession();
|
|
5833
5843
|
}
|
|
5834
5844
|
|
|
5835
|
-
if ($$self.$$.dirty[0] & /*session, favorites*/
|
|
5845
|
+
if ($$self.$$.dirty[0] & /*session, favorites*/ 40960) {
|
|
5836
5846
|
session && favorites && addFavoritesCategory();
|
|
5837
5847
|
}
|
|
5838
5848
|
|
|
5839
|
-
if ($$self.$$.dirty[0] & /*session, userid, mostplayed*/
|
|
5849
|
+
if ($$self.$$.dirty[0] & /*session, userid, mostplayed*/ 28672) {
|
|
5840
5850
|
session && userid && mostplayed && addMostPlayedCategory();
|
|
5841
5851
|
}
|
|
5842
5852
|
|
|
@@ -5860,6 +5870,7 @@
|
|
|
5860
5870
|
hasErrors,
|
|
5861
5871
|
customStylingContainer,
|
|
5862
5872
|
numberOfFavoredGames,
|
|
5873
|
+
isLoadingMostPlayed,
|
|
5863
5874
|
endpoint,
|
|
5864
5875
|
datasource,
|
|
5865
5876
|
lang,
|
|
@@ -5867,9 +5878,6 @@
|
|
|
5867
5878
|
session,
|
|
5868
5879
|
mostplayed,
|
|
5869
5880
|
favorites,
|
|
5870
|
-
favoritesLoaded,
|
|
5871
|
-
mostPlayedLoaded,
|
|
5872
|
-
categoriesLoaded,
|
|
5873
5881
|
div_binding
|
|
5874
5882
|
];
|
|
5875
5883
|
}
|
|
@@ -5890,13 +5898,13 @@
|
|
|
5890
5898
|
create_fragment,
|
|
5891
5899
|
safe_not_equal,
|
|
5892
5900
|
{
|
|
5893
|
-
endpoint:
|
|
5894
|
-
datasource:
|
|
5895
|
-
lang:
|
|
5896
|
-
userid:
|
|
5897
|
-
session:
|
|
5898
|
-
mostplayed:
|
|
5899
|
-
favorites:
|
|
5901
|
+
endpoint: 9,
|
|
5902
|
+
datasource: 10,
|
|
5903
|
+
lang: 11,
|
|
5904
|
+
userid: 12,
|
|
5905
|
+
session: 13,
|
|
5906
|
+
mostplayed: 14,
|
|
5907
|
+
favorites: 15,
|
|
5900
5908
|
clientstyling: 0,
|
|
5901
5909
|
clientstylingurl: 1,
|
|
5902
5910
|
containermaxwidth: 2
|
|
@@ -5932,7 +5940,7 @@
|
|
|
5932
5940
|
}
|
|
5933
5941
|
|
|
5934
5942
|
get endpoint() {
|
|
5935
|
-
return this.$$.ctx[
|
|
5943
|
+
return this.$$.ctx[9];
|
|
5936
5944
|
}
|
|
5937
5945
|
|
|
5938
5946
|
set endpoint(endpoint) {
|
|
@@ -5941,7 +5949,7 @@
|
|
|
5941
5949
|
}
|
|
5942
5950
|
|
|
5943
5951
|
get datasource() {
|
|
5944
|
-
return this.$$.ctx[
|
|
5952
|
+
return this.$$.ctx[10];
|
|
5945
5953
|
}
|
|
5946
5954
|
|
|
5947
5955
|
set datasource(datasource) {
|
|
@@ -5950,7 +5958,7 @@
|
|
|
5950
5958
|
}
|
|
5951
5959
|
|
|
5952
5960
|
get lang() {
|
|
5953
|
-
return this.$$.ctx[
|
|
5961
|
+
return this.$$.ctx[11];
|
|
5954
5962
|
}
|
|
5955
5963
|
|
|
5956
5964
|
set lang(lang) {
|
|
@@ -5959,7 +5967,7 @@
|
|
|
5959
5967
|
}
|
|
5960
5968
|
|
|
5961
5969
|
get userid() {
|
|
5962
|
-
return this.$$.ctx[
|
|
5970
|
+
return this.$$.ctx[12];
|
|
5963
5971
|
}
|
|
5964
5972
|
|
|
5965
5973
|
set userid(userid) {
|
|
@@ -5968,7 +5976,7 @@
|
|
|
5968
5976
|
}
|
|
5969
5977
|
|
|
5970
5978
|
get session() {
|
|
5971
|
-
return this.$$.ctx[
|
|
5979
|
+
return this.$$.ctx[13];
|
|
5972
5980
|
}
|
|
5973
5981
|
|
|
5974
5982
|
set session(session) {
|
|
@@ -5977,7 +5985,7 @@
|
|
|
5977
5985
|
}
|
|
5978
5986
|
|
|
5979
5987
|
get mostplayed() {
|
|
5980
|
-
return this.$$.ctx[
|
|
5988
|
+
return this.$$.ctx[14];
|
|
5981
5989
|
}
|
|
5982
5990
|
|
|
5983
5991
|
set mostplayed(mostplayed) {
|
|
@@ -5986,7 +5994,7 @@
|
|
|
5986
5994
|
}
|
|
5987
5995
|
|
|
5988
5996
|
get favorites() {
|
|
5989
|
-
return this.$$.ctx[
|
|
5997
|
+
return this.$$.ctx[15];
|
|
5990
5998
|
}
|
|
5991
5999
|
|
|
5992
6000
|
set favorites(favorites) {
|