@everymatrix/casino-tournaments-page-controller 1.87.11 → 1.87.12

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.
@@ -13,7 +13,7 @@ _.version="2.29.4";hr($);_.fn=m;_.min=ti;_.max=ni;_.now=ai;_.utc=Ke;_.unix=xo;_.
13
13
  * https://github.com/Yaffle/EventSource/
14
14
  */(function(e,t){(function(n){var a=n.setTimeout,r=n.clearTimeout,i=n.XMLHttpRequest,o=n.XDomainRequest,d=n.ActiveXObject,c=n.EventSource,f=n.document,p=n.Promise,W=n.fetch,D=n.Response,ne=n.TextDecoder,ge=n.TextEncoder,pe=n.AbortController;if(typeof window!="undefined"&&typeof f!="undefined"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(u){f.readyState="complete"},!1)),i==null&&d!=null&&(i=function(){return new d("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(u){function h(){}return h.prototype=u,new h}),Date.now||(Date.now=function(){return new Date().getTime()}),pe==null){var J=W;W=function(u,h){var w=h.signal;return J(u,{headers:h.headers,credentials:h.credentials,cache:h.cache}).then(function(g){var C=g.body.getReader();return w._reader=C,w._aborted&&w._reader.cancel(),{status:g.status,statusText:g.statusText,headers:g.headers,body:{getReader:function(){return C}}}})},pe=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function Me(){this.bitsNeeded=0,this.codePoint=0}Me.prototype.decode=function(u){function h(z,A,O){if(O===1)return z>=128>>A&&z<<A<=2047;if(O===2)return z>=2048>>A&&z<<A<=55295||z>=57344>>A&&z<<A<=65535;if(O===3)return z>=65536>>A&&z<<A<=1114111;throw new Error}function w(z,A){if(z===6*1)return A>>6>15?3:A>31?2:1;if(z===6*2)return A>15?3:2;if(z===6*3)return 3;throw new Error}for(var g=65533,C="",k=this.bitsNeeded,P=this.codePoint,X=0;X<u.length;X+=1){var F=u[X];k!==0&&(F<128||F>191||!h(P<<6|F&63,k-6,w(k,P)))&&(k=0,P=g,C+=String.fromCharCode(P)),k===0?(F>=0&&F<=127?(k=0,P=F):F>=192&&F<=223?(k=6*1,P=F&31):F>=224&&F<=239?(k=6*2,P=F&15):F>=240&&F<=247?(k=6*3,P=F&7):(k=0,P=g),k!==0&&!h(P,k,w(k,P))&&(k=0,P=g)):(k-=6,P=P<<6|F&63),k===0&&(P<=65535?C+=String.fromCharCode(P):(C+=String.fromCharCode(55296+(P-65535-1>>10)),C+=String.fromCharCode(56320+(P-65535-1&1023))))}return this.bitsNeeded=k,this.codePoint=P,C};var Q=function(){try{return new ne().decode(new ge().encode("test"),{stream:!0})==="test"}catch(u){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+u)}return!1};(ne==null||ge==null||!Q())&&(ne=Me);var j=function(){};function U(u){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=j,this.onload=j,this.onerror=j,this.onreadystatechange=j,this._contentType="",this._xhr=u,this._sendTimeout=0,this._abort=j}U.prototype.open=function(u,h){this._abort(!0);var w=this,g=this._xhr,C=1,k=0;this._abort=function(O){w._sendTimeout!==0&&(r(w._sendTimeout),w._sendTimeout=0),(C===1||C===2||C===3)&&(C=4,g.onload=j,g.onerror=j,g.onabort=j,g.onprogress=j,g.onreadystatechange=j,g.abort(),k!==0&&(r(k),k=0),O||(w.readyState=4,w.onabort(null),w.onreadystatechange())),C=0};var P=function(){if(C===1){var O=0,q="",Fe=void 0;if("contentType"in g)O=200,q="OK",Fe=g.contentType;else try{O=g.status,q=g.statusText,Fe=g.getResponseHeader("Content-Type")}catch(mt){O=0,q="",Fe=void 0}O!==0&&(C=2,w.readyState=2,w.status=O,w.statusText=q,w._contentType=Fe,w.onreadystatechange())}},X=function(){if(P(),C===2||C===3){C=3;var O="";try{O=g.responseText}catch(q){}w.readyState=3,w.responseText=O,w.onprogress()}},F=function(O,q){if((q==null||q.preventDefault==null)&&(q={preventDefault:j}),X(),C===1||C===2||C===3){if(C=4,k!==0&&(r(k),k=0),w.readyState=4,O==="load")w.onload(q);else if(O==="error")w.onerror(q);else if(O==="abort")w.onabort(q);else throw new TypeError;w.onreadystatechange()}},z=function(O){g!=null&&(g.readyState===4?(!("onload"in g)||!("onerror"in g)||!("onabort"in g))&&F(g.responseText===""?"error":"load",O):g.readyState===3?"onprogress"in g||X():g.readyState===2&&P())},A=function(){k=a(function(){A()},500),g.readyState===3&&X()};"onload"in g&&(g.onload=function(O){F("load",O)}),"onerror"in g&&(g.onerror=function(O){F("error",O)}),"onabort"in g&&(g.onabort=function(O){F("abort",O)}),"onprogress"in g&&(g.onprogress=X),"onreadystatechange"in g&&(g.onreadystatechange=function(O){z(O)}),("contentType"in g||!("ontimeout"in i.prototype))&&(h+=(h.indexOf("?")===-1?"?":"&")+"padding=true"),g.open(u,h,!0),"readyState"in g&&(k=a(function(){A()},0))},U.prototype.abort=function(){this._abort(!1)},U.prototype.getResponseHeader=function(u){return this._contentType},U.prototype.setRequestHeader=function(u,h){var w=this._xhr;"setRequestHeader"in w&&w.setRequestHeader(u,h)},U.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},U.prototype.send=function(){if((!("ontimeout"in i.prototype)||!("sendAsBinary"in i.prototype)&&!("mozAnon"in i.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var u=this;u._sendTimeout=a(function(){u._sendTimeout=0,u.send()},4);return}var h=this._xhr;"withCredentials"in h&&(h.withCredentials=this.withCredentials);try{h.send(void 0)}catch(w){throw w}};function S(u){return u.replace(/[A-Z]/g,function(h){return String.fromCharCode(h.charCodeAt(0)+32)})}function V(u){for(var h=Object.create(null),w=u.split(`\r
15
15
  `),g=0;g<w.length;g+=1){var C=w[g],k=C.split(": "),P=k.shift(),X=k.join(": ");h[S(P)]=X}this._map=h}V.prototype.get=function(u){return this._map[S(u)]},i!=null&&i.HEADERS_RECEIVED==null&&(i.HEADERS_RECEIVED=2);function et(){}et.prototype.open=function(u,h,w,g,C,k,P){u.open("GET",C);var X=0;u.onprogress=function(){var z=u.responseText,A=z.slice(X);X+=A.length,w(A)},u.onerror=function(z){z.preventDefault(),g(new Error("NetworkError"))},u.onload=function(){g(null)},u.onabort=function(){g(null)},u.onreadystatechange=function(){if(u.readyState===i.HEADERS_RECEIVED){var z=u.status,A=u.statusText,O=u.getResponseHeader("Content-Type"),q=u.getAllResponseHeaders();h(z,A,O,new V(q))}},u.withCredentials=k;for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&u.setRequestHeader(F,P[F]);return u.send(),u};function fe(u){this._headers=u}fe.prototype.get=function(u){return this._headers.get(u)};function Ue(){}Ue.prototype.open=function(u,h,w,g,C,k,P){var X=null,F=new pe,z=F.signal,A=new ne;return W(C,{headers:P,credentials:k?"include":"same-origin",signal:z,cache:"no-store"}).then(function(O){return X=O.body.getReader(),h(O.status,O.statusText,O.headers.get("Content-Type"),new fe(O.headers)),new p(function(q,Fe){var mt=function(){X.read().then(function(De){if(De.done)q(void 0);else{var me=A.decode(De.value,{stream:!0});w(me),mt()}}).catch(function(De){Fe(De)})};mt()})}).catch(function(O){if(O.name!=="AbortError")return O}).then(function(O){g(O)}),{abort:function(){X!=null&&X.cancel(),F.abort()}}};function Ye(){this._listeners=Object.create(null)}function ct(u){a(function(){throw u},0)}Ye.prototype.dispatchEvent=function(u){u.target=this;var h=this._listeners[u.type];if(h!=null)for(var w=h.length,g=0;g<w;g+=1){var C=h[g];try{typeof C.handleEvent=="function"?C.handleEvent(u):C.call(this,u)}catch(k){ct(k)}}},Ye.prototype.addEventListener=function(u,h){u=String(u);var w=this._listeners,g=w[u];g==null&&(g=[],w[u]=g);for(var C=!1,k=0;k<g.length;k+=1)g[k]===h&&(C=!0);C||g.push(h)},Ye.prototype.removeEventListener=function(u,h){u=String(u);var w=this._listeners,g=w[u];if(g!=null){for(var C=[],k=0;k<g.length;k+=1)g[k]!==h&&C.push(g[k]);C.length===0?delete w[u]:w[u]=C}};function ye(u){this.type=u,this.target=void 0}function Be(u,h){ye.call(this,u),this.data=h.data,this.lastEventId=h.lastEventId}Be.prototype=Object.create(ye.prototype);function tt(u,h){ye.call(this,u),this.status=h.status,this.statusText=h.statusText,this.headers=h.headers}tt.prototype=Object.create(ye.prototype);function qe(u,h){ye.call(this,u),this.error=h.error}qe.prototype=Object.create(ye.prototype);var Ae=-1,ke=0,Ce=1,K=2,He=-1,le=0,ce=1,ie=2,N=3,ue=/^text\/event\-stream(;.*)?$/i,ae=1e3,Oe=18e6,Ze=function(u,h){var w=u==null?h:parseInt(u,10);return w!==w&&(w=h),v(w)},v=function(u){return Math.min(Math.max(u,ae),Oe)},x=function(u,h,w){try{typeof h=="function"&&h.call(u,w)}catch(g){ct(g)}};function re(u,h){Ye.call(this),h=h||{},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,pt(this,u,h)}function Se(){return i!=null&&"withCredentials"in i.prototype||o==null?new i:new o}var Bt=W!=null&&D!=null&&"body"in D.prototype;function pt(u,h,w){h=String(h);var g=!!w.withCredentials,C=w.lastEventIdQueryParameterName||"lastEventId",k=v(1e3),P=Ze(w.heartbeatTimeout,45e3),X="",F=k,z=!1,A=0,O=w.headers||{},q=w.Transport,Fe=Bt&&q==null?void 0:new U(q!=null?new q:Se()),mt=q!=null&&typeof q!="string"?new q:Fe==null?new Ue:new et,De=void 0,me=0,he=Ae,Je="",kt="",Ne="",yt="",we=le,Et=0,nt=0,yn=function(oe,l,b,M){if(he===ke)if(oe===200&&b!=null&&ue.test(b)){he=Ce,z=Date.now(),F=k,u.readyState=Ce;var L=new tt("open",{status:oe,statusText:l,headers:M});u.dispatchEvent(L),x(u,u.onopen,L)}else{var R="";oe!==200?(l&&(l=l.replace(/\s+/g," ")),R="EventSource's response has a status "+oe+" "+l+" that is not 200. Aborting the connection."):R="EventSource's response has a Content-Type specifying an unsupported type: "+(b==null?"-":b.replace(/\s+/g," "))+". Aborting the connection.",Ft();var L=new tt("error",{status:oe,statusText:l,headers:M});u.dispatchEvent(L),x(u,u.onerror,L),console.error(R)}},wn=function(oe){if(he===Ce){for(var l=-1,b=0;b<oe.length;b+=1){var M=oe.charCodeAt(b);(M===10||M===13)&&(l=b)}var L=(l!==-1?yt:"")+oe.slice(0,l+1);yt=(l===-1?yt:"")+oe.slice(l+1),oe!==""&&(z=Date.now(),A+=oe.length);for(var R=0;R<L.length;R+=1){var M=L.charCodeAt(R);if(we===He&&M===10)we=le;else if(we===He&&(we=le),M===13||M===10){if(we!==le){we===ce&&(nt=R+1);var Z=L.slice(Et,nt-1),_e=L.slice(nt+(nt<R&&L.charCodeAt(nt)===32?1:0),R);Z==="data"?(Je+=`
16
- `,Je+=_e):Z==="id"?kt=_e:Z==="event"?Ne=_e:Z==="retry"?(k=Ze(_e,k),F=k):Z==="heartbeatTimeout"&&(P=Ze(_e,P),me!==0&&(r(me),me=a(function(){at()},P)))}if(we===le){if(Je!==""){X=kt,Ne===""&&(Ne="message");var Re=new Be(Ne,{data:Je.slice(1),lastEventId:kt});if(u.dispatchEvent(Re),Ne==="open"?x(u,u.onopen,Re):Ne==="message"?x(u,u.onmessage,Re):Ne==="error"&&x(u,u.onerror,Re),he===K)return}Je="",Ne=""}we=M===13?He:le}else we===le&&(Et=R,we=ce),we===ce?M===58&&(nt=R+1,we=ie):we===ie&&(we=N)}}},qt=function(oe){if(he===Ce||he===ke){he=Ae,me!==0&&(r(me),me=0),me=a(function(){at()},F),F=v(Math.min(k*16,F*2)),u.readyState=ke;var l=new qe("error",{error:oe});u.dispatchEvent(l),x(u,u.onerror,l),oe!=null&&console.error(oe)}},Ft=function(){he=K,De!=null&&(De.abort(),De=void 0),me!==0&&(r(me),me=0),u.readyState=K},at=function(){if(me=0,he!==Ae){if(!z&&De!=null)qt(new Error("No activity within "+P+" milliseconds. "+(he===ke?"No response received.":A+" chars received.")+" Reconnecting.")),De!=null&&(De.abort(),De=void 0);else{var oe=Math.max((z||Date.now())+P-Date.now(),1);z=!1,me=a(function(){at()},oe)}return}z=!1,A=0,me=a(function(){at()},P),he=ke,Je="",Ne="",kt=X,yt="",Et=0,nt=0,we=le;var l=h;if(h.slice(0,5)!=="data:"&&h.slice(0,5)!=="blob:"&&X!==""){var b=h.indexOf("?");l=b===-1?h:h.slice(0,b+1)+h.slice(b+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(_e,Re){return Re===C?"":_e}),l+=(h.indexOf("?")===-1?"?":"&")+C+"="+encodeURIComponent(X)}var M=u.withCredentials,L={};L.Accept="text/event-stream";var R=u.headers;if(R!=null)for(var Z in R)Object.prototype.hasOwnProperty.call(R,Z)&&(L[Z]=R[Z]);try{De=mt.open(Fe,yn,wn,qt,l,M,L)}catch(_e){throw Ft(),_e}};u.url=h,u.readyState=ke,u.withCredentials=g,u.headers=O,u._close=Ft,at()}re.prototype=Object.create(Ye.prototype),re.prototype.CONNECTING=ke,re.prototype.OPEN=Ce,re.prototype.CLOSED=K,re.prototype.close=function(){this._close()},re.CONNECTING=ke,re.OPEN=Ce,re.CLOSED=K,re.prototype.withCredentials=void 0;var Mt=c;i!=null&&(c==null||!("withCredentials"in c.prototype))&&(Mt=re),function(u){{var h=u(t);h!==void 0&&(e.exports=h)}}(function(u){u.EventSourcePolyfill=re,u.NativeEventSource=c,u.EventSource=Mt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:s.commonjsGlobal:globalThis)})(xn,xn.exports);var ia=xn.exports;if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsDetails-BKF6dVBp.cjs")).then(t=>t.CasinoTournamentsDetails_ce).then(({default:t})=>{!customElements.get("casino-tournaments-details")&&customElements.define("casino-tournaments-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-gKe2EMBc.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTable-DKQ-XAvr.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-table")&&customElements.define("casino-tournaments-table",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-DZVmJO5J.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailRule-Bwo5PEJo.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-rule")&&customElements.define("casino-tournaments-thumbnail-rule",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsRank-bXoi8aik.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGames-BUOHTXRf.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games")&&customElements.define("casino-tournaments-thumbnail-games",t.element)})}function gl(e){s.append_styles(e,"svelte-13zmxk7",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:var(--emw--color-contrast, #07072A);width:100%;color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:row}.TournamentsPage .hidden{display:none}.TournamentsPage.MiniMode{flex-direction:column}.TournamentsSectionWrapper{padding:24px 0;width:100%}@media screen and (max-width: 1300px){.TournamentsSectionWrapper{padding:24px 2.4%}}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.NavButtons{margin-left:auto;gap:10px;display:flex}.PrevButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);width:105px;height:36px;padding:10px;font-size:16px;cursor:pointer}.NextButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);padding:10px;width:75px;height:36px;font-size:16px;cursor:pointer}.TournamentsPage.MiniMode .TournamentContentDetails.MobileClass .TabContent.Games .GamesTabNav{width:80%}.TournamentContentDetails{display:flex;gap:10px;width:100%}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentContentDetails .LeaderboardSectionWrapper{display:flex;flex-direction:column;width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .PageTabNav{max-width:600px;min-height:38px}.TournamentContentDetails .LeaderboardSectionWrapper .GamesTabNav{max-width:300px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Rules{max-width:800px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games{padding-bottom:30px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.OneGame{width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg.ball,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentCardDetails{width:var(--emw--tournament-thumbnail-width, 35%)}.TournamentCardDetails.MobileClass{width:100%}.TournamentTableDetails{flex:auto}.TournamentsPage.MiniMode{height:max-content}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails{padding:5px 5px 0px 5px;background-color:#333333;padding-bottom:12px}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails casino-tournaments-rank{display:block}.TournamentsPage.MiniMode .CloseButton{position:absolute;right:3px;top:3px;font-size:11px;cursor:pointer}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank),.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){color:#0a0c19;font-size:12px;margin:0px 0px 0px 5px;padding:2px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank){margin-left:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){margin-right:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(RankText),.TournamentsPage.MiniMode casino-tournaments-rank::part(PrizeText){font-weight:400}.TournamentsPage.MiniMode casino-tournaments-thumbnail-controller::part(TournamentCard){padding:5px 5px 0px 5px;background-color:#333333}.TournamentsPage.MiniMode casino-tournaments-tab::part(LiText){height:22px;top:calc(50% - 11px);font-style:normal;font-weight:600;font-size:14px;line-height:22px;text-align:center;letter-spacing:-0.1px}.TournamentsPage.MiniMode casino-tournaments-tab::part(CustomStylingContainer){margin-top:0px;cursor:pointer}.TournamentsPage.MiniMode .TabContent,.TournamentsPage.MiniMode casino-tournaments-tab{padding:0 16px}.TournamentsPage.MiniMode .TabContent.Rules{padding-bottom:28px}.TournamentsPage.MiniMode .TabContent.Games{padding-bottom:30px}.TournamentsPage.MiniMode .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentsPage.MiniMode .TabContent.Games .GameItems.OneGame{width:100%}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentsPage.MiniMode .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg.ball,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentsPage.MiniMode .TabContent.Games .GamesTabNav{width:50%}.TournamentsPage.MiniMode .BottomButton{font-weight:600;font-size:15px;text-align:center;height:35px;width:60%;margin:20px auto;align-items:center;padding:8.72351px 12.6887px;background:#FF8364;box-shadow:0px 0.793047px 2.37914px rgba(0, 0, 0, 0.1), 0px 1.58609px 0.793047px rgba(0, 0, 0, 0.06), 0px 0.793047px 0.793047px rgba(0, 0, 0, 0.07);border-radius:4.75828px}.TournamentsPage.MiniMode .Thumbnail{position:relative}.TournamentsPage.MiniMode .Thumbnail.Mobile{border:0px none;padding:6px 5px 10px;background:#333333}.TournamentsPage.MiniMode .Thumbnail.MiniMode .CardImg{margin-bottom:5px;width:65px;height:40px}.TournamentsPage.MiniMode .Thumbnail .CardImg{height:300px;width:100%;background:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:auto}.TournamentsPage.MiniMode .Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.TournamentsPage.MiniMode .Thumbnail .CardImg.Mobile{width:65px;height:40px;display:inline-block}.TournamentsPage.MiniMode .Thumbnail .MobileRight{display:inline-block;line-height:20px;font-size:11px;padding:2px 3px;vertical-align:top;width:calc(100% - 70px)}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title{text-transform:capitalize;font-size:var(--emw--font-size-medium, 14px);font-weight:600;background-color:transparent;height:fit-content;margin-bottom:initial}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title.Skeleton{height:var(--emw-skeleton-title-height, 30px)}.TournamentsPage.MiniMode .Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.TournamentsPage.MiniMode .Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}')}function oa(e,t,n){const a=e.slice();return a[85]=t[n],a}function la(e,t,n){const a=e.slice();return a[85]=t[n],a}function ua(e){let t,n=e[19]("loading")+"",a;return{c(){t=s.element("p"),a=s.text(n),s.attr(t,"class","LoadingMessage"),s.attr(t,"part","LoadingMessage")},m(r,i){s.insert(r,t,i),s.append(t,a)},p(r,i){i[0]&524288&&n!==(n=r[19]("loading")+"")&&s.set_data(a,n)},d(r){r&&s.detach(t)}}}function pl(e){let t,n,a,r=!e[17]&&da(),i=e[17]&&fa(e);return{c(){t=s.element("div"),r&&r.c(),n=s.space(),i&&i.c(),s.attr(t,"class",a=(s.isMobile(e[30])?"MobileClass":"")+(e[4]=="true"?" TournamentCardDetails":" FullSize")),s.attr(t,"part","MobileTournamentCardDetails")},m(o,d){s.insert(o,t,d),r&&r.m(t,null),s.append(t,n),i&&i.m(t,null)},p(o,d){o[17]?r&&(r.d(1),r=null):r||(r=da(),r.c(),r.m(t,n)),o[17]?i?i.p(o,d):(i=fa(o),i.c(),i.m(t,null)):i&&(i.d(1),i=null),d[0]&16&&a!==(a=(s.isMobile(o[30])?"MobileClass":"")+(o[4]=="true"?" TournamentCardDetails":" FullSize"))&&s.attr(t,"class",a)},d(o){o&&s.detach(t),r&&r.d(),i&&i.d()}}}function yl(e){let t,n,a,r,i,o,d,c=e[22].length>0&&ma(e);return{c(){var f;t=s.element("div"),n=s.element("casino-tournaments-thumbnail-controller"),i=s.space(),c&&c.c(),s.set_custom_element_data(n,"session",e[0]),s.set_custom_element_data(n,"userid",e[1]),s.set_custom_element_data(n,"endpoint",e[3]),s.set_custom_element_data(n,"tournamentid",e[2]),s.set_custom_element_data(n,"tournamenturl",a=(f=e[17])==null?void 0:f.href),s.set_custom_element_data(n,"showdetails","false"),s.set_custom_element_data(n,"showslider","false"),s.set_custom_element_data(n,"showenrolled","true"),s.set_custom_element_data(n,"fullsize",r=!!e[4]),s.set_custom_element_data(n,"loginurl",e[11]),s.set_custom_element_data(n,"loginevent",e[9]),s.set_custom_element_data(n,"registerurl",e[12]),s.set_custom_element_data(n,"registerevent",e[10]),s.set_custom_element_data(n,"clientstyling",e[15]),s.set_custom_element_data(n,"clientstylingurl",e[16]),s.set_custom_element_data(n,"translationurl",e[7]),s.set_custom_element_data(n,"lang",e[5]),s.set_custom_element_data(n,"currency",e[6]),s.set_custom_element_data(n,"mbsource",e[8]),s.set_custom_element_data(n,"keepbrowsercontext",e[14]),s.set_custom_element_data(n,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, Games, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
16
+ `,Je+=_e):Z==="id"?kt=_e:Z==="event"?Ne=_e:Z==="retry"?(k=Ze(_e,k),F=k):Z==="heartbeatTimeout"&&(P=Ze(_e,P),me!==0&&(r(me),me=a(function(){at()},P)))}if(we===le){if(Je!==""){X=kt,Ne===""&&(Ne="message");var Re=new Be(Ne,{data:Je.slice(1),lastEventId:kt});if(u.dispatchEvent(Re),Ne==="open"?x(u,u.onopen,Re):Ne==="message"?x(u,u.onmessage,Re):Ne==="error"&&x(u,u.onerror,Re),he===K)return}Je="",Ne=""}we=M===13?He:le}else we===le&&(Et=R,we=ce),we===ce?M===58&&(nt=R+1,we=ie):we===ie&&(we=N)}}},qt=function(oe){if(he===Ce||he===ke){he=Ae,me!==0&&(r(me),me=0),me=a(function(){at()},F),F=v(Math.min(k*16,F*2)),u.readyState=ke;var l=new qe("error",{error:oe});u.dispatchEvent(l),x(u,u.onerror,l),oe!=null&&console.error(oe)}},Ft=function(){he=K,De!=null&&(De.abort(),De=void 0),me!==0&&(r(me),me=0),u.readyState=K},at=function(){if(me=0,he!==Ae){if(!z&&De!=null)qt(new Error("No activity within "+P+" milliseconds. "+(he===ke?"No response received.":A+" chars received.")+" Reconnecting.")),De!=null&&(De.abort(),De=void 0);else{var oe=Math.max((z||Date.now())+P-Date.now(),1);z=!1,me=a(function(){at()},oe)}return}z=!1,A=0,me=a(function(){at()},P),he=ke,Je="",Ne="",kt=X,yt="",Et=0,nt=0,we=le;var l=h;if(h.slice(0,5)!=="data:"&&h.slice(0,5)!=="blob:"&&X!==""){var b=h.indexOf("?");l=b===-1?h:h.slice(0,b+1)+h.slice(b+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(_e,Re){return Re===C?"":_e}),l+=(h.indexOf("?")===-1?"?":"&")+C+"="+encodeURIComponent(X)}var M=u.withCredentials,L={};L.Accept="text/event-stream";var R=u.headers;if(R!=null)for(var Z in R)Object.prototype.hasOwnProperty.call(R,Z)&&(L[Z]=R[Z]);try{De=mt.open(Fe,yn,wn,qt,l,M,L)}catch(_e){throw Ft(),_e}};u.url=h,u.readyState=ke,u.withCredentials=g,u.headers=O,u._close=Ft,at()}re.prototype=Object.create(Ye.prototype),re.prototype.CONNECTING=ke,re.prototype.OPEN=Ce,re.prototype.CLOSED=K,re.prototype.close=function(){this._close()},re.CONNECTING=ke,re.OPEN=Ce,re.CLOSED=K,re.prototype.withCredentials=void 0;var Mt=c;i!=null&&(c==null||!("withCredentials"in c.prototype))&&(Mt=re),function(u){{var h=u(t);h!==void 0&&(e.exports=h)}}(function(u){u.EventSourcePolyfill=re,u.NativeEventSource=c,u.EventSource=Mt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:s.commonjsGlobal:globalThis)})(xn,xn.exports);var ia=xn.exports;if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsDetails-BKF6dVBp.cjs")).then(t=>t.CasinoTournamentsDetails_ce).then(({default:t})=>{!customElements.get("casino-tournaments-details")&&customElements.define("casino-tournaments-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-CDuwNdEC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTable-DKQ-XAvr.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-table")&&customElements.define("casino-tournaments-table",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-DZVmJO5J.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailRule-Bwo5PEJo.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-rule")&&customElements.define("casino-tournaments-thumbnail-rule",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsRank-bXoi8aik.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGames-BUOHTXRf.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games")&&customElements.define("casino-tournaments-thumbnail-games",t.element)})}function gl(e){s.append_styles(e,"svelte-13zmxk7",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:var(--emw--color-contrast, #07072A);width:100%;color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:row}.TournamentsPage .hidden{display:none}.TournamentsPage.MiniMode{flex-direction:column}.TournamentsSectionWrapper{padding:24px 0;width:100%}@media screen and (max-width: 1300px){.TournamentsSectionWrapper{padding:24px 2.4%}}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.NavButtons{margin-left:auto;gap:10px;display:flex}.PrevButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);width:105px;height:36px;padding:10px;font-size:16px;cursor:pointer}.NextButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);padding:10px;width:75px;height:36px;font-size:16px;cursor:pointer}.TournamentsPage.MiniMode .TournamentContentDetails.MobileClass .TabContent.Games .GamesTabNav{width:80%}.TournamentContentDetails{display:flex;gap:10px;width:100%}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentContentDetails .LeaderboardSectionWrapper{display:flex;flex-direction:column;width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .PageTabNav{max-width:600px;min-height:38px}.TournamentContentDetails .LeaderboardSectionWrapper .GamesTabNav{max-width:300px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Rules{max-width:800px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games{padding-bottom:30px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.OneGame{width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg.ball,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentCardDetails{width:var(--emw--tournament-thumbnail-width, 35%)}.TournamentCardDetails.MobileClass{width:100%}.TournamentTableDetails{flex:auto}.TournamentsPage.MiniMode{height:max-content}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails{padding:5px 5px 0px 5px;background-color:#333333;padding-bottom:12px}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails casino-tournaments-rank{display:block}.TournamentsPage.MiniMode .CloseButton{position:absolute;right:3px;top:3px;font-size:11px;cursor:pointer}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank),.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){color:#0a0c19;font-size:12px;margin:0px 0px 0px 5px;padding:2px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank){margin-left:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){margin-right:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(RankText),.TournamentsPage.MiniMode casino-tournaments-rank::part(PrizeText){font-weight:400}.TournamentsPage.MiniMode casino-tournaments-thumbnail-controller::part(TournamentCard){padding:5px 5px 0px 5px;background-color:#333333}.TournamentsPage.MiniMode casino-tournaments-tab::part(LiText){height:22px;top:calc(50% - 11px);font-style:normal;font-weight:600;font-size:14px;line-height:22px;text-align:center;letter-spacing:-0.1px}.TournamentsPage.MiniMode casino-tournaments-tab::part(CustomStylingContainer){margin-top:0px;cursor:pointer}.TournamentsPage.MiniMode .TabContent,.TournamentsPage.MiniMode casino-tournaments-tab{padding:0 16px}.TournamentsPage.MiniMode .TabContent.Rules{padding-bottom:28px}.TournamentsPage.MiniMode .TabContent.Games{padding-bottom:30px}.TournamentsPage.MiniMode .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentsPage.MiniMode .TabContent.Games .GameItems.OneGame{width:100%}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentsPage.MiniMode .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg.ball,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentsPage.MiniMode .TabContent.Games .GamesTabNav{width:50%}.TournamentsPage.MiniMode .BottomButton{font-weight:600;font-size:15px;text-align:center;height:35px;width:60%;margin:20px auto;align-items:center;padding:8.72351px 12.6887px;background:#FF8364;box-shadow:0px 0.793047px 2.37914px rgba(0, 0, 0, 0.1), 0px 1.58609px 0.793047px rgba(0, 0, 0, 0.06), 0px 0.793047px 0.793047px rgba(0, 0, 0, 0.07);border-radius:4.75828px}.TournamentsPage.MiniMode .Thumbnail{position:relative}.TournamentsPage.MiniMode .Thumbnail.Mobile{border:0px none;padding:6px 5px 10px;background:#333333}.TournamentsPage.MiniMode .Thumbnail.MiniMode .CardImg{margin-bottom:5px;width:65px;height:40px}.TournamentsPage.MiniMode .Thumbnail .CardImg{height:300px;width:100%;background:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:auto}.TournamentsPage.MiniMode .Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.TournamentsPage.MiniMode .Thumbnail .CardImg.Mobile{width:65px;height:40px;display:inline-block}.TournamentsPage.MiniMode .Thumbnail .MobileRight{display:inline-block;line-height:20px;font-size:11px;padding:2px 3px;vertical-align:top;width:calc(100% - 70px)}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title{text-transform:capitalize;font-size:var(--emw--font-size-medium, 14px);font-weight:600;background-color:transparent;height:fit-content;margin-bottom:initial}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title.Skeleton{height:var(--emw-skeleton-title-height, 30px)}.TournamentsPage.MiniMode .Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.TournamentsPage.MiniMode .Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}')}function oa(e,t,n){const a=e.slice();return a[85]=t[n],a}function la(e,t,n){const a=e.slice();return a[85]=t[n],a}function ua(e){let t,n=e[19]("loading")+"",a;return{c(){t=s.element("p"),a=s.text(n),s.attr(t,"class","LoadingMessage"),s.attr(t,"part","LoadingMessage")},m(r,i){s.insert(r,t,i),s.append(t,a)},p(r,i){i[0]&524288&&n!==(n=r[19]("loading")+"")&&s.set_data(a,n)},d(r){r&&s.detach(t)}}}function pl(e){let t,n,a,r=!e[17]&&da(),i=e[17]&&fa(e);return{c(){t=s.element("div"),r&&r.c(),n=s.space(),i&&i.c(),s.attr(t,"class",a=(s.isMobile(e[30])?"MobileClass":"")+(e[4]=="true"?" TournamentCardDetails":" FullSize")),s.attr(t,"part","MobileTournamentCardDetails")},m(o,d){s.insert(o,t,d),r&&r.m(t,null),s.append(t,n),i&&i.m(t,null)},p(o,d){o[17]?r&&(r.d(1),r=null):r||(r=da(),r.c(),r.m(t,n)),o[17]?i?i.p(o,d):(i=fa(o),i.c(),i.m(t,null)):i&&(i.d(1),i=null),d[0]&16&&a!==(a=(s.isMobile(o[30])?"MobileClass":"")+(o[4]=="true"?" TournamentCardDetails":" FullSize"))&&s.attr(t,"class",a)},d(o){o&&s.detach(t),r&&r.d(),i&&i.d()}}}function yl(e){let t,n,a,r,i,o,d,c=e[22].length>0&&ma(e);return{c(){var f;t=s.element("div"),n=s.element("casino-tournaments-thumbnail-controller"),i=s.space(),c&&c.c(),s.set_custom_element_data(n,"session",e[0]),s.set_custom_element_data(n,"userid",e[1]),s.set_custom_element_data(n,"endpoint",e[3]),s.set_custom_element_data(n,"tournamentid",e[2]),s.set_custom_element_data(n,"tournamenturl",a=(f=e[17])==null?void 0:f.href),s.set_custom_element_data(n,"showdetails","false"),s.set_custom_element_data(n,"showslider","false"),s.set_custom_element_data(n,"showenrolled","true"),s.set_custom_element_data(n,"fullsize",r=!!e[4]),s.set_custom_element_data(n,"loginurl",e[11]),s.set_custom_element_data(n,"loginevent",e[9]),s.set_custom_element_data(n,"registerurl",e[12]),s.set_custom_element_data(n,"registerevent",e[10]),s.set_custom_element_data(n,"clientstyling",e[15]),s.set_custom_element_data(n,"clientstylingurl",e[16]),s.set_custom_element_data(n,"translationurl",e[7]),s.set_custom_element_data(n,"lang",e[5]),s.set_custom_element_data(n,"currency",e[6]),s.set_custom_element_data(n,"mbsource",e[8]),s.set_custom_element_data(n,"keepbrowsercontext",e[14]),s.set_custom_element_data(n,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, Games, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
17
17
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
18
18
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
19
19
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`),s.attr(t,"class",o=(s.isMobile(e[30])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize")),s.attr(t,"part",d=(s.isMobile(e[30])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize"))},m(f,p){s.insert(f,t,p),s.append(t,n),s.append(t,i),c&&c.m(t,null)},p(f,p){var W;p[0]&1&&s.set_custom_element_data(n,"session",f[0]),p[0]&2&&s.set_custom_element_data(n,"userid",f[1]),p[0]&8&&s.set_custom_element_data(n,"endpoint",f[3]),p[0]&4&&s.set_custom_element_data(n,"tournamentid",f[2]),p[0]&131072&&a!==(a=(W=f[17])==null?void 0:W.href)&&s.set_custom_element_data(n,"tournamenturl",a),p[0]&16&&r!==(r=!!f[4])&&s.set_custom_element_data(n,"fullsize",r),p[0]&2048&&s.set_custom_element_data(n,"loginurl",f[11]),p[0]&512&&s.set_custom_element_data(n,"loginevent",f[9]),p[0]&4096&&s.set_custom_element_data(n,"registerurl",f[12]),p[0]&1024&&s.set_custom_element_data(n,"registerevent",f[10]),p[0]&32768&&s.set_custom_element_data(n,"clientstyling",f[15]),p[0]&65536&&s.set_custom_element_data(n,"clientstylingurl",f[16]),p[0]&128&&s.set_custom_element_data(n,"translationurl",f[7]),p[0]&32&&s.set_custom_element_data(n,"lang",f[5]),p[0]&64&&s.set_custom_element_data(n,"currency",f[6]),p[0]&256&&s.set_custom_element_data(n,"mbsource",f[8]),p[0]&16384&&s.set_custom_element_data(n,"keepbrowsercontext",f[14]),f[22].length>0?c?c.p(f,p):(c=ma(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),p[0]&16&&o!==(o=(s.isMobile(f[30])?"MobileClass":"")+(f[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"class",o),p[0]&16&&d!==(d=(s.isMobile(f[30])?"MobileClass":"")+(f[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"part",d)},d(f){f&&s.detach(t),c&&c.d()}}}function da(e){let t,n,a;return{c(){t=s.element("div"),t.innerHTML='<ui-skeleton class="Mobile CardImg" structure="rectangle" width="65px" height="40px"></ui-skeleton> <div class="MobileRight" part="ThumbnailRight"><ui-skeleton structure="text" width="100%" height="18px"></ui-skeleton> <ui-skeleton structure="text" width="100%" height="12px" margin-top="5px"></ui-skeleton></div>',n=s.space(),a=s.element("div"),a.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="26px"></ui-skeleton>',s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.attr(a,"class","TournamentsRank"),s.attr(a,"part","TournamentsRank")},m(r,i){s.insert(r,t,i),s.insert(r,n,i),s.insert(r,a,i)},d(r){r&&(s.detach(t),s.detach(n),s.detach(a))}}}function fa(e){let t,n,a,r,i=e[17].nameOrTitle+"",o,d,c,f,p,W,D,ne,ge,pe,J;function Me(S,V){return S[17].thumbnail?bl:wl}let Q=Me(e),j=Q(e),U=e[17].startTime&&ca(e);return{c(){t=s.element("div"),j.c(),n=s.space(),a=s.element("div"),r=s.element("div"),o=s.text(i),d=s.space(),c=s.element("div"),U&&U.c(),f=s.space(),p=s.element("div"),p.textContent="X",W=s.space(),D=s.element("casino-tournaments-rank"),s.attr(r,"class","Title"),s.attr(r,"part","ThumbnailRight_Title"),s.attr(c,"part","ThumbnailRight_Period"),s.attr(a,"class","MobileRight"),s.attr(a,"part","ThumbnailRight"),s.attr(p,"class","CloseButton"),s.attr(p,"part","CloseButton"),s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.set_custom_element_data(D,"part","ThumbnailRank"),s.set_custom_element_data(D,"userrank",ne=e[25]?e[24].Rank:e[23].Rank),s.set_custom_element_data(D,"overallrank",e[27]),s.set_custom_element_data(D,"prize",ge=e[25]?e[24].Prize||"-":e[23].Prize||"-"),s.set_custom_element_data(D,"tournamentid",e[2]),s.set_custom_element_data(D,"exportparts","casino-tournaments-rank, Rank, Icon, UserIcon, RankText, Rank_Arror_UP, Rank_Arror_Down, Prize, Icon, PrizeIcon, PrizeText"),s.set_custom_element_data(D,"clientstyling",e[15]),s.set_custom_element_data(D,"clientstylingurl",e[16]),s.set_custom_element_data(D,"translationurl",e[7]),s.set_custom_element_data(D,"mbsource",e[8])},m(S,V){s.insert(S,t,V),j.m(t,null),s.append(t,n),s.append(t,a),s.append(a,r),s.append(r,o),s.append(a,d),s.append(a,c),U&&U.m(c,null),s.append(t,f),s.append(t,p),s.insert(S,W,V),s.insert(S,D,V),pe||(J=s.listen(p,"click",e[33]),pe=!0)},p(S,V){Q===(Q=Me(S))&&j?j.p(S,V):(j.d(1),j=Q(S),j&&(j.c(),j.m(t,n))),V[0]&131072&&i!==(i=S[17].nameOrTitle+"")&&s.set_data(o,i),S[17].startTime?U?U.p(S,V):(U=ca(S),U.c(),U.m(c,null)):U&&(U.d(1),U=null),V[0]&58720256&&ne!==(ne=S[25]?S[24].Rank:S[23].Rank)&&s.set_custom_element_data(D,"userrank",ne),V[0]&134217728&&s.set_custom_element_data(D,"overallrank",S[27]),V[0]&58720256&&ge!==(ge=S[25]?S[24].Prize||"-":S[23].Prize||"-")&&s.set_custom_element_data(D,"prize",ge),V[0]&4&&s.set_custom_element_data(D,"tournamentid",S[2]),V[0]&32768&&s.set_custom_element_data(D,"clientstyling",S[15]),V[0]&65536&&s.set_custom_element_data(D,"clientstylingurl",S[16]),V[0]&128&&s.set_custom_element_data(D,"translationurl",S[7]),V[0]&256&&s.set_custom_element_data(D,"mbsource",S[8])},d(S){S&&(s.detach(t),s.detach(W),s.detach(D)),j.d(),U&&U.d(),pe=!1,J()}}}function wl(e){let t,n,a,r,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="CardImg "+(e[17].state=="Closing"||e[17].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,a="https://i.stack.imgur.com/y9DpT.jpg")||s.attr(t,"src",a),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",r=e[17].nameOrTitle)},m(d,c){s.insert(d,t,c),i||(o=s.action_destroyer(e[31].call(null,t)),i=!0)},p(d,c){c[0]&131072&&n!==(n="CardImg "+(d[17].state=="Closing"||d[17].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),c[0]&131072&&r!==(r=d[17].nameOrTitle)&&s.attr(t,"title",r)},d(d){d&&s.detach(t),i=!1,o()}}}function bl(e){let t,n,a,r,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="Mobile CardImg "+(e[17].state=="Closing"||e[17].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,a=e[17].thumbnail)||s.attr(t,"src",a),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",r=e[17].nameOrTitle)},m(d,c){s.insert(d,t,c),i||(o=s.action_destroyer(e[31].call(null,t)),i=!0)},p(d,c){c[0]&131072&&n!==(n="Mobile CardImg "+(d[17].state=="Closing"||d[17].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),c[0]&131072&&!s.src_url_equal(t.src,a=d[17].thumbnail)&&s.attr(t,"src",a),c[0]&131072&&r!==(r=d[17].nameOrTitle)&&s.attr(t,"title",r)},d(d){d&&s.detach(t),i=!1,o()}}}function ca(e){let t=e[19]("activePeriod",{values:{startdate:_(e[17].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(e[17].endTime).format("DD/MM/YYYY HH:mm")}})+"",n;return{c(){n=s.text(t)},m(a,r){s.insert(a,n,r)},p(a,r){r[0]&655360&&t!==(t=a[19]("activePeriod",{values:{startdate:_(a[17].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(a[17].endTime).format("DD/MM/YYYY HH:mm")}})+"")&&s.set_data(n,t)},d(a){a&&s.detach(n)}}}function ma(e){let t,n=s.ensure_array_like(e[22]),a=[];for(let r=0;r<n.length;r+=1)a[r]=ha(la(e,n,r));return{c(){for(let r=0;r<a.length;r+=1)a[r].c();t=s.empty()},m(r,i){for(let o=0;o<a.length;o+=1)a[o]&&a[o].m(r,i);s.insert(r,t,i)},p(r,i){if(i[0]&4292864){n=s.ensure_array_like(r[22]);let o;for(o=0;o<n.length;o+=1){const d=la(r,n,o);a[o]?a[o].p(d,i):(a[o]=ha(d),a[o].c(),a[o].m(t.parentNode,t))}for(;o<a.length;o+=1)a[o].d(1);a.length=n.length}},d(r){r&&s.detach(t),s.destroy_each(a,r)}}}function ha(e){let t,n,a;return{c(){t=s.element("casino-tournaments-details"),s.set_custom_element_data(t,"title",n=e[85].title),s.set_custom_element_data(t,"text",a=e[85].description),s.set_custom_element_data(t,"exportparts","DetailsCard, DetailsTitle, Title, CollapseButtonDetails, DetailsContent"),s.set_custom_element_data(t,"clientstyling",e[15]),s.set_custom_element_data(t,"clientstylingurl",e[16]),s.set_custom_element_data(t,"mbsource",e[8])},m(r,i){s.insert(r,t,i)},p(r,i){i[0]&4194304&&n!==(n=r[85].title)&&s.set_custom_element_data(t,"title",n),i[0]&4194304&&a!==(a=r[85].description)&&s.set_custom_element_data(t,"text",a),i[0]&32768&&s.set_custom_element_data(t,"clientstyling",r[15]),i[0]&65536&&s.set_custom_element_data(t,"clientstylingurl",r[16]),i[0]&256&&s.set_custom_element_data(t,"mbsource",r[8])},d(r){r&&s.detach(t)}}}function _a(e){let t,n,a,r,i,o,d,c;return{c(){var f,p;t=s.element("casino-tournaments-thumbnail-rule"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"tcurl",n=e[17].termsUrl||"#"),s.set_custom_element_data(t,"scorecriterial",a=e[17].scoreCriteria),s.set_custom_element_data(t,"betcount",e[29]),s.set_custom_element_data(t,"starttime",r=_(e[17].startTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"endtime",i=_(e[17].endTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"sportswallet",o=(f=e[17].wallet)==null?void 0:f.sports),s.set_custom_element_data(t,"casinowallet",d=(p=e[17].wallet)==null?void 0:p.casino),s.set_custom_element_data(t,"exportparts","casino-tournaments-thumbnail-rule, rule, RuleIcon, RuleTxt"),s.set_custom_element_data(t,"clientstyling",e[15]),s.set_custom_element_data(t,"minscore",c=e[17].minimumScore),s.set_custom_element_data(t,"clientstylingurl",e[16]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8])},m(f,p){s.insert(f,t,p)},p(f,p){var W,D;p[0]&32&&s.set_custom_element_data(t,"lang",f[5]),p[0]&131072&&n!==(n=f[17].termsUrl||"#")&&s.set_custom_element_data(t,"tcurl",n),p[0]&131072&&a!==(a=f[17].scoreCriteria)&&s.set_custom_element_data(t,"scorecriterial",a),p[0]&536870912&&s.set_custom_element_data(t,"betcount",f[29]),p[0]&131072&&r!==(r=_(f[17].startTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"starttime",r),p[0]&131072&&i!==(i=_(f[17].endTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"endtime",i),p[0]&131072&&o!==(o=(W=f[17].wallet)==null?void 0:W.sports)&&s.set_custom_element_data(t,"sportswallet",o),p[0]&131072&&d!==(d=(D=f[17].wallet)==null?void 0:D.casino)&&s.set_custom_element_data(t,"casinowallet",d),p[0]&32768&&s.set_custom_element_data(t,"clientstyling",f[15]),p[0]&131072&&c!==(c=f[17].minimumScore)&&s.set_custom_element_data(t,"minscore",c),p[0]&65536&&s.set_custom_element_data(t,"clientstylingurl",f[16]),p[0]&128&&s.set_custom_element_data(t,"translationurl",f[7]),p[0]&256&&s.set_custom_element_data(t,"mbsource",f[8])},d(f){f&&s.detach(t)}}}function ga(e){let t,n=s.ensure_array_like(e[22]),a=[];for(let r=0;r<n.length;r+=1)a[r]=pa(oa(e,n,r));return{c(){for(let r=0;r<a.length;r+=1)a[r].c();t=s.empty()},m(r,i){for(let o=0;o<a.length;o+=1)a[o]&&a[o].m(r,i);s.insert(r,t,i)},p(r,i){if(i[0]&4292864){n=s.ensure_array_like(r[22]);let o;for(o=0;o<n.length;o+=1){const d=oa(r,n,o);a[o]?a[o].p(d,i):(a[o]=pa(d),a[o].c(),a[o].m(t.parentNode,t))}for(;o<a.length;o+=1)a[o].d(1);a.length=n.length}},d(r){r&&s.detach(t),s.destroy_each(a,r)}}}function pa(e){let t,n,a;return{c(){t=s.element("casino-tournaments-details"),s.set_custom_element_data(t,"title",n=e[85].title),s.set_custom_element_data(t,"text",a=e[85].description),s.set_custom_element_data(t,"clientstyling",e[15]),s.set_custom_element_data(t,"clientstylingurl",e[16]),s.set_custom_element_data(t,"mbsource",e[8])},m(r,i){s.insert(r,t,i)},p(r,i){i[0]&4194304&&n!==(n=r[85].title)&&s.set_custom_element_data(t,"title",n),i[0]&4194304&&a!==(a=r[85].description)&&s.set_custom_element_data(t,"text",a),i[0]&32768&&s.set_custom_element_data(t,"clientstyling",r[15]),i[0]&65536&&s.set_custom_element_data(t,"clientstylingurl",r[16]),i[0]&256&&s.set_custom_element_data(t,"mbsource",r[8])},d(r){r&&s.detach(t)}}}function ya(e){let t;return{c(){t=s.element("casino-tournaments-thumbnail-games"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"clientstyling",e[15]),s.set_custom_element_data(t,"clientstylingurl",e[16]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8])},m(n,a){s.insert(n,t,a)},p(n,a){a[0]&32&&s.set_custom_element_data(t,"lang",n[5]),a[0]&32768&&s.set_custom_element_data(t,"clientstyling",n[15]),a[0]&65536&&s.set_custom_element_data(t,"clientstylingurl",n[16]),a[0]&128&&s.set_custom_element_data(t,"translationurl",n[7]),a[0]&256&&s.set_custom_element_data(t,"mbsource",n[8])},d(n){n&&s.detach(t)}}}function wa(e){let t,n=e[19]("forwardMyTournaments")+"",a,r,i;return{c(){t=s.element("div"),a=s.text(n),s.attr(t,"class","BottomButton"),s.attr(t,"part","ThumbnailGotoTournamentsButton")},m(o,d){s.insert(o,t,d),s.append(t,a),r||(i=s.listen(t,"click",e[34].bind(this,"MyTournaments")),r=!0)},p(o,d){d[0]&524288&&n!==(n=o[19]("forwardMyTournaments")+"")&&s.set_data(a,n)},d(o){o&&s.detach(t),r=!1,i()}}}function vl(e){var Oe,Ze;let t,n,a,r,i,o,d,c,f,p=e[19]("back")+"",W,D,ne,ge,pe,J,Me,Q,j,U,S,V,et,fe,Ue,Ye,ct,ye,Be,tt,qe,Ae,ke,Ce,K=e[21]&&ua(e);function He(v,x){return v[28]?pl:yl}let le=He(e),ce=le(e),ie=e[17]&&_a(e),N=e[28]&&((Oe=e[22])==null?void 0:Oe.length)>0&&ga(e),ue=((Ze=e[17])==null?void 0:Ze.games)&&ya(e),ae=e[28]&&e[20]&&wa(e);return{c(){K&&K.c(),t=s.space(),n=s.element("div"),a=s.element("div"),r=s.element("div"),i=s.element("div"),o=s.svg_element("svg"),d=s.svg_element("path"),c=s.space(),f=s.element("p"),W=s.text(p),D=s.space(),ne=s.element("div"),ce.c(),ge=s.space(),pe=s.element("div"),J=s.element("div"),Me=s.element("div"),Q=s.element("casino-tournaments-tab"),j=s.space(),U=s.element("div"),S=s.element("casino-tournaments-table"),et=s.space(),fe=s.element("div"),ie&&ie.c(),Ue=s.space(),N&&N.c(),ct=s.space(),ye=s.element("div"),ue&&ue.c(),tt=s.space(),ae&&ae.c(),s.attr(d,"stroke-linecap","round"),s.attr(d,"stroke-linejoin","round"),s.attr(d,"stroke-width","2"),s.attr(d,"d","M15 19l-7-7 7-7"),s.attr(o,"fill","none"),s.attr(o,"stroke","currentColor"),s.attr(o,"width","24"),s.attr(o,"height","24"),s.attr(o,"viewBox","0 0 24 24"),s.attr(o,"xmlns","http://www.w3.org/2000/svg"),s.attr(i,"class","BackButton"),s.attr(i,"part","BackButton"),s.attr(r,"class","TopButtons"),s.attr(r,"part","TopButtons"),s.set_custom_element_data(Q,"part","ThumbnailTab"),s.set_custom_element_data(Q,"tabs",e[13]),s.set_custom_element_data(Q,"tab","leaderboard"),s.set_custom_element_data(Q,"tid",fr),s.set_custom_element_data(Q,"exportparts","CustomStylingContainer, ul, li, LiText, sup, SupText, active"),s.set_custom_element_data(Q,"clientstyling",e[15]),s.set_custom_element_data(Q,"clientstylingurl",e[16]),s.set_custom_element_data(Q,"mbsource",e[8]),s.attr(Me,"class","PageTabNav"),s.set_custom_element_data(S,"firstrow","true"),s.set_custom_element_data(S,"sortable","false"),s.set_custom_element_data(S,"lang",e[5]),s.set_custom_element_data(S,"clientstyling",e[15]),s.set_custom_element_data(S,"clientstylingurl",e[16]),s.set_custom_element_data(S,"translationurl",e[7]),s.set_custom_element_data(S,"mbsource",e[8]),s.set_custom_element_data(S,"exportparts",`TableContent, TableUser, TableHeadRow, TableCell, CurrentUserRow, UnqualifiedRow, TableRank, Rank-1, Rank-2, Rank-3, RankFirstRow, TablePlayer, TablePoints, TablePrize, Qualified, TableUserTooltips, TableUserTooltipsEm, ExclamationMark,
@@ -3211,7 +3211,7 @@ if (typeof window < "u") {
3211
3211
  }
3212
3212
  };
