@everymatrix/casino-tournaments-list-controller 1.86.4 → 1.86.5
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/CasinoTournamentsListController-Bxz5_RYO.cjs +15 -0
- package/components/{CasinoTournamentsListController-VxzLRKes.js → CasinoTournamentsListController-D4OTiG4K.js} +1020 -1052
- package/components/{CasinoTournamentsListController-CXr1JSnb.js → CasinoTournamentsListController-DaqotmWK.js} +1631 -1663
- package/components/{CasinoTournamentsThumbnail-UsXHKP_D.js → CasinoTournamentsThumbnail-BrATffep.js} +32 -32
- package/components/{CasinoTournamentsThumbnail-CZ4zwuBt.cjs → CasinoTournamentsThumbnail-CkwoSBJt.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-CWBMbcVw.js → CasinoTournamentsThumbnail-DDMV1uN5.js} +32 -32
- package/components/CasinoTournamentsThumbnailController-Bcq4Qu9B.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-bcYH2pna.js → CasinoTournamentsThumbnailController-CUspMyO4.js} +575 -526
- package/components/{CasinoTournamentsThumbnailController-CFURXmMY.js → CasinoTournamentsThumbnailController-DG1OlwzV.js} +616 -567
- package/components/{CasinoTournamentsThumbnailDuration-CF83guap.cjs → CasinoTournamentsThumbnailDuration-D23WGmAv.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-B_P6mTgs.js → CasinoTournamentsThumbnailDuration-IIkCEcY_.js} +55 -55
- package/components/{CasinoTournamentsThumbnailDuration-N8zW3gY9.js → CasinoTournamentsThumbnailDuration-uxa8lPvT.js} +55 -55
- package/components/{CasinoTournamentsThumbnailGamesSlider-dja5bDf-.js → CasinoTournamentsThumbnailGamesSlider-7wQgTaTz.js} +50 -50
- package/components/{CasinoTournamentsThumbnailGamesSlider-j6LTtj0h.cjs → CasinoTournamentsThumbnailGamesSlider-BErdKc27.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BV2yT0Ql.js → CasinoTournamentsThumbnailGamesSlider-XzG8OTmi.js} +50 -50
- package/components/{CasinoTournamentsThumbnailPrizes-DfDV6GgN.js → CasinoTournamentsThumbnailPrizes-BT2JYZpF.js} +21 -21
- package/components/{CasinoTournamentsThumbnailPrizes-wYoasdWw.cjs → CasinoTournamentsThumbnailPrizes-D8_75y-V.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Dj9YdjmX.js → CasinoTournamentsThumbnailPrizes-DK31AYY8.js} +21 -21
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/index-b2193545-BpG2toSK.js +503 -0
- package/stencil/index-b2193545-DfeVnolx.cjs +1 -0
- package/stencil/index-b2193545-DuA2iMSm.js +519 -0
- package/stencil/{ui-image-DLoBAw4w.js → ui-image-Cs_BBOYl.js} +1 -1
- package/stencil/{ui-image-83gG286t.cjs → ui-image-DUHLTRXs.cjs} +1 -1
- package/stencil/{ui-image-2Wo8bNh1.js → ui-image-O0NdjWCu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/stencil/{ui-skeleton-hbyf6ZV-.cjs → ui-skeleton-B0E7XBJC.cjs} +1 -1
- package/stencil/{ui-skeleton-Czz99elh.js → ui-skeleton-Yn79cPkz.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-F5Pn7BxE.js → ui-skeleton-ed169f8f-B-SERL0D.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DiR5y84l.cjs → ui-skeleton-ed169f8f-BRUG1h6n.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DTd-f9E3.js → ui-skeleton-ed169f8f-UdVwF_E9.js} +1 -1
- package/stencil/{ui-skeleton-BOZjVV7m.js → ui-skeleton-i9jZ615T.js} +2 -2
- package/components/CasinoTournamentsListController-FR6MtnPh.cjs +0 -28
- package/components/CasinoTournamentsThumbnailController-BKDz1jhM.cjs +0 -3
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
- package/stencil/index-b2193545-RI3PckwN.js +0 -503
- package/stencil/index-b2193545-qC7jkIQW.cjs +0 -1
- package/stencil/index-b2193545-w9rTFozR.js +0 -519
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-Bxz5_RYO.cjs");function C(r,e){t.addMessages(r,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"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function I(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function T(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?O:L}let B=T(r),_=B(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return A;if(s[5]>0)return q;if(s[4]>0)return U}let v=P(r),c=v&&v(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),B===(B=T(s))&&_?_.p(s,f):(_.d(1),_=B(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function L(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function q(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function A(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&z(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[17](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",T="",B="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,T=v(i,u)),n(6,B=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),S=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(S,D)=>S+" "+l(D),F=S=>{const D=Math.floor(S);return D<10?`0${D}`:`${D}`};if(i<1440){const S=i/60,D=i%60,R=(D-Math.floor(D))*60;return[S,D,R].map(x=>F(x)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,T,B,a,l,c,s,f,g,k,y,m,w,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,mbsource:16},I)}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()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as H, S as K, i as Y,
|
|
1
|
+
import { b as H, S as K, i as Y, s as Z, f as C, c as J, n as L, d as w, g as B, j as v, e as l, l as Q, o as V, m as M, h as y, q as X, t as j, k as A, u as $, F as N, z as tt, A as et, B as nt, C as it, D as st } from "./CasinoTournamentsListController-D4OTiG4K.js";
|
|
2
2
|
function O(n, t) {
|
|
3
3
|
H(n, t);
|
|
4
4
|
}
|
|
@@ -93,7 +93,7 @@ const U = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function rt(n) {
|
|
96
|
-
|
|
96
|
+
J(n, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
98
|
function q(n) {
|
|
99
99
|
let t, e, s = (
|
|
@@ -109,7 +109,7 @@ function q(n) {
|
|
|
109
109
|
n[1]
|
|
110
110
|
) + ""
|
|
111
111
|
), g, T, b, m, P, _, D;
|
|
112
|
-
function
|
|
112
|
+
function R(r, f) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
115
115
|
r[2] == "Finished" || /*status*/
|
|
@@ -120,8 +120,8 @@ function q(n) {
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
function
|
|
123
|
+
let z = R(n), p = z(n);
|
|
124
|
+
function I(r, f) {
|
|
125
125
|
if (
|
|
126
126
|
/*status*/
|
|
127
127
|
r[2] == "Finished" || /*status*/
|
|
@@ -140,13 +140,13 @@ function q(n) {
|
|
|
140
140
|
)
|
|
141
141
|
return ut;
|
|
142
142
|
}
|
|
143
|
-
let F =
|
|
143
|
+
let F = I(n), c = F && F(n);
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = j(s), u = A(), o = v("div"), g = j(d), T = A(), b = v("div"), m = v("div"), p.c(), P = A(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, f) {
|
|
149
|
-
|
|
149
|
+
B(r, t, f), y(t, e), y(e, a), y(t, u), y(t, o), y(o, g), B(r, T, f), B(r, b, f), y(b, m), p.m(m, null), y(m, P), c && c.m(m, null), _ || (D = X(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
n[9].call(null, b)
|
|
152
152
|
), _ = !0);
|
|
@@ -157,15 +157,15 @@ function q(n) {
|
|
|
157
157
|
r[10](
|
|
158
158
|
/*startdate*/
|
|
159
159
|
r[0]
|
|
160
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), f & /*enddate*/
|
|
161
161
|
2 && d !== (d = /*formatDate*/
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = R(r)) && p ? p.p(r, f) : (p.d(1), p = z(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (w(t), w(T), w(b)), p.d(), c && c.d(), _ = !1, D();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function at(n) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
B(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function at(n) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && w(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function lt(n) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
B(e, t, s);
|
|
208
208
|
},
|
|
209
209
|
p: L,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && w(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function ot(n) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
B(e, t, s);
|
|
223
223
|
},
|
|
224
224
|
p: L,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && w(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,26 +234,26 @@ function ut(n) {
|
|
|
234
234
|
), u;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = j(
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
n[6]
|
|
240
|
-
), s = A(), u =
|
|
240
|
+
), s = A(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
B(o, t, d), y(t, e), y(t, s), y(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
247
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
248
248
|
e,
|
|
249
249
|
/*showRemain*/
|
|
250
250
|
o[6]
|
|
251
251
|
), d & /*$_*/
|
|
252
252
|
256 && a !== (a = /*$_*/
|
|
253
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && w(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -270,23 +270,23 @@ function dt(n) {
|
|
|
270
270
|
), o;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = j(e), a = A(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, g) {
|
|
276
|
-
|
|
276
|
+
B(d, t, g), y(t, s), y(t, a), y(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, g) {
|
|
279
279
|
g & /*$_*/
|
|
280
280
|
256 && e !== (e = /*$_*/
|
|
281
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
282
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
283
283
|
d[11](
|
|
284
284
|
/*tournamentUntilStartDays*/
|
|
285
285
|
d[5]
|
|
286
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && w(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -297,18 +297,18 @@ function ct(n) {
|
|
|
297
297
|
), s;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
B(a, t, u), y(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
307
307
|
256 && e !== (e = /*$_*/
|
|
308
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && w(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -323,7 +323,7 @@ function ft(n) {
|
|
|
323
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
324
|
},
|
|
325
325
|
m(s, a) {
|
|
326
|
-
|
|
326
|
+
B(s, t, a), e && e.m(t, null), n[17](t);
|
|
327
327
|
},
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
@@ -333,14 +333,14 @@ function ft(n) {
|
|
|
333
333
|
i: L,
|
|
334
334
|
o: L,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && w(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function gt(n, t, e) {
|
|
341
341
|
let s, a;
|
|
342
|
-
|
|
343
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "",
|
|
342
|
+
Q(n, st, (i) => e(8, a = i));
|
|
343
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "", z = "";
|
|
344
344
|
const p = () => {
|
|
345
345
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
346
346
|
Object.keys(h).forEach((S) => {
|
|
@@ -353,9 +353,9 @@ function gt(n, t, e) {
|
|
|
353
353
|
Object.keys(U).forEach((i) => {
|
|
354
354
|
O(i, U[i]);
|
|
355
355
|
});
|
|
356
|
-
const
|
|
356
|
+
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = F(i, o)), e(5,
|
|
358
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, z = f(D));
|
|
359
359
|
}, r = (i) => {
|
|
360
360
|
const h = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(g, h).format(S);
|
|
@@ -371,7 +371,7 @@ function gt(n, t, e) {
|
|
|
371
371
|
}
|
|
372
372
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
V(() => {
|
|
375
375
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
376
376
|
const i = setInterval(
|
|
377
377
|
() => {
|
|
@@ -384,7 +384,7 @@ function gt(n, t, e) {
|
|
|
384
384
|
};
|
|
385
385
|
});
|
|
386
386
|
function x(i) {
|
|
387
|
-
|
|
387
|
+
$[i ? "unshift" : "push"](() => {
|
|
388
388
|
_ = i, e(3, _);
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -402,17 +402,17 @@ function gt(n, t, e) {
|
|
|
402
402
|
4096 && g && c(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
403
|
4112 && g && f(D), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && m && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
|
-
8200 && T && _ &&
|
|
406
|
-
16392 && b && _ &&
|
|
407
|
-
65544 && P && _ &&
|
|
405
|
+
8200 && T && _ && tt(_, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
|
+
16392 && b && _ && et(_, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
407
|
+
65544 && P && _ && nt(_, `${P}.Style`);
|
|
408
408
|
}, [
|
|
409
409
|
u,
|
|
410
410
|
o,
|
|
411
411
|
d,
|
|
412
412
|
_,
|
|
413
413
|
D,
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
R,
|
|
415
|
+
z,
|
|
416
416
|
s,
|
|
417
417
|
a,
|
|
418
418
|
c,
|
|
@@ -433,7 +433,7 @@ class mt extends K {
|
|
|
433
433
|
t,
|
|
434
434
|
gt,
|
|
435
435
|
ft,
|
|
436
|
-
|
|
436
|
+
Z,
|
|
437
437
|
{
|
|
438
438
|
startdate: 0,
|
|
439
439
|
enddate: 1,
|
|
@@ -451,52 +451,52 @@ class mt extends K {
|
|
|
451
451
|
return this.$$.ctx[0];
|
|
452
452
|
}
|
|
453
453
|
set startdate(t) {
|
|
454
|
-
this.$$set({ startdate: t }),
|
|
454
|
+
this.$$set({ startdate: t }), C();
|
|
455
455
|
}
|
|
456
456
|
get enddate() {
|
|
457
457
|
return this.$$.ctx[1];
|
|
458
458
|
}
|
|
459
459
|
set enddate(t) {
|
|
460
|
-
this.$$set({ enddate: t }),
|
|
460
|
+
this.$$set({ enddate: t }), C();
|
|
461
461
|
}
|
|
462
462
|
get status() {
|
|
463
463
|
return this.$$.ctx[2];
|
|
464
464
|
}
|
|
465
465
|
set status(t) {
|
|
466
|
-
this.$$set({ status: t }),
|
|
466
|
+
this.$$set({ status: t }), C();
|
|
467
467
|
}
|
|
468
468
|
get lang() {
|
|
469
469
|
return this.$$.ctx[12];
|
|
470
470
|
}
|
|
471
471
|
set lang(t) {
|
|
472
|
-
this.$$set({ lang: t }),
|
|
472
|
+
this.$$set({ lang: t }), C();
|
|
473
473
|
}
|
|
474
474
|
get clientstyling() {
|
|
475
475
|
return this.$$.ctx[13];
|
|
476
476
|
}
|
|
477
477
|
set clientstyling(t) {
|
|
478
|
-
this.$$set({ clientstyling: t }),
|
|
478
|
+
this.$$set({ clientstyling: t }), C();
|
|
479
479
|
}
|
|
480
480
|
get clientstylingurl() {
|
|
481
481
|
return this.$$.ctx[14];
|
|
482
482
|
}
|
|
483
483
|
set clientstylingurl(t) {
|
|
484
|
-
this.$$set({ clientstylingurl: t }),
|
|
484
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
485
485
|
}
|
|
486
486
|
get translationurl() {
|
|
487
487
|
return this.$$.ctx[15];
|
|
488
488
|
}
|
|
489
489
|
set translationurl(t) {
|
|
490
|
-
this.$$set({ translationurl: t }),
|
|
490
|
+
this.$$set({ translationurl: t }), C();
|
|
491
491
|
}
|
|
492
492
|
get mbsource() {
|
|
493
493
|
return this.$$.ctx[16];
|
|
494
494
|
}
|
|
495
495
|
set mbsource(t) {
|
|
496
|
-
this.$$set({ mbsource: t }),
|
|
496
|
+
this.$$set({ mbsource: t }), C();
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
it(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
500
500
|
export {
|
|
501
501
|
mt as default
|
|
502
502
|
};
|