@everymatrix/casino-tournaments-page-controller 0.0.118 → 0.0.119
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,7 +5153,10 @@
|
|
|
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'
|
|
5157
5160
|
}
|
|
5158
5161
|
},
|
|
5159
5162
|
tr: {
|
|
@@ -5162,7 +5165,10 @@
|
|
|
5162
5165
|
scoreCriteria: 'Skor kriteri',
|
|
5163
5166
|
minbet: 'en düşük bahis sayısı: ',
|
|
5164
5167
|
seegames: 'Oyunları görebilirsiniz',
|
|
5165
|
-
here: 'burada'
|
|
5168
|
+
here: 'burada',
|
|
5169
|
+
scheduled: 'Scheduledddd',
|
|
5170
|
+
ongoing: 'OnGoinggggg',
|
|
5171
|
+
finished: 'Finisheddddd'
|
|
5166
5172
|
}
|
|
5167
5173
|
},
|
|
5168
5174
|
};
|
|
@@ -5184,7 +5190,7 @@
|
|
|
5184
5190
|
div = element("div");
|
|
5185
5191
|
t = text(/*shownStatus*/ ctx[12]);
|
|
5186
5192
|
attr_dev(div, "class", "Status");
|
|
5187
|
-
add_location(div, file$6, 74, 4,
|
|
5193
|
+
add_location(div, file$6, 74, 4, 2313);
|
|
5188
5194
|
},
|
|
5189
5195
|
m: function mount(target, anchor) {
|
|
5190
5196
|
insert_dev(target, div, anchor);
|
|
@@ -5272,7 +5278,7 @@
|
|
|
5272
5278
|
div = element("div");
|
|
5273
5279
|
t = text(t_value);
|
|
5274
5280
|
attr_dev(div, "class", "Enrolled");
|
|
5275
|
-
add_location(div, file$6, 79, 6,
|
|
5281
|
+
add_location(div, file$6, 79, 6, 2438);
|
|
5276
5282
|
},
|
|
5277
5283
|
m: function mount(target, anchor) {
|
|
5278
5284
|
insert_dev(target, div, anchor);
|
|
@@ -5308,12 +5314,12 @@
|
|
|
5308
5314
|
c: function create() {
|
|
5309
5315
|
div = element("div");
|
|
5310
5316
|
|
|
5311
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
5317
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5312
5318
|
? "CardImgFinished"
|
|
5313
5319
|
: ""));
|
|
5314
5320
|
|
|
5315
5321
|
set_style(div, "background", "url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat");
|
|
5316
|
-
add_location(div, file$6, 85, 4,
|
|
5322
|
+
add_location(div, file$6, 85, 4, 2712);
|
|
5317
5323
|
},
|
|
5318
5324
|
m: function mount(target, anchor) {
|
|
5319
5325
|
insert_dev(target, div, anchor);
|
|
@@ -5324,7 +5330,7 @@
|
|
|
5324
5330
|
}
|
|
5325
5331
|
},
|
|
5326
5332
|
p: function update(ctx, dirty) {
|
|
5327
|
-
if (dirty & /*
|
|
5333
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5328
5334
|
? "CardImgFinished"
|
|
5329
5335
|
: ""))) {
|
|
5330
5336
|
attr_dev(div, "class", div_class_value);
|
|
@@ -5359,12 +5365,12 @@
|
|
|
5359
5365
|
c: function create() {
|
|
5360
5366
|
div = element("div");
|
|
5361
5367
|
|
|
5362
|
-
attr_dev(div, "class", div_class_value = "CardImg " + (/*
|
|
5368
|
+
attr_dev(div, "class", div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5363
5369
|
? "CardImgFinished"
|
|
5364
5370
|
: ""));
|
|
5365
5371
|
|
|
5366
5372
|
set_style(div, "background", "url('" + /*thumbnail*/ ctx[4] + "')");
|
|
5367
|
-
add_location(div, file$6, 83, 4,
|
|
5373
|
+
add_location(div, file$6, 83, 4, 2544);
|
|
5368
5374
|
},
|
|
5369
5375
|
m: function mount(target, anchor) {
|
|
5370
5376
|
insert_dev(target, div, anchor);
|
|
@@ -5375,7 +5381,7 @@
|
|
|
5375
5381
|
}
|
|
5376
5382
|
},
|
|
5377
5383
|
p: function update(ctx, dirty) {
|
|
5378
|
-
if (dirty & /*
|
|
5384
|
+
if (dirty & /*status*/ 4 && div_class_value !== (div_class_value = "CardImg " + (/*status*/ ctx[2] == "Closing" || /*status*/ ctx[2] == "Closed"
|
|
5379
5385
|
? "CardImgFinished"
|
|
5380
5386
|
: ""))) {
|
|
5381
5387
|
attr_dev(div, "class", div_class_value);
|
|
@@ -5416,7 +5422,7 @@
|
|
|
5416
5422
|
div = element("div");
|
|
5417
5423
|
t = text(/*shownDate*/ ctx[10]);
|
|
5418
5424
|
attr_dev(div, "class", "Date");
|
|
5419
|
-
add_location(div, file$6, 91, 6,
|
|
5425
|
+
add_location(div, file$6, 91, 6, 3003);
|
|
5420
5426
|
},
|
|
5421
5427
|
m: function mount(target, anchor) {
|
|
5422
5428
|
insert_dev(target, div, anchor);
|
|
@@ -5487,15 +5493,15 @@
|
|
|
5487
5493
|
t6 = space();
|
|
5488
5494
|
a = element("a");
|
|
5489
5495
|
t7 = text(t7_value);
|
|
5490
|
-
add_location(p0, file$6, 96, 8,
|
|
5496
|
+
add_location(p0, file$6, 96, 8, 3140);
|
|
5491
5497
|
attr_dev(div0, "class", "ScoreCriteria");
|
|
5492
|
-
add_location(div0, file$6, 95, 6,
|
|
5498
|
+
add_location(div0, file$6, 95, 6, 3104);
|
|
5493
5499
|
attr_dev(a, "href", /*gameurl*/ ctx[9]);
|
|
5494
5500
|
attr_dev(a, "target", "_blank");
|
|
5495
|
-
add_location(a, file$6, 105, 49,
|
|
5496
|
-
add_location(p1, file$6, 105, 8,
|
|
5501
|
+
add_location(a, file$6, 105, 49, 3436);
|
|
5502
|
+
add_location(p1, file$6, 105, 8, 3395);
|
|
5497
5503
|
attr_dev(div1, "class", "Games");
|
|
5498
|
-
add_location(div1, file$6, 104, 6,
|
|
5504
|
+
add_location(div1, file$6, 104, 6, 3367);
|
|
5499
5505
|
},
|
|
5500
5506
|
m: function mount(target, anchor) {
|
|
5501
5507
|
insert_dev(target, div0, anchor);
|
|
@@ -5652,11 +5658,11 @@
|
|
|
5652
5658
|
if (if_block4) if_block4.c();
|
|
5653
5659
|
this.c = noop$1;
|
|
5654
5660
|
attr_dev(div0, "class", "Title");
|
|
5655
|
-
add_location(div0, file$6, 89, 4,
|
|
5661
|
+
add_location(div0, file$6, 89, 4, 2944);
|
|
5656
5662
|
attr_dev(div1, "class", "Details");
|
|
5657
|
-
add_location(div1, file$6, 88, 2,
|
|
5663
|
+
add_location(div1, file$6, 88, 2, 2918);
|
|
5658
5664
|
attr_dev(div2, "class", "Thumbnail");
|
|
5659
|
-
add_location(div2, file$6, 72, 0,
|
|
5665
|
+
add_location(div2, file$6, 72, 0, 2270);
|
|
5660
5666
|
},
|
|
5661
5667
|
l: function claim(nodes) {
|
|
5662
5668
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5822,15 +5828,15 @@
|
|
|
5822
5828
|
|
|
5823
5829
|
const matchStatus = () => {
|
|
5824
5830
|
if (status == "Unstarted") {
|
|
5825
|
-
$$invalidate(12, shownStatus = "
|
|
5831
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.scheduled"));
|
|
5826
5832
|
}
|
|
5827
5833
|
|
|
5828
5834
|
if (status == "Running") {
|
|
5829
|
-
$$invalidate(12, shownStatus = "
|
|
5835
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.ongoing"));
|
|
5830
5836
|
}
|
|
5831
5837
|
|
|
5832
5838
|
if (status == "Closed" || status == "Closing") {
|
|
5833
|
-
$$invalidate(12, shownStatus = "
|
|
5839
|
+
$$invalidate(12, shownStatus = $_("tournamentsThumbnail.finished"));
|
|
5834
5840
|
}
|
|
5835
5841
|
};
|
|
5836
5842
|
|
|
@@ -6184,7 +6190,7 @@
|
|
|
6184
6190
|
const { Object: Object_1$4 } = globals;
|
|
6185
6191
|
const file$5 = "../casino-tournaments-thumbnail-duration/src/CasinoTournmanetsThumbnailDuration.svelte";
|
|
6186
6192
|
|
|
6187
|
-
// (
|
|
6193
|
+
// (72:2) {#if startdate && enddate}
|
|
6188
6194
|
function create_if_block$5(ctx) {
|
|
6189
6195
|
let div2;
|
|
6190
6196
|
let div0;
|
|
@@ -6218,13 +6224,13 @@
|
|
|
6218
6224
|
div3 = element("div");
|
|
6219
6225
|
if_block.c();
|
|
6220
6226
|
attr_dev(div0, "class", "StartDate");
|
|
6221
|
-
add_location(div0, file$5,
|
|
6227
|
+
add_location(div0, file$5, 73, 6, 2460);
|
|
6222
6228
|
attr_dev(div1, "class", "EndDate");
|
|
6223
|
-
add_location(div1, file$5,
|
|
6229
|
+
add_location(div1, file$5, 74, 6, 2527);
|
|
6224
6230
|
attr_dev(div2, "class", "TournamentDates");
|
|
6225
|
-
add_location(div2, file$5,
|
|
6231
|
+
add_location(div2, file$5, 72, 4, 2424);
|
|
6226
6232
|
attr_dev(div3, "class", "ProgressBar");
|
|
6227
|
-
add_location(div3, file$5,
|
|
6233
|
+
add_location(div3, file$5, 76, 4, 2597);
|
|
6228
6234
|
},
|
|
6229
6235
|
m: function mount(target, anchor) {
|
|
6230
6236
|
insert_dev(target, div2, anchor);
|
|
@@ -6277,14 +6283,14 @@
|
|
|
6277
6283
|
block,
|
|
6278
6284
|
id: create_if_block$5.name,
|
|
6279
6285
|
type: "if",
|
|
6280
|
-
source: "(
|
|
6286
|
+
source: "(72:2) {#if startdate && enddate}",
|
|
6281
6287
|
ctx
|
|
6282
6288
|
});
|
|
6283
6289
|
|
|
6284
6290
|
return block;
|
|
6285
6291
|
}
|
|
6286
6292
|
|
|
6287
|
-
// (
|
|
6293
|
+
// (85:8) {:else}
|
|
6288
6294
|
function create_else_block$4(ctx) {
|
|
6289
6295
|
let div;
|
|
6290
6296
|
let t;
|
|
@@ -6299,7 +6305,7 @@
|
|
|
6299
6305
|
if_block_anchor = empty();
|
|
6300
6306
|
attr_dev(div, "class", "ProgressBarFill");
|
|
6301
6307
|
set_style(div, "width", /*progress*/ ctx[7] + "%");
|
|
6302
|
-
add_location(div, file$5,
|
|
6308
|
+
add_location(div, file$5, 85, 10, 3110);
|
|
6303
6309
|
},
|
|
6304
6310
|
m: function mount(target, anchor) {
|
|
6305
6311
|
insert_dev(target, div, anchor);
|
|
@@ -6337,14 +6343,14 @@
|
|
|
6337
6343
|
block,
|
|
6338
6344
|
id: create_else_block$4.name,
|
|
6339
6345
|
type: "else",
|
|
6340
|
-
source: "(
|
|
6346
|
+
source: "(85:8) {:else}",
|
|
6341
6347
|
ctx
|
|
6342
6348
|
});
|
|
6343
6349
|
|
|
6344
6350
|
return block;
|
|
6345
6351
|
}
|
|
6346
6352
|
|
|
6347
|
-
// (
|
|
6353
|
+
// (82:8) {#if tournamentUntilStartDays > 0}
|
|
6348
6354
|
function create_if_block_2$3(ctx) {
|
|
6349
6355
|
let div0;
|
|
6350
6356
|
let t0;
|
|
@@ -6368,9 +6374,9 @@
|
|
|
6368
6374
|
t4 = space();
|
|
6369
6375
|
t5 = text(t5_value);
|
|
6370
6376
|
attr_dev(div0, "class", "ProgressBarFillStarting");
|
|
6371
|
-
add_location(div0, file$5,
|
|
6377
|
+
add_location(div0, file$5, 82, 10, 2904);
|
|
6372
6378
|
attr_dev(div1, "class", "Remaining");
|
|
6373
|
-
add_location(div1, file$5,
|
|
6379
|
+
add_location(div1, file$5, 83, 10, 2958);
|
|
6374
6380
|
},
|
|
6375
6381
|
m: function mount(target, anchor) {
|
|
6376
6382
|
insert_dev(target, div0, anchor);
|
|
@@ -6398,14 +6404,14 @@
|
|
|
6398
6404
|
block,
|
|
6399
6405
|
id: create_if_block_2$3.name,
|
|
6400
6406
|
type: "if",
|
|
6401
|
-
source: "(
|
|
6407
|
+
source: "(82:8) {#if tournamentUntilStartDays > 0}",
|
|
6402
6408
|
ctx
|
|
6403
6409
|
});
|
|
6404
6410
|
|
|
6405
6411
|
return block;
|
|
6406
6412
|
}
|
|
6407
6413
|
|
|
6408
|
-
// (
|
|
6414
|
+
// (78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
6409
6415
|
function create_if_block_1$3(ctx) {
|
|
6410
6416
|
let div0;
|
|
6411
6417
|
let t0;
|
|
@@ -6420,9 +6426,9 @@
|
|
|
6420
6426
|
div1 = element("div");
|
|
6421
6427
|
t1 = text(t1_value);
|
|
6422
6428
|
attr_dev(div0, "class", "ProgressBarFillEnd");
|
|
6423
|
-
add_location(div0, file$5,
|
|
6429
|
+
add_location(div0, file$5, 78, 8, 2725);
|
|
6424
6430
|
attr_dev(div1, "class", "Finished");
|
|
6425
|
-
add_location(div1, file$5,
|
|
6431
|
+
add_location(div1, file$5, 79, 8, 2772);
|
|
6426
6432
|
},
|
|
6427
6433
|
m: function mount(target, anchor) {
|
|
6428
6434
|
insert_dev(target, div0, anchor);
|
|
@@ -6444,14 +6450,14 @@
|
|
|
6444
6450
|
block,
|
|
6445
6451
|
id: create_if_block_1$3.name,
|
|
6446
6452
|
type: "if",
|
|
6447
|
-
source: "(
|
|
6453
|
+
source: "(78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}",
|
|
6448
6454
|
ctx
|
|
6449
6455
|
});
|
|
6450
6456
|
|
|
6451
6457
|
return block;
|
|
6452
6458
|
}
|
|
6453
6459
|
|
|
6454
|
-
// (
|
|
6460
|
+
// (87:10) {#if tournamentLeftDays > 0}
|
|
6455
6461
|
function create_if_block_3$3(ctx) {
|
|
6456
6462
|
let t0;
|
|
6457
6463
|
let t1;
|
|
@@ -6531,14 +6537,14 @@
|
|
|
6531
6537
|
block,
|
|
6532
6538
|
id: create_if_block_3$3.name,
|
|
6533
6539
|
type: "if",
|
|
6534
|
-
source: "(
|
|
6540
|
+
source: "(87:10) {#if tournamentLeftDays > 0}",
|
|
6535
6541
|
ctx
|
|
6536
6542
|
});
|
|
6537
6543
|
|
|
6538
6544
|
return block;
|
|
6539
6545
|
}
|
|
6540
6546
|
|
|
6541
|
-
// (
|
|
6547
|
+
// (88:12) {#if diffMinutes}
|
|
6542
6548
|
function create_if_block_6$2(ctx) {
|
|
6543
6549
|
let div;
|
|
6544
6550
|
let t0;
|
|
@@ -6553,7 +6559,7 @@
|
|
|
6553
6559
|
t1 = space();
|
|
6554
6560
|
t2 = text(t2_value);
|
|
6555
6561
|
attr_dev(div, "class", "Remaining");
|
|
6556
|
-
add_location(div, file$5,
|
|
6562
|
+
add_location(div, file$5, 88, 14, 3255);
|
|
6557
6563
|
},
|
|
6558
6564
|
m: function mount(target, anchor) {
|
|
6559
6565
|
insert_dev(target, div, anchor);
|
|
@@ -6574,14 +6580,14 @@
|
|
|
6574
6580
|
block,
|
|
6575
6581
|
id: create_if_block_6$2.name,
|
|
6576
6582
|
type: "if",
|
|
6577
|
-
source: "(
|
|
6583
|
+
source: "(88:12) {#if diffMinutes}",
|
|
6578
6584
|
ctx
|
|
6579
6585
|
});
|
|
6580
6586
|
|
|
6581
6587
|
return block;
|
|
6582
6588
|
}
|
|
6583
6589
|
|
|
6584
|
-
// (
|
|
6590
|
+
// (91:12) {#if diffHours}
|
|
6585
6591
|
function create_if_block_5$2(ctx) {
|
|
6586
6592
|
let div;
|
|
6587
6593
|
let t0;
|
|
@@ -6596,7 +6602,7 @@
|
|
|
6596
6602
|
t1 = space();
|
|
6597
6603
|
t2 = text(t2_value);
|
|
6598
6604
|
attr_dev(div, "class", "Remaining");
|
|
6599
|
-
add_location(div, file$5,
|
|
6605
|
+
add_location(div, file$5, 91, 14, 3405);
|
|
6600
6606
|
},
|
|
6601
6607
|
m: function mount(target, anchor) {
|
|
6602
6608
|
insert_dev(target, div, anchor);
|
|
@@ -6617,14 +6623,14 @@
|
|
|
6617
6623
|
block,
|
|
6618
6624
|
id: create_if_block_5$2.name,
|
|
6619
6625
|
type: "if",
|
|
6620
|
-
source: "(
|
|
6626
|
+
source: "(91:12) {#if diffHours}",
|
|
6621
6627
|
ctx
|
|
6622
6628
|
});
|
|
6623
6629
|
|
|
6624
6630
|
return block;
|
|
6625
6631
|
}
|
|
6626
6632
|
|
|
6627
|
-
// (
|
|
6633
|
+
// (94:12) {#if diffDays}
|
|
6628
6634
|
function create_if_block_4$3(ctx) {
|
|
6629
6635
|
let div;
|
|
6630
6636
|
let t0;
|
|
@@ -6639,7 +6645,7 @@
|
|
|
6639
6645
|
t1 = space();
|
|
6640
6646
|
t2 = text(t2_value);
|
|
6641
6647
|
attr_dev(div, "class", "Remaining");
|
|
6642
|
-
add_location(div, file$5,
|
|
6648
|
+
add_location(div, file$5, 94, 14, 3552);
|
|
6643
6649
|
},
|
|
6644
6650
|
m: function mount(target, anchor) {
|
|
6645
6651
|
insert_dev(target, div, anchor);
|
|
@@ -6660,7 +6666,7 @@
|
|
|
6660
6666
|
block,
|
|
6661
6667
|
id: create_if_block_4$3.name,
|
|
6662
6668
|
type: "if",
|
|
6663
|
-
source: "(
|
|
6669
|
+
source: "(94:12) {#if diffDays}",
|
|
6664
6670
|
ctx
|
|
6665
6671
|
});
|
|
6666
6672
|
|
|
@@ -6677,7 +6683,7 @@
|
|
|
6677
6683
|
if (if_block) if_block.c();
|
|
6678
6684
|
this.c = noop$1;
|
|
6679
6685
|
attr_dev(div, "class", "TournamentDuration");
|
|
6680
|
-
add_location(div, file$5,
|
|
6686
|
+
add_location(div, file$5, 70, 0, 2358);
|
|
6681
6687
|
},
|
|
6682
6688
|
l: function claim(nodes) {
|
|
6683
6689
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6728,6 +6734,7 @@
|
|
|
6728
6734
|
let { startdate = "" } = $$props;
|
|
6729
6735
|
let { enddate = "" } = $$props;
|
|
6730
6736
|
let { status = "" } = $$props;
|
|
6737
|
+
let { lang = "en" } = $$props;
|
|
6731
6738
|
let startDate = "";
|
|
6732
6739
|
let endDate = "";
|
|
6733
6740
|
let tournamentDuration = "";
|
|
@@ -6746,7 +6753,7 @@
|
|
|
6746
6753
|
const formatDate = date => {
|
|
6747
6754
|
const dateOptions = { month: "long" };
|
|
6748
6755
|
let currentDate = new Date(date);
|
|
6749
|
-
let currentMonth = new Intl.DateTimeFormat(
|
|
6756
|
+
let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
|
|
6750
6757
|
let currentDay = currentDate.getDate();
|
|
6751
6758
|
return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${currentDate.getUTCFullYear()}`;
|
|
6752
6759
|
};
|
|
@@ -6794,7 +6801,7 @@
|
|
|
6794
6801
|
}
|
|
6795
6802
|
};
|
|
6796
6803
|
|
|
6797
|
-
const writable_props = ["startdate", "enddate", "status"];
|
|
6804
|
+
const writable_props = ["startdate", "enddate", "status", "lang"];
|
|
6798
6805
|
|
|
6799
6806
|
Object_1$4.keys($$props).forEach(key => {
|
|
6800
6807
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -6804,6 +6811,7 @@
|
|
|
6804
6811
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
6805
6812
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
6806
6813
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
6814
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
6807
6815
|
};
|
|
6808
6816
|
|
|
6809
6817
|
$$self.$capture_state = () => ({
|
|
@@ -6814,6 +6822,7 @@
|
|
|
6814
6822
|
startdate,
|
|
6815
6823
|
enddate,
|
|
6816
6824
|
status,
|
|
6825
|
+
lang,
|
|
6817
6826
|
startDate,
|
|
6818
6827
|
endDate,
|
|
6819
6828
|
tournamentDuration,
|
|
@@ -6836,6 +6845,7 @@
|
|
|
6836
6845
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
6837
6846
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
6838
6847
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
6848
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
6839
6849
|
if ("startDate" in $$props) $$invalidate(3, startDate = $$props.startDate);
|
|
6840
6850
|
if ("endDate" in $$props) $$invalidate(4, endDate = $$props.endDate);
|
|
6841
6851
|
if ("tournamentDuration" in $$props) tournamentDuration = $$props.tournamentDuration;
|
|
@@ -6867,7 +6877,8 @@
|
|
|
6867
6877
|
$_,
|
|
6868
6878
|
formatStartDate,
|
|
6869
6879
|
formatEndDate,
|
|
6870
|
-
getDuration
|
|
6880
|
+
getDuration,
|
|
6881
|
+
lang
|
|
6871
6882
|
];
|
|
6872
6883
|
}
|
|
6873
6884
|
|
|
@@ -6886,7 +6897,12 @@
|
|
|
6886
6897
|
instance$5,
|
|
6887
6898
|
create_fragment$5,
|
|
6888
6899
|
safe_not_equal,
|
|
6889
|
-
{
|
|
6900
|
+
{
|
|
6901
|
+
startdate: 0,
|
|
6902
|
+
enddate: 1,
|
|
6903
|
+
status: 2,
|
|
6904
|
+
lang: 15
|
|
6905
|
+
}
|
|
6890
6906
|
);
|
|
6891
6907
|
|
|
6892
6908
|
if (options) {
|
|
@@ -6902,7 +6918,7 @@
|
|
|
6902
6918
|
}
|
|
6903
6919
|
|
|
6904
6920
|
static get observedAttributes() {
|
|
6905
|
-
return ["startdate", "enddate", "status"];
|
|
6921
|
+
return ["startdate", "enddate", "status", "lang"];
|
|
6906
6922
|
}
|
|
6907
6923
|
|
|
6908
6924
|
get startdate() {
|
|
@@ -6931,6 +6947,15 @@
|
|
|
6931
6947
|
this.$set({ status });
|
|
6932
6948
|
flush();
|
|
6933
6949
|
}
|
|
6950
|
+
|
|
6951
|
+
get lang() {
|
|
6952
|
+
return this.$$.ctx[15];
|
|
6953
|
+
}
|
|
6954
|
+
|
|
6955
|
+
set lang(lang) {
|
|
6956
|
+
this.$set({ lang });
|
|
6957
|
+
flush();
|
|
6958
|
+
}
|
|
6934
6959
|
}
|
|
6935
6960
|
|
|
6936
6961
|
!customElements.get('casino-tournaments-thumbnail-duration') && customElements.define('casino-tournaments-thumbnail-duration', CasinoTournmanetsThumbnailDuration);
|
|
@@ -8055,11 +8080,11 @@
|
|
|
8055
8080
|
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[20]);
|
|
8056
8081
|
set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
|
|
8057
8082
|
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
|
|
8058
|
-
add_location(casino_tournaments_thumbnail, file$2, 199, 4,
|
|
8083
|
+
add_location(casino_tournaments_thumbnail, file$2, 199, 4, 6071);
|
|
8059
8084
|
attr_dev(div0, "class", "TournamentButtons");
|
|
8060
|
-
add_location(div0, file$2,
|
|
8085
|
+
add_location(div0, file$2, 229, 4, 6897);
|
|
8061
8086
|
attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
8062
|
-
add_location(div1, file$2, 198, 2,
|
|
8087
|
+
add_location(div1, file$2, 198, 2, 5973);
|
|
8063
8088
|
},
|
|
8064
8089
|
m: function mount(target, anchor) {
|
|
8065
8090
|
insert_dev(target, div1, anchor);
|
|
@@ -8247,29 +8272,29 @@
|
|
|
8247
8272
|
t6 = space();
|
|
8248
8273
|
div7 = element("div");
|
|
8249
8274
|
attr_dev(div0, "class", "ph-picture");
|
|
8250
|
-
add_location(div0, file$2, 184, 10,
|
|
8275
|
+
add_location(div0, file$2, 184, 10, 5535);
|
|
8251
8276
|
attr_dev(div1, "class", "ph-col-6 big");
|
|
8252
|
-
add_location(div1, file$2, 186, 12,
|
|
8277
|
+
add_location(div1, file$2, 186, 12, 5609);
|
|
8253
8278
|
attr_dev(div2, "class", "ph-col-4 empty big");
|
|
8254
|
-
add_location(div2, file$2, 187, 12,
|
|
8279
|
+
add_location(div2, file$2, 187, 12, 5654);
|
|
8255
8280
|
attr_dev(div3, "class", "ph-col-4");
|
|
8256
|
-
add_location(div3, file$2, 188, 12,
|
|
8281
|
+
add_location(div3, file$2, 188, 12, 5705);
|
|
8257
8282
|
attr_dev(div4, "class", "ph-col-8 empty");
|
|
8258
|
-
add_location(div4, file$2, 189, 12,
|
|
8283
|
+
add_location(div4, file$2, 189, 12, 5746);
|
|
8259
8284
|
attr_dev(div5, "class", "ph-col-6");
|
|
8260
|
-
add_location(div5, file$2, 190, 12,
|
|
8285
|
+
add_location(div5, file$2, 190, 12, 5793);
|
|
8261
8286
|
attr_dev(div6, "class", "ph-col-6 empty");
|
|
8262
|
-
add_location(div6, file$2, 191, 12,
|
|
8287
|
+
add_location(div6, file$2, 191, 12, 5834);
|
|
8263
8288
|
attr_dev(div7, "class", "ph-col-12");
|
|
8264
|
-
add_location(div7, file$2, 192, 12,
|
|
8289
|
+
add_location(div7, file$2, 192, 12, 5881);
|
|
8265
8290
|
attr_dev(div8, "class", "ph-row");
|
|
8266
|
-
add_location(div8, file$2, 185, 10,
|
|
8291
|
+
add_location(div8, file$2, 185, 10, 5576);
|
|
8267
8292
|
attr_dev(div9, "class", "ph-col-12");
|
|
8268
|
-
add_location(div9, file$2, 183, 8,
|
|
8293
|
+
add_location(div9, file$2, 183, 8, 5501);
|
|
8269
8294
|
attr_dev(div10, "class", "ph-item");
|
|
8270
|
-
add_location(div10, file$2, 182, 6,
|
|
8295
|
+
add_location(div10, file$2, 182, 6, 5471);
|
|
8271
8296
|
attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
8272
|
-
add_location(div11, file$2, 181, 2,
|
|
8297
|
+
add_location(div11, file$2, 181, 2, 5371);
|
|
8273
8298
|
},
|
|
8274
8299
|
m: function mount(target, anchor) {
|
|
8275
8300
|
insert_dev(target, div11, anchor);
|
|
@@ -8326,8 +8351,9 @@
|
|
|
8326
8351
|
casino_tournaments_thumbnail_duration = element("casino-tournaments-thumbnail-duration");
|
|
8327
8352
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[17]);
|
|
8328
8353
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
8354
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
8329
8355
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
8330
|
-
add_location(casino_tournaments_thumbnail_duration, file$2, 222, 6,
|
|
8356
|
+
add_location(casino_tournaments_thumbnail_duration, file$2, 222, 6, 6701);
|
|
8331
8357
|
},
|
|
8332
8358
|
m: function mount(target, anchor) {
|
|
8333
8359
|
if (if_block) if_block.m(target, anchor);
|
|
@@ -8356,6 +8382,10 @@
|
|
|
8356
8382
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
|
|
8357
8383
|
}
|
|
8358
8384
|
|
|
8385
|
+
if (dirty[0] & /*lang*/ 256) {
|
|
8386
|
+
set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
|
|
8387
|
+
}
|
|
8388
|
+
|
|
8359
8389
|
if (dirty[0] & /*enddate*/ 65536) {
|
|
8360
8390
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
|
|
8361
8391
|
}
|
|
@@ -8389,7 +8419,7 @@
|
|
|
8389
8419
|
c: function create() {
|
|
8390
8420
|
casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
|
|
8391
8421
|
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[18]);
|
|
8392
|
-
add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8,
|
|
8422
|
+
add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8, 6519);
|
|
8393
8423
|
},
|
|
8394
8424
|
m: function mount(target, anchor) {
|
|
8395
8425
|
insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
|
|
@@ -8424,7 +8454,7 @@
|
|
|
8424
8454
|
return block;
|
|
8425
8455
|
}
|
|
8426
8456
|
|
|
8427
|
-
// (
|
|
8457
|
+
// (256:10) {#if showdetails == 'true'}
|
|
8428
8458
|
function create_if_block_9$1(ctx) {
|
|
8429
8459
|
let button;
|
|
8430
8460
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
@@ -8437,7 +8467,7 @@
|
|
|
8437
8467
|
button = element("button");
|
|
8438
8468
|
t = text(t_value);
|
|
8439
8469
|
attr_dev(button, "class", "DetailsLargeButton");
|
|
8440
|
-
add_location(button, file$2,
|
|
8470
|
+
add_location(button, file$2, 256, 12, 8513);
|
|
8441
8471
|
},
|
|
8442
8472
|
m: function mount(target, anchor) {
|
|
8443
8473
|
insert_dev(target, button, anchor);
|
|
@@ -8462,14 +8492,14 @@
|
|
|
8462
8492
|
block,
|
|
8463
8493
|
id: create_if_block_9$1.name,
|
|
8464
8494
|
type: "if",
|
|
8465
|
-
source: "(
|
|
8495
|
+
source: "(256:10) {#if showdetails == 'true'}",
|
|
8466
8496
|
ctx
|
|
8467
8497
|
});
|
|
8468
8498
|
|
|
8469
8499
|
return block;
|
|
8470
8500
|
}
|
|
8471
8501
|
|
|
8472
|
-
// (
|
|
8502
|
+
// (235:8) {#if status != 'Closed' && status != 'Closing'}
|
|
8473
8503
|
function create_if_block_4$2(ctx) {
|
|
8474
8504
|
let t;
|
|
8475
8505
|
let if_block1_anchor;
|
|
@@ -8534,14 +8564,14 @@
|
|
|
8534
8564
|
block,
|
|
8535
8565
|
id: create_if_block_4$2.name,
|
|
8536
8566
|
type: "if",
|
|
8537
|
-
source: "(
|
|
8567
|
+
source: "(235:8) {#if status != 'Closed' && status != 'Closing'}",
|
|
8538
8568
|
ctx
|
|
8539
8569
|
});
|
|
8540
8570
|
|
|
8541
8571
|
return block;
|
|
8542
8572
|
}
|
|
8543
8573
|
|
|
8544
|
-
// (
|
|
8574
|
+
// (231:6) {#if !isLoggedIn}
|
|
8545
8575
|
function create_if_block_3$2(ctx) {
|
|
8546
8576
|
let button0;
|
|
8547
8577
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "";
|
|
@@ -8561,9 +8591,9 @@
|
|
|
8561
8591
|
button1 = element("button");
|
|
8562
8592
|
t2 = text(t2_value);
|
|
8563
8593
|
attr_dev(button0, "class", "LoginButton");
|
|
8564
|
-
add_location(button0, file$2,
|
|
8594
|
+
add_location(button0, file$2, 231, 8, 6961);
|
|
8565
8595
|
attr_dev(button1, "class", "RegisterButton");
|
|
8566
|
-
add_location(button1, file$2,
|
|
8596
|
+
add_location(button1, file$2, 232, 8, 7075);
|
|
8567
8597
|
},
|
|
8568
8598
|
m: function mount(target, anchor) {
|
|
8569
8599
|
insert_dev(target, button0, anchor);
|
|
@@ -8598,14 +8628,14 @@
|
|
|
8598
8628
|
block,
|
|
8599
8629
|
id: create_if_block_3$2.name,
|
|
8600
8630
|
type: "if",
|
|
8601
|
-
source: "(
|
|
8631
|
+
source: "(231:6) {#if !isLoggedIn}",
|
|
8602
8632
|
ctx
|
|
8603
8633
|
});
|
|
8604
8634
|
|
|
8605
8635
|
return block;
|
|
8606
8636
|
}
|
|
8607
8637
|
|
|
8608
|
-
// (
|
|
8638
|
+
// (236:10) {#if showdetails == 'true'}
|
|
8609
8639
|
function create_if_block_8$1(ctx) {
|
|
8610
8640
|
let button;
|
|
8611
8641
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
|
|
@@ -8618,7 +8648,7 @@
|
|
|
8618
8648
|
button = element("button");
|
|
8619
8649
|
t = text(t_value);
|
|
8620
8650
|
attr_dev(button, "class", "DetailsButton");
|
|
8621
|
-
add_location(button, file$2,
|
|
8651
|
+
add_location(button, file$2, 236, 12, 7310);
|
|
8622
8652
|
},
|
|
8623
8653
|
m: function mount(target, anchor) {
|
|
8624
8654
|
insert_dev(target, button, anchor);
|
|
@@ -8643,14 +8673,14 @@
|
|
|
8643
8673
|
block,
|
|
8644
8674
|
id: create_if_block_8$1.name,
|
|
8645
8675
|
type: "if",
|
|
8646
|
-
source: "(
|
|
8676
|
+
source: "(236:10) {#if showdetails == 'true'}",
|
|
8647
8677
|
ctx
|
|
8648
8678
|
});
|
|
8649
8679
|
|
|
8650
8680
|
return block;
|
|
8651
8681
|
}
|
|
8652
8682
|
|
|
8653
|
-
// (
|
|
8683
|
+
// (243:10) {:else}
|
|
8654
8684
|
function create_else_block_1$1(ctx) {
|
|
8655
8685
|
let button;
|
|
8656
8686
|
let button_class_value;
|
|
@@ -8671,7 +8701,7 @@
|
|
|
8671
8701
|
if_block.c();
|
|
8672
8702
|
attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
|
|
8673
8703
|
button.disabled = /*errorJoin*/ ctx[12];
|
|
8674
|
-
add_location(button, file$2,
|
|
8704
|
+
add_location(button, file$2, 243, 12, 7673);
|
|
8675
8705
|
},
|
|
8676
8706
|
m: function mount(target, anchor) {
|
|
8677
8707
|
insert_dev(target, button, anchor);
|
|
@@ -8715,14 +8745,14 @@
|
|
|
8715
8745
|
block,
|
|
8716
8746
|
id: create_else_block_1$1.name,
|
|
8717
8747
|
type: "else",
|
|
8718
|
-
source: "(
|
|
8748
|
+
source: "(243:10) {:else}",
|
|
8719
8749
|
ctx
|
|
8720
8750
|
});
|
|
8721
8751
|
|
|
8722
8752
|
return block;
|
|
8723
8753
|
}
|
|
8724
8754
|
|
|
8725
|
-
// (
|
|
8755
|
+
// (239:10) {#if userenrolled == true}
|
|
8726
8756
|
function create_if_block_5$1(ctx) {
|
|
8727
8757
|
let if_block_anchor;
|
|
8728
8758
|
let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6$1(ctx);
|
|
@@ -8760,14 +8790,14 @@
|
|
|
8760
8790
|
block,
|
|
8761
8791
|
id: create_if_block_5$1.name,
|
|
8762
8792
|
type: "if",
|
|
8763
|
-
source: "(
|
|
8793
|
+
source: "(239:10) {#if userenrolled == true}",
|
|
8764
8794
|
ctx
|
|
8765
8795
|
});
|
|
8766
8796
|
|
|
8767
8797
|
return block;
|
|
8768
8798
|
}
|
|
8769
8799
|
|
|
8770
|
-
// (
|
|
8800
|
+
// (249:14) {:else}
|
|
8771
8801
|
function create_else_block_2$1(ctx) {
|
|
8772
8802
|
let span;
|
|
8773
8803
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "";
|
|
@@ -8791,20 +8821,20 @@
|
|
|
8791
8821
|
t2 = text(".a{fill:#fff;}");
|
|
8792
8822
|
g = svg_element("g");
|
|
8793
8823
|
path = svg_element("path");
|
|
8794
|
-
add_location(span, file$2,
|
|
8795
|
-
add_location(style, file$2,
|
|
8796
|
-
add_location(defs, file$2,
|
|
8824
|
+
add_location(span, file$2, 249, 16, 8009);
|
|
8825
|
+
add_location(style, file$2, 250, 105, 8164);
|
|
8826
|
+
add_location(defs, file$2, 250, 99, 8158);
|
|
8797
8827
|
attr_dev(path, "class", "a");
|
|
8798
8828
|
attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
|
|
8799
8829
|
attr_dev(path, "transform", "translate(26 26) rotate(180)");
|
|
8800
|
-
add_location(path, file$2,
|
|
8830
|
+
add_location(path, file$2, 250, 185, 8244);
|
|
8801
8831
|
attr_dev(g, "transform", "translate(26 26) rotate(180)");
|
|
8802
|
-
add_location(g, file$2,
|
|
8832
|
+
add_location(g, file$2, 250, 141, 8200);
|
|
8803
8833
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
8804
8834
|
attr_dev(svg, "width", "26");
|
|
8805
8835
|
attr_dev(svg, "height", "26");
|
|
8806
8836
|
attr_dev(svg, "viewBox", "0 0 26 26");
|
|
8807
|
-
add_location(svg, file$2,
|
|
8837
|
+
add_location(svg, file$2, 250, 16, 8075);
|
|
8808
8838
|
},
|
|
8809
8839
|
m: function mount(target, anchor) {
|
|
8810
8840
|
insert_dev(target, span, anchor);
|
|
@@ -8831,14 +8861,14 @@
|
|
|
8831
8861
|
block,
|
|
8832
8862
|
id: create_else_block_2$1.name,
|
|
8833
8863
|
type: "else",
|
|
8834
|
-
source: "(
|
|
8864
|
+
source: "(249:14) {:else}",
|
|
8835
8865
|
ctx
|
|
8836
8866
|
});
|
|
8837
8867
|
|
|
8838
8868
|
return block;
|
|
8839
8869
|
}
|
|
8840
8870
|
|
|
8841
|
-
// (
|
|
8871
|
+
// (245:14) {#if joinButtonLoading == true}
|
|
8842
8872
|
function create_if_block_7$1(ctx) {
|
|
8843
8873
|
let svg;
|
|
8844
8874
|
let circle;
|
|
@@ -8850,9 +8880,9 @@
|
|
|
8850
8880
|
attr_dev(circle, "cx", "20");
|
|
8851
8881
|
attr_dev(circle, "cy", "20");
|
|
8852
8882
|
attr_dev(circle, "r", "18");
|
|
8853
|
-
add_location(circle, file$2,
|
|
8883
|
+
add_location(circle, file$2, 246, 18, 7907);
|
|
8854
8884
|
attr_dev(svg, "class", "spinner");
|
|
8855
|
-
add_location(svg, file$2,
|
|
8885
|
+
add_location(svg, file$2, 245, 16, 7867);
|
|
8856
8886
|
},
|
|
8857
8887
|
m: function mount(target, anchor) {
|
|
8858
8888
|
insert_dev(target, svg, anchor);
|
|
@@ -8868,14 +8898,14 @@
|
|
|
8868
8898
|
block,
|
|
8869
8899
|
id: create_if_block_7$1.name,
|
|
8870
8900
|
type: "if",
|
|
8871
|
-
source: "(
|
|
8901
|
+
source: "(245:14) {#if joinButtonLoading == true}",
|
|
8872
8902
|
ctx
|
|
8873
8903
|
});
|
|
8874
8904
|
|
|
8875
8905
|
return block;
|
|
8876
8906
|
}
|
|
8877
8907
|
|
|
8878
|
-
// (
|
|
8908
|
+
// (240:12) {#if showdetails == 'true'}
|
|
8879
8909
|
function create_if_block_6$1(ctx) {
|
|
8880
8910
|
let button;
|
|
8881
8911
|
let t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "";
|
|
@@ -8887,7 +8917,7 @@
|
|
|
8887
8917
|
t = text(t_value);
|
|
8888
8918
|
attr_dev(button, "class", "EnrolledButton");
|
|
8889
8919
|
button.disabled = true;
|
|
8890
|
-
add_location(button, file$2,
|
|
8920
|
+
add_location(button, file$2, 240, 14, 7535);
|
|
8891
8921
|
},
|
|
8892
8922
|
m: function mount(target, anchor) {
|
|
8893
8923
|
insert_dev(target, button, anchor);
|
|
@@ -8905,14 +8935,14 @@
|
|
|
8905
8935
|
block,
|
|
8906
8936
|
id: create_if_block_6$1.name,
|
|
8907
8937
|
type: "if",
|
|
8908
|
-
source: "(
|
|
8938
|
+
source: "(240:12) {#if showdetails == 'true'}",
|
|
8909
8939
|
ctx
|
|
8910
8940
|
});
|
|
8911
8941
|
|
|
8912
8942
|
return block;
|
|
8913
8943
|
}
|
|
8914
8944
|
|
|
8915
|
-
// (
|
|
8945
|
+
// (262:4) {#if errorJoin}
|
|
8916
8946
|
function create_if_block_2$2(ctx) {
|
|
8917
8947
|
let span;
|
|
8918
8948
|
let t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "";
|
|
@@ -8927,7 +8957,7 @@
|
|
|
8927
8957
|
t1 = space();
|
|
8928
8958
|
t2 = text(/*errorJoinText*/ ctx[13]);
|
|
8929
8959
|
attr_dev(span, "class", "ErrorText");
|
|
8930
|
-
add_location(span, file$2,
|
|
8960
|
+
add_location(span, file$2, 262, 6, 8715);
|
|
8931
8961
|
},
|
|
8932
8962
|
m: function mount(target, anchor) {
|
|
8933
8963
|
insert_dev(target, span, anchor);
|
|
@@ -8948,14 +8978,14 @@
|
|
|
8948
8978
|
block,
|
|
8949
8979
|
id: create_if_block_2$2.name,
|
|
8950
8980
|
type: "if",
|
|
8951
|
-
source: "(
|
|
8981
|
+
source: "(262:4) {#if errorJoin}",
|
|
8952
8982
|
ctx
|
|
8953
8983
|
});
|
|
8954
8984
|
|
|
8955
8985
|
return block;
|
|
8956
8986
|
}
|
|
8957
8987
|
|
|
8958
|
-
// (
|
|
8988
|
+
// (265:4) {#if showslider == "true"}
|
|
8959
8989
|
function create_if_block_1$2(ctx) {
|
|
8960
8990
|
let casino_tournaments_thumbnail_games_slider;
|
|
8961
8991
|
|
|
@@ -8966,7 +8996,7 @@
|
|
|
8966
8996
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
|
|
8967
8997
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
|
|
8968
8998
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
|
|
8969
|
-
add_location(casino_tournaments_thumbnail_games_slider, file$2,
|
|
8999
|
+
add_location(casino_tournaments_thumbnail_games_slider, file$2, 265, 6, 8851);
|
|
8970
9000
|
},
|
|
8971
9001
|
m: function mount(target, anchor) {
|
|
8972
9002
|
insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
|
|
@@ -8989,7 +9019,7 @@
|
|
|
8989
9019
|
block,
|
|
8990
9020
|
id: create_if_block_1$2.name,
|
|
8991
9021
|
type: "if",
|
|
8992
|
-
source: "(
|
|
9022
|
+
source: "(265:4) {#if showslider == \\\"true\\\"}",
|
|
8993
9023
|
ctx
|
|
8994
9024
|
});
|
|
8995
9025
|
|
|
@@ -9411,8 +9441,8 @@
|
|
|
9411
9441
|
session && setSession();
|
|
9412
9442
|
}
|
|
9413
9443
|
|
|
9414
|
-
if ($$self.$$.dirty[0] & /*tournamenturl*/
|
|
9415
|
-
tournamenturl && initialLoad();
|
|
9444
|
+
if ($$self.$$.dirty[0] & /*tournamenturl, lang*/ 260) {
|
|
9445
|
+
tournamenturl && lang && initialLoad();
|
|
9416
9446
|
}
|
|
9417
9447
|
};
|
|
9418
9448
|
|
|
@@ -11689,11 +11719,11 @@
|
|
|
11689
11719
|
|
|
11690
11720
|
function get_each_context(ctx, list, i) {
|
|
11691
11721
|
const child_ctx = ctx.slice();
|
|
11692
|
-
child_ctx[
|
|
11722
|
+
child_ctx[33] = list[i];
|
|
11693
11723
|
return child_ctx;
|
|
11694
11724
|
}
|
|
11695
11725
|
|
|
11696
|
-
// (
|
|
11726
|
+
// (165:0) {:else}
|
|
11697
11727
|
function create_else_block(ctx) {
|
|
11698
11728
|
let div5;
|
|
11699
11729
|
let div1;
|
|
@@ -11741,35 +11771,35 @@
|
|
|
11741
11771
|
attr_dev(path, "stroke-linejoin", "round");
|
|
11742
11772
|
attr_dev(path, "stroke-width", "2");
|
|
11743
11773
|
attr_dev(path, "d", "M15 19l-7-7 7-7");
|
|
11744
|
-
add_location(path, file,
|
|
11774
|
+
add_location(path, file, 170, 10, 5827);
|
|
11745
11775
|
attr_dev(svg, "fill", "none");
|
|
11746
11776
|
attr_dev(svg, "stroke", "currentColor");
|
|
11747
11777
|
attr_dev(svg, "width", "24");
|
|
11748
11778
|
attr_dev(svg, "height", "24");
|
|
11749
11779
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
11750
11780
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11751
|
-
add_location(svg, file,
|
|
11752
|
-
add_location(p, file,
|
|
11781
|
+
add_location(svg, file, 169, 8, 5699);
|
|
11782
|
+
add_location(p, file, 172, 8, 5948);
|
|
11753
11783
|
attr_dev(div0, "class", "BackButton");
|
|
11754
|
-
add_location(div0, file,
|
|
11784
|
+
add_location(div0, file, 168, 6, 5640);
|
|
11755
11785
|
attr_dev(div1, "class", "TopButtons");
|
|
11756
|
-
add_location(div1, file,
|
|
11786
|
+
add_location(div1, file, 167, 4, 5609);
|
|
11757
11787
|
|
|
11758
11788
|
attr_dev(div2, "class", div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[11]) ? "MobileClass" : "") + (/*showleaderboard*/ ctx[0] == "true"
|
|
11759
11789
|
? "TournamentCardDetails"
|
|
11760
11790
|
: "FullSize")));
|
|
11761
11791
|
|
|
11762
|
-
add_location(div2, file,
|
|
11792
|
+
add_location(div2, file, 191, 6, 6828);
|
|
11763
11793
|
|
|
11764
11794
|
attr_dev(div3, "class", div3_class_value = /*showleaderboard*/ ctx[0] == "true"
|
|
11765
11795
|
? "TournamentTableDetails "
|
|
11766
11796
|
: "DisplayNone");
|
|
11767
11797
|
|
|
11768
|
-
add_location(div3, file,
|
|
11798
|
+
add_location(div3, file, 214, 6, 7693);
|
|
11769
11799
|
attr_dev(div4, "class", "TournamentContentDetails " + (isMobile(/*userAgent*/ ctx[11]) ? "MobileClass" : ""));
|
|
11770
|
-
add_location(div4, file,
|
|
11800
|
+
add_location(div4, file, 190, 4, 6740);
|
|
11771
11801
|
attr_dev(div5, "class", "TournamentsPage");
|
|
11772
|
-
add_location(div5, file,
|
|
11802
|
+
add_location(div5, file, 165, 2, 5574);
|
|
11773
11803
|
},
|
|
11774
11804
|
m: function mount(target, anchor) {
|
|
11775
11805
|
insert_dev(target, div5, anchor);
|
|
@@ -11791,7 +11821,7 @@
|
|
|
11791
11821
|
if (if_block2) if_block2.m(div3, null);
|
|
11792
11822
|
|
|
11793
11823
|
if (!mounted) {
|
|
11794
|
-
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[
|
|
11824
|
+
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[17], false, false, false);
|
|
11795
11825
|
mounted = true;
|
|
11796
11826
|
}
|
|
11797
11827
|
},
|
|
@@ -11863,14 +11893,14 @@
|
|
|
11863
11893
|
block,
|
|
11864
11894
|
id: create_else_block.name,
|
|
11865
11895
|
type: "else",
|
|
11866
|
-
source: "(
|
|
11896
|
+
source: "(165:0) {:else}",
|
|
11867
11897
|
ctx
|
|
11868
11898
|
});
|
|
11869
11899
|
|
|
11870
11900
|
return block;
|
|
11871
11901
|
}
|
|
11872
11902
|
|
|
11873
|
-
// (
|
|
11903
|
+
// (163:0) {#if isLoading}
|
|
11874
11904
|
function create_if_block(ctx) {
|
|
11875
11905
|
let p;
|
|
11876
11906
|
let t_value = /*$_*/ ctx[10]("tournamentsPage.loading") + "";
|
|
@@ -11880,7 +11910,7 @@
|
|
|
11880
11910
|
c: function create() {
|
|
11881
11911
|
p = element("p");
|
|
11882
11912
|
t = text(t_value);
|
|
11883
|
-
add_location(p, file,
|
|
11913
|
+
add_location(p, file, 163, 2, 5525);
|
|
11884
11914
|
},
|
|
11885
11915
|
m: function mount(target, anchor) {
|
|
11886
11916
|
insert_dev(target, p, anchor);
|
|
@@ -11898,14 +11928,14 @@
|
|
|
11898
11928
|
block,
|
|
11899
11929
|
id: create_if_block.name,
|
|
11900
11930
|
type: "if",
|
|
11901
|
-
source: "(
|
|
11931
|
+
source: "(163:0) {#if isLoading}",
|
|
11902
11932
|
ctx
|
|
11903
11933
|
});
|
|
11904
11934
|
|
|
11905
11935
|
return block;
|
|
11906
11936
|
}
|
|
11907
11937
|
|
|
11908
|
-
// (
|
|
11938
|
+
// (193:8) {#if tournamentDetails}
|
|
11909
11939
|
function create_if_block_4(ctx) {
|
|
11910
11940
|
let casino_tournaments_thumbnail_controller;
|
|
11911
11941
|
let casino_tournaments_thumbnail_controller_tournamenturl_value;
|
|
@@ -11924,7 +11954,7 @@
|
|
|
11924
11954
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "fullsize", casino_tournaments_thumbnail_controller_fullsize_value = !!/*showleaderboard*/ ctx[0]);
|
|
11925
11955
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "lang", /*lang*/ ctx[4]);
|
|
11926
11956
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "currency", /*currency*/ ctx[5]);
|
|
11927
|
-
add_location(casino_tournaments_thumbnail_controller, file,
|
|
11957
|
+
add_location(casino_tournaments_thumbnail_controller, file, 193, 10, 6993);
|
|
11928
11958
|
},
|
|
11929
11959
|
m: function mount(target, anchor) {
|
|
11930
11960
|
insert_dev(target, casino_tournaments_thumbnail_controller, anchor);
|
|
@@ -11967,14 +11997,14 @@
|
|
|
11967
11997
|
block,
|
|
11968
11998
|
id: create_if_block_4.name,
|
|
11969
11999
|
type: "if",
|
|
11970
|
-
source: "(
|
|
12000
|
+
source: "(193:8) {#if tournamentDetails}",
|
|
11971
12001
|
ctx
|
|
11972
12002
|
});
|
|
11973
12003
|
|
|
11974
12004
|
return block;
|
|
11975
12005
|
}
|
|
11976
12006
|
|
|
11977
|
-
// (
|
|
12007
|
+
// (207:8) {#if tournamentDescription.length > 0}
|
|
11978
12008
|
function create_if_block_3(ctx) {
|
|
11979
12009
|
let each_1_anchor;
|
|
11980
12010
|
let each_value = /*tournamentDescription*/ ctx[7];
|
|
@@ -12035,14 +12065,14 @@
|
|
|
12035
12065
|
block,
|
|
12036
12066
|
id: create_if_block_3.name,
|
|
12037
12067
|
type: "if",
|
|
12038
|
-
source: "(
|
|
12068
|
+
source: "(207:8) {#if tournamentDescription.length > 0}",
|
|
12039
12069
|
ctx
|
|
12040
12070
|
});
|
|
12041
12071
|
|
|
12042
12072
|
return block;
|
|
12043
12073
|
}
|
|
12044
12074
|
|
|
12045
|
-
// (
|
|
12075
|
+
// (208:10) {#each tournamentDescription as desc}
|
|
12046
12076
|
function create_each_block(ctx) {
|
|
12047
12077
|
let casino_tournaments_details;
|
|
12048
12078
|
let casino_tournaments_details_title_value;
|
|
@@ -12051,19 +12081,19 @@
|
|
|
12051
12081
|
const block = {
|
|
12052
12082
|
c: function create() {
|
|
12053
12083
|
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,
|
|
12084
|
+
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[33].title);
|
|
12085
|
+
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[33].description);
|
|
12086
|
+
add_location(casino_tournaments_details, file, 208, 12, 7527);
|
|
12057
12087
|
},
|
|
12058
12088
|
m: function mount(target, anchor) {
|
|
12059
12089
|
insert_dev(target, casino_tournaments_details, anchor);
|
|
12060
12090
|
},
|
|
12061
12091
|
p: function update(ctx, dirty) {
|
|
12062
|
-
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[
|
|
12092
|
+
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[33].title)) {
|
|
12063
12093
|
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value);
|
|
12064
12094
|
}
|
|
12065
12095
|
|
|
12066
|
-
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[
|
|
12096
|
+
if (dirty[0] & /*tournamentDescription*/ 128 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[33].description)) {
|
|
12067
12097
|
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value);
|
|
12068
12098
|
}
|
|
12069
12099
|
},
|
|
@@ -12076,14 +12106,14 @@
|
|
|
12076
12106
|
block,
|
|
12077
12107
|
id: create_each_block.name,
|
|
12078
12108
|
type: "each",
|
|
12079
|
-
source: "(
|
|
12109
|
+
source: "(208:10) {#each tournamentDescription as desc}",
|
|
12080
12110
|
ctx
|
|
12081
12111
|
});
|
|
12082
12112
|
|
|
12083
12113
|
return block;
|
|
12084
12114
|
}
|
|
12085
12115
|
|
|
12086
|
-
// (
|
|
12116
|
+
// (216:8) {#if showleaderboard == "true"}
|
|
12087
12117
|
function create_if_block_1(ctx) {
|
|
12088
12118
|
let if_block_anchor;
|
|
12089
12119
|
let if_block = /*showTable*/ ctx[9] == true && create_if_block_2(ctx);
|
|
@@ -12121,14 +12151,14 @@
|
|
|
12121
12151
|
block,
|
|
12122
12152
|
id: create_if_block_1.name,
|
|
12123
12153
|
type: "if",
|
|
12124
|
-
source: "(
|
|
12154
|
+
source: "(216:8) {#if showleaderboard == \\\"true\\\"}",
|
|
12125
12155
|
ctx
|
|
12126
12156
|
});
|
|
12127
12157
|
|
|
12128
12158
|
return block;
|
|
12129
12159
|
}
|
|
12130
12160
|
|
|
12131
|
-
// (
|
|
12161
|
+
// (217:10) {#if showTable == true}
|
|
12132
12162
|
function create_if_block_2(ctx) {
|
|
12133
12163
|
let casino_tournaments_table;
|
|
12134
12164
|
|
|
@@ -12138,7 +12168,7 @@
|
|
|
12138
12168
|
set_custom_element_data(casino_tournaments_table, "firstrow", "true");
|
|
12139
12169
|
set_custom_element_data(casino_tournaments_table, "sortable", "false");
|
|
12140
12170
|
set_custom_element_data(casino_tournaments_table, "lang", /*lang*/ ctx[4]);
|
|
12141
|
-
add_location(casino_tournaments_table, file,
|
|
12171
|
+
add_location(casino_tournaments_table, file, 217, 12, 7865);
|
|
12142
12172
|
},
|
|
12143
12173
|
m: function mount(target, anchor) {
|
|
12144
12174
|
insert_dev(target, casino_tournaments_table, anchor);
|
|
@@ -12157,7 +12187,7 @@
|
|
|
12157
12187
|
block,
|
|
12158
12188
|
id: create_if_block_2.name,
|
|
12159
12189
|
type: "if",
|
|
12160
|
-
source: "(
|
|
12190
|
+
source: "(217:10) {#if showTable == true}",
|
|
12161
12191
|
ctx
|
|
12162
12192
|
});
|
|
12163
12193
|
|
|
@@ -12235,6 +12265,7 @@
|
|
|
12235
12265
|
let { lang = "" } = $$props;
|
|
12236
12266
|
let { navigationbackbutton = "Default" } = $$props;
|
|
12237
12267
|
let { currency = "EUR" } = $$props;
|
|
12268
|
+
let { tablelimit = "30" } = $$props;
|
|
12238
12269
|
|
|
12239
12270
|
// Variables of topics for communication
|
|
12240
12271
|
let sessionTopic;
|
|
@@ -12296,7 +12327,7 @@
|
|
|
12296
12327
|
reqHeaders.append("platform", getDevice(userAgent));
|
|
12297
12328
|
let requestOptions = { method: "GET", headers: reqHeaders };
|
|
12298
12329
|
|
|
12299
|
-
fetch(url, requestOptions).then(res => res.json()).then(res => {
|
|
12330
|
+
fetch(url.href, requestOptions).then(res => res.json()).then(res => {
|
|
12300
12331
|
$$invalidate(8, tournamentDetails = res.item);
|
|
12301
12332
|
|
|
12302
12333
|
if (res.item.state == "Unstarted") {
|
|
@@ -12320,7 +12351,7 @@
|
|
|
12320
12351
|
window.postMessage(
|
|
12321
12352
|
{
|
|
12322
12353
|
type: "CasinoTableData",
|
|
12323
|
-
tableData: tournamentTableData
|
|
12354
|
+
tableData: tournamentTableData.slice(0, tablelimit)
|
|
12324
12355
|
},
|
|
12325
12356
|
window.location.href
|
|
12326
12357
|
);
|
|
@@ -12404,7 +12435,8 @@
|
|
|
12404
12435
|
"cmsendpoint",
|
|
12405
12436
|
"lang",
|
|
12406
12437
|
"navigationbackbutton",
|
|
12407
|
-
"currency"
|
|
12438
|
+
"currency",
|
|
12439
|
+
"tablelimit"
|
|
12408
12440
|
];
|
|
12409
12441
|
|
|
12410
12442
|
Object_1.keys($$props).forEach(key => {
|
|
@@ -12423,6 +12455,7 @@
|
|
|
12423
12455
|
if ("lang" in $$props) $$invalidate(4, lang = $$props.lang);
|
|
12424
12456
|
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
12425
12457
|
if ("currency" in $$props) $$invalidate(5, currency = $$props.currency);
|
|
12458
|
+
if ("tablelimit" in $$props) $$invalidate(16, tablelimit = $$props.tablelimit);
|
|
12426
12459
|
};
|
|
12427
12460
|
|
|
12428
12461
|
$$self.$capture_state = () => ({
|
|
@@ -12444,6 +12477,7 @@
|
|
|
12444
12477
|
lang,
|
|
12445
12478
|
navigationbackbutton,
|
|
12446
12479
|
currency,
|
|
12480
|
+
tablelimit,
|
|
12447
12481
|
sessionTopic,
|
|
12448
12482
|
isLoggedIn,
|
|
12449
12483
|
sessionID,
|
|
@@ -12478,6 +12512,7 @@
|
|
|
12478
12512
|
if ("lang" in $$props) $$invalidate(4, lang = $$props.lang);
|
|
12479
12513
|
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
12480
12514
|
if ("currency" in $$props) $$invalidate(5, currency = $$props.currency);
|
|
12515
|
+
if ("tablelimit" in $$props) $$invalidate(16, tablelimit = $$props.tablelimit);
|
|
12481
12516
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
12482
12517
|
if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
|
|
12483
12518
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
@@ -12527,6 +12562,7 @@
|
|
|
12527
12562
|
tourid,
|
|
12528
12563
|
cmsendpoint,
|
|
12529
12564
|
navigationbackbutton,
|
|
12565
|
+
tablelimit,
|
|
12530
12566
|
click_handler
|
|
12531
12567
|
];
|
|
12532
12568
|
}
|
|
@@ -12555,7 +12591,8 @@
|
|
|
12555
12591
|
cmsendpoint: 14,
|
|
12556
12592
|
lang: 4,
|
|
12557
12593
|
navigationbackbutton: 15,
|
|
12558
|
-
currency: 5
|
|
12594
|
+
currency: 5,
|
|
12595
|
+
tablelimit: 16
|
|
12559
12596
|
},
|
|
12560
12597
|
[-1, -1]
|
|
12561
12598
|
);
|
|
@@ -12582,7 +12619,8 @@
|
|
|
12582
12619
|
"cmsendpoint",
|
|
12583
12620
|
"lang",
|
|
12584
12621
|
"navigationbackbutton",
|
|
12585
|
-
"currency"
|
|
12622
|
+
"currency",
|
|
12623
|
+
"tablelimit"
|
|
12586
12624
|
];
|
|
12587
12625
|
}
|
|
12588
12626
|
|
|
@@ -12666,6 +12704,15 @@
|
|
|
12666
12704
|
this.$set({ currency });
|
|
12667
12705
|
flush();
|
|
12668
12706
|
}
|
|
12707
|
+
|
|
12708
|
+
get tablelimit() {
|
|
12709
|
+
return this.$$.ctx[16];
|
|
12710
|
+
}
|
|
12711
|
+
|
|
12712
|
+
set tablelimit(tablelimit) {
|
|
12713
|
+
this.$set({ tablelimit });
|
|
12714
|
+
flush();
|
|
12715
|
+
}
|
|
12669
12716
|
}
|
|
12670
12717
|
|
|
12671
12718
|
!customElements.get('casino-tournaments-page-controller') && customElements.define('casino-tournaments-page-controller', CasinoTournamentsPageController);
|