@everymatrix/casino-tournaments-list-controller 1.98.11 → 1.98.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsListController-DU-wBQ6s.js → CasinoTournamentsListController-Cf0oW0Oe.js} +1 -1
- package/components/{CasinoTournamentsListController-8abNLUmc.js → CasinoTournamentsListController-tsNVvrbK.js} +1 -1
- package/components/{CasinoTournamentsListController-ChZCA8s1.cjs → CasinoTournamentsListController-vOqoDzBA.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-CVJEECYo.js → CasinoTournamentsThumbnail-DIAeUyv2.js} +223 -155
- package/components/{CasinoTournamentsThumbnail-BV0LbN2E.cjs → CasinoTournamentsThumbnail-DQ4p54JY.cjs} +3 -3
- package/components/{CasinoTournamentsThumbnail-BeGvrf7Z.js → CasinoTournamentsThumbnail-SwYCgViR.js} +230 -162
- package/components/{CasinoTournamentsThumbnailController-dwBkEvek.js → CasinoTournamentsThumbnailController-BRnpl_Mf.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-BBhAWZSh.js → CasinoTournamentsThumbnailController-CQ0gp86n.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-B_t_k14i.cjs → CasinoTournamentsThumbnailController-DTJwQUnV.cjs} +2 -2
- package/components/CasinoTournamentsThumbnailDuration-CkyiL4UU.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-BxMu7jwh.js → CasinoTournamentsThumbnailDuration-D6fM5hd7.js} +47 -31
- package/components/{CasinoTournamentsThumbnailDuration-Wzy7eqUi.js → CasinoTournamentsThumbnailDuration-DBnjtu3f.js} +58 -42
- package/components/CasinoTournamentsThumbnailGamesSlider-DnLxcrbn.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-DFkBgWsW.js → CasinoTournamentsThumbnailGamesSlider-U7_5U42C.js} +8 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-DXxAqj-s.js → CasinoTournamentsThumbnailGamesSlider-jiNcJNbp.js} +24 -18
- package/components/CasinoTournamentsThumbnailPrizes-7xA4VjF2.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailPrizes-rl18zrEQ.js → CasinoTournamentsThumbnailPrizes-BKaV-mIU.js} +102 -92
- package/components/{CasinoTournamentsThumbnailPrizes-Cu_NWe7L.js → CasinoTournamentsThumbnailPrizes-BS3lQo68.js} +86 -76
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailDuration-2R1e9PUS.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-CPwAyf6P.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-DUmdUpW_.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as pe, a as vt, b as _t, S as kt, i as St, f as v, s as Tt, c as Ft, d as Et, n as re, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as jt, p as zt, q as Ct, r as ke, t as Pt, u as O, v as B, w as Bt, x as U, y as Se, z as x, A as Ot, B as xt, C as Dt, D as At } from "./CasinoTournamentsListController-
|
|
1
|
+
import { $ as pe, a as vt, b as _t, S as kt, i as St, f as v, s as Tt, c as Ft, d as Et, n as re, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as jt, p as zt, q as Ct, r as ke, t as Pt, u as O, v as B, w as Bt, x as U, y as Se, z as x, A as Ot, B as xt, C as Dt, D as At } from "./CasinoTournamentsListController-Cf0oW0Oe.js";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -651,7 +651,7 @@ if (typeof window < "u") {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
654
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-SwYCgViR.js").then(({ default: t }) => {
|
|
655
655
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
656
656
|
});
|
|
657
657
|
}
|
|
@@ -667,7 +667,7 @@ if (typeof window < "u") {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
670
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-DBnjtu3f.js").then(({ default: t }) => {
|
|
671
671
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
672
672
|
"casino-tournaments-thumbnail-duration",
|
|
673
673
|
t.element
|
|
@@ -686,7 +686,7 @@ if (typeof window < "u") {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
689
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BS3lQo68.js").then(({ default: t }) => {
|
|
690
690
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
691
691
|
});
|
|
692
692
|
}
|
|
@@ -702,7 +702,7 @@ if (typeof window < "u") {
|
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
705
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-jiNcJNbp.js").then(
|
|
706
706
|
({ default: t }) => {
|
|
707
707
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
708
708
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -14,7 +14,7 @@ var he = (r, t, e) => new Promise((n, i) => {
|
|
|
14
14
|
}, l = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(o, s);
|
|
15
15
|
l((e = e.apply(r, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as ge, a as kt, b as St, S as Tt, i as Ft, s as Et, f as v, c as jt, n as re, d as w, e as u, g as p, h as y, j as S, k as T, l as j, m as zt, o as Pt, p as Ct, q as Se, r as Bt, t as O, u as B, v as Ot, w as U, x as Te, y as x, z as xt, A as At, B as Dt, C as Lt, D as It } from "./CasinoTournamentsListController-
|
|
17
|
+
import { $ as ge, a as kt, b as St, S as Tt, i as Ft, s as Et, f as v, c as jt, n as re, d as w, e as u, g as p, h as y, j as S, k as T, l as j, m as zt, o as Pt, p as Ct, q as Se, r as Bt, t as O, u as B, v as Ot, w as U, x as Te, y as x, z as xt, A as At, B as Dt, C as Lt, D as It } from "./CasinoTournamentsListController-tsNVvrbK.js";
|
|
18
18
|
/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
@@ -667,7 +667,7 @@ if (typeof window != "undefined") {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
670
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-DIAeUyv2.js").then(({ default: t }) => {
|
|
671
671
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
672
672
|
});
|
|
673
673
|
}
|
|
@@ -683,7 +683,7 @@ if (typeof window != "undefined") {
|
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
685
|
};
|
|
686
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
686
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-D6fM5hd7.js").then(({ default: t }) => {
|
|
687
687
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
688
688
|
"casino-tournaments-thumbnail-duration",
|
|
689
689
|
t.element
|
|
@@ -702,7 +702,7 @@ if (typeof window != "undefined") {
|
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
705
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BKaV-mIU.js").then(({ default: t }) => {
|
|
706
706
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
707
707
|
});
|
|
708
708
|
}
|
|
@@ -718,7 +718,7 @@ if (typeof window != "undefined") {
|
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
};
|
|
721
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
721
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-U7_5U42C.js").then(
|
|
722
722
|
({ default: t }) => {
|
|
723
723
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
724
724
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ne=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";var ne=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsListController-vOqoDzBA.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -13,4 +13,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */var ie=function(i,t){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},ie(i,t)};function C(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ie(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function oe(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(a)throw a.error}}return s}function ae(i,t,e){if(arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||t)}function S(i){return typeof i=="function"}function He(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var re=He(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
15
15
|
`+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function le(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var N=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=oe(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof re?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=oe(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{Pe(m)}catch(_){s=s!=null?s:[],_ instanceof re?s=ae(ae([],se(s)),se(_.errors)):s.push(_)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(s)throw new re(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&le(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&le(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ge=N.EMPTY;function Ne(i){return i instanceof N||i&&"closed"in i&&S(i.remove)&&S(i.add)&&S(i.unsubscribe)}function Pe(i){S(i)?i():i.unsubscribe()}var at={Promise:void 0},lt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ae([i,t],se(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ut(i){lt.setTimeout(function(){throw i})}function Ce(){}function G(i){i()}var Xe=function(i){C(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ne(e)&&e.add(r)):r.destination=dt,r}return t.create=function(e,r,o){return new ue(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(N),ct=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){H(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){H(r)}else H(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},i}(),ue=function(i){C(t,i);function t(e,r,o){var s=i.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new ct(a),s}return t}(Xe);function H(i){ut(i)}function ft(i){throw i}var dt={closed:!0,next:Ce,error:ft,complete:Ce},mt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ht(i){return i}function pt(i){return i.length===0?ht:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Be=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=gt(t)?t:new ue(t,e,r);return G(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=xe(e),new e(function(o,s){var a=new ue({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[mt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return pt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function xe(i){var t;return(t=i!=null?i:at.Promise)!==null&&t!==void 0?t:Promise}function _t(i){return i&&S(i.next)&&S(i.error)&&S(i.complete)}function gt(i){return i&&i instanceof Xe||_t(i)&&Ne(i)}var bt=He(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ye=function(i){C(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Oe(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new bt},t.prototype.next=function(e){var r=this;G(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=oe(r.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;G(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;G(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Ge:(this.currentObservers=null,u.push(e),new N(function(){r.currentObservers=null,le(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Be;return e.source=this,e},t.create=function(e,r){return new Oe(e,r)},t}(Be),Oe=function(i){C(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ge},t}(Ye),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},yt=function(i){C(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ke);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,u=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*r;if(r<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Ye);const Ae=[],De={},wt=(i,t=0)=>{if(Ae.indexOf(i)==-1){const e=new yt(t);De[i]=e,Ae.push(i)}return De[i]};window.emWidgets={topic:wt};const ce=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function vt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function Le(i,t){n.addMessages(i,t)}function kt(i){n.$locale.set(i)}const Ie={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},ru:{login:"Войти",register:"Регистрация",details:"Подробности",enrolled:"Записан",join:"Участвовать",joinerror:"Произошла ошибка при регистрации на турнир, пожалуйста, попробуйте снова."},az:{login:"Daxil ol",register:"Qeydiyyat",details:"Ətraflı",enrolled:"Qeydiyyatdan keçib",join:"Qoşul",joinerror:"Turnirə qeydiyyat zamanı xəta baş verdi, zəhmət olmasa yenidən cəhd edin."},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BV0LbN2E.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-2R1e9PUS.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-DUmdUpW_.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CPwAyf6P.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function St(i){n.append_styles(i,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Tt(i){let t,e,r,o,s,a,u,c=i[26]&&Me(i);function p(m,_){if(!m[16])return zt;if(m[25]!="Closed"&&m[25]!="Closing")return jt;if(m[3]=="true")return Et}let h=p(i),f=h&&h(i),d=(i[19]||i[21])&&Je(i),g=i[4]=="true"&&We(i);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),r=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"status",i[25]),n.set_custom_element_data(e,"startdate",i[23]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"enddate",i[24]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,r,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[26]?c?c.p(m,_):(c=Me(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&2048&&n.set_custom_element_data(e,"clientstyling",m[11]),_[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",m[12]),_[0]&8192&&n.set_custom_element_data(e,"translationurl",m[13]),_[0]&33554432&&n.set_custom_element_data(e,"status",m[25]),_[0]&8388608&&n.set_custom_element_data(e,"startdate",m[23]),_[0]&256&&n.set_custom_element_data(e,"lang",m[8]),_[0]&16384&&n.set_custom_element_data(e,"mbsource",m[14]),_[0]&16777216&&n.set_custom_element_data(e,"enddate",m[24]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[19]||m[21]?d?d.p(m,_):(d=Je(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[4]=="true"?g?g.p(m,_):(g=We(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(r),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function Ft(i){let t,e,r;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),r=n.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(r,"class","TournamentButtons"),n.attr(r,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,r,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(r))}}}function Me(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[26]),n.set_custom_element_data(t,"clientstyling",i[11]),n.set_custom_element_data(t,"clientstylingurl",i[12]),n.set_custom_element_data(t,"mbsource",i[14]),n.set_custom_element_data(t,"translationurl",i[13]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[39].call(null,t,i[26])),r=!0)},p(s,a){a[0]&67108864&&n.set_custom_element_data(t,"tourid",s[26]),a[0]&2048&&n.set_custom_element_data(t,"clientstyling",s[11]),a[0]&4096&&n.set_custom_element_data(t,"clientstylingurl",s[12]),a[0]&16384&&n.set_custom_element_data(t,"mbsource",s[14]),a[0]&8192&&n.set_custom_element_data(t,"translationurl",s[13]),e&&n.is_function(e.update)&&a[0]&67108864&&e.update.call(null,s[26])},d(s){s&&n.detach(t),r=!1,o()}}}function Et(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,u){i=a,u[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(i){let t,e,r=i[3]=="true"&&Re(i);function o(u,c){return u[28]?Ct:Pt}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){r&&r.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?r?r.p(u,c):(r=Re(u),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),r&&r.d(u),a.d(u)}}}function zt(i){let t,e=i[34]("login")+"",r,o,s,a=i[34]("register")+"",u,c,p;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,f){n.insert(h,t,f),n.append(t,r),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",i[35]),n.listen(s,"click",i[36])],c=!0)},p(h,f){f[1]&8&&e!==(e=h[34]("login")+"")&&n.set_data(r,e),f[1]&8&&a!==(a=h[34]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Re(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,u){i=a,u[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Pt(i){let t,e,r,o,s;function a(p,h){return p[18]==!0?xt:Bt}let u=a(i),c=u(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[19]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&128&&e!==(e="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&128&&r!==(r="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),h[0]&524288&&(t.disabled=p[19])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function Ct(i){let t,e=i[3]=="true"&&Ue(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Ue(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Bt(i){let t,e=i[34]("join")+"",r,o,s,a,u,c,p,h;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(f,d){n.insert(f,t,d),n.append(t,r),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&8&&e!==(e=f[34]("join")+"")&&n.set_data(r,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function xt(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function Ue(i){let t,e=i[34]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&8&&e!==(e=o[34]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Je(i){let t,e=i[34]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[20]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,u){u[1]&8&&e!==(e=a[34]("joinerror")+"")&&n.set_data(r,e),u[0]&1048576&&n.set_data(s,a[20])},d(a){a&&n.detach(t)}}}function We(i){let t,e,r=i[17]&&qe();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[17]?r||(r=qe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&2048&&n.set_custom_element_data(e,"clientstyling",o[11]),s[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",o[12]),s[0]&8192&&n.set_custom_element_data(e,"translationurl",o[13]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&16384&&n.set_custom_element_data(e,"mbsource",o[14]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function qe(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Ot(i){let t,e,r,o,s,a,u;function c(f,d){return f[17]?Ft:Tt}let p=c(i),h=p(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(r,"detailsevent",i[9]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[22]),n.set_custom_element_data(r,"status",i[25]),n.set_custom_element_data(r,"startdate",i[23]),n.set_custom_element_data(r,"tourid",i[26]),n.set_custom_element_data(r,"scorecriteria",i[29]),n.set_custom_element_data(r,"minbetcount",i[30]),n.set_custom_element_data(r,"thumbnail",i[27]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[32]),n.set_custom_element_data(r,"betcountmode",i[0]),n.set_custom_element_data(r,"mbsource",i[14]),n.set_custom_element_data(r,"userenrolled",i[28]),n.set_custom_element_data(r,"clientstyling",i[11]),n.set_custom_element_data(r,"clientstylingurl",i[12]),n.set_custom_element_data(r,"translationurl",i[13]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[10]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${i[17]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,r),n.append(e,o),h.m(e,null),i[51](t)},p(f,d){d[0]&512&&n.set_custom_element_data(r,"detailsevent",f[9]),d[0]&2&&n.set_custom_element_data(r,"userid",f[1]),d[0]&4194304&&n.set_custom_element_data(r,"title",f[22]),d[0]&33554432&&n.set_custom_element_data(r,"status",f[25]),d[0]&8388608&&n.set_custom_element_data(r,"startdate",f[23]),d[0]&67108864&&n.set_custom_element_data(r,"tourid",f[26]),d[0]&536870912&&n.set_custom_element_data(r,"scorecriteria",f[29]),d[0]&1073741824&&n.set_custom_element_data(r,"minbetcount",f[30]),d[0]&134217728&&n.set_custom_element_data(r,"thumbnail",f[27]),d[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),d[1]&2&&n.set_custom_element_data(r,"gameurl",f[32]),d[0]&1&&n.set_custom_element_data(r,"betcountmode",f[0]),d[0]&16384&&n.set_custom_element_data(r,"mbsource",f[14]),d[0]&268435456&&n.set_custom_element_data(r,"userenrolled",f[28]),d[0]&2048&&n.set_custom_element_data(r,"clientstyling",f[11]),d[0]&4096&&n.set_custom_element_data(r,"clientstylingurl",f[12]),d[0]&8192&&n.set_custom_element_data(r,"translationurl",f[13]),d[0]&256&&n.set_custom_element_data(r,"lang",f[8]),d[0]&1024&&n.set_custom_element_data(r,"keepbrowsercontext",f[10]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&192|d[1]&4&&s!==(s="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&192|d[1]&4&&a!==(a="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&131072&&u!==(u=`${f[17]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),i[51](null)}}}function At(i,t,e){let r;n.component_subscribe(i,n.$format,l=>e(34,r=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:fe=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:X=""}=t,{keepbrowsercontext:de="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:Y}=t,{betcountmode:R="minBetCount"}=t,v,Ve,F=!1,U="",E=!0,me=window.navigator.userAgent,J=!1,W=!1,he="There was an error while trying to join the tournament",K=!1,Q,pe,_e,j,k,ge,V,be,ye,we=[],Z=[],ve="#",q=!1;vt({withLocale:"en",translations:{}});const Ze=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(w=>{Le(w,b[w])})}).catch(b=>{console.log(b)})};Object.keys(Ie).forEach(l=>{Le(l,Ie[l])});const ke=l=>{$e(l),$(l),Fe(this,k)},Se=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(16,F=!0),U=l.data.session,Ee(c)),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ke(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,w=u<4?u*100:Math.random()*300+300;e(33,q=u==1),setTimeout(()=>{e(33,q=!0),e(26,k=b.id),ke(b)},w),setTimeout(()=>{e(33,q=!1)},w+200)}},$e=l=>{l.state!=j&&(e(25,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},et=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},tt=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},nt=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Te=(l,b)=>ne(this,null,function*(){var ze;e(19,W=!1),e(21,K=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(18,J=!0);let w=new URL(`${c}/v1/bonus/claim`),T=new Headers,ee={};w.searchParams.append("language",m),w.searchParams.append("platform",ce(me)),T.append("Content-Type","application/json"),T.append("X-SessionID",U),b&&b.length>=1&&(ee={language:m,bonusCode:b[0].code,currency:X,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify(ee)};const je=()=>{e(18,J=!1),e(28,V=!0)},te=y=>{e(18,J=!1),y&&e(20,he=y),e(19,W=!0)},P=yield ne(this,null,function*(){let y;try{y=yield fetch(w,z),y=yield y.json()}catch(It){te()}return y});if(P)if(P.success==!0)je();else if(P.errorMessage.match("VersionMismatchException")){let y;y=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),y=yield y.json(),(ze=y==null?void 0:y.item)!=null&&ze.playerEnrolled?je():(te(P.errorMessage),e(21,K=!0),e(19,W=!1))}else te(P.errorMessage)}),Fe=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},$=l=>{l&&(e(22,Q=l.nameOrTitle||""),e(23,pe=l.startTime),e(24,_e=l.endTime),e(25,j=l.state),e(26,k=l.id),e(27,ge=l.thumbnail),e(28,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(29,be=l.scoreCriteria),e(0,R=l.betCountMode||"minBetCount"),e(30,ye=l[R]),we=l.prizes,e(31,Z=l.wallets||[]),e(32,ve=l.termsUrl||"#"))},Ee=l=>{e(17,E=!0);const b=l?`${l}/v1/tournaments/${Y}`:a,w=new URL(b),T=new Headers;w.searchParams.append("language",m),w.searchParams.append("platform",ce(me)),F&&T.append("X-SessionID",U),fetch(w,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{$(z.item)}).finally(()=>{e(17,E=!1)})},rt=()=>{e(16,F=(o==null?void 0:o.length)>10),F&&(U=o)},it=()=>{if(I){$(I);return}e(17,E=!0),Ee(c)};n.onMount(()=>(e(17,E=!Q),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Se,!1),()=>{window.removeEventListener("message",Se)}));const ot=()=>Te(k,Z);function st(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(15,v)})}return i.$$set=l=>{"session"in l&&e(40,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(41,u=l.touridx),"endpoint"in l&&e(42,c=l.endpoint),"showdetails"in l&&e(3,p=l.showdetails),"showslider"in l&&e(4,h=l.showslider),"showenrolled"in l&&e(5,f=l.showenrolled),"maxwidth"in l&&e(6,d=l.maxwidth),"fullsize"in l&&e(7,g=l.fullsize),"lang"in l&&e(8,m=l.lang),"loginevent"in l&&e(43,_=l.loginevent),"registerevent"in l&&e(44,B=l.registerevent),"detailsevent"in l&&e(9,fe=l.detailsevent),"loginurl"in l&&e(45,x=l.loginurl),"registerurl"in l&&e(46,O=l.registerurl),"currency"in l&&e(47,X=l.currency),"keepbrowsercontext"in l&&e(10,de=l.keepbrowsercontext),"clientstyling"in l&&e(11,A=l.clientstyling),"clientstylingurl"in l&&e(12,D=l.clientstylingurl),"translationurl"in l&&e(13,L=l.translationurl),"tournamentinfo"in l&&e(48,I=l.tournamentinfo),"mbsource"in l&&e(14,M=l.mbsource),"tournamentid"in l&&e(49,Y=l.tournamentid),"betcountmode"in l&&e(0,R=l.betcountmode)},i.$$.update=()=>{i.$$.dirty[0]&256&&m&&kt(m),i.$$.dirty[0]&8192&&L&&Ze(),i.$$.dirty[1]&512&&o&&rt(),i.$$.dirty[0]&260&&a&&m&&it(),i.$$.dirty[0]&34816&&A&&v&&n.setClientStyling(v,A),i.$$.dirty[0]&36864&&D&&v&&n.setClientStylingURL(v,D),i.$$.dirty[0]&49152&&M&&v&&n.setStreamStyling(v,`${M}.Style`,Ve)},[R,s,a,p,h,f,d,g,m,fe,de,A,D,L,M,v,F,E,J,W,he,K,Q,pe,_e,j,k,ge,V,be,ye,Z,ve,q,r,et,tt,nt,Te,Fe,o,u,c,_,B,x,O,X,I,Y,ot,st]}class Qe extends n.SvelteComponent{constructor(t){super(),n.init(this,t,At,Ot,n.safe_not_equal,{session:40,userid:1,tournamenturl:2,touridx:41,endpoint:42,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:43,registerevent:44,detailsevent:9,loginurl:45,registerurl:46,currency:47,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:48,mbsource:14,tournamentid:49,betcountmode:0},St,[-1,-1,-1])}get session(){return this.$$.ctx[40]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[41]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[43]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[44]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[45]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[46]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[47]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[48]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[49]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}get betcountmode(){return this.$$.ctx[0]}set betcountmode(t){this.$$set({betcountmode:t}),n.flush()}}n.create_custom_element(Qe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{},betcountmode:{}},[],[],!0);const Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Dt;exports.getDevice=ce;
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function le(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var N=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=oe(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof re?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=oe(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{Pe(m)}catch(_){s=s!=null?s:[],_ instanceof re?s=ae(ae([],se(s)),se(_.errors)):s.push(_)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(s)throw new re(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&le(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&le(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ge=N.EMPTY;function Ne(i){return i instanceof N||i&&"closed"in i&&S(i.remove)&&S(i.add)&&S(i.unsubscribe)}function Pe(i){S(i)?i():i.unsubscribe()}var at={Promise:void 0},lt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ae([i,t],se(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ut(i){lt.setTimeout(function(){throw i})}function Ce(){}function G(i){i()}var Xe=function(i){C(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ne(e)&&e.add(r)):r.destination=dt,r}return t.create=function(e,r,o){return new ue(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(N),ct=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){H(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){H(r)}else H(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},i}(),ue=function(i){C(t,i);function t(e,r,o){var s=i.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new ct(a),s}return t}(Xe);function H(i){ut(i)}function ft(i){throw i}var dt={closed:!0,next:Ce,error:ft,complete:Ce},mt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ht(i){return i}function pt(i){return i.length===0?ht:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Be=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=gt(t)?t:new ue(t,e,r);return G(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=xe(e),new e(function(o,s){var a=new ue({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[mt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return pt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=xe(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function xe(i){var t;return(t=i!=null?i:at.Promise)!==null&&t!==void 0?t:Promise}function _t(i){return i&&S(i.next)&&S(i.error)&&S(i.complete)}function gt(i){return i&&i instanceof Xe||_t(i)&&Ne(i)}var bt=He(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ye=function(i){C(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Oe(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new bt},t.prototype.next=function(e){var r=this;G(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=oe(r.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;G(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;G(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Ge:(this.currentObservers=null,u.push(e),new N(function(){r.currentObservers=null,le(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Be;return e.source=this,e},t.create=function(e,r){return new Oe(e,r)},t}(Be),Oe=function(i){C(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ge},t}(Ye),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},yt=function(i){C(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ke);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,u=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*r;if(r<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Ye);const Ae=[],De={},wt=(i,t=0)=>{if(Ae.indexOf(i)==-1){const e=new yt(t);De[i]=e,Ae.push(i)}return De[i]};window.emWidgets={topic:wt};const ce=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function vt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function Le(i,t){n.addMessages(i,t)}function kt(i){n.$locale.set(i)}const Ie={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},ru:{login:"Войти",register:"Регистрация",details:"Подробности",enrolled:"Записан",join:"Участвовать",joinerror:"Произошла ошибка при регистрации на турнир, пожалуйста, попробуйте снова."},az:{login:"Daxil ol",register:"Qeydiyyat",details:"Ətraflı",enrolled:"Qeydiyyatdan keçib",join:"Qoşul",joinerror:"Turnirə qeydiyyat zamanı xəta baş verdi, zəhmət olmasa yenidən cəhd edin."},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-DQ4p54JY.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-CkyiL4UU.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-7xA4VjF2.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-DnLxcrbn.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function St(i){n.append_styles(i,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Tt(i){let t,e,r,o,s,a,u,c=i[26]&&Me(i);function p(m,_){if(!m[16])return zt;if(m[25]!="Closed"&&m[25]!="Closing")return jt;if(m[3]=="true")return Et}let h=p(i),f=h&&h(i),d=(i[19]||i[21])&&Je(i),g=i[4]=="true"&&We(i);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),r=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"status",i[25]),n.set_custom_element_data(e,"startdate",i[23]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"enddate",i[24]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,r,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[26]?c?c.p(m,_):(c=Me(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&2048&&n.set_custom_element_data(e,"clientstyling",m[11]),_[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",m[12]),_[0]&8192&&n.set_custom_element_data(e,"translationurl",m[13]),_[0]&33554432&&n.set_custom_element_data(e,"status",m[25]),_[0]&8388608&&n.set_custom_element_data(e,"startdate",m[23]),_[0]&256&&n.set_custom_element_data(e,"lang",m[8]),_[0]&16384&&n.set_custom_element_data(e,"mbsource",m[14]),_[0]&16777216&&n.set_custom_element_data(e,"enddate",m[24]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[19]||m[21]?d?d.p(m,_):(d=Je(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[4]=="true"?g?g.p(m,_):(g=We(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(r),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function Ft(i){let t,e,r;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),r=n.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(r,"class","TournamentButtons"),n.attr(r,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,r,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(r))}}}function Me(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[26]),n.set_custom_element_data(t,"clientstyling",i[11]),n.set_custom_element_data(t,"clientstylingurl",i[12]),n.set_custom_element_data(t,"mbsource",i[14]),n.set_custom_element_data(t,"translationurl",i[13]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[39].call(null,t,i[26])),r=!0)},p(s,a){a[0]&67108864&&n.set_custom_element_data(t,"tourid",s[26]),a[0]&2048&&n.set_custom_element_data(t,"clientstyling",s[11]),a[0]&4096&&n.set_custom_element_data(t,"clientstylingurl",s[12]),a[0]&16384&&n.set_custom_element_data(t,"mbsource",s[14]),a[0]&8192&&n.set_custom_element_data(t,"translationurl",s[13]),e&&n.is_function(e.update)&&a[0]&67108864&&e.update.call(null,s[26])},d(s){s&&n.detach(t),r=!1,o()}}}function Et(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,u){i=a,u[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(i){let t,e,r=i[3]=="true"&&Re(i);function o(u,c){return u[28]?Ct:Pt}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){r&&r.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?r?r.p(u,c):(r=Re(u),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),r&&r.d(u),a.d(u)}}}function zt(i){let t,e=i[34]("login")+"",r,o,s,a=i[34]("register")+"",u,c,p;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,f){n.insert(h,t,f),n.append(t,r),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",i[35]),n.listen(s,"click",i[36])],c=!0)},p(h,f){f[1]&8&&e!==(e=h[34]("login")+"")&&n.set_data(r,e),f[1]&8&&a!==(a=h[34]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Re(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,u){i=a,u[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Pt(i){let t,e,r,o,s;function a(p,h){return p[18]==!0?xt:Bt}let u=a(i),c=u(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[19]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&128&&e!==(e="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&128&&r!==(r="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),h[0]&524288&&(t.disabled=p[19])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function Ct(i){let t,e=i[3]=="true"&&Ue(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Ue(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Bt(i){let t,e=i[34]("join")+"",r,o,s,a,u,c,p,h;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(f,d){n.insert(f,t,d),n.append(t,r),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&8&&e!==(e=f[34]("join")+"")&&n.set_data(r,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function xt(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function Ue(i){let t,e=i[34]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&8&&e!==(e=o[34]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Je(i){let t,e=i[34]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[20]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,u){u[1]&8&&e!==(e=a[34]("joinerror")+"")&&n.set_data(r,e),u[0]&1048576&&n.set_data(s,a[20])},d(a){a&&n.detach(t)}}}function We(i){let t,e,r=i[17]&&qe();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[17]?r||(r=qe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&2048&&n.set_custom_element_data(e,"clientstyling",o[11]),s[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",o[12]),s[0]&8192&&n.set_custom_element_data(e,"translationurl",o[13]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&16384&&n.set_custom_element_data(e,"mbsource",o[14]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function qe(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Ot(i){let t,e,r,o,s,a,u;function c(f,d){return f[17]?Ft:Tt}let p=c(i),h=p(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(r,"detailsevent",i[9]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[22]),n.set_custom_element_data(r,"status",i[25]),n.set_custom_element_data(r,"startdate",i[23]),n.set_custom_element_data(r,"tourid",i[26]),n.set_custom_element_data(r,"scorecriteria",i[29]),n.set_custom_element_data(r,"minbetcount",i[30]),n.set_custom_element_data(r,"thumbnail",i[27]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[32]),n.set_custom_element_data(r,"betcountmode",i[0]),n.set_custom_element_data(r,"mbsource",i[14]),n.set_custom_element_data(r,"userenrolled",i[28]),n.set_custom_element_data(r,"clientstyling",i[11]),n.set_custom_element_data(r,"clientstylingurl",i[12]),n.set_custom_element_data(r,"translationurl",i[13]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[10]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${i[17]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,r),n.append(e,o),h.m(e,null),i[51](t)},p(f,d){d[0]&512&&n.set_custom_element_data(r,"detailsevent",f[9]),d[0]&2&&n.set_custom_element_data(r,"userid",f[1]),d[0]&4194304&&n.set_custom_element_data(r,"title",f[22]),d[0]&33554432&&n.set_custom_element_data(r,"status",f[25]),d[0]&8388608&&n.set_custom_element_data(r,"startdate",f[23]),d[0]&67108864&&n.set_custom_element_data(r,"tourid",f[26]),d[0]&536870912&&n.set_custom_element_data(r,"scorecriteria",f[29]),d[0]&1073741824&&n.set_custom_element_data(r,"minbetcount",f[30]),d[0]&134217728&&n.set_custom_element_data(r,"thumbnail",f[27]),d[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),d[1]&2&&n.set_custom_element_data(r,"gameurl",f[32]),d[0]&1&&n.set_custom_element_data(r,"betcountmode",f[0]),d[0]&16384&&n.set_custom_element_data(r,"mbsource",f[14]),d[0]&268435456&&n.set_custom_element_data(r,"userenrolled",f[28]),d[0]&2048&&n.set_custom_element_data(r,"clientstyling",f[11]),d[0]&4096&&n.set_custom_element_data(r,"clientstylingurl",f[12]),d[0]&8192&&n.set_custom_element_data(r,"translationurl",f[13]),d[0]&256&&n.set_custom_element_data(r,"lang",f[8]),d[0]&1024&&n.set_custom_element_data(r,"keepbrowsercontext",f[10]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&192|d[1]&4&&s!==(s="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&192|d[1]&4&&a!==(a="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn")+" "+(f[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&131072&&u!==(u=`${f[17]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),i[51](null)}}}function At(i,t,e){let r;n.component_subscribe(i,n.$format,l=>e(34,r=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:fe=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:X=""}=t,{keepbrowsercontext:de="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:Y}=t,{betcountmode:R="minBetCount"}=t,v,Ve,F=!1,U="",E=!0,me=window.navigator.userAgent,J=!1,W=!1,he="There was an error while trying to join the tournament",K=!1,Q,pe,_e,j,k,ge,V,be,ye,we=[],Z=[],ve="#",q=!1;vt({withLocale:"en",translations:{}});const Ze=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(w=>{Le(w,b[w])})}).catch(b=>{console.log(b)})};Object.keys(Ie).forEach(l=>{Le(l,Ie[l])});const ke=l=>{$e(l),$(l),Fe(this,k)},Se=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(16,F=!0),U=l.data.session,Ee(c)),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ke(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,w=u<4?u*100:Math.random()*300+300;e(33,q=u==1),setTimeout(()=>{e(33,q=!0),e(26,k=b.id),ke(b)},w),setTimeout(()=>{e(33,q=!1)},w+200)}},$e=l=>{l.state!=j&&(e(25,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},et=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},tt=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},nt=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Te=(l,b)=>ne(this,null,function*(){var ze;e(19,W=!1),e(21,K=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(18,J=!0);let w=new URL(`${c}/v1/bonus/claim`),T=new Headers,ee={};w.searchParams.append("language",m),w.searchParams.append("platform",ce(me)),T.append("Content-Type","application/json"),T.append("X-SessionID",U),b&&b.length>=1&&(ee={language:m,bonusCode:b[0].code,currency:X,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify(ee)};const je=()=>{e(18,J=!1),e(28,V=!0)},te=y=>{e(18,J=!1),y&&e(20,he=y),e(19,W=!0)},P=yield ne(this,null,function*(){let y;try{y=yield fetch(w,z),y=yield y.json()}catch(It){te()}return y});if(P)if(P.success==!0)je();else if(P.errorMessage.match("VersionMismatchException")){let y;y=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),y=yield y.json(),(ze=y==null?void 0:y.item)!=null&&ze.playerEnrolled?je():(te(P.errorMessage),e(21,K=!0),e(19,W=!1))}else te(P.errorMessage)}),Fe=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},$=l=>{l&&(e(22,Q=l.nameOrTitle||""),e(23,pe=l.startTime),e(24,_e=l.endTime),e(25,j=l.state),e(26,k=l.id),e(27,ge=l.thumbnail),e(28,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(29,be=l.scoreCriteria),e(0,R=l.betCountMode||"minBetCount"),e(30,ye=l[R]),we=l.prizes,e(31,Z=l.wallets||[]),e(32,ve=l.termsUrl||"#"))},Ee=l=>{e(17,E=!0);const b=l?`${l}/v1/tournaments/${Y}`:a,w=new URL(b),T=new Headers;w.searchParams.append("language",m),w.searchParams.append("platform",ce(me)),F&&T.append("X-SessionID",U),fetch(w,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{$(z.item)}).finally(()=>{e(17,E=!1)})},rt=()=>{e(16,F=(o==null?void 0:o.length)>10),F&&(U=o)},it=()=>{if(I){$(I);return}e(17,E=!0),Ee(c)};n.onMount(()=>(e(17,E=!Q),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Se,!1),()=>{window.removeEventListener("message",Se)}));const ot=()=>Te(k,Z);function st(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(15,v)})}return i.$$set=l=>{"session"in l&&e(40,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(41,u=l.touridx),"endpoint"in l&&e(42,c=l.endpoint),"showdetails"in l&&e(3,p=l.showdetails),"showslider"in l&&e(4,h=l.showslider),"showenrolled"in l&&e(5,f=l.showenrolled),"maxwidth"in l&&e(6,d=l.maxwidth),"fullsize"in l&&e(7,g=l.fullsize),"lang"in l&&e(8,m=l.lang),"loginevent"in l&&e(43,_=l.loginevent),"registerevent"in l&&e(44,B=l.registerevent),"detailsevent"in l&&e(9,fe=l.detailsevent),"loginurl"in l&&e(45,x=l.loginurl),"registerurl"in l&&e(46,O=l.registerurl),"currency"in l&&e(47,X=l.currency),"keepbrowsercontext"in l&&e(10,de=l.keepbrowsercontext),"clientstyling"in l&&e(11,A=l.clientstyling),"clientstylingurl"in l&&e(12,D=l.clientstylingurl),"translationurl"in l&&e(13,L=l.translationurl),"tournamentinfo"in l&&e(48,I=l.tournamentinfo),"mbsource"in l&&e(14,M=l.mbsource),"tournamentid"in l&&e(49,Y=l.tournamentid),"betcountmode"in l&&e(0,R=l.betcountmode)},i.$$.update=()=>{i.$$.dirty[0]&256&&m&&kt(m),i.$$.dirty[0]&8192&&L&&Ze(),i.$$.dirty[1]&512&&o&&rt(),i.$$.dirty[0]&260&&a&&m&&it(),i.$$.dirty[0]&34816&&A&&v&&n.setClientStyling(v,A),i.$$.dirty[0]&36864&&D&&v&&n.setClientStylingURL(v,D),i.$$.dirty[0]&49152&&M&&v&&n.setStreamStyling(v,`${M}.Style`,Ve)},[R,s,a,p,h,f,d,g,m,fe,de,A,D,L,M,v,F,E,J,W,he,K,Q,pe,_e,j,k,ge,V,be,ye,Z,ve,q,r,et,tt,nt,Te,Fe,o,u,c,_,B,x,O,X,I,Y,ot,st]}class Qe extends n.SvelteComponent{constructor(t){super(),n.init(this,t,At,Ot,n.safe_not_equal,{session:40,userid:1,tournamenturl:2,touridx:41,endpoint:42,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:43,registerevent:44,detailsevent:9,loginurl:45,registerurl:46,currency:47,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:48,mbsource:14,tournamentid:49,betcountmode:0},St,[-1,-1,-1])}get session(){return this.$$.ctx[40]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[41]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[42]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[43]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[44]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[45]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[46]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[47]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[48]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[49]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}get betcountmode(){return this.$$.ctx[0]}set betcountmode(t){this.$$set({betcountmode:t}),n.flush()}}n.create_custom_element(Qe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{},betcountmode:{}},[],[],!0);const Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Dt;exports.getDevice=ce;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-vOqoDzBA.cjs");function z(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},ru:{finished:"Завершён",starting:"Начинается через ",left:"осталось",minutes:"минут",hours:"часов",days:"дней"},az:{finished:"Bitib",starting:"Başlayır: ",left:"qalıb",minutes:"dəqiqə",hours:"saat",days:"gün"}};function q(i){t.append_styles(i,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[1])+"",f,k,y,g,B,h,T;function b(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?O:L}let w=b(i),p=w(i);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return U}let D=P(i),c=D&&D(i);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.c(),B=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar"),t.attr(g,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,B),c&&c.m(g,null),h||(T=t.action_destroyer(i[9].call(null,y)),h=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(f,d),w===(w=b(s))&&p?p.p(s,_):(p.d(1),p=w(s),p&&(p.c(),p.m(g,B))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,T()}}}function L(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function O(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(i){let e,n=i[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(i){let e,n=i[0]&&i[1]&&E(i);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),i[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),i[17](null)}}}function H(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:B}=e,h,T,b="",w="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(r=>{z(r,M[r])});const D=r=>new Date(r).getTime(),c=(r,m)=>(D(m)-D(r))/(1e3*60),s=()=>{const r=new Date;n(4,b=c(r,o)),n(5,w=c(r,u)),n(6,p=C(b))},_=r=>{const m={month:"long"};let F=new Date(r),S=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=r=>{const m=(S,v)=>S+" "+l(v),F=S=>{const v=Math.floor(S);return v<10?`0${v}`:`${v}`};if(r<1440){const S=r/60,v=r%60,x=(v-Math.floor(v))*60;return[S,v,x].map(I=>F(I)).join(":")}return m(Math.ceil(r/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const r=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(r)}});function R(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(3,h)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,f=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,g=r.translationurl),"mbsource"in r&&n(16,B=r.mbsource)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const r=c(u,o),m=100/r;return Math.floor((r-b)*m)}),i.$$.dirty&19&&u&&o&&s()&&C(b),i.$$.dirty&4096&&f&&s(),i.$$.dirty&4112&&f&&C(b),i.$$.dirty&32768&&g&&P(),i.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),i.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),i.$$.dirty&65544&&B&&h&&t.setStreamStyling(h,`${B}.Style`,T)},[u,o,d,h,b,w,p,a,l,s,_,C,f,k,y,g,B,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},q)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as
|
|
2
|
-
function
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as L, d as k, h as B, k as v, g as l, m as V, o as X, t as M, j as h, r as $, u as j, l as R, p as tt, F as N, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsListController-tsNVvrbK.js";
|
|
2
|
+
function O(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const U = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -90,6 +90,22 @@ const q = {
|
|
|
90
90
|
minutes: "minutes",
|
|
91
91
|
hours: "hours",
|
|
92
92
|
days: "days"
|
|
93
|
+
},
|
|
94
|
+
ru: {
|
|
95
|
+
finished: "Завершён",
|
|
96
|
+
starting: "Начинается через ",
|
|
97
|
+
left: "осталось",
|
|
98
|
+
minutes: "минут",
|
|
99
|
+
hours: "часов",
|
|
100
|
+
days: "дней"
|
|
101
|
+
},
|
|
102
|
+
az: {
|
|
103
|
+
finished: "Bitib",
|
|
104
|
+
starting: "Başlayır: ",
|
|
105
|
+
left: "qalıb",
|
|
106
|
+
minutes: "dəqiqə",
|
|
107
|
+
hours: "saat",
|
|
108
|
+
days: "gün"
|
|
93
109
|
}
|
|
94
110
|
};
|
|
95
111
|
function at(n) {
|
|
@@ -121,7 +137,7 @@ function x(n) {
|
|
|
121
137
|
);
|
|
122
138
|
}
|
|
123
139
|
let C = D(n), _ = C(n);
|
|
124
|
-
function
|
|
140
|
+
function q(r, p) {
|
|
125
141
|
if (
|
|
126
142
|
/*status*/
|
|
127
143
|
r[2] == "Finished" || /*status*/
|
|
@@ -140,13 +156,13 @@ function x(n) {
|
|
|
140
156
|
)
|
|
141
157
|
return dt;
|
|
142
158
|
}
|
|
143
|
-
let
|
|
159
|
+
let w = q(n), c = w && w(n);
|
|
144
160
|
return {
|
|
145
161
|
c() {
|
|
146
162
|
t = v("div"), e = v("div"), a = j(s), u = R(), o = v("div"), f = j(d), T = R(), b = v("div"), g = v("div"), _.c(), P = R(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
|
|
147
163
|
},
|
|
148
164
|
m(r, p) {
|
|
149
|
-
|
|
165
|
+
B(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), B(r, T, p), B(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
150
166
|
/*getDuration*/
|
|
151
167
|
n[9].call(null, b)
|
|
152
168
|
), y = !0);
|
|
@@ -162,7 +178,7 @@ function x(n) {
|
|
|
162
178
|
r[10](
|
|
163
179
|
/*enddate*/
|
|
164
180
|
r[1]
|
|
165
|
-
) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))),
|
|
181
|
+
) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), w === (w = q(r)) && c ? c.p(r, p) : (c && c.d(1), c = w && w(r), c && (c.c(), c.m(g, null)));
|
|
166
182
|
},
|
|
167
183
|
d(r) {
|
|
168
184
|
r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
|
|
@@ -173,7 +189,7 @@ function lt(n) {
|
|
|
173
189
|
let t;
|
|
174
190
|
return {
|
|
175
191
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
192
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
|
|
177
193
|
t,
|
|
178
194
|
"width",
|
|
179
195
|
/*getProgress*/
|
|
@@ -181,11 +197,11 @@ function lt(n) {
|
|
|
181
197
|
);
|
|
182
198
|
},
|
|
183
199
|
m(e, s) {
|
|
184
|
-
|
|
200
|
+
B(e, t, s);
|
|
185
201
|
},
|
|
186
202
|
p(e, s) {
|
|
187
203
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
204
|
+
128 && N(
|
|
189
205
|
t,
|
|
190
206
|
"width",
|
|
191
207
|
/*getProgress*/
|
|
@@ -204,9 +220,9 @@ function ot(n) {
|
|
|
204
220
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
221
|
},
|
|
206
222
|
m(e, s) {
|
|
207
|
-
|
|
223
|
+
B(e, t, s);
|
|
208
224
|
},
|
|
209
|
-
p:
|
|
225
|
+
p: L,
|
|
210
226
|
d(e) {
|
|
211
227
|
e && k(t);
|
|
212
228
|
}
|
|
@@ -219,9 +235,9 @@ function ut(n) {
|
|
|
219
235
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
236
|
},
|
|
221
237
|
m(e, s) {
|
|
222
|
-
|
|
238
|
+
B(e, t, s);
|
|
223
239
|
},
|
|
224
|
-
p:
|
|
240
|
+
p: L,
|
|
225
241
|
d(e) {
|
|
226
242
|
e && k(t);
|
|
227
243
|
}
|
|
@@ -240,7 +256,7 @@ function dt(n) {
|
|
|
240
256
|
), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
257
|
},
|
|
242
258
|
m(o, d) {
|
|
243
|
-
|
|
259
|
+
B(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
244
260
|
},
|
|
245
261
|
p(o, d) {
|
|
246
262
|
d & /*showRemain*/
|
|
@@ -273,7 +289,7 @@ function ct(n) {
|
|
|
273
289
|
t = v("div"), s = j(e), a = R(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
290
|
},
|
|
275
291
|
m(d, f) {
|
|
276
|
-
|
|
292
|
+
B(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
277
293
|
},
|
|
278
294
|
p(d, f) {
|
|
279
295
|
f & /*$_*/
|
|
@@ -300,7 +316,7 @@ function ft(n) {
|
|
|
300
316
|
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
317
|
},
|
|
302
318
|
m(a, u) {
|
|
303
|
-
|
|
319
|
+
B(a, t, u), h(t, s);
|
|
304
320
|
},
|
|
305
321
|
p(a, u) {
|
|
306
322
|
u & /*$_*/
|
|
@@ -323,15 +339,15 @@ function gt(n) {
|
|
|
323
339
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
340
|
},
|
|
325
341
|
m(s, a) {
|
|
326
|
-
|
|
342
|
+
B(s, t, a), e && e.m(t, null), n[17](t);
|
|
327
343
|
},
|
|
328
344
|
p(s, [a]) {
|
|
329
345
|
/*startdate*/
|
|
330
346
|
s[0] && /*enddate*/
|
|
331
347
|
s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
348
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
349
|
+
i: L,
|
|
350
|
+
o: L,
|
|
335
351
|
d(s) {
|
|
336
352
|
s && k(t), e && e.d(), n[17](null);
|
|
337
353
|
}
|
|
@@ -341,26 +357,26 @@ function mt(n, t, e) {
|
|
|
341
357
|
let s, a;
|
|
342
358
|
V(n, rt, (i) => e(8, a = i));
|
|
343
359
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, D = "", C = "", _ = "";
|
|
344
|
-
const
|
|
360
|
+
const q = () => {
|
|
345
361
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
362
|
Object.keys(m).forEach((S) => {
|
|
347
|
-
|
|
363
|
+
O(S, m[S]);
|
|
348
364
|
});
|
|
349
365
|
}).catch((m) => {
|
|
350
366
|
console.log(m);
|
|
351
367
|
});
|
|
352
368
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
369
|
+
Object.keys(U).forEach((i) => {
|
|
370
|
+
O(i, U[i]);
|
|
355
371
|
});
|
|
356
|
-
const
|
|
372
|
+
const w = (i) => new Date(i).getTime(), c = (i, m) => (w(m) - w(i)) / (1e3 * 60), r = () => {
|
|
357
373
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ =
|
|
374
|
+
e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = A(D));
|
|
359
375
|
}, p = (i) => {
|
|
360
376
|
const m = { month: "long" };
|
|
361
377
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
378
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
379
|
+
}, A = (i) => {
|
|
364
380
|
const m = (E, F) => E + " " + a(F), S = (E) => {
|
|
365
381
|
const F = Math.floor(E);
|
|
366
382
|
return F < 10 ? `0${F}` : `${F}`;
|
|
@@ -398,10 +414,10 @@ function mt(n, t, e) {
|
|
|
398
414
|
const i = c(u, o), m = 100 / i;
|
|
399
415
|
return Math.floor((i - D) * m);
|
|
400
416
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r() &&
|
|
417
|
+
19 && u && o && r() && A(D), n.$$.dirty & /*lang*/
|
|
402
418
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
404
|
-
32768 && g &&
|
|
419
|
+
4112 && f && A(D), n.$$.dirty & /*translationurl*/
|
|
420
|
+
32768 && g && q(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
421
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
422
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
407
423
|
65544 && P && y && it(y, `${P}.Style`, I);
|
|
@@ -417,7 +433,7 @@ function mt(n, t, e) {
|
|
|
417
433
|
a,
|
|
418
434
|
r,
|
|
419
435
|
p,
|
|
420
|
-
|
|
436
|
+
A,
|
|
421
437
|
f,
|
|
422
438
|
T,
|
|
423
439
|
b,
|