@everymatrix/casino-tournaments-controller 0.0.117 → 0.0.121
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;
|
|
4883
5059
|
}
|
|
4884
5060
|
|
|
4885
|
-
if (
|
|
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
|
+
}
|
|
4886
5073
|
|
|
4887
|
-
if (
|
|
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;
|
|
5085
|
+
}
|
|
5086
|
+
|
|
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
|
+
}
|
|
5099
|
+
|
|
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]);
|
|
14099
14441
|
}
|
|
14100
14442
|
|
|
14101
|
-
if (dirty[0] & /*startdate*/
|
|
14102
|
-
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[
|
|
14443
|
+
if (dirty[0] & /*startdate*/ 32768) {
|
|
14444
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
14103
14445
|
}
|
|
14104
14446
|
|
|
14105
|
-
if (dirty[0] & /*
|
|
14106
|
-
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]);
|
|
14449
|
+
}
|
|
14450
|
+
|
|
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,10 +14516,10 @@
|
|
|
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;
|
|
14176
|
-
let t_value = /*$_*/ ctx[
|
|
14522
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
14177
14523
|
let t;
|
|
14178
14524
|
let mounted;
|
|
14179
14525
|
let dispose;
|
|
@@ -14183,7 +14529,7 @@
|
|
|
14183
14529
|
button = element("button");
|
|
14184
14530
|
t = text(t_value);
|
|
14185
14531
|
attr_dev(button, "class", "DetailsLargeButton");
|
|
14186
|
-
add_location(button, file$2,
|
|
14532
|
+
add_location(button, file$2, 256, 12, 8513);
|
|
14187
14533
|
},
|
|
14188
14534
|
m: function mount(target, anchor) {
|
|
14189
14535
|
insert_dev(target, button, anchor);
|
|
@@ -14195,7 +14541,7 @@
|
|
|
14195
14541
|
}
|
|
14196
14542
|
},
|
|
14197
14543
|
p: function update(ctx, dirty) {
|
|
14198
|
-
if (dirty[0] & /*$_*/
|
|
14544
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "")) set_data_dev(t, t_value);
|
|
14199
14545
|
},
|
|
14200
14546
|
d: function destroy(detaching) {
|
|
14201
14547
|
if (detaching) detach_dev(button);
|
|
@@ -14208,21 +14554,21 @@
|
|
|
14208
14554
|
block,
|
|
14209
14555
|
id: create_if_block_9.name,
|
|
14210
14556
|
type: "if",
|
|
14211
|
-
source: "(
|
|
14557
|
+
source: "(256:10) {#if showdetails == 'true'}",
|
|
14212
14558
|
ctx
|
|
14213
14559
|
});
|
|
14214
14560
|
|
|
14215
14561
|
return block;
|
|
14216
14562
|
}
|
|
14217
14563
|
|
|
14218
|
-
// (
|
|
14564
|
+
// (235:8) {#if status != 'Closed' && status != 'Closing'}
|
|
14219
14565
|
function create_if_block_4$1(ctx) {
|
|
14220
14566
|
let t;
|
|
14221
14567
|
let if_block1_anchor;
|
|
14222
14568
|
let if_block0 = /*showdetails*/ ctx[3] == "true" && create_if_block_8(ctx);
|
|
14223
14569
|
|
|
14224
14570
|
function select_block_type_2(ctx, dirty) {
|
|
14225
|
-
if (/*userenrolled*/ ctx[
|
|
14571
|
+
if (/*userenrolled*/ ctx[20] == true) return create_if_block_5;
|
|
14226
14572
|
return create_else_block_1$1;
|
|
14227
14573
|
}
|
|
14228
14574
|
|
|
@@ -14280,21 +14626,21 @@
|
|
|
14280
14626
|
block,
|
|
14281
14627
|
id: create_if_block_4$1.name,
|
|
14282
14628
|
type: "if",
|
|
14283
|
-
source: "(
|
|
14629
|
+
source: "(235:8) {#if status != 'Closed' && status != 'Closing'}",
|
|
14284
14630
|
ctx
|
|
14285
14631
|
});
|
|
14286
14632
|
|
|
14287
14633
|
return block;
|
|
14288
14634
|
}
|
|
14289
14635
|
|
|
14290
|
-
// (
|
|
14636
|
+
// (231:6) {#if !isLoggedIn}
|
|
14291
14637
|
function create_if_block_3$1(ctx) {
|
|
14292
14638
|
let button0;
|
|
14293
|
-
let t0_value = /*$_*/ ctx[
|
|
14639
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "";
|
|
14294
14640
|
let t0;
|
|
14295
14641
|
let t1;
|
|
14296
14642
|
let button1;
|
|
14297
|
-
let t2_value = /*$_*/ ctx[
|
|
14643
|
+
let t2_value = /*$_*/ ctx[25]("tournamentsThController.register") + "";
|
|
14298
14644
|
let t2;
|
|
14299
14645
|
let mounted;
|
|
14300
14646
|
let dispose;
|
|
@@ -14307,9 +14653,9 @@
|
|
|
14307
14653
|
button1 = element("button");
|
|
14308
14654
|
t2 = text(t2_value);
|
|
14309
14655
|
attr_dev(button0, "class", "LoginButton");
|
|
14310
|
-
add_location(button0, file$2,
|
|
14656
|
+
add_location(button0, file$2, 231, 8, 6961);
|
|
14311
14657
|
attr_dev(button1, "class", "RegisterButton");
|
|
14312
|
-
add_location(button1, file$2,
|
|
14658
|
+
add_location(button1, file$2, 232, 8, 7075);
|
|
14313
14659
|
},
|
|
14314
14660
|
m: function mount(target, anchor) {
|
|
14315
14661
|
insert_dev(target, button0, anchor);
|
|
@@ -14328,8 +14674,8 @@
|
|
|
14328
14674
|
}
|
|
14329
14675
|
},
|
|
14330
14676
|
p: function update(ctx, dirty) {
|
|
14331
|
-
if (dirty[0] & /*$_*/
|
|
14332
|
-
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);
|
|
14333
14679
|
},
|
|
14334
14680
|
d: function destroy(detaching) {
|
|
14335
14681
|
if (detaching) detach_dev(button0);
|
|
@@ -14344,17 +14690,17 @@
|
|
|
14344
14690
|
block,
|
|
14345
14691
|
id: create_if_block_3$1.name,
|
|
14346
14692
|
type: "if",
|
|
14347
|
-
source: "(
|
|
14693
|
+
source: "(231:6) {#if !isLoggedIn}",
|
|
14348
14694
|
ctx
|
|
14349
14695
|
});
|
|
14350
14696
|
|
|
14351
14697
|
return block;
|
|
14352
14698
|
}
|
|
14353
14699
|
|
|
14354
|
-
// (
|
|
14700
|
+
// (236:10) {#if showdetails == 'true'}
|
|
14355
14701
|
function create_if_block_8(ctx) {
|
|
14356
14702
|
let button;
|
|
14357
|
-
let t_value = /*$_*/ ctx[
|
|
14703
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
14358
14704
|
let t;
|
|
14359
14705
|
let mounted;
|
|
14360
14706
|
let dispose;
|
|
@@ -14364,7 +14710,7 @@
|
|
|
14364
14710
|
button = element("button");
|
|
14365
14711
|
t = text(t_value);
|
|
14366
14712
|
attr_dev(button, "class", "DetailsButton");
|
|
14367
|
-
add_location(button, file$2,
|
|
14713
|
+
add_location(button, file$2, 236, 12, 7310);
|
|
14368
14714
|
},
|
|
14369
14715
|
m: function mount(target, anchor) {
|
|
14370
14716
|
insert_dev(target, button, anchor);
|
|
@@ -14376,7 +14722,7 @@
|
|
|
14376
14722
|
}
|
|
14377
14723
|
},
|
|
14378
14724
|
p: function update(ctx, dirty) {
|
|
14379
|
-
if (dirty[0] & /*$_*/
|
|
14725
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "")) set_data_dev(t, t_value);
|
|
14380
14726
|
},
|
|
14381
14727
|
d: function destroy(detaching) {
|
|
14382
14728
|
if (detaching) detach_dev(button);
|
|
@@ -14389,14 +14735,14 @@
|
|
|
14389
14735
|
block,
|
|
14390
14736
|
id: create_if_block_8.name,
|
|
14391
14737
|
type: "if",
|
|
14392
|
-
source: "(
|
|
14738
|
+
source: "(236:10) {#if showdetails == 'true'}",
|
|
14393
14739
|
ctx
|
|
14394
14740
|
});
|
|
14395
14741
|
|
|
14396
14742
|
return block;
|
|
14397
14743
|
}
|
|
14398
14744
|
|
|
14399
|
-
// (
|
|
14745
|
+
// (243:10) {:else}
|
|
14400
14746
|
function create_else_block_1$1(ctx) {
|
|
14401
14747
|
let button;
|
|
14402
14748
|
let button_class_value;
|
|
@@ -14404,7 +14750,7 @@
|
|
|
14404
14750
|
let dispose;
|
|
14405
14751
|
|
|
14406
14752
|
function select_block_type_3(ctx, dirty) {
|
|
14407
|
-
if (/*joinButtonLoading*/ ctx[
|
|
14753
|
+
if (/*joinButtonLoading*/ ctx[11] == true) return create_if_block_7;
|
|
14408
14754
|
return create_else_block_2$1;
|
|
14409
14755
|
}
|
|
14410
14756
|
|
|
@@ -14416,8 +14762,8 @@
|
|
|
14416
14762
|
button = element("button");
|
|
14417
14763
|
if_block.c();
|
|
14418
14764
|
attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
|
|
14419
|
-
button.disabled = /*errorJoin*/ ctx[
|
|
14420
|
-
add_location(button, file$2,
|
|
14765
|
+
button.disabled = /*errorJoin*/ ctx[12];
|
|
14766
|
+
add_location(button, file$2, 243, 12, 7673);
|
|
14421
14767
|
},
|
|
14422
14768
|
m: function mount(target, anchor) {
|
|
14423
14769
|
insert_dev(target, button, anchor);
|
|
@@ -14445,8 +14791,8 @@
|
|
|
14445
14791
|
attr_dev(button, "class", button_class_value);
|
|
14446
14792
|
}
|
|
14447
14793
|
|
|
14448
|
-
if (dirty[0] & /*errorJoin*/
|
|
14449
|
-
prop_dev(button, "disabled", /*errorJoin*/ ctx[
|
|
14794
|
+
if (dirty[0] & /*errorJoin*/ 4096) {
|
|
14795
|
+
prop_dev(button, "disabled", /*errorJoin*/ ctx[12]);
|
|
14450
14796
|
}
|
|
14451
14797
|
},
|
|
14452
14798
|
d: function destroy(detaching) {
|
|
@@ -14461,14 +14807,14 @@
|
|
|
14461
14807
|
block,
|
|
14462
14808
|
id: create_else_block_1$1.name,
|
|
14463
14809
|
type: "else",
|
|
14464
|
-
source: "(
|
|
14810
|
+
source: "(243:10) {:else}",
|
|
14465
14811
|
ctx
|
|
14466
14812
|
});
|
|
14467
14813
|
|
|
14468
14814
|
return block;
|
|
14469
14815
|
}
|
|
14470
14816
|
|
|
14471
|
-
// (
|
|
14817
|
+
// (239:10) {#if userenrolled == true}
|
|
14472
14818
|
function create_if_block_5(ctx) {
|
|
14473
14819
|
let if_block_anchor;
|
|
14474
14820
|
let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6(ctx);
|
|
@@ -14506,17 +14852,17 @@
|
|
|
14506
14852
|
block,
|
|
14507
14853
|
id: create_if_block_5.name,
|
|
14508
14854
|
type: "if",
|
|
14509
|
-
source: "(
|
|
14855
|
+
source: "(239:10) {#if userenrolled == true}",
|
|
14510
14856
|
ctx
|
|
14511
14857
|
});
|
|
14512
14858
|
|
|
14513
14859
|
return block;
|
|
14514
14860
|
}
|
|
14515
14861
|
|
|
14516
|
-
// (
|
|
14862
|
+
// (249:14) {:else}
|
|
14517
14863
|
function create_else_block_2$1(ctx) {
|
|
14518
14864
|
let span;
|
|
14519
|
-
let t0_value = /*$_*/ ctx[
|
|
14865
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "";
|
|
14520
14866
|
let t0;
|
|
14521
14867
|
let t1;
|
|
14522
14868
|
let svg;
|
|
@@ -14537,20 +14883,20 @@
|
|
|
14537
14883
|
t2 = text(".a{fill:#fff;}");
|
|
14538
14884
|
g = svg_element("g");
|
|
14539
14885
|
path = svg_element("path");
|
|
14540
|
-
add_location(span, file$2,
|
|
14541
|
-
add_location(style, file$2,
|
|
14542
|
-
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);
|
|
14543
14889
|
attr_dev(path, "class", "a");
|
|
14544
14890
|
attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
|
|
14545
14891
|
attr_dev(path, "transform", "translate(26 26) rotate(180)");
|
|
14546
|
-
add_location(path, file$2,
|
|
14892
|
+
add_location(path, file$2, 250, 185, 8244);
|
|
14547
14893
|
attr_dev(g, "transform", "translate(26 26) rotate(180)");
|
|
14548
|
-
add_location(g, file$2,
|
|
14894
|
+
add_location(g, file$2, 250, 141, 8200);
|
|
14549
14895
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
14550
14896
|
attr_dev(svg, "width", "26");
|
|
14551
14897
|
attr_dev(svg, "height", "26");
|
|
14552
14898
|
attr_dev(svg, "viewBox", "0 0 26 26");
|
|
14553
|
-
add_location(svg, file$2,
|
|
14899
|
+
add_location(svg, file$2, 250, 16, 8075);
|
|
14554
14900
|
},
|
|
14555
14901
|
m: function mount(target, anchor) {
|
|
14556
14902
|
insert_dev(target, span, anchor);
|
|
@@ -14564,7 +14910,7 @@
|
|
|
14564
14910
|
append_dev(g, path);
|
|
14565
14911
|
},
|
|
14566
14912
|
p: function update(ctx, dirty) {
|
|
14567
|
-
if (dirty[0] & /*$_*/
|
|
14913
|
+
if (dirty[0] & /*$_*/ 33554432 && t0_value !== (t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "")) set_data_dev(t0, t0_value);
|
|
14568
14914
|
},
|
|
14569
14915
|
d: function destroy(detaching) {
|
|
14570
14916
|
if (detaching) detach_dev(span);
|
|
@@ -14577,14 +14923,14 @@
|
|
|
14577
14923
|
block,
|
|
14578
14924
|
id: create_else_block_2$1.name,
|
|
14579
14925
|
type: "else",
|
|
14580
|
-
source: "(
|
|
14926
|
+
source: "(249:14) {:else}",
|
|
14581
14927
|
ctx
|
|
14582
14928
|
});
|
|
14583
14929
|
|
|
14584
14930
|
return block;
|
|
14585
14931
|
}
|
|
14586
14932
|
|
|
14587
|
-
// (
|
|
14933
|
+
// (245:14) {#if joinButtonLoading == true}
|
|
14588
14934
|
function create_if_block_7(ctx) {
|
|
14589
14935
|
let svg;
|
|
14590
14936
|
let circle;
|
|
@@ -14596,9 +14942,9 @@
|
|
|
14596
14942
|
attr_dev(circle, "cx", "20");
|
|
14597
14943
|
attr_dev(circle, "cy", "20");
|
|
14598
14944
|
attr_dev(circle, "r", "18");
|
|
14599
|
-
add_location(circle, file$2,
|
|
14945
|
+
add_location(circle, file$2, 246, 18, 7907);
|
|
14600
14946
|
attr_dev(svg, "class", "spinner");
|
|
14601
|
-
add_location(svg, file$2,
|
|
14947
|
+
add_location(svg, file$2, 245, 16, 7867);
|
|
14602
14948
|
},
|
|
14603
14949
|
m: function mount(target, anchor) {
|
|
14604
14950
|
insert_dev(target, svg, anchor);
|
|
@@ -14614,17 +14960,17 @@
|
|
|
14614
14960
|
block,
|
|
14615
14961
|
id: create_if_block_7.name,
|
|
14616
14962
|
type: "if",
|
|
14617
|
-
source: "(
|
|
14963
|
+
source: "(245:14) {#if joinButtonLoading == true}",
|
|
14618
14964
|
ctx
|
|
14619
14965
|
});
|
|
14620
14966
|
|
|
14621
14967
|
return block;
|
|
14622
14968
|
}
|
|
14623
14969
|
|
|
14624
|
-
// (
|
|
14970
|
+
// (240:12) {#if showdetails == 'true'}
|
|
14625
14971
|
function create_if_block_6(ctx) {
|
|
14626
14972
|
let button;
|
|
14627
|
-
let t_value = /*$_*/ ctx[
|
|
14973
|
+
let t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "";
|
|
14628
14974
|
let t;
|
|
14629
14975
|
|
|
14630
14976
|
const block = {
|
|
@@ -14633,14 +14979,14 @@
|
|
|
14633
14979
|
t = text(t_value);
|
|
14634
14980
|
attr_dev(button, "class", "EnrolledButton");
|
|
14635
14981
|
button.disabled = true;
|
|
14636
|
-
add_location(button, file$2,
|
|
14982
|
+
add_location(button, file$2, 240, 14, 7535);
|
|
14637
14983
|
},
|
|
14638
14984
|
m: function mount(target, anchor) {
|
|
14639
14985
|
insert_dev(target, button, anchor);
|
|
14640
14986
|
append_dev(button, t);
|
|
14641
14987
|
},
|
|
14642
14988
|
p: function update(ctx, dirty) {
|
|
14643
|
-
if (dirty[0] & /*$_*/
|
|
14989
|
+
if (dirty[0] & /*$_*/ 33554432 && t_value !== (t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "")) set_data_dev(t, t_value);
|
|
14644
14990
|
},
|
|
14645
14991
|
d: function destroy(detaching) {
|
|
14646
14992
|
if (detaching) detach_dev(button);
|
|
@@ -14651,17 +14997,17 @@
|
|
|
14651
14997
|
block,
|
|
14652
14998
|
id: create_if_block_6.name,
|
|
14653
14999
|
type: "if",
|
|
14654
|
-
source: "(
|
|
15000
|
+
source: "(240:12) {#if showdetails == 'true'}",
|
|
14655
15001
|
ctx
|
|
14656
15002
|
});
|
|
14657
15003
|
|
|
14658
15004
|
return block;
|
|
14659
15005
|
}
|
|
14660
15006
|
|
|
14661
|
-
// (
|
|
15007
|
+
// (262:4) {#if errorJoin}
|
|
14662
15008
|
function create_if_block_2$1(ctx) {
|
|
14663
15009
|
let span;
|
|
14664
|
-
let t0_value = /*$_*/ ctx[
|
|
15010
|
+
let t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "";
|
|
14665
15011
|
let t0;
|
|
14666
15012
|
let t1;
|
|
14667
15013
|
let t2;
|
|
@@ -14671,9 +15017,9 @@
|
|
|
14671
15017
|
span = element("span");
|
|
14672
15018
|
t0 = text(t0_value);
|
|
14673
15019
|
t1 = space();
|
|
14674
|
-
t2 = text(/*errorJoinText*/ ctx[
|
|
15020
|
+
t2 = text(/*errorJoinText*/ ctx[13]);
|
|
14675
15021
|
attr_dev(span, "class", "ErrorText");
|
|
14676
|
-
add_location(span, file$2,
|
|
15022
|
+
add_location(span, file$2, 262, 6, 8715);
|
|
14677
15023
|
},
|
|
14678
15024
|
m: function mount(target, anchor) {
|
|
14679
15025
|
insert_dev(target, span, anchor);
|
|
@@ -14682,8 +15028,8 @@
|
|
|
14682
15028
|
append_dev(span, t2);
|
|
14683
15029
|
},
|
|
14684
15030
|
p: function update(ctx, dirty) {
|
|
14685
|
-
if (dirty[0] & /*$_*/
|
|
14686
|
-
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]);
|
|
14687
15033
|
},
|
|
14688
15034
|
d: function destroy(detaching) {
|
|
14689
15035
|
if (detaching) detach_dev(span);
|
|
@@ -14694,14 +15040,14 @@
|
|
|
14694
15040
|
block,
|
|
14695
15041
|
id: create_if_block_2$1.name,
|
|
14696
15042
|
type: "if",
|
|
14697
|
-
source: "(
|
|
15043
|
+
source: "(262:4) {#if errorJoin}",
|
|
14698
15044
|
ctx
|
|
14699
15045
|
});
|
|
14700
15046
|
|
|
14701
15047
|
return block;
|
|
14702
15048
|
}
|
|
14703
15049
|
|
|
14704
|
-
// (
|
|
15050
|
+
// (265:4) {#if showslider == "true"}
|
|
14705
15051
|
function create_if_block_1$1(ctx) {
|
|
14706
15052
|
let casino_tournaments_thumbnail_games_slider;
|
|
14707
15053
|
|
|
@@ -14709,9 +15055,10 @@
|
|
|
14709
15055
|
c: function create() {
|
|
14710
15056
|
casino_tournaments_thumbnail_games_slider = element("casino-tournaments-thumbnail-games-slider");
|
|
14711
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]);
|
|
14712
15059
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
|
|
14713
15060
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
|
|
14714
|
-
add_location(casino_tournaments_thumbnail_games_slider, file$2,
|
|
15061
|
+
add_location(casino_tournaments_thumbnail_games_slider, file$2, 265, 6, 8851);
|
|
14715
15062
|
},
|
|
14716
15063
|
m: function mount(target, anchor) {
|
|
14717
15064
|
insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
|
|
@@ -14720,6 +15067,10 @@
|
|
|
14720
15067
|
if (dirty[0] & /*tournamenturl*/ 4) {
|
|
14721
15068
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
|
|
14722
15069
|
}
|
|
15070
|
+
|
|
15071
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
15072
|
+
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
|
|
15073
|
+
}
|
|
14723
15074
|
},
|
|
14724
15075
|
d: function destroy(detaching) {
|
|
14725
15076
|
if (detaching) detach_dev(casino_tournaments_thumbnail_games_slider);
|
|
@@ -14730,7 +15081,7 @@
|
|
|
14730
15081
|
block,
|
|
14731
15082
|
id: create_if_block_1$1.name,
|
|
14732
15083
|
type: "if",
|
|
14733
|
-
source: "(
|
|
15084
|
+
source: "(265:4) {#if showslider == \\\"true\\\"}",
|
|
14734
15085
|
ctx
|
|
14735
15086
|
});
|
|
14736
15087
|
|
|
@@ -14741,7 +15092,7 @@
|
|
|
14741
15092
|
let if_block_anchor;
|
|
14742
15093
|
|
|
14743
15094
|
function select_block_type(ctx, dirty) {
|
|
14744
|
-
if (/*isLoading*/ ctx[
|
|
15095
|
+
if (/*isLoading*/ ctx[10]) return create_if_block$2;
|
|
14745
15096
|
return create_else_block$2;
|
|
14746
15097
|
}
|
|
14747
15098
|
|
|
@@ -14796,7 +15147,7 @@
|
|
|
14796
15147
|
function instance$2($$self, $$props, $$invalidate) {
|
|
14797
15148
|
let $_;
|
|
14798
15149
|
validate_store(X, "_");
|
|
14799
|
-
component_subscribe($$self, X, $$value => $$invalidate(
|
|
15150
|
+
component_subscribe($$self, X, $$value => $$invalidate(25, $_ = $$value));
|
|
14800
15151
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
14801
15152
|
validate_slots("undefined", slots, []);
|
|
14802
15153
|
let { session = "" } = $$props;
|
|
@@ -14845,7 +15196,7 @@
|
|
|
14845
15196
|
|
|
14846
15197
|
const messageHandler = e => {
|
|
14847
15198
|
if (e.data && e.data.type == "UserSessionID") {
|
|
14848
|
-
$$invalidate(
|
|
15199
|
+
$$invalidate(9, isLoggedIn = true);
|
|
14849
15200
|
sessionID = e.data.session;
|
|
14850
15201
|
}
|
|
14851
15202
|
};
|
|
@@ -14892,7 +15243,7 @@
|
|
|
14892
15243
|
window.location.href
|
|
14893
15244
|
);
|
|
14894
15245
|
|
|
14895
|
-
$$invalidate(
|
|
15246
|
+
$$invalidate(11, joinButtonLoading = true);
|
|
14896
15247
|
let joinUrl = new URL(`${endpoint}/bonus/claim`);
|
|
14897
15248
|
let reqHeaders = new Headers();
|
|
14898
15249
|
let body = {};
|
|
@@ -14918,17 +15269,17 @@
|
|
|
14918
15269
|
fetch(joinUrl, requestOptions).then(res => res.json()).then(
|
|
14919
15270
|
data => {
|
|
14920
15271
|
if (data.success == true) {
|
|
14921
|
-
$$invalidate(
|
|
14922
|
-
$$invalidate(
|
|
15272
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15273
|
+
$$invalidate(20, userenrolled = true);
|
|
14923
15274
|
} else {
|
|
14924
|
-
$$invalidate(
|
|
14925
|
-
$$invalidate(
|
|
14926
|
-
$$invalidate(
|
|
15275
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15276
|
+
$$invalidate(13, errorJoinText = data.errorMessage);
|
|
15277
|
+
$$invalidate(12, errorJoin = true);
|
|
14927
15278
|
}
|
|
14928
15279
|
},
|
|
14929
15280
|
err => {
|
|
14930
|
-
$$invalidate(
|
|
14931
|
-
$$invalidate(
|
|
15281
|
+
$$invalidate(11, joinButtonLoading = false);
|
|
15282
|
+
$$invalidate(12, errorJoin = true);
|
|
14932
15283
|
}
|
|
14933
15284
|
);
|
|
14934
15285
|
};
|
|
@@ -14946,22 +15297,22 @@
|
|
|
14946
15297
|
|
|
14947
15298
|
// @TODO data type - tournament
|
|
14948
15299
|
const matchData = data => {
|
|
14949
|
-
$$invalidate(
|
|
14950
|
-
$$invalidate(
|
|
14951
|
-
$$invalidate(
|
|
14952
|
-
$$invalidate(
|
|
14953
|
-
$$invalidate(
|
|
14954
|
-
$$invalidate(
|
|
14955
|
-
$$invalidate(
|
|
14956
|
-
$$invalidate(
|
|
14957
|
-
$$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);
|
|
14958
15309
|
prizes = data.prizes;
|
|
14959
|
-
$$invalidate(
|
|
14960
|
-
$$invalidate(
|
|
15310
|
+
$$invalidate(23, wallet = data.wallets || []);
|
|
15311
|
+
$$invalidate(24, gameurl = data.termsUrl || "#");
|
|
14961
15312
|
};
|
|
14962
15313
|
|
|
14963
15314
|
const getData = url => {
|
|
14964
|
-
$$invalidate(
|
|
15315
|
+
$$invalidate(10, isLoading = true);
|
|
14965
15316
|
let tournamentUrl = new URL(url);
|
|
14966
15317
|
let reqHeaders = new Headers();
|
|
14967
15318
|
tournamentUrl.searchParams.append("language", lang);
|
|
@@ -14974,7 +15325,7 @@
|
|
|
14974
15325
|
let requestOptions = { method: "GET", headers: reqHeaders };
|
|
14975
15326
|
|
|
14976
15327
|
fetch(tournamentUrl, requestOptions).then(res => res.json()).then(data => {
|
|
14977
|
-
$$invalidate(
|
|
15328
|
+
$$invalidate(10, isLoading = false);
|
|
14978
15329
|
matchData(data.item);
|
|
14979
15330
|
});
|
|
14980
15331
|
};
|
|
@@ -14982,19 +15333,19 @@
|
|
|
14982
15333
|
const setSession = () => {
|
|
14983
15334
|
if (session.length > 0 && session != "false") {
|
|
14984
15335
|
sessionID = session;
|
|
14985
|
-
$$invalidate(
|
|
15336
|
+
$$invalidate(9, isLoggedIn = true);
|
|
14986
15337
|
} else {
|
|
14987
|
-
$$invalidate(
|
|
15338
|
+
$$invalidate(9, isLoggedIn = false);
|
|
14988
15339
|
}
|
|
14989
15340
|
};
|
|
14990
15341
|
|
|
14991
15342
|
const initialLoad = () => {
|
|
14992
|
-
$$invalidate(
|
|
15343
|
+
$$invalidate(10, isLoading = true);
|
|
14993
15344
|
getData(tournamenturl);
|
|
14994
15345
|
};
|
|
14995
15346
|
|
|
14996
15347
|
onMount(() => {
|
|
14997
|
-
$$invalidate(
|
|
15348
|
+
$$invalidate(10, isLoading = false);
|
|
14998
15349
|
window.addEventListener("message", messageHandler, false);
|
|
14999
15350
|
|
|
15000
15351
|
return () => {
|
|
@@ -15034,13 +15385,13 @@
|
|
|
15034
15385
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
15035
15386
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
15036
15387
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
15037
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
15388
|
+
if ("endpoint" in $$props) $$invalidate(31, endpoint = $$props.endpoint);
|
|
15038
15389
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
15039
15390
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
15040
15391
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
15041
15392
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
15042
15393
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
15043
|
-
if ("lang" in $$props) $$invalidate(
|
|
15394
|
+
if ("lang" in $$props) $$invalidate(8, lang = $$props.lang);
|
|
15044
15395
|
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
15045
15396
|
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
15046
15397
|
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
@@ -15108,39 +15459,39 @@
|
|
|
15108
15459
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
15109
15460
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
15110
15461
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
15111
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
15462
|
+
if ("endpoint" in $$props) $$invalidate(31, endpoint = $$props.endpoint);
|
|
15112
15463
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
15113
15464
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
15114
15465
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
15115
15466
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
15116
15467
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
15117
|
-
if ("lang" in $$props) $$invalidate(
|
|
15468
|
+
if ("lang" in $$props) $$invalidate(8, lang = $$props.lang);
|
|
15118
15469
|
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
15119
15470
|
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
15120
15471
|
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
15121
15472
|
if ("registerurl" in $$props) $$invalidate(35, registerurl = $$props.registerurl);
|
|
15122
15473
|
if ("currency" in $$props) $$invalidate(36, currency = $$props.currency);
|
|
15123
15474
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
15124
|
-
if ("isLoggedIn" in $$props) $$invalidate(
|
|
15475
|
+
if ("isLoggedIn" in $$props) $$invalidate(9, isLoggedIn = $$props.isLoggedIn);
|
|
15125
15476
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
15126
15477
|
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
15127
|
-
if ("isLoading" in $$props) $$invalidate(
|
|
15478
|
+
if ("isLoading" in $$props) $$invalidate(10, isLoading = $$props.isLoading);
|
|
15128
15479
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
15129
|
-
if ("joinButtonLoading" in $$props) $$invalidate(
|
|
15130
|
-
if ("errorJoin" in $$props) $$invalidate(
|
|
15131
|
-
if ("errorJoinText" in $$props) $$invalidate(
|
|
15132
|
-
if ("title" in $$props) $$invalidate(
|
|
15133
|
-
if ("startdate" in $$props) $$invalidate(
|
|
15134
|
-
if ("enddate" in $$props) $$invalidate(
|
|
15135
|
-
if ("status" in $$props) $$invalidate(
|
|
15136
|
-
if ("tourid" in $$props) $$invalidate(
|
|
15137
|
-
if ("thumbnail" in $$props) $$invalidate(
|
|
15138
|
-
if ("userenrolled" in $$props) $$invalidate(
|
|
15139
|
-
if ("scorecriteria" in $$props) $$invalidate(
|
|
15140
|
-
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);
|
|
15141
15492
|
if ("prizes" in $$props) prizes = $$props.prizes;
|
|
15142
|
-
if ("wallet" in $$props) $$invalidate(
|
|
15143
|
-
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);
|
|
15144
15495
|
};
|
|
15145
15496
|
|
|
15146
15497
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -15152,8 +15503,8 @@
|
|
|
15152
15503
|
session && setSession();
|
|
15153
15504
|
}
|
|
15154
15505
|
|
|
15155
|
-
if ($$self.$$.dirty[0] & /*tournamenturl*/
|
|
15156
|
-
tournamenturl && initialLoad();
|
|
15506
|
+
if ($$self.$$.dirty[0] & /*tournamenturl, lang*/ 260) {
|
|
15507
|
+
tournamenturl && lang && initialLoad();
|
|
15157
15508
|
}
|
|
15158
15509
|
};
|
|
15159
15510
|
|
|
@@ -15166,6 +15517,7 @@
|
|
|
15166
15517
|
showenrolled,
|
|
15167
15518
|
maxwidth,
|
|
15168
15519
|
fullsize,
|
|
15520
|
+
lang,
|
|
15169
15521
|
isLoggedIn,
|
|
15170
15522
|
isLoading,
|
|
15171
15523
|
joinButtonLoading,
|
|
@@ -15189,7 +15541,6 @@
|
|
|
15189
15541
|
joinAction,
|
|
15190
15542
|
sendTournamentPrizes,
|
|
15191
15543
|
endpoint,
|
|
15192
|
-
lang,
|
|
15193
15544
|
loginevent,
|
|
15194
15545
|
registerevent,
|
|
15195
15546
|
loginurl,
|
|
@@ -15222,13 +15573,13 @@
|
|
|
15222
15573
|
session: 0,
|
|
15223
15574
|
userid: 1,
|
|
15224
15575
|
tournamenturl: 2,
|
|
15225
|
-
endpoint:
|
|
15576
|
+
endpoint: 31,
|
|
15226
15577
|
showdetails: 3,
|
|
15227
15578
|
showslider: 4,
|
|
15228
15579
|
showenrolled: 5,
|
|
15229
15580
|
maxwidth: 6,
|
|
15230
15581
|
fullsize: 7,
|
|
15231
|
-
lang:
|
|
15582
|
+
lang: 8,
|
|
15232
15583
|
loginevent: 32,
|
|
15233
15584
|
registerevent: 33,
|
|
15234
15585
|
loginurl: 34,
|
|
@@ -15298,7 +15649,7 @@
|
|
|
15298
15649
|
}
|
|
15299
15650
|
|
|
15300
15651
|
get endpoint() {
|
|
15301
|
-
return this.$$.ctx[
|
|
15652
|
+
return this.$$.ctx[31];
|
|
15302
15653
|
}
|
|
15303
15654
|
|
|
15304
15655
|
set endpoint(endpoint) {
|
|
@@ -15352,7 +15703,7 @@
|
|
|
15352
15703
|
}
|
|
15353
15704
|
|
|
15354
15705
|
get lang() {
|
|
15355
|
-
return this.$$.ctx[
|
|
15706
|
+
return this.$$.ctx[8];
|
|
15356
15707
|
}
|
|
15357
15708
|
|
|
15358
15709
|
set lang(lang) {
|
|
@@ -16678,7 +17029,7 @@
|
|
|
16678
17029
|
const initialLoad = () => {
|
|
16679
17030
|
if (!checkAttrs()) {
|
|
16680
17031
|
tournamentsShownNumber = parseInt(numberoftournaments, 10);
|
|
16681
|
-
setLocale$
|
|
17032
|
+
setLocale$2(lang);
|
|
16682
17033
|
getData(endpoint, 0, tournamentsShownNumber);
|
|
16683
17034
|
}
|
|
16684
17035
|
};
|
|
@@ -16754,7 +17105,7 @@
|
|
|
16754
17105
|
getDevice,
|
|
16755
17106
|
_: X,
|
|
16756
17107
|
addNewMessages: addNewMessages$6,
|
|
16757
|
-
setLocale: setLocale$
|
|
17108
|
+
setLocale: setLocale$2,
|
|
16758
17109
|
setupI18n,
|
|
16759
17110
|
TournamentsControllerTranslations,
|
|
16760
17111
|
session,
|