@everymatrix/casino-tournaments-list-controller 1.49.2 → 1.50.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-DLE0_N7q.cjs → CasinoTournamentsListController-1L6PyKXU.cjs} +1 -1
- package/components/{CasinoTournamentsListController-Br9wvTcj.js → CasinoTournamentsListController-CwLmZD83.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-B4rxbBF0.js → CasinoTournamentsThumbnail-B7iqMXEu.js} +8 -8
- package/components/{CasinoTournamentsThumbnail-CR0x_I1j.cjs → CasinoTournamentsThumbnail-CR1-yuLq.cjs} +3 -3
- package/components/CasinoTournamentsThumbnailController-B1Qww_EB.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-CBUcVC6U.js → CasinoTournamentsThumbnailController-CPmlbzga.js} +106 -106
- package/components/CasinoTournamentsThumbnailDuration-CrFAW0cp.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-0Z6PpyrH.js → CasinoTournamentsThumbnailDuration-KVr7COVN.js} +2 -2
- package/components/CasinoTournamentsThumbnailGamesSlider-CXDc6XYA.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-COvnkPU9.js → CasinoTournamentsThumbnailGamesSlider-q2kDlHQ6.js} +14 -14
- package/components/CasinoTournamentsThumbnailPrizes-Bbvu3gZ_.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailPrizes-C6jdK8Nd.js → CasinoTournamentsThumbnailPrizes-Cgo68XLX.js} +23 -23
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailController-CQTDJ8Hh.cjs +0 -3
- package/components/CasinoTournamentsThumbnailDuration-BNfoag-c.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-DHYgARio.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-CHGsU7-P.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-1L6PyKXU.cjs");function C(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function I(i){t.append_styles(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)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[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(i),m=w(i);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(i),f=D&&D(i);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(i[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(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[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(i){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(i){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(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[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(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[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(i){let e,n=i[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(i){let e,n=i[0]&&i[1]&&E(i);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),i[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(),i[16](null)}}}function G(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));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(r=>{C(r,M[r])});const m=r=>new Date(r).getTime(),B=(r,c)=>(m(c)-m(r))/(1e3*60),D=()=>{const r=new Date;n(4,v=B(r,o)),n(5,S=B(r,u)),n(6,P=s(v))},f=r=>{const c={month:"long"};let p=new Date(r),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(r<1440){const k=r/60,F=r%60,L=(F-Math.floor(F))*60;return[k,F,L].map(x=>p(x)).join(":")}return c(Math.ceil(r/(60*24)),"days")},_=()=>{let r=document.createElement("style");r.innerHTML=T,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.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 r=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,g=r.lang),"clientstyling"in r&&n(13,T=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,h=r.translationurl)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const r=B(u,o),c=100/r;return Math.floor((r-v)*c)}),i.$$.dirty&19&&u&&o&&D()&&s(v),i.$$.dirty&4096&&g&&D(),i.$$.dirty&4112&&g&&s(v),i.$$.dirty&32768&&h&&w(),i.$$.dirty&8200&&b&&T&&_(),i.$$.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,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, g as l, h as T, n as U, l as B, m as X, o as $, t as E, d as L, j as h, p as tt, k as M, w as et, x as N, y as nt } from "./CasinoTournamentsListController-
|
|
1
|
+
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, g as l, h as T, n as U, l as B, m as X, o as $, t as E, d as L, j as h, p as tt, k as M, w as et, x as N, y as nt } from "./CasinoTournamentsListController-CwLmZD83.js";
|
|
2
2
|
function O(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -85,7 +85,7 @@ const x = {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
function it(i) {
|
|
88
|
-
V(i, "svelte-
|
|
88
|
+
V(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)}");
|
|
89
89
|
}
|
|
90
90
|
function A(i) {
|
|
91
91
|
let t, e, s = (
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-1L6PyKXU.cjs"),ie=require("./CasinoTournamentsThumbnailController-B1Qww_EB.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"}};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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as D, n as
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as D, n as R, l as G, m as Fe, o as Me, F as X, d as z, g as c, G as C, x as Y, H as Be, j as v, I as Ee, u as L, J as Pe, v as te, t as Le, K, k as He, w as I, y as je } from "./CasinoTournamentsListController-CwLmZD83.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-CPmlbzga.js";
|
|
3
3
|
function Z(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
@@ -33,14 +33,14 @@ const Q = {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
function ze(e) {
|
|
36
|
-
Te(e, "svelte-
|
|
36
|
+
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}");
|
|
37
37
|
}
|
|
38
38
|
function V(e, l, t) {
|
|
39
39
|
const a = e.slice();
|
|
40
40
|
return a[50] = l[t], a[52] = t, a;
|
|
41
41
|
}
|
|
42
42
|
function $(e) {
|
|
43
|
-
let l, t, a, m, d, p, y, r, w, _, f =
|
|
43
|
+
let l, t, a, m, d, p, y, r, w, _, f = X(
|
|
44
44
|
/*games*/
|
|
45
45
|
e[1]
|
|
46
46
|
), o = [];
|
|
@@ -99,7 +99,7 @@ function $(e) {
|
|
|
99
99
|
s[8]
|
|
100
100
|
), b[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
101
101
|
23650) {
|
|
102
|
-
f =
|
|
102
|
+
f = X(
|
|
103
103
|
/*games*/
|
|
104
104
|
s[1]
|
|
105
105
|
);
|
|
@@ -217,8 +217,8 @@ function Ae(e) {
|
|
|
217
217
|
a[1] && /*games*/
|
|
218
218
|
a[1].length > 0 ? t ? t.p(a, m) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
219
219
|
},
|
|
220
|
-
i:
|
|
221
|
-
o:
|
|
220
|
+
i: R,
|
|
221
|
+
o: R,
|
|
222
222
|
d(a) {
|
|
223
223
|
a && G(l), t && t.d(), e[31](null);
|
|
224
224
|
}
|
|
@@ -245,16 +245,16 @@ function Ie(e, l, t) {
|
|
|
245
245
|
t(5, A = !0), t(6, U = n);
|
|
246
246
|
}, q = () => {
|
|
247
247
|
t(5, A = !1), t(6, U = -1);
|
|
248
|
-
}, le = (n) => n.touches || n.originalEvent.touches,
|
|
248
|
+
}, le = (n) => n.touches || n.originalEvent.touches, x = (n) => {
|
|
249
249
|
const g = le(n)[0];
|
|
250
250
|
H = g.clientX, j = g.clientY;
|
|
251
|
-
},
|
|
251
|
+
}, J = (n) => {
|
|
252
252
|
if (!H || !j) return;
|
|
253
253
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
254
254
|
Math.abs(F) > Math.abs(_e) && (F > 0 ? P(1) : P(-1)), H = null, j = null;
|
|
255
255
|
}, P = (n) => {
|
|
256
256
|
n > 0 && !m ? (t(2, u -= i), t(2, u = u < E ? E : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
257
|
-
},
|
|
257
|
+
}, O = (n) => {
|
|
258
258
|
window.postMessage(
|
|
259
259
|
{
|
|
260
260
|
type: "TournamentGameAction",
|
|
@@ -270,7 +270,7 @@ function Ie(e, l, t) {
|
|
|
270
270
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
271
271
|
});
|
|
272
272
|
}, re = () => {
|
|
273
|
-
h.addEventListener("touchstart",
|
|
273
|
+
h.addEventListener("touchstart", x, { passive: !0 }), h.addEventListener("touchmove", J, { passive: !0 });
|
|
274
274
|
}, ae = () => {
|
|
275
275
|
setTimeout(
|
|
276
276
|
() => {
|
|
@@ -299,9 +299,9 @@ function Ie(e, l, t) {
|
|
|
299
299
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
300
300
|
};
|
|
301
301
|
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
302
|
-
h.removeEventListener("touchstart",
|
|
302
|
+
h.removeEventListener("touchstart", x), h.removeEventListener("touchmove", J);
|
|
303
303
|
}));
|
|
304
|
-
const ue = () => P(-1), me = (n) =>
|
|
304
|
+
const ue = () => P(-1), me = (n) => O(n), de = (n) => W(n), he = () => q();
|
|
305
305
|
function fe(n) {
|
|
306
306
|
I[n ? "unshift" : "push"](() => {
|
|
307
307
|
B = n, t(7, B);
|
|
@@ -349,7 +349,7 @@ function Ie(e, l, t) {
|
|
|
349
349
|
W,
|
|
350
350
|
q,
|
|
351
351
|
P,
|
|
352
|
-
|
|
352
|
+
O,
|
|
353
353
|
y,
|
|
354
354
|
r,
|
|
355
355
|
p,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-1L6PyKXU.cjs");function y(r,t){e.addMessages(r,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function F(r){e.append_styles(r,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function T(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function v(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=b(T(r,n,l));let a=null;return n.length||(a=w(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=T(l,n,s);i[s]?i[s].p(u,c):(i[s]=b(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=w(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function w(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function b(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",f,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),f=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(h,g){e.insert(h,t,g),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,f),e.append(t,_)},p(h,g){g&2&&a!==(a=(h[13].count>1?`${h[13].rank}~${h[13].rank+h[13].count-1}`:h[13].rank)+"")&&e.set_data(l,a),g&4&&s!==(s=h[2]("place")+"")&&e.set_data(u,s),g&2&&d!==(d=h[13].name+"")&&e.set_data(f,d)},d(h){h&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&v(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,f){e.insert(d,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[f]){f&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,f):(p=v(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function S(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(z=>{y(z,m[z])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const f=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},h=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(z=>z.text()).then(z=>{m.innerHTML=z,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)}));function g(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&h(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,g]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, d as b, t as _, g as u, h as k, j as f, k as v, n as M, l as F, m as O, o as U, F as H, J as V, w as W, y as q } from "./CasinoTournamentsListController-
|
|
1
|
+
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, d as b, t as _, g as u, h as k, j as f, k as v, n as M, l as F, m as O, o as U, F as H, J as V, w as W, y as q } from "./CasinoTournamentsListController-CwLmZD83.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
A(l, e);
|
|
4
4
|
}
|
|
@@ -55,7 +55,7 @@ const S = {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
function D(l) {
|
|
58
|
-
B(l, "svelte-
|
|
58
|
+
B(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
59
59
|
}
|
|
60
60
|
function E(l, e, t) {
|
|
61
61
|
const n = l.slice();
|
|
@@ -142,15 +142,15 @@ function x(l) {
|
|
|
142
142
|
), p, o, d = (
|
|
143
143
|
/*prize*/
|
|
144
144
|
l[13].name + ""
|
|
145
|
-
),
|
|
145
|
+
), m, w;
|
|
146
146
|
return {
|
|
147
147
|
c() {
|
|
148
|
-
e = z("div"), t = z("p"), n = z("span"), i = _(r), c = b(), p = _(s), o = _(": "),
|
|
148
|
+
e = z("div"), t = z("p"), n = z("span"), i = _(r), c = b(), p = _(s), o = _(": "), m = _(d), w = b(), u(n, "class", "PrizeRank"), u(n, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
|
|
149
149
|
l[15]), u(e, "part", "Prize Prize" + /*index*/
|
|
150
150
|
l[15]);
|
|
151
151
|
},
|
|
152
152
|
m(h, y) {
|
|
153
|
-
k(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t,
|
|
153
|
+
k(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t, m), f(e, w);
|
|
154
154
|
},
|
|
155
155
|
p(h, y) {
|
|
156
156
|
y & /*prizes*/
|
|
@@ -165,7 +165,7 @@ function x(l) {
|
|
|
165
165
|
4 && s !== (s = /*$_*/
|
|
166
166
|
h[2]("place") + "") && v(p, s), y & /*prizes*/
|
|
167
167
|
2 && d !== (d = /*prize*/
|
|
168
|
-
h[13].name + "") && v(
|
|
168
|
+
h[13].name + "") && v(m, d);
|
|
169
169
|
},
|
|
170
170
|
d(h) {
|
|
171
171
|
h && F(e);
|
|
@@ -182,16 +182,16 @@ function J(l) {
|
|
|
182
182
|
);
|
|
183
183
|
return {
|
|
184
184
|
c() {
|
|
185
|
-
e = z("div"), t = z("div"), n = z("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--
|
|
185
|
+
e = z("div"), t = z("div"), n = z("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', r = b(), i = z("p"), s = _(c), p = b(), o && o.c(), u(n, "class", "TournamentPrizesIconWrapper"), u(n, "part", "TournamentPrizesIconWrapper"), u(i, "class", "PrizesTitle"), u(i, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
|
|
186
186
|
},
|
|
187
|
-
m(d,
|
|
188
|
-
k(d, e,
|
|
187
|
+
m(d, m) {
|
|
188
|
+
k(d, e, m), f(e, t), f(t, n), f(t, r), f(t, i), f(i, s), f(e, p), o && o.m(e, null), l[7](e);
|
|
189
189
|
},
|
|
190
|
-
p(d, [
|
|
191
|
-
|
|
190
|
+
p(d, [m]) {
|
|
191
|
+
m & /*$_*/
|
|
192
192
|
4 && c !== (c = /*$_*/
|
|
193
193
|
d[2]("prizes") + "") && v(s, c), /*prizes*/
|
|
194
|
-
d[1] ? o ? o.p(d,
|
|
194
|
+
d[1] ? o ? o.p(d, m) : (o = L(d), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
|
|
195
195
|
},
|
|
196
196
|
i: M,
|
|
197
197
|
o: M,
|
|
@@ -205,28 +205,28 @@ function G(l, e, t) {
|
|
|
205
205
|
O(l, q, (a) => t(2, n = a));
|
|
206
206
|
let { tourid: r = "" } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, p, o;
|
|
207
207
|
const d = () => {
|
|
208
|
-
fetch(s).then((
|
|
209
|
-
Object.keys(
|
|
210
|
-
N(P,
|
|
208
|
+
fetch(s).then((g) => g.json()).then((g) => {
|
|
209
|
+
Object.keys(g).forEach((P) => {
|
|
210
|
+
N(P, g[P]);
|
|
211
211
|
});
|
|
212
|
-
}).catch((
|
|
213
|
-
console.log(
|
|
212
|
+
}).catch((g) => {
|
|
213
|
+
console.log(g);
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
216
|
Object.keys(S).forEach((a) => {
|
|
217
217
|
N(a, S[a]);
|
|
218
218
|
});
|
|
219
|
-
const
|
|
219
|
+
const m = (a) => {
|
|
220
220
|
a.data && a.data.type == `TournamentPrizes_${r}` && t(1, o = a.data.prizes);
|
|
221
221
|
}, w = () => {
|
|
222
222
|
let a = document.createElement("style");
|
|
223
223
|
a.innerHTML = i, p.appendChild(a);
|
|
224
224
|
}, h = () => {
|
|
225
|
-
let a = new URL(c),
|
|
225
|
+
let a = new URL(c), g = document.createElement("style");
|
|
226
226
|
fetch(a.href).then((P) => P.text()).then((P) => {
|
|
227
|
-
|
|
227
|
+
g.innerHTML = P, setTimeout(
|
|
228
228
|
() => {
|
|
229
|
-
p.appendChild(
|
|
229
|
+
p.appendChild(g);
|
|
230
230
|
},
|
|
231
231
|
1
|
|
232
232
|
), setTimeout(
|
|
@@ -236,8 +236,8 @@ function G(l, e, t) {
|
|
|
236
236
|
);
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
|
-
U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message",
|
|
240
|
-
window.removeEventListener("message",
|
|
239
|
+
U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", m, !1), () => {
|
|
240
|
+
window.removeEventListener("message", m);
|
|
241
241
|
}));
|
|
242
242
|
function y(a) {
|
|
243
243
|
W[a ? "unshift" : "push"](() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-1L6PyKXU.cjs")).then(e=>e.CasinoTournamentsListController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-CwLmZD83.js").then((e) => e.L).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var Q=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(m){o(m)}},a=c=>{try{u(e.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-DLE0_N7q.cjs");function F(r){return typeof r=="function"}function Le(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $=Le(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
-
`+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var H=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=n.__values(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var d=this.initialTeardown;if(F(d))try{d()}catch(p){s=p instanceof $?p.errors:[p]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var v=n.__values(b),w=v.next();!w.done;w=v.next()){var _=w.value;try{Te(_)}catch(p){s=s!=null?s:[],p instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(p.errors)):s.push(p)}}}catch(p){i={error:p}}finally{try{w&&!w.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}if(s)throw new $(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Te(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Re=H.EMPTY;function Ue(r){return r instanceof H||r&&"closed"in r&&F(r.remove)&&F(r.add)&&F(r.unsubscribe)}function Te(r){F(r)?r():r.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},We={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){var t=We.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function at(r){We.setTimeout(function(){throw r})}function Fe(){}function W(r){r()}var He=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Ue(e)&&e.add(i)):i.destination=ft,i}return t.create=function(e,i,o){return new ne(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(H),lt=Function.prototype.bind;function ee(r,t){return lt.call(r,t)}var ut=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){J(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){J(i)}else J(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},r}(),ne=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,a;if(F(e)||!e)a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var u;s&&Je.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,u),error:e.error&&ee(e.error,u),complete:e.complete&&ee(e.complete,u)}):a=e}return s.destination=new ut(a),s}return t}(He);function J(r){at(r)}function ct(r){throw r}var ft={closed:!0,next:Fe,error:ct,complete:Fe},dt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mt(r){return r}function ht(r){return r.length===0?mt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Se=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=_t(t)?t:new ne(t,e,i);return W(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Ee(e),new e(function(o,s){var a=new ne({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[dt]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ee(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Ee(r){var t;return(t=r!=null?r:Je.Promise)!==null&&t!==void 0?t:Promise}function pt(r){return r&&F(r.next)&&F(r.error)&&F(r.complete)}function _t(r){return r&&r instanceof He||pt(r)&&Ue(r)}var gt=Le(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=function(r){n.__extends(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Ce(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new gt},t.prototype.next=function(e){var i=this;W(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=n.__values(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Re:(this.currentObservers=null,u.push(e),new H(function(){i.currentObservers=null,te(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Se;return e.source=this,e},t.create=function(e,i){return new Ce(e,i)},t}(Se),Ce=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:Re},t}(qe),Ge={now:function(){return(Ge.delegate||Date).now()},delegate:void 0},bt=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ge);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),m=0,d=1;d<s.length&&s[d]<=c;d+=2)m=d;m&&s.splice(0,m+1)}},t}(qe);const je=[],ze={},wt=(r,t=0)=>{if(je.indexOf(r)==-1){const e=new bt(t);ze[r]=e,je.push(r)}return ze[r]};window.emWidgets={topic:wt};const re=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function vt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function Pe(r,t){n.addMessages(r,t)}function yt(r){n.$locale.set(r)}const Be={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CR0x_I1j.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-BNfoag-c.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CHGsU7-P.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-DHYgARio.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function kt(r){n.append_styles(r,"svelte-e8vjpc",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Tt(r){let t,e,i,o,s,a,u,c,m,d=r[14]&&xe(r);function b(f,h){if(!f[14])return Ct;if(f[23]!="Closed"&&f[23]!="Closing")return Et;if(f[3]=="true")return St}let v=b(r),w=v&&v(r),_=(r[17]||r[19])&&Ie(r),p=r[4]=="true"&&Me(r);return{c(){t=n.element("div"),e=n.element("casino-tournaments-thumbnail"),i=n.space(),d&&d.c(),o=n.space(),s=n.element("div"),w&&w.c(),a=n.space(),_&&_.c(),u=n.space(),p&&p.c(),n.set_custom_element_data(e,"session",r[0]),n.set_custom_element_data(e,"userid",r[1]),n.set_custom_element_data(e,"title",r[20]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"tourid",r[24]),n.set_custom_element_data(e,"scorecriteria",r[27]),n.set_custom_element_data(e,"minbetcount",r[28]),n.set_custom_element_data(e,"thumbnail",r[25]),n.set_custom_element_data(e,"showenrolled",r[5]),n.set_custom_element_data(e,"gameurl",r[30]),n.set_custom_element_data(e,"userenrolled",r[26]),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"keepbrowsercontext",r[9]),n.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(s,"class","TournamentButtons"),n.attr(s,"part","TournamentButtons"),n.attr(t,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",m="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(t,i),d&&d.m(t,null),n.append(t,o),n.append(t,s),w&&w.m(s,null),n.append(t,a),_&&_.m(t,null),n.append(t,u),p&&p.m(t,null)},p(f,h){h[0]&1&&n.set_custom_element_data(e,"session",f[0]),h[0]&2&&n.set_custom_element_data(e,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(e,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(e,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(e,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(e,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(e,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(e,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(e,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(e,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(e,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(e,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(e,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(e,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(e,"lang",f[8]),h[0]&512&&n.set_custom_element_data(e,"keepbrowsercontext",f[9]),f[14]?d?d.p(f,h):(d=xe(f),d.c(),d.m(t,o)):d&&(d.d(1),d=null),v===(v=b(f))&&w?w.p(f,h):(w&&w.d(1),w=v&&v(f),w&&(w.c(),w.m(s,null))),f[17]||f[19]?_?_.p(f,h):(_=Ie(f),_.c(),_.m(t,u)):_&&(_.d(1),_=null),f[4]=="true"?p?p.p(f,h):(p=Me(f),p.c(),p.m(t,null)):p&&(p.d(1),p=null),h[0]&192|h[1]&1&&c!==(c="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",c),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",m)},d(f){f&&n.detach(t),d&&d.d(),w&&w.d(),_&&_.d(),p&&p.d()}}}function Ft(r){let t,e,i,o;return{c(){t=n.element("div"),e=n.element("div"),e.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',n.attr(e,"class","ph-item"),n.attr(e,"part","ph-item"),n.attr(t,"class",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",o="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(s,a){n.insert(s,t,a),n.append(t,e)},p(s,a){a[0]&192|a[1]&1&&i!==(i="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",i),a[0]&192|a[1]&1&&o!==(o="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",o)},d(s){s&&n.detach(t)}}}function xe(r){let t,e,i=r[24]&&Oe(r);return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"enddate",r[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?i?i.p(o,s):(i=Oe(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function Oe(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[24]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),i||(o=n.action_destroyer(e=r[37].call(null,t,r[24])),i=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),i=!1,o()}}}function St(r){let t,e=r[32]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[51]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i=r[3]=="true"&&De(r);function o(u,c){return u[26]?zt:jt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?i?i.p(u,c):(i=De(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function Ct(r){let t,e=r[32]("login")+"",i,o,s,a=r[32]("register")+"",u,c,m;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(d,b){n.insert(d,t,b),n.append(t,i),n.insert(d,o,b),n.insert(d,s,b),n.append(s,u),c||(m=[n.listen(t,"click",r[47]),n.listen(s,"click",r[48])],c=!0)},p(d,b){b[1]&2&&e!==(e=d[32]("login")+"")&&n.set_data(i,e),b[1]&2&&a!==(a=d[32]("register")+"")&&n.set_data(u,a)},d(d){d&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(m)}}}function De(r){let t,e=r[32]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[49]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(r){let t,e,i,o,s;function a(m,d){return m[16]==!0?Bt:Pt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(m,d){n.insert(m,t,d),c.m(t,null),o||(s=n.listen(t,"click",r[50]),o=!0)},p(m,d){u===(u=a(m))&&c?c.p(m,d):(c.d(1),c=u(m),c&&(c.c(),c.m(t,null))),d[0]&128&&e!==(e="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),d[0]&128&&i!==(i="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),d[0]&131072&&(t.disabled=m[17])},d(m){m&&n.detach(t),c.d(),o=!1,s()}}}function zt(r){let t,e=r[3]=="true"&&Ae(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[3]=="true"?e?e.p(i,o):(e=Ae(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Pt(r){let t,e=r[32]("join")+"",i,o,s,a,u,c,m,d;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),m=n.svg_element("g"),d=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(d,"class","a"),n.attr(d,"part","a JoinButtonSvgA"),n.attr(d,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(b,v){n.insert(b,t,v),n.append(t,i),n.insert(b,o,v),n.insert(b,s,v),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,m),n.append(m,d)},p(b,v){v[1]&2&&e!==(e=b[32]("join")+"")&&n.set_data(i,e)},d(b){b&&(n.detach(t),n.detach(o),n.detach(s))}}}function Bt(r){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Ae(r){let t,e=r[32]("enrolled")+"",i;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,i)},p(o,s){s[1]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ie(r){let t,e=r[32]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(i,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Me(r){let t;return{c(){t=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"tournamenturl",r[2]),n.set_custom_element_data(t,"lang",r[8]),n.set_custom_element_data(t,"scrollby","2"),n.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,i){n.insert(e,t,i)},p(e,i){i[0]&1024&&n.set_custom_element_data(t,"clientstyling",e[10]),i[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",e[11]),i[0]&4096&&n.set_custom_element_data(t,"translationurl",e[12]),i[0]&4&&n.set_custom_element_data(t,"tournamenturl",e[2]),i[0]&256&&n.set_custom_element_data(t,"lang",e[8])},d(e){e&&n.detach(t)}}}function xt(r){let t;function e(s,a){if(s[15])return Ft;if(s[20])return Tt}let i=e(r),o=i&&i(r);return{c(){t=n.element("div"),o&&o.c()},m(s,a){n.insert(s,t,a),o&&o.m(t,null),r[52](t)},p(s,a){i===(i=e(s))&&o?o.p(s,a):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(t,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(t),o&&o.d(),r[52](null)}}}function Ot(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(32,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:m=""}=t,{showslider:d=""}=t,{showenrolled:b=""}=t,{maxwidth:v=""}=t,{fullsize:w=""}=t,{lang:_=""}=t,{loginevent:p=""}=t,{registerevent:f=""}=t,{loginurl:h=""}=t,{registerurl:B=""}=t,{currency:q=""}=t,{keepbrowsercontext:ie="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,{tournamentinfo:A}=t,S,C=!1,I="",j=!0,oe=window.navigator.userAgent,M=!1,L=!1,se="There was an error while trying to join the tournament",G=!1,ae,le,ue,z,T,ce,Y,fe,de,me=[],K=[],he="#",V,R=!1;vt({withLocale:"en",translations:{}});const Ke=()=>{fetch(D).then(g=>g.json()).then(g=>{Object.keys(g).forEach(y=>{Pe(y,g[y])})}).catch(g=>{console.log(g)})};Object.keys(Be).forEach(l=>{Pe(l,Be[l])});const pe=l=>{Ve(l),N(l),ve(this,T)},_e=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),I=l.data.session),l.data.type=="UpdateTournamentView"){let g=l.data.tournamentData;if(T&&T!=g.id)return;pe(g)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let g=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(31,R=u==1),setTimeout(()=>{e(31,R=!0),e(24,T=g.id),pe(g)},y),setTimeout(()=>{e(31,R=!1)},y+200)}},Ve=l=>{l.state!=z&&(e(23,z=l.state),window.postMessage({type:`TournamentStatus_${T}`,status:z},window.location.href))},ge=()=>{p&&(window.postMessage({type:p,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),h&&(window.location=h)},be=()=>{f&&(window.postMessage({type:f,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},we=(l,g)=>Q(this,null,function*(){var ke;e(17,L=!1),e(19,G=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,M=!0);let y=new URL(`${c}/v1/bonus/claim`),U=new Headers,E={};y.searchParams.append("language",_),y.searchParams.append("platform",re(oe)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),g&&g.length>=1&&(E={language:_,bonusCode:g[0].code,currency:q,type:"tournament"});let st={method:"PUT",headers:U,body:JSON.stringify(E)};const ye=()=>{e(16,M=!1),e(26,Y=!0)},Z=k=>{e(16,M=!1),k&&e(18,se=k),e(17,L=!0)},P=yield Q(this,null,function*(){let k;try{k=yield fetch(y,st),k=yield k.json()}catch(It){Z()}return k});if(P)if(P.success==!0)ye();else if(P.errorMessage.match("VersionMismatchException")){let k;k=yield fetch(`${c}/tournaments/${T}`,{headers:{"X-SessionID":o}}),k=yield k.json(),(ke=k==null?void 0:k.item)!=null&&ke.playerEnrolled?ye():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),ve=(l,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:me},window.location.href)},N=l=>{l&&(e(20,ae=l.nameOrTitle||""),e(21,le=l.startTime),e(22,ue=l.endTime),e(23,z=l.state),e(24,T=l.id),e(25,ce=l.thumbnail),e(26,Y=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,fe=l.scoreCriteria),e(28,de=l.minBetCount),me=l.prizes,e(29,K=l.wallets||[]),e(30,he=l.termsUrl||"#"))},Xe=l=>{e(15,j=!0);let g=new URL(l),y=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",re(oe)),C&&y.append("X-SessionID",I),fetch(g,{method:"GET",headers:y}).then(E=>E.json()).then(E=>{e(15,j=!1),N(E.item)})},Ne=()=>{o.length>0&&o!="false"?(I=o,e(14,C=!0)):e(14,C=!1)},Ze=()=>{if(A){N(A);return}e(15,j=!0),Xe(a)},Qe=()=>{let l=document.createElement("style");l.innerHTML=x,S.appendChild(l)},$e=()=>{let l=new URL(O),g=document.createElement("style");fetch(l.href).then(y=>y.text()).then(y=>{g.innerHTML=y,setTimeout(()=>{S.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,j=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const et=()=>ge(),tt=()=>be(),nt=()=>X(T),rt=()=>we(T,K),it=()=>X(T);function ot(l){n.binding_callbacks[l?"unshift":"push"](()=>{S=l,e(13,S)})}return r.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(38,u=l.touridx),"endpoint"in l&&e(39,c=l.endpoint),"showdetails"in l&&e(3,m=l.showdetails),"showslider"in l&&e(4,d=l.showslider),"showenrolled"in l&&e(5,b=l.showenrolled),"maxwidth"in l&&e(6,v=l.maxwidth),"fullsize"in l&&e(7,w=l.fullsize),"lang"in l&&e(8,_=l.lang),"loginevent"in l&&e(40,p=l.loginevent),"registerevent"in l&&e(41,f=l.registerevent),"loginurl"in l&&e(42,h=l.loginurl),"registerurl"in l&&e(43,B=l.registerurl),"currency"in l&&e(44,q=l.currency),"keepbrowsercontext"in l&&e(9,ie=l.keepbrowsercontext),"clientstyling"in l&&e(10,x=l.clientstyling),"clientstylingurl"in l&&e(11,O=l.clientstylingurl),"translationurl"in l&&e(12,D=l.translationurl),"tournamentinfo"in l&&e(45,A=l.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&256&&_&&yt(_),r.$$.dirty[0]&9216&&S&&x&&Qe(),r.$$.dirty[0]&10240&&S&&O&&$e(),r.$$.dirty[0]&4096&&D&&Ke(),r.$$.dirty[0]&1&&o&&Ne(),r.$$.dirty[0]&260&&e(46,V=a&&_),r.$$.dirty[1]&32768&&V&&Ze()},[o,s,a,m,d,b,v,w,_,ie,x,O,D,S,C,j,M,L,se,G,ae,le,ue,z,T,ce,Y,fe,de,K,he,R,i,ge,be,X,we,ve,u,c,p,f,h,B,q,A,V,et,tt,nt,rt,it,ot]}class Ye extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Ot,xt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},kt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[38]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[39]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[40]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Ye,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Dt;exports.getDevice=re;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-DLE0_N7q.cjs");function C(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function I(i){t.append_styles(i,"svelte-n7yu38","*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[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(i),m=w(i);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(i),f=D&&D(i);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(i[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(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[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(i){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(i){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(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[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(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[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(i){let e,n=i[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(i){let e,n=i[0]&&i[1]&&E(i);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),i[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(),i[16](null)}}}function G(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));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(r=>{C(r,M[r])});const m=r=>new Date(r).getTime(),B=(r,c)=>(m(c)-m(r))/(1e3*60),D=()=>{const r=new Date;n(4,v=B(r,o)),n(5,S=B(r,u)),n(6,P=s(v))},f=r=>{const c={month:"long"};let p=new Date(r),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(r<1440){const k=r/60,F=r%60,L=(F-Math.floor(F))*60;return[k,F,L].map(x=>p(x)).join(":")}return c(Math.ceil(r/(60*24)),"days")},_=()=>{let r=document.createElement("style");r.innerHTML=T,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.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 r=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,g=r.lang),"clientstyling"in r&&n(13,T=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,h=r.translationurl)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const r=B(u,o),c=100/r;return Math.floor((r-v)*c)}),i.$$.dirty&19&&u&&o&&D()&&s(v),i.$$.dirty&4096&&g&&D(),i.$$.dirty&4112&&g&&s(v),i.$$.dirty&32768&&h&&w(),i.$$.dirty&8200&&b&&T&&_(),i.$$.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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-DLE0_N7q.cjs"),ie=require("./CasinoTournamentsThumbnailController-CQTDJ8Hh.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"}};function oe(t){e.append_styles(t,"svelte-1pdib0y","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emfe-w-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(--emfe-w-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(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-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,f=e.ensure_array_like(t[1]),c=[];for(let a=0;a<f.length;a+=1)c[a]=W(D(t,f,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){f=e.ensure_array_like(a[1]);let o;for(o=0;o<f.length;o+=1){const v=D(a,f,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=f.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,f,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",f=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&&f!==(f=t[50].name)&&e.attr(s,"title",f)},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:f=""}=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(g=>g.json()).then(g=>{Object.keys(g).forEach(k=>{U(k,g[k])})}).catch(g=>{console.log(g)})};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 g=R(l)[0];P=g.clientX,B=g.clientY},z=l=>{if(!P||!B)return;let g=l.touches[0].clientX,k=l.touches[0].clientY,T=P-g,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),g=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:g}).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})},Y=()=>{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)},x=()=>{let l=document.createElement("style");l.innerHTML=f,a.appendChild(l)},Z=()=>{let l=new URL(c),g=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{g.innerHTML=k,setTimeout(()=>{a.appendChild(g)},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,f=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&&Y(),t.$$.dirty[0]&1048577&&f&&a&&x(),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,f,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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-DLE0_N7q.cjs");function y(r,t){e.addMessages(r,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function F(r){e.append_styles(r,"svelte-1t3fr3e","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}")}function T(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function v(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=b(T(r,n,l));let a=null;return n.length||(a=w(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=T(l,n,s);i[s]?i[s].p(u,c):(i[s]=b(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=w(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function w(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function b(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",h,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),h=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(f,g){e.insert(f,t,g),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,h),e.append(t,_)},p(f,g){g&2&&a!==(a=(f[13].count>1?`${f[13].rank}~${f[13].rank+f[13].count-1}`:f[13].rank)+"")&&e.set_data(l,a),g&4&&s!==(s=f[2]("place")+"")&&e.set_data(u,s),g&2&&d!==(d=f[13].name+"")&&e.set_data(h,d)},d(f){f&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&v(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,h){e.insert(d,t,h),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[h]){h&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,h):(p=v(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function S(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(z=>{y(z,m[z])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const h=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},f=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(z=>z.text()).then(z=>{m.innerHTML=z,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function g(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&f(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,g]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;
|