@everymatrix/tournament-details-page 0.1.27 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/components/StatusBadge-BVcNxptf.cjs +8 -0
  2. package/components/StatusBadge-BnPuCJnO.js +7097 -0
  3. package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
  4. package/components/StatusBadge-DKawANSc.js +7010 -0
  5. package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
  6. package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
  7. package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
  8. package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
  9. package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
  10. package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
  11. package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
  12. package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
  13. package/components/TournamentGames-B6UkeuiX.js +821 -0
  14. package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
  15. package/components/TournamentGames-DO01jBJs.js +799 -0
  16. package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
  17. package/components/TournamentImage-BeCXYKda.cjs +5 -0
  18. package/components/TournamentImage-BxaewAcW.js +177 -0
  19. package/components/TournamentImage-Cp5BEQ0s.js +180 -0
  20. package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
  21. package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
  22. package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
  23. package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
  24. package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
  25. package/components/TournamentRules-BbxvSZdU.cjs +6 -0
  26. package/components/TournamentRules-Bsxb9Asj.js +144 -0
  27. package/components/TournamentRules-DX1CVsV7.cjs +6 -0
  28. package/components/TournamentRules-SECANCVS.js +149 -0
  29. package/components/TournamentSummary-Ardxi8yJ.js +159 -0
  30. package/components/TournamentSummary-BGk055-K.cjs +3 -0
  31. package/components/TournamentSummary-CizBbtzd.cjs +3 -0
  32. package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
  33. package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
  34. package/components/TournamentTabs-DpLpOYtB.js +57 -0
  35. package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
  36. package/components/TournamentTabs-FzkOjNA3.js +72 -0
  37. package/components/translations-BQS5XycD.js +146 -0
  38. package/components/translations-BSe2qToO.cjs +1 -0
  39. package/components/translations-DPzojb4V.js +146 -0
  40. package/components/translations-FufS-X5l.cjs +1 -0
  41. package/es2015/tournament-details-page.cjs +1 -1
  42. package/es2015/tournament-details-page.js +2 -2
  43. package/esnext/tournament-details-page.cjs +1 -1
  44. package/esnext/tournament-details-page.js +2 -2
  45. package/package.json +1 -1
  46. package/components/TournamentDetails-BZghU11I.js +0 -436
  47. package/components/TournamentDetails-C_DjsiRO.js +0 -435
  48. package/components/TournamentDetails-DJkyA6Vc.cjs +0 -3
  49. package/components/TournamentDetails-_CAwLQSz.cjs +0 -3
  50. package/components/TournamentDetailsPage-6wv_wZG8.js +0 -715
  51. package/components/TournamentDetailsPage-B3pa9l3K.cjs +0 -36
  52. package/components/TournamentDetailsPage-D4d6LK8N.js +0 -736
  53. package/components/TournamentDetailsPage-Wti3EW2y.cjs +0 -36
  54. package/components/TournamentGames-BitHaGk1.cjs +0 -51
  55. package/components/TournamentGames-CPAgktBV.cjs +0 -51
  56. package/components/TournamentGames-D0Vx9asc.js +0 -1025
  57. package/components/TournamentGames-D4Zol0Yj.js +0 -999
  58. package/components/TournamentLeaderboard-BH1mlCiD.cjs +0 -46
  59. package/components/TournamentLeaderboard-BefYxI8Y.cjs +0 -46
  60. package/components/TournamentLeaderboard-CpJXePmH.js +0 -8055
  61. package/components/TournamentLeaderboard-DKFSvo2X.js +0 -8164
