@everymatrix/casino-tournaments-list-controller 1.65.2 → 1.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsListController-QOpDP1gT.cjs → CasinoTournamentsListController-BNVcBVyF.cjs} +1 -1
- package/components/{CasinoTournamentsListController-BbMxlacs.js → CasinoTournamentsListController-C4mihNnj.js} +21 -21
- package/components/{CasinoTournamentsListController-BmResUm1.js → CasinoTournamentsListController-DySbk5VW.js} +21 -21
- package/components/{CasinoTournamentsThumbnail-BctgkfiG.js → CasinoTournamentsThumbnail-BGguyWao.js} +132 -126
- package/components/CasinoTournamentsThumbnail-Dm47dnjW.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-BLl6r3kP.js → CasinoTournamentsThumbnail-Yl8kaw-d.js} +132 -126
- package/components/{CasinoTournamentsThumbnailController-LQRpg-1c.js → CasinoTournamentsThumbnailController-D4fh4BOQ.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-Bdh5qjnp.cjs → CasinoTournamentsThumbnailController-DSTK12aD.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-qtMqHOKR.js → CasinoTournamentsThumbnailController-gMjU8WUF.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-C5E3xPWt.js → CasinoTournamentsThumbnailDuration-CM4PmXyz.js} +13 -13
- package/components/{CasinoTournamentsThumbnailDuration-BEkKAuX-.cjs → CasinoTournamentsThumbnailDuration-DotSLQks.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CLG474CZ.js → CasinoTournamentsThumbnailDuration-VhRuoa0C.js} +13 -13
- package/components/{CasinoTournamentsThumbnailGamesSlider-BZPzU1n_.js → CasinoTournamentsThumbnailGamesSlider-DPfGI_tX.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-gRsycWHT.js → CasinoTournamentsThumbnailGamesSlider-DelsM0V9.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cs5RTcj-.cjs → CasinoTournamentsThumbnailGamesSlider-QjFgAppB.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BGoHCct2.js → CasinoTournamentsThumbnailPrizes-C4W8HVKg.js} +8 -8
- package/components/{CasinoTournamentsThumbnailPrizes-1UaFyOK_.cjs → CasinoTournamentsThumbnailPrizes-CMxv0Giw.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BRyr6n6l.js → CasinoTournamentsThumbnailPrizes-qFFMpsOU.js} +8 -8
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-GGpqWUUU.cjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var te=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{u(e.next(c))}catch(d){o(d)}},a=c=>{try{u(e.throw(c))}catch(d){o(d)}},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 te=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{u(e.next(c))}catch(d){o(d)}},a=c=>{try{u(e.throw(c))}catch(d){o(d)}},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-BNVcBVyF.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 re=function(i,t){return re=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])},re(i,t)};function L(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");re(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ie(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 oe(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 se(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 x(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 ne=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 ae(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=ie(a),c=u.next();!c.done;c=u.next()){var d=c.value;d.remove(this)}}catch(w){t={error:w}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var m=this.initialTeardown;if(x(m))try{m()}catch(w){s=w instanceof ne?w.errors:[w]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var k=ie(p),b=k.next();!b.done;b=k.next()){var _=b.value;try{je(_)}catch(w){s=s!=null?s:[],w instanceof ne?s=se(se([],oe(s)),oe(w.errors)):s.push(w)}}}catch(w){r={error:w}}finally{try{b&&!b.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}}if(s)throw new ne(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)je(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)&&ae(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&ae(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&&x(i.remove)&&x(i.add)&&x(i.unsubscribe)}function je(i){x(i)?i():i.unsubscribe()}var ft={Promise:void 0},dt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,se([i,t],oe(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function mt(i){dt.setTimeout(function(){throw i})}function xe(){}function G(i){i()}var Ye=function(i){L(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=_t,r}return t.create=function(e,r,o){return new le(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),ht=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}(),le=function(i){L(t,i);function t(e,r,o){var s=i.call(this)||this,a;return x(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 ht(a),s}return t}(Ye);function q(i){mt(i)}function pt(i){throw i}var _t={closed:!0,next:xe,error:pt,complete:xe},gt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bt(i){return i}function wt(i){return i.length===0?bt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var ze=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=vt(t)?t:new le(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=Pe(e),new e(function(o,s){var a=new le({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[gt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return wt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Pe(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 Pe(i){var t;return(t=i!=null?i:ft.Promise)!==null&&t!==void 0?t:Promise}function yt(i){return i&&x(i.next)&&x(i.error)&&x(i.complete)}function vt(i){return i&&i instanceof Ye||yt(i)&&Ne(i)}var kt=qe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ke=function(i){L(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 Ce(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new kt},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=ie(r.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(d){o={error:d}}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,ae(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 ze;return e.source=this,e},t.create=function(e,r){return new Ce(e,r)},t}(ze),Ce=function(i){L(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}(Ke),Ve={now:function(){return(Ve.delegate||Date).now()},delegate:void 0},Tt=function(i){L(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ve);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(),d=0,m=1;m<s.length&&s[m]<=c;m+=2)d=m;d&&s.splice(0,d+1)}},t}(Ke);const Be=[],Oe={},St=(i,t=0)=>{if(Be.indexOf(i)==-1){const e=new Tt(t);Oe[i]=e,Be.push(i)}return Oe[i]};window.emWidgets={topic:St};const ue=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Ft({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function De(i,t){n.addMessages(i,t)}function Et(i){n.$locale.set(i)}const Le={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-GGpqWUUU.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-BEkKAuX-.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-1UaFyOK_.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-Cs5RTcj-.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function jt(i){n.append_styles(i,"svelte-chi6uq",'*,*::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 .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.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 Ae(i){let t;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Ie(i){let t,e,r=i[24]&&Me(i);return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"status",i[23]),n.set_custom_element_data(e,"startdate",i[21]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"enddate",i[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?r?r.p(o,s):(r=Me(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}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[24]),n.set_custom_element_data(t,"clientstyling",i[10]),n.set_custom_element_data(t,"clientstylingurl",i[11]),n.set_custom_element_data(t,"translationurl",i[12]),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[37].call(null,t,i[24])),r=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),r=!1,o()}}}function xt(i){let t,e=i[32]("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",i[51]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(i){let t,e,r=i[3]=="true"&&Re(i);function o(u,c){return u[26]?Bt:Ct}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 Pt(i){let t,e=i[32]("login")+"",r,o,s,a=i[32]("register")+"",u,c,d;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(m,p){n.insert(m,t,p),n.append(t,r),n.insert(m,o,p),n.insert(m,s,p),n.append(s,u),c||(d=[n.listen(t,"click",i[47]),n.listen(s,"click",i[48])],c=!0)},p(m,p){p[1]&2&&e!==(e=m[32]("login")+"")&&n.set_data(r,e),p[1]&2&&a!==(a=m[32]("register")+"")&&n.set_data(u,a)},d(m){m&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(d)}}}function Re(i){let t,e=i[32]("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",i[49]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ct(i){let t,e,r,o,s;function a(d,m){return d[16]==!0?Dt:Ot}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[17]},m(d,m){n.insert(d,t,m),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(d,m){u===(u=a(d))&&c?c.p(d,m):(c.d(1),c=u(d),c&&(c.c(),c.m(t,null))),m[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),m[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),m[0]&131072&&(t.disabled=d[17])},d(d){d&&n.detach(t),c.d(),o=!1,s()}}}function Bt(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 Ot(i){let t,e=i[32]("join")+"",r,o,s,a,u,c,d,m;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);}"),d=n.svg_element("g"),m=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(m,"class","a"),n.attr(m,"part","a JoinButtonSvgA"),n.attr(m,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(d,"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(p,k){n.insert(p,t,k),n.append(t,r),n.insert(p,o,k),n.insert(p,s,k),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,d),n.append(d,m)},p(p,k){k[1]&2&&e!==(e=p[32]("join")+"")&&n.set_data(r,e)},d(p){p&&(n.detach(t),n.detach(o),n.detach(s))}}}function Dt(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[32]("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]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Je(i){let t,e=i[32]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[18]),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]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(r,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function He(i){let t,e,r=i[15]&&We();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"tournamenturl",i[2]),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[15]?r||(r=We(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),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 We(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 Lt(i){let t,e,r,o,s,a,u,c,d,m,p,k,b=i[15]&&Ae(),_=i[14]&&Ie(i);function w(f,h){if(!f[14])return Pt;if(f[23]!="Closed"&&f[23]!="Closing")return zt;if(f[3]=="true")return xt}let E=w(i),y=E&&E(i),v=(i[17]||i[19])&&Je(i),T=i[4]=="true"&&He(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),b&&b.c(),s=n.space(),_&&_.c(),a=n.space(),u=n.element("div"),y&&y.c(),c=n.space(),v&&v.c(),d=n.space(),T&&T.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[20]),n.set_custom_element_data(r,"status",i[23]),n.set_custom_element_data(r,"startdate",i[21]),n.set_custom_element_data(r,"tourid",i[24]),n.set_custom_element_data(r,"scorecriteria",i[27]),n.set_custom_element_data(r,"minbetcount",i[28]),n.set_custom_element_data(r,"thumbnail",i[25]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[30]),n.set_custom_element_data(r,"userenrolled",i[26]),n.set_custom_element_data(r,"clientstyling",i[10]),n.set_custom_element_data(r,"clientstylingurl",i[11]),n.set_custom_element_data(r,"translationurl",i[12]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[9]),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(u,"class","TournamentButtons"),n.attr(u,"part","TournamentButtons"),n.attr(e,"class",m="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",p="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",k=`${i[15]?"Loading":""}`)},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(e,r),n.append(e,o),b&&b.m(e,null),n.append(e,s),_&&_.m(e,null),n.append(e,a),n.append(e,u),y&&y.m(u,null),n.append(e,c),v&&v.m(e,null),n.append(e,d),T&&T.m(e,null),i[52](t)},p(f,h){h[0]&1&&n.set_custom_element_data(r,"session",f[0]),h[0]&2&&n.set_custom_element_data(r,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(r,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(r,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(r,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(r,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(r,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(r,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(r,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(r,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(r,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(r,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(r,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(r,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(r,"lang",f[8]),h[0]&512&&n.set_custom_element_data(r,"keepbrowsercontext",f[9]),f[15]?b||(b=Ae(),b.c(),b.m(e,s)):b&&(b.d(1),b=null),f[14]?_?_.p(f,h):(_=Ie(f),_.c(),_.m(e,a)):_&&(_.d(1),_=null),E===(E=w(f))&&y?y.p(f,h):(y&&y.d(1),y=E&&E(f),y&&(y.c(),y.m(u,null))),f[17]||f[19]?v?v.p(f,h):(v=Je(f),v.c(),v.m(e,d)):v&&(v.d(1),v=null),f[4]=="true"?T?T.p(f,h):(T=He(f),T.c(),T.m(e,null)):T&&(T.d(1),T=null),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",m),h[0]&192|h[1]&1&&p!==(p="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",p),h[0]&32768&&k!==(k=`${f[15]?"Loading":""}`)&&n.attr(t,"class",k)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),b&&b.d(),_&&_.d(),y&&y.d(),v&&v.d(),T&&T.d(),i[52](null)}}}function At(i,t,e){let r;n.component_subscribe(i,n.$format,l=>e(32,r=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:d=""}=t,{showslider:m=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:_=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:y=""}=t,{registerurl:v=""}=t,{currency:T=""}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:h=""}=t,{clientstylingurl:A=""}=t,{translationurl:I=""}=t,{tournamentinfo:M}=t,z,C=!1,R="",B=!0,ce=window.navigator.userAgent,U=!1,J=!1,fe="There was an error while trying to join the tournament",Y=!1,K,de,me,O,j,he,V,pe,_e,ge=[],X=[],be="#",Z,H=!1;Ft({withLocale:"en",translations:{}});const Ze=()=>{fetch(I).then(g=>g.json()).then(g=>{Object.keys(g).forEach(S=>{De(S,g[S])})}).catch(g=>{console.log(g)})};Object.keys(Le).forEach(l=>{De(l,Le[l])});const we=l=>{Qe(l),$(l),Se(this,j)},ye=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),R=l.data.session),l.data.type=="UpdateTournamentView"){let g=l.data.tournamentData;if(j&&j!=g.id)return;we(g)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let g=l.data.tournamentData,S=u<4?u*100:Math.random()*300+300;e(31,H=u==1),setTimeout(()=>{e(31,H=!0),e(24,j=g.id),we(g)},S),setTimeout(()=>{e(31,H=!1)},S+200)}},Qe=l=>{l.state!=O&&(e(23,O=l.state),window.postMessage({type:`TournamentStatus_${j}`,status:O},window.location.href))},ve=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),y&&(window.location=y)},ke=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),v&&(window.location=v)},Q=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Te=(l,g)=>te(this,null,function*(){var Ee;e(17,J=!1),e(19,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,U=!0);let S=new URL(`${c}/v1/bonus/claim`),W=new Headers,P={};S.searchParams.append("language",_),S.searchParams.append("platform",ue(ce)),W.append("Content-Type","application/json"),W.append("X-SessionID",R),g&&g.length>=1&&(P={language:_,bonusCode:g[0].code,currency:T,type:"tournament"});let ct={method:"PUT",headers:W,body:JSON.stringify(P)};const Fe=()=>{e(16,U=!1),e(26,V=!0)},ee=F=>{e(16,U=!1),F&&e(18,fe=F),e(17,J=!0)},D=yield te(this,null,function*(){let F;try{F=yield fetch(S,ct),F=yield F.json()}catch(Rt){ee()}return F});if(D)if(D.success==!0)Fe();else if(D.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${c}/tournaments/${j}`,{headers:{"X-SessionID":o}}),F=yield F.json(),(Ee=F==null?void 0:F.item)!=null&&Ee.playerEnrolled?Fe():(ee(D.errorMessage),e(19,Y=!0),e(17,J=!1))}else ee(D.errorMessage)}),Se=(l,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:ge},window.location.href)},$=l=>{l&&(e(20,K=l.nameOrTitle||""),e(21,de=l.startTime),e(22,me=l.endTime),e(23,O=l.state),e(24,j=l.id),e(25,he=l.thumbnail),e(26,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,pe=l.scoreCriteria),e(28,_e=l.minBetCount),ge=l.prizes,e(29,X=l.wallets||[]),e(30,be=l.termsUrl||"#"))},$e=l=>{e(15,B=!0);let g=new URL(l),S=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",ue(ce)),C&&S.append("X-SessionID",R),fetch(g,{method:"GET",headers:S}).then(P=>P.json()).then(P=>{$(P.item)}).finally(()=>{e(15,B=!1)})},et=()=>{o.length>0&&o!="false"?(R=o,e(14,C=!0)):e(14,C=!1)},tt=()=>{if(M){$(M);return}e(15,B=!0),$e(a)},nt=()=>{let l=document.createElement("style");l.innerHTML=h,z.appendChild(l)},rt=()=>{let l=new URL(A),g=document.createElement("style");fetch(l.href).then(S=>S.text()).then(S=>{g.innerHTML=S,setTimeout(()=>{z.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,B=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ye,!1),()=>{window.removeEventListener("message",ye)}));const it=()=>ve(),ot=()=>ke(),st=()=>Q(j),at=()=>Te(j,X),lt=()=>Q(j);function ut(l){n.binding_callbacks[l?"unshift":"push"](()=>{z=l,e(13,z)})}return i.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(38,u=l.touridx),"endpoint"in l&&e(39,c=l.endpoint),"showdetails"in l&&e(3,d=l.showdetails),"showslider"in l&&e(4,m=l.showslider),"showenrolled"in l&&e(5,p=l.showenrolled),"maxwidth"in l&&e(6,k=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,_=l.lang),"loginevent"in l&&e(40,w=l.loginevent),"registerevent"in l&&e(41,E=l.registerevent),"loginurl"in l&&e(42,y=l.loginurl),"registerurl"in l&&e(43,v=l.registerurl),"currency"in l&&e(44,T=l.currency),"keepbrowsercontext"in l&&e(9,f=l.keepbrowsercontext),"clientstyling"in l&&e(10,h=l.clientstyling),"clientstylingurl"in l&&e(11,A=l.clientstylingurl),"translationurl"in l&&e(12,I=l.translationurl),"tournamentinfo"in l&&e(45,M=l.tournamentinfo)},i.$$.update=()=>{i.$$.dirty[0]&256&&_&&Et(_),i.$$.dirty[0]&9216&&z&&h&&nt(),i.$$.dirty[0]&10240&&z&&A&&rt(),i.$$.dirty[0]&4096&&I&&Ze(),i.$$.dirty[0]&1&&o&&et(),i.$$.dirty[0]&260&&e(46,Z=a&&_),i.$$.dirty[1]&32768&&Z&&tt()},[o,s,a,d,m,p,k,b,_,f,h,A,I,z,C,B,U,J,fe,Y,K,de,me,O,j,he,V,pe,_e,X,be,H,r,ve,ke,Q,Te,Se,u,c,w,E,y,v,T,M,Z,it,ot,st,at,lt,ut]}class Xe extends n.SvelteComponent{constructor(t){super(),n.init(this,t,At,Lt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},jt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}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[38]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[39]}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[40]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Xe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const It=Object.freeze(Object.defineProperty({__proto__:null,default:Xe},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=It;exports.getDevice=ue;
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function ae(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=ie(a),c=u.next();!c.done;c=u.next()){var d=c.value;d.remove(this)}}catch(w){t={error:w}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var m=this.initialTeardown;if(x(m))try{m()}catch(w){s=w instanceof ne?w.errors:[w]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var k=ie(p),b=k.next();!b.done;b=k.next()){var _=b.value;try{je(_)}catch(w){s=s!=null?s:[],w instanceof ne?s=se(se([],oe(s)),oe(w.errors)):s.push(w)}}}catch(w){r={error:w}}finally{try{b&&!b.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}}if(s)throw new ne(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)je(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)&&ae(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&ae(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&&x(i.remove)&&x(i.add)&&x(i.unsubscribe)}function je(i){x(i)?i():i.unsubscribe()}var ft={Promise:void 0},dt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,se([i,t],oe(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function mt(i){dt.setTimeout(function(){throw i})}function xe(){}function G(i){i()}var Ye=function(i){L(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=_t,r}return t.create=function(e,r,o){return new le(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),ht=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}(),le=function(i){L(t,i);function t(e,r,o){var s=i.call(this)||this,a;return x(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 ht(a),s}return t}(Ye);function q(i){mt(i)}function pt(i){throw i}var _t={closed:!0,next:xe,error:pt,complete:xe},gt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function bt(i){return i}function wt(i){return i.length===0?bt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var ze=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=vt(t)?t:new le(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=Pe(e),new e(function(o,s){var a=new le({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[gt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return wt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Pe(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 Pe(i){var t;return(t=i!=null?i:ft.Promise)!==null&&t!==void 0?t:Promise}function yt(i){return i&&x(i.next)&&x(i.error)&&x(i.complete)}function vt(i){return i&&i instanceof Ye||yt(i)&&Ne(i)}var kt=qe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ke=function(i){L(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 Ce(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new kt},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=ie(r.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(d){o={error:d}}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,ae(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 ze;return e.source=this,e},t.create=function(e,r){return new Ce(e,r)},t}(ze),Ce=function(i){L(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}(Ke),Ve={now:function(){return(Ve.delegate||Date).now()},delegate:void 0},Tt=function(i){L(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ve);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(),d=0,m=1;m<s.length&&s[m]<=c;m+=2)d=m;d&&s.splice(0,d+1)}},t}(Ke);const Be=[],Oe={},St=(i,t=0)=>{if(Be.indexOf(i)==-1){const e=new Tt(t);Oe[i]=e,Be.push(i)}return Oe[i]};window.emWidgets={topic:St};const ue=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Ft({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function De(i,t){n.addMessages(i,t)}function Et(i){n.$locale.set(i)}const Le={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-Dm47dnjW.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-DotSLQks.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-CMxv0Giw.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-QjFgAppB.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function jt(i){n.append_styles(i,"svelte-chi6uq",'*,*::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 .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.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 Ae(i){let t;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Ie(i){let t,e,r=i[24]&&Me(i);return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"status",i[23]),n.set_custom_element_data(e,"startdate",i[21]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"enddate",i[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?r?r.p(o,s):(r=Me(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}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[24]),n.set_custom_element_data(t,"clientstyling",i[10]),n.set_custom_element_data(t,"clientstylingurl",i[11]),n.set_custom_element_data(t,"translationurl",i[12]),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[37].call(null,t,i[24])),r=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),r=!1,o()}}}function xt(i){let t,e=i[32]("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",i[51]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(i){let t,e,r=i[3]=="true"&&Re(i);function o(u,c){return u[26]?Bt:Ct}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 Pt(i){let t,e=i[32]("login")+"",r,o,s,a=i[32]("register")+"",u,c,d;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(m,p){n.insert(m,t,p),n.append(t,r),n.insert(m,o,p),n.insert(m,s,p),n.append(s,u),c||(d=[n.listen(t,"click",i[47]),n.listen(s,"click",i[48])],c=!0)},p(m,p){p[1]&2&&e!==(e=m[32]("login")+"")&&n.set_data(r,e),p[1]&2&&a!==(a=m[32]("register")+"")&&n.set_data(u,a)},d(m){m&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(d)}}}function Re(i){let t,e=i[32]("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",i[49]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ct(i){let t,e,r,o,s;function a(d,m){return d[16]==!0?Dt:Ot}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[17]},m(d,m){n.insert(d,t,m),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(d,m){u===(u=a(d))&&c?c.p(d,m):(c.d(1),c=u(d),c&&(c.c(),c.m(t,null))),m[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),m[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),m[0]&131072&&(t.disabled=d[17])},d(d){d&&n.detach(t),c.d(),o=!1,s()}}}function Bt(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 Ot(i){let t,e=i[32]("join")+"",r,o,s,a,u,c,d,m;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);}"),d=n.svg_element("g"),m=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(m,"class","a"),n.attr(m,"part","a JoinButtonSvgA"),n.attr(m,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(d,"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(p,k){n.insert(p,t,k),n.append(t,r),n.insert(p,o,k),n.insert(p,s,k),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,d),n.append(d,m)},p(p,k){k[1]&2&&e!==(e=p[32]("join")+"")&&n.set_data(r,e)},d(p){p&&(n.detach(t),n.detach(o),n.detach(s))}}}function Dt(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[32]("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]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Je(i){let t,e=i[32]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[18]),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]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(r,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function He(i){let t,e,r=i[15]&&We();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"tournamenturl",i[2]),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[15]?r||(r=We(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),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 We(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 Lt(i){let t,e,r,o,s,a,u,c,d,m,p,k,b=i[15]&&Ae(),_=i[14]&&Ie(i);function w(f,h){if(!f[14])return Pt;if(f[23]!="Closed"&&f[23]!="Closing")return zt;if(f[3]=="true")return xt}let E=w(i),y=E&&E(i),v=(i[17]||i[19])&&Je(i),T=i[4]=="true"&&He(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),b&&b.c(),s=n.space(),_&&_.c(),a=n.space(),u=n.element("div"),y&&y.c(),c=n.space(),v&&v.c(),d=n.space(),T&&T.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[20]),n.set_custom_element_data(r,"status",i[23]),n.set_custom_element_data(r,"startdate",i[21]),n.set_custom_element_data(r,"tourid",i[24]),n.set_custom_element_data(r,"scorecriteria",i[27]),n.set_custom_element_data(r,"minbetcount",i[28]),n.set_custom_element_data(r,"thumbnail",i[25]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[30]),n.set_custom_element_data(r,"userenrolled",i[26]),n.set_custom_element_data(r,"clientstyling",i[10]),n.set_custom_element_data(r,"clientstylingurl",i[11]),n.set_custom_element_data(r,"translationurl",i[12]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[9]),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(u,"class","TournamentButtons"),n.attr(u,"part","TournamentButtons"),n.attr(e,"class",m="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",p="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",k=`${i[15]?"Loading":""}`)},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(e,r),n.append(e,o),b&&b.m(e,null),n.append(e,s),_&&_.m(e,null),n.append(e,a),n.append(e,u),y&&y.m(u,null),n.append(e,c),v&&v.m(e,null),n.append(e,d),T&&T.m(e,null),i[52](t)},p(f,h){h[0]&1&&n.set_custom_element_data(r,"session",f[0]),h[0]&2&&n.set_custom_element_data(r,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(r,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(r,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(r,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(r,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(r,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(r,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(r,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(r,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(r,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(r,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(r,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(r,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(r,"lang",f[8]),h[0]&512&&n.set_custom_element_data(r,"keepbrowsercontext",f[9]),f[15]?b||(b=Ae(),b.c(),b.m(e,s)):b&&(b.d(1),b=null),f[14]?_?_.p(f,h):(_=Ie(f),_.c(),_.m(e,a)):_&&(_.d(1),_=null),E===(E=w(f))&&y?y.p(f,h):(y&&y.d(1),y=E&&E(f),y&&(y.c(),y.m(u,null))),f[17]||f[19]?v?v.p(f,h):(v=Je(f),v.c(),v.m(e,d)):v&&(v.d(1),v=null),f[4]=="true"?T?T.p(f,h):(T=He(f),T.c(),T.m(e,null)):T&&(T.d(1),T=null),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",m),h[0]&192|h[1]&1&&p!==(p="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",p),h[0]&32768&&k!==(k=`${f[15]?"Loading":""}`)&&n.attr(t,"class",k)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),b&&b.d(),_&&_.d(),y&&y.d(),v&&v.d(),T&&T.d(),i[52](null)}}}function At(i,t,e){let r;n.component_subscribe(i,n.$format,l=>e(32,r=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:d=""}=t,{showslider:m=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:_=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:y=""}=t,{registerurl:v=""}=t,{currency:T=""}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:h=""}=t,{clientstylingurl:A=""}=t,{translationurl:I=""}=t,{tournamentinfo:M}=t,z,C=!1,R="",B=!0,ce=window.navigator.userAgent,U=!1,J=!1,fe="There was an error while trying to join the tournament",Y=!1,K,de,me,O,j,he,V,pe,_e,ge=[],X=[],be="#",Z,H=!1;Ft({withLocale:"en",translations:{}});const Ze=()=>{fetch(I).then(g=>g.json()).then(g=>{Object.keys(g).forEach(S=>{De(S,g[S])})}).catch(g=>{console.log(g)})};Object.keys(Le).forEach(l=>{De(l,Le[l])});const we=l=>{Qe(l),$(l),Se(this,j)},ye=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),R=l.data.session),l.data.type=="UpdateTournamentView"){let g=l.data.tournamentData;if(j&&j!=g.id)return;we(g)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let g=l.data.tournamentData,S=u<4?u*100:Math.random()*300+300;e(31,H=u==1),setTimeout(()=>{e(31,H=!0),e(24,j=g.id),we(g)},S),setTimeout(()=>{e(31,H=!1)},S+200)}},Qe=l=>{l.state!=O&&(e(23,O=l.state),window.postMessage({type:`TournamentStatus_${j}`,status:O},window.location.href))},ve=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),y&&(window.location=y)},ke=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),v&&(window.location=v)},Q=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Te=(l,g)=>te(this,null,function*(){var Ee;e(17,J=!1),e(19,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,U=!0);let S=new URL(`${c}/v1/bonus/claim`),W=new Headers,P={};S.searchParams.append("language",_),S.searchParams.append("platform",ue(ce)),W.append("Content-Type","application/json"),W.append("X-SessionID",R),g&&g.length>=1&&(P={language:_,bonusCode:g[0].code,currency:T,type:"tournament"});let ct={method:"PUT",headers:W,body:JSON.stringify(P)};const Fe=()=>{e(16,U=!1),e(26,V=!0)},ee=F=>{e(16,U=!1),F&&e(18,fe=F),e(17,J=!0)},D=yield te(this,null,function*(){let F;try{F=yield fetch(S,ct),F=yield F.json()}catch(Rt){ee()}return F});if(D)if(D.success==!0)Fe();else if(D.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${c}/tournaments/${j}`,{headers:{"X-SessionID":o}}),F=yield F.json(),(Ee=F==null?void 0:F.item)!=null&&Ee.playerEnrolled?Fe():(ee(D.errorMessage),e(19,Y=!0),e(17,J=!1))}else ee(D.errorMessage)}),Se=(l,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:ge},window.location.href)},$=l=>{l&&(e(20,K=l.nameOrTitle||""),e(21,de=l.startTime),e(22,me=l.endTime),e(23,O=l.state),e(24,j=l.id),e(25,he=l.thumbnail),e(26,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,pe=l.scoreCriteria),e(28,_e=l.minBetCount),ge=l.prizes,e(29,X=l.wallets||[]),e(30,be=l.termsUrl||"#"))},$e=l=>{e(15,B=!0);let g=new URL(l),S=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",ue(ce)),C&&S.append("X-SessionID",R),fetch(g,{method:"GET",headers:S}).then(P=>P.json()).then(P=>{$(P.item)}).finally(()=>{e(15,B=!1)})},et=()=>{o.length>0&&o!="false"?(R=o,e(14,C=!0)):e(14,C=!1)},tt=()=>{if(M){$(M);return}e(15,B=!0),$e(a)},nt=()=>{let l=document.createElement("style");l.innerHTML=h,z.appendChild(l)},rt=()=>{let l=new URL(A),g=document.createElement("style");fetch(l.href).then(S=>S.text()).then(S=>{g.innerHTML=S,setTimeout(()=>{z.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,B=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ye,!1),()=>{window.removeEventListener("message",ye)}));const it=()=>ve(),ot=()=>ke(),st=()=>Q(j),at=()=>Te(j,X),lt=()=>Q(j);function ut(l){n.binding_callbacks[l?"unshift":"push"](()=>{z=l,e(13,z)})}return i.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(38,u=l.touridx),"endpoint"in l&&e(39,c=l.endpoint),"showdetails"in l&&e(3,d=l.showdetails),"showslider"in l&&e(4,m=l.showslider),"showenrolled"in l&&e(5,p=l.showenrolled),"maxwidth"in l&&e(6,k=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,_=l.lang),"loginevent"in l&&e(40,w=l.loginevent),"registerevent"in l&&e(41,E=l.registerevent),"loginurl"in l&&e(42,y=l.loginurl),"registerurl"in l&&e(43,v=l.registerurl),"currency"in l&&e(44,T=l.currency),"keepbrowsercontext"in l&&e(9,f=l.keepbrowsercontext),"clientstyling"in l&&e(10,h=l.clientstyling),"clientstylingurl"in l&&e(11,A=l.clientstylingurl),"translationurl"in l&&e(12,I=l.translationurl),"tournamentinfo"in l&&e(45,M=l.tournamentinfo)},i.$$.update=()=>{i.$$.dirty[0]&256&&_&&Et(_),i.$$.dirty[0]&9216&&z&&h&&nt(),i.$$.dirty[0]&10240&&z&&A&&rt(),i.$$.dirty[0]&4096&&I&&Ze(),i.$$.dirty[0]&1&&o&&et(),i.$$.dirty[0]&260&&e(46,Z=a&&_),i.$$.dirty[1]&32768&&Z&&tt()},[o,s,a,d,m,p,k,b,_,f,h,A,I,z,C,B,U,J,fe,Y,K,de,me,O,j,he,V,pe,_e,X,be,H,r,ve,ke,Q,Te,Se,u,c,w,E,y,v,T,M,Z,it,ot,st,at,lt,ut]}class Xe extends n.SvelteComponent{constructor(t){super(),n.init(this,t,At,Lt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},jt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}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[38]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[39]}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[40]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Xe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const It=Object.freeze(Object.defineProperty({__proto__:null,default:Xe},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=It;exports.getDevice=ue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as me,
|
|
1
|
+
import { $ as me, a as St, b as Tt, S as Ft, i as Et, f as S, s as jt, z as zt, c as Ct, n as he, d as v, x as u, e as d, g as _, h as y, j as C, k as D, l as Pt, o as xt, m as I, t as L, p as Bt, q as Ot, u as Dt, v as G, r as tt, B as R, y as At, A as Lt } from "./CasinoTournamentsListController-DySbk5VW.js";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -634,7 +634,7 @@ if (typeof window < "u") {
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
};
|
|
637
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
637
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-Yl8kaw-d.js").then(({ default: t }) => {
|
|
638
638
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
639
639
|
});
|
|
640
640
|
}
|
|
@@ -650,7 +650,7 @@ if (typeof window < "u") {
|
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
652
|
};
|
|
653
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
653
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-CM4PmXyz.js").then(({ default: t }) => {
|
|
654
654
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
655
655
|
"casino-tournaments-thumbnail-duration",
|
|
656
656
|
t.element
|
|
@@ -669,7 +669,7 @@ if (typeof window < "u") {
|
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
671
|
};
|
|
672
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
672
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-qFFMpsOU.js").then(({ default: t }) => {
|
|
673
673
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
674
674
|
});
|
|
675
675
|
}
|
|
@@ -685,7 +685,7 @@ if (typeof window < "u") {
|
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
};
|
|
688
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
688
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-DelsM0V9.js").then(
|
|
689
689
|
({ default: t }) => {
|
|
690
690
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
691
691
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as C, c as Q, n as U, d as T, g as B, j as v, e as l, l as V, o as X, m as E, h as m, q as $, t as M, k as L, p as tt, C as A, z as et, A as nt } from "./CasinoTournamentsListController-DySbk5VW.js";
|
|
2
|
+
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const O = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const A = {
|
|
|
95
95
|
function it(i) {
|
|
96
96
|
Q(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function q(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -173,7 +173,7 @@ function st(i) {
|
|
|
173
173
|
let t;
|
|
174
174
|
return {
|
|
175
175
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
176
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), A(
|
|
177
177
|
t,
|
|
178
178
|
"width",
|
|
179
179
|
/*getProgress*/
|
|
@@ -185,7 +185,7 @@ function st(i) {
|
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
188
|
+
128 && A(
|
|
189
189
|
t,
|
|
190
190
|
"width",
|
|
191
191
|
/*getProgress*/
|
|
@@ -316,7 +316,7 @@ function dt(i) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
i[0] && /*enddate*/
|
|
319
|
-
i[1] &&
|
|
319
|
+
i[1] && q(i)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,7 +328,7 @@ function dt(i) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
@@ -344,14 +344,14 @@ function ct(i, t, e) {
|
|
|
344
344
|
const z = () => {
|
|
345
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
346
346
|
Object.keys(c).forEach((_) => {
|
|
347
|
-
|
|
347
|
+
N(_, c[_]);
|
|
348
348
|
});
|
|
349
349
|
}).catch((c) => {
|
|
350
350
|
console.log(c);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
353
|
+
Object.keys(O).forEach((n) => {
|
|
354
|
+
N(n, O[n]);
|
|
355
355
|
});
|
|
356
356
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
357
357
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -373,7 +373,7 @@ function ct(i, t, e) {
|
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, H = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -418,7 +418,7 @@ function ct(i, t, e) {
|
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && H();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-BNVcBVyF.cjs");function C(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function I(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,L=(F-Math.floor(F))*60;return[k,F,L].map(x=>p(x)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},I)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as C, c as Q, n as U, d as T, g as B, j as v, e as l, l as V, o as X, m as E, h as m, q as $, t as M, k as L, p as tt, C as A, z as et, A as nt } from "./CasinoTournamentsListController-C4mihNnj.js";
|
|
2
|
+
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const O = {
|
|
6
6
|
en: {
|
|
7
7
|
finished: "Finished",
|
|
8
8
|
starting: "Starting in ",
|
|
@@ -95,7 +95,7 @@ const A = {
|
|
|
95
95
|
function it(i) {
|
|
96
96
|
Q(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function q(i) {
|
|
99
99
|
let t, e, s = (
|
|
100
100
|
/*formatDate*/
|
|
101
101
|
i[10](
|
|
@@ -173,7 +173,7 @@ function st(i) {
|
|
|
173
173
|
let t;
|
|
174
174
|
return {
|
|
175
175
|
c() {
|
|
176
|
-
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"),
|
|
176
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), A(
|
|
177
177
|
t,
|
|
178
178
|
"width",
|
|
179
179
|
/*getProgress*/
|
|
@@ -185,7 +185,7 @@ function st(i) {
|
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
188
|
-
128 &&
|
|
188
|
+
128 && A(
|
|
189
189
|
t,
|
|
190
190
|
"width",
|
|
191
191
|
/*getProgress*/
|
|
@@ -316,7 +316,7 @@ function dt(i) {
|
|
|
316
316
|
let t, e = (
|
|
317
317
|
/*startdate*/
|
|
318
318
|
i[0] && /*enddate*/
|
|
319
|
-
i[1] &&
|
|
319
|
+
i[1] && q(i)
|
|
320
320
|
);
|
|
321
321
|
return {
|
|
322
322
|
c() {
|
|
@@ -328,7 +328,7 @@ function dt(i) {
|
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
330
330
|
s[0] && /*enddate*/
|
|
331
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
331
|
+
s[1] ? e ? e.p(s, a) : (e = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
332
332
|
},
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
@@ -344,14 +344,14 @@ function ct(i, t, e) {
|
|
|
344
344
|
const z = () => {
|
|
345
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
346
346
|
Object.keys(c).forEach((_) => {
|
|
347
|
-
|
|
347
|
+
N(_, c[_]);
|
|
348
348
|
});
|
|
349
349
|
}).catch((c) => {
|
|
350
350
|
console.log(c);
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
Object.keys(
|
|
354
|
-
|
|
353
|
+
Object.keys(O).forEach((n) => {
|
|
354
|
+
N(n, O[n]);
|
|
355
355
|
});
|
|
356
356
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
357
357
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -373,7 +373,7 @@ function ct(i, t, e) {
|
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, H = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -418,7 +418,7 @@ function ct(i, t, e) {
|
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && H();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as M, c as Se, n as x, d as G, g as I, j as S, l as Te, o as Fe, D as J, E as Me, u as te, F as C, C as Y, h as v, G as Ee, v as L, k as z, e as c, H as Pe, p as D, m as Be, w as Z, t as Le, z as He, A as je } from "./CasinoTournamentsListController-C4mihNnj.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-D4fh4BOQ.js";
|
|
3
3
|
function K(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as M, c as Se, n as x, d as G, g as I, j as S, l as Te, o as Fe, D as J, E as Me, u as te, F as C, C as Y, h as v, G as Ee, v as L, k as z, e as c, H as Pe, p as D, m as Be, w as Z, t as Le, z as He, A as je } from "./CasinoTournamentsListController-DySbk5VW.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-gMjU8WUF.js";
|
|
3
3
|
function K(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-BNVcBVyF.cjs"),ie=require("./CasinoTournamentsThumbnailController-DSTK12aD.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function oe(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function ce(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ue=30;function de(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,C=!1,E,S,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const L=l=>{n(5,C=!0),n(6,E=l)},j=()=>{n(5,C=!1),n(6,E=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,T=P-f,se=B-k;Math.abs(T)>Math.abs(se)&&(T>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ue},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",ie.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(T=>T.json()).then(T=>{n(1,v=T.item.games.items),T.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(S.scrollWidth-S.clientWidth)*-1),n(16,s=new String(S.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>L(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{S=l,n(7,S)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,C,E,S,i,d,m,L,j,F,A,_,s,p,y,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,de,ce,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},oe,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|