@everymatrix/casino-tournament-buttons 1.20.1 → 1.20.7
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-buttons/casino-tournament-buttons.esm.js +1 -1
- package/dist/casino-tournament-buttons/{p-b8d8c801.entry.js → p-90105615.entry.js} +1 -1
- package/dist/cjs/casino-tournament-buttons.cjs.entry.js +24 -12
- package/dist/collection/components/casino-tournament-buttons/casino-tournament-buttons.js +52 -40
- package/dist/components/casino-tournament-buttons.js +24 -12
- package/dist/esm/casino-tournament-buttons.entry.js +24 -12
- package/dist/types/components/casino-tournament-buttons/casino-tournament-buttons.d.ts +59 -17
- package/dist/types/components.d.ts +98 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as e}from"./p-6ef0312c.js";(()=>{const e=import.meta.url,r={};return""!==e&&(r.resourcesUrl=new URL(".",e).href),n(r)})().then((n=>e([["p-
|
|
1
|
+
import{p as n,b as e}from"./p-6ef0312c.js";(()=>{const e=import.meta.url,r={};return""!==e&&(r.resourcesUrl=new URL(".",e).href),n(r)})().then((n=>e([["p-90105615",[[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"],limitStylingAppends:[32],stylingContainer:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],n)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-6ef0312c.js";const i=["ro","en","zh-hk","fr","hu","tr","el","es","pt"],r={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."},"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:"加入錦標賽時出錯,請重試"},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 - "},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."},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 - "},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:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},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"},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 -"},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."}},n=(e,t)=>{const n=t;return r[void 0!==n&&i.includes(n)?n:"en"][e]},o=class{constructor(t){e(this,t),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrl,this.stylingContainer.prepend(e)}),1)}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(e,t){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),this.joinButtonLoading=!0;let r=new URL(`${this.endpoint}/bonus/claim`),n=new Headers,o={};r.searchParams.append("language",this.language),r.searchParams.append("platform",(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),n.append("Content-Type","application/json"),n.append("X-SessionID",this.session),t&&(o={language:this.language,bonusCode:t,currency:this.currency});let a={method:"PUT",headers:n,body:JSON.stringify(o)};const s=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},d=await(async()=>{let e;try{e=await fetch(`${this.endpoint}/bonus/claim?${r.searchParams.toString()}`,a),e=await e.json()}catch(e){u()}return e})();if(d)if(1==d.success)s();else if(d.errorMessage.match("VersionMismatchException")){let e;e=await fetch(`${this.endpoint}/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),e=await e.json(),(null===(i=null==e?void 0:e.item)||void 0===i?void 0:i.playerEnrolled)?s():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(e){window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)}moreAction(e){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:e},window.location.href)}render(){return t("div",{ref:e=>this.stylingContainer=e,class:"TournamentButtons"},!this.session&&t("div",{class:"ButtonGroup"},t("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},n("login",this.language)),t("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},n("register",this.language))),this.session&&t("div",null,!this.enrolled&&t("div",{class:"ButtonGroup"},t("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},n("join",this.language)),this.showReadMore&&t("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&t("div",{class:"ButtonGroup"},t("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},n("details",this.language)),this.showReadMore&&t("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&t("span",{class:"ErrorText",part:"ErrorText"},n("joinerror",this.language)))}};o.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';export{o as casino_tournament_buttons}
|
|
1
|
+
import{r as e,h as t}from"./p-6ef0312c.js";const i=["ro","en","zh-hk","fr","hu","tr","el","es","pt"],r={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."},"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:"加入錦標賽時出錯,請重試"},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 - "},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."},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 - "},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:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},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"},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 -"},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."}},n=(e,t)=>{const n=t;return r[void 0!==n&&i.includes(n)?n:"en"][e]},o=class{constructor(t){e(this,t),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)}setClientStylingURL(){let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrl,this.stylingContainer.prepend(e)}),1)}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(e,t){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),this.joinButtonLoading=!0;let r=new URL(`${this.endpoint}/bonus/claim`),n=new Headers,o={};r.searchParams.append("language",this.language),r.searchParams.append("platform",(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),n.append("Content-Type","application/json"),n.append("X-SessionID",this.session),t&&(o={language:this.language,bonusCode:t,currency:this.currency});let a={method:"PUT",headers:n,body:JSON.stringify(o)};const s=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},d=await(async()=>{let e;try{e=await fetch(`${this.endpoint}/bonus/claim?${r.searchParams.toString()}`,a),e=await e.json()}catch(e){u()}return e})();if(d)if(1==d.success)s();else if(d.errorMessage.match("VersionMismatchException")){let e;e=await fetch(`${this.endpoint}/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),e=await e.json(),(null===(i=null==e?void 0:e.item)||void 0===i?void 0:i.playerEnrolled)?s():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(e){window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)}moreAction(e){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:e},window.location.href)}render(){return t("div",{ref:e=>this.stylingContainer=e,class:"TournamentButtons"},!this.session&&t("div",{class:"ButtonGroup"},t("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},n("login",this.language)),t("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},n("register",this.language))),this.session&&t("div",null,!this.enrolled&&t("div",{class:"ButtonGroup"},t("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},n("join",this.language)),this.showReadMore&&t("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&t("div",{class:"ButtonGroup"},t("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},n("details",this.language)),this.showReadMore&&t("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&t("span",{class:"ErrorText",part:"ErrorText"},n("joinerror",this.language)))}};o.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';export{o as casino_tournament_buttons}
|
|
@@ -337,26 +337,26 @@ const casinoTournamentButtonsCss = ":host{display:block}.ButtonGroup{display:fle
|
|
|
337
337
|
const CasinoTournamentButtons = class {
|
|
338
338
|
constructor(hostRef) {
|
|
339
339
|
index.registerInstance(this, hostRef);
|
|
340
|
+
/**
|
|
341
|
+
* Player enrolled
|
|
342
|
+
*/
|
|
340
343
|
this.enrolled = false;
|
|
344
|
+
/**
|
|
345
|
+
* Show read more button
|
|
346
|
+
*/
|
|
341
347
|
this.showReadMore = false;
|
|
348
|
+
/**
|
|
349
|
+
* Client custom styling via inline styles
|
|
350
|
+
*/
|
|
342
351
|
this.clientStyling = '';
|
|
352
|
+
/**
|
|
353
|
+
* Client custom styling via url
|
|
354
|
+
*/
|
|
343
355
|
this.clientStylingUrl = '';
|
|
344
356
|
this.limitStylingAppends = false;
|
|
345
357
|
this.joinButtonLoading = false;
|
|
346
358
|
this.errorJoin = false;
|
|
347
359
|
this.errorJoinConcurrently = false;
|
|
348
|
-
this.setClientStyling = () => {
|
|
349
|
-
let sheet = document.createElement('style');
|
|
350
|
-
sheet.innerHTML = this.clientStyling;
|
|
351
|
-
this.stylingContainer.prepend(sheet);
|
|
352
|
-
};
|
|
353
|
-
this.setClientStylingURL = () => {
|
|
354
|
-
let cssFile = document.createElement('style');
|
|
355
|
-
setTimeout(() => {
|
|
356
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
357
|
-
this.stylingContainer.prepend(cssFile);
|
|
358
|
-
}, 1);
|
|
359
|
-
};
|
|
360
360
|
}
|
|
361
361
|
componentDidRender() {
|
|
362
362
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -367,6 +367,18 @@ const CasinoTournamentButtons = class {
|
|
|
367
367
|
this.limitStylingAppends = true;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
+
setClientStyling() {
|
|
371
|
+
let sheet = document.createElement('style');
|
|
372
|
+
sheet.innerHTML = this.clientStyling;
|
|
373
|
+
this.stylingContainer.prepend(sheet);
|
|
374
|
+
}
|
|
375
|
+
setClientStylingURL() {
|
|
376
|
+
let cssFile = document.createElement('style');
|
|
377
|
+
setTimeout(() => {
|
|
378
|
+
cssFile.innerHTML = this.clientStylingUrl;
|
|
379
|
+
this.stylingContainer.prepend(cssFile);
|
|
380
|
+
}, 1);
|
|
381
|
+
}
|
|
370
382
|
loginAction() {
|
|
371
383
|
if (this.loginEvent) {
|
|
372
384
|
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
@@ -3,26 +3,26 @@ import { getDevice } from '../../utils/utils';
|
|
|
3
3
|
import { translate } from '../../utils/locale.utils';
|
|
4
4
|
export class CasinoTournamentButtons {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Player enrolled
|
|
8
|
+
*/
|
|
6
9
|
this.enrolled = false;
|
|
10
|
+
/**
|
|
11
|
+
* Show read more button
|
|
12
|
+
*/
|
|
7
13
|
this.showReadMore = false;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via inline styles
|
|
16
|
+
*/
|
|
8
17
|
this.clientStyling = '';
|
|
18
|
+
/**
|
|
19
|
+
* Client custom styling via url
|
|
20
|
+
*/
|
|
9
21
|
this.clientStylingUrl = '';
|
|
10
22
|
this.limitStylingAppends = false;
|
|
11
23
|
this.joinButtonLoading = false;
|
|
12
24
|
this.errorJoin = false;
|
|
13
25
|
this.errorJoinConcurrently = false;
|
|
14
|
-
this.setClientStyling = () => {
|
|
15
|
-
let sheet = document.createElement('style');
|
|
16
|
-
sheet.innerHTML = this.clientStyling;
|
|
17
|
-
this.stylingContainer.prepend(sheet);
|
|
18
|
-
};
|
|
19
|
-
this.setClientStylingURL = () => {
|
|
20
|
-
let cssFile = document.createElement('style');
|
|
21
|
-
setTimeout(() => {
|
|
22
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
23
|
-
this.stylingContainer.prepend(cssFile);
|
|
24
|
-
}, 1);
|
|
25
|
-
};
|
|
26
26
|
}
|
|
27
27
|
componentDidRender() {
|
|
28
28
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -33,6 +33,18 @@ export class CasinoTournamentButtons {
|
|
|
33
33
|
this.limitStylingAppends = true;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
setClientStyling() {
|
|
37
|
+
let sheet = document.createElement('style');
|
|
38
|
+
sheet.innerHTML = this.clientStyling;
|
|
39
|
+
this.stylingContainer.prepend(sheet);
|
|
40
|
+
}
|
|
41
|
+
setClientStylingURL() {
|
|
42
|
+
let cssFile = document.createElement('style');
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
cssFile.innerHTML = this.clientStylingUrl;
|
|
45
|
+
this.stylingContainer.prepend(cssFile);
|
|
46
|
+
}, 1);
|
|
47
|
+
}
|
|
36
48
|
loginAction() {
|
|
37
49
|
if (this.loginEvent) {
|
|
38
50
|
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
@@ -179,11 +191,11 @@ export class CasinoTournamentButtons {
|
|
|
179
191
|
"resolved": "string",
|
|
180
192
|
"references": {}
|
|
181
193
|
},
|
|
182
|
-
"required":
|
|
194
|
+
"required": true,
|
|
183
195
|
"optional": false,
|
|
184
196
|
"docs": {
|
|
185
197
|
"tags": [],
|
|
186
|
-
"text": ""
|
|
198
|
+
"text": "Widget Language to show"
|
|
187
199
|
},
|
|
188
200
|
"attribute": "language",
|
|
189
201
|
"reflect": false
|
|
@@ -197,10 +209,10 @@ export class CasinoTournamentButtons {
|
|
|
197
209
|
"references": {}
|
|
198
210
|
},
|
|
199
211
|
"required": false,
|
|
200
|
-
"optional":
|
|
212
|
+
"optional": true,
|
|
201
213
|
"docs": {
|
|
202
214
|
"tags": [],
|
|
203
|
-
"text": ""
|
|
215
|
+
"text": "Tournament ID"
|
|
204
216
|
},
|
|
205
217
|
"attribute": "tournament-id",
|
|
206
218
|
"reflect": false
|
|
@@ -214,10 +226,10 @@ export class CasinoTournamentButtons {
|
|
|
214
226
|
"references": {}
|
|
215
227
|
},
|
|
216
228
|
"required": false,
|
|
217
|
-
"optional":
|
|
229
|
+
"optional": true,
|
|
218
230
|
"docs": {
|
|
219
231
|
"tags": [],
|
|
220
|
-
"text": ""
|
|
232
|
+
"text": "The NWA Session"
|
|
221
233
|
},
|
|
222
234
|
"attribute": "session",
|
|
223
235
|
"reflect": false
|
|
@@ -231,10 +243,10 @@ export class CasinoTournamentButtons {
|
|
|
231
243
|
"references": {}
|
|
232
244
|
},
|
|
233
245
|
"required": false,
|
|
234
|
-
"optional":
|
|
246
|
+
"optional": true,
|
|
235
247
|
"docs": {
|
|
236
248
|
"tags": [],
|
|
237
|
-
"text": ""
|
|
249
|
+
"text": "Login event"
|
|
238
250
|
},
|
|
239
251
|
"attribute": "login-event",
|
|
240
252
|
"reflect": false
|
|
@@ -248,10 +260,10 @@ export class CasinoTournamentButtons {
|
|
|
248
260
|
"references": {}
|
|
249
261
|
},
|
|
250
262
|
"required": false,
|
|
251
|
-
"optional":
|
|
263
|
+
"optional": true,
|
|
252
264
|
"docs": {
|
|
253
265
|
"tags": [],
|
|
254
|
-
"text": ""
|
|
266
|
+
"text": "Login url"
|
|
255
267
|
},
|
|
256
268
|
"attribute": "login-url",
|
|
257
269
|
"reflect": false
|
|
@@ -265,10 +277,10 @@ export class CasinoTournamentButtons {
|
|
|
265
277
|
"references": {}
|
|
266
278
|
},
|
|
267
279
|
"required": false,
|
|
268
|
-
"optional":
|
|
280
|
+
"optional": true,
|
|
269
281
|
"docs": {
|
|
270
282
|
"tags": [],
|
|
271
|
-
"text": ""
|
|
283
|
+
"text": "Register event"
|
|
272
284
|
},
|
|
273
285
|
"attribute": "register-event",
|
|
274
286
|
"reflect": false
|
|
@@ -282,10 +294,10 @@ export class CasinoTournamentButtons {
|
|
|
282
294
|
"references": {}
|
|
283
295
|
},
|
|
284
296
|
"required": false,
|
|
285
|
-
"optional":
|
|
297
|
+
"optional": true,
|
|
286
298
|
"docs": {
|
|
287
299
|
"tags": [],
|
|
288
|
-
"text": ""
|
|
300
|
+
"text": "Register url"
|
|
289
301
|
},
|
|
290
302
|
"attribute": "register-url",
|
|
291
303
|
"reflect": false
|
|
@@ -298,11 +310,11 @@ export class CasinoTournamentButtons {
|
|
|
298
310
|
"resolved": "string",
|
|
299
311
|
"references": {}
|
|
300
312
|
},
|
|
301
|
-
"required":
|
|
313
|
+
"required": true,
|
|
302
314
|
"optional": false,
|
|
303
315
|
"docs": {
|
|
304
316
|
"tags": [],
|
|
305
|
-
"text": ""
|
|
317
|
+
"text": "The NWA endpoint"
|
|
306
318
|
},
|
|
307
319
|
"attribute": "endpoint",
|
|
308
320
|
"reflect": false
|
|
@@ -316,10 +328,10 @@ export class CasinoTournamentButtons {
|
|
|
316
328
|
"references": {}
|
|
317
329
|
},
|
|
318
330
|
"required": false,
|
|
319
|
-
"optional":
|
|
331
|
+
"optional": true,
|
|
320
332
|
"docs": {
|
|
321
333
|
"tags": [],
|
|
322
|
-
"text": ""
|
|
334
|
+
"text": "Player currency"
|
|
323
335
|
},
|
|
324
336
|
"attribute": "currency",
|
|
325
337
|
"reflect": false
|
|
@@ -333,10 +345,10 @@ export class CasinoTournamentButtons {
|
|
|
333
345
|
"references": {}
|
|
334
346
|
},
|
|
335
347
|
"required": false,
|
|
336
|
-
"optional":
|
|
348
|
+
"optional": true,
|
|
337
349
|
"docs": {
|
|
338
350
|
"tags": [],
|
|
339
|
-
"text": ""
|
|
351
|
+
"text": "Bonus Code"
|
|
340
352
|
},
|
|
341
353
|
"attribute": "bonus-code",
|
|
342
354
|
"reflect": false
|
|
@@ -350,10 +362,10 @@ export class CasinoTournamentButtons {
|
|
|
350
362
|
"references": {}
|
|
351
363
|
},
|
|
352
364
|
"required": false,
|
|
353
|
-
"optional":
|
|
365
|
+
"optional": true,
|
|
354
366
|
"docs": {
|
|
355
367
|
"tags": [],
|
|
356
|
-
"text": ""
|
|
368
|
+
"text": "Player enrolled"
|
|
357
369
|
},
|
|
358
370
|
"attribute": "enrolled",
|
|
359
371
|
"reflect": false,
|
|
@@ -368,10 +380,10 @@ export class CasinoTournamentButtons {
|
|
|
368
380
|
"references": {}
|
|
369
381
|
},
|
|
370
382
|
"required": false,
|
|
371
|
-
"optional":
|
|
383
|
+
"optional": true,
|
|
372
384
|
"docs": {
|
|
373
385
|
"tags": [],
|
|
374
|
-
"text": ""
|
|
386
|
+
"text": "Show read more button"
|
|
375
387
|
},
|
|
376
388
|
"attribute": "show-read-more",
|
|
377
389
|
"reflect": false,
|
|
@@ -386,10 +398,10 @@ export class CasinoTournamentButtons {
|
|
|
386
398
|
"references": {}
|
|
387
399
|
},
|
|
388
400
|
"required": false,
|
|
389
|
-
"optional":
|
|
401
|
+
"optional": true,
|
|
390
402
|
"docs": {
|
|
391
403
|
"tags": [],
|
|
392
|
-
"text": ""
|
|
404
|
+
"text": "Client custom styling via inline styles"
|
|
393
405
|
},
|
|
394
406
|
"attribute": "client-styling",
|
|
395
407
|
"reflect": false,
|
|
@@ -404,10 +416,10 @@ export class CasinoTournamentButtons {
|
|
|
404
416
|
"references": {}
|
|
405
417
|
},
|
|
406
418
|
"required": false,
|
|
407
|
-
"optional":
|
|
419
|
+
"optional": true,
|
|
408
420
|
"docs": {
|
|
409
421
|
"tags": [],
|
|
410
|
-
"text": ""
|
|
422
|
+
"text": "Client custom styling via url"
|
|
411
423
|
},
|
|
412
424
|
"attribute": "client-styling-url",
|
|
413
425
|
"reflect": false,
|
|
@@ -335,26 +335,26 @@ const CasinoTournamentButtons$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
335
335
|
super();
|
|
336
336
|
this.__registerHost();
|
|
337
337
|
this.__attachShadow();
|
|
338
|
+
/**
|
|
339
|
+
* Player enrolled
|
|
340
|
+
*/
|
|
338
341
|
this.enrolled = false;
|
|
342
|
+
/**
|
|
343
|
+
* Show read more button
|
|
344
|
+
*/
|
|
339
345
|
this.showReadMore = false;
|
|
346
|
+
/**
|
|
347
|
+
* Client custom styling via inline styles
|
|
348
|
+
*/
|
|
340
349
|
this.clientStyling = '';
|
|
350
|
+
/**
|
|
351
|
+
* Client custom styling via url
|
|
352
|
+
*/
|
|
341
353
|
this.clientStylingUrl = '';
|
|
342
354
|
this.limitStylingAppends = false;
|
|
343
355
|
this.joinButtonLoading = false;
|
|
344
356
|
this.errorJoin = false;
|
|
345
357
|
this.errorJoinConcurrently = false;
|
|
346
|
-
this.setClientStyling = () => {
|
|
347
|
-
let sheet = document.createElement('style');
|
|
348
|
-
sheet.innerHTML = this.clientStyling;
|
|
349
|
-
this.stylingContainer.prepend(sheet);
|
|
350
|
-
};
|
|
351
|
-
this.setClientStylingURL = () => {
|
|
352
|
-
let cssFile = document.createElement('style');
|
|
353
|
-
setTimeout(() => {
|
|
354
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
355
|
-
this.stylingContainer.prepend(cssFile);
|
|
356
|
-
}, 1);
|
|
357
|
-
};
|
|
358
358
|
}
|
|
359
359
|
componentDidRender() {
|
|
360
360
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -365,6 +365,18 @@ const CasinoTournamentButtons$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
|
365
365
|
this.limitStylingAppends = true;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
+
setClientStyling() {
|
|
369
|
+
let sheet = document.createElement('style');
|
|
370
|
+
sheet.innerHTML = this.clientStyling;
|
|
371
|
+
this.stylingContainer.prepend(sheet);
|
|
372
|
+
}
|
|
373
|
+
setClientStylingURL() {
|
|
374
|
+
let cssFile = document.createElement('style');
|
|
375
|
+
setTimeout(() => {
|
|
376
|
+
cssFile.innerHTML = this.clientStylingUrl;
|
|
377
|
+
this.stylingContainer.prepend(cssFile);
|
|
378
|
+
}, 1);
|
|
379
|
+
}
|
|
368
380
|
loginAction() {
|
|
369
381
|
if (this.loginEvent) {
|
|
370
382
|
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
@@ -333,26 +333,26 @@ const casinoTournamentButtonsCss = ":host{display:block}.ButtonGroup{display:fle
|
|
|
333
333
|
const CasinoTournamentButtons = class {
|
|
334
334
|
constructor(hostRef) {
|
|
335
335
|
registerInstance(this, hostRef);
|
|
336
|
+
/**
|
|
337
|
+
* Player enrolled
|
|
338
|
+
*/
|
|
336
339
|
this.enrolled = false;
|
|
340
|
+
/**
|
|
341
|
+
* Show read more button
|
|
342
|
+
*/
|
|
337
343
|
this.showReadMore = false;
|
|
344
|
+
/**
|
|
345
|
+
* Client custom styling via inline styles
|
|
346
|
+
*/
|
|
338
347
|
this.clientStyling = '';
|
|
348
|
+
/**
|
|
349
|
+
* Client custom styling via url
|
|
350
|
+
*/
|
|
339
351
|
this.clientStylingUrl = '';
|
|
340
352
|
this.limitStylingAppends = false;
|
|
341
353
|
this.joinButtonLoading = false;
|
|
342
354
|
this.errorJoin = false;
|
|
343
355
|
this.errorJoinConcurrently = false;
|
|
344
|
-
this.setClientStyling = () => {
|
|
345
|
-
let sheet = document.createElement('style');
|
|
346
|
-
sheet.innerHTML = this.clientStyling;
|
|
347
|
-
this.stylingContainer.prepend(sheet);
|
|
348
|
-
};
|
|
349
|
-
this.setClientStylingURL = () => {
|
|
350
|
-
let cssFile = document.createElement('style');
|
|
351
|
-
setTimeout(() => {
|
|
352
|
-
cssFile.innerHTML = this.clientStylingUrl;
|
|
353
|
-
this.stylingContainer.prepend(cssFile);
|
|
354
|
-
}, 1);
|
|
355
|
-
};
|
|
356
356
|
}
|
|
357
357
|
componentDidRender() {
|
|
358
358
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -363,6 +363,18 @@ const CasinoTournamentButtons = class {
|
|
|
363
363
|
this.limitStylingAppends = true;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
+
setClientStyling() {
|
|
367
|
+
let sheet = document.createElement('style');
|
|
368
|
+
sheet.innerHTML = this.clientStyling;
|
|
369
|
+
this.stylingContainer.prepend(sheet);
|
|
370
|
+
}
|
|
371
|
+
setClientStylingURL() {
|
|
372
|
+
let cssFile = document.createElement('style');
|
|
373
|
+
setTimeout(() => {
|
|
374
|
+
cssFile.innerHTML = this.clientStylingUrl;
|
|
375
|
+
this.stylingContainer.prepend(cssFile);
|
|
376
|
+
}, 1);
|
|
377
|
+
}
|
|
366
378
|
loginAction() {
|
|
367
379
|
if (this.loginEvent) {
|
|
368
380
|
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
@@ -1,30 +1,72 @@
|
|
|
1
1
|
export declare class CasinoTournamentButtons {
|
|
2
|
+
/**
|
|
3
|
+
* Widget Language to show
|
|
4
|
+
*/
|
|
2
5
|
language: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Tournament ID
|
|
8
|
+
*/
|
|
9
|
+
tournamentId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The NWA Session
|
|
12
|
+
*/
|
|
13
|
+
session?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Login event
|
|
16
|
+
*/
|
|
17
|
+
loginEvent?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Login url
|
|
20
|
+
*/
|
|
21
|
+
loginUrl?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Register event
|
|
24
|
+
*/
|
|
25
|
+
registerEvent?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Register url
|
|
28
|
+
*/
|
|
29
|
+
registerUrl?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The NWA endpoint
|
|
32
|
+
*/
|
|
9
33
|
endpoint: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Player currency
|
|
36
|
+
*/
|
|
37
|
+
currency?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Bonus Code
|
|
40
|
+
*/
|
|
41
|
+
bonusCode?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Player enrolled
|
|
44
|
+
*/
|
|
45
|
+
enrolled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Show read more button
|
|
48
|
+
*/
|
|
49
|
+
showReadMore?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Client custom styling via inline styles
|
|
52
|
+
*/
|
|
53
|
+
clientStyling?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Client custom styling via url
|
|
56
|
+
*/
|
|
57
|
+
clientStylingUrl?: string;
|
|
16
58
|
limitStylingAppends: boolean;
|
|
17
59
|
stylingContainer: HTMLElement;
|
|
18
60
|
joinButtonLoading: boolean;
|
|
19
61
|
errorJoin: boolean;
|
|
20
62
|
errorJoinConcurrently: boolean;
|
|
21
63
|
componentDidRender(): void;
|
|
22
|
-
setClientStyling
|
|
23
|
-
setClientStylingURL
|
|
64
|
+
setClientStyling(): void;
|
|
65
|
+
setClientStylingURL(): void;
|
|
24
66
|
loginAction(): void;
|
|
25
67
|
registerAction(): void;
|
|
26
|
-
joinAction(tournamentId:
|
|
27
|
-
detailAction(tournamentId:
|
|
28
|
-
moreAction(tournamentId:
|
|
68
|
+
joinAction(tournamentId: string, bonuscode?: string): Promise<void>;
|
|
69
|
+
detailAction(tournamentId: string): void;
|
|
70
|
+
moreAction(tournamentId: string): void;
|
|
29
71
|
render(): any;
|
|
30
72
|
}
|
|
@@ -7,20 +7,62 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface CasinoTournamentButtons {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
10
|
+
/**
|
|
11
|
+
* Bonus Code
|
|
12
|
+
*/
|
|
13
|
+
"bonusCode"?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via inline styles
|
|
16
|
+
*/
|
|
17
|
+
"clientStyling"?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Client custom styling via url
|
|
20
|
+
*/
|
|
21
|
+
"clientStylingUrl"?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Player currency
|
|
24
|
+
*/
|
|
25
|
+
"currency"?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The NWA endpoint
|
|
28
|
+
*/
|
|
14
29
|
"endpoint": string;
|
|
15
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Player enrolled
|
|
32
|
+
*/
|
|
33
|
+
"enrolled"?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Widget Language to show
|
|
36
|
+
*/
|
|
16
37
|
"language": string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Login event
|
|
40
|
+
*/
|
|
41
|
+
"loginEvent"?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Login url
|
|
44
|
+
*/
|
|
45
|
+
"loginUrl"?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Register event
|
|
48
|
+
*/
|
|
49
|
+
"registerEvent"?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Register url
|
|
52
|
+
*/
|
|
53
|
+
"registerUrl"?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The NWA Session
|
|
56
|
+
*/
|
|
57
|
+
"session"?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Show read more button
|
|
60
|
+
*/
|
|
61
|
+
"showReadMore"?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Tournament ID
|
|
64
|
+
*/
|
|
65
|
+
"tournamentId"?: string;
|
|
24
66
|
}
|
|
25
67
|
}
|
|
26
68
|
declare global {
|
|
@@ -36,19 +78,61 @@ declare global {
|
|
|
36
78
|
}
|
|
37
79
|
declare namespace LocalJSX {
|
|
38
80
|
interface CasinoTournamentButtons {
|
|
81
|
+
/**
|
|
82
|
+
* Bonus Code
|
|
83
|
+
*/
|
|
39
84
|
"bonusCode"?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Client custom styling via inline styles
|
|
87
|
+
*/
|
|
40
88
|
"clientStyling"?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Client custom styling via url
|
|
91
|
+
*/
|
|
41
92
|
"clientStylingUrl"?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Player currency
|
|
95
|
+
*/
|
|
42
96
|
"currency"?: string;
|
|
43
|
-
|
|
97
|
+
/**
|
|
98
|
+
* The NWA endpoint
|
|
99
|
+
*/
|
|
100
|
+
"endpoint": string;
|
|
101
|
+
/**
|
|
102
|
+
* Player enrolled
|
|
103
|
+
*/
|
|
44
104
|
"enrolled"?: boolean;
|
|
45
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Widget Language to show
|
|
107
|
+
*/
|
|
108
|
+
"language": string;
|
|
109
|
+
/**
|
|
110
|
+
* Login event
|
|
111
|
+
*/
|
|
46
112
|
"loginEvent"?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Login url
|
|
115
|
+
*/
|
|
47
116
|
"loginUrl"?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Register event
|
|
119
|
+
*/
|
|
48
120
|
"registerEvent"?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Register url
|
|
123
|
+
*/
|
|
49
124
|
"registerUrl"?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The NWA Session
|
|
127
|
+
*/
|
|
50
128
|
"session"?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Show read more button
|
|
131
|
+
*/
|
|
51
132
|
"showReadMore"?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Tournament ID
|
|
135
|
+
*/
|
|
52
136
|
"tournamentId"?: string;
|
|
53
137
|
}
|
|
54
138
|
interface IntrinsicElements {
|