@everymatrix/casino-tournaments-controller 1.45.0 → 1.45.2
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.
- package/components/{CasinoTournamentsController-BgoGP80M.cjs → CasinoTournamentsController-CQ5C1jDl.cjs} +7 -7
- package/components/{CasinoTournamentsController-BBv1Hyoc.js → CasinoTournamentsController-Cr8b4j7l.js} +332 -332
- package/components/CasinoTournamentsFilterController-BtuK-ddv.cjs +1 -0
- package/components/{CasinoTournamentsFilterController-BqjTkXsP.js → CasinoTournamentsFilterController-Chy_sE0V.js} +118 -118
- package/components/{CasinoTournamentsListController-nfyqtXdi.cjs → CasinoTournamentsListController-BinvLjvx.cjs} +3 -3
- package/components/{CasinoTournamentsListController-BHZPf1Di.js → CasinoTournamentsListController-DXHqP9An.js} +111 -111
- package/components/{CasinoTournamentsThumbnail-DdkzbUpk.js → CasinoTournamentsThumbnail-BFS6MlWH.js} +190 -190
- package/components/CasinoTournamentsThumbnail-CM3Rfdn3.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-C71hXcQP.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-NEf6XMRB.js +1405 -0
- package/components/CasinoTournamentsThumbnailDuration-CrS_PUCZ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-bu3Mm2Ay.js +495 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DNrAc-zm.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-_haSuIUI.js +438 -0
- package/components/CasinoTournamentsThumbnailPrizes-BRcfU1P4.js +310 -0
- package/components/CasinoTournamentsThumbnailPrizes-E5pafLaj.cjs +1 -0
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsFilterController-DRPLlsmH.cjs +0 -1
- package/components/CasinoTournamentsThumbnail-B5svaS7p.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-BnIRoSw0.cjs +0 -1
- package/components/CasinoTournamentsThumbnailController-DX_9tXvb.js +0 -1405
- package/components/CasinoTournamentsThumbnailDuration-BZyUIEUp.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-CVtlYaVM.js +0 -495
- package/components/CasinoTournamentsThumbnailGamesSlider-CPUoPnwu.js +0 -438
- package/components/CasinoTournamentsThumbnailGamesSlider-CuGCo4r6.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CPmYLRmC.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-DD7Zhrne.js +0 -310
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-BgoGP80M.cjs");function P(s,e){t.addMessages(s,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function O(s){t.append_styles(s,"svelte-1hp648c",".svelte-1hp648c,.svelte-1hp648c::before,.svelte-1hp648c::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates.svelte-1hp648c{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate.svelte-1hp648c{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate.svelte-1hp648c{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar.svelte-1hp648c{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting.svelte-1hp648c{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining.svelte-1hp648c,.Finished.svelte-1hp648c{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished.svelte-1hp648c{color:var(--emfe-w-color-green, #48952a)}")}function z(s){let e,n,i=s[10](s[0])+"",l,u,o,c=s[10](s[1])+"",h,k,_,g,v,D,S;function C(a,y){return a[2]=="Finished"||a[2]=="Closing"||a[2]=="Closed"?q:a[5]>0?N:U}let B=C(s),m=B(s);function w(a,y){if(a[2]=="Finished"||a[2]=="Closing"||a[2]=="Closed")return x;if(a[5]>0)return H;if(a[4]>0)return A}let b=w(s),f=b&&b(s);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(i),u=t.space(),o=t.element("div"),h=t.text(c),k=t.space(),_=t.element("div"),g=t.element("div"),m.c(),v=t.space(),f&&f.c(),t.attr(n,"class","StartDate svelte-1hp648c"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate svelte-1hp648c"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates svelte-1hp648c"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar svelte-1hp648c"),t.attr(g,"part","ProgressBar"),t.attr(_,"class","ProgressBarWrapper svelte-1hp648c"),t.attr(_,"part","ProgressBarWrapper")},m(a,y){t.insert(a,e,y),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,h),t.insert(a,k,y),t.insert(a,_,y),t.append(_,g),m.m(g,null),t.append(g,v),f&&f.m(g,null),D||(S=t.action_destroyer(s[9].call(null,_)),D=!0)},p(a,y){y&1&&i!==(i=a[10](a[0])+"")&&t.set_data(l,i),y&2&&c!==(c=a[10](a[1])+"")&&t.set_data(h,c),B===(B=C(a))&&m?m.p(a,y):(m.d(1),m=B(a),m&&(m.c(),m.m(g,v))),b===(b=w(a))&&f?f.p(a,y):(f&&f.d(1),f=b&&b(a),f&&(f.c(),f.m(g,null)))},d(a){a&&(t.detach(e),t.detach(k),t.detach(_)),m.d(),f&&f.d(),D=!1,S()}}}function U(s){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill svelte-1hp648c"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",s[7]()+"%")},m(n,i){t.insert(n,e,i)},p(n,i){i&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function N(s){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting svelte-1hp648c"),t.attr(e,"part","ProgressBarFillStarting")},m(n,i){t.insert(n,e,i)},p:t.noop,d(n){n&&t.detach(e)}}}function q(s){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd svelte-1hp648c"),t.attr(e,"part","ProgressBarFillEnd")},m(n,i){t.insert(n,e,i)},p:t.noop,d(n){n&&t.detach(e)}}}function A(s){let e,n,i,l=s[8]("tournamentsDuration.left")+"",u;return{c(){e=t.element("div"),n=t.text(s[6]),i=t.space(),u=t.text(l),t.attr(e,"class","Remaining svelte-1hp648c"),t.attr(e,"part","Remaining")},m(o,c){t.insert(o,e,c),t.append(e,n),t.append(e,i),t.append(e,u)},p(o,c){c&64&&t.set_data(n,o[6]),c&256&&l!==(l=o[8]("tournamentsDuration.left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function H(s){let e,n=s[8]("tournamentsDuration.starting")+"",i,l,u=s[11](s[5])+"",o;return{c(){e=t.element("div"),i=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining svelte-1hp648c"),t.attr(e,"part","Remaining")},m(c,h){t.insert(c,e,h),t.append(e,i),t.append(e,l),t.append(e,o)},p(c,h){h&256&&n!==(n=c[8]("tournamentsDuration.starting")+"")&&t.set_data(i,n),h&32&&u!==(u=c[11](c[5])+"")&&t.set_data(o,u)},d(c){c&&t.detach(e)}}}function x(s){let e,n=s[8]("tournamentsDuration.finished")+"",i;return{c(){e=t.element("div"),i=t.text(n),t.attr(e,"class","Finished svelte-1hp648c"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,i)},p(l,u){u&256&&n!==(n=l[8]("tournamentsDuration.finished")+"")&&t.set_data(i,n)},d(l){l&&t.detach(e)}}}function W(s){let e,n=s[0]&&s[1]&&z(s);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration svelte-1hp648c"),t.attr(e,"part","TournamentDuration")},m(i,l){t.insert(i,e,l),n&&n.m(e,null),s[16](e)},p(i,[l]){i[0]&&i[1]?n?n.p(i,l):(n=z(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),n&&n.d(),s[16](null)}}}function G(s,e,n){let i,l;t.component_subscribe(s,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:c=""}=e,{lang:h="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:_=""}=e,{translationurl:g=""}=e,v,D="",S="",C="";const B=()=>{fetch(g).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{P(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(M).forEach(r=>{P(r,M[r])});const m=r=>new Date(r).getTime(),w=(r,d)=>(m(d)-m(r))/(1e3*60),b=()=>{const r=new Date;n(4,D=w(r,o)),n(5,S=w(r,u)),n(6,C=a(D))},f=r=>{const d={month:"long"};let p=new Date(r),T=new Intl.DateTimeFormat(h,d).format(p);return`${p.getDate()} ${T}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},a=r=>{const d=(T,F)=>T+" "+l(F),p=T=>{const F=Math.floor(T);return F<10?`0${F}`:`${F}`};if(r<1440){const T=r/60,F=r%60,L=(F-Math.floor(F))*60;return[T,F,L].map(I=>p(I)).join(":")}return d(Math.ceil(r/(60*24)),"tournamentsDuration.days")},y=()=>{let r=document.createElement("style");r.innerHTML=k,v.appendChild(r)},R=()=>{let r=new URL(_),d=document.createElement("style");fetch(r.href).then(p=>p.text()).then(p=>{d.innerHTML=p,setTimeout(()=>{v.appendChild(d)},1),setTimeout(()=>{},500)})};t.onMount(()=>{const r=setInterval(()=>{u&&o&&b()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{v=r,n(3,v)})}return s.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,c=r.status),"lang"in r&&n(12,h=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,_=r.clientstylingurl),"translationurl"in r&&n(15,g=r.translationurl)},s.$$.update=()=>{s.$$.dirty&19&&n(7,i=()=>{if(D<=0)return 100;const r=w(u,o),d=100/r;return Math.floor((r-D)*d)}),s.$$.dirty&19&&u&&o&&b()&&a(D),s.$$.dirty&4096&&h&&b(),s.$$.dirty&4112&&h&&a(D),s.$$.dirty&32768&&g&&B(),s.$$.dirty&8200&&v&&k&&y(),s.$$.dirty&16392&&v&&_&&R()},[u,o,c,v,D,S,C,i,l,b,f,a,h,k,_,g,j]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},O)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=E;
|
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
import { a as Y, S as Z, i as J, f as C, c as Q, s as V, b as X, e as D, d as l, h as B, n as U, j as w, k as x, w as $, t as z, m as I, o as m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-BBv1Hyoc.js";
|
|
2
|
-
function N(s, t) {
|
|
3
|
-
Y(s, t);
|
|
4
|
-
}
|
|
5
|
-
const O = {
|
|
6
|
-
en: {
|
|
7
|
-
finished: "Finished",
|
|
8
|
-
starting: "Starting in ",
|
|
9
|
-
left: "left",
|
|
10
|
-
minutes: "minutes",
|
|
11
|
-
hours: "hours",
|
|
12
|
-
days: "days"
|
|
13
|
-
},
|
|
14
|
-
hr: {
|
|
15
|
-
finished: "Završeno",
|
|
16
|
-
starting: "Starting in ",
|
|
17
|
-
left: "preostalo",
|
|
18
|
-
minutes: "minute",
|
|
19
|
-
hours: "sati",
|
|
20
|
-
days: "dana"
|
|
21
|
-
},
|
|
22
|
-
"zh-hk": {
|
|
23
|
-
finished: "完成的",
|
|
24
|
-
starting: "開始於",
|
|
25
|
-
left: "剩下",
|
|
26
|
-
minutes: "分鐘",
|
|
27
|
-
hours: "小時",
|
|
28
|
-
days: "天"
|
|
29
|
-
},
|
|
30
|
-
fr: {
|
|
31
|
-
finished: "Fini",
|
|
32
|
-
starting: "Début dans ",
|
|
33
|
-
left: "restant",
|
|
34
|
-
minutes: "minutes",
|
|
35
|
-
hours: "heures",
|
|
36
|
-
days: "jours"
|
|
37
|
-
},
|
|
38
|
-
ro: {
|
|
39
|
-
finished: "Finalizat",
|
|
40
|
-
starting: "Începe în",
|
|
41
|
-
left: "rămase",
|
|
42
|
-
minutes: "minute",
|
|
43
|
-
hours: "ore",
|
|
44
|
-
days: "zile"
|
|
45
|
-
},
|
|
46
|
-
tr: {
|
|
47
|
-
finished: "Bitti",
|
|
48
|
-
starting: "İçinde başlayan",
|
|
49
|
-
left: "sol",
|
|
50
|
-
minutes: "dakika",
|
|
51
|
-
hours: "saat",
|
|
52
|
-
days: "günler"
|
|
53
|
-
},
|
|
54
|
-
el: {
|
|
55
|
-
finished: "Ολοκληρωμένα",
|
|
56
|
-
starting: "Αρχίζει σε ",
|
|
57
|
-
left: "απομένουν",
|
|
58
|
-
minutes: "λεπτά",
|
|
59
|
-
hours: "ώρες",
|
|
60
|
-
days: "ημέρες"
|
|
61
|
-
},
|
|
62
|
-
es: {
|
|
63
|
-
finished: "Finalizado",
|
|
64
|
-
starting: "Iniciando en ",
|
|
65
|
-
left: "queda",
|
|
66
|
-
minutes: "minutos",
|
|
67
|
-
hours: "horas",
|
|
68
|
-
days: "días"
|
|
69
|
-
},
|
|
70
|
-
hu: {
|
|
71
|
-
finished: "Befejezve",
|
|
72
|
-
starting: "Kezdésig",
|
|
73
|
-
left: "bal",
|
|
74
|
-
minutes: "perc",
|
|
75
|
-
hours: "óra",
|
|
76
|
-
days: "nap"
|
|
77
|
-
},
|
|
78
|
-
pt: {
|
|
79
|
-
finished: "Finalizado",
|
|
80
|
-
starting: "Começando em",
|
|
81
|
-
left: "Abandonou",
|
|
82
|
-
minutes: "Minutos",
|
|
83
|
-
hours: "Horas",
|
|
84
|
-
days: "Dias"
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
function st(s) {
|
|
88
|
-
X(s, "svelte-1hp648c", ".svelte-1hp648c,.svelte-1hp648c::before,.svelte-1hp648c::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates.svelte-1hp648c{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate.svelte-1hp648c{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate.svelte-1hp648c{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar.svelte-1hp648c{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting.svelte-1hp648c{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining.svelte-1hp648c,.Finished.svelte-1hp648c{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished.svelte-1hp648c{color:var(--emfe-w-color-green, #48952a)}");
|
|
89
|
-
}
|
|
90
|
-
function H(s) {
|
|
91
|
-
let t, e, i = (
|
|
92
|
-
/*formatDate*/
|
|
93
|
-
s[10](
|
|
94
|
-
/*startdate*/
|
|
95
|
-
s[0]
|
|
96
|
-
) + ""
|
|
97
|
-
), a, u, o, c = (
|
|
98
|
-
/*formatDate*/
|
|
99
|
-
s[10](
|
|
100
|
-
/*enddate*/
|
|
101
|
-
s[1]
|
|
102
|
-
) + ""
|
|
103
|
-
), h, S, y, g, b, F, j;
|
|
104
|
-
function L(r, _) {
|
|
105
|
-
return (
|
|
106
|
-
/*status*/
|
|
107
|
-
r[2] == "Finished" || /*status*/
|
|
108
|
-
r[2] == "Closing" || /*status*/
|
|
109
|
-
r[2] == "Closed" ? at : (
|
|
110
|
-
/*tournamentUntilStartDays*/
|
|
111
|
-
r[5] > 0 ? rt : it
|
|
112
|
-
)
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
let E = L(s), p = E(s);
|
|
116
|
-
function R(r, _) {
|
|
117
|
-
if (
|
|
118
|
-
/*status*/
|
|
119
|
-
r[2] == "Finished" || /*status*/
|
|
120
|
-
r[2] == "Closing" || /*status*/
|
|
121
|
-
r[2] == "Closed"
|
|
122
|
-
) return ut;
|
|
123
|
-
if (
|
|
124
|
-
/*tournamentUntilStartDays*/
|
|
125
|
-
r[5] > 0
|
|
126
|
-
) return ot;
|
|
127
|
-
if (
|
|
128
|
-
/*tournamentLeftDays*/
|
|
129
|
-
r[4] > 0
|
|
130
|
-
) return lt;
|
|
131
|
-
}
|
|
132
|
-
let k = R(s), f = k && k(s);
|
|
133
|
-
return {
|
|
134
|
-
c() {
|
|
135
|
-
t = D("div"), e = D("div"), a = z(i), u = I(), o = D("div"), h = z(c), S = I(), y = D("div"), g = D("div"), p.c(), b = I(), f && f.c(), l(e, "class", "StartDate svelte-1hp648c"), l(e, "part", "StartDate"), l(o, "class", "EndDate svelte-1hp648c"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates svelte-1hp648c"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar svelte-1hp648c"), l(g, "part", "ProgressBar"), l(y, "class", "ProgressBarWrapper svelte-1hp648c"), l(y, "part", "ProgressBarWrapper");
|
|
136
|
-
},
|
|
137
|
-
m(r, _) {
|
|
138
|
-
B(r, t, _), m(t, e), m(e, a), m(t, u), m(t, o), m(o, h), B(r, S, _), B(r, y, _), m(y, g), p.m(g, null), m(g, b), f && f.m(g, null), F || (j = tt(
|
|
139
|
-
/*getDuration*/
|
|
140
|
-
s[9].call(null, y)
|
|
141
|
-
), F = !0);
|
|
142
|
-
},
|
|
143
|
-
p(r, _) {
|
|
144
|
-
_ & /*startdate*/
|
|
145
|
-
1 && i !== (i = /*formatDate*/
|
|
146
|
-
r[10](
|
|
147
|
-
/*startdate*/
|
|
148
|
-
r[0]
|
|
149
|
-
) + "") && M(a, i), _ & /*enddate*/
|
|
150
|
-
2 && c !== (c = /*formatDate*/
|
|
151
|
-
r[10](
|
|
152
|
-
/*enddate*/
|
|
153
|
-
r[1]
|
|
154
|
-
) + "") && M(h, c), E === (E = L(r)) && p ? p.p(r, _) : (p.d(1), p = E(r), p && (p.c(), p.m(g, b))), k === (k = R(r)) && f ? f.p(r, _) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(g, null)));
|
|
155
|
-
},
|
|
156
|
-
d(r) {
|
|
157
|
-
r && (w(t), w(S), w(y)), p.d(), f && f.d(), F = !1, j();
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function it(s) {
|
|
162
|
-
let t;
|
|
163
|
-
return {
|
|
164
|
-
c() {
|
|
165
|
-
t = D("div"), l(t, "class", "ProgressBarFill svelte-1hp648c"), l(t, "part", "ProgressBarFill"), A(
|
|
166
|
-
t,
|
|
167
|
-
"width",
|
|
168
|
-
/*getProgress*/
|
|
169
|
-
s[7]() + "%"
|
|
170
|
-
);
|
|
171
|
-
},
|
|
172
|
-
m(e, i) {
|
|
173
|
-
B(e, t, i);
|
|
174
|
-
},
|
|
175
|
-
p(e, i) {
|
|
176
|
-
i & /*getProgress*/
|
|
177
|
-
128 && A(
|
|
178
|
-
t,
|
|
179
|
-
"width",
|
|
180
|
-
/*getProgress*/
|
|
181
|
-
e[7]() + "%"
|
|
182
|
-
);
|
|
183
|
-
},
|
|
184
|
-
d(e) {
|
|
185
|
-
e && w(t);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function rt(s) {
|
|
190
|
-
let t;
|
|
191
|
-
return {
|
|
192
|
-
c() {
|
|
193
|
-
t = D("div"), l(t, "class", "ProgressBarFillStarting svelte-1hp648c"), l(t, "part", "ProgressBarFillStarting");
|
|
194
|
-
},
|
|
195
|
-
m(e, i) {
|
|
196
|
-
B(e, t, i);
|
|
197
|
-
},
|
|
198
|
-
p: U,
|
|
199
|
-
d(e) {
|
|
200
|
-
e && w(t);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function at(s) {
|
|
205
|
-
let t;
|
|
206
|
-
return {
|
|
207
|
-
c() {
|
|
208
|
-
t = D("div"), l(t, "class", "ProgressBarFillEnd svelte-1hp648c"), l(t, "part", "ProgressBarFillEnd");
|
|
209
|
-
},
|
|
210
|
-
m(e, i) {
|
|
211
|
-
B(e, t, i);
|
|
212
|
-
},
|
|
213
|
-
p: U,
|
|
214
|
-
d(e) {
|
|
215
|
-
e && w(t);
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
function lt(s) {
|
|
220
|
-
let t, e, i, a = (
|
|
221
|
-
/*$_*/
|
|
222
|
-
s[8]("tournamentsDuration.left") + ""
|
|
223
|
-
), u;
|
|
224
|
-
return {
|
|
225
|
-
c() {
|
|
226
|
-
t = D("div"), e = z(
|
|
227
|
-
/*showRemain*/
|
|
228
|
-
s[6]
|
|
229
|
-
), i = I(), u = z(a), l(t, "class", "Remaining svelte-1hp648c"), l(t, "part", "Remaining");
|
|
230
|
-
},
|
|
231
|
-
m(o, c) {
|
|
232
|
-
B(o, t, c), m(t, e), m(t, i), m(t, u);
|
|
233
|
-
},
|
|
234
|
-
p(o, c) {
|
|
235
|
-
c & /*showRemain*/
|
|
236
|
-
64 && M(
|
|
237
|
-
e,
|
|
238
|
-
/*showRemain*/
|
|
239
|
-
o[6]
|
|
240
|
-
), c & /*$_*/
|
|
241
|
-
256 && a !== (a = /*$_*/
|
|
242
|
-
o[8]("tournamentsDuration.left") + "") && M(u, a);
|
|
243
|
-
},
|
|
244
|
-
d(o) {
|
|
245
|
-
o && w(t);
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
function ot(s) {
|
|
250
|
-
let t, e = (
|
|
251
|
-
/*$_*/
|
|
252
|
-
s[8]("tournamentsDuration.starting") + ""
|
|
253
|
-
), i, a, u = (
|
|
254
|
-
/*getTextByDiff*/
|
|
255
|
-
s[11](
|
|
256
|
-
/*tournamentUntilStartDays*/
|
|
257
|
-
s[5]
|
|
258
|
-
) + ""
|
|
259
|
-
), o;
|
|
260
|
-
return {
|
|
261
|
-
c() {
|
|
262
|
-
t = D("div"), i = z(e), a = I(), o = z(u), l(t, "class", "Remaining svelte-1hp648c"), l(t, "part", "Remaining");
|
|
263
|
-
},
|
|
264
|
-
m(c, h) {
|
|
265
|
-
B(c, t, h), m(t, i), m(t, a), m(t, o);
|
|
266
|
-
},
|
|
267
|
-
p(c, h) {
|
|
268
|
-
h & /*$_*/
|
|
269
|
-
256 && e !== (e = /*$_*/
|
|
270
|
-
c[8]("tournamentsDuration.starting") + "") && M(i, e), h & /*tournamentUntilStartDays*/
|
|
271
|
-
32 && u !== (u = /*getTextByDiff*/
|
|
272
|
-
c[11](
|
|
273
|
-
/*tournamentUntilStartDays*/
|
|
274
|
-
c[5]
|
|
275
|
-
) + "") && M(o, u);
|
|
276
|
-
},
|
|
277
|
-
d(c) {
|
|
278
|
-
c && w(t);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
function ut(s) {
|
|
283
|
-
let t, e = (
|
|
284
|
-
/*$_*/
|
|
285
|
-
s[8]("tournamentsDuration.finished") + ""
|
|
286
|
-
), i;
|
|
287
|
-
return {
|
|
288
|
-
c() {
|
|
289
|
-
t = D("div"), i = z(e), l(t, "class", "Finished svelte-1hp648c"), l(t, "part", "Finished");
|
|
290
|
-
},
|
|
291
|
-
m(a, u) {
|
|
292
|
-
B(a, t, u), m(t, i);
|
|
293
|
-
},
|
|
294
|
-
p(a, u) {
|
|
295
|
-
u & /*$_*/
|
|
296
|
-
256 && e !== (e = /*$_*/
|
|
297
|
-
a[8]("tournamentsDuration.finished") + "") && M(i, e);
|
|
298
|
-
},
|
|
299
|
-
d(a) {
|
|
300
|
-
a && w(t);
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
function ct(s) {
|
|
305
|
-
let t, e = (
|
|
306
|
-
/*startdate*/
|
|
307
|
-
s[0] && /*enddate*/
|
|
308
|
-
s[1] && H(s)
|
|
309
|
-
);
|
|
310
|
-
return {
|
|
311
|
-
c() {
|
|
312
|
-
t = D("div"), e && e.c(), l(t, "class", "TournamentDuration svelte-1hp648c"), l(t, "part", "TournamentDuration");
|
|
313
|
-
},
|
|
314
|
-
m(i, a) {
|
|
315
|
-
B(i, t, a), e && e.m(t, null), s[16](t);
|
|
316
|
-
},
|
|
317
|
-
p(i, [a]) {
|
|
318
|
-
/*startdate*/
|
|
319
|
-
i[0] && /*enddate*/
|
|
320
|
-
i[1] ? e ? e.p(i, a) : (e = H(i), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
321
|
-
},
|
|
322
|
-
i: U,
|
|
323
|
-
o: U,
|
|
324
|
-
d(i) {
|
|
325
|
-
i && w(t), e && e.d(), s[16](null);
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
function dt(s, t, e) {
|
|
330
|
-
let i, a;
|
|
331
|
-
x(s, nt, (n) => e(8, a = n));
|
|
332
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: c = "" } = t, { lang: h = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: g = "" } = t, b, F = "", j = "", L = "";
|
|
333
|
-
const E = () => {
|
|
334
|
-
fetch(g).then((d) => d.json()).then((d) => {
|
|
335
|
-
Object.keys(d).forEach((v) => {
|
|
336
|
-
N(v, d[v]);
|
|
337
|
-
});
|
|
338
|
-
}).catch((d) => {
|
|
339
|
-
console.log(d);
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
Object.keys(O).forEach((n) => {
|
|
343
|
-
N(n, O[n]);
|
|
344
|
-
});
|
|
345
|
-
const p = (n) => new Date(n).getTime(), R = (n, d) => (p(d) - p(n)) / (1e3 * 60), k = () => {
|
|
346
|
-
const n = /* @__PURE__ */ new Date();
|
|
347
|
-
e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, L = r(F));
|
|
348
|
-
}, f = (n) => {
|
|
349
|
-
const d = { month: "long" };
|
|
350
|
-
let v = new Date(n), P = new Intl.DateTimeFormat(h, d).format(v);
|
|
351
|
-
return `${v.getDate()} ${P}, ${v.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${v.getUTCFullYear()}`;
|
|
352
|
-
}, r = (n) => {
|
|
353
|
-
const d = (P, T) => P + " " + a(T), v = (P) => {
|
|
354
|
-
const T = Math.floor(P);
|
|
355
|
-
return T < 10 ? `0${T}` : `${T}`;
|
|
356
|
-
};
|
|
357
|
-
if (n < 1440) {
|
|
358
|
-
const P = n / 60, T = n % 60, G = (T - Math.floor(T)) * 60;
|
|
359
|
-
return [P, T, G].map((K) => v(K)).join(":");
|
|
360
|
-
}
|
|
361
|
-
return d(Math.ceil(n / (60 * 24)), "tournamentsDuration.days");
|
|
362
|
-
}, _ = () => {
|
|
363
|
-
let n = document.createElement("style");
|
|
364
|
-
n.innerHTML = S, b.appendChild(n);
|
|
365
|
-
}, q = () => {
|
|
366
|
-
let n = new URL(y), d = document.createElement("style");
|
|
367
|
-
fetch(n.href).then((v) => v.text()).then((v) => {
|
|
368
|
-
d.innerHTML = v, setTimeout(
|
|
369
|
-
() => {
|
|
370
|
-
b.appendChild(d);
|
|
371
|
-
},
|
|
372
|
-
1
|
|
373
|
-
), setTimeout(
|
|
374
|
-
() => {
|
|
375
|
-
},
|
|
376
|
-
500
|
|
377
|
-
);
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
$(() => {
|
|
381
|
-
const n = setInterval(
|
|
382
|
-
() => {
|
|
383
|
-
u && o && k();
|
|
384
|
-
},
|
|
385
|
-
1e3
|
|
386
|
-
);
|
|
387
|
-
return () => clearInterval(n);
|
|
388
|
-
});
|
|
389
|
-
function W(n) {
|
|
390
|
-
et[n ? "unshift" : "push"](() => {
|
|
391
|
-
b = n, e(3, b);
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
return s.$$set = (n) => {
|
|
395
|
-
"startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, c = n.status), "lang" in n && e(12, h = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, y = n.clientstylingurl), "translationurl" in n && e(15, g = n.translationurl);
|
|
396
|
-
}, s.$$.update = () => {
|
|
397
|
-
s.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
398
|
-
19 && e(7, i = () => {
|
|
399
|
-
if (F <= 0) return 100;
|
|
400
|
-
const n = R(u, o), d = 100 / n;
|
|
401
|
-
return Math.floor((n - F) * d);
|
|
402
|
-
}), s.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
403
|
-
19 && u && o && k() && r(F), s.$$.dirty & /*lang*/
|
|
404
|
-
4096 && h && k(), s.$$.dirty & /*lang, tournamentLeftDays*/
|
|
405
|
-
4112 && h && r(F), s.$$.dirty & /*translationurl*/
|
|
406
|
-
32768 && g && E(), s.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
407
|
-
8200 && b && S && _(), s.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
408
|
-
16392 && b && y && q();
|
|
409
|
-
}, [
|
|
410
|
-
u,
|
|
411
|
-
o,
|
|
412
|
-
c,
|
|
413
|
-
b,
|
|
414
|
-
F,
|
|
415
|
-
j,
|
|
416
|
-
L,
|
|
417
|
-
i,
|
|
418
|
-
a,
|
|
419
|
-
k,
|
|
420
|
-
f,
|
|
421
|
-
r,
|
|
422
|
-
h,
|
|
423
|
-
S,
|
|
424
|
-
y,
|
|
425
|
-
g,
|
|
426
|
-
W
|
|
427
|
-
];
|
|
428
|
-
}
|
|
429
|
-
class ft extends Z {
|
|
430
|
-
constructor(t) {
|
|
431
|
-
super(), J(
|
|
432
|
-
this,
|
|
433
|
-
t,
|
|
434
|
-
dt,
|
|
435
|
-
ct,
|
|
436
|
-
V,
|
|
437
|
-
{
|
|
438
|
-
startdate: 0,
|
|
439
|
-
enddate: 1,
|
|
440
|
-
status: 2,
|
|
441
|
-
lang: 12,
|
|
442
|
-
clientstyling: 13,
|
|
443
|
-
clientstylingurl: 14,
|
|
444
|
-
translationurl: 15
|
|
445
|
-
},
|
|
446
|
-
st
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
get startdate() {
|
|
450
|
-
return this.$$.ctx[0];
|
|
451
|
-
}
|
|
452
|
-
set startdate(t) {
|
|
453
|
-
this.$$set({ startdate: t }), C();
|
|
454
|
-
}
|
|
455
|
-
get enddate() {
|
|
456
|
-
return this.$$.ctx[1];
|
|
457
|
-
}
|
|
458
|
-
set enddate(t) {
|
|
459
|
-
this.$$set({ enddate: t }), C();
|
|
460
|
-
}
|
|
461
|
-
get status() {
|
|
462
|
-
return this.$$.ctx[2];
|
|
463
|
-
}
|
|
464
|
-
set status(t) {
|
|
465
|
-
this.$$set({ status: t }), C();
|
|
466
|
-
}
|
|
467
|
-
get lang() {
|
|
468
|
-
return this.$$.ctx[12];
|
|
469
|
-
}
|
|
470
|
-
set lang(t) {
|
|
471
|
-
this.$$set({ lang: t }), C();
|
|
472
|
-
}
|
|
473
|
-
get clientstyling() {
|
|
474
|
-
return this.$$.ctx[13];
|
|
475
|
-
}
|
|
476
|
-
set clientstyling(t) {
|
|
477
|
-
this.$$set({ clientstyling: t }), C();
|
|
478
|
-
}
|
|
479
|
-
get clientstylingurl() {
|
|
480
|
-
return this.$$.ctx[14];
|
|
481
|
-
}
|
|
482
|
-
set clientstylingurl(t) {
|
|
483
|
-
this.$$set({ clientstylingurl: t }), C();
|
|
484
|
-
}
|
|
485
|
-
get translationurl() {
|
|
486
|
-
return this.$$.ctx[15];
|
|
487
|
-
}
|
|
488
|
-
set translationurl(t) {
|
|
489
|
-
this.$$set({ translationurl: t }), C();
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
Q(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
493
|
-
export {
|
|
494
|
-
ft as default
|
|
495
|
-
};
|