@everymatrix/casino-tournaments-list-controller 1.64.8 → 1.65.1
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-DgYOCdAE.js → CasinoTournamentsListController-BbMxlacs.js} +20 -20
- package/components/{CasinoTournamentsListController-CKVWCTHe.js → CasinoTournamentsListController-BmResUm1.js} +20 -20
- package/components/{CasinoTournamentsListController-2xNP--2R.cjs → CasinoTournamentsListController-QOpDP1gT.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-Cyjq88eZ.js → CasinoTournamentsThumbnail-BLl6r3kP.js} +307 -263
- package/components/{CasinoTournamentsThumbnail-4vTjO88K.js → CasinoTournamentsThumbnail-BctgkfiG.js} +307 -263
- package/components/CasinoTournamentsThumbnail-GGpqWUUU.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-Bdh5qjnp.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-B-K78r8i.js → CasinoTournamentsThumbnailController-LQRpg-1c.js} +641 -665
- package/components/{CasinoTournamentsThumbnailController-Dn9ff9n8.js → CasinoTournamentsThumbnailController-qtMqHOKR.js} +702 -726
- package/components/{CasinoTournamentsThumbnailDuration-DW8RWm_w.cjs → CasinoTournamentsThumbnailDuration-BEkKAuX-.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D6G5AYpp.js → CasinoTournamentsThumbnailDuration-C5E3xPWt.js} +11 -11
- package/components/{CasinoTournamentsThumbnailDuration-DJ9HCvv7.js → CasinoTournamentsThumbnailDuration-CLG474CZ.js} +11 -11
- package/components/{CasinoTournamentsThumbnailGamesSlider-CAMmFwFA.js → CasinoTournamentsThumbnailGamesSlider-BZPzU1n_.js} +38 -38
- package/components/{CasinoTournamentsThumbnailGamesSlider-CYo-MU5o.cjs → CasinoTournamentsThumbnailGamesSlider-Cs5RTcj-.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-DQG8zErp.js → CasinoTournamentsThumbnailGamesSlider-gRsycWHT.js} +38 -38
- package/components/{CasinoTournamentsThumbnailPrizes-BYr_yhhF.cjs → CasinoTournamentsThumbnailPrizes-1UaFyOK_.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BgYHHAzr.js → CasinoTournamentsThumbnailPrizes-BGoHCct2.js} +20 -20
- package/components/{CasinoTournamentsThumbnailPrizes-kj9zdguu.js → CasinoTournamentsThumbnailPrizes-BRyr6n6l.js} +20 -20
- 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/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/index-97d17652-BEnqZAxL.js +558 -0
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/index-97d17652-WK_DbPS4.js +542 -0
- package/stencil/index-b2193545-BOMvxBzV.js +519 -0
- package/stencil/index-b2193545-CFn9dM-v.js +503 -0
- package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
- package/stencil/ui-image-3hy4ZvUC.js +25 -0
- package/stencil/ui-image-D0wxuPze.js +7 -0
- package/stencil/ui-image-DE8MJHCZ.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-Cf9Vq5pI.js +39 -0
- package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-V9vp4faA.js +39 -0
- package/stencil/ui-image_2-B56t6kXT.js +154 -0
- package/stencil/ui-image_2-BncuYpLi.js +154 -0
- package/stencil/ui-image_2-YkYxLKu7.cjs +73 -0
- package/stencil/ui-skeleton-1cb75d00-B-R8GbLJ.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-BTnhspbc.cjs +73 -0
- package/stencil/ui-skeleton-1cb75d00-Dy30RNE6.js +152 -0
- package/stencil/ui-skeleton-CVBjRUvi.js +29 -0
- package/stencil/ui-skeleton-RkXNxPG1.js +11 -0
- package/stencil/ui-skeleton-se83zfWh.cjs +1 -0
- package/components/CasinoTournamentsThumbnail-BWkh0_lv.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-B5MR7Iux.cjs +0 -16
|
@@ -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-QOpDP1gT.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 E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(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),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.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(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(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 U(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 q(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 A(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 H(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]&&E(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[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(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[16](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:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,L=(F-Math.floor(F))*60;return[k,F,L].map(x=>p(x)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}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,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z 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},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()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, e as B, h as v,
|
|
1
|
+
import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, e as B, h as v, c as l, k as V, o as X, l as E, g as m, p as $, t as M, j as L, m as tt, C as N, y as et, z as nt } from "./CasinoTournamentsListController-BmResUm1.js";
|
|
2
2
|
function O(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const A = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const x = {
|
|
|
95
95
|
function it(i) {
|
|
96
96
|
Q(i, "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
|
-
function
|
|
98
|
+
function H(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -316,7 +316,7 @@ function dt(i) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
i[0] && /*enddate*/
|
|
319
|
-
i[1] &&
|
|
319
|
+
i[1] && H(i)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,7 +328,7 @@ function dt(i) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
@@ -350,8 +350,8 @@ function ct(i, t, e) {
|
|
|
350
350
|
console.log(c);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
O(n,
|
|
353
|
+
Object.keys(A).forEach((n) => {
|
|
354
|
+
O(n, A[n]);
|
|
355
355
|
});
|
|
356
356
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
357
357
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -373,7 +373,7 @@ function ct(i, t, e) {
|
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, q = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -398,7 +398,7 @@ function ct(i, t, e) {
|
|
|
398
398
|
);
|
|
399
399
|
return () => clearInterval(n);
|
|
400
400
|
});
|
|
401
|
-
function
|
|
401
|
+
function x(n) {
|
|
402
402
|
tt[n ? "unshift" : "push"](() => {
|
|
403
403
|
D = n, e(3, D);
|
|
404
404
|
});
|
|
@@ -418,7 +418,7 @@ function ct(i, t, e) {
|
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && q();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -436,7 +436,7 @@ function ct(i, t, e) {
|
|
|
436
436
|
S,
|
|
437
437
|
p,
|
|
438
438
|
h,
|
|
439
|
-
|
|
439
|
+
x
|
|
440
440
|
];
|
|
441
441
|
}
|
|
442
442
|
class ft extends Y {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, e as B, h as v,
|
|
1
|
+
import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, e as B, h as v, c as l, k as V, o as X, l as E, g as m, p as $, t as M, j as L, m as tt, C as N, y as et, z as nt } from "./CasinoTournamentsListController-BbMxlacs.js";
|
|
2
2
|
function O(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const A = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const x = {
|
|
|
95
95
|
function it(i) {
|
|
96
96
|
Q(i, "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
|
-
function
|
|
98
|
+
function H(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -316,7 +316,7 @@ function dt(i) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
i[0] && /*enddate*/
|
|
319
|
-
i[1] &&
|
|
319
|
+
i[1] && H(i)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,7 +328,7 @@ function dt(i) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
@@ -350,8 +350,8 @@ function ct(i, t, e) {
|
|
|
350
350
|
console.log(c);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
O(n,
|
|
353
|
+
Object.keys(A).forEach((n) => {
|
|
354
|
+
O(n, A[n]);
|
|
355
355
|
});
|
|
356
356
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
357
357
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -373,7 +373,7 @@ function ct(i, t, e) {
|
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, q = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -398,7 +398,7 @@ function ct(i, t, e) {
|
|
|
398
398
|
);
|
|
399
399
|
return () => clearInterval(n);
|
|
400
400
|
});
|
|
401
|
-
function
|
|
401
|
+
function x(n) {
|
|
402
402
|
tt[n ? "unshift" : "push"](() => {
|
|
403
403
|
D = n, e(3, D);
|
|
404
404
|
});
|
|
@@ -418,7 +418,7 @@ function ct(i, t, e) {
|
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && q();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -436,7 +436,7 @@ function ct(i, t, e) {
|
|
|
436
436
|
S,
|
|
437
437
|
p,
|
|
438
438
|
h,
|
|
439
|
-
|
|
439
|
+
x
|
|
440
440
|
];
|
|
441
441
|
}
|
|
442
442
|
class ft extends Y {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as x, d as G, e as I, h as S, k as Te, o as Fe, D as J, E as Me, r as te, F as C, C as Y, g as v, G as Ee, u as L, j as z, c, H as Pe, m as D, l as Be, v as Z, t as Le, y as He, z as je } from "./CasinoTournamentsListController-BmResUm1.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-qtMqHOKR.js";
|
|
3
3
|
function K(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
@@ -43,7 +43,7 @@ function V(e, l, t) {
|
|
|
43
43
|
return a[50] = l[t], a[52] = t, a;
|
|
44
44
|
}
|
|
45
45
|
function $(e) {
|
|
46
|
-
let l, t, a,
|
|
46
|
+
let l, t, a, m, d, p, y, r, w, _, f = J(
|
|
47
47
|
/*games*/
|
|
48
48
|
e[1]
|
|
49
49
|
), o = [];
|
|
@@ -51,7 +51,7 @@ function $(e) {
|
|
|
51
51
|
o[s] = ee(V(e, f, s));
|
|
52
52
|
return {
|
|
53
53
|
c() {
|
|
54
|
-
l = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = z(),
|
|
54
|
+
l = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = z(), m = S("main"), d = S("div");
|
|
55
55
|
for (let s = 0; s < o.length; s += 1)
|
|
56
56
|
o[s].c();
|
|
57
57
|
y = z(), r = S("div"), r.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), C(
|
|
@@ -59,10 +59,10 @@ function $(e) {
|
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
61
61
|
e[8]
|
|
62
|
-
), c(
|
|
62
|
+
), c(d, "class", "items"), c(d, "part", "items"), Y(d, "transform", "translateX(" + /*offset*/
|
|
63
63
|
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
|
-
e[28].call(
|
|
65
|
+
e[28].call(m)
|
|
66
66
|
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), C(
|
|
67
67
|
r,
|
|
68
68
|
"disabled",
|
|
@@ -71,13 +71,13 @@ function $(e) {
|
|
|
71
71
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(s, b) {
|
|
74
|
-
I(s, l, b), v(l, t), v(l, a), v(l,
|
|
74
|
+
I(s, l, b), v(l, t), v(l, a), v(l, m), v(m, d);
|
|
75
75
|
for (let i = 0; i < o.length; i += 1)
|
|
76
|
-
o[i] && o[i].m(
|
|
77
|
-
e[27](
|
|
78
|
-
|
|
76
|
+
o[i] && o[i].m(d, null);
|
|
77
|
+
e[27](d), p = Ee(
|
|
78
|
+
m,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
|
-
e[28].bind(
|
|
80
|
+
e[28].bind(m)
|
|
81
81
|
), v(l, y), v(l, r), e[30](l), w || (_ = [
|
|
82
82
|
L(
|
|
83
83
|
t,
|
|
@@ -109,14 +109,14 @@ function $(e) {
|
|
|
109
109
|
let i;
|
|
110
110
|
for (i = 0; i < f.length; i += 1) {
|
|
111
111
|
const k = V(s, f, i);
|
|
112
|
-
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(
|
|
112
|
+
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(d, null));
|
|
113
113
|
}
|
|
114
114
|
for (; i < o.length; i += 1)
|
|
115
115
|
o[i].d(1);
|
|
116
116
|
o.length = f.length;
|
|
117
117
|
}
|
|
118
118
|
b[0] & /*offset*/
|
|
119
|
-
4 && Y(
|
|
119
|
+
4 && Y(d, "transform", "translateX(" + /*offset*/
|
|
120
120
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
121
121
|
512 && C(
|
|
122
122
|
r,
|
|
@@ -134,7 +134,7 @@ function ee(e) {
|
|
|
134
134
|
let l, t, a = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
e[10]("playNow") + ""
|
|
137
|
-
),
|
|
137
|
+
), m, d, p, y, r, w, _, f, o, s, b;
|
|
138
138
|
function i() {
|
|
139
139
|
return (
|
|
140
140
|
/*click_handler_1*/
|
|
@@ -155,7 +155,7 @@ function ee(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
l = S("div"), t = S("span"),
|
|
158
|
+
l = S("div"), t = S("span"), m = Le(a), y = z(), r = S("img"), o = z(), c(t, "class", d = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -167,7 +167,7 @@ function ee(e) {
|
|
|
167
167
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(u, h) {
|
|
170
|
-
I(u, l, h), v(l, t), v(t,
|
|
170
|
+
I(u, l, h), v(l, t), v(t, m), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
171
171
|
L(l, "click", i),
|
|
172
172
|
L(l, "mouseenter", k),
|
|
173
173
|
L(
|
|
@@ -181,11 +181,11 @@ function ee(e) {
|
|
|
181
181
|
p(u, h) {
|
|
182
182
|
e = u, h[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") && Be(
|
|
185
|
-
96 &&
|
|
184
|
+
e[10]("playNow") + "") && Be(m, a), h[0] & /*hover, hoverIndex*/
|
|
185
|
+
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
188
|
-
e[52] ? "itemHover" : "")) && c(t, "class",
|
|
188
|
+
e[52] ? "itemHover" : "")) && c(t, "class", d), h[0] & /*hover, hoverIndex*/
|
|
189
189
|
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
190
190
|
(e[5] && /*hoverIndex*/
|
|
191
191
|
e[6] == /*i*/
|
|
@@ -212,16 +212,16 @@ function Ae(e) {
|
|
|
212
212
|
c() {
|
|
213
213
|
l = S("div"), t && t.c();
|
|
214
214
|
},
|
|
215
|
-
m(a,
|
|
216
|
-
I(a, l,
|
|
215
|
+
m(a, m) {
|
|
216
|
+
I(a, l, m), t && t.m(l, null), e[31](l);
|
|
217
217
|
},
|
|
218
|
-
p(a,
|
|
218
|
+
p(a, m) {
|
|
219
219
|
/*games*/
|
|
220
220
|
a[1] && /*games*/
|
|
221
|
-
a[1].length > 0 ? t ? t.p(a,
|
|
221
|
+
a[1].length > 0 ? t ? t.p(a, m) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
222
222
|
},
|
|
223
|
-
i:
|
|
224
|
-
o:
|
|
223
|
+
i: x,
|
|
224
|
+
o: x,
|
|
225
225
|
d(a) {
|
|
226
226
|
a && G(l), t && t.d(), e[31](null);
|
|
227
227
|
}
|
|
@@ -229,8 +229,8 @@ function Ae(e) {
|
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
231
|
function De(e, l, t) {
|
|
232
|
-
let a,
|
|
233
|
-
Te(e, je, (n) => t(10,
|
|
232
|
+
let a, m, d;
|
|
233
|
+
Te(e, je, (n) => t(10, d = n));
|
|
234
234
|
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, h, H = null, j = null, A = !1, U, E, P = 0, T;
|
|
235
235
|
const ne = () => {
|
|
236
236
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
@@ -248,17 +248,17 @@ function De(e, l, t) {
|
|
|
248
248
|
t(5, A = !0), t(6, U = n);
|
|
249
249
|
}, q = () => {
|
|
250
250
|
t(5, A = !1), t(6, U = -1);
|
|
251
|
-
}, le = (n) => n.touches || n.originalEvent.touches,
|
|
251
|
+
}, le = (n) => n.touches || n.originalEvent.touches, O = (n) => {
|
|
252
252
|
const g = le(n)[0];
|
|
253
253
|
H = g.clientX, j = g.clientY;
|
|
254
|
-
},
|
|
254
|
+
}, R = (n) => {
|
|
255
255
|
if (!H || !j)
|
|
256
256
|
return;
|
|
257
257
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
258
258
|
Math.abs(F) > Math.abs(_e) && (F > 0 ? B(1) : B(-1)), H = null, j = null;
|
|
259
259
|
}, B = (n) => {
|
|
260
|
-
n > 0 && !
|
|
261
|
-
},
|
|
260
|
+
n > 0 && !m ? (t(2, u -= i), t(2, u = u < P ? P : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
261
|
+
}, X = (n) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -274,7 +274,7 @@ function De(e, l, t) {
|
|
|
274
274
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, re = () => {
|
|
277
|
-
h.addEventListener("touchstart",
|
|
277
|
+
h.addEventListener("touchstart", O, { passive: !0 }), h.addEventListener("touchmove", R, { passive: !0 });
|
|
278
278
|
}, ae = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
@@ -303,9 +303,9 @@ function De(e, l, t) {
|
|
|
303
303
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
304
304
|
};
|
|
305
305
|
Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
306
|
-
h.removeEventListener("touchstart",
|
|
306
|
+
h.removeEventListener("touchstart", O), h.removeEventListener("touchmove", R);
|
|
307
307
|
}));
|
|
308
|
-
const ue = () => B(-1),
|
|
308
|
+
const ue = () => B(-1), me = (n) => X(n), de = (n) => W(n), he = () => q();
|
|
309
309
|
function fe(n) {
|
|
310
310
|
D[n ? "unshift" : "push"](() => {
|
|
311
311
|
E = n, t(7, E);
|
|
@@ -330,7 +330,7 @@ function De(e, l, t) {
|
|
|
330
330
|
}, e.$$.update = () => {
|
|
331
331
|
e.$$.dirty[0] & /*offset*/
|
|
332
332
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
333
|
-
4194308 && t(9,
|
|
333
|
+
4194308 && t(9, m = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
334
334
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
335
335
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
336
336
|
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -348,12 +348,12 @@ function De(e, l, t) {
|
|
|
348
348
|
U,
|
|
349
349
|
E,
|
|
350
350
|
a,
|
|
351
|
-
d,
|
|
352
351
|
m,
|
|
352
|
+
d,
|
|
353
353
|
W,
|
|
354
354
|
q,
|
|
355
355
|
B,
|
|
356
|
-
|
|
356
|
+
X,
|
|
357
357
|
y,
|
|
358
358
|
r,
|
|
359
359
|
p,
|
|
@@ -363,8 +363,8 @@ function De(e, l, t) {
|
|
|
363
363
|
o,
|
|
364
364
|
P,
|
|
365
365
|
ue,
|
|
366
|
-
de,
|
|
367
366
|
me,
|
|
367
|
+
de,
|
|
368
368
|
he,
|
|
369
369
|
fe,
|
|
370
370
|
ge,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-QOpDP1gT.cjs"),ie=require("./CasinoTournamentsThumbnailController-Bdh5qjnp.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function oe(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function ce(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ue=30;function de(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,C=!1,E,S,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const L=l=>{n(5,C=!0),n(6,E=l)},j=()=>{n(5,C=!1),n(6,E=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,T=P-f,se=B-k;Math.abs(T)>Math.abs(se)&&(T>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ue},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",ie.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(T=>T.json()).then(T=>{n(1,v=T.item.games.items),T.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(S.scrollWidth-S.clientWidth)*-1),n(16,s=new String(S.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>L(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{S=l,n(7,S)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,C,E,S,i,d,m,L,j,F,A,_,s,p,y,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,de,ce,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},oe,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|