@everymatrix/casino-tournaments-list-controller 1.94.112 → 1.94.113
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-E9IBNmVp.js → CasinoTournamentsListController-BEMllbA1.js} +1 -1
- package/components/{CasinoTournamentsListController-EWXPXNCD.cjs → CasinoTournamentsListController-DaCYH-uH.cjs} +1 -1
- package/components/{CasinoTournamentsListController-DTrukRfV.js → CasinoTournamentsListController-Zl6RiAf2.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-B44JtFRT.js → CasinoTournamentsThumbnail-ByEpWgZp.js} +3 -3
- package/components/{CasinoTournamentsThumbnail-Dc69pTW_.cjs → CasinoTournamentsThumbnail-DNCZeMAJ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-nwKsQue0.js → CasinoTournamentsThumbnail-veR_pa6q.js} +3 -3
- package/components/{CasinoTournamentsThumbnailController-DbMfE7gh.js → CasinoTournamentsThumbnailController-Blhk9uXp.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-TknmAKvL.cjs → CasinoTournamentsThumbnailController-Byup1jVJ.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-0EoAp-os.js → CasinoTournamentsThumbnailController-DmTnXGmU.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-Cym7PQKc.js → CasinoTournamentsThumbnailDuration-0TnSkdKg.js} +38 -38
- package/components/{CasinoTournamentsThumbnailDuration-8rwZvTe4.js → CasinoTournamentsThumbnailDuration-BW8fQdaG.js} +38 -38
- package/components/{CasinoTournamentsThumbnailDuration-DbvHuds7.cjs → CasinoTournamentsThumbnailDuration-DQbvi2U4.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Brx7_hMB.cjs → CasinoTournamentsThumbnailGamesSlider-BouprwJa.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-WKBp0CoX.js → CasinoTournamentsThumbnailGamesSlider-_X4VrGMo.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-XwnU5M9s.js → CasinoTournamentsThumbnailGamesSlider-tFmrSYMy.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-CFEsJVu1.js → CasinoTournamentsThumbnailPrizes-C_okTnTD.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BPSYkUHx.js → CasinoTournamentsThumbnailPrizes-D6-4GkM8.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CkEoWshh.cjs → CasinoTournamentsThumbnailPrizes-Dz99LNjY.cjs} +1 -1
- 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/stencil/index-97d17652-BeQGJyxy.js +532 -0
- package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-Ce2P8K1l.js} +176 -170
- package/stencil/index-97d17652-QrAXVnlo.cjs +1 -0
- package/stencil/index-b2193545-Cwb6Y-jS.js +493 -0
- package/stencil/index-b2193545-K2OnpxTQ.js +509 -0
- package/stencil/index-b2193545-bAuKWs0t.cjs +1 -0
- package/stencil/{ui-image-DyN7Fe9v.js → ui-image-B-ffqvMi.js} +1 -1
- package/stencil/{ui-image-BiEqrTjD.js → ui-image-DPF2VUSh.js} +1 -1
- package/stencil/{ui-image-GKGnzjWQ.cjs → ui-image-YrA8NUbD.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CEPR_2Zl.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-CynWE8qT.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-DdUCzkcr.js} +1 -1
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-C0sJC5CL.cjs} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-Do1rIyeJ.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-N1zHirfP.js} +2 -2
- package/stencil/{ui-skeleton-DGlqF493.js → ui-skeleton-CfNwtLVl.js} +2 -2
- package/stencil/{ui-skeleton-CCeXOW4G.js → ui-skeleton-D8QGodCK.js} +2 -2
- package/stencil/{ui-skeleton-CImpq9cv.cjs → ui-skeleton-FgDBSZBf.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-CLXtOZ1A.js → ui-skeleton-ed169f8f-B9Q0WmRZ.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-B7StGL8M.cjs → ui-skeleton-ed169f8f-BwpJu25a.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Dc_jq3n7.js → ui-skeleton-ed169f8f-DaSOpH4g.js} +1 -1
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
- package/stencil/index-b2193545-BB6id_PQ.cjs +0 -1
- package/stencil/index-b2193545-Dg04r8Mf.js +0 -519
- package/stencil/index-b2193545-oPMLiBVn.js +0 -503
|
@@ -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-DaCYH-uH.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 qe(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=qe(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){q(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){q(r)}else q(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){q(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 q(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=qe(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},wt=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={},yt=(i,t=0)=>{if(Ae.indexOf(i)==-1){const e=new wt(t);De[i]=e,Ae.push(i)}return De[i]};window.emWidgets={topic:yt};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"},"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-Dc69pTW_.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-DbvHuds7.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-CkEoWshh.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-Brx7_hMB.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]&&He();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=He(),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 He(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,Ze,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,V,pe,_e,j,k,ge,Z,be,we,ye=[],Q=[],ve="#",H=!1;vt({withLocale:"en",translations:{}});const Qe=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{Le(y,b[y])})}).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,y=u<4?u*100:Math.random()*300+300;e(33,H=u==1),setTimeout(()=>{e(33,H=!0),e(26,k=b.id),ke(b)},y),setTimeout(()=>{e(33,H=!1)},y+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 y=new URL(`${c}/v1/bonus/claim`),T=new Headers,ee={};y.searchParams.append("language",m),y.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,Z=!0)},te=w=>{e(18,J=!1),w&&e(20,he=w),e(19,W=!0)},P=yield ne(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(It){te()}return w});if(P)if(P.success==!0)je();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(ze=w==null?void 0:w.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:ye},window.location.href)},$=l=>{l&&(e(22,V=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,Z=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(29,be=l.scoreCriteria),e(0,R=l.betCountMode||"minBetCount"),e(30,we=l[R]),ye=l.prizes,e(31,Q=l.wallets||[]),e(32,ve=l.termsUrl||"#"))},Ee=l=>{e(17,E=!0);const b=l?`${l}/v1/tournaments/${Y}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ce(me)),F&&T.append("X-SessionID",U),fetch(y,{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=!V),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Se,!1),()=>{window.removeEventListener("message",Se)}));const ot=()=>Te(k,Q);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&&Qe(),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`,Ze)},[R,s,a,p,h,f,d,g,m,fe,de,A,D,L,M,v,F,E,J,W,he,K,V,pe,_e,j,k,ge,Z,be,we,Q,ve,H,r,et,tt,nt,Te,Fe,o,u,c,_,B,x,O,X,I,Y,ot,st]}class Ve 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(Ve,{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:Ve},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){q(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){q(r)}else q(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){q(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 q(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=qe(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},wt=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={},yt=(i,t=0)=>{if(Ae.indexOf(i)==-1){const e=new wt(t);De[i]=e,Ae.push(i)}return De[i]};window.emWidgets={topic:yt};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"},"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-DNCZeMAJ.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-DQbvi2U4.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-Dz99LNjY.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-BouprwJa.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]&&He();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=He(),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 He(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,Ze,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,V,pe,_e,j,k,ge,Z,be,we,ye=[],Q=[],ve="#",H=!1;vt({withLocale:"en",translations:{}});const Qe=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{Le(y,b[y])})}).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,y=u<4?u*100:Math.random()*300+300;e(33,H=u==1),setTimeout(()=>{e(33,H=!0),e(26,k=b.id),ke(b)},y),setTimeout(()=>{e(33,H=!1)},y+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 y=new URL(`${c}/v1/bonus/claim`),T=new Headers,ee={};y.searchParams.append("language",m),y.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,Z=!0)},te=w=>{e(18,J=!1),w&&e(20,he=w),e(19,W=!0)},P=yield ne(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(It){te()}return w});if(P)if(P.success==!0)je();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(ze=w==null?void 0:w.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:ye},window.location.href)},$=l=>{l&&(e(22,V=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,Z=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(29,be=l.scoreCriteria),e(0,R=l.betCountMode||"minBetCount"),e(30,we=l[R]),ye=l.prizes,e(31,Q=l.wallets||[]),e(32,ve=l.termsUrl||"#"))},Ee=l=>{e(17,E=!0);const b=l?`${l}/v1/tournaments/${Y}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ce(me)),F&&T.append("X-SessionID",U),fetch(y,{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=!V),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Se,!1),()=>{window.removeEventListener("message",Se)}));const ot=()=>Te(k,Q);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&&Qe(),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`,Ze)},[R,s,a,p,h,f,d,g,m,fe,de,A,D,L,M,v,F,E,J,W,he,K,V,pe,_e,j,k,ge,Z,be,we,Q,ve,H,r,et,tt,nt,Te,Fe,o,u,c,_,B,x,O,X,I,Y,ot,st]}class Ve 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(Ve,{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:Ve},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Dt;exports.getDevice=ce;
|
|
@@ -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 At, D as Dt } 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 At, D as Dt } from "./CasinoTournamentsListController-Zl6RiAf2.js";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -635,7 +635,7 @@ if (typeof window < "u") {
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
};
|
|
638
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
638
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-ByEpWgZp.js").then(({ default: t }) => {
|
|
639
639
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
@@ -651,7 +651,7 @@ if (typeof window < "u") {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
654
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-BW8fQdaG.js").then(({ default: t }) => {
|
|
655
655
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
656
656
|
"casino-tournaments-thumbnail-duration",
|
|
657
657
|
t.element
|
|
@@ -670,7 +670,7 @@ if (typeof window < "u") {
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
673
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-C_okTnTD.js").then(({ default: t }) => {
|
|
674
674
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
@@ -686,7 +686,7 @@ if (typeof window < "u") {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
689
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-_X4VrGMo.js").then(
|
|
690
690
|
({ default: t }) => {
|
|
691
691
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
692
692
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as
|
|
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 F, h as k, 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 O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsListController-BEMllbA1.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
@@ -109,7 +109,7 @@ function x(n) {
|
|
|
109
109
|
n[1]
|
|
110
110
|
) + ""
|
|
111
111
|
), f, T, b, g, P, y, I;
|
|
112
|
-
function
|
|
112
|
+
function w(r, p) {
|
|
113
113
|
return (
|
|
114
114
|
/*status*/
|
|
115
115
|
r[2] == "Finished" || /*status*/
|
|
@@ -120,7 +120,7 @@ function x(n) {
|
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let C =
|
|
123
|
+
let C = w(n), _ = C(n);
|
|
124
124
|
function A(r, p) {
|
|
125
125
|
if (
|
|
126
126
|
/*status*/
|
|
@@ -146,7 +146,7 @@ function x(n) {
|
|
|
146
146
|
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
147
|
},
|
|
148
148
|
m(r, p) {
|
|
149
|
-
|
|
149
|
+
k(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), k(r, T, p), k(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
n[9].call(null, b)
|
|
152
152
|
), y = !0);
|
|
@@ -162,10 +162,10 @@ function x(n) {
|
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") && M(f, d), C === (C =
|
|
165
|
+
) + "") && M(f, d), C === (C = w(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = A(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (F(t), F(T), F(b)), _.d(), c && c.d(), y = !1, I();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function lt(n) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
k(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function lt(n) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && F(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function ot(n) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
k(e, t, s);
|
|
208
208
|
},
|
|
209
|
-
p:
|
|
209
|
+
p: L,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && F(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function ut(n) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
k(e, t, s);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: L,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && F(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -240,7 +240,7 @@ function dt(n) {
|
|
|
240
240
|
), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
k(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
@@ -253,7 +253,7 @@ function dt(n) {
|
|
|
253
253
|
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && F(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -273,7 +273,7 @@ function ct(n) {
|
|
|
273
273
|
t = v("div"), s = j(e), a = R(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, f) {
|
|
276
|
-
|
|
276
|
+
k(d, t, f), h(t, s), h(t, a), h(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, f) {
|
|
279
279
|
f & /*$_*/
|
|
@@ -286,7 +286,7 @@ function ct(n) {
|
|
|
286
286
|
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && F(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -300,7 +300,7 @@ function ft(n) {
|
|
|
300
300
|
t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
k(a, t, u), h(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
@@ -308,7 +308,7 @@ function ft(n) {
|
|
|
308
308
|
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && F(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -323,24 +323,24 @@ function gt(n) {
|
|
|
323
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
324
|
},
|
|
325
325
|
m(s, a) {
|
|
326
|
-
|
|
326
|
+
k(s, t, a), e && e.m(t, null), n[17](t);
|
|
327
327
|
},
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
331
|
s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
|
-
i:
|
|
334
|
-
o:
|
|
333
|
+
i: L,
|
|
334
|
+
o: L,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && F(t), e && e.d(), n[17](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function mt(n, t, e) {
|
|
341
341
|
let s, a;
|
|
342
342
|
V(n, rt, (i) => e(8, a = i));
|
|
343
|
-
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,
|
|
343
|
+
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, w = "", C = "", _ = "";
|
|
344
344
|
const A = () => {
|
|
345
345
|
fetch(g).then((m) => m.json()).then((m) => {
|
|
346
346
|
Object.keys(m).forEach((S) => {
|
|
@@ -355,19 +355,19 @@ function mt(n, t, e) {
|
|
|
355
355
|
});
|
|
356
356
|
const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
|
|
357
357
|
const i = /* @__PURE__ */ new Date();
|
|
358
|
-
e(4,
|
|
358
|
+
e(4, w = c(i, o)), e(5, C = c(i, u)), e(6, _ = N(w));
|
|
359
359
|
}, p = (i) => {
|
|
360
360
|
const m = { month: "long" };
|
|
361
361
|
let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
|
|
362
362
|
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
363
|
-
},
|
|
364
|
-
const m = (E,
|
|
365
|
-
const
|
|
366
|
-
return
|
|
363
|
+
}, N = (i) => {
|
|
364
|
+
const m = (E, D) => E + " " + a(D), S = (E) => {
|
|
365
|
+
const D = Math.floor(E);
|
|
366
|
+
return D < 10 ? `0${D}` : `${D}`;
|
|
367
367
|
};
|
|
368
368
|
if (i < 1440) {
|
|
369
|
-
const E = i / 60,
|
|
370
|
-
return [E,
|
|
369
|
+
const E = i / 60, D = i % 60, G = (D - Math.floor(D)) * 60;
|
|
370
|
+
return [E, D, G].map((H) => S(H)).join(":");
|
|
371
371
|
}
|
|
372
372
|
return m(Math.ceil(i / (60 * 24)), "days");
|
|
373
373
|
};
|
|
@@ -393,14 +393,14 @@ function mt(n, t, e) {
|
|
|
393
393
|
}, n.$$.update = () => {
|
|
394
394
|
n.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
395
395
|
19 && e(7, s = () => {
|
|
396
|
-
if (
|
|
396
|
+
if (w <= 0)
|
|
397
397
|
return 100;
|
|
398
398
|
const i = c(u, o), m = 100 / i;
|
|
399
|
-
return Math.floor((i -
|
|
399
|
+
return Math.floor((i - w) * m);
|
|
400
400
|
}), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
401
|
-
19 && u && o && r()
|
|
401
|
+
19 && u && o && r(), n.$$.dirty & /*lang*/
|
|
402
402
|
4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
|
|
403
|
-
4112 && f &&
|
|
403
|
+
4112 && f && N(w), n.$$.dirty & /*translationurl*/
|
|
404
404
|
32768 && g && A(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
405
405
|
8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
406
406
|
16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -410,14 +410,14 @@ function mt(n, t, e) {
|
|
|
410
410
|
o,
|
|
411
411
|
d,
|
|
412
412
|
y,
|
|
413
|
-
|
|
413
|
+
w,
|
|
414
414
|
C,
|
|
415
415
|
_,
|
|
416
416
|
s,
|
|
417
417
|
a,
|
|
418
418
|
r,
|
|
419
419
|
p,
|
|
420
|
-
|
|
420
|
+
N,
|
|
421
421
|
f,
|
|
422
422
|
T,
|
|
423
423
|
b,
|