@everymatrix/casino-tournaments-list-controller 1.45.0 → 1.45.3

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.
Files changed (24) hide show
  1. package/components/{CasinoTournamentsListController-DKdmeWUn.js → CasinoTournamentsListController-DQkRGglO.js} +205 -205
  2. package/components/{CasinoTournamentsListController-BI700b_r.cjs → CasinoTournamentsListController-Dxc2MrGE.cjs} +5 -5
  3. package/components/CasinoTournamentsThumbnail-F3yd6zuc.cjs +4 -0
  4. package/components/{CasinoTournamentsThumbnail-DvqVgpqK.js → CasinoTournamentsThumbnail-rgNkt8jX.js} +188 -188
  5. package/components/CasinoTournamentsThumbnailController-Btof54Ze.js +1881 -0
  6. package/components/CasinoTournamentsThumbnailController-DT2N9cxC.cjs +3 -0
  7. package/components/CasinoTournamentsThumbnailDuration-C36qRcBp.js +495 -0
  8. package/components/CasinoTournamentsThumbnailDuration-CeJ__224.cjs +1 -0
  9. package/components/CasinoTournamentsThumbnailGamesSlider--nbq1N9x.js +439 -0
  10. package/components/CasinoTournamentsThumbnailGamesSlider-a0sQ72y8.cjs +1 -0
  11. package/components/CasinoTournamentsThumbnailPrizes-CyENln5i.cjs +1 -0
  12. package/components/CasinoTournamentsThumbnailPrizes-e1up8aDE.js +310 -0
  13. package/es2015/casino-tournaments-list-controller.cjs +1 -1
  14. package/es2015/casino-tournaments-list-controller.js +1 -1
  15. package/package.json +2 -2
  16. package/components/CasinoTournamentsThumbnail-BiHKMblV.cjs +0 -4
  17. package/components/CasinoTournamentsThumbnailController-B9Itmkhr.cjs +0 -3
  18. package/components/CasinoTournamentsThumbnailController-tU-U1qDq.js +0 -1881
  19. package/components/CasinoTournamentsThumbnailDuration-BKtOkvAC.cjs +0 -1
  20. package/components/CasinoTournamentsThumbnailDuration-DFBCO700.js +0 -495
  21. package/components/CasinoTournamentsThumbnailGamesSlider-BJ6olJeN.js +0 -439
  22. package/components/CasinoTournamentsThumbnailGamesSlider-Ba6b2okX.cjs +0 -1
  23. package/components/CasinoTournamentsThumbnailPrizes-BO1L1Nff.js +0 -310
  24. package/components/CasinoTournamentsThumbnailPrizes-DgXBrfnZ.cjs +0 -1
