@everymatrix/casino-tournaments-list-controller 1.56.0 → 1.56.2
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-C-bVKhDo.cjs +28 -0
- package/components/{CasinoTournamentsListController-Be9H9tuV.js → CasinoTournamentsListController-ClNoaguG.js} +2206 -2230
- package/components/{CasinoTournamentsListController-biY7QiD5.js → CasinoTournamentsListController-DKc3JGbs.js} +2154 -2178
- package/components/{CasinoTournamentsThumbnail-SkT9VJbu.cjs → CasinoTournamentsThumbnail-CdyLHB3q.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-JVqrwB6W.js → CasinoTournamentsThumbnail-D8e-nXOD.js} +26 -26
- package/components/{CasinoTournamentsThumbnail-DB9S5Fny.js → CasinoTournamentsThumbnail-IxiD4b-e.js} +26 -26
- package/components/{CasinoTournamentsThumbnailController-qOaEDVyk.js → CasinoTournamentsThumbnailController-BcYNLikE.js} +361 -333
- package/components/{CasinoTournamentsThumbnailController-DMScLtGY.js → CasinoTournamentsThumbnailController-D49NZQP2.js} +438 -410
- package/components/CasinoTournamentsThumbnailController-DY-Ayiwy.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailDuration-BrH76kr7.js → CasinoTournamentsThumbnailDuration-BLgft2Tq.js} +43 -39
- package/components/{CasinoTournamentsThumbnailDuration-MghJsKBF.cjs → CasinoTournamentsThumbnailDuration-DAU985Oj.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-kT7eIls_.js → CasinoTournamentsThumbnailDuration-uc0cz4mz.js} +43 -39
- package/components/{CasinoTournamentsThumbnailGamesSlider-L13reqxM.cjs → CasinoTournamentsThumbnailGamesSlider-BYiStSlZ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-C1s05Puk.js → CasinoTournamentsThumbnailGamesSlider-CMh0bAxQ.js} +40 -39
- package/components/{CasinoTournamentsThumbnailGamesSlider-DXjEb31T.js → CasinoTournamentsThumbnailGamesSlider-DyN75Aab.js} +40 -39
- package/components/{CasinoTournamentsThumbnailPrizes-CqHeg4IE.js → CasinoTournamentsThumbnailPrizes-BP5XEe6I.js} +43 -43
- package/components/{CasinoTournamentsThumbnailPrizes-o3k0uvpO.js → CasinoTournamentsThumbnailPrizes-DbXoL6RT.js} +43 -43
- package/components/{CasinoTournamentsThumbnailPrizes-PGRcOqE8.cjs → CasinoTournamentsThumbnailPrizes-DqgnwAS4.cjs} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsListController-BYc-oNXJ.cjs +0 -15
- package/components/CasinoTournamentsThumbnailController-Ya6dWlsm.cjs +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var Q=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(m){o(m)}},a=c=>{try{u(e.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-C-bVKhDo.cjs");function F(r){return typeof r=="function"}function Le(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $=Le(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
+
`+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var H=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,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=n.__values(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(p){t={error:p}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(F(f))try{f()}catch(p){s=p instanceof $?p.errors:[p]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var y=n.__values(b),w=y.next();!w.done;w=y.next()){var _=w.value;try{Te(_)}catch(p){s=s!=null?s:[],p instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(p.errors)):s.push(p)}}}catch(p){i={error:p}}finally{try{w&&!w.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}if(s)throw new $(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Te(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Re=H.EMPTY;function Ue(r){return r instanceof H||r&&"closed"in r&&F(r.remove)&&F(r.add)&&F(r.unsubscribe)}function Te(r){F(r)?r():r.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},st={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function at(r){st.setTimeout(function(){throw r})}function Fe(){}function W(r){r()}var We=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Ue(e)&&e.add(i)):i.destination=dt,i}return t.create=function(e,i,o){return new ne(e,i,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,r.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}(H),lt=Function.prototype.bind;function ee(r,t){return lt.call(r,t)}var ut=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){J(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){J(i)}else J(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},r}(),ne=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,a;if(F(e)||!e)a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var u;s&&Je.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,u),error:e.error&&ee(e.error,u),complete:e.complete&&ee(e.complete,u)}):a=e}return s.destination=new ut(a),s}return t}(We);function J(r){at(r)}function ct(r){throw r}var dt={closed:!0,next:Fe,error:ct,complete:Fe},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mt(r){return r}function ht(r){return r.length===0?mt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Se=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=_t(t)?t:new ne(t,e,i);return W(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},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Ee(e),new e(function(o,s){var a=new ne({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ft]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ee(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Ee(r){var t;return(t=r!=null?r:Je.Promise)!==null&&t!==void 0?t:Promise}function pt(r){return r&&F(r.next)&&F(r.error)&&F(r.complete)}function _t(r){return r&&r instanceof We||pt(r)&&Ue(r)}var gt=Le(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),He=function(r){n.__extends(t,r);function t(){var e=r.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 i=new Ce(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new gt},t.prototype.next=function(e){var i=this;W(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=n.__values(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.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(),r.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 i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Re:(this.currentObservers=null,u.push(e),new H(function(){i.currentObservers=null,te(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Se;return e.source=this,e},t.create=function(e,i){return new Ce(e,i)},t}(Se),Ce=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:Re},t}(He),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},bt=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=qe);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=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),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),m=0,f=1;f<s.length&&s[f]<=c;f+=2)m=f;m&&s.splice(0,m+1)}},t}(He);const je=[],ze={},wt=(r,t=0)=>{if(je.indexOf(r)==-1){const e=new bt(t);ze[r]=e,je.push(r)}return ze[r]};window.emWidgets={topic:wt};const re=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function yt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function Pe(r,t){n.addMessages(r,t)}function vt(r){n.$locale.set(r)}const Be={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 r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CdyLHB3q.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-DAU985Oj.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-DqgnwAS4.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BYiStSlZ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function kt(r){n.append_styles(r,"svelte-1kmemyq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Tt(r){let t,e,i,o,s,a,u,c,m,f=r[14]&&xe(r);function b(d,h){if(!d[14])return Ct;if(d[23]!="Closed"&&d[23]!="Closing")return Et;if(d[3]=="true")return St}let y=b(r),w=y&&y(r),_=(r[17]||r[19])&&Ie(r),p=r[4]=="true"&&Me(r);return{c(){t=n.element("div"),e=n.element("casino-tournaments-thumbnail"),i=n.space(),f&&f.c(),o=n.space(),s=n.element("div"),w&&w.c(),a=n.space(),_&&_.c(),u=n.space(),p&&p.c(),n.set_custom_element_data(e,"session",r[0]),n.set_custom_element_data(e,"userid",r[1]),n.set_custom_element_data(e,"title",r[20]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"tourid",r[24]),n.set_custom_element_data(e,"scorecriteria",r[27]),n.set_custom_element_data(e,"minbetcount",r[28]),n.set_custom_element_data(e,"thumbnail",r[25]),n.set_custom_element_data(e,"showenrolled",r[5]),n.set_custom_element_data(e,"gameurl",r[30]),n.set_custom_element_data(e,"userenrolled",r[26]),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"keepbrowsercontext",r[9]),n.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(s,"class","TournamentButtons"),n.attr(s,"part","TournamentButtons"),n.attr(t,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",m="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(d,h){n.insert(d,t,h),n.append(t,e),n.append(t,i),f&&f.m(t,null),n.append(t,o),n.append(t,s),w&&w.m(s,null),n.append(t,a),_&&_.m(t,null),n.append(t,u),p&&p.m(t,null)},p(d,h){h[0]&1&&n.set_custom_element_data(e,"session",d[0]),h[0]&2&&n.set_custom_element_data(e,"userid",d[1]),h[0]&1048576&&n.set_custom_element_data(e,"title",d[20]),h[0]&8388608&&n.set_custom_element_data(e,"status",d[23]),h[0]&2097152&&n.set_custom_element_data(e,"startdate",d[21]),h[0]&16777216&&n.set_custom_element_data(e,"tourid",d[24]),h[0]&134217728&&n.set_custom_element_data(e,"scorecriteria",d[27]),h[0]&268435456&&n.set_custom_element_data(e,"minbetcount",d[28]),h[0]&33554432&&n.set_custom_element_data(e,"thumbnail",d[25]),h[0]&32&&n.set_custom_element_data(e,"showenrolled",d[5]),h[0]&1073741824&&n.set_custom_element_data(e,"gameurl",d[30]),h[0]&67108864&&n.set_custom_element_data(e,"userenrolled",d[26]),h[0]&1024&&n.set_custom_element_data(e,"clientstyling",d[10]),h[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",d[11]),h[0]&4096&&n.set_custom_element_data(e,"translationurl",d[12]),h[0]&256&&n.set_custom_element_data(e,"lang",d[8]),h[0]&512&&n.set_custom_element_data(e,"keepbrowsercontext",d[9]),d[14]?f?f.p(d,h):(f=xe(d),f.c(),f.m(t,o)):f&&(f.d(1),f=null),y===(y=b(d))&&w?w.p(d,h):(w&&w.d(1),w=y&&y(d),w&&(w.c(),w.m(s,null))),d[17]||d[19]?_?_.p(d,h):(_=Ie(d),_.c(),_.m(t,u)):_&&(_.d(1),_=null),d[4]=="true"?p?p.p(d,h):(p=Me(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null),h[0]&192|h[1]&1&&c!==(c="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",c),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[31]?"elementToFadeOut":"elementToFadeIn")+" "+(d[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",m)},d(d){d&&n.detach(t),f&&f.d(),w&&w.d(),_&&_.d(),p&&p.d()}}}function Ft(r){let t,e,i,o;return{c(){t=n.element("div"),e=n.element("div"),e.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',n.attr(e,"class","ph-item"),n.attr(e,"part","ph-item"),n.attr(t,"class",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",o="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(s,a){n.insert(s,t,a),n.append(t,e)},p(s,a){a[0]&192|a[1]&1&&i!==(i="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",i),a[0]&192|a[1]&1&&o!==(o="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",o)},d(s){s&&n.detach(t)}}}function xe(r){let t,e,i=r[24]&&Oe(r);return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"enddate",r[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?i?i.p(o,s):(i=Oe(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=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)),i&&i.d(o)}}}function Oe(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[24]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[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),i||(o=n.action_destroyer(e=r[37].call(null,t,r[24])),i=!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),i=!1,o()}}}function St(r){let t,e=r[32]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[51]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i=r[3]=="true"&&De(r);function o(u,c){return u[26]?zt:jt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?i?i.p(u,c):(i=De(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=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)),i&&i.d(u),a.d(u)}}}function Ct(r){let t,e=r[32]("login")+"",i,o,s,a=r[32]("register")+"",u,c,m;return{c(){t=n.element("button"),i=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(f,b){n.insert(f,t,b),n.append(t,i),n.insert(f,o,b),n.insert(f,s,b),n.append(s,u),c||(m=[n.listen(t,"click",r[47]),n.listen(s,"click",r[48])],c=!0)},p(f,b){b[1]&2&&e!==(e=f[32]("login")+"")&&n.set_data(i,e),b[1]&2&&a!==(a=f[32]("register")+"")&&n.set_data(u,a)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(m)}}}function De(r){let t,e=r[32]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[49]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(r){let t,e,i,o,s;function a(m,f){return m[16]==!0?Bt:Pt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(m,f){n.insert(m,t,f),c.m(t,null),o||(s=n.listen(t,"click",r[50]),o=!0)},p(m,f){u===(u=a(m))&&c?c.p(m,f):(c.d(1),c=u(m),c&&(c.c(),c.m(t,null))),f[0]&128&&e!==(e="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),f[0]&128&&i!==(i="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),f[0]&131072&&(t.disabled=m[17])},d(m){m&&n.detach(t),c.d(),o=!1,s()}}}function zt(r){let t,e=r[3]=="true"&&Ae(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[3]=="true"?e?e.p(i,o):(e=Ae(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Pt(r){let t,e=r[32]("join")+"",i,o,s,a,u,c,m,f;return{c(){t=n.element("span"),i=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);}"),m=n.svg_element("g"),f=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(f,"class","a"),n.attr(f,"part","a JoinButtonSvgA"),n.attr(f,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(f,"transform","translate(26 26) rotate(180)"),n.attr(m,"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(b,y){n.insert(b,t,y),n.append(t,i),n.insert(b,o,y),n.insert(b,s,y),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,m),n.append(m,f)},p(b,y){y[1]&2&&e!==(e=b[32]("join")+"")&&n.set_data(i,e)},d(b){b&&(n.detach(t),n.detach(o),n.detach(s))}}}function Bt(r){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(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Ae(r){let t,e=r[32]("enrolled")+"",i;return{c(){t=n.element("button"),i=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,i)},p(o,s){s[1]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ie(r){let t,e=r[32]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(i,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Me(r){let t;return{c(){t=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"tournamenturl",r[2]),n.set_custom_element_data(t,"lang",r[8]),n.set_custom_element_data(t,"scrollby","2"),n.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,i){n.insert(e,t,i)},p(e,i){i[0]&1024&&n.set_custom_element_data(t,"clientstyling",e[10]),i[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",e[11]),i[0]&4096&&n.set_custom_element_data(t,"translationurl",e[12]),i[0]&4&&n.set_custom_element_data(t,"tournamenturl",e[2]),i[0]&256&&n.set_custom_element_data(t,"lang",e[8])},d(e){e&&n.detach(t)}}}function xt(r){let t;function e(s,a){if(s[15])return Ft;if(s[20])return Tt}let i=e(r),o=i&&i(r);return{c(){t=n.element("div"),o&&o.c()},m(s,a){n.insert(s,t,a),o&&o.m(t,null),r[52](t)},p(s,a){i===(i=e(s))&&o?o.p(s,a):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(t,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(t),o&&o.d(),r[52](null)}}}function Ot(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(32,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:m=""}=t,{showslider:f=""}=t,{showenrolled:b=""}=t,{maxwidth:y=""}=t,{fullsize:w=""}=t,{lang:_=""}=t,{loginevent:p=""}=t,{registerevent:d=""}=t,{loginurl:h=""}=t,{registerurl:B=""}=t,{currency:q=""}=t,{keepbrowsercontext:ie="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,{tournamentinfo:A}=t,S,C=!1,I="",j=!0,oe=window.navigator.userAgent,M=!1,L=!1,se="There was an error while trying to join the tournament",G=!1,ae,le,ue,z,T,ce,Y,de,fe,me=[],K=[],he="#",V,R=!1;yt({withLocale:"en",translations:{}});const Ye=()=>{fetch(D).then(g=>g.json()).then(g=>{Object.keys(g).forEach(v=>{Pe(v,g[v])})}).catch(g=>{console.log(g)})};Object.keys(Be).forEach(l=>{Pe(l,Be[l])});const pe=l=>{Ke(l),N(l),ye(this,T)},_e=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),I=l.data.session),l.data.type=="UpdateTournamentView"){let g=l.data.tournamentData;if(T&&T!=g.id)return;pe(g)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let g=l.data.tournamentData,v=u<4?u*100:Math.random()*300+300;e(31,R=u==1),setTimeout(()=>{e(31,R=!0),e(24,T=g.id),pe(g)},v),setTimeout(()=>{e(31,R=!1)},v+200)}},Ke=l=>{l.state!=z&&(e(23,z=l.state),window.postMessage({type:`TournamentStatus_${T}`,status:z},window.location.href))},ge=()=>{p&&(window.postMessage({type:p,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),h&&(window.location=h)},be=()=>{d&&(window.postMessage({type:d,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},we=(l,g)=>Q(this,null,function*(){var ke;e(17,L=!1),e(19,G=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,M=!0);let v=new URL(`${c}/v1/bonus/claim`),U=new Headers,E={};v.searchParams.append("language",_),v.searchParams.append("platform",re(oe)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),g&&g.length>=1&&(E={language:_,bonusCode:g[0].code,currency:q,type:"tournament"});let ot={method:"PUT",headers:U,body:JSON.stringify(E)};const ve=()=>{e(16,M=!1),e(26,Y=!0)},Z=k=>{e(16,M=!1),k&&e(18,se=k),e(17,L=!0)},P=yield Q(this,null,function*(){let k;try{k=yield fetch(v,ot),k=yield k.json()}catch(It){Z()}return k});if(P)if(P.success==!0)ve();else if(P.errorMessage.match("VersionMismatchException")){let k;k=yield fetch(`${c}/tournaments/${T}`,{headers:{"X-SessionID":o}}),k=yield k.json(),(ke=k==null?void 0:k.item)!=null&&ke.playerEnrolled?ve():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),ye=(l,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:me},window.location.href)},N=l=>{l&&(e(20,ae=l.nameOrTitle||""),e(21,le=l.startTime),e(22,ue=l.endTime),e(23,z=l.state),e(24,T=l.id),e(25,ce=l.thumbnail),e(26,Y=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,de=l.scoreCriteria),e(28,fe=l.minBetCount),me=l.prizes,e(29,K=l.wallets||[]),e(30,he=l.termsUrl||"#"))},Ve=l=>{e(15,j=!0);let g=new URL(l),v=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",re(oe)),C&&v.append("X-SessionID",I),fetch(g,{method:"GET",headers:v}).then(E=>E.json()).then(E=>{e(15,j=!1),N(E.item)})},Xe=()=>{o.length>0&&o!="false"?(I=o,e(14,C=!0)):e(14,C=!1)},Ne=()=>{if(A){N(A);return}e(15,j=!0),Ve(a)},Ze=()=>{let l=document.createElement("style");l.innerHTML=x,S.appendChild(l)},Qe=()=>{let l=new URL(O),g=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{g.innerHTML=v,setTimeout(()=>{S.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,j=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const $e=()=>ge(),et=()=>be(),tt=()=>X(T),nt=()=>we(T,K),rt=()=>X(T);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{S=l,e(13,S)})}return r.$$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,m=l.showdetails),"showslider"in l&&e(4,f=l.showslider),"showenrolled"in l&&e(5,b=l.showenrolled),"maxwidth"in l&&e(6,y=l.maxwidth),"fullsize"in l&&e(7,w=l.fullsize),"lang"in l&&e(8,_=l.lang),"loginevent"in l&&e(40,p=l.loginevent),"registerevent"in l&&e(41,d=l.registerevent),"loginurl"in l&&e(42,h=l.loginurl),"registerurl"in l&&e(43,B=l.registerurl),"currency"in l&&e(44,q=l.currency),"keepbrowsercontext"in l&&e(9,ie=l.keepbrowsercontext),"clientstyling"in l&&e(10,x=l.clientstyling),"clientstylingurl"in l&&e(11,O=l.clientstylingurl),"translationurl"in l&&e(12,D=l.translationurl),"tournamentinfo"in l&&e(45,A=l.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&256&&_&&vt(_),r.$$.dirty[0]&9216&&S&&x&&Ze(),r.$$.dirty[0]&10240&&S&&O&&Qe(),r.$$.dirty[0]&4096&&D&&Ye(),r.$$.dirty[0]&1&&o&&Xe(),r.$$.dirty[0]&260&&e(46,V=a&&_),r.$$.dirty[1]&32768&&V&&Ne()},[o,s,a,m,f,b,y,w,_,ie,x,O,D,S,C,j,M,L,se,G,ae,le,ue,z,T,ce,Y,de,fe,K,he,R,i,ge,be,X,we,ye,u,c,p,d,h,B,q,A,V,$e,et,tt,nt,rt,it]}class Ge extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Ot,xt,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},kt,[-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(Ge,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Dt;exports.getDevice=re;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as K, S as Y, i as Z,
|
|
1
|
+
import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, g as l, h as T, n as U, l as B, m as X, o as $, t as E, d as L, j as m, p as tt, k as M, w as et, x as N, y as nt } from "./CasinoTournamentsListController-DKc3JGbs.js";
|
|
2
2
|
function O(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,7 +93,7 @@ const x = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
V(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
98
|
function A(i) {
|
|
99
99
|
let t, e, s = (
|
|
@@ -127,23 +127,26 @@ function A(i) {
|
|
|
127
127
|
r[2] == "Finished" || /*status*/
|
|
128
128
|
r[2] == "Closing" || /*status*/
|
|
129
129
|
r[2] == "Closed"
|
|
130
|
-
)
|
|
130
|
+
)
|
|
131
|
+
return ut;
|
|
131
132
|
if (
|
|
132
133
|
/*tournamentUntilStartDays*/
|
|
133
134
|
r[5] > 0
|
|
134
|
-
)
|
|
135
|
+
)
|
|
136
|
+
return ot;
|
|
135
137
|
if (
|
|
136
138
|
/*tournamentLeftDays*/
|
|
137
139
|
r[4] > 0
|
|
138
|
-
)
|
|
140
|
+
)
|
|
141
|
+
return lt;
|
|
139
142
|
}
|
|
140
143
|
let k = R(i), f = k && k(i);
|
|
141
144
|
return {
|
|
142
145
|
c() {
|
|
143
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
144
147
|
},
|
|
145
148
|
m(r, b) {
|
|
146
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
147
150
|
/*getDuration*/
|
|
148
151
|
i[9].call(null, p)
|
|
149
152
|
), F = !0);
|
|
@@ -154,15 +157,15 @@ function A(i) {
|
|
|
154
157
|
r[10](
|
|
155
158
|
/*startdate*/
|
|
156
159
|
r[0]
|
|
157
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
158
161
|
2 && d !== (d = /*formatDate*/
|
|
159
162
|
r[10](
|
|
160
163
|
/*enddate*/
|
|
161
164
|
r[1]
|
|
162
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
163
166
|
},
|
|
164
167
|
d(r) {
|
|
165
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
171
|
}
|
|
@@ -178,7 +181,7 @@ function st(i) {
|
|
|
178
181
|
);
|
|
179
182
|
},
|
|
180
183
|
m(e, s) {
|
|
181
|
-
|
|
184
|
+
T(e, t, s);
|
|
182
185
|
},
|
|
183
186
|
p(e, s) {
|
|
184
187
|
s & /*getProgress*/
|
|
@@ -190,7 +193,7 @@ function st(i) {
|
|
|
190
193
|
);
|
|
191
194
|
},
|
|
192
195
|
d(e) {
|
|
193
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
194
197
|
}
|
|
195
198
|
};
|
|
196
199
|
}
|
|
@@ -201,11 +204,11 @@ function rt(i) {
|
|
|
201
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
202
205
|
},
|
|
203
206
|
m(e, s) {
|
|
204
|
-
|
|
207
|
+
T(e, t, s);
|
|
205
208
|
},
|
|
206
209
|
p: U,
|
|
207
210
|
d(e) {
|
|
208
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
209
212
|
}
|
|
210
213
|
};
|
|
211
214
|
}
|
|
@@ -216,11 +219,11 @@ function at(i) {
|
|
|
216
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
217
220
|
},
|
|
218
221
|
m(e, s) {
|
|
219
|
-
|
|
222
|
+
T(e, t, s);
|
|
220
223
|
},
|
|
221
224
|
p: U,
|
|
222
225
|
d(e) {
|
|
223
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
224
227
|
}
|
|
225
228
|
};
|
|
226
229
|
}
|
|
@@ -231,26 +234,26 @@ function lt(i) {
|
|
|
231
234
|
), u;
|
|
232
235
|
return {
|
|
233
236
|
c() {
|
|
234
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
235
238
|
/*showRemain*/
|
|
236
239
|
i[6]
|
|
237
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
238
241
|
},
|
|
239
242
|
m(o, d) {
|
|
240
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(t, u);
|
|
241
244
|
},
|
|
242
245
|
p(o, d) {
|
|
243
246
|
d & /*showRemain*/
|
|
244
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
245
248
|
e,
|
|
246
249
|
/*showRemain*/
|
|
247
250
|
o[6]
|
|
248
251
|
), d & /*$_*/
|
|
249
252
|
256 && a !== (a = /*$_*/
|
|
250
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
251
254
|
},
|
|
252
255
|
d(o) {
|
|
253
|
-
o &&
|
|
256
|
+
o && B(t);
|
|
254
257
|
}
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -267,23 +270,23 @@ function ot(i) {
|
|
|
267
270
|
), o;
|
|
268
271
|
return {
|
|
269
272
|
c() {
|
|
270
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
271
274
|
},
|
|
272
275
|
m(d, g) {
|
|
273
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(t, o);
|
|
274
277
|
},
|
|
275
278
|
p(d, g) {
|
|
276
279
|
g & /*$_*/
|
|
277
280
|
256 && e !== (e = /*$_*/
|
|
278
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
279
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
280
283
|
d[11](
|
|
281
284
|
/*tournamentUntilStartDays*/
|
|
282
285
|
d[5]
|
|
283
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
284
287
|
},
|
|
285
288
|
d(d) {
|
|
286
|
-
d &&
|
|
289
|
+
d && B(t);
|
|
287
290
|
}
|
|
288
291
|
};
|
|
289
292
|
}
|
|
@@ -294,18 +297,18 @@ function ut(i) {
|
|
|
294
297
|
), s;
|
|
295
298
|
return {
|
|
296
299
|
c() {
|
|
297
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
298
301
|
},
|
|
299
302
|
m(a, u) {
|
|
300
|
-
|
|
303
|
+
T(a, t, u), m(t, s);
|
|
301
304
|
},
|
|
302
305
|
p(a, u) {
|
|
303
306
|
u & /*$_*/
|
|
304
307
|
256 && e !== (e = /*$_*/
|
|
305
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
306
309
|
},
|
|
307
310
|
d(a) {
|
|
308
|
-
a &&
|
|
311
|
+
a && B(t);
|
|
309
312
|
}
|
|
310
313
|
};
|
|
311
314
|
}
|
|
@@ -320,7 +323,7 @@ function dt(i) {
|
|
|
320
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
321
324
|
},
|
|
322
325
|
m(s, a) {
|
|
323
|
-
|
|
326
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
324
327
|
},
|
|
325
328
|
p(s, [a]) {
|
|
326
329
|
/*startdate*/
|
|
@@ -330,13 +333,13 @@ function dt(i) {
|
|
|
330
333
|
i: U,
|
|
331
334
|
o: U,
|
|
332
335
|
d(s) {
|
|
333
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
334
337
|
}
|
|
335
338
|
};
|
|
336
339
|
}
|
|
337
340
|
function ct(i, t, e) {
|
|
338
341
|
let s, a;
|
|
339
|
-
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
340
343
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
341
344
|
const z = () => {
|
|
342
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
@@ -385,7 +388,7 @@ function ct(i, t, e) {
|
|
|
385
388
|
);
|
|
386
389
|
});
|
|
387
390
|
};
|
|
388
|
-
|
|
391
|
+
$(() => {
|
|
389
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
390
393
|
const n = setInterval(
|
|
391
394
|
() => {
|
|
@@ -396,7 +399,7 @@ function ct(i, t, e) {
|
|
|
396
399
|
return () => clearInterval(n);
|
|
397
400
|
});
|
|
398
401
|
function q(n) {
|
|
399
|
-
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
400
403
|
D = n, e(3, D);
|
|
401
404
|
});
|
|
402
405
|
}
|
|
@@ -405,7 +408,8 @@ function ct(i, t, e) {
|
|
|
405
408
|
}, i.$$.update = () => {
|
|
406
409
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
407
410
|
19 && e(7, s = () => {
|
|
408
|
-
if (F <= 0)
|
|
411
|
+
if (F <= 0)
|
|
412
|
+
return 100;
|
|
409
413
|
const n = R(u, o), c = 100 / n;
|
|
410
414
|
return Math.floor((n - F) * c);
|
|
411
415
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
@@ -442,7 +446,7 @@ class ft extends Y {
|
|
|
442
446
|
t,
|
|
443
447
|
ct,
|
|
444
448
|
dt,
|
|
445
|
-
|
|
449
|
+
Q,
|
|
446
450
|
{
|
|
447
451
|
startdate: 0,
|
|
448
452
|
enddate: 1,
|
|
@@ -498,7 +502,7 @@ class ft extends Y {
|
|
|
498
502
|
this.$$set({ translationurl: t }), C();
|
|
499
503
|
}
|
|
500
504
|
}
|
|
501
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
502
506
|
export {
|
|
503
507
|
ft as default
|
|
504
508
|
};
|
|
@@ -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-C-bVKhDo.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;
|