@everymatrix/casino-tournaments-list-controller 1.64.8 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsListController-DgYOCdAE.js → CasinoTournamentsListController-CVPwowHa.js} +1654 -1622
- package/components/{CasinoTournamentsListController-CKVWCTHe.js → CasinoTournamentsListController-DIsKnFU6.js} +1628 -1596
- package/components/CasinoTournamentsListController-uObzfu6y.cjs +28 -0
- package/components/CasinoTournamentsThumbnail-Bjg4Q0vT.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-Cyjq88eZ.js → CasinoTournamentsThumbnail-DgekeA1s.js} +307 -263
- package/components/{CasinoTournamentsThumbnail-4vTjO88K.js → CasinoTournamentsThumbnail-FQ1DQ2zF.js} +307 -263
- package/components/{CasinoTournamentsThumbnailController-Dn9ff9n8.js → CasinoTournamentsThumbnailController-BE1o3Jkp.js} +781 -854
- package/components/CasinoTournamentsThumbnailController-CK9TeIe4.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-B-K78r8i.js → CasinoTournamentsThumbnailController-yPtxPaIY.js} +742 -815
- package/components/{CasinoTournamentsThumbnailDuration-D6G5AYpp.js → CasinoTournamentsThumbnailDuration-C1u-mRmn.js} +45 -45
- package/components/{CasinoTournamentsThumbnailDuration-DJ9HCvv7.js → CasinoTournamentsThumbnailDuration-Cwg68ppS.js} +45 -45
- package/components/{CasinoTournamentsThumbnailDuration-DW8RWm_w.cjs → CasinoTournamentsThumbnailDuration-CzWSj-pH.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CAMmFwFA.js → CasinoTournamentsThumbnailGamesSlider-B3tSVigD.js} +71 -71
- package/components/{CasinoTournamentsThumbnailGamesSlider-DQG8zErp.js → CasinoTournamentsThumbnailGamesSlider-BCZv_-vy.js} +71 -71
- package/components/{CasinoTournamentsThumbnailGamesSlider-CYo-MU5o.cjs → CasinoTournamentsThumbnailGamesSlider-Ci3I9AHa.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BgYHHAzr.js → CasinoTournamentsThumbnailPrizes-Bew_fIuA.js} +40 -40
- package/components/{CasinoTournamentsThumbnailPrizes-BYr_yhhF.cjs → CasinoTournamentsThumbnailPrizes-Co3GJpZd.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-kj9zdguu.js → CasinoTournamentsThumbnailPrizes-hdobT4hp.js} +40 -40
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/index-97d17652-BzQXAkmg.js +558 -0
- package/stencil/index-97d17652-DYGS0vqJ.cjs +1 -0
- package/stencil/index-97d17652-mbOyENH9.js +542 -0
- package/stencil/index-b2193545-C2pLoBGJ.js +503 -0
- package/stencil/index-b2193545-CoXVDra7.js +519 -0
- package/stencil/index-b2193545-CwpolrjE.cjs +1 -0
- package/stencil/ui-image-BdKD9mn4.js +25 -0
- package/stencil/ui-image-Brhx0VeQ.js +7 -0
- package/stencil/ui-image-DEQHOm9Q.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-7wF4sIlr.js +39 -0
- package/stencil/ui-image-b7b48fe5-DQE3WxuL.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-kIlLPkYB.js +39 -0
- package/stencil/ui-image_2-CJHJWEhi.cjs +73 -0
- package/stencil/ui-image_2-Db7N7hzA.js +154 -0
- package/stencil/ui-image_2-oohpKuRS.js +154 -0
- package/stencil/ui-skeleton-06DDwuG9.cjs +1 -0
- package/stencil/ui-skeleton-1cb75d00-CoUSUuCH.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-DwCQPKmJ.js +152 -0
- package/stencil/ui-skeleton-1cb75d00-HdJyBz6W.cjs +73 -0
- package/stencil/ui-skeleton-BhWinivj.js +11 -0
- package/stencil/ui-skeleton-DdjXy3Vl.js +29 -0
- package/components/CasinoTournamentsListController-2xNP--2R.cjs +0 -15
- package/components/CasinoTournamentsThumbnail-BWkh0_lv.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-B5MR7Iux.cjs +0 -16
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var ee=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{l(e.next(c))}catch(d){o(d)}},a=c=>{try{l(e.throw(c))}catch(d){o(d)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);l((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsListController-uObzfu6y.cjs");function z(i){return typeof i=="function"}function Ue(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var te=Ue(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
+
`+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function re(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var G=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=n.__values(a),c=l.next();!c.done;c=l.next()){var d=c.value;d.remove(this)}}catch(w){t={error:w}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else a.remove(this);var m=this.initialTeardown;if(z(m))try{m()}catch(w){s=w instanceof te?w.errors:[w]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var k=n.__values(p),b=k.next();!b.done;b=k.next()){var _=b.value;try{Te(_)}catch(w){s=s!=null?s:[],w instanceof te?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(w.errors)):s.push(w)}}}catch(w){r={error:w}}finally{try{b&&!b.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}}if(s)throw new te(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Te(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&re(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&re(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Je=G.EMPTY;function He(i){return i instanceof G||i&&"closed"in i&&z(i.remove)&&z(i.add)&&z(i.unsubscribe)}function Te(i){z(i)?i():i.unsubscribe()}var We={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,n.__spreadArray([i,t],n.__read(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ut(i){lt.setTimeout(function(){throw i})}function Se(){}function q(i){i()}var qe=function(i){n.__extends(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,He(e)&&e.add(r)):r.destination=mt,r}return t.create=function(e,r,o){return new ie(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(G),ct=Function.prototype.bind;function ne(i,t){return ct.call(i,t)}var ft=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){W(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){W(r)}else W(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){W(e)}},i}(),ie=function(i){n.__extends(t,i);function t(e,r,o){var s=i.call(this)||this,a;if(z(e)||!e)a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var l;s&&We.useDeprecatedNextContext?(l=Object.create(e),l.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ne(e.next,l),error:e.error&&ne(e.error,l),complete:e.complete&&ne(e.complete,l)}):a=e}return s.destination=new ft(a),s}return t}(qe);function W(i){ut(i)}function dt(i){throw i}var mt={closed:!0,next:Se,error:dt,complete:Se},ht=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function pt(i){return i}function _t(i){return i.length===0?pt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Fe=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=bt(t)?t:new ie(t,e,r);return q(function(){var a=o,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Ee(e),new e(function(o,s){var a=new ie({next:function(l){try{t(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[ht]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _t(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Ee(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Ee(i){var t;return(t=i!=null?i:We.Promise)!==null&&t!==void 0?t:Promise}function gt(i){return i&&z(i.next)&&z(i.error)&&z(i.complete)}function bt(i){return i&&i instanceof qe||gt(i)&&He(i)}var wt=Ue(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ge=function(i){n.__extends(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new je(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new wt},t.prototype.next=function(e){var r=this;q(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=n.__values(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(e)}}catch(d){o={error:d}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;q(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Je:(this.currentObservers=null,l.push(e),new G(function(){r.currentObservers=null,re(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},t.create=function(e,r){return new je(e,r)},t}(Fe),je=function(i){n.__extends(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Je},t}(Ge),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},yt=function(i){n.__extends(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ye);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,l=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(l.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),c=0;c<l.length&&!e.closed;c+=s?1:2)e.next(l[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,l=(a?1:2)*r;if(r<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=o.now(),d=0,m=1;m<s.length&&s[m]<=c;m+=2)d=m;d&&s.splice(0,d+1)}},t}(Ge);const ze=[],Ce={},vt=(i,t=0)=>{if(ze.indexOf(i)==-1){const e=new yt(t);Ce[i]=e,ze.push(i)}return Ce[i]};window.emWidgets={topic:vt};const oe=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function kt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function Pe(i,t){n.addMessages(i,t)}function Tt(i){n.$locale.set(i)}const xe={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-Bjg4Q0vT.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-CzWSj-pH.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-Co3GJpZd.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-Ci3I9AHa.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function St(i){n.append_styles(i,"svelte-chi6uq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Be(i){let t;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function De(i){let t,e,r=i[24]&&Le(i);return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"status",i[23]),n.set_custom_element_data(e,"startdate",i[21]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"enddate",i[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?r?r.p(o,s):(r=Le(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Le(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[24]),n.set_custom_element_data(t,"clientstyling",i[10]),n.set_custom_element_data(t,"clientstylingurl",i[11]),n.set_custom_element_data(t,"translationurl",i[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[37].call(null,t,i[24])),r=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),r=!1,o()}}}function Ft(i){let t,e=i[32]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",i[51]),o=!0)},p(a,l){l[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(i){let t,e,r=i[3]=="true"&&Ae(i);function o(l,c){return l[26]?Ct:zt}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(l,c){r&&r.m(l,c),n.insert(l,t,c),a.m(l,c),n.insert(l,e,c)},p(l,c){l[3]=="true"?r?r.p(l,c):(r=Ae(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&(n.detach(t),n.detach(e)),r&&r.d(l),a.d(l)}}}function jt(i){let t,e=i[32]("login")+"",r,o,s,a=i[32]("register")+"",l,c,d;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),l=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(m,p){n.insert(m,t,p),n.append(t,r),n.insert(m,o,p),n.insert(m,s,p),n.append(s,l),c||(d=[n.listen(t,"click",i[47]),n.listen(s,"click",i[48])],c=!0)},p(m,p){p[1]&2&&e!==(e=m[32]("login")+"")&&n.set_data(r,e),p[1]&2&&a!==(a=m[32]("register")+"")&&n.set_data(l,a)},d(m){m&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(d)}}}function Ae(i){let t,e=i[32]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",i[49]),o=!0)},p(a,l){l[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(i){let t,e,r,o,s;function a(d,m){return d[16]==!0?xt:Pt}let l=a(i),c=l(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[17]},m(d,m){n.insert(d,t,m),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(d,m){l===(l=a(d))&&c?c.p(d,m):(c.d(1),c=l(d),c&&(c.c(),c.m(t,null))),m[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),m[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),m[0]&131072&&(t.disabled=d[17])},d(d){d&&n.detach(t),c.d(),o=!1,s()}}}function Ct(i){let t,e=i[3]=="true"&&Oe(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Oe(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Pt(i){let t,e=i[32]("join")+"",r,o,s,a,l,c,d,m;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),d=n.svg_element("g"),m=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(m,"class","a"),n.attr(m,"part","a JoinButtonSvgA"),n.attr(m,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(p,k){n.insert(p,t,k),n.append(t,r),n.insert(p,o,k),n.insert(p,s,k),n.append(s,a),n.append(a,l),n.append(l,c),n.append(s,d),n.append(d,m)},p(p,k){k[1]&2&&e!==(e=p[32]("join")+"")&&n.set_data(r,e)},d(p){p&&(n.detach(t),n.detach(o),n.detach(s))}}}function xt(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function Oe(i){let t,e=i[32]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Ie(i){let t,e=i[32]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,l){n.insert(a,t,l),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,l){l[1]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(r,e),l[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Me(i){let t,e,r=i[15]&&Re();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[15]?r||(r=Re(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Re(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Bt(i){let t,e,r,o,s,a,l,c,d,m,p,k,b=i[15]&&Be(),_=i[14]&&De(i);function w(f,h){if(!f[14])return jt;if(f[23]!="Closed"&&f[23]!="Closing")return Et;if(f[3]=="true")return Ft}let E=w(i),y=E&&E(i),v=(i[17]||i[19])&&Ie(i),T=i[4]=="true"&&Me(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),b&&b.c(),s=n.space(),_&&_.c(),a=n.space(),l=n.element("div"),y&&y.c(),c=n.space(),v&&v.c(),d=n.space(),T&&T.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[20]),n.set_custom_element_data(r,"status",i[23]),n.set_custom_element_data(r,"startdate",i[21]),n.set_custom_element_data(r,"tourid",i[24]),n.set_custom_element_data(r,"scorecriteria",i[27]),n.set_custom_element_data(r,"minbetcount",i[28]),n.set_custom_element_data(r,"thumbnail",i[25]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[30]),n.set_custom_element_data(r,"userenrolled",i[26]),n.set_custom_element_data(r,"clientstyling",i[10]),n.set_custom_element_data(r,"clientstylingurl",i[11]),n.set_custom_element_data(r,"translationurl",i[12]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[9]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(l,"class","TournamentButtons"),n.attr(l,"part","TournamentButtons"),n.attr(e,"class",m="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",p="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",k=`${i[15]?"Loading":""}`)},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(e,r),n.append(e,o),b&&b.m(e,null),n.append(e,s),_&&_.m(e,null),n.append(e,a),n.append(e,l),y&&y.m(l,null),n.append(e,c),v&&v.m(e,null),n.append(e,d),T&&T.m(e,null),i[52](t)},p(f,h){h[0]&1&&n.set_custom_element_data(r,"session",f[0]),h[0]&2&&n.set_custom_element_data(r,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(r,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(r,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(r,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(r,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(r,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(r,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(r,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(r,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(r,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(r,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(r,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(r,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(r,"lang",f[8]),h[0]&512&&n.set_custom_element_data(r,"keepbrowsercontext",f[9]),f[15]?b||(b=Be(),b.c(),b.m(e,s)):b&&(b.d(1),b=null),f[14]?_?_.p(f,h):(_=De(f),_.c(),_.m(e,a)):_&&(_.d(1),_=null),E===(E=w(f))&&y?y.p(f,h):(y&&y.d(1),y=E&&E(f),y&&(y.c(),y.m(l,null))),f[17]||f[19]?v?v.p(f,h):(v=Ie(f),v.c(),v.m(e,d)):v&&(v.d(1),v=null),f[4]=="true"?T?T.p(f,h):(T=Me(f),T.c(),T.m(e,null)):T&&(T.d(1),T=null),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",m),h[0]&192|h[1]&1&&p!==(p="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",p),h[0]&32768&&k!==(k=`${f[15]?"Loading":""}`)&&n.attr(t,"class",k)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),b&&b.d(),_&&_.d(),y&&y.d(),v&&v.d(),T&&T.d(),i[52](null)}}}function Dt(i,t,e){let r;n.component_subscribe(i,n.$format,u=>e(32,r=u));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:l}=t,{endpoint:c=""}=t,{showdetails:d=""}=t,{showslider:m=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:_=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:y=""}=t,{registerurl:v=""}=t,{currency:T=""}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:h=""}=t,{clientstylingurl:A=""}=t,{translationurl:O=""}=t,{tournamentinfo:I}=t,C,x=!1,M="",B=!0,se=window.navigator.userAgent,R=!1,U=!1,ae="There was an error while trying to join the tournament",Y=!1,K,le,ue,D,j,ce,V,fe,de,me=[],X=[],he="#",N,J=!1;kt({withLocale:"en",translations:{}});const Ve=()=>{fetch(O).then(g=>g.json()).then(g=>{Object.keys(g).forEach(S=>{Pe(S,g[S])})}).catch(g=>{console.log(g)})};Object.keys(xe).forEach(u=>{Pe(u,xe[u])});const pe=u=>{Xe(u),Q(u),ye(this,j)},_e=u=>{if(u.data&&u.data.type=="UserSessionID"&&(e(14,x=!0),M=u.data.session),u.data.type=="UpdateTournamentView"){let g=u.data.tournamentData;if(j&&j!=g.id)return;pe(g)}if(u.data&&u.data.type==`UpdateSingleTournament_${l}`){let g=u.data.tournamentData,S=l<4?l*100:Math.random()*300+300;e(31,J=l==1),setTimeout(()=>{e(31,J=!0),e(24,j=g.id),pe(g)},S),setTimeout(()=>{e(31,J=!1)},S+200)}},Xe=u=>{u.state!=D&&(e(23,D=u.state),window.postMessage({type:`TournamentStatus_${j}`,status:D},window.location.href))},ge=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),y&&(window.location=y)},be=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),v&&(window.location=v)},Z=u=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:u,showLeaderboard:!0},window.location.href)},we=(u,g)=>ee(this,null,function*(){var ke;e(17,U=!1),e(19,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:u},window.location.href),e(16,R=!0);let S=new URL(`${c}/v1/bonus/claim`),H=new Headers,P={};S.searchParams.append("language",_),S.searchParams.append("platform",oe(se)),H.append("Content-Type","application/json"),H.append("X-SessionID",M),g&&g.length>=1&&(P={language:_,bonusCode:g[0].code,currency:T,type:"tournament"});let at={method:"PUT",headers:H,body:JSON.stringify(P)};const ve=()=>{e(16,R=!1),e(26,V=!0)},$=F=>{e(16,R=!1),F&&e(18,ae=F),e(17,U=!0)},L=yield ee(this,null,function*(){let F;try{F=yield fetch(S,at),F=yield F.json()}catch(Ot){$()}return F});if(L)if(L.success==!0)ve();else if(L.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${c}/tournaments/${j}`,{headers:{"X-SessionID":o}}),F=yield F.json(),(ke=F==null?void 0:F.item)!=null&&ke.playerEnrolled?ve():($(L.errorMessage),e(19,Y=!0),e(17,U=!1))}else $(L.errorMessage)}),ye=(u,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:me},window.location.href)},Q=u=>{u&&(e(20,K=u.nameOrTitle||""),e(21,le=u.startTime),e(22,ue=u.endTime),e(23,D=u.state),e(24,j=u.id),e(25,ce=u.thumbnail),e(26,V=u.playerEnrolled==="true"||u.playerEnrolled==!0||!1),e(27,fe=u.scoreCriteria),e(28,de=u.minBetCount),me=u.prizes,e(29,X=u.wallets||[]),e(30,he=u.termsUrl||"#"))},Ne=u=>{e(15,B=!0);let g=new URL(u),S=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",oe(se)),x&&S.append("X-SessionID",M),fetch(g,{method:"GET",headers:S}).then(P=>P.json()).then(P=>{Q(P.item)}).finally(()=>{e(15,B=!1)})},Ze=()=>{o.length>0&&o!="false"?(M=o,e(14,x=!0)):e(14,x=!1)},Qe=()=>{if(I){Q(I);return}e(15,B=!0),Ne(a)},$e=()=>{let u=document.createElement("style");u.innerHTML=h,C.appendChild(u)},et=()=>{let u=new URL(A),g=document.createElement("style");fetch(u.href).then(S=>S.text()).then(S=>{g.innerHTML=S,setTimeout(()=>{C.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,B=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const tt=()=>ge(),nt=()=>be(),rt=()=>Z(j),it=()=>we(j,X),ot=()=>Z(j);function st(u){n.binding_callbacks[u?"unshift":"push"](()=>{C=u,e(13,C)})}return i.$$set=u=>{"session"in u&&e(0,o=u.session),"userid"in u&&e(1,s=u.userid),"tournamenturl"in u&&e(2,a=u.tournamenturl),"touridx"in u&&e(38,l=u.touridx),"endpoint"in u&&e(39,c=u.endpoint),"showdetails"in u&&e(3,d=u.showdetails),"showslider"in u&&e(4,m=u.showslider),"showenrolled"in u&&e(5,p=u.showenrolled),"maxwidth"in u&&e(6,k=u.maxwidth),"fullsize"in u&&e(7,b=u.fullsize),"lang"in u&&e(8,_=u.lang),"loginevent"in u&&e(40,w=u.loginevent),"registerevent"in u&&e(41,E=u.registerevent),"loginurl"in u&&e(42,y=u.loginurl),"registerurl"in u&&e(43,v=u.registerurl),"currency"in u&&e(44,T=u.currency),"keepbrowsercontext"in u&&e(9,f=u.keepbrowsercontext),"clientstyling"in u&&e(10,h=u.clientstyling),"clientstylingurl"in u&&e(11,A=u.clientstylingurl),"translationurl"in u&&e(12,O=u.translationurl),"tournamentinfo"in u&&e(45,I=u.tournamentinfo)},i.$$.update=()=>{i.$$.dirty[0]&256&&_&&Tt(_),i.$$.dirty[0]&9216&&C&&h&&$e(),i.$$.dirty[0]&10240&&C&&A&&et(),i.$$.dirty[0]&4096&&O&&Ve(),i.$$.dirty[0]&1&&o&&Ze(),i.$$.dirty[0]&260&&e(46,N=a&&_),i.$$.dirty[1]&32768&&N&&Qe()},[o,s,a,d,m,p,k,b,_,f,h,A,O,C,x,B,R,U,ae,Y,K,le,ue,D,j,ce,V,fe,de,X,he,J,r,ge,be,Z,we,ye,l,c,w,E,y,v,T,I,N,tt,nt,rt,it,ot,st]}class Ke extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Dt,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},St,[-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(Ke,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Lt=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Lt;exports.getDevice=oe;
|