@everymatrix/casino-tournament-list 1.29.9 → 1.30.1
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/dist/casino-tournament-list/casino-tournament-list.esm.js +1 -1
- package/dist/casino-tournament-list/{p-9369dee5.entry.js → p-c6accc83.entry.js} +2 -2
- package/dist/casino-tournament-list/{p-f9e4064c.js → p-e29f4cec.js} +1 -1
- package/dist/cjs/casino-tournament-banner_6.cjs.entry.js +11 -4
- package/dist/cjs/casino-tournament-list.cjs.js +1 -1
- package/dist/cjs/{index-35dffce5.js → index-d78904fb.js} +32 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-tournament-list/casino-tournament-list.js +12 -4
- package/dist/components/casino-tournament-list.js +10 -3
- package/dist/esm/casino-tournament-banner_6.entry.js +11 -4
- package/dist/esm/casino-tournament-list.js +1 -1
- package/dist/esm/{index-6d85b13d.js → index-7b06e420.js} +32 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-tournament-list/casino-tournament-list.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-e29f4cec.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-c6accc83",[[1,"casino-tournament-list",{endpoint:[1],language:[1],session:[1],sortType:[1,"sort-type"],sortOrder:[1,"sort-order"],offset:[2],limit:[2],showAnonymous:[4,"show-anonymous"],state:[1],startTimeAfter:[1,"start-time-after"],updateTournaments:[4,"update-tournaments"],loginEvent:[1,"login-event"],registerEvent:[1,"register-event"],cardMode:[4,"card-mode"],showReadMore:[4,"show-read-more"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],limitStylingAppends:[32],tournaments:[32],states:[32],currentState:[32],isLoading:[32],tournamentsShown:[32],allTournamentsShown:[32],sseConnection:[32],translationData:[32],initialLoad:[32]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-e29f4cec.js";const n={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again.",tournament:"Tournament",terms:"Terms and conditions",left:"left",minutes:"minutes",hours:"hours",days:"days"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.",left:"rămase",minutes:"minute",hours:"ore",days:"zile",tournament:"turneu"},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.",left:"bal",minutes:"perc",hours:"óra",days:"nap"},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},r=(t,e)=>{var i,r;return(null===(i=n[e])||void 0===i?void 0:i[t])||(null===(r=n.en)||void 0===r?void 0:r[t])};
|
|
2
2
|
//! moment.js
|
|
3
3
|
//! version : 2.29.4
|
|
4
4
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -12,4 +12,4 @@ a.version="2.29.4",s=Ce,a.fn=vi,a.min=function(){var t=[].slice.call(arguments,0
|
|
|
12
12
|
* Available under MIT License (MIT)
|
|
13
13
|
* https://github.com/Yaffle/EventSource/
|
|
14
14
|
*/
|
|
15
|
-
!function(i){var n=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,o=i.XDomainRequest,a=i.ActiveXObject,u=i.EventSource,h=i.document,l=i.Promise,d=i.fetch,c=i.Response,m=i.TextDecoder,f=i.TextEncoder,g=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=a&&(s=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var p=d;d=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,r="",s=this.bitsNeeded,o=this.codePoint,a=0;a<t.length;a+=1){var u=t[a];0!==s&&(u<128||u>191||!e(o<<6|63&u,s-6,i(s,o)))&&(s=0,o=n,r+=String.fromCharCode(o)),0===s?(u>=0&&u<=127?(s=0,o=u):u>=192&&u<=223?(s=6,o=31&u):u>=224&&u<=239?(s=12,o=15&u):u>=240&&u<=247?(s=18,o=7&u):(s=0,o=n),0===s||e(o,s,i(s,o))||(s=0,o=n)):(s-=6,o=o<<6|63&u),0===s&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=o,r},null!=m&&null!=f&&function(){try{return"test"===(new m).decode((new f).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(m=b);var v=function(){};function y(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=v}function w(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function S(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var r=i[n].split(": "),s=r.shift(),o=r.join(": ");e[w(s)]=o}this._map=e}function M(){}function k(t){this._headers=t}function D(){}function A(){this._listeners=Object.create(null)}function x(t){n((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function C(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function F(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){T.call(this,t),this.error=e.error}y.prototype.open=function(t,e){this._abort(!0);var i=this,o=this._xhr,a=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,o.onload=v,o.onerror=v,o.onabort=v,o.onprogress=v,o.onreadystatechange=v,o.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),a=0};var h=function(){if(1===a){var t=0,e="",n=void 0;if("contentType"in o)t=200,e="OK",n=o.contentType;else try{t=o.status,e=o.statusText,n=o.getResponseHeader("Content-Type")}catch(i){t=0,e="",n=void 0}0!==t&&(a=2,i.readyState=2,i.status=t,i.statusText=e,i._contentType=n,i.onreadystatechange())}},l=function(){if(h(),2===a||3===a){a=3;var t="";try{t=o.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},d=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:v}),l(),1===a||2===a||3===a){if(a=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}},c=function(){u=n((function(){c()}),500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(t){d("load",t)}),"onerror"in o&&(o.onerror=function(t){d("error",t)}),"onabort"in o&&(o.onabort=function(t){d("abort",t)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(t){!function(t){null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||d(""===o.responseText?"error":"load",t):3===o.readyState?"onprogress"in o||l():2===o.readyState&&h())}(t)}),!("contentType"in o)&&"ontimeout"in s.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),o.open(t,e,!0),"readyState"in o&&(u=n((function(){c()}),0))},y.prototype.abort=function(){this._abort(!1)},y.prototype.getResponseHeader=function(){return this._contentType},y.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},y.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},y.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},S.prototype.get=function(t){return this._map[w(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),M.prototype.open=function(t,e,i,n,r,o,a){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var e=t.responseText.slice(u);u+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,n=t.statusText,r=t.getResponseHeader("Content-Type"),o=t.getAllResponseHeaders();e(i,n,r,new S(o))}},t.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,h)&&t.setRequestHeader(h,a[h]);return t.send(),t},k.prototype.get=function(t){return this._headers.get(t)},D.prototype.open=function(t,e,i,n,r,s,o){var a=null,u=new g,h=u.signal,c=new m;return d(r,{headers:o,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new k(t.headers)),new l((function(t,e){var n=function(){a.read().then((function(e){if(e.done)t(void 0);else{var r=c.decode(e.value,{stream:!0});i(r),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),u.abort()}}},A.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var r=e[n];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){x(t)}}},A.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var r=!1,s=0;s<n.length;s+=1)n[s]===e&&(r=!0);r||n.push(e)},A.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var r=[],s=0;s<n.length;s+=1)n[s]!==e&&r.push(n[s]);0===r.length?delete i[t]:i[t]=r}},C.prototype=Object.create(T.prototype),F.prototype=Object.create(T.prototype),j.prototype=Object.create(T.prototype);var N=-1,R=-1,Y=/^text\/event\-stream(;.*)?$/i,z=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),J(i)},J=function(t){return Math.min(Math.max(t,1e3),18e6)},O=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){x(t)}};function E(t,e){A.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,e,i){e=String(e);var a=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=J(1e3),l=z(i.heartbeatTimeout,45e3),d="",c=h,m=!1,f=0,g=i.headers||{},p=i.Transport,b=B&&null==p?void 0:new y(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==o?new s:new o),v=null!=p&&"string"!=typeof p?new p:null==b?new D:new M,w=void 0,S=0,k=N,A="",x="",T="",E="",W=0,H=0,P=0,L=function(e,i,n,r){if(0===k)if(200===e&&null!=n&&Y.test(n)){k=1,m=Date.now(),c=h,t.readyState=1;var s=new F("open",{status:e,statusText:i,headers:r});t.dispatchEvent(s),O(t,t.onopen,s)}else{var o="";200!==e?(i&&(i=i.replace(/\s+/g," ")),o="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):o="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",_(),s=new F("error",{status:e,statusText:i,headers:r}),t.dispatchEvent(s),O(t,t.onerror,s),console.error(o)}},I=function(e){if(1===k){for(var i=-1,s=0;s<e.length;s+=1)(u=e.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var o=(-1!==i?E:"")+e.slice(0,i+1);E=(-1===i?E:"")+e.slice(i+1),""!==e&&(m=Date.now(),f+=e.length);for(var a=0;a<o.length;a+=1){var u=o.charCodeAt(a);if(W===R&&u==="\n".charCodeAt(0))W=0;else if(W===R&&(W=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==W){1===W&&(P=a+1);var g=o.slice(H,P-1),p=o.slice(P+(P<a&&o.charCodeAt(P)===" ".charCodeAt(0)?1:0),a);"data"===g?(A+="\n",A+=p):"id"===g?x=p:"event"===g?T=p:"retry"===g?(h=z(p,h),c=h):"heartbeatTimeout"===g&&(l=z(p,l),0!==S&&(r(S),S=n((function(){V()}),l)))}if(0===W){if(""!==A){d=x,""===T&&(T="message");var b=new C(T,{data:A.slice(1),lastEventId:x});if(t.dispatchEvent(b),"open"===T?O(t,t.onopen,b):"message"===T?O(t,t.onmessage,b):"error"===T&&O(t,t.onerror,b),2===k)return}A="",T=""}W=u==="\r".charCodeAt(0)?R:0}else 0===W&&(H=a,W=1),1===W?u===":".charCodeAt(0)&&(P=a+1,W=2):2===W&&(W=3)}}},G=function(e){if(1===k||0===k){k=N,0!==S&&(r(S),S=0),S=n((function(){V()}),c),c=J(Math.min(16*h,2*c)),t.readyState=0;var i=new j("error",{error:e});t.dispatchEvent(i),O(t,t.onerror,i),null!=e&&console.error(e)}},_=function(){k=2,null!=w&&(w.abort(),w=void 0),0!==S&&(r(S),S=0),t.readyState=2},V=function(){if(S=0,k===N){m=!1,f=0,S=n((function(){V()}),l),k=0,A="",T="",x=d,E="",H=0,P=0,W=0;var i=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==d){var r=e.indexOf("?");i=-1===r?e:e.slice(0,r+1)+e.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===u?"":t})),i+=(-1===e.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(d)}var s=t.withCredentials,o={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(o[h]=a[h]);try{w=v.open(b,L,I,G,i,s,o)}catch(t){throw _(),t}}else if(m||null==w){var c=Math.max((m||Date.now())+l-Date.now(),1);m=!1,S=n((function(){V()}),c)}else G(new Error("No activity within "+l+" milliseconds. "+(0===k?"No response received.":f+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};t.url=e,t.readyState=0,t.withCredentials=a,t.headers=g,t._close=_,V()}(this,t,e)}var B=null!=d&&null!=c&&"body"in c.prototype;(E.prototype=Object.create(A.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0;var W,H=u;null==s||null!=u&&"withCredentials"in u.prototype||(H=E),void 0!==(W=function(t){t.EventSourcePolyfill=E,t.NativeEventSource=u,t.EventSource=H}(e))&&(t.exports=W)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:pn:globalThis)}(i={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}();const vn=class{constructor(e){t(this,e),this.offset=0,this.limit=6,this.showAnonymous=!1,this.state="All,Ongoing,Upcoming,Expired",this.updateTournaments=!0,this.loginEvent="OpenLoginRegisterModal",this.registerEvent="OpenLoginRegisterModal",this.cardMode=!1,this.showReadMore=!1,this.currency="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.limitStylingAppends=!1,this.tournaments=[],this.currentState="All",this.isLoading=!1,this.tournamentsShown=0,this.allTournamentsShown=!1,this.initialLoad=!1}getTournamentInfo(t,e){let i=new URL(this.endpoint+"/v1/tournaments"),n=new Headers;this.session&&n.append("X-SessionId",this.session);const r={StartTimeAfter:this.getStartTimeAfter()};this.session||0!=this.showAnonymous||(r.tags="no-role-set"),this.currentState&&"All"!=this.currentState&&(r.state=this.matchStatus(this.currentState));const s=Object.keys(r).map((t=>`${t}=${r[t]}`)).join(",");i.searchParams.append("filter",s),i.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),i.searchParams.append("language",this.language),i.searchParams.append("fields","id,nameOrTitle,termsUrl,thumbnail,startTime,endTime,closeTime,playerEnrolled,wallets"),i.searchParams.append("pagination",`offset=${t},limit=${e}`),i.searchParams.append("sortField","StartTime"),i.searchParams.append("sortOrder",this.sortOrder||"desc"),this.sortType&&i.searchParams.append("sortType",this.sortType);let o={method:"GET",headers:n,cache:"no-cache"};this.isLoading=!0,fetch(i.href,o).then((t=>t.json())).then((t=>{if(this.tournaments=this.tournaments.concat(t.items),this.tournaments.forEach((t=>{t.wallets&&t.wallets[0]&&(t.bonusCode=t.wallets[0].code)})),this.tournamentsShown+=t.items.length,this.tournamentsShown>=t.total&&(this.allTournamentsShown=!0),this.updateTournaments){i.searchParams.set("pagination",`offset=0,limit=${this.tournamentsShown}`);let t=`${this.endpoint}/v1/tournaments/updates?${i.searchParams.toString()}`;this.startUpdate(t,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}})).catch((t=>{throw new Error(t)})).finally((()=>{this.isLoading=!1}))}createImagePlaceHolder(t,e){const i=document.createElement("canvas");i.width=t,i.height=e;const n=i.getContext("2d");n.fillStyle="rgb(0, 0, 0)",n.fillRect(0,0,t,e);const r=new Image(t,e);return r.src=i.toDataURL(),r.src}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)}setClientStylingURL(){let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))}getStartTimeAfter(){const t=new Date;return this.startTimeAfter?t.setDate(t.getDate()-Number(this.startTimeAfter)):t.setMonth(t.getMonth()-12),t.toISOString().substring(0,10)}onStateChange(t){0==this.isLoading&&(this.tournaments=[],this.tournamentsShown=0,this.allTournamentsShown=!1,this.sseConnection.removeEventListener("message",this.updateHandler),this.currentState=t,this.getTournamentInfo(this.offset,this.limit))}showMoreAction(){this.getTournamentInfo(this.offset+this.tournamentsShown,this.limit)}matchStatus(t){return"Upcoming"==t?"Unstarted":"Ongoing"==t?"Running":"Closing|Closed"}startUpdate(t,e){this.sseConnection&&this.sseConnection.close(),this.sseConnection=new bn.EventSourcePolyfill(t,e),this.sseConnection.removeEventListener("message",this.updateHandler),this.sseConnection.addEventListener("message",this.updateHandler.bind(this))}updateHandler(t){if(!t.data)return;let e=JSON.parse(t.data);"LeaderBoardUpdate"==e.messageType&&this.updateView(e)}updateView(t){this.tournaments=t.items}async componentWillLoad(){this.state&&(this.states=this.state.split(","));const t=[];if(this.endpoint){const e=this.getTournamentInfo(this.offset,this.limit);t.push(e)}if(this.translationUrl){const i=(e=this.translationUrl,new Promise(((t,i)=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])fn[t][i]=e[t][i]})),t(fn)})).catch((t=>{i(t)}))}))).then((t=>{this.translationData=JSON.stringify(t)})).catch((t=>{console.log(t)}));t.push(i)}var e;return Promise.all(t)}render(){return e("div",{class:`TournamentList ${this.cardMode?"CardMode":""} ${mn()?"Mobile":""}`},this.states&&e("div",{class:"States"},this.states.map((t=>e("div",{onClick:()=>this.onStateChange.bind(this)(t),class:"State "+(this.currentState==t?"active":"")},t)))),!this.isLoading&&(!this.tournaments||0==this.tournaments.length)&&e("div",{class:"NoTournaments "+(mn()?"Mobile":"")},gn("noTournaments",this.language)),this.tournaments&&e("div",{class:"Tournaments "+(mn()?"Mobile":"")},this.tournaments.map((t=>this.cardMode?e("div",{class:"TournamentCard "+(mn()?"Mobile":"")},e("casino-tournament-banner",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,state:t.state,enrolled:t.playerEnrolled,"start-time":t.startTime,"end-time":t.endTime,thumbnail:t.thumbnail?t.thumbnail:this.createImagePlaceHolder(320,180),"show-date":"false","show-check":"true","show-calendar":"true","show-running-date":"true","short-start":"true","bonus-code":t.bonusCode,currency:this.currency,"show-read-more":this.showReadMore,"card-mode":this.cardMode,language:this.language,endpoint:this.endpoint,loginEvent:this.loginEvent,session:this.session,registerEvent:this.registerEvent,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})):e("div",{class:"Tournament"},e("casino-tournament-banner",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,state:t.state,enrolled:t.playerEnrolled,"start-time":t.startTime,thumbnail:t.thumbnail?t.thumbnail:this.createImagePlaceHolder(320,180),"show-date":"false","show-check":"true","show-calendar":"true","short-start":"true","bonus-code":t.bonusCode,currency:this.currency,"card-mode":this.cardMode,language:this.language,endpoint:this.endpoint,session:this.session,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}),e("casino-tournament-info",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,"start-time":t.startTime,"end-time":t.endTime,"score-criteria":t.scoreCriteria,"min-bet-count":t.minBetCount,enrolled:t.playerEnrolled,align:"left","see-games":"true","show-button":"true","bonus-code":t.bonusCode,currency:this.currency,loginEvent:this.loginEvent,registerEvent:this.registerEvent,"show-read-more":this.showReadMore,language:this.language,endpoint:this.endpoint,session:this.session,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))),this.isLoading&&e("p",{class:"Loading"},gn("loading",this.language)),!this.isLoading&&!this.allTournamentsShown&&e("div",{class:"CenterButton",part:"CenterButton"},e("button",{class:"ShowMoreButton",part:"ShowMoreButton",onClick:()=>this.showMoreAction(),title:"Show More"},gn("showMore",this.language)))))}get host(){return i(this)}};vn.style=":host{display:block}.TournamentList{display:flex;flex-direction:column;width:1200px;margin:0 auto;background-color:#1a2c38;padding:12px}.TournamentList.CardMode{width:1040px}.TournamentList.Mobile{width:100%;padding:12px 0}.States{display:flex;gap:10px;justify-content:center;margin:16px}.State{padding:12px;font-size:12px;font-weight:800;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.State.active{border-bottom:2px solid var(--emfe-w-tournament-color-primary, #0072ed)}.Tournaments{display:flex;flex-wrap:wrap;gap:10px}.Tournaments.Mobile{width:100%;box-sizing:border-box;padding:12px}.TournamentCard{width:340px;height:180px}.TournamentCard.Mobile{width:100%}.TournamentCard casino-tournament-banner{height:180px}.TournamentCard casino-tournament-banner::part(TournamentBanner){border-radius:8px}.Tournament{width:390px}.Tournament casino-tournament-banner{height:150px}.Loading,.NoTournaments{color:var(--emfe-w-color-white, #FFFFFF)}.Loading.Mobile,.NoTournaments.Mobile{padding-left:12px}.CenterButton{padding-top:12px;width:100%;display:flex;justify-content:center}.ShowMoreButton{background:#1a2c38;display:flex;width:185px;justify-content:center;align-items:center;border-radius:2px;border:1px solid var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-white, #FFFFFF);padding:7px;text-transform:uppercase;cursor:pointer}";const yn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},wn=(t,e)=>{var i,n;return(null===(i=yn[e])||void 0===i?void 0:i[t])||(null===(n=yn.en)||void 0===n?void 0:n[t])},Sn=class{constructor(e){t(this,e),this.useGroup=!1,this.useEvent=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return e("div",{class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&e("div",{class:"PrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},e("path",{d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),e("div",{class:"Title"},wn("prizes",this.language))),this.initialLoad&&this.useGroup&&e("div",{class:"GroupPrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},e("g",{"clip-path":"url(#clip0_2459_42455)"},e("path",{d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_2459_42455"},e("rect",{width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),e("div",{class:"Title"},wn("prizes",this.language))),e("div",{class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,i)=>e("div",{class:`PrizeGroup Group${i+1}`},t&&t.map(((t,i)=>e("div",{class:"PrizeRow"},e("div",{class:`PrizeItem Rank${i+1}`},e("span",{class:"PrizeRank"},t.rank," ",wn("place",this.language)," "),e("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,i)=>e("div",{class:`Prize Prize${i}`},e("p",{class:"PrizeText"},e("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",wn("place",this.language),": ",t.name)))),!this.prizes&&e("p",null,wn("noprizes",this.language))))}get host(){return i(this)}};Sn.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";export{tn as casino_tournament_banner,rn as casino_tournament_buttons,an as casino_tournament_duration,cn as casino_tournament_info,vn as casino_tournament_list,Sn as casino_tournament_prizes}
|
|
15
|
+
!function(i){var n=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,o=i.XDomainRequest,a=i.ActiveXObject,u=i.EventSource,h=i.document,l=i.Promise,d=i.fetch,c=i.Response,m=i.TextDecoder,f=i.TextEncoder,g=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=a&&(s=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var p=d;d=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,r="",s=this.bitsNeeded,o=this.codePoint,a=0;a<t.length;a+=1){var u=t[a];0!==s&&(u<128||u>191||!e(o<<6|63&u,s-6,i(s,o)))&&(s=0,o=n,r+=String.fromCharCode(o)),0===s?(u>=0&&u<=127?(s=0,o=u):u>=192&&u<=223?(s=6,o=31&u):u>=224&&u<=239?(s=12,o=15&u):u>=240&&u<=247?(s=18,o=7&u):(s=0,o=n),0===s||e(o,s,i(s,o))||(s=0,o=n)):(s-=6,o=o<<6|63&u),0===s&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=o,r},null!=m&&null!=f&&function(){try{return"test"===(new m).decode((new f).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(m=b);var v=function(){};function y(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=v}function w(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function S(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var r=i[n].split(": "),s=r.shift(),o=r.join(": ");e[w(s)]=o}this._map=e}function M(){}function k(t){this._headers=t}function D(){}function A(){this._listeners=Object.create(null)}function x(t){n((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function C(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function F(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function j(t,e){T.call(this,t),this.error=e.error}y.prototype.open=function(t,e){this._abort(!0);var i=this,o=this._xhr,a=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,o.onload=v,o.onerror=v,o.onabort=v,o.onprogress=v,o.onreadystatechange=v,o.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),a=0};var h=function(){if(1===a){var t=0,e="",n=void 0;if("contentType"in o)t=200,e="OK",n=o.contentType;else try{t=o.status,e=o.statusText,n=o.getResponseHeader("Content-Type")}catch(i){t=0,e="",n=void 0}0!==t&&(a=2,i.readyState=2,i.status=t,i.statusText=e,i._contentType=n,i.onreadystatechange())}},l=function(){if(h(),2===a||3===a){a=3;var t="";try{t=o.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},d=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:v}),l(),1===a||2===a||3===a){if(a=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}},c=function(){u=n((function(){c()}),500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(t){d("load",t)}),"onerror"in o&&(o.onerror=function(t){d("error",t)}),"onabort"in o&&(o.onabort=function(t){d("abort",t)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(t){!function(t){null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||d(""===o.responseText?"error":"load",t):3===o.readyState?"onprogress"in o||l():2===o.readyState&&h())}(t)}),!("contentType"in o)&&"ontimeout"in s.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),o.open(t,e,!0),"readyState"in o&&(u=n((function(){c()}),0))},y.prototype.abort=function(){this._abort(!1)},y.prototype.getResponseHeader=function(){return this._contentType},y.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},y.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},y.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},S.prototype.get=function(t){return this._map[w(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),M.prototype.open=function(t,e,i,n,r,o,a){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var e=t.responseText.slice(u);u+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,n=t.statusText,r=t.getResponseHeader("Content-Type"),o=t.getAllResponseHeaders();e(i,n,r,new S(o))}},t.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,h)&&t.setRequestHeader(h,a[h]);return t.send(),t},k.prototype.get=function(t){return this._headers.get(t)},D.prototype.open=function(t,e,i,n,r,s,o){var a=null,u=new g,h=u.signal,c=new m;return d(r,{headers:o,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new k(t.headers)),new l((function(t,e){var n=function(){a.read().then((function(e){if(e.done)t(void 0);else{var r=c.decode(e.value,{stream:!0});i(r),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),u.abort()}}},A.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var r=e[n];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){x(t)}}},A.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var r=!1,s=0;s<n.length;s+=1)n[s]===e&&(r=!0);r||n.push(e)},A.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var r=[],s=0;s<n.length;s+=1)n[s]!==e&&r.push(n[s]);0===r.length?delete i[t]:i[t]=r}},C.prototype=Object.create(T.prototype),F.prototype=Object.create(T.prototype),j.prototype=Object.create(T.prototype);var N=-1,R=-1,Y=/^text\/event\-stream(;.*)?$/i,z=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),J(i)},J=function(t){return Math.min(Math.max(t,1e3),18e6)},O=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){x(t)}};function E(t,e){A.call(this),e=e||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,e,i){e=String(e);var a=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=J(1e3),l=z(i.heartbeatTimeout,45e3),d="",c=h,m=!1,f=0,g=i.headers||{},p=i.Transport,b=B&&null==p?void 0:new y(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==o?new s:new o),v=null!=p&&"string"!=typeof p?new p:null==b?new D:new M,w=void 0,S=0,k=N,A="",x="",T="",E="",W=0,H=0,P=0,L=function(e,i,n,r){if(0===k)if(200===e&&null!=n&&Y.test(n)){k=1,m=Date.now(),c=h,t.readyState=1;var s=new F("open",{status:e,statusText:i,headers:r});t.dispatchEvent(s),O(t,t.onopen,s)}else{var o="";200!==e?(i&&(i=i.replace(/\s+/g," ")),o="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):o="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",_(),s=new F("error",{status:e,statusText:i,headers:r}),t.dispatchEvent(s),O(t,t.onerror,s),console.error(o)}},I=function(e){if(1===k){for(var i=-1,s=0;s<e.length;s+=1)(u=e.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var o=(-1!==i?E:"")+e.slice(0,i+1);E=(-1===i?E:"")+e.slice(i+1),""!==e&&(m=Date.now(),f+=e.length);for(var a=0;a<o.length;a+=1){var u=o.charCodeAt(a);if(W===R&&u==="\n".charCodeAt(0))W=0;else if(W===R&&(W=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==W){1===W&&(P=a+1);var g=o.slice(H,P-1),p=o.slice(P+(P<a&&o.charCodeAt(P)===" ".charCodeAt(0)?1:0),a);"data"===g?(A+="\n",A+=p):"id"===g?x=p:"event"===g?T=p:"retry"===g?(h=z(p,h),c=h):"heartbeatTimeout"===g&&(l=z(p,l),0!==S&&(r(S),S=n((function(){V()}),l)))}if(0===W){if(""!==A){d=x,""===T&&(T="message");var b=new C(T,{data:A.slice(1),lastEventId:x});if(t.dispatchEvent(b),"open"===T?O(t,t.onopen,b):"message"===T?O(t,t.onmessage,b):"error"===T&&O(t,t.onerror,b),2===k)return}A="",T=""}W=u==="\r".charCodeAt(0)?R:0}else 0===W&&(H=a,W=1),1===W?u===":".charCodeAt(0)&&(P=a+1,W=2):2===W&&(W=3)}}},G=function(e){if(1===k||0===k){k=N,0!==S&&(r(S),S=0),S=n((function(){V()}),c),c=J(Math.min(16*h,2*c)),t.readyState=0;var i=new j("error",{error:e});t.dispatchEvent(i),O(t,t.onerror,i),null!=e&&console.error(e)}},_=function(){k=2,null!=w&&(w.abort(),w=void 0),0!==S&&(r(S),S=0),t.readyState=2},V=function(){if(S=0,k===N){m=!1,f=0,S=n((function(){V()}),l),k=0,A="",T="",x=d,E="",H=0,P=0,W=0;var i=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==d){var r=e.indexOf("?");i=-1===r?e:e.slice(0,r+1)+e.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===u?"":t})),i+=(-1===e.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(d)}var s=t.withCredentials,o={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(o[h]=a[h]);try{w=v.open(b,L,I,G,i,s,o)}catch(t){throw _(),t}}else if(m||null==w){var c=Math.max((m||Date.now())+l-Date.now(),1);m=!1,S=n((function(){V()}),c)}else G(new Error("No activity within "+l+" milliseconds. "+(0===k?"No response received.":f+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};t.url=e,t.readyState=0,t.withCredentials=a,t.headers=g,t._close=_,V()}(this,t,e)}var B=null!=d&&null!=c&&"body"in c.prototype;(E.prototype=Object.create(A.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0;var W,H=u;null==s||null!=u&&"withCredentials"in u.prototype||(H=E),void 0!==(W=function(t){t.EventSourcePolyfill=E,t.NativeEventSource=u,t.EventSource=H}(e))&&(t.exports=W)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:pn:globalThis)}(i={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}();const vn=class{constructor(e){t(this,e),this.offset=0,this.limit=6,this.showAnonymous=!1,this.state="All,Ongoing,Upcoming,Expired",this.updateTournaments=!0,this.loginEvent="OpenLoginRegisterModal",this.registerEvent="OpenLoginRegisterModal",this.cardMode=!1,this.showReadMore=!1,this.currency="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.limitStylingAppends=!1,this.tournaments=[],this.currentState="All",this.isLoading=!1,this.tournamentsShown=0,this.allTournamentsShown=!1,this.initialLoad=!1}async updateTournament(){this.tournaments=[],this.getTournamentInfo(this.offset,this.limit)}getTournamentInfo(t,e,i){let n=new URL(this.endpoint+"/v1/tournaments"),r=new Headers;this.session&&r.append("X-SessionId",this.session);const s={StartTimeAfter:this.getStartTimeAfter()};this.session||0!=this.showAnonymous||(s.tags="no-role-set"),this.currentState&&"All"!=this.currentState&&(s.state=this.matchStatus(this.currentState));const o=Object.keys(s).map((t=>`${t}=${s[t]}`)).join(",");n.searchParams.append("filter",o),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),n.searchParams.append("language",this.language),n.searchParams.append("fields","id,nameOrTitle,termsUrl,thumbnail,startTime,endTime,closeTime,playerEnrolled,wallets"),n.searchParams.append("pagination",`offset=${t},limit=${e}`),n.searchParams.append("sortField","StartTime"),n.searchParams.append("sortOrder",this.sortOrder||"desc"),this.sortType&&n.searchParams.append("sortType",this.sortType);let a={method:"GET",headers:r,cache:"no-cache"};this.isLoading=!0,fetch(n.href,a).then((t=>t.json())).then((t=>{if(this.tournaments=i?this.tournaments.concat(t.items):t.items,this.tournaments.forEach((t=>{t.wallets&&t.wallets[0]&&(t.bonusCode=t.wallets[0].code)})),this.tournamentsShown+=t.items.length,this.tournamentsShown>=t.total&&(this.allTournamentsShown=!0),this.updateTournaments){n.searchParams.set("pagination",`offset=0,limit=${this.tournamentsShown}`);let t=`${this.endpoint}/v1/tournaments/updates?${n.searchParams.toString()}`;this.startUpdate(t,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}})).catch((t=>{throw new Error(t)})).finally((()=>{this.isLoading=!1}))}createImagePlaceHolder(t,e){const i=document.createElement("canvas");i.width=t,i.height=e;const n=i.getContext("2d");n.fillStyle="rgb(0, 0, 0)",n.fillRect(0,0,t,e);const r=new Image(t,e);return r.src=i.toDataURL(),r.src}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)}setClientStylingURL(){let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))}getStartTimeAfter(){const t=new Date;return this.startTimeAfter?t.setDate(t.getDate()-Number(this.startTimeAfter)):t.setMonth(t.getMonth()-12),t.toISOString().substring(0,10)}onStateChange(t){0==this.isLoading&&(this.tournaments=[],this.tournamentsShown=0,this.allTournamentsShown=!1,this.sseConnection.removeEventListener("message",this.updateHandler),this.currentState=t,this.getTournamentInfo(this.offset,this.limit))}showMoreAction(){this.getTournamentInfo(this.offset+this.tournamentsShown,this.limit,!0)}matchStatus(t){return"Upcoming"==t?"Unstarted":"Ongoing"==t?"Running":"Closing|Closed"}startUpdate(t,e){this.sseConnection&&this.sseConnection.close(),this.sseConnection=new bn.EventSourcePolyfill(t,e),this.sseConnection.removeEventListener("message",this.updateHandler),this.sseConnection.addEventListener("message",this.updateHandler.bind(this))}updateHandler(t){if(!t.data)return;let e=JSON.parse(t.data);"LeaderBoardUpdate"==e.messageType&&this.updateView(e)}updateView(t){this.tournaments=t.items}async componentWillLoad(){this.state&&(this.states=this.state.split(","));const t=[];if(this.endpoint){const e=this.getTournamentInfo(this.offset,this.limit);t.push(e)}if(this.translationUrl){const i=(e=this.translationUrl,new Promise(((t,i)=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])fn[t][i]=e[t][i]})),t(fn)})).catch((t=>{i(t)}))}))).then((t=>{this.translationData=JSON.stringify(t)})).catch((t=>{console.log(t)}));t.push(i)}var e;return Promise.all(t)}render(){return e("div",{class:`TournamentList ${this.cardMode?"CardMode":""} ${mn()?"Mobile":""}`},this.states&&e("div",{class:"States"},this.states.map((t=>e("div",{onClick:()=>this.onStateChange.bind(this)(t),class:"State "+(this.currentState==t?"active":"")},t)))),!this.isLoading&&(!this.tournaments||0==this.tournaments.length)&&e("div",{class:"NoTournaments "+(mn()?"Mobile":"")},gn("noTournaments",this.language)),this.tournaments&&e("div",{class:"Tournaments "+(mn()?"Mobile":"")},this.tournaments.map((t=>this.cardMode?e("div",{class:"TournamentCard "+(mn()?"Mobile":"")},e("casino-tournament-banner",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,state:t.state,enrolled:t.playerEnrolled,"start-time":t.startTime,"end-time":t.endTime,thumbnail:t.thumbnail?t.thumbnail:this.createImagePlaceHolder(320,180),"show-date":"false","show-check":"true","show-calendar":"true","show-running-date":"true","short-start":"true","bonus-code":t.bonusCode,currency:this.currency,"show-read-more":this.showReadMore,"card-mode":this.cardMode,language:this.language,endpoint:this.endpoint,loginEvent:this.loginEvent,session:this.session,registerEvent:this.registerEvent,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})):e("div",{class:"Tournament"},e("casino-tournament-banner",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,state:t.state,enrolled:t.playerEnrolled,"start-time":t.startTime,thumbnail:t.thumbnail?t.thumbnail:this.createImagePlaceHolder(320,180),"show-date":"false","show-check":"true","show-calendar":"true","short-start":"true","bonus-code":t.bonusCode,currency:this.currency,"card-mode":this.cardMode,language:this.language,endpoint:this.endpoint,session:this.session,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}),e("casino-tournament-info",{"name-or-title":t.nameOrTitle,"tournament-id":t.id,"start-time":t.startTime,"end-time":t.endTime,"score-criteria":t.scoreCriteria,"min-bet-count":t.minBetCount,enrolled:t.playerEnrolled,align:"left","see-games":"true","show-button":"true","bonus-code":t.bonusCode,currency:this.currency,loginEvent:this.loginEvent,registerEvent:this.registerEvent,"show-read-more":this.showReadMore,language:this.language,endpoint:this.endpoint,session:this.session,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))),this.isLoading&&e("p",{class:"Loading"},gn("loading",this.language)),!this.isLoading&&!this.allTournamentsShown&&e("div",{class:"CenterButton",part:"CenterButton"},e("button",{class:"ShowMoreButton",part:"ShowMoreButton",onClick:()=>this.showMoreAction(),title:"Show More"},gn("showMore",this.language)))))}get host(){return i(this)}static get watchers(){return{session:["updateTournament"]}}};vn.style=":host{display:block}.TournamentList{display:flex;flex-direction:column;width:1200px;margin:0 auto;background-color:#1a2c38;padding:12px}.TournamentList.CardMode{width:1040px}.TournamentList.Mobile{width:100%;padding:12px 0}.States{display:flex;gap:10px;justify-content:center;margin:16px}.State{padding:12px;font-size:12px;font-weight:800;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.State.active{border-bottom:2px solid var(--emfe-w-tournament-color-primary, #0072ed)}.Tournaments{display:flex;flex-wrap:wrap;gap:10px}.Tournaments.Mobile{width:100%;box-sizing:border-box;padding:12px}.TournamentCard{width:340px;height:180px}.TournamentCard.Mobile{width:100%}.TournamentCard casino-tournament-banner{height:180px}.TournamentCard casino-tournament-banner::part(TournamentBanner){border-radius:8px}.Tournament{width:390px}.Tournament casino-tournament-banner{height:150px}.Loading,.NoTournaments{color:var(--emfe-w-color-white, #FFFFFF)}.Loading.Mobile,.NoTournaments.Mobile{padding-left:12px}.CenterButton{padding-top:12px;width:100%;display:flex;justify-content:center}.ShowMoreButton{background:#1a2c38;display:flex;width:185px;justify-content:center;align-items:center;border-radius:2px;border:1px solid var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-white, #FFFFFF);padding:7px;text-transform:uppercase;cursor:pointer}";const yn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},wn=(t,e)=>{var i,n;return(null===(i=yn[e])||void 0===i?void 0:i[t])||(null===(n=yn.en)||void 0===n?void 0:n[t])},Sn=class{constructor(e){t(this,e),this.useGroup=!1,this.useEvent=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return e("div",{class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&e("div",{class:"PrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},e("path",{d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),e("div",{class:"Title"},wn("prizes",this.language))),this.initialLoad&&this.useGroup&&e("div",{class:"GroupPrizeTitle"},e("svg",{class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},e("g",{"clip-path":"url(#clip0_2459_42455)"},e("path",{d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_2459_42455"},e("rect",{width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),e("div",{class:"Title"},wn("prizes",this.language))),e("div",{class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,i)=>e("div",{class:`PrizeGroup Group${i+1}`},t&&t.map(((t,i)=>e("div",{class:"PrizeRow"},e("div",{class:`PrizeItem Rank${i+1}`},e("span",{class:"PrizeRank"},t.rank," ",wn("place",this.language)," "),e("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,i)=>e("div",{class:`Prize Prize${i}`},e("p",{class:"PrizeText"},e("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",wn("place",this.language),": ",t.name)))),!this.prizes&&e("p",null,wn("noprizes",this.language))))}get host(){return i(this)}};Sn.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";export{tn as casino_tournament_banner,rn as casino_tournament_buttons,an as casino_tournament_duration,cn as casino_tournament_info,vn as casino_tournament_list,Sn as casino_tournament_prizes}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),p=new WeakMap
|
|
1
|
+
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),p=new WeakMap,y=e=>"sc-"+e.h,$={},d=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!d(l))&&(l+=""),s&&o?r[r.length-1].p+=l:r.push(s?w(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=w(e,null);return c.$=t,r.length>0&&(c.m=r),c},w=(e,t)=>({t:0,g:e,p:t,v:null,m:null,$:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=G(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(c||"o"!==t[0]||"n"!==t[1]){const s=d(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.$||$,r=t.$||$;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.m[s],u=0;if(null!==c.p)r=c.v=o.createTextNode(c.p);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.m)for(u=0;u<c.m.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.v.remove()},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.m,o=t.m,r=t.g,i=t.p;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.p&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.p!==i&&(l.data=i)},P=e=>_(e).S,R=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},W=(e,t)=>{if(e.t|=16,!(4&e.t))return R(e,e.O),le((()=>E(e,t)));e.t|=512},E=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>F(n,e,t))),e.u=null),l=F(n,"componentWillLoad")),l=U(l,(()=>F(n,"componentWillRender"))),U(l,(()=>L(e,n,t)))},L=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=y(t),l=Q.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=p.get(e=e.head||e);s||p.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);N(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>T(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},N=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.M,r=n.k||w(null,null),i=(e=>e&&e.g===b)(l)?l:m(null,null,l);t=s.tagName,o.C&&(i.$=i.$||{},o.C.map((([e,t])=>i.$[t]=s[e]))),i.g=null,i.t|=4,n.k=i,i.v=r.v=s.shadowRoot||s,e=s["s-sc"],x(r,i)})(n,l)}catch(e){I(e,n.S)}return null},T=e=>{const t=e.S,n=e.O;F(e.i,"componentDidRender"),64&e.t||(e.t|=64,q(t),e.P(t),n||A()),e.j&&(e.j(),e.j=void 0),512&e.t&&ne((()=>W(e,!1))),e.t&=-517},A=()=>{q(o.documentElement),ne((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-list"}});return e.dispatchEvent(t),t})(s)))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},U=(e,t)=>e&&e.then?e.then(t):t(),q=e=>e.classList.add("hydrated"),D=(e,t,n)=>{if(t.R){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.R),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.S,r=s.L.get(t),i=s.t,c=s.i;if(n=((e,t)=>null==e||d(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.R[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.L.set(t,n),c)){if(l.W&&128&i){const e=l.W[t];e&&e.map((e=>{try{c[e](n,r,t)}catch(e){I(e,o)}}))}2==(18&i)&&W(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){r.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.C.push([e,s]),s}))}}return e},H=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),p=[];let $,d=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],R:t[2],N:t[3]};s.R=t[2],s.N=t[3],s.C=[],s.W={};const o=s.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),d?p.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=_(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.O=n);break}}n.R&&Object.entries(n.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.W=s.watchers,D(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,t.t|=128,e()}if(s.style){let e=s.style;const t=y(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>W(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).T}};s.A=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,D(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),d=!1,p.length?p.map((e=>e.connectedCallback())):r.jmp((()=>$=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.T=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.h.replace(/-/g,"_"),n=e.A,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ne(te):r.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(l=X.length>0)&&r.raf(te)},ne=e=>i().then(e),le=Z(Y,!0);export{H as b,P as g,m as h,i as p,z as r}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d78904fb.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE$5 = 'en';
|
|
8
8
|
const TRANSLATIONS$5 = {
|
|
@@ -8825,7 +8825,11 @@ const CasinoTournamentList = class {
|
|
|
8825
8825
|
this.allTournamentsShown = false;
|
|
8826
8826
|
this.initialLoad = false;
|
|
8827
8827
|
}
|
|
8828
|
-
|
|
8828
|
+
async updateTournament() {
|
|
8829
|
+
this.tournaments = [];
|
|
8830
|
+
this.getTournamentInfo(this.offset, this.limit);
|
|
8831
|
+
}
|
|
8832
|
+
getTournamentInfo(offset, limit, showMore) {
|
|
8829
8833
|
let url = new URL(this.endpoint + `/v1/tournaments`);
|
|
8830
8834
|
let reqHeaders = new Headers();
|
|
8831
8835
|
if (this.session) {
|
|
@@ -8859,7 +8863,7 @@ const CasinoTournamentList = class {
|
|
|
8859
8863
|
this.isLoading = true;
|
|
8860
8864
|
fetch(url.href, requestOptions).then((res) => res.json())
|
|
8861
8865
|
.then((res) => {
|
|
8862
|
-
this.tournaments = this.tournaments.concat(res.items);
|
|
8866
|
+
this.tournaments = showMore ? this.tournaments.concat(res.items) : res.items;
|
|
8863
8867
|
this.tournaments.forEach((item) => {
|
|
8864
8868
|
if (item.wallets && item.wallets[0]) {
|
|
8865
8869
|
item.bonusCode = item.wallets[0].code;
|
|
@@ -8937,7 +8941,7 @@ const CasinoTournamentList = class {
|
|
|
8937
8941
|
}
|
|
8938
8942
|
}
|
|
8939
8943
|
showMoreAction() {
|
|
8940
|
-
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit);
|
|
8944
|
+
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit, true);
|
|
8941
8945
|
}
|
|
8942
8946
|
matchStatus(status) {
|
|
8943
8947
|
if (status == 'Upcoming') {
|
|
@@ -9002,6 +9006,9 @@ const CasinoTournamentList = class {
|
|
|
9002
9006
|
index.h("div", { class: "CenterButton", part: "CenterButton" }, index.h("button", { class: "ShowMoreButton", part: "ShowMoreButton", onClick: () => this.showMoreAction(), title: "Show More" }, translate$1('showMore', this.language)))));
|
|
9003
9007
|
}
|
|
9004
9008
|
get host() { return index.getElement(this); }
|
|
9009
|
+
static get watchers() { return {
|
|
9010
|
+
"session": ["updateTournament"]
|
|
9011
|
+
}; }
|
|
9005
9012
|
};
|
|
9006
9013
|
CasinoTournamentList.style = casinoTournamentListCss;
|
|
9007
9014
|
|
|
@@ -850,6 +850,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
850
850
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
851
851
|
// check our new property value against our internal value
|
|
852
852
|
const hostRef = getHostRef(ref);
|
|
853
|
+
const elm = hostRef.$hostElement$ ;
|
|
853
854
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
854
855
|
const flags = hostRef.$flags$;
|
|
855
856
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -862,6 +863,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
862
863
|
// set our new value!
|
|
863
864
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
864
865
|
if (instance) {
|
|
866
|
+
// get an array of method names of watch functions to call
|
|
867
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
868
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
869
|
+
if (watchMethods) {
|
|
870
|
+
// this instance is watching for when this property changed
|
|
871
|
+
watchMethods.map((watchMethodName) => {
|
|
872
|
+
try {
|
|
873
|
+
// fire off each of the watch methods that are watching this property
|
|
874
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
875
|
+
}
|
|
876
|
+
catch (e) {
|
|
877
|
+
consoleError(e, elm);
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
}
|
|
865
882
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
866
883
|
// looks like this value actually changed, so we've got work to do!
|
|
867
884
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -874,6 +891,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
874
891
|
};
|
|
875
892
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
876
893
|
if (cmpMeta.$members$) {
|
|
894
|
+
if (Cstr.watchers) {
|
|
895
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
896
|
+
}
|
|
877
897
|
// It's better to have a const than two Object.entries()
|
|
878
898
|
const members = Object.entries(cmpMeta.$members$);
|
|
879
899
|
const prototype = Cstr.prototype;
|
|
@@ -981,6 +1001,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
981
1001
|
endLoad();
|
|
982
1002
|
}
|
|
983
1003
|
if (!Cstr.isProxied) {
|
|
1004
|
+
// we've never proxied this Constructor before
|
|
1005
|
+
// let's add the getters/setters to its prototype before
|
|
1006
|
+
// the first time we create an instance of the implementation
|
|
1007
|
+
{
|
|
1008
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1009
|
+
}
|
|
984
1010
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
985
1011
|
Cstr.isProxied = true;
|
|
986
1012
|
}
|
|
@@ -1004,6 +1030,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1004
1030
|
{
|
|
1005
1031
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1006
1032
|
}
|
|
1033
|
+
{
|
|
1034
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1035
|
+
}
|
|
1007
1036
|
endNewInstance();
|
|
1008
1037
|
}
|
|
1009
1038
|
if (Cstr.style) {
|
|
@@ -1121,6 +1150,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1121
1150
|
{
|
|
1122
1151
|
cmpMeta.$attrsToReflect$ = [];
|
|
1123
1152
|
}
|
|
1153
|
+
{
|
|
1154
|
+
cmpMeta.$watchers$ = {};
|
|
1155
|
+
}
|
|
1124
1156
|
const tagName = cmpMeta.$tagName$;
|
|
1125
1157
|
const HostElement = class extends HTMLElement {
|
|
1126
1158
|
// StencilLazyHost
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Prop, State, h, Element } from '@stencil/core';
|
|
1
|
+
import { Component, Prop, State, h, Element, Watch } from '@stencil/core';
|
|
2
2
|
import { getDevice, isMobile } from '../../utils/utils';
|
|
3
3
|
import { translate, getTranslations } from '../../utils/locale.utils';
|
|
4
4
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
|
@@ -66,7 +66,11 @@ export class CasinoTournamentList {
|
|
|
66
66
|
this.allTournamentsShown = false;
|
|
67
67
|
this.initialLoad = false;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
async updateTournament() {
|
|
70
|
+
this.tournaments = [];
|
|
71
|
+
this.getTournamentInfo(this.offset, this.limit);
|
|
72
|
+
}
|
|
73
|
+
getTournamentInfo(offset, limit, showMore) {
|
|
70
74
|
let url = new URL(this.endpoint + `/v1/tournaments`);
|
|
71
75
|
let reqHeaders = new Headers();
|
|
72
76
|
if (this.session) {
|
|
@@ -100,7 +104,7 @@ export class CasinoTournamentList {
|
|
|
100
104
|
this.isLoading = true;
|
|
101
105
|
fetch(url.href, requestOptions).then((res) => res.json())
|
|
102
106
|
.then((res) => {
|
|
103
|
-
this.tournaments = this.tournaments.concat(res.items);
|
|
107
|
+
this.tournaments = showMore ? this.tournaments.concat(res.items) : res.items;
|
|
104
108
|
this.tournaments.forEach((item) => {
|
|
105
109
|
if (item.wallets && item.wallets[0]) {
|
|
106
110
|
item.bonusCode = item.wallets[0].code;
|
|
@@ -178,7 +182,7 @@ export class CasinoTournamentList {
|
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
184
|
showMoreAction() {
|
|
181
|
-
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit);
|
|
185
|
+
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit, true);
|
|
182
186
|
}
|
|
183
187
|
matchStatus(status) {
|
|
184
188
|
if (status == 'Upcoming') {
|
|
@@ -611,4 +615,8 @@ export class CasinoTournamentList {
|
|
|
611
615
|
"initialLoad": {}
|
|
612
616
|
}; }
|
|
613
617
|
static get elementRef() { return "host"; }
|
|
618
|
+
static get watchers() { return [{
|
|
619
|
+
"propName": "session",
|
|
620
|
+
"methodName": "updateTournament"
|
|
621
|
+
}]; }
|
|
614
622
|
}
|
|
@@ -1269,7 +1269,11 @@ const CasinoTournamentList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
1269
1269
|
this.allTournamentsShown = false;
|
|
1270
1270
|
this.initialLoad = false;
|
|
1271
1271
|
}
|
|
1272
|
-
|
|
1272
|
+
async updateTournament() {
|
|
1273
|
+
this.tournaments = [];
|
|
1274
|
+
this.getTournamentInfo(this.offset, this.limit);
|
|
1275
|
+
}
|
|
1276
|
+
getTournamentInfo(offset, limit, showMore) {
|
|
1273
1277
|
let url = new URL(this.endpoint + `/v1/tournaments`);
|
|
1274
1278
|
let reqHeaders = new Headers();
|
|
1275
1279
|
if (this.session) {
|
|
@@ -1303,7 +1307,7 @@ const CasinoTournamentList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
1303
1307
|
this.isLoading = true;
|
|
1304
1308
|
fetch(url.href, requestOptions).then((res) => res.json())
|
|
1305
1309
|
.then((res) => {
|
|
1306
|
-
this.tournaments = this.tournaments.concat(res.items);
|
|
1310
|
+
this.tournaments = showMore ? this.tournaments.concat(res.items) : res.items;
|
|
1307
1311
|
this.tournaments.forEach((item) => {
|
|
1308
1312
|
if (item.wallets && item.wallets[0]) {
|
|
1309
1313
|
item.bonusCode = item.wallets[0].code;
|
|
@@ -1381,7 +1385,7 @@ const CasinoTournamentList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
1381
1385
|
}
|
|
1382
1386
|
}
|
|
1383
1387
|
showMoreAction() {
|
|
1384
|
-
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit);
|
|
1388
|
+
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit, true);
|
|
1385
1389
|
}
|
|
1386
1390
|
matchStatus(status) {
|
|
1387
1391
|
if (status == 'Upcoming') {
|
|
@@ -1446,6 +1450,9 @@ const CasinoTournamentList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
|
1446
1450
|
h("div", { class: "CenterButton", part: "CenterButton" }, h("button", { class: "ShowMoreButton", part: "ShowMoreButton", onClick: () => this.showMoreAction(), title: "Show More" }, translate('showMore', this.language)))));
|
|
1447
1451
|
}
|
|
1448
1452
|
get host() { return this; }
|
|
1453
|
+
static get watchers() { return {
|
|
1454
|
+
"session": ["updateTournament"]
|
|
1455
|
+
}; }
|
|
1449
1456
|
static get style() { return casinoTournamentListCss; }
|
|
1450
1457
|
}, [1, "casino-tournament-list", {
|
|
1451
1458
|
"endpoint": [1],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-7b06e420.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$5 = 'en';
|
|
4
4
|
const TRANSLATIONS$5 = {
|
|
@@ -8821,7 +8821,11 @@ const CasinoTournamentList = class {
|
|
|
8821
8821
|
this.allTournamentsShown = false;
|
|
8822
8822
|
this.initialLoad = false;
|
|
8823
8823
|
}
|
|
8824
|
-
|
|
8824
|
+
async updateTournament() {
|
|
8825
|
+
this.tournaments = [];
|
|
8826
|
+
this.getTournamentInfo(this.offset, this.limit);
|
|
8827
|
+
}
|
|
8828
|
+
getTournamentInfo(offset, limit, showMore) {
|
|
8825
8829
|
let url = new URL(this.endpoint + `/v1/tournaments`);
|
|
8826
8830
|
let reqHeaders = new Headers();
|
|
8827
8831
|
if (this.session) {
|
|
@@ -8855,7 +8859,7 @@ const CasinoTournamentList = class {
|
|
|
8855
8859
|
this.isLoading = true;
|
|
8856
8860
|
fetch(url.href, requestOptions).then((res) => res.json())
|
|
8857
8861
|
.then((res) => {
|
|
8858
|
-
this.tournaments = this.tournaments.concat(res.items);
|
|
8862
|
+
this.tournaments = showMore ? this.tournaments.concat(res.items) : res.items;
|
|
8859
8863
|
this.tournaments.forEach((item) => {
|
|
8860
8864
|
if (item.wallets && item.wallets[0]) {
|
|
8861
8865
|
item.bonusCode = item.wallets[0].code;
|
|
@@ -8933,7 +8937,7 @@ const CasinoTournamentList = class {
|
|
|
8933
8937
|
}
|
|
8934
8938
|
}
|
|
8935
8939
|
showMoreAction() {
|
|
8936
|
-
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit);
|
|
8940
|
+
this.getTournamentInfo(this.offset + this.tournamentsShown, this.limit, true);
|
|
8937
8941
|
}
|
|
8938
8942
|
matchStatus(status) {
|
|
8939
8943
|
if (status == 'Upcoming') {
|
|
@@ -8998,6 +9002,9 @@ const CasinoTournamentList = class {
|
|
|
8998
9002
|
h("div", { class: "CenterButton", part: "CenterButton" }, h("button", { class: "ShowMoreButton", part: "ShowMoreButton", onClick: () => this.showMoreAction(), title: "Show More" }, translate$1('showMore', this.language)))));
|
|
8999
9003
|
}
|
|
9000
9004
|
get host() { return getElement(this); }
|
|
9005
|
+
static get watchers() { return {
|
|
9006
|
+
"session": ["updateTournament"]
|
|
9007
|
+
}; }
|
|
9001
9008
|
};
|
|
9002
9009
|
CasinoTournamentList.style = casinoTournamentListCss;
|
|
9003
9010
|
|
|
@@ -828,6 +828,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
828
828
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
829
829
|
// check our new property value against our internal value
|
|
830
830
|
const hostRef = getHostRef(ref);
|
|
831
|
+
const elm = hostRef.$hostElement$ ;
|
|
831
832
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
832
833
|
const flags = hostRef.$flags$;
|
|
833
834
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -840,6 +841,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
840
841
|
// set our new value!
|
|
841
842
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
842
843
|
if (instance) {
|
|
844
|
+
// get an array of method names of watch functions to call
|
|
845
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
846
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
847
|
+
if (watchMethods) {
|
|
848
|
+
// this instance is watching for when this property changed
|
|
849
|
+
watchMethods.map((watchMethodName) => {
|
|
850
|
+
try {
|
|
851
|
+
// fire off each of the watch methods that are watching this property
|
|
852
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
853
|
+
}
|
|
854
|
+
catch (e) {
|
|
855
|
+
consoleError(e, elm);
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}
|
|
843
860
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
844
861
|
// looks like this value actually changed, so we've got work to do!
|
|
845
862
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -852,6 +869,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
852
869
|
};
|
|
853
870
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
854
871
|
if (cmpMeta.$members$) {
|
|
872
|
+
if (Cstr.watchers) {
|
|
873
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
874
|
+
}
|
|
855
875
|
// It's better to have a const than two Object.entries()
|
|
856
876
|
const members = Object.entries(cmpMeta.$members$);
|
|
857
877
|
const prototype = Cstr.prototype;
|
|
@@ -959,6 +979,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
959
979
|
endLoad();
|
|
960
980
|
}
|
|
961
981
|
if (!Cstr.isProxied) {
|
|
982
|
+
// we've never proxied this Constructor before
|
|
983
|
+
// let's add the getters/setters to its prototype before
|
|
984
|
+
// the first time we create an instance of the implementation
|
|
985
|
+
{
|
|
986
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
987
|
+
}
|
|
962
988
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
963
989
|
Cstr.isProxied = true;
|
|
964
990
|
}
|
|
@@ -982,6 +1008,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
982
1008
|
{
|
|
983
1009
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
984
1010
|
}
|
|
1011
|
+
{
|
|
1012
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1013
|
+
}
|
|
985
1014
|
endNewInstance();
|
|
986
1015
|
}
|
|
987
1016
|
if (Cstr.style) {
|
|
@@ -1099,6 +1128,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1099
1128
|
{
|
|
1100
1129
|
cmpMeta.$attrsToReflect$ = [];
|
|
1101
1130
|
}
|
|
1131
|
+
{
|
|
1132
|
+
cmpMeta.$watchers$ = {};
|
|
1133
|
+
}
|
|
1102
1134
|
const tagName = cmpMeta.$tagName$;
|
|
1103
1135
|
const HostElement = class extends HTMLElement {
|
|
1104
1136
|
// StencilLazyHost
|
package/dist/esm/loader.js
CHANGED
|
@@ -88,8 +88,9 @@ export declare class CasinoTournamentList {
|
|
|
88
88
|
sseConnection: EventSourcePolyfill;
|
|
89
89
|
translationData: string;
|
|
90
90
|
initialLoad: boolean;
|
|
91
|
+
updateTournament(): Promise<any>;
|
|
91
92
|
host: HTMLElement;
|
|
92
|
-
getTournamentInfo(offset: number, limit: number): void;
|
|
93
|
+
getTournamentInfo(offset: number, limit: number, showMore?: boolean): void;
|
|
93
94
|
createImagePlaceHolder(width: number, height: number): string;
|
|
94
95
|
componentDidRender(): void;
|
|
95
96
|
setClientStyling(): void;
|