@everymatrix/casino-tournaments-thumbnail-duration 0.0.115 → 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.
|
@@ -3071,7 +3071,7 @@
|
|
|
3071
3071
|
const { Object: Object_1 } = globals;
|
|
3072
3072
|
const file = "src/CasinoTournmanetsThumbnailDuration.svelte";
|
|
3073
3073
|
|
|
3074
|
-
// (
|
|
3074
|
+
// (72:2) {#if startdate && enddate}
|
|
3075
3075
|
function create_if_block(ctx) {
|
|
3076
3076
|
let div2;
|
|
3077
3077
|
let div0;
|
|
@@ -3105,13 +3105,13 @@
|
|
|
3105
3105
|
div3 = element("div");
|
|
3106
3106
|
if_block.c();
|
|
3107
3107
|
attr_dev(div0, "class", "StartDate");
|
|
3108
|
-
add_location(div0, file,
|
|
3108
|
+
add_location(div0, file, 73, 6, 2460);
|
|
3109
3109
|
attr_dev(div1, "class", "EndDate");
|
|
3110
|
-
add_location(div1, file,
|
|
3110
|
+
add_location(div1, file, 74, 6, 2527);
|
|
3111
3111
|
attr_dev(div2, "class", "TournamentDates");
|
|
3112
|
-
add_location(div2, file,
|
|
3112
|
+
add_location(div2, file, 72, 4, 2424);
|
|
3113
3113
|
attr_dev(div3, "class", "ProgressBar");
|
|
3114
|
-
add_location(div3, file,
|
|
3114
|
+
add_location(div3, file, 76, 4, 2597);
|
|
3115
3115
|
},
|
|
3116
3116
|
m: function mount(target, anchor) {
|
|
3117
3117
|
insert_dev(target, div2, anchor);
|
|
@@ -3164,14 +3164,14 @@
|
|
|
3164
3164
|
block,
|
|
3165
3165
|
id: create_if_block.name,
|
|
3166
3166
|
type: "if",
|
|
3167
|
-
source: "(
|
|
3167
|
+
source: "(72:2) {#if startdate && enddate}",
|
|
3168
3168
|
ctx
|
|
3169
3169
|
});
|
|
3170
3170
|
|
|
3171
3171
|
return block;
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
-
// (
|
|
3174
|
+
// (85:8) {:else}
|
|
3175
3175
|
function create_else_block(ctx) {
|
|
3176
3176
|
let div;
|
|
3177
3177
|
let t;
|
|
@@ -3186,7 +3186,7 @@
|
|
|
3186
3186
|
if_block_anchor = empty();
|
|
3187
3187
|
attr_dev(div, "class", "ProgressBarFill");
|
|
3188
3188
|
set_style(div, "width", /*progress*/ ctx[7] + "%");
|
|
3189
|
-
add_location(div, file,
|
|
3189
|
+
add_location(div, file, 85, 10, 3110);
|
|
3190
3190
|
},
|
|
3191
3191
|
m: function mount(target, anchor) {
|
|
3192
3192
|
insert_dev(target, div, anchor);
|
|
@@ -3224,14 +3224,14 @@
|
|
|
3224
3224
|
block,
|
|
3225
3225
|
id: create_else_block.name,
|
|
3226
3226
|
type: "else",
|
|
3227
|
-
source: "(
|
|
3227
|
+
source: "(85:8) {:else}",
|
|
3228
3228
|
ctx
|
|
3229
3229
|
});
|
|
3230
3230
|
|
|
3231
3231
|
return block;
|
|
3232
3232
|
}
|
|
3233
3233
|
|
|
3234
|
-
// (
|
|
3234
|
+
// (82:8) {#if tournamentUntilStartDays > 0}
|
|
3235
3235
|
function create_if_block_2(ctx) {
|
|
3236
3236
|
let div0;
|
|
3237
3237
|
let t0;
|
|
@@ -3255,9 +3255,9 @@
|
|
|
3255
3255
|
t4 = space();
|
|
3256
3256
|
t5 = text(t5_value);
|
|
3257
3257
|
attr_dev(div0, "class", "ProgressBarFillStarting");
|
|
3258
|
-
add_location(div0, file,
|
|
3258
|
+
add_location(div0, file, 82, 10, 2904);
|
|
3259
3259
|
attr_dev(div1, "class", "Remaining");
|
|
3260
|
-
add_location(div1, file,
|
|
3260
|
+
add_location(div1, file, 83, 10, 2958);
|
|
3261
3261
|
},
|
|
3262
3262
|
m: function mount(target, anchor) {
|
|
3263
3263
|
insert_dev(target, div0, anchor);
|
|
@@ -3285,14 +3285,14 @@
|
|
|
3285
3285
|
block,
|
|
3286
3286
|
id: create_if_block_2.name,
|
|
3287
3287
|
type: "if",
|
|
3288
|
-
source: "(
|
|
3288
|
+
source: "(82:8) {#if tournamentUntilStartDays > 0}",
|
|
3289
3289
|
ctx
|
|
3290
3290
|
});
|
|
3291
3291
|
|
|
3292
3292
|
return block;
|
|
3293
3293
|
}
|
|
3294
3294
|
|
|
3295
|
-
// (
|
|
3295
|
+
// (78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
3296
3296
|
function create_if_block_1(ctx) {
|
|
3297
3297
|
let div0;
|
|
3298
3298
|
let t0;
|
|
@@ -3307,9 +3307,9 @@
|
|
|
3307
3307
|
div1 = element("div");
|
|
3308
3308
|
t1 = text(t1_value);
|
|
3309
3309
|
attr_dev(div0, "class", "ProgressBarFillEnd");
|
|
3310
|
-
add_location(div0, file,
|
|
3310
|
+
add_location(div0, file, 78, 8, 2725);
|
|
3311
3311
|
attr_dev(div1, "class", "Finished");
|
|
3312
|
-
add_location(div1, file,
|
|
3312
|
+
add_location(div1, file, 79, 8, 2772);
|
|
3313
3313
|
},
|
|
3314
3314
|
m: function mount(target, anchor) {
|
|
3315
3315
|
insert_dev(target, div0, anchor);
|
|
@@ -3331,14 +3331,14 @@
|
|
|
3331
3331
|
block,
|
|
3332
3332
|
id: create_if_block_1.name,
|
|
3333
3333
|
type: "if",
|
|
3334
|
-
source: "(
|
|
3334
|
+
source: "(78:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}",
|
|
3335
3335
|
ctx
|
|
3336
3336
|
});
|
|
3337
3337
|
|
|
3338
3338
|
return block;
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
|
-
// (
|
|
3341
|
+
// (87:10) {#if tournamentLeftDays > 0}
|
|
3342
3342
|
function create_if_block_3(ctx) {
|
|
3343
3343
|
let t0;
|
|
3344
3344
|
let t1;
|
|
@@ -3418,14 +3418,14 @@
|
|
|
3418
3418
|
block,
|
|
3419
3419
|
id: create_if_block_3.name,
|
|
3420
3420
|
type: "if",
|
|
3421
|
-
source: "(
|
|
3421
|
+
source: "(87:10) {#if tournamentLeftDays > 0}",
|
|
3422
3422
|
ctx
|
|
3423
3423
|
});
|
|
3424
3424
|
|
|
3425
3425
|
return block;
|
|
3426
3426
|
}
|
|
3427
3427
|
|
|
3428
|
-
// (
|
|
3428
|
+
// (88:12) {#if diffMinutes}
|
|
3429
3429
|
function create_if_block_6(ctx) {
|
|
3430
3430
|
let div;
|
|
3431
3431
|
let t0;
|
|
@@ -3440,7 +3440,7 @@
|
|
|
3440
3440
|
t1 = space();
|
|
3441
3441
|
t2 = text(t2_value);
|
|
3442
3442
|
attr_dev(div, "class", "Remaining");
|
|
3443
|
-
add_location(div, file,
|
|
3443
|
+
add_location(div, file, 88, 14, 3255);
|
|
3444
3444
|
},
|
|
3445
3445
|
m: function mount(target, anchor) {
|
|
3446
3446
|
insert_dev(target, div, anchor);
|
|
@@ -3461,14 +3461,14 @@
|
|
|
3461
3461
|
block,
|
|
3462
3462
|
id: create_if_block_6.name,
|
|
3463
3463
|
type: "if",
|
|
3464
|
-
source: "(
|
|
3464
|
+
source: "(88:12) {#if diffMinutes}",
|
|
3465
3465
|
ctx
|
|
3466
3466
|
});
|
|
3467
3467
|
|
|
3468
3468
|
return block;
|
|
3469
3469
|
}
|
|
3470
3470
|
|
|
3471
|
-
// (
|
|
3471
|
+
// (91:12) {#if diffHours}
|
|
3472
3472
|
function create_if_block_5(ctx) {
|
|
3473
3473
|
let div;
|
|
3474
3474
|
let t0;
|
|
@@ -3483,7 +3483,7 @@
|
|
|
3483
3483
|
t1 = space();
|
|
3484
3484
|
t2 = text(t2_value);
|
|
3485
3485
|
attr_dev(div, "class", "Remaining");
|
|
3486
|
-
add_location(div, file,
|
|
3486
|
+
add_location(div, file, 91, 14, 3405);
|
|
3487
3487
|
},
|
|
3488
3488
|
m: function mount(target, anchor) {
|
|
3489
3489
|
insert_dev(target, div, anchor);
|
|
@@ -3504,14 +3504,14 @@
|
|
|
3504
3504
|
block,
|
|
3505
3505
|
id: create_if_block_5.name,
|
|
3506
3506
|
type: "if",
|
|
3507
|
-
source: "(
|
|
3507
|
+
source: "(91:12) {#if diffHours}",
|
|
3508
3508
|
ctx
|
|
3509
3509
|
});
|
|
3510
3510
|
|
|
3511
3511
|
return block;
|
|
3512
3512
|
}
|
|
3513
3513
|
|
|
3514
|
-
// (
|
|
3514
|
+
// (94:12) {#if diffDays}
|
|
3515
3515
|
function create_if_block_4(ctx) {
|
|
3516
3516
|
let div;
|
|
3517
3517
|
let t0;
|
|
@@ -3526,7 +3526,7 @@
|
|
|
3526
3526
|
t1 = space();
|
|
3527
3527
|
t2 = text(t2_value);
|
|
3528
3528
|
attr_dev(div, "class", "Remaining");
|
|
3529
|
-
add_location(div, file,
|
|
3529
|
+
add_location(div, file, 94, 14, 3552);
|
|
3530
3530
|
},
|
|
3531
3531
|
m: function mount(target, anchor) {
|
|
3532
3532
|
insert_dev(target, div, anchor);
|
|
@@ -3547,7 +3547,7 @@
|
|
|
3547
3547
|
block,
|
|
3548
3548
|
id: create_if_block_4.name,
|
|
3549
3549
|
type: "if",
|
|
3550
|
-
source: "(
|
|
3550
|
+
source: "(94:12) {#if diffDays}",
|
|
3551
3551
|
ctx
|
|
3552
3552
|
});
|
|
3553
3553
|
|
|
@@ -3564,7 +3564,7 @@
|
|
|
3564
3564
|
if (if_block) if_block.c();
|
|
3565
3565
|
this.c = noop;
|
|
3566
3566
|
attr_dev(div, "class", "TournamentDuration");
|
|
3567
|
-
add_location(div, file,
|
|
3567
|
+
add_location(div, file, 70, 0, 2358);
|
|
3568
3568
|
},
|
|
3569
3569
|
l: function claim(nodes) {
|
|
3570
3570
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -3615,6 +3615,7 @@
|
|
|
3615
3615
|
let { startdate = "" } = $$props;
|
|
3616
3616
|
let { enddate = "" } = $$props;
|
|
3617
3617
|
let { status = "" } = $$props;
|
|
3618
|
+
let { lang = "en" } = $$props;
|
|
3618
3619
|
let startDate = "";
|
|
3619
3620
|
let endDate = "";
|
|
3620
3621
|
let tournamentDuration = "";
|
|
@@ -3633,7 +3634,7 @@
|
|
|
3633
3634
|
const formatDate = date => {
|
|
3634
3635
|
const dateOptions = { month: "long" };
|
|
3635
3636
|
let currentDate = new Date(date);
|
|
3636
|
-
let currentMonth = new Intl.DateTimeFormat(
|
|
3637
|
+
let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
|
|
3637
3638
|
let currentDay = currentDate.getDate();
|
|
3638
3639
|
return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${currentDate.getUTCFullYear()}`;
|
|
3639
3640
|
};
|
|
@@ -3681,7 +3682,7 @@
|
|
|
3681
3682
|
}
|
|
3682
3683
|
};
|
|
3683
3684
|
|
|
3684
|
-
const writable_props = ["startdate", "enddate", "status"];
|
|
3685
|
+
const writable_props = ["startdate", "enddate", "status", "lang"];
|
|
3685
3686
|
|
|
3686
3687
|
Object_1.keys($$props).forEach(key => {
|
|
3687
3688
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -3691,6 +3692,7 @@
|
|
|
3691
3692
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
3692
3693
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
3693
3694
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
3695
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
3694
3696
|
};
|
|
3695
3697
|
|
|
3696
3698
|
$$self.$capture_state = () => ({
|
|
@@ -3701,6 +3703,7 @@
|
|
|
3701
3703
|
startdate,
|
|
3702
3704
|
enddate,
|
|
3703
3705
|
status,
|
|
3706
|
+
lang,
|
|
3704
3707
|
startDate,
|
|
3705
3708
|
endDate,
|
|
3706
3709
|
tournamentDuration,
|
|
@@ -3723,6 +3726,7 @@
|
|
|
3723
3726
|
if ("startdate" in $$props) $$invalidate(0, startdate = $$props.startdate);
|
|
3724
3727
|
if ("enddate" in $$props) $$invalidate(1, enddate = $$props.enddate);
|
|
3725
3728
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
3729
|
+
if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
|
|
3726
3730
|
if ("startDate" in $$props) $$invalidate(3, startDate = $$props.startDate);
|
|
3727
3731
|
if ("endDate" in $$props) $$invalidate(4, endDate = $$props.endDate);
|
|
3728
3732
|
if ("tournamentDuration" in $$props) tournamentDuration = $$props.tournamentDuration;
|
|
@@ -3754,7 +3758,8 @@
|
|
|
3754
3758
|
$_,
|
|
3755
3759
|
formatStartDate,
|
|
3756
3760
|
formatEndDate,
|
|
3757
|
-
getDuration
|
|
3761
|
+
getDuration,
|
|
3762
|
+
lang
|
|
3758
3763
|
];
|
|
3759
3764
|
}
|
|
3760
3765
|
|
|
@@ -3773,7 +3778,12 @@
|
|
|
3773
3778
|
instance,
|
|
3774
3779
|
create_fragment,
|
|
3775
3780
|
safe_not_equal,
|
|
3776
|
-
{
|
|
3781
|
+
{
|
|
3782
|
+
startdate: 0,
|
|
3783
|
+
enddate: 1,
|
|
3784
|
+
status: 2,
|
|
3785
|
+
lang: 15
|
|
3786
|
+
}
|
|
3777
3787
|
);
|
|
3778
3788
|
|
|
3779
3789
|
if (options) {
|
|
@@ -3789,7 +3799,7 @@
|
|
|
3789
3799
|
}
|
|
3790
3800
|
|
|
3791
3801
|
static get observedAttributes() {
|
|
3792
|
-
return ["startdate", "enddate", "status"];
|
|
3802
|
+
return ["startdate", "enddate", "status", "lang"];
|
|
3793
3803
|
}
|
|
3794
3804
|
|
|
3795
3805
|
get startdate() {
|
|
@@ -3818,6 +3828,15 @@
|
|
|
3818
3828
|
this.$set({ status });
|
|
3819
3829
|
flush();
|
|
3820
3830
|
}
|
|
3831
|
+
|
|
3832
|
+
get lang() {
|
|
3833
|
+
return this.$$.ctx[15];
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
set lang(lang) {
|
|
3837
|
+
this.$set({ lang });
|
|
3838
|
+
flush();
|
|
3839
|
+
}
|
|
3821
3840
|
}
|
|
3822
3841
|
|
|
3823
3842
|
!customElements.get('casino-tournaments-thumbnail-duration') && customElements.define('casino-tournaments-thumbnail-duration', CasinoTournmanetsThumbnailDuration);
|