@everymatrix/tournament-details-page 0.1.29 → 0.2.1
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/StatusBadge-BVcNxptf.cjs +8 -0
- package/components/StatusBadge-BnPuCJnO.js +7097 -0
- package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
- package/components/StatusBadge-DKawANSc.js +7010 -0
- package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
- package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
- package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
- package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
- package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
- package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
- package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
- package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
- package/components/TournamentGames-B6UkeuiX.js +821 -0
- package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
- package/components/TournamentGames-DO01jBJs.js +799 -0
- package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
- package/components/TournamentImage-BeCXYKda.cjs +5 -0
- package/components/TournamentImage-BxaewAcW.js +177 -0
- package/components/TournamentImage-Cp5BEQ0s.js +180 -0
- package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
- package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
- package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
- package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
- package/components/TournamentRules-BbxvSZdU.cjs +6 -0
- package/components/TournamentRules-Bsxb9Asj.js +144 -0
- package/components/TournamentRules-DX1CVsV7.cjs +6 -0
- package/components/TournamentRules-SECANCVS.js +149 -0
- package/components/TournamentSummary-Ardxi8yJ.js +159 -0
- package/components/TournamentSummary-BGk055-K.cjs +3 -0
- package/components/TournamentSummary-CizBbtzd.cjs +3 -0
- package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
- package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
- package/components/TournamentTabs-DpLpOYtB.js +57 -0
- package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
- package/components/TournamentTabs-FzkOjNA3.js +72 -0
- package/components/{translations-C9SzZ-OE.js → translations-BQS5XycD.js} +67 -8
- package/components/translations-BSe2qToO.cjs +1 -0
- package/components/{translations-c-3wA1ZU.js → translations-DPzojb4V.js} +67 -8
- package/components/translations-FufS-X5l.cjs +1 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentDetails-Bdjkchis.js +0 -435
- package/components/TournamentDetails-CwSpU7kq.cjs +0 -3
- package/components/TournamentDetails-D6tJxzxu.cjs +0 -3
- package/components/TournamentDetails-lOcRC5BE.js +0 -436
- package/components/TournamentDetailsPage-BxjcEVtD.cjs +0 -36
- package/components/TournamentDetailsPage-CUrqFYHv.cjs +0 -36
- package/components/TournamentDetailsPage-Cq82Ib7k.js +0 -688
- package/components/TournamentDetailsPage-iCJFDnnz.js +0 -667
- package/components/TournamentGames-BEqAeC0t.js +0 -875
- package/components/TournamentGames-BHh4emja.cjs +0 -51
- package/components/TournamentGames-BfhpQFgs.cjs +0 -51
- package/components/TournamentGames-C-4Yfrqb.js +0 -849
- package/components/TournamentLeaderboard-B4cR1pv1.cjs +0 -46
- package/components/TournamentLeaderboard-Bn1ci40R.cjs +0 -46
- package/components/TournamentLeaderboard-JkZHz84d.js +0 -8028
- package/components/TournamentLeaderboard-ZeddBG1C.js +0 -7919
- package/components/translations-35-BlfqE.cjs +0 -1
- package/components/translations-CQFwGvLj.cjs +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var le=(n,r,t)=>new Promise((i,o)=>{var s=p=>{try{c(t.next(p))}catch(m){o(m)}},u=p=>{try{c(t.throw(p))}catch(m){o(m)}},c=p=>p.done?i(p.value):Promise.resolve(p.value).then(s,u);c((t=t.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-B4cR1pv1.cjs"),Qe=require("./translations-35-BlfqE.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 K(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 Q(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,s=[],u;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s}function Z(n,r,t){if(arguments.length===2)for(var i=0,o=r.length,s;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return n.concat(s||r)}function k(n){return typeof n=="function"}function me(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=me(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 $(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,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=K(u),p=c.next();!p.done;p=c.next()){var m=p.value;m.remove(this)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else u.remove(this);var d=this.initialTeardown;if(k(d))try{d()}catch(g){s=g instanceof V?g.errors:[g]}var T=this._finalizers;if(T){this._finalizers=null;try{for(var E=K(T),_=E.next();!_.done;_=E.next()){var A=_.value;try{ue(A)}catch(g){s=s!=null?s:[],g instanceof V?s=Z(Z([],Q(s)),Q(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{_&&!_.done&&(o=E.return)&&o.call(E)}finally{if(i)throw i.error}}}if(s)throw new V(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ue(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)&&$(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&$(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),be=z.EMPTY;function ge(n){return n instanceof z||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function ue(n){k(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,Z([n,r],Q(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function et(n){$e.setTimeout(function(){throw n})}function ce(){}function R(n){n()}var ye=function(n){B(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,ge(t)&&t.add(i)):i.destination=nt,i}return r.create=function(t,i,o){return new ee(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}(),ee=function(n){B(r,n);function r(t,i,o){var s=n.call(this)||this,u;return k(t)||!t?u={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:u=t,s.destination=new tt(u),s}return r}(ye);function N(n){et(n)}function rt(n){throw n}var nt={closed:!0,next:ce,error:rt,complete:ce},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 pe=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,s=lt(r)?r:new ee(r,t,i);return R(function(){var u=o,c=u.operator,p=u.source;s.add(c?c.call(s,p):p?o._subscribe(s):o._trySubscribe(s))}),s},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=fe(t),new t(function(o,s){var u=new ee({next:function(c){try{r(c)}catch(p){s(p),u.unsubscribe()}},error:s,complete:o});i.subscribe(u)})},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=fe(r),new r(function(i,o){var s;t.subscribe(function(u){return s=u},function(u){return o(u)},function(){return i(s)})})},n.create=function(r){return new n(r)},n}();function fe(n){var r;return(r=n!=null?n:Ze.Promise)!==null&&r!==void 0?r:Promise}function st(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function lt(n){return n&&n instanceof ye||st(n)&&ge(n)}var ut=me(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_e=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 de(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,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=K(i.currentObservers),c=u.next();!c.done;c=u.next()){var p=c.value;p.next(t)}}catch(m){o={error:m}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}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,s=o.hasError,u=o.isStopped,c=o.observers;return s||u?be:(this.currentObservers=null,c.push(t),new z(function(){i.currentObservers=null,$(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,s=i.thrownError,u=i.isStopped;o?t.error(s):u&&t.complete()},r.prototype.asObservable=function(){var t=new pe;return t.source=this,t},r.create=function(t,i){return new de(t,i)},r}(pe),de=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:be},r}(_e),xe={now:function(){return(xe.delegate||Date).now()},delegate:void 0},ct=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=xe);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,i),s}return r.prototype.next=function(t){var i=this,o=i.isStopped,s=i._buffer,u=i._infiniteTimeWindow,c=i._timestampProvider,p=i._windowTime;o||(s.push(t),!u&&s.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,s=o._infiniteTimeWindow,u=o._buffer,c=u.slice(),p=0;p<c.length&&!t.closed;p+=s?1:2)t.next(c[p]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,s=t._buffer,u=t._infiniteTimeWindow,c=(u?1:2)*i;if(i<1/0&&c<s.length&&s.splice(0,s.length-c),!u){for(var p=o.now(),m=0,d=1;d<s.length&&s[d]<=p;d+=2)m=d;m&&s.splice(0,m+1)}},r}(_e);const he=[],ve={},pt=(n,r=0)=>{if(he.indexOf(n)==-1){const t=new ct(r);ve[n]=t,he.push(n)}return ve[n]};typeof window!="undefined"&&(window.emWidgets={topic:pt});const we=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 ft=e.from_html('<div class="TournamentGamesTabs svelte-49hxa3"><button> </button> <button> </button></div>'),dt=e.from_html('<p class="svelte-49hxa3"> </p>'),ht=e.from_html("<div></div>"),vt=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-49hxa3"></div>'),mt=e.from_html("<p> </p>"),bt=e.from_html('<div class="TournamentGameThumbnail svelte-49hxa3"><div class="ImageContainer svelte-49hxa3"><img class="svelte-49hxa3"/> <div class="PlayButtonOverlay svelte-49hxa3"><button class="PlayGameButton svelte-49hxa3"> </button></div></div></div>'),gt=e.from_html('<span class="PaginationButton Elipsis svelte-49hxa3">...</span>'),yt=e.from_html("<button> </button>"),_t=e.from_html('<div><button class="PaginationButton svelte-49hxa3"> </button> <div class="PageNumberWrapper svelte-49hxa3"></div> <button class="PaginationButton svelte-49hxa3"> </button></div>'),xt=e.from_html('<div class="PaginationSkeleton svelte-49hxa3"><div class="PaginationSkeletonButton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationSkeletonButton svelte-49hxa3"></div></div>'),wt=e.from_html('<div class="TournamentGamesWrapper svelte-49hxa3"><div class="GamesDescription svelte-49hxa3"><p class="GamesDescriptionTitle svelte-49hxa3"> </p> <p class="GamesDescriptionSubTitle svelte-49hxa3"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const St={hash:"svelte-49hxa3",code:`.svelte-49hxa3,
|
|
17
|
-
.svelte-49hxa3::before,
|
|
18
|
-
.svelte-49hxa3::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-49hxa3 {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-49hxa3) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-49hxa3) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-49hxa3 {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-49hxa3) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-49hxa3) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-49hxa3 {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-49hxa3 {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-49hxa3 {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-49hxa3) {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-49hxa3-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-49hxa3) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-49hxa3) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-49hxa3) {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-49hxa3) {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-49hxa3 {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-49hxa3) {display:flex;gap:3px;}.PaginationButton:where(.svelte-49hxa3) {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-49hxa3 {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-49hxa3 {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-49hxa3) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
-
animation: svelte-49hxa3-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-49hxa3) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
-
animation: svelte-49hxa3-pulse 1s infinite;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-49hxa3-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-49hxa3 {width:fit-content;}.PaginationWrapper.svelte-49hxa3, .PaginationSkeleton.svelte-49hxa3 {justify-content:end;gap:10px;}.PaginationButton.svelte-49hxa3 {min-width:75px;}.PaginationSkeleton.svelte-49hxa3 {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-49hxa3) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-49hxa3) {width:35px;}}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (max-width: 475px) {.TournamentGamesContainer.svelte-49hxa3 {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-49hxa3 {& .PaginationButton:where(.svelte-49hxa3) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-49hxa3 {font-size:12px;}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 380px) {.TournamentGamesContainer.svelte-49hxa3 {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media (min-width: 1500px) {.TournamentGamesContainer.svelte-49hxa3 {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
|
|
51
|
-
}.Hidden.svelte-49hxa3 {display:none;}`};function Se(n,r){var ae;e.push(r,!0),e.append_styles(n,St);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),s=e.prop(r,"initialGames"),u=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),p=e.prop(r,"session"),m=e.prop(r,"tournamentid"),d=e.prop(r,"gamesLimit",7,6),T=e.prop(r,"totalGames"),E=e.prop(r,"platformProp",7,null),_=e.prop(r,"tournamentMetadata"),A=e.prop(r,"translationurl");e.registerTranslations(Qe.TRANSLATIONS$1),e.setLocale(c());const g=()=>{e.setLocale(c())};e.user_pre_effect(()=>{A()&&e.loadTranslations(A())}),e.user_effect(()=>{g()});let F=e.state(e.proxy(s()||[])),I=e.state(!1),x=e.state(0),M=e.state(void 0),C=e.state(!0);const Pe=e.isServer()?(ae=E())!=null?ae:"dk":we(window.navigator.userAgent),U=()=>le(this,null,function*(){var a;if(!H.has(e.get(W))){e.set(I,!0);try{const l=yield e.fetchTournament({endpoint:u(),language:c(),platform:Pe,session:p(),tournamentid:m(),filterById:!0,gamesLimit:d(),gamesOffset:e.get(x)});e.set(F,(a=l==null?void 0:l.games)==null?void 0:a.items,!0),H.set(e.get(W),e.get(F)),e.get(C)||e.set(C,!0)}catch(l){console.log(l)}finally{e.set(I,!1)}}}),Te=()=>{const a=Math.ceil(T()/d()),l=Math.floor(e.get(x)/d())+1;if(a<=5)return Array.from({length:a},(h,b)=>b+1);const f=[];return f.push(1),l<=3?(f.push(2,3),f.push("..."),f.push(a)):l>=a-2?(f.push("..."),f.push(a-2,a-1,a)):(f.push("..."),f.push(l-1,l,l+1),f.push("..."),f.push(a)),f},ke=()=>{e.get(x)<T()&&(e.set(x,e.get(x)+d()),U())},Ee=()=>{e.get(x)!==0&&(e.set(x,e.get(x)-d()),U())},Ge=a=>{e.set(x,(a-1)*d()),U()},Ae=e.user_derived(Te),W=e.user_derived(()=>Math.floor(e.get(x)/d())+1);let H=new Map([[1,s()]]),Oe=e.user_derived(()=>{var a;return(a=H.get(e.get(W)))!=null?a:[]}),G=e.state("casino");const je=()=>{var f;if(!_())return;const a=(f=_().sports)==null?void 0:f.rules;let l;if(a)try{l=JSON.parse(a),e.set(M,l[c()]||l["*"],!0)}catch(h){console.log(h),e.set(M,`${t()("sportsRulesParseError")}`)}},Be=a=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:a.launchUrl,id:a.gameId,thumbnail:a.thumbnail,name:a.name},window.location.href)};e.user_effect(()=>{Object.keys(_()).length!==0&&je()});var Ie={get initialGames(){return s()},set initialGames(a){s(a),e.flushSync()},get endpoint(){return u()},set endpoint(a){u(a),e.flushSync()},get language(){return c()},set language(a="en"){c(a),e.flushSync()},get session(){return p()},set session(a){p(a),e.flushSync()},get tournamentid(){return m()},set tournamentid(a){m(a),e.flushSync()},get gamesLimit(){return d()},set gamesLimit(a=6){d(a),e.flushSync()},get totalGames(){return T()},set totalGames(a){T(a),e.flushSync()},get platformProp(){return E()},set platformProp(a=null){E(a),e.flushSync()},get tournamentMetadata(){return _()},set tournamentMetadata(a){_(a),e.flushSync()},get translationurl(){return A()},set translationurl(a){A(a),e.flushSync()}},Y=wt(),q=e.child(Y),te=e.child(q),Me=e.only_child(te,!0),Ce=e.sibling(te,2),We=e.only_child(Ce,!0);e.reset(q);var re=e.sibling(q,2);{var Le=a=>{var l=ft(),f=e.child(l);let h;var b=e.only_child(f,!0),v=e.sibling(f,2);let w;var y=e.only_child(v,!0);e.reset(l),e.template_effect((S,P)=>{h=e.set_class(f,1,"Tab svelte-49hxa3",null,h,{Active:e.get(G)==="casino"}),e.set_text(b,S),w=e.set_class(v,1,"Tab svelte-49hxa3",null,w,{Active:e.get(G)==="sports"}),e.set_text(y,P)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",f,()=>e.set(G,"casino")),e.delegated("click",v,()=>e.set(G,"sports")),e.append(a,l)},De=e.user_derived(()=>Object.keys(_()).length!==0);e.if_block(re,a=>{e.get(De)&&a(Le)})}var ne=e.sibling(re,2);{var Ne=a=>{var l=ht();let f;e.each(l,21,()=>e.get(M),e.index,(h,b)=>{var v=dt(),w=e.only_child(v);e.template_effect(y=>{var S;return e.set_text(w,`${(S=e.get(b).rule)!=null?S:""} ${y!=null?y:""}`)},[()=>t()("contribution")]),e.append(h,v)}),e.reset(l),e.template_effect(()=>f=e.set_class(l,1,"TournamentRulesWrapper svelte-49hxa3",null,f,{Hidden:e.get(G)==="casino"})),e.append(a,l)};e.if_block(ne,a=>{e.get(M)&&a(Ne)})}var L=e.sibling(ne,2);let ie;var Re=e.child(L);{var ze=a=>{var l=e.comment(),f=e.first_child(l);e.each(f,17,()=>Array(d()),e.index,(h,b,v,w)=>{var y=vt();e.append(h,y)}),e.append(a,l)},Fe=a=>{var l=mt();let f;var h=e.only_child(l,!0);e.template_effect(b=>{f=e.set_class(l,1,"NoGamesAvailable svelte-49hxa3",null,f,{Hidden:e.get(G)==="sports"}),e.set_text(h,b)},[()=>t()("noAvailableGames")]),e.append(a,l)},Ue=a=>{var l=e.comment(),f=e.first_child(l);e.each(f,17,()=>e.get(Oe),e.index,(h,b)=>{var v=bt(),w=e.child(v),y=e.child(w),S=e.sibling(y,2),P=e.child(S),D=e.only_child(P,!0);e.reset(S),e.reset(w),e.reset(v),e.template_effect(J=>{e.set_attribute(y,"src",`https:${e.get(b).thumbnail}`),e.set_attribute(y,"alt",e.get(b).name),e.set_text(D,J)},[()=>t()("play")]),e.delegated("click",v,()=>Be(e.get(b))),e.append(h,v)}),e.append(a,l)};e.if_block(Re,a=>{var l;e.get(I)?a(ze):!e.get(I)&&((l=e.get(F))==null?void 0:l.length)===0?a(Fe,1):a(Ue,-1)})}e.reset(L);var oe=e.sibling(L,2);{var He=a=>{var l=_t();let f;var h=e.child(l),b=e.only_child(h,!0),v=e.sibling(h,2);e.each(v,21,()=>e.get(Ae),e.index,(S,P)=>{var D=e.comment(),J=e.first_child(D);{var Ve=O=>{var j=gt();e.append(O,j)},Xe=O=>{var j=yt();let se;var Ke=e.only_child(j,!0);e.template_effect(()=>{se=e.set_class(j,1,"PaginationButton Number svelte-49hxa3",null,se,{Active:e.get(P)===e.get(W)}),e.set_text(Ke,e.get(P))}),e.delegated("click",j,()=>Ge(e.get(P))),e.append(O,j)};e.if_block(J,O=>{typeof e.get(P)!="number"?O(Ve):O(Xe,-1)})}e.append(S,D)}),e.reset(v);var w=e.sibling(v,2),y=e.only_child(w,!0);e.reset(l),e.template_effect((S,P)=>{f=e.set_class(l,1,"PaginationWrapper svelte-49hxa3",null,f,{Hidden:e.get(G)==="sports"}),h.disabled=e.get(x)===0,e.set_text(b,S),w.disabled=e.get(x)>=T()-d(),e.set_text(y,P)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",h,Ee),e.delegated("click",w,ke),e.append(a,l)};e.if_block(oe,a=>{e.get(C)&&T()>d()&&a(He)})}var Ye=e.sibling(oe,2);{var qe=a=>{var l=xt();e.append(a,l)};e.if_block(Ye,a=>{e.get(C)||a(qe)})}e.reset(Y),e.template_effect((a,l)=>{e.set_text(Me,a),e.set_text(We,l),ie=e.set_class(L,1,"TournamentGamesContainer svelte-49hxa3",null,ie,{Hidden:e.get(G)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Je=e.pop(Ie);return o(),Je}e.delegate(["click"]);e.create_custom_element(Se,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});exports.TournamentGames=Se;exports.getDevice=we;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-Bn1ci40R.cjs"),Xe=require("./translations-CQFwGvLj.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 K(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 Q(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,s=[],l;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.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 s}function Z(n,r,t){if(arguments.length===2)for(var i=0,o=r.length,s;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return n.concat(s||r)}function T(n){return typeof n=="function"}function he(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=he(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 $(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,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=K(l),f=c.next();!f.done;f=c.next()){var x=f.value;x.remove(this)}}catch(b){r={error:b}}finally{try{f&&!f.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else l.remove(this);var d=this.initialTeardown;if(T(d))try{d()}catch(b){s=b instanceof V?b.errors:[b]}var P=this._finalizers;if(P){this._finalizers=null;try{for(var k=K(P),g=k.next();!g.done;g=k.next()){var A=g.value;try{se(A)}catch(b){s=s??[],b instanceof V?s=Z(Z([],Q(s)),Q(b.errors)):s.push(b)}}}catch(b){i={error:b}}finally{try{g&&!g.done&&(o=k.return)&&o.call(k)}finally{if(i)throw i.error}}}if(s)throw new V(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)se(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)&&$(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&$(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),ve=z.EMPTY;function me(n){return n instanceof z||n&&"closed"in n&&T(n.remove)&&T(n.add)&&T(n.unsubscribe)}function se(n){T(n)?n():n.unsubscribe()}var Ke={Promise:void 0},Qe={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,Z([n,r],Q(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Ze(n){Qe.setTimeout(function(){throw n})}function le(){}function R(n){n()}var be=function(n){B(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,me(t)&&t.add(i)):i.destination=tt,i}return r.create=function(t,i,o){return new ee(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),$e=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(i){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}(),ee=function(n){B(r,n);function r(t,i,o){var s=n.call(this)||this,l;return T(t)||!t?l={next:t??void 0,error:i??void 0,complete:o??void 0}:l=t,s.destination=new $e(l),s}return r}(be);function N(n){Ze(n)}function et(n){throw n}var tt={closed:!0,next:le,error:et,complete:le},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nt(n){return n}function it(n){return n.length===0?nt:n.length===1?n[0]:function(t){return n.reduce(function(i,o){return o(i)},t)}}var ue=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,s=at(r)?r:new ee(r,t,i);return R(function(){var l=o,c=l.operator,f=l.source;s.add(c?c.call(s,f):f?o._subscribe(s):o._trySubscribe(s))}),s},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=ce(t),new t(function(o,s){var l=new ee({next:function(c){try{r(c)}catch(f){s(f),l.unsubscribe()}},error:s,complete:o});i.subscribe(l)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[rt]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return it(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=ce(r),new r(function(i,o){var s;t.subscribe(function(l){return s=l},function(l){return o(l)},function(){return i(s)})})},n.create=function(r){return new n(r)},n}();function ce(n){var r;return(r=n??Ke.Promise)!==null&&r!==void 0?r:Promise}function ot(n){return n&&T(n.next)&&T(n.error)&&T(n.complete)}function at(n){return n&&n instanceof be||ot(n)&&me(n)}var st=he(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ge=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 pe(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new st},r.prototype.next=function(t){var i=this;R(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=K(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(t)}}catch(x){o={error:x}}finally{try{c&&!c.done&&(s=l.return)&&s.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,s=o.hasError,l=o.isStopped,c=o.observers;return s||l?ve:(this.currentObservers=null,c.push(t),new z(function(){i.currentObservers=null,$(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,s=i.thrownError,l=i.isStopped;o?t.error(s):l&&t.complete()},r.prototype.asObservable=function(){var t=new ue;return t.source=this,t},r.create=function(t,i){return new pe(t,i)},r}(ue),pe=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:ve},r}(ge),ye={now:function(){return(ye.delegate||Date).now()},delegate:void 0},lt=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=ye);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,i),s}return r.prototype.next=function(t){var i=this,o=i.isStopped,s=i._buffer,l=i._infiniteTimeWindow,c=i._timestampProvider,f=i._windowTime;o||(s.push(t),!l&&s.push(c.now()+f)),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,s=o._infiniteTimeWindow,l=o._buffer,c=l.slice(),f=0;f<c.length&&!t.closed;f+=s?1:2)t.next(c[f]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,s=t._buffer,l=t._infiniteTimeWindow,c=(l?1:2)*i;if(i<1/0&&c<s.length&&s.splice(0,s.length-c),!l){for(var f=o.now(),x=0,d=1;d<s.length&&s[d]<=f;d+=2)x=d;x&&s.splice(0,x+1)}},r}(ge);const fe=[],de={},ut=(n,r=0)=>{if(fe.indexOf(n)==-1){const t=new lt(r);de[n]=t,fe.push(n)}return de[n]};typeof window<"u"&&(window.emWidgets={topic:ut});const _e=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 ct=e.from_html('<div class="TournamentGamesTabs svelte-49hxa3"><button> </button> <button> </button></div>'),pt=e.from_html('<p class="svelte-49hxa3"> </p>'),ft=e.from_html("<div></div>"),dt=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-49hxa3"></div>'),ht=e.from_html("<p> </p>"),vt=e.from_html('<div class="TournamentGameThumbnail svelte-49hxa3"><div class="ImageContainer svelte-49hxa3"><img class="svelte-49hxa3"/> <div class="PlayButtonOverlay svelte-49hxa3"><button class="PlayGameButton svelte-49hxa3"> </button></div></div></div>'),mt=e.from_html('<span class="PaginationButton Elipsis svelte-49hxa3">...</span>'),bt=e.from_html("<button> </button>"),gt=e.from_html('<div><button class="PaginationButton svelte-49hxa3"> </button> <div class="PageNumberWrapper svelte-49hxa3"></div> <button class="PaginationButton svelte-49hxa3"> </button></div>'),yt=e.from_html('<div class="PaginationSkeleton svelte-49hxa3"><div class="PaginationSkeletonButton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationNumberSkeleton svelte-49hxa3"></div> <div class="PaginationSkeletonButton svelte-49hxa3"></div></div>'),_t=e.from_html('<div class="TournamentGamesWrapper svelte-49hxa3"><div class="GamesDescription svelte-49hxa3"><p class="GamesDescriptionTitle svelte-49hxa3"> </p> <p class="GamesDescriptionSubTitle svelte-49hxa3"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const xt={hash:"svelte-49hxa3",code:`.svelte-49hxa3,
|
|
17
|
-
.svelte-49hxa3::before,
|
|
18
|
-
.svelte-49hxa3::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-49hxa3 {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-49hxa3) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-49hxa3) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-49hxa3 {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-49hxa3) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-49hxa3) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-49hxa3 {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-49hxa3 {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-49hxa3 {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-49hxa3) {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-49hxa3-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-49hxa3) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-49hxa3) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-49hxa3) {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-49hxa3) {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-49hxa3 {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-49hxa3) {display:flex;gap:3px;}.PaginationButton:where(.svelte-49hxa3) {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-49hxa3 {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-49hxa3 {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-49hxa3) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
-
animation: svelte-49hxa3-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-49hxa3) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
-
animation: svelte-49hxa3-pulse 1s infinite;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-49hxa3-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-49hxa3 {width:fit-content;}.PaginationWrapper.svelte-49hxa3, .PaginationSkeleton.svelte-49hxa3 {justify-content:end;gap:10px;}.PaginationButton.svelte-49hxa3 {min-width:75px;}.PaginationSkeleton.svelte-49hxa3 {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-49hxa3) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-49hxa3) {width:35px;}}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (max-width: 475px) {.TournamentGamesContainer.svelte-49hxa3 {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-49hxa3 {& .PaginationButton:where(.svelte-49hxa3) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-49hxa3 {font-size:12px;}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 380px) {.TournamentGamesContainer.svelte-49hxa3 {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media (min-width: 1500px) {.TournamentGamesContainer.svelte-49hxa3 {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
|
|
51
|
-
}.Hidden.svelte-49hxa3 {display:none;}`};function xe(n,r){e.push(r,!0),e.append_styles(n,xt);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),s=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),f=e.prop(r,"session"),x=e.prop(r,"tournamentid"),d=e.prop(r,"gamesLimit",7,6),P=e.prop(r,"totalGames"),k=e.prop(r,"platformProp",7,null),g=e.prop(r,"tournamentMetadata"),A=e.prop(r,"translationurl");e.registerTranslations(Xe.TRANSLATIONS$1),e.setLocale(c());const b=()=>{e.setLocale(c())};e.user_pre_effect(()=>{A()&&e.loadTranslations(A())}),e.user_effect(()=>{b()});let F=e.state(e.proxy(s()||[])),I=e.state(!1),y=e.state(0),M=e.state(void 0),C=e.state(!0);const we=e.isServer()?k()??"dk":_e(window.navigator.userAgent),U=async()=>{if(!H.has(e.get(W))){e.set(I,!0);try{const a=await e.fetchTournament({endpoint:l(),language:c(),platform:we,session:f(),tournamentid:x(),filterById:!0,gamesLimit:d(),gamesOffset:e.get(y)});e.set(F,a?.games?.items,!0),H.set(e.get(W),e.get(F)),e.get(C)||e.set(C,!0)}catch(a){console.log(a)}finally{e.set(I,!1)}}},Se=()=>{const a=Math.ceil(P()/d()),u=Math.floor(e.get(y)/d())+1;if(a<=5)return Array.from({length:a},(h,m)=>m+1);const p=[];return p.push(1),u<=3?(p.push(2,3),p.push("..."),p.push(a)):u>=a-2?(p.push("..."),p.push(a-2,a-1,a)):(p.push("..."),p.push(u-1,u,u+1),p.push("..."),p.push(a)),p},Pe=()=>{e.get(y)<P()&&(e.set(y,e.get(y)+d()),U())},Te=()=>{e.get(y)!==0&&(e.set(y,e.get(y)-d()),U())},ke=a=>{e.set(y,(a-1)*d()),U()},Ee=e.user_derived(Se),W=e.user_derived(()=>Math.floor(e.get(y)/d())+1);let H=new Map([[1,s()]]),Ge=e.user_derived(()=>H.get(e.get(W))??[]),E=e.state("casino");const Ae=()=>{if(!g())return;const a=g().sports?.rules;let u;if(a)try{u=JSON.parse(a),e.set(M,u[c()]||u["*"],!0)}catch(p){console.log(p),e.set(M,`${t()("sportsRulesParseError")}`)}},Oe=a=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:a.launchUrl,id:a.gameId,thumbnail:a.thumbnail,name:a.name},window.location.href)};e.user_effect(()=>{Object.keys(g()).length!==0&&Ae()});var je={get initialGames(){return s()},set initialGames(a){s(a),e.flushSync()},get endpoint(){return l()},set endpoint(a){l(a),e.flushSync()},get language(){return c()},set language(a="en"){c(a),e.flushSync()},get session(){return f()},set session(a){f(a),e.flushSync()},get tournamentid(){return x()},set tournamentid(a){x(a),e.flushSync()},get gamesLimit(){return d()},set gamesLimit(a=6){d(a),e.flushSync()},get totalGames(){return P()},set totalGames(a){P(a),e.flushSync()},get platformProp(){return k()},set platformProp(a=null){k(a),e.flushSync()},get tournamentMetadata(){return g()},set tournamentMetadata(a){g(a),e.flushSync()},get translationurl(){return A()},set translationurl(a){A(a),e.flushSync()}},Y=_t(),q=e.child(Y),te=e.child(q),Be=e.only_child(te,!0),Ie=e.sibling(te,2),Me=e.only_child(Ie,!0);e.reset(q);var re=e.sibling(q,2);{var Ce=a=>{var u=ct(),p=e.child(u);let h;var m=e.only_child(p,!0),v=e.sibling(p,2);let _;var w=e.only_child(v,!0);e.reset(u),e.template_effect((G,S)=>{h=e.set_class(p,1,"Tab svelte-49hxa3",null,h,{Active:e.get(E)==="casino"}),e.set_text(m,G),_=e.set_class(v,1,"Tab svelte-49hxa3",null,_,{Active:e.get(E)==="sports"}),e.set_text(w,S)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",p,()=>e.set(E,"casino")),e.delegated("click",v,()=>e.set(E,"sports")),e.append(a,u)},We=e.user_derived(()=>Object.keys(g()).length!==0);e.if_block(re,a=>{e.get(We)&&a(Ce)})}var ne=e.sibling(re,2);{var Le=a=>{var u=ft();let p;e.each(u,21,()=>e.get(M),e.index,(h,m)=>{var v=pt(),_=e.only_child(v);e.template_effect(w=>e.set_text(_,`${e.get(m).rule??""} ${w??""}`),[()=>t()("contribution")]),e.append(h,v)}),e.reset(u),e.template_effect(()=>p=e.set_class(u,1,"TournamentRulesWrapper svelte-49hxa3",null,p,{Hidden:e.get(E)==="casino"})),e.append(a,u)};e.if_block(ne,a=>{e.get(M)&&a(Le)})}var L=e.sibling(ne,2);let ie;var De=e.child(L);{var Ne=a=>{var u=e.comment(),p=e.first_child(u);e.each(p,17,()=>Array(d()),e.index,(h,m,v,_)=>{var w=dt();e.append(h,w)}),e.append(a,u)},Re=a=>{var u=ht();let p;var h=e.only_child(u,!0);e.template_effect(m=>{p=e.set_class(u,1,"NoGamesAvailable svelte-49hxa3",null,p,{Hidden:e.get(E)==="sports"}),e.set_text(h,m)},[()=>t()("noAvailableGames")]),e.append(a,u)},ze=a=>{var u=e.comment(),p=e.first_child(u);e.each(p,17,()=>e.get(Ge),e.index,(h,m)=>{var v=vt(),_=e.child(v),w=e.child(_),G=e.sibling(w,2),S=e.child(G),D=e.only_child(S,!0);e.reset(G),e.reset(_),e.reset(v),e.template_effect(J=>{e.set_attribute(w,"src",`https:${e.get(m).thumbnail}`),e.set_attribute(w,"alt",e.get(m).name),e.set_text(D,J)},[()=>t()("play")]),e.delegated("click",v,()=>Oe(e.get(m))),e.append(h,v)}),e.append(a,u)};e.if_block(De,a=>{e.get(I)?a(Ne):!e.get(I)&&e.get(F)?.length===0?a(Re,1):a(ze,-1)})}e.reset(L);var oe=e.sibling(L,2);{var Fe=a=>{var u=gt();let p;var h=e.child(u),m=e.only_child(h,!0),v=e.sibling(h,2);e.each(v,21,()=>e.get(Ee),e.index,(G,S)=>{var D=e.comment(),J=e.first_child(D);{var qe=O=>{var j=mt();e.append(O,j)},Je=O=>{var j=bt();let ae;var Ve=e.only_child(j,!0);e.template_effect(()=>{ae=e.set_class(j,1,"PaginationButton Number svelte-49hxa3",null,ae,{Active:e.get(S)===e.get(W)}),e.set_text(Ve,e.get(S))}),e.delegated("click",j,()=>ke(e.get(S))),e.append(O,j)};e.if_block(J,O=>{typeof e.get(S)!="number"?O(qe):O(Je,-1)})}e.append(G,D)}),e.reset(v);var _=e.sibling(v,2),w=e.only_child(_,!0);e.reset(u),e.template_effect((G,S)=>{p=e.set_class(u,1,"PaginationWrapper svelte-49hxa3",null,p,{Hidden:e.get(E)==="sports"}),h.disabled=e.get(y)===0,e.set_text(m,G),_.disabled=e.get(y)>=P()-d(),e.set_text(w,S)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",h,Te),e.delegated("click",_,Pe),e.append(a,u)};e.if_block(oe,a=>{e.get(C)&&P()>d()&&a(Fe)})}var Ue=e.sibling(oe,2);{var He=a=>{var u=yt();e.append(a,u)};e.if_block(Ue,a=>{e.get(C)||a(He)})}e.reset(Y),e.template_effect((a,u)=>{e.set_text(Be,a),e.set_text(Me,u),ie=e.set_class(L,1,"TournamentGamesContainer svelte-49hxa3",null,ie,{Hidden:e.get(E)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Ye=e.pop(je);return o(),Ye}e.delegate(["click"]);e.create_custom_element(xe,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});exports.TournamentGames=xe;exports.getDevice=_e;
|