@everymatrix/casino-tournaments-controller 0.0.162 → 0.0.166
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.
|
@@ -4635,7 +4635,9 @@
|
|
|
4635
4635
|
showMore: 'Show more',
|
|
4636
4636
|
Scheduled: 'Scheduled',
|
|
4637
4637
|
Ongoing: 'OnGoing',
|
|
4638
|
-
Finished: 'Finished'
|
|
4638
|
+
Finished: 'Finished',
|
|
4639
|
+
loading: 'Loading, please wait ...',
|
|
4640
|
+
noTournaments: 'No tournaments found'
|
|
4639
4641
|
}
|
|
4640
4642
|
},
|
|
4641
4643
|
tr: {
|
|
@@ -4644,7 +4646,9 @@
|
|
|
4644
4646
|
showMore: 'Daha fazla',
|
|
4645
4647
|
Scheduled: 'Scheduledddddd',
|
|
4646
4648
|
Ongoing: 'OnGoingggggg',
|
|
4647
|
-
Finished: 'Finisheddddddd'
|
|
4649
|
+
Finished: 'Finisheddddddd',
|
|
4650
|
+
loading: 'Yükelniyor, lütfen bekleyin ...',
|
|
4651
|
+
noTournaments: 'Herhangi bir turnuva bulunamadı.'
|
|
4648
4652
|
}
|
|
4649
4653
|
},
|
|
4650
4654
|
el: {
|
|
@@ -4653,7 +4657,9 @@
|
|
|
4653
4657
|
showMore: 'Περισσότερα',
|
|
4654
4658
|
Scheduled: 'ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ',
|
|
4655
4659
|
Ongoing: 'ΤΡΕΧΟΝΤΑ',
|
|
4656
|
-
Finished: 'ΟΛΟΚΛΗΡΩΜΕΝΑ'
|
|
4660
|
+
Finished: 'ΟΛΟΚΛΗΡΩΜΕΝΑ',
|
|
4661
|
+
loading: 'Φορτώνει, παρακαλούμε περιμένετε ...',
|
|
4662
|
+
noTournaments: 'Δεν βρέθηκαν τουρνουά'
|
|
4657
4663
|
}
|
|
4658
4664
|
},
|
|
4659
4665
|
};
|
|
@@ -5387,7 +5393,7 @@
|
|
|
5387
5393
|
class CasinoTournamentsFilterController extends SvelteElement {
|
|
5388
5394
|
constructor(options) {
|
|
5389
5395
|
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:
|
|
5396
|
+
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
5397
|
|
|
5392
5398
|
init(
|
|
5393
5399
|
this,
|
|
@@ -16499,26 +16505,28 @@
|
|
|
16499
16505
|
const { Object: Object_1, console: console_1 } = globals;
|
|
16500
16506
|
const file = "src/CasinoTournamentsController.svelte";
|
|
16501
16507
|
|
|
16502
|
-
// (
|
|
16508
|
+
// (175:0) {:else}
|
|
16503
16509
|
function create_else_block(ctx) {
|
|
16510
|
+
let div3;
|
|
16504
16511
|
let div2;
|
|
16505
16512
|
let div0;
|
|
16506
16513
|
let t0;
|
|
16507
16514
|
let div1;
|
|
16508
16515
|
let t1;
|
|
16509
|
-
let if_block0 = /*filtersLoaded*/ ctx[
|
|
16516
|
+
let if_block0 = /*filtersLoaded*/ ctx[15] && create_if_block_4(ctx);
|
|
16510
16517
|
|
|
16511
16518
|
function select_block_type_1(ctx, dirty) {
|
|
16512
|
-
if (/*tournamentsNumber*/ ctx[
|
|
16519
|
+
if (/*tournamentsNumber*/ ctx[16] == 0) return create_if_block_2;
|
|
16513
16520
|
return create_else_block_2;
|
|
16514
16521
|
}
|
|
16515
16522
|
|
|
16516
16523
|
let current_block_type = select_block_type_1(ctx);
|
|
16517
16524
|
let if_block1 = current_block_type(ctx);
|
|
16518
|
-
let if_block2 = !/*allTournamentsShown*/ ctx[
|
|
16525
|
+
let if_block2 = !/*allTournamentsShown*/ ctx[17] && create_if_block_1(ctx);
|
|
16519
16526
|
|
|
16520
16527
|
const block = {
|
|
16521
16528
|
c: function create() {
|
|
16529
|
+
div3 = element("div");
|
|
16522
16530
|
div2 = element("div");
|
|
16523
16531
|
div0 = element("div");
|
|
16524
16532
|
if (if_block0) if_block0.c();
|
|
@@ -16528,14 +16536,18 @@
|
|
|
16528
16536
|
t1 = space();
|
|
16529
16537
|
if (if_block2) if_block2.c();
|
|
16530
16538
|
attr_dev(div0, "class", "FirstRow");
|
|
16531
|
-
add_location(div0, file,
|
|
16539
|
+
add_location(div0, file, 177, 6, 5988);
|
|
16532
16540
|
attr_dev(div1, "class", "SecondRow");
|
|
16533
|
-
add_location(div1, file,
|
|
16541
|
+
add_location(div1, file, 185, 6, 6254);
|
|
16534
16542
|
attr_dev(div2, "class", "Tournaments");
|
|
16535
|
-
|
|
16543
|
+
set_style(div2, "max-width", /*containermaxwidth*/ ctx[11] + "px");
|
|
16544
|
+
add_location(div2, file, 176, 4, 5914);
|
|
16545
|
+
attr_dev(div3, "class", "TournamentsWrapper");
|
|
16546
|
+
add_location(div3, file, 175, 2, 5877);
|
|
16536
16547
|
},
|
|
16537
16548
|
m: function mount(target, anchor) {
|
|
16538
|
-
insert_dev(target,
|
|
16549
|
+
insert_dev(target, div3, anchor);
|
|
16550
|
+
append_dev(div3, div2);
|
|
16539
16551
|
append_dev(div2, div0);
|
|
16540
16552
|
if (if_block0) if_block0.m(div0, null);
|
|
16541
16553
|
append_dev(div2, t0);
|
|
@@ -16545,7 +16557,7 @@
|
|
|
16545
16557
|
if (if_block2) if_block2.m(div2, null);
|
|
16546
16558
|
},
|
|
16547
16559
|
p: function update(ctx, dirty) {
|
|
16548
|
-
if (/*filtersLoaded*/ ctx[
|
|
16560
|
+
if (/*filtersLoaded*/ ctx[15]) {
|
|
16549
16561
|
if (if_block0) {
|
|
16550
16562
|
if_block0.p(ctx, dirty);
|
|
16551
16563
|
} else {
|
|
@@ -16570,7 +16582,7 @@
|
|
|
16570
16582
|
}
|
|
16571
16583
|
}
|
|
16572
16584
|
|
|
16573
|
-
if (!/*allTournamentsShown*/ ctx[
|
|
16585
|
+
if (!/*allTournamentsShown*/ ctx[17]) {
|
|
16574
16586
|
if (if_block2) {
|
|
16575
16587
|
if_block2.p(ctx, dirty);
|
|
16576
16588
|
} else {
|
|
@@ -16582,9 +16594,13 @@
|
|
|
16582
16594
|
if_block2.d(1);
|
|
16583
16595
|
if_block2 = null;
|
|
16584
16596
|
}
|
|
16597
|
+
|
|
16598
|
+
if (dirty[0] & /*containermaxwidth*/ 2048) {
|
|
16599
|
+
set_style(div2, "max-width", /*containermaxwidth*/ ctx[11] + "px");
|
|
16600
|
+
}
|
|
16585
16601
|
},
|
|
16586
16602
|
d: function destroy(detaching) {
|
|
16587
|
-
if (detaching) detach_dev(
|
|
16603
|
+
if (detaching) detach_dev(div3);
|
|
16588
16604
|
if (if_block0) if_block0.d();
|
|
16589
16605
|
if_block1.d();
|
|
16590
16606
|
if (if_block2) if_block2.d();
|
|
@@ -16595,17 +16611,17 @@
|
|
|
16595
16611
|
block,
|
|
16596
16612
|
id: create_else_block.name,
|
|
16597
16613
|
type: "else",
|
|
16598
|
-
source: "(
|
|
16614
|
+
source: "(175:0) {:else}",
|
|
16599
16615
|
ctx
|
|
16600
16616
|
});
|
|
16601
16617
|
|
|
16602
16618
|
return block;
|
|
16603
16619
|
}
|
|
16604
16620
|
|
|
16605
|
-
// (
|
|
16621
|
+
// (172:0) {#if hasErrors}
|
|
16606
16622
|
function create_if_block(ctx) {
|
|
16607
16623
|
let p0;
|
|
16608
|
-
let t0_value = /*$_*/ ctx[
|
|
16624
|
+
let t0_value = /*$_*/ ctx[18]("tournamentsController.500") + "";
|
|
16609
16625
|
let t0;
|
|
16610
16626
|
let t1;
|
|
16611
16627
|
let p1;
|
|
@@ -16617,9 +16633,9 @@
|
|
|
16617
16633
|
t0 = text(t0_value);
|
|
16618
16634
|
t1 = space();
|
|
16619
16635
|
p1 = element("p");
|
|
16620
|
-
t2 = text(/*error*/ ctx[
|
|
16621
|
-
add_location(p0, file,
|
|
16622
|
-
add_location(p1, file,
|
|
16636
|
+
t2 = text(/*error*/ ctx[13]);
|
|
16637
|
+
add_location(p0, file, 172, 2, 5809);
|
|
16638
|
+
add_location(p1, file, 173, 2, 5852);
|
|
16623
16639
|
},
|
|
16624
16640
|
m: function mount(target, anchor) {
|
|
16625
16641
|
insert_dev(target, p0, anchor);
|
|
@@ -16629,8 +16645,8 @@
|
|
|
16629
16645
|
append_dev(p1, t2);
|
|
16630
16646
|
},
|
|
16631
16647
|
p: function update(ctx, dirty) {
|
|
16632
|
-
if (dirty[0] & /*$_*/
|
|
16633
|
-
if (dirty[0] & /*error*/
|
|
16648
|
+
if (dirty[0] & /*$_*/ 262144 && t0_value !== (t0_value = /*$_*/ ctx[18]("tournamentsController.500") + "")) set_data_dev(t0, t0_value);
|
|
16649
|
+
if (dirty[0] & /*error*/ 8192) set_data_dev(t2, /*error*/ ctx[13]);
|
|
16634
16650
|
},
|
|
16635
16651
|
d: function destroy(detaching) {
|
|
16636
16652
|
if (detaching) detach_dev(p0);
|
|
@@ -16643,23 +16659,23 @@
|
|
|
16643
16659
|
block,
|
|
16644
16660
|
id: create_if_block.name,
|
|
16645
16661
|
type: "if",
|
|
16646
|
-
source: "(
|
|
16662
|
+
source: "(172:0) {#if hasErrors}",
|
|
16647
16663
|
ctx
|
|
16648
16664
|
});
|
|
16649
16665
|
|
|
16650
16666
|
return block;
|
|
16651
16667
|
}
|
|
16652
16668
|
|
|
16653
|
-
// (
|
|
16669
|
+
// (179:8) {#if filtersLoaded}
|
|
16654
16670
|
function create_if_block_4(ctx) {
|
|
16655
16671
|
let casino_tournaments_filter_controller;
|
|
16656
16672
|
|
|
16657
16673
|
const block = {
|
|
16658
16674
|
c: function create() {
|
|
16659
16675
|
casino_tournaments_filter_controller = element("casino-tournaments-filter-controller");
|
|
16660
|
-
set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[
|
|
16676
|
+
set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[19]);
|
|
16661
16677
|
set_custom_element_data(casino_tournaments_filter_controller, "activefilters", /*filters*/ ctx[5]);
|
|
16662
|
-
add_location(casino_tournaments_filter_controller, file,
|
|
16678
|
+
add_location(casino_tournaments_filter_controller, file, 179, 10, 6049);
|
|
16663
16679
|
},
|
|
16664
16680
|
m: function mount(target, anchor) {
|
|
16665
16681
|
insert_dev(target, casino_tournaments_filter_controller, anchor);
|
|
@@ -16678,14 +16694,14 @@
|
|
|
16678
16694
|
block,
|
|
16679
16695
|
id: create_if_block_4.name,
|
|
16680
16696
|
type: "if",
|
|
16681
|
-
source: "(
|
|
16697
|
+
source: "(179:8) {#if filtersLoaded}",
|
|
16682
16698
|
ctx
|
|
16683
16699
|
});
|
|
16684
16700
|
|
|
16685
16701
|
return block;
|
|
16686
16702
|
}
|
|
16687
16703
|
|
|
16688
|
-
// (
|
|
16704
|
+
// (193:8) {:else}
|
|
16689
16705
|
function create_else_block_2(ctx) {
|
|
16690
16706
|
let casino_tournaments_list_controller;
|
|
16691
16707
|
|
|
@@ -16702,7 +16718,7 @@
|
|
|
16702
16718
|
set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[7]);
|
|
16703
16719
|
set_custom_element_data(casino_tournaments_list_controller, "lang", /*lang*/ ctx[3]);
|
|
16704
16720
|
set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[10]);
|
|
16705
|
-
add_location(casino_tournaments_list_controller, file,
|
|
16721
|
+
add_location(casino_tournaments_list_controller, file, 193, 10, 6498);
|
|
16706
16722
|
},
|
|
16707
16723
|
m: function mount(target, anchor) {
|
|
16708
16724
|
insert_dev(target, casino_tournaments_list_controller, anchor);
|
|
@@ -16757,19 +16773,19 @@
|
|
|
16757
16773
|
block,
|
|
16758
16774
|
id: create_else_block_2.name,
|
|
16759
16775
|
type: "else",
|
|
16760
|
-
source: "(
|
|
16776
|
+
source: "(193:8) {:else}",
|
|
16761
16777
|
ctx
|
|
16762
16778
|
});
|
|
16763
16779
|
|
|
16764
16780
|
return block;
|
|
16765
16781
|
}
|
|
16766
16782
|
|
|
16767
|
-
// (
|
|
16783
|
+
// (187:8) {#if tournamentsNumber == 0}
|
|
16768
16784
|
function create_if_block_2(ctx) {
|
|
16769
16785
|
let if_block_anchor;
|
|
16770
16786
|
|
|
16771
16787
|
function select_block_type_2(ctx, dirty) {
|
|
16772
|
-
if (/*isLoading*/ ctx[
|
|
16788
|
+
if (/*isLoading*/ ctx[14]) return create_if_block_3;
|
|
16773
16789
|
return create_else_block_1;
|
|
16774
16790
|
}
|
|
16775
16791
|
|
|
@@ -16786,7 +16802,9 @@
|
|
|
16786
16802
|
insert_dev(target, if_block_anchor, anchor);
|
|
16787
16803
|
},
|
|
16788
16804
|
p: function update(ctx, dirty) {
|
|
16789
|
-
if (current_block_type
|
|
16805
|
+
if (current_block_type === (current_block_type = select_block_type_2(ctx)) && if_block) {
|
|
16806
|
+
if_block.p(ctx, dirty);
|
|
16807
|
+
} else {
|
|
16790
16808
|
if_block.d(1);
|
|
16791
16809
|
if_block = current_block_type(ctx);
|
|
16792
16810
|
|
|
@@ -16806,14 +16824,14 @@
|
|
|
16806
16824
|
block,
|
|
16807
16825
|
id: create_if_block_2.name,
|
|
16808
16826
|
type: "if",
|
|
16809
|
-
source: "(
|
|
16827
|
+
source: "(187:8) {#if tournamentsNumber == 0}",
|
|
16810
16828
|
ctx
|
|
16811
16829
|
});
|
|
16812
16830
|
|
|
16813
16831
|
return block;
|
|
16814
16832
|
}
|
|
16815
16833
|
|
|
16816
|
-
// (
|
|
16834
|
+
// (190:10) {:else}
|
|
16817
16835
|
function create_else_block_1(ctx) {
|
|
16818
16836
|
let p;
|
|
16819
16837
|
|
|
@@ -16821,11 +16839,12 @@
|
|
|
16821
16839
|
c: function create() {
|
|
16822
16840
|
p = element("p");
|
|
16823
16841
|
p.textContent = "No tournaments found";
|
|
16824
|
-
add_location(p, file,
|
|
16842
|
+
add_location(p, file, 190, 12, 6428);
|
|
16825
16843
|
},
|
|
16826
16844
|
m: function mount(target, anchor) {
|
|
16827
16845
|
insert_dev(target, p, anchor);
|
|
16828
16846
|
},
|
|
16847
|
+
p: noop$1,
|
|
16829
16848
|
d: function destroy(detaching) {
|
|
16830
16849
|
if (detaching) detach_dev(p);
|
|
16831
16850
|
}
|
|
@@ -16835,25 +16854,31 @@
|
|
|
16835
16854
|
block,
|
|
16836
16855
|
id: create_else_block_1.name,
|
|
16837
16856
|
type: "else",
|
|
16838
|
-
source: "(
|
|
16857
|
+
source: "(190:10) {:else}",
|
|
16839
16858
|
ctx
|
|
16840
16859
|
});
|
|
16841
16860
|
|
|
16842
16861
|
return block;
|
|
16843
16862
|
}
|
|
16844
16863
|
|
|
16845
|
-
// (
|
|
16864
|
+
// (188:10) {#if isLoading}
|
|
16846
16865
|
function create_if_block_3(ctx) {
|
|
16847
16866
|
let p;
|
|
16867
|
+
let t_value = /*$_*/ ctx[18]("tournamentsController.loading") + "";
|
|
16868
|
+
let t;
|
|
16848
16869
|
|
|
16849
16870
|
const block = {
|
|
16850
16871
|
c: function create() {
|
|
16851
16872
|
p = element("p");
|
|
16852
|
-
|
|
16853
|
-
add_location(p, file,
|
|
16873
|
+
t = text(t_value);
|
|
16874
|
+
add_location(p, file, 188, 12, 6353);
|
|
16854
16875
|
},
|
|
16855
16876
|
m: function mount(target, anchor) {
|
|
16856
16877
|
insert_dev(target, p, anchor);
|
|
16878
|
+
append_dev(p, t);
|
|
16879
|
+
},
|
|
16880
|
+
p: function update(ctx, dirty) {
|
|
16881
|
+
if (dirty[0] & /*$_*/ 262144 && t_value !== (t_value = /*$_*/ ctx[18]("tournamentsController.loading") + "")) set_data_dev(t, t_value);
|
|
16857
16882
|
},
|
|
16858
16883
|
d: function destroy(detaching) {
|
|
16859
16884
|
if (detaching) detach_dev(p);
|
|
@@ -16864,19 +16889,19 @@
|
|
|
16864
16889
|
block,
|
|
16865
16890
|
id: create_if_block_3.name,
|
|
16866
16891
|
type: "if",
|
|
16867
|
-
source: "(
|
|
16892
|
+
source: "(188:10) {#if isLoading}",
|
|
16868
16893
|
ctx
|
|
16869
16894
|
});
|
|
16870
16895
|
|
|
16871
16896
|
return block;
|
|
16872
16897
|
}
|
|
16873
16898
|
|
|
16874
|
-
// (
|
|
16899
|
+
// (208:6) {#if !allTournamentsShown}
|
|
16875
16900
|
function create_if_block_1(ctx) {
|
|
16876
16901
|
let div1;
|
|
16877
16902
|
let div0;
|
|
16878
16903
|
let button;
|
|
16879
|
-
let t_value = /*$_*/ ctx[
|
|
16904
|
+
let t_value = /*$_*/ ctx[18]("tournamentsController.showMore") + "";
|
|
16880
16905
|
let t;
|
|
16881
16906
|
let mounted;
|
|
16882
16907
|
let dispose;
|
|
@@ -16889,11 +16914,11 @@
|
|
|
16889
16914
|
t = text(t_value);
|
|
16890
16915
|
attr_dev(button, "class", "ShowMoreButton");
|
|
16891
16916
|
attr_dev(button, "title", "Show More");
|
|
16892
|
-
add_location(button, file,
|
|
16917
|
+
add_location(button, file, 210, 12, 7117);
|
|
16893
16918
|
attr_dev(div0, "class", "CenterButton");
|
|
16894
|
-
add_location(div0, file,
|
|
16919
|
+
add_location(div0, file, 209, 10, 7078);
|
|
16895
16920
|
attr_dev(div1, "class", "ThirdRow");
|
|
16896
|
-
add_location(div1, file,
|
|
16921
|
+
add_location(div1, file, 208, 8, 7045);
|
|
16897
16922
|
},
|
|
16898
16923
|
m: function mount(target, anchor) {
|
|
16899
16924
|
insert_dev(target, div1, anchor);
|
|
@@ -16902,12 +16927,12 @@
|
|
|
16902
16927
|
append_dev(button, t);
|
|
16903
16928
|
|
|
16904
16929
|
if (!mounted) {
|
|
16905
|
-
dispose = listen_dev(button, "click", /*click_handler*/ ctx[
|
|
16930
|
+
dispose = listen_dev(button, "click", /*click_handler*/ ctx[23], false, false, false);
|
|
16906
16931
|
mounted = true;
|
|
16907
16932
|
}
|
|
16908
16933
|
},
|
|
16909
16934
|
p: function update(ctx, dirty) {
|
|
16910
|
-
if (dirty[0] & /*$_*/
|
|
16935
|
+
if (dirty[0] & /*$_*/ 262144 && t_value !== (t_value = /*$_*/ ctx[18]("tournamentsController.showMore") + "")) set_data_dev(t, t_value);
|
|
16911
16936
|
},
|
|
16912
16937
|
d: function destroy(detaching) {
|
|
16913
16938
|
if (detaching) detach_dev(div1);
|
|
@@ -16920,7 +16945,7 @@
|
|
|
16920
16945
|
block,
|
|
16921
16946
|
id: create_if_block_1.name,
|
|
16922
16947
|
type: "if",
|
|
16923
|
-
source: "(
|
|
16948
|
+
source: "(208:6) {#if !allTournamentsShown}",
|
|
16924
16949
|
ctx
|
|
16925
16950
|
});
|
|
16926
16951
|
|
|
@@ -16931,7 +16956,7 @@
|
|
|
16931
16956
|
let if_block_anchor;
|
|
16932
16957
|
|
|
16933
16958
|
function select_block_type(ctx, dirty) {
|
|
16934
|
-
if (/*hasErrors*/ ctx[
|
|
16959
|
+
if (/*hasErrors*/ ctx[12]) return create_if_block;
|
|
16935
16960
|
return create_else_block;
|
|
16936
16961
|
}
|
|
16937
16962
|
|
|
@@ -16988,7 +17013,7 @@
|
|
|
16988
17013
|
function instance($$self, $$props, $$invalidate) {
|
|
16989
17014
|
let $_;
|
|
16990
17015
|
validate_store(X, "_");
|
|
16991
|
-
component_subscribe($$self, X, $$value => $$invalidate(
|
|
17016
|
+
component_subscribe($$self, X, $$value => $$invalidate(18, $_ = $$value));
|
|
16992
17017
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
16993
17018
|
validate_slots("undefined", slots, []);
|
|
16994
17019
|
let { session = "" } = $$props;
|
|
@@ -17004,6 +17029,7 @@
|
|
|
17004
17029
|
let { loginurl = "" } = $$props;
|
|
17005
17030
|
let { registerurl = "" } = $$props;
|
|
17006
17031
|
let { currency = "EUR" } = $$props;
|
|
17032
|
+
let { containermaxwidth = "" } = $$props;
|
|
17007
17033
|
|
|
17008
17034
|
// Variables of topics for communication
|
|
17009
17035
|
let hasErrors = false;
|
|
@@ -17059,8 +17085,8 @@
|
|
|
17059
17085
|
};
|
|
17060
17086
|
|
|
17061
17087
|
const getData = (url, offset, limit) => {
|
|
17062
|
-
$$invalidate(
|
|
17063
|
-
$$invalidate(
|
|
17088
|
+
$$invalidate(14, isLoading = true);
|
|
17089
|
+
$$invalidate(16, tournamentsNumber = 0);
|
|
17064
17090
|
let tournamentsUrl = new URL(`${url}/tournaments`);
|
|
17065
17091
|
let reqHeaders = new Headers();
|
|
17066
17092
|
tournamentsUrl.searchParams.append("pagination", `offset=${offset},limit=${limit}`);
|
|
@@ -17089,16 +17115,16 @@
|
|
|
17089
17115
|
};
|
|
17090
17116
|
|
|
17091
17117
|
fetch(tournamentsUrl, requestOptions).then(res => res.json()).then(res => {
|
|
17092
|
-
$$invalidate(
|
|
17118
|
+
$$invalidate(16, tournamentsNumber = 0);
|
|
17093
17119
|
|
|
17094
17120
|
setTimeout(
|
|
17095
17121
|
() => {
|
|
17096
|
-
$$invalidate(
|
|
17122
|
+
$$invalidate(16, tournamentsNumber = res.total);
|
|
17097
17123
|
|
|
17098
17124
|
if (tournamentsShownNumber >= tournamentsNumber) {
|
|
17099
|
-
$$invalidate(
|
|
17125
|
+
$$invalidate(17, allTournamentsShown = true);
|
|
17100
17126
|
} else {
|
|
17101
|
-
$$invalidate(
|
|
17127
|
+
$$invalidate(17, allTournamentsShown = false);
|
|
17102
17128
|
}
|
|
17103
17129
|
|
|
17104
17130
|
window.postMessage(
|
|
@@ -17109,7 +17135,7 @@
|
|
|
17109
17135
|
window.location.href
|
|
17110
17136
|
);
|
|
17111
17137
|
|
|
17112
|
-
$$invalidate(
|
|
17138
|
+
$$invalidate(14, isLoading = false);
|
|
17113
17139
|
},
|
|
17114
17140
|
50
|
|
17115
17141
|
);
|
|
@@ -17131,20 +17157,20 @@
|
|
|
17131
17157
|
getData(endpoint, 0, tournamentsShownNumber);
|
|
17132
17158
|
|
|
17133
17159
|
if (tournamentsShownNumber >= tournamentsNumber) {
|
|
17134
|
-
$$invalidate(
|
|
17160
|
+
$$invalidate(17, allTournamentsShown = true);
|
|
17135
17161
|
}
|
|
17136
17162
|
};
|
|
17137
17163
|
|
|
17138
17164
|
const checkAttrs = () => {
|
|
17139
17165
|
if (!endpoint) {
|
|
17140
|
-
$$invalidate(
|
|
17141
|
-
$$invalidate(
|
|
17166
|
+
$$invalidate(13, error = "Endpoint is missing! Please provide a valid endpointURL.");
|
|
17167
|
+
$$invalidate(12, hasErrors = true);
|
|
17142
17168
|
console.error(error);
|
|
17143
17169
|
}
|
|
17144
17170
|
|
|
17145
17171
|
if (!lang || lang.length != 2) {
|
|
17146
|
-
$$invalidate(
|
|
17147
|
-
$$invalidate(
|
|
17172
|
+
$$invalidate(13, error = "Language is missing! Please provide a valid language (alpha2code)");
|
|
17173
|
+
$$invalidate(12, hasErrors = true);
|
|
17148
17174
|
console.error(error);
|
|
17149
17175
|
}
|
|
17150
17176
|
|
|
@@ -17161,13 +17187,13 @@
|
|
|
17161
17187
|
|
|
17162
17188
|
const setActiveFilters = () => {
|
|
17163
17189
|
activeFilters = filters.split(",");
|
|
17164
|
-
$$invalidate(
|
|
17190
|
+
$$invalidate(15, filtersLoaded = true);
|
|
17165
17191
|
};
|
|
17166
17192
|
|
|
17167
17193
|
const setSession = () => {
|
|
17168
17194
|
if (session.length > 0 && session != "false") {
|
|
17169
17195
|
isLoggedIn = true;
|
|
17170
|
-
$$invalidate(
|
|
17196
|
+
$$invalidate(14, isLoading = true);
|
|
17171
17197
|
sessionID = session;
|
|
17172
17198
|
} else {
|
|
17173
17199
|
isLoggedIn = false;
|
|
@@ -17200,7 +17226,8 @@
|
|
|
17200
17226
|
"registerevent",
|
|
17201
17227
|
"loginurl",
|
|
17202
17228
|
"registerurl",
|
|
17203
|
-
"currency"
|
|
17229
|
+
"currency",
|
|
17230
|
+
"containermaxwidth"
|
|
17204
17231
|
];
|
|
17205
17232
|
|
|
17206
17233
|
Object_1.keys($$props).forEach(key => {
|
|
@@ -17215,14 +17242,15 @@
|
|
|
17215
17242
|
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
17216
17243
|
if ("lang" in $$props) $$invalidate(3, lang = $$props.lang);
|
|
17217
17244
|
if ("numberoftournaments" in $$props) $$invalidate(4, numberoftournaments = $$props.numberoftournaments);
|
|
17218
|
-
if ("showmorestep" in $$props) $$invalidate(
|
|
17219
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
17245
|
+
if ("showmorestep" in $$props) $$invalidate(21, showmorestep = $$props.showmorestep);
|
|
17246
|
+
if ("cmsendpoint" in $$props) $$invalidate(22, cmsendpoint = $$props.cmsendpoint);
|
|
17220
17247
|
if ("filters" in $$props) $$invalidate(5, filters = $$props.filters);
|
|
17221
17248
|
if ("loginevent" in $$props) $$invalidate(6, loginevent = $$props.loginevent);
|
|
17222
17249
|
if ("registerevent" in $$props) $$invalidate(7, registerevent = $$props.registerevent);
|
|
17223
17250
|
if ("loginurl" in $$props) $$invalidate(8, loginurl = $$props.loginurl);
|
|
17224
17251
|
if ("registerurl" in $$props) $$invalidate(9, registerurl = $$props.registerurl);
|
|
17225
17252
|
if ("currency" in $$props) $$invalidate(10, currency = $$props.currency);
|
|
17253
|
+
if ("containermaxwidth" in $$props) $$invalidate(11, containermaxwidth = $$props.containermaxwidth);
|
|
17226
17254
|
};
|
|
17227
17255
|
|
|
17228
17256
|
$$self.$capture_state = () => ({
|
|
@@ -17246,6 +17274,7 @@
|
|
|
17246
17274
|
loginurl,
|
|
17247
17275
|
registerurl,
|
|
17248
17276
|
currency,
|
|
17277
|
+
containermaxwidth,
|
|
17249
17278
|
sortByStatus,
|
|
17250
17279
|
hasErrors,
|
|
17251
17280
|
error,
|
|
@@ -17279,26 +17308,27 @@
|
|
|
17279
17308
|
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
17280
17309
|
if ("lang" in $$props) $$invalidate(3, lang = $$props.lang);
|
|
17281
17310
|
if ("numberoftournaments" in $$props) $$invalidate(4, numberoftournaments = $$props.numberoftournaments);
|
|
17282
|
-
if ("showmorestep" in $$props) $$invalidate(
|
|
17283
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
17311
|
+
if ("showmorestep" in $$props) $$invalidate(21, showmorestep = $$props.showmorestep);
|
|
17312
|
+
if ("cmsendpoint" in $$props) $$invalidate(22, cmsendpoint = $$props.cmsendpoint);
|
|
17284
17313
|
if ("filters" in $$props) $$invalidate(5, filters = $$props.filters);
|
|
17285
17314
|
if ("loginevent" in $$props) $$invalidate(6, loginevent = $$props.loginevent);
|
|
17286
17315
|
if ("registerevent" in $$props) $$invalidate(7, registerevent = $$props.registerevent);
|
|
17287
17316
|
if ("loginurl" in $$props) $$invalidate(8, loginurl = $$props.loginurl);
|
|
17288
17317
|
if ("registerurl" in $$props) $$invalidate(9, registerurl = $$props.registerurl);
|
|
17289
17318
|
if ("currency" in $$props) $$invalidate(10, currency = $$props.currency);
|
|
17290
|
-
if ("
|
|
17291
|
-
if ("
|
|
17319
|
+
if ("containermaxwidth" in $$props) $$invalidate(11, containermaxwidth = $$props.containermaxwidth);
|
|
17320
|
+
if ("hasErrors" in $$props) $$invalidate(12, hasErrors = $$props.hasErrors);
|
|
17321
|
+
if ("error" in $$props) $$invalidate(13, error = $$props.error);
|
|
17292
17322
|
if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
|
|
17293
17323
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
17294
17324
|
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
17295
17325
|
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(
|
|
17326
|
+
if ("isLoading" in $$props) $$invalidate(14, isLoading = $$props.isLoading);
|
|
17327
|
+
if ("filtersLoaded" in $$props) $$invalidate(15, filtersLoaded = $$props.filtersLoaded);
|
|
17328
|
+
if ("filtersArray" in $$props) $$invalidate(19, filtersArray = $$props.filtersArray);
|
|
17329
|
+
if ("tournamentsNumber" in $$props) $$invalidate(16, tournamentsNumber = $$props.tournamentsNumber);
|
|
17300
17330
|
if ("tournamentsShownNumber" in $$props) tournamentsShownNumber = $$props.tournamentsShownNumber;
|
|
17301
|
-
if ("allTournamentsShown" in $$props) $$invalidate(
|
|
17331
|
+
if ("allTournamentsShown" in $$props) $$invalidate(17, allTournamentsShown = $$props.allTournamentsShown);
|
|
17302
17332
|
if ("activeFilters" in $$props) activeFilters = $$props.activeFilters;
|
|
17303
17333
|
if ("lastMonthDate" in $$props) lastMonthDate = $$props.lastMonthDate;
|
|
17304
17334
|
};
|
|
@@ -17320,11 +17350,11 @@
|
|
|
17320
17350
|
filters && setActiveFilters();
|
|
17321
17351
|
}
|
|
17322
17352
|
|
|
17323
|
-
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/
|
|
17353
|
+
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/ 2097180) {
|
|
17324
17354
|
endpoint && numberoftournaments && showmorestep && lang && initialLoad();
|
|
17325
17355
|
}
|
|
17326
17356
|
|
|
17327
|
-
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/
|
|
17357
|
+
if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/ 2097181) {
|
|
17328
17358
|
endpoint && numberoftournaments && showmorestep && lang && session && initialLoad();
|
|
17329
17359
|
}
|
|
17330
17360
|
};
|
|
@@ -17341,6 +17371,7 @@
|
|
|
17341
17371
|
loginurl,
|
|
17342
17372
|
registerurl,
|
|
17343
17373
|
currency,
|
|
17374
|
+
containermaxwidth,
|
|
17344
17375
|
hasErrors,
|
|
17345
17376
|
error,
|
|
17346
17377
|
isLoading,
|
|
@@ -17359,7 +17390,7 @@
|
|
|
17359
17390
|
class CasinoTournamentsController extends SvelteElement {
|
|
17360
17391
|
constructor(options) {
|
|
17361
17392
|
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}.
|
|
17393
|
+
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
17394
|
|
|
17364
17395
|
init(
|
|
17365
17396
|
this,
|
|
@@ -17377,14 +17408,15 @@
|
|
|
17377
17408
|
endpoint: 2,
|
|
17378
17409
|
lang: 3,
|
|
17379
17410
|
numberoftournaments: 4,
|
|
17380
|
-
showmorestep:
|
|
17381
|
-
cmsendpoint:
|
|
17411
|
+
showmorestep: 21,
|
|
17412
|
+
cmsendpoint: 22,
|
|
17382
17413
|
filters: 5,
|
|
17383
17414
|
loginevent: 6,
|
|
17384
17415
|
registerevent: 7,
|
|
17385
17416
|
loginurl: 8,
|
|
17386
17417
|
registerurl: 9,
|
|
17387
|
-
currency: 10
|
|
17418
|
+
currency: 10,
|
|
17419
|
+
containermaxwidth: 11
|
|
17388
17420
|
},
|
|
17389
17421
|
[-1, -1]
|
|
17390
17422
|
);
|
|
@@ -17415,7 +17447,8 @@
|
|
|
17415
17447
|
"registerevent",
|
|
17416
17448
|
"loginurl",
|
|
17417
17449
|
"registerurl",
|
|
17418
|
-
"currency"
|
|
17450
|
+
"currency",
|
|
17451
|
+
"containermaxwidth"
|
|
17419
17452
|
];
|
|
17420
17453
|
}
|
|
17421
17454
|
|
|
@@ -17465,7 +17498,7 @@
|
|
|
17465
17498
|
}
|
|
17466
17499
|
|
|
17467
17500
|
get showmorestep() {
|
|
17468
|
-
return this.$$.ctx[
|
|
17501
|
+
return this.$$.ctx[21];
|
|
17469
17502
|
}
|
|
17470
17503
|
|
|
17471
17504
|
set showmorestep(showmorestep) {
|
|
@@ -17474,7 +17507,7 @@
|
|
|
17474
17507
|
}
|
|
17475
17508
|
|
|
17476
17509
|
get cmsendpoint() {
|
|
17477
|
-
return this.$$.ctx[
|
|
17510
|
+
return this.$$.ctx[22];
|
|
17478
17511
|
}
|
|
17479
17512
|
|
|
17480
17513
|
set cmsendpoint(cmsendpoint) {
|
|
@@ -17535,6 +17568,15 @@
|
|
|
17535
17568
|
this.$set({ currency });
|
|
17536
17569
|
flush();
|
|
17537
17570
|
}
|
|
17571
|
+
|
|
17572
|
+
get containermaxwidth() {
|
|
17573
|
+
return this.$$.ctx[11];
|
|
17574
|
+
}
|
|
17575
|
+
|
|
17576
|
+
set containermaxwidth(containermaxwidth) {
|
|
17577
|
+
this.$set({ containermaxwidth });
|
|
17578
|
+
flush();
|
|
17579
|
+
}
|
|
17538
17580
|
}
|
|
17539
17581
|
|
|
17540
17582
|
!customElements.get('casino-tournaments-controller') && customElements.define('casino-tournaments-controller', CasinoTournamentsController);
|