@everymatrix/tournament-details-page 0.1.13 → 0.1.15

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.
Files changed (26) hide show
  1. package/components/{TournamentDetails-hOUvqDF2.js → TournamentDetails-CTrigRlQ.js} +85 -88
  2. package/components/{TournamentDetails-CYrQWwZn.cjs → TournamentDetails-CamF-OAP.cjs} +2 -2
  3. package/components/{TournamentDetails-BVnS_IYF.js → TournamentDetails-DxnqovRH.js} +88 -91
  4. package/components/{TournamentDetails-BoaqYHo1.cjs → TournamentDetails-qI01TVz6.cjs} +2 -2
  5. package/components/{TournamentDetailsPage-DcS7Pa0U.js → TournamentDetailsPage-BhOKeY6o.js} +139 -140
  6. package/components/{TournamentDetailsPage-LxAzPvhv.js → TournamentDetailsPage-CAgzJoGS.js} +147 -148
  7. package/components/{TournamentDetailsPage-BgoG6goQ.cjs → TournamentDetailsPage-Ch2aanZt.cjs} +3 -3
  8. package/components/{TournamentDetailsPage-WnIR1yO-.cjs → TournamentDetailsPage-clnwYJj-.cjs} +3 -3
  9. package/components/TournamentGames-05Z4kMcw.cjs +51 -0
  10. package/components/TournamentGames-Ba_dX246.cjs +51 -0
  11. package/components/{TournamentGames-B5Vr9KT7.js → TournamentGames-QGboBJGp.js} +395 -418
  12. package/components/{TournamentGames-Bgha2ST9.js → TournamentGames-dkEGBAmh.js} +337 -360
  13. package/components/TournamentLeaderboard-BZPNaquR.cjs +46 -0
  14. package/components/TournamentLeaderboard-CE2y2ivq.js +8127 -0
  15. package/components/TournamentLeaderboard-D4iLH5gS.cjs +46 -0
  16. package/components/{TournamentLeaderboard-cxKLflDm.js → TournamentLeaderboard-DIOfuPoN.js} +3445 -3042
  17. package/es2015/tournament-details-page.cjs +1 -1
  18. package/es2015/tournament-details-page.js +2 -2
  19. package/esnext/tournament-details-page.cjs +1 -1
  20. package/esnext/tournament-details-page.js +2 -2
  21. package/package.json +1 -1
  22. package/components/TournamentGames-DXcN8tkz.cjs +0 -51
  23. package/components/TournamentGames-DpOh7T_F.cjs +0 -51
  24. package/components/TournamentLeaderboard-8MMMRNQy.cjs +0 -46
  25. package/components/TournamentLeaderboard-C_Ne8wC4.js +0 -7718
  26. package/components/TournamentLeaderboard-DpfSasWx.cjs +0 -46
