@everymatrix/casino-tournaments-limited-controller 1.75.1 → 1.76.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.
@@ -5078,7 +5078,7 @@ if (typeof window != "undefined") {
5078
5078
  }
5079
5079
  };
5080
5080
  };
5081
- customElements.define = e(customElements.define), import("./CasinoTournamentsTab-DuWD9_Mq.js").then(({ default: t }) => {
5081
+ customElements.define = e(customElements.define), import("./CasinoTournamentsTab-DRhGnoLa.js").then(({ default: t }) => {
5082
5082
  !customElements.get("casino-tournaments-tab") && customElements.define("casino-tournaments-tab", t.element);
5083
5083
  });
5084
5084
  }
@@ -5032,7 +5032,7 @@ if (typeof window < "u") {
5032
5032
  }
5033
5033
  };
5034
5034
  };
5035
- customElements.define = e(customElements.define), import("./CasinoTournamentsTab-HIpcmeWx.js").then(({ default: t }) => {
5035
+ customElements.define = e(customElements.define), import("./CasinoTournamentsTab-BuWNROMG.js").then(({ default: t }) => {
5036
5036
  !customElements.get("casino-tournaments-tab") && customElements.define("casino-tournaments-tab", t.element);
5037
5037
  });
5038
5038
  }
@@ -23,4 +23,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
23
23
  * https://github.com/Yaffle/EventSource/
24
24
  */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,u=n.ActiveXObject,l=n.EventSource,a=n.document,c=n.Promise,f=n.fetch,d=n.Response,E=n.TextDecoder,T=n.TextEncoder,B=n.AbortController;if(typeof window!="undefined"&&typeof a!="undefined"&&!("readyState"in a)&&a.body==null&&(a.readyState="loading",window.addEventListener("load",function(h){a.readyState="complete"},!1)),o==null&&u!=null&&(o=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(h){function m(){}return m.prototype=h,new m}),Date.now||(Date.now=function(){return new Date().getTime()}),B==null){var k=f;f=function(h,m){var g=m.signal;return k(h,{headers:m.headers,credentials:m.credentials,cache:m.cache}).then(function(p){var y=p.body.getReader();return g._reader=y,g._aborted&&g._reader.cancel(),{status:p.status,statusText:p.statusText,headers:p.headers,body:{getReader:function(){return y}}}})},B=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function G(){this.bitsNeeded=0,this.codePoint=0}G.prototype.decode=function(h){function m(D,M,w){if(w===1)return D>=128>>M&&D<<M<=2047;if(w===2)return D>=2048>>M&&D<<M<=55295||D>=57344>>M&&D<<M<=65535;if(w===3)return D>=65536>>M&&D<<M<=1114111;throw new Error}function g(D,M){if(D===6*1)return M>>6>15?3:M>31?2:1;if(D===6*2)return M>15?3:2;if(D===6*3)return 3;throw new Error}for(var p=65533,y="",b=this.bitsNeeded,S=this.codePoint,Q=0;Q<h.length;Q+=1){var R=h[Q];b!==0&&(R<128||R>191||!m(S<<6|R&63,b-6,g(b,S)))&&(b=0,S=p,y+=String.fromCharCode(S)),b===0?(R>=0&&R<=127?(b=0,S=R):R>=192&&R<=223?(b=6*1,S=R&31):R>=224&&R<=239?(b=6*2,S=R&15):R>=240&&R<=247?(b=6*3,S=R&7):(b=0,S=p),b!==0&&!m(S,b,g(b,S))&&(b=0,S=p)):(b-=6,S=S<<6|R&63),b===0&&(S<=65535?y+=String.fromCharCode(S):(y+=String.fromCharCode(55296+(S-65535-1>>10)),y+=String.fromCharCode(56320+(S-65535-1&1023))))}return this.bitsNeeded=b,this.codePoint=S,y};var _=function(){try{return new E().decode(new T().encode("test"),{stream:!0})==="test"}catch(h){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+h)}return!1};(E==null||T==null||!_())&&(E=G);var v=function(){};function x(h){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=h,this._sendTimeout=0,this._abort=v}x.prototype.open=function(h,m){this._abort(!0);var g=this,p=this._xhr,y=1,b=0;this._abort=function(w){g._sendTimeout!==0&&(i(g._sendTimeout),g._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,p.onload=v,p.onerror=v,p.onabort=v,p.onprogress=v,p.onreadystatechange=v,p.abort(),b!==0&&(i(b),b=0),w||(g.readyState=4,g.onabort(null),g.onreadystatechange())),y=0};var S=function(){if(y===1){var w=0,z="",ge=void 0;if("contentType"in p)w=200,z="OK",ge=p.contentType;else try{w=p.status,z=p.statusText,ge=p.getResponseHeader("Content-Type")}catch(Ye){w=0,z="",ge=void 0}w!==0&&(y=2,g.readyState=2,g.status=w,g.statusText=z,g._contentType=ge,g.onreadystatechange())}},Q=function(){if(S(),y===2||y===3){y=3;var w="";try{w=p.responseText}catch(z){}g.readyState=3,g.responseText=w,g.onprogress()}},R=function(w,z){if((z==null||z.preventDefault==null)&&(z={preventDefault:v}),Q(),y===1||y===2||y===3){if(y=4,b!==0&&(i(b),b=0),g.readyState=4,w==="load")g.onload(z);else if(w==="error")g.onerror(z);else if(w==="abort")g.onabort(z);else throw new TypeError;g.onreadystatechange()}},D=function(w){p!=null&&(p.readyState===4?(!("onload"in p)||!("onerror"in p)||!("onabort"in p))&&R(p.responseText===""?"error":"load",w):p.readyState===3?"onprogress"in p||Q():p.readyState===2&&S())},M=function(){b=r(function(){M()},500),p.readyState===3&&Q()};"onload"in p&&(p.onload=function(w){R("load",w)}),"onerror"in p&&(p.onerror=function(w){R("error",w)}),"onabort"in p&&(p.onabort=function(w){R("abort",w)}),"onprogress"in p&&(p.onprogress=Q),"onreadystatechange"in p&&(p.onreadystatechange=function(w){D(w)}),("contentType"in p||!("ontimeout"in o.prototype))&&(m+=(m.indexOf("?")===-1?"?":"&")+"padding=true"),p.open(h,m,!0),"readyState"in p&&(b=r(function(){M()},0))},x.prototype.abort=function(){this._abort(!1)},x.prototype.getResponseHeader=function(h){return this._contentType},x.prototype.setRequestHeader=function(h,m){var g=this._xhr;"setRequestHeader"in g&&g.setRequestHeader(h,m)},x.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},x.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&a!=null&&a.readyState!=null&&a.readyState!=="complete"){var h=this;h._sendTimeout=r(function(){h._sendTimeout=0,h.send()},4);return}var m=this._xhr;"withCredentials"in m&&(m.withCredentials=this.withCredentials);try{m.send(void 0)}catch(g){throw g}};function C(h){return h.replace(/[A-Z]/g,function(m){return String.fromCharCode(m.charCodeAt(0)+32)})}function $(h){for(var m=Object.create(null),g=h.split(`\r
25
25
  `),p=0;p<g.length;p+=1){var y=g[p],b=y.split(": "),S=b.shift(),Q=b.join(": ");m[C(S)]=Q}this._map=m}$.prototype.get=function(h){return this._map[C(h)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function Z(){}Z.prototype.open=function(h,m,g,p,y,b,S){h.open("GET",y);var Q=0;h.onprogress=function(){var D=h.responseText,M=D.slice(Q);Q+=M.length,g(M)},h.onerror=function(D){D.preventDefault(),p(new Error("NetworkError"))},h.onload=function(){p(null)},h.onabort=function(){p(null)},h.onreadystatechange=function(){if(h.readyState===o.HEADERS_RECEIVED){var D=h.status,M=h.statusText,w=h.getResponseHeader("Content-Type"),z=h.getAllResponseHeaders();m(D,M,w,new $(z))}},h.withCredentials=b;for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&h.setRequestHeader(R,S[R]);return h.send(),h};function N(h){this._headers=h}N.prototype.get=function(h){return this._headers.get(h)};function te(){}te.prototype.open=function(h,m,g,p,y,b,S){var Q=null,R=new B,D=R.signal,M=new E;return f(y,{headers:S,credentials:b?"include":"same-origin",signal:D,cache:"no-store"}).then(function(w){return Q=w.body.getReader(),m(w.status,w.statusText,w.headers.get("Content-Type"),new N(w.headers)),new c(function(z,ge){var Ye=function(){Q.read().then(function(se){if(se.done)z(void 0);else{var ne=M.decode(se.value,{stream:!0});g(ne),Ye()}}).catch(function(se){ge(se)})};Ye()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){p(w)}),{abort:function(){Q!=null&&Q.cancel(),R.abort()}}};function ye(){this._listeners=Object.create(null)}function st(h){r(function(){throw h},0)}ye.prototype.dispatchEvent=function(h){h.target=this;var m=this._listeners[h.type];if(m!=null)for(var g=m.length,p=0;p<g;p+=1){var y=m[p];try{typeof y.handleEvent=="function"?y.handleEvent(h):y.call(this,h)}catch(b){st(b)}}},ye.prototype.addEventListener=function(h,m){h=String(h);var g=this._listeners,p=g[h];p==null&&(p=[],g[h]=p);for(var y=!1,b=0;b<p.length;b+=1)p[b]===m&&(y=!0);y||p.push(m)},ye.prototype.removeEventListener=function(h,m){h=String(h);var g=this._listeners,p=g[h];if(p!=null){for(var y=[],b=0;b<p.length;b+=1)p[b]!==m&&y.push(p[b]);y.length===0?delete g[h]:g[h]=y}};function we(h){this.type=h,this.target=void 0}function Te(h,m){we.call(this,h),this.data=m.data,this.lastEventId=m.lastEventId}Te.prototype=Object.create(we.prototype);function Ve(h,m){we.call(this,h),this.status=m.status,this.statusText=m.statusText,this.headers=m.headers}Ve.prototype=Object.create(we.prototype);function at(h,m){we.call(this,h),this.error=m.error}at.prototype=Object.create(we.prototype);var Ze=-1,de=0,A=1,P=2,j=-1,J=0,We=1,ut=2,kt=3,Wr=/^text\/event\-stream(;.*)?$/i,Yr=1e3,qr=18e6,Ut=function(h,m){var g=h==null?m:parseInt(h,10);return g!==g&&(g=m),Ft(g)},Ft=function(h){return Math.min(Math.max(h,Yr),qr)},Oe=function(h,m,g){try{typeof m=="function"&&m.call(h,g)}catch(p){st(p)}};function fe(h,m){ye.call(this),m=m||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,ei(this,h,m)}function Kr(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var $r=f!=null&&d!=null&&"body"in d.prototype;function ei(h,m,g){m=String(m);var p=!!g.withCredentials,y=g.lastEventIdQueryParameterName||"lastEventId",b=Ft(1e3),S=Ut(g.heartbeatTimeout,45e3),Q="",R=b,D=!1,M=0,w=g.headers||{},z=g.Transport,ge=$r&&z==null?void 0:new x(z!=null?new z:Kr()),Ye=z!=null&&typeof z!="string"?new z:ge==null?new te:new Z,se=void 0,ne=0,ce=Ze,_e="",lt="",ve="",ht="",re=J,Gt=0,Se=0,ti=function(q,W,ae,ue){if(ce===de)if(q===200&&ae!=null&&Wr.test(ae)){ce=A,D=Date.now(),R=b,h.readyState=A;var ie=new Ve("open",{status:q,statusText:W,headers:ue});h.dispatchEvent(ie),Oe(h,h.onopen,ie)}else{var ee="";q!==200?(W&&(W=W.replace(/\s+/g," ")),ee="EventSource's response has a status "+q+" "+W+" that is not 200. Aborting the connection."):ee="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",jt();var ie=new Ve("error",{status:q,statusText:W,headers:ue});h.dispatchEvent(ie),Oe(h,h.onerror,ie),console.error(ee)}},ni=function(q){if(ce===A){for(var W=-1,ae=0;ae<q.length;ae+=1){var ue=q.charCodeAt(ae);(ue===10||ue===13)&&(W=ae)}var ie=(W!==-1?ht:"")+q.slice(0,W+1);ht=(W===-1?ht:"")+q.slice(W+1),q!==""&&(D=Date.now(),M+=q.length);for(var ee=0;ee<ie.length;ee+=1){var ue=ie.charCodeAt(ee);if(re===j&&ue===10)re=J;else if(re===j&&(re=J),ue===13||ue===10){if(re!==J){re===We&&(Se=ee+1);var Ae=ie.slice(Gt,Se-1),be=ie.slice(Se+(Se<ee&&ie.charCodeAt(Se)===32?1:0),ee);Ae==="data"?(_e+=`
26
- `,_e+=be):Ae==="id"?lt=be:Ae==="event"?ve=be:Ae==="retry"?(b=Ut(be,b),R=b):Ae==="heartbeatTimeout"&&(S=Ut(be,S),ne!==0&&(i(ne),ne=r(function(){qe()},S)))}if(re===J){if(_e!==""){Q=lt,ve===""&&(ve="message");var Ne=new Te(ve,{data:_e.slice(1),lastEventId:lt});if(h.dispatchEvent(Ne),ve==="open"?Oe(h,h.onopen,Ne):ve==="message"?Oe(h,h.onmessage,Ne):ve==="error"&&Oe(h,h.onerror,Ne),ce===P)return}_e="",ve=""}re=ue===13?j:J}else re===J&&(Gt=ee,re=We),re===We?ue===58&&(Se=ee+1,re=ut):re===ut&&(re=kt)}}},Cn=function(q){if(ce===A||ce===de){ce=Ze,ne!==0&&(i(ne),ne=0),ne=r(function(){qe()},R),R=Ft(Math.min(b*16,R*2)),h.readyState=de;var W=new at("error",{error:q});h.dispatchEvent(W),Oe(h,h.onerror,W),q!=null&&console.error(q)}},jt=function(){ce=P,se!=null&&(se.abort(),se=void 0),ne!==0&&(i(ne),ne=0),h.readyState=P},qe=function(){if(ne=0,ce!==Ze){if(!D&&se!=null)Cn(new Error("No activity within "+S+" milliseconds. "+(ce===de?"No response received.":M+" chars received.")+" Reconnecting.")),se!=null&&(se.abort(),se=void 0);else{var q=Math.max((D||Date.now())+S-Date.now(),1);D=!1,ne=r(function(){qe()},q)}return}D=!1,M=0,ne=r(function(){qe()},S),ce=de,_e="",ve="",lt=Q,ht="",Gt=0,Se=0,re=J;var W=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&Q!==""){var ae=m.indexOf("?");W=ae===-1?m:m.slice(0,ae+1)+m.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(be,Ne){return Ne===y?"":be}),W+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(Q)}var ue=h.withCredentials,ie={};ie.Accept="text/event-stream";var ee=h.headers;if(ee!=null)for(var Ae in ee)Object.prototype.hasOwnProperty.call(ee,Ae)&&(ie[Ae]=ee[Ae]);try{se=Ye.open(ge,ti,ni,Cn,W,ue,ie)}catch(be){throw jt(),be}};h.url=m,h.readyState=de,h.withCredentials=p,h.headers=w,h._close=jt,qe()}fe.prototype=Object.create(ye.prototype),fe.prototype.CONNECTING=de,fe.prototype.OPEN=A,fe.prototype.CLOSED=P,fe.prototype.close=function(){this._close()},fe.CONNECTING=de,fe.OPEN=A,fe.CLOSED=P,fe.prototype.withCredentials=void 0;var Sn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Sn=fe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=fe,h.NativeEventSource=l,h.EventSource=Sn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:zi:globalThis)})(An,An.exports);var Ms=An.exports;const Vr=e=>window.postMessage(e,window.location.href),ks=(e,t)=>{Vr({type:"TournamentsTabTotalUpdate",state:e,total:t})},$t=(e,t)=>{Vr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},Us=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=zt(i,["type"]);e[r](s)}})},Fs=e=>{const t=Us(e);yn(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},Gs=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Ms.EventSourcePolyfill(e,{headers:n})},js=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},Qs=e=>n=>{let r=n.data;if(r)try{let i=JSON.parse(r);if(!i)return;Object.keys(e).map(o=>{if(i.messageType==o){const s=i,{messageType:u}=s,l=zt(s,["messageType"]);console.log(u,l),e[o](l)}})}catch(i){console.error(i)}};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-DohmrWvA.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function zs(e){En(e,"svelte-1l19mel",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CloseButton{position:absolute;right:1.5625vw;font-size:3.4375vw;color:#FFFFFF;cursor:pointer}.NoContent{padding:120px}.Root{background:#282828}.Root .top-wrapper{padding:1.875vw;display:flex;background:#333333}.Root .top-wrapper .svg{width:10.9375vw;height:10.9375vw}.Root .top-wrapper .text{color:white;font-size:5vw;padding-left:3.125vw;font-weight:bold;line-height:5.9375vw;padding-top:2.1875vw}.Root section{padding:0 3.75vw}table{width:100%;border-collapse:collapse;font-size:3.75vw;line-height:4.375vw;@import url("https://rsms.me/inter/inter.css");}table div{font:initial;font-family:"Inter", sans-serif}@supports (font-variation-settings: normal){table div{font:initial;font-family:"Inter var", sans-serif}}table thead{background:#1C1C1C;color:#F7F7F7}table th,table td{padding:2.5vw 1.5625vw;overflow-wrap:break-word}table td{color:#B5B5B5}.Title{color:#FF8364;text-decoration-line:underline;word-break:break-word}.Title:active{opacity:0.6}.Prize .Rank:active{color:#FFD700}.Loading{display:flex;justify-content:center;padding:9.375vw}')}function tr(e,t,n){const r=e.slice();return r[32]=t[n],r[34]=n,r}function nr(e,t,n){const r=e.slice();return r[35]=t[n],r}function rr(e,t,n){const r=e.slice();return r[32]=t[n],r}function Js(e){let t;return{c(){t=Me("image"),I(t,"id","image0_2606_356"),I(t,"width","512"),I(t,"height","512"),hr(t,"xlink:href",e[8])},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Xs(e){let t,n,r;function i(u,l){return u[6]?Ws:Zs}let o=i(e),s=o(e);return{c(){t=U("section"),n=U("casino-tournaments-tab"),r=me(),s.c(),Pe(n,"tabs",e[1]),Pe(n,"tab",e[0]),Pe(n,"mbsource",e[2])},m(u,l){Y(u,t,l),L(t,n),L(t,r),s.m(t,null)},p(u,l){l[0]&2&&Pe(n,"tabs",u[1]),l[0]&1&&Pe(n,"tab",u[0]),l[0]&4&&Pe(n,"mbsource",u[2]),o===(o=i(u))&&s?s.p(u,l):(s.d(1),s=o(u),s&&(s.c(),s.m(t,null)))},d(u){u&&V(t),s.d()}}}function Vs(e){let t;return{c(){t=U("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",I(t,"class","Loading")},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Zs(e){let t;return{c(){t=U("div"),I(t,"class","NoContent")},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Ws(e){let t,n,r,i,o=Ce([e[7]("name"),e[7]("rank"),e[7]("enddate"),e[7]("prize")]),s=[];for(let a=0;a<4;a+=1)s[a]=ir(rr(e,o,a));let u=Ce(e[6]),l=[];for(let a=0;a<u.length;a+=1)l[a]=ar(tr(e,u,a));return{c(){t=U("table"),n=U("thead"),r=U("tr");for(let a=0;a<4;a+=1)s[a].c();i=me();for(let a=0;a<l.length;a+=1)l[a].c()},m(a,c){Y(a,t,c),L(t,n),L(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);L(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(a,c){if(c[0]&128){o=Ce([a[7]("name"),a[7]("rank"),a[7]("enddate"),a[7]("prize")]);let f;for(f=0;f<4;f+=1){const d=rr(a,o,f);s[f]?s[f].p(d,c):(s[f]=ir(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&64){u=Ce(a[6]);let f;for(f=0;f<u.length;f+=1){const d=tr(a,u,f);l[f]?l[f].p(d,c):(l[f]=ar(d),l[f].c(),l[f].m(t,null))}for(;f<l.length;f+=1)l[f].d(1);l.length=u.length}},d(a){a&&V(t),It(s,a),It(l,a)}}}function ir(e){let t,n=e[32]+"",r;return{c(){t=U("th"),r=Ie(n)},m(i,o){Y(i,t,o),L(t,r)},p(i,o){o[0]&128&&n!==(n=i[32]+"")&&He(r,n)},d(i){i&&V(t)}}}function or(e){let t,n=e[32].title+"",r,i,o,s=(e[32].rank||" -")+"",u,l,a,c,f,d=(e[32].prize||" -")+"",E,T,B;function k(){return e[21](e[32])}let G=Ce(Nn(e[32].enddate)),_=[];for(let v=0;v<G.length;v+=1)_[v]=sr(nr(e,G,v));return{c(){t=U("td"),r=Ie(n),i=me(),o=U("td"),u=Ie(s),l=me(),a=U("td");for(let v=0;v<_.length;v+=1)_[v].c();c=me(),f=U("td"),E=Ie(d),I(t,"class","Title"),I(t,"part","Title"),I(o,"class","Rank"),gt(o,"active",e[32].prize),I(a,"class","EndDate"),I(a,"part","EndDate"),I(a,"nowrap",""),I(f,"class","Prize"),gt(f,"active",e[32].prize)},m(v,x){Y(v,t,x),L(t,r),Y(v,i,x),Y(v,o,x),L(o,u),Y(v,l,x),Y(v,a,x);for(let C=0;C<_.length;C+=1)_[C]&&_[C].m(a,null);Y(v,c,x),Y(v,f,x),L(f,E),T||(B=et(t,"click",k),T=!0)},p(v,x){if(e=v,x[0]&64&&n!==(n=e[32].title+"")&&He(r,n),x[0]&64&&s!==(s=(e[32].rank||" -")+"")&&He(u,s),x[0]&64&&gt(o,"active",e[32].prize),x[0]&64){G=Ce(Nn(e[32].enddate));let C;for(C=0;C<G.length;C+=1){const $=nr(e,G,C);_[C]?_[C].p($,x):(_[C]=sr($),_[C].c(),_[C].m(a,null))}for(;C<_.length;C+=1)_[C].d(1);_.length=G.length}x[0]&64&&d!==(d=(e[32].prize||" -")+"")&&He(E,d),x[0]&64&&gt(f,"active",e[32].prize)},d(v){v&&(V(t),V(i),V(o),V(l),V(a),V(c),V(f)),It(_,v),T=!1,B()}}}function sr(e){let t,n=e[35]+"",r;return{c(){t=U("p"),r=Ie(n)},m(i,o){Y(i,t,o),L(t,r)},p(i,o){o[0]&64&&n!==(n=i[35]+"")&&He(r,n)},d(i){i&&V(t)}}}function ar(e){let t,n,r,i=e[32]&&or(e);return{c(){t=U("tbody"),n=U("tr"),i&&i.c(),r=me()},m(o,s){Y(o,t,s),L(t,n),i&&i.m(n,null),L(t,r)},p(o,s){o[32]?i?i.p(o,s):(i=or(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&V(t),i&&i.d()}}}function Ys(e){let t,n,r,i,o,s,u,l,a,c,f,d,E=e[7]("myTournaments")+"",T,B,k,G,_,v,x=e[8]&&Js(e);function C(N,te){return N[5]?Vs:Xs}let $=C(e),Z=$(e);return{c(){t=U("div"),n=U("div"),r=U("div"),i=Me("svg"),o=Me("rect"),s=Me("defs"),u=Me("pattern"),l=Me("use"),x&&x.c(),f=me(),d=U("div"),T=Ie(E),B=me(),k=U("div"),k.textContent="X",G=me(),Z.c(),I(o,"width",e[4]),I(o,"height",e[4]),I(o,"fill","url(#pattern0)"),hr(l,"xlink:href","#image0_2606_356"),I(l,"transform","scale(0.00195312)"),I(u,"id","pattern0"),I(u,"patternContentUnits","objectBoundingBox"),I(u,"width","1"),I(u,"height","1"),I(i,"width",e[4]),I(i,"height",e[4]),I(i,"viewBox",a=`0 0 ${e[4]} ${e[4]}`),I(i,"fill","none"),I(i,"xmlns","http://www.w3.org/2000/svg"),I(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),I(r,"class","svg"),Tt(()=>e[19].call(r)),I(d,"class","text"),I(k,"class","CloseButton"),I(k,"part","CloseButton"),I(n,"class","top-wrapper"),I(t,"class","Root"),I(t,"part","Root")},m(N,te){Y(N,t,te),L(t,n),L(n,r),L(r,i),L(i,o),L(i,s),L(s,u),L(u,l),x&&x.m(s,null),c=ci(r,e[19].bind(r)),L(n,f),L(n,d),L(d,T),L(n,B),L(n,k),L(t,G),Z.m(t,null),e[22](t),_||(v=et(k,"click",e[20]),_=!0)},p(N,te){te[0]&16&&I(o,"width",N[4]),te[0]&16&&I(o,"height",N[4]),N[8]&&x.p(N,te),te[0]&16&&I(i,"width",N[4]),te[0]&16&&I(i,"height",N[4]),te[0]&16&&a!==(a=`0 0 ${N[4]} ${N[4]}`)&&I(i,"viewBox",a),te[0]&128&&E!==(E=N[7]("myTournaments")+"")&&He(T,E),$===($=C(N))&&Z?Z.p(N,te):(Z.d(1),Z=$(N),Z&&(Z.c(),Z.m(t,null)))},i:K,o:K,d(N){N&&V(t),x&&x.d(),c(),Z.d(),e[22](null),_=!1,v()}}}function qs(e,t,n){let r,i,o,s,u;ai(e,_s,A=>n(7,u=A));let{endpoint:l=""}=t,{lang:a="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:E=""}=t,{clientstyling:T=""}=t,{clientstylingurl:B=""}=t,{translationurl:k=""}=t,{mbsource:G}=t;Xr({withLocale:"en",translations:{}});const _=()=>{fetch(k).then(P=>P.json()).then(P=>{Object.keys(P).forEach(j=>{vn(j,P[j])}),Te()}).catch(P=>{console.error(P)})};Object.keys(Rt).forEach(A=>{vn(A,Rt[A])});let v,x,C=0,$=Bi,Z=!0,N={};const te=A=>{let P={};i.map(j=>{P[j]||(P[j]=[])}),A.items.map(j=>{const{id:J,nameOrTitle:We,endTime:ut}=j.tournament,kt={id:J,title:We,rank:j.leaderBoard&&`#${j.leaderBoard.rank}/${j.endRank}`,enddate:ut,prize:j.leaderBoard&&j.leaderBoard.prizeName};P[er(j.tournament.state)].push(kt)}),n(16,N=P)},ye=Qs({PlayerLeaderBoardsUpdate:A=>{te(A),o.map(P=>{ks(P,N[P].length)})},TournamentUpdate:A=>{if(A.item){const P=A.item;let j=er(P.state);n(16,N=dt(ct({},N),{[j]:N[j].map(J=>J.id===P.id?dt(ct({},J),{title:P.nameOrTitle,enddate:P.endTime}):J)}))}}}),st=(A,P)=>pt(this,null,function*(){const j=`${l}/v1/tournaments`,J=new URL(j);J.searchParams.append("pagination",`offset=${A},limit=${P}`),J.searchParams.append("sortField","StartTime"),J.searchParams.append("sortOrder","desc"),J.searchParams.append("language",a),J.searchParams.append("XSessionId",c),E&&J.searchParams.append("filter",E),x=js(x,Gs(`${j}/leaderboard/player/updates?${J.searchParams.toString()}`),ye)});Ls();const we=()=>{st(0,30),Ds(a),Te()},Te=()=>{setTimeout(()=>{const A=P=>u(`${P}`);$t("Scheduled",A("scheduled")),$t("Ongoing",A("ongoing")),$t("Finished",`${A("finished")} (${A("last")} 48h)`)},1)};yn(()=>()=>{x&&x.removeEventListener("message",ye)}),Fs({TournamentsTabSwitch:A=>pt(this,null,function*(){return n(17,r=A.tab)})});function Ve(){C=this.clientWidth,n(4,C)}const at=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),Ze=A=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:A.id,showLeaderboard:!0},window.location.href)};function de(A){Bt[A?"unshift":"push"](()=>{v=A,n(3,v)})}return e.$$set=A=>{"endpoint"in A&&n(9,l=A.endpoint),"lang"in A&&n(10,a=A.lang),"session"in A&&n(11,c=A.session),"state"in A&&n(0,f=A.state),"states"in A&&n(1,d=A.states),"filter"in A&&n(12,E=A.filter),"clientstyling"in A&&n(13,T=A.clientstyling),"clientstylingurl"in A&&n(14,B=A.clientstylingurl),"translationurl"in A&&n(15,k=A.translationurl),"mbsource"in A&&n(2,G=A.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(17,r=f),e.$$.dirty[0]&2&&n(18,i=d.split(",")),e.$$.dirty[0]&262144&&(o=i.filter(A=>A!=="Finished")),e.$$.dirty[0]&196608&&n(6,s=N[r]),e.$$.dirty[0]&7680&&l&&E&&a&&c&&we(),e.$$.dirty[0]&8200&&T&&v&&cr(v,T),e.$$.dirty[0]&16392&&B&&v&&dr(v,B),e.$$.dirty[0]&12&&G&&v&&pr(v,`${G}.Style`),e.$$.dirty[0]&32768&&k&&_(),e.$$.dirty[0]&1024&&a&&Te(),e.$$.dirty[0]&65536&&Object.keys(N).length&&(n(5,Z=!1),Te())},[f,d,G,v,C,Z,s,u,$,l,a,c,E,T,B,k,N,r,i,Ve,at,Ze,de]}class Zr extends In{constructor(t){super(),wn(this,t,qs,Ys,Ot,{endpoint:9,lang:10,session:11,state:0,states:1,filter:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:2},zs,[-1,-1])}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),le()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),le()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),le()}get state(){return this.$$.ctx[0]}set state(t){this.$$set({state:t}),le()}get states(){return this.$$.ctx[1]}set states(t){this.$$set({states:t}),le()}get filter(){return this.$$.ctx[12]}set filter(t){this.$$set({filter:t}),le()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),le()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),le()}}xn(Zr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=Ks;exports.SvelteComponent=In;exports.append=L;exports.append_styles=En;exports.attr=I;exports.binding_callbacks=Bt;exports.create_custom_element=xn;exports.destroy_each=It;exports.detach=V;exports.element=U;exports.ensure_array_like=Ce;exports.flush=le;exports.init=wn;exports.insert=Y;exports.isMobile=Jr;exports.listen=et;exports.noop=K;exports.onMount=yn;exports.safe_not_equal=Ot;exports.setClientStyling=cr;exports.setClientStylingURL=dr;exports.setStreamStyling=pr;exports.set_data=He;exports.space=me;exports.text=Ie;
26
+ `,_e+=be):Ae==="id"?lt=be:Ae==="event"?ve=be:Ae==="retry"?(b=Ut(be,b),R=b):Ae==="heartbeatTimeout"&&(S=Ut(be,S),ne!==0&&(i(ne),ne=r(function(){qe()},S)))}if(re===J){if(_e!==""){Q=lt,ve===""&&(ve="message");var Ne=new Te(ve,{data:_e.slice(1),lastEventId:lt});if(h.dispatchEvent(Ne),ve==="open"?Oe(h,h.onopen,Ne):ve==="message"?Oe(h,h.onmessage,Ne):ve==="error"&&Oe(h,h.onerror,Ne),ce===P)return}_e="",ve=""}re=ue===13?j:J}else re===J&&(Gt=ee,re=We),re===We?ue===58&&(Se=ee+1,re=ut):re===ut&&(re=kt)}}},Cn=function(q){if(ce===A||ce===de){ce=Ze,ne!==0&&(i(ne),ne=0),ne=r(function(){qe()},R),R=Ft(Math.min(b*16,R*2)),h.readyState=de;var W=new at("error",{error:q});h.dispatchEvent(W),Oe(h,h.onerror,W),q!=null&&console.error(q)}},jt=function(){ce=P,se!=null&&(se.abort(),se=void 0),ne!==0&&(i(ne),ne=0),h.readyState=P},qe=function(){if(ne=0,ce!==Ze){if(!D&&se!=null)Cn(new Error("No activity within "+S+" milliseconds. "+(ce===de?"No response received.":M+" chars received.")+" Reconnecting.")),se!=null&&(se.abort(),se=void 0);else{var q=Math.max((D||Date.now())+S-Date.now(),1);D=!1,ne=r(function(){qe()},q)}return}D=!1,M=0,ne=r(function(){qe()},S),ce=de,_e="",ve="",lt=Q,ht="",Gt=0,Se=0,re=J;var W=m;if(m.slice(0,5)!=="data:"&&m.slice(0,5)!=="blob:"&&Q!==""){var ae=m.indexOf("?");W=ae===-1?m:m.slice(0,ae+1)+m.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(be,Ne){return Ne===y?"":be}),W+=(m.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(Q)}var ue=h.withCredentials,ie={};ie.Accept="text/event-stream";var ee=h.headers;if(ee!=null)for(var Ae in ee)Object.prototype.hasOwnProperty.call(ee,Ae)&&(ie[Ae]=ee[Ae]);try{se=Ye.open(ge,ti,ni,Cn,W,ue,ie)}catch(be){throw jt(),be}};h.url=m,h.readyState=de,h.withCredentials=p,h.headers=w,h._close=jt,qe()}fe.prototype=Object.create(ye.prototype),fe.prototype.CONNECTING=de,fe.prototype.OPEN=A,fe.prototype.CLOSED=P,fe.prototype.close=function(){this._close()},fe.CONNECTING=de,fe.OPEN=A,fe.CLOSED=P,fe.prototype.withCredentials=void 0;var Sn=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Sn=fe),function(h){{var m=h(t);m!==void 0&&(e.exports=m)}}(function(h){h.EventSourcePolyfill=fe,h.NativeEventSource=l,h.EventSource=Sn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:zi:globalThis)})(An,An.exports);var Ms=An.exports;const Vr=e=>window.postMessage(e,window.location.href),ks=(e,t)=>{Vr({type:"TournamentsTabTotalUpdate",state:e,total:t})},$t=(e,t)=>{Vr({type:"TournamentsTabLocaleTextUpdate",state:e,text:t})},Us=e=>n=>{Object.keys(e).map(r=>{if(n.data&&n.data.type==r){const i=n.data,{type:o}=i,s=zt(i,["type"]);e[r](s)}})},Fs=e=>{const t=Us(e);yn(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},Gs=(e,t=null)=>{let n={accept:"text/event-stream"};return t&&(n["X-SessionID"]=t),new Ms.EventSourcePolyfill(e,{headers:n})},js=(e,t,n)=>{e&&(e.removeEventListener("message",n),e.close());let r=t;return typeof r!="undefined"&&r.addEventListener("message",n),r},Qs=e=>n=>{let r=n.data;if(r)try{let i=JSON.parse(r);if(!i)return;Object.keys(e).map(o=>{if(i.messageType==o){const s=i,{messageType:u}=s,l=zt(s,["messageType"]);console.log(u,l),e[o](l)}})}catch(i){console.error(i)}};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-_73am-oE.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}function zs(e){En(e,"svelte-1l19mel",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CloseButton{position:absolute;right:1.5625vw;font-size:3.4375vw;color:#FFFFFF;cursor:pointer}.NoContent{padding:120px}.Root{background:#282828}.Root .top-wrapper{padding:1.875vw;display:flex;background:#333333}.Root .top-wrapper .svg{width:10.9375vw;height:10.9375vw}.Root .top-wrapper .text{color:white;font-size:5vw;padding-left:3.125vw;font-weight:bold;line-height:5.9375vw;padding-top:2.1875vw}.Root section{padding:0 3.75vw}table{width:100%;border-collapse:collapse;font-size:3.75vw;line-height:4.375vw;@import url("https://rsms.me/inter/inter.css");}table div{font:initial;font-family:"Inter", sans-serif}@supports (font-variation-settings: normal){table div{font:initial;font-family:"Inter var", sans-serif}}table thead{background:#1C1C1C;color:#F7F7F7}table th,table td{padding:2.5vw 1.5625vw;overflow-wrap:break-word}table td{color:#B5B5B5}.Title{color:#FF8364;text-decoration-line:underline;word-break:break-word}.Title:active{opacity:0.6}.Prize .Rank:active{color:#FFD700}.Loading{display:flex;justify-content:center;padding:9.375vw}')}function tr(e,t,n){const r=e.slice();return r[32]=t[n],r[34]=n,r}function nr(e,t,n){const r=e.slice();return r[35]=t[n],r}function rr(e,t,n){const r=e.slice();return r[32]=t[n],r}function Js(e){let t;return{c(){t=Me("image"),I(t,"id","image0_2606_356"),I(t,"width","512"),I(t,"height","512"),hr(t,"xlink:href",e[8])},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Xs(e){let t,n,r;function i(u,l){return u[6]?Ws:Zs}let o=i(e),s=o(e);return{c(){t=U("section"),n=U("casino-tournaments-tab"),r=me(),s.c(),Pe(n,"tabs",e[1]),Pe(n,"tab",e[0]),Pe(n,"mbsource",e[2])},m(u,l){Y(u,t,l),L(t,n),L(t,r),s.m(t,null)},p(u,l){l[0]&2&&Pe(n,"tabs",u[1]),l[0]&1&&Pe(n,"tab",u[0]),l[0]&4&&Pe(n,"mbsource",u[2]),o===(o=i(u))&&s?s.p(u,l):(s.d(1),s=o(u),s&&(s.c(),s.m(t,null)))},d(u){u&&V(t),s.d()}}}function Vs(e){let t;return{c(){t=U("div"),t.innerHTML="<casino-tournaments-limited-controller-loader></casino-tournaments-limited-controller-loader>",I(t,"class","Loading")},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Zs(e){let t;return{c(){t=U("div"),I(t,"class","NoContent")},m(n,r){Y(n,t,r)},p:K,d(n){n&&V(t)}}}function Ws(e){let t,n,r,i,o=Ce([e[7]("name"),e[7]("rank"),e[7]("enddate"),e[7]("prize")]),s=[];for(let a=0;a<4;a+=1)s[a]=ir(rr(e,o,a));let u=Ce(e[6]),l=[];for(let a=0;a<u.length;a+=1)l[a]=ar(tr(e,u,a));return{c(){t=U("table"),n=U("thead"),r=U("tr");for(let a=0;a<4;a+=1)s[a].c();i=me();for(let a=0;a<l.length;a+=1)l[a].c()},m(a,c){Y(a,t,c),L(t,n),L(n,r);for(let f=0;f<4;f+=1)s[f]&&s[f].m(r,null);L(t,i);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null)},p(a,c){if(c[0]&128){o=Ce([a[7]("name"),a[7]("rank"),a[7]("enddate"),a[7]("prize")]);let f;for(f=0;f<4;f+=1){const d=rr(a,o,f);s[f]?s[f].p(d,c):(s[f]=ir(d),s[f].c(),s[f].m(r,null))}for(;f<4;f+=1)s[f].d(1)}if(c[0]&64){u=Ce(a[6]);let f;for(f=0;f<u.length;f+=1){const d=tr(a,u,f);l[f]?l[f].p(d,c):(l[f]=ar(d),l[f].c(),l[f].m(t,null))}for(;f<l.length;f+=1)l[f].d(1);l.length=u.length}},d(a){a&&V(t),It(s,a),It(l,a)}}}function ir(e){let t,n=e[32]+"",r;return{c(){t=U("th"),r=Ie(n)},m(i,o){Y(i,t,o),L(t,r)},p(i,o){o[0]&128&&n!==(n=i[32]+"")&&He(r,n)},d(i){i&&V(t)}}}function or(e){let t,n=e[32].title+"",r,i,o,s=(e[32].rank||" -")+"",u,l,a,c,f,d=(e[32].prize||" -")+"",E,T,B;function k(){return e[21](e[32])}let G=Ce(Nn(e[32].enddate)),_=[];for(let v=0;v<G.length;v+=1)_[v]=sr(nr(e,G,v));return{c(){t=U("td"),r=Ie(n),i=me(),o=U("td"),u=Ie(s),l=me(),a=U("td");for(let v=0;v<_.length;v+=1)_[v].c();c=me(),f=U("td"),E=Ie(d),I(t,"class","Title"),I(t,"part","Title"),I(o,"class","Rank"),gt(o,"active",e[32].prize),I(a,"class","EndDate"),I(a,"part","EndDate"),I(a,"nowrap",""),I(f,"class","Prize"),gt(f,"active",e[32].prize)},m(v,x){Y(v,t,x),L(t,r),Y(v,i,x),Y(v,o,x),L(o,u),Y(v,l,x),Y(v,a,x);for(let C=0;C<_.length;C+=1)_[C]&&_[C].m(a,null);Y(v,c,x),Y(v,f,x),L(f,E),T||(B=et(t,"click",k),T=!0)},p(v,x){if(e=v,x[0]&64&&n!==(n=e[32].title+"")&&He(r,n),x[0]&64&&s!==(s=(e[32].rank||" -")+"")&&He(u,s),x[0]&64&&gt(o,"active",e[32].prize),x[0]&64){G=Ce(Nn(e[32].enddate));let C;for(C=0;C<G.length;C+=1){const $=nr(e,G,C);_[C]?_[C].p($,x):(_[C]=sr($),_[C].c(),_[C].m(a,null))}for(;C<_.length;C+=1)_[C].d(1);_.length=G.length}x[0]&64&&d!==(d=(e[32].prize||" -")+"")&&He(E,d),x[0]&64&&gt(f,"active",e[32].prize)},d(v){v&&(V(t),V(i),V(o),V(l),V(a),V(c),V(f)),It(_,v),T=!1,B()}}}function sr(e){let t,n=e[35]+"",r;return{c(){t=U("p"),r=Ie(n)},m(i,o){Y(i,t,o),L(t,r)},p(i,o){o[0]&64&&n!==(n=i[35]+"")&&He(r,n)},d(i){i&&V(t)}}}function ar(e){let t,n,r,i=e[32]&&or(e);return{c(){t=U("tbody"),n=U("tr"),i&&i.c(),r=me()},m(o,s){Y(o,t,s),L(t,n),i&&i.m(n,null),L(t,r)},p(o,s){o[32]?i?i.p(o,s):(i=or(o),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},d(o){o&&V(t),i&&i.d()}}}function Ys(e){let t,n,r,i,o,s,u,l,a,c,f,d,E=e[7]("myTournaments")+"",T,B,k,G,_,v,x=e[8]&&Js(e);function C(N,te){return N[5]?Vs:Xs}let $=C(e),Z=$(e);return{c(){t=U("div"),n=U("div"),r=U("div"),i=Me("svg"),o=Me("rect"),s=Me("defs"),u=Me("pattern"),l=Me("use"),x&&x.c(),f=me(),d=U("div"),T=Ie(E),B=me(),k=U("div"),k.textContent="X",G=me(),Z.c(),I(o,"width",e[4]),I(o,"height",e[4]),I(o,"fill","url(#pattern0)"),hr(l,"xlink:href","#image0_2606_356"),I(l,"transform","scale(0.00195312)"),I(u,"id","pattern0"),I(u,"patternContentUnits","objectBoundingBox"),I(u,"width","1"),I(u,"height","1"),I(i,"width",e[4]),I(i,"height",e[4]),I(i,"viewBox",a=`0 0 ${e[4]} ${e[4]}`),I(i,"fill","none"),I(i,"xmlns","http://www.w3.org/2000/svg"),I(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),I(r,"class","svg"),Tt(()=>e[19].call(r)),I(d,"class","text"),I(k,"class","CloseButton"),I(k,"part","CloseButton"),I(n,"class","top-wrapper"),I(t,"class","Root"),I(t,"part","Root")},m(N,te){Y(N,t,te),L(t,n),L(n,r),L(r,i),L(i,o),L(i,s),L(s,u),L(u,l),x&&x.m(s,null),c=ci(r,e[19].bind(r)),L(n,f),L(n,d),L(d,T),L(n,B),L(n,k),L(t,G),Z.m(t,null),e[22](t),_||(v=et(k,"click",e[20]),_=!0)},p(N,te){te[0]&16&&I(o,"width",N[4]),te[0]&16&&I(o,"height",N[4]),N[8]&&x.p(N,te),te[0]&16&&I(i,"width",N[4]),te[0]&16&&I(i,"height",N[4]),te[0]&16&&a!==(a=`0 0 ${N[4]} ${N[4]}`)&&I(i,"viewBox",a),te[0]&128&&E!==(E=N[7]("myTournaments")+"")&&He(T,E),$===($=C(N))&&Z?Z.p(N,te):(Z.d(1),Z=$(N),Z&&(Z.c(),Z.m(t,null)))},i:K,o:K,d(N){N&&V(t),x&&x.d(),c(),Z.d(),e[22](null),_=!1,v()}}}function qs(e,t,n){let r,i,o,s,u;ai(e,_s,A=>n(7,u=A));let{endpoint:l=""}=t,{lang:a="en"}=t,{session:c=""}=t,{state:f=void 0}=t,{states:d="Scheduled,Ongoing,Finished"}=t,{filter:E=""}=t,{clientstyling:T=""}=t,{clientstylingurl:B=""}=t,{translationurl:k=""}=t,{mbsource:G}=t;Xr({withLocale:"en",translations:{}});const _=()=>{fetch(k).then(P=>P.json()).then(P=>{Object.keys(P).forEach(j=>{vn(j,P[j])}),Te()}).catch(P=>{console.error(P)})};Object.keys(Rt).forEach(A=>{vn(A,Rt[A])});let v,x,C=0,$=Bi,Z=!0,N={};const te=A=>{let P={};i.map(j=>{P[j]||(P[j]=[])}),A.items.map(j=>{const{id:J,nameOrTitle:We,endTime:ut}=j.tournament,kt={id:J,title:We,rank:j.leaderBoard&&`#${j.leaderBoard.rank}/${j.endRank}`,enddate:ut,prize:j.leaderBoard&&j.leaderBoard.prizeName};P[er(j.tournament.state)].push(kt)}),n(16,N=P)},ye=Qs({PlayerLeaderBoardsUpdate:A=>{te(A),o.map(P=>{ks(P,N[P].length)})},TournamentUpdate:A=>{if(A.item){const P=A.item;let j=er(P.state);n(16,N=dt(ct({},N),{[j]:N[j].map(J=>J.id===P.id?dt(ct({},J),{title:P.nameOrTitle,enddate:P.endTime}):J)}))}}}),st=(A,P)=>pt(this,null,function*(){const j=`${l}/v1/tournaments`,J=new URL(j);J.searchParams.append("pagination",`offset=${A},limit=${P}`),J.searchParams.append("sortField","StartTime"),J.searchParams.append("sortOrder","desc"),J.searchParams.append("language",a),J.searchParams.append("XSessionId",c),E&&J.searchParams.append("filter",E),x=js(x,Gs(`${j}/leaderboard/player/updates?${J.searchParams.toString()}`),ye)});Ls();const we=()=>{st(0,30),Ds(a),Te()},Te=()=>{setTimeout(()=>{const A=P=>u(`${P}`);$t("Scheduled",A("scheduled")),$t("Ongoing",A("ongoing")),$t("Finished",`${A("finished")} (${A("last")} 48h)`)},1)};yn(()=>()=>{x&&x.removeEventListener("message",ye)}),Fs({TournamentsTabSwitch:A=>pt(this,null,function*(){return n(17,r=A.tab)})});function Ve(){C=this.clientWidth,n(4,C)}const at=()=>window.postMessage({type:"OnCloseThumbnail"},window.location.href),Ze=A=>{window.postMessage({type:"MyTournamentFromNavClicked",tournamentId:A.id,showLeaderboard:!0},window.location.href)};function de(A){Bt[A?"unshift":"push"](()=>{v=A,n(3,v)})}return e.$$set=A=>{"endpoint"in A&&n(9,l=A.endpoint),"lang"in A&&n(10,a=A.lang),"session"in A&&n(11,c=A.session),"state"in A&&n(0,f=A.state),"states"in A&&n(1,d=A.states),"filter"in A&&n(12,E=A.filter),"clientstyling"in A&&n(13,T=A.clientstyling),"clientstylingurl"in A&&n(14,B=A.clientstylingurl),"translationurl"in A&&n(15,k=A.translationurl),"mbsource"in A&&n(2,G=A.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&1&&n(17,r=f),e.$$.dirty[0]&2&&n(18,i=d.split(",")),e.$$.dirty[0]&262144&&(o=i.filter(A=>A!=="Finished")),e.$$.dirty[0]&196608&&n(6,s=N[r]),e.$$.dirty[0]&7680&&l&&E&&a&&c&&we(),e.$$.dirty[0]&8200&&T&&v&&cr(v,T),e.$$.dirty[0]&16392&&B&&v&&dr(v,B),e.$$.dirty[0]&12&&G&&v&&pr(v,`${G}.Style`),e.$$.dirty[0]&32768&&k&&_(),e.$$.dirty[0]&1024&&a&&Te(),e.$$.dirty[0]&65536&&Object.keys(N).length&&(n(5,Z=!1),Te())},[f,d,G,v,C,Z,s,u,$,l,a,c,E,T,B,k,N,r,i,Ve,at,Ze,de]}class Zr extends In{constructor(t){super(),wn(this,t,qs,Ys,Ot,{endpoint:9,lang:10,session:11,state:0,states:1,filter:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:2},zs,[-1,-1])}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),le()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),le()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),le()}get state(){return this.$$.ctx[0]}set state(t){this.$$set({state:t}),le()}get states(){return this.$$.ctx[1]}set states(t){this.$$set({states:t}),le()}get filter(){return this.$$.ctx[12]}set filter(t){this.$$set({filter:t}),le()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),le()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),le()}}xn(Zr,{endpoint:{},lang:{},session:{},state:{},states:{},filter:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsLimitedController_ce=Ks;exports.SvelteComponent=In;exports.append=L;exports.append_styles=En;exports.attr=I;exports.binding_callbacks=Bt;exports.create_custom_element=xn;exports.destroy_each=It;exports.detach=V;exports.element=U;exports.ensure_array_like=Ce;exports.flush=le;exports.init=wn;exports.insert=Y;exports.isMobile=Jr;exports.listen=et;exports.noop=K;exports.onMount=yn;exports.safe_not_equal=Ot;exports.setClientStyling=cr;exports.setClientStylingURL=dr;exports.setStreamStyling=pr;exports.set_data=He;exports.space=me;exports.text=Ie;
@@ -1,25 +1,25 @@
1
- import { o as D, S as E, i as H, f as h, s as U, c as I, a as O, n as k, d as y, b as v, e as w, g as b, h as B, j as F, k as G, l as J, m as j, p, q as K, t as q, r as z, u as N, v as P, w as Q } from "./CasinoTournamentsLimitedController-DKsBp06t.js";
2
- const V = (e) => (n) => {
1
+ import { o as D, S as A, i as E, f as h, s as H, c as I, a as O, n as k, d as v, b as T, e as w, g as b, h as x, j as F, k as B, l as G, m as j, p, q as J, t as q, r as z, u as K, v as N, w as P } from "./CasinoTournamentsLimitedController-DoFVV-ql.js";
2
+ const Q = (e) => (n) => {
3
3
  Object.keys(e).map((i) => {
4
4
  if (n.data && n.data.type == i) {
5
5
  const { type: s, ...r } = n.data;
6
6
  e[i](r);
7
7
  }
8
8
  });
9
- }, W = (e) => {
10
- const t = V(e);
9
+ }, V = (e) => {
10
+ const t = Q(e);
11
11
  D(() => (window.addEventListener("message", t, !1), () => {
12
12
  window.removeEventListener("message", t);
13
13
  }));
14
14
  };
15
- function X(e) {
15
+ function W(e) {
16
16
  O(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
17
17
  }
18
18
  function S(e, t, n) {
19
19
  const i = e.slice();
20
20
  return i[16] = t[n], i;
21
21
  }
22
- function C(e) {
22
+ function L(e) {
23
23
  let t, n = F(
24
24
  /*__tabs*/
25
25
  e[6]
@@ -34,7 +34,7 @@ function C(e) {
34
34
  b(t, "part", "ul");
35
35
  },
36
36
  m(s, r) {
37
- v(s, t, r);
37
+ T(s, t, r);
38
38
  for (let a = 0; a < i.length; a += 1)
39
39
  i[a] && i[a].m(t, null);
40
40
  },
@@ -56,11 +56,11 @@ function C(e) {
56
56
  }
57
57
  },
58
58
  d(s) {
59
- s && y(t), G(i, s);
59
+ s && v(t), B(i, s);
60
60
  }
61
61
  };
62
62
  }
63
- function L(e) {
63
+ function C(e) {
64
64
  let t, n, i = (
65
65
  /*totalReceiver*/
66
66
  e[3][
@@ -73,7 +73,7 @@ function L(e) {
73
73
  t = w("sup"), n = w("span"), s = q(i), b(n, "part", "SupText"), b(t, "part", "sup");
74
74
  },
75
75
  m(r, a) {
76
- v(r, t, a), p(t, n), p(n, s);
76
+ T(r, t, a), p(t, n), p(n, s);
77
77
  },
78
78
  p(r, a) {
79
79
  a & /*totalReceiver, __tabs*/
@@ -84,7 +84,7 @@ function L(e) {
84
84
  ] + "") && j(s, i);
85
85
  },
86
86
  d(r) {
87
- r && y(t);
87
+ r && v(t);
88
88
  }
89
89
  };
90
90
  }
@@ -95,12 +95,12 @@ function M(e) {
95
95
  /*_tab*/
96
96
  e[16]
97
97
  ] + ""
98
- ), s, r, a, u, f, d, m, l = (
98
+ ), s, r, a, u, f, d, m, o = (
99
99
  /*totalReceiver*/
100
100
  e[3][
101
101
  /*_tab*/
102
102
  e[16]
103
- ] >= 0 && L(e)
103
+ ] >= 0 && C(e)
104
104
  );
105
105
  function _() {
106
106
  return (
@@ -113,7 +113,7 @@ function M(e) {
113
113
  }
114
114
  return {
115
115
  c() {
116
- t = w("li"), n = w("span"), s = q(i), r = z(), l && l.c(), a = z(), b(n, "part", "LiText"), b(t, "class", u = /*__tab*/
116
+ t = w("li"), n = w("span"), s = q(i), r = z(), o && o.c(), a = z(), b(n, "part", "LiText"), b(t, "class", u = /*__tab*/
117
117
  e[5] === /*_tab*/
118
118
  e[16] ? "active" : ""), b(t, "part", f = `${/*_tab*/
119
119
  e[16]} li ` + /*__tab*/
@@ -121,7 +121,7 @@ function M(e) {
121
121
  e[16] ? "active" : ""));
122
122
  },
123
123
  m(g, c) {
124
- v(g, t, c), p(t, n), p(n, s), p(t, r), l && l.m(t, null), p(t, a), d || (m = K(t, "click", _), d = !0);
124
+ T(g, t, c), p(t, n), p(n, s), p(t, r), o && o.m(t, null), p(t, a), d || (m = J(t, "click", _), d = !0);
125
125
  },
126
126
  p(g, c) {
127
127
  e = g, c & /*textReceiver, __tabs*/
@@ -133,7 +133,7 @@ function M(e) {
133
133
  e[3][
134
134
  /*_tab*/
135
135
  e[16]
136
- ] >= 0 ? l ? l.p(e, c) : (l = L(e), l.c(), l.m(t, a)) : l && (l.d(1), l = null), c & /*__tab, __tabs*/
136
+ ] >= 0 ? o ? o.p(e, c) : (o = C(e), o.c(), o.m(t, a)) : o && (o.d(1), o = null), c & /*__tab, __tabs*/
137
137
  96 && u !== (u = /*__tab*/
138
138
  e[5] === /*_tab*/
139
139
  e[16] ? "active" : "") && b(t, "class", u), c & /*__tabs, __tab*/
@@ -143,52 +143,55 @@ function M(e) {
143
143
  e[16] ? "active" : "")) && b(t, "part", f);
144
144
  },
145
145
  d(g) {
146
- g && y(t), l && l.d(), d = !1, m();
146
+ g && v(t), o && o.d(), d = !1, m();
147
147
  }
148
148
  };
149
149
  }
150
- function Y(e) {
150
+ function X(e) {
151
151
  let t, n = (
152
152
  /*isTitleInited*/
153
- e[2] && C(e)
153
+ e[2] && L(e)
154
154
  );
155
155
  return {
156
156
  c() {
157
- t = w("div"), n && n.c(), b(t, "class", "casino-tournaments-tab " + (B(
157
+ t = w("div"), n && n.c(), b(t, "class", "casino-tournaments-tab " + (x(
158
158
  /*userAgent*/
159
159
  e[7]
160
160
  ) ? "TabMobile" : "TabDesktop")), b(t, "part", "CustomStylingContainer");
161
161
  },
162
162
  m(i, s) {
163
- v(i, t, s), n && n.m(t, null), e[14](t);
163
+ T(i, t, s), n && n.m(t, null), e[14](t);
164
164
  },
165
165
  p(i, [s]) {
166
166
  /*isTitleInited*/
167
- i[2] ? n ? n.p(i, s) : (n = C(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
167
+ i[2] ? n ? n.p(i, s) : (n = L(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
168
168
  },
169
169
  i: k,
170
170
  o: k,
171
171
  d(i) {
172
- i && y(t), n && n.d(), e[14](null);
172
+ i && v(t), n && n.d(), e[14](null);
173
173
  }
174
174
  };
175
175
  }
176
- function Z(e, t, n) {
177
- let i, s, { tabs: r = "" } = t, { tab: a = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: d } = t, { tid: m = "pageTab" } = t, l, _ = !1;
176
+ function Y(e, t, n) {
177
+ let i, s, { tabs: r = "" } = t, { tab: a = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: d } = t, { tid: m = "pageTab" } = t, o, _ = !1;
178
178
  const g = window.navigator.userAgent;
179
- let c = {}, T = {};
180
- W({
181
- TournamentsTabTotalUpdate: (o) => {
179
+ let c = {}, y = {};
180
+ V({
181
+ TournamentsTabTotalUpdate: (l) => {
182
182
  n(3, c = {
183
183
  ...c,
184
- [o.state]: o.total
184
+ [l.state]: l.total
185
185
  });
186
186
  },
187
- TournamentsTabsLocalize: (o) => {
188
- n(2, _ = !0), n(4, T = {
189
- ...T,
190
- ...o.tabTitleTranslations
187
+ TournamentsTabsLocalize: (l) => {
188
+ n(2, _ = !0), n(4, y = {
189
+ ...y,
190
+ ...l.tabTitleTranslations
191
191
  });
192
+ },
193
+ TournamentsTabLocaleTextUpdate: (l) => {
194
+ n(2, _ = !0), n(4, y = { ...y, [l.state]: l.text });
192
195
  }
193
196
  }), D(() => (window.postMessage(
194
197
  {
@@ -198,36 +201,36 @@ function Z(e, t, n) {
198
201
  window.location.href
199
202
  ), () => {
200
203
  }));
201
- const R = (o) => {
202
- n(5, s = o), window.postMessage(
204
+ const R = (l) => {
205
+ n(5, s = l), window.postMessage(
203
206
  {
204
207
  type: "TournamentsTabSwitch",
205
- tab: o,
208
+ tab: l,
206
209
  tid: m
207
210
  },
208
211
  window.location.href
209
212
  );
210
213
  };
211
- function A(o) {
212
- J[o ? "unshift" : "push"](() => {
213
- l = o, n(1, l);
214
+ function U(l) {
215
+ G[l ? "unshift" : "push"](() => {
216
+ o = l, n(1, o);
214
217
  });
215
218
  }
216
- return e.$$set = (o) => {
217
- "tabs" in o && n(8, r = o.tabs), "tab" in o && n(9, a = o.tab), "clientstyling" in o && n(10, u = o.clientstyling), "clientstylingurl" in o && n(11, f = o.clientstylingurl), "mbsource" in o && n(12, d = o.mbsource), "tid" in o && n(0, m = o.tid);
219
+ return e.$$set = (l) => {
220
+ "tabs" in l && n(8, r = l.tabs), "tab" in l && n(9, a = l.tab), "clientstyling" in l && n(10, u = l.clientstyling), "clientstylingurl" in l && n(11, f = l.clientstylingurl), "mbsource" in l && n(12, d = l.mbsource), "tid" in l && n(0, m = l.tid);
218
221
  }, e.$$.update = () => {
219
222
  e.$$.dirty & /*clientstyling, customStylingContainer*/
220
- 1026 && u && l && N(l, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
221
- 2050 && f && l && P(l, f), e.$$.dirty & /*mbsource, customStylingContainer*/
222
- 4098 && d && l && Q(l, `${d}.Style`), e.$$.dirty & /*tabs*/
223
+ 1026 && u && o && K(o, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
224
+ 2050 && f && o && N(o, f), e.$$.dirty & /*mbsource, customStylingContainer*/
225
+ 4098 && d && o && P(o, `${d}.Style`), e.$$.dirty & /*tabs*/
223
226
  256 && n(6, i = r.split(",")), e.$$.dirty & /*tab*/
224
227
  512 && n(5, s = a);
225
228
  }, [
226
229
  m,
227
- l,
230
+ o,
228
231
  _,
229
232
  c,
230
- T,
233
+ y,
231
234
  s,
232
235
  i,
233
236
  g,
@@ -237,17 +240,17 @@ function Z(e, t, n) {
237
240
  f,
238
241
  d,
239
242
  R,
240
- A
243
+ U
241
244
  ];
242
245
  }
243
- class x extends E {
246
+ class Z extends A {
244
247
  constructor(t) {
245
- super(), H(
248
+ super(), E(
246
249
  this,
247
250
  t,
248
- Z,
249
251
  Y,
250
- U,
252
+ X,
253
+ H,
251
254
  {
252
255
  tabs: 8,
253
256
  tab: 9,
@@ -256,7 +259,7 @@ class x extends E {
256
259
  mbsource: 12,
257
260
  tid: 0
258
261
  },
259
- X
262
+ W
260
263
  );
261
264
  }
262
265
  get tabs() {
@@ -296,7 +299,7 @@ class x extends E {
296
299
  this.$$set({ tid: t }), h();
297
300
  }
298
301
  }
299
- I(x, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
302
+ I(Z, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
300
303
  export {
301
- x as default
304
+ Z as default
302
305
  };
@@ -1,25 +1,25 @@
1
- var J = Object.defineProperty, K = Object.defineProperties;
2
- var N = Object.getOwnPropertyDescriptors;
3
- var y = Object.getOwnPropertySymbols;
4
- var S = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var z = (e, t, n) => t in e ? J(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, v = (e, t) => {
1
+ var G = Object.defineProperty, J = Object.defineProperties;
2
+ var K = Object.getOwnPropertyDescriptors;
3
+ var T = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
+ var S = (e, t, n) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, v = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- S.call(t, n) && z(e, n, t[n]);
8
- if (y)
9
- for (var n of y(t))
10
- C.call(t, n) && z(e, n, t[n]);
7
+ L.call(t, n) && S(e, n, t[n]);
8
+ if (T)
9
+ for (var n of T(t))
10
+ C.call(t, n) && S(e, n, t[n]);
11
11
  return e;
12
- }, L = (e, t) => K(e, N(t));
12
+ }, z = (e, t) => J(e, K(t));
13
13
  var M = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
16
- S.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
- if (e != null && y)
18
- for (var i of y(e))
16
+ L.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
+ if (e != null && T)
18
+ for (var i of T(e))
19
19
  t.indexOf(i) < 0 && C.call(e, i) && (n[i] = e[i]);
20
20
  return n;
21
21
  };
22
- import { o as U, S as P, i as Q, s as V, f as h, a as W, n as D, d as T, b as k, e as w, c as b, g as X, h as j, j as Y, k as Z, l as I, m as p, p as x, t as O, q, r as $, u as tt, v as et, w as nt } from "./CasinoTournamentsLimitedController-DDjDm0zL.js";
22
+ import { o as H, S as N, i as P, s as Q, f as h, a as V, n as D, d as k, b as F, e as w, c as b, g as W, h as j, j as X, k as Y, l as I, m as p, p as Z, t as O, q, r as $, u as tt, v as et, w as nt } from "./CasinoTournamentsLimitedController-B0dYiMZG.js";
23
23
  const it = (e) => (n) => {
24
24
  Object.keys(e).map((i) => {
25
25
  if (n.data && n.data.type == i) {
@@ -29,24 +29,24 @@ const it = (e) => (n) => {
29
29
  });
30
30
  }, st = (e) => {
31
31
  const t = it(e);
32
- U(() => (window.addEventListener("message", t, !1), () => {
32
+ H(() => (window.addEventListener("message", t, !1), () => {
33
33
  window.removeEventListener("message", t);
34
34
  }));
35
35
  };
36
36
  function at(e) {
37
- W(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
37
+ V(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
38
38
  }
39
39
  function R(e, t, n) {
40
40
  const i = e.slice();
41
41
  return i[16] = t[n], i;
42
42
  }
43
- function A(e) {
43
+ function U(e) {
44
44
  let t, n = j(
45
45
  /*__tabs*/
46
46
  e[6]
47
47
  ), i = [];
48
48
  for (let s = 0; s < n.length; s += 1)
49
- i[s] = H(R(e, n, s));
49
+ i[s] = E(R(e, n, s));
50
50
  return {
51
51
  c() {
52
52
  t = w("ul");
@@ -55,7 +55,7 @@ function A(e) {
55
55
  b(t, "part", "ul");
56
56
  },
57
57
  m(s, r) {
58
- k(s, t, r);
58
+ F(s, t, r);
59
59
  for (let a = 0; a < i.length; a += 1)
60
60
  i[a] && i[a].m(t, null);
61
61
  },
@@ -69,7 +69,7 @@ function A(e) {
69
69
  let a;
70
70
  for (a = 0; a < n.length; a += 1) {
71
71
  const u = R(s, n, a);
72
- i[a] ? i[a].p(u, r) : (i[a] = H(u), i[a].c(), i[a].m(t, null));
72
+ i[a] ? i[a].p(u, r) : (i[a] = E(u), i[a].c(), i[a].m(t, null));
73
73
  }
74
74
  for (; a < i.length; a += 1)
75
75
  i[a].d(1);
@@ -77,11 +77,11 @@ function A(e) {
77
77
  }
78
78
  },
79
79
  d(s) {
80
- s && T(t), Y(i, s);
80
+ s && k(t), X(i, s);
81
81
  }
82
82
  };
83
83
  }
84
- function E(e) {
84
+ function A(e) {
85
85
  let t, n, i = (
86
86
  /*totalReceiver*/
87
87
  e[3][
@@ -94,7 +94,7 @@ function E(e) {
94
94
  t = w("sup"), n = w("span"), s = O(i), b(n, "part", "SupText"), b(t, "part", "sup");
95
95
  },
96
96
  m(r, a) {
97
- k(r, t, a), p(t, n), p(n, s);
97
+ F(r, t, a), p(t, n), p(n, s);
98
98
  },
99
99
  p(r, a) {
100
100
  a & /*totalReceiver, __tabs*/
@@ -105,23 +105,23 @@ function E(e) {
105
105
  ] + "") && I(s, i);
106
106
  },
107
107
  d(r) {
108
- r && T(t);
108
+ r && k(t);
109
109
  }
110
110
  };
111
111
  }
112
- function H(e) {
112
+ function E(e) {
113
113
  let t, n, i = (
114
114
  /*textReceiver*/
115
115
  e[4][
116
116
  /*_tab*/
117
117
  e[16]
118
118
  ] + ""
119
- ), s, r, a, u, f, d, m, l = (
119
+ ), s, r, a, u, f, d, m, o = (
120
120
  /*totalReceiver*/
121
121
  e[3][
122
122
  /*_tab*/
123
123
  e[16]
124
- ] >= 0 && E(e)
124
+ ] >= 0 && A(e)
125
125
  );
126
126
  function _() {
127
127
  return (
@@ -134,7 +134,7 @@ function H(e) {
134
134
  }
135
135
  return {
136
136
  c() {
137
- t = w("li"), n = w("span"), s = O(i), r = q(), l && l.c(), a = q(), b(n, "part", "LiText"), b(t, "class", u = /*__tab*/
137
+ t = w("li"), n = w("span"), s = O(i), r = q(), o && o.c(), a = q(), b(n, "part", "LiText"), b(t, "class", u = /*__tab*/
138
138
  e[5] === /*_tab*/
139
139
  e[16] ? "active" : ""), b(t, "part", f = `${/*_tab*/
140
140
  e[16]} li ` + /*__tab*/
@@ -142,7 +142,7 @@ function H(e) {
142
142
  e[16] ? "active" : ""));
143
143
  },
144
144
  m(g, c) {
145
- k(g, t, c), p(t, n), p(n, s), p(t, r), l && l.m(t, null), p(t, a), d || (m = x(t, "click", _), d = !0);
145
+ F(g, t, c), p(t, n), p(n, s), p(t, r), o && o.m(t, null), p(t, a), d || (m = Z(t, "click", _), d = !0);
146
146
  },
147
147
  p(g, c) {
148
148
  e = g, c & /*textReceiver, __tabs*/
@@ -154,7 +154,7 @@ function H(e) {
154
154
  e[3][
155
155
  /*_tab*/
156
156
  e[16]
157
- ] >= 0 ? l ? l.p(e, c) : (l = E(e), l.c(), l.m(t, a)) : l && (l.d(1), l = null), c & /*__tab, __tabs*/
157
+ ] >= 0 ? o ? o.p(e, c) : (o = A(e), o.c(), o.m(t, a)) : o && (o.d(1), o = null), c & /*__tab, __tabs*/
158
158
  96 && u !== (u = /*__tab*/
159
159
  e[5] === /*_tab*/
160
160
  e[16] ? "active" : "") && b(t, "class", u), c & /*__tabs, __tab*/
@@ -164,50 +164,53 @@ function H(e) {
164
164
  e[16] ? "active" : "")) && b(t, "part", f);
165
165
  },
166
166
  d(g) {
167
- g && T(t), l && l.d(), d = !1, m();
167
+ g && k(t), o && o.d(), d = !1, m();
168
168
  }
169
169
  };
170
170
  }
171
171
  function lt(e) {
172
172
  let t, n = (
173
173
  /*isTitleInited*/
174
- e[2] && A(e)
174
+ e[2] && U(e)
175
175
  );
176
176
  return {
177
177
  c() {
178
- t = w("div"), n && n.c(), b(t, "class", "casino-tournaments-tab " + (X(
178
+ t = w("div"), n && n.c(), b(t, "class", "casino-tournaments-tab " + (W(
179
179
  /*userAgent*/
180
180
  e[7]
181
181
  ) ? "TabMobile" : "TabDesktop")), b(t, "part", "CustomStylingContainer");
182
182
  },
183
183
  m(i, s) {
184
- k(i, t, s), n && n.m(t, null), e[14](t);
184
+ F(i, t, s), n && n.m(t, null), e[14](t);
185
185
  },
186
186
  p(i, [s]) {
187
187
  /*isTitleInited*/
188
- i[2] ? n ? n.p(i, s) : (n = A(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
188
+ i[2] ? n ? n.p(i, s) : (n = U(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
189
189
  },
190
190
  i: D,
191
191
  o: D,
192
192
  d(i) {
193
- i && T(t), n && n.d(), e[14](null);
193
+ i && k(t), n && n.d(), e[14](null);
194
194
  }
195
195
  };
196
196
  }
197
197
  function ot(e, t, n) {
198
- let i, s, { tabs: r = "" } = t, { tab: a = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: d } = t, { tid: m = "pageTab" } = t, l, _ = !1;
198
+ let i, s, { tabs: r = "" } = t, { tab: a = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: d } = t, { tid: m = "pageTab" } = t, o, _ = !1;
199
199
  const g = window.navigator.userAgent;
200
- let c = {}, F = {};
200
+ let c = {}, y = {};
201
201
  st({
202
- TournamentsTabTotalUpdate: (o) => {
203
- n(3, c = L(v({}, c), {
204
- [o.state]: o.total
202
+ TournamentsTabTotalUpdate: (l) => {
203
+ n(3, c = z(v({}, c), {
204
+ [l.state]: l.total
205
205
  }));
206
206
  },
207
- TournamentsTabsLocalize: (o) => {
208
- n(2, _ = !0), n(4, F = v(v({}, F), o.tabTitleTranslations));
207
+ TournamentsTabsLocalize: (l) => {
208
+ n(2, _ = !0), n(4, y = v(v({}, y), l.tabTitleTranslations));
209
+ },
210
+ TournamentsTabLocaleTextUpdate: (l) => {
211
+ n(2, _ = !0), n(4, y = z(v({}, y), { [l.state]: l.text }));
209
212
  }
210
- }), U(() => (window.postMessage(
213
+ }), H(() => (window.postMessage(
211
214
  {
212
215
  type: "TournamentsTabListenerLoaded",
213
216
  tid: m
@@ -215,36 +218,36 @@ function ot(e, t, n) {
215
218
  window.location.href
216
219
  ), () => {
217
220
  }));
218
- const B = (o) => {
219
- n(5, s = o), window.postMessage(
221
+ const x = (l) => {
222
+ n(5, s = l), window.postMessage(
220
223
  {
221
224
  type: "TournamentsTabSwitch",
222
- tab: o,
225
+ tab: l,
223
226
  tid: m
224
227
  },
225
228
  window.location.href
226
229
  );
227
230
  };
228
- function G(o) {
229
- Z[o ? "unshift" : "push"](() => {
230
- l = o, n(1, l);
231
+ function B(l) {
232
+ Y[l ? "unshift" : "push"](() => {
233
+ o = l, n(1, o);
231
234
  });
232
235
  }
233
- return e.$$set = (o) => {
234
- "tabs" in o && n(8, r = o.tabs), "tab" in o && n(9, a = o.tab), "clientstyling" in o && n(10, u = o.clientstyling), "clientstylingurl" in o && n(11, f = o.clientstylingurl), "mbsource" in o && n(12, d = o.mbsource), "tid" in o && n(0, m = o.tid);
236
+ return e.$$set = (l) => {
237
+ "tabs" in l && n(8, r = l.tabs), "tab" in l && n(9, a = l.tab), "clientstyling" in l && n(10, u = l.clientstyling), "clientstylingurl" in l && n(11, f = l.clientstylingurl), "mbsource" in l && n(12, d = l.mbsource), "tid" in l && n(0, m = l.tid);
235
238
  }, e.$$.update = () => {
236
239
  e.$$.dirty & /*clientstyling, customStylingContainer*/
237
- 1026 && u && l && $(l, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
238
- 2050 && f && l && tt(l, f), e.$$.dirty & /*mbsource, customStylingContainer*/
239
- 4098 && d && l && et(l, `${d}.Style`), e.$$.dirty & /*tabs*/
240
+ 1026 && u && o && $(o, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
241
+ 2050 && f && o && tt(o, f), e.$$.dirty & /*mbsource, customStylingContainer*/
242
+ 4098 && d && o && et(o, `${d}.Style`), e.$$.dirty & /*tabs*/
240
243
  256 && n(6, i = r.split(",")), e.$$.dirty & /*tab*/
241
244
  512 && n(5, s = a);
242
245
  }, [
243
246
  m,
244
- l,
247
+ o,
245
248
  _,
246
249
  c,
247
- F,
250
+ y,
248
251
  s,
249
252
  i,
250
253
  g,
@@ -253,18 +256,18 @@ function ot(e, t, n) {
253
256
  u,
254
257
  f,
255
258
  d,
256
- B,
257
- G
259
+ x,
260
+ B
258
261
  ];
259
262
  }
260
- class rt extends P {
263
+ class rt extends N {
261
264
  constructor(t) {
262
- super(), Q(
265
+ super(), P(
263
266
  this,
264
267
  t,
265
268
  ot,
266
269
  lt,
267
- V,
270
+ Q,
268
271
  {
269
272
  tabs: 8,
270
273
  tab: 9,
@@ -0,0 +1 @@
1
+ "use strict";var q=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var v=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&v(e,n,t[n]);if(_)for(var n of _(t))k.call(t,n)&&v(e,n,t[n]);return e},y=(e,t)=>R(e,U(t));var F=(e,t)=>{var n={};for(var a in e)T.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&_)for(var a of _(e))t.indexOf(a)<0&&k.call(e,a)&&(n[a]=e[a]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsLimitedController-DrLe6_3O.cjs"),A=e=>n=>{Object.keys(e).map(a=>{if(n.data&&n.data.type==a){const s=n.data,{type:u}=s,l=F(s,["type"]);e[a](l)}})},E=e=>{const t=A(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function H(e){i.append_styles(e,"svelte-qazmct","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}")}function S(e,t,n){const a=e.slice();return a[16]=t[n],a}function z(e){let t,n=i.ensure_array_like(e[6]),a=[];for(let s=0;s<n.length;s+=1)a[s]=L(S(e,n,s));return{c(){t=i.element("ul");for(let s=0;s<a.length;s+=1)a[s].c();i.attr(t,"part","ul")},m(s,u){i.insert(s,t,u);for(let l=0;l<a.length;l+=1)a[l]&&a[l].m(t,null)},p(s,u){if(u&121){n=i.ensure_array_like(s[6]);let l;for(l=0;l<n.length;l+=1){const c=S(s,n,l);a[l]?a[l].p(c,u):(a[l]=L(c),a[l].c(),a[l].m(t,null))}for(;l<a.length;l+=1)a[l].d(1);a.length=n.length}},d(s){s&&i.detach(t),i.destroy_each(a,s)}}}function C(e){let t,n,a=e[3][e[16]]+"",s;return{c(){t=i.element("sup"),n=i.element("span"),s=i.text(a),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(u,l){i.insert(u,t,l),i.append(t,n),i.append(n,s)},p(u,l){l&72&&a!==(a=u[3][u[16]]+"")&&i.set_data(s,a)},d(u){u&&i.detach(t)}}}function L(e){let t,n,a=e[4][e[16]]+"",s,u,l,c,b,f,m,r=e[3][e[16]]>=0&&C(e);function p(){return e[13](e[16])}return{c(){t=i.element("li"),n=i.element("span"),s=i.text(a),u=i.space(),r&&r.c(),l=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[5]===e[16]?"active":""),i.attr(t,"part",b=`${e[16]} li `+(e[5]===e[16]?"active":""))},m(g,d){i.insert(g,t,d),i.append(t,n),i.append(n,s),i.append(t,u),r&&r.m(t,null),i.append(t,l),f||(m=i.listen(t,"click",p),f=!0)},p(g,d){e=g,d&80&&a!==(a=e[4][e[16]]+"")&&i.set_data(s,a),e[3][e[16]]>=0?r?r.p(e,d):(r=C(e),r.c(),r.m(t,l)):r&&(r.d(1),r=null),d&96&&c!==(c=e[5]===e[16]?"active":"")&&i.attr(t,"class",c),d&96&&b!==(b=`${e[16]} li `+(e[5]===e[16]?"active":""))&&i.attr(t,"part",b)},d(g){g&&i.detach(t),r&&r.d(),f=!1,m()}}}function O(e){let t,n=e[2]&&z(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab "+(i.isMobile(e[7])?"TabMobile":"TabDesktop")),i.attr(t,"part","CustomStylingContainer")},m(a,s){i.insert(a,t,s),n&&n.m(t,null),e[14](t)},p(a,[s]){a[2]?n?n.p(a,s):(n=z(a),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(a){a&&i.detach(t),n&&n.d(),e[14](null)}}}function I(e,t,n){let a,s,{tabs:u=""}=t,{tab:l=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:b=""}=t,{mbsource:f}=t,{tid:m="pageTab"}=t,r,p=!1;const g=window.navigator.userAgent;let d={},h={};E({TournamentsTabTotalUpdate:o=>{n(3,d=y(w({},d),{[o.state]:o.total}))},TournamentsTabsLocalize:o=>{n(2,p=!0),n(4,h=w(w({},h),o.tabTitleTranslations))},TournamentsTabLocaleTextUpdate:o=>{n(2,p=!0),n(4,h=y(w({},h),{[o.state]:o.text}))}}),i.onMount(()=>(window.postMessage({type:"TournamentsTabListenerLoaded",tid:m},window.location.href),()=>{}));const D=o=>{n(5,s=o),window.postMessage({type:"TournamentsTabSwitch",tab:o,tid:m},window.location.href)};function j(o){i.binding_callbacks[o?"unshift":"push"](()=>{r=o,n(1,r)})}return e.$$set=o=>{"tabs"in o&&n(8,u=o.tabs),"tab"in o&&n(9,l=o.tab),"clientstyling"in o&&n(10,c=o.clientstyling),"clientstylingurl"in o&&n(11,b=o.clientstylingurl),"mbsource"in o&&n(12,f=o.mbsource),"tid"in o&&n(0,m=o.tid)},e.$$.update=()=>{e.$$.dirty&1026&&c&&r&&i.setClientStyling(r,c),e.$$.dirty&2050&&b&&r&&i.setClientStylingURL(r,b),e.$$.dirty&4098&&f&&r&&i.setStreamStyling(r,`${f}.Style`),e.$$.dirty&256&&n(6,a=u.split(",")),e.$$.dirty&512&&n(5,s=l)},[m,r,p,d,h,s,a,g,u,l,c,b,f,D,j]}class M extends i.SvelteComponent{constructor(t){super(),i.init(this,t,I,O,i.safe_not_equal,{tabs:8,tab:9,clientstyling:10,clientstylingurl:11,mbsource:12,tid:0},H)}get tabs(){return this.$$.ctx[8]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[9]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}get tid(){return this.$$.ctx[0]}set tid(t){this.$$set({tid:t}),i.flush()}}i.create_custom_element(M,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{},mbsource:{},tid:{}},[],[],!0);exports.default=M;
@@ -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/CasinoTournamentsLimitedController-Z12MzgDn.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
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/CasinoTournamentsLimitedController-DrLe6_3O.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-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/CasinoTournamentsLimitedController-DDjDm0zL.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-B0dYiMZG.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("casino-tournaments-limited-controller") && customElements.define(
15
15
  "casino-tournaments-limited-controller",
16
16
  e.element
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsLimitedController-DKsBp06t.js";
1
+ import { C as s } from "../components/CasinoTournamentsLimitedController-DoFVV-ql.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.75.1",
3
+ "version": "1.76.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-limited-controller.cjs",
6
6
  "module": "esnext/casino-tournaments-limited-controller.js",
@@ -1 +0,0 @@
1
- "use strict";var q=Object.defineProperty,R=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var y=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))T.call(t,n)&&y(e,n,t[n]);return e},k=(e,t)=>R(e,A(t));var F=(e,t)=>{var n={};for(var a in e)v.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&h)for(var a of h(e))t.indexOf(a)<0&&T.call(e,a)&&(n[a]=e[a]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsLimitedController-Z12MzgDn.cjs"),E=e=>n=>{Object.keys(e).map(a=>{if(n.data&&n.data.type==a){const l=n.data,{type:u}=l,s=F(l,["type"]);e[a](s)}})},H=e=>{const t=E(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function O(e){i.append_styles(e,"svelte-qazmct","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}")}function S(e,t,n){const a=e.slice();return a[16]=t[n],a}function z(e){let t,n=i.ensure_array_like(e[6]),a=[];for(let l=0;l<n.length;l+=1)a[l]=M(S(e,n,l));return{c(){t=i.element("ul");for(let l=0;l<a.length;l+=1)a[l].c();i.attr(t,"part","ul")},m(l,u){i.insert(l,t,u);for(let s=0;s<a.length;s+=1)a[s]&&a[s].m(t,null)},p(l,u){if(u&121){n=i.ensure_array_like(l[6]);let s;for(s=0;s<n.length;s+=1){const c=S(l,n,s);a[s]?a[s].p(c,u):(a[s]=M(c),a[s].c(),a[s].m(t,null))}for(;s<a.length;s+=1)a[s].d(1);a.length=n.length}},d(l){l&&i.detach(t),i.destroy_each(a,l)}}}function C(e){let t,n,a=e[3][e[16]]+"",l;return{c(){t=i.element("sup"),n=i.element("span"),l=i.text(a),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(u,s){i.insert(u,t,s),i.append(t,n),i.append(n,l)},p(u,s){s&72&&a!==(a=u[3][u[16]]+"")&&i.set_data(l,a)},d(u){u&&i.detach(t)}}}function M(e){let t,n,a=e[4][e[16]]+"",l,u,s,c,b,f,m,o=e[3][e[16]]>=0&&C(e);function p(){return e[13](e[16])}return{c(){t=i.element("li"),n=i.element("span"),l=i.text(a),u=i.space(),o&&o.c(),s=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[5]===e[16]?"active":""),i.attr(t,"part",b=`${e[16]} li `+(e[5]===e[16]?"active":""))},m(g,d){i.insert(g,t,d),i.append(t,n),i.append(n,l),i.append(t,u),o&&o.m(t,null),i.append(t,s),f||(m=i.listen(t,"click",p),f=!0)},p(g,d){e=g,d&80&&a!==(a=e[4][e[16]]+"")&&i.set_data(l,a),e[3][e[16]]>=0?o?o.p(e,d):(o=C(e),o.c(),o.m(t,s)):o&&(o.d(1),o=null),d&96&&c!==(c=e[5]===e[16]?"active":"")&&i.attr(t,"class",c),d&96&&b!==(b=`${e[16]} li `+(e[5]===e[16]?"active":""))&&i.attr(t,"part",b)},d(g){g&&i.detach(t),o&&o.d(),f=!1,m()}}}function U(e){let t,n=e[2]&&z(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab "+(i.isMobile(e[7])?"TabMobile":"TabDesktop")),i.attr(t,"part","CustomStylingContainer")},m(a,l){i.insert(a,t,l),n&&n.m(t,null),e[14](t)},p(a,[l]){a[2]?n?n.p(a,l):(n=z(a),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(a){a&&i.detach(t),n&&n.d(),e[14](null)}}}function I(e,t,n){let a,l,{tabs:u=""}=t,{tab:s=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:b=""}=t,{mbsource:f}=t,{tid:m="pageTab"}=t,o,p=!1;const g=window.navigator.userAgent;let d={},_={};H({TournamentsTabTotalUpdate:r=>{n(3,d=k(w({},d),{[r.state]:r.total}))},TournamentsTabsLocalize:r=>{n(2,p=!0),n(4,_=w(w({},_),r.tabTitleTranslations))}}),i.onMount(()=>(window.postMessage({type:"TournamentsTabListenerLoaded",tid:m},window.location.href),()=>{}));const D=r=>{n(5,l=r),window.postMessage({type:"TournamentsTabSwitch",tab:r,tid:m},window.location.href)};function j(r){i.binding_callbacks[r?"unshift":"push"](()=>{o=r,n(1,o)})}return e.$$set=r=>{"tabs"in r&&n(8,u=r.tabs),"tab"in r&&n(9,s=r.tab),"clientstyling"in r&&n(10,c=r.clientstyling),"clientstylingurl"in r&&n(11,b=r.clientstylingurl),"mbsource"in r&&n(12,f=r.mbsource),"tid"in r&&n(0,m=r.tid)},e.$$.update=()=>{e.$$.dirty&1026&&c&&o&&i.setClientStyling(o,c),e.$$.dirty&2050&&b&&o&&i.setClientStylingURL(o,b),e.$$.dirty&4098&&f&&o&&i.setStreamStyling(o,`${f}.Style`),e.$$.dirty&256&&n(6,a=u.split(",")),e.$$.dirty&512&&n(5,l=s)},[m,o,p,d,_,l,a,g,u,s,c,b,f,D,j]}class L extends i.SvelteComponent{constructor(t){super(),i.init(this,t,I,U,i.safe_not_equal,{tabs:8,tab:9,clientstyling:10,clientstylingurl:11,mbsource:12,tid:0},O)}get tabs(){return this.$$.ctx[8]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[9]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}get tid(){return this.$$.ctx[0]}set tid(t){this.$$set({tid:t}),i.flush()}}i.create_custom_element(L,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{},mbsource:{},tid:{}},[],[],!0);exports.default=L;