@everymatrix/casino-my-tournaments 1.87.26 → 1.87.28

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.
@@ -12,4 +12,4 @@ l.version="2.29.4",h=We,l.fn=Yi,l.min=function(){return Ge("isBefore",[].slice.c
12
12
  * Available under MIT License (MIT)
13
13
  * https://github.com/Yaffle/EventSource/
14
14
  */
15
- !function(t,e){!function(i){var n=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,a=i.XDomainRequest,o=i.ActiveXObject,u=i.EventSource,h=i.document,d=i.Promise,l=i.fetch,c=i.Response,f=i.TextDecoder,m=i.TextEncoder,g=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=o&&(s=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var p=l;l=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,r="",s=this.bitsNeeded,a=this.codePoint,o=0;o<t.length;o+=1){var u=t[o];0!==s&&(u<128||u>191||!e(a<<6|63&u,s-6,i(s,a)))&&(s=0,a=n,r+=String.fromCharCode(a)),0===s?(u>=0&&u<=127?(s=0,a=u):u>=192&&u<=223?(s=6,a=31&u):u>=224&&u<=239?(s=12,a=15&u):u>=240&&u<=247?(s=18,a=7&u):(s=0,a=n),0===s||e(a,s,i(s,a))||(s=0,a=n)):(s-=6,a=a<<6|63&u),0===s&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=a,r},null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(f=b);var y=function(){};function v(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=y}function w(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function k(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var r=i[n].split(": "),s=r.shift(),a=r.join(": ");e[w(s)]=a}this._map=e}function S(){}function M(t){this._headers=t}function C(){}function x(){this._listeners=Object.create(null)}function D(t){n((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function A(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function R(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){T.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var i=this,a=this._xhr,o=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,a.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),o=0};var h=function(){if(1===o){var t=0,e="",n=void 0;if("contentType"in a)t=200,e="OK",n=a.contentType;else try{t=a.status,e=a.statusText,n=a.getResponseHeader("Content-Type")}catch(i){t=0,e="",n=void 0}0!==t&&(o=2,i.readyState=2,i.status=t,i.statusText=e,i._contentType=n,i.onreadystatechange())}},d=function(){if(h(),2===o||3===o){o=3;var t="";try{t=a.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},l=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:y}),d(),1===o||2===o||3===o){if(o=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}},c=function(){u=n((function(){c()}),500),3===a.readyState&&d()};"onload"in a&&(a.onload=function(t){l("load",t)}),"onerror"in a&&(a.onerror=function(t){l("error",t)}),"onabort"in a&&(a.onabort=function(t){l("abort",t)}),"onprogress"in a&&(a.onprogress=d),"onreadystatechange"in a&&(a.onreadystatechange=function(t){!function(t){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",t):3===a.readyState?"onprogress"in a||d():2===a.readyState&&h())}(t)}),!("contentType"in a)&&"ontimeout"in s.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),a.open(t,e,!0),"readyState"in a&&(u=n((function(){c()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(){return this._contentType},v.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},k.prototype.get=function(t){return this._map[w(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),S.prototype.open=function(t,e,i,n,r,a,o){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var e=t.responseText.slice(u);u+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,n=t.statusText,r=t.getResponseHeader("Content-Type"),a=t.getAllResponseHeaders();e(i,n,r,new k(a))}},t.withCredentials=a,o)Object.prototype.hasOwnProperty.call(o,h)&&t.setRequestHeader(h,o[h]);return t.send(),t},M.prototype.get=function(t){return this._headers.get(t)},C.prototype.open=function(t,e,i,n,r,s,a){var o=null,u=new g,h=u.signal,c=new f;return l(r,{headers:a,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return o=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new M(t.headers)),new d((function(t,e){var n=function(){o.read().then((function(e){if(e.done)t(void 0);else{var r=c.decode(e.value,{stream:!0});i(r),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=o&&o.cancel(),u.abort()}}},x.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var r=e[n];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){D(t)}}},x.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var r=!1,s=0;s<n.length;s+=1)n[s]===e&&(r=!0);r||n.push(e)},x.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var r=[],s=0;s<n.length;s+=1)n[s]!==e&&r.push(n[s]);0===r.length?delete i[t]:i[t]=r}},A.prototype=Object.create(T.prototype),R.prototype=Object.create(T.prototype),j.prototype=Object.create(T.prototype);var F=/^text\/event\-stream(;.*)?$/i,N=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),Y(i)},Y=function(t){return Math.min(Math.max(t,1e3),18e6)},z=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){D(t)}};function L(t,e){x.call(this),e=e||{},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,function(t,e,i){e=String(e);var o=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=Y(1e3),d=N(i.heartbeatTimeout,45e3),l="",c=h,f=!1,m=0,g=i.headers||{},p=i.Transport,b=B&&null==p?void 0:new v(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==a?new s:new a),y=null!=p&&"string"!=typeof p?new p:null==b?new C:new S,w=void 0,k=0,M=-1,x="",D="",T="",L="",J=0,P=0,H=0,O=function(e,i,n,r){if(0===M)if(200===e&&null!=n&&F.test(n)){M=1,f=Date.now(),c=h,t.readyState=1;var s=new R("open",{status:e,statusText:i,headers:r});t.dispatchEvent(s),z(t,t.onopen,s)}else{var a="";200!==e?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",I(),s=new R("error",{status:e,statusText:i,headers:r}),t.dispatchEvent(s),z(t,t.onerror,s),console.error(a)}},W=function(e){if(1===M){for(var i=-1,s=0;s<e.length;s+=1)(u=e.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var a=(-1!==i?L:"")+e.slice(0,i+1);L=(-1===i?L:"")+e.slice(i+1),""!==e&&(f=Date.now(),m+=e.length);for(var o=0;o<a.length;o+=1){var u=a.charCodeAt(o);if(-1===J&&u==="\n".charCodeAt(0))J=0;else if(-1===J&&(J=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==J){1===J&&(H=o+1);var g=a.slice(P,H-1),p=a.slice(H+(H<o&&a.charCodeAt(H)===" ".charCodeAt(0)?1:0),o);"data"===g?(x+="\n",x+=p):"id"===g?D=p:"event"===g?T=p:"retry"===g?(h=N(p,h),c=h):"heartbeatTimeout"===g&&(d=N(p,d),0!==k&&(r(k),k=n((function(){G()}),d)))}if(0===J){if(""!==x){l=D,""===T&&(T="message");var b=new A(T,{data:x.slice(1),lastEventId:D});if(t.dispatchEvent(b),"open"===T?z(t,t.onopen,b):"message"===T?z(t,t.onmessage,b):"error"===T&&z(t,t.onerror,b),2===M)return}x="",T=""}J=u==="\r".charCodeAt(0)?-1:0}else 0===J&&(P=o,J=1),1===J?u===":".charCodeAt(0)&&(H=o+1,J=2):2===J&&(J=3)}}},E=function(e){if(1===M||0===M){M=-1,0!==k&&(r(k),k=0),k=n((function(){G()}),c),c=Y(Math.min(16*h,2*c)),t.readyState=0;var i=new j("error",{error:e});t.dispatchEvent(i),z(t,t.onerror,i),null!=e&&console.error(e)}},I=function(){M=2,null!=w&&(w.abort(),w=void 0),0!==k&&(r(k),k=0),t.readyState=2},G=function(){if(k=0,-1===M){f=!1,m=0,k=n((function(){G()}),d),M=0,x="",T="",D=l,L="",P=0,H=0,J=0;var i=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==l){var r=e.indexOf("?");i=-1===r?e:e.slice(0,r+1)+e.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===u?"":t})),i+=(-1===e.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(l)}var s=t.withCredentials,a={Accept:"text/event-stream"},o=t.headers;if(null!=o)for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&(a[h]=o[h]);try{w=y.open(b,O,W,E,i,s,a)}catch(t){throw I(),t}}else if(f||null==w){var c=Math.max((f||Date.now())+d-Date.now(),1);f=!1,k=n((function(){G()}),c)}else E(new Error("No activity within "+d+" milliseconds. "+(0===M?"No response received.":m+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};t.url=e,t.readyState=0,t.withCredentials=o,t.headers=g,t._close=I,G()}(this,t,e)}var B=null!=l&&null!=c&&"body"in c.prototype;(L.prototype=Object.create(x.prototype)).CONNECTING=0,L.prototype.OPEN=1,L.prototype.CLOSED=2,L.prototype.close=function(){this._close()},L.CONNECTING=0,L.OPEN=1,L.CLOSED=2,L.prototype.withCredentials=void 0;var J,P=u;null==s||null!=u&&"withCredentials"in u.prototype||(P=L),J=function(t){t.EventSourcePolyfill=L,t.NativeEventSource=u,t.EventSource=P}(e),void 0!==J&&(t.exports=J)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jn:globalThis)}(Fn,Fn.exports);const Nn=class{constructor(e){t(this,e),this.endpoint=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,this.tableLimit=30,this.mobileLimit=15,this.tableColumns="rank,player,score,prize",this.updateLeaderboard=!1,this.userSticky=!1,this.userOnly=!1,this.showUnqualified=!0,this.namemask=void 0,this.minscore=void 0,this.clientStyling="",this.clientStylingUrl="",this.showHeader=!0,this.showTitle=!1,this.showTopIcon=!1,this.translationData=void 0,this.limitStylingAppends=!1,this.items=void 0,this.columns=void 0,this.rankChanged=!1,this.rankUp=!1,this.rankDown=!1,this.rank=void 0,this.arrowDuration=5e3}getLeaderboard(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}/leaderboard`),e=new Headers;t.searchParams.append("language",this.language);let i=`includeUnqualifiedPlayer=${this.showUnqualified}`;i=this.namemask?`${i},shortNameMask=${this.namemask}`:i,i=this.minscore?`${i},minscore=${this.minscore}`:i,t.searchParams.append("filter",i);let n=1==(()=>{let t=window.navigator.userAgent;return!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))})()?this.mobileLimit:this.tableLimit;t.searchParams.append("pagination",`offset=0,limit=${n}`),this.session&&e.append("X-SessionId",this.session),t.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((e=>{if(this.updateLeaderboardView(e,!1),1==this.updateLeaderboard){let e=`${this.endpoint}/v1/tournaments/${this.tournamentId}/leaderboard/updates?HeartBeat=false&${t.searchParams.toString()}`;this.startLeaderboardUpdate(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}}))}startLeaderboardUpdate(t,e){const i=new Fn.exports.EventSourcePolyfill(t,e);i.removeEventListener("message",this.updateLeaderboardHandler),i.addEventListener("message",this.updateLeaderboardHandler.bind(this))}updateLeaderboardView(t,e){this.items=t.items,e&&this.items.sort(((t,e)=>t.rank>e.rank?1:e.rank>t.rank?-1:0)),this.userSticky&&this.items.sort((t=>t.userID==this.userId?-1:0)),this.userOnly&&(this.items=t.item?[t.item]:[]),t.item&&this.setRank(t.item.rank,e)}setRank(t,e){if(e)if(this.rank!=t){if(!this.rank)return void(this.rank=t);this.rankChanged=!0,this.rank>t?this.rankUp=!0:this.rankDown=!0;let e=(new Date).getTime(),i=this.arrowDuration-1e3,n=this;setTimeout((function(){(new Date).getTime()-e>i&&(n.rankChanged=!1,n.rankDown=!1,n.rankUp=!1),n.rank=t}),this.arrowDuration)}else this.rankDown=!1,this.rankUp=!1}updateLeaderboardHandler(t){if(!t.data)return;let e=JSON.parse(t.data);"LeaderBoardUpdate"==e.messageType&&this.updateLeaderboardView(e,!0)}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])An[e][i]=t[e][i]}))),this.tableColumns&&(this.columns=this.tableColumns.split(",")),this.endpoint&&this.tournamentId&&this.getLeaderboard()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"69d1f68c6b2e3863e7abc6febd795d7009e6085b",class:"Leaderboard"},this.showTitle&&this.items&&this.items.length>0&&i("div",{key:"a8e93e8566c2426e14a76105f933ee139433fd2c",class:"Title",part:"Title"},i("svg",{key:"bf51b36b58634d5e01a9e223dd4904f140f88954",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("path",{key:"a4204b6371d256237ef908afd1c1285ba1ea5e82",d:"M14.2476 2.84132V0.664551H3.53327V2.84132H0.318359V5.01946C0.318359 6.8229 1.7568 8.28496 3.5326 8.28496C3.86862 8.28496 4.19326 8.23192 4.49647 8.13399C5.26958 9.25604 6.44898 10.07 7.81782 10.3516V13.7266H6.74685C5.56276 13.7266 4.6029 14.701 4.6029 15.9026H13.1753C13.1753 14.7004 12.2168 13.7266 11.0327 13.7266H9.96109V10.3516C11.3293 10.07 12.5087 9.25672 13.2818 8.13399C13.5863 8.23124 13.9116 8.28496 14.2463 8.28496C16.0214 8.28496 17.4612 6.8229 17.4612 5.01946V2.84132H14.2476ZM3.53327 6.99222C2.4623 6.99222 1.5908 6.10751 1.5908 5.01946V3.93005H3.53327V5.01946C3.53327 5.70221 3.65844 6.3564 3.88401 6.9589C3.77089 6.9793 3.65175 6.99086 3.53327 6.99086V6.99222ZM10.5207 5.88989L11.5414 9.06223L8.88945 7.09355L6.2368 9.06223L7.25757 5.88989L4.59688 3.93481L7.8814 3.94229L8.88945 0.767235L9.89683 3.94229L13.1814 3.93481L10.5207 5.88989ZM16.1901 5.01946C16.1901 6.10683 15.3193 6.99222 14.2483 6.99222C14.1285 6.99222 14.012 6.9793 13.8982 6.95958C14.1245 6.3564 14.2483 5.70357 14.2483 5.02014V3.93073H16.1901V5.02014V5.01946Z",fill:"white"})),i("span",{key:"18392b0abbd62f1eb40b17c00750a8e3f64b277e",class:"Ranking"},Rn("myRanking",this.language))),this.showHeader&&this.items&&this.items.length>0&&i("div",{key:"a2713aa9083bca0b8b73fedfc1a38c5496500d45",class:"LeaderboardRow LeaderboardHeader"},this.columns.map((t=>i("div",null,Rn(t,this.language))))),this.items&&i("div",{key:"0f55294a80175429df797ad7ed7a0c2ff781f612",class:"LeaderboardBody"},this.items.map(((t,e)=>i("div",{class:"Row",part:"Row"},i("div",{class:`LeaderboardRow Rank${e+1} ${this.userId==t.userID?"RankPlayer":""}`},i("div",{class:"Rank"},this.showTopIcon&&t.rank<=3?i("span",{class:"TopRank"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15",fill:"none"},i("path",{d:"M1.50156 0.76875C1.31172 1.0043 0.991797 1.51406 0.879297 1.75313C0.496094 2.60742 0.478516 3.35273 0.826562 4.17891C0.847656 4.23516 0.830078 4.24219 0.7 4.24219C0.615625 4.24219 0.485547 4.25273 0.415234 4.26328C0.285156 4.28438 0.278125 4.29492 0.211328 4.51992C0.0601562 5.0332 0.025 5.27227 0.0214844 5.78906C0.0214844 6.39727 0.0707031 6.64336 0.299219 7.11445C0.425781 7.37109 0.520703 7.50117 0.75625 7.75078L1.05508 8.06719L0.928516 8.14805C0.854687 8.19023 0.682422 8.32031 0.541797 8.4293L0.285156 8.6332L0.373047 8.91797C0.583984 9.6 0.875781 10.1344 1.25898 10.5422C1.60703 10.9078 2.12383 11.2207 2.50703 11.291C2.57734 11.3051 2.63711 11.3332 2.63711 11.3508C2.63711 11.3684 2.59141 11.4527 2.53164 11.5371C2.47539 11.6215 2.42617 11.7059 2.42617 11.7199C2.42617 11.7691 2.8375 12.3598 3.0168 12.5707C3.37891 12.9961 3.97656 13.3758 4.525 13.5305C4.87305 13.6289 5.49883 13.6359 5.81875 13.5516C6.41641 13.3898 6.90156 13.098 7.32344 12.6445L7.58359 12.3633L7.70312 12.4055C7.99141 12.5039 8.24805 12.7395 8.38164 13.0277C8.44844 13.1754 8.45547 13.2633 8.46602 13.991L8.47656 14.7891H9.00039H9.52422L9.53477 13.9875C9.54531 13.2633 9.55234 13.1754 9.61914 13.0277C9.75273 12.7395 10.0094 12.5039 10.2977 12.4055L10.4172 12.3633L10.6773 12.6445C11.0992 13.098 11.5844 13.3898 12.182 13.5516C12.502 13.6359 13.1277 13.6289 13.4758 13.5305C14.0242 13.3758 14.6219 12.9961 14.984 12.5707C15.1633 12.3598 15.5746 11.7691 15.5746 11.7199C15.5746 11.7059 15.5254 11.6215 15.4691 11.5371C15.4129 11.4527 15.3637 11.3684 15.3637 11.3508C15.3637 11.3332 15.4234 11.3051 15.4937 11.291C15.5676 11.277 15.7223 11.2277 15.8383 11.1785C16.6609 10.834 17.2797 10.05 17.6277 8.91094L17.7156 8.6332L17.459 8.4293C17.3184 8.32031 17.1461 8.19023 17.0723 8.14805L16.9457 8.06719L17.2445 7.75078C17.4801 7.50117 17.575 7.37109 17.7016 7.11445C17.923 6.65391 17.9793 6.39727 17.9793 5.80664C17.9828 5.30742 17.9441 5.06836 17.7859 4.51992C17.7227 4.29492 17.7156 4.28438 17.5855 4.26328C17.5152 4.25273 17.3852 4.24219 17.3008 4.24219C17.1707 4.24219 17.1531 4.23516 17.1742 4.17891C17.6066 3.14883 17.4801 2.21719 16.7559 1.13438C16.3867 0.578907 16.4254 0.6 16.0527 0.708984C14.977 1.02188 14.2703 1.57383 13.866 2.42461C13.5637 3.06445 13.5637 3.87656 13.8695 4.61484C13.982 4.88555 14.1367 5.17383 14.2738 5.36719C14.3371 5.45508 14.3371 5.46211 14.2 5.73633C14.1262 5.89102 14.0312 6.16523 13.9891 6.34453C13.9223 6.63281 13.9152 6.73477 13.9363 7.18828C13.9469 7.47305 13.9645 7.7543 13.9785 7.81406C13.9961 7.91602 13.9855 7.93359 13.7746 8.08477C13.3211 8.40469 12.9168 8.94961 12.6918 9.52617C12.5371 9.92344 12.5441 9.91641 12.3754 9.94453C12.0168 10.0078 11.5879 10.1941 11.2293 10.4508C11.0219 10.5984 10.4066 11.2172 10.4066 11.277C10.4066 11.2945 10.375 11.3086 10.3398 11.3086C10.3012 11.3086 10.1465 11.3473 9.99531 11.3965C9.69297 11.4914 9.39766 11.6707 9.15859 11.9027L9.00039 12.0539L8.85625 11.9098C8.63477 11.6883 8.30781 11.4914 8.00547 11.3965C7.8543 11.3473 7.69961 11.3086 7.66094 11.3086C7.62578 11.3086 7.59414 11.2945 7.59414 11.277C7.59414 11.2172 6.97891 10.5984 6.76797 10.4473C6.4832 10.2434 6.08945 10.057 5.78359 9.98672C5.65 9.95508 5.51641 9.91992 5.4918 9.90586C5.46719 9.89531 5.39336 9.74766 5.33008 9.57891C5.10156 8.9707 4.69023 8.41523 4.22969 8.08477C4.01523 7.93359 4.00469 7.91602 4.02227 7.81406C4.03633 7.7543 4.05391 7.47305 4.06445 7.18828C4.08555 6.73477 4.07852 6.63281 4.01172 6.34453C3.96953 6.16523 3.87461 5.89102 3.80078 5.73633L3.66367 5.45859L3.76914 5.30391C3.90273 5.11055 4.12422 4.66406 4.20156 4.43555C4.36328 3.95391 4.40547 3.38438 4.30703 2.92383C4.09961 1.95352 3.26641 1.12734 2.12734 0.765235C1.60703 0.6 1.63867 0.6 1.50156 0.76875ZM2.26445 1.95703C2.75664 2.19961 3.09766 2.58281 3.23828 3.05391C3.37187 3.48633 3.28398 4.04531 3.0168 4.51641L2.91133 4.69922L2.62656 4.55156C1.77227 4.10859 1.42422 3.22969 1.76172 2.37188C1.84258 2.16797 2.0043 1.85156 2.03242 1.85156C2.03945 1.85156 2.14492 1.90078 2.26445 1.95703ZM16.1371 2.15039C16.5133 2.92031 16.4184 3.65156 15.8734 4.18945C15.7328 4.32656 15.5465 4.46016 15.3707 4.55156L15.0895 4.69922L15.0156 4.57266C14.541 3.76758 14.6043 2.92031 15.1809 2.35078C15.3602 2.17852 15.8629 1.85859 15.9684 1.85156C15.9824 1.85156 16.0598 1.98516 16.1371 2.15039ZM1.59297 5.31445C1.96211 5.37773 2.27852 5.53242 2.52813 5.77148C2.76016 5.99297 2.89375 6.21445 2.97109 6.50977C3.02383 6.7207 3.04141 7.26914 3.00273 7.47656L2.97812 7.58906L2.71797 7.56797C1.64219 7.46953 1.00234 6.72773 1.06211 5.65195C1.07266 5.47969 1.09023 5.32148 1.1043 5.30039C1.13594 5.25117 1.25547 5.25469 1.59297 5.31445ZM16.893 5.29688C16.9387 5.37422 16.9527 5.92969 16.9141 6.1582C16.7699 6.97383 16.1863 7.47305 15.2547 7.56797L15.0227 7.58906L14.998 7.47656C14.9594 7.26914 14.977 6.7207 15.0297 6.50977C15.1914 5.89453 15.7117 5.4375 16.3937 5.31445C16.7066 5.2582 16.8648 5.25117 16.893 5.29688ZM3.2418 8.73867C3.51602 8.84414 3.80781 9.06914 3.99766 9.32227C4.19102 9.57539 4.34219 9.87422 4.31758 9.94453C4.30703 9.97266 4.19453 10.043 4.07148 10.1063C3.08711 10.5879 2.13086 10.2539 1.62109 9.24492C1.58242 9.16406 1.54727 9.07266 1.54727 9.04453C1.54727 8.97422 1.97617 8.75625 2.24336 8.68945C2.52109 8.61914 2.98516 8.64375 3.2418 8.73867ZM15.7434 8.68945C16.0176 8.75625 16.4535 8.9707 16.4535 9.04453C16.4535 9.19922 16.0809 9.75469 15.8418 9.94805C15.3039 10.391 14.6113 10.4437 13.9152 10.0922C13.7781 10.0219 13.6762 9.94805 13.6762 9.91992C13.6762 9.83203 13.8309 9.55078 14.0031 9.32227C14.425 8.75977 15.0648 8.53125 15.7434 8.68945ZM5.5375 11.0098C5.65 11.0414 5.83984 11.1152 5.95586 11.1785C6.1668 11.291 6.64492 11.7129 6.64492 11.7902C6.64492 11.8113 6.53594 11.9309 6.40234 12.0539C5.63242 12.7676 4.72891 12.743 3.94141 11.9871L3.67422 11.7305L3.90977 11.509C4.40195 11.0414 4.975 10.8656 5.5375 11.0098ZM13.2367 11.0098C13.5391 11.0906 13.8273 11.2559 14.091 11.509L14.3266 11.7305L14.0594 11.9871C13.2719 12.743 12.3684 12.7676 11.5984 12.0539C11.4648 11.9309 11.3559 11.8113 11.3559 11.7902C11.3559 11.7656 11.4648 11.6461 11.5949 11.5195C12.0906 11.0449 12.6707 10.8621 13.2367 11.0098Z",fill:"white"})),i("span",{class:"TopRankText"},t.rank)):t.rank,this.userId==t.userID&&1==this.rankChanged&&i("span",{class:"ArrowWrap"},this.rankUp&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"4.9999",cy:"4.9999",r:"4.9999",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1149)"},i("line",{x1:"4.93332",y1:"4",x2:"4.93332",y2:"7.99992",stroke:"#59CA00","stroke-width":"1.86663"}),i("path",{d:"M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z",fill:"#59CA00"})),i("defs",null,i("clipPath",{id:"clip0_2591_1149"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"translate(1.99902 2)"})))),this.rankDown&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{r:"4.9999",transform:"matrix(1 0 0 -1 4.9999 5.0001)",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1154)"},i("line",{y1:"-0.933315",x2:"3.99992",y2:"-0.933315",transform:"matrix(0 -1 -1 0 4 6)",stroke:"#CA0000","stroke-width":"1.86663"}),i("path",{d:"M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z",fill:"#CA0000"})),i("defs",null,i("clipPath",{id:"clip0_2591_1154"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"matrix(1 0 0 -1 1.99902 8)"})))))),i("div",{class:"Player"},t.shortName),i("div",{class:"Points"},t.score),i("div",{class:"Prize"},t.prizeName)))))))}get host(){return n(this)}};Nn.style=":host{display:block}.LeaderboardBody{background:var(--emw--tournament-color-bg, #153a5c)}.Row{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.LeaderboardRow{display:grid;grid-template-columns:repeat(4, 1fr);color:var(--emw--color-white, #FFFFFF);background:var(--emw--tournament-color-bg, #153a5c);text-align:center;padding:6px;font-size:12px}.LeaderboardHeader{padding:10px;font-size:14px;margin-bottom:8px}.Title{display:flex;gap:10px;padding:8px 6px;margin:10px;justify-content:center}.Ranking{font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF)}.Rank1{background:#7e6c22;border-radius:2px}.Rank2{background:#666;border-radius:2px}.Rank3{background:#6a5446;border-radius:2px}.RankPlayer{background:#12753a;border-radius:2px}.Rank{position:relative}.ArrowWrap{position:absolute}.Arrow{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.Arrow.Show{display:inline-flex}.Arrow.Hide{display:none}.TopRank{position:relative}.TopRankText{position:absolute;font-size:7px;left:40%}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}";const Yn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},zn=(t,e)=>{var i,n;return(null===(i=Yn[e])||void 0===i?void 0:i[t])||(null===(n=Yn.en)||void 0===n?void 0:n[t])},Ln=class{constructor(e){t(this,e),this.language=void 0,this.useGroup=!1,this.useEvent=!1,this.endpoint=void 0,this.session=void 0,this.rawPrizes=void 0,this.tournamentId=void 0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"6f6d6a40e0374ad146b0eda343d963679fbd11f0",class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&i("div",{key:"28edb876913c67479b4fb5c885244cea36a073ea",class:"PrizeTitle"},i("svg",{key:"6cd86bf5db8eacee01a9577458c136cbe78684bc",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},i("path",{key:"744e27a1ee73240f5876abd14b2e912b8dbc979e",d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),i("div",{key:"ddd4dd055f8441b1b0355e95e88b43049a108b2c",class:"Title"},zn("prizes",this.language))),this.initialLoad&&this.useGroup&&i("div",{key:"83b846fe441de36598d01742fd6730de4c5920bf",class:"GroupPrizeTitle"},i("svg",{key:"e6b379df8cc991173b588e8dd9408b0c6716de7a",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("g",{key:"0332923cca76d7ccbe779cb367abb4e8952842b5","clip-path":"url(#clip0_2459_42455)"},i("path",{key:"607a3379976189ca332117ec968c34046b3dcb46",d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),i("defs",{key:"66f11be400aac05c7f334a48b82cfb1aabdead8c"},i("clipPath",{key:"65e879523cff89288af691d5f705ef55996f3107",id:"clip0_2459_42455"},i("rect",{key:"382441f3ade90fa866096c5f25dfc3cb49d82132",width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),i("div",{key:"8610b8361faa0d2316415e39a21162dfcdcaeccf",class:"Title"},zn("prizes",this.language))),i("div",{key:"76d9452769046d3c9cd4d0dd7a65396c5083ebc6",class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,e)=>i("div",{class:`PrizeGroup Group${e+1}`},t&&t.map(((t,e)=>i("div",{class:"PrizeRow"},i("div",{class:`PrizeItem Rank${e+1}`},i("span",{class:"PrizeRank"},t.rank," ",zn("place",this.language)," "),i("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,e)=>i("div",{class:`Prize Prize${e}`},i("p",{class:"PrizeText"},i("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",zn("place",this.language),": ",t.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},zn("noprizes",this.language))))}get host(){return n(this)}};Ln.style=":host{display:block}.PrizeGroups{color:var(--emw--color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emw--tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emw--color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emw--color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}";const Bn=class{constructor(e){t(this,e),this.slides=null,this.slideWidth=0,this.controls={Prev:null,Next:null},this.xDown=null,this.yDown=null,this.slideNumber=3,this.slideShow=3,this.showArrow=!0,this.showButton=!1,this.autoSlide=!1,this.loopTime=1,this.autoItemHeight=!1,this.clientStyling="",this.clientStylingUrl="",this.currentPage=0,this.currentSlideNumber=0,this.slidesCount=0,this.limitStylingAppends=!1}slide(t){this.sliderEl.classList.remove("Static");let e=0;e=t?this.currentSlideNumber+this.slideNumber:this.currentSlideNumber-this.slideNumber,e<0||e>=this.slidesCount||(this.currentSlideNumber=e,this.currentPage=this.currentSlideNumber/this.slideNumber,this.updateListStyle())}slideTo(t){this.sliderEl.classList.remove("Static"),this.currentSlideNumber=t*this.slideNumber,this.currentPage=t,this.updateListStyle()}updateControls(){this.switchControl("Prev",0!==this.currentSlideNumber),this.switchControl("Next",this.currentSlideNumber!==this.slidesCount-this.slideShow)}switchControl(t,e){this.controls[t]&&(this.controls[t].disabled=!e)}componentWillLoad(){this.slideNumber||(this.slideNumber=1),this.slideShow||(this.slideShow=1)}componentDidLoad(){this.slides=this.slotEl.assignedElements(),this.slidesCount=this.slides.length;for(let t in this.controls)this.controls[t]=this.el.shadowRoot.querySelector(".Button"+t);this.autoSlide&&this.setSlideAutoInterval(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),0!==this.currentPage&&(this.sliderEl.classList.add("Static"),this.currentSlideNumber=this.currentPage*this.slideNumber)}componentDidRender(){this.slides&&(this.slideWidth=this.slides[0].offsetWidth),this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.updateListStyle(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}updateListStyle(){this.autoItemHeight&&null!==this.slides&&this.slides.forEach(((t,e)=>{e>=this.currentPage*this.slideNumber&&e<(this.currentPage+1)*this.slideNumber?t.classList.remove("hide"):t.classList.add("hide")}))}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove)}handleTouchStart(t){const e=this.getTouches(t)[0];this.xDown=e.clientX,this.yDown=e.clientY,clearInterval(this.sliderInterval)}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let e=this.xDown-t.touches[0].clientX,i=this.yDown-t.touches[0].clientY;Math.abs(e)>Math.abs(i)&&this.slide(e>0),this.xDown=null,this.yDown=null,this.autoSlide&&this.setSlideAutoInterval()}setSlideAutoInterval(){0!=this.loopTime&&(clearInterval(this.sliderInterval),this.sliderInterval=setInterval((()=>{this.slideTo(this.currentPage+1<this.slidesCount/this.slideNumber?this.currentPage+1:0)}),1e3*Number(this.loopTime)))}componentDidUpdate(){this.sliderEl.style.transform=`translateX(${this.currentSlideNumber*this.slideWidth*-1}px)`,this.updateControls()}switchLoopStatus(t){this.autoSlide&&this.loopTime>0&&(t?clearInterval(this.sliderInterval):this.setSlideAutoInterval())}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"8f86541d4454387e01a54b26c0aa6515d47ddb4d",class:"GeneralSlider"},i("div",{key:"c3e606e98881afeb2b867a58b25f3e7aa3915808",class:"Slider"},i("ul",{key:"e764fb6ad7fe7a727b7c1f37b5fe26704f2cd390",class:`SliderList Col-${this.slideShow}`,part:"SliderList",onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1),ref:t=>this.sliderEl=t},i("slot",{key:"c61792d98ee4aefeb8fe8e84245eac495ff2f898",ref:t=>this.slotEl=t}))),this.showButton&&this.slidesCount>0&&i("div",{key:"35b1a666ec07535c2b70e8678aff70be5a2eff35",class:"PageButtons",part:"PageButtons"},[...Array(this.slidesCount/this.slideNumber)].map(((t,e)=>i("div",{class:"PageButton "+(this.currentPage==e?"active":""),title:`page${e}`,onClick:this.slideTo.bind(this,e),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)}," ")))),this.showArrow&&i("div",{key:"6e910a7d9013b49bc70160fdc8b193de0c1ee309",class:"ArrowButtons"},i("button",{key:"1d21da8ede99b7ef0c1610334763d15d7a9640c7",type:"button",class:"Button ButtonNext",onClick:this.slide.bind(this,!0),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},">"),i("button",{key:"e890b5cb47ba744fb977e492235330f201129f09",type:"button",class:"Button ButtonPrev",onClick:this.slide.bind(this,!1),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},"<")))}get el(){return n(this)}};Bn.style=":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}.SliderList.Static{transition-duration:0ms}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emw--color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emw--tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";export{a as casino_my_tournaments,pn as casino_tournament_banner,vn as casino_tournament_buttons,Sn as casino_tournament_duration,Tn as casino_tournament_info,Nn as casino_tournament_leaderboard,Ln as casino_tournament_prizes,Bn as general_slider}
15
+ !function(t,e){!function(i){var n=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,a=i.XDomainRequest,o=i.ActiveXObject,u=i.EventSource,h=i.document,d=i.Promise,l=i.fetch,c=i.Response,f=i.TextDecoder,m=i.TextEncoder,g=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=o&&(s=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var p=l;l=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,r="",s=this.bitsNeeded,a=this.codePoint,o=0;o<t.length;o+=1){var u=t[o];0!==s&&(u<128||u>191||!e(a<<6|63&u,s-6,i(s,a)))&&(s=0,a=n,r+=String.fromCharCode(a)),0===s?(u>=0&&u<=127?(s=0,a=u):u>=192&&u<=223?(s=6,a=31&u):u>=224&&u<=239?(s=12,a=15&u):u>=240&&u<=247?(s=18,a=7&u):(s=0,a=n),0===s||e(a,s,i(s,a))||(s=0,a=n)):(s-=6,a=a<<6|63&u),0===s&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=a,r},null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(f=b);var y=function(){};function v(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=y}function w(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function k(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var r=i[n].split(": "),s=r.shift(),a=r.join(": ");e[w(s)]=a}this._map=e}function S(){}function M(t){this._headers=t}function C(){}function x(){this._listeners=Object.create(null)}function D(t){n((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function A(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function R(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){T.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var i=this,a=this._xhr,o=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,a.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),o=0};var h=function(){if(1===o){var t=0,e="",n=void 0;if("contentType"in a)t=200,e="OK",n=a.contentType;else try{t=a.status,e=a.statusText,n=a.getResponseHeader("Content-Type")}catch(i){t=0,e="",n=void 0}0!==t&&(o=2,i.readyState=2,i.status=t,i.statusText=e,i._contentType=n,i.onreadystatechange())}},d=function(){if(h(),2===o||3===o){o=3;var t="";try{t=a.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},l=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:y}),d(),1===o||2===o||3===o){if(o=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}},c=function(){u=n((function(){c()}),500),3===a.readyState&&d()};"onload"in a&&(a.onload=function(t){l("load",t)}),"onerror"in a&&(a.onerror=function(t){l("error",t)}),"onabort"in a&&(a.onabort=function(t){l("abort",t)}),"onprogress"in a&&(a.onprogress=d),"onreadystatechange"in a&&(a.onreadystatechange=function(t){!function(t){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",t):3===a.readyState?"onprogress"in a||d():2===a.readyState&&h())}(t)}),!("contentType"in a)&&"ontimeout"in s.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),a.open(t,e,!0),"readyState"in a&&(u=n((function(){c()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(){return this._contentType},v.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},k.prototype.get=function(t){return this._map[w(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),S.prototype.open=function(t,e,i,n,r,a,o){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var e=t.responseText.slice(u);u+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,n=t.statusText,r=t.getResponseHeader("Content-Type"),a=t.getAllResponseHeaders();e(i,n,r,new k(a))}},t.withCredentials=a,o)Object.prototype.hasOwnProperty.call(o,h)&&t.setRequestHeader(h,o[h]);return t.send(),t},M.prototype.get=function(t){return this._headers.get(t)},C.prototype.open=function(t,e,i,n,r,s,a){var o=null,u=new g,h=u.signal,c=new f;return l(r,{headers:a,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return o=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new M(t.headers)),new d((function(t,e){var n=function(){o.read().then((function(e){if(e.done)t(void 0);else{var r=c.decode(e.value,{stream:!0});i(r),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=o&&o.cancel(),u.abort()}}},x.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var r=e[n];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){D(t)}}},x.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var r=!1,s=0;s<n.length;s+=1)n[s]===e&&(r=!0);r||n.push(e)},x.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var r=[],s=0;s<n.length;s+=1)n[s]!==e&&r.push(n[s]);0===r.length?delete i[t]:i[t]=r}},A.prototype=Object.create(T.prototype),R.prototype=Object.create(T.prototype),j.prototype=Object.create(T.prototype);var F=/^text\/event\-stream(;.*)?$/i,N=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),Y(i)},Y=function(t){return Math.min(Math.max(t,1e3),18e6)},z=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){D(t)}};function L(t,e){x.call(this),e=e||{},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,function(t,e,i){e=String(e);var o=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=Y(1e3),d=N(i.heartbeatTimeout,45e3),l="",c=h,f=!1,m=0,g=i.headers||{},p=i.Transport,b=B&&null==p?void 0:new v(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==a?new s:new a),y=null!=p&&"string"!=typeof p?new p:null==b?new C:new S,w=void 0,k=0,M=-1,x="",D="",T="",L="",J=0,P=0,H=0,O=function(e,i,n,r){if(0===M)if(200===e&&null!=n&&F.test(n)){M=1,f=Date.now(),c=h,t.readyState=1;var s=new R("open",{status:e,statusText:i,headers:r});t.dispatchEvent(s),z(t,t.onopen,s)}else{var a="";200!==e?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",I(),s=new R("error",{status:e,statusText:i,headers:r}),t.dispatchEvent(s),z(t,t.onerror,s),console.error(a)}},W=function(e){if(1===M){for(var i=-1,s=0;s<e.length;s+=1)(u=e.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var a=(-1!==i?L:"")+e.slice(0,i+1);L=(-1===i?L:"")+e.slice(i+1),""!==e&&(f=Date.now(),m+=e.length);for(var o=0;o<a.length;o+=1){var u=a.charCodeAt(o);if(-1===J&&u==="\n".charCodeAt(0))J=0;else if(-1===J&&(J=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==J){1===J&&(H=o+1);var g=a.slice(P,H-1),p=a.slice(H+(H<o&&a.charCodeAt(H)===" ".charCodeAt(0)?1:0),o);"data"===g?(x+="\n",x+=p):"id"===g?D=p:"event"===g?T=p:"retry"===g?(h=N(p,h),c=h):"heartbeatTimeout"===g&&(d=N(p,d),0!==k&&(r(k),k=n((function(){G()}),d)))}if(0===J){if(""!==x){l=D,""===T&&(T="message");var b=new A(T,{data:x.slice(1),lastEventId:D});if(t.dispatchEvent(b),"open"===T?z(t,t.onopen,b):"message"===T?z(t,t.onmessage,b):"error"===T&&z(t,t.onerror,b),2===M)return}x="",T=""}J=u==="\r".charCodeAt(0)?-1:0}else 0===J&&(P=o,J=1),1===J?u===":".charCodeAt(0)&&(H=o+1,J=2):2===J&&(J=3)}}},E=function(e){if(1===M||0===M){M=-1,0!==k&&(r(k),k=0),k=n((function(){G()}),c),c=Y(Math.min(16*h,2*c)),t.readyState=0;var i=new j("error",{error:e});t.dispatchEvent(i),z(t,t.onerror,i),null!=e&&console.error(e)}},I=function(){M=2,null!=w&&(w.abort(),w=void 0),0!==k&&(r(k),k=0),t.readyState=2},G=function(){if(k=0,-1===M){f=!1,m=0,k=n((function(){G()}),d),M=0,x="",T="",D=l,L="",P=0,H=0,J=0;var i=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==l){var r=e.indexOf("?");i=-1===r?e:e.slice(0,r+1)+e.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===u?"":t})),i+=(-1===e.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(l)}var s=t.withCredentials,a={Accept:"text/event-stream"},o=t.headers;if(null!=o)for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&(a[h]=o[h]);try{w=y.open(b,O,W,E,i,s,a)}catch(t){throw I(),t}}else if(f||null==w){var c=Math.max((f||Date.now())+d-Date.now(),1);f=!1,k=n((function(){G()}),c)}else E(new Error("No activity within "+d+" milliseconds. "+(0===M?"No response received.":m+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};t.url=e,t.readyState=0,t.withCredentials=o,t.headers=g,t._close=I,G()}(this,t,e)}var B=null!=l&&null!=c&&"body"in c.prototype;(L.prototype=Object.create(x.prototype)).CONNECTING=0,L.prototype.OPEN=1,L.prototype.CLOSED=2,L.prototype.close=function(){this._close()},L.CONNECTING=0,L.OPEN=1,L.CLOSED=2,L.prototype.withCredentials=void 0;var J,P=u;null==s||null!=u&&"withCredentials"in u.prototype||(P=L),J=function(t){t.EventSourcePolyfill=L,t.NativeEventSource=u,t.EventSource=P}(e),void 0!==J&&(t.exports=J)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jn:globalThis)}(Fn,Fn.exports);const Nn=class{constructor(e){t(this,e),this.endpoint=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,this.tableLimit=30,this.mobileLimit=15,this.tableColumns="rank,player,score,prize",this.updateLeaderboard=!1,this.userSticky=!1,this.userOnly=!1,this.showUnqualified=!0,this.namemask=void 0,this.minscore=void 0,this.clientStyling="",this.clientStylingUrl="",this.showHeader=!0,this.showTitle=!1,this.showTopIcon=!1,this.translationData=void 0,this.limitStylingAppends=!1,this.items=void 0,this.columns=void 0,this.rankChanged=!1,this.rankUp=!1,this.rankDown=!1,this.rank=void 0,this.arrowDuration=5e3}getLeaderboard(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}/leaderboard`),e=new Headers;t.searchParams.append("language",this.language);let i=`includeUnqualifiedPlayer=${this.showUnqualified}`;i=this.namemask?`${i},shortNameMask=${this.namemask}`:i,i=this.minscore?`${i},minscore=${this.minscore}`:i,t.searchParams.append("filter",i);let n=1==(()=>{let t=window.navigator.userAgent;return!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))})()?this.mobileLimit:this.tableLimit;t.searchParams.append("pagination",`offset=0,limit=${n}`),this.session&&e.append("X-SessionId",this.session),t.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((e=>{if(this.updateLeaderboardView(e,!1),1==this.updateLeaderboard){let e=`${this.endpoint}/v1/tournaments/${this.tournamentId}/leaderboard/updates?HeartBeat=false&${t.searchParams.toString()}`;this.startLeaderboardUpdate(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}}))}startLeaderboardUpdate(t,e){const i=new Fn.exports.EventSourcePolyfill(t,e);i.removeEventListener("message",this.updateLeaderboardHandler),i.addEventListener("message",this.updateLeaderboardHandler.bind(this))}updateLeaderboardView(t,e){this.items=t.items,e&&this.items.sort(((t,e)=>t.rank>e.rank?1:e.rank>t.rank?-1:0)),this.userSticky&&this.items.sort((t=>t.userID==this.userId?-1:0)),this.userOnly&&(this.items=t.item?[t.item]:[]),t.item&&this.setRank(t.item.rank,e)}setRank(t,e){if(e)if(this.rank!=t){if(!this.rank)return void(this.rank=t);this.rankChanged=!0,this.rank>t?this.rankUp=!0:this.rankDown=!0;let e=(new Date).getTime(),i=this.arrowDuration-1e3,n=this;setTimeout((function(){(new Date).getTime()-e>i&&(n.rankChanged=!1,n.rankDown=!1,n.rankUp=!1),n.rank=t}),this.arrowDuration)}else this.rankDown=!1,this.rankUp=!1}updateLeaderboardHandler(t){if(!t.data)return;let e=JSON.parse(t.data);"LeaderBoardUpdate"==e.messageType&&this.updateLeaderboardView(e,!0)}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])An[e][i]=t[e][i]}))),this.tableColumns&&(this.columns=this.tableColumns.split(",")),this.endpoint&&this.tournamentId&&this.getLeaderboard()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"69d1f68c6b2e3863e7abc6febd795d7009e6085b",class:"Leaderboard"},this.showTitle&&this.items&&this.items.length>0&&i("div",{key:"a8e93e8566c2426e14a76105f933ee139433fd2c",class:"Title",part:"Title"},i("svg",{key:"bf51b36b58634d5e01a9e223dd4904f140f88954",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("path",{key:"a4204b6371d256237ef908afd1c1285ba1ea5e82",d:"M14.2476 2.84132V0.664551H3.53327V2.84132H0.318359V5.01946C0.318359 6.8229 1.7568 8.28496 3.5326 8.28496C3.86862 8.28496 4.19326 8.23192 4.49647 8.13399C5.26958 9.25604 6.44898 10.07 7.81782 10.3516V13.7266H6.74685C5.56276 13.7266 4.6029 14.701 4.6029 15.9026H13.1753C13.1753 14.7004 12.2168 13.7266 11.0327 13.7266H9.96109V10.3516C11.3293 10.07 12.5087 9.25672 13.2818 8.13399C13.5863 8.23124 13.9116 8.28496 14.2463 8.28496C16.0214 8.28496 17.4612 6.8229 17.4612 5.01946V2.84132H14.2476ZM3.53327 6.99222C2.4623 6.99222 1.5908 6.10751 1.5908 5.01946V3.93005H3.53327V5.01946C3.53327 5.70221 3.65844 6.3564 3.88401 6.9589C3.77089 6.9793 3.65175 6.99086 3.53327 6.99086V6.99222ZM10.5207 5.88989L11.5414 9.06223L8.88945 7.09355L6.2368 9.06223L7.25757 5.88989L4.59688 3.93481L7.8814 3.94229L8.88945 0.767235L9.89683 3.94229L13.1814 3.93481L10.5207 5.88989ZM16.1901 5.01946C16.1901 6.10683 15.3193 6.99222 14.2483 6.99222C14.1285 6.99222 14.012 6.9793 13.8982 6.95958C14.1245 6.3564 14.2483 5.70357 14.2483 5.02014V3.93073H16.1901V5.02014V5.01946Z",fill:"white"})),i("span",{key:"18392b0abbd62f1eb40b17c00750a8e3f64b277e",class:"Ranking"},Rn("myRanking",this.language))),this.showHeader&&this.items&&this.items.length>0&&i("div",{key:"a2713aa9083bca0b8b73fedfc1a38c5496500d45",class:"LeaderboardRow LeaderboardHeader"},this.columns.map((t=>i("div",null,Rn(t,this.language))))),this.items&&i("div",{key:"0f55294a80175429df797ad7ed7a0c2ff781f612",class:"LeaderboardBody"},this.items.map(((t,e)=>i("div",{class:"Row",part:"Row"},i("div",{class:`LeaderboardRow Rank${e+1} ${this.userId===t.userID?"RankPlayer":""}`},i("div",{class:"Rank"},this.showTopIcon&&t.rank<=3?i("span",{class:"TopRank"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15",fill:"none"},i("path",{d:"M1.50156 0.76875C1.31172 1.0043 0.991797 1.51406 0.879297 1.75313C0.496094 2.60742 0.478516 3.35273 0.826562 4.17891C0.847656 4.23516 0.830078 4.24219 0.7 4.24219C0.615625 4.24219 0.485547 4.25273 0.415234 4.26328C0.285156 4.28438 0.278125 4.29492 0.211328 4.51992C0.0601562 5.0332 0.025 5.27227 0.0214844 5.78906C0.0214844 6.39727 0.0707031 6.64336 0.299219 7.11445C0.425781 7.37109 0.520703 7.50117 0.75625 7.75078L1.05508 8.06719L0.928516 8.14805C0.854687 8.19023 0.682422 8.32031 0.541797 8.4293L0.285156 8.6332L0.373047 8.91797C0.583984 9.6 0.875781 10.1344 1.25898 10.5422C1.60703 10.9078 2.12383 11.2207 2.50703 11.291C2.57734 11.3051 2.63711 11.3332 2.63711 11.3508C2.63711 11.3684 2.59141 11.4527 2.53164 11.5371C2.47539 11.6215 2.42617 11.7059 2.42617 11.7199C2.42617 11.7691 2.8375 12.3598 3.0168 12.5707C3.37891 12.9961 3.97656 13.3758 4.525 13.5305C4.87305 13.6289 5.49883 13.6359 5.81875 13.5516C6.41641 13.3898 6.90156 13.098 7.32344 12.6445L7.58359 12.3633L7.70312 12.4055C7.99141 12.5039 8.24805 12.7395 8.38164 13.0277C8.44844 13.1754 8.45547 13.2633 8.46602 13.991L8.47656 14.7891H9.00039H9.52422L9.53477 13.9875C9.54531 13.2633 9.55234 13.1754 9.61914 13.0277C9.75273 12.7395 10.0094 12.5039 10.2977 12.4055L10.4172 12.3633L10.6773 12.6445C11.0992 13.098 11.5844 13.3898 12.182 13.5516C12.502 13.6359 13.1277 13.6289 13.4758 13.5305C14.0242 13.3758 14.6219 12.9961 14.984 12.5707C15.1633 12.3598 15.5746 11.7691 15.5746 11.7199C15.5746 11.7059 15.5254 11.6215 15.4691 11.5371C15.4129 11.4527 15.3637 11.3684 15.3637 11.3508C15.3637 11.3332 15.4234 11.3051 15.4937 11.291C15.5676 11.277 15.7223 11.2277 15.8383 11.1785C16.6609 10.834 17.2797 10.05 17.6277 8.91094L17.7156 8.6332L17.459 8.4293C17.3184 8.32031 17.1461 8.19023 17.0723 8.14805L16.9457 8.06719L17.2445 7.75078C17.4801 7.50117 17.575 7.37109 17.7016 7.11445C17.923 6.65391 17.9793 6.39727 17.9793 5.80664C17.9828 5.30742 17.9441 5.06836 17.7859 4.51992C17.7227 4.29492 17.7156 4.28438 17.5855 4.26328C17.5152 4.25273 17.3852 4.24219 17.3008 4.24219C17.1707 4.24219 17.1531 4.23516 17.1742 4.17891C17.6066 3.14883 17.4801 2.21719 16.7559 1.13438C16.3867 0.578907 16.4254 0.6 16.0527 0.708984C14.977 1.02188 14.2703 1.57383 13.866 2.42461C13.5637 3.06445 13.5637 3.87656 13.8695 4.61484C13.982 4.88555 14.1367 5.17383 14.2738 5.36719C14.3371 5.45508 14.3371 5.46211 14.2 5.73633C14.1262 5.89102 14.0312 6.16523 13.9891 6.34453C13.9223 6.63281 13.9152 6.73477 13.9363 7.18828C13.9469 7.47305 13.9645 7.7543 13.9785 7.81406C13.9961 7.91602 13.9855 7.93359 13.7746 8.08477C13.3211 8.40469 12.9168 8.94961 12.6918 9.52617C12.5371 9.92344 12.5441 9.91641 12.3754 9.94453C12.0168 10.0078 11.5879 10.1941 11.2293 10.4508C11.0219 10.5984 10.4066 11.2172 10.4066 11.277C10.4066 11.2945 10.375 11.3086 10.3398 11.3086C10.3012 11.3086 10.1465 11.3473 9.99531 11.3965C9.69297 11.4914 9.39766 11.6707 9.15859 11.9027L9.00039 12.0539L8.85625 11.9098C8.63477 11.6883 8.30781 11.4914 8.00547 11.3965C7.8543 11.3473 7.69961 11.3086 7.66094 11.3086C7.62578 11.3086 7.59414 11.2945 7.59414 11.277C7.59414 11.2172 6.97891 10.5984 6.76797 10.4473C6.4832 10.2434 6.08945 10.057 5.78359 9.98672C5.65 9.95508 5.51641 9.91992 5.4918 9.90586C5.46719 9.89531 5.39336 9.74766 5.33008 9.57891C5.10156 8.9707 4.69023 8.41523 4.22969 8.08477C4.01523 7.93359 4.00469 7.91602 4.02227 7.81406C4.03633 7.7543 4.05391 7.47305 4.06445 7.18828C4.08555 6.73477 4.07852 6.63281 4.01172 6.34453C3.96953 6.16523 3.87461 5.89102 3.80078 5.73633L3.66367 5.45859L3.76914 5.30391C3.90273 5.11055 4.12422 4.66406 4.20156 4.43555C4.36328 3.95391 4.40547 3.38438 4.30703 2.92383C4.09961 1.95352 3.26641 1.12734 2.12734 0.765235C1.60703 0.6 1.63867 0.6 1.50156 0.76875ZM2.26445 1.95703C2.75664 2.19961 3.09766 2.58281 3.23828 3.05391C3.37187 3.48633 3.28398 4.04531 3.0168 4.51641L2.91133 4.69922L2.62656 4.55156C1.77227 4.10859 1.42422 3.22969 1.76172 2.37188C1.84258 2.16797 2.0043 1.85156 2.03242 1.85156C2.03945 1.85156 2.14492 1.90078 2.26445 1.95703ZM16.1371 2.15039C16.5133 2.92031 16.4184 3.65156 15.8734 4.18945C15.7328 4.32656 15.5465 4.46016 15.3707 4.55156L15.0895 4.69922L15.0156 4.57266C14.541 3.76758 14.6043 2.92031 15.1809 2.35078C15.3602 2.17852 15.8629 1.85859 15.9684 1.85156C15.9824 1.85156 16.0598 1.98516 16.1371 2.15039ZM1.59297 5.31445C1.96211 5.37773 2.27852 5.53242 2.52813 5.77148C2.76016 5.99297 2.89375 6.21445 2.97109 6.50977C3.02383 6.7207 3.04141 7.26914 3.00273 7.47656L2.97812 7.58906L2.71797 7.56797C1.64219 7.46953 1.00234 6.72773 1.06211 5.65195C1.07266 5.47969 1.09023 5.32148 1.1043 5.30039C1.13594 5.25117 1.25547 5.25469 1.59297 5.31445ZM16.893 5.29688C16.9387 5.37422 16.9527 5.92969 16.9141 6.1582C16.7699 6.97383 16.1863 7.47305 15.2547 7.56797L15.0227 7.58906L14.998 7.47656C14.9594 7.26914 14.977 6.7207 15.0297 6.50977C15.1914 5.89453 15.7117 5.4375 16.3937 5.31445C16.7066 5.2582 16.8648 5.25117 16.893 5.29688ZM3.2418 8.73867C3.51602 8.84414 3.80781 9.06914 3.99766 9.32227C4.19102 9.57539 4.34219 9.87422 4.31758 9.94453C4.30703 9.97266 4.19453 10.043 4.07148 10.1063C3.08711 10.5879 2.13086 10.2539 1.62109 9.24492C1.58242 9.16406 1.54727 9.07266 1.54727 9.04453C1.54727 8.97422 1.97617 8.75625 2.24336 8.68945C2.52109 8.61914 2.98516 8.64375 3.2418 8.73867ZM15.7434 8.68945C16.0176 8.75625 16.4535 8.9707 16.4535 9.04453C16.4535 9.19922 16.0809 9.75469 15.8418 9.94805C15.3039 10.391 14.6113 10.4437 13.9152 10.0922C13.7781 10.0219 13.6762 9.94805 13.6762 9.91992C13.6762 9.83203 13.8309 9.55078 14.0031 9.32227C14.425 8.75977 15.0648 8.53125 15.7434 8.68945ZM5.5375 11.0098C5.65 11.0414 5.83984 11.1152 5.95586 11.1785C6.1668 11.291 6.64492 11.7129 6.64492 11.7902C6.64492 11.8113 6.53594 11.9309 6.40234 12.0539C5.63242 12.7676 4.72891 12.743 3.94141 11.9871L3.67422 11.7305L3.90977 11.509C4.40195 11.0414 4.975 10.8656 5.5375 11.0098ZM13.2367 11.0098C13.5391 11.0906 13.8273 11.2559 14.091 11.509L14.3266 11.7305L14.0594 11.9871C13.2719 12.743 12.3684 12.7676 11.5984 12.0539C11.4648 11.9309 11.3559 11.8113 11.3559 11.7902C11.3559 11.7656 11.4648 11.6461 11.5949 11.5195C12.0906 11.0449 12.6707 10.8621 13.2367 11.0098Z",fill:"white"})),i("span",{class:"TopRankText"},t.rank)):t.rank,this.userId===t.userID&&!0===this.rankChanged&&i("span",{class:"ArrowWrap"},this.rankUp&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"4.9999",cy:"4.9999",r:"4.9999",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1149)"},i("line",{x1:"4.93332",y1:"4",x2:"4.93332",y2:"7.99992",stroke:"#59CA00","stroke-width":"1.86663"}),i("path",{d:"M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z",fill:"#59CA00"})),i("defs",null,i("clipPath",{id:"clip0_2591_1149"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"translate(1.99902 2)"})))),this.rankDown&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{r:"4.9999",transform:"matrix(1 0 0 -1 4.9999 5.0001)",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1154)"},i("line",{y1:"-0.933315",x2:"3.99992",y2:"-0.933315",transform:"matrix(0 -1 -1 0 4 6)",stroke:"#CA0000","stroke-width":"1.86663"}),i("path",{d:"M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z",fill:"#CA0000"})),i("defs",null,i("clipPath",{id:"clip0_2591_1154"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"matrix(1 0 0 -1 1.99902 8)"})))))),i("div",{class:"Player"},t.shortName),i("div",{class:"Points"},t.score),i("div",{class:"Prize"},t.prizeName)))))))}get host(){return n(this)}};Nn.style=":host{display:block}.LeaderboardBody{background:var(--emw--tournament-color-bg, #153a5c)}.Row{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.LeaderboardRow{display:grid;grid-template-columns:repeat(4, 1fr);color:var(--emw--color-white, #FFFFFF);background:var(--emw--tournament-color-bg, #153a5c);text-align:center;padding:6px;font-size:12px}.LeaderboardHeader{padding:10px;font-size:14px;margin-bottom:8px}.Title{display:flex;gap:10px;padding:8px 6px;margin:10px;justify-content:center}.Ranking{font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF)}.Rank1{background:#7e6c22;border-radius:2px}.Rank2{background:#666;border-radius:2px}.Rank3{background:#6a5446;border-radius:2px}.RankPlayer{background:#12753a;border-radius:2px}.Rank{position:relative}.ArrowWrap{position:absolute}.Arrow{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.Arrow.Show{display:inline-flex}.Arrow.Hide{display:none}.TopRank{position:relative}.TopRankText{position:absolute;font-size:7px;left:40%}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}";const Yn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},zn=(t,e)=>{var i,n;return(null===(i=Yn[e])||void 0===i?void 0:i[t])||(null===(n=Yn.en)||void 0===n?void 0:n[t])},Ln=class{constructor(e){t(this,e),this.language=void 0,this.useGroup=!1,this.useEvent=!1,this.endpoint=void 0,this.session=void 0,this.rawPrizes=void 0,this.tournamentId=void 0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"6f6d6a40e0374ad146b0eda343d963679fbd11f0",class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&i("div",{key:"28edb876913c67479b4fb5c885244cea36a073ea",class:"PrizeTitle"},i("svg",{key:"6cd86bf5db8eacee01a9577458c136cbe78684bc",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},i("path",{key:"744e27a1ee73240f5876abd14b2e912b8dbc979e",d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),i("div",{key:"ddd4dd055f8441b1b0355e95e88b43049a108b2c",class:"Title"},zn("prizes",this.language))),this.initialLoad&&this.useGroup&&i("div",{key:"83b846fe441de36598d01742fd6730de4c5920bf",class:"GroupPrizeTitle"},i("svg",{key:"e6b379df8cc991173b588e8dd9408b0c6716de7a",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("g",{key:"0332923cca76d7ccbe779cb367abb4e8952842b5","clip-path":"url(#clip0_2459_42455)"},i("path",{key:"607a3379976189ca332117ec968c34046b3dcb46",d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),i("defs",{key:"66f11be400aac05c7f334a48b82cfb1aabdead8c"},i("clipPath",{key:"65e879523cff89288af691d5f705ef55996f3107",id:"clip0_2459_42455"},i("rect",{key:"382441f3ade90fa866096c5f25dfc3cb49d82132",width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),i("div",{key:"8610b8361faa0d2316415e39a21162dfcdcaeccf",class:"Title"},zn("prizes",this.language))),i("div",{key:"76d9452769046d3c9cd4d0dd7a65396c5083ebc6",class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,e)=>i("div",{class:`PrizeGroup Group${e+1}`},t&&t.map(((t,e)=>i("div",{class:"PrizeRow"},i("div",{class:`PrizeItem Rank${e+1}`},i("span",{class:"PrizeRank"},t.rank," ",zn("place",this.language)," "),i("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,e)=>i("div",{class:`Prize Prize${e}`},i("p",{class:"PrizeText"},i("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",zn("place",this.language),": ",t.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},zn("noprizes",this.language))))}get host(){return n(this)}};Ln.style=":host{display:block}.PrizeGroups{color:var(--emw--color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emw--tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emw--color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emw--color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}";const Bn=class{constructor(e){t(this,e),this.slides=null,this.slideWidth=0,this.controls={Prev:null,Next:null},this.xDown=null,this.yDown=null,this.slideNumber=3,this.slideShow=3,this.showArrow=!0,this.showButton=!1,this.autoSlide=!1,this.loopTime=1,this.autoItemHeight=!1,this.clientStyling="",this.clientStylingUrl="",this.currentPage=0,this.currentSlideNumber=0,this.slidesCount=0,this.limitStylingAppends=!1}slide(t){this.sliderEl.classList.remove("Static");let e=0;e=t?this.currentSlideNumber+this.slideNumber:this.currentSlideNumber-this.slideNumber,e<0||e>=this.slidesCount||(this.currentSlideNumber=e,this.currentPage=this.currentSlideNumber/this.slideNumber,this.updateListStyle())}slideTo(t){this.sliderEl.classList.remove("Static"),this.currentSlideNumber=t*this.slideNumber,this.currentPage=t,this.updateListStyle()}updateControls(){this.switchControl("Prev",0!==this.currentSlideNumber),this.switchControl("Next",this.currentSlideNumber!==this.slidesCount-this.slideShow)}switchControl(t,e){this.controls[t]&&(this.controls[t].disabled=!e)}componentWillLoad(){this.slideNumber||(this.slideNumber=1),this.slideShow||(this.slideShow=1)}componentDidLoad(){this.slides=this.slotEl.assignedElements(),this.slidesCount=this.slides.length;for(let t in this.controls)this.controls[t]=this.el.shadowRoot.querySelector(".Button"+t);this.autoSlide&&this.setSlideAutoInterval(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),0!==this.currentPage&&(this.sliderEl.classList.add("Static"),this.currentSlideNumber=this.currentPage*this.slideNumber)}componentDidRender(){this.slides&&(this.slideWidth=this.slides[0].offsetWidth),this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.updateListStyle(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}updateListStyle(){this.autoItemHeight&&null!==this.slides&&this.slides.forEach(((t,e)=>{e>=this.currentPage*this.slideNumber&&e<(this.currentPage+1)*this.slideNumber?t.classList.remove("hide"):t.classList.add("hide")}))}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove)}handleTouchStart(t){const e=this.getTouches(t)[0];this.xDown=e.clientX,this.yDown=e.clientY,clearInterval(this.sliderInterval)}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let e=this.xDown-t.touches[0].clientX,i=this.yDown-t.touches[0].clientY;Math.abs(e)>Math.abs(i)&&this.slide(e>0),this.xDown=null,this.yDown=null,this.autoSlide&&this.setSlideAutoInterval()}setSlideAutoInterval(){0!=this.loopTime&&(clearInterval(this.sliderInterval),this.sliderInterval=setInterval((()=>{this.slideTo(this.currentPage+1<this.slidesCount/this.slideNumber?this.currentPage+1:0)}),1e3*Number(this.loopTime)))}componentDidUpdate(){this.sliderEl.style.transform=`translateX(${this.currentSlideNumber*this.slideWidth*-1}px)`,this.updateControls()}switchLoopStatus(t){this.autoSlide&&this.loopTime>0&&(t?clearInterval(this.sliderInterval):this.setSlideAutoInterval())}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"8f86541d4454387e01a54b26c0aa6515d47ddb4d",class:"GeneralSlider"},i("div",{key:"c3e606e98881afeb2b867a58b25f3e7aa3915808",class:"Slider"},i("ul",{key:"e764fb6ad7fe7a727b7c1f37b5fe26704f2cd390",class:`SliderList Col-${this.slideShow}`,part:"SliderList",onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1),ref:t=>this.sliderEl=t},i("slot",{key:"c61792d98ee4aefeb8fe8e84245eac495ff2f898",ref:t=>this.slotEl=t}))),this.showButton&&this.slidesCount>0&&i("div",{key:"35b1a666ec07535c2b70e8678aff70be5a2eff35",class:"PageButtons",part:"PageButtons"},[...Array(this.slidesCount/this.slideNumber)].map(((t,e)=>i("div",{class:"PageButton "+(this.currentPage==e?"active":""),title:`page${e}`,onClick:this.slideTo.bind(this,e),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)}," ")))),this.showArrow&&i("div",{key:"6e910a7d9013b49bc70160fdc8b193de0c1ee309",class:"ArrowButtons"},i("button",{key:"1d21da8ede99b7ef0c1610334763d15d7a9640c7",type:"button",class:"Button ButtonNext",onClick:this.slide.bind(this,!0),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},">"),i("button",{key:"e890b5cb47ba744fb977e492235330f201129f09",type:"button",class:"Button ButtonPrev",onClick:this.slide.bind(this,!1),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},"<")))}get el(){return n(this)}};Bn.style=":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}.SliderList.Static{transition-duration:0ms}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emw--color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emw--tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";export{a as casino_my_tournaments,pn as casino_tournament_banner,vn as casino_tournament_buttons,Sn as casino_tournament_duration,Tn as casino_tournament_info,Nn as casino_tournament_leaderboard,Ln as casino_tournament_prizes,Bn as general_slider}
@@ -9169,9 +9169,9 @@ const CasinoTournamentLeaderboard = class {
9169
9169
  return index.h("div", null, translate$1(column, this.language));
9170
9170
  }
9171
9171
  })), this.items && index.h("div", { key: '0f55294a80175429df797ad7ed7a0c2ff781f612', class: "LeaderboardBody" }, this.items.map((item, index$1) => {
9172
- return index.h("div", { class: "Row", part: "Row" }, index.h("div", { class: `LeaderboardRow Rank${index$1 + 1} ${this.userId == item.userID ? 'RankPlayer' : ''}` }, index.h("div", { class: "Rank" }, this.showTopIcon && item.rank <= 3 ?
9172
+ return index.h("div", { class: "Row", part: "Row" }, index.h("div", { class: `LeaderboardRow Rank${index$1 + 1} ${this.userId === item.userID ? 'RankPlayer' : ''}` }, index.h("div", { class: "Rank" }, this.showTopIcon && item.rank <= 3 ?
9173
9173
  index.h("span", { class: "TopRank" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "15", viewBox: "0 0 18 15", fill: "none" }, index.h("path", { d: "M1.50156 0.76875C1.31172 1.0043 0.991797 1.51406 0.879297 1.75313C0.496094 2.60742 0.478516 3.35273 0.826562 4.17891C0.847656 4.23516 0.830078 4.24219 0.7 4.24219C0.615625 4.24219 0.485547 4.25273 0.415234 4.26328C0.285156 4.28438 0.278125 4.29492 0.211328 4.51992C0.0601562 5.0332 0.025 5.27227 0.0214844 5.78906C0.0214844 6.39727 0.0707031 6.64336 0.299219 7.11445C0.425781 7.37109 0.520703 7.50117 0.75625 7.75078L1.05508 8.06719L0.928516 8.14805C0.854687 8.19023 0.682422 8.32031 0.541797 8.4293L0.285156 8.6332L0.373047 8.91797C0.583984 9.6 0.875781 10.1344 1.25898 10.5422C1.60703 10.9078 2.12383 11.2207 2.50703 11.291C2.57734 11.3051 2.63711 11.3332 2.63711 11.3508C2.63711 11.3684 2.59141 11.4527 2.53164 11.5371C2.47539 11.6215 2.42617 11.7059 2.42617 11.7199C2.42617 11.7691 2.8375 12.3598 3.0168 12.5707C3.37891 12.9961 3.97656 13.3758 4.525 13.5305C4.87305 13.6289 5.49883 13.6359 5.81875 13.5516C6.41641 13.3898 6.90156 13.098 7.32344 12.6445L7.58359 12.3633L7.70312 12.4055C7.99141 12.5039 8.24805 12.7395 8.38164 13.0277C8.44844 13.1754 8.45547 13.2633 8.46602 13.991L8.47656 14.7891H9.00039H9.52422L9.53477 13.9875C9.54531 13.2633 9.55234 13.1754 9.61914 13.0277C9.75273 12.7395 10.0094 12.5039 10.2977 12.4055L10.4172 12.3633L10.6773 12.6445C11.0992 13.098 11.5844 13.3898 12.182 13.5516C12.502 13.6359 13.1277 13.6289 13.4758 13.5305C14.0242 13.3758 14.6219 12.9961 14.984 12.5707C15.1633 12.3598 15.5746 11.7691 15.5746 11.7199C15.5746 11.7059 15.5254 11.6215 15.4691 11.5371C15.4129 11.4527 15.3637 11.3684 15.3637 11.3508C15.3637 11.3332 15.4234 11.3051 15.4937 11.291C15.5676 11.277 15.7223 11.2277 15.8383 11.1785C16.6609 10.834 17.2797 10.05 17.6277 8.91094L17.7156 8.6332L17.459 8.4293C17.3184 8.32031 17.1461 8.19023 17.0723 8.14805L16.9457 8.06719L17.2445 7.75078C17.4801 7.50117 17.575 7.37109 17.7016 7.11445C17.923 6.65391 17.9793 6.39727 17.9793 5.80664C17.9828 5.30742 17.9441 5.06836 17.7859 4.51992C17.7227 4.29492 17.7156 4.28438 17.5855 4.26328C17.5152 4.25273 17.3852 4.24219 17.3008 4.24219C17.1707 4.24219 17.1531 4.23516 17.1742 4.17891C17.6066 3.14883 17.4801 2.21719 16.7559 1.13438C16.3867 0.578907 16.4254 0.6 16.0527 0.708984C14.977 1.02188 14.2703 1.57383 13.866 2.42461C13.5637 3.06445 13.5637 3.87656 13.8695 4.61484C13.982 4.88555 14.1367 5.17383 14.2738 5.36719C14.3371 5.45508 14.3371 5.46211 14.2 5.73633C14.1262 5.89102 14.0312 6.16523 13.9891 6.34453C13.9223 6.63281 13.9152 6.73477 13.9363 7.18828C13.9469 7.47305 13.9645 7.7543 13.9785 7.81406C13.9961 7.91602 13.9855 7.93359 13.7746 8.08477C13.3211 8.40469 12.9168 8.94961 12.6918 9.52617C12.5371 9.92344 12.5441 9.91641 12.3754 9.94453C12.0168 10.0078 11.5879 10.1941 11.2293 10.4508C11.0219 10.5984 10.4066 11.2172 10.4066 11.277C10.4066 11.2945 10.375 11.3086 10.3398 11.3086C10.3012 11.3086 10.1465 11.3473 9.99531 11.3965C9.69297 11.4914 9.39766 11.6707 9.15859 11.9027L9.00039 12.0539L8.85625 11.9098C8.63477 11.6883 8.30781 11.4914 8.00547 11.3965C7.8543 11.3473 7.69961 11.3086 7.66094 11.3086C7.62578 11.3086 7.59414 11.2945 7.59414 11.277C7.59414 11.2172 6.97891 10.5984 6.76797 10.4473C6.4832 10.2434 6.08945 10.057 5.78359 9.98672C5.65 9.95508 5.51641 9.91992 5.4918 9.90586C5.46719 9.89531 5.39336 9.74766 5.33008 9.57891C5.10156 8.9707 4.69023 8.41523 4.22969 8.08477C4.01523 7.93359 4.00469 7.91602 4.02227 7.81406C4.03633 7.7543 4.05391 7.47305 4.06445 7.18828C4.08555 6.73477 4.07852 6.63281 4.01172 6.34453C3.96953 6.16523 3.87461 5.89102 3.80078 5.73633L3.66367 5.45859L3.76914 5.30391C3.90273 5.11055 4.12422 4.66406 4.20156 4.43555C4.36328 3.95391 4.40547 3.38438 4.30703 2.92383C4.09961 1.95352 3.26641 1.12734 2.12734 0.765235C1.60703 0.6 1.63867 0.6 1.50156 0.76875ZM2.26445 1.95703C2.75664 2.19961 3.09766 2.58281 3.23828 3.05391C3.37187 3.48633 3.28398 4.04531 3.0168 4.51641L2.91133 4.69922L2.62656 4.55156C1.77227 4.10859 1.42422 3.22969 1.76172 2.37188C1.84258 2.16797 2.0043 1.85156 2.03242 1.85156C2.03945 1.85156 2.14492 1.90078 2.26445 1.95703ZM16.1371 2.15039C16.5133 2.92031 16.4184 3.65156 15.8734 4.18945C15.7328 4.32656 15.5465 4.46016 15.3707 4.55156L15.0895 4.69922L15.0156 4.57266C14.541 3.76758 14.6043 2.92031 15.1809 2.35078C15.3602 2.17852 15.8629 1.85859 15.9684 1.85156C15.9824 1.85156 16.0598 1.98516 16.1371 2.15039ZM1.59297 5.31445C1.96211 5.37773 2.27852 5.53242 2.52813 5.77148C2.76016 5.99297 2.89375 6.21445 2.97109 6.50977C3.02383 6.7207 3.04141 7.26914 3.00273 7.47656L2.97812 7.58906L2.71797 7.56797C1.64219 7.46953 1.00234 6.72773 1.06211 5.65195C1.07266 5.47969 1.09023 5.32148 1.1043 5.30039C1.13594 5.25117 1.25547 5.25469 1.59297 5.31445ZM16.893 5.29688C16.9387 5.37422 16.9527 5.92969 16.9141 6.1582C16.7699 6.97383 16.1863 7.47305 15.2547 7.56797L15.0227 7.58906L14.998 7.47656C14.9594 7.26914 14.977 6.7207 15.0297 6.50977C15.1914 5.89453 15.7117 5.4375 16.3937 5.31445C16.7066 5.2582 16.8648 5.25117 16.893 5.29688ZM3.2418 8.73867C3.51602 8.84414 3.80781 9.06914 3.99766 9.32227C4.19102 9.57539 4.34219 9.87422 4.31758 9.94453C4.30703 9.97266 4.19453 10.043 4.07148 10.1063C3.08711 10.5879 2.13086 10.2539 1.62109 9.24492C1.58242 9.16406 1.54727 9.07266 1.54727 9.04453C1.54727 8.97422 1.97617 8.75625 2.24336 8.68945C2.52109 8.61914 2.98516 8.64375 3.2418 8.73867ZM15.7434 8.68945C16.0176 8.75625 16.4535 8.9707 16.4535 9.04453C16.4535 9.19922 16.0809 9.75469 15.8418 9.94805C15.3039 10.391 14.6113 10.4437 13.9152 10.0922C13.7781 10.0219 13.6762 9.94805 13.6762 9.91992C13.6762 9.83203 13.8309 9.55078 14.0031 9.32227C14.425 8.75977 15.0648 8.53125 15.7434 8.68945ZM5.5375 11.0098C5.65 11.0414 5.83984 11.1152 5.95586 11.1785C6.1668 11.291 6.64492 11.7129 6.64492 11.7902C6.64492 11.8113 6.53594 11.9309 6.40234 12.0539C5.63242 12.7676 4.72891 12.743 3.94141 11.9871L3.67422 11.7305L3.90977 11.509C4.40195 11.0414 4.975 10.8656 5.5375 11.0098ZM13.2367 11.0098C13.5391 11.0906 13.8273 11.2559 14.091 11.509L14.3266 11.7305L14.0594 11.9871C13.2719 12.743 12.3684 12.7676 11.5984 12.0539C11.4648 11.9309 11.3559 11.8113 11.3559 11.7902C11.3559 11.7656 11.4648 11.6461 11.5949 11.5195C12.0906 11.0449 12.6707 10.8621 13.2367 11.0098Z", fill: "white" })), index.h("span", { class: "TopRankText" }, item.rank)) :
9174
- item.rank, this.userId == item.userID && this.rankChanged == true &&
9174
+ item.rank, this.userId === item.userID && this.rankChanged === true &&
9175
9175
  index.h("span", { class: "ArrowWrap" }, this.rankUp &&
9176
9176
  index.h("svg", { class: "Arrow", width: "20", height: "20", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { cx: "4.9999", cy: "4.9999", r: "4.9999", fill: "#434647" }), index.h("g", { "clip-path": "url(#clip0_2591_1149)" }, index.h("line", { x1: "4.93332", y1: "4", x2: "4.93332", y2: "7.99992", stroke: "#59CA00", "stroke-width": "1.86663" }), index.h("path", { d: "M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z", fill: "#59CA00" })), index.h("defs", null, index.h("clipPath", { id: "clip0_2591_1149" }, index.h("rect", { width: "5.99988", height: "5.99928", fill: "white", transform: "translate(1.99902 2)" })))), this.rankDown &&
9177
9177
  index.h("svg", { class: "Arrow", width: "20", height: "20", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { r: "4.9999", transform: "matrix(1 0 0 -1 4.9999 5.0001)", fill: "#434647" }), index.h("g", { "clip-path": "url(#clip0_2591_1154)" }, index.h("line", { y1: "-0.933315", x2: "3.99992", y2: "-0.933315", transform: "matrix(0 -1 -1 0 4 6)", stroke: "#CA0000", "stroke-width": "1.86663" }), index.h("path", { d: "M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z", fill: "#CA0000" })), index.h("defs", null, index.h("clipPath", { id: "clip0_2591_1154" }, index.h("rect", { width: "5.99988", height: "5.99928", fill: "white", transform: "matrix(1 0 0 -1 1.99902 8)" })))))), index.h("div", { class: "Player" }, item.shortName), index.h("div", { class: "Points" }, item.score), index.h("div", { class: "Prize" }, item.prizeName)));
@@ -9165,9 +9165,9 @@ const CasinoTournamentLeaderboard = class {
9165
9165
  return h("div", null, translate$1(column, this.language));
9166
9166
  }
9167
9167
  })), this.items && h("div", { key: '0f55294a80175429df797ad7ed7a0c2ff781f612', class: "LeaderboardBody" }, this.items.map((item, index) => {
9168
- return h("div", { class: "Row", part: "Row" }, h("div", { class: `LeaderboardRow Rank${index + 1} ${this.userId == item.userID ? 'RankPlayer' : ''}` }, h("div", { class: "Rank" }, this.showTopIcon && item.rank <= 3 ?
9168
+ return h("div", { class: "Row", part: "Row" }, h("div", { class: `LeaderboardRow Rank${index + 1} ${this.userId === item.userID ? 'RankPlayer' : ''}` }, h("div", { class: "Rank" }, this.showTopIcon && item.rank <= 3 ?
9169
9169
  h("span", { class: "TopRank" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "15", viewBox: "0 0 18 15", fill: "none" }, h("path", { d: "M1.50156 0.76875C1.31172 1.0043 0.991797 1.51406 0.879297 1.75313C0.496094 2.60742 0.478516 3.35273 0.826562 4.17891C0.847656 4.23516 0.830078 4.24219 0.7 4.24219C0.615625 4.24219 0.485547 4.25273 0.415234 4.26328C0.285156 4.28438 0.278125 4.29492 0.211328 4.51992C0.0601562 5.0332 0.025 5.27227 0.0214844 5.78906C0.0214844 6.39727 0.0707031 6.64336 0.299219 7.11445C0.425781 7.37109 0.520703 7.50117 0.75625 7.75078L1.05508 8.06719L0.928516 8.14805C0.854687 8.19023 0.682422 8.32031 0.541797 8.4293L0.285156 8.6332L0.373047 8.91797C0.583984 9.6 0.875781 10.1344 1.25898 10.5422C1.60703 10.9078 2.12383 11.2207 2.50703 11.291C2.57734 11.3051 2.63711 11.3332 2.63711 11.3508C2.63711 11.3684 2.59141 11.4527 2.53164 11.5371C2.47539 11.6215 2.42617 11.7059 2.42617 11.7199C2.42617 11.7691 2.8375 12.3598 3.0168 12.5707C3.37891 12.9961 3.97656 13.3758 4.525 13.5305C4.87305 13.6289 5.49883 13.6359 5.81875 13.5516C6.41641 13.3898 6.90156 13.098 7.32344 12.6445L7.58359 12.3633L7.70312 12.4055C7.99141 12.5039 8.24805 12.7395 8.38164 13.0277C8.44844 13.1754 8.45547 13.2633 8.46602 13.991L8.47656 14.7891H9.00039H9.52422L9.53477 13.9875C9.54531 13.2633 9.55234 13.1754 9.61914 13.0277C9.75273 12.7395 10.0094 12.5039 10.2977 12.4055L10.4172 12.3633L10.6773 12.6445C11.0992 13.098 11.5844 13.3898 12.182 13.5516C12.502 13.6359 13.1277 13.6289 13.4758 13.5305C14.0242 13.3758 14.6219 12.9961 14.984 12.5707C15.1633 12.3598 15.5746 11.7691 15.5746 11.7199C15.5746 11.7059 15.5254 11.6215 15.4691 11.5371C15.4129 11.4527 15.3637 11.3684 15.3637 11.3508C15.3637 11.3332 15.4234 11.3051 15.4937 11.291C15.5676 11.277 15.7223 11.2277 15.8383 11.1785C16.6609 10.834 17.2797 10.05 17.6277 8.91094L17.7156 8.6332L17.459 8.4293C17.3184 8.32031 17.1461 8.19023 17.0723 8.14805L16.9457 8.06719L17.2445 7.75078C17.4801 7.50117 17.575 7.37109 17.7016 7.11445C17.923 6.65391 17.9793 6.39727 17.9793 5.80664C17.9828 5.30742 17.9441 5.06836 17.7859 4.51992C17.7227 4.29492 17.7156 4.28438 17.5855 4.26328C17.5152 4.25273 17.3852 4.24219 17.3008 4.24219C17.1707 4.24219 17.1531 4.23516 17.1742 4.17891C17.6066 3.14883 17.4801 2.21719 16.7559 1.13438C16.3867 0.578907 16.4254 0.6 16.0527 0.708984C14.977 1.02188 14.2703 1.57383 13.866 2.42461C13.5637 3.06445 13.5637 3.87656 13.8695 4.61484C13.982 4.88555 14.1367 5.17383 14.2738 5.36719C14.3371 5.45508 14.3371 5.46211 14.2 5.73633C14.1262 5.89102 14.0312 6.16523 13.9891 6.34453C13.9223 6.63281 13.9152 6.73477 13.9363 7.18828C13.9469 7.47305 13.9645 7.7543 13.9785 7.81406C13.9961 7.91602 13.9855 7.93359 13.7746 8.08477C13.3211 8.40469 12.9168 8.94961 12.6918 9.52617C12.5371 9.92344 12.5441 9.91641 12.3754 9.94453C12.0168 10.0078 11.5879 10.1941 11.2293 10.4508C11.0219 10.5984 10.4066 11.2172 10.4066 11.277C10.4066 11.2945 10.375 11.3086 10.3398 11.3086C10.3012 11.3086 10.1465 11.3473 9.99531 11.3965C9.69297 11.4914 9.39766 11.6707 9.15859 11.9027L9.00039 12.0539L8.85625 11.9098C8.63477 11.6883 8.30781 11.4914 8.00547 11.3965C7.8543 11.3473 7.69961 11.3086 7.66094 11.3086C7.62578 11.3086 7.59414 11.2945 7.59414 11.277C7.59414 11.2172 6.97891 10.5984 6.76797 10.4473C6.4832 10.2434 6.08945 10.057 5.78359 9.98672C5.65 9.95508 5.51641 9.91992 5.4918 9.90586C5.46719 9.89531 5.39336 9.74766 5.33008 9.57891C5.10156 8.9707 4.69023 8.41523 4.22969 8.08477C4.01523 7.93359 4.00469 7.91602 4.02227 7.81406C4.03633 7.7543 4.05391 7.47305 4.06445 7.18828C4.08555 6.73477 4.07852 6.63281 4.01172 6.34453C3.96953 6.16523 3.87461 5.89102 3.80078 5.73633L3.66367 5.45859L3.76914 5.30391C3.90273 5.11055 4.12422 4.66406 4.20156 4.43555C4.36328 3.95391 4.40547 3.38438 4.30703 2.92383C4.09961 1.95352 3.26641 1.12734 2.12734 0.765235C1.60703 0.6 1.63867 0.6 1.50156 0.76875ZM2.26445 1.95703C2.75664 2.19961 3.09766 2.58281 3.23828 3.05391C3.37187 3.48633 3.28398 4.04531 3.0168 4.51641L2.91133 4.69922L2.62656 4.55156C1.77227 4.10859 1.42422 3.22969 1.76172 2.37188C1.84258 2.16797 2.0043 1.85156 2.03242 1.85156C2.03945 1.85156 2.14492 1.90078 2.26445 1.95703ZM16.1371 2.15039C16.5133 2.92031 16.4184 3.65156 15.8734 4.18945C15.7328 4.32656 15.5465 4.46016 15.3707 4.55156L15.0895 4.69922L15.0156 4.57266C14.541 3.76758 14.6043 2.92031 15.1809 2.35078C15.3602 2.17852 15.8629 1.85859 15.9684 1.85156C15.9824 1.85156 16.0598 1.98516 16.1371 2.15039ZM1.59297 5.31445C1.96211 5.37773 2.27852 5.53242 2.52813 5.77148C2.76016 5.99297 2.89375 6.21445 2.97109 6.50977C3.02383 6.7207 3.04141 7.26914 3.00273 7.47656L2.97812 7.58906L2.71797 7.56797C1.64219 7.46953 1.00234 6.72773 1.06211 5.65195C1.07266 5.47969 1.09023 5.32148 1.1043 5.30039C1.13594 5.25117 1.25547 5.25469 1.59297 5.31445ZM16.893 5.29688C16.9387 5.37422 16.9527 5.92969 16.9141 6.1582C16.7699 6.97383 16.1863 7.47305 15.2547 7.56797L15.0227 7.58906L14.998 7.47656C14.9594 7.26914 14.977 6.7207 15.0297 6.50977C15.1914 5.89453 15.7117 5.4375 16.3937 5.31445C16.7066 5.2582 16.8648 5.25117 16.893 5.29688ZM3.2418 8.73867C3.51602 8.84414 3.80781 9.06914 3.99766 9.32227C4.19102 9.57539 4.34219 9.87422 4.31758 9.94453C4.30703 9.97266 4.19453 10.043 4.07148 10.1063C3.08711 10.5879 2.13086 10.2539 1.62109 9.24492C1.58242 9.16406 1.54727 9.07266 1.54727 9.04453C1.54727 8.97422 1.97617 8.75625 2.24336 8.68945C2.52109 8.61914 2.98516 8.64375 3.2418 8.73867ZM15.7434 8.68945C16.0176 8.75625 16.4535 8.9707 16.4535 9.04453C16.4535 9.19922 16.0809 9.75469 15.8418 9.94805C15.3039 10.391 14.6113 10.4437 13.9152 10.0922C13.7781 10.0219 13.6762 9.94805 13.6762 9.91992C13.6762 9.83203 13.8309 9.55078 14.0031 9.32227C14.425 8.75977 15.0648 8.53125 15.7434 8.68945ZM5.5375 11.0098C5.65 11.0414 5.83984 11.1152 5.95586 11.1785C6.1668 11.291 6.64492 11.7129 6.64492 11.7902C6.64492 11.8113 6.53594 11.9309 6.40234 12.0539C5.63242 12.7676 4.72891 12.743 3.94141 11.9871L3.67422 11.7305L3.90977 11.509C4.40195 11.0414 4.975 10.8656 5.5375 11.0098ZM13.2367 11.0098C13.5391 11.0906 13.8273 11.2559 14.091 11.509L14.3266 11.7305L14.0594 11.9871C13.2719 12.743 12.3684 12.7676 11.5984 12.0539C11.4648 11.9309 11.3559 11.8113 11.3559 11.7902C11.3559 11.7656 11.4648 11.6461 11.5949 11.5195C12.0906 11.0449 12.6707 10.8621 13.2367 11.0098Z", fill: "white" })), h("span", { class: "TopRankText" }, item.rank)) :
9170
- item.rank, this.userId == item.userID && this.rankChanged == true &&
9170
+ item.rank, this.userId === item.userID && this.rankChanged === true &&
9171
9171
  h("span", { class: "ArrowWrap" }, this.rankUp &&
9172
9172
  h("svg", { class: "Arrow", width: "20", height: "20", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { cx: "4.9999", cy: "4.9999", r: "4.9999", fill: "#434647" }), h("g", { "clip-path": "url(#clip0_2591_1149)" }, h("line", { x1: "4.93332", y1: "4", x2: "4.93332", y2: "7.99992", stroke: "#59CA00", "stroke-width": "1.86663" }), h("path", { d: "M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z", fill: "#59CA00" })), h("defs", null, h("clipPath", { id: "clip0_2591_1149" }, h("rect", { width: "5.99988", height: "5.99928", fill: "white", transform: "translate(1.99902 2)" })))), this.rankDown &&
9173
9173
  h("svg", { class: "Arrow", width: "20", height: "20", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { r: "4.9999", transform: "matrix(1 0 0 -1 4.9999 5.0001)", fill: "#434647" }), h("g", { "clip-path": "url(#clip0_2591_1154)" }, h("line", { y1: "-0.933315", x2: "3.99992", y2: "-0.933315", transform: "matrix(0 -1 -1 0 4 6)", stroke: "#CA0000", "stroke-width": "1.86663" }), h("path", { d: "M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z", fill: "#CA0000" })), h("defs", null, h("clipPath", { id: "clip0_2591_1154" }, h("rect", { width: "5.99988", height: "5.99928", fill: "white", transform: "matrix(1 0 0 -1 1.99902 8)" })))))), h("div", { class: "Player" }, item.shortName), h("div", { class: "Points" }, item.score), h("div", { class: "Prize" }, item.prizeName)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-my-tournaments",
3
- "version": "1.87.26",
3
+ "version": "1.87.28",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",