@@ -0,0 +1,51 @@
1
+ var ce=(n,r,t)=>new Promise((i,o)=>{var a=p=>{try{c(t.next(p))}catch(m){o(m)}},l=p=>{try{c(t.throw(p))}catch(m){o(m)}},c=p=>p.done?i(p.value):Promise.resolve(p.value).then(a,l);c((t=t.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-BZPNaquR.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 X=function(n,r){return X=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])},X(n,r)};function B(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");X(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Q(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 Z(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(c){l={error:c}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function $(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 G(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 V=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 ee(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var z=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 c=Q(l),p=c.next();!p.done;p=c.next()){var m=p.value;m.remove(this)}}catch(_){r={error:_}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else l.remove(this);var v=this.initialTeardown;if(G(v))try{v()}catch(_){a=_ instanceof V?_.errors:[_]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var k=Q(y),d=k.next();!d.done;d=k.next()){var O=d.value;try{pe(O)}catch(_){a=a!=null?a:[],_ instanceof V?a=$($([],Z(a)),Z(_.errors)):a.push(_)}}}catch(_){i={error:_}}finally{try{d&&!d.done&&(o=k.return)&&o.call(k)}finally{if(i)throw i.error}}}if(a)throw new V(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)&&ee(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&ee(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),ye=z.EMPTY;function _e(n){return n instanceof z||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function pe(n){G(n)?n():n.unsubscribe()}var Ze={Promise:void 0},$e={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,$([n,r],Z(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function et(n){$e.setTimeout(function(){throw n})}function fe(){}function R(n){n()}var xe=function(n){B(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=nt,i}return r.create=function(t,i,o){return new te(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}(z),tt=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){N(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){N(i)}else N(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){N(t)}},n}(),te=function(n){B(r,n);function r(t,i,o){var a=n.call(this)||this,l;return G(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 tt(l),a}return r}(xe);function N(n){et(n)}function rt(n){throw n}var nt={closed:!0,next:fe,error:rt,complete:fe},it=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ot(n){return n}function at(n){return n.length===0?ot: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=lt(r)?r:new te(r,t,i);return R(function(){var l=o,c=l.operator,p=l.source;a.add(c?c.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=ve(t),new t(function(o,a){var l=new te({next:function(c){try{r(c)}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[it]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return at(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!=null?n:Ze.Promise)!==null&&r!==void 0?r:Promise}function st(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function lt(n){return n&&n instanceof xe||st(n)&&_e(n)}var ut=ge(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),we=function(n){B(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 ut},r.prototype.next=function(t){var i=this;R(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=Q(i.currentObservers),c=l.next();!c.done;c=l.next()){var p=c.value;p.next(t)}}catch(m){o={error:m}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;R(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;R(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,c=o.observers;return a||l?ye:(this.currentObservers=null,c.push(t),new z(function(){i.currentObservers=null,ee(c,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){B(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){B(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,c=i._timestampProvider,p=i._windowTime;o||(a.push(t),!l&&a.push(c.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,c=l.slice(),p=0;p<c.length&&!t.closed;p+=a?1:2)t.next(c[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,c=(l?1:2)*i;if(i<1/0&&c<a.length&&a.splice(0,a.length-c),!l){for(var p=o.now(),m=0,v=1;v<a.length&&a[v]<=p;v+=2)m=v;m&&a.splice(0,m+1)}},r}(we);const ct={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={},pt=(n,r=0)=>{if(he.indexOf(n)==-1){const t=new Pe(r);be[n]=t,he.push(n)}return be[n]};typeof window!="undefined"&&(window.emWidgets={topic:pt});const ft=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 dt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),vt=e.from_html('<p class="svelte-2ya82b"> </p>'),mt=e.from_html("<div></div>"),ht=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),bt=e.from_html("<p> </p>"),gt=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>'),yt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),_t=e.from_html("<button> </button>"),xt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),wt=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>'),St=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 Pt={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 re(n,r){var le;e.push(r,!0),e.append_styles(n,Pt);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),a=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),p=e.prop(r,"session"),m=e.prop(r,"tournamentid"),v=e.prop(r,"gamesLimit",7,6),y=e.prop(r,"totalGames"),k=e.prop(r,"platformProp",7,null),d=e.prop(r,"tournamentMetadata"),O=e.prop(r,"translationurl");e.registerTranslations(ct),e.setLocale(c());const _=()=>{e.setLocale(c())};e.user_pre_effect(()=>{O()&&e.loadTranslations(O())}),e.user_effect(()=>{_()});let F=e.state(e.proxy(a()||[])),M=e.state(!1),S=e.state(0),L=e.state(void 0),C=e.state(!0);const ke=e.isServer()?(le=k())!=null?le:"dk":ft(window.navigator.userAgent),U=()=>ce(this,null,function*(){var s;if(!H.has(e.get(D))){e.set(M,!0);try{const u=yield e.fetchTournament({endpoint:l(),language:c(),platform:ke,session:p(),tournamentid:m(),filterById:!0,gamesLimit:v(),gamesOffset:e.get(S)});e.set(F,(s=u==null?void 0:u.games)==null?void 0:s.items,!0),H.set(e.get(D),e.get(F)),e.get(C)||e.set(C,!0)}catch(u){console.log(u)}finally{e.set(M,!1)}}}),Ge=()=>{const s=Math.ceil(y()/v()),u=Math.floor(e.get(S)/v())+1;if(s<=5)return Array.from({length:s},(h,g)=>g+1);const f=[];return f.push(1),u<=3?(f.push(2,3),f.push("..."),f.push(s)):u>=s-2?(f.push("..."),f.push(s-2,s-1,s)):(f.push("..."),f.push(u-1,u,u+1),f.push("..."),f.push(s)),f},Ee=()=>{e.get(S)<y()&&(e.set(S,e.get(S)+v()),U())},Ae=()=>{e.get(S)!==0&&(e.set(S,e.get(S)-v()),U())},Oe=s=>{e.set(S,(s-1)*v()),U()},je=e.user_derived(Ge),D=e.user_derived(()=>Math.floor(e.get(S)/v())+1);let H=new Map([[1,a()]]),Be=e.user_derived(()=>{var s;return(s=H.get(e.get(D)))!=null?s:[]}),E=e.state("casino");const Me=()=>{var f;if(!d())return;const s=(f=d().sports)==null?void 0:f.rules;let u;if(s)try{u=JSON.parse(s),e.set(L,u[c()]||u["*"],!0)}catch(h){console.log(h),e.set(L,`${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(d()).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 c()},set language(s="en"){c(s),e.flushSync()},get session(){return p()},set session(s){p(s),e.flushSync()},get tournamentid(){return m()},set tournamentid(s){m(s),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(s=6){v(s),e.flushSync()},get totalGames(){return y()},set totalGames(s){y(s),e.flushSync()},get platformProp(){return k()},set platformProp(s=null){k(s),e.flushSync()},get tournamentMetadata(){return d()},set tournamentMetadata(s){d(s),e.flushSync()},get translationurl(){return O()},set translationurl(s){O(s),e.flushSync()}},Y=St(),q=e.child(Y),J=e.child(q),De=e.child(J,!0);e.reset(J);var ne=e.sibling(J,2),Ie=e.child(ne,!0);e.reset(ne),e.reset(q);var ie=e.sibling(q,2);{var We=s=>{var u=dt(),f=e.child(u);let h;var g=e.child(f,!0);e.reset(f);var b=e.sibling(f,2);let x;var w=e.child(b,!0);e.reset(b),e.reset(u),e.template_effect((P,T)=>{h=e.set_class(f,1,"Tab svelte-2ya82b",null,h,{Active:e.get(E)==="casino"}),e.set_text(g,P),x=e.set_class(b,1,"Tab svelte-2ya82b",null,x,{Active:e.get(E)==="sports"}),e.set_text(w,T)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",f,()=>e.set(E,"casino")),e.delegated("click",b,()=>e.set(E,"sports")),e.append(s,u)},Ne=e.user_derived(()=>Object.keys(d()).length!==0);e.if_block(ie,s=>{e.get(Ne)&&s(We)})}var oe=e.sibling(ie,2);{var Re=s=>{var u=mt();let f;e.each(u,21,()=>e.get(L),e.index,(h,g)=>{var b=vt(),x=e.child(b);e.reset(b),e.template_effect(w=>{var P;return e.set_text(x,`${(P=e.get(g).rule)!=null?P:""} ${w!=null?w:""}`)},[()=>t()("contribution")]),e.append(h,b)}),e.reset(u),e.template_effect(()=>f=e.set_class(u,1,"TournamentRulesWrapper svelte-2ya82b",null,f,{Hidden:e.get(E)==="casino"})),e.append(s,u)};e.if_block(oe,s=>{e.get(L)&&s(Re)})}var I=e.sibling(oe,2);let ae;var ze=e.child(I);{var Fe=s=>{var u=e.comment(),f=e.first_child(u);e.each(f,17,()=>Array(v()),e.index,(h,g,b,x)=>{var w=ht();e.append(h,w)}),e.append(s,u)},Ue=s=>{var u=bt();let f;var h=e.child(u,!0);e.reset(u),e.template_effect(g=>{f=e.set_class(u,1,"NoGamesAvailable svelte-2ya82b",null,f,{Hidden:e.get(E)==="sports"}),e.set_text(h,g)},[()=>t()("noAvailableGames")]),e.append(s,u)},He=s=>{var u=e.comment(),f=e.first_child(u);e.each(f,17,()=>e.get(Be),e.index,(h,g)=>{var b=gt(),x=e.child(b),w=e.child(x),P=e.sibling(w,2),T=e.child(P),W=e.child(T,!0);e.reset(T),e.reset(P),e.reset(x),e.reset(b),e.template_effect(K=>{e.set_attribute(w,"src",`https:${e.get(g).thumbnail}`),e.set_attribute(w,"alt",e.get(g).name),e.set_text(W,K)},[()=>t()("play")]),e.delegated("click",b,()=>Le(e.get(g))),e.append(h,b)}),e.append(s,u)};e.if_block(ze,s=>{var u;e.get(M)?s(Fe):!e.get(M)&&((u=e.get(F))==null?void 0:u.length)===0?s(Ue,1):s(He,-1)})}e.reset(I);var se=e.sibling(I,2);{var Ye=s=>{var u=xt();let f;var h=e.child(u),g=e.child(h,!0);e.reset(h);var b=e.sibling(h,2);e.each(b,21,()=>e.get(je),e.index,(P,T)=>{var W=e.comment(),K=e.first_child(W);{var Ve=j=>{var A=yt();e.append(j,A)},Xe=j=>{var A=_t();let ue;var Qe=e.child(A,!0);e.reset(A),e.template_effect(()=>{ue=e.set_class(A,1,"PaginationButton Number svelte-2ya82b",null,ue,{Active:e.get(T)===e.get(D)}),e.set_text(Qe,e.get(T))}),e.delegated("click",A,()=>Oe(e.get(T))),e.append(j,A)};e.if_block(K,j=>{typeof e.get(T)!="number"?j(Ve):j(Xe,-1)})}e.append(P,W)}),e.reset(b);var x=e.sibling(b,2),w=e.child(x,!0);e.reset(x),e.reset(u),e.template_effect((P,T)=>{f=e.set_class(u,1,"PaginationWrapper svelte-2ya82b",null,f,{Hidden:e.get(E)==="sports"}),h.disabled=e.get(S)===0,e.set_text(g,P),x.disabled=e.get(S)>=y()-v(),e.set_text(w,T)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",h,Ae),e.delegated("click",x,Ee),e.append(s,u)};e.if_block(se,s=>{e.get(C)&&y()>v()&&s(Ye)})}var qe=e.sibling(se,2);{var Je=s=>{var u=wt();e.append(s,u)};e.if_block(qe,s=>{e.get(C)||s(Je)})}e.reset(Y),e.template_effect((s,u)=>{e.set_text(De,s),e.set_text(Ie,u),ae=e.set_class(I,1,"TournamentGamesContainer svelte-2ya82b",null,ae,{Hidden:e.get(E)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Ke=e.pop(Ce);return o(),Ke}e.delegate(["click"]);e.create_custom_element(re,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});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"),c=e.prop(r,"gamesLimit",7,6),p=e.prop(r,"totalGames"),m=e.prop(r,"platformProp",7,null),v=e.prop(r,"tournamentMetadata"),y=e.prop(r,"translationurl");var k={get initialGames(){return t()},set initialGames(d){t(d),e.flushSync()},get endpoint(){return i()},set endpoint(d){i(d),e.flushSync()},get language(){return o()},set language(d="en"){o(d),e.flushSync()},get session(){return a()},set session(d){a(d),e.flushSync()},get tournamentid(){return l()},set tournamentid(d){l(d),e.flushSync()},get gamesLimit(){return c()},set gamesLimit(d=6){c(d),e.flushSync()},get totalGames(){return p()},set totalGames(d){p(d),e.flushSync()},get platformProp(){return m()},set platformProp(d=null){m(d),e.flushSync()},get tournamentMetadata(){return v()},set tournamentMetadata(d){v(d),e.flushSync()},get translationurl(){return y()},set translationurl(d){y(d),e.flushSync()}};return re(n,{get initialGames(){return t()},get endpoint(){return i()},get language(){return o()},get translationurl(){return y()},get session(){return a()},get tournamentid(){return l()},get gamesLimit(){return c()},get totalGames(){return p()},get platformProp(){return m()},get tournamentMetadata(){return v()}}),e.pop(k)}customElements.define("tournament-games",e.create_custom_element(Te,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[]));const Tt=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=Pe;exports.TournamentGames=re;exports.TournamentGames_ce=Tt;