@everymatrix/casino-tournaments-controller 0.0.160 → 0.0.164
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.
|
@@ -5387,7 +5387,7 @@
|
|
|
5387
5387
|
class CasinoTournamentsFilterController extends SvelteElement {
|
|
5388
5388
|
constructor(options) {
|
|
5389
5389
|
super();
|
|
5390
|
-
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}ul{display:flex;gap:10px}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;font-family:"Helvetica Neue", "Helvetica", sans-serif;letter-spacing:0px;color:#FFFFFF;opacity:1}li.MobileClass{position:absolute;left:
|
|
5390
|
+
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}ul{display:flex;gap:10px}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;font-family:"Helvetica Neue", "Helvetica", sans-serif;letter-spacing:0px;color:#FFFFFF;opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:#00000029;justify-content:center;padding:10px;height:40px;border:1px solid #fff;min-width:40px;text-align:center;color:#fff}button.MobileClass{height:30px}button:hover{background-color:#c3c3c3;border:1px solid #c3c3c3;color:#000;cursor:pointer}.FiltersController{background:#000;color:#fff;display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-family:"Helvetica Neue", "Helvetica", sans-serif;font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:#58586B;border:1px solid #58586B}.FiltersController .Active:hover{background-color:#58586B;border:1px solid #58586B}</style>`;
|
|
5391
5391
|
|
|
5392
5392
|
init(
|
|
5393
5393
|
this,
|
|
@@ -16499,26 +16499,28 @@
|
|
|
16499
16499
|
const { Object: Object_1, console: console_1 } = globals;
|
|
16500
16500
|
const file = "src/CasinoTournamentsController.svelte";
|
|
16501
16501
|
|
|
16502
|
-
// (
|
|
16502
|
+
// (175:0) {:else}
|
|
16503
16503
|
function create_else_block(ctx) {
|
|
16504
|
+
let div3;
|
|
16504
16505
|
let div2;
|
|
16505
16506
|
let div0;
|
|
16506
16507
|
let t0;
|
|
16507
16508
|
let div1;
|
|
16508
16509
|
let t1;
|
|
16509
|
-
let if_block0 = /*filtersLoaded*/ ctx[
|
|
16510
|
+
let if_block0 = /*filtersLoaded*/ ctx[15] && create_if_block_4(ctx);
|
|
16510
16511
|
|
|
16511
16512
|
function select_block_type_1(ctx, dirty) {
|
|
16512
|
-
if (/*tournamentsNumber*/ ctx[
|
|
16513
|
+
if (/*tournamentsNumber*/ ctx[16] == 0) return create_if_block_2;
|
|
16513
16514
|
return create_else_block_2;
|
|
16514
16515
|
}
|
|
16515
16516
|
|
|
16516
16517
|
let current_block_type = select_block_type_1(ctx);
|
|
16517
16518
|
let if_block1 = current_block_type(ctx);
|
|
16518
|
-
let if_block2 = !/*allTournamentsShown*/ ctx[
|
|
16519
|
+
let if_block2 = !/*allTournamentsShown*/ ctx[17] && create_if_block_1(ctx);
|
|
16519
16520
|
|
|
16520
16521
|
const block = {
|
|
16521
16522
|
c: function create() {
|
|
16523
|
+
div3 = element("div");
|
|
16522
16524
|
div2 = element("div");
|
|
16523
16525
|
div0 = element("div");
|
|
16524
16526
|
if (if_block0) if_block0.c();
|
|
@@ -16528,14 +16530,18 @@
|
|
|
16528
16530
|
t1 = space();
|
|
16529
16531
|
if (if_block2) if_block2.c();
|
|
16530
16532
|
attr_dev(div0, "class", "FirstRow");
|
|
16531
|
-
add_location(div0, file,
|
|
16533
|
+
add_location(div0, file, 177, 6, 5988);
|
|
16532
16534
|
attr_dev(div1, "class", "SecondRow");
|
|
16533
|
-
add_location(div1, file,
|
|
16535
|
+
add_location(div1, file, 185, 6, 6254);
|
|
16534
16536
|
attr_dev(div2, "class", "Tournaments");
|
|
16535
|
-
|
|
16537
|
+
set_style(div2, "max-width", /*containermaxwidth*/ ctx[11] + "px");
|
|
16538
|
+
add_location(div2, file, 176, 4, 5914);
|
|
16539
|
+
attr_dev(div3, "class", "TournamentsWrapper");
|
|
16540
|
+
add_location(div3, file, 175, 2, 5877);
|
|
16536
16541
|
},
|
|
16537
16542
|
m: function mount(target, anchor) {
|
|
16538
|
-
insert_dev(target,
|
|
16543
|
+
insert_dev(target, div3, anchor);
|
|
16544
|
+
append_dev(div3, div2);
|
|
16539
16545
|
append_dev(div2, div0);
|
|
16540
16546
|
if (if_block0) if_block0.m(div0, null);
|
|
16541
16547
|
append_dev(div2, t0);
|
|
@@ -16545,7 +16551,7 @@
|
|
|
16545
16551
|
if (if_block2) if_block2.m(div2, null);
|
|
16546
16552
|
},
|
|
16547
16553
|
p: function update(ctx, dirty) {
|
|
16548
|
-
if (/*filtersLoaded*/ ctx[
|
|
16554
|
+
if (/*filtersLoaded*/ ctx[15]) {
|
|
16549
16555
|
if (if_block0) {
|
|
16550
16556
|
if_block0.p(ctx, dirty);
|
|
16551
16557
|
} else {
|
|
@@ -16570,7 +16576,7 @@
|
|
|
16570
16576
|
}
|
|
16571
16577
|
}
|
|
16572
16578
|
|
|
16573
|
-
if (!/*allTournamentsShown*/ ctx[
|
|
16579
|
+
if (!/*allTournamentsShown*/ ctx[17]) {
|
|
16574
16580
|
if (if_block2) {
|
|
16575
16581
|
if_block2.p(ctx, dirty);
|
|
16576
16582
|
} else {
|
|
@@ -16582,9 +16588,13 @@
|
|
|
16582
16588
|
if_block2.d(1);
|
|
16583
16589
|
if_block2 = null;
|
|
16584
16590
|
}
|
|
16591
|
+
|
|
16592
|
+
if (dirty[0] & /*containermaxwidth*/ 2048) {
|
|
16593
|
+
set_style(div2, "max-width", /*containermaxwidth*/ ctx[11] + "px");
|
|
16594
|
+
}
|
|
16585
16595
|
},
|
|
16586
16596
|
d: function destroy(detaching) {
|
|
16587
|
-
if (detaching) detach_dev(
|
|
16597
|
+
if (detaching) detach_dev(div3);
|
|
16588
16598
|
if (if_block0) if_block0.d();
|
|
16589
16599
|
if_block1.d();
|
|
16590
16600
|
if (if_block2) if_block2.d();
|
|
@@ -16595,17 +16605,17 @@
|
|
|
16595
16605
|
block,
|
|
16596
16606
|
id: create_else_block.name,
|
|
16597
16607
|
type: "else",
|
|
16598
|
-
source: "(
|
|
16608
|
+
source: "(175:0) {:else}",
|
|
16599
16609
|
ctx
|
|
16600
16610
|
});
|
|
16601
16611
|
|
|
16602
16612
|
return block;
|
|
16603
16613
|
}
|
|
16604
16614
|
|
|
16605
|
-
// (
|
|
16615
|
+
// (172:0) {#if hasErrors}
|
|
16606
16616
|
function create_if_block(ctx) {
|
|
16607
16617
|
let p0;
|
|
16608
|
-
let t0_value = /*$_*/ ctx[
|
|
16618
|
+
let t0_value = /*$_*/ ctx[18]("tournamentsController.500") + "";
|
|
16609
16619
|
let t0;
|
|
16610
16620
|
let t1;
|
|
16611
16621
|
let p1;
|
|
@@ -16617,9 +16627,9 @@
|
|
|
16617
16627
|
t0 = text(t0_value);
|
|
16618
16628
|
t1 = space();
|
|
16619
16629
|
p1 = element("p");
|
|
16620
|
-
t2 = text(/*error*/ ctx[
|
|
16621
|
-
add_location(p0, file,
|
|
16622
|
-
add_location(p1, file,
|
|
16630
|
+
t2 = text(/*error*/ ctx[13]);
|
|
16631
|
+
add_location(p0, file, 172, 2, 5809);
|
|
16632
|
+
add_location(p1, file, 173, 2, 5852);
|
|
16623
16633
|
},
|
|
16624
16634
|
m: function mount(target, anchor) {
|
|
16625
16635
|
insert_dev(target, p0, anchor);
|
|
@@ -16629,8 +16639,8 @@
|
|
|
16629
16639
|
append_dev(p1, t2);
|
|
16630
16640
|
},
|
|
16631
16641
|
p: function update(ctx, dirty) {
|
|
16632
|
-
if (dirty[0] & /*$_*/
|
|
16633
|
-
if (dirty[0] & /*error*/
|
|
16642
|
+
if (dirty[0] & /*$_*/ 262144 && t0_value !== (t0_value = /*$_*/ ctx[18]("tournamentsController.500") + "")) set_data_dev(t0, t0_value);
|
|
16643
|
+
if (dirty[0] & /*error*/ 8192) set_data_dev(t2, /*error*/ ctx[13]);
|
|
16634
16644
|
},
|
|
16635
16645
|
d: function destroy(detaching) {
|
|
16636
16646
|
if (detaching) detach_dev(p0);
|
|
@@ -16643,23 +16653,23 @@
|
|
|
16643
16653
|
block,
|
|
16644
16654
|
id: create_if_block.name,
|
|
16645
16655
|
type: "if",
|
|
16646
|
-
source: "(
|
|
16656
|
+
source: "(172:0) {#if hasErrors}",
|
|
16647
16657
|
ctx
|
|
16648
16658
|
});
|
|
16649
16659
|
|
|
16650
16660
|
return block;
|
|
16651
16661
|
}
|
|
16652
16662
|
|
|
16653
|
-
// (
|
|
16663
|
+
// (179:8) {#if filtersLoaded}
|
|
16654
16664
|
function create_if_block_4(ctx) {
|
|
16655
16665
|
let casino_tournaments_filter_controller;
|
|
16656
16666
|
|
|
16657
16667
|
const block = {
|
|
16658
16668
|
c: function create() {
|
|
16659
16669
|
casino_tournaments_filter_controller = element("casino-tournaments-filter-controller");
|
|
16660
|
-
set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[
|
|
16670
|
+
set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[19]);
|
|
16661
16671
|
set_custom_element_data(casino_tournaments_filter_controller, "activefilters", /*filters*/ ctx[5]);
|
|
16662
|
-
add_location(casino_tournaments_filter_controller, file,
|
|
16672
|
+
add_location(casino_tournaments_filter_controller, file, 179, 10, 6049);
|
|
16663
16673
|
},
|
|
16664
16674
|
m: function mount(target, anchor) {
|
|
16665
16675
|
insert_dev(target, casino_tournaments_filter_controller, anchor);
|
|
@@ -16678,14 +16688,14 @@
|
|
|
16678
16688
|
block,
|
|
16679
16689
|
id: create_if_block_4.name,
|
|
16680
16690
|
type: "if",
|
|
16681
|
-
source: "(
|
|
16691
|
+
source: "(179:8) {#if filtersLoaded}",
|
|
16682
16692
|
ctx
|
|
16683
16693
|
});
|
|
16684
16694
|
|
|
16685
16695
|
return block;
|
|
16686
16696
|
}
|
|
16687
16697
|
|
|
16688
|
-
// (
|
|
16698
|
+
// (193:8) {:else}
|
|
16689
16699
|
function create_else_block_2(ctx) {
|
|
16690
16700
|
let casino_tournaments_list_controller;
|
|
16691
16701
|
|
|
@@ -16702,7 +16712,7 @@
|
|
|
16702
16712
|
set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[7]);
|
|
16703
16713
|
set_custom_element_data(casino_tournaments_list_controller, "lang", /*lang*/ ctx[3]);
|
|
16704
16714
|
set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[10]);
|
|
16705
|
-
add_location(casino_tournaments_list_controller, file,
|
|
16715
|
+
add_location(casino_tournaments_list_controller, file, 193, 10, 6485);
|
|
16706
16716
|
},
|
|
16707
16717
|
m: function mount(target, anchor) {
|
|
16708
16718
|
insert_dev(target, casino_tournaments_list_controller, anchor);
|
|
@@ -16757,19 +16767,19 @@
|
|
|
16757
16767
|
block,
|
|
16758
16768
|
id: create_else_block_2.name,
|
|
16759
16769
|
type: "else",
|
|
16760
|
-
source: "(
|
|
16770
|
+
source: "(193:8) {:else}",
|
|
16761
16771
|
ctx
|
|
16762
16772
|
});
|
|
16763
16773
|
|
|
16764
16774
|
return block;
|
|
16765
16775
|
}
|
|
16766
16776
|
|
|
16767
|
-
// (
|
|
16777
|
+
// (187:8) {#if tournamentsNumber == 0}
|
|
16768
16778
|
function create_if_block_2(ctx) {
|
|
16769
16779
|
let if_block_anchor;
|
|
16770
16780
|
|
|
16771
16781
|
function select_block_type_2(ctx, dirty) {
|
|
16772
|
-
if (/*isLoading*/ ctx[
|
|
16782
|
+
if (/*isLoading*/ ctx[14]) return create_if_block_3;
|
|
16773
16783
|
return create_else_block_1;
|
|
16774
16784
|
}
|
|
16775
16785
|
|
|
@@ -16806,14 +16816,14 @@
|
|
|
16806
16816
|
block,
|
|
16807
16817
|
id: create_if_block_2.name,
|
|
16808
16818
|
type: "if",
|
|
16809
|
-
source: "(
|
|
16819
|
+
source: "(187:8) {#if tournamentsNumber == 0}",
|
|
16810
16820
|
ctx
|
|
16811
16821
|
});
|
|
16812
16822
|
|
|
16813
16823
|
return block;
|
|
16814
16824
|
}
|
|
16815
16825
|
|
|
16816
|
-
// (
|
|
16826
|
+
// (190:10) {:else}
|
|
16817
16827
|
function create_else_block_1(ctx) {
|
|
16818
16828
|
let p;
|
|
16819
16829
|
|
|
@@ -16821,7 +16831,7 @@
|
|
|
16821
16831
|
c: function create() {
|
|
16822
16832
|
p = element("p");
|
|
16823
16833
|
p.textContent = "No tournaments found";
|
|
16824
|
-
add_location(p, file,
|
|
16834
|
+
add_location(p, file, 190, 12, 6415);
|
|
16825
16835
|
},
|
|
16826
16836
|
m: function mount(target, anchor) {
|
|
16827
16837
|
insert_dev(target, p, anchor);
|
|
@@ -16835,14 +16845,14 @@
|
|
|
16835
16845
|
block,
|
|
16836
16846
|
id: create_else_block_1.name,
|
|
16837
16847
|
type: "else",
|
|
16838
|
-
source: "(
|
|
16848
|
+
source: "(190:10) {:else}",
|
|
16839
16849
|
ctx
|
|
16840
16850
|
});
|
|
16841
16851
|
|
|
16842
16852
|
return block;
|
|
16843
16853
|
}
|
|
16844
16854
|
|
|
16845
|
-
// (
|
|
16855
|
+
// (188:10) {#if isLoading}
|
|
16846
16856
|
function create_if_block_3(ctx) {
|
|
16847
16857
|
let p;
|
|
16848
16858
|
|
|
@@ -16850,7 +16860,7 @@
|
|
|
16850
16860
|
c: function create() {
|
|
16851
16861
|
p = element("p");
|
|
16852
16862
|
p.textContent = "Loading, please wait ...";
|
|
16853
|
-
add_location(p, file,
|
|
16863
|
+
add_location(p, file, 188, 12, 6353);
|
|
16854
16864
|
},
|
|
16855
16865
|
m: function mount(target, anchor) {
|
|
16856
16866
|
insert_dev(target, p, anchor);
|
|
@@ -16864,19 +16874,19 @@
|
|
|
16864
16874
|
block,
|
|
16865
16875
|
id: create_if_block_3.name,
|
|
16866
16876
|
type: "if",
|
|
16867
|
-
source: "(
|
|
16877
|
+
source: "(188:10) {#if isLoading}",
|
|
16868
16878
|
ctx
|
|
16869
16879
|
});
|
|
16870
16880
|
|
|
16871
16881
|
return block;
|
|
16872
16882
|
}
|
|
16873
16883
|
|
|
16874
|
-
// (
|
|
16884
|
+
// (208:6) {#if !allTournamentsShown}
|
|
16875
16885
|
function create_if_block_1(ctx) {
|
|
16876
16886
|
let div1;
|
|
16877
16887
|
let div0;
|
|
16878
16888
|
let button;
|
|
16879
|
-
let t_value = /*$_*/ ctx[
|
|
16889
|
+
let t_value = /*$_*/ ctx[18]("tournamentsController.showMore") + "";
|
|
16880
16890
|
let t;
|
|
16881
16891
|
let mounted;
|
|
16882
16892
|
let dispose;
|
|
@@ -16889,11 +16899,11 @@
|
|
|
16889
16899
|
t = text(t_value);
|
|
16890
16900
|
attr_dev(button, "class", "ShowMoreButton");
|
|
16891
16901
|
attr_dev(button, "title", "Show More");
|
|
16892
|
-
add_location(button, file,
|
|
16902
|
+
add_location(button, file, 210, 12, 7104);
|
|
16893
16903
|
attr_dev(div0, "class", "CenterButton");
|
|
16894
|
-
add_location(div0, file,
|
|
16904
|
+
add_location(div0, file, 209, 10, 7065);
|
|
16895
16905
|
attr_dev(div1, "class", "ThirdRow");
|
|
16896
|
-
add_location(div1, file,
|
|
16906
|
+
add_location(div1, file, 208, 8, 7032);
|
|
16897
16907
|
},
|
|
16898
16908
|
m: function mount(target, anchor) {
|
|
16899
16909
|
insert_dev(target, div1, anchor);
|
|
@@ -16902,12 +16912,12 @@
|
|
|
16902
16912
|
append_dev(button, t);
|
|
16903
16913
|
|
|
16904
16914
|
if (!mounted) {
|
|
16905
|
-
dispose = listen_dev(button, "click", /*click_handler*/ ctx[
|
|
16915
|
+
dispose = listen_dev(button, "click", /*click_handler*/ ctx[23], false, false, false);
|
|
16906
16916
|
mounted = true;
|
|
16907
16917
|
}
|
|
16908
16918
|
},
|
|
16909
16919
|
p: function update(ctx, dirty) {
|
|
16910
|
-
if (dirty[0] & /*$_*/
|
|
16920
|
+
if (dirty[0] & /*$_*/ 262144 && t_value !== (t_value = /*$_*/ ctx[18]("tournamentsController.showMore") + "")) set_data_dev(t, t_value);
|
|
16911
16921
|
},
|
|
16912
16922
|
d: function destroy(detaching) {
|
|
16913
16923
|
if (detaching) detach_dev(div1);
|
|
@@ -16920,7 +16930,7 @@
|
|
|
16920
16930
|
block,
|
|
16921
16931
|
id: create_if_block_1.name,
|
|
16922
16932
|
type: "if",
|
|
16923
|
-
source: "(
|
|
16933
|
+
source: "(208:6) {#if !allTournamentsShown}",
|
|
16924
16934
|
ctx
|
|
16925
16935
|
});
|
|
16926
16936
|
|
|
@@ -16931,7 +16941,7 @@
|
|
|
16931
16941
|
let if_block_anchor;
|
|
16932
16942
|
|
|
16933
16943
|
function select_block_type(ctx, dirty) {
|
|
16934
|
-
if (/*hasErrors*/ ctx[
|
|
16944
|
+
if (/*hasErrors*/ ctx[12]) return create_if_block;
|
|
16935
16945
|
return create_else_block;
|
|
16936
16946
|
}
|
|
16937
16947
|
|
|
@@ -16988,7 +16998,7 @@
|
|
|
16988
16998
|
function instance($$self, $$props, $$invalidate) {
|
|
16989
16999
|
let $_;
|
|
16990
17000
|
validate_store(X, "_");
|
|
16991
|
-
component_subscribe($$self, X, $$value => $$invalidate(
|
|
17001
|
+
component_subscribe($$self, X, $$value => $$invalidate(18, $_ = $$value));
|
|
16992
17002
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
16993
17003
|
validate_slots("undefined", slots, []);
|
|
16994
17004
|
let { session = "" } = $$props;
|
|
@@ -17004,6 +17014,7 @@
|
|
|
17004
17014
|
let { loginurl = "" } = $$props;
|
|
17005
17015
|
let { registerurl = "" } = $$props;
|
|
17006
17016
|
let { currency = "EUR" } = $$props;
|
|
17017
|
+
let { containermaxwidth = "" } = $$props;
|
|
17007
17018
|
|
|
17008
17019
|
// Variables of topics for communication
|
|
17009
17020
|
let hasErrors = false;
|
|
@@ -17059,8 +17070,8 @@
|
|
|
17059
17070
|
};
|
|
17060
17071
|
|
|
17061
17072
|
const getData = (url, offset, limit) => {
|
|
17062
|
-
$$invalidate(
|
|
17063
|
-
$$invalidate(
|
|
17073
|
+
$$invalidate(14, isLoading = true);
|
|
17074
|
+
$$invalidate(16, tournamentsNumber = 0);
|
|
17064
17075
|
let tournamentsUrl = new URL(`${url}/tournaments`);
|
|
17065
17076
|
let reqHeaders = new Headers();
|
|
17066
17077
|
tournamentsUrl.searchParams.append("pagination", `offset=${offset},limit=${limit}`);
|
|
@@ -17089,16 +17100,16 @@
|
|
|
17089
17100
|
};
|
|
17090
17101
|
|
|
17091
17102
|
fetch(tournamentsUrl, requestOptions).then(res => res.json()).then(res => {
|
|
17092
|
-
$$invalidate(
|
|
17103
|
+
$$invalidate(16, tournamentsNumber = 0);
|
|
17093
17104
|
|
|
17094
17105
|
setTimeout(
|
|
17095
17106
|
() => {
|
|
17096
|
-
$$invalidate(
|
|
17107
|
+
$$invalidate(16, tournamentsNumber = res.total);
|
|
17097
17108
|
|
|
17098
17109
|
if (tournamentsShownNumber >= tournamentsNumber) {
|
|
17099
|
-
$$invalidate(
|
|
17110
|
+
$$invalidate(17, allTournamentsShown = true);
|
|
17100
17111
|
} else {
|
|
17101
|
-
$$invalidate(
|
|
17112
|
+
$$invalidate(17, allTournamentsShown = false);
|
|
17102
17113
|
}
|
|
17103
17114
|
|
|
17104
17115
|
window.postMessage(
|
|
@@ -17109,7 +17120,7 @@
|
|
|
17109
17120
|
window.location.href
|
|
17110
17121
|
);
|
|
17111
17122
|
|
|
17112
|
-
$$invalidate(
|
|
17123
|
+
$$invalidate(14, isLoading = false);
|
|
17113
17124
|
},
|
|
17114
17125
|
50
|
|
17115
17126
|
);
|
|
@@ -17131,20 +17142,20 @@
|
|
|
17131
17142
|
getData(endpoint, 0, tournamentsShownNumber);
|
|
17132
17143
|
|
|
17133
17144
|
if (tournamentsShownNumber >= tournamentsNumber) {
|
|
17134
|
-
$$invalidate(
|
|
17145
|
+
$$invalidate(17, allTournamentsShown = true);
|
|
17135
17146
|
}
|
|
17136
17147
|
};
|
|
17137
17148
|
|
|
17138
17149
|
const checkAttrs = () => {
|
|
17139
17150
|
if (!endpoint) {
|
|
17140
|
-
$$invalidate(
|
|
17141
|
-
$$invalidate(
|
|
17151
|
+
$$invalidate(13, error = "Endpoint is missing! Please provide a valid endpointURL.");
|
|
17152
|
+
$$invalidate(12, hasErrors = true);
|
|
17142
17153
|
console.error(error);
|
|
17143
17154
|
}
|
|
17144
17155
|
|
|
17145
17156
|
if (!lang || lang.length != 2) {
|
|
17146
|
-
$$invalidate(
|
|
17147
|
-
$$invalidate(
|
|
17157
|
+
$$invalidate(13, error = "Language is missing! Please provide a valid language (alpha2code)");
|
|
17158
|
+
$$invalidate(12, hasErrors = true);
|
|
17148
17159
|
console.error(error);
|
|
17149
17160
|
}
|
|
17150
17161
|
|
|
@@ -17161,13 +17172,13 @@
|
|
|
17161
17172
|
|
|
17162
17173
|
const setActiveFilters = () => {
|
|
17163
17174
|
activeFilters = filters.split(",");
|
|
17164
|
-
$$invalidate(
|
|
17175
|
+
$$invalidate(15, filtersLoaded = true);
|
|
17165
17176
|
};
|
|
17166
17177
|
|
|
17167
17178
|
const setSession = () => {
|
|
17168
17179
|
if (session.length > 0 && session != "false") {
|
|
17169
17180
|
isLoggedIn = true;
|
|
17170
|
-
$$invalidate(
|
|
17181
|
+
$$invalidate(14, isLoading = true);
|
|
17171
17182
|
sessionID = session;
|
|
17172
17183
|
} else {
|
|
17173
17184
|
isLoggedIn = false;
|
|
@@ -17200,7 +17211,8 @@
|
|
|
17200
17211
|
"registerevent",
|
|
17201
17212
|
"loginurl",
|
|
17202
17213
|
"registerurl",
|
|
17203
|
-
"currency"
|
|
17214
|
+
"currency",
|
|
17215
|
+
"containermaxwidth"
|
|
17204
17216
|
];
|
|
17205
17217
|
|
|
17206
17218
|
Object_1.keys($$props).forEach(key => {
|
|
@@ -17215,14 +17227,15 @@
|
|
|
17215
17227
|
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
17216
17228
|
if ("lang" in $$props) $$invalidate(3, lang = $$props.lang);
|
|
17217
17229
|
if ("numberoftournaments" in $$props) $$invalidate(4, numberoftournaments = $$props.numberoftournaments);
|
|
17218
|
-
if ("showmorestep" in $$props) $$invalidate(
|
|
17219
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
17230
|
+
if ("showmorestep" in $$props) $$invalidate(21, showmorestep = $$props.showmorestep);
|
|
17231
|
+
if ("cmsendpoint" in $$props) $$invalidate(22, cmsendpoint = $$props.cmsendpoint);
|
|
17220
17232
|
if ("filters" in $$props) $$invalidate(5, filters = $$props.filters);
|
|
17221
17233
|
if ("loginevent" in $$props) $$invalidate(6, loginevent = $$props.loginevent);
|
|
17222
17234
|
if ("registerevent" in $$props) $$invalidate(7, registerevent = $$props.registerevent);
|
|
17223
17235
|
if ("loginurl" in $$props) $$invalidate(8, loginurl = $$props.loginurl);
|
|
17224
17236
|
if ("registerurl" in $$props) $$invalidate(9, registerurl = $$props.registerurl);
|
|
17225
17237
|
if ("currency" in $$props) $$invalidate(10, currency = $$props.currency);
|
|
17238
|
+
if ("containermaxwidth" in $$props) $$invalidate(11, containermaxwidth = $$props.containermaxwidth);
|
|
17226
17239
|
};
|
|
17227
17240
|
|
|
17228
17241
|
$$self.$capture_state = () => ({
|
|
@@ -17246,6 +17259,7 @@
|
|
|
17246
17259
|
loginurl,
|
|
17247
17260
|
registerurl,
|
|
17248
17261
|
currency,
|
|
17262
|
+
containermaxwidth,
|
|
17249
17263
|
sortByStatus,
|
|
17250
17264
|
hasErrors,
|
|
17251
17265
|
error,
|
|
@@ -17279,26 +17293,27 @@
|
|
|
17279
17293
|
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
17280
17294
|
if ("lang" in $$props) $$invalidate(3, lang = $$props.lang);
|
|
17281
17295
|
if ("numberoftournaments" in $$props) $$invalidate(4, numberoftournaments = $$props.numberoftournaments);
|
|
17282
|
-
if ("showmorestep" in $$props) $$invalidate(
|
|
17283
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
17296
|
+
if ("showmorestep" in $$props) $$invalidate(21, showmorestep = $$props.showmorestep);
|
|
17297
|
+
if ("cmsendpoint" in $$props) $$invalidate(22, cmsendpoint = $$props.cmsendpoint);
|
|
17284
17298
|
if ("filters" in $$props) $$invalidate(5, filters = $$props.filters);
|
|
17285
17299
|
if ("loginevent" in $$props) $$invalidate(6, loginevent = $$props.loginevent);
|
|
17286
17300
|
if ("registerevent" in $$props) $$invalidate(7, registerevent = $$props.registerevent);
|
|
17287
17301
|
if ("loginurl" in $$props) $$invalidate(8, loginurl = $$props.loginurl);
|
|
17288
17302
|
if ("registerurl" in $$props) $$invalidate(9, registerurl = $$props.registerurl);
|
|
17289
17303
|
if ("currency" in $$props) $$invalidate(10, currency = $$props.currency);
|
|
17290
|
-
if ("
|
|
17291
|
-
if ("
|
|
17304
|
+
if ("containermaxwidth" in $$props) $$invalidate(11, containermaxwidth = $$props.containermaxwidth);
|
|
17305
|
+
if ("hasErrors" in $$props) $$invalidate(12, hasErrors = $$props.hasErrors);
|
|
17306
|
+
if ("error" in $$props) $$invalidate(13, error = $$props.error);
|
|
17292
17307
|
if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
|
|
17293
17308
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
17294
17309
|
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
17295
17310
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
17296
|
-
if ("isLoading" in $$props) $$invalidate(
|
|
17297
|
-
if ("filtersLoaded" in $$props) $$invalidate(
|
|
17298
|
-
if ("filtersArray" in $$props) $$invalidate(
|
|
17299
|
-
if ("tournamentsNumber" in $$props) $$invalidate(
|
|
17311
|
+
if ("isLoading" in $$props) $$invalidate(14, isLoading = $$props.isLoading);
|
|
17312
|
+
if ("filtersLoaded" in $$props) $$invalidate(15, filtersLoaded = $$props.filtersLoaded);
|
|
17313
|
+
if ("filtersArray" in $$props) $$invalidate(19, filtersArray = $$props.filtersArray);
|
|
17314
|
+
if ("tournamentsNumber" in $$props) $$invalidate(16, tournamentsNumber = $$props.tournamentsNumber);
|
|
17300
17315
|
if ("tournamentsShownNumber" in $$props) tournamentsShownNumber = $$props.tournamentsShownNumber;
|
|
17301
|
-
if ("allTournamentsShown" in $$props) $$invalidate(
|
|
17316
|
+
if ("allTournamentsShown" in $$props) $$invalidate(17, allTournamentsShown = $$props.allTournamentsShown);
|
|
17302
17317
|
if ("activeFilters" in $$props) activeFilters = $$props.activeFilters;
|
|
17303
17318
|
if ("lastMonthDate" in $$props) lastMonthDate = $$props.lastMonthDate;
|
|
17304
17319
|
};
|
|
@@ -17320,11 +17335,11 @@
|
|
|
17320
17335
|
filters && setActiveFilters();
|
|
17321
17336
|
}
|
|
17322
17337
|
|
|
17323
|
-
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/
|
|
17338
|
+
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/ 2097180) {
|
|
17324
17339
|
endpoint && numberoftournaments && showmorestep && lang && initialLoad();
|
|
17325
17340
|
}
|
|
17326
17341
|
|
|
17327
|
-
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/
|
|
17342
|
+
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/ 2097181) {
|
|
17328
17343
|
endpoint && numberoftournaments && showmorestep && lang && session && initialLoad();
|
|
17329
17344
|
}
|
|
17330
17345
|
};
|
|
@@ -17341,6 +17356,7 @@
|
|
|
17341
17356
|
loginurl,
|
|
17342
17357
|
registerurl,
|
|
17343
17358
|
currency,
|
|
17359
|
+
containermaxwidth,
|
|
17344
17360
|
hasErrors,
|
|
17345
17361
|
error,
|
|
17346
17362
|
isLoading,
|
|
@@ -17359,7 +17375,7 @@
|
|
|
17359
17375
|
class CasinoTournamentsController extends SvelteElement {
|
|
17360
17376
|
constructor(options) {
|
|
17361
17377
|
super();
|
|
17362
|
-
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.ShowMoreButton{background:#0a0c19;font-size:18px;width:280px;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.
|
|
17378
|
+
this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.ShowMoreButton{background:#0a0c19;font-size:18px;width:280px;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:#00020f}.Tournaments{color:#ffffff;display:flex;flex-direction:column;position:relative;margin:0 auto;padding:0 10px}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}</style>`;
|
|
17363
17379
|
|
|
17364
17380
|
init(
|
|
17365
17381
|
this,
|
|
@@ -17377,14 +17393,15 @@
|
|
|
17377
17393
|
endpoint: 2,
|
|
17378
17394
|
lang: 3,
|
|
17379
17395
|
numberoftournaments: 4,
|
|
17380
|
-
showmorestep:
|
|
17381
|
-
cmsendpoint:
|
|
17396
|
+
showmorestep: 21,
|
|
17397
|
+
cmsendpoint: 22,
|
|
17382
17398
|
filters: 5,
|
|
17383
17399
|
loginevent: 6,
|
|
17384
17400
|
registerevent: 7,
|
|
17385
17401
|
loginurl: 8,
|
|
17386
17402
|
registerurl: 9,
|
|
17387
|
-
currency: 10
|
|
17403
|
+
currency: 10,
|
|
17404
|
+
containermaxwidth: 11
|
|
17388
17405
|
},
|
|
17389
17406
|
[-1, -1]
|
|
17390
17407
|
);
|
|
@@ -17415,7 +17432,8 @@
|
|
|
17415
17432
|
"registerevent",
|
|
17416
17433
|
"loginurl",
|
|
17417
17434
|
"registerurl",
|
|
17418
|
-
"currency"
|
|
17435
|
+
"currency",
|
|
17436
|
+
"containermaxwidth"
|
|
17419
17437
|
];
|
|
17420
17438
|
}
|
|
17421
17439
|
|
|
@@ -17465,7 +17483,7 @@
|
|
|
17465
17483
|
}
|
|
17466
17484
|
|
|
17467
17485
|
get showmorestep() {
|
|
17468
|
-
return this.$$.ctx[
|
|
17486
|
+
return this.$$.ctx[21];
|
|
17469
17487
|
}
|
|
17470
17488
|
|
|
17471
17489
|
set showmorestep(showmorestep) {
|
|
@@ -17474,7 +17492,7 @@
|
|
|
17474
17492
|
}
|
|
17475
17493
|
|
|
17476
17494
|
get cmsendpoint() {
|
|
17477
|
-
return this.$$.ctx[
|
|
17495
|
+
return this.$$.ctx[22];
|
|
17478
17496
|
}
|
|
17479
17497
|
|
|
17480
17498
|
set cmsendpoint(cmsendpoint) {
|
|
@@ -17535,6 +17553,15 @@
|
|
|
17535
17553
|
this.$set({ currency });
|
|
17536
17554
|
flush();
|
|
17537
17555
|
}
|
|
17556
|
+
|
|
17557
|
+
get containermaxwidth() {
|
|
17558
|
+
return this.$$.ctx[11];
|
|
17559
|
+
}
|
|
17560
|
+
|
|
17561
|
+
set containermaxwidth(containermaxwidth) {
|
|
17562
|
+
this.$set({ containermaxwidth });
|
|
17563
|
+
flush();
|
|
17564
|
+
}
|
|
17538
17565
|
}
|
|
17539
17566
|
|
|
17540
17567
|
!customElements.get('casino-tournaments-controller') && customElements.define('casino-tournaments-controller', CasinoTournamentsController);
|