3213
3213
  };
3214
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-Bn1kwbTF.js").then(
3214
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-DHRuOoEG.js").then(
3215
3215
  ({ default: t }) => {
3216
3216
  !customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
3217
3217
  "casino-tournaments-thumbnail-controller",
@@ -3211,7 +3211,7 @@ if (typeof window != "undefined") {
3211
3211
  }
3212
3212
  };
3213
3213
  };
3214
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController--16tE-nD.js").then(
3214
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-Br50OLcE.js").then(
3215
3215
  ({ default: t }) => {
3216
3216
  !customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
3217
3217
  "casino-tournaments-thumbnail-controller",
@@ -14,19 +14,19 @@ var ae = (r, e, t) => new Promise((n, o) => {
14
14
  }, f = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(s, a);
15
15
  f((t = t.apply(r, e)).next());
16
16
  });
17
- import { $ as ue, a as Xe, b as Ve, S as Ze, i as Qe, s as Ye, f as _, e as $e, n as Y, g as w, j as l, k as g, l as b, m as T, q as F, p as B, v as et, w as tt, A as je, B as nt, z as fe, D as rt, h as D, t as C, I as it, o as R, J as me, r as L, F as ot, G as st, H as lt, d as at, E as ut } from "./CasinoTournamentsDetails-C1mJ95qJ.js";
17
+ import { $ as ue, a as Xe, b as Ve, S as Ze, i as Qe, s as Ye, f as _, e as $e, n as Y, g as w, j as l, k as g, l as b, m as T, q as F, p as B, v as et, w as tt, A as Ce, B as nt, z as fe, D as rt, h as D, t as C, I as it, o as R, J as me, r as L, F as ot, G as st, H as lt, d as at, E as ut } from "./CasinoTournamentsDetails-C1mJ95qJ.js";
18
18
  function ft({ withLocale: r, translations: e }) {
19
19
  ue.subscribe((t) => {
20
20
  t == null && (Xe.set(e), ue.set(r));
21
21
  });
22
22
  }