@@ -0,0 +1,34 @@
1
+ var ce=(n,r,e)=>new Promise((o,i)=>{var a=c=>{try{u(e.next(c))}catch(m){i(m)}},l=c=>{try{u(e.throw(c))}catch(m){i(m)}},u=c=>c.done?o(c.value):Promise.resolve(c.value).then(a,l);u((e=e.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const t=require("./StatusBadge-BVcNxptf.cjs"),C=require("./TournamentLeaderboard-D1mX3sal.cjs"),Je=require("./translations-FufS-X5l.cjs"),be=(n,r=!1)=>{if(!n)return;const e=parseFloat(getComputedStyle(n).scrollMarginTop)||0;if(r&&n.getBoundingClientRect().top>=e)return;const o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;n.scrollIntoView({behavior:o?"auto":"smooth",block:"start"})};/*! *****************************************************************************
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(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},X(n,r)};function R(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 e(){this.constructor=n}n.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function K(n){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&n[r],o=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Q(n,r){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var o=e.call(n),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){l={error:u}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(l)throw l.error}}return a}function $(n,r,e){if(arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return n.concat(a||r)}function S(n){return typeof n=="function"}function ye(n){var r=function(o){Error.call(o),o.stack=new Error().stack},e=n(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V=ye(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
15
+ `+e.map(function(o,i){return i+1+") "+o.toString()}).join(`
16
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function ee(n,r){if(n){var e=n.indexOf(r);0<=e&&n.splice(e,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,e,o,i,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=K(l),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(d){r={error:d}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(r)throw r.error}}else l.remove(this);var b=this.initialTeardown;if(S(b))try{b()}catch(d){a=d instanceof V?d.errors:[d]}var j=this._finalizers;if(j){this._finalizers=null;try{for(var E=K(j),y=E.next();!y.done;y=E.next()){var k=y.value;try{pe(k)}catch(d){a=a!=null?a:[],d instanceof V?a=$($([],Q(a)),Q(d.errors)):a.push(d)}}}catch(d){o={error:d}}finally{try{y&&!y.done&&(i=E.return)&&i.call(E)}finally{if(o)throw o.error}}}if(a)throw new V(a)}},n.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)pe(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},n.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},n.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},n.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&ee(e,r)},n.prototype.remove=function(r){var e=this._finalizers;e&&ee(e,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),xe=F.EMPTY;function we(n){return n instanceof F||n&&"closed"in n&&S(n.remove)&&S(n.add)&&S(n.unsubscribe)}function pe(n){S(n)?n():n.unsubscribe()}var Ne={Promise:void 0},Ve={setTimeout:function(n,r){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];return setTimeout.apply(void 0,$([n,r],Q(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Xe(n){Ve.setTimeout(function(){throw n})}function fe(){}function W(n){n()}var Se=function(n){R(r,n);function r(e){var o=n.call(this)||this;return o.isStopped=!1,e?(o.destination=e,we(e)&&e.add(o)):o.destination=$e,o}return r.create=function(e,o,i){return new te(e,o,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},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(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(F),Ke=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(o){U(o)}},n.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(o){U(o)}else U(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){U(e)}},n}(),te=function(n){R(r,n);function r(e,o,i){var a=n.call(this)||this,l;return S(e)||!e?l={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0}:l=e,a.destination=new Ke(l),a}return r}(Se);function U(n){Xe(n)}function Qe(n){throw n}var $e={closed:!0,next:fe,error:Qe,complete:fe},et=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tt(n){return n}function rt(n){return n.length===0?tt:n.length===1?n[0]:function(e){return n.reduce(function(o,i){return i(o)},e)}}var he=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var e=new n;return e.source=this,e.operator=r,e},n.prototype.subscribe=function(r,e,o){var i=this,a=ot(r)?r:new te(r,e,o);return W(function(){var l=i,u=l.operator,c=l.source;a.add(u?u.call(a,c):c?i._subscribe(a):i._trySubscribe(a))}),a},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},n.prototype.forEach=function(r,e){var o=this;return e=de(e),new e(function(i,a){var l=new te({next:function(u){try{r(u)}catch(c){a(c),l.unsubscribe()}},error:a,complete:i});o.subscribe(l)})},n.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},n.prototype[et]=function(){return this},n.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return rt(r)(this)},n.prototype.toPromise=function(r){var e=this;return r=de(r),new r(function(o,i){var a;e.subscribe(function(l){return a=l},function(l){return i(l)},function(){return o(a)})})},n.create=function(r){return new n(r)},n}();function de(n){var r;return(r=n!=null?n:Ne.Promise)!==null&&r!==void 0?r:Promise}function nt(n){return n&&S(n.next)&&S(n.error)&&S(n.complete)}function ot(n){return n&&n instanceof Se||nt(n)&&we(n)}var it=ye(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ee=function(n){R(r,n);function r(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var o=new ve(this,this);return o.operator=e,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new it},r.prototype.next=function(e){var o=this;W(function(){var i,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=K(o.currentObservers),u=l.next();!u.done;u=l.next()){var c=u.value;c.next(e)}}catch(m){i={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}}})},r.prototype.error=function(e){var o=this;W(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var i=o.observers;i.length;)i.shift().error(e)}})},r.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var o=this,i=this,a=i.hasError,l=i.isStopped,u=i.observers;return a||l?xe:(this.currentObservers=null,u.push(e),new F(function(){o.currentObservers=null,ee(u,e)}))},r.prototype._checkFinalizedStatuses=function(e){var o=this,i=o.hasError,a=o.thrownError,l=o.isStopped;i?e.error(a):l&&e.complete()},r.prototype.asObservable=function(){var e=new he;return e.source=this,e},r.create=function(e,o){return new ve(e,o)},r}(he),ve=function(n){R(r,n);function r(e,o){var i=n.call(this)||this;return i.destination=e,i.source=o,i}return r.prototype.next=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,e)},r.prototype.error=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.call(o,e)},r.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},r.prototype._subscribe=function(e){var o,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&i!==void 0?i:xe},r}(Ee),Te={now:function(){return(Te.delegate||Date).now()},delegate:void 0},at=function(n){R(r,n);function r(e,o,i){e===void 0&&(e=1/0),o===void 0&&(o=1/0),i===void 0&&(i=Te);var a=n.call(this)||this;return a._bufferSize=e,a._windowTime=o,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=o===1/0,a._bufferSize=Math.max(1,e),a._windowTime=Math.max(1,o),a}return r.prototype.next=function(e){var o=this,i=o.isStopped,a=o._buffer,l=o._infiniteTimeWindow,u=o._timestampProvider,c=o._windowTime;i||(a.push(e),!l&&a.push(u.now()+c)),this._trimBuffer(),n.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),i=this,a=i._infiniteTimeWindow,l=i._buffer,u=l.slice(),c=0;c<u.length&&!e.closed;c+=a?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),o},r.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,i=e._timestampProvider,a=e._buffer,l=e._infiniteTimeWindow,u=(l?1:2)*o;if(o<1/0&&u<a.length&&a.splice(0,a.length-u),!l){for(var c=i.now(),m=0,b=1;b<a.length&&a[b]<=c;b+=2)m=b;m&&a.splice(0,m+1)}},r}(Ee);const me=[],ge={},st=(n,r=0)=>{if(me.indexOf(n)==-1){const e=new at(r);ge[n]=e,me.push(n)}return ge[n]};typeof window!="undefined"&&(window.emWidgets={topic:st});const Pe=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 lt=t.from_html('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'),_e=t.from_html('<p class="tournament-games__empty svelte-49hxa3"> </p>'),ut=t.from_html('<span class="tournament-games__badge svelte-49hxa3"> </span>'),ct=t.from_html('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'),pt=t.from_html('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'),ft=t.from_html('<div class="tournament-games__sentinel svelte-49hxa3"></div>'),ht=t.from_html('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>',1),dt=t.from_html('<li class="svelte-49hxa3"> </li>'),vt=t.from_html('<ul class="tournament-games__events svelte-49hxa3"></ul>'),mt=t.from_html('<div class="tournament-games svelte-49hxa3"><!> <!></div>');const gt={hash:"svelte-49hxa3",code:`.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
17
+
18
+ @media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
19
+ }}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
20
+ animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {margin:0;padding:32px 0;text-align:center;}}
21
+
22
+ @keyframes svelte-49hxa3-tournament-games-pulse {
23
+ 50% {
24
+ opacity: 0.5;
25
+ }
26
+ }
27
+
28
+ @media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
29
+ .tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
30
+ }
31
+
32
+ @media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
33
+ animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
34
+ }`};function Oe(n,r){var ae,se,le;t.push(r,!0),t.append_styles(n,gt);const e=()=>t.store_get(t.$format,"$_",o),[o,i]=t.setup_stores(),a=t.prop(r,"initialGames",7),l=t.prop(r,"endpoint",7),u=t.prop(r,"language",7,"en"),c=t.prop(r,"session",7),m=t.prop(r,"tournamentid",7),b=t.prop(r,"totalGames",7),j=t.prop(r,"platformProp",7,null),E=t.prop(r,"tournamentMetadata",7),y=t.prop(r,"translationurl",7),k=t.prop(r,"hasCasino",7,!0),d=t.prop(r,"hasSports",7,!1);t.registerTranslations(Je.TRANSLATIONS$1),t.setLocale(u());const ke=()=>{t.setLocale(u())};t.user_pre_effect(()=>{y()&&t.loadTranslations(y())}),t.user_effect(()=>{ke()});const Ae=C.isServer()?(ae=j())!=null?ae:"dk":Pe(window.navigator.userAgent);let T=t.state(t.proxy(a()||[])),z=t.state(t.proxy((le=b())!=null?le:((se=a())==null?void 0:se.length)||0)),D=t.state(!1),A=t.state(t.proxy(k()||!d()?"casino":"sports")),Y=t.state(null);const re=s=>{s!==t.get(A)&&(t.set(A,s,!0),t.tick().then(()=>be(t.get(Y),!0)))},ne=t.user_derived(()=>k()&&d()),Me=t.user_derived(()=>t.get(ne)?t.get(A)==="casino":!d()||k()),q=t.user_derived(()=>t.get(T).length<t.get(z)),je=t.user_derived(()=>Math.min(Math.max(t.get(z)-t.get(T).length,0),C.GAMES_PAGE_SIZE)),oe=t.user_derived(()=>{var p,f;const s=(f=(p=E())==null?void 0:p.sports)==null?void 0:f.rules;if(!s)return[];try{const h=JSON.parse(s);return h[u()]||h["*"]||[]}catch(h){return console.log(h),[]}}),Ie=()=>ce(this,null,function*(){var s,p,f,h;if(!(!t.get(q)||t.get(D))){t.set(D,!0);try{const v=yield C.fetchTournament({endpoint:l(),language:u(),platform:Ae,session:c(),tournamentid:m(),filterById:!0,gamesLimit:C.GAMES_PAGE_SIZE,gamesOffset:t.get(T).length});t.set(T,[...t.get(T),...(p=(s=v==null?void 0:v.games)==null?void 0:s.items)!=null?p:[]],!0),t.set(z,(h=(f=v==null?void 0:v.games)==null?void 0:f.total)!=null?h:t.get(z),!0)}catch(v){console.log(v)}finally{t.set(D,!1)}}}),H=(s,p)=>{const f=new IntersectionObserver(h=>{h.some(v=>v.isIntersecting)&&p()},{rootMargin:C.GAMES_ROOT_MARGIN});return f.observe(s),{destroy(){f.disconnect()}}},Ge=s=>{C.sendPlayGame(s,m())};var Ce={get initialGames(){return a()},set initialGames(s){a(s),t.flushSync()},get endpoint(){return l()},set endpoint(s){l(s),t.flushSync()},get language(){return u()},set language(s="en"){u(s),t.flushSync()},get session(){return c()},set session(s){c(s),t.flushSync()},get tournamentid(){return m()},set tournamentid(s){m(s),t.flushSync()},get totalGames(){return b()},set totalGames(s){b(s),t.flushSync()},get platformProp(){return j()},set platformProp(s=null){j(s),t.flushSync()},get tournamentMetadata(){return E()},set tournamentMetadata(s){E(s),t.flushSync()},get translationurl(){return y()},set translationurl(s){y(s),t.flushSync()},get hasCasino(){return k()},set hasCasino(s=!0){k(s),t.flushSync()},get hasSports(){return d()},set hasSports(s=!1){d(s),t.flushSync()}},B=mt(),ie=t.child(B);{var Le=s=>{var p=lt(),f=t.child(p);let h;var v=t.only_child(f,!0),g=t.sibling(f,2);let _;var x=t.only_child(g,!0);t.reset(p),t.template_effect((I,Z)=>{h=t.set_class(f,1,"tournament-games__tab svelte-49hxa3",null,h,{active:t.get(A)==="casino"}),t.set_attribute(f,"aria-selected",t.get(A)==="casino"),t.set_text(v,I),_=t.set_class(g,1,"tournament-games__tab svelte-49hxa3",null,_,{active:t.get(A)==="sports"}),t.set_attribute(g,"aria-selected",t.get(A)==="sports"),t.set_text(x,Z)},[()=>e()("casinoTab"),()=>e()("sportsTab")]),t.delegated("click",f,()=>re("casino")),t.delegated("click",g,()=>re("sports")),t.append(s,p)};t.if_block(ie,s=>{t.get(ne)&&s(Le)})}var Re=t.sibling(ie,2);{var ze=s=>{var p=t.comment(),f=t.first_child(p);{var h=g=>{var _=_e(),x=t.only_child(_,!0);t.template_effect(I=>t.set_text(x,I),[()=>e()("noAvailableGames")]),t.append(g,_)},v=g=>{var _=ht(),x=t.first_child(_),I=t.child(x);t.each(I,17,()=>t.get(T),t.index,(M,w)=>{var P=ct(),G=t.child(P),O=t.sibling(G,2),J=t.child(O),N=t.only_child(J,!0);t.reset(O);var Ye=t.sibling(O,2);{var qe=L=>{var ue=ut(),He=t.only_child(ue,!0);t.template_effect(Ze=>t.set_text(He,Ze),[()=>e()("newBadge")]),t.append(L,ue)};t.if_block(Ye,L=>{t.get(w).isNew&&L(qe)})}t.reset(P),t.template_effect(L=>{t.set_attribute(P,"title",t.get(w).name),t.set_attribute(G,"src",`https:${t.get(w).thumbnail}`),t.set_attribute(G,"alt",t.get(w).name),t.set_text(N,L)},[()=>e()("play")]),t.delegated("click",P,()=>Ge(t.get(w))),t.append(M,P)});var Z=t.sibling(I,2);t.each(Z,17,()=>Array(t.get(je)),t.index,(M,w,P,G)=>{var O=pt();t.append(M,O)}),t.reset(x);var Fe=t.sibling(x,2);{var De=M=>{var w=t.comment(),P=t.first_child(w);t.key(P,()=>t.get(T).length,G=>{var O=ft();t.action(O,(J,N)=>H==null?void 0:H(J,N),()=>Ie),t.append(G,O)}),t.append(M,w)};t.if_block(Fe,M=>{t.get(q)&&M(De)})}t.append(g,_)};t.if_block(f,g=>{t.get(T).length===0&&!t.get(q)?g(h):g(v,-1)})}t.append(s,p)},Be=s=>{var p=_e(),f=t.only_child(p,!0);t.template_effect(h=>t.set_text(f,h),[()=>e()("noAvailableEvents")]),t.append(s,p)},Ue=s=>{var p=vt();t.each(p,21,()=>t.get(oe),t.index,(f,h)=>{var v=dt(),g=t.only_child(v);t.template_effect(_=>{var x;return t.set_text(g,`${(x=t.get(h).rule)!=null?x:""} ${_!=null?_:""}`)},[()=>e()("contribution")]),t.append(f,v)}),t.reset(p),t.append(s,p)};t.if_block(Re,s=>{t.get(Me)?s(ze):t.get(oe).length===0?s(Be,1):s(Ue,-1)})}t.reset(B),t.bind_this(B,s=>t.set(Y,s),()=>t.get(Y)),t.append(n,B);var We=t.pop(Ce);return i(),We}t.delegate(["click"]);t.create_custom_element(Oe,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{},hasCasino:{},hasSports:{}},[],[],{mode:"open"});exports.TournamentGames=Oe;exports.getDevice=Pe;exports.scrollToSection=be;