@everymatrix/casino-tournaments-page-controller 0.0.118 → 0.0.122
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.
|
@@ -5153,16 +5153,24 @@
|
|
|
5153
5153
|
scoreCriteria: 'Score Criteria',
|
|
5154
5154
|
minbet: 'min bet counts: ',
|
|
5155
5155
|
seegames: 'You can see the games',
|
|
5156
|
-
here: 'here'
|
|
5156
|
+
here: 'here',
|
|
5157
|
+
scheduled: 'Scheduled',
|
|
5158
|
+
ongoing: 'OnGoing',
|
|
5159
|
+
finished: 'Finished',
|
|
5160
|
+
startingAt: 'Starting at',
|
|
5157
5161
|
}
|
|
5158
5162
|
},
|
|
5159
5163
|
tr: {
|
|
5160
5164
|
tournamentsThumbnail: {
|
|
5161
5165
|
enrolled: 'Kayıtlı',
|
|
5162
5166
|
scoreCriteria: 'Skor kriteri',
|
|
5163
|
-
minbet: 'en düşük bahis
|
|
5164
|
-
seegames: '
|
|
5165
|
-
here: '
|
|
5167
|
+
minbet: 'en düşük bahis sayısı',
|
|
5168
|
+
seegames: 'Turnuvadaki oyunları görmek için',
|
|
5169
|
+
here: 'tıklayın',
|
|
5170
|
+
scheduled: 'Devam eden',
|
|
5171
|
+
ongoing: 'Planlanmış',
|
|
5172
|
+
finished: 'Sona Ermiş',
|
|
5173
|
+
startingAt: 'BAŞLAMA SAATİ:',
|
|
5166
5174
|
}
|
|
5167
5175
|
},
|
|
5168
5176
|
};
|
|
@@ -5172,7 +5180,7 @@
|
|
|
5172
5180
|
const { Object: Object_1$5 } = globals;
|
|
5173
5181
|
const file$6 = "../casino-tournaments-thumbnail/src/CasinoTournamentsThumbnail.svelte";
|
|
5174
5182
|
|
|
5175
|
-
// (
|
|
5183
|
+
// (75:2) {#if status}
|
|
5176
5184
|
function create_if_block_6$3(ctx) {
|
|
5177
5185
|
let div;
|
|
5178
5186
|
let t;
|
|
@@ -5184,7 +5192,7 @@
|
|
|
5184
5192
|
div = element("div");
|
|
5185
5193
|
t = text(/*shownStatus*/ ctx[12]);
|
|
5186
5194
|
attr_dev(div, "class", "Status");
|
|
5187
|
-
add_location(div, file$6,
|
|
5195
|
+
add_location(div, file$6, 75, 4, 2365);
|
|
5188
5196
|
},
|
|
5189
5197
|
m: function mount(target, anchor) {
|
|
5190
5198
|
insert_dev(target, div, anchor);
|
|
@@ -5209,14 +5217,14 @@
|
|
|
5209
5217
|
block,
|
|
5210
5218
|
id: create_if_block_6$3.name,
|
|
5211
5219
|
type: "if",
|
|
5212
|
-
source: "(
|
|
5220
|
+
source: "(75:2) {#if status}",
|
|
5213
5221
|
ctx
|
|
5214
5222
|
});
|
|
5215
5223
|
|
|
5216
5224
|
return block;
|
|
5217
5225
|
}
|
|
5218
5226
|
|
|
5219
|
-
// (
|
|
5227
|
+
// (79:2) {#if showenrolled == 'true'}
|
|
5220
5228
|
function create_if_block_4$4(ctx) {
|
|
5221
5229
|
let if_block_anchor;
|
|
5222
5230
|
let if_block = /*userenrolled*/ ctx[5] && create_if_block_5$3(ctx);
|
|
@@ -5254,14 +5262,14 @@
|
|
|
5254
5262
|
block,
|
|
5255
5263
|
id: create_if_block_4$4.name,
|
|
5256
5264
|
type: "if",
|
|
5257
|
-
source: "(
|
|
5265
|
+
source: "(79:2) {#if showenrolled == 'true'}",
|
|
5258
5266
|
ctx
|
|
5259
5267
|
});
|
|
5260
5268
|
|
|
5261
5269
|
return block;
|
|
5262
5270
|
}
|
|
5263
5271
|
|
|
5264
|
-
// (
|
|
5272
|
+
// (80:4) {#if userenrolled}
|
|
5265
5273
|
function create_if_block_5$3(ctx) {
|
|
5266
5274
|
let div;
|
|
5267
5275
|
let t_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "";
|
|
@@ -5272,7 +5280,7 @@
|
|
|
5272
5280
|
div = element("div");
|
|
5273
5281
|
t = text(t_value);
|
|
5274
5282
|
attr_dev(div, "class", "Enrolled");
|
|
5275
|
-
add_location(div, file$6,
|
|
5283
|
+
add_location(div, file$6, 80, 6, 2490);
|
|
5276
5284
|
},
|
|
5277
5285
|
m: function mount(target, anchor) {
|
|
5278
5286
|
insert_dev(target, div, anchor);
|
|
@@ -5290,14 +5298,14 @@
|
|
|
5290
5298
|
block,
|
|
5291
5299
|
id: create_if_block_5$3.name,
|
|
5292
5300
|
type: "if",
|
|
5293
|
-
source: "(
|
|
5301
|
+
source: "(80:4) {#if userenrolled}",
|
|
5294
5302
|
ctx
|
|
5295
5303
|
});
|
|
5296
5304
|
|
|
5297
5305
|
return block;
|
|
5298
5306
|
}
|
|
5299
5307
|
|
|
5300
|
-
// (
|
|
5308
|
+
// (86:2) {:else}
|
|
5301
5309
|
function create_else_block$5(ctx) {
|
|
5302
5310
|
let div;
|
|
5303
5311
|
let div_class_value;
|
|
@@ -5308,12 +5316,12 @@
|
|
|
5308
5316
|
c: function create() {
|
|
5309
5317
|
div = element("div");
|
|
5310
5318
|
|
|
5311
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
5319
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5312
5320
|
? "CardImgFinished"
|
|
5313
5321
|
: ""));
|
|
5314
5322
|
|
|
5315
5323
|
set_style(div, "background", "url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat");
|
|
5316
|
-
add_location(div, file$6,
|
|
5324
|
+
add_location(div, file$6, 86, 4, 2764);
|
|
5317
5325
|
},
|
|
5318
5326
|
m: function mount(target, anchor) {
|
|
5319
5327
|
insert_dev(target, div, anchor);
|
|
@@ -5324,7 +5332,7 @@
|
|
|
5324
5332
|
}
|
|
5325
5333
|
},
|
|
5326
5334
|
p: function update(ctx, dirty) {
|
|
5327
|
-
if (dirty & /*
|
|
5335
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5328
5336
|
? "CardImgFinished"
|
|
5329
5337
|
: ""))) {
|
|
5330
5338
|
attr_dev(div, "class", div_class_value);
|
|
@@ -5341,14 +5349,14 @@
|
|
|
5341
5349
|
block,
|
|
5342
5350
|
id: create_else_block$5.name,
|
|
5343
5351
|
type: "else",
|
|
5344
|
-
source: "(
|
|
5352
|
+
source: "(86:2) {:else}",
|
|
5345
5353
|
ctx
|
|
5346
5354
|
});
|
|
5347
5355
|
|
|
5348
5356
|
return block;
|
|
5349
5357
|
}
|
|
5350
5358
|
|
|
5351
|
-
// (
|
|
5359
|
+
// (84:2) {#if thumbnail}
|
|
5352
5360
|
function create_if_block_3$4(ctx) {
|
|
5353
5361
|
let div;
|
|
5354
5362
|
let div_class_value;
|
|
@@ -5359,12 +5367,12 @@
|
|
|
5359
5367
|
c: function create() {
|
|
5360
5368
|
div = element("div");
|
|
5361
5369
|
|
|
5362
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
5370
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5363
5371
|
? "CardImgFinished"
|
|
5364
5372
|
: ""));
|
|
5365
5373
|
|
|
5366
5374
|
set_style(div, "background", "url('" + /*thumbnail*/ ctx[4] + "')");
|
|
5367
|
-
add_location(div, file$6,
|
|
5375
|
+
add_location(div, file$6, 84, 4, 2596);
|
|
5368
5376
|
},
|
|
5369
5377
|
m: function mount(target, anchor) {
|
|
5370
5378
|
insert_dev(target, div, anchor);
|
|
@@ -5375,7 +5383,7 @@
|
|
|
5375
5383
|
}
|
|
5376
5384
|
},
|
|
5377
5385
|
p: function update(ctx, dirty) {
|
|
5378
|
-
if (dirty & /*
|
|
5386
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5379
5387
|
? "CardImgFinished"
|
|
5380
5388
|
: ""))) {
|
|
5381
5389
|
attr_dev(div, "class", div_class_value);
|
|
@@ -5396,14 +5404,14 @@
|
|
|
5396
5404
|
block,
|
|
5397
5405
|
id: create_if_block_3$4.name,
|
|
5398
5406
|
type: "if",
|
|
5399
|
-
source: "(
|
|
5407
|
+
source: "(84:2) {#if thumbnail}",
|
|
5400
5408
|
ctx
|
|
5401
5409
|
});
|
|
5402
5410
|
|
|
5403
5411
|
return block;
|
|
5404
5412
|
}
|
|
5405
5413
|
|
|
5406
|
-
// (
|
|
5414
|
+
// (92:4) {#if startdate}
|
|
5407
5415
|
function create_if_block_2$4(ctx) {
|
|
5408
5416
|
let div;
|
|
5409
5417
|
let t;
|
|
@@ -5416,7 +5424,7 @@
|
|
|
5416
5424
|
div = element("div");
|
|
5417
5425
|
t = text(/*shownDate*/ ctx[10]);
|
|
5418
5426
|
attr_dev(div, "class", "Date");
|
|
5419
|
-
add_location(div, file$6,
|
|
5427
|
+
add_location(div, file$6, 92, 6, 3055);
|
|
5420
5428
|
},
|
|
5421
5429
|
m: function mount(target, anchor) {
|
|
5422
5430
|
insert_dev(target, div, anchor);
|
|
@@ -5442,18 +5450,18 @@
|
|
|
5442
5450
|
block,
|
|
5443
5451
|
id: create_if_block_2$4.name,
|
|
5444
5452
|
type: "if",
|
|
5445
|
-
source: "(
|
|
5453
|
+
source: "(92:4) {#if startdate}",
|
|
5446
5454
|
ctx
|
|
5447
5455
|
});
|
|
5448
5456
|
|
|
5449
5457
|
return block;
|
|
5450
5458
|
}
|
|
5451
5459
|
|
|
5452
|
-
// (
|
|
5460
|
+
// (96:4) {#if isLoggedIn}
|
|
5453
5461
|
function create_if_block$6(ctx) {
|
|
5454
5462
|
let div0;
|
|
5455
5463
|
let p0;
|
|
5456
|
-
let t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.
|
|
5464
|
+
let t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.scoreCriteria") + "";
|
|
5457
5465
|
let t0;
|
|
5458
5466
|
let t1;
|
|
5459
5467
|
let t2;
|
|
@@ -5487,15 +5495,15 @@
|
|
|
5487
5495
|
t6 = space();
|
|
5488
5496
|
a = element("a");
|
|
5489
5497
|
t7 = text(t7_value);
|
|
5490
|
-
add_location(p0, file$6,
|
|
5498
|
+
add_location(p0, file$6, 97, 8, 3192);
|
|
5491
5499
|
attr_dev(div0, "class", "ScoreCriteria");
|
|
5492
|
-
add_location(div0, file$6,
|
|
5500
|
+
add_location(div0, file$6, 96, 6, 3156);
|
|
5493
5501
|
attr_dev(a, "href", /*gameurl*/ ctx[9]);
|
|
5494
5502
|
attr_dev(a, "target", "_blank");
|
|
5495
|
-
add_location(a, file$6,
|
|
5496
|
-
add_location(p1, file$6,
|
|
5503
|
+
add_location(a, file$6, 106, 49, 3493);
|
|
5504
|
+
add_location(p1, file$6, 106, 8, 3452);
|
|
5497
5505
|
attr_dev(div1, "class", "Games");
|
|
5498
|
-
add_location(div1, file$6,
|
|
5506
|
+
add_location(div1, file$6, 105, 6, 3424);
|
|
5499
5507
|
},
|
|
5500
5508
|
m: function mount(target, anchor) {
|
|
5501
5509
|
insert_dev(target, div0, anchor);
|
|
@@ -5514,12 +5522,12 @@
|
|
|
5514
5522
|
append_dev(a, t7);
|
|
5515
5523
|
|
|
5516
5524
|
if (!mounted) {
|
|
5517
|
-
dispose = listen_dev(a, "click", /*click_handler*/ ctx[
|
|
5525
|
+
dispose = listen_dev(a, "click", /*click_handler*/ ctx[20], false, false, false);
|
|
5518
5526
|
mounted = true;
|
|
5519
5527
|
}
|
|
5520
5528
|
},
|
|
5521
5529
|
p: function update(ctx, dirty) {
|
|
5522
|
-
if (dirty & /*$_*/ 8192 && t0_value !== (t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.
|
|
5530
|
+
if (dirty & /*$_*/ 8192 && t0_value !== (t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.scoreCriteria") + "")) set_data_dev(t0, t0_value);
|
|
5523
5531
|
if (dirty & /*scorecriteria*/ 64) set_data_dev(t2, /*scorecriteria*/ ctx[6]);
|
|
5524
5532
|
|
|
5525
5533
|
if (/*scorecriteria*/ ctx[6] == "BetCount") {
|
|
@@ -5556,14 +5564,14 @@
|
|
|
5556
5564
|
block,
|
|
5557
5565
|
id: create_if_block$6.name,
|
|
5558
5566
|
type: "if",
|
|
5559
|
-
source: "(
|
|
5567
|
+
source: "(96:4) {#if isLoggedIn}",
|
|
5560
5568
|
ctx
|
|
5561
5569
|
});
|
|
5562
5570
|
|
|
5563
5571
|
return block;
|
|
5564
5572
|
}
|
|
5565
5573
|
|
|
5566
|
-
// (
|
|
5574
|
+
// (100:10) {#if scorecriteria == 'BetCount'}
|
|
5567
5575
|
function create_if_block_1$4(ctx) {
|
|
5568
5576
|
let t0;
|
|
5569
5577
|
let t1_value = /*$_*/ ctx[13]("tournamentsThumbnail.minbet") + "";
|
|
@@ -5604,7 +5612,7 @@
|
|
|
5604
5612
|
block,
|
|
5605
5613
|
id: create_if_block_1$4.name,
|
|
5606
5614
|
type: "if",
|
|
5607
|
-
source: "(
|
|
5615
|
+
source: "(100:10) {#if scorecriteria == 'BetCount'}",
|
|
5608
5616
|
ctx
|
|
5609
5617
|
});
|
|
5610
5618
|
|
|
@@ -5652,11 +5660,11 @@
|
|
|
5652
5660
|
if (if_block4) if_block4.c();
|
|
5653
5661
|
this.c = noop$1;
|
|
5654
5662
|
attr_dev(div0, "class", "Title");
|
|
5655
|
-
add_location(div0, file$6,
|
|
5663
|
+
add_location(div0, file$6, 90, 4, 2996);
|
|
5656
5664
|
attr_dev(div1, "class", "Details");
|
|
5657
|
-
add_location(div1, file$6,
|
|
5665
|
+
add_location(div1, file$6, 89, 2, 2970);
|
|
5658
5666
|
attr_dev(div2, "class", "Thumbnail");
|
|
5659
|
-
add_location(div2, file$6,
|
|
5667
|
+
add_location(div2, file$6, 73, 0, 2322);
|
|
5660
5668
|
},
|
|
5661
5669
|
l: function claim(nodes) {
|
|
5662
5670
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5785,6 +5793,7 @@
|
|
|
5785
5793
|
let { minbetcount = "" } = $$props;
|
|
5786
5794
|
let { showenrolled = "false" } = $$props;
|
|
5787
5795
|
let { gameurl = "" } = $$props;
|
|
5796
|
+
let { lang = "en" } = $$props;
|
|
5788
5797
|
|
|
5789
5798
|
// Variables of topics for communication
|
|
5790
5799
|
let sessionTopic;
|
|
@@ -5806,31 +5815,31 @@
|
|
|
5806
5815
|
};
|
|
5807
5816
|
|
|
5808
5817
|
const formatDate = () => {
|
|
5809
|
-
const dateOptions = { month: "
|
|
5818
|
+
const dateOptions = { month: "long" };
|
|
5810
5819
|
let currentDate = new Date(startdate);
|
|
5811
|
-
let currentMonth = new Intl.DateTimeFormat(
|
|
5820
|
+
let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
|
|
5812
5821
|
let currentDay = currentDate.getDate();
|
|
5813
5822
|
|
|
5814
|
-
let currentHour = currentDate.toLocaleString(
|
|
5823
|
+
let currentHour = currentDate.toLocaleString(lang, {
|
|
5815
5824
|
hour: "numeric",
|
|
5816
5825
|
minute: "numeric",
|
|
5817
|
-
hour12:
|
|
5826
|
+
hour12: false
|
|
5818
5827
|
});
|
|
5819
5828
|
|
|
5820
|
-
$$invalidate(10, shownDate = `${
|
|
5829
|
+
$$invalidate(10, shownDate = `${currentDay} ${currentMonth}, ` + $_("tournamentsThumbnail.startingAt") + ` ${currentHour}`);
|
|
5821
5830
|
};
|
|
5822
5831
|
|
|
5823
5832
|
const matchStatus = () => {
|
|
5824
5833
|
if (status == "Unstarted") {
|
|
5825
|
-
$$invalidate(12, shownStatus = "
|
|
5834
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.scheduled"));
|
|
5826
5835
|
}
|
|
5827
5836
|
|
|
5828
5837
|
if (status == "Running") {
|
|
5829
|
-
$$invalidate(12, shownStatus = "
|
|
5838
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.ongoing"));
|
|
5830
5839
|
}
|
|
5831
5840
|
|
|
5832
5841
|
if (status == "Closed" || status == "Closing") {
|
|
5833
|
-
$$invalidate(12, shownStatus = "
|
|
5842
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.finished"));
|
|
5834
5843
|
}
|
|
5835
5844
|
};
|
|
5836
5845
|
|
|
@@ -5867,7 +5876,8 @@
|
|
|
5867
5876
|
"scorecriteria",
|
|
5868
5877
|
"minbetcount",
|
|
5869
5878
|
"showenrolled",
|
|
5870
|
-
"gameurl"
|
|
5879
|
+
"gameurl",
|
|
5880
|
+
"lang"
|
|
5871
5881
|
];
|
|
5872
5882
|
|
|
5873
5883
|
Object_1$5.keys($$props).forEach(key => {
|
|
@@ -5889,6 +5899,7 @@
|
|
|
5889
5899
|
if ("minbetcount" in $$props) $$invalidate(7, minbetcount = $$props.minbetcount);
|
|
5890
5900
|
if ("showenrolled" in $$props) $$invalidate(8, showenrolled = $$props.showenrolled);
|
|
5891
5901
|
if ("gameurl" in $$props) $$invalidate(9, gameurl = $$props.gameurl);
|
|
5902
|
+
if ("lang" in $$props) $$invalidate(19, lang = $$props.lang);
|
|
5892
5903
|
};
|
|
5893
5904
|
|
|
5894
5905
|
$$self.$capture_state = () => ({
|
|
@@ -5908,6 +5919,7 @@
|
|
|
5908
5919
|
minbetcount,
|
|
5909
5920
|
showenrolled,
|
|
5910
5921
|
gameurl,
|
|
5922
|
+
lang,
|
|
5911
5923
|
sessionTopic,
|
|
5912
5924
|
shownDate,
|
|
5913
5925
|
isLoggedIn,
|
|
@@ -5935,6 +5947,7 @@
|
|
|
5935
5947
|
if ("minbetcount" in $$props) $$invalidate(7, minbetcount = $$props.minbetcount);
|
|
5936
5948
|
if ("showenrolled" in $$props) $$invalidate(8, showenrolled = $$props.showenrolled);
|
|
5937
5949
|
if ("gameurl" in $$props) $$invalidate(9, gameurl = $$props.gameurl);
|
|
5950
|
+
if ("lang" in $$props) $$invalidate(19, lang = $$props.lang);
|
|
5938
5951
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
5939
5952
|
if ("shownDate" in $$props) $$invalidate(10, shownDate = $$props.shownDate);
|
|
5940
5953
|
if ("isLoggedIn" in $$props) $$invalidate(11, isLoggedIn = $$props.isLoggedIn);
|
|
@@ -5973,6 +5986,7 @@
|
|
|
5973
5986
|
tournamentGamesClicked,
|
|
5974
5987
|
session,
|
|
5975
5988
|
userid,
|
|
5989
|
+
lang,
|
|
5976
5990
|
click_handler
|
|
5977
5991
|
];
|
|
5978
5992
|
}
|
|
@@ -6004,7 +6018,8 @@
|
|
|
6004
6018
|
scorecriteria: 6,
|
|
6005
6019
|
minbetcount: 7,
|
|
6006
6020
|
showenrolled: 8,
|
|
6007
|
-
gameurl: 9
|
|
6021
|
+
gameurl: 9,
|
|
6022
|
+
lang: 19
|
|
6008
6023
|
}
|
|
6009
6024
|
);
|
|
6010
6025
|
|
|
@@ -6033,7 +6048,8 @@
|
|
|
6033
6048
|
"scorecriteria",
|
|
6034
6049
|
"minbetcount",
|
|
6035
6050
|
"showenrolled",
|
|
6036
|
-
"gameurl"
|
|
6051
|
+
"gameurl",
|
|
6052
|
+
"lang"
|
|
6037
6053
|
];
|
|
6038
6054
|
}
|
|
6039
6055
|
|
|
@@ -6144,6 +6160,15 @@
|
|
|
6144
6160
|
this.$set({ gameurl });
|
|
6145
6161
|
flush();
|
|
6146
6162
|
}
|
|
6163
|
+
|
|
6164
|
+
get lang() {
|
|
6165
|
+
return this.$$.ctx[19];
|
|
6166
|
+
}
|
|
6167
|
+
|
|
6168
|
+
set lang(lang) {
|
|
6169
|
+
this.$set({ lang });
|
|
6170
|
+
flush();
|
|
6171
|
+
}
|
|
6147
6172
|
}
|
|
6148
6173
|
|
|
6149
6174
|
!customElements.get('casino-tournaments-thumbnail') && customElements.define('casino-tournaments-thumbnail', CasinoTournamentsThumbnail);
|
|
@@ -6184,7 +6209,7 @@
|
|
|
6184
6209
|
const { Object: Object_1$4 } = globals;
|
|
6185
6210
|
const file$5 = "../casino-tournaments-thumbnail-duration/src/CasinoTournmanetsThumbnailDuration.svelte";
|
|
6186
6211
|
|
|
6187
|
-
// (
|
|
6212
|
+
// (72:2) {#if startdate && enddate}
|
|
6188
6213
|
function create_if_block$5(ctx) {
|
|
6189
6214
|
let div2;
|
|
6190
6215
|
let div0;
|
|
@@ -6218,13 +6243,13 @@
|
|
|
6218
6243
|
div3 = element("div");
|
|
6219
6244
|
if_block.c();
|
|
6220
6245
|
attr_dev(div0, "class", "StartDate");
|
|
6221
|
-
add_location(div0, file$5,
|
|
6246
|
+
add_location(div0, file$5, 73, 6, 2460);
|
|
6222
6247
|
attr_dev(div1, "class", "EndDate");
|
|
6223
|
-
add_location(div1, file$5,
|
|
6248
|
+
add_location(div1, file$5, 74, 6, 2527);
|
|
6224
6249
|
attr_dev(div2, "class", "TournamentDates");
|
|
6225
|
-
add_location(div2, file$5,
|
|
6250
|
+
add_location(div2, file$5, 72, 4, 2424);
|
|
6226
6251
|
attr_dev(div3, "class", "ProgressBar");
|
|
6227
|
-
add_location(div3, file$5,
|
|
6252
|
+
add_location(div3, file$5, 76, 4, 2597);
|
|
6228
6253
|
},
|
|
6229
6254
|
m: function mount(target, anchor) {
|
|
6230
6255
|
insert_dev(target, div2, anchor);
|
|
@@ -6277,14 +6302,14 @@
|
|
|
6277
6302
|
block,
|
|
6278
6303
|
id: create_if_block$5.name,
|
|
6279
6304
|
type: "if",
|
|
6280
|
-
source: "(
|
|
6305
|
+
source: "(72:2) {#if startdate && enddate}",
|
|
6281
6306
|
ctx
|
|
6282
6307
|
});
|
|
6283
6308
|
|
|
6284
6309
|
return block;
|
|
6285
6310
|
}
|
|
6286
6311
|
|
|
6287
|
-
// (
|
|
6312
|
+
// (85:8) {:else}
|
|
6288
6313
|
function create_else_block$4(ctx) {
|
|
6289
6314
|
let div;
|
|
6290
6315
|
let t;
|
|
@@ -6299,7 +6324,7 @@
|
|
|
6299
6324
|
if_block_anchor = empty();
|
|
6300
6325
|
attr_dev(div, "class", "ProgressBarFill");
|
|
6301
6326
|
set_style(div, "width", /*progress*/ ctx[7] + "%");
|
|
6302
|
-
add_location(div, file$5,
|
|
6327
|
+
add_location(div, file$5, 85, 10, 3110);
|
|
6303
6328
|
},
|
|
6304
6329
|
m: function mount(target, anchor) {
|
|
6305
6330
|
insert_dev(target, div, anchor);
|
|
@@ -6337,14 +6362,14 @@
|
|
|
6337
6362
|
block,
|
|
6338
6363
|
id: create_else_block$4.name,
|
|
6339
6364
|
type: "else",
|
|
6340
|
-
source: "(
|
|
6365
|
+
source: "(85:8) {:else}",
|
|
6341
6366
|
ctx
|
|
6342
6367
|
});
|
|
6343
6368
|
|
|
6344
6369
|
return block;
|
|
6345
6370
|
}
|
|
6346
6371
|
|
|
6347
|
-
// (
|
|
6372
|
+
// (82:8) {#if tournamentUntilStartDays > 0}
|
|
6348
6373
|
function create_if_block_2$3(ctx) {
|
|
6349
6374
|
let div0;
|
|
6350
6375
|
let t0;
|
|
@@ -6368,9 +6393,9 @@
|
|
|
6368
6393
|
t4 = space();
|
|
6369
6394
|
t5 = text(t5_value);
|
|
6370
6395
|
attr_dev(div0, "class", "ProgressBarFillStarting");
|
|
6371
|
-
add_location(div0, file$5,
|
|
6396
|
+
add_location(div0, file$5, 82, 10, 2904);
|
|
6372
6397
|
attr_dev(div1, "class", "Remaining");
|
|
6373
|
-
add_location(div1, file$5,
|
|
6398
|
+
add_location(div1, file$5, 83, 10, 2958);
|
|
6374
6399
|
},
|
|
6375
6400
|
m: function mount(target, anchor) {
|
|
6376
6401
|
insert_dev(target, div0, anchor);
|
|
@@ -6398,14 +6423,14 @@
|
|
|
6398
6423
|
block,
|
|
6399
6424
|
id: create_if_block_2$3.name,
|
|
6400
6425
|
type: "if",
|
|
6401
|
-
source: "(
|
|
6426
|
+
source: "(82:8) {#if tournamentUntilStartDays > 0}",
|
|
6402
6427
|
ctx
|
|
6403
6428
|
});
|
|
6404
6429
|
|
|
6405
6430
|
return block;
|
|
6406
6431
|
}
|
|
6407
6432
|
|
|
6408
|
-
// (
|
|
6433
|
+
// (78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
6409
6434
|
function create_if_block_1$3(ctx) {
|
|
6410
6435
|
let div0;
|
|
6411
6436
|
let t0;
|
|
@@ -6420,9 +6445,9 @@
|
|
|
6420
6445
|
div1 = element("div");
|
|
6421
6446
|
t1 = text(t1_value);
|
|
6422
6447
|
attr_dev(div0, "class", "ProgressBarFillEnd");
|
|
6423
|
-
add_location(div0, file$5,
|
|
6448
|
+
add_location(div0, file$5, 78, 8, 2725);
|
|
6424
6449
|
attr_dev(div1, "class", "Finished");
|
|
6425
|
-
add_location(div1, file$5,
|
|
6450
|
+
add_location(div1, file$5, 79, 8, 2772);
|
|
6426
6451
|
},
|
|
6427
6452
|
m: function mount(target, anchor) {
|
|
6428
6453
|
insert_dev(target, div0, anchor);
|
|
@@ -6444,14 +6469,14 @@
|
|
|
6444
6469
|
block,
|
|
6445
6470
|
id: create_if_block_1$3.name,
|
|
6446
6471
|
type: "if",
|
|
6447
|
-
source: "(
|
|
6472
|
+
source: "(78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}",
|
|
6448
6473
|
ctx
|
|
6449
6474
|
});
|
|
6450
6475
|
|
|
6451
6476
|
return block;
|
|
6452
6477
|
}
|
|
6453
6478
|
|
|
6454
|
-
// (
|
|
6479
|
+
// (87:10) {#if tournamentLeftDays > 0}
|
|
6455
6480
|
function create_if_block_3$3(ctx) {
|
|
6456
6481
|
let t0;
|
|
6457
6482
|
let t1;
|
|
@@ -6531,14 +6556,14 @@
|
|
|
6531
6556
|
block,
|
|
6532
6557
|
id: create_if_block_3$3.name,
|
|
6533
6558
|
type: "if",
|
|
6534
|
-
source: "(
|
|
6559
|
+
source: "(87:10) {#if tournamentLeftDays > 0}",
|
|
6535
6560
|
ctx
|
|
6536
6561
|
});
|
|
6537
6562
|
|
|
6538
6563
|
return block;
|
|
6539
6564
|
}
|
|
6540
6565
|
|
|
6541
|
-
// (
|
|
6566
|
+
// (88:12) {#if diffMinutes}
|
|
6542
6567
|
function create_if_block_6$2(ctx) {
|
|
6543
6568
|
let div;
|
|
6544
6569
|
let t0;
|
|
@@ -6553,7 +6578,7 @@
|
|
|
6553
6578
|
t1 = space();
|
|
6554
6579
|
t2 = text(t2_value);
|
|
6555
6580
|
attr_dev(div, "class", "Remaining");
|
|
6556
|
-
add_location(div, file$5,
|
|
6581
|
+
add_location(div, file$5, 88, 14, 3255);
|
|
6557
6582
|
},
|
|
6558
6583
|
m: function mount(target, anchor) {
|
|
6559
6584
|
insert_dev(target, div, anchor);
|
|
@@ -6574,14 +6599,14 @@
|
|
|
6574
6599
|
block,
|
|
6575
6600
|
id: create_if_block_6$2.name,
|
|
6576
6601
|
type: "if",
|
|
6577
|
-
source: "(
|
|
6602
|
+
source: "(88:12) {#if diffMinutes}",
|
|
6578
6603
|
ctx
|
|
6579
6604
|
});
|
|
6580
6605
|
|
|
6581
6606
|
return block;
|
|
6582
6607
|
}
|
|
6583
6608
|
|
|
6584
|
-
// (
|
|
6609
|
+
// (91:12) {#if diffHours}
|
|
6585
6610
|
function create_if_block_5$2(ctx) {
|
|
6586
6611
|
let div;
|
|
6587
6612
|
let t0;
|
|
@@ -6596,7 +6621,7 @@
|
|
|
6596
6621
|
t1 = space();
|
|
6597
6622
|
t2 = text(t2_value);
|
|
6598
6623
|
attr_dev(div, "class", "Remaining");
|
|
6599
|
-
add_location(div, file$5,
|
|
6624
|
+
add_location(div, file$5, 91, 14, 3405);
|
|
6600
6625
|
},
|
|
6601
6626
|
m: function mount(target, anchor) {
|
|
6602
6627
|
insert_dev(target, div, anchor);
|
|
@@ -6617,14 +6642,14 @@
|
|
|
6617
6642
|
block,
|
|
6618
6643
|
id: create_if_block_5$2.name,
|
|
6619
6644
|
type: "if",
|
|
6620
|
-
source: "(
|
|
6645
|
+
source: "(91:12) {#if diffHours}",
|
|
6621
6646
|
ctx
|
|
6622
6647
|
});
|
|
6623
6648
|
|
|
6624
6649
|
return block;
|
|
6625
6650
|
}
|
|
6626
6651
|
|
|
6627
|
-
// (
|
|
6652
|
+
// (94:12) {#if diffDays}
|
|
6628
6653
|
function create_if_block_4$3(ctx) {
|
|
6629
6654
|
let div;
|
|
6630
6655
|
let t0;
|
|
@@ -6639,7 +6664,7 @@
|
|
|
6639
6664
|
t1 = space();
|
|
6640
6665
|
t2 = text(t2_value);
|
|
6641
6666
|
attr_dev(div, "class", "Remaining");
|
|
6642
|
-
add_location(div, file$5,
|
|
6667
|
+
add_location(div, file$5, 94, 14, 3552);
|
|
6643
6668
|
},
|
|
6644
6669
|
m: function mount(target, anchor) {
|
|
6645
6670
|
insert_dev(target, div, anchor);
|
|
@@ -6660,7 +6685,7 @@
|
|
|
6660
6685
|
block,
|
|
6661
6686
|
id: create_if_block_4$3.name,
|
|
6662
6687
|
type: "if",
|
|
6663
|
-
source: "(
|
|
6688
|
+
source: "(94:12) {#if diffDays}",
|
|
6664
6689
|
ctx
|
|
6665
6690
|
});
|
|
6666
6691
|
|
|
@@ -6677,7 +6702,7 @@
|
|
|
6677
6702
|
if (if_block) if_block.c();
|
|
6678
6703
|
this.c = noop$1;
|
|
6679
6704
|
attr_dev(div, "class", "TournamentDuration");
|
|
6680
|
-
add_location(div, file$5,
|
|
6705
|
+
add_location(div, file$5, 70, 0, 2358);
|
|
6681
6706
|
},
|
|
6682
6707
|
l: function claim(nodes) {
|
|
6683
6708
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6728,6 +6753,7 @@
|
|
|
6728
6753
|
let { startdate = "" } = $$props;
|
|
6729
6754
|
let { enddate = "" } = $$props;
|
|
6730
6755
|
let { status = "" } = $$props;
|
|
6756
|
+
let { lang = "en" } = $$props;
|
|
6731
6757
|
let startDate = "";
|
|
6732
6758
|
let endDate = "";
|
|
6733
6759
|
let tournamentDuration = "";
|
|
@@ -6746,7 +6772,7 @@
|
|
|
6746
6772
|
const formatDate = date => {
|
|
6747
6773
|
const dateOptions = { month: "long" };
|
|
6748
6774
|
let currentDate = new Date(date);
|
|
6749
|
-
let currentMonth = new Intl.DateTimeFormat(
|
|
6775
|
+
let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
|
|
6750
6776
|
let currentDay = currentDate.getDate();
|
|
6751
6777
|
return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${currentDate.getUTCFullYear()}`;
|
|
6752
6778
|
};
|
|
@@ -6794,7 +6820,7 @@
|
|
|
6794
6820
|
}
|
|
6795
6821
|
};
|
|
6796
6822
|
|
|
6797
|
-
const writable_props = ["startdate", "enddate", "status"];
|
|
6823
|
+
const writable_props = ["startdate", "enddate", "status", "lang"];
|
|
6798
6824
|
|
|
6799
6825
|
Object_1$4.keys($$props).forEach(key => {
|
|
6800
6826
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -6804,6 +6830,7 @@
|
|
|
6804
6830
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
6805
6831
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
6806
6832
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
6833
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
6807
6834
|
};
|
|
6808
6835
|
|
|
6809
6836
|
$$self.$capture_state = () => ({
|
|
@@ -6814,6 +6841,7 @@
|
|
|
6814
6841
|
startdate,
|
|
6815
6842
|
enddate,
|
|
6816
6843
|
status,
|
|
6844
|
+
lang,
|
|
6817
6845
|
startDate,
|
|
6818
6846
|
endDate,
|
|
6819
6847
|
tournamentDuration,
|
|
@@ -6836,6 +6864,7 @@
|
|
|
6836
6864
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
6837
6865
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
6838
6866
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
6867
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
6839
6868
|
if ("startDate" in $$props) $$invalidate(3, startDate = $$props.startDate);
|
|
6840
6869
|
if ("endDate" in $$props) $$invalidate(4, endDate = $$props.endDate);
|
|
6841
6870
|
if ("tournamentDuration" in $$props) tournamentDuration = $$props.tournamentDuration;
|
|
@@ -6867,7 +6896,8 @@
|
|
|
6867
6896
|
$_,
|
|
6868
6897
|
formatStartDate,
|
|
6869
6898
|
formatEndDate,
|
|
6870
|
-
getDuration
|
|
6899
|
+
getDuration,
|
|
6900
|
+
lang
|
|
6871
6901
|
];
|
|
6872
6902
|
}
|
|
6873
6903
|
|
|
@@ -6886,7 +6916,12 @@
|
|
|
6886
6916
|
instance$5,
|
|
6887
6917
|
create_fragment$5,
|
|
6888
6918
|
safe_not_equal,
|
|
6889
|
-
{
|
|
6919
|
+
{
|
|
6920
|
+
startdate: 0,
|
|
6921
|
+
enddate: 1,
|
|
6922
|
+
status: 2,
|
|
6923
|
+
lang: 15
|
|
6924
|
+
}
|
|
6890
6925
|
);
|
|
6891
6926
|
|
|
6892
6927
|
if (options) {
|
|
@@ -6902,7 +6937,7 @@
|
|
|
6902
6937
|
}
|
|
6903
6938
|
|
|
6904
6939
|
static get observedAttributes() {
|
|
6905
|
-
return ["startdate", "enddate", "status"];
|
|
6940
|
+
return ["startdate", "enddate", "status", "lang"];
|
|
6906
6941
|
}
|
|
6907
6942
|
|
|
6908
6943
|
get startdate() {
|
|
@@ -6931,6 +6966,15 @@
|
|
|
6931
6966
|
this.$set({ status });
|
|
6932
6967
|
flush();
|
|
6933
6968
|
}
|
|
6969
|
+
|
|
6970
|
+
get lang() {
|
|
6971
|
+
return this.$$.ctx[15];
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
set lang(lang) {
|
|
6975
|
+
this.$set({ lang });
|
|
6976
|
+
flush();
|
|
6977
|
+
}
|
|
6934
6978
|
}
|
|
6935
6979
|
|
|
6936
6980
|
!customElements.get('casino-tournaments-thumbnail-duration') && customElements.define('casino-tournaments-thumbnail-duration', CasinoTournmanetsThumbnailDuration);
|
|
@@ -6966,6 +7010,13 @@
|
|
|
6966
7010
|
return child_ctx;
|
|
6967
7011
|
}
|
|
6968
7012
|
|
|
7013
|
+
function get_each_context_1$1(ctx, list, i) {
|
|
7014
|
+
const child_ctx = ctx.slice();
|
|
7015
|
+
child_ctx[7] = list[i];
|
|
7016
|
+
child_ctx[9] = i;
|
|
7017
|
+
return child_ctx;
|
|
7018
|
+
}
|
|
7019
|
+
|
|
6969
7020
|
// (28:2) {#if prizes}
|
|
6970
7021
|
function create_if_block$4(ctx) {
|
|
6971
7022
|
let div;
|
|
@@ -7063,7 +7114,7 @@
|
|
|
7063
7114
|
return block;
|
|
7064
7115
|
}
|
|
7065
7116
|
|
|
7066
|
-
// (
|
|
7117
|
+
// (36:6) {:else}
|
|
7067
7118
|
function create_else_block$3(ctx) {
|
|
7068
7119
|
let p;
|
|
7069
7120
|
let t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "";
|
|
@@ -7073,7 +7124,7 @@
|
|
|
7073
7124
|
c: function create() {
|
|
7074
7125
|
p = element("p");
|
|
7075
7126
|
t = text(t_value);
|
|
7076
|
-
add_location(p, file$4,
|
|
7127
|
+
add_location(p, file$4, 36, 8, 2044);
|
|
7077
7128
|
},
|
|
7078
7129
|
m: function mount(target, anchor) {
|
|
7079
7130
|
insert_dev(target, p, anchor);
|
|
@@ -7091,19 +7142,19 @@
|
|
|
7091
7142
|
block,
|
|
7092
7143
|
id: create_else_block$3.name,
|
|
7093
7144
|
type: "else",
|
|
7094
|
-
source: "(
|
|
7145
|
+
source: "(36:6) {:else}",
|
|
7095
7146
|
ctx
|
|
7096
7147
|
});
|
|
7097
7148
|
|
|
7098
7149
|
return block;
|
|
7099
7150
|
}
|
|
7100
7151
|
|
|
7101
|
-
// (
|
|
7102
|
-
function
|
|
7152
|
+
// (31:8) {#each {length:prize.count} as _, i}
|
|
7153
|
+
function create_each_block_1$1(ctx) {
|
|
7103
7154
|
let div;
|
|
7104
7155
|
let p;
|
|
7105
7156
|
let span;
|
|
7106
|
-
let t0_value = /*prize*/ ctx[4].rank + "";
|
|
7157
|
+
let t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "";
|
|
7107
7158
|
let t0;
|
|
7108
7159
|
let t1;
|
|
7109
7160
|
let t2_value = /*prize*/ ctx[4].name + "";
|
|
@@ -7119,10 +7170,10 @@
|
|
|
7119
7170
|
t1 = space();
|
|
7120
7171
|
t2 = text(t2_value);
|
|
7121
7172
|
t3 = space();
|
|
7122
|
-
add_location(span, file$4,
|
|
7123
|
-
add_location(p, file$4,
|
|
7173
|
+
add_location(span, file$4, 32, 15, 1942);
|
|
7174
|
+
add_location(p, file$4, 32, 12, 1939);
|
|
7124
7175
|
attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[6]);
|
|
7125
|
-
add_location(div, file$4,
|
|
7176
|
+
add_location(div, file$4, 31, 10, 1894);
|
|
7126
7177
|
},
|
|
7127
7178
|
m: function mount(target, anchor) {
|
|
7128
7179
|
insert_dev(target, div, anchor);
|
|
@@ -7134,7 +7185,7 @@
|
|
|
7134
7185
|
append_dev(div, t3);
|
|
7135
7186
|
},
|
|
7136
7187
|
p: function update(ctx, dirty) {
|
|
7137
|
-
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + "")) set_data_dev(t0, t0_value);
|
|
7188
|
+
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "")) set_data_dev(t0, t0_value);
|
|
7138
7189
|
if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[4].name + "")) set_data_dev(t2, t2_value);
|
|
7139
7190
|
},
|
|
7140
7191
|
d: function destroy(detaching) {
|
|
@@ -7142,6 +7193,74 @@
|
|
|
7142
7193
|
}
|
|
7143
7194
|
};
|
|
7144
7195
|
|
|
7196
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
7197
|
+
block,
|
|
7198
|
+
id: create_each_block_1$1.name,
|
|
7199
|
+
type: "each",
|
|
7200
|
+
source: "(31:8) {#each {length:prize.count} as _, i}",
|
|
7201
|
+
ctx
|
|
7202
|
+
});
|
|
7203
|
+
|
|
7204
|
+
return block;
|
|
7205
|
+
}
|
|
7206
|
+
|
|
7207
|
+
// (30:6) {#each prizes as prize, index}
|
|
7208
|
+
function create_each_block$3(ctx) {
|
|
7209
|
+
let each_1_anchor;
|
|
7210
|
+
let each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
7211
|
+
validate_each_argument(each_value_1);
|
|
7212
|
+
let each_blocks = [];
|
|
7213
|
+
|
|
7214
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
7215
|
+
each_blocks[i] = create_each_block_1$1(get_each_context_1$1(ctx, each_value_1, i));
|
|
7216
|
+
}
|
|
7217
|
+
|
|
7218
|
+
const block = {
|
|
7219
|
+
c: function create() {
|
|
7220
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7221
|
+
each_blocks[i].c();
|
|
7222
|
+
}
|
|
7223
|
+
|
|
7224
|
+
each_1_anchor = empty();
|
|
7225
|
+
},
|
|
7226
|
+
m: function mount(target, anchor) {
|
|
7227
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7228
|
+
each_blocks[i].m(target, anchor);
|
|
7229
|
+
}
|
|
7230
|
+
|
|
7231
|
+
insert_dev(target, each_1_anchor, anchor);
|
|
7232
|
+
},
|
|
7233
|
+
p: function update(ctx, dirty) {
|
|
7234
|
+
if (dirty & /*prizes*/ 1) {
|
|
7235
|
+
each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
7236
|
+
validate_each_argument(each_value_1);
|
|
7237
|
+
let i;
|
|
7238
|
+
|
|
7239
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
7240
|
+
const child_ctx = get_each_context_1$1(ctx, each_value_1, i);
|
|
7241
|
+
|
|
7242
|
+
if (each_blocks[i]) {
|
|
7243
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
7244
|
+
} else {
|
|
7245
|
+
each_blocks[i] = create_each_block_1$1(child_ctx);
|
|
7246
|
+
each_blocks[i].c();
|
|
7247
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
7248
|
+
}
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7251
|
+
for (; i < each_blocks.length; i += 1) {
|
|
7252
|
+
each_blocks[i].d(1);
|
|
7253
|
+
}
|
|
7254
|
+
|
|
7255
|
+
each_blocks.length = each_value_1.length;
|
|
7256
|
+
}
|
|
7257
|
+
},
|
|
7258
|
+
d: function destroy(detaching) {
|
|
7259
|
+
destroy_each(each_blocks, detaching);
|
|
7260
|
+
if (detaching) detach_dev(each_1_anchor);
|
|
7261
|
+
}
|
|
7262
|
+
};
|
|
7263
|
+
|
|
7145
7264
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7146
7265
|
block,
|
|
7147
7266
|
id: create_each_block$3.name,
|
|
@@ -8055,11 +8174,12 @@
|
|
|
8055
8174
|
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[20]);
|
|
8056
8175
|
set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
|
|
8057
8176
|
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
|
|
8058
|
-
|
|
8177
|
+
set_custom_element_data(casino_tournaments_thumbnail, "lang", /*lang*/ ctx[8]);
|
|
8178
|
+
add_location(casino_tournaments_thumbnail, file$2, 199, 4, 6071);
|
|
8059
8179
|
attr_dev(div0, "class", "TournamentButtons");
|
|
8060
|
-
add_location(div0, file$2,
|
|
8180
|
+
add_location(div0, file$2, 230, 4, 6910);
|
|
8061
8181
|
attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
8062
|
-
add_location(div1, file$2, 198, 2,
|
|
8182
|
+
add_location(div1, file$2, 198, 2, 5973);
|
|
8063
8183
|
},
|
|
8064
8184
|
m: function mount(target, anchor) {
|
|
8065
8185
|
insert_dev(target, div1, anchor);
|
|
@@ -8123,6 +8243,10 @@
|
|
|
8123
8243
|
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
|
|
8124
8244
|
}
|
|
8125
8245
|
|
|
8246
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
8247
|
+
set_custom_element_data(casino_tournaments_thumbnail, "lang", /*lang*/ ctx[8]);
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8126
8250
|
if (/*isLoggedIn*/ ctx[9]) {
|
|
8127
8251
|
if (if_block0) {
|
|
8128
8252
|
if_block0.p(ctx, dirty);
|
|
@@ -8247,29 +8371,29 @@
|
|
|
8247
8371
|
t6 = space();
|
|
8248
8372
|
div7 = element("div");
|
|
8249
8373
|
attr_dev(div0, "class", "ph-picture");
|
|
8250
|
-
add_location(div0, file$2, 184, 10,
|
|
8374
|
+
add_location(div0, file$2, 184, 10, 5535);
|
|
8251
8375
|
attr_dev(div1, "class", "ph-col-6 big");
|
|
8252
|
-
add_location(div1, file$2, 186, 12,
|
|
8376
|
+
add_location(div1, file$2, 186, 12, 5609);
|
|
8253
8377
|
attr_dev(div2, "class", "ph-col-4 empty big");
|
|
8254
|
-
add_location(div2, file$2, 187, 12,
|
|
8378
|
+
add_location(div2, file$2, 187, 12, 5654);
|
|
8255
8379
|
attr_dev(div3, "class", "ph-col-4");
|
|
8256
|
-
add_location(div3, file$2, 188, 12,
|
|
8380
|
+
add_location(div3, file$2, 188, 12, 5705);
|
|
8257
8381
|
attr_dev(div4, "class", "ph-col-8 empty");
|
|
8258
|
-
add_location(div4, file$2, 189, 12,
|
|
8382
|
+
add_location(div4, file$2, 189, 12, 5746);
|
|
8259
8383
|
attr_dev(div5, "class", "ph-col-6");
|
|
8260
|
-
add_location(div5, file$2, 190, 12,
|
|
8384
|
+
add_location(div5, file$2, 190, 12, 5793);
|
|
8261
8385
|
attr_dev(div6, "class", "ph-col-6 empty");
|
|
8262
|
-
add_location(div6, file$2, 191, 12,
|
|
8386
|
+
add_location(div6, file$2, 191, 12, 5834);
|
|
8263
8387
|
attr_dev(div7, "class", "ph-col-12");
|
|
8264
|
-
add_location(div7, file$2, 192, 12,
|
|
8388
|
+
add_location(div7, file$2, 192, 12, 5881);
|
|
8265
8389
|
attr_dev(div8, "class", "ph-row");
|
|
8266
|
-
add_location(div8, file$2, 185, 10,
|
|
8390
|
+
add_location(div8, file$2, 185, 10, 5576);
|
|
8267
8391
|
attr_dev(div9, "class", "ph-col-12");
|
|
8268
|
-
add_location(div9, file$2, 183, 8,
|
|
8392
|
+
add_location(div9, file$2, 183, 8, 5501);
|
|
8269
8393
|
attr_dev(div10, "class", "ph-item");
|
|
8270
|
-
add_location(div10, file$2, 182, 6,
|
|
8394
|
+
add_location(div10, file$2, 182, 6, 5471);
|
|
8271
8395
|
attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
8272
|
-
add_location(div11, file$2, 181, 2,
|
|
8396
|
+
add_location(div11, file$2, 181, 2, 5371);
|
|
8273
8397
|
},
|
|
8274
8398
|
m: function mount(target, anchor) {
|
|
8275
8399
|
insert_dev(target, div11, anchor);
|
|
@@ -8313,7 +8437,7 @@
|
|
|
8313
8437
|
return block;
|
|
8314
8438
|
}
|
|
8315
8439
|
|
|
8316
|
-
// (
|
|
8440
|
+
// (216:4) {#if isLoggedIn}
|
|
8317
8441
|
function create_if_block_10$1(ctx) {
|
|
8318
8442
|
let t;
|
|
8319
8443
|
let casino_tournaments_thumbnail_duration;
|
|
@@ -8326,8 +8450,9 @@
|
|
|
8326
8450
|
casino_tournaments_thumbnail_duration = element("casino-tournaments-thumbnail-duration");
|
|
8327
8451
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[17]);
|
|
8328
8452
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
8453
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
8329
8454
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
8330
|
-
add_location(casino_tournaments_thumbnail_duration, file$2,
|
|
8455
|
+
add_location(casino_tournaments_thumbnail_duration, file$2, 223, 6, 6714);
|
|
8331
8456
|
},
|
|
8332
8457
|
m: function mount(target, anchor) {
|
|
8333
8458
|
if (if_block) if_block.m(target, anchor);
|
|
@@ -8356,6 +8481,10 @@
|
|
|
8356
8481
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
8357
8482
|
}
|
|
8358
8483
|
|
|
8484
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
8485
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
8486
|
+
}
|
|
8487
|
+
|
|
8359
8488
|
if (dirty[0] & /*enddate*/ 65536) {
|
|
8360
8489
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
8361
8490
|
}
|
|
@@ -8371,14 +8500,14 @@
|
|
|
8371
8500
|
block,
|
|
8372
8501
|
id: create_if_block_10$1.name,
|
|
8373
8502
|
type: "if",
|
|
8374
|
-
source: "(
|
|
8503
|
+
source: "(216:4) {#if isLoggedIn}",
|
|
8375
8504
|
ctx
|
|
8376
8505
|
});
|
|
8377
8506
|
|
|
8378
8507
|
return block;
|
|
8379
8508
|
}
|
|
8380
8509
|
|
|
8381
|
-
// (
|
|
8510
|
+
// (217:6) {#if tourid}
|
|
8382
8511
|
function create_if_block_11$1(ctx) {
|
|
8383
8512
|
let casino_tournaments_thumbnail_prizes;
|
|
8384
8513
|
let sendTournamentPrizes_action;
|
|
@@ -8389,7 +8518,7 @@
|
|
|
8389
8518
|
c: function create() {
|
|
8390
8519
|
casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
|
|
8391
8520
|
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[18]);
|
|
8392
|
-
add_location(casino_tournaments_thumbnail_prizes, file$2,
|
|
8521
|
+
add_location(casino_tournaments_thumbnail_prizes, file$2, 217, 8, 6532);
|
|
8393
8522
|
},
|
|
8394
8523
|
m: function mount(target, anchor) {
|
|
8395
8524
|
insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
|
|
@@ -8417,14 +8546,14 @@
|
|
|
8417
8546
|
block,
|
|
8418
8547
|
id: create_if_block_11$1.name,
|
|
8419
8548
|
type: "if",
|
|
8420
|
-
source: "(
|
|
8549
|
+
source: "(217:6) {#if tourid}",
|
|
8421
8550
|
ctx
|
|
8422
8551
|
});
|
|
8423
8552
|
|
|
8424
8553
|
return block;
|
|
8425
8554
|
}
|
|
8426
8555
|
|
|
8427
|
-
// (
|
|
8556
|
+
// (257:10) {#if showdetails == 'true'}
|
|
8428
8557
|
function create_if_block_9$1(ctx) {
|
|
8429
8558
|
let button;
|
|
8430
8559
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
@@ -8437,7 +8566,7 @@
|
|
|
8437
8566
|
button = element("button");
|
|
8438
8567
|
t = text(t_value);
|
|
8439
8568
|
attr_dev(button, "class", "DetailsLargeButton");
|
|
8440
|
-
add_location(button, file$2,
|
|
8569
|
+
add_location(button, file$2, 257, 12, 8526);
|
|
8441
8570
|
},
|
|
8442
8571
|
m: function mount(target, anchor) {
|
|
8443
8572
|
insert_dev(target, button, anchor);
|
|
@@ -8462,14 +8591,14 @@
|
|
|
8462
8591
|
block,
|
|
8463
8592
|
id: create_if_block_9$1.name,
|
|
8464
8593
|
type: "if",
|
|
8465
|
-
source: "(
|
|
8594
|
+
source: "(257:10) {#if showdetails == 'true'}",
|
|
8466
8595
|
ctx
|
|
8467
8596
|
});
|
|
8468
8597
|
|
|
8469
8598
|
return block;
|
|
8470
8599
|
}
|
|
8471
8600
|
|
|
8472
|
-
// (
|
|
8601
|
+
// (236:8) {#if status != 'Closed' && status != 'Closing'}
|
|
8473
8602
|
function create_if_block_4$2(ctx) {
|
|
8474
8603
|
let t;
|
|
8475
8604
|
let if_block1_anchor;
|
|
@@ -8534,14 +8663,14 @@
|
|
|
8534
8663
|
block,
|
|
8535
8664
|
id: create_if_block_4$2.name,
|
|
8536
8665
|
type: "if",
|
|
8537
|
-
source: "(
|
|
8666
|
+
source: "(236:8) {#if status != 'Closed' && status != 'Closing'}",
|
|
8538
8667
|
ctx
|
|
8539
8668
|
});
|
|
8540
8669
|
|
|
8541
8670
|
return block;
|
|
8542
8671
|
}
|
|
8543
8672
|
|
|
8544
|
-
// (
|
|
8673
|
+
// (232:6) {#if !isLoggedIn}
|
|
8545
8674
|
function create_if_block_3$2(ctx) {
|
|
8546
8675
|
let button0;
|
|
8547
8676
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "";
|
|
@@ -8561,9 +8690,9 @@
|
|
|
8561
8690
|
button1 = element("button");
|
|
8562
8691
|
t2 = text(t2_value);
|
|
8563
8692
|
attr_dev(button0, "class", "LoginButton");
|
|
8564
|
-
add_location(button0, file$2,
|
|
8693
|
+
add_location(button0, file$2, 232, 8, 6974);
|
|
8565
8694
|
attr_dev(button1, "class", "RegisterButton");
|
|
8566
|
-
add_location(button1, file$2,
|
|
8695
|
+
add_location(button1, file$2, 233, 8, 7088);
|
|
8567
8696
|
},
|
|
8568
8697
|
m: function mount(target, anchor) {
|
|
8569
8698
|
insert_dev(target, button0, anchor);
|
|
@@ -8598,14 +8727,14 @@
|
|
|
8598
8727
|
block,
|
|
8599
8728
|
id: create_if_block_3$2.name,
|
|
8600
8729
|
type: "if",
|
|
8601
|
-
source: "(
|
|
8730
|
+
source: "(232:6) {#if !isLoggedIn}",
|
|
8602
8731
|
ctx
|
|
8603
8732
|
});
|
|
8604
8733
|
|
|
8605
8734
|
return block;
|
|
8606
8735
|
}
|
|
8607
8736
|
|
|
8608
|
-
// (
|
|
8737
|
+
// (237:10) {#if showdetails == 'true'}
|
|
8609
8738
|
function create_if_block_8$1(ctx) {
|
|
8610
8739
|
let button;
|
|
8611
8740
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
@@ -8618,7 +8747,7 @@
|
|
|
8618
8747
|
button = element("button");
|
|
8619
8748
|
t = text(t_value);
|
|
8620
8749
|
attr_dev(button, "class", "DetailsButton");
|
|
8621
|
-
add_location(button, file$2,
|
|
8750
|
+
add_location(button, file$2, 237, 12, 7323);
|
|
8622
8751
|
},
|
|
8623
8752
|
m: function mount(target, anchor) {
|
|
8624
8753
|
insert_dev(target, button, anchor);
|
|
@@ -8643,14 +8772,14 @@
|
|
|
8643
8772
|
block,
|
|
8644
8773
|
id: create_if_block_8$1.name,
|
|
8645
8774
|
type: "if",
|
|
8646
|
-
source: "(
|
|
8775
|
+
source: "(237:10) {#if showdetails == 'true'}",
|
|
8647
8776
|
ctx
|
|
8648
8777
|
});
|
|
8649
8778
|
|
|
8650
8779
|
return block;
|
|
8651
8780
|
}
|
|
8652
8781
|
|
|
8653
|
-
// (
|
|
8782
|
+
// (244:10) {:else}
|
|
8654
8783
|
function create_else_block_1$1(ctx) {
|
|
8655
8784
|
let button;
|
|
8656
8785
|
let button_class_value;
|
|
@@ -8671,7 +8800,7 @@
|
|
|
8671
8800
|
if_block.c();
|
|
8672
8801
|
attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
|
|
8673
8802
|
button.disabled = /*errorJoin*/ ctx[12];
|
|
8674
|
-
add_location(button, file$2,
|
|
8803
|
+
add_location(button, file$2, 244, 12, 7686);
|
|
8675
8804
|
},
|
|
8676
8805
|
m: function mount(target, anchor) {
|
|
8677
8806
|
insert_dev(target, button, anchor);
|
|
@@ -8715,14 +8844,14 @@
|
|
|
8715
8844
|
block,
|
|
8716
8845
|
id: create_else_block_1$1.name,
|
|
8717
8846
|
type: "else",
|
|
8718
|
-
source: "(
|
|
8847
|
+
source: "(244:10) {:else}",
|
|
8719
8848
|
ctx
|
|
8720
8849
|
});
|
|
8721
8850
|
|
|
8722
8851
|
return block;
|
|
8723
8852
|
}
|
|
8724
8853
|
|
|
8725
|
-
// (
|
|
8854
|
+
// (240:10) {#if userenrolled == true}
|
|
8726
8855
|
function create_if_block_5$1(ctx) {
|
|
8727
8856
|
let if_block_anchor;
|
|
8728
8857
|
let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6$1(ctx);
|
|
@@ -8760,14 +8889,14 @@
|
|
|
8760
8889
|
block,
|
|
8761
8890
|
id: create_if_block_5$1.name,
|
|
8762
8891
|
type: "if",
|
|
8763
|
-
source: "(
|
|
8892
|
+
source: "(240:10) {#if userenrolled == true}",
|
|
8764
8893
|
ctx
|
|
8765
8894
|
});
|
|
8766
8895
|
|
|
8767
8896
|
return block;
|
|
8768
8897
|
}
|
|
8769
8898
|
|
|
8770
|
-
// (
|
|
8899
|
+
// (250:14) {:else}
|
|
8771
8900
|
function create_else_block_2$1(ctx) {
|
|
8772
8901
|
let span;
|
|
8773
8902
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "";
|
|
@@ -8791,20 +8920,20 @@
|
|
|
8791
8920
|
t2 = text(".a{fill:#fff;}");
|
|
8792
8921
|
g = svg_element("g");
|
|
8793
8922
|
path = svg_element("path");
|
|
8794
|
-
add_location(span, file$2,
|
|
8795
|
-
add_location(style, file$2,
|
|
8796
|
-
add_location(defs, file$2,
|
|
8923
|
+
add_location(span, file$2, 250, 16, 8022);
|
|
8924
|
+
add_location(style, file$2, 251, 105, 8177);
|
|
8925
|
+
add_location(defs, file$2, 251, 99, 8171);
|
|
8797
8926
|
attr_dev(path, "class", "a");
|
|
8798
8927
|
attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
|
|
8799
8928
|
attr_dev(path, "transform", "translate(26 26) rotate(180)");
|
|
8800
|
-
add_location(path, file$2,
|
|
8929
|
+
add_location(path, file$2, 251, 185, 8257);
|
|
8801
8930
|
attr_dev(g, "transform", "translate(26 26) rotate(180)");
|
|
8802
|
-
add_location(g, file$2,
|
|
8931
|
+
add_location(g, file$2, 251, 141, 8213);
|
|
8803
8932
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
8804
8933
|
attr_dev(svg, "width", "26");
|
|
8805
8934
|
attr_dev(svg, "height", "26");
|
|
8806
8935
|
attr_dev(svg, "viewBox", "0 0 26 26");
|
|
8807
|
-
add_location(svg, file$2,
|
|
8936
|
+
add_location(svg, file$2, 251, 16, 8088);
|
|
8808
8937
|
},
|
|
8809
8938
|
m: function mount(target, anchor) {
|
|
8810
8939
|
insert_dev(target, span, anchor);
|
|
@@ -8831,14 +8960,14 @@
|
|
|
8831
8960
|
block,
|
|
8832
8961
|
id: create_else_block_2$1.name,
|
|
8833
8962
|
type: "else",
|
|
8834
|
-
source: "(
|
|
8963
|
+
source: "(250:14) {:else}",
|
|
8835
8964
|
ctx
|
|
8836
8965
|
});
|
|
8837
8966
|
|
|
8838
8967
|
return block;
|
|
8839
8968
|
}
|
|
8840
8969
|
|
|
8841
|
-
// (
|
|
8970
|
+
// (246:14) {#if joinButtonLoading == true}
|
|
8842
8971
|
function create_if_block_7$1(ctx) {
|
|
8843
8972
|
let svg;
|
|
8844
8973
|
let circle;
|
|
@@ -8850,9 +8979,9 @@
|
|
|
8850
8979
|
attr_dev(circle, "cx", "20");
|
|
8851
8980
|
attr_dev(circle, "cy", "20");
|
|
8852
8981
|
attr_dev(circle, "r", "18");
|
|
8853
|
-
add_location(circle, file$2,
|
|
8982
|
+
add_location(circle, file$2, 247, 18, 7920);
|
|
8854
8983
|
attr_dev(svg, "class", "spinner");
|
|
8855
|
-
add_location(svg, file$2,
|
|
8984
|
+
add_location(svg, file$2, 246, 16, 7880);
|
|
8856
8985
|
},
|
|
8857
8986
|
m: function mount(target, anchor) {
|
|
8858
8987
|
insert_dev(target, svg, anchor);
|
|
@@ -8868,14 +8997,14 @@
|
|
|
8868
8997
|
block,
|
|
8869
8998
|
id: create_if_block_7$1.name,
|
|
8870
8999
|
type: "if",
|
|
8871
|
-
source: "(
|
|
9000
|
+
source: "(246:14) {#if joinButtonLoading == true}",
|
|
8872
9001
|
ctx
|
|
8873
9002
|
});
|
|
8874
9003
|
|
|
8875
9004
|
return block;
|
|
8876
9005
|
}
|
|
8877
9006
|
|
|
8878
|
-
// (
|
|
9007
|
+
// (241:12) {#if showdetails == 'true'}
|
|
8879
9008
|
function create_if_block_6$1(ctx) {
|
|
8880
9009
|
let button;
|
|
8881
9010
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "";
|
|
@@ -8887,7 +9016,7 @@
|
|
|
8887
9016
|
t = text(t_value);
|
|
8888
9017
|
attr_dev(button, "class", "EnrolledButton");
|
|
8889
9018
|
button.disabled = true;
|
|
8890
|
-
add_location(button, file$2,
|
|
9019
|
+
add_location(button, file$2, 241, 14, 7548);
|
|
8891
9020
|
},
|
|
8892
9021
|
m: function mount(target, anchor) {
|
|
8893
9022
|
insert_dev(target, button, anchor);
|
|
@@ -8905,14 +9034,14 @@
|
|
|
8905
9034
|
block,
|
|
8906
9035
|
id: create_if_block_6$1.name,
|
|
8907
9036
|
type: "if",
|
|
8908
|
-
source: "(
|
|
9037
|
+
source: "(241:12) {#if showdetails == 'true'}",
|
|
8909
9038
|
ctx
|
|
8910
9039
|
});
|
|
8911
9040
|
|
|
8912
9041
|
return block;
|
|
8913
9042
|
}
|
|
8914
9043
|
|
|
8915
|
-
// (
|
|
9044
|
+
// (263:4) {#if errorJoin}
|
|
8916
9045
|
function create_if_block_2$2(ctx) {
|
|
8917
9046
|
let span;
|
|
8918
9047
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "";
|
|
@@ -8927,7 +9056,7 @@
|
|
|
8927
9056
|
t1 = space();
|
|
8928
9057
|
t2 = text(/*errorJoinText*/ ctx[13]);
|
|
8929
9058
|
attr_dev(span, "class", "ErrorText");
|
|
8930
|
-
add_location(span, file$2,
|
|
9059
|
+
add_location(span, file$2, 263, 6, 8728);
|
|
8931
9060
|
},
|
|
8932
9061
|
m: function mount(target, anchor) {
|
|
8933
9062
|
insert_dev(target, span, anchor);
|
|
@@ -8948,14 +9077,14 @@
|
|
|
8948
9077
|
block,
|
|
8949
9078
|
id: create_if_block_2$2.name,
|
|
8950
9079
|
type: "if",
|
|
8951
|
-
source: "(
|
|
9080
|
+
source: "(263:4) {#if errorJoin}",
|
|
8952
9081
|
ctx
|
|
8953
9082
|
});
|
|
8954
9083
|
|
|
8955
9084
|
return block;
|
|
8956
9085
|
}
|
|
8957
9086
|
|
|
8958
|
-
// (
|
|
9087
|
+
// (266:4) {#if showslider == "true"}
|
|
8959
9088
|
function create_if_block_1$2(ctx) {
|
|
8960
9089
|
let casino_tournaments_thumbnail_games_slider;
|
|
8961
9090
|
|
|
@@ -8966,7 +9095,7 @@
|
|
|
8966
9095
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
|
|
8967
9096
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
|
|
8968
9097
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
|
|
8969
|
-
add_location(casino_tournaments_thumbnail_games_slider, file$2,
|
|
9098
|
+
add_location(casino_tournaments_thumbnail_games_slider, file$2, 266, 6, 8864);
|
|
8970
9099
|
},
|
|
8971
9100
|
m: function mount(target, anchor) {
|
|
8972
9101
|
insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
|
|
@@ -8989,7 +9118,7 @@
|
|
|
8989
9118
|
block,
|
|
8990
9119
|
id: create_if_block_1$2.name,
|
|
8991
9120
|
type: "if",
|
|
8992
|
-
source: "(
|
|
9121
|
+
source: "(266:4) {#if showslider == \\\"true\\\"}",
|
|
8993
9122
|
ctx
|
|
8994
9123
|
});
|
|
8995
9124
|
|
|
@@ -9411,8 +9540,8 @@
|
|
|
9411
9540
|
session && setSession();
|
|
9412
9541
|
}
|
|
9413
9542
|
|
|
9414
|
-
if ($$self.$$.dirty[0] & /*tournamenturl*/
|
|
9415
|
-
tournamenturl && initialLoad();
|
|
9543
|
+
if ($$self.$$.dirty[0] & /*tournamenturl, lang*/ 260) {
|
|
9544
|
+
tournamenturl && lang && initialLoad();
|
|
9416
9545
|
}
|
|
9417
9546
|
};
|
|
9418
9547
|
|
|
@@ -11689,11 +11818,11 @@
|
|
|
11689
11818
|
|
|
11690
11819
|
function get_each_context(ctx, list, i) {
|
|
11691
11820
|
const child_ctx = ctx.slice();
|
|
11692
|
-
child_ctx[
|
|
11821
|
+
child_ctx[33] = list[i];
|
|
11693
11822
|
return child_ctx;
|
|
11694
11823
|
}
|
|
11695
11824
|
|
|
11696
|
-
// (
|
|
11825
|
+
// (165:0) {:else}
|
|
11697
11826
|
function create_else_block(ctx) {
|
|
11698
11827
|
let div5;
|
|
11699
11828
|
let div1;
|
|
@@ -11741,35 +11870,35 @@
|
|
|
11741
11870
|
attr_dev(path, "stroke-linejoin", "round");
|
|
11742
11871
|
attr_dev(path, "stroke-width", "2");
|
|
11743
11872
|
attr_dev(path, "d", "M15 19l-7-7 7-7");
|
|
11744
|
-
add_location(path, file,
|
|
11873
|
+
add_location(path, file, 170, 10, 5827);
|
|
11745
11874
|
attr_dev(svg, "fill", "none");
|
|
11746
11875
|
attr_dev(svg, "stroke", "currentColor");
|
|
11747
11876
|
attr_dev(svg, "width", "24");
|
|
11748
11877
|
attr_dev(svg, "height", "24");
|
|
11749
11878
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
11750
11879
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11751
|
-
add_location(svg, file,
|
|
11752
|
-
add_location(p, file,
|
|
11880
|
+
add_location(svg, file, 169, 8, 5699);
|
|
11881
|
+
add_location(p, file, 172, 8, 5948);
|
|
11753
11882
|
attr_dev(div0, "class", "BackButton");
|
|
11754
|
-
add_location(div0, file,
|
|
11883
|
+
add_location(div0, file, 168, 6, 5640);
|
|
11755
11884
|
attr_dev(div1, "class", "TopButtons");
|
|
11756
|
-
add_location(div1, file,
|
|
11885
|
+
add_location(div1, file, 167, 4, 5609);
|
|
11757
11886
|
|
|
11758
11887
|
attr_dev(div2, "class", div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[11]) ? "MobileClass" : "") + (/*showleaderboard*/ ctx[0] == "true"
|
|
11759
11888
|
? "TournamentCardDetails"
|
|
11760
11889
|
: "FullSize")));
|
|
11761
11890
|
|
|
11762
|
-
add_location(div2, file,
|
|
11891
|
+
add_location(div2, file, 191, 6, 6828);
|
|
11763
11892
|
|
|
11764
11893
|
attr_dev(div3, "class", div3_class_value = /*showleaderboard*/ ctx[0] == "true"
|
|
11765
11894
|
? "TournamentTableDetails "
|
|
11766
11895
|
: "DisplayNone");
|
|
11767
11896
|
|
|
11768
|
-
add_location(div3, file,
|
|
11897
|
+
add_location(div3, file, 214, 6, 7693);
|
|
11769
11898
|
attr_dev(div4, "class", "TournamentContentDetails " + (isMobile(/*userAgent*/ ctx[11]) ? "MobileClass" : ""));
|
|
11770
|
-
add_location(div4, file,
|
|
11899
|
+
add_location(div4, file, 190, 4, 6740);
|
|
11771
11900
|
attr_dev(div5, "class", "TournamentsPage");
|
|
11772
|
-
add_location(div5, file,
|
|
11901
|
+
add_location(div5, file, 165, 2, 5574);
|
|
11773
11902
|
},
|
|
11774
11903
|
m: function mount(target, anchor) {
|
|
11775
11904
|
insert_dev(target, div5, anchor);
|
|
@@ -11791,7 +11920,7 @@
|
|
|
11791
11920
|
if (if_block2) if_block2.m(div3, null);
|
|
11792
11921
|
|
|
11793
11922
|
if (!mounted) {
|
|
11794
|
-
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[
|
|
11923
|
+
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[17], false, false, false);
|
|
11795
11924
|
mounted = true;
|
|
11796
11925
|
}
|
|
11797
11926
|
},
|
|
@@ -11863,14 +11992,14 @@
|
|
|
11863
11992
|
block,
|
|
11864
11993
|
id: create_else_block.name,
|
|
11865
11994
|
type: "else",
|
|
11866
|
-
source: "(
|
|
11995
|
+
source: "(165:0) {:else}",
|
|
11867
11996
|
ctx
|
|
11868
11997
|
});
|
|
11869
11998
|
|
|
11870
11999
|
return block;
|
|
11871
12000
|
}
|
|
11872
12001
|
|
|
11873
|
-
// (
|
|
12002
|
+
// (163:0) {#if isLoading}
|
|
11874
12003
|
function create_if_block(ctx) {
|
|
11875
12004
|
let p;
|
|
11876
12005
|
let t_value = /*$_*/ ctx[10]("tournamentsPage.loading") + "";
|
|
@@ -11880,7 +12009,7 @@
|
|
|
11880
12009
|
c: function create() {
|
|
11881
12010
|
p = element("p");
|
|
11882
12011
|
t = text(t_value);
|
|
11883
|
-
add_location(p, file,
|
|
12012
|
+
add_location(p, file, 163, 2, 5525);
|
|
11884
12013
|
},
|
|
11885
12014
|
m: function mount(target, anchor) {
|
|
11886
12015
|
insert_dev(target, p, anchor);
|
|
@@ -11898,14 +12027,14 @@
|
|
|
11898
12027
|
block,
|
|
11899
12028
|
id: create_if_block.name,
|
|
11900
12029
|
type: "if",
|
|
11901
|
-
source: "(
|
|
12030
|
+
source: "(163:0) {#if isLoading}",
|
|
11902
12031
|
ctx
|
|
11903
12032
|
});
|
|
11904
12033
|
|
|
11905
12034
|
return block;
|
|
11906
12035
|
}
|
|
11907
12036
|
|
|
11908
|
-
// (
|
|
12037
|
+
// (193:8) {#if tournamentDetails}
|
|
11909
12038
|
function create_if_block_4(ctx) {
|
|
11910
12039
|
let casino_tournaments_thumbnail_controller;
|
|
11911
12040
|
let casino_tournaments_thumbnail_controller_tournamenturl_value;
|
|
@@ -11924,7 +12053,7 @@
|
|
|
11924
12053
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "fullsize", casino_tournaments_thumbnail_controller_fullsize_value = !!/*showleaderboard*/ ctx[0]);
|
|
11925
12054
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "lang", /*lang*/ ctx[4]);
|
|
11926
12055
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "currency", /*currency*/ ctx[5]);
|
|
11927
|
-
add_location(casino_tournaments_thumbnail_controller, file,
|
|
12056
|
+
add_location(casino_tournaments_thumbnail_controller, file, 193, 10, 6993);
|
|
11928
12057
|
},
|
|
11929
12058
|
m: function mount(target, anchor) {
|
|
11930
12059
|
insert_dev(target, casino_tournaments_thumbnail_controller, anchor);
|
|
@@ -11967,14 +12096,14 @@
|
|
|
11967
12096
|
block,
|
|
11968
12097
|
id: create_if_block_4.name,
|
|
11969
12098
|
type: "if",
|
|
11970
|
-
source: "(
|
|
12099
|
+
source: "(193:8) {#if tournamentDetails}",
|
|
11971
12100
|
ctx
|
|
11972
12101
|
});
|
|
11973
12102
|
|
|
11974
12103
|
return block;
|
|
11975
12104
|
}
|
|
11976
12105
|
|
|
11977
|
-
// (
|
|
12106
|
+
// (207:8) {#if tournamentDescription.length > 0}
|
|
11978
12107
|
function create_if_block_3(ctx) {
|
|
11979
12108
|
let each_1_anchor;
|
|
11980
12109
|
let each_value = /*tournamentDescription*/ ctx[7];
|
|
@@ -12035,14 +12164,14 @@
|
|
|
12035
12164
|
block,
|
|
12036
12165
|
id: create_if_block_3.name,
|
|
12037
12166
|
type: "if",
|
|
12038
|
-
source: "(
|
|
12167
|
+
source: "(207:8) {#if tournamentDescription.length > 0}",
|
|
12039
12168
|
ctx
|
|
12040
12169
|
});
|
|
12041
12170
|
|
|
12042
12171
|
return block;
|
|
12043
12172
|
}
|
|
12044
12173
|
|
|
12045
|
-
// (
|
|
12174
|
+
// (208:10) {#each tournamentDescription as desc}
|
|
12046
12175
|
function create_each_block(ctx) {
|
|
12047
12176
|
let casino_tournaments_details;
|
|
12048
12177
|
let casino_tournaments_details_title_value;
|
|
@@ -12051,19 +12180,19 @@
|
|
|
12051
12180
|
const block = {
|
|
12052
12181
|
c: function create() {
|
|
12053
12182
|
casino_tournaments_details = element("casino-tournaments-details");
|
|
12054
|
-
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[
|
|
12055
|
-
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[
|
|
12056
|
-
add_location(casino_tournaments_details, file,
|
|
12183
|
+
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[33].title);
|
|
12184
|
+
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[33].description);
|
|
12185
|
+
add_location(casino_tournaments_details, file, 208, 12, 7527);
|
|
12057
12186
|
},
|
|
12058
12187
|
m: function mount(target, anchor) {
|
|
12059
12188
|
insert_dev(target, casino_tournaments_details, anchor);
|
|
12060
12189
|
},
|
|
12061
12190
|
p: function update(ctx, dirty) {
|
|
12062
|
-
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[
|
|
12191
|
+
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[33].title)) {
|
|
12063
12192
|
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value);
|
|
12064
12193
|
}
|
|
12065
12194
|
|
|
12066
|
-
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[
|
|
12195
|
+
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[33].description)) {
|
|
12067
12196
|
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value);
|
|
12068
12197
|
}
|
|
12069
12198
|
},
|
|
@@ -12076,14 +12205,14 @@
|
|
|
12076
12205
|
block,
|
|
12077
12206
|
id: create_each_block.name,
|
|
12078
12207
|
type: "each",
|
|
12079
|
-
source: "(
|
|
12208
|
+
source: "(208:10) {#each tournamentDescription as desc}",
|
|
12080
12209
|
ctx
|
|
12081
12210
|
});
|
|
12082
12211
|
|
|
12083
12212
|
return block;
|
|
12084
12213
|
}
|
|
12085
12214
|
|
|
12086
|
-
// (
|
|
12215
|
+
// (216:8) {#if showleaderboard == "true"}
|
|
12087
12216
|
function create_if_block_1(ctx) {
|
|
12088
12217
|
let if_block_anchor;
|
|
12089
12218
|
let if_block = /*showTable*/ ctx[9] == true && create_if_block_2(ctx);
|
|
@@ -12121,14 +12250,14 @@
|
|
|
12121
12250
|
block,
|
|
12122
12251
|
id: create_if_block_1.name,
|
|
12123
12252
|
type: "if",
|
|
12124
|
-
source: "(
|
|
12253
|
+
source: "(216:8) {#if showleaderboard == \\\"true\\\"}",
|
|
12125
12254
|
ctx
|
|
12126
12255
|
});
|
|
12127
12256
|
|
|
12128
12257
|
return block;
|
|
12129
12258
|
}
|
|
12130
12259
|
|
|
12131
|
-
// (
|
|
12260
|
+
// (217:10) {#if showTable == true}
|
|
12132
12261
|
function create_if_block_2(ctx) {
|
|
12133
12262
|
let casino_tournaments_table;
|
|
12134
12263
|
|
|
@@ -12138,7 +12267,7 @@
|
|
|
12138
12267
|
set_custom_element_data(casino_tournaments_table, "firstrow", "true");
|
|
12139
12268
|
set_custom_element_data(casino_tournaments_table, "sortable", "false");
|
|
12140
12269
|
set_custom_element_data(casino_tournaments_table, "lang", /*lang*/ ctx[4]);
|
|
12141
|
-
add_location(casino_tournaments_table, file,
|
|
12270
|
+
add_location(casino_tournaments_table, file, 217, 12, 7865);
|
|
12142
12271
|
},
|
|
12143
12272
|
m: function mount(target, anchor) {
|
|
12144
12273
|
insert_dev(target, casino_tournaments_table, anchor);
|
|
@@ -12157,7 +12286,7 @@
|
|
|
12157
12286
|
block,
|
|
12158
12287
|
id: create_if_block_2.name,
|
|
12159
12288
|
type: "if",
|
|
12160
|
-
source: "(
|
|
12289
|
+
source: "(217:10) {#if showTable == true}",
|
|
12161
12290
|
ctx
|
|
12162
12291
|
});
|
|
12163
12292
|
|
|
@@ -12235,6 +12364,7 @@
|
|
|
12235
12364
|
let { lang = "" } = $$props;
|
|
12236
12365
|
let { navigationbackbutton = "Default" } = $$props;
|
|
12237
12366
|
let { currency = "EUR" } = $$props;
|
|
12367
|
+
let { tablelimit = "30" } = $$props;
|
|
12238
12368
|
|
|
12239
12369
|
// Variables of topics for communication
|
|
12240
12370
|
let sessionTopic;
|
|
@@ -12296,7 +12426,7 @@
|
|
|
12296
12426
|
reqHeaders.append("platform", getDevice(userAgent));
|
|
12297
12427
|
let requestOptions = { method: "GET", headers: reqHeaders };
|
|
12298
12428
|
|
|
12299
|
-
fetch(url, requestOptions).then(res => res.json()).then(res => {
|
|
12429
|
+
fetch(url.href, requestOptions).then(res => res.json()).then(res => {
|
|
12300
12430
|
$$invalidate(8, tournamentDetails = res.item);
|
|
12301
12431
|
|
|
12302
12432
|
if (res.item.state == "Unstarted") {
|
|
@@ -12320,7 +12450,7 @@
|
|
|
12320
12450
|
window.postMessage(
|
|
12321
12451
|
{
|
|
12322
12452
|
type: "CasinoTableData",
|
|
12323
|
-
tableData: tournamentTableData
|
|
12453
|
+
tableData: tournamentTableData.slice(0, tablelimit)
|
|
12324
12454
|
},
|
|
12325
12455
|
window.location.href
|
|
12326
12456
|
);
|
|
@@ -12404,7 +12534,8 @@
|
|
|
12404
12534
|
"cmsendpoint",
|
|
12405
12535
|
"lang",
|
|
12406
12536
|
"navigationbackbutton",
|
|
12407
|
-
"currency"
|
|
12537
|
+
"currency",
|
|
12538
|
+
"tablelimit"
|
|
12408
12539
|
];
|
|
12409
12540
|
|
|
12410
12541
|
Object_1.keys($$props).forEach(key => {
|
|
@@ -12423,6 +12554,7 @@
|
|
|
12423
12554
|
if ("lang" in $$props) $$invalidate(4, lang = $$props.lang);
|
|
12424
12555
|
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
12425
12556
|
if ("currency" in $$props) $$invalidate(5, currency = $$props.currency);
|
|
12557
|
+
if ("tablelimit" in $$props) $$invalidate(16, tablelimit = $$props.tablelimit);
|
|
12426
12558
|
};
|
|
12427
12559
|
|
|
12428
12560
|
$$self.$capture_state = () => ({
|
|
@@ -12444,6 +12576,7 @@
|
|
|
12444
12576
|
lang,
|
|
12445
12577
|
navigationbackbutton,
|
|
12446
12578
|
currency,
|
|
12579
|
+
tablelimit,
|
|
12447
12580
|
sessionTopic,
|
|
12448
12581
|
isLoggedIn,
|
|
12449
12582
|
sessionID,
|
|
@@ -12478,6 +12611,7 @@
|
|
|
12478
12611
|
if ("lang" in $$props) $$invalidate(4, lang = $$props.lang);
|
|
12479
12612
|
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
12480
12613
|
if ("currency" in $$props) $$invalidate(5, currency = $$props.currency);
|
|
12614
|
+
if ("tablelimit" in $$props) $$invalidate(16, tablelimit = $$props.tablelimit);
|
|
12481
12615
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
12482
12616
|
if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
|
|
12483
12617
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
@@ -12527,6 +12661,7 @@
|
|
|
12527
12661
|
tourid,
|
|
12528
12662
|
cmsendpoint,
|
|
12529
12663
|
navigationbackbutton,
|
|
12664
|
+
tablelimit,
|
|
12530
12665
|
click_handler
|
|
12531
12666
|
];
|
|
12532
12667
|
}
|
|
@@ -12555,7 +12690,8 @@
|
|
|
12555
12690
|
cmsendpoint: 14,
|
|
12556
12691
|
lang: 4,
|
|
12557
12692
|
navigationbackbutton: 15,
|
|
12558
|
-
currency: 5
|
|
12693
|
+
currency: 5,
|
|
12694
|
+
tablelimit: 16
|
|
12559
12695
|
},
|
|
12560
12696
|
[-1, -1]
|
|
12561
12697
|
);
|
|
@@ -12582,7 +12718,8 @@
|
|
|
12582
12718
|
"cmsendpoint",
|
|
12583
12719
|
"lang",
|
|
12584
12720
|
"navigationbackbutton",
|
|
12585
|
-
"currency"
|
|
12721
|
+
"currency",
|
|
12722
|
+
"tablelimit"
|
|
12586
12723
|
];
|
|
12587
12724
|
}
|
|
12588
12725
|
|
|
@@ -12666,6 +12803,15 @@
|
|
|
12666
12803
|
this.$set({ currency });
|
|
12667
12804
|
flush();
|
|
12668
12805
|
}
|
|
12806
|
+
|
|
12807
|
+
get tablelimit() {
|
|
12808
|
+
return this.$$.ctx[16];
|
|
12809
|
+
}
|
|
12810
|
+
|
|
12811
|
+
set tablelimit(tablelimit) {
|
|
12812
|
+
this.$set({ tablelimit });
|
|
12813
|
+
flush();
|
|
12814
|
+
}
|
|
12669
12815
|
}
|
|
12670
12816
|
|
|
12671
12817
|
!customElements.get('casino-tournaments-page-controller') && customElements.define('casino-tournaments-page-controller', CasinoTournamentsPageController);
|