23
- function Ce(r, e) {
23
+ function De(r, e) {
24
24
  Ve(r, e);
25
25
  }
26
26
  function mt(r) {
27
27
  ue.set(r);
28
28
  }
29
- const De = {
29
+ const Le = {
30
30
  en: {
31
31
  login: "Log in",
32
32
  register: "Register",
@@ -194,7 +194,7 @@ function dt(r) {
194
194
  function ct(r) {
195
195
  let e, t, n, o, s, a, f, m = (
196
196
  /*tourid*/
197
- r[25] && Le(r)
197
+ r[25] && Pe(r)
198
198
  );
199
199
  function p(c, k) {
200
200
  if (!/*isLoggedIn*/
@@ -215,10 +215,10 @@ function ct(r) {
215
215
  let h = p(r), u = h && h(r), d = (
216
216
  /*errorJoin*/
217
217
  (r[18] || /*errorJoinConcurrently*/
218
- r[20]) && Me(r)
218
+ r[20]) && Ie(r)
219
219
  ), v = (
220
220
  /*showslider*/
221
- r[3] == "true" && Ie(r)
221
+ r[3] == "true" && Je(r)
222
222
  );
223
223
  return {
224
224
  c() {
@@ -269,7 +269,7 @@ function ct(r) {
269
269
  },
270
270
  p(c, k) {
271
271
  /*tourid*/
272
- c[25] ? m ? m.p(c, k) : (m = Le(c), m.c(), m.m(e.parentNode, e)) : m && (m.d(1), m = null), k[0] & /*clientstyling*/
272
+ c[25] ? m ? m.p(c, k) : (m = Pe(c), m.c(), m.m(e.parentNode, e)) : m && (m.d(1), m = null), k[0] & /*clientstyling*/
273
273
  1024 && l(
274
274
  t,
275
275
  "clientstyling",
@@ -319,8 +319,8 @@ function ct(r) {
319
319
  c[23]
320
320
  ), h === (h = p(c)) && u ? u.p(c, k) : (u && u.d(1), u = h && h(c), u && (u.c(), u.m(o, null))), /*errorJoin*/
321
321
  c[18] || /*errorJoinConcurrently*/
322
- c[20] ? d ? d.p(c, k) : (d = Me(c), d.c(), d.m(a.parentNode, a)) : d && (d.d(1), d = null), /*showslider*/
323
- c[3] == "true" ? v ? v.p(c, k) : (v = Ie(c), v.c(), v.m(f.parentNode, f)) : v && (v.d(1), v = null);
322
+ c[20] ? d ? d.p(c, k) : (d = Ie(c), d.c(), d.m(a.parentNode, a)) : d && (d.d(1), d = null), /*showslider*/
323
+ c[3] == "true" ? v ? v.p(c, k) : (v = Je(c), v.c(), v.m(f.parentNode, f)) : v && (v.d(1), v = null);
324
324
  },
325
325
  d(c) {
326
326
  c && (w(e), w(t), w(n), w(o), w(s), w(a), w(f)), m && m.d(c), u && u.d(), d && d.d(c), v && v.d(c);
@@ -342,7 +342,7 @@ function gt(r) {
342
342
  }
343
343
  };
344
344
  }
345
- function Le(r) {
345
+ function Pe(r) {
346
346
  let e, t, n, o;
347
347
  return {
348
348
  c() {
@@ -463,7 +463,7 @@ function ht(r) {
463
463
  function pt(r) {
464
464
  let e, t, n = (
465
465
  /*showdetails*/
466
- r[2] == "true" && Pe(r)
466
+ r[2] == "true" && Ae(r)
467
467
  );
468
468
  function o(f, m) {
469
469
  return (
@@ -481,7 +481,7 @@ function pt(r) {
481
481
  },
482
482
  p(f, m) {
483
483
  /*showdetails*/
484
- f[2] == "true" ? n ? n.p(f, m) : (n = Pe(f), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s === (s = o(f)) && a ? a.p(f, m) : (a.d(1), a = s(f), a && (a.c(), a.m(t.parentNode, t)));
484
+ f[2] == "true" ? n ? n.p(f, m) : (n = Ae(f), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s === (s = o(f)) && a ? a.p(f, m) : (a.d(1), a = s(f), a && (a.c(), a.m(t.parentNode, t)));
485
485
  },
486
486
  d(f) {
487
487
  f && (w(e), w(t)), n && n.d(f), a.d(f);
@@ -528,7 +528,7 @@ function wt(r) {
528
528
  }
529
529
  };
530
530
  }
531
- function Pe(r) {
531
+ function Ae(r) {
532
532
  let e, t = (
533
533
  /*$_*/
534
534
  r[33]("details") + ""
@@ -604,7 +604,7 @@ function bt(r) {
604
604
  function kt(r) {
605
605
  let e, t = (
606
606
  /*showdetails*/
607
- r[2] == "true" && Ae(r)
607
+ r[2] == "true" && Me(r)
608
608
  );
609
609
  return {
610
610
  c() {
@@ -615,7 +615,7 @@ function kt(r) {
615
615
  },
616
616
  p(n, o) {
617
617
  /*showdetails*/
618
- n[2] == "true" ? t ? t.p(n, o) : (t = Ae(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
618
+ n[2] == "true" ? t ? t.p(n, o) : (t = Me(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
619
619
  },
620
620
  d(n) {
621
621
  n && w(e), t && t.d(n);
@@ -659,7 +659,7 @@ function yt(r) {
659
659
  }
660
660
  };
661
661
  }
662
- function Ae(r) {
662
+ function Me(r) {
663
663
  let e, t = (
664
664
  /*$_*/
665
665
  r[33]("enrolled") + ""
@@ -681,7 +681,7 @@ function Ae(r) {
681
681
  }
682
682
  };
683
683
  }
684
- function Me(r) {
684
+ function Ie(r) {
685
685
  let e, t = (
686
686
  /*$_*/
687
687
  r[33]("joinerror") + ""
@@ -711,10 +711,10 @@ function Me(r) {
711
711
  }
712
712
  };
713
713
  }
714
- function Ie(r) {
714
+ function Je(r) {
715
715
  let e, t, n = (
716
716
  /*isLoading*/
717
- r[16] && Je()
717
+ r[16] && Oe()
718
718
  );
719
719
  return {
720
720
  c() {
@@ -755,7 +755,7 @@ function Ie(r) {
755
755
  },
756
756
  p(o, s) {
757
757
  /*isLoading*/
758
- o[16] ? n || (n = Je(), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s[0] & /*clientstyling*/
758
+ o[16] ? n || (n = Oe(), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), s[0] & /*clientstyling*/
759
759
  1024 && l(
760
760
  t,
761
761
  "clientstyling",
@@ -798,7 +798,7 @@ function Ie(r) {
798
798
  }
799
799
  };
800
800
  }
801
- function Je(r) {
801
+ function Oe(r) {
802
802
  let e;
803
803
  return {
804
804
  c() {
@@ -1062,22 +1062,22 @@ function Ft(r, e, t) {
1062
1062
  et(r, ut, (i) => t(33, n = i));
1063
1063
  let { session: o = "" } = e, { userid: s = "" } = e, { tournamenturl: a = "" } = e, { touridx: f } = e, { endpoint: m = "" } = e, { showdetails: p = "" } = e, { showslider: h = "" } = e, { showenrolled: u = "" } = e, { maxwidth: d = "" } = e, { fullsize: v = "" } = e, { lang: c = "" } = e, { loginevent: k = "" } = e, { registerevent: x = "" } = e, { detailsevent: de = "" } = e, { loginurl: U = "" } = e, { registerurl: H = "" } = e, { currency: $ = "" } = e, { keepbrowsercontext: ce = "false" } = e, { clientstyling: N = "" } = e, { clientstylingurl: G = "" } = e, { translationurl: q = "" } = e, { tournamentinfo: W } = e, { mbsource: K } = e, { tournamentid: ee } = e, E, A = !1, X = "", M = !0, ge = window.navigator.userAgent, V = !1, Z = !1, he = "There was an error while trying to join the tournament", te = !1, ne, pe, we, I, j, be, re, ke, _e, ye = [], ie = [], Te = "#", Q = !1;
1064
1064
  ft({ withLocale: "en", translations: {} });
1065
- const Oe = () => {
1065
+ const Re = () => {
1066
1066
  fetch(q).then((y) => y.json()).then((y) => {
1067
1067
  Object.keys(y).forEach((S) => {
1068
- Ce(S, y[S]);
1068
+ De(S, y[S]);
1069
1069
  });
1070
1070
  }).catch((y) => {
1071
1071
  console.log(y);
1072
1072
  });
1073
1073
  };
1074
- Object.keys(De).forEach((i) => {
1075
- Ce(i, De[i]);
1074
+ Object.keys(Le).forEach((i) => {
1075
+ De(i, Le[i]);
1076
1076
  });
1077
1077
  const Fe = (i) => {
1078
- Re(i), oe(i), Se(this, j);
1078
+ xe(i), oe(i), Se(this, j);
1079
1079
  }, ve = (i) => {
1080
- if (i.data && i.data.type == "UserSessionID" && (t(15, A = !0), X = i.data.session), i.data.type == "UpdateTournamentView") {
1080
+ if (i.data && i.data.type == "UserSessionID" && (t(15, A = !0), X = i.data.session, Be(m)), i.data.type == "UpdateTournamentView") {
1081
1081
  let y = i.data.tournamentData;
1082
1082
  if (j && j != y.id)
1083
1083
  return;
@@ -1097,7 +1097,7 @@ function Ft(r, e, t) {
1097
1097
  S + 200
1098
1098
  );
1099
1099
  }
1100
- }, Re = (i) => {
1100
+ }, xe = (i) => {
1101
1101
  i.state != I && (t(24, I = i.state), window.postMessage(
1102
1102
  {
1103
1103
  type: `TournamentStatus_${j}`,
@@ -1105,11 +1105,11 @@ function Ft(r, e, t) {
1105
1105
  },
1106
1106
  window.location.href
1107
1107
  ));
1108
- }, xe = () => {
1108
+ }, Ue = () => {
1109
1109
  k && (window.postMessage({ type: k, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
1110
1110
  context: "TournamentsThumbnailController"
1111
1111
  })), U && (window.location = U);
1112
- }, Ue = () => {
1112
+ }, He = () => {
1113
1113
  x && (window.postMessage(
1114
1114
  {
1115
1115
  type: x,
@@ -1119,7 +1119,7 @@ function Ft(r, e, t) {
1119
1119
  ), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
1120
1120
  context: "TournamentsThumbnailController"
1121
1121
  })), H && (window.location = H);
1122
- }, He = (i) => {
1122
+ }, Ne = (i) => {
1123
1123
  window.postMessage(
1124
1124
  {
1125
1125
  type: "TournamentDetailsClicked",
@@ -1129,7 +1129,7 @@ function Ft(r, e, t) {
1129
1129
  window.location.href
1130
1130
  );
1131
1131
  }, ze = (i, y) => ae(this, null, function* () {
1132
- var Ee;
1132
+ var je;
1133
1133
  t(18, Z = !1), t(20, te = !1), window.postMessage(
1134
1134
  {
1135
1135
  type: "TournamentJoinRequest",
@@ -1138,7 +1138,7 @@ function Ft(r, e, t) {
1138
1138
  window.location.href
1139
1139
  ), t(17, V = !0);
1140
1140
  let S = new URL(`${m}/v1/bonus/claim`), P = new Headers(), se = {};
1141
- S.searchParams.append("language", c), S.searchParams.append("platform", je(ge)), P.append("Content-Type", "application/json"), P.append("X-SessionID", X), y && y.length >= 1 && (se = {
1141
+ S.searchParams.append("language", c), S.searchParams.append("platform", Ce(ge)), P.append("Content-Type", "application/json"), P.append("X-SessionID", X), y && y.length >= 1 && (se = {
1142
1142
  language: c,
1143
1143
  bonusCode: y[0].code,
1144
1144
  currency: $,
@@ -1149,7 +1149,7 @@ function Ft(r, e, t) {
1149
1149
  headers: P,
1150
1150
  body: JSON.stringify(se)
1151
1151
  };
1152
- const Be = () => {
1152
+ const Ee = () => {
1153
1153
  t(17, V = !1), t(27, re = !0);
1154
1154
  }, le = (z) => {
1155
1155
  t(17, V = !1), z && t(19, he = z), t(18, Z = !0);
@@ -1164,10 +1164,10 @@ function Ft(r, e, t) {
1164
1164
  });
1165
1165
  if (O)
1166
1166
  if (O.success == !0)
1167
- Be();
1167
+ Ee();
1168
1168
  else if (O.errorMessage.match("VersionMismatchException")) {
1169
1169
  let z;
1170
- z = yield fetch(`${m}/tournaments/${j}`, { headers: { "X-SessionID": o } }), z = yield z.json(), (Ee = z == null ? void 0 : z.item) != null && Ee.playerEnrolled ? Be() : (le(O.errorMessage), t(20, te = !0), t(18, Z = !1));
1170
+ z = yield fetch(`${m}/tournaments/${j}`, { headers: { "X-SessionID": o } }), z = yield z.json(), (je = z == null ? void 0 : z.item) != null && je.playerEnrolled ? Ee() : (le(O.errorMessage), t(20, te = !0), t(18, Z = !1));
1171
1171
  } else
1172
1172
  le(O.errorMessage);
1173
1173
  }), Se = (i, y) => {
@@ -1180,10 +1180,10 @@ function Ft(r, e, t) {
1180
1180
  );
1181
1181
  }, oe = (i) => {
1182
1182
  i && (t(21, ne = i.nameOrTitle || ""), t(22, pe = i.startTime), t(23, we = i.endTime), t(24, I = i.state), t(25, j = i.id), t(26, be = i.thumbnail), t(27, re = i.playerEnrolled === "true" || i.playerEnrolled == !0 || !1), t(28, ke = i.scoreCriteria), t(29, _e = i.minBetCount), ye = i.prizes, t(30, ie = i.wallets || []), t(31, Te = i.termsUrl || "#"));
1183
- }, Ne = (i) => {
1183
+ }, Be = (i) => {
1184
1184
  t(16, M = !0);
1185
1185
  const y = i ? `${i}/v1/tournaments/${ee}` : a, S = new URL(y), P = new Headers();
1186
- S.searchParams.append("language", c), S.searchParams.append("platform", je(ge)), A && P.append("X-SessionID", X), fetch(S, { method: "GET", headers: P }).then((J) => J.json()).then((J) => {
1186
+ S.searchParams.append("language", c), S.searchParams.append("platform", Ce(ge)), A && P.append("X-SessionID", X), fetch(S, { method: "GET", headers: P }).then((J) => J.json()).then((J) => {
1187
1187
  oe(J.item);
1188
1188
  }).finally(() => {
1189
1189
  t(16, M = !1);
@@ -1195,7 +1195,7 @@ function Ft(r, e, t) {
1195
1195
  oe(W);
1196
1196
  return;
1197
1197
  }
1198
- t(16, M = !0), Ne(m);
1198
+ t(16, M = !0), Be(m);
1199
1199
  };
1200
1200
  tt(() => (t(16, M = !ne), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", ve, !1), () => {
1201
1201
  window.removeEventListener("message", ve);
@@ -1211,7 +1211,7 @@ function Ft(r, e, t) {
1211
1211
  }, r.$$.update = () => {
1212
1212
  r.$$.dirty[0] & /*lang*/
1213
1213
  128 && c && mt(c), r.$$.dirty[0] & /*translationurl*/
1214
- 4096 && q && Oe(), r.$$.dirty[1] & /*session*/
1214
+ 4096 && q && Re(), r.$$.dirty[1] & /*session*/
1215
1215
  256 && o && Ge(), r.$$.dirty[0] & /*tournamenturl, lang*/
1216
1216
  130 && a && c && qe(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1217
1217
  17408 && N && E && ot(E, N), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
@@ -1252,9 +1252,9 @@ function Ft(r, e, t) {
1252
1252
  Te,
1253
1253
  Q,
1254
1254
  n,
1255
- xe,
1256
1255
  Ue,
1257
1256
  He,
1257
+ Ne,
1258
1258
  ze,
1259
1259
  Se,
1260
1260
  o,