@everymatrix/casino-tournaments-list-controller 1.0.69 → 1.0.71

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.
@@ -0,0 +1,3 @@
1
+ "use strict";var N=(n,t,e)=>new Promise((r,s)=>{var o=m=>{try{a(e.next(m))}catch(f){s(f)}},l=m=>{try{a(e.throw(m))}catch(f){s(f)}},a=m=>m.done?r(m.value):Promise.resolve(m.value).then(o,l);a((e=e.apply(n,t)).next())});const i=require("./CasinoTournamentsListController-CnWQaXVa.cjs");function k(n){return typeof n=="function"}function Me(n){var t=function(r){Error.call(r),r.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Z=Me(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(r,s){return s+1+") "+r.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function $(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var W=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,r,s,o;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var a=i.__values(l),m=a.next();!m.done;m=a.next()){var f=m.value;f.remove(this)}}catch(h){t={error:h}}finally{try{m&&!m.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else l.remove(this);var d=this.initialTeardown;if(k(d))try{d()}catch(h){o=h instanceof Z?h.errors:[h]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var z=i.__values(v),g=z.next();!g.done;g=z.next()){var b=g.value;try{ye(b)}catch(h){o=o!=null?o:[],h instanceof Z?o=i.__spreadArray(i.__spreadArray([],i.__read(o)),i.__read(h.errors)):o.push(h)}}}catch(h){r={error:h}}finally{try{g&&!g.done&&(s=z.return)&&s.call(z)}finally{if(r)throw r.error}}}if(o)throw new Z(o)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ye(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&$(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&$(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),Le=W.EMPTY;function Re(n){return n instanceof W||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function ye(n){k(n)?n():n.unsubscribe()}var Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Je={setTimeout:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,i.__spreadArray([n,t],i.__read(e)))},clearTimeout:function(n){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function ot(n){Je.setTimeout(function(){throw n})}function Te(){}function J(n){n()}var We=function(n){i.__extends(t,n);function t(e){var r=n.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Re(e)&&e.add(r)):r.destination=mt,r}return t.create=function(e,r,s){return new ee(e,r,s)},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,n.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}(W),lt=Function.prototype.bind;function Q(n,t){return lt.call(n,t)}var at=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){U(r)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){U(r)}else U(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){U(e)}},n}(),ee=function(n){i.__extends(t,n);function t(e,r,s){var o=n.call(this)||this,l;if(k(e)||!e)l={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:s!=null?s:void 0};else{var a;o&&Ue.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return o.unsubscribe()},l={next:e.next&&Q(e.next,a),error:e.error&&Q(e.error,a),complete:e.complete&&Q(e.complete,a)}):l=e}return o.destination=new at(l),o}return t}(We);function U(n){ot(n)}function ut(n){throw n}var mt={closed:!0,next:Te,error:ut,complete:Te},ct=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(n){return n}function ft(n){return n.length===0?dt:n.length===1?n[0]:function(e){return n.reduce(function(r,s){return s(r)},e)}}var ke=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var s=this,o=pt(t)?t:new ee(t,e,r);return J(function(){var l=s,a=l.operator,m=l.source;o.add(a?a.call(o,m):m?s._subscribe(o):s._trySubscribe(o))}),o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var r=this;return e=Fe(e),new e(function(s,o){var l=new ee({next:function(a){try{t(a)}catch(m){o(m),l.unsubscribe()}},error:o,complete:s});r.subscribe(l)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[ct]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ft(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Fe(t),new t(function(r,s){var o;e.subscribe(function(l){return o=l},function(l){return s(l)},function(){return r(o)})})},n.create=function(t){return new n(t)},n}();function Fe(n){var t;return(t=n!=null?n:Ue.Promise)!==null&&t!==void 0?t:Promise}function ht(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function pt(n){return n&&n instanceof We||ht(n)&&Re(n)}var _t=Me(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),He=function(n){i.__extends(t,n);function t(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Se(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new _t},t.prototype.next=function(e){var r=this;J(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var l=i.__values(r.currentObservers),a=l.next();!a.done;a=l.next()){var m=a.value;m.next(e)}}catch(f){s={error:f}}finally{try{a&&!a.done&&(o=l.return)&&o.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var r=this;J(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var s=r.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;J(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(),n.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,s=this,o=s.hasError,l=s.isStopped,a=s.observers;return o||l?Le:(this.currentObservers=null,a.push(e),new W(function(){r.currentObservers=null,$(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,s=r.hasError,o=r.thrownError,l=r.isStopped;s?e.error(o):l&&e.complete()},t.prototype.asObservable=function(){var e=new ke;return e.source=this,e},t.create=function(e,r){return new Se(e,r)},t}(ke),Se=function(n){i.__extends(t,n);function t(e,r){var s=n.call(this)||this;return s.destination=e,s.source=r,s}return t.prototype.next=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,e)},t.prototype.error=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.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,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&s!==void 0?s:Le},t}(He),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},vt=function(n){i.__extends(t,n);function t(e,r,s){e===void 0&&(e=1/0),r===void 0&&(r=1/0),s===void 0&&(s=qe);var o=n.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(e){var r=this,s=r.isStopped,o=r._buffer,l=r._infiniteTimeWindow,a=r._timestampProvider,m=r._windowTime;s||(o.push(e),!l&&o.push(a.now()+m)),this._trimBuffer(),n.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),s=this,o=s._infiniteTimeWindow,l=s._buffer,a=l.slice(),m=0;m<a.length&&!e.closed;m+=o?1:2)e.next(a[m]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,s=e._timestampProvider,o=e._buffer,l=e._infiniteTimeWindow,a=(l?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!l){for(var m=s.now(),f=0,d=1;d<o.length&&o[d]<=m;d+=2)f=d;f&&o.splice(0,f+1)}},t}(He);const Ce=[],Ee={},gt=(n,t=0)=>{if(Ce.indexOf(n)==-1){const e=new vt(t);Ee[n]=e,Ce.push(n)}return Ee[n]};window.emWidgets={topic:gt};const te=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function bt({withLocale:n,translations:t}){i.$locale.subscribe(e=>{e==null&&(i.$dictionary.set(t),i.$locale.set(n))})}function je(n,t){i.addMessages(n,t)}const Pe={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{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":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"}},ro:{tournamentsThController:{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:{tournamentsThController:{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:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{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:{tournamentsThController:{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:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BFbGzpfu.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-eGvQ1qhM.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CEt0S6e4.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BO_HF7nJ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function zt(n){i.append_styles(n,"svelte-m5izi2",'.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.TournamentCard.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.CardMaxWidth.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{max-width:600px}.TournamentButtons.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons.svelte-m5izi2 button.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.EnrolledButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.ErrorText.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::after,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::before{box-sizing:border-box}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::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(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:svelte-m5izi2-phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item.svelte-m5izi2>.svelte-m5izi2.svelte-m5izi2{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row.svelte-m5izi2 div.svelte-m5izi2.svelte-m5izi2{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row.svelte-m5izi2 .big.svelte-m5izi2.svelte-m5izi2{height:20px}.ph-row.svelte-m5izi2 .empty.svelte-m5izi2.svelte-m5izi2{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 33.3333333333%}.ph-col-6.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 50%}.ph-col-8.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 66.6666666667%}.ph-col-12.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 100%}[class*=ph-col].svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{direction:ltr}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.ph-row.svelte-m5izi2{margin-top:0}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.svelte-m5izi2{margin-top:7.5px}.ph-picture.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes svelte-m5izi2-phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner.svelte-m5izi2 circle.svelte-m5izi2.svelte-m5izi2{fill:transparent;stroke:var(--emfe-w-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:svelte-m5izi2-spinner 2s linear infinite;-moz-animation:svelte-m5izi2-spinner 2s linear infinite;-ms-animation:svelte-m5izi2-spinner 2s linear infinite;-o-animation:svelte-m5izi2-spinner 2s linear infinite;animation:svelte-m5izi2-spinner 2s linear infinite}@-webkit-keyframes svelte-m5izi2-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 svelte-m5izi2-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 svelte-m5izi2-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 svelte-m5izi2-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 svelte-m5izi2-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 svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadein 2s linear forwards;animation:svelte-m5izi2-fadein 2s linear forwards}.elementToFadeOut.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadeout 0.1s ease-out forwards;animation:svelte-m5izi2-fadeout 0.1s ease-out forwards}')}function wt(n){let t,e,r,s,o,l,a,m,f,d=n[13]&&xe(n);function v(c,p){if(!c[13])return Ft;if(c[22]!="Closed"&&c[22]!="Closing")return kt;if(c[3]=="true")return Tt}let z=v(n),g=z&&z(n),b=(n[16]||n[18])&&Ae(n),h=n[4]=="true"&&Ie(n);return{c(){t=i.element("div"),e=i.element("casino-tournaments-thumbnail"),r=i.space(),d&&d.c(),s=i.space(),o=i.element("div"),g&&g.c(),l=i.space(),b&&b.c(),a=i.space(),h&&h.c(),i.set_custom_element_data(e,"session",n[0]),i.set_custom_element_data(e,"userid",n[1]),i.set_custom_element_data(e,"title",n[19]),i.set_custom_element_data(e,"status",n[22]),i.set_custom_element_data(e,"startdate",n[20]),i.set_custom_element_data(e,"tourid",n[23]),i.set_custom_element_data(e,"scorecriteria",n[26]),i.set_custom_element_data(e,"minbetcount",n[27]),i.set_custom_element_data(e,"thumbnail",n[24]),i.set_custom_element_data(e,"userenrolled",n[25]),i.set_custom_element_data(e,"showenrolled",n[5]),i.set_custom_element_data(e,"gameurl",n[29]),i.set_custom_element_data(e,"clientstyling",n[10]),i.set_custom_element_data(e,"clientstylingurl",n[11]),i.set_custom_element_data(e,"lang",n[8]),i.set_custom_element_data(e,"keepbrowsercontext",n[9]),i.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),i.set_custom_element_data(e,"class","svelte-m5izi2"),i.attr(o,"class","TournamentButtons svelte-m5izi2"),i.attr(o,"part","TournamentButtons"),i.attr(t,"class",m="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2"),i.attr(t,"part",f="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn"))},m(c,p){i.insert(c,t,p),i.append(t,e),i.append(t,r),d&&d.m(t,null),i.append(t,s),i.append(t,o),g&&g.m(o,null),i.append(t,l),b&&b.m(t,null),i.append(t,a),h&&h.m(t,null)},p(c,p){p[0]&1&&i.set_custom_element_data(e,"session",c[0]),p[0]&2&&i.set_custom_element_data(e,"userid",c[1]),p[0]&524288&&i.set_custom_element_data(e,"title",c[19]),p[0]&4194304&&i.set_custom_element_data(e,"status",c[22]),p[0]&1048576&&i.set_custom_element_data(e,"startdate",c[20]),p[0]&8388608&&i.set_custom_element_data(e,"tourid",c[23]),p[0]&67108864&&i.set_custom_element_data(e,"scorecriteria",c[26]),p[0]&134217728&&i.set_custom_element_data(e,"minbetcount",c[27]),p[0]&16777216&&i.set_custom_element_data(e,"thumbnail",c[24]),p[0]&33554432&&i.set_custom_element_data(e,"userenrolled",c[25]),p[0]&32&&i.set_custom_element_data(e,"showenrolled",c[5]),p[0]&536870912&&i.set_custom_element_data(e,"gameurl",c[29]),p[0]&1024&&i.set_custom_element_data(e,"clientstyling",c[10]),p[0]&2048&&i.set_custom_element_data(e,"clientstylingurl",c[11]),p[0]&256&&i.set_custom_element_data(e,"lang",c[8]),p[0]&512&&i.set_custom_element_data(e,"keepbrowsercontext",c[9]),c[13]?d?d.p(c,p):(d=xe(c),d.c(),d.m(t,s)):d&&(d.d(1),d=null),z===(z=v(c))&&g?g.p(c,p):(g&&g.d(1),g=z&&z(c),g&&(g.c(),g.m(o,null))),c[16]||c[18]?b?b.p(c,p):(b=Ae(c),b.c(),b.m(t,a)):b&&(b.d(1),b=null),c[4]=="true"?h?h.p(c,p):(h=Ie(c),h.c(),h.m(t,null)):h&&(h.d(1),h=null),p[0]&1073742016&&m!==(m="TournamentCard "+(c[6]?"CardMaxWidth":"")+(c[7]?"CardFullSize":"")+" "+(c[30]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2")&&i.attr(t,"class",m),p[0]&1073742016&&f!==(f="TournamentCard "+(c[6]?"CardMaxWidth":"")+(c[7]?"CardFullSize":"")+" "+(c[30]?"elementToFadeOut":"elementToFadeIn")+" "+(c[30]?"elementToFadeOut":"elementToFadeIn"))&&i.attr(t,"part",f)},d(c){c&&i.detach(t),d&&d.d(),g&&g.d(),b&&b.d(),h&&h.d()}}}function yt(n){let t,e,r,s;return{c(){t=i.element("div"),e=i.element("div"),e.innerHTML='<div class="ph-col-12 svelte-m5izi2" part="ph-col-12"><div class="ph-picture svelte-m5izi2" part="ph-picture"></div> <div class="ph-row svelte-m5izi2" part="ph-row"><div class="ph-col-6 big svelte-m5izi2" part="ph-col-6 big"></div> <div class="ph-col-4 empty big svelte-m5izi2" part="ph-col-4 empty big"></div> <div class="ph-col-4 svelte-m5izi2" part="ph-col-4"></div> <div class="ph-col-8 empty svelte-m5izi2" part="ph-col-8 empty"></div> <div class="ph-col-6 svelte-m5izi2" part="ph-col-6"></div> <div class="ph-col-6 empty svelte-m5izi2" part="ph-col-6 empty"></div> <div class="ph-col-12 svelte-m5izi2" part="ph-col-12"></div></div></div>',i.attr(e,"class","ph-item svelte-m5izi2"),i.attr(e,"part","ph-item"),i.attr(t,"class",r="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2"),i.attr(t,"part",s="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn")+" "+(n[30]?"elementToFadeOut":"elementToFadeIn"))},m(o,l){i.insert(o,t,l),i.append(t,e)},p(o,l){l[0]&1073742016&&r!==(r="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[30]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2")&&i.attr(t,"class",r),l[0]&1073742016&&s!==(s="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[30]?"elementToFadeOut":"elementToFadeIn")+" "+(o[30]?"elementToFadeOut":"elementToFadeIn"))&&i.attr(t,"part",s)},d(o){o&&i.detach(t)}}}function xe(n){let t,e,r=n[23]&&Be(n);return{c(){r&&r.c(),t=i.space(),e=i.element("casino-tournaments-thumbnail-duration"),i.set_custom_element_data(e,"clientstyling",n[10]),i.set_custom_element_data(e,"clientstylingurl",n[11]),i.set_custom_element_data(e,"status",n[22]),i.set_custom_element_data(e,"startdate",n[20]),i.set_custom_element_data(e,"lang",n[8]),i.set_custom_element_data(e,"enddate",n[21]),i.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),i.set_custom_element_data(e,"class","svelte-m5izi2")},m(s,o){r&&r.m(s,o),i.insert(s,t,o),i.insert(s,e,o)},p(s,o){s[23]?r?r.p(s,o):(r=Be(s),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[0]&1024&&i.set_custom_element_data(e,"clientstyling",s[10]),o[0]&2048&&i.set_custom_element_data(e,"clientstylingurl",s[11]),o[0]&4194304&&i.set_custom_element_data(e,"status",s[22]),o[0]&1048576&&i.set_custom_element_data(e,"startdate",s[20]),o[0]&256&&i.set_custom_element_data(e,"lang",s[8]),o[0]&2097152&&i.set_custom_element_data(e,"enddate",s[21])},d(s){s&&(i.detach(t),i.detach(e)),r&&r.d(s)}}}function Be(n){let t,e,r,s;return{c(){t=i.element("casino-tournaments-thumbnail-prizes"),i.set_custom_element_data(t,"tourid",n[23]),i.set_custom_element_data(t,"clientstyling",n[10]),i.set_custom_element_data(t,"clientstylingurl",n[11]),i.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper"),i.set_custom_element_data(t,"class","svelte-m5izi2")},m(o,l){i.insert(o,t,l),r||(s=i.action_destroyer(e=n[36].call(null,t,n[23])),r=!0)},p(o,l){l[0]&8388608&&i.set_custom_element_data(t,"tourid",o[23]),l[0]&1024&&i.set_custom_element_data(t,"clientstyling",o[10]),l[0]&2048&&i.set_custom_element_data(t,"clientstylingurl",o[11]),e&&i.is_function(e.update)&&l[0]&8388608&&e.update.call(null,o[23])},d(o){o&&i.detach(t),r=!1,s()}}}function Tt(n){let t,e=n[31]("tournamentsThController.details")+"",r,s,o;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","DetailsLargeButton svelte-m5izi2"),i.attr(t,"part","DetailsLargeButton")},m(l,a){i.insert(l,t,a),i.append(t,r),s||(o=i.listen(t,"click",n[50]),s=!0)},p(l,a){a[1]&1&&e!==(e=l[31]("tournamentsThController.details")+"")&&i.set_data(r,e)},d(l){l&&i.detach(t),s=!1,o()}}}function kt(n){let t,e,r=n[3]=="true"&&Oe(n);function s(a,m){return a[25]==!0?Ct:St}let o=s(n),l=o(n);return{c(){r&&r.c(),t=i.space(),l.c(),e=i.empty()},m(a,m){r&&r.m(a,m),i.insert(a,t,m),l.m(a,m),i.insert(a,e,m)},p(a,m){a[3]=="true"?r?r.p(a,m):(r=Oe(a),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o===(o=s(a))&&l?l.p(a,m):(l.d(1),l=o(a),l&&(l.c(),l.m(e.parentNode,e)))},d(a){a&&(i.detach(t),i.detach(e)),r&&r.d(a),l.d(a)}}}function Ft(n){let t,e=n[31]("tournamentsThController.login")+"",r,s,o,l=n[31]("tournamentsThController.register")+"",a,m,f;return{c(){t=i.element("button"),r=i.text(e),s=i.space(),o=i.element("button"),a=i.text(l),i.attr(t,"class","LoginButton svelte-m5izi2"),i.attr(t,"part","LoginButton"),i.attr(o,"class","RegisterButton svelte-m5izi2"),i.attr(o,"part","RegisterButton")},m(d,v){i.insert(d,t,v),i.append(t,r),i.insert(d,s,v),i.insert(d,o,v),i.append(o,a),m||(f=[i.listen(t,"click",n[46]),i.listen(o,"click",n[47])],m=!0)},p(d,v){v[1]&1&&e!==(e=d[31]("tournamentsThController.login")+"")&&i.set_data(r,e),v[1]&1&&l!==(l=d[31]("tournamentsThController.register")+"")&&i.set_data(a,l)},d(d){d&&(i.detach(t),i.detach(s),i.detach(o)),m=!1,i.run_all(f)}}}function Oe(n){let t,e=n[31]("tournamentsThController.details")+"",r,s,o;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","DetailsButton svelte-m5izi2"),i.attr(t,"part","DetailsButton")},m(l,a){i.insert(l,t,a),i.append(t,r),s||(o=i.listen(t,"click",n[48]),s=!0)},p(l,a){a[1]&1&&e!==(e=l[31]("tournamentsThController.details")+"")&&i.set_data(r,e)},d(l){l&&i.detach(t),s=!1,o()}}}function St(n){let t,e,r,s,o;function l(f,d){return f[15]==!0?jt:Et}let a=l(n),m=a(n);return{c(){t=i.element("button"),m.c(),i.attr(t,"class",e="JoinButton "+(n[7]?"JoinButtonFullSize":"")+" svelte-m5izi2"),i.attr(t,"part",r="JoinButton "+(n[7]?"JoinButtonFullSize":"")),t.disabled=n[16]},m(f,d){i.insert(f,t,d),m.m(t,null),s||(o=i.listen(t,"click",n[49]),s=!0)},p(f,d){a===(a=l(f))&&m?m.p(f,d):(m.d(1),m=a(f),m&&(m.c(),m.m(t,null))),d[0]&128&&e!==(e="JoinButton "+(f[7]?"JoinButtonFullSize":"")+" svelte-m5izi2")&&i.attr(t,"class",e),d[0]&128&&r!==(r="JoinButton "+(f[7]?"JoinButtonFullSize":""))&&i.attr(t,"part",r),d[0]&65536&&(t.disabled=f[16])},d(f){f&&i.detach(t),m.d(),s=!1,o()}}}function Ct(n){let t,e=n[3]=="true"&&De(n);return{c(){e&&e.c(),t=i.empty()},m(r,s){e&&e.m(r,s),i.insert(r,t,s)},p(r,s){r[3]=="true"?e?e.p(r,s):(e=De(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&i.detach(t),e&&e.d(r)}}}function Et(n){let t,e=n[31]("tournamentsThController.join")+"",r,s,o,l,a,m,f,d;return{c(){t=i.element("span"),r=i.text(e),s=i.space(),o=i.svg_element("svg"),l=i.svg_element("defs"),a=i.svg_element("style"),m=i.text(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),f=i.svg_element("g"),d=i.svg_element("path"),i.attr(t,"part","JoinButtonSpan"),i.attr(t,"class","svelte-m5izi2"),i.attr(a,"class","svelte-m5izi2"),i.attr(l,"class","svelte-m5izi2"),i.attr(d,"class","a svelte-m5izi2"),i.attr(d,"part","a JoinButtonSvgA"),i.attr(d,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),i.attr(d,"transform","translate(26 26) rotate(180)"),i.attr(f,"transform","translate(26 26) rotate(180)"),i.attr(f,"class","svelte-m5izi2"),i.attr(o,"part","JoinButtonSvg"),i.attr(o,"xmlns","http://www.w3.org/2000/svg"),i.attr(o,"width","26"),i.attr(o,"height","26"),i.attr(o,"viewBox","0 0 26 26"),i.attr(o,"class","svelte-m5izi2")},m(v,z){i.insert(v,t,z),i.append(t,r),i.insert(v,s,z),i.insert(v,o,z),i.append(o,l),i.append(l,a),i.append(a,m),i.append(o,f),i.append(f,d)},p(v,z){z[1]&1&&e!==(e=v[31]("tournamentsThController.join")+"")&&i.set_data(r,e)},d(v){v&&(i.detach(t),i.detach(s),i.detach(o))}}}function jt(n){let t,e;return{c(){t=i.svg_element("svg"),e=i.svg_element("circle"),i.attr(e,"cx","20"),i.attr(e,"cy","20"),i.attr(e,"r","18"),i.attr(e,"class","svelte-m5izi2"),i.attr(t,"class","spinner svelte-m5izi2"),i.attr(t,"part","spinner")},m(r,s){i.insert(r,t,s),i.append(t,e)},p:i.noop,d(r){r&&i.detach(t)}}}function De(n){let t,e=n[31]("tournamentsThController.enrolled")+"",r;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","EnrolledButton svelte-m5izi2"),i.attr(t,"part","EnrolledButton"),t.disabled=!0},m(s,o){i.insert(s,t,o),i.append(t,r)},p(s,o){o[1]&1&&e!==(e=s[31]("tournamentsThController.enrolled")+"")&&i.set_data(r,e)},d(s){s&&i.detach(t)}}}function Ae(n){let t,e=n[31]("tournamentsThController.joinerror")+"",r,s,o;return{c(){t=i.element("span"),r=i.text(e),s=i.space(),o=i.text(n[17]),i.attr(t,"class","ErrorText svelte-m5izi2"),i.attr(t,"part","ErrorText")},m(l,a){i.insert(l,t,a),i.append(t,r),i.append(t,s),i.append(t,o)},p(l,a){a[1]&1&&e!==(e=l[31]("tournamentsThController.joinerror")+"")&&i.set_data(r,e),a[0]&131072&&i.set_data(o,l[17])},d(l){l&&i.detach(t)}}}function Ie(n){let t;return{c(){t=i.element("casino-tournaments-thumbnail-games-slider"),i.set_custom_element_data(t,"clientstyling",n[10]),i.set_custom_element_data(t,"clientstylingurl",n[11]),i.set_custom_element_data(t,"tournamenturl",n[2]),i.set_custom_element_data(t,"lang",n[8]),i.set_custom_element_data(t,"scrollby","2"),i.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton"),i.set_custom_element_data(t,"class","svelte-m5izi2")},m(e,r){i.insert(e,t,r)},p(e,r){r[0]&1024&&i.set_custom_element_data(t,"clientstyling",e[10]),r[0]&2048&&i.set_custom_element_data(t,"clientstylingurl",e[11]),r[0]&4&&i.set_custom_element_data(t,"tournamenturl",e[2]),r[0]&256&&i.set_custom_element_data(t,"lang",e[8])},d(e){e&&i.detach(t)}}}function Pt(n){let t;function e(o,l){if(o[14])return yt;if(o[19])return wt}let r=e(n),s=r&&r(n);return{c(){t=i.element("div"),s&&s.c(),i.attr(t,"class","svelte-m5izi2")},m(o,l){i.insert(o,t,l),s&&s.m(t,null),n[51](t)},p(o,l){r===(r=e(o))&&s?s.p(o,l):(s&&s.d(1),s=r&&r(o),s&&(s.c(),s.m(t,null)))},i:i.noop,o:i.noop,d(o){o&&i.detach(t),s&&s.d(),n[51](null)}}}function xt(n,t,e){let r;i.component_subscribe(n,i.$format,u=>e(31,r=u));let{session:s=""}=t,{userid:o=""}=t,{tournamenturl:l=""}=t,{touridx:a}=t,{endpoint:m=""}=t,{showdetails:f=""}=t,{showslider:d=""}=t,{showenrolled:v=""}=t,{maxwidth:z=""}=t,{fullsize:g=""}=t,{lang:b=""}=t,{loginevent:h=""}=t,{registerevent:c=""}=t,{loginurl:p=""}=t,{registerurl:x=""}=t,{currency:H=""}=t,{keepbrowsercontext:ie="false"}=t,{clientstyling:B=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,F,C=!1,A="",E=!0,ne=window.navigator.userAgent,I=!1,M=!1,re="There was an error while trying to join the tournament",q=!1,se,oe,le,j,T,ae,G,ue,me,ce=[],Y=[],de="#",K,L=!1;bt({withLocale:"en",translations:{}});const Ye=()=>{fetch(D).then(_=>_.json()).then(_=>{Object.keys(_).forEach(w=>{je(w,_[w])})}).catch(_=>{console.log(_)})};Object.keys(Pe).forEach(u=>{je(u,Pe[u])});const fe=u=>{Ke(u),be(u),ge(this,T)},he=u=>{if(u.data&&u.data.type=="UserSessionID"&&(e(13,C=!0),A=u.data.session),u.data.type=="UpdateTournamentView"){let _=u.data.tournamentData;if(T&&T!=_.id)return;fe(_)}if(u.data&&u.data.type==`UpdateSingleTournament_${a}`){let _=u.data.tournamentData,w=a<4?a*100:Math.random()*300+300;e(30,L=a==1),setTimeout(()=>{e(30,L=!0),e(23,T=_.id),fe(_)},w),setTimeout(()=>{e(30,L=!1)},w+200)}},Ke=u=>{u.state!=j&&(e(22,j=u.state),window.postMessage({type:`TournamentStatus_${T}`,status:j},window.location.href))},pe=()=>{h&&(window.postMessage({type:h,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),p&&(window.location=p)},_e=()=>{c&&(window.postMessage({type:c,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},V=u=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:u,showLeaderboard:!0},window.location.href)},ve=(u,_)=>N(this,null,function*(){var we;e(16,M=!1),e(18,q=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:u},window.location.href),e(15,I=!0);let w=new URL(`${m}/v1/bonus/claim`),R=new Headers,S={};w.searchParams.append("language",b),w.searchParams.append("platform",te(ne)),R.append("Content-Type","application/json"),R.append("X-SessionID",A),_&&_.length>=1&&(S={language:b,bonusCode:_[0].code,currency:H,type:"tournament"});let st={method:"PUT",headers:R,body:JSON.stringify(S)};const ze=()=>{e(15,I=!1),e(25,G=!0)},X=y=>{e(15,I=!1),y&&e(17,re=y),e(16,M=!0)},P=yield N(this,null,function*(){let y;try{y=yield fetch(w,st),y=yield y.json()}catch(Dt){X()}return y});if(P)if(P.success==!0)ze();else if(P.errorMessage.match("VersionMismatchException")){let y;y=yield fetch(`${m}/tournaments/${T}`,{headers:{"X-SessionID":s}}),y=yield y.json(),(we=y==null?void 0:y.item)!=null&&we.playerEnrolled?ze():(X(P.errorMessage),e(18,q=!0),e(16,M=!1))}else X(P.errorMessage)}),ge=(u,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:ce},window.location.href)},be=u=>{u&&(e(19,se=u.nameOrTitle||""),e(20,oe=u.startTime),e(21,le=u.endTime),e(22,j=u.state),e(23,T=u.id),e(24,ae=u.thumbnail),e(25,G=u.playerEnrolled||!1),e(26,ue=u.scoreCriteria),e(27,me=u.minBetCount),ce=u.prizes,e(28,Y=u.wallets||[]),e(29,de=u.termsUrl||"#"))},Ve=u=>{e(14,E=!0);let _=new URL(u),w=new Headers;_.searchParams.append("language",b),_.searchParams.append("platform",te(ne)),C&&w.append("X-SessionID",A),fetch(_,{method:"GET",headers:w}).then(S=>S.json()).then(S=>{e(14,E=!1),be(S.item)})},Xe=()=>{s.length>0&&s!="false"?(A=s,e(13,C=!0)):e(13,C=!1)},Ne=()=>{e(14,E=!0),Ve(l)},Ze=()=>{let u=document.createElement("style");u.innerHTML=B,F.appendChild(u)},Qe=()=>{let u=new URL(O),_=document.createElement("style");fetch(u.href).then(w=>w.text()).then(w=>{_.innerHTML=w,setTimeout(()=>{F.appendChild(_)},1),setTimeout(()=>{},500)})};i.onMount(()=>(e(14,E=!1),window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)}));const $e=()=>pe(),et=()=>_e(),tt=()=>V(T),it=()=>ve(T,Y),nt=()=>V(T);function rt(u){i.binding_callbacks[u?"unshift":"push"](()=>{F=u,e(12,F)})}return n.$$set=u=>{"session"in u&&e(0,s=u.session),"userid"in u&&e(1,o=u.userid),"tournamenturl"in u&&e(2,l=u.tournamenturl),"touridx"in u&&e(37,a=u.touridx),"endpoint"in u&&e(38,m=u.endpoint),"showdetails"in u&&e(3,f=u.showdetails),"showslider"in u&&e(4,d=u.showslider),"showenrolled"in u&&e(5,v=u.showenrolled),"maxwidth"in u&&e(6,z=u.maxwidth),"fullsize"in u&&e(7,g=u.fullsize),"lang"in u&&e(8,b=u.lang),"loginevent"in u&&e(39,h=u.loginevent),"registerevent"in u&&e(40,c=u.registerevent),"loginurl"in u&&e(41,p=u.loginurl),"registerurl"in u&&e(42,x=u.registerurl),"currency"in u&&e(43,H=u.currency),"keepbrowsercontext"in u&&e(9,ie=u.keepbrowsercontext),"clientstyling"in u&&e(10,B=u.clientstyling),"clientstylingurl"in u&&e(11,O=u.clientstylingurl),"translationurl"in u&&e(44,D=u.translationurl)},n.$$.update=()=>{n.$$.dirty[0]&5120&&F&&B&&Ze(),n.$$.dirty[0]&6144&&F&&O&&Qe(),n.$$.dirty[1]&8192&&D&&Ye(),n.$$.dirty[0]&1&&s&&Xe(),n.$$.dirty[0]&260&&e(45,K=l&&b),n.$$.dirty[1]&16384&&K&&Ne()},[s,o,l,f,d,v,z,g,b,ie,B,O,F,C,E,I,M,re,q,se,oe,le,j,T,ae,G,ue,me,Y,de,L,r,pe,_e,V,ve,ge,a,m,h,c,p,x,H,D,K,$e,et,tt,it,nt,rt]}class Ge extends i.SvelteComponent{constructor(t){super(),i.init(this,t,xt,Pt,i.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},zt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),i.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),i.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),i.flush()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),i.flush()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),i.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),i.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),i.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),i.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),i.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),i.flush()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),i.flush()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),i.flush()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),i.flush()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),i.flush()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),i.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),i.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get translationurl(){return this.$$.ctx[44]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}}i.create_custom_element(Ge,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Bt;exports.getDevice=te;
@@ -0,0 +1,515 @@
1
+ import { a as Y, S as Z, i as J, f as C, c as Q, s as V, b as X, e as D, g as l, h as B, n as U, l as w, m as x, o as $, t as z, d as I, j as m, p as tt, k as M, w as et, x as N, y as nt } from "./CasinoTournamentsListController-CWLfTxVT.js";
2
+ function O(s, t) {
3
+ Y(s, t);
4
+ }
5
+ const A = {
6
+ en: {
7
+ tournamentsDuration: {
8
+ finished: "Finished",
9
+ starting: "Starting in ",
10
+ left: "left",
11
+ minutes: "minutes",
12
+ hours: "hours",
13
+ days: "days"
14
+ }
15
+ },
16
+ hr: {
17
+ tournamentsDuration: {
18
+ finished: "Završeno",
19
+ starting: "Starting in ",
20
+ left: "preostalo",
21
+ minutes: "minute",
22
+ hours: "sati",
23
+ days: "dana"
24
+ }
25
+ },
26
+ "zh-hk": {
27
+ tournamentsDuration: {
28
+ finished: "完成的",
29
+ starting: "開始於",
30
+ left: "剩下",
31
+ minutes: "分鐘",
32
+ hours: "小時",
33
+ days: "天"
34
+ }
35
+ },
36
+ fr: {
37
+ tournamentsDuration: {
38
+ finished: "Fini",
39
+ starting: "Début dans ",
40
+ left: "restant",
41
+ minutes: "minutes",
42
+ hours: "heures",
43
+ days: "jours"
44
+ }
45
+ },
46
+ ro: {
47
+ tournamentsDuration: {
48
+ finished: "Finalizat",
49
+ starting: "Începe în",
50
+ left: "rămase",
51
+ minutes: "minute",
52
+ hours: "ore",
53
+ days: "zile"
54
+ }
55
+ },
56
+ tr: {
57
+ tournamentsDuration: {
58
+ finished: "Bitti",
59
+ starting: "İçinde başlayan",
60
+ left: "sol",
61
+ minutes: "dakika",
62
+ hours: "saat",
63
+ days: "günler"
64
+ }
65
+ },
66
+ el: {
67
+ tournamentsDuration: {
68
+ finished: "Ολοκληρωμένα",
69
+ starting: "Αρχίζει σε ",
70
+ left: "απομένουν",
71
+ minutes: "λεπτά",
72
+ hours: "ώρες",
73
+ days: "ημέρες"
74
+ }
75
+ },
76
+ es: {
77
+ tournamentsDuration: {
78
+ finished: "Finalizado",
79
+ starting: "Iniciando en ",
80
+ left: "queda",
81
+ minutes: "minutos",
82
+ hours: "horas",
83
+ days: "días"
84
+ }
85
+ },
86
+ hu: {
87
+ tournamentsDuration: {
88
+ finished: "Befejezve",
89
+ starting: "Kezdésig",
90
+ left: "bal",
91
+ minutes: "perc",
92
+ hours: "óra",
93
+ days: "nap"
94
+ }
95
+ },
96
+ pt: {
97
+ tournamentsDuration: {
98
+ finished: "Finalizado",
99
+ starting: "Começando em",
100
+ left: "Abandonou",
101
+ minutes: "Minutos",
102
+ hours: "Horas",
103
+ days: "Dias"
104
+ }
105
+ }
106
+ };
107
+ function st(s) {
108
+ X(s, "svelte-1hp648c", ".svelte-1hp648c,.svelte-1hp648c::before,.svelte-1hp648c::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates.svelte-1hp648c{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate.svelte-1hp648c{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate.svelte-1hp648c{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar.svelte-1hp648c{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting.svelte-1hp648c{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining.svelte-1hp648c,.Finished.svelte-1hp648c{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished.svelte-1hp648c{color:var(--emfe-w-color-green, #48952a)}");
109
+ }
110
+ function H(s) {
111
+ let t, e, i = (
112
+ /*formatDate*/
113
+ s[10](
114
+ /*startdate*/
115
+ s[0]
116
+ ) + ""
117
+ ), a, u, o, c = (
118
+ /*formatDate*/
119
+ s[10](
120
+ /*enddate*/
121
+ s[1]
122
+ ) + ""
123
+ ), h, S, v, g, b, F, j;
124
+ function L(r, _) {
125
+ return (
126
+ /*status*/
127
+ r[2] == "Finished" || /*status*/
128
+ r[2] == "Closing" || /*status*/
129
+ r[2] == "Closed" ? at : (
130
+ /*tournamentUntilStartDays*/
131
+ r[5] > 0 ? rt : it
132
+ )
133
+ );
134
+ }
135
+ let E = L(s), p = E(s);
136
+ function R(r, _) {
137
+ if (
138
+ /*status*/
139
+ r[2] == "Finished" || /*status*/
140
+ r[2] == "Closing" || /*status*/
141
+ r[2] == "Closed"
142
+ ) return ut;
143
+ if (
144
+ /*tournamentUntilStartDays*/
145
+ r[5] > 0
146
+ ) return ot;
147
+ if (
148
+ /*tournamentLeftDays*/
149
+ r[4] > 0
150
+ ) return lt;
151
+ }
152
+ let k = R(s), f = k && k(s);
153
+ return {
154
+ c() {
155
+ t = D("div"), e = D("div"), a = z(i), u = I(), o = D("div"), h = z(c), S = I(), v = D("div"), g = D("div"), p.c(), b = I(), f && f.c(), l(e, "class", "StartDate svelte-1hp648c"), l(e, "part", "StartDate"), l(o, "class", "EndDate svelte-1hp648c"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates svelte-1hp648c"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar svelte-1hp648c"), l(g, "part", "ProgressBar"), l(v, "class", "ProgressBarWrapper svelte-1hp648c"), l(v, "part", "ProgressBarWrapper");
156
+ },
157
+ m(r, _) {
158
+ B(r, t, _), m(t, e), m(e, a), m(t, u), m(t, o), m(o, h), B(r, S, _), B(r, v, _), m(v, g), p.m(g, null), m(g, b), f && f.m(g, null), F || (j = tt(
159
+ /*getDuration*/
160
+ s[9].call(null, v)
161
+ ), F = !0);
162
+ },
163
+ p(r, _) {
164
+ _ & /*startdate*/
165
+ 1 && i !== (i = /*formatDate*/
166
+ r[10](
167
+ /*startdate*/
168
+ r[0]
169
+ ) + "") && M(a, i), _ & /*enddate*/
170
+ 2 && c !== (c = /*formatDate*/
171
+ r[10](
172
+ /*enddate*/
173
+ r[1]
174
+ ) + "") && M(h, c), E === (E = L(r)) && p ? p.p(r, _) : (p.d(1), p = E(r), p && (p.c(), p.m(g, b))), k === (k = R(r)) && f ? f.p(r, _) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(g, null)));
175
+ },
176
+ d(r) {
177
+ r && (w(t), w(S), w(v)), p.d(), f && f.d(), F = !1, j();
178
+ }
179
+ };
180
+ }
181
+ function it(s) {
182
+ let t;
183
+ return {
184
+ c() {
185
+ t = D("div"), l(t, "class", "ProgressBarFill svelte-1hp648c"), l(t, "part", "ProgressBarFill"), N(
186
+ t,
187
+ "width",
188
+ /*getProgress*/
189
+ s[7]() + "%"
190
+ );
191
+ },
192
+ m(e, i) {
193
+ B(e, t, i);
194
+ },
195
+ p(e, i) {
196
+ i & /*getProgress*/
197
+ 128 && N(
198
+ t,
199
+ "width",
200
+ /*getProgress*/
201
+ e[7]() + "%"
202
+ );
203
+ },
204
+ d(e) {
205
+ e && w(t);
206
+ }
207
+ };
208
+ }
209
+ function rt(s) {
210
+ let t;
211
+ return {
212
+ c() {
213
+ t = D("div"), l(t, "class", "ProgressBarFillStarting svelte-1hp648c"), l(t, "part", "ProgressBarFillStarting");
214
+ },
215
+ m(e, i) {
216
+ B(e, t, i);
217
+ },
218
+ p: U,
219
+ d(e) {
220
+ e && w(t);
221
+ }
222
+ };
223
+ }
224
+ function at(s) {
225
+ let t;
226
+ return {
227
+ c() {
228
+ t = D("div"), l(t, "class", "ProgressBarFillEnd svelte-1hp648c"), l(t, "part", "ProgressBarFillEnd");
229
+ },
230
+ m(e, i) {
231
+ B(e, t, i);
232
+ },
233
+ p: U,
234
+ d(e) {
235
+ e && w(t);
236
+ }
237
+ };
238
+ }
239
+ function lt(s) {
240
+ let t, e, i, a = (
241
+ /*$_*/
242
+ s[8]("tournamentsDuration.left") + ""
243
+ ), u;
244
+ return {
245
+ c() {
246
+ t = D("div"), e = z(
247
+ /*showRemain*/
248
+ s[6]
249
+ ), i = I(), u = z(a), l(t, "class", "Remaining svelte-1hp648c"), l(t, "part", "Remaining");
250
+ },
251
+ m(o, c) {
252
+ B(o, t, c), m(t, e), m(t, i), m(t, u);
253
+ },
254
+ p(o, c) {
255
+ c & /*showRemain*/
256
+ 64 && M(
257
+ e,
258
+ /*showRemain*/
259
+ o[6]
260
+ ), c & /*$_*/
261
+ 256 && a !== (a = /*$_*/
262
+ o[8]("tournamentsDuration.left") + "") && M(u, a);
263
+ },
264
+ d(o) {
265
+ o && w(t);
266
+ }
267
+ };
268
+ }
269
+ function ot(s) {
270
+ let t, e = (
271
+ /*$_*/
272
+ s[8]("tournamentsDuration.starting") + ""
273
+ ), i, a, u = (
274
+ /*getTextByDiff*/
275
+ s[11](
276
+ /*tournamentUntilStartDays*/
277
+ s[5]
278
+ ) + ""
279
+ ), o;
280
+ return {
281
+ c() {
282
+ t = D("div"), i = z(e), a = I(), o = z(u), l(t, "class", "Remaining svelte-1hp648c"), l(t, "part", "Remaining");
283
+ },
284
+ m(c, h) {
285
+ B(c, t, h), m(t, i), m(t, a), m(t, o);
286
+ },
287
+ p(c, h) {
288
+ h & /*$_*/
289
+ 256 && e !== (e = /*$_*/
290
+ c[8]("tournamentsDuration.starting") + "") && M(i, e), h & /*tournamentUntilStartDays*/
291
+ 32 && u !== (u = /*getTextByDiff*/
292
+ c[11](
293
+ /*tournamentUntilStartDays*/
294
+ c[5]
295
+ ) + "") && M(o, u);
296
+ },
297
+ d(c) {
298
+ c && w(t);
299
+ }
300
+ };
301
+ }
302
+ function ut(s) {
303
+ let t, e = (
304
+ /*$_*/
305
+ s[8]("tournamentsDuration.finished") + ""
306
+ ), i;
307
+ return {
308
+ c() {
309
+ t = D("div"), i = z(e), l(t, "class", "Finished svelte-1hp648c"), l(t, "part", "Finished");
310
+ },
311
+ m(a, u) {
312
+ B(a, t, u), m(t, i);
313
+ },
314
+ p(a, u) {
315
+ u & /*$_*/
316
+ 256 && e !== (e = /*$_*/
317
+ a[8]("tournamentsDuration.finished") + "") && M(i, e);
318
+ },
319
+ d(a) {
320
+ a && w(t);
321
+ }
322
+ };
323
+ }
324
+ function ct(s) {
325
+ let t, e = (
326
+ /*startdate*/
327
+ s[0] && /*enddate*/
328
+ s[1] && H(s)
329
+ );
330
+ return {
331
+ c() {
332
+ t = D("div"), e && e.c(), l(t, "class", "TournamentDuration svelte-1hp648c"), l(t, "part", "TournamentDuration");
333
+ },
334
+ m(i, a) {
335
+ B(i, t, a), e && e.m(t, null), s[16](t);
336
+ },
337
+ p(i, [a]) {
338
+ /*startdate*/
339
+ i[0] && /*enddate*/
340
+ i[1] ? e ? e.p(i, a) : (e = H(i), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
341
+ },
342
+ i: U,
343
+ o: U,
344
+ d(i) {
345
+ i && w(t), e && e.d(), s[16](null);
346
+ }
347
+ };
348
+ }
349
+ function dt(s, t, e) {
350
+ let i, a;
351
+ x(s, nt, (n) => e(8, a = n));
352
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: c = "" } = t, { lang: h = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: v = "" } = t, { translationurl: g = "" } = t, b, F = "", j = "", L = "";
353
+ const E = () => {
354
+ fetch(g).then((d) => d.json()).then((d) => {
355
+ Object.keys(d).forEach((y) => {
356
+ O(y, d[y]);
357
+ });
358
+ }).catch((d) => {
359
+ console.log(d);
360
+ });
361
+ };
362
+ Object.keys(A).forEach((n) => {
363
+ O(n, A[n]);
364
+ });
365
+ const p = (n) => new Date(n).getTime(), R = (n, d) => (p(d) - p(n)) / (1e3 * 60), k = () => {
366
+ const n = /* @__PURE__ */ new Date();
367
+ e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, L = r(F));
368
+ }, f = (n) => {
369
+ const d = { month: "long" };
370
+ let y = new Date(n), P = new Intl.DateTimeFormat(h, d).format(y);
371
+ return `${y.getDate()} ${P}, ${y.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${y.getUTCFullYear()}`;
372
+ }, r = (n) => {
373
+ const d = (P, T) => P + " " + a(T), y = (P) => {
374
+ const T = Math.floor(P);
375
+ return T < 10 ? `0${T}` : `${T}`;
376
+ };
377
+ if (n < 1440) {
378
+ const P = n / 60, T = n % 60, G = (T - Math.floor(T)) * 60;
379
+ return [P, T, G].map((K) => y(K)).join(":");
380
+ }
381
+ return d(Math.ceil(n / (60 * 24)), "tournamentsDuration.days");
382
+ }, _ = () => {
383
+ let n = document.createElement("style");
384
+ n.innerHTML = S, b.appendChild(n);
385
+ }, q = () => {
386
+ let n = new URL(v), d = document.createElement("style");
387
+ fetch(n.href).then((y) => y.text()).then((y) => {
388
+ d.innerHTML = y, setTimeout(
389
+ () => {
390
+ b.appendChild(d);
391
+ },
392
+ 1
393
+ ), setTimeout(
394
+ () => {
395
+ },
396
+ 500
397
+ );
398
+ });
399
+ };
400
+ $(() => {
401
+ const n = setInterval(
402
+ () => {
403
+ u && o && k();
404
+ },
405
+ 1e3
406
+ );
407
+ return () => clearInterval(n);
408
+ });
409
+ function W(n) {
410
+ et[n ? "unshift" : "push"](() => {
411
+ b = n, e(3, b);
412
+ });
413
+ }
414
+ return s.$$set = (n) => {
415
+ "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, c = n.status), "lang" in n && e(12, h = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, v = n.clientstylingurl), "translationurl" in n && e(15, g = n.translationurl);
416
+ }, s.$$.update = () => {
417
+ s.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
418
+ 19 && e(7, i = () => {
419
+ if (F <= 0) return 100;
420
+ const n = R(u, o), d = 100 / n;
421
+ return Math.floor((n - F) * d);
422
+ }), s.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
423
+ 19 && u && o && k() && r(F), s.$$.dirty & /*lang*/
424
+ 4096 && h && k(), s.$$.dirty & /*lang, tournamentLeftDays*/
425
+ 4112 && h && r(F), s.$$.dirty & /*translationurl*/
426
+ 32768 && g && E(), s.$$.dirty & /*customStylingContainer, clientstyling*/
427
+ 8200 && b && S && _(), s.$$.dirty & /*customStylingContainer, clientstylingurl*/
428
+ 16392 && b && v && q();
429
+ }, [
430
+ u,
431
+ o,
432
+ c,
433
+ b,
434
+ F,
435
+ j,
436
+ L,
437
+ i,
438
+ a,
439
+ k,
440
+ f,
441
+ r,
442
+ h,
443
+ S,
444
+ v,
445
+ g,
446
+ W
447
+ ];
448
+ }
449
+ class ft extends Z {
450
+ constructor(t) {
451
+ super(), J(
452
+ this,
453
+ t,
454
+ dt,
455
+ ct,
456
+ V,
457
+ {
458
+ startdate: 0,
459
+ enddate: 1,
460
+ status: 2,
461
+ lang: 12,
462
+ clientstyling: 13,
463
+ clientstylingurl: 14,
464
+ translationurl: 15
465
+ },
466
+ st
467
+ );
468
+ }
469
+ get startdate() {
470
+ return this.$$.ctx[0];
471
+ }
472
+ set startdate(t) {
473
+ this.$$set({ startdate: t }), C();
474
+ }
475
+ get enddate() {
476
+ return this.$$.ctx[1];
477
+ }
478
+ set enddate(t) {
479
+ this.$$set({ enddate: t }), C();
480
+ }
481
+ get status() {
482
+ return this.$$.ctx[2];
483
+ }
484
+ set status(t) {
485
+ this.$$set({ status: t }), C();
486
+ }
487
+ get lang() {
488
+ return this.$$.ctx[12];
489
+ }
490
+ set lang(t) {
491
+ this.$$set({ lang: t }), C();
492
+ }
493
+ get clientstyling() {
494
+ return this.$$.ctx[13];
495
+ }
496
+ set clientstyling(t) {
497
+ this.$$set({ clientstyling: t }), C();
498
+ }
499
+ get clientstylingurl() {
500
+ return this.$$.ctx[14];
501
+ }
502
+ set clientstylingurl(t) {
503
+ this.$$set({ clientstylingurl: t }), C();
504
+ }
505
+ get translationurl() {
506
+ return this.$$.ctx[15];
507
+ }
508
+ set translationurl(t) {
509
+ this.$$set({ translationurl: t }), C();
510
+ }
511
+ }
512
+ Q(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
513
+ export {
514
+ ft as default
515
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-CnWQaXVa.cjs");function P(a,e){t.addMessages(a,e)}const M={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function O(a){t.append_styles(a,"svelte-1hp648c",".svelte-1hp648c,.svelte-1hp648c::before,.svelte-1hp648c::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates.svelte-1hp648c{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate.svelte-1hp648c{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate.svelte-1hp648c{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar.svelte-1hp648c{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd.svelte-1hp648c{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting.svelte-1hp648c{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining.svelte-1hp648c,.Finished.svelte-1hp648c{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished.svelte-1hp648c{color:var(--emfe-w-color-green, #48952a)}")}function z(a){let e,n,s=a[10](a[0])+"",l,u,o,c=a[10](a[1])+"",h,k,_,m,v,D,S;function C(i,y){return i[2]=="Finished"||i[2]=="Closing"||i[2]=="Closed"?q:i[5]>0?N:U}let B=C(a),g=B(a);function w(i,y){if(i[2]=="Finished"||i[2]=="Closing"||i[2]=="Closed")return x;if(i[5]>0)return H;if(i[4]>0)return A}let b=w(a),f=b&&b(a);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(s),u=t.space(),o=t.element("div"),h=t.text(c),k=t.space(),_=t.element("div"),m=t.element("div"),g.c(),v=t.space(),f&&f.c(),t.attr(n,"class","StartDate svelte-1hp648c"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate svelte-1hp648c"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates svelte-1hp648c"),t.attr(e,"part","TournamentDates"),t.attr(m,"class","ProgressBar svelte-1hp648c"),t.attr(m,"part","ProgressBar"),t.attr(_,"class","ProgressBarWrapper svelte-1hp648c"),t.attr(_,"part","ProgressBarWrapper")},m(i,y){t.insert(i,e,y),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,h),t.insert(i,k,y),t.insert(i,_,y),t.append(_,m),g.m(m,null),t.append(m,v),f&&f.m(m,null),D||(S=t.action_destroyer(a[9].call(null,_)),D=!0)},p(i,y){y&1&&s!==(s=i[10](i[0])+"")&&t.set_data(l,s),y&2&&c!==(c=i[10](i[1])+"")&&t.set_data(h,c),B===(B=C(i))&&g?g.p(i,y):(g.d(1),g=B(i),g&&(g.c(),g.m(m,v))),b===(b=w(i))&&f?f.p(i,y):(f&&f.d(1),f=b&&b(i),f&&(f.c(),f.m(m,null)))},d(i){i&&(t.detach(e),t.detach(k),t.detach(_)),g.d(),f&&f.d(),D=!1,S()}}}function U(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill svelte-1hp648c"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",a[7]()+"%")},m(n,s){t.insert(n,e,s)},p(n,s){s&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function N(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting svelte-1hp648c"),t.attr(e,"part","ProgressBarFillStarting")},m(n,s){t.insert(n,e,s)},p:t.noop,d(n){n&&t.detach(e)}}}function q(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd svelte-1hp648c"),t.attr(e,"part","ProgressBarFillEnd")},m(n,s){t.insert(n,e,s)},p:t.noop,d(n){n&&t.detach(e)}}}function A(a){let e,n,s,l=a[8]("tournamentsDuration.left")+"",u;return{c(){e=t.element("div"),n=t.text(a[6]),s=t.space(),u=t.text(l),t.attr(e,"class","Remaining svelte-1hp648c"),t.attr(e,"part","Remaining")},m(o,c){t.insert(o,e,c),t.append(e,n),t.append(e,s),t.append(e,u)},p(o,c){c&64&&t.set_data(n,o[6]),c&256&&l!==(l=o[8]("tournamentsDuration.left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function H(a){let e,n=a[8]("tournamentsDuration.starting")+"",s,l,u=a[11](a[5])+"",o;return{c(){e=t.element("div"),s=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining svelte-1hp648c"),t.attr(e,"part","Remaining")},m(c,h){t.insert(c,e,h),t.append(e,s),t.append(e,l),t.append(e,o)},p(c,h){h&256&&n!==(n=c[8]("tournamentsDuration.starting")+"")&&t.set_data(s,n),h&32&&u!==(u=c[11](c[5])+"")&&t.set_data(o,u)},d(c){c&&t.detach(e)}}}function x(a){let e,n=a[8]("tournamentsDuration.finished")+"",s;return{c(){e=t.element("div"),s=t.text(n),t.attr(e,"class","Finished svelte-1hp648c"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,s)},p(l,u){u&256&&n!==(n=l[8]("tournamentsDuration.finished")+"")&&t.set_data(s,n)},d(l){l&&t.detach(e)}}}function W(a){let e,n=a[0]&&a[1]&&z(a);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration svelte-1hp648c"),t.attr(e,"part","TournamentDuration")},m(s,l){t.insert(s,e,l),n&&n.m(e,null),a[16](e)},p(s,[l]){s[0]&&s[1]?n?n.p(s,l):(n=z(s),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(s){s&&t.detach(e),n&&n.d(),a[16](null)}}}function G(a,e,n){let s,l;t.component_subscribe(a,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:c=""}=e,{lang:h="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:_=""}=e,{translationurl:m=""}=e,v,D="",S="",C="";const B=()=>{fetch(m).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{P(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(M).forEach(r=>{P(r,M[r])});const g=r=>new Date(r).getTime(),w=(r,d)=>(g(d)-g(r))/(1e3*60),b=()=>{const r=new Date;n(4,D=w(r,o)),n(5,S=w(r,u)),n(6,C=i(D))},f=r=>{const d={month:"long"};let p=new Date(r),T=new Intl.DateTimeFormat(h,d).format(p);return`${p.getDate()} ${T}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},i=r=>{const d=(T,F)=>T+" "+l(F),p=T=>{const F=Math.floor(T);return F<10?`0${F}`:`${F}`};if(r<1440){const T=r/60,F=r%60,L=(F-Math.floor(F))*60;return[T,F,L].map(I=>p(I)).join(":")}return d(Math.ceil(r/(60*24)),"tournamentsDuration.days")},y=()=>{let r=document.createElement("style");r.innerHTML=k,v.appendChild(r)},R=()=>{let r=new URL(_),d=document.createElement("style");fetch(r.href).then(p=>p.text()).then(p=>{d.innerHTML=p,setTimeout(()=>{v.appendChild(d)},1),setTimeout(()=>{},500)})};t.onMount(()=>{const r=setInterval(()=>{u&&o&&b()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{v=r,n(3,v)})}return a.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,c=r.status),"lang"in r&&n(12,h=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,_=r.clientstylingurl),"translationurl"in r&&n(15,m=r.translationurl)},a.$$.update=()=>{a.$$.dirty&19&&n(7,s=()=>{if(D<=0)return 100;const r=w(u,o),d=100/r;return Math.floor((r-D)*d)}),a.$$.dirty&19&&u&&o&&b()&&i(D),a.$$.dirty&4096&&h&&b(),a.$$.dirty&4112&&h&&i(D),a.$$.dirty&32768&&m&&B(),a.$$.dirty&8200&&v&&k&&y(),a.$$.dirty&16392&&v&&_&&R()},[u,o,c,v,D,S,C,s,l,b,f,i,h,k,_,m,j]}class E 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},O)}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(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=E;