@everymatrix/casino-tournaments-controller 0.0.116 → 0.0.120
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.
|
@@ -4624,7 +4624,7 @@
|
|
|
4624
4624
|
m(lang, dict);
|
|
4625
4625
|
}
|
|
4626
4626
|
|
|
4627
|
-
function setLocale$
|
|
4627
|
+
function setLocale$2(_locale) {
|
|
4628
4628
|
T.set(_locale);
|
|
4629
4629
|
}
|
|
4630
4630
|
|
|
@@ -4632,13 +4632,19 @@
|
|
|
4632
4632
|
en: {
|
|
4633
4633
|
tournamentsController: {
|
|
4634
4634
|
500: '500 - Internal server error',
|
|
4635
|
-
showMore: 'Show more'
|
|
4635
|
+
showMore: 'Show more',
|
|
4636
|
+
Scheduled: 'Scheduled',
|
|
4637
|
+
Ongoing: 'OnGoing',
|
|
4638
|
+
Finished: 'Finished'
|
|
4636
4639
|
}
|
|
4637
4640
|
},
|
|
4638
4641
|
tr: {
|
|
4639
4642
|
tournamentsController: {
|
|
4640
4643
|
500: '500 - Dahili sunucu hatası',
|
|
4641
|
-
showMore: 'Daha fazla'
|
|
4644
|
+
showMore: 'Daha fazla',
|
|
4645
|
+
Scheduled: 'Scheduledddddd',
|
|
4646
|
+
Ongoing: 'OnGoingggggg',
|
|
4647
|
+
Finished: 'Finisheddddddd'
|
|
4642
4648
|
}
|
|
4643
4649
|
},
|
|
4644
4650
|
};
|
|
@@ -4647,20 +4653,36 @@
|
|
|
4647
4653
|
m(lang, dict);
|
|
4648
4654
|
}
|
|
4649
4655
|
|
|
4656
|
+
function setLocale$1(_locale) {
|
|
4657
|
+
T.set(_locale);
|
|
4658
|
+
}
|
|
4659
|
+
|
|
4650
4660
|
const TournamentsFilterTranslations = {
|
|
4651
4661
|
en: {
|
|
4652
4662
|
tournamentsFilter: {
|
|
4653
|
-
tournaments: 'Tournaments'
|
|
4663
|
+
tournaments: 'Tournaments',
|
|
4664
|
+
all: 'All',
|
|
4665
|
+
scheduled: 'Scheduled',
|
|
4666
|
+
ongoing: 'OnGoing',
|
|
4667
|
+
finished: 'Finished'
|
|
4654
4668
|
}
|
|
4655
4669
|
},
|
|
4656
4670
|
ro: {
|
|
4657
4671
|
tournamentsFilter: {
|
|
4658
|
-
tournaments: 'Turnee'
|
|
4672
|
+
tournaments: 'Turnee',
|
|
4673
|
+
all: 'Toate',
|
|
4674
|
+
scheduled: 'Programate',
|
|
4675
|
+
ongoing: 'In desfasurare',
|
|
4676
|
+
finished: 'Terminate'
|
|
4659
4677
|
}
|
|
4660
4678
|
},
|
|
4661
4679
|
tr: {
|
|
4662
4680
|
tournamentsFilter: {
|
|
4663
|
-
tournaments: 'Turnuvalar'
|
|
4681
|
+
tournaments: 'Turnuvalar',
|
|
4682
|
+
all: 'Allll',
|
|
4683
|
+
scheduled: 'Scheduleddd',
|
|
4684
|
+
ongoing: 'OnGoinggg',
|
|
4685
|
+
finished: 'Finisheddd'
|
|
4664
4686
|
}
|
|
4665
4687
|
}
|
|
4666
4688
|
};
|
|
@@ -4672,12 +4694,12 @@
|
|
|
4672
4694
|
|
|
4673
4695
|
function get_each_context$3(ctx, list, i) {
|
|
4674
4696
|
const child_ctx = ctx.slice();
|
|
4675
|
-
child_ctx[
|
|
4676
|
-
child_ctx[
|
|
4697
|
+
child_ctx[15] = list[i];
|
|
4698
|
+
child_ctx[17] = i;
|
|
4677
4699
|
return child_ctx;
|
|
4678
4700
|
}
|
|
4679
4701
|
|
|
4680
|
-
// (
|
|
4702
|
+
// (89:2) {#if filterItems.length > 0}
|
|
4681
4703
|
function create_if_block$7(ctx) {
|
|
4682
4704
|
let ul;
|
|
4683
4705
|
let li;
|
|
@@ -4709,13 +4731,13 @@
|
|
|
4709
4731
|
? "MobileClass"
|
|
4710
4732
|
: "Non-MobileClass/empty");
|
|
4711
4733
|
|
|
4712
|
-
add_location(li, file$7,
|
|
4734
|
+
add_location(li, file$7, 90, 6, 2931);
|
|
4713
4735
|
|
|
4714
4736
|
attr_dev(ul, "class", isMobile(/*userAgent*/ ctx[4])
|
|
4715
4737
|
? "MobileClass"
|
|
4716
4738
|
: "Non-MobileClass/empty");
|
|
4717
4739
|
|
|
4718
|
-
add_location(ul, file$7,
|
|
4740
|
+
add_location(ul, file$7, 89, 4, 2846);
|
|
4719
4741
|
},
|
|
4720
4742
|
m: function mount(target, anchor) {
|
|
4721
4743
|
insert_dev(target, ul, anchor);
|
|
@@ -4731,7 +4753,7 @@
|
|
|
4731
4753
|
p: function update(ctx, dirty) {
|
|
4732
4754
|
if (dirty & /*$_*/ 8 && t0_value !== (t0_value = /*$_*/ ctx[3]("tournamentsFilter.tournaments") + "")) set_data_dev(t0, t0_value);
|
|
4733
4755
|
|
|
4734
|
-
if (dirty & /*makeButtonActive, filterItems, activeIndexes, allActive, isMobile, userAgent*/
|
|
4756
|
+
if (dirty & /*makeButtonActive, filterItems, activeIndexes, allActive, isMobile, userAgent, $_*/ 63) {
|
|
4735
4757
|
each_value = /*filterItems*/ ctx[0];
|
|
4736
4758
|
validate_each_argument(each_value);
|
|
4737
4759
|
let i;
|
|
@@ -4765,15 +4787,15 @@
|
|
|
4765
4787
|
block,
|
|
4766
4788
|
id: create_if_block$7.name,
|
|
4767
4789
|
type: "if",
|
|
4768
|
-
source: "(
|
|
4790
|
+
source: "(89:2) {#if filterItems.length > 0}",
|
|
4769
4791
|
ctx
|
|
4770
4792
|
});
|
|
4771
4793
|
|
|
4772
4794
|
return block;
|
|
4773
4795
|
}
|
|
4774
4796
|
|
|
4775
|
-
// (
|
|
4776
|
-
function
|
|
4797
|
+
// (97:12) {#if activeIndexes[index] == 1 || (allActive && index == 0)}
|
|
4798
|
+
function create_if_block_5$3(ctx) {
|
|
4777
4799
|
let svg;
|
|
4778
4800
|
let path;
|
|
4779
4801
|
|
|
@@ -4782,14 +4804,14 @@
|
|
|
4782
4804
|
svg = svg_element("svg");
|
|
4783
4805
|
path = svg_element("path");
|
|
4784
4806
|
attr_dev(path, "d", "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z");
|
|
4785
|
-
add_location(path, file$7,
|
|
4807
|
+
add_location(path, file$7, 98, 16, 3567);
|
|
4786
4808
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4787
4809
|
attr_dev(svg, "width", "16");
|
|
4788
4810
|
attr_dev(svg, "height", "16");
|
|
4789
4811
|
attr_dev(svg, "fill", "currentColor");
|
|
4790
4812
|
attr_dev(svg, "class", "bi bi-check");
|
|
4791
4813
|
attr_dev(svg, "viewBox", "0 0 16 16");
|
|
4792
|
-
add_location(svg, file$7,
|
|
4814
|
+
add_location(svg, file$7, 97, 14, 3427);
|
|
4793
4815
|
},
|
|
4794
4816
|
m: function mount(target, anchor) {
|
|
4795
4817
|
insert_dev(target, svg, anchor);
|
|
@@ -4800,68 +4822,209 @@
|
|
|
4800
4822
|
}
|
|
4801
4823
|
};
|
|
4802
4824
|
|
|
4825
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4826
|
+
block,
|
|
4827
|
+
id: create_if_block_5$3.name,
|
|
4828
|
+
type: "if",
|
|
4829
|
+
source: "(97:12) {#if activeIndexes[index] == 1 || (allActive && index == 0)}",
|
|
4830
|
+
ctx
|
|
4831
|
+
});
|
|
4832
|
+
|
|
4833
|
+
return block;
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4836
|
+
// (103:14) {#if filter == 'Scheduled'}
|
|
4837
|
+
function create_if_block_4$4(ctx) {
|
|
4838
|
+
let t_value = /*$_*/ ctx[3]("tournamentsFilter.scheduled") + "";
|
|
4839
|
+
let t;
|
|
4840
|
+
|
|
4841
|
+
const block = {
|
|
4842
|
+
c: function create() {
|
|
4843
|
+
t = text(t_value);
|
|
4844
|
+
},
|
|
4845
|
+
m: function mount(target, anchor) {
|
|
4846
|
+
insert_dev(target, t, anchor);
|
|
4847
|
+
},
|
|
4848
|
+
p: function update(ctx, dirty) {
|
|
4849
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("tournamentsFilter.scheduled") + "")) set_data_dev(t, t_value);
|
|
4850
|
+
},
|
|
4851
|
+
d: function destroy(detaching) {
|
|
4852
|
+
if (detaching) detach_dev(t);
|
|
4853
|
+
}
|
|
4854
|
+
};
|
|
4855
|
+
|
|
4856
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4857
|
+
block,
|
|
4858
|
+
id: create_if_block_4$4.name,
|
|
4859
|
+
type: "if",
|
|
4860
|
+
source: "(103:14) {#if filter == 'Scheduled'}",
|
|
4861
|
+
ctx
|
|
4862
|
+
});
|
|
4863
|
+
|
|
4864
|
+
return block;
|
|
4865
|
+
}
|
|
4866
|
+
|
|
4867
|
+
// (106:14) {#if filter == 'Ongoing'}
|
|
4868
|
+
function create_if_block_3$4(ctx) {
|
|
4869
|
+
let t_value = /*$_*/ ctx[3]("tournamentsFilter.ongoing") + "";
|
|
4870
|
+
let t;
|
|
4871
|
+
|
|
4872
|
+
const block = {
|
|
4873
|
+
c: function create() {
|
|
4874
|
+
t = text(t_value);
|
|
4875
|
+
},
|
|
4876
|
+
m: function mount(target, anchor) {
|
|
4877
|
+
insert_dev(target, t, anchor);
|
|
4878
|
+
},
|
|
4879
|
+
p: function update(ctx, dirty) {
|
|
4880
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("tournamentsFilter.ongoing") + "")) set_data_dev(t, t_value);
|
|
4881
|
+
},
|
|
4882
|
+
d: function destroy(detaching) {
|
|
4883
|
+
if (detaching) detach_dev(t);
|
|
4884
|
+
}
|
|
4885
|
+
};
|
|
4886
|
+
|
|
4887
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4888
|
+
block,
|
|
4889
|
+
id: create_if_block_3$4.name,
|
|
4890
|
+
type: "if",
|
|
4891
|
+
source: "(106:14) {#if filter == 'Ongoing'}",
|
|
4892
|
+
ctx
|
|
4893
|
+
});
|
|
4894
|
+
|
|
4895
|
+
return block;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
// (109:14) {#if filter == 'Finished'}
|
|
4899
|
+
function create_if_block_2$4(ctx) {
|
|
4900
|
+
let t_value = /*$_*/ ctx[3]("tournamentsFilter.finished") + "";
|
|
4901
|
+
let t;
|
|
4902
|
+
|
|
4903
|
+
const block = {
|
|
4904
|
+
c: function create() {
|
|
4905
|
+
t = text(t_value);
|
|
4906
|
+
},
|
|
4907
|
+
m: function mount(target, anchor) {
|
|
4908
|
+
insert_dev(target, t, anchor);
|
|
4909
|
+
},
|
|
4910
|
+
p: function update(ctx, dirty) {
|
|
4911
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("tournamentsFilter.finished") + "")) set_data_dev(t, t_value);
|
|
4912
|
+
},
|
|
4913
|
+
d: function destroy(detaching) {
|
|
4914
|
+
if (detaching) detach_dev(t);
|
|
4915
|
+
}
|
|
4916
|
+
};
|
|
4917
|
+
|
|
4918
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4919
|
+
block,
|
|
4920
|
+
id: create_if_block_2$4.name,
|
|
4921
|
+
type: "if",
|
|
4922
|
+
source: "(109:14) {#if filter == 'Finished'}",
|
|
4923
|
+
ctx
|
|
4924
|
+
});
|
|
4925
|
+
|
|
4926
|
+
return block;
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
// (112:14) {#if filter == 'All'}
|
|
4930
|
+
function create_if_block_1$4(ctx) {
|
|
4931
|
+
let t_value = /*$_*/ ctx[3]("tournamentsFilter.all") + "";
|
|
4932
|
+
let t;
|
|
4933
|
+
|
|
4934
|
+
const block = {
|
|
4935
|
+
c: function create() {
|
|
4936
|
+
t = text(t_value);
|
|
4937
|
+
},
|
|
4938
|
+
m: function mount(target, anchor) {
|
|
4939
|
+
insert_dev(target, t, anchor);
|
|
4940
|
+
},
|
|
4941
|
+
p: function update(ctx, dirty) {
|
|
4942
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("tournamentsFilter.all") + "")) set_data_dev(t, t_value);
|
|
4943
|
+
},
|
|
4944
|
+
d: function destroy(detaching) {
|
|
4945
|
+
if (detaching) detach_dev(t);
|
|
4946
|
+
}
|
|
4947
|
+
};
|
|
4948
|
+
|
|
4803
4949
|
dispatch_dev("SvelteRegisterBlock", {
|
|
4804
4950
|
block,
|
|
4805
4951
|
id: create_if_block_1$4.name,
|
|
4806
4952
|
type: "if",
|
|
4807
|
-
source: "(
|
|
4953
|
+
source: "(112:14) {#if filter == 'All'}",
|
|
4808
4954
|
ctx
|
|
4809
4955
|
});
|
|
4810
4956
|
|
|
4811
4957
|
return block;
|
|
4812
4958
|
}
|
|
4813
4959
|
|
|
4814
|
-
// (
|
|
4960
|
+
// (94:6) {#each filterItems as filter, index}
|
|
4815
4961
|
function create_each_block$3(ctx) {
|
|
4816
4962
|
let li;
|
|
4817
4963
|
let button;
|
|
4818
4964
|
let t0;
|
|
4819
4965
|
let div;
|
|
4820
|
-
let t1_value = /*filter*/ ctx[13] + "";
|
|
4821
4966
|
let t1;
|
|
4822
|
-
let button_class_value;
|
|
4823
4967
|
let t2;
|
|
4968
|
+
let t3;
|
|
4969
|
+
let button_class_value;
|
|
4970
|
+
let t4;
|
|
4824
4971
|
let mounted;
|
|
4825
4972
|
let dispose;
|
|
4826
|
-
let
|
|
4973
|
+
let if_block0 = (/*activeIndexes*/ ctx[1][/*index*/ ctx[17]] == 1 || /*allActive*/ ctx[2] && /*index*/ ctx[17] == 0) && create_if_block_5$3(ctx);
|
|
4974
|
+
let if_block1 = /*filter*/ ctx[15] == "Scheduled" && create_if_block_4$4(ctx);
|
|
4975
|
+
let if_block2 = /*filter*/ ctx[15] == "Ongoing" && create_if_block_3$4(ctx);
|
|
4976
|
+
let if_block3 = /*filter*/ ctx[15] == "Finished" && create_if_block_2$4(ctx);
|
|
4977
|
+
let if_block4 = /*filter*/ ctx[15] == "All" && create_if_block_1$4(ctx);
|
|
4827
4978
|
|
|
4828
4979
|
function click_handler() {
|
|
4829
|
-
return /*click_handler*/ ctx[8](/*filter*/ ctx[
|
|
4980
|
+
return /*click_handler*/ ctx[8](/*filter*/ ctx[15], /*index*/ ctx[17]);
|
|
4830
4981
|
}
|
|
4831
4982
|
|
|
4832
4983
|
const block = {
|
|
4833
4984
|
c: function create() {
|
|
4834
4985
|
li = element("li");
|
|
4835
4986
|
button = element("button");
|
|
4836
|
-
if (
|
|
4987
|
+
if (if_block0) if_block0.c();
|
|
4837
4988
|
t0 = space();
|
|
4838
4989
|
div = element("div");
|
|
4839
|
-
|
|
4990
|
+
if (if_block1) if_block1.c();
|
|
4991
|
+
t1 = space();
|
|
4992
|
+
if (if_block2) if_block2.c();
|
|
4840
4993
|
t2 = space();
|
|
4994
|
+
if (if_block3) if_block3.c();
|
|
4995
|
+
t3 = space();
|
|
4996
|
+
if (if_block4) if_block4.c();
|
|
4997
|
+
t4 = space();
|
|
4841
4998
|
|
|
4842
4999
|
attr_dev(div, "class", "FilterButton " + (isMobile(/*userAgent*/ ctx[4])
|
|
4843
5000
|
? "MobileClass"
|
|
4844
5001
|
: "Non-MobileClass/empty"));
|
|
4845
5002
|
|
|
4846
|
-
add_location(div, file$7,
|
|
5003
|
+
add_location(div, file$7, 101, 12, 3781);
|
|
4847
5004
|
|
|
4848
|
-
attr_dev(button, "class", button_class_value = "" + ((/*activeIndexes*/ ctx[1][/*index*/ ctx[
|
|
5005
|
+
attr_dev(button, "class", button_class_value = "" + ((/*activeIndexes*/ ctx[1][/*index*/ ctx[17]] == 1 || /*allActive*/ ctx[2] && /*index*/ ctx[17] == 0
|
|
4849
5006
|
? "Active"
|
|
4850
5007
|
: "") + " " + (isMobile(/*userAgent*/ ctx[4])
|
|
4851
5008
|
? "MobileClass"
|
|
4852
5009
|
: "Non-MobileClass/empty")));
|
|
4853
5010
|
|
|
4854
|
-
add_location(button, file$7,
|
|
4855
|
-
add_location(li, file$7,
|
|
5011
|
+
add_location(button, file$7, 95, 10, 3184);
|
|
5012
|
+
add_location(li, file$7, 94, 8, 3120);
|
|
4856
5013
|
},
|
|
4857
5014
|
m: function mount(target, anchor) {
|
|
4858
5015
|
insert_dev(target, li, anchor);
|
|
4859
5016
|
append_dev(li, button);
|
|
4860
|
-
if (
|
|
5017
|
+
if (if_block0) if_block0.m(button, null);
|
|
4861
5018
|
append_dev(button, t0);
|
|
4862
5019
|
append_dev(button, div);
|
|
5020
|
+
if (if_block1) if_block1.m(div, null);
|
|
4863
5021
|
append_dev(div, t1);
|
|
4864
|
-
|
|
5022
|
+
if (if_block2) if_block2.m(div, null);
|
|
5023
|
+
append_dev(div, t2);
|
|
5024
|
+
if (if_block3) if_block3.m(div, null);
|
|
5025
|
+
append_dev(div, t3);
|
|
5026
|
+
if (if_block4) if_block4.m(div, null);
|
|
5027
|
+
append_dev(li, t4);
|
|
4865
5028
|
|
|
4866
5029
|
if (!mounted) {
|
|
4867
5030
|
dispose = listen_dev(li, "click", click_handler, false, false, false);
|
|
@@ -4871,20 +5034,70 @@
|
|
|
4871
5034
|
p: function update(new_ctx, dirty) {
|
|
4872
5035
|
ctx = new_ctx;
|
|
4873
5036
|
|
|
4874
|
-
if (/*activeIndexes*/ ctx[1][/*index*/ ctx[
|
|
4875
|
-
if (
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
5037
|
+
if (/*activeIndexes*/ ctx[1][/*index*/ ctx[17]] == 1 || /*allActive*/ ctx[2] && /*index*/ ctx[17] == 0) {
|
|
5038
|
+
if (if_block0) ; else {
|
|
5039
|
+
if_block0 = create_if_block_5$3(ctx);
|
|
5040
|
+
if_block0.c();
|
|
5041
|
+
if_block0.m(button, t0);
|
|
4879
5042
|
}
|
|
4880
|
-
} else if (
|
|
4881
|
-
|
|
4882
|
-
|
|
5043
|
+
} else if (if_block0) {
|
|
5044
|
+
if_block0.d(1);
|
|
5045
|
+
if_block0 = null;
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
if (/*filter*/ ctx[15] == "Scheduled") {
|
|
5049
|
+
if (if_block1) {
|
|
5050
|
+
if_block1.p(ctx, dirty);
|
|
5051
|
+
} else {
|
|
5052
|
+
if_block1 = create_if_block_4$4(ctx);
|
|
5053
|
+
if_block1.c();
|
|
5054
|
+
if_block1.m(div, t1);
|
|
5055
|
+
}
|
|
5056
|
+
} else if (if_block1) {
|
|
5057
|
+
if_block1.d(1);
|
|
5058
|
+
if_block1 = null;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
if (/*filter*/ ctx[15] == "Ongoing") {
|
|
5062
|
+
if (if_block2) {
|
|
5063
|
+
if_block2.p(ctx, dirty);
|
|
5064
|
+
} else {
|
|
5065
|
+
if_block2 = create_if_block_3$4(ctx);
|
|
5066
|
+
if_block2.c();
|
|
5067
|
+
if_block2.m(div, t2);
|
|
5068
|
+
}
|
|
5069
|
+
} else if (if_block2) {
|
|
5070
|
+
if_block2.d(1);
|
|
5071
|
+
if_block2 = null;
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
if (/*filter*/ ctx[15] == "Finished") {
|
|
5075
|
+
if (if_block3) {
|
|
5076
|
+
if_block3.p(ctx, dirty);
|
|
5077
|
+
} else {
|
|
5078
|
+
if_block3 = create_if_block_2$4(ctx);
|
|
5079
|
+
if_block3.c();
|
|
5080
|
+
if_block3.m(div, t3);
|
|
5081
|
+
}
|
|
5082
|
+
} else if (if_block3) {
|
|
5083
|
+
if_block3.d(1);
|
|
5084
|
+
if_block3 = null;
|
|
4883
5085
|
}
|
|
4884
5086
|
|
|
4885
|
-
if (
|
|
5087
|
+
if (/*filter*/ ctx[15] == "All") {
|
|
5088
|
+
if (if_block4) {
|
|
5089
|
+
if_block4.p(ctx, dirty);
|
|
5090
|
+
} else {
|
|
5091
|
+
if_block4 = create_if_block_1$4(ctx);
|
|
5092
|
+
if_block4.c();
|
|
5093
|
+
if_block4.m(div, null);
|
|
5094
|
+
}
|
|
5095
|
+
} else if (if_block4) {
|
|
5096
|
+
if_block4.d(1);
|
|
5097
|
+
if_block4 = null;
|
|
5098
|
+
}
|
|
4886
5099
|
|
|
4887
|
-
if (dirty & /*activeIndexes, allActive*/ 6 && button_class_value !== (button_class_value = "" + ((/*activeIndexes*/ ctx[1][/*index*/ ctx[
|
|
5100
|
+
if (dirty & /*activeIndexes, allActive*/ 6 && button_class_value !== (button_class_value = "" + ((/*activeIndexes*/ ctx[1][/*index*/ ctx[17]] == 1 || /*allActive*/ ctx[2] && /*index*/ ctx[17] == 0
|
|
4888
5101
|
? "Active"
|
|
4889
5102
|
: "") + " " + (isMobile(/*userAgent*/ ctx[4])
|
|
4890
5103
|
? "MobileClass"
|
|
@@ -4894,7 +5107,11 @@
|
|
|
4894
5107
|
},
|
|
4895
5108
|
d: function destroy(detaching) {
|
|
4896
5109
|
if (detaching) detach_dev(li);
|
|
4897
|
-
if (
|
|
5110
|
+
if (if_block0) if_block0.d();
|
|
5111
|
+
if (if_block1) if_block1.d();
|
|
5112
|
+
if (if_block2) if_block2.d();
|
|
5113
|
+
if (if_block3) if_block3.d();
|
|
5114
|
+
if (if_block4) if_block4.d();
|
|
4898
5115
|
mounted = false;
|
|
4899
5116
|
dispose();
|
|
4900
5117
|
}
|
|
@@ -4904,7 +5121,7 @@
|
|
|
4904
5121
|
block,
|
|
4905
5122
|
id: create_each_block$3.name,
|
|
4906
5123
|
type: "each",
|
|
4907
|
-
source: "(
|
|
5124
|
+
source: "(94:6) {#each filterItems as filter, index}",
|
|
4908
5125
|
ctx
|
|
4909
5126
|
});
|
|
4910
5127
|
|
|
@@ -4925,7 +5142,7 @@
|
|
|
4925
5142
|
? "MobileClass"
|
|
4926
5143
|
: "Non-MobileClass/empty"));
|
|
4927
5144
|
|
|
4928
|
-
add_location(div, file$7,
|
|
5145
|
+
add_location(div, file$7, 87, 0, 2713);
|
|
4929
5146
|
},
|
|
4930
5147
|
l: function claim(nodes) {
|
|
4931
5148
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -4981,6 +5198,7 @@
|
|
|
4981
5198
|
let activeIndexes = new Array(100);
|
|
4982
5199
|
let allActive = true;
|
|
4983
5200
|
let userAgent = window.navigator.userAgent;
|
|
5201
|
+
let shownStatus = "";
|
|
4984
5202
|
|
|
4985
5203
|
Object.keys(TournamentsFilterTranslations).forEach(item => {
|
|
4986
5204
|
addNewMessages$5(item, TournamentsFilterTranslations[item]);
|
|
@@ -5030,6 +5248,24 @@
|
|
|
5030
5248
|
}
|
|
5031
5249
|
};
|
|
5032
5250
|
|
|
5251
|
+
const matchFilter = filter => {
|
|
5252
|
+
if (filter == "Scheduled") {
|
|
5253
|
+
return $_("tournamentsFilter.scheduled");
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
if (filter == "Ongoing") {
|
|
5257
|
+
return $_("tournamentsFilter.ongoing");
|
|
5258
|
+
}
|
|
5259
|
+
|
|
5260
|
+
if (filter == "Finished") {
|
|
5261
|
+
return $_("tournamentsFilter.finished");
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
if (filter == "All") {
|
|
5265
|
+
return $_("tournamentsFilter.all");
|
|
5266
|
+
}
|
|
5267
|
+
};
|
|
5268
|
+
|
|
5033
5269
|
const processFilters = () => {
|
|
5034
5270
|
$$invalidate(0, filterItems = filters.split(","));
|
|
5035
5271
|
filterNumber = filterItems.length;
|
|
@@ -5068,10 +5304,12 @@
|
|
|
5068
5304
|
};
|
|
5069
5305
|
|
|
5070
5306
|
$$self.$capture_state = () => ({
|
|
5307
|
+
onMount,
|
|
5071
5308
|
getDevice,
|
|
5072
5309
|
isMobile,
|
|
5073
5310
|
_: X,
|
|
5074
5311
|
addNewMessages: addNewMessages$5,
|
|
5312
|
+
setLocale: setLocale$1,
|
|
5075
5313
|
TournamentsFilterTranslations,
|
|
5076
5314
|
filters,
|
|
5077
5315
|
activefilters,
|
|
@@ -5081,7 +5319,9 @@
|
|
|
5081
5319
|
activeIndexes,
|
|
5082
5320
|
allActive,
|
|
5083
5321
|
userAgent,
|
|
5322
|
+
shownStatus,
|
|
5084
5323
|
makeButtonActive,
|
|
5324
|
+
matchFilter,
|
|
5085
5325
|
processFilters,
|
|
5086
5326
|
setActiveFilters,
|
|
5087
5327
|
$_
|
|
@@ -5096,6 +5336,7 @@
|
|
|
5096
5336
|
if ("activeIndexes" in $$props) $$invalidate(1, activeIndexes = $$props.activeIndexes);
|
|
5097
5337
|
if ("allActive" in $$props) $$invalidate(2, allActive = $$props.allActive);
|
|
5098
5338
|
if ("userAgent" in $$props) $$invalidate(4, userAgent = $$props.userAgent);
|
|
5339
|
+
if ("shownStatus" in $$props) shownStatus = $$props.shownStatus;
|
|
5099
5340
|
};
|
|
5100
5341
|
|
|
5101
5342
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -10899,7 +11140,10 @@
|
|
|
10899
11140
|
scoreCriteria: 'Score Criteria',
|
|
10900
11141
|
minbet: 'min bet counts: ',
|
|
10901
11142
|
seegames: 'You can see the games',
|
|
10902
|
-
here: 'here'
|
|
11143
|
+
here: 'here',
|
|
11144
|
+
scheduled: 'Scheduled',
|
|
11145
|
+
ongoing: 'OnGoing',
|
|
11146
|
+
finished: 'Finished'
|
|
10903
11147
|
}
|
|
10904
11148
|
},
|
|
10905
11149
|
tr: {
|
|
@@ -10908,7 +11152,10 @@
|
|
|
10908
11152
|
scoreCriteria: 'Skor kriteri',
|
|
10909
11153
|
minbet: 'en düşük bahis sayısı: ',
|
|
10910
11154
|
seegames: 'Oyunları görebilirsiniz',
|
|
10911
|
-
here: 'burada'
|
|
11155
|
+
here: 'burada',
|
|
11156
|
+
scheduled: 'Scheduledddd',
|
|
11157
|
+
ongoing: 'OnGoinggggg',
|
|
11158
|
+
finished: 'Finisheddddd'
|
|
10912
11159
|
}
|
|
10913
11160
|
},
|
|
10914
11161
|
};
|
|
@@ -10930,7 +11177,7 @@
|
|
|
10930
11177
|
div = element("div");
|
|
10931
11178
|
t = text(/*shownStatus*/ ctx[12]);
|
|
10932
11179
|
attr_dev(div, "class", "Status");
|
|
10933
|
-
add_location(div, file$6, 74, 4,
|
|
11180
|
+
add_location(div, file$6, 74, 4, 2313);
|
|
10934
11181
|
},
|
|
10935
11182
|
m: function mount(target, anchor) {
|
|
10936
11183
|
insert_dev(target, div, anchor);
|
|
@@ -11018,7 +11265,7 @@
|
|
|
11018
11265
|
div = element("div");
|
|
11019
11266
|
t = text(t_value);
|
|
11020
11267
|
attr_dev(div, "class", "Enrolled");
|
|
11021
|
-
add_location(div, file$6, 79, 6,
|
|
11268
|
+
add_location(div, file$6, 79, 6, 2438);
|
|
11022
11269
|
},
|
|
11023
11270
|
m: function mount(target, anchor) {
|
|
11024
11271
|
insert_dev(target, div, anchor);
|
|
@@ -11054,12 +11301,12 @@
|
|
|
11054
11301
|
c: function create() {
|
|
11055
11302
|
div = element("div");
|
|
11056
11303
|
|
|
11057
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
11304
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
11058
11305
|
? "CardImgFinished"
|
|
11059
11306
|
: ""));
|
|
11060
11307
|
|
|
11061
11308
|
set_style(div, "background", "url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat");
|
|
11062
|
-
add_location(div, file$6, 85, 4,
|
|
11309
|
+
add_location(div, file$6, 85, 4, 2712);
|
|
11063
11310
|
},
|
|
11064
11311
|
m: function mount(target, anchor) {
|
|
11065
11312
|
insert_dev(target, div, anchor);
|
|
@@ -11070,7 +11317,7 @@
|
|
|
11070
11317
|
}
|
|
11071
11318
|
},
|
|
11072
11319
|
p: function update(ctx, dirty) {
|
|
11073
|
-
if (dirty & /*
|
|
11320
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
11074
11321
|
? "CardImgFinished"
|
|
11075
11322
|
: ""))) {
|
|
11076
11323
|
attr_dev(div, "class", div_class_value);
|
|
@@ -11105,12 +11352,12 @@
|
|
|
11105
11352
|
c: function create() {
|
|
11106
11353
|
div = element("div");
|
|
11107
11354
|
|
|
11108
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
11355
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
11109
11356
|
? "CardImgFinished"
|
|
11110
11357
|
: ""));
|
|
11111
11358
|
|
|
11112
11359
|
set_style(div, "background", "url('" + /*thumbnail*/ ctx[4] + "')");
|
|
11113
|
-
add_location(div, file$6, 83, 4,
|
|
11360
|
+
add_location(div, file$6, 83, 4, 2544);
|
|
11114
11361
|
},
|
|
11115
11362
|
m: function mount(target, anchor) {
|
|
11116
11363
|
insert_dev(target, div, anchor);
|
|
@@ -11121,7 +11368,7 @@
|
|
|
11121
11368
|
}
|
|
11122
11369
|
},
|
|
11123
11370
|
p: function update(ctx, dirty) {
|
|
11124
|
-
if (dirty & /*
|
|
11371
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
11125
11372
|
? "CardImgFinished"
|
|
11126
11373
|
: ""))) {
|
|
11127
11374
|
attr_dev(div, "class", div_class_value);
|
|
@@ -11162,7 +11409,7 @@
|
|
|
11162
11409
|
div = element("div");
|
|
11163
11410
|
t = text(/*shownDate*/ ctx[10]);
|
|
11164
11411
|
attr_dev(div, "class", "Date");
|
|
11165
|
-
add_location(div, file$6, 91, 6,
|
|
11412
|
+
add_location(div, file$6, 91, 6, 3003);
|
|
11166
11413
|
},
|
|
11167
11414
|
m: function mount(target, anchor) {
|
|
11168
11415
|
insert_dev(target, div, anchor);
|
|
@@ -11233,15 +11480,15 @@
|
|
|
11233
11480
|
t6 = space();
|
|
11234
11481
|
a = element("a");
|
|
11235
11482
|
t7 = text(t7_value);
|
|
11236
|
-
add_location(p0, file$6, 96, 8,
|
|
11483
|
+
add_location(p0, file$6, 96, 8, 3140);
|
|
11237
11484
|
attr_dev(div0, "class", "ScoreCriteria");
|
|
11238
|
-
add_location(div0, file$6, 95, 6,
|
|
11485
|
+
add_location(div0, file$6, 95, 6, 3104);
|
|
11239
11486
|
attr_dev(a, "href", /*gameurl*/ ctx[9]);
|
|
11240
11487
|
attr_dev(a, "target", "_blank");
|
|
11241
|
-
add_location(a, file$6, 105, 49,
|
|
11242
|
-
add_location(p1, file$6, 105, 8,
|
|
11488
|
+
add_location(a, file$6, 105, 49, 3436);
|
|
11489
|
+
add_location(p1, file$6, 105, 8, 3395);
|
|
11243
11490
|
attr_dev(div1, "class", "Games");
|
|
11244
|
-
add_location(div1, file$6, 104, 6,
|
|
11491
|
+
add_location(div1, file$6, 104, 6, 3367);
|
|
11245
11492
|
},
|
|
11246
11493
|
m: function mount(target, anchor) {
|
|
11247
11494
|
insert_dev(target, div0, anchor);
|
|
@@ -11398,11 +11645,11 @@
|
|
|
11398
11645
|
if (if_block4) if_block4.c();
|
|
11399
11646
|
this.c = noop$1;
|
|
11400
11647
|
attr_dev(div0, "class", "Title");
|
|
11401
|
-
add_location(div0, file$6, 89, 4,
|
|
11648
|
+
add_location(div0, file$6, 89, 4, 2944);
|
|
11402
11649
|
attr_dev(div1, "class", "Details");
|
|
11403
|
-
add_location(div1, file$6, 88, 2,
|
|
11650
|
+
add_location(div1, file$6, 88, 2, 2918);
|
|
11404
11651
|
attr_dev(div2, "class", "Thumbnail");
|
|
11405
|
-
add_location(div2, file$6, 72, 0,
|
|
11652
|
+
add_location(div2, file$6, 72, 0, 2270);
|
|
11406
11653
|
},
|
|
11407
11654
|
l: function claim(nodes) {
|
|
11408
11655
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -11568,15 +11815,15 @@
|
|
|
11568
11815
|
|
|
11569
11816
|
const matchStatus = () => {
|
|
11570
11817
|
if (status == "Unstarted") {
|
|
11571
|
-
$$invalidate(12, shownStatus = "
|
|
11818
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.scheduled"));
|
|
11572
11819
|
}
|
|
11573
11820
|
|
|
11574
11821
|
if (status == "Running") {
|
|
11575
|
-
$$invalidate(12, shownStatus = "
|
|
11822
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.ongoing"));
|
|
11576
11823
|
}
|
|
11577
11824
|
|
|
11578
11825
|
if (status == "Closed" || status == "Closing") {
|
|
11579
|
-
$$invalidate(12, shownStatus = "
|
|
11826
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.finished"));
|
|
11580
11827
|
}
|
|
11581
11828
|
};
|
|
11582
11829
|
|
|
@@ -11930,7 +12177,7 @@
|
|
|
11930
12177
|
const { Object: Object_1$4 } = globals;
|
|
11931
12178
|
const file$5 = "../casino-tournaments-thumbnail-duration/src/CasinoTournmanetsThumbnailDuration.svelte";
|
|
11932
12179
|
|
|
11933
|
-
// (
|
|
12180
|
+
// (72:2) {#if startdate && enddate}
|
|
11934
12181
|
function create_if_block$5(ctx) {
|
|
11935
12182
|
let div2;
|
|
11936
12183
|
let div0;
|
|
@@ -11964,13 +12211,13 @@
|
|
|
11964
12211
|
div3 = element("div");
|
|
11965
12212
|
if_block.c();
|
|
11966
12213
|
attr_dev(div0, "class", "StartDate");
|
|
11967
|
-
add_location(div0, file$5,
|
|
12214
|
+
add_location(div0, file$5, 73, 6, 2460);
|
|
11968
12215
|
attr_dev(div1, "class", "EndDate");
|
|
11969
|
-
add_location(div1, file$5,
|
|
12216
|
+
add_location(div1, file$5, 74, 6, 2527);
|
|
11970
12217
|
attr_dev(div2, "class", "TournamentDates");
|
|
11971
|
-
add_location(div2, file$5,
|
|
12218
|
+
add_location(div2, file$5, 72, 4, 2424);
|
|
11972
12219
|
attr_dev(div3, "class", "ProgressBar");
|
|
11973
|
-
add_location(div3, file$5,
|
|
12220
|
+
add_location(div3, file$5, 76, 4, 2597);
|
|
11974
12221
|
},
|
|
11975
12222
|
m: function mount(target, anchor) {
|
|
11976
12223
|
insert_dev(target, div2, anchor);
|
|
@@ -12023,14 +12270,14 @@
|
|
|
12023
12270
|
block,
|
|
12024
12271
|
id: create_if_block$5.name,
|
|
12025
12272
|
type: "if",
|
|
12026
|
-
source: "(
|
|
12273
|
+
source: "(72:2) {#if startdate && enddate}",
|
|
12027
12274
|
ctx
|
|
12028
12275
|
});
|
|
12029
12276
|
|
|
12030
12277
|
return block;
|
|
12031
12278
|
}
|
|
12032
12279
|
|
|
12033
|
-
// (
|
|
12280
|
+
// (85:8) {:else}
|
|
12034
12281
|
function create_else_block$4(ctx) {
|
|
12035
12282
|
let div;
|
|
12036
12283
|
let t;
|
|
@@ -12045,7 +12292,7 @@
|
|
|
12045
12292
|
if_block_anchor = empty();
|
|
12046
12293
|
attr_dev(div, "class", "ProgressBarFill");
|
|
12047
12294
|
set_style(div, "width", /*progress*/ ctx[7] + "%");
|
|
12048
|
-
add_location(div, file$5,
|
|
12295
|
+
add_location(div, file$5, 85, 10, 3110);
|
|
12049
12296
|
},
|
|
12050
12297
|
m: function mount(target, anchor) {
|
|
12051
12298
|
insert_dev(target, div, anchor);
|
|
@@ -12083,14 +12330,14 @@
|
|
|
12083
12330
|
block,
|
|
12084
12331
|
id: create_else_block$4.name,
|
|
12085
12332
|
type: "else",
|
|
12086
|
-
source: "(
|
|
12333
|
+
source: "(85:8) {:else}",
|
|
12087
12334
|
ctx
|
|
12088
12335
|
});
|
|
12089
12336
|
|
|
12090
12337
|
return block;
|
|
12091
12338
|
}
|
|
12092
12339
|
|
|
12093
|
-
// (
|
|
12340
|
+
// (82:8) {#if tournamentUntilStartDays > 0}
|
|
12094
12341
|
function create_if_block_2$2(ctx) {
|
|
12095
12342
|
let div0;
|
|
12096
12343
|
let t0;
|
|
@@ -12114,9 +12361,9 @@
|
|
|
12114
12361
|
t4 = space();
|
|
12115
12362
|
t5 = text(t5_value);
|
|
12116
12363
|
attr_dev(div0, "class", "ProgressBarFillStarting");
|
|
12117
|
-
add_location(div0, file$5,
|
|
12364
|
+
add_location(div0, file$5, 82, 10, 2904);
|
|
12118
12365
|
attr_dev(div1, "class", "Remaining");
|
|
12119
|
-
add_location(div1, file$5,
|
|
12366
|
+
add_location(div1, file$5, 83, 10, 2958);
|
|
12120
12367
|
},
|
|
12121
12368
|
m: function mount(target, anchor) {
|
|
12122
12369
|
insert_dev(target, div0, anchor);
|
|
@@ -12144,14 +12391,14 @@
|
|
|
12144
12391
|
block,
|
|
12145
12392
|
id: create_if_block_2$2.name,
|
|
12146
12393
|
type: "if",
|
|
12147
|
-
source: "(
|
|
12394
|
+
source: "(82:8) {#if tournamentUntilStartDays > 0}",
|
|
12148
12395
|
ctx
|
|
12149
12396
|
});
|
|
12150
12397
|
|
|
12151
12398
|
return block;
|
|
12152
12399
|
}
|
|
12153
12400
|
|
|
12154
|
-
// (
|
|
12401
|
+
// (78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
12155
12402
|
function create_if_block_1$2(ctx) {
|
|
12156
12403
|
let div0;
|
|
12157
12404
|
let t0;
|
|
@@ -12166,9 +12413,9 @@
|
|
|
12166
12413
|
div1 = element("div");
|
|
12167
12414
|
t1 = text(t1_value);
|
|
12168
12415
|
attr_dev(div0, "class", "ProgressBarFillEnd");
|
|
12169
|
-
add_location(div0, file$5,
|
|
12416
|
+
add_location(div0, file$5, 78, 8, 2725);
|
|
12170
12417
|
attr_dev(div1, "class", "Finished");
|
|
12171
|
-
add_location(div1, file$5,
|
|
12418
|
+
add_location(div1, file$5, 79, 8, 2772);
|
|
12172
12419
|
},
|
|
12173
12420
|
m: function mount(target, anchor) {
|
|
12174
12421
|
insert_dev(target, div0, anchor);
|
|
@@ -12190,14 +12437,14 @@
|
|
|
12190
12437
|
block,
|
|
12191
12438
|
id: create_if_block_1$2.name,
|
|
12192
12439
|
type: "if",
|
|
12193
|
-
source: "(
|
|
12440
|
+
source: "(78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}",
|
|
12194
12441
|
ctx
|
|
12195
12442
|
});
|
|
12196
12443
|
|
|
12197
12444
|
return block;
|
|
12198
12445
|
}
|
|
12199
12446
|
|
|
12200
|
-
// (
|
|
12447
|
+
// (87:10) {#if tournamentLeftDays > 0}
|
|
12201
12448
|
function create_if_block_3$2(ctx) {
|
|
12202
12449
|
let t0;
|
|
12203
12450
|
let t1;
|
|
@@ -12277,14 +12524,14 @@
|
|
|
12277
12524
|
block,
|
|
12278
12525
|
id: create_if_block_3$2.name,
|
|
12279
12526
|
type: "if",
|
|
12280
|
-
source: "(
|
|
12527
|
+
source: "(87:10) {#if tournamentLeftDays > 0}",
|
|
12281
12528
|
ctx
|
|
12282
12529
|
});
|
|
12283
12530
|
|
|
12284
12531
|
return block;
|
|
12285
12532
|
}
|
|
12286
12533
|
|
|
12287
|
-
// (
|
|
12534
|
+
// (88:12) {#if diffMinutes}
|
|
12288
12535
|
function create_if_block_6$1(ctx) {
|
|
12289
12536
|
let div;
|
|
12290
12537
|
let t0;
|
|
@@ -12299,7 +12546,7 @@
|
|
|
12299
12546
|
t1 = space();
|
|
12300
12547
|
t2 = text(t2_value);
|
|
12301
12548
|
attr_dev(div, "class", "Remaining");
|
|
12302
|
-
add_location(div, file$5,
|
|
12549
|
+
add_location(div, file$5, 88, 14, 3255);
|
|
12303
12550
|
},
|
|
12304
12551
|
m: function mount(target, anchor) {
|
|
12305
12552
|
insert_dev(target, div, anchor);
|
|
@@ -12320,14 +12567,14 @@
|
|
|
12320
12567
|
block,
|
|
12321
12568
|
id: create_if_block_6$1.name,
|
|
12322
12569
|
type: "if",
|
|
12323
|
-
source: "(
|
|
12570
|
+
source: "(88:12) {#if diffMinutes}",
|
|
12324
12571
|
ctx
|
|
12325
12572
|
});
|
|
12326
12573
|
|
|
12327
12574
|
return block;
|
|
12328
12575
|
}
|
|
12329
12576
|
|
|
12330
|
-
// (
|
|
12577
|
+
// (91:12) {#if diffHours}
|
|
12331
12578
|
function create_if_block_5$1(ctx) {
|
|
12332
12579
|
let div;
|
|
12333
12580
|
let t0;
|
|
@@ -12342,7 +12589,7 @@
|
|
|
12342
12589
|
t1 = space();
|
|
12343
12590
|
t2 = text(t2_value);
|
|
12344
12591
|
attr_dev(div, "class", "Remaining");
|
|
12345
|
-
add_location(div, file$5,
|
|
12592
|
+
add_location(div, file$5, 91, 14, 3405);
|
|
12346
12593
|
},
|
|
12347
12594
|
m: function mount(target, anchor) {
|
|
12348
12595
|
insert_dev(target, div, anchor);
|
|
@@ -12363,14 +12610,14 @@
|
|
|
12363
12610
|
block,
|
|
12364
12611
|
id: create_if_block_5$1.name,
|
|
12365
12612
|
type: "if",
|
|
12366
|
-
source: "(
|
|
12613
|
+
source: "(91:12) {#if diffHours}",
|
|
12367
12614
|
ctx
|
|
12368
12615
|
});
|
|
12369
12616
|
|
|
12370
12617
|
return block;
|
|
12371
12618
|
}
|
|
12372
12619
|
|
|
12373
|
-
// (
|
|
12620
|
+
// (94:12) {#if diffDays}
|
|
12374
12621
|
function create_if_block_4$2(ctx) {
|
|
12375
12622
|
let div;
|
|
12376
12623
|
let t0;
|
|
@@ -12385,7 +12632,7 @@
|
|
|
12385
12632
|
t1 = space();
|
|
12386
12633
|
t2 = text(t2_value);
|
|
12387
12634
|
attr_dev(div, "class", "Remaining");
|
|
12388
|
-
add_location(div, file$5,
|
|
12635
|
+
add_location(div, file$5, 94, 14, 3552);
|
|
12389
12636
|
},
|
|
12390
12637
|
m: function mount(target, anchor) {
|
|
12391
12638
|
insert_dev(target, div, anchor);
|
|
@@ -12406,7 +12653,7 @@
|
|
|
12406
12653
|
block,
|
|
12407
12654
|
id: create_if_block_4$2.name,
|
|
12408
12655
|
type: "if",
|
|
12409
|
-
source: "(
|
|
12656
|
+
source: "(94:12) {#if diffDays}",
|
|
12410
12657
|
ctx
|
|
12411
12658
|
});
|
|
12412
12659
|
|
|
@@ -12423,7 +12670,7 @@
|
|
|
12423
12670
|
if (if_block) if_block.c();
|
|
12424
12671
|
this.c = noop$1;
|
|
12425
12672
|
attr_dev(div, "class", "TournamentDuration");
|
|
12426
|
-
add_location(div, file$5,
|
|
12673
|
+
add_location(div, file$5, 70, 0, 2358);
|
|
12427
12674
|
},
|
|
12428
12675
|
l: function claim(nodes) {
|
|
12429
12676
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -12474,6 +12721,7 @@
|
|
|
12474
12721
|
let { startdate = "" } = $$props;
|
|
12475
12722
|
let { enddate = "" } = $$props;
|
|
12476
12723
|
let { status = "" } = $$props;
|
|
12724
|
+
let { lang = "en" } = $$props;
|
|
12477
12725
|
let startDate = "";
|
|
12478
12726
|
let endDate = "";
|
|
12479
12727
|
let tournamentDuration = "";
|
|
@@ -12492,7 +12740,7 @@
|
|
|
12492
12740
|
const formatDate = date => {
|
|
12493
12741
|
const dateOptions = { month: "long" };
|
|
12494
12742
|
let currentDate = new Date(date);
|
|
12495
|
-
let currentMonth = new Intl.DateTimeFormat(
|
|
12743
|
+
let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
|
|
12496
12744
|
let currentDay = currentDate.getDate();
|
|
12497
12745
|
return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${currentDate.getUTCFullYear()}`;
|
|
12498
12746
|
};
|
|
@@ -12540,7 +12788,7 @@
|
|
|
12540
12788
|
}
|
|
12541
12789
|
};
|
|
12542
12790
|
|
|
12543
|
-
const writable_props = ["startdate", "enddate", "status"];
|
|
12791
|
+
const writable_props = ["startdate", "enddate", "status", "lang"];
|
|
12544
12792
|
|
|
12545
12793
|
Object_1$4.keys($$props).forEach(key => {
|
|
12546
12794
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -12550,6 +12798,7 @@
|
|
|
12550
12798
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
12551
12799
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
12552
12800
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
12801
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
12553
12802
|
};
|
|
12554
12803
|
|
|
12555
12804
|
$$self.$capture_state = () => ({
|
|
@@ -12560,6 +12809,7 @@
|
|
|
12560
12809
|
startdate,
|
|
12561
12810
|
enddate,
|
|
12562
12811
|
status,
|
|
12812
|
+
lang,
|
|
12563
12813
|
startDate,
|
|
12564
12814
|
endDate,
|
|
12565
12815
|
tournamentDuration,
|
|
@@ -12582,6 +12832,7 @@
|
|
|
12582
12832
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
12583
12833
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
12584
12834
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
12835
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
12585
12836
|
if ("startDate" in $$props) $$invalidate(3, startDate = $$props.startDate);
|
|
12586
12837
|
if ("endDate" in $$props) $$invalidate(4, endDate = $$props.endDate);
|
|
12587
12838
|
if ("tournamentDuration" in $$props) tournamentDuration = $$props.tournamentDuration;
|
|
@@ -12613,7 +12864,8 @@
|
|
|
12613
12864
|
$_,
|
|
12614
12865
|
formatStartDate,
|
|
12615
12866
|
formatEndDate,
|
|
12616
|
-
getDuration
|
|
12867
|
+
getDuration,
|
|
12868
|
+
lang
|
|
12617
12869
|
];
|
|
12618
12870
|
}
|
|
12619
12871
|
|
|
@@ -12632,7 +12884,12 @@
|
|
|
12632
12884
|
instance$5,
|
|
12633
12885
|
create_fragment$5,
|
|
12634
12886
|
safe_not_equal,
|
|
12635
|
-
{
|
|
12887
|
+
{
|
|
12888
|
+
startdate: 0,
|
|
12889
|
+
enddate: 1,
|
|
12890
|
+
status: 2,
|
|
12891
|
+
lang: 15
|
|
12892
|
+
}
|
|
12636
12893
|
);
|
|
12637
12894
|
|
|
12638
12895
|
if (options) {
|
|
@@ -12648,7 +12905,7 @@
|
|
|
12648
12905
|
}
|
|
12649
12906
|
|
|
12650
12907
|
static get observedAttributes() {
|
|
12651
|
-
return ["startdate", "enddate", "status"];
|
|
12908
|
+
return ["startdate", "enddate", "status", "lang"];
|
|
12652
12909
|
}
|
|
12653
12910
|
|
|
12654
12911
|
get startdate() {
|
|
@@ -12677,6 +12934,15 @@
|
|
|
12677
12934
|
this.$set({ status });
|
|
12678
12935
|
flush();
|
|
12679
12936
|
}
|
|
12937
|
+
|
|
12938
|
+
get lang() {
|
|
12939
|
+
return this.$$.ctx[15];
|
|
12940
|
+
}
|
|
12941
|
+
|
|
12942
|
+
set lang(lang) {
|
|
12943
|
+
this.$set({ lang });
|
|
12944
|
+
flush();
|
|
12945
|
+
}
|
|
12680
12946
|
}
|
|
12681
12947
|
|
|
12682
12948
|
!customElements.get('casino-tournaments-thumbnail-duration') && customElements.define('casino-tournaments-thumbnail-duration', CasinoTournmanetsThumbnailDuration);
|
|
@@ -12694,8 +12960,8 @@
|
|
|
12694
12960
|
},
|
|
12695
12961
|
tr: {
|
|
12696
12962
|
tournamentsPrizes: {
|
|
12697
|
-
prizes: '
|
|
12698
|
-
noprizes: '
|
|
12963
|
+
prizes: 'Ödüller',
|
|
12964
|
+
noprizes: 'Geçerli ödül yok'
|
|
12699
12965
|
}
|
|
12700
12966
|
},
|
|
12701
12967
|
};
|
|
@@ -12712,6 +12978,13 @@
|
|
|
12712
12978
|
return child_ctx;
|
|
12713
12979
|
}
|
|
12714
12980
|
|
|
12981
|
+
function get_each_context_1(ctx, list, i) {
|
|
12982
|
+
const child_ctx = ctx.slice();
|
|
12983
|
+
child_ctx[7] = list[i];
|
|
12984
|
+
child_ctx[9] = i;
|
|
12985
|
+
return child_ctx;
|
|
12986
|
+
}
|
|
12987
|
+
|
|
12715
12988
|
// (28:2) {#if prizes}
|
|
12716
12989
|
function create_if_block$4(ctx) {
|
|
12717
12990
|
let div;
|
|
@@ -12809,7 +13082,7 @@
|
|
|
12809
13082
|
return block;
|
|
12810
13083
|
}
|
|
12811
13084
|
|
|
12812
|
-
// (
|
|
13085
|
+
// (36:6) {:else}
|
|
12813
13086
|
function create_else_block$3(ctx) {
|
|
12814
13087
|
let p;
|
|
12815
13088
|
let t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "";
|
|
@@ -12819,7 +13092,7 @@
|
|
|
12819
13092
|
c: function create() {
|
|
12820
13093
|
p = element("p");
|
|
12821
13094
|
t = text(t_value);
|
|
12822
|
-
add_location(p, file$4,
|
|
13095
|
+
add_location(p, file$4, 36, 8, 2044);
|
|
12823
13096
|
},
|
|
12824
13097
|
m: function mount(target, anchor) {
|
|
12825
13098
|
insert_dev(target, p, anchor);
|
|
@@ -12837,19 +13110,19 @@
|
|
|
12837
13110
|
block,
|
|
12838
13111
|
id: create_else_block$3.name,
|
|
12839
13112
|
type: "else",
|
|
12840
|
-
source: "(
|
|
13113
|
+
source: "(36:6) {:else}",
|
|
12841
13114
|
ctx
|
|
12842
13115
|
});
|
|
12843
13116
|
|
|
12844
13117
|
return block;
|
|
12845
13118
|
}
|
|
12846
13119
|
|
|
12847
|
-
// (
|
|
12848
|
-
function
|
|
13120
|
+
// (31:8) {#each {length:prize.count} as _, i}
|
|
13121
|
+
function create_each_block_1(ctx) {
|
|
12849
13122
|
let div;
|
|
12850
13123
|
let p;
|
|
12851
13124
|
let span;
|
|
12852
|
-
let t0_value = /*prize*/ ctx[4].rank + "";
|
|
13125
|
+
let t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "";
|
|
12853
13126
|
let t0;
|
|
12854
13127
|
let t1;
|
|
12855
13128
|
let t2_value = /*prize*/ ctx[4].name + "";
|
|
@@ -12865,10 +13138,10 @@
|
|
|
12865
13138
|
t1 = space();
|
|
12866
13139
|
t2 = text(t2_value);
|
|
12867
13140
|
t3 = space();
|
|
12868
|
-
add_location(span, file$4,
|
|
12869
|
-
add_location(p, file$4,
|
|
13141
|
+
add_location(span, file$4, 32, 15, 1942);
|
|
13142
|
+
add_location(p, file$4, 32, 12, 1939);
|
|
12870
13143
|
attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[6]);
|
|
12871
|
-
add_location(div, file$4,
|
|
13144
|
+
add_location(div, file$4, 31, 10, 1894);
|
|
12872
13145
|
},
|
|
12873
13146
|
m: function mount(target, anchor) {
|
|
12874
13147
|
insert_dev(target, div, anchor);
|
|
@@ -12880,7 +13153,7 @@
|
|
|
12880
13153
|
append_dev(div, t3);
|
|
12881
13154
|
},
|
|
12882
13155
|
p: function update(ctx, dirty) {
|
|
12883
|
-
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + "")) set_data_dev(t0, t0_value);
|
|
13156
|
+
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "")) set_data_dev(t0, t0_value);
|
|
12884
13157
|
if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[4].name + "")) set_data_dev(t2, t2_value);
|
|
12885
13158
|
},
|
|
12886
13159
|
d: function destroy(detaching) {
|
|
@@ -12888,6 +13161,74 @@
|
|
|
12888
13161
|
}
|
|
12889
13162
|
};
|
|
12890
13163
|
|
|
13164
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
13165
|
+
block,
|
|
13166
|
+
id: create_each_block_1.name,
|
|
13167
|
+
type: "each",
|
|
13168
|
+
source: "(31:8) {#each {length:prize.count} as _, i}",
|
|
13169
|
+
ctx
|
|
13170
|
+
});
|
|
13171
|
+
|
|
13172
|
+
return block;
|
|
13173
|
+
}
|
|
13174
|
+
|
|
13175
|
+
// (30:6) {#each prizes as prize, index}
|
|
13176
|
+
function create_each_block$2(ctx) {
|
|
13177
|
+
let each_1_anchor;
|
|
13178
|
+
let each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
13179
|
+
validate_each_argument(each_value_1);
|
|
13180
|
+
let each_blocks = [];
|
|
13181
|
+
|
|
13182
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
13183
|
+
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
13184
|
+
}
|
|
13185
|
+
|
|
13186
|
+
const block = {
|
|
13187
|
+
c: function create() {
|
|
13188
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13189
|
+
each_blocks[i].c();
|
|
13190
|
+
}
|
|
13191
|
+
|
|
13192
|
+
each_1_anchor = empty();
|
|
13193
|
+
},
|
|
13194
|
+
m: function mount(target, anchor) {
|
|
13195
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13196
|
+
each_blocks[i].m(target, anchor);
|
|
13197
|
+
}
|
|
13198
|
+
|
|
13199
|
+
insert_dev(target, each_1_anchor, anchor);
|
|
13200
|
+
},
|
|
13201
|
+
p: function update(ctx, dirty) {
|
|
13202
|
+
if (dirty & /*prizes*/ 1) {
|
|
13203
|
+
each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
13204
|
+
validate_each_argument(each_value_1);
|
|
13205
|
+
let i;
|
|
13206
|
+
|
|
13207
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
13208
|
+
const child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
13209
|
+
|
|
13210
|
+
if (each_blocks[i]) {
|
|
13211
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
13212
|
+
} else {
|
|
13213
|
+
each_blocks[i] = create_each_block_1(child_ctx);
|
|
13214
|
+
each_blocks[i].c();
|
|
13215
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
13216
|
+
}
|
|
13217
|
+
}
|
|
13218
|
+
|
|
13219
|
+
for (; i < each_blocks.length; i += 1) {
|
|
13220
|
+
each_blocks[i].d(1);
|
|
13221
|
+
}
|
|
13222
|
+
|
|
13223
|
+
each_blocks.length = each_value_1.length;
|
|
13224
|
+
}
|
|
13225
|
+
},
|
|
13226
|
+
d: function destroy(detaching) {
|
|
13227
|
+
destroy_each(each_blocks, detaching);
|
|
13228
|
+
if (detaching) detach_dev(each_1_anchor);
|
|
13229
|
+
}
|
|
13230
|
+
};
|
|
13231
|
+
|
|
12891
13232
|
dispatch_dev("SvelteRegisterBlock", {
|
|
12892
13233
|
block,
|
|
12893
13234
|
id: create_each_block$2.name,
|
|
@@ -13153,32 +13494,32 @@
|
|
|
13153
13494
|
attr_dev(path0, "stroke-linejoin", "round");
|
|
13154
13495
|
attr_dev(path0, "stroke-width", "2");
|
|
13155
13496
|
attr_dev(path0, "d", "M15 19l-7-7 7-7");
|
|
13156
|
-
add_location(path0, file$3, 113, 8,
|
|
13497
|
+
add_location(path0, file$3, 113, 8, 3423);
|
|
13157
13498
|
attr_dev(svg0, "fill", "none");
|
|
13158
13499
|
attr_dev(svg0, "stroke", "currentColor");
|
|
13159
13500
|
attr_dev(svg0, "viewBox", "0 0 24 24");
|
|
13160
13501
|
attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
|
|
13161
|
-
add_location(svg0, file$3, 112, 6,
|
|
13502
|
+
add_location(svg0, file$3, 112, 6, 3320);
|
|
13162
13503
|
attr_dev(div0, "class", "SliderNavButton");
|
|
13163
13504
|
toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
|
|
13164
|
-
add_location(div0, file$3, 111, 4,
|
|
13505
|
+
add_location(div0, file$3, 111, 4, 3231);
|
|
13165
13506
|
attr_dev(div1, "class", "items");
|
|
13166
13507
|
set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
|
|
13167
|
-
add_location(div1, file$3, 117, 6,
|
|
13168
|
-
add_location(main, file$3, 116, 4,
|
|
13508
|
+
add_location(div1, file$3, 117, 6, 3562);
|
|
13509
|
+
add_location(main, file$3, 116, 4, 3549);
|
|
13169
13510
|
attr_dev(path1, "stroke-linecap", "round");
|
|
13170
13511
|
attr_dev(path1, "stroke-linejoin", "round");
|
|
13171
13512
|
attr_dev(path1, "stroke-width", "2");
|
|
13172
13513
|
attr_dev(path1, "d", "M9 5l7 7-7 7");
|
|
13173
|
-
add_location(path1, file$3, 128, 8,
|
|
13514
|
+
add_location(path1, file$3, 128, 8, 4240);
|
|
13174
13515
|
attr_dev(svg1, "fill", "none");
|
|
13175
13516
|
attr_dev(svg1, "stroke", "currentColor");
|
|
13176
13517
|
attr_dev(svg1, "viewBox", "0 0 24 24");
|
|
13177
13518
|
attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
|
|
13178
|
-
add_location(svg1, file$3, 127, 6,
|
|
13519
|
+
add_location(svg1, file$3, 127, 6, 4137);
|
|
13179
13520
|
attr_dev(div2, "class", "SliderNavButton");
|
|
13180
13521
|
toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
|
|
13181
|
-
add_location(div2, file$3, 126, 4,
|
|
13522
|
+
add_location(div2, file$3, 126, 4, 4051);
|
|
13182
13523
|
},
|
|
13183
13524
|
m: function mount(target, anchor) {
|
|
13184
13525
|
insert_dev(target, div0, anchor);
|
|
@@ -13302,15 +13643,15 @@
|
|
|
13302
13643
|
? "itemHover"
|
|
13303
13644
|
: ""));
|
|
13304
13645
|
|
|
13305
|
-
add_location(span, file$3, 120, 12,
|
|
13646
|
+
add_location(span, file$3, 120, 12, 3795);
|
|
13306
13647
|
if (img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) attr_dev(img, "src", img_src_value);
|
|
13307
13648
|
attr_dev(img, "width", "132px");
|
|
13308
13649
|
attr_dev(img, "height", "100px");
|
|
13309
13650
|
attr_dev(img, "alt", img_alt_value = /*game*/ ctx[34].name);
|
|
13310
13651
|
attr_dev(img, "title", img_title_value = /*game*/ ctx[34].name);
|
|
13311
|
-
add_location(img, file$3, 121, 12,
|
|
13652
|
+
add_location(img, file$3, 121, 12, 3898);
|
|
13312
13653
|
attr_dev(div, "class", "item");
|
|
13313
|
-
add_location(div, file$3, 119, 10,
|
|
13654
|
+
add_location(div, file$3, 119, 10, 3668);
|
|
13314
13655
|
},
|
|
13315
13656
|
m: function mount(target, anchor) {
|
|
13316
13657
|
insert_dev(target, div, anchor);
|
|
@@ -13379,7 +13720,7 @@
|
|
|
13379
13720
|
if (if_block) if_block.c();
|
|
13380
13721
|
this.c = noop$1;
|
|
13381
13722
|
attr_dev(div, "class", "TournamentsGamesSlider");
|
|
13382
|
-
add_location(div, file$3, 109, 0,
|
|
13723
|
+
add_location(div, file$3, 109, 0, 3157);
|
|
13383
13724
|
},
|
|
13384
13725
|
l: function claim(nodes) {
|
|
13385
13726
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -13443,7 +13784,7 @@
|
|
|
13443
13784
|
let xDown = null;
|
|
13444
13785
|
let yDown = null;
|
|
13445
13786
|
let hover = false;
|
|
13446
|
-
let hoverIndex
|
|
13787
|
+
let hoverIndex;
|
|
13447
13788
|
|
|
13448
13789
|
const enter = index => {
|
|
13449
13790
|
$$invalidate(3, hover = true);
|
|
@@ -13763,17 +14104,17 @@
|
|
|
13763
14104
|
let t2;
|
|
13764
14105
|
let t3;
|
|
13765
14106
|
let div1_class_value;
|
|
13766
|
-
let if_block0 = /*isLoggedIn*/ ctx[
|
|
14107
|
+
let if_block0 = /*isLoggedIn*/ ctx[9] && create_if_block_10(ctx);
|
|
13767
14108
|
|
|
13768
14109
|
function select_block_type_1(ctx, dirty) {
|
|
13769
|
-
if (!/*isLoggedIn*/ ctx[
|
|
13770
|
-
if (/*status*/ ctx[
|
|
14110
|
+
if (!/*isLoggedIn*/ ctx[9]) return create_if_block_3$1;
|
|
14111
|
+
if (/*status*/ ctx[17] != "Closed" && /*status*/ ctx[17] != "Closing") return create_if_block_4$1;
|
|
13771
14112
|
if (/*showdetails*/ ctx[3] == "true") return create_if_block_9;
|
|
13772
14113
|
}
|
|
13773
14114
|
|
|
13774
14115
|
let current_block_type = select_block_type_1(ctx);
|
|
13775
14116
|
let if_block1 = current_block_type && current_block_type(ctx);
|
|
13776
|
-
let if_block2 = /*errorJoin*/ ctx[
|
|
14117
|
+
let if_block2 = /*errorJoin*/ ctx[12] && create_if_block_2$1(ctx);
|
|
13777
14118
|
let if_block3 = /*showslider*/ ctx[4] == "true" && create_if_block_1$1(ctx);
|
|
13778
14119
|
|
|
13779
14120
|
const block = {
|
|
@@ -13791,21 +14132,21 @@
|
|
|
13791
14132
|
if (if_block3) if_block3.c();
|
|
13792
14133
|
set_custom_element_data(casino_tournaments_thumbnail, "session", /*session*/ ctx[0]);
|
|
13793
14134
|
set_custom_element_data(casino_tournaments_thumbnail, "userid", /*userid*/ ctx[1]);
|
|
13794
|
-
set_custom_element_data(casino_tournaments_thumbnail, "title", /*title*/ ctx[
|
|
13795
|
-
set_custom_element_data(casino_tournaments_thumbnail, "status", /*status*/ ctx[
|
|
13796
|
-
set_custom_element_data(casino_tournaments_thumbnail, "startdate", /*startdate*/ ctx[
|
|
13797
|
-
set_custom_element_data(casino_tournaments_thumbnail, "tourid", /*tourid*/ ctx[
|
|
13798
|
-
set_custom_element_data(casino_tournaments_thumbnail, "scorecriteria", /*scorecriteria*/ ctx[
|
|
13799
|
-
set_custom_element_data(casino_tournaments_thumbnail, "minbetcount", /*minbetcount*/ ctx[
|
|
13800
|
-
set_custom_element_data(casino_tournaments_thumbnail, "thumbnail", /*thumbnail*/ ctx[
|
|
13801
|
-
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[
|
|
14135
|
+
set_custom_element_data(casino_tournaments_thumbnail, "title", /*title*/ ctx[14]);
|
|
14136
|
+
set_custom_element_data(casino_tournaments_thumbnail, "status", /*status*/ ctx[17]);
|
|
14137
|
+
set_custom_element_data(casino_tournaments_thumbnail, "startdate", /*startdate*/ ctx[15]);
|
|
14138
|
+
set_custom_element_data(casino_tournaments_thumbnail, "tourid", /*tourid*/ ctx[18]);
|
|
14139
|
+
set_custom_element_data(casino_tournaments_thumbnail, "scorecriteria", /*scorecriteria*/ ctx[21]);
|
|
14140
|
+
set_custom_element_data(casino_tournaments_thumbnail, "minbetcount", /*minbetcount*/ ctx[22]);
|
|
14141
|
+
set_custom_element_data(casino_tournaments_thumbnail, "thumbnail", /*thumbnail*/ ctx[19]);
|
|
14142
|
+
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[20]);
|
|
13802
14143
|
set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
|
|
13803
|
-
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[
|
|
13804
|
-
add_location(casino_tournaments_thumbnail, file$2, 199, 4,
|
|
14144
|
+
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
|
|
14145
|
+
add_location(casino_tournaments_thumbnail, file$2, 199, 4, 6071);
|
|
13805
14146
|
attr_dev(div0, "class", "TournamentButtons");
|
|
13806
|
-
add_location(div0, file$2,
|
|
14147
|
+
add_location(div0, file$2, 229, 4, 6897);
|
|
13807
14148
|
attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
13808
|
-
add_location(div1, file$2, 198, 2,
|
|
14149
|
+
add_location(div1, file$2, 198, 2, 5973);
|
|
13809
14150
|
},
|
|
13810
14151
|
m: function mount(target, anchor) {
|
|
13811
14152
|
insert_dev(target, div1, anchor);
|
|
@@ -13829,47 +14170,47 @@
|
|
|
13829
14170
|
set_custom_element_data(casino_tournaments_thumbnail, "userid", /*userid*/ ctx[1]);
|
|
13830
14171
|
}
|
|
13831
14172
|
|
|
13832
|
-
if (dirty[0] & /*title*/
|
|
13833
|
-
set_custom_element_data(casino_tournaments_thumbnail, "title", /*title*/ ctx[
|
|
14173
|
+
if (dirty[0] & /*title*/ 16384) {
|
|
14174
|
+
set_custom_element_data(casino_tournaments_thumbnail, "title", /*title*/ ctx[14]);
|
|
13834
14175
|
}
|
|
13835
14176
|
|
|
13836
|
-
if (dirty[0] & /*status*/
|
|
13837
|
-
set_custom_element_data(casino_tournaments_thumbnail, "status", /*status*/ ctx[
|
|
14177
|
+
if (dirty[0] & /*status*/ 131072) {
|
|
14178
|
+
set_custom_element_data(casino_tournaments_thumbnail, "status", /*status*/ ctx[17]);
|
|
13838
14179
|
}
|
|
13839
14180
|
|
|
13840
|
-
if (dirty[0] & /*startdate*/
|
|
13841
|
-
set_custom_element_data(casino_tournaments_thumbnail, "startdate", /*startdate*/ ctx[
|
|
14181
|
+
if (dirty[0] & /*startdate*/ 32768) {
|
|
14182
|
+
set_custom_element_data(casino_tournaments_thumbnail, "startdate", /*startdate*/ ctx[15]);
|
|
13842
14183
|
}
|
|
13843
14184
|
|
|
13844
|
-
if (dirty[0] & /*tourid*/
|
|
13845
|
-
set_custom_element_data(casino_tournaments_thumbnail, "tourid", /*tourid*/ ctx[
|
|
14185
|
+
if (dirty[0] & /*tourid*/ 262144) {
|
|
14186
|
+
set_custom_element_data(casino_tournaments_thumbnail, "tourid", /*tourid*/ ctx[18]);
|
|
13846
14187
|
}
|
|
13847
14188
|
|
|
13848
|
-
if (dirty[0] & /*scorecriteria*/
|
|
13849
|
-
set_custom_element_data(casino_tournaments_thumbnail, "scorecriteria", /*scorecriteria*/ ctx[
|
|
14189
|
+
if (dirty[0] & /*scorecriteria*/ 2097152) {
|
|
14190
|
+
set_custom_element_data(casino_tournaments_thumbnail, "scorecriteria", /*scorecriteria*/ ctx[21]);
|
|
13850
14191
|
}
|
|
13851
14192
|
|
|
13852
|
-
if (dirty[0] & /*minbetcount*/
|
|
13853
|
-
set_custom_element_data(casino_tournaments_thumbnail, "minbetcount", /*minbetcount*/ ctx[
|
|
14193
|
+
if (dirty[0] & /*minbetcount*/ 4194304) {
|
|
14194
|
+
set_custom_element_data(casino_tournaments_thumbnail, "minbetcount", /*minbetcount*/ ctx[22]);
|
|
13854
14195
|
}
|
|
13855
14196
|
|
|
13856
|
-
if (dirty[0] & /*thumbnail*/
|
|
13857
|
-
set_custom_element_data(casino_tournaments_thumbnail, "thumbnail", /*thumbnail*/ ctx[
|
|
14197
|
+
if (dirty[0] & /*thumbnail*/ 524288) {
|
|
14198
|
+
set_custom_element_data(casino_tournaments_thumbnail, "thumbnail", /*thumbnail*/ ctx[19]);
|
|
13858
14199
|
}
|
|
13859
14200
|
|
|
13860
|
-
if (dirty[0] & /*userenrolled*/
|
|
13861
|
-
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[
|
|
14201
|
+
if (dirty[0] & /*userenrolled*/ 1048576) {
|
|
14202
|
+
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[20]);
|
|
13862
14203
|
}
|
|
13863
14204
|
|
|
13864
14205
|
if (dirty[0] & /*showenrolled*/ 32) {
|
|
13865
14206
|
set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
|
|
13866
14207
|
}
|
|
13867
14208
|
|
|
13868
|
-
if (dirty[0] & /*gameurl*/
|
|
13869
|
-
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[
|
|
14209
|
+
if (dirty[0] & /*gameurl*/ 16777216) {
|
|
14210
|
+
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
|
|
13870
14211
|
}
|
|
13871
14212
|
|
|
13872
|
-
if (/*isLoggedIn*/ ctx[
|
|
14213
|
+
if (/*isLoggedIn*/ ctx[9]) {
|
|
13873
14214
|
if (if_block0) {
|
|
13874
14215
|
if_block0.p(ctx, dirty);
|
|
13875
14216
|
} else {
|
|
@@ -13894,7 +14235,7 @@
|
|
|
13894
14235
|
}
|
|
13895
14236
|
}
|
|
13896
14237
|
|
|
13897
|
-
if (/*errorJoin*/ ctx[
|
|
14238
|
+
if (/*errorJoin*/ ctx[12]) {
|
|
13898
14239
|
if (if_block2) {
|
|
13899
14240
|
if_block2.p(ctx, dirty);
|
|
13900
14241
|
} else {
|
|
@@ -13993,29 +14334,29 @@
|
|
|
13993
14334
|
t6 = space();
|
|
13994
14335
|
div7 = element("div");
|
|
13995
14336
|
attr_dev(div0, "class", "ph-picture");
|
|
13996
|
-
add_location(div0, file$2, 184, 10,
|
|
14337
|
+
add_location(div0, file$2, 184, 10, 5535);
|
|
13997
14338
|
attr_dev(div1, "class", "ph-col-6 big");
|
|
13998
|
-
add_location(div1, file$2, 186, 12,
|
|
14339
|
+
add_location(div1, file$2, 186, 12, 5609);
|
|
13999
14340
|
attr_dev(div2, "class", "ph-col-4 empty big");
|
|
14000
|
-
add_location(div2, file$2, 187, 12,
|
|
14341
|
+
add_location(div2, file$2, 187, 12, 5654);
|
|
14001
14342
|
attr_dev(div3, "class", "ph-col-4");
|
|
14002
|
-
add_location(div3, file$2, 188, 12,
|
|
14343
|
+
add_location(div3, file$2, 188, 12, 5705);
|
|
14003
14344
|
attr_dev(div4, "class", "ph-col-8 empty");
|
|
14004
|
-
add_location(div4, file$2, 189, 12,
|
|
14345
|
+
add_location(div4, file$2, 189, 12, 5746);
|
|
14005
14346
|
attr_dev(div5, "class", "ph-col-6");
|
|
14006
|
-
add_location(div5, file$2, 190, 12,
|
|
14347
|
+
add_location(div5, file$2, 190, 12, 5793);
|
|
14007
14348
|
attr_dev(div6, "class", "ph-col-6 empty");
|
|
14008
|
-
add_location(div6, file$2, 191, 12,
|
|
14349
|
+
add_location(div6, file$2, 191, 12, 5834);
|
|
14009
14350
|
attr_dev(div7, "class", "ph-col-12");
|
|
14010
|
-
add_location(div7, file$2, 192, 12,
|
|
14351
|
+
add_location(div7, file$2, 192, 12, 5881);
|
|
14011
14352
|
attr_dev(div8, "class", "ph-row");
|
|
14012
|
-
add_location(div8, file$2, 185, 10,
|
|
14353
|
+
add_location(div8, file$2, 185, 10, 5576);
|
|
14013
14354
|
attr_dev(div9, "class", "ph-col-12");
|
|
14014
|
-
add_location(div9, file$2, 183, 8,
|
|
14355
|
+
add_location(div9, file$2, 183, 8, 5501);
|
|
14015
14356
|
attr_dev(div10, "class", "ph-item");
|
|
14016
|
-
add_location(div10, file$2, 182, 6,
|
|
14357
|
+
add_location(div10, file$2, 182, 6, 5471);
|
|
14017
14358
|
attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
14018
|
-
add_location(div11, file$2, 181, 2,
|
|
14359
|
+
add_location(div11, file$2, 181, 2, 5371);
|
|
14019
14360
|
},
|
|
14020
14361
|
m: function mount(target, anchor) {
|
|
14021
14362
|
insert_dev(target, div11, anchor);
|
|
@@ -14063,17 +14404,18 @@
|
|
|
14063
14404
|
function create_if_block_10(ctx) {
|
|
14064
14405
|
let t;
|
|
14065
14406
|
let casino_tournaments_thumbnail_duration;
|
|
14066
|
-
let if_block = /*tourid*/ ctx[
|
|
14407
|
+
let if_block = /*tourid*/ ctx[18] && create_if_block_11(ctx);
|
|
14067
14408
|
|
|
14068
14409
|
const block = {
|
|
14069
14410
|
c: function create() {
|
|
14070
14411
|
if (if_block) if_block.c();
|
|
14071
14412
|
t = space();
|
|
14072
14413
|
casino_tournaments_thumbnail_duration = element("casino-tournaments-thumbnail-duration");
|
|
14073
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[
|
|
14074
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[
|
|
14075
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "
|
|
14076
|
-
|
|
14414
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[17]);
|
|
14415
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
14416
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
14417
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
14418
|
+
add_location(casino_tournaments_thumbnail_duration, file$2, 222, 6, 6701);
|
|
14077
14419
|
},
|
|
14078
14420
|
m: function mount(target, anchor) {
|
|
14079
14421
|
if (if_block) if_block.m(target, anchor);
|
|
@@ -14081,7 +14423,7 @@
|
|
|
14081
14423
|
insert_dev(target, casino_tournaments_thumbnail_duration, anchor);
|
|
14082
14424
|
},
|
|
14083
14425
|
p: function update(ctx, dirty) {
|
|
14084
|
-
if (/*tourid*/ ctx[
|
|
14426
|
+
if (/*tourid*/ ctx[18]) {
|
|
14085
14427
|
if (if_block) {
|
|
14086
14428
|
if_block.p(ctx, dirty);
|
|
14087
14429
|
} else {
|
|
@@ -14094,16 +14436,20 @@
|
|
|
14094
14436
|
if_block = null;
|
|
14095
14437
|
}
|
|
14096
14438
|
|
|
14097
|
-
if (dirty[0] & /*status*/
|
|
14098
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[
|
|
14439
|
+
if (dirty[0] & /*status*/ 131072) {
|
|
14440
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[17]);
|
|
14441
|
+
}
|
|
14442
|
+
|
|
14443
|
+
if (dirty[0] & /*startdate*/ 32768) {
|
|
14444
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
14099
14445
|
}
|
|
14100
14446
|
|
|
14101
|
-
if (dirty[0] & /*
|
|
14102
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "
|
|
14447
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
14448
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
14103
14449
|
}
|
|
14104
14450
|
|
|
14105
|
-
if (dirty[0] & /*enddate*/
|
|
14106
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[
|
|
14451
|
+
if (dirty[0] & /*enddate*/ 65536) {
|
|
14452
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
14107
14453
|
}
|
|
14108
14454
|
},
|
|
14109
14455
|
d: function destroy(detaching) {
|
|
@@ -14134,23 +14480,23 @@
|
|
|
14134
14480
|
const block = {
|
|
14135
14481
|
c: function create() {
|
|
14136
14482
|
casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
|
|
14137
|
-
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[
|
|
14138
|
-
add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8,
|
|
14483
|
+
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[18]);
|
|
14484
|
+
add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8, 6519);
|
|
14139
14485
|
},
|
|
14140
14486
|
m: function mount(target, anchor) {
|
|
14141
14487
|
insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
|
|
14142
14488
|
|
|
14143
14489
|
if (!mounted) {
|
|
14144
|
-
dispose = action_destroyer(sendTournamentPrizes_action = /*sendTournamentPrizes*/ ctx[
|
|
14490
|
+
dispose = action_destroyer(sendTournamentPrizes_action = /*sendTournamentPrizes*/ ctx[30].call(null, casino_tournaments_thumbnail_prizes, /*tourid*/ ctx[18]));
|
|
14145
14491
|
mounted = true;
|
|
14146
14492
|
}
|
|
14147
14493
|
},
|
|
14148
14494
|
p: function update(ctx, dirty) {
|
|
14149
|
-
if (dirty[0] & /*tourid*/
|
|
14150
|
-
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[
|
|
14495
|
+
if (dirty[0] & /*tourid*/ 262144) {
|
|
14496
|
+
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[18]);
|
|
14151
14497
|
}
|
|
14152
14498
|
|
|
14153
|
-
if (sendTournamentPrizes_action && is_function(sendTournamentPrizes_action.update) && dirty[0] & /*tourid*/
|
|
14499
|
+
if (sendTournamentPrizes_action && is_function(sendTournamentPrizes_action.update) && dirty[0] & /*tourid*/ 262144) sendTournamentPrizes_action.update.call(null, /*tourid*/ ctx[18]);
|
|
14154
14500
|
},
|
|
14155
14501
|
d: function destroy(detaching) {
|
|
14156
14502
|
if (detaching) detach_dev(casino_tournaments_thumbnail_prizes);
|
|
@@ -14170,28 +14516,33 @@
|
|
|
14170
14516
|
return block;
|
|
14171
14517
|
}
|
|
14172
14518
|
|
|
14173
|
-
// (
|
|
14519
|
+
// (256:10) {#if showdetails == 'true'}
|
|
14174
14520
|
function create_if_block_9(ctx) {
|
|
14175
14521
|
let button;
|
|
14522
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
14523
|
+
let t;
|
|
14176
14524
|
let mounted;
|
|
14177
14525
|
let dispose;
|
|
14178
14526
|
|
|
14179
14527
|
const block = {
|
|
14180
14528
|
c: function create() {
|
|
14181
14529
|
button = element("button");
|
|
14182
|
-
|
|
14530
|
+
t = text(t_value);
|
|
14183
14531
|
attr_dev(button, "class", "DetailsLargeButton");
|
|
14184
|
-
add_location(button, file$2,
|
|
14532
|
+
add_location(button, file$2, 256, 12, 8513);
|
|
14185
14533
|
},
|
|
14186
14534
|
m: function mount(target, anchor) {
|
|
14187
14535
|
insert_dev(target, button, anchor);
|
|
14536
|
+
append_dev(button, t);
|
|
14188
14537
|
|
|
14189
14538
|
if (!mounted) {
|
|
14190
14539
|
dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[41], false, false, false);
|
|
14191
14540
|
mounted = true;
|
|
14192
14541
|
}
|
|
14193
14542
|
},
|
|
14194
|
-
p:
|
|
14543
|
+
p: function update(ctx, dirty) {
|
|
14544
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "")) set_data_dev(t, t_value);
|
|
14545
|
+
},
|
|
14195
14546
|
d: function destroy(detaching) {
|
|
14196
14547
|
if (detaching) detach_dev(button);
|
|
14197
14548
|
mounted = false;
|
|
@@ -14203,21 +14554,21 @@
|
|
|
14203
14554
|
block,
|
|
14204
14555
|
id: create_if_block_9.name,
|
|
14205
14556
|
type: "if",
|
|
14206
|
-
source: "(
|
|
14557
|
+
source: "(256:10) {#if showdetails == 'true'}",
|
|
14207
14558
|
ctx
|
|
14208
14559
|
});
|
|
14209
14560
|
|
|
14210
14561
|
return block;
|
|
14211
14562
|
}
|
|
14212
14563
|
|
|
14213
|
-
// (
|
|
14564
|
+
// (235:8) {#if status != 'Closed' && status != 'Closing'}
|
|
14214
14565
|
function create_if_block_4$1(ctx) {
|
|
14215
14566
|
let t;
|
|
14216
14567
|
let if_block1_anchor;
|
|
14217
14568
|
let if_block0 = /*showdetails*/ ctx[3] == "true" && create_if_block_8(ctx);
|
|
14218
14569
|
|
|
14219
14570
|
function select_block_type_2(ctx, dirty) {
|
|
14220
|
-
if (/*userenrolled*/ ctx[
|
|
14571
|
+
if (/*userenrolled*/ ctx[20] == true) return create_if_block_5;
|
|
14221
14572
|
return create_else_block_1$1;
|
|
14222
14573
|
}
|
|
14223
14574
|
|
|
@@ -14275,21 +14626,21 @@
|
|
|
14275
14626
|
block,
|
|
14276
14627
|
id: create_if_block_4$1.name,
|
|
14277
14628
|
type: "if",
|
|
14278
|
-
source: "(
|
|
14629
|
+
source: "(235:8) {#if status != 'Closed' && status != 'Closing'}",
|
|
14279
14630
|
ctx
|
|
14280
14631
|
});
|
|
14281
14632
|
|
|
14282
14633
|
return block;
|
|
14283
14634
|
}
|
|
14284
14635
|
|
|
14285
|
-
// (
|
|
14636
|
+
// (231:6) {#if !isLoggedIn}
|
|
14286
14637
|
function create_if_block_3$1(ctx) {
|
|
14287
14638
|
let button0;
|
|
14288
|
-
let t0_value = /*$_*/ ctx[
|
|
14639
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "";
|
|
14289
14640
|
let t0;
|
|
14290
14641
|
let t1;
|
|
14291
14642
|
let button1;
|
|
14292
|
-
let t2_value = /*$_*/ ctx[
|
|
14643
|
+
let t2_value = /*$_*/ ctx[25]("tournamentsThController.register") + "";
|
|
14293
14644
|
let t2;
|
|
14294
14645
|
let mounted;
|
|
14295
14646
|
let dispose;
|
|
@@ -14302,9 +14653,9 @@
|
|
|
14302
14653
|
button1 = element("button");
|
|
14303
14654
|
t2 = text(t2_value);
|
|
14304
14655
|
attr_dev(button0, "class", "LoginButton");
|
|
14305
|
-
add_location(button0, file$2,
|
|
14656
|
+
add_location(button0, file$2, 231, 8, 6961);
|
|
14306
14657
|
attr_dev(button1, "class", "RegisterButton");
|
|
14307
|
-
add_location(button1, file$2,
|
|
14658
|
+
add_location(button1, file$2, 232, 8, 7075);
|
|
14308
14659
|
},
|
|
14309
14660
|
m: function mount(target, anchor) {
|
|
14310
14661
|
insert_dev(target, button0, anchor);
|
|
@@ -14323,8 +14674,8 @@
|
|
|
14323
14674
|
}
|
|
14324
14675
|
},
|
|
14325
14676
|
p: function update(ctx, dirty) {
|
|
14326
|
-
if (dirty[0] & /*$_*/
|
|
14327
|
-
if (dirty[0] & /*$_*/
|
|
14677
|
+
if (dirty[0] & /*$_*/ 33554432 && t0_value !== (t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "")) set_data_dev(t0, t0_value);
|
|
14678
|
+
if (dirty[0] & /*$_*/ 33554432 && t2_value !== (t2_value = /*$_*/ ctx[25]("tournamentsThController.register") + "")) set_data_dev(t2, t2_value);
|
|
14328
14679
|
},
|
|
14329
14680
|
d: function destroy(detaching) {
|
|
14330
14681
|
if (detaching) detach_dev(button0);
|
|
@@ -14339,17 +14690,17 @@
|
|
|
14339
14690
|
block,
|
|
14340
14691
|
id: create_if_block_3$1.name,
|
|
14341
14692
|
type: "if",
|
|
14342
|
-
source: "(
|
|
14693
|
+
source: "(231:6) {#if !isLoggedIn}",
|
|
14343
14694
|
ctx
|
|
14344
14695
|
});
|
|
14345
14696
|
|
|
14346
14697
|
return block;
|
|
14347
14698
|
}
|
|
14348
14699
|
|
|
14349
|
-
// (
|
|
14700
|
+
// (236:10) {#if showdetails == 'true'}
|
|
14350
14701
|
function create_if_block_8(ctx) {
|
|
14351
14702
|
let button;
|
|
14352
|
-
let t_value = /*$_*/ ctx[
|
|
14703
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
14353
14704
|
let t;
|
|
14354
14705
|
let mounted;
|
|
14355
14706
|
let dispose;
|
|
@@ -14359,7 +14710,7 @@
|
|
|
14359
14710
|
button = element("button");
|
|
14360
14711
|
t = text(t_value);
|
|
14361
14712
|
attr_dev(button, "class", "DetailsButton");
|
|
14362
|
-
add_location(button, file$2,
|
|
14713
|
+
add_location(button, file$2, 236, 12, 7310);
|
|
14363
14714
|
},
|
|
14364
14715
|
m: function mount(target, anchor) {
|
|
14365
14716
|
insert_dev(target, button, anchor);
|
|
@@ -14371,7 +14722,7 @@
|
|
|
14371
14722
|
}
|
|
14372
14723
|
},
|
|
14373
14724
|
p: function update(ctx, dirty) {
|
|
14374
|
-
if (dirty[0] & /*$_*/
|
|
14725
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "")) set_data_dev(t, t_value);
|
|
14375
14726
|
},
|
|
14376
14727
|
d: function destroy(detaching) {
|
|
14377
14728
|
if (detaching) detach_dev(button);
|
|
@@ -14384,14 +14735,14 @@
|
|
|
14384
14735
|
block,
|
|
14385
14736
|
id: create_if_block_8.name,
|
|
14386
14737
|
type: "if",
|
|
14387
|
-
source: "(
|
|
14738
|
+
source: "(236:10) {#if showdetails == 'true'}",
|
|
14388
14739
|
ctx
|
|
14389
14740
|
});
|
|
14390
14741
|
|
|
14391
14742
|
return block;
|
|
14392
14743
|
}
|
|
14393
14744
|
|
|
14394
|
-
// (
|
|
14745
|
+
// (243:10) {:else}
|
|
14395
14746
|
function create_else_block_1$1(ctx) {
|
|
14396
14747
|
let button;
|
|
14397
14748
|
let button_class_value;
|
|
@@ -14399,7 +14750,7 @@
|
|
|
14399
14750
|
let dispose;
|
|
14400
14751
|
|
|
14401
14752
|
function select_block_type_3(ctx, dirty) {
|
|
14402
|
-
if (/*joinButtonLoading*/ ctx[
|
|
14753
|
+
if (/*joinButtonLoading*/ ctx[11] == true) return create_if_block_7;
|
|
14403
14754
|
return create_else_block_2$1;
|
|
14404
14755
|
}
|
|
14405
14756
|
|
|
@@ -14411,8 +14762,8 @@
|
|
|
14411
14762
|
button = element("button");
|
|
14412
14763
|
if_block.c();
|
|
14413
14764
|
attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
|
|
14414
|
-
button.disabled = /*errorJoin*/ ctx[
|
|
14415
|
-
add_location(button, file$2,
|
|
14765
|
+
button.disabled = /*errorJoin*/ ctx[12];
|
|
14766
|
+
add_location(button, file$2, 243, 12, 7673);
|
|
14416
14767
|
},
|
|
14417
14768
|
m: function mount(target, anchor) {
|
|
14418
14769
|
insert_dev(target, button, anchor);
|
|
@@ -14440,8 +14791,8 @@
|
|
|
14440
14791
|
attr_dev(button, "class", button_class_value);
|
|
14441
14792
|
}
|
|
14442
14793
|
|
|
14443
|
-
if (dirty[0] & /*errorJoin*/
|
|
14444
|
-
prop_dev(button, "disabled", /*errorJoin*/ ctx[
|
|
14794
|
+
if (dirty[0] & /*errorJoin*/ 4096) {
|
|
14795
|
+
prop_dev(button, "disabled", /*errorJoin*/ ctx[12]);
|
|
14445
14796
|
}
|
|
14446
14797
|
},
|
|
14447
14798
|
d: function destroy(detaching) {
|
|
@@ -14456,14 +14807,14 @@
|
|
|
14456
14807
|
block,
|
|
14457
14808
|
id: create_else_block_1$1.name,
|
|
14458
14809
|
type: "else",
|
|
14459
|
-
source: "(
|
|
14810
|
+
source: "(243:10) {:else}",
|
|
14460
14811
|
ctx
|
|
14461
14812
|
});
|
|
14462
14813
|
|
|
14463
14814
|
return block;
|
|
14464
14815
|
}
|
|
14465
14816
|
|
|
14466
|
-
// (
|
|
14817
|
+
// (239:10) {#if userenrolled == true}
|
|
14467
14818
|
function create_if_block_5(ctx) {
|
|
14468
14819
|
let if_block_anchor;
|
|
14469
14820
|
let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6(ctx);
|
|
@@ -14501,17 +14852,17 @@
|
|
|
14501
14852
|
block,
|
|
14502
14853
|
id: create_if_block_5.name,
|
|
14503
14854
|
type: "if",
|
|
14504
|
-
source: "(
|
|
14855
|
+
source: "(239:10) {#if userenrolled == true}",
|
|
14505
14856
|
ctx
|
|
14506
14857
|
});
|
|
14507
14858
|
|
|
14508
14859
|
return block;
|
|
14509
14860
|
}
|
|
14510
14861
|
|
|
14511
|
-
// (
|
|
14862
|
+
// (249:14) {:else}
|
|
14512
14863
|
function create_else_block_2$1(ctx) {
|
|
14513
14864
|
let span;
|
|
14514
|
-
let t0_value = /*$_*/ ctx[
|
|
14865
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "";
|
|
14515
14866
|
let t0;
|
|
14516
14867
|
let t1;
|
|
14517
14868
|
let svg;
|
|
@@ -14532,20 +14883,20 @@
|
|
|
14532
14883
|
t2 = text(".a{fill:#fff;}");
|
|
14533
14884
|
g = svg_element("g");
|
|
14534
14885
|
path = svg_element("path");
|
|
14535
|
-
add_location(span, file$2,
|
|
14536
|
-
add_location(style, file$2,
|
|
14537
|
-
add_location(defs, file$2,
|
|
14886
|
+
add_location(span, file$2, 249, 16, 8009);
|
|
14887
|
+
add_location(style, file$2, 250, 105, 8164);
|
|
14888
|
+
add_location(defs, file$2, 250, 99, 8158);
|
|
14538
14889
|
attr_dev(path, "class", "a");
|
|
14539
14890
|
attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
|
|
14540
14891
|
attr_dev(path, "transform", "translate(26 26) rotate(180)");
|
|
14541
|
-
add_location(path, file$2,
|
|
14892
|
+
add_location(path, file$2, 250, 185, 8244);
|
|
14542
14893
|
attr_dev(g, "transform", "translate(26 26) rotate(180)");
|
|
14543
|
-
add_location(g, file$2,
|
|
14894
|
+
add_location(g, file$2, 250, 141, 8200);
|
|
14544
14895
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
14545
14896
|
attr_dev(svg, "width", "26");
|
|
14546
14897
|
attr_dev(svg, "height", "26");
|
|
14547
14898
|
attr_dev(svg, "viewBox", "0 0 26 26");
|
|
14548
|
-
add_location(svg, file$2,
|
|
14899
|
+
add_location(svg, file$2, 250, 16, 8075);
|
|
14549
14900
|
},
|
|
14550
14901
|
m: function mount(target, anchor) {
|
|
14551
14902
|
insert_dev(target, span, anchor);
|
|
@@ -14559,7 +14910,7 @@
|
|
|
14559
14910
|
append_dev(g, path);
|
|
14560
14911
|
},
|
|
14561
14912
|
p: function update(ctx, dirty) {
|
|
14562
|
-
if (dirty[0] & /*$_*/
|
|
14913
|
+
if (dirty[0] & /*$_*/ 33554432 && t0_value !== (t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "")) set_data_dev(t0, t0_value);
|
|
14563
14914
|
},
|
|
14564
14915
|
d: function destroy(detaching) {
|
|
14565
14916
|
if (detaching) detach_dev(span);
|
|
@@ -14572,14 +14923,14 @@
|
|
|
14572
14923
|
block,
|
|
14573
14924
|
id: create_else_block_2$1.name,
|
|
14574
14925
|
type: "else",
|
|
14575
|
-
source: "(
|
|
14926
|
+
source: "(249:14) {:else}",
|
|
14576
14927
|
ctx
|
|
14577
14928
|
});
|
|
14578
14929
|
|
|
14579
14930
|
return block;
|
|
14580
14931
|
}
|
|
14581
14932
|
|
|
14582
|
-
// (
|
|
14933
|
+
// (245:14) {#if joinButtonLoading == true}
|
|
14583
14934
|
function create_if_block_7(ctx) {
|
|
14584
14935
|
let svg;
|
|
14585
14936
|
let circle;
|
|
@@ -14591,9 +14942,9 @@
|
|
|
14591
14942
|
attr_dev(circle, "cx", "20");
|
|
14592
14943
|
attr_dev(circle, "cy", "20");
|
|
14593
14944
|
attr_dev(circle, "r", "18");
|
|
14594
|
-
add_location(circle, file$2,
|
|
14945
|
+
add_location(circle, file$2, 246, 18, 7907);
|
|
14595
14946
|
attr_dev(svg, "class", "spinner");
|
|
14596
|
-
add_location(svg, file$2,
|
|
14947
|
+
add_location(svg, file$2, 245, 16, 7867);
|
|
14597
14948
|
},
|
|
14598
14949
|
m: function mount(target, anchor) {
|
|
14599
14950
|
insert_dev(target, svg, anchor);
|
|
@@ -14609,17 +14960,17 @@
|
|
|
14609
14960
|
block,
|
|
14610
14961
|
id: create_if_block_7.name,
|
|
14611
14962
|
type: "if",
|
|
14612
|
-
source: "(
|
|
14963
|
+
source: "(245:14) {#if joinButtonLoading == true}",
|
|
14613
14964
|
ctx
|
|
14614
14965
|
});
|
|
14615
14966
|
|
|
14616
14967
|
return block;
|
|
14617
14968
|
}
|
|
14618
14969
|
|
|
14619
|
-
// (
|
|
14970
|
+
// (240:12) {#if showdetails == 'true'}
|
|
14620
14971
|
function create_if_block_6(ctx) {
|
|
14621
14972
|
let button;
|
|
14622
|
-
let t_value = /*$_*/ ctx[
|
|
14973
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "";
|
|
14623
14974
|
let t;
|
|
14624
14975
|
|
|
14625
14976
|
const block = {
|
|
@@ -14628,14 +14979,14 @@
|
|
|
14628
14979
|
t = text(t_value);
|
|
14629
14980
|
attr_dev(button, "class", "EnrolledButton");
|
|
14630
14981
|
button.disabled = true;
|
|
14631
|
-
add_location(button, file$2,
|
|
14982
|
+
add_location(button, file$2, 240, 14, 7535);
|
|
14632
14983
|
},
|
|
14633
14984
|
m: function mount(target, anchor) {
|
|
14634
14985
|
insert_dev(target, button, anchor);
|
|
14635
14986
|
append_dev(button, t);
|
|
14636
14987
|
},
|
|
14637
14988
|
p: function update(ctx, dirty) {
|
|
14638
|
-
if (dirty[0] & /*$_*/
|
|
14989
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "")) set_data_dev(t, t_value);
|
|
14639
14990
|
},
|
|
14640
14991
|
d: function destroy(detaching) {
|
|
14641
14992
|
if (detaching) detach_dev(button);
|
|
@@ -14646,17 +14997,17 @@
|
|
|
14646
14997
|
block,
|
|
14647
14998
|
id: create_if_block_6.name,
|
|
14648
14999
|
type: "if",
|
|
14649
|
-
source: "(
|
|
15000
|
+
source: "(240:12) {#if showdetails == 'true'}",
|
|
14650
15001
|
ctx
|
|
14651
15002
|
});
|
|
14652
15003
|
|
|
14653
15004
|
return block;
|
|
14654
15005
|
}
|
|
14655
15006
|
|
|
14656
|
-
// (
|
|
15007
|
+
// (262:4) {#if errorJoin}
|
|
14657
15008
|
function create_if_block_2$1(ctx) {
|
|
14658
15009
|
let span;
|
|
14659
|
-
let t0_value = /*$_*/ ctx[
|
|
15010
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "";
|
|
14660
15011
|
let t0;
|
|
14661
15012
|
let t1;
|
|
14662
15013
|
let t2;
|
|
@@ -14666,9 +15017,9 @@
|
|
|
14666
15017
|
span = element("span");
|
|
14667
15018
|
t0 = text(t0_value);
|
|
14668
15019
|
t1 = space();
|
|
14669
|
-
t2 = text(/*errorJoinText*/ ctx[
|
|
15020
|
+
t2 = text(/*errorJoinText*/ ctx[13]);
|
|
14670
15021
|
attr_dev(span, "class", "ErrorText");
|
|
14671
|
-
add_location(span, file$2,
|
|
15022
|
+
add_location(span, file$2, 262, 6, 8715);
|
|
14672
15023
|
},
|
|
14673
15024
|
m: function mount(target, anchor) {
|
|
14674
15025
|
insert_dev(target, span, anchor);
|
|
@@ -14677,8 +15028,8 @@
|
|
|
14677
15028
|
append_dev(span, t2);
|
|
14678
15029
|
},
|
|
14679
15030
|
p: function update(ctx, dirty) {
|
|
14680
|
-
if (dirty[0] & /*$_*/
|
|
14681
|
-
if (dirty[0] & /*errorJoinText*/
|
|
15031
|
+
if (dirty[0] & /*$_*/ 33554432 && t0_value !== (t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "")) set_data_dev(t0, t0_value);
|
|
15032
|
+
if (dirty[0] & /*errorJoinText*/ 8192) set_data_dev(t2, /*errorJoinText*/ ctx[13]);
|
|
14682
15033
|
},
|
|
14683
15034
|
d: function destroy(detaching) {
|
|
14684
15035
|
if (detaching) detach_dev(span);
|
|
@@ -14689,14 +15040,14 @@
|
|
|
14689
15040
|
block,
|
|
14690
15041
|
id: create_if_block_2$1.name,
|
|
14691
15042
|
type: "if",
|
|
14692
|
-
source: "(
|
|
15043
|
+
source: "(262:4) {#if errorJoin}",
|
|
14693
15044
|
ctx
|
|
14694
15045
|
});
|
|
14695
15046
|
|
|
14696
15047
|
return block;
|
|
14697
15048
|
}
|
|
14698
15049
|
|
|
14699
|
-
// (
|
|
15050
|
+
// (265:4) {#if showslider == "true"}
|
|
14700
15051
|
function create_if_block_1$1(ctx) {
|
|
14701
15052
|
let casino_tournaments_thumbnail_games_slider;
|
|
14702
15053
|
|
|
@@ -14704,9 +15055,10 @@
|
|
|
14704
15055
|
c: function create() {
|
|
14705
15056
|
casino_tournaments_thumbnail_games_slider = element("casino-tournaments-thumbnail-games-slider");
|
|
14706
15057
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
|
|
15058
|
+
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
|
|
14707
15059
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
|
|
14708
15060
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
|
|
14709
|
-
add_location(casino_tournaments_thumbnail_games_slider, file$2,
|
|
15061
|
+
add_location(casino_tournaments_thumbnail_games_slider, file$2, 265, 6, 8851);
|
|
14710
15062
|
},
|
|
14711
15063
|
m: function mount(target, anchor) {
|
|
14712
15064
|
insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
|
|
@@ -14715,6 +15067,10 @@
|
|
|
14715
15067
|
if (dirty[0] & /*tournamenturl*/ 4) {
|
|
14716
15068
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
|
|
14717
15069
|
}
|
|
15070
|
+
|
|
15071
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
15072
|
+
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
|
|
15073
|
+
}
|
|
14718
15074
|
},
|
|
14719
15075
|
d: function destroy(detaching) {
|
|
14720
15076
|
if (detaching) detach_dev(casino_tournaments_thumbnail_games_slider);
|
|
@@ -14725,7 +15081,7 @@
|
|
|
14725
15081
|
block,
|
|
14726
15082
|
id: create_if_block_1$1.name,
|
|
14727
15083
|
type: "if",
|
|
14728
|
-
source: "(
|
|
15084
|
+
source: "(265:4) {#if showslider == \\\"true\\\"}",
|
|
14729
15085
|
ctx
|
|
14730
15086
|
});
|
|
14731
15087
|
|
|
@@ -14736,7 +15092,7 @@
|
|
|
14736
15092
|
let if_block_anchor;
|
|
14737
15093
|
|
|
14738
15094
|
function select_block_type(ctx, dirty) {
|
|
14739
|
-
if (/*isLoading*/ ctx[
|
|
15095
|
+
if (/*isLoading*/ ctx[10]) return create_if_block$2;
|
|
14740
15096
|
return create_else_block$2;
|
|
14741
15097
|
}
|
|
14742
15098
|
|
|
@@ -14791,7 +15147,7 @@
|
|
|
14791
15147
|
function instance$2($$self, $$props, $$invalidate) {
|
|
14792
15148
|
let $_;
|
|
14793
15149
|
validate_store(X, "_");
|
|
14794
|
-
component_subscribe($$self, X, $$value => $$invalidate(
|
|
15150
|
+
component_subscribe($$self, X, $$value => $$invalidate(25, $_ = $$value));
|
|
14795
15151
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
14796
15152
|
validate_slots("undefined", slots, []);
|
|
14797
15153
|
let { session = "" } = $$props;
|
|
@@ -14840,7 +15196,7 @@
|
|
|
14840
15196
|
|
|
14841
15197
|
const messageHandler = e => {
|
|
14842
15198
|
if (e.data && e.data.type == "UserSessionID") {
|
|
14843
|
-
$$invalidate(
|
|
15199
|
+
$$invalidate(9, isLoggedIn = true);
|
|
14844
15200
|
sessionID = e.data.session;
|
|
14845
15201
|
}
|
|
14846
15202
|
};
|
|
@@ -14887,7 +15243,7 @@
|
|
|
14887
15243
|
window.location.href
|
|
14888
15244
|
);
|
|
14889
15245
|
|
|
14890
|
-
$$invalidate(
|
|
15246
|
+
$$invalidate(11, joinButtonLoading = true);
|
|
14891
15247
|
let joinUrl = new URL(`${endpoint}/bonus/claim`);
|
|
14892
15248
|
let reqHeaders = new Headers();
|
|
14893
15249
|
let body = {};
|
|
@@ -14913,17 +15269,17 @@
|
|
|
14913
15269
|
fetch(joinUrl, requestOptions).then(res => res.json()).then(
|
|
14914
15270
|
data => {
|
|
14915
15271
|
if (data.success == true) {
|
|
14916
|
-
$$invalidate(
|
|
14917
|
-
$$invalidate(
|
|
15272
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15273
|
+
$$invalidate(20, userenrolled = true);
|
|
14918
15274
|
} else {
|
|
14919
|
-
$$invalidate(
|
|
14920
|
-
$$invalidate(
|
|
14921
|
-
$$invalidate(
|
|
15275
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15276
|
+
$$invalidate(13, errorJoinText = data.errorMessage);
|
|
15277
|
+
$$invalidate(12, errorJoin = true);
|
|
14922
15278
|
}
|
|
14923
15279
|
},
|
|
14924
15280
|
err => {
|
|
14925
|
-
$$invalidate(
|
|
14926
|
-
$$invalidate(
|
|
15281
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15282
|
+
$$invalidate(12, errorJoin = true);
|
|
14927
15283
|
}
|
|
14928
15284
|
);
|
|
14929
15285
|
};
|
|
@@ -14941,22 +15297,22 @@
|
|
|
14941
15297
|
|
|
14942
15298
|
// @TODO data type - tournament
|
|
14943
15299
|
const matchData = data => {
|
|
14944
|
-
$$invalidate(
|
|
14945
|
-
$$invalidate(
|
|
14946
|
-
$$invalidate(
|
|
14947
|
-
$$invalidate(
|
|
14948
|
-
$$invalidate(
|
|
14949
|
-
$$invalidate(
|
|
14950
|
-
$$invalidate(
|
|
14951
|
-
$$invalidate(
|
|
14952
|
-
$$invalidate(
|
|
15300
|
+
$$invalidate(14, title = data.nameOrTitle);
|
|
15301
|
+
$$invalidate(15, startdate = data.startTime);
|
|
15302
|
+
$$invalidate(16, enddate = data.endTime);
|
|
15303
|
+
$$invalidate(17, status = data.state);
|
|
15304
|
+
$$invalidate(18, tourid = data.id);
|
|
15305
|
+
$$invalidate(19, thumbnail = data.thumbnail);
|
|
15306
|
+
$$invalidate(20, userenrolled = data.playerEnrolled || false);
|
|
15307
|
+
$$invalidate(21, scorecriteria = data.scoreCriteria);
|
|
15308
|
+
$$invalidate(22, minbetcount = data.minBetCount);
|
|
14953
15309
|
prizes = data.prizes;
|
|
14954
|
-
$$invalidate(
|
|
14955
|
-
$$invalidate(
|
|
15310
|
+
$$invalidate(23, wallet = data.wallets || []);
|
|
15311
|
+
$$invalidate(24, gameurl = data.termsUrl || "#");
|
|
14956
15312
|
};
|
|
14957
15313
|
|
|
14958
15314
|
const getData = url => {
|
|
14959
|
-
$$invalidate(
|
|
15315
|
+
$$invalidate(10, isLoading = true);
|
|
14960
15316
|
let tournamentUrl = new URL(url);
|
|
14961
15317
|
let reqHeaders = new Headers();
|
|
14962
15318
|
tournamentUrl.searchParams.append("language", lang);
|
|
@@ -14969,7 +15325,7 @@
|
|
|
14969
15325
|
let requestOptions = { method: "GET", headers: reqHeaders };
|
|
14970
15326
|
|
|
14971
15327
|
fetch(tournamentUrl, requestOptions).then(res => res.json()).then(data => {
|
|
14972
|
-
$$invalidate(
|
|
15328
|
+
$$invalidate(10, isLoading = false);
|
|
14973
15329
|
matchData(data.item);
|
|
14974
15330
|
});
|
|
14975
15331
|
};
|
|
@@ -14977,19 +15333,19 @@
|
|
|
14977
15333
|
const setSession = () => {
|
|
14978
15334
|
if (session.length > 0 && session != "false") {
|
|
14979
15335
|
sessionID = session;
|
|
14980
|
-
$$invalidate(
|
|
15336
|
+
$$invalidate(9, isLoggedIn = true);
|
|
14981
15337
|
} else {
|
|
14982
|
-
$$invalidate(
|
|
15338
|
+
$$invalidate(9, isLoggedIn = false);
|
|
14983
15339
|
}
|
|
14984
15340
|
};
|
|
14985
15341
|
|
|
14986
15342
|
const initialLoad = () => {
|
|
14987
|
-
$$invalidate(
|
|
15343
|
+
$$invalidate(10, isLoading = true);
|
|
14988
15344
|
getData(tournamenturl);
|
|
14989
15345
|
};
|
|
14990
15346
|
|
|
14991
15347
|
onMount(() => {
|
|
14992
|
-
$$invalidate(
|
|
15348
|
+
$$invalidate(10, isLoading = false);
|
|
14993
15349
|
window.addEventListener("message", messageHandler, false);
|
|
14994
15350
|
|
|
14995
15351
|
return () => {
|
|
@@ -15029,13 +15385,13 @@
|
|
|
15029
15385
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
15030
15386
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
15031
15387
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
15032
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
15388
|
+
if ("endpoint" in $$props) $$invalidate(31, endpoint = $$props.endpoint);
|
|
15033
15389
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
15034
15390
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
15035
15391
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
15036
15392
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
15037
15393
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
15038
|
-
if ("lang" in $$props) $$invalidate(
|
|
15394
|
+
if ("lang" in $$props) $$invalidate(8, lang = $$props.lang);
|
|
15039
15395
|
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
15040
15396
|
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
15041
15397
|
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
@@ -15103,39 +15459,39 @@
|
|
|
15103
15459
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
15104
15460
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
15105
15461
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
15106
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
15462
|
+
if ("endpoint" in $$props) $$invalidate(31, endpoint = $$props.endpoint);
|
|
15107
15463
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
15108
15464
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
15109
15465
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
15110
15466
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
15111
15467
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
15112
|
-
if ("lang" in $$props) $$invalidate(
|
|
15468
|
+
if ("lang" in $$props) $$invalidate(8, lang = $$props.lang);
|
|
15113
15469
|
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
15114
15470
|
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
15115
15471
|
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
15116
15472
|
if ("registerurl" in $$props) $$invalidate(35, registerurl = $$props.registerurl);
|
|
15117
15473
|
if ("currency" in $$props) $$invalidate(36, currency = $$props.currency);
|
|
15118
15474
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
15119
|
-
if ("isLoggedIn" in $$props) $$invalidate(
|
|
15475
|
+
if ("isLoggedIn" in $$props) $$invalidate(9, isLoggedIn = $$props.isLoggedIn);
|
|
15120
15476
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
15121
15477
|
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
15122
|
-
if ("isLoading" in $$props) $$invalidate(
|
|
15478
|
+
if ("isLoading" in $$props) $$invalidate(10, isLoading = $$props.isLoading);
|
|
15123
15479
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
15124
|
-
if ("joinButtonLoading" in $$props) $$invalidate(
|
|
15125
|
-
if ("errorJoin" in $$props) $$invalidate(
|
|
15126
|
-
if ("errorJoinText" in $$props) $$invalidate(
|
|
15127
|
-
if ("title" in $$props) $$invalidate(
|
|
15128
|
-
if ("startdate" in $$props) $$invalidate(
|
|
15129
|
-
if ("enddate" in $$props) $$invalidate(
|
|
15130
|
-
if ("status" in $$props) $$invalidate(
|
|
15131
|
-
if ("tourid" in $$props) $$invalidate(
|
|
15132
|
-
if ("thumbnail" in $$props) $$invalidate(
|
|
15133
|
-
if ("userenrolled" in $$props) $$invalidate(
|
|
15134
|
-
if ("scorecriteria" in $$props) $$invalidate(
|
|
15135
|
-
if ("minbetcount" in $$props) $$invalidate(
|
|
15480
|
+
if ("joinButtonLoading" in $$props) $$invalidate(11, joinButtonLoading = $$props.joinButtonLoading);
|
|
15481
|
+
if ("errorJoin" in $$props) $$invalidate(12, errorJoin = $$props.errorJoin);
|
|
15482
|
+
if ("errorJoinText" in $$props) $$invalidate(13, errorJoinText = $$props.errorJoinText);
|
|
15483
|
+
if ("title" in $$props) $$invalidate(14, title = $$props.title);
|
|
15484
|
+
if ("startdate" in $$props) $$invalidate(15, startdate = $$props.startdate);
|
|
15485
|
+
if ("enddate" in $$props) $$invalidate(16, enddate = $$props.enddate);
|
|
15486
|
+
if ("status" in $$props) $$invalidate(17, status = $$props.status);
|
|
15487
|
+
if ("tourid" in $$props) $$invalidate(18, tourid = $$props.tourid);
|
|
15488
|
+
if ("thumbnail" in $$props) $$invalidate(19, thumbnail = $$props.thumbnail);
|
|
15489
|
+
if ("userenrolled" in $$props) $$invalidate(20, userenrolled = $$props.userenrolled);
|
|
15490
|
+
if ("scorecriteria" in $$props) $$invalidate(21, scorecriteria = $$props.scorecriteria);
|
|
15491
|
+
if ("minbetcount" in $$props) $$invalidate(22, minbetcount = $$props.minbetcount);
|
|
15136
15492
|
if ("prizes" in $$props) prizes = $$props.prizes;
|
|
15137
|
-
if ("wallet" in $$props) $$invalidate(
|
|
15138
|
-
if ("gameurl" in $$props) $$invalidate(
|
|
15493
|
+
if ("wallet" in $$props) $$invalidate(23, wallet = $$props.wallet);
|
|
15494
|
+
if ("gameurl" in $$props) $$invalidate(24, gameurl = $$props.gameurl);
|
|
15139
15495
|
};
|
|
15140
15496
|
|
|
15141
15497
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -15147,8 +15503,8 @@
|
|
|
15147
15503
|
session && setSession();
|
|
15148
15504
|
}
|
|
15149
15505
|
|
|
15150
|
-
if ($$self.$$.dirty[0] & /*tournamenturl*/
|
|
15151
|
-
tournamenturl && initialLoad();
|
|
15506
|
+
if ($$self.$$.dirty[0] & /*tournamenturl, lang*/ 260) {
|
|
15507
|
+
tournamenturl && lang && initialLoad();
|
|
15152
15508
|
}
|
|
15153
15509
|
};
|
|
15154
15510
|
|
|
@@ -15161,6 +15517,7 @@
|
|
|
15161
15517
|
showenrolled,
|
|
15162
15518
|
maxwidth,
|
|
15163
15519
|
fullsize,
|
|
15520
|
+
lang,
|
|
15164
15521
|
isLoggedIn,
|
|
15165
15522
|
isLoading,
|
|
15166
15523
|
joinButtonLoading,
|
|
@@ -15184,7 +15541,6 @@
|
|
|
15184
15541
|
joinAction,
|
|
15185
15542
|
sendTournamentPrizes,
|
|
15186
15543
|
endpoint,
|
|
15187
|
-
lang,
|
|
15188
15544
|
loginevent,
|
|
15189
15545
|
registerevent,
|
|
15190
15546
|
loginurl,
|
|
@@ -15217,13 +15573,13 @@
|
|
|
15217
15573
|
session: 0,
|
|
15218
15574
|
userid: 1,
|
|
15219
15575
|
tournamenturl: 2,
|
|
15220
|
-
endpoint:
|
|
15576
|
+
endpoint: 31,
|
|
15221
15577
|
showdetails: 3,
|
|
15222
15578
|
showslider: 4,
|
|
15223
15579
|
showenrolled: 5,
|
|
15224
15580
|
maxwidth: 6,
|
|
15225
15581
|
fullsize: 7,
|
|
15226
|
-
lang:
|
|
15582
|
+
lang: 8,
|
|
15227
15583
|
loginevent: 32,
|
|
15228
15584
|
registerevent: 33,
|
|
15229
15585
|
loginurl: 34,
|
|
@@ -15293,7 +15649,7 @@
|
|
|
15293
15649
|
}
|
|
15294
15650
|
|
|
15295
15651
|
get endpoint() {
|
|
15296
|
-
return this.$$.ctx[
|
|
15652
|
+
return this.$$.ctx[31];
|
|
15297
15653
|
}
|
|
15298
15654
|
|
|
15299
15655
|
set endpoint(endpoint) {
|
|
@@ -15347,7 +15703,7 @@
|
|
|
15347
15703
|
}
|
|
15348
15704
|
|
|
15349
15705
|
get lang() {
|
|
15350
|
-
return this.$$.ctx[
|
|
15706
|
+
return this.$$.ctx[8];
|
|
15351
15707
|
}
|
|
15352
15708
|
|
|
15353
15709
|
set lang(lang) {
|
|
@@ -16673,7 +17029,7 @@
|
|
|
16673
17029
|
const initialLoad = () => {
|
|
16674
17030
|
if (!checkAttrs()) {
|
|
16675
17031
|
tournamentsShownNumber = parseInt(numberoftournaments, 10);
|
|
16676
|
-
setLocale$
|
|
17032
|
+
setLocale$2(lang);
|
|
16677
17033
|
getData(endpoint, 0, tournamentsShownNumber);
|
|
16678
17034
|
}
|
|
16679
17035
|
};
|
|
@@ -16749,7 +17105,7 @@
|
|
|
16749
17105
|
getDevice,
|
|
16750
17106
|
_: X,
|
|
16751
17107
|
addNewMessages: addNewMessages$6,
|
|
16752
|
-
setLocale: setLocale$
|
|
17108
|
+
setLocale: setLocale$2,
|
|
16753
17109
|
setupI18n,
|
|
16754
17110
|
TournamentsControllerTranslations,
|
|
16755
17111
|
session,
|