@everymatrix/tournament-details-page 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{TournamentDetails-C_f9o603.js → TournamentDetails-BVnS_IYF.js} +247 -666
- package/components/TournamentDetails-BoaqYHo1.cjs +3 -0
- package/components/TournamentDetails-CYrQWwZn.cjs +3 -0
- package/components/{TournamentDetails-HtQSmioM.js → TournamentDetails-hOUvqDF2.js} +250 -669
- package/components/TournamentDetailsPage-BgoG6goQ.cjs +36 -0
- package/components/{TournamentDetailsPage-Bd3xnU6b.js → TournamentDetailsPage-DcS7Pa0U.js} +338 -434
- package/components/{TournamentDetailsPage-Wc_qqtHS.js → TournamentDetailsPage-LxAzPvhv.js} +351 -402
- package/components/TournamentDetailsPage-WnIR1yO-.cjs +36 -0
- package/components/{TournamentGames-DqePP6sz.js → TournamentGames-B5Vr9KT7.js} +484 -468
- package/components/{TournamentGames-n3vpJ0SA.js → TournamentGames-Bgha2ST9.js} +448 -432
- package/components/TournamentGames-DXcN8tkz.cjs +51 -0
- package/components/TournamentGames-DpOh7T_F.cjs +51 -0
- package/components/TournamentLeaderboard-8MMMRNQy.cjs +46 -0
- package/components/TournamentLeaderboard-C_Ne8wC4.js +7718 -0
- package/components/TournamentLeaderboard-DpfSasWx.cjs +46 -0
- package/components/TournamentLeaderboard-cxKLflDm.js +7614 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentDetails-CNV6FJFf.cjs +0 -3
- package/components/TournamentDetails-h5LnXQfE.cjs +0 -3
- package/components/TournamentDetailsPage-6yyclmUS.cjs +0 -44
- package/components/TournamentDetailsPage-DEsqiKjD.cjs +0 -44
- package/components/TournamentGames-CVFiICNX.cjs +0 -51
- package/components/TournamentGames-Chs_XOxu.cjs +0 -51
- package/components/TournamentLeaderboard-B_9ojgZo.js +0 -7455
- package/components/TournamentLeaderboard-CJLCAutr.cjs +0 -38
- package/components/TournamentLeaderboard-CP3IAn1u.js +0 -7557
- package/components/TournamentLeaderboard-Dz-5i1SK.cjs +0 -38
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-8MMMRNQy.cjs");/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var $=function(n,r){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},$(n,r)};function L(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");$(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ee(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],i=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,a=[],l;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(u){l={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function re(n,r,t){if(arguments.length===2)for(var i=0,o=r.length,a;i<o;i++)(a||!(i in r))&&(a||(a=Array.prototype.slice.call(r,0,i)),a[i]=r[i]);return n.concat(a||r)}function A(n){return typeof n=="function"}function ge(n){var r=function(i){Error.call(i),i.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Z=ge(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
+
`+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function ne(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var Y=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,i,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=ee(l),d=u.next();!d.done;d=u.next()){var b=d.value;b.remove(this)}}catch(x){r={error:x}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else l.remove(this);var v=this.initialTeardown;if(A(v))try{v()}catch(x){a=x instanceof Z?x.errors:[x]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var P=ee(_),p=P.next();!p.done;p=P.next()){var B=p.value;try{pe(B)}catch(x){a=a??[],x instanceof Z?a=re(re([],te(a)),te(x.errors)):a.push(x)}}}catch(x){i={error:x}}finally{try{p&&!p.done&&(o=P.return)&&o.call(P)}finally{if(i)throw i.error}}}if(a)throw new Z(a)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)pe(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ne(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&ne(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),ye=Y.EMPTY;function _e(n){return n instanceof Y||n&&"closed"in n&&A(n.remove)&&A(n.add)&&A(n.unsubscribe)}function pe(n){A(n)?n():n.unsubscribe()}var Ke={Promise:void 0},Ve={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,re([n,r],te(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Xe(n){Ve.setTimeout(function(){throw n})}function fe(){}function H(n){n()}var xe=function(n){L(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,_e(t)&&t.add(i)):i.destination=$e,i}return r.create=function(t,i,o){return new ie(t,i,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Y),Qe=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(i){U(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){U(i)}else U(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){U(t)}},n}(),ie=function(n){L(r,n);function r(t,i,o){var a=n.call(this)||this,l;return A(t)||!t?l={next:t??void 0,error:i??void 0,complete:o??void 0}:l=t,a.destination=new Qe(l),a}return r}(xe);function U(n){Xe(n)}function Ze(n){throw n}var $e={closed:!0,next:fe,error:Ze,complete:fe},et=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tt(n){return n}function rt(n){return n.length===0?tt:n.length===1?n[0]:function(t){return n.reduce(function(i,o){return o(i)},t)}}var de=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,i){var o=this,a=it(r)?r:new ie(r,t,i);return H(function(){var l=o,u=l.operator,d=l.source;a.add(u?u.call(a,d):d?o._subscribe(a):o._trySubscribe(a))}),a},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var i=this;return t=ve(t),new t(function(o,a){var l=new ie({next:function(u){try{r(u)}catch(d){a(d),l.unsubscribe()}},error:a,complete:o});i.subscribe(l)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[et]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return rt(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=ve(r),new r(function(i,o){var a;t.subscribe(function(l){return a=l},function(l){return o(l)},function(){return i(a)})})},n.create=function(r){return new n(r)},n}();function ve(n){var r;return(r=n??Ke.Promise)!==null&&r!==void 0?r:Promise}function nt(n){return n&&A(n.next)&&A(n.error)&&A(n.complete)}function it(n){return n&&n instanceof xe||nt(n)&&_e(n)}var ot=ge(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),we=function(n){L(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var i=new me(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new ot},r.prototype.next=function(t){var i=this;H(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=ee(i.currentObservers),u=l.next();!u.done;u=l.next()){var d=u.value;d.next(t)}}catch(b){o={error:b}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;H(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;H(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var i=this,o=this,a=o.hasError,l=o.isStopped,u=o.observers;return a||l?ye:(this.currentObservers=null,u.push(t),new Y(function(){i.currentObservers=null,ne(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,a=i.thrownError,l=i.isStopped;o?t.error(a):l&&t.complete()},r.prototype.asObservable=function(){var t=new de;return t.source=this,t},r.create=function(t,i){return new me(t,i)},r}(de),me=function(n){L(r,n);function r(t,i){var o=n.call(this)||this;return o.destination=t,o.source=i,o}return r.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},r.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},r.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},r.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:ye},r}(we),Se={now:function(){return(Se.delegate||Date).now()},delegate:void 0},Pe=function(n){L(r,n);function r(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Se);var a=n.call(this)||this;return a._bufferSize=t,a._windowTime=i,a._timestampProvider=o,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=i===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,i),a}return r.prototype.next=function(t){var i=this,o=i.isStopped,a=i._buffer,l=i._infiniteTimeWindow,u=i._timestampProvider,d=i._windowTime;o||(a.push(t),!l&&a.push(u.now()+d)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,a=o._infiniteTimeWindow,l=o._buffer,u=l.slice(),d=0;d<u.length&&!t.closed;d+=a?1:2)t.next(u[d]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,a=t._buffer,l=t._infiniteTimeWindow,u=(l?1:2)*i;if(i<1/0&&u<a.length&&a.splice(0,a.length-u),!l){for(var d=o.now(),b=0,v=1;v<a.length&&a[v]<=d;v+=2)b=v;b&&a.splice(0,b+1)}},r}(we);const at={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"},da:{previousButton:"Forrige",nextButton:"Næste",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Deltagende spil",gamesDescriptionSubtitle:"Opdag spillene",sportsRulesParseError:"Fejl ved parsing af turneringsregler",noAvailableGames:"Der er endnu ikke konfigureret nogen spil!"}},he=[],be={},st=(n,r=0)=>{if(he.indexOf(n)==-1){const t=new Pe(r);be[n]=t,he.push(n)}return be[n]};typeof window<"u"&&(window.emWidgets={topic:st});const lt=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;var ut=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),ct=e.from_html('<p class="svelte-2ya82b"> </p>'),pt=e.from_html("<div></div>"),ft=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),dt=e.from_html("<p> </p>"),vt=e.from_html('<div class="TournamentGameThumbnail svelte-2ya82b"><div class="ImageContainer svelte-2ya82b"><img class="svelte-2ya82b"/> <div class="PlayButtonOverlay svelte-2ya82b"><button class="PlayGameButton svelte-2ya82b"> </button></div></div></div>'),mt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),ht=e.from_html("<button> </button>"),bt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),gt=e.from_html('<div class="PaginationSkeleton svelte-2ya82b"><div class="PaginationSkeletonButton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationSkeletonButton svelte-2ya82b"></div></div>'),yt=e.from_html('<div class="TournamentGamesWrapper svelte-2ya82b"><div class="GamesDescription svelte-2ya82b"><p class="GamesDescriptionTitle svelte-2ya82b"> </p> <p class="GamesDescriptionSubTitle svelte-2ya82b"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const _t={hash:"svelte-2ya82b",code:`.svelte-2ya82b,
|
|
17
|
+
.svelte-2ya82b::before,
|
|
18
|
+
.svelte-2ya82b::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-2ya82b {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-2ya82b {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-2ya82b) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-2ya82b {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;min-height:150px;}.TournamentGamesWrapper.svelte-2ya82b {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-2ya82b {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
19
|
+
to top,
|
|
20
|
+
var(--emw-color-primary, #FF1D4E),
|
|
21
|
+
transparent
|
|
22
|
+
);background-size:100% 200%;
|
|
23
|
+
animation: svelte-2ya82b-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-2ya82b) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-2ya82b) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-2ya82b) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-2ya82b {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-2ya82b) {display:flex;gap:3px;}.PaginationButton:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-2ya82b {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-2ya82b {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
+
animation: svelte-2ya82b-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
+
animation: svelte-2ya82b-pulse 1s infinite;}}
|
|
26
|
+
|
|
27
|
+
@keyframes svelte-2ya82b-pulse {
|
|
28
|
+
0% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
50% {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@media (min-width: 750px) {.TournamentGamesTabs.svelte-2ya82b {width:fit-content;}.PaginationWrapper.svelte-2ya82b, .PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;}.PaginationButton.svelte-2ya82b {min-width:75px;}.PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:35px;}}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (max-width: 475px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-2ya82b {& .PaginationButton:where(.svelte-2ya82b) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-2ya82b {font-size:12px;}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 380px) {.TournamentGamesContainer.svelte-2ya82b {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (min-width: 1500px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
|
|
51
|
+
}.Hidden.svelte-2ya82b {display:none;}`};function oe(n,r){e.push(r,!0),e.append_styles(n,_t);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),a=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),u=e.prop(r,"language",7,"en"),d=e.prop(r,"session"),b=e.prop(r,"tournamentid"),v=e.prop(r,"gamesLimit",7,6),_=e.prop(r,"totalGames"),P=e.prop(r,"platformProp",7,null),p=e.prop(r,"tournamentMetadata"),B=e.prop(r,"translationurl");e.registerTranslations(at),e.setLocale(u());const x=()=>{e.setLocale(u())};e.user_pre_effect(()=>{B()&&e.loadTranslations(B())}),e.user_effect(()=>{x()});let q=e.state(e.proxy(a()||[])),C=e.state(!1),w=e.state(0),D=e.state(void 0),I=e.state(!0);const ke=e.isServer()?P()??"dk":lt(window.navigator.userAgent),J=async()=>{if(!K.has(e.get(W))){e.set(C,!0);try{const s=await e.fetchTournament({endpoint:l(),language:u(),platform:ke,session:d(),tournamentid:b(),filterById:!0,gamesLimit:v(),gamesOffset:e.get(w)});e.set(q,s?.games?.items,!0),K.set(e.get(W),e.get(q)),e.get(I)||e.set(I,!0)}catch(s){console.log(s)}finally{e.set(C,!1)}}},Ge=()=>{const s=Math.ceil(_()/v()),c=Math.floor(e.get(w)/v())+1;if(s<=5)return Array.from({length:s},(g,T)=>T+1);const f=[];return f.push(1),c<=3?(f.push(2,3),f.push("..."),f.push(s)):c>=s-2?(f.push("..."),f.push(s-2,s-1,s)):(f.push("..."),f.push(c-1,c,c+1),f.push("..."),f.push(s)),f},Ee=()=>{e.get(w)<_()&&(e.set(w,e.get(w)+v()),J())},Ae=()=>{e.get(w)!==0&&(e.set(w,e.get(w)-v()),J())},Oe=s=>{e.set(w,(s-1)*v()),J()},je=e.user_derived(Ge),W=e.user_derived(()=>Math.floor(e.get(w)/v())+1);let K=new Map([[1,a()]]),Be=e.user_derived(()=>K.get(e.get(W))??[]),O=e.state("casino");const Me=()=>{if(!p())return;const s=p().sports?.rules;let c;if(s)try{c=JSON.parse(s),e.set(D,c[u()]||c["*"],!0)}catch(f){console.log(f),e.set(D,`${t()("sportsRulesParseError")}`)}},Le=s=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:s.launchUrl,id:s.gameId,thumbnail:s.thumbnail,name:s.name},window.location.href)};e.user_effect(()=>{Object.keys(p()).length!==0&&Me()});var Ce={get initialGames(){return a()},set initialGames(s){a(s),e.flushSync()},get endpoint(){return l()},set endpoint(s){l(s),e.flushSync()},get language(){return u()},set language(s="en"){u(s),e.flushSync()},get session(){return d()},set session(s){d(s),e.flushSync()},get tournamentid(){return b()},set tournamentid(s){b(s),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(s=6){v(s),e.flushSync()},get totalGames(){return _()},set totalGames(s){_(s),e.flushSync()},get platformProp(){return P()},set platformProp(s=null){P(s),e.flushSync()},get tournamentMetadata(){return p()},set tournamentMetadata(s){p(s),e.flushSync()},get translationurl(){return B()},set translationurl(s){B(s),e.flushSync()}},V=yt(),X=e.child(V),Q=e.child(X),De=e.child(Q,!0);e.reset(Q);var ae=e.sibling(Q,2),Ie=e.child(ae,!0);e.reset(ae),e.reset(X);var se=e.sibling(X,2);{var We=s=>{var c=ut(),f=e.child(c);let g;f.__click=()=>e.set(O,"casino");var T=e.child(f,!0);e.reset(f);var m=e.sibling(f,2);let h;m.__click=()=>e.set(O,"sports");var S=e.child(m,!0);e.reset(m),e.reset(c),e.template_effect((k,y)=>{g=e.set_class(f,1,"Tab svelte-2ya82b",null,g,{Active:e.get(O)==="casino"}),e.set_text(T,k),h=e.set_class(m,1,"Tab svelte-2ya82b",null,h,{Active:e.get(O)==="sports"}),e.set_text(S,y)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.append(s,c)};e.if_block(se,s=>{Object.keys(p()).length!==0&&s(We)})}var le=e.sibling(se,2);{var Ne=s=>{var c=pt();let f;e.each(c,21,()=>e.get(D),e.index,(g,T)=>{var m=ct(),h=e.child(m);e.reset(m),e.template_effect(S=>e.set_text(h,`${e.get(T).rule??""} ${S??""}`),[()=>t()("contribution")]),e.append(g,m)}),e.reset(c),e.template_effect(()=>f=e.set_class(c,1,"TournamentRulesWrapper svelte-2ya82b",null,f,{Hidden:e.get(O)==="casino"})),e.append(s,c)};e.if_block(le,s=>{e.get(D)&&s(Ne)})}var N=e.sibling(le,2);let ue;var Re=e.child(N);{var ze=s=>{var c=e.comment(),f=e.first_child(c);e.each(f,17,()=>Array(v()),e.index,(g,T,m,h)=>{var S=ft();e.append(g,S)}),e.append(s,c)},Fe=s=>{var c=e.comment(),f=e.first_child(c);{var g=m=>{var h=dt();let S;var k=e.child(h,!0);e.reset(h),e.template_effect(y=>{S=e.set_class(h,1,"NoGamesAvailable svelte-2ya82b",null,S,{Hidden:e.get(O)==="sports"}),e.set_text(k,y)},[()=>t()("noAvailableGames")]),e.append(m,h)},T=m=>{var h=e.comment(),S=e.first_child(h);e.each(S,17,()=>e.get(Be),e.index,(k,y)=>{var j=vt();j.__click=()=>Le(e.get(y));var R=e.child(j),M=e.child(R),z=e.sibling(M,2),G=e.child(z),E=e.child(G,!0);e.reset(G),e.reset(z),e.reset(R),e.reset(j),e.template_effect(F=>{e.set_attribute(M,"src",`https:${e.get(y).thumbnail}`),e.set_attribute(M,"alt",e.get(y).name),e.set_text(E,F)},[()=>t()("play")]),e.append(k,j)}),e.append(m,h)};e.if_block(f,m=>{!e.get(C)&&e.get(q)?.length===0?m(g):m(T,!1)},!0)}e.append(s,c)};e.if_block(Re,s=>{e.get(C)?s(ze):s(Fe,!1)})}e.reset(N);var ce=e.sibling(N,2);{var Ue=s=>{var c=bt();let f;var g=e.child(c);g.__click=Ae;var T=e.child(g,!0);e.reset(g);var m=e.sibling(g,2);e.each(m,21,()=>e.get(je),e.index,(k,y)=>{var j=e.comment(),R=e.first_child(j);{var M=G=>{var E=mt();e.append(G,E)},z=G=>{var E=ht();let F;E.__click=()=>Oe(e.get(y));var Je=e.child(E,!0);e.reset(E),e.template_effect(()=>{F=e.set_class(E,1,"PaginationButton Number svelte-2ya82b",null,F,{Active:e.get(y)===e.get(W)}),e.set_text(Je,e.get(y))}),e.append(G,E)};e.if_block(R,G=>{typeof e.get(y)!="number"?G(M):G(z,!1)})}e.append(k,j)}),e.reset(m);var h=e.sibling(m,2);h.__click=Ee;var S=e.child(h,!0);e.reset(h),e.reset(c),e.template_effect((k,y)=>{f=e.set_class(c,1,"PaginationWrapper svelte-2ya82b",null,f,{Hidden:e.get(O)==="sports"}),g.disabled=e.get(w)===0,e.set_text(T,k),h.disabled=e.get(w)>=_()-v(),e.set_text(S,y)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.append(s,c)};e.if_block(ce,s=>{e.get(I)&&_()>v()&&s(Ue)})}var He=e.sibling(ce,2);{var Ye=s=>{var c=gt();e.append(s,c)};e.if_block(He,s=>{e.get(I)||s(Ye)})}e.reset(V),e.template_effect((s,c)=>{e.set_text(De,s),e.set_text(Ie,c),ue=e.set_class(N,1,"TournamentGamesContainer svelte-2ya82b",null,ue,{Hidden:e.get(O)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,V);var qe=e.pop(Ce);return o(),qe}e.delegate(["click"]);e.create_custom_element(oe,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!0);function Te(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),i=e.prop(r,"endpoint"),o=e.prop(r,"language",7,"en"),a=e.prop(r,"session"),l=e.prop(r,"tournamentid"),u=e.prop(r,"gamesLimit",7,6),d=e.prop(r,"totalGames"),b=e.prop(r,"platformProp",7,null),v=e.prop(r,"tournamentMetadata"),_=e.prop(r,"translationurl");var P={get initialGames(){return t()},set initialGames(p){t(p),e.flushSync()},get endpoint(){return i()},set endpoint(p){i(p),e.flushSync()},get language(){return o()},set language(p="en"){o(p),e.flushSync()},get session(){return a()},set session(p){a(p),e.flushSync()},get tournamentid(){return l()},set tournamentid(p){l(p),e.flushSync()},get gamesLimit(){return u()},set gamesLimit(p=6){u(p),e.flushSync()},get totalGames(){return d()},set totalGames(p){d(p),e.flushSync()},get platformProp(){return b()},set platformProp(p=null){b(p),e.flushSync()},get tournamentMetadata(){return v()},set tournamentMetadata(p){v(p),e.flushSync()},get translationurl(){return _()},set translationurl(p){_(p),e.flushSync()}};return oe(n,{get initialGames(){return t()},get endpoint(){return i()},get language(){return o()},get translationurl(){return _()},get session(){return a()},get tournamentid(){return l()},get gamesLimit(){return u()},get totalGames(){return d()},get platformProp(){return b()},get tournamentMetadata(){return v()}}),e.pop(P)}customElements.define("tournament-games",e.create_custom_element(Te,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!1));const xt=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=Pe;exports.TournamentGames=oe;exports.TournamentGames_ce=xt;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var fe=(n,r,t)=>new Promise((i,o)=>{var a=p=>{try{u(t.next(p))}catch(b){o(b)}},l=p=>{try{u(t.throw(p))}catch(b){o(b)}},u=p=>p.done?i(p.value):Promise.resolve(p.value).then(a,l);u((t=t.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-DpfSasWx.cjs");/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var $=function(n,r){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},$(n,r)};function L(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");$(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ee(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],i=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,a=[],l;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(u){l={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function re(n,r,t){if(arguments.length===2)for(var i=0,o=r.length,a;i<o;i++)(a||!(i in r))&&(a||(a=Array.prototype.slice.call(r,0,i)),a[i]=r[i]);return n.concat(a||r)}function A(n){return typeof n=="function"}function _e(n){var r=function(i){Error.call(i),i.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Z=_e(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
+
`+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function ne(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var Y=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,i,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=ee(l),p=u.next();!p.done;p=u.next()){var b=p.value;b.remove(this)}}catch(w){r={error:w}}finally{try{p&&!p.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else l.remove(this);var v=this.initialTeardown;if(A(v))try{v()}catch(w){a=w instanceof Z?w.errors:[w]}var x=this._finalizers;if(x){this._finalizers=null;try{for(var T=ee(x),f=T.next();!f.done;f=T.next()){var B=f.value;try{de(B)}catch(w){a=a!=null?a:[],w instanceof Z?a=re(re([],te(a)),te(w.errors)):a.push(w)}}}catch(w){i={error:w}}finally{try{f&&!f.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}}if(a)throw new Z(a)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)de(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ne(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&ne(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),xe=Y.EMPTY;function we(n){return n instanceof Y||n&&"closed"in n&&A(n.remove)&&A(n.add)&&A(n.unsubscribe)}function de(n){A(n)?n():n.unsubscribe()}var Xe={Promise:void 0},Qe={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,re([n,r],te(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Ze(n){Qe.setTimeout(function(){throw n})}function ve(){}function H(n){n()}var Se=function(n){L(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,we(t)&&t.add(i)):i.destination=tt,i}return r.create=function(t,i,o){return new ie(t,i,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Y),$e=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(i){U(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){U(i)}else U(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){U(t)}},n}(),ie=function(n){L(r,n);function r(t,i,o){var a=n.call(this)||this,l;return A(t)||!t?l={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:l=t,a.destination=new $e(l),a}return r}(Se);function U(n){Ze(n)}function et(n){throw n}var tt={closed:!0,next:ve,error:et,complete:ve},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nt(n){return n}function it(n){return n.length===0?nt:n.length===1?n[0]:function(t){return n.reduce(function(i,o){return o(i)},t)}}var me=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,i){var o=this,a=at(r)?r:new ie(r,t,i);return H(function(){var l=o,u=l.operator,p=l.source;a.add(u?u.call(a,p):p?o._subscribe(a):o._trySubscribe(a))}),a},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var i=this;return t=he(t),new t(function(o,a){var l=new ie({next:function(u){try{r(u)}catch(p){a(p),l.unsubscribe()}},error:a,complete:o});i.subscribe(l)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[rt]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return it(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=he(r),new r(function(i,o){var a;t.subscribe(function(l){return a=l},function(l){return o(l)},function(){return i(a)})})},n.create=function(r){return new n(r)},n}();function he(n){var r;return(r=n!=null?n:Xe.Promise)!==null&&r!==void 0?r:Promise}function ot(n){return n&&A(n.next)&&A(n.error)&&A(n.complete)}function at(n){return n&&n instanceof Se||ot(n)&&we(n)}var st=_e(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(n){L(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var i=new be(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new st},r.prototype.next=function(t){var i=this;H(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=ee(i.currentObservers),u=l.next();!u.done;u=l.next()){var p=u.value;p.next(t)}}catch(b){o={error:b}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;H(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;H(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var i=this,o=this,a=o.hasError,l=o.isStopped,u=o.observers;return a||l?xe:(this.currentObservers=null,u.push(t),new Y(function(){i.currentObservers=null,ne(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,a=i.thrownError,l=i.isStopped;o?t.error(a):l&&t.complete()},r.prototype.asObservable=function(){var t=new me;return t.source=this,t},r.create=function(t,i){return new be(t,i)},r}(me),be=function(n){L(r,n);function r(t,i){var o=n.call(this)||this;return o.destination=t,o.source=i,o}return r.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},r.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},r.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},r.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:xe},r}(Pe),Te={now:function(){return(Te.delegate||Date).now()},delegate:void 0},ke=function(n){L(r,n);function r(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Te);var a=n.call(this)||this;return a._bufferSize=t,a._windowTime=i,a._timestampProvider=o,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=i===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,i),a}return r.prototype.next=function(t){var i=this,o=i.isStopped,a=i._buffer,l=i._infiniteTimeWindow,u=i._timestampProvider,p=i._windowTime;o||(a.push(t),!l&&a.push(u.now()+p)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,a=o._infiniteTimeWindow,l=o._buffer,u=l.slice(),p=0;p<u.length&&!t.closed;p+=a?1:2)t.next(u[p]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,a=t._buffer,l=t._infiniteTimeWindow,u=(l?1:2)*i;if(i<1/0&&u<a.length&&a.splice(0,a.length-u),!l){for(var p=o.now(),b=0,v=1;v<a.length&&a[v]<=p;v+=2)b=v;b&&a.splice(0,b+1)}},r}(Pe);const lt={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"},da:{previousButton:"Forrige",nextButton:"Næste",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Deltagende spil",gamesDescriptionSubtitle:"Opdag spillene",sportsRulesParseError:"Fejl ved parsing af turneringsregler",noAvailableGames:"Der er endnu ikke konfigureret nogen spil!"}},ge=[],ye={},ut=(n,r=0)=>{if(ge.indexOf(n)==-1){const t=new ke(r);ye[n]=t,ge.push(n)}return ye[n]};typeof window!="undefined"&&(window.emWidgets={topic:ut});const ct=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;var pt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),ft=e.from_html('<p class="svelte-2ya82b"> </p>'),dt=e.from_html("<div></div>"),vt=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),mt=e.from_html("<p> </p>"),ht=e.from_html('<div class="TournamentGameThumbnail svelte-2ya82b"><div class="ImageContainer svelte-2ya82b"><img class="svelte-2ya82b"/> <div class="PlayButtonOverlay svelte-2ya82b"><button class="PlayGameButton svelte-2ya82b"> </button></div></div></div>'),bt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),gt=e.from_html("<button> </button>"),yt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),_t=e.from_html('<div class="PaginationSkeleton svelte-2ya82b"><div class="PaginationSkeletonButton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationSkeletonButton svelte-2ya82b"></div></div>'),xt=e.from_html('<div class="TournamentGamesWrapper svelte-2ya82b"><div class="GamesDescription svelte-2ya82b"><p class="GamesDescriptionTitle svelte-2ya82b"> </p> <p class="GamesDescriptionSubTitle svelte-2ya82b"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const wt={hash:"svelte-2ya82b",code:`.svelte-2ya82b,
|
|
17
|
+
.svelte-2ya82b::before,
|
|
18
|
+
.svelte-2ya82b::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-2ya82b {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-2ya82b {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-2ya82b) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-2ya82b {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;min-height:150px;}.TournamentGamesWrapper.svelte-2ya82b {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-2ya82b {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
19
|
+
to top,
|
|
20
|
+
var(--emw-color-primary, #FF1D4E),
|
|
21
|
+
transparent
|
|
22
|
+
);background-size:100% 200%;
|
|
23
|
+
animation: svelte-2ya82b-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-2ya82b) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-2ya82b) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-2ya82b) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-2ya82b {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-2ya82b) {display:flex;gap:3px;}.PaginationButton:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-2ya82b {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-2ya82b {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
+
animation: svelte-2ya82b-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
+
animation: svelte-2ya82b-pulse 1s infinite;}}
|
|
26
|
+
|
|
27
|
+
@keyframes svelte-2ya82b-pulse {
|
|
28
|
+
0% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
50% {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@media (min-width: 750px) {.TournamentGamesTabs.svelte-2ya82b {width:fit-content;}.PaginationWrapper.svelte-2ya82b, .PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;}.PaginationButton.svelte-2ya82b {min-width:75px;}.PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:35px;}}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (max-width: 475px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-2ya82b {& .PaginationButton:where(.svelte-2ya82b) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-2ya82b {font-size:12px;}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 380px) {.TournamentGamesContainer.svelte-2ya82b {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (min-width: 1500px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
|
|
51
|
+
}.Hidden.svelte-2ya82b {display:none;}`};function oe(n,r){var pe;e.push(r,!0),e.append_styles(n,wt);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),a=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),u=e.prop(r,"language",7,"en"),p=e.prop(r,"session"),b=e.prop(r,"tournamentid"),v=e.prop(r,"gamesLimit",7,6),x=e.prop(r,"totalGames"),T=e.prop(r,"platformProp",7,null),f=e.prop(r,"tournamentMetadata"),B=e.prop(r,"translationurl");e.registerTranslations(lt),e.setLocale(u());const w=()=>{e.setLocale(u())};e.user_pre_effect(()=>{B()&&e.loadTranslations(B())}),e.user_effect(()=>{w()});let q=e.state(e.proxy(a()||[])),C=e.state(!1),S=e.state(0),D=e.state(void 0),I=e.state(!0);const Ee=e.isServer()?(pe=T())!=null?pe:"dk":ct(window.navigator.userAgent),J=()=>fe(this,null,function*(){var s;if(!K.has(e.get(W))){e.set(C,!0);try{const c=yield e.fetchTournament({endpoint:l(),language:u(),platform:Ee,session:p(),tournamentid:b(),filterById:!0,gamesLimit:v(),gamesOffset:e.get(S)});e.set(q,(s=c==null?void 0:c.games)==null?void 0:s.items,!0),K.set(e.get(W),e.get(q)),e.get(I)||e.set(I,!0)}catch(c){console.log(c)}finally{e.set(C,!1)}}}),Ae=()=>{const s=Math.ceil(x()/v()),c=Math.floor(e.get(S)/v())+1;if(s<=5)return Array.from({length:s},(g,k)=>k+1);const d=[];return d.push(1),c<=3?(d.push(2,3),d.push("..."),d.push(s)):c>=s-2?(d.push("..."),d.push(s-2,s-1,s)):(d.push("..."),d.push(c-1,c,c+1),d.push("..."),d.push(s)),d},Oe=()=>{e.get(S)<x()&&(e.set(S,e.get(S)+v()),J())},je=()=>{e.get(S)!==0&&(e.set(S,e.get(S)-v()),J())},Be=s=>{e.set(S,(s-1)*v()),J()},Me=e.user_derived(Ae),W=e.user_derived(()=>Math.floor(e.get(S)/v())+1);let K=new Map([[1,a()]]),Le=e.user_derived(()=>{var s;return(s=K.get(e.get(W)))!=null?s:[]}),O=e.state("casino");const Ce=()=>{var d;if(!f())return;const s=(d=f().sports)==null?void 0:d.rules;let c;if(s)try{c=JSON.parse(s),e.set(D,c[u()]||c["*"],!0)}catch(g){console.log(g),e.set(D,`${t()("sportsRulesParseError")}`)}},De=s=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:s.launchUrl,id:s.gameId,thumbnail:s.thumbnail,name:s.name},window.location.href)};e.user_effect(()=>{Object.keys(f()).length!==0&&Ce()});var Ie={get initialGames(){return a()},set initialGames(s){a(s),e.flushSync()},get endpoint(){return l()},set endpoint(s){l(s),e.flushSync()},get language(){return u()},set language(s="en"){u(s),e.flushSync()},get session(){return p()},set session(s){p(s),e.flushSync()},get tournamentid(){return b()},set tournamentid(s){b(s),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(s=6){v(s),e.flushSync()},get totalGames(){return x()},set totalGames(s){x(s),e.flushSync()},get platformProp(){return T()},set platformProp(s=null){T(s),e.flushSync()},get tournamentMetadata(){return f()},set tournamentMetadata(s){f(s),e.flushSync()},get translationurl(){return B()},set translationurl(s){B(s),e.flushSync()}},V=xt(),X=e.child(V),Q=e.child(X),We=e.child(Q,!0);e.reset(Q);var ae=e.sibling(Q,2),Ne=e.child(ae,!0);e.reset(ae),e.reset(X);var se=e.sibling(X,2);{var Re=s=>{var c=pt(),d=e.child(c);let g;d.__click=()=>e.set(O,"casino");var k=e.child(d,!0);e.reset(d);var h=e.sibling(d,2);let m;h.__click=()=>e.set(O,"sports");var y=e.child(h,!0);e.reset(h),e.reset(c),e.template_effect((P,_)=>{g=e.set_class(d,1,"Tab svelte-2ya82b",null,g,{Active:e.get(O)==="casino"}),e.set_text(k,P),m=e.set_class(h,1,"Tab svelte-2ya82b",null,m,{Active:e.get(O)==="sports"}),e.set_text(y,_)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.append(s,c)};e.if_block(se,s=>{Object.keys(f()).length!==0&&s(Re)})}var le=e.sibling(se,2);{var ze=s=>{var c=dt();let d;e.each(c,21,()=>e.get(D),e.index,(g,k)=>{var h=ft(),m=e.child(h);e.reset(h),e.template_effect(y=>{var P;return e.set_text(m,`${(P=e.get(k).rule)!=null?P:""} ${y!=null?y:""}`)},[()=>t()("contribution")]),e.append(g,h)}),e.reset(c),e.template_effect(()=>d=e.set_class(c,1,"TournamentRulesWrapper svelte-2ya82b",null,d,{Hidden:e.get(O)==="casino"})),e.append(s,c)};e.if_block(le,s=>{e.get(D)&&s(ze)})}var N=e.sibling(le,2);let ue;var Fe=e.child(N);{var Ue=s=>{var c=e.comment(),d=e.first_child(c);e.each(d,17,()=>Array(v()),e.index,(g,k,h,m)=>{var y=vt();e.append(g,y)}),e.append(s,c)},He=s=>{var c=e.comment(),d=e.first_child(c);{var g=h=>{var m=mt();let y;var P=e.child(m,!0);e.reset(m),e.template_effect(_=>{y=e.set_class(m,1,"NoGamesAvailable svelte-2ya82b",null,y,{Hidden:e.get(O)==="sports"}),e.set_text(P,_)},[()=>t()("noAvailableGames")]),e.append(h,m)},k=h=>{var m=e.comment(),y=e.first_child(m);e.each(y,17,()=>e.get(Le),e.index,(P,_)=>{var j=ht();j.__click=()=>De(e.get(_));var R=e.child(j),M=e.child(R),z=e.sibling(M,2),G=e.child(z),E=e.child(G,!0);e.reset(G),e.reset(z),e.reset(R),e.reset(j),e.template_effect(F=>{e.set_attribute(M,"src",`https:${e.get(_).thumbnail}`),e.set_attribute(M,"alt",e.get(_).name),e.set_text(E,F)},[()=>t()("play")]),e.append(P,j)}),e.append(h,m)};e.if_block(d,h=>{var m;!e.get(C)&&((m=e.get(q))==null?void 0:m.length)===0?h(g):h(k,!1)},!0)}e.append(s,c)};e.if_block(Fe,s=>{e.get(C)?s(Ue):s(He,!1)})}e.reset(N);var ce=e.sibling(N,2);{var Ye=s=>{var c=yt();let d;var g=e.child(c);g.__click=je;var k=e.child(g,!0);e.reset(g);var h=e.sibling(g,2);e.each(h,21,()=>e.get(Me),e.index,(P,_)=>{var j=e.comment(),R=e.first_child(j);{var M=G=>{var E=bt();e.append(G,E)},z=G=>{var E=gt();let F;E.__click=()=>Be(e.get(_));var Ve=e.child(E,!0);e.reset(E),e.template_effect(()=>{F=e.set_class(E,1,"PaginationButton Number svelte-2ya82b",null,F,{Active:e.get(_)===e.get(W)}),e.set_text(Ve,e.get(_))}),e.append(G,E)};e.if_block(R,G=>{typeof e.get(_)!="number"?G(M):G(z,!1)})}e.append(P,j)}),e.reset(h);var m=e.sibling(h,2);m.__click=Oe;var y=e.child(m,!0);e.reset(m),e.reset(c),e.template_effect((P,_)=>{d=e.set_class(c,1,"PaginationWrapper svelte-2ya82b",null,d,{Hidden:e.get(O)==="sports"}),g.disabled=e.get(S)===0,e.set_text(k,P),m.disabled=e.get(S)>=x()-v(),e.set_text(y,_)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.append(s,c)};e.if_block(ce,s=>{e.get(I)&&x()>v()&&s(Ye)})}var qe=e.sibling(ce,2);{var Je=s=>{var c=_t();e.append(s,c)};e.if_block(qe,s=>{e.get(I)||s(Je)})}e.reset(V),e.template_effect((s,c)=>{e.set_text(We,s),e.set_text(Ne,c),ue=e.set_class(N,1,"TournamentGamesContainer svelte-2ya82b",null,ue,{Hidden:e.get(O)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,V);var Ke=e.pop(Ie);return o(),Ke}e.delegate(["click"]);e.create_custom_element(oe,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!0);function Ge(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),i=e.prop(r,"endpoint"),o=e.prop(r,"language",7,"en"),a=e.prop(r,"session"),l=e.prop(r,"tournamentid"),u=e.prop(r,"gamesLimit",7,6),p=e.prop(r,"totalGames"),b=e.prop(r,"platformProp",7,null),v=e.prop(r,"tournamentMetadata"),x=e.prop(r,"translationurl");var T={get initialGames(){return t()},set initialGames(f){t(f),e.flushSync()},get endpoint(){return i()},set endpoint(f){i(f),e.flushSync()},get language(){return o()},set language(f="en"){o(f),e.flushSync()},get session(){return a()},set session(f){a(f),e.flushSync()},get tournamentid(){return l()},set tournamentid(f){l(f),e.flushSync()},get gamesLimit(){return u()},set gamesLimit(f=6){u(f),e.flushSync()},get totalGames(){return p()},set totalGames(f){p(f),e.flushSync()},get platformProp(){return b()},set platformProp(f=null){b(f),e.flushSync()},get tournamentMetadata(){return v()},set tournamentMetadata(f){v(f),e.flushSync()},get translationurl(){return x()},set translationurl(f){x(f),e.flushSync()}};return oe(n,{get initialGames(){return t()},get endpoint(){return i()},get language(){return o()},get translationurl(){return x()},get session(){return a()},get tournamentid(){return l()},get gamesLimit(){return u()},get totalGames(){return p()},get platformProp(){return b()},get tournamentMetadata(){return v()}}),e.pop(T)}customElements.define("tournament-games",e.create_custom_element(Ge,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!1));const St=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=ke;exports.TournamentGames=oe;exports.TournamentGames_ce=St;
|