@everymatrix/casino-tournaments-list-controller 1.67.3 → 1.69.0
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-CtInxe7N.js → CasinoTournamentsListController-916JL4F7.js} +1822 -1828
- package/components/CasinoTournamentsListController-CLH2CE8z.cjs +15 -0
- package/components/{CasinoTournamentsListController-B462E0qG.js → CasinoTournamentsListController-DZAcldSI.js} +1834 -1840
- package/components/{CasinoTournamentsThumbnail-ByXAPz4b.js → CasinoTournamentsThumbnail-CO-eYscS.js} +177 -185
- package/components/{CasinoTournamentsThumbnail-14EXKDty.cjs → CasinoTournamentsThumbnail-CPbOt4AY.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnail-DfAXgn4t.js → CasinoTournamentsThumbnail-nwxK7LAX.js} +177 -185
- package/components/CasinoTournamentsThumbnailController-A_BKNTJR.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-hECyfAwI.js → CasinoTournamentsThumbnailController-Bq1AssJj.js} +774 -673
- package/components/{CasinoTournamentsThumbnailController-CPyJp_n-.js → CasinoTournamentsThumbnailController-CKIWWza3.js} +800 -699
- package/components/{CasinoTournamentsThumbnailDuration-B0XmmYAV.js → CasinoTournamentsThumbnailDuration-CoD7UhLT.js} +147 -153
- package/components/{CasinoTournamentsThumbnailDuration-CgopDMJt.js → CasinoTournamentsThumbnailDuration-Cs4yX-Vh.js} +147 -153
- package/components/CasinoTournamentsThumbnailDuration-D96wnUeF.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-BsYSU3V2.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DeZzlvbO.js +435 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DyvJUNdJ.js +435 -0
- package/components/CasinoTournamentsThumbnailPrizes-8tONX9SA.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-BJHbDTCY.js +307 -0
- package/components/CasinoTournamentsThumbnailPrizes-CuVL_zHr.js +307 -0
- 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-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- 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-ClXqMGwp.js → ui-image-3hy4ZvUC.js} +1 -1
- package/stencil/{ui-image-YphrYZtA.js → ui-image-D0wxuPze.js} +1 -1
- package/stencil/{ui-image-Db5QCSmt.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-U47XWOV2.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-nmwFu55Y.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-bf7NJcVF.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
- package/stencil/{ui-skeleton-DSlZCsjK.js → ui-skeleton-CVBjRUvi.js} +2 -2
- package/stencil/{ui-skeleton-P9Vv-0Vy.js → ui-skeleton-RkXNxPG1.js} +2 -2
- package/stencil/{ui-skeleton-DXCQ8Yoq.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
- package/components/CasinoTournamentsListController-DuFdroc_.cjs +0 -28
- package/components/CasinoTournamentsThumbnailController-qI0rc-Ej.cjs +0 -3
- package/components/CasinoTournamentsThumbnailDuration-CfNd-_JR.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-BuvDMzWR.js +0 -443
- package/components/CasinoTournamentsThumbnailGamesSlider-CIcdSmKi.js +0 -443
- package/components/CasinoTournamentsThumbnailGamesSlider-DuLodhfq.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-BxVgCfCL.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CIhSfxTp.js +0 -315
- package/components/CasinoTournamentsThumbnailPrizes-Cgv1iFmY.js +0 -315
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
- package/stencil/index-b2193545-C1ayEiG4.js +0 -503
- package/stencil/index-b2193545-CyidmLE0.cjs +0 -1
- package/stencil/index-b2193545-s3PsNboB.js +0 -519
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-DuFdroc_.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,443 +0,0 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke, f as M, c as Ne, s as Se, d as Te, e as S, j as D, n as R, l as G, m as Fe, o as Me, G as X, g as C, h as c, H as A, F as Y, I as Pe, k as v, J as Be, v as L, K as Ee, w as te, t as Le, y as K, p as He, x as I, A as je } from "./CasinoTournamentsListController-CtInxe7N.js";
|
|
2
|
-
import { g as Ae } from "./CasinoTournamentsThumbnailController-hECyfAwI.js";
|
|
3
|
-
function Z(e, l) {
|
|
4
|
-
be(e, l);
|
|
5
|
-
}
|
|
6
|
-
const Q = {
|
|
7
|
-
en: {
|
|
8
|
-
playNow: "Play now"
|
|
9
|
-
},
|
|
10
|
-
hr: {
|
|
11
|
-
playNow: "Započni sada"
|
|
12
|
-
},
|
|
13
|
-
"zh-hk": {
|
|
14
|
-
playNow: "现在播放"
|
|
15
|
-
},
|
|
16
|
-
fr: {
|
|
17
|
-
playNow: "Joue maintenant"
|
|
18
|
-
},
|
|
19
|
-
ro: {
|
|
20
|
-
playNow: "Joaca acum"
|
|
21
|
-
},
|
|
22
|
-
tr: {
|
|
23
|
-
playNow: "Şimdi oyna"
|
|
24
|
-
},
|
|
25
|
-
el: {
|
|
26
|
-
playNow: "Παίξε τώρα"
|
|
27
|
-
},
|
|
28
|
-
es: {
|
|
29
|
-
playNow: "Jugar Ya"
|
|
30
|
-
},
|
|
31
|
-
pt: {
|
|
32
|
-
playNow: "Jogue agora"
|
|
33
|
-
},
|
|
34
|
-
"en-us": {
|
|
35
|
-
playNow: "Play now"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
function Ce(e) {
|
|
39
|
-
Te(e, "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}");
|
|
40
|
-
}
|
|
41
|
-
function V(e, l, t) {
|
|
42
|
-
const a = e.slice();
|
|
43
|
-
return a[50] = l[t], a[52] = t, a;
|
|
44
|
-
}
|
|
45
|
-
function $(e) {
|
|
46
|
-
let l, t, a, m, d, p, y, r, w, _, f = X(
|
|
47
|
-
/*games*/
|
|
48
|
-
e[1]
|
|
49
|
-
), o = [];
|
|
50
|
-
for (let s = 0; s < f.length; s += 1)
|
|
51
|
-
o[s] = ee(V(e, f, s));
|
|
52
|
-
return {
|
|
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 = C(), m = S("main"), d = S("div");
|
|
55
|
-
for (let s = 0; s < o.length; s += 1)
|
|
56
|
-
o[s].c();
|
|
57
|
-
y = C(), 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"), A(
|
|
58
|
-
t,
|
|
59
|
-
"disabled",
|
|
60
|
-
/*atStart*/
|
|
61
|
-
e[8]
|
|
62
|
-
), c(d, "class", "items"), c(d, "part", "items"), Y(d, "transform", "translateX(" + /*offset*/
|
|
63
|
-
e[2] + "px)"), Pe(() => (
|
|
64
|
-
/*main_elementresize_handler*/
|
|
65
|
-
e[28].call(m)
|
|
66
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), A(
|
|
67
|
-
r,
|
|
68
|
-
"disabled",
|
|
69
|
-
/*atEnd*/
|
|
70
|
-
e[9]
|
|
71
|
-
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
72
|
-
},
|
|
73
|
-
m(s, b) {
|
|
74
|
-
D(s, l, b), v(l, t), v(l, a), v(l, m), v(m, d);
|
|
75
|
-
for (let i = 0; i < o.length; i += 1)
|
|
76
|
-
o[i] && o[i].m(d, null);
|
|
77
|
-
e[27](d), p = Be(
|
|
78
|
-
m,
|
|
79
|
-
/*main_elementresize_handler*/
|
|
80
|
-
e[28].bind(m)
|
|
81
|
-
), v(l, y), v(l, r), e[30](l), w || (_ = [
|
|
82
|
-
L(
|
|
83
|
-
t,
|
|
84
|
-
"click",
|
|
85
|
-
/*click_handler*/
|
|
86
|
-
e[23]
|
|
87
|
-
),
|
|
88
|
-
L(
|
|
89
|
-
r,
|
|
90
|
-
"click",
|
|
91
|
-
/*click_handler_2*/
|
|
92
|
-
e[29]
|
|
93
|
-
)
|
|
94
|
-
], w = !0);
|
|
95
|
-
},
|
|
96
|
-
p(s, b) {
|
|
97
|
-
if (b[0] & /*atStart*/
|
|
98
|
-
256 && A(
|
|
99
|
-
t,
|
|
100
|
-
"disabled",
|
|
101
|
-
/*atStart*/
|
|
102
|
-
s[8]
|
|
103
|
-
), b[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
104
|
-
23650) {
|
|
105
|
-
f = X(
|
|
106
|
-
/*games*/
|
|
107
|
-
s[1]
|
|
108
|
-
);
|
|
109
|
-
let i;
|
|
110
|
-
for (i = 0; i < f.length; i += 1) {
|
|
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(d, null));
|
|
113
|
-
}
|
|
114
|
-
for (; i < o.length; i += 1)
|
|
115
|
-
o[i].d(1);
|
|
116
|
-
o.length = f.length;
|
|
117
|
-
}
|
|
118
|
-
b[0] & /*offset*/
|
|
119
|
-
4 && Y(d, "transform", "translateX(" + /*offset*/
|
|
120
|
-
s[2] + "px)"), b[0] & /*atEnd*/
|
|
121
|
-
512 && A(
|
|
122
|
-
r,
|
|
123
|
-
"disabled",
|
|
124
|
-
/*atEnd*/
|
|
125
|
-
s[9]
|
|
126
|
-
);
|
|
127
|
-
},
|
|
128
|
-
d(s) {
|
|
129
|
-
s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function ee(e) {
|
|
134
|
-
let l, t, a = (
|
|
135
|
-
/*$_*/
|
|
136
|
-
e[10]("playNow") + ""
|
|
137
|
-
), m, d, p, y, r, w, _, f, o, s, b;
|
|
138
|
-
function i() {
|
|
139
|
-
return (
|
|
140
|
-
/*click_handler_1*/
|
|
141
|
-
e[24](
|
|
142
|
-
/*game*/
|
|
143
|
-
e[50]
|
|
144
|
-
)
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
function k() {
|
|
148
|
-
return (
|
|
149
|
-
/*mouseenter_handler*/
|
|
150
|
-
e[25](
|
|
151
|
-
/*i*/
|
|
152
|
-
e[52]
|
|
153
|
-
)
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
c() {
|
|
158
|
-
l = S("div"), t = S("span"), m = Le(a), y = C(), r = S("img"), o = C(), c(t, "class", d = "PlayNowButton " + /*hover*/
|
|
159
|
-
(e[5] && /*hoverIndex*/
|
|
160
|
-
e[6] == /*i*/
|
|
161
|
-
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
162
|
-
(e[5] && /*hoverIndex*/
|
|
163
|
-
e[6] == /*i*/
|
|
164
|
-
e[52] ? "itemHover" : "")), K(r.src, w = /*game*/
|
|
165
|
-
e[50].thumbnail) || c(r, "src", w), c(r, "width", "132px"), c(r, "height", "100px"), c(r, "alt", _ = /*game*/
|
|
166
|
-
e[50].name), c(r, "title", f = /*game*/
|
|
167
|
-
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
168
|
-
},
|
|
169
|
-
m(u, h) {
|
|
170
|
-
D(u, l, h), v(l, t), v(t, m), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
171
|
-
L(l, "click", i),
|
|
172
|
-
L(l, "mouseenter", k),
|
|
173
|
-
L(
|
|
174
|
-
l,
|
|
175
|
-
"mouseleave",
|
|
176
|
-
/*mouseleave_handler*/
|
|
177
|
-
e[26]
|
|
178
|
-
)
|
|
179
|
-
], s = !0);
|
|
180
|
-
},
|
|
181
|
-
p(u, h) {
|
|
182
|
-
e = u, h[0] & /*$_*/
|
|
183
|
-
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") && He(m, a), h[0] & /*hover, hoverIndex*/
|
|
185
|
-
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
186
|
-
(e[5] && /*hoverIndex*/
|
|
187
|
-
e[6] == /*i*/
|
|
188
|
-
e[52] ? "itemHover" : "")) && c(t, "class", d), h[0] & /*hover, hoverIndex*/
|
|
189
|
-
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
190
|
-
(e[5] && /*hoverIndex*/
|
|
191
|
-
e[6] == /*i*/
|
|
192
|
-
e[52] ? "itemHover" : "")) && c(t, "part", p), h[0] & /*games*/
|
|
193
|
-
2 && !K(r.src, w = /*game*/
|
|
194
|
-
e[50].thumbnail) && c(r, "src", w), h[0] & /*games*/
|
|
195
|
-
2 && _ !== (_ = /*game*/
|
|
196
|
-
e[50].name) && c(r, "alt", _), h[0] & /*games*/
|
|
197
|
-
2 && f !== (f = /*game*/
|
|
198
|
-
e[50].name) && c(r, "title", f);
|
|
199
|
-
},
|
|
200
|
-
d(u) {
|
|
201
|
-
u && G(l), s = !1, te(b);
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function ze(e) {
|
|
206
|
-
let l, t = (
|
|
207
|
-
/*games*/
|
|
208
|
-
e[1] && /*games*/
|
|
209
|
-
e[1].length > 0 && $(e)
|
|
210
|
-
);
|
|
211
|
-
return {
|
|
212
|
-
c() {
|
|
213
|
-
l = S("div"), t && t.c();
|
|
214
|
-
},
|
|
215
|
-
m(a, m) {
|
|
216
|
-
D(a, l, m), t && t.m(l, null), e[31](l);
|
|
217
|
-
},
|
|
218
|
-
p(a, m) {
|
|
219
|
-
/*games*/
|
|
220
|
-
a[1] && /*games*/
|
|
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
|
-
},
|
|
223
|
-
i: R,
|
|
224
|
-
o: R,
|
|
225
|
-
d(a) {
|
|
226
|
-
a && G(l), t && t.d(), e[31](null);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
let Ue = 30;
|
|
231
|
-
function Ie(e, l, t) {
|
|
232
|
-
let a, m, d;
|
|
233
|
-
Fe(e, je, (n) => t(10, d = n));
|
|
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, z = !1, U, P, B = 0, T;
|
|
235
|
-
const ne = () => {
|
|
236
|
-
fetch(_).then((g) => g.json()).then((g) => {
|
|
237
|
-
Object.keys(g).forEach((N) => {
|
|
238
|
-
Z(N, g[N]);
|
|
239
|
-
});
|
|
240
|
-
}).catch((g) => {
|
|
241
|
-
console.log(g);
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
Object.keys(Q).forEach((n) => {
|
|
245
|
-
Z(n, Q[n]);
|
|
246
|
-
});
|
|
247
|
-
const W = (n) => {
|
|
248
|
-
t(5, z = !0), t(6, U = n);
|
|
249
|
-
}, q = () => {
|
|
250
|
-
t(5, z = !1), t(6, U = -1);
|
|
251
|
-
}, le = (n) => n.touches || n.originalEvent.touches, x = (n) => {
|
|
252
|
-
const g = le(n)[0];
|
|
253
|
-
H = g.clientX, j = g.clientY;
|
|
254
|
-
}, J = (n) => {
|
|
255
|
-
if (!H || !j)
|
|
256
|
-
return;
|
|
257
|
-
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
258
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
259
|
-
}, E = (n) => {
|
|
260
|
-
n > 0 && !m ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
261
|
-
}, O = (n) => {
|
|
262
|
-
window.postMessage(
|
|
263
|
-
{
|
|
264
|
-
type: "TournamentGameAction",
|
|
265
|
-
gameId: n.id,
|
|
266
|
-
name: n.name,
|
|
267
|
-
launchUrl: n.launchUrl
|
|
268
|
-
},
|
|
269
|
-
window.location.href
|
|
270
|
-
);
|
|
271
|
-
}, se = () => {
|
|
272
|
-
let n = new URL(p), g = new Headers();
|
|
273
|
-
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", Ae(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
274
|
-
t(1, k = F.item.games.items), F.item.games.total;
|
|
275
|
-
});
|
|
276
|
-
}, re = () => {
|
|
277
|
-
h.addEventListener("touchstart", x, { passive: !0 }), h.addEventListener("touchmove", J, { passive: !0 });
|
|
278
|
-
}, ae = () => {
|
|
279
|
-
setTimeout(
|
|
280
|
-
() => {
|
|
281
|
-
t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
282
|
-
},
|
|
283
|
-
1e3
|
|
284
|
-
);
|
|
285
|
-
}, ie = () => {
|
|
286
|
-
let n = document.createElement("style");
|
|
287
|
-
n.innerHTML = f, s.appendChild(n);
|
|
288
|
-
}, oe = () => {
|
|
289
|
-
let n = new URL(o), g = document.createElement("style");
|
|
290
|
-
fetch(n.href).then((N) => N.text()).then((N) => {
|
|
291
|
-
g.innerHTML = N, setTimeout(
|
|
292
|
-
() => {
|
|
293
|
-
s.appendChild(g);
|
|
294
|
-
},
|
|
295
|
-
1
|
|
296
|
-
), setTimeout(
|
|
297
|
-
() => {
|
|
298
|
-
},
|
|
299
|
-
500
|
|
300
|
-
);
|
|
301
|
-
});
|
|
302
|
-
}, ce = () => {
|
|
303
|
-
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
304
|
-
};
|
|
305
|
-
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
306
|
-
h.removeEventListener("touchstart", x), h.removeEventListener("touchmove", J);
|
|
307
|
-
}));
|
|
308
|
-
const ue = () => E(-1), me = (n) => O(n), de = (n) => W(n), he = () => q();
|
|
309
|
-
function fe(n) {
|
|
310
|
-
I[n ? "unshift" : "push"](() => {
|
|
311
|
-
P = n, t(7, P);
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
function ge() {
|
|
315
|
-
T = this.clientWidth, t(4, T);
|
|
316
|
-
}
|
|
317
|
-
const pe = () => E(1);
|
|
318
|
-
function ye(n) {
|
|
319
|
-
I[n ? "unshift" : "push"](() => {
|
|
320
|
-
h = n, t(3, h);
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
function we(n) {
|
|
324
|
-
I[n ? "unshift" : "push"](() => {
|
|
325
|
-
s = n, t(0, s);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
return e.$$set = (n) => {
|
|
329
|
-
"tournamenturl" in n && t(17, p = n.tournamenturl), "scrollby" in n && t(15, y = n.scrollby), "pagfactor" in n && t(16, r = n.pagfactor), "lang" in n && t(18, w = n.lang), "translationurl" in n && t(19, _ = n.translationurl), "clientstyling" in n && t(20, f = n.clientstyling), "clientstylingurl" in n && t(21, o = n.clientstylingurl);
|
|
330
|
-
}, e.$$.update = () => {
|
|
331
|
-
e.$$.dirty[0] & /*offset*/
|
|
332
|
-
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
333
|
-
4194308 && t(9, m = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
334
|
-
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
335
|
-
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
336
|
-
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
337
|
-
524288 && _ && ne(), e.$$.dirty[0] & /*games*/
|
|
338
|
-
2 && k.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
339
|
-
1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
340
|
-
2097153 && o && s && oe();
|
|
341
|
-
}, t(2, u = 0), [
|
|
342
|
-
s,
|
|
343
|
-
k,
|
|
344
|
-
u,
|
|
345
|
-
h,
|
|
346
|
-
T,
|
|
347
|
-
z,
|
|
348
|
-
U,
|
|
349
|
-
P,
|
|
350
|
-
a,
|
|
351
|
-
m,
|
|
352
|
-
d,
|
|
353
|
-
W,
|
|
354
|
-
q,
|
|
355
|
-
E,
|
|
356
|
-
O,
|
|
357
|
-
y,
|
|
358
|
-
r,
|
|
359
|
-
p,
|
|
360
|
-
w,
|
|
361
|
-
_,
|
|
362
|
-
f,
|
|
363
|
-
o,
|
|
364
|
-
B,
|
|
365
|
-
ue,
|
|
366
|
-
me,
|
|
367
|
-
de,
|
|
368
|
-
he,
|
|
369
|
-
fe,
|
|
370
|
-
ge,
|
|
371
|
-
pe,
|
|
372
|
-
ye,
|
|
373
|
-
we
|
|
374
|
-
];
|
|
375
|
-
}
|
|
376
|
-
class De extends ve {
|
|
377
|
-
constructor(l) {
|
|
378
|
-
super(), ke(
|
|
379
|
-
this,
|
|
380
|
-
l,
|
|
381
|
-
Ie,
|
|
382
|
-
ze,
|
|
383
|
-
Se,
|
|
384
|
-
{
|
|
385
|
-
tournamenturl: 17,
|
|
386
|
-
scrollby: 15,
|
|
387
|
-
pagfactor: 16,
|
|
388
|
-
lang: 18,
|
|
389
|
-
translationurl: 19,
|
|
390
|
-
clientstyling: 20,
|
|
391
|
-
clientstylingurl: 21
|
|
392
|
-
},
|
|
393
|
-
Ce,
|
|
394
|
-
[-1, -1]
|
|
395
|
-
);
|
|
396
|
-
}
|
|
397
|
-
get tournamenturl() {
|
|
398
|
-
return this.$$.ctx[17];
|
|
399
|
-
}
|
|
400
|
-
set tournamenturl(l) {
|
|
401
|
-
this.$$set({ tournamenturl: l }), M();
|
|
402
|
-
}
|
|
403
|
-
get scrollby() {
|
|
404
|
-
return this.$$.ctx[15];
|
|
405
|
-
}
|
|
406
|
-
set scrollby(l) {
|
|
407
|
-
this.$$set({ scrollby: l }), M();
|
|
408
|
-
}
|
|
409
|
-
get pagfactor() {
|
|
410
|
-
return this.$$.ctx[16];
|
|
411
|
-
}
|
|
412
|
-
set pagfactor(l) {
|
|
413
|
-
this.$$set({ pagfactor: l }), M();
|
|
414
|
-
}
|
|
415
|
-
get lang() {
|
|
416
|
-
return this.$$.ctx[18];
|
|
417
|
-
}
|
|
418
|
-
set lang(l) {
|
|
419
|
-
this.$$set({ lang: l }), M();
|
|
420
|
-
}
|
|
421
|
-
get translationurl() {
|
|
422
|
-
return this.$$.ctx[19];
|
|
423
|
-
}
|
|
424
|
-
set translationurl(l) {
|
|
425
|
-
this.$$set({ translationurl: l }), M();
|
|
426
|
-
}
|
|
427
|
-
get clientstyling() {
|
|
428
|
-
return this.$$.ctx[20];
|
|
429
|
-
}
|
|
430
|
-
set clientstyling(l) {
|
|
431
|
-
this.$$set({ clientstyling: l }), M();
|
|
432
|
-
}
|
|
433
|
-
get clientstylingurl() {
|
|
434
|
-
return this.$$.ctx[21];
|
|
435
|
-
}
|
|
436
|
-
set clientstylingurl(l) {
|
|
437
|
-
this.$$set({ clientstylingurl: l }), M();
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
Ne(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
441
|
-
export {
|
|
442
|
-
De as default
|
|
443
|
-
};
|