@@ -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-Dxc2MrGE.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 d=this.initialTeardown;if(F(d))try{d()}catch(p){s=p instanceof $?p.errors:[p]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var v=n.__values(g),b=v.next();!b.done;b=v.next()){var w=b.value;try{Te(w)}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{b&&!b.done&&(o=v.return)&&o.call(v)}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},We={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){var t=We.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function at(r){We.setTimeout(function(){throw r})}function Fe(){}function W(r){r()}var He=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=ft,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}(He);function J(r){at(r)}function ct(r){throw r}var ft={closed:!0,next:Fe,error:ct,complete:Fe},dt=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[dt]=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 He||pt(r)&&Ue(r)}var gt=Le(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=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}(qe),Ge={now:function(){return(Ge.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=Ge);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,d=1;d<s.length&&s[d]<=c;d+=2)m=d;m&&s.splice(0,m+1)}},t}(qe);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 vt({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)}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"}};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-F3yd6zuc.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-CeJ__224.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-CyENln5i.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-a0sQ72y8.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function yt(r){n.append_styles(r,"svelte-e8vjpc",'*,*::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(--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{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{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:hover{opacity:0.7}.RegisterButton{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:hover{opacity:0.7}.DetailsButton{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:hover{opacity:0.7}.DetailsLargeButton{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:hover{opacity:0.7}.EnrolledButton{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{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: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(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-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(--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: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(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-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(--emfe-w-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(--emfe-w-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(--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: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 kt(r){let t,e,i,o,s,a,u,c,m,d=r[14]&&xe(r);function g(f,h){if(!f[14])return Et;if(f[23]!="Closed"&&f[23]!="Closing")return St;if(f[3]=="true")return Ft}let v=g(r),b=v&&v(r),w=(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(),d&&d.c(),o=n.space(),s=n.element("div"),b&&b.c(),a=n.space(),w&&w.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(f,h){n.insert(f,t,h),n.append(t,e),n.append(t,i),d&&d.m(t,null),n.append(t,o),n.append(t,s),b&&b.m(s,null),n.append(t,a),w&&w.m(t,null),n.append(t,u),p&&p.m(t,null)},p(f,h){h[0]&1&&n.set_custom_element_data(e,"session",f[0]),h[0]&2&&n.set_custom_element_data(e,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(e,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(e,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(e,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(e,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(e,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(e,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(e,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(e,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(e,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(e,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(e,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(e,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(e,"lang",f[8]),h[0]&512&&n.set_custom_element_data(e,"keepbrowsercontext",f[9]),f[14]?d?d.p(f,h):(d=xe(f),d.c(),d.m(t,o)):d&&(d.d(1),d=null),v===(v=g(f))&&b?b.p(f,h):(b&&b.d(1),b=v&&v(f),b&&(b.c(),b.m(s,null))),f[17]||f[19]?w?w.p(f,h):(w=Ie(f),w.c(),w.m(t,u)):w&&(w.d(1),w=null),f[4]=="true"?p?p.p(f,h):(p=Me(f),p.c(),p.m(t,null)):p&&(p.d(1),p=null),h[0]&192|h[1]&1&&c!==(c="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",c),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",m)},d(f){f&&n.detach(t),d&&d.d(),b&&b.d(),w&&w.d(),p&&p.d()}}}function Tt(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 Ft(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 St(r){let t,e,i=r[3]=="true"&&De(r);function o(u,c){return u[26]?jt:Ct}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 Et(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(d,g){n.insert(d,t,g),n.append(t,i),n.insert(d,o,g),n.insert(d,s,g),n.append(s,u),c||(m=[n.listen(t,"click",r[47]),n.listen(s,"click",r[48])],c=!0)},p(d,g){g[1]&2&&e!==(e=d[32]("login")+"")&&n.set_data(i,e),g[1]&2&&a!==(a=d[32]("register")+"")&&n.set_data(u,a)},d(d){d&&(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 Ct(r){let t,e,i,o,s;function a(m,d){return m[16]==!0?Pt:zt}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,d){n.insert(m,t,d),c.m(t,null),o||(s=n.listen(t,"click",r[50]),o=!0)},p(m,d){u===(u=a(m))&&c?c.p(m,d):(c.d(1),c=u(m),c&&(c.c(),c.m(t,null))),d[0]&128&&e!==(e="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),d[0]&128&&i!==(i="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),d[0]&131072&&(t.disabled=m[17])},d(m){m&&n.detach(t),c.d(),o=!1,s()}}}function jt(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 zt(r){let t,e=r[32]("join")+"",i,o,s,a,u,c,m,d;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(--emfe-w-color-white, #FFFFFF);}"),m=n.svg_element("g"),d=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(d,"class","a"),n.attr(d,"part","a JoinButtonSvgA"),n.attr(d,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(d,"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(g,v){n.insert(g,t,v),n.append(t,i),n.insert(g,o,v),n.insert(g,s,v),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,m),n.append(m,d)},p(g,v){v[1]&2&&e!==(e=g[32]("join")+"")&&n.set_data(i,e)},d(g){g&&(n.detach(t),n.detach(o),n.detach(s))}}}function Pt(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 Bt(r){let t;function e(s,a){if(s[15])return Tt;if(s[20])return kt}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 xt(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:d=""}=t,{showenrolled:g=""}=t,{maxwidth:v=""}=t,{fullsize:b=""}=t,{lang:w=""}=t,{loginevent:p=""}=t,{registerevent:f=""}=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,fe,de,me=[],K=[],he="#",V,R=!1;vt({withLocale:"en",translations:{}});const Ke=()=>{fetch(D).then(_=>_.json()).then(_=>{Object.keys(_).forEach(y=>{Pe(y,_[y])})}).catch(_=>{console.log(_)})};Object.keys(Be).forEach(l=>{Pe(l,Be[l])});const pe=l=>{Ve(l),N(l),ve(this,T)},_e=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),I=l.data.session),l.data.type=="UpdateTournamentView"){let _=l.data.tournamentData;if(T&&T!=_.id)return;pe(_)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let _=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(31,R=u==1),setTimeout(()=>{e(31,R=!0),e(24,T=_.id),pe(_)},y),setTimeout(()=>{e(31,R=!1)},y+200)}},Ve=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"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),h&&(window.location=h)},be=()=>{f&&(window.postMessage({type:f,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},we=(l,_)=>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 y=new URL(`${c}/v1/bonus/claim`),U=new Headers,E={};y.searchParams.append("language",w),y.searchParams.append("platform",re(oe)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),_&&_.length>=1&&(E={language:w,bonusCode:_[0].code,currency:q,type:"tournament"});let st={method:"PUT",headers:U,body:JSON.stringify(E)};const ye=()=>{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(y,st),k=yield k.json()}catch(At){Z()}return k});if(P)if(P.success==!0)ye();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?ye():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),ve=(l,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,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,fe=l.scoreCriteria),e(28,de=l.minBetCount),me=l.prizes,e(29,K=l.wallets||[]),e(30,he=l.termsUrl||"#"))},Xe=l=>{e(15,j=!0);let _=new URL(l),y=new Headers;_.searchParams.append("language",w),_.searchParams.append("platform",re(oe)),C&&y.append("X-SessionID",I),fetch(_,{method:"GET",headers:y}).then(E=>E.json()).then(E=>{e(15,j=!1),N(E.item)})},Ne=()=>{o.length>0&&o!="false"?(I=o,e(14,C=!0)):e(14,C=!1)},Ze=()=>{if(A){N(A);return}e(15,j=!0),Xe(a)},Qe=()=>{let l=document.createElement("style");l.innerHTML=x,S.appendChild(l)},$e=()=>{let l=new URL(O),_=document.createElement("style");fetch(l.href).then(y=>y.text()).then(y=>{_.innerHTML=y,setTimeout(()=>{S.appendChild(_)},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 et=()=>ge(),tt=()=>be(),nt=()=>X(T),rt=()=>we(T,K),it=()=>X(T);function ot(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,d=l.showslider),"showenrolled"in l&&e(5,g=l.showenrolled),"maxwidth"in l&&e(6,v=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,w=l.lang),"loginevent"in l&&e(40,p=l.loginevent),"registerevent"in l&&e(41,f=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]&9216&&S&&x&&Qe(),r.$$.dirty[0]&10240&&S&&O&&$e(),r.$$.dirty[0]&4096&&D&&Ke(),r.$$.dirty[0]&1&&o&&Ne(),r.$$.dirty[0]&260&&e(46,V=a&&w),r.$$.dirty[1]&32768&&V&&Ze()},[o,s,a,m,d,g,v,b,w,ie,x,O,D,S,C,j,M,L,se,G,ae,le,ue,z,T,ce,Y,fe,de,K,he,R,i,ge,be,X,we,ve,u,c,p,f,h,B,q,A,V,et,tt,nt,rt,it,ot]}class Ye extends n.SvelteComponent{constructor(t){super(),n.init(this,t,xt,Bt,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},yt,[-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(Ye,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Ot;exports.getDevice=re;
@@ -0,0 +1,495 @@
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 b, g as l, h as T, n as U, l as w, m as X, o as $, t as E, d as L, j as h, p as tt, k as z, w as et, x as N, y as nt } from "./CasinoTournamentsListController-DQkRGglO.js";
2
+ function O(i, t) {
3
+ K(i, t);
4
+ }
5
+ const x = {
6
+ en: {
7
+ finished: "Finished",
8
+ starting: "Starting in ",
9
+ left: "left",
10
+ minutes: "minutes",
11
+ hours: "hours",
12
+ days: "days"
13
+ },
14
+ hr: {
15
+ finished: "Završeno",
16
+ starting: "Starting in ",
17
+ left: "preostalo",
18
+ minutes: "minute",
19
+ hours: "sati",
20
+ days: "dana"
21
+ },
22
+ "zh-hk": {
23
+ finished: "完成的",
24
+ starting: "開始於",
25
+ left: "剩下",
26
+ minutes: "分鐘",
27
+ hours: "小時",
28
+ days: "天"
29
+ },
30
+ fr: {
31
+ finished: "Fini",
32
+ starting: "Début dans ",
33
+ left: "restant",
34
+ minutes: "minutes",
35
+ hours: "heures",
36
+ days: "jours"
37
+ },
38
+ ro: {
39
+ finished: "Finalizat",
40
+ starting: "Începe în",
41
+ left: "rămase",
42
+ minutes: "minute",
43
+ hours: "ore",
44
+ days: "zile"
45
+ },
46
+ tr: {
47
+ finished: "Bitti",
48
+ starting: "İçinde başlayan",
49
+ left: "sol",
50
+ minutes: "dakika",
51
+ hours: "saat",
52
+ days: "günler"
53
+ },
54
+ el: {
55
+ finished: "Ολοκληρωμένα",
56
+ starting: "Αρχίζει σε ",
57
+ left: "απομένουν",
58
+ minutes: "λεπτά",
59
+ hours: "ώρες",
60
+ days: "ημέρες"
61
+ },
62
+ es: {
63
+ finished: "Finalizado",
64
+ starting: "Iniciando en ",
65
+ left: "queda",
66
+ minutes: "minutos",
67
+ hours: "horas",
68
+ days: "días"
69
+ },
70
+ hu: {
71
+ finished: "Befejezve",
72
+ starting: "Kezdésig",
73
+ left: "bal",
74
+ minutes: "perc",
75
+ hours: "óra",
76
+ days: "nap"
77
+ },
78
+ pt: {
79
+ finished: "Finalizado",
80
+ starting: "Começando em",
81
+ left: "Abandonou",
82
+ minutes: "Minutos",
83
+ hours: "Horas",
84
+ days: "Dias"
85
+ }
86
+ };
87
+ function it(i) {
88
+ V(i, "svelte-n7yu38", "*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}");
89
+ }
90
+ function A(i) {
91
+ let t, e, r = (
92
+ /*formatDate*/
93
+ i[10](
94
+ /*startdate*/
95
+ i[0]
96
+ ) + ""
97
+ ), a, u, o, d = (
98
+ /*formatDate*/
99
+ i[10](
100
+ /*enddate*/
101
+ i[1]
102
+ ) + ""
103
+ ), g, S, p, m, v, F, j;
104
+ function I(s, D) {
105
+ return (
106
+ /*status*/
107
+ s[2] == "Finished" || /*status*/
108
+ s[2] == "Closing" || /*status*/
109
+ s[2] == "Closed" ? at : (
110
+ /*tournamentUntilStartDays*/
111
+ s[5] > 0 ? st : rt
112
+ )
113
+ );
114
+ }
115
+ let M = I(i), y = M(i);
116
+ function R(s, D) {
117
+ if (
118
+ /*status*/
119
+ s[2] == "Finished" || /*status*/
120
+ s[2] == "Closing" || /*status*/
121
+ s[2] == "Closed"
122
+ ) return ut;
123
+ if (
124
+ /*tournamentUntilStartDays*/
125
+ s[5] > 0
126
+ ) return ot;
127
+ if (
128
+ /*tournamentLeftDays*/
129
+ s[4] > 0
130
+ ) return lt;
131
+ }
132
+ let k = R(i), f = k && k(i);
133
+ return {
134
+ c() {
135
+ t = b("div"), e = b("div"), a = E(r), u = L(), o = b("div"), g = E(d), S = L(), p = b("div"), m = b("div"), y.c(), v = 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
136
+ },
137
+ m(s, D) {
138
+ T(s, t, D), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), T(s, S, D), T(s, p, D), h(p, m), y.m(m, null), h(m, v), f && f.m(m, null), F || (j = tt(
139
+ /*getDuration*/
140
+ i[9].call(null, p)
141
+ ), F = !0);
142
+ },
143
+ p(s, D) {
144
+ D & /*startdate*/
145
+ 1 && r !== (r = /*formatDate*/
146
+ s[10](
147
+ /*startdate*/
148
+ s[0]
149
+ ) + "") && z(a, r), D & /*enddate*/
150
+ 2 && d !== (d = /*formatDate*/
151
+ s[10](
152
+ /*enddate*/
153
+ s[1]
154
+ ) + "") && z(g, d), M === (M = I(s)) && y ? y.p(s, D) : (y.d(1), y = M(s), y && (y.c(), y.m(m, v))), k === (k = R(s)) && f ? f.p(s, D) : (f && f.d(1), f = k && k(s), f && (f.c(), f.m(m, null)));
155
+ },
156
+ d(s) {
157
+ s && (w(t), w(S), w(p)), y.d(), f && f.d(), F = !1, j();
158
+ }
159
+ };
160
+ }
161
+ function rt(i) {
162
+ let t;
163
+ return {
164
+ c() {
165
+ t = b("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
166
+ t,
167
+ "width",
168
+ /*getProgress*/
169
+ i[7]() + "%"
170
+ );
171
+ },
172
+ m(e, r) {
173
+ T(e, t, r);
174
+ },
175
+ p(e, r) {
176
+ r & /*getProgress*/
177
+ 128 && N(
178
+ t,
179
+ "width",
180
+ /*getProgress*/
181
+ e[7]() + "%"
182
+ );
183
+ },
184
+ d(e) {
185
+ e && w(t);
186
+ }
187
+ };
188
+ }
189
+ function st(i) {
190
+ let t;
191
+ return {
192
+ c() {
193
+ t = b("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
194
+ },
195
+ m(e, r) {
196
+ T(e, t, r);
197
+ },
198
+ p: U,
199
+ d(e) {
200
+ e && w(t);
201
+ }
202
+ };
203
+ }
204
+ function at(i) {
205
+ let t;
206
+ return {
207
+ c() {
208
+ t = b("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
209
+ },
210
+ m(e, r) {
211
+ T(e, t, r);
212
+ },
213
+ p: U,
214
+ d(e) {
215
+ e && w(t);
216
+ }
217
+ };
218
+ }
219
+ function lt(i) {
220
+ let t, e, r, a = (
221
+ /*$_*/
222
+ i[8]("tournamentsDuration.left") + ""
223
+ ), u;
224
+ return {
225
+ c() {
226
+ t = b("div"), e = E(
227
+ /*showRemain*/
228
+ i[6]
229
+ ), r = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
230
+ },
231
+ m(o, d) {
232
+ T(o, t, d), h(t, e), h(t, r), h(t, u);
233
+ },
234
+ p(o, d) {
235
+ d & /*showRemain*/
236
+ 64 && z(
237
+ e,
238
+ /*showRemain*/
239
+ o[6]
240
+ ), d & /*$_*/
241
+ 256 && a !== (a = /*$_*/
242
+ o[8]("tournamentsDuration.left") + "") && z(u, a);
243
+ },
244
+ d(o) {
245
+ o && w(t);
246
+ }
247
+ };
248
+ }
249
+ function ot(i) {
250
+ let t, e = (
251
+ /*$_*/
252
+ i[8]("tournamentsDuration.starting") + ""
253
+ ), r, a, u = (
254
+ /*getTextByDiff*/
255
+ i[11](
256
+ /*tournamentUntilStartDays*/
257
+ i[5]
258
+ ) + ""
259
+ ), o;
260
+ return {
261
+ c() {
262
+ t = b("div"), r = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
263
+ },
264
+ m(d, g) {
265
+ T(d, t, g), h(t, r), h(t, a), h(t, o);
266
+ },
267
+ p(d, g) {
268
+ g & /*$_*/
269
+ 256 && e !== (e = /*$_*/
270
+ d[8]("tournamentsDuration.starting") + "") && z(r, e), g & /*tournamentUntilStartDays*/
271
+ 32 && u !== (u = /*getTextByDiff*/
272
+ d[11](
273
+ /*tournamentUntilStartDays*/
274
+ d[5]
275
+ ) + "") && z(o, u);
276
+ },
277
+ d(d) {
278
+ d && w(t);
279
+ }
280
+ };
281
+ }
282
+ function ut(i) {
283
+ let t, e = (
284
+ /*$_*/
285
+ i[8]("tournamentsDuration.finished") + ""
286
+ ), r;
287
+ return {
288
+ c() {
289
+ t = b("div"), r = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
290
+ },
291
+ m(a, u) {
292
+ T(a, t, u), h(t, r);
293
+ },
294
+ p(a, u) {
295
+ u & /*$_*/
296
+ 256 && e !== (e = /*$_*/
297
+ a[8]("tournamentsDuration.finished") + "") && z(r, e);
298
+ },
299
+ d(a) {
300
+ a && w(t);
301
+ }
302
+ };
303
+ }
304
+ function dt(i) {
305
+ let t, e = (
306
+ /*startdate*/
307
+ i[0] && /*enddate*/
308
+ i[1] && A(i)
309
+ );
310
+ return {
311
+ c() {
312
+ t = b("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
313
+ },
314
+ m(r, a) {
315
+ T(r, t, a), e && e.m(t, null), i[16](t);
316
+ },
317
+ p(r, [a]) {
318
+ /*startdate*/
319
+ r[0] && /*enddate*/
320
+ r[1] ? e ? e.p(r, a) : (e = A(r), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
321
+ },
322
+ i: U,
323
+ o: U,
324
+ d(r) {
325
+ r && w(t), e && e.d(), i[16](null);
326
+ }
327
+ };
328
+ }
329
+ function ct(i, t, e) {
330
+ let r, a;
331
+ X(i, nt, (n) => e(8, a = n));
332
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, v, F = "", j = "", I = "";
333
+ const M = () => {
334
+ fetch(m).then((c) => c.json()).then((c) => {
335
+ Object.keys(c).forEach((_) => {
336
+ O(_, c[_]);
337
+ });
338
+ }).catch((c) => {
339
+ console.log(c);
340
+ });
341
+ };
342
+ Object.keys(x).forEach((n) => {
343
+ O(n, x[n]);
344
+ });
345
+ const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
346
+ const n = /* @__PURE__ */ new Date();
347
+ e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I = s(F));
348
+ }, f = (n) => {
349
+ const c = { month: "long" };
350
+ let _ = new Date(n), P = new Intl.DateTimeFormat(g, c).format(_);
351
+ return `${_.getDate()} ${P}, ${_.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${_.getUTCFullYear()}`;
352
+ }, s = (n) => {
353
+ const c = (P, B) => P + " " + a(B), _ = (P) => {
354
+ const B = Math.floor(P);
355
+ return B < 10 ? `0${B}` : `${B}`;
356
+ };
357
+ if (n < 1440) {
358
+ const P = n / 60, B = n % 60, W = (B - Math.floor(B)) * 60;
359
+ return [P, B, W].map((G) => _(G)).join(":");
360
+ }
361
+ return c(Math.ceil(n / (60 * 24)), "tournamentsDuration.days");
362
+ }, D = () => {
363
+ let n = document.createElement("style");
364
+ n.innerHTML = S, v.appendChild(n);
365
+ }, H = () => {
366
+ let n = new URL(p), c = document.createElement("style");
367
+ fetch(n.href).then((_) => _.text()).then((_) => {
368
+ c.innerHTML = _, setTimeout(
369
+ () => {
370
+ v.appendChild(c);
371
+ },
372
+ 1
373
+ ), setTimeout(
374
+ () => {
375
+ },
376
+ 500
377
+ );
378
+ });
379
+ };
380
+ $(() => {
381
+ const n = setInterval(
382
+ () => {
383
+ u && o && k();
384
+ },
385
+ 1e3
386
+ );
387
+ return () => clearInterval(n);
388
+ });
389
+ function q(n) {
390
+ et[n ? "unshift" : "push"](() => {
391
+ v = n, e(3, v);
392
+ });
393
+ }
394
+ return i.$$set = (n) => {
395
+ "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, m = n.translationurl);
396
+ }, i.$$.update = () => {
397
+ i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
398
+ 19 && e(7, r = () => {
399
+ if (F <= 0) return 100;
400
+ const n = R(u, o), c = 100 / n;
401
+ return Math.floor((n - F) * c);
402
+ }), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
403
+ 19 && u && o && k() && s(F), i.$$.dirty & /*lang*/
404
+ 4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
405
+ 4112 && g && s(F), i.$$.dirty & /*translationurl*/
406
+ 32768 && m && M(), i.$$.dirty & /*customStylingContainer, clientstyling*/
407
+ 8200 && v && S && D(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
408
+ 16392 && v && p && H();
409
+ }, [
410
+ u,
411
+ o,
412
+ d,
413
+ v,
414
+ F,
415
+ j,
416
+ I,
417
+ r,
418
+ a,
419
+ k,
420
+ f,
421
+ s,
422
+ g,
423
+ S,
424
+ p,
425
+ m,
426
+ q
427
+ ];
428
+ }
429
+ class ft extends Y {
430
+ constructor(t) {
431
+ super(), Z(
432
+ this,
433
+ t,
434
+ ct,
435
+ dt,
436
+ Q,
437
+ {
438
+ startdate: 0,
439
+ enddate: 1,
440
+ status: 2,
441
+ lang: 12,
442
+ clientstyling: 13,
443
+ clientstylingurl: 14,
444
+ translationurl: 15
445
+ },
446
+ it
447
+ );
448
+ }
449
+ get startdate() {
450
+ return this.$$.ctx[0];
451
+ }
452
+ set startdate(t) {
453
+ this.$$set({ startdate: t }), C();
454
+ }
455
+ get enddate() {
456
+ return this.$$.ctx[1];
457
+ }
458
+ set enddate(t) {
459
+ this.$$set({ enddate: t }), C();
460
+ }
461
+ get status() {
462
+ return this.$$.ctx[2];
463
+ }
464
+ set status(t) {
465
+ this.$$set({ status: t }), C();
466
+ }
467
+ get lang() {
468
+ return this.$$.ctx[12];
469
+ }
470
+ set lang(t) {
471
+ this.$$set({ lang: t }), C();
472
+ }
473
+ get clientstyling() {
474
+ return this.$$.ctx[13];
475
+ }
476
+ set clientstyling(t) {
477
+ this.$$set({ clientstyling: t }), C();
478
+ }
479
+ get clientstylingurl() {
480
+ return this.$$.ctx[14];
481
+ }
482
+ set clientstylingurl(t) {
483
+ this.$$set({ clientstylingurl: t }), C();
484
+ }
485
+ get translationurl() {
486
+ return this.$$.ctx[15];
487
+ }
488
+ set translationurl(t) {
489
+ this.$$set({ translationurl: t }), C();
490
+ }
491
+ }
492
+ J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
493
+ export {
494
+ ft as default
495
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-Dxc2MrGE.cjs");function C(a,e){t.addMessages(a,e)}const E={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"}};function I(a){t.append_styles(a,"svelte-n7yu38","*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}")}function M(a){let e,n,i=a[10](a[0])+"",l,u,o,d=a[10](a[1])+"",g,k,y,m,b,D,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let B=P(a),h=B(a);function w(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 v=w(a),f=v&&v(a);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(i),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),h.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(m,"class","ProgressBar"),t.attr(m,"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,k,_),t.insert(s,y,_),t.append(y,m),h.m(m,null),t.append(m,b),f&&f.m(m,null),D||(S=t.action_destroyer(a[9].call(null,y)),D=!0)},p(s,_){_&1&&i!==(i=s[10](s[0])+"")&&t.set_data(l,i),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),B===(B=P(s))&&h?h.p(s,_):(h.d(1),h=B(s),h&&(h.c(),h.m(m,b))),v===(v=w(s))&&f?f.p(s,_):(f&&f.d(1),f=v&&v(s),f&&(f.c(),f.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),h.d(),f&&f.d(),D=!1,S()}}}function O(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",a[7]()+"%")},m(n,i){t.insert(n,e,i)},p(n,i){i&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,i){t.insert(n,e,i)},p:t.noop,d(n){n&&t.detach(e)}}}function N(a){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,i){t.insert(n,e,i)},p:t.noop,d(n){n&&t.detach(e)}}}function q(a){let e,n,i,l=a[8]("tournamentsDuration.left")+"",u;return{c(){e=t.element("div"),n=t.text(a[6]),i=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,i),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("tournamentsDuration.left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(a){let e,n=a[8]("tournamentsDuration.starting")+"",i,l,u=a[11](a[5])+"",o;return{c(){e=t.element("div"),i=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,i),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("tournamentsDuration.starting")+"")&&t.set_data(i,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(a){let e,n=a[8]("tournamentsDuration.finished")+"",i;return{c(){e=t.element("div"),i=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,i)},p(l,u){u&256&&n!==(n=l[8]("tournamentsDuration.finished")+"")&&t.set_data(i,n)},d(l){l&&t.detach(e)}}}function W(a){let e,n=a[0]&&a[1]&&M(a);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(i,l){t.insert(i,e,l),n&&n.m(e,null),a[16](e)},p(i,[l]){i[0]&&i[1]?n?n.p(i,l):(n=M(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),n&&n.d(),a[16](null)}}}function G(a,e,n){let i,l;t.component_subscribe(a,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,b,D="",S="",P="";const B=()=>{fetch(m).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(E).forEach(r=>{C(r,E[r])});const h=r=>new Date(r).getTime(),w=(r,c)=>(h(c)-h(r))/(1e3*60),v=()=>{const r=new Date;n(4,D=w(r,o)),n(5,S=w(r,u)),n(6,P=s(D))},f=r=>{const c={month:"long"};let p=new Date(r),T=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${T}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(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(x=>p(x)).join(":")}return c(Math.ceil(r/(60*24)),"tournamentsDuration.days")},_=()=>{let r=document.createElement("style");r.innerHTML=k,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{const r=setInterval(()=>{u&&o&&v()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}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,d=r.status),"lang"in r&&n(12,g=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,m=r.translationurl)},a.$$.update=()=>{a.$$.dirty&19&&n(7,i=()=>{if(D<=0)return 100;const r=w(u,o),c=100/r;return Math.floor((r-D)*c)}),a.$$.dirty&19&&u&&o&&v()&&s(D),a.$$.dirty&4096&&g&&v(),a.$$.dirty&4112&&g&&s(D),a.$$.dirty&32768&&m&&B(),a.$$.dirty&8200&&b&&k&&_(),a.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,D,S,P,i,l,v,f,s,g,k,y,m,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;