@everymatrix/tournament-details-page 0.0.7 → 0.0.8
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-qcyLTtSv.js → TournamentDetails-CKMkVYxd.js} +1976 -1943
- package/components/{TournamentDetails-DoBMS_9T.js → TournamentDetails-H6pHb_yG.js} +1608 -1575
- package/components/TournamentDetails-nG7lN2NT.cjs +7 -0
- package/components/TournamentDetailsPage-B5bbvugX.js +1107 -0
- package/components/TournamentDetailsPage-CjBmguAV.js +1082 -0
- package/components/TournamentDetailsPage-DrDTbkUX.cjs +59 -0
- package/components/TournamentGames-CATtl7ab.js +377 -0
- package/components/TournamentGames-CXKhYSVz.js +405 -0
- package/components/TournamentGames-Dz1Ddedp.cjs +27 -0
- package/components/TournamentLeaderboard-Bdrmjyzv.js +823 -0
- package/components/TournamentLeaderboard-Cvo-K1Xv.js +839 -0
- package/components/TournamentLeaderboard-xrrrpKix.cjs +31 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +1 -1
- package/esnext/tournament-details-page.js +1 -1
- package/package.json +1 -1
- package/components/TournamentDetails-C-zS8XGk.cjs +0 -7
- package/components/TournamentDetailsPage-C2wcS4rg.js +0 -987
- package/components/TournamentDetailsPage-CQFv3xok.js +0 -1010
- package/components/TournamentDetailsPage-CR3ti0az.cjs +0 -66
- package/components/TournamentGames-KOJ004rg.js +0 -387
- package/components/TournamentGames-xrJB7h-M.js +0 -359
- package/components/TournamentGames-zikPbhES.cjs +0 -27
- package/components/TournamentLeaderboard-BjBItfy9.js +0 -788
- package/components/TournamentLeaderboard-D9naoaD9.cjs +0 -30
- package/components/TournamentLeaderboard-Dc8xv6be.js +0 -804
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";var xe=(n,r,t)=>new Promise((i,o)=>{var a=c=>{try{l(t.next(c))}catch(m){o(m)}},s=c=>{try{l(t.throw(c))}catch(m){o(m)}},l=c=>c.done?i(c.value):Promise.resolve(c.value).then(a,s);l((t=t.apply(n,r)).next())});const e=require("./TournamentDetails-C-zS8XGk.cjs");function pt({withLocale:n,translations:r}){e.$locale.subscribe(t=>{t==null&&(e.$dictionary.set(r),e.$locale.set(n))})}function ft(n,r){e.addMessages(n,r)}function Ce(n){e.$locale.set(n)}const Se={en:{totalPrizes:"Total prizes",viewPrizes:"View Prizes",moreGames:"More Games",play:"Play",joinButton:"Join",rules:"Rules",scoreCriteriaType:{stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",mostRounds:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",winStakeRatio:`The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated
|
|
2
|
-
as a sum of win/stake ratios for qualified rounds and bets.
|
|
3
|
-
The player who got the highest score will win the tournament.`,winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
|
|
4
|
-
<span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
|
|
5
|
-
minimum score value.</span>
|
|
6
|
-
</li></ul>`,maxWinStakeRatio:"The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",win:`The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.
|
|
7
|
-
For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.
|
|
8
|
-
the score will be calculated as 1+3=4.`,winBetCount:`The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying
|
|
9
|
-
rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.
|
|
10
|
-
In this case. the score will be calculated as 1+3+2=6.`},miniBetCount:"Minimum bet count: <b>{betCount}</b>. To be qualified for prizes, the player has to play at least <b>{betCount} rounds</b>, otherwise the prize won’t be granted.",timePeriod:"The tournament starts at <b>{startTime}</b> and ends at <b>{endTime}</b>",terms:'See <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Terms & Conditions.</a>',productNoLimitsBet:"For {productName}, there are no minimum and maximum bet limits set.",casinoRuleMinMaxBet:"Min bet{minBet}, Max bet{maxBet}",unlimited:"Unlimited",forCasino:"For Casino Games",forSportsbook:"For Sportsbook",sportsRuleMinMaxBet:"Min bet{sportMinBet}, Max bet{sportMaxBet}",sportsRuleMinMaxOdds:"Min Odds{sportMinOdds}, Max Odds{sportMaxOdds}",matchTyppePre:"Prelive Sports bets",matchTypeLive:"Live Sports bets",matchTypePreAndLive:"Prelive and Live Sport bets",betTypeSingle:"Single bet",betTypeMultiple:"Multiple bet",betTypeSystem:"System bet",typeOfSelection:"Type of selection",numberOfSelection:"Number of selections",oddsPerSelection:"Odds per selections",betBuilderOnly:"Bet Builder Only",bankerOnly:"Banker Only",typeOfSelectionAny:"Any",notBuilderOnly:"Not Bet Builder Only",nonBankerOnly:"Non Banker Only"},tr:{totalPrizes:"Toplam Ödüller",viewPrizes:"Ödülleri Görüntüle",moreGames:"Daha Fazla Oyun",play:"Oyna",joinButton:"Katıl",scoreCriteriaType:{stake:"Bu turnuvanın puan kriteri <b>Ciro</b>'dur. Oluşturulan her X için (X= oyuncunun para biriminde veya temel para birimindeki eşdeğerinde oynanan bahis miktarı) oyuncu 1 puan alacaktır. En fazla ciroya sahip olan oyuncu en yüksek puana ve sıralamaya sahip olacaktır.",mostRounds:"Bu turnuvanın puan kriteri <b>En Çok Tur</b>'dur. Oynanan her tur için oyuncu 1 puan alacaktır. En fazla oynanan tur/bahis sayısına sahip olan oyuncu, en yüksek puana ve sıralamaya sahip olacaktır.",winStakeRatio:"Bu turnuvanın puan kriteri <b>Galibiyet/Durum Oranı</b>'dır. Puan, nitelikli turlar ve bahisler için kazanma/bahis oranlarının toplamı olarak hesaplanacaktır. En yüksek puanı alan oyuncu turnuvayı kazanacak.",winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
|
|
11
|
-
<span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
|
|
12
|
-
minimum score value.</span>
|
|
13
|
-
</li></ul>`,maxWinStakeRatio:"Bu turnuvanın puan kriteri <b>Maksimum Galibiyet/Durum Oranı</b>'dır. En küçük bahsi koyarak en büyük kazancı elde eden oyuncu turnuvayı kazanacaktır (bahis = 10 EUR, galibiyet = 5000 EUR, skor 500 olacaktır). Yalnızca daha yüksek oran oyuncunun puanını güncelleyecektir."},miniBetCount:"Minimum bahis sayısı: <b>{betCount}</b>. Ödüllere hak kazanmak için oyuncunun en az <b>{betCount} tur</b> oynaması gerekir, aksi takdirde ödül verilmeyecektir.",timePeriod:"Turnuva <b>{startTime}</b> tarihinde başlar ve <b>{endTime}</b> tarihinde sona erer",terms:'Bkz. <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Şartlar ve Koşullar.</a>',productNoLimitsBet:"{productName} için minimum ve maksimum bahis limiti belirlenmemiştir.",casinoRuleMinMaxBet:"Min bahis{minBet}, Maks bahis{maxBet}",unlimited:"Sınırsız",forCasino:"Casino Oyunları İçin",forSportsbook:"Spor Bahisleri İçin",sportsRuleMinMaxBet:"Min bahis{sportMinBet}, Maks bahis{sportMaxBet}",sportsRuleMinMaxOdds:"Min Oran{sportMinOdds}, Maks Oran{sportMaxOdds}",matchTyppePre:"Maç Öncesi Spor bahisleri",matchTypeLive:"Canlı Spor bahisleri",matchTypePreAndLive:"Maç Öncesi ve Canlı Spor bahisleri",betTypeSingle:"Tekli bahis",betTypeMultiple:"Kombine bahis",betTypeSystem:"Sistem bahis",typeOfSelection:"Seçim türü",numberOfSelection:"Seçim sayısı",oddsPerSelection:"Seçim başına oranlar",betBuilderOnly:"Yalnızca Bahis Oluşturucu",bankerOnly:"Yalnızca Banker",typeOfSelectionAny:"Herhangi",notBuilderOnly:"Bahis Oluşturucu Hariç",nonBankerOnly:"Banker Hariç"}};/*! *****************************************************************************
|
|
14
|
-
Copyright (c) Microsoft Corporation.
|
|
15
|
-
|
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
-
purpose with or without fee is hereby granted.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
-
***************************************************************************** */var te=function(n,r){return te=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])},te(n,r)};function j(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");te(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function re(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 ne(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,a=[],s;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return a}function ie(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 T(n){return typeof n=="function"}function Le(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 ee=Le(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
27
|
-
`+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
28
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function oe(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var F=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 s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=re(s),c=l.next();!c.done;c=l.next()){var m=c.value;m.remove(this)}}catch(v){r={error:v}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else s.remove(this);var b=this.initialTeardown;if(T(b))try{b()}catch(v){a=v instanceof ee?v.errors:[v]}var P=this._finalizers;if(P){this._finalizers=null;try{for(var R=re(P),d=R.next();!d.done;d=R.next()){var D=d.value;try{ke(D)}catch(v){a=a!=null?a:[],v instanceof ee?a=ie(ie([],ne(a)),ne(v.errors)):a.push(v)}}}catch(v){i={error:v}}finally{try{d&&!d.done&&(o=R.return)&&o.call(R)}finally{if(i)throw i.error}}}if(a)throw new ee(a)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ke(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)&&oe(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&oe(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),He=F.EMPTY;function Ae(n){return n instanceof F||n&&"closed"in n&&T(n.remove)&&T(n.add)&&T(n.unsubscribe)}function ke(n){T(n)?n():n.unsubscribe()}var mt={Promise:void 0},ht={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,ie([n,r],ne(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function vt(n){ht.setTimeout(function(){throw n})}function Te(){}function U(n){n()}var je=function(n){j(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,Ae(t)&&t.add(i)):i.destination=bt,i}return r.create=function(t,i,o){return new ae(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}(F),gt=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){V(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){V(i)}else V(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){V(t)}},n}(),ae=function(n){j(r,n);function r(t,i,o){var a=n.call(this)||this,s;return T(t)||!t?s={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:s=t,a.destination=new gt(s),a}return r}(je);function V(n){vt(n)}function yt(n){throw n}var bt={closed:!0,next:Te,error:yt,complete:Te},_t=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wt(n){return n}function xt(n){return n.length===0?wt: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=St(r)?r:new ae(r,t,i);return U(function(){var s=o,l=s.operator,c=s.source;a.add(l?l.call(a,c):c?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=Oe(t),new t(function(o,a){var s=new ae({next:function(l){try{r(l)}catch(c){a(c),s.unsubscribe()}},error:a,complete:o});i.subscribe(s)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[_t]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return xt(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=Oe(r),new r(function(i,o){var a;t.subscribe(function(s){return a=s},function(s){return o(s)},function(){return i(a)})})},n.create=function(r){return new n(r)},n}();function Oe(n){var r;return(r=n!=null?n:mt.Promise)!==null&&r!==void 0?r:Promise}function Ct(n){return n&&T(n.next)&&T(n.error)&&T(n.complete)}function St(n){return n&&n instanceof je||Ct(n)&&Ae(n)}var kt=Le(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),De=function(n){j(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 Ee(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new kt},r.prototype.next=function(t){var i=this;U(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=re(i.currentObservers),l=s.next();!l.done;l=s.next()){var c=l.value;c.next(t)}}catch(m){o={error:m}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;U(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;U(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,s=o.isStopped,l=o.observers;return a||s?He:(this.currentObservers=null,l.push(t),new F(function(){i.currentObservers=null,oe(l,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,a=i.thrownError,s=i.isStopped;o?t.error(a):s&&t.complete()},r.prototype.asObservable=function(){var t=new Me;return t.source=this,t},r.create=function(t,i){return new Ee(t,i)},r}(Me),Ee=function(n){j(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:He},r}(De),We={now:function(){return(We.delegate||Date).now()},delegate:void 0},Tt=function(n){j(r,n);function r(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=We);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,s=i._infiniteTimeWindow,l=i._timestampProvider,c=i._windowTime;o||(a.push(t),!s&&a.push(l.now()+c)),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,s=o._buffer,l=s.slice(),c=0;c<l.length&&!t.closed;c+=a?1:2)t.next(l[c]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,a=t._buffer,s=t._infiniteTimeWindow,l=(s?1:2)*i;if(i<1/0&&l<a.length&&a.splice(0,a.length-l),!s){for(var c=o.now(),m=0,b=1;b<a.length&&a[b]<=c;b+=2)m=b;m&&a.splice(0,m+1)}},r}(De);const Pe=[],Re={},Mt=(n,r=0)=>{if(Pe.indexOf(n)==-1){const t=new Tt(r);Re[n]=t,Pe.push(n)}return Re[n]};window.emWidgets={topic:Mt};const Ie=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;e.dayjs.extend(e.customParseFormat);const Be=n=>e.dayjs(n).format("MMMM D, HH:mm"),Ot=()=>typeof window=="undefined",Et="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",Pt="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",Rt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Bt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Lt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Ht="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-D9naoaD9.cjs")).then(({default:r})=>{!customElements.get("tournament-leaderboard")&&customElements.define("tournament-leaderboard",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-C-zS8XGk.cjs")).then(r=>r.TournamentDetails_ce).then(({default:r})=>{!customElements.get("tournament-details")&&customElements.define("tournament-details",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./TournamentGames-zikPbhES.cjs")).then(({default:r})=>{!customElements.get("tournament-games")&&customElements.define("tournament-games",r.element)})}var At=e.from_html('<span class="Spinner svelte-gxy8gu"></span>'),jt=e.from_html("<button><!></button>"),Dt=e.from_html('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div></div>'),Wt=e.from_html('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <tournament-leaderboard></tournament-leaderboard> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <tournament-games></tournament-games>',3),It=e.from_html('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'),zt=e.from_html('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');const Vt={hash:"svelte-gxy8gu",code:`.svelte-gxy8gu,
|
|
29
|
-
.svelte-gxy8gu::before,
|
|
30
|
-
.svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;&.Details {height:400px;}&.Leaderboard {height:400px;}&.Rules {height:150px;}&.Games {height:300px;}}.SkeletonShimmer.svelte-gxy8gu {width:100%;height:100%;background:linear-gradient(
|
|
31
|
-
90deg,
|
|
32
|
-
transparent 0%,
|
|
33
|
-
var(--emw-color-skeleton, #535353) 50%,
|
|
34
|
-
transparent 100%
|
|
35
|
-
);
|
|
36
|
-
animation: svelte-gxy8gu-loading 1.5s infinite;transform:translateX(-100%);}
|
|
37
|
-
|
|
38
|
-
@keyframes svelte-gxy8gu-loading {
|
|
39
|
-
0% {
|
|
40
|
-
transform: translateX(-100%);
|
|
41
|
-
}
|
|
42
|
-
100% {
|
|
43
|
-
transform: translateX(100%);
|
|
44
|
-
}
|
|
45
|
-
}.TournamentDetailsPageWrapper.svelte-gxy8gu {max-width:1300px;margin:auto;background-color:#2C2B2B;padding:10px;border-radius:6px;display:flex;flex-direction:column;gap:10px;}.DetailsWrapper.svelte-gxy8gu {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding-bottom:16px;.ViewPrizesContainer:where(.svelte-gxy8gu) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:calc(100% - 32px);margin:auto;padding:10px;}}.ButtonPrimary.svelte-gxy8gu {display:block;width:calc(100% - 32px);margin:auto;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}
|
|
46
|
-
|
|
47
|
-
@keyframes svelte-gxy8gu-pulse {
|
|
48
|
-
0%, 100% {
|
|
49
|
-
background-position: 0% 0%;
|
|
50
|
-
}
|
|
51
|
-
50% {
|
|
52
|
-
background-position: 0% 100%;
|
|
53
|
-
}
|
|
54
|
-
}.Spinner.svelte-gxy8gu {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
|
|
55
|
-
animation: svelte-gxy8gu-spin 0.6s linear infinite;}
|
|
56
|
-
|
|
57
|
-
@keyframes svelte-gxy8gu-spin {
|
|
58
|
-
to { transform: rotate(360deg); }
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
@media (max-width: 750px) {.TournamentDetailsPageWrapper.svelte-gxy8gu {background-color:transparent;}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media (min-width: 1000px) {.ButtonPrimary.svelte-gxy8gu {display:block;width:300px;margin:auto;}
|
|
66
|
-
}.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-gxy8gu):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}}}}`};function ze(n,r){var pe,fe;e.push(r,!0),e.append_styles(n,Vt);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),a=e.prop(r,"initialState"),s=e.prop(r,"endpoint"),l=e.prop(r,"language",7,"en"),c=e.prop(r,"session"),m=e.prop(r,"tournamentid"),b=e.prop(r,"gamesLimit",7,6),P=e.prop(r,"platformProp",7,null);pt({withLocale:"en",translations:{}}),Object.keys(Se).forEach(u=>{ft(u,Se[u])}),Ce(l());const R=()=>{Ce(l())};e.user_effect(()=>{R()});let d=e.state(e.proxy(((pe=a())==null?void 0:pe.tournament)||null)),D=e.state(e.proxy([])),v=e.state(!1),se=e.state(void 0),Z=e.state(!1),le=e.state(!1),ue=e.state(""),W=e.state(!1),ce=e.state(void 0),L=e.state(!1);const I=Ot()?(fe=P())!=null?fe:"dk":Ie(window.navigator.userAgent),Ve=()=>xe(this,null,function*(){e.set(v,!0);const u=new URL(`${s()}/v1/tournaments/${m()}`),g=new Headers;c()&&g.append("X-SessionId",c());const M={method:"GET",headers:g};u.searchParams.append("language",l()),u.searchParams.append("expand","games"),u.searchParams.append("pagination",`games(limit=${b()},offset=0)`),u.searchParams.append("platform",I),fetch(u,M).then(p=>p.json()).then(p=>{var y,z,w,B,O;e.set(d,p==null?void 0:p.item,!0),e.set(D,(z=(y=p==null?void 0:p.item)==null?void 0:y.games)==null?void 0:z.items,!0),e.set(se,(B=(w=p==null?void 0:p.item)==null?void 0:w.games)==null?void 0:B.total,!0),e.set(ce,(O=p==null?void 0:p.item)==null?void 0:O.metadata,!0)}).catch(p=>console.log(p)).finally(()=>{e.set(v,!1)})}),Ue=()=>{fetch(`${s()}/tournaments/${e.get(d).id}`,{headers:{"X-SessionID":c()}}).then(u=>u.json()).then(u=>{var g;(g=u==null?void 0:u.item)!=null&&g.playerEnrolled?e.set(W,!0):(e.set(le,!0),e.set(ue,u.errorMessage,!0))}).catch(u=>console.log(u))},Fe=()=>{e.set(Z,!0);const u=new URL(`${s()}/v1/bonus/claim`);u.searchParams.append("language",l()),u.searchParams.append("platform",I);const g=new Headers;g.append("Content-Type","application/json"),g.append("X-SessionID",c());let M={};e.get(d).wallets&&e.get(d).wallets.length>0&&(M={language:l(),bonusCode:e.get(d).wallets[0].code,currency:e.get(d).baseCurrency,type:"tournament"});const p={method:"PUT",headers:g,body:JSON.stringify(M)};fetch(u,p).then(y=>y.json()).then(y=>{y&&(y.success==!0?e.set(W,!0):y.errorMessage.match("VersionMismatchException")&&Ue())}).catch(y=>{console.log(y),e.set(le,!0),e.set(ue,y.errorMessage,!0)}).finally(()=>e.set(Z,!1))},Ze=()=>{e.set(L,!e.get(L))};e.onMount(()=>{a()||c()&&m()&&s()&&Ve()});var Ge={get initialState(){return a()},set initialState(u){a(u),e.flushSync()},get endpoint(){return s()},set endpoint(u){s(u),e.flushSync()},get language(){return l()},set language(u="en"){l(u),e.flushSync()},get session(){return c()},set session(u){c(u),e.flushSync()},get tournamentid(){return m()},set tournamentid(u){m(u),e.flushSync()},get gamesLimit(){return b()},set gamesLimit(u=6){b(u),e.flushSync()},get platformProp(){return P()},set platformProp(u=null){P(u),e.flushSync()}},G=zt(),de=e.child(G);{var qe=u=>{var g=Wt(),M=e.first_child(g),p=e.child(M);e.template_effect(()=>e.set_custom_element_data(p,"tournament",e.get(d))),e.template_effect(()=>e.set_custom_element_data(p,"language",l())),e.template_effect(()=>e.set_custom_element_data(p,"enrolled",e.get(d).playerEnrolled)),e.set_class(p,1,"svelte-gxy8gu");var y=e.sibling(p,2);{var z=S=>{var x=jt();x.__click=Fe;var H=e.child(x);{var A=k=>{var E=At();e.append(k,E)},X=k=>{var E=e.text();e.template_effect(N=>e.set_text(E,N),[()=>t()("joinButton")]),e.append(k,E)};e.if_block(H,k=>{e.get(Z)?k(A):k(X,!1)})}e.reset(x),e.template_effect(()=>{e.set_class(x,1,`ButtonPrimary ${e.get(d).playerEnrolled||e.get(W)?"Enrolled":""}`,"svelte-gxy8gu"),x.disabled=e.get(d).playerEnrolled||e.get(W)}),e.append(S,x)};e.if_block(y,S=>{!e.get(d).playerEnrolled&&e.get(d).state!=="Closed"&&S(z)})}e.reset(M);var w=e.sibling(M,2);e.template_effect(()=>e.set_custom_element_data(w,"endpoint",s())),e.template_effect(()=>e.set_custom_element_data(w,"language",l())),e.template_effect(()=>e.set_custom_element_data(w,"session",c())),e.template_effect(()=>e.set_custom_element_data(w,"tournamentid",m())),e.template_effect(()=>e.set_custom_element_data(w,"platform",I)),e.set_class(w,1,"svelte-gxy8gu");var B=e.sibling(w,2),O=e.child(B);O.__click=Ze;var q=e.child(O),$e=e.child(q,!0);e.reset(q);var Je=e.sibling(q,2);e.reset(O);var Ke=e.sibling(O,2);{var Qe=S=>{var x=Dt(),H=e.child(x),A=e.child(H),X=e.child(A);e.reset(A);var k=e.sibling(A,2),E=e.child(k);{var N=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.mostRounds")),e.append(f,h)};e.if_block(E,f=>{e.get(d).scoreCriteria=="BetCount"&&f(N)})}var me=e.sibling(E,2);{var et=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.winStakeRatio")),e.append(f,h)};e.if_block(me,f=>{e.get(d).scoreCriteria=="WinStakeRatio"&&f(et)})}var he=e.sibling(me,2);{var tt=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.maxWinStakeRatio")),e.append(f,h)};e.if_block(he,f=>{e.get(d).scoreCriteria=="MaxWinStakeRatio"&&f(tt)})}var ve=e.sibling(he,2);{var rt=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.stake")),e.append(f,h)};e.if_block(ve,f=>{e.get(d).scoreCriteria=="Stake"&&f(rt)})}var ge=e.sibling(ve,2);{var nt=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.win")),e.append(f,h)};e.if_block(ge,f=>{e.get(d).scoreCriteria=="Win"&&f(nt)})}var it=e.sibling(ge,2);{var ot=f=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.winBetCount")),e.append(f,h)};e.if_block(it,f=>{e.get(d).scoreCriteria=="WinBetCount"&&f(ot)})}e.reset(k),e.reset(H);var Y=e.sibling(H,2),$=e.child(Y),at=e.child($);e.reset($);var ye=e.sibling($,2),st=e.child(ye);e.html(st,()=>t()("miniBetCount",{values:{betCount:e.get(d).minBetCount}})),e.reset(ye),e.reset(Y);var J=e.sibling(Y,2),K=e.child(J),lt=e.child(K);e.reset(K);var be=e.sibling(K,2),ut=e.child(be);e.html(ut,()=>t()("timePeriod",{values:{startTime:Be(e.get(d).startTime),endTime:Be(e.get(d).endTime)}})),e.reset(be),e.reset(J);var _e=e.sibling(J,2),Q=e.child(_e),ct=e.child(Q);e.reset(Q);var we=e.sibling(Q,2),dt=e.child(we);e.html(dt,()=>t()("terms",{values:{tcUrl:e.get(d).termsUrl||"#"}})),e.reset(we),e.reset(_e),e.reset(x),e.template_effect(()=>{e.set_attribute(X,"src",Bt),e.set_attribute(at,"src",Rt),e.set_attribute(lt,"src",Ht),e.set_attribute(ct,"src",Lt)}),e.append(S,x)};e.if_block(Ke,S=>{e.get(L)&&S(Qe)})}e.reset(B);var C=e.sibling(B,2);e.template_effect(()=>e.set_custom_element_data(C,"endpoint",s())),e.template_effect(()=>e.set_custom_element_data(C,"language",l())),e.template_effect(()=>e.set_custom_element_data(C,"session",c())),e.template_effect(()=>e.set_custom_element_data(C,"tournamentid",m())),e.template_effect(()=>e.set_custom_element_data(C,"platform",I)),e.template_effect(()=>e.set_custom_element_data(C,"initialGames",e.get(D))),e.template_effect(()=>e.set_custom_element_data(C,"totalGames",e.get(se))),e.template_effect(()=>e.set_custom_element_data(C,"tournamentMetadata",e.get(ce)||{})),e.set_class(C,1,"svelte-gxy8gu"),e.template_effect(S=>{e.set_attribute(O,"aria-expanded",e.get(L)),e.set_text($e,S),e.set_attribute(Je,"src",e.get(L)?Et:Pt)},[()=>t()("rules")]),e.append(u,g)};e.if_block(de,u=>{e.get(d)&&u(qe)})}var Xe=e.sibling(de,2);{var Ne=u=>{var g=It();e.append(u,g)};e.if_block(Xe,u=>{e.get(v)&&u(Ne)})}e.reset(G),e.append(n,G);var Ye=e.pop(Ge);return o(),Ye}e.delegate(["click"]);customElements.define("tournament-details-page",e.create_custom_element(ze,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{}},[],[],!1));const Ut=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"}));exports.TournamentDetailsPage_ce=Ut;exports.getDevice=Ie;
|
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
var ce = (T, d, m) => new Promise((V, H) => {
|
|
2
|
-
var j = (f) => {
|
|
3
|
-
try {
|
|
4
|
-
x(m.next(f));
|
|
5
|
-
} catch (G) {
|
|
6
|
-
H(G);
|
|
7
|
-
}
|
|
8
|
-
}, W = (f) => {
|
|
9
|
-
try {
|
|
10
|
-
x(m.throw(f));
|
|
11
|
-
} catch (G) {
|
|
12
|
-
H(G);
|
|
13
|
-
}
|
|
14
|
-
}, x = (f) => f.done ? V(f.value) : Promise.resolve(f.value).then(j, W);
|
|
15
|
-
x((m = m.apply(T, d)).next());
|
|
16
|
-
});
|
|
17
|
-
import { a as Fe, $ as Xe, m as Ue, e as Je, p as P, u as de, s as C, f as Ke, g as _, r as w, q as i, i as D, n as a, y as B, C as qe, E as y, A as M, h as c, j as Qe, k as Ve, F as Ye, w as k, l as S, J, K, I as q, x as Q, L as se, t as Ze, v as $e, B as r, D as ue } from "./TournamentDetails-qcyLTtSv.js";
|
|
18
|
-
import { g as et } from "./TournamentDetailsPage-CQFv3xok.js";
|
|
19
|
-
function tt(T, d) {
|
|
20
|
-
Fe(T, d);
|
|
21
|
-
}
|
|
22
|
-
function fe(T) {
|
|
23
|
-
Xe.set(T);
|
|
24
|
-
}
|
|
25
|
-
const ge = {
|
|
26
|
-
en: {
|
|
27
|
-
previousButton: "Previous",
|
|
28
|
-
nextButton: "Next",
|
|
29
|
-
casinoTab: "Casino",
|
|
30
|
-
sportsbookTab: "Sportsbook",
|
|
31
|
-
gamesDescriptionTitle: "Participating games",
|
|
32
|
-
gamesDescriptionSubtitle: "Discover the games",
|
|
33
|
-
sportsRulesParseError: "Error parsing tournament rules",
|
|
34
|
-
noAvailableGames: "No games have been configured yet!"
|
|
35
|
-
},
|
|
36
|
-
tr: {
|
|
37
|
-
previousButton: "Önceki",
|
|
38
|
-
nextButton: "Sonraki",
|
|
39
|
-
casinoTab: "Casino",
|
|
40
|
-
sportsbookTab: "Spor Bahisleri",
|
|
41
|
-
gamesDescriptionTitle: "Katılımcı oyunlar",
|
|
42
|
-
gamesDescriptionSubtitle: "Oyunları keşfedin",
|
|
43
|
-
sportsRulesParseError: "Turnuva kuralları ayrıştırma hatası",
|
|
44
|
-
noAvailableGames: "Henüz oyun yapılandırılmamış!"
|
|
45
|
-
}
|
|
46
|
-
}, at = () => typeof window == "undefined";
|
|
47
|
-
var nt = _('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), st = _('<p class="svelte-p7mf8l"> </p>'), ot = _("<div></div>"), rt = _('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), lt = _('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'), it = _('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), pt = _("<button> </button>"), mt = _('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), vt = _("<p> </p>"), ct = _('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div></div>'), dt = _('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');
|
|
48
|
-
const ut = {
|
|
49
|
-
hash: "svelte-p7mf8l",
|
|
50
|
-
code: `.svelte-p7mf8l,
|
|
51
|
-
.svelte-p7mf8l::before,
|
|
52
|
-
.svelte-p7mf8l::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-p7mf8l {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-p7mf8l {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-p7mf8l) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;}.TournamentGamesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-p7mf8l {display:grid;gap:12px;grid-template-columns:repeat(auto-fit, minmax(min(150px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
53
|
-
to top,
|
|
54
|
-
var(--emw-color-primary, #FF1D4E),
|
|
55
|
-
transparent
|
|
56
|
-
);background-size:100% 200%;
|
|
57
|
-
animation: pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {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-p7mf8l) {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-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {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-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;}.PaginationSkeletonButton.svelte-p7mf8l {width:80px;height:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-p7mf8l {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-p7mf8l {width:100%;height:100%;background:linear-gradient(
|
|
58
|
-
90deg,
|
|
59
|
-
transparent 0%,
|
|
60
|
-
var(--emw-color-skeleton, #333232) 50%,
|
|
61
|
-
transparent 100%
|
|
62
|
-
);
|
|
63
|
-
animation: svelte-p7mf8l-loading 1.5s infinite;transform:translateX(-100%);}
|
|
64
|
-
|
|
65
|
-
@keyframes svelte-p7mf8l-loading {
|
|
66
|
-
0% {
|
|
67
|
-
transform: translateX(-100%);
|
|
68
|
-
}
|
|
69
|
-
100% {
|
|
70
|
-
transform: translateX(100%);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l, .PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {min-width:75px;}.PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:35px;}}
|
|
75
|
-
|
|
76
|
-
}.Hidden.svelte-p7mf8l {display:none;}`
|
|
77
|
-
};
|
|
78
|
-
function ft(T, d) {
|
|
79
|
-
var me;
|
|
80
|
-
Ue(d, !0), Je(T, ut);
|
|
81
|
-
const m = () => qe(Ye, "$_", V), [V, H] = Ve(), j = P(d, "initialGames"), W = P(d, "endpoint"), x = P(d, "language", 7, "en"), f = P(d, "session"), G = P(d, "tournamentid"), h = P(d, "gamesLimit", 7, 6), R = P(d, "totalGames"), Y = P(d, "platformProp", 7, null), E = P(d, "tournamentMetadata");
|
|
82
|
-
Object.keys(ge).forEach((e) => {
|
|
83
|
-
tt(e, ge[e]);
|
|
84
|
-
}), fe(x());
|
|
85
|
-
const he = () => {
|
|
86
|
-
fe(x());
|
|
87
|
-
};
|
|
88
|
-
de(() => {
|
|
89
|
-
he();
|
|
90
|
-
});
|
|
91
|
-
let z = C(Ke(j() || [])), L = C(!1), g = C(0), I = C(void 0);
|
|
92
|
-
const be = at() ? (me = Y()) != null ? me : "dk" : et(window.navigator.userAgent), Z = () => ce(this, null, function* () {
|
|
93
|
-
if ($.has(a(F)))
|
|
94
|
-
return;
|
|
95
|
-
k(L, !0);
|
|
96
|
-
const e = new URL(`${W()}/v1/tournaments/${G()}`), t = new Headers();
|
|
97
|
-
f() && t.append("X-SessionId", f());
|
|
98
|
-
const n = { method: "GET", headers: t };
|
|
99
|
-
e.searchParams.append("filter", `id=${G()}`), e.searchParams.append("language", x()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${h()},offset=${a(g)})`), e.searchParams.append("platform", be), fetch(e, n).then((o) => o.json()).then((o) => {
|
|
100
|
-
var l, s;
|
|
101
|
-
k(z, (s = (l = o == null ? void 0 : o.item) == null ? void 0 : l.games) == null ? void 0 : s.items, !0), $.set(a(F), a(z));
|
|
102
|
-
}).catch((o) => console.log(o)).finally(() => k(L, !1));
|
|
103
|
-
}), _e = () => {
|
|
104
|
-
const e = Math.ceil(R() / h()), t = Math.floor(a(g) / h()) + 1;
|
|
105
|
-
if (e <= 5)
|
|
106
|
-
return Array.from({ length: e }, (o, l) => l + 1);
|
|
107
|
-
const n = [];
|
|
108
|
-
return n.push(1), t <= 3 ? (n.push(2, 3), n.push("..."), n.push(e)) : t >= e - 2 ? (n.push("..."), n.push(e - 2, e - 1, e)) : (n.push("..."), n.push(t - 1, t, t + 1), n.push("..."), n.push(e)), n;
|
|
109
|
-
}, xe = () => {
|
|
110
|
-
a(g) < R() && (k(g, a(g) + h()), Z());
|
|
111
|
-
}, we = () => {
|
|
112
|
-
a(g) !== 0 && (k(g, a(g) - h()), Z());
|
|
113
|
-
}, ye = (e) => {
|
|
114
|
-
k(g, (e - 1) * h()), Z();
|
|
115
|
-
}, ke = se(_e), F = se(() => Math.floor(a(g) / h()) + 1);
|
|
116
|
-
let $ = /* @__PURE__ */ new Map([[1, j()]]), Pe = se(() => {
|
|
117
|
-
var e;
|
|
118
|
-
return (e = $.get(a(F))) != null ? e : [];
|
|
119
|
-
}), A = C("casino");
|
|
120
|
-
const Se = () => {
|
|
121
|
-
var n;
|
|
122
|
-
if (!E()) return;
|
|
123
|
-
const e = (n = E().sports) == null ? void 0 : n.rules;
|
|
124
|
-
let t;
|
|
125
|
-
if (e)
|
|
126
|
-
try {
|
|
127
|
-
t = JSON.parse(e), k(I, t[x()] || t["*"], !0);
|
|
128
|
-
} catch (o) {
|
|
129
|
-
console.log(o), k(I, `${m()("sportsRulesParseError")}`);
|
|
130
|
-
}
|
|
131
|
-
}, Te = (e) => {
|
|
132
|
-
window.postMessage(
|
|
133
|
-
{
|
|
134
|
-
type: "Tournaments:PlayGame",
|
|
135
|
-
launchUrl: e.launchUrl,
|
|
136
|
-
id: e.gameId,
|
|
137
|
-
thumbnail: e.thumbnail,
|
|
138
|
-
name: e.name
|
|
139
|
-
},
|
|
140
|
-
window.location.href
|
|
141
|
-
);
|
|
142
|
-
};
|
|
143
|
-
de(() => {
|
|
144
|
-
Object.keys(E()).length !== 0 && Se();
|
|
145
|
-
});
|
|
146
|
-
var Ge = {
|
|
147
|
-
get initialGames() {
|
|
148
|
-
return j();
|
|
149
|
-
},
|
|
150
|
-
set initialGames(e) {
|
|
151
|
-
j(e), S();
|
|
152
|
-
},
|
|
153
|
-
get endpoint() {
|
|
154
|
-
return W();
|
|
155
|
-
},
|
|
156
|
-
set endpoint(e) {
|
|
157
|
-
W(e), S();
|
|
158
|
-
},
|
|
159
|
-
get language() {
|
|
160
|
-
return x();
|
|
161
|
-
},
|
|
162
|
-
set language(e = "en") {
|
|
163
|
-
x(e), S();
|
|
164
|
-
},
|
|
165
|
-
get session() {
|
|
166
|
-
return f();
|
|
167
|
-
},
|
|
168
|
-
set session(e) {
|
|
169
|
-
f(e), S();
|
|
170
|
-
},
|
|
171
|
-
get tournamentid() {
|
|
172
|
-
return G();
|
|
173
|
-
},
|
|
174
|
-
set tournamentid(e) {
|
|
175
|
-
G(e), S();
|
|
176
|
-
},
|
|
177
|
-
get gamesLimit() {
|
|
178
|
-
return h();
|
|
179
|
-
},
|
|
180
|
-
set gamesLimit(e = 6) {
|
|
181
|
-
h(e), S();
|
|
182
|
-
},
|
|
183
|
-
get totalGames() {
|
|
184
|
-
return R();
|
|
185
|
-
},
|
|
186
|
-
set totalGames(e) {
|
|
187
|
-
R(e), S();
|
|
188
|
-
},
|
|
189
|
-
get platformProp() {
|
|
190
|
-
return Y();
|
|
191
|
-
},
|
|
192
|
-
set platformProp(e = null) {
|
|
193
|
-
Y(e), S();
|
|
194
|
-
},
|
|
195
|
-
get tournamentMetadata() {
|
|
196
|
-
return E();
|
|
197
|
-
},
|
|
198
|
-
set tournamentMetadata(e) {
|
|
199
|
-
E(e), S();
|
|
200
|
-
}
|
|
201
|
-
}, ee = dt(), te = i(ee), ae = i(te), Ae = i(ae, !0);
|
|
202
|
-
r(ae);
|
|
203
|
-
var oe = w(ae, 2), Be = i(oe, !0);
|
|
204
|
-
r(oe), r(te);
|
|
205
|
-
var re = w(te, 2);
|
|
206
|
-
{
|
|
207
|
-
var Ne = (e) => {
|
|
208
|
-
var t = nt(), n = i(t);
|
|
209
|
-
let o;
|
|
210
|
-
n.__click = () => k(A, "casino");
|
|
211
|
-
var l = i(n, !0);
|
|
212
|
-
r(n);
|
|
213
|
-
var s = w(n, 2);
|
|
214
|
-
let p;
|
|
215
|
-
s.__click = () => k(A, "sports");
|
|
216
|
-
var v = i(s, !0);
|
|
217
|
-
r(s), r(t), B(
|
|
218
|
-
(u, b) => {
|
|
219
|
-
o = M(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(A) === "casino" }), y(l, u), p = M(s, 1, "Tab svelte-p7mf8l", null, p, { Active: a(A) === "sports" }), y(v, b);
|
|
220
|
-
},
|
|
221
|
-
[() => m()("casinoTab"), () => m()("sportsbookTab")]
|
|
222
|
-
), c(e, t);
|
|
223
|
-
};
|
|
224
|
-
D(re, (e) => {
|
|
225
|
-
Object.keys(E()).length !== 0 && e(Ne);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
var le = w(re, 2);
|
|
229
|
-
{
|
|
230
|
-
var De = (e) => {
|
|
231
|
-
var t = ot();
|
|
232
|
-
let n;
|
|
233
|
-
J(t, 21, () => a(I), K, (o, l) => {
|
|
234
|
-
var s = st(), p = i(s);
|
|
235
|
-
r(s), B((v) => {
|
|
236
|
-
var u;
|
|
237
|
-
return y(p, `${(u = a(l).rule) != null ? u : ""} ${v != null ? v : ""}`);
|
|
238
|
-
}, [() => m()("contribution")]), c(o, s);
|
|
239
|
-
}), r(t), B(() => n = M(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "casino" })), c(e, t);
|
|
240
|
-
};
|
|
241
|
-
D(le, (e) => {
|
|
242
|
-
a(I) && e(De);
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
var X = w(le, 2);
|
|
246
|
-
let ie;
|
|
247
|
-
var Me = i(X);
|
|
248
|
-
{
|
|
249
|
-
var je = (e) => {
|
|
250
|
-
var t = q(), n = Q(t);
|
|
251
|
-
J(n, 17, () => Array(h()), K, (o, l, s, p) => {
|
|
252
|
-
var v = rt();
|
|
253
|
-
c(o, v);
|
|
254
|
-
}), c(e, t);
|
|
255
|
-
}, Ee = (e) => {
|
|
256
|
-
var t = q(), n = Q(t);
|
|
257
|
-
J(n, 17, () => a(Pe), K, (o, l) => {
|
|
258
|
-
var s = lt();
|
|
259
|
-
s.__click = () => Te(a(l));
|
|
260
|
-
var p = i(s), v = i(p), u = w(v, 2), b = i(u), U = i(b, !0);
|
|
261
|
-
r(b), r(u), r(p), r(s), B(
|
|
262
|
-
(ne) => {
|
|
263
|
-
ue(v, "src", `https:${a(l).thumbnail}`), ue(v, "alt", a(l).name), y(U, ne);
|
|
264
|
-
},
|
|
265
|
-
[() => m()("play")]
|
|
266
|
-
), c(o, s);
|
|
267
|
-
}), c(e, t);
|
|
268
|
-
};
|
|
269
|
-
D(Me, (e) => {
|
|
270
|
-
var t;
|
|
271
|
-
a(L) || ((t = a(z)) == null ? void 0 : t.length) === 0 ? e(je) : e(Ee, !1);
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
r(X);
|
|
275
|
-
var pe = w(X, 2);
|
|
276
|
-
{
|
|
277
|
-
var Le = (e) => {
|
|
278
|
-
var t = mt();
|
|
279
|
-
let n;
|
|
280
|
-
var o = i(t);
|
|
281
|
-
o.__click = we;
|
|
282
|
-
var l = i(o, !0);
|
|
283
|
-
r(o);
|
|
284
|
-
var s = w(o, 2);
|
|
285
|
-
J(s, 21, () => a(ke), K, (u, b) => {
|
|
286
|
-
var U = q(), ne = Q(U);
|
|
287
|
-
{
|
|
288
|
-
var Ce = (O) => {
|
|
289
|
-
var N = it();
|
|
290
|
-
c(O, N);
|
|
291
|
-
}, He = (O) => {
|
|
292
|
-
var N = pt();
|
|
293
|
-
let ve;
|
|
294
|
-
N.__click = () => ye(a(b));
|
|
295
|
-
var Ie = i(N, !0);
|
|
296
|
-
r(N), B(() => {
|
|
297
|
-
ve = M(N, 1, "PaginationButton Number svelte-p7mf8l", null, ve, { Active: a(b) === a(F) }), y(Ie, a(b));
|
|
298
|
-
}), c(O, N);
|
|
299
|
-
};
|
|
300
|
-
D(ne, (O) => {
|
|
301
|
-
typeof a(b) != "number" ? O(Ce) : O(He, !1);
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
c(u, U);
|
|
305
|
-
}), r(s);
|
|
306
|
-
var p = w(s, 2);
|
|
307
|
-
p.__click = xe;
|
|
308
|
-
var v = i(p, !0);
|
|
309
|
-
r(p), r(t), B(
|
|
310
|
-
(u, b) => {
|
|
311
|
-
n = M(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "sports" }), o.disabled = a(g) === 0, y(l, u), p.disabled = a(g) >= R() - h(), y(v, b);
|
|
312
|
-
},
|
|
313
|
-
[() => m()("previousButton"), () => m()("nextButton")]
|
|
314
|
-
), c(e, t);
|
|
315
|
-
}, Oe = (e) => {
|
|
316
|
-
var t = q(), n = Q(t);
|
|
317
|
-
{
|
|
318
|
-
var o = (l) => {
|
|
319
|
-
var s = vt();
|
|
320
|
-
let p;
|
|
321
|
-
var v = i(s, !0);
|
|
322
|
-
r(s), B(
|
|
323
|
-
(u) => {
|
|
324
|
-
p = M(s, 1, "NoGamesAvailable svelte-p7mf8l", null, p, { Hidden: a(A) === "sports" }), y(v, u);
|
|
325
|
-
},
|
|
326
|
-
[() => m()("noAvailableGames")]
|
|
327
|
-
), c(l, s);
|
|
328
|
-
};
|
|
329
|
-
D(
|
|
330
|
-
n,
|
|
331
|
-
(l) => {
|
|
332
|
-
var s;
|
|
333
|
-
!a(L) && ((s = a(z)) == null ? void 0 : s.length) === 0 && l(o);
|
|
334
|
-
},
|
|
335
|
-
!0
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
c(e, t);
|
|
339
|
-
};
|
|
340
|
-
D(pe, (e) => {
|
|
341
|
-
var t;
|
|
342
|
-
!a(L) && ((t = a(z)) == null ? void 0 : t.length) > 0 ? e(Le) : e(Oe, !1);
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
var We = w(pe, 2);
|
|
346
|
-
{
|
|
347
|
-
var Re = (e) => {
|
|
348
|
-
var t = ct();
|
|
349
|
-
c(e, t);
|
|
350
|
-
};
|
|
351
|
-
D(We, (e) => {
|
|
352
|
-
a(L) && e(Re);
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
r(ee), B(
|
|
356
|
-
(e, t) => {
|
|
357
|
-
y(Ae, e), y(Be, t), ie = M(X, 1, "TournamentGamesContainer svelte-p7mf8l", null, ie, { Hidden: a(A) === "sports" });
|
|
358
|
-
},
|
|
359
|
-
[
|
|
360
|
-
() => m()("gamesDescriptionTitle"),
|
|
361
|
-
() => m()("gamesDescriptionSubtitle")
|
|
362
|
-
]
|
|
363
|
-
), c(T, ee);
|
|
364
|
-
var ze = Qe(Ge);
|
|
365
|
-
return H(), ze;
|
|
366
|
-
}
|
|
367
|
-
Ze(["click"]);
|
|
368
|
-
customElements.define("tournament-games", $e(
|
|
369
|
-
ft,
|
|
370
|
-
{
|
|
371
|
-
initialGames: {},
|
|
372
|
-
endpoint: {},
|
|
373
|
-
language: {},
|
|
374
|
-
session: {},
|
|
375
|
-
tournamentid: {},
|
|
376
|
-
gamesLimit: {},
|
|
377
|
-
totalGames: {},
|
|
378
|
-
platformProp: {},
|
|
379
|
-
tournamentMetadata: {}
|
|
380
|
-
},
|
|
381
|
-
[],
|
|
382
|
-
[],
|
|
383
|
-
!1
|
|
384
|
-
));
|
|
385
|
-
export {
|
|
386
|
-
ft as default
|
|
387
|
-
};
|