@everymatrix/casino-tournament-buttons 1.31.2 → 1.32.4
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/LICENSE +21 -0
- package/package.json +3 -2
- package/dist/casino-tournament-buttons/casino-tournament-buttons.esm.js +0 -1
- package/dist/casino-tournament-buttons/index.esm.js +0 -0
- package/dist/casino-tournament-buttons/p-2a13fa86.js +0 -1
- package/dist/casino-tournament-buttons/p-dc9c8c76.entry.js +0 -1
- package/dist/cjs/casino-tournament-buttons.cjs.entry.js +0 -563
- package/dist/cjs/casino-tournament-buttons.cjs.js +0 -19
- package/dist/cjs/index-7d32432f.js +0 -1157
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/collection/collection-manifest.json +0 -12
- package/dist/collection/components/casino-tournament-buttons/casino-tournament-buttons.css +0 -50
- package/dist/collection/components/casino-tournament-buttons/casino-tournament-buttons.js +0 -465
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/locale.utils.js +0 -360
- package/dist/collection/utils/utils.js +0 -13
- package/dist/components/casino-tournament-buttons.d.ts +0 -11
- package/dist/components/casino-tournament-buttons.js +0 -597
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/casino-tournament-buttons.entry.js +0 -559
- package/dist/esm/casino-tournament-buttons.js +0 -17
- package/dist/esm/index-9e95ffbf.js +0 -1131
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -22
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/casino-tournament-buttons/.stencil/packages/casino-tournament-buttons/stencil.config.d.ts +0 -2
- package/dist/types/components/casino-tournament-buttons/casino-tournament-buttons.d.ts +0 -77
- package/dist/types/components.d.ts +0 -157
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/locale.utils.d.ts +0 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournament-buttons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.4",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"es2015": "./dist/esm/index.mjs",
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
],
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
|
-
}
|
|
18
|
+
},
|
|
19
|
+
"gitHead": "69a4e0bb1b0460c07baef352d283492a6e2dc4b0"
|
|
19
20
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as n,b as t}from"./p-2a13fa86.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((n=>t([["p-dc9c8c76",[[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]}]]]],n)));
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={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)},r=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),c=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(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&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(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=h(e,null);return c.u=t,r.length>0&&(c.$=r),c},h=(e,t)=>({t:0,h:e,i:t,m:null,$:null,u:null}),d={},m=(e,t,n,s,r,i)=>{if(n!==s){let c=H(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,l=p(n),o=p(s);t.remove(...l.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!l.includes(e))))}else if(c||"o"!==t[0]||"n"!==t[1]){const l=f(s);if((c||l&&null!==s)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{let l=null==s?"":s;"list"===t?c=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==s||!1===s?!1===s&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||r)&&!l&&e.setAttribute(t,s=!0===s?"":s)}else t="-"===t[2]?t.slice(3):H(l,u)?u.slice(2):u[2]+t.slice(3),n&&o.rel(e,t,n,!1),s&&o.ael(e,t,s,!1)}},y=/\s/,p=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||m(s,l,o[l],void 0,n,t.t);for(l in r)m(s,l,o[l],r[l],n,t.t)},w=(t,n,l)=>{let o,r,i=n.$[l],c=0;if(null!==i.i)o=i.m=s.createTextNode(i.i);else if(o=i.m=s.createElement(i.h),b(null,i,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),i.$)for(c=0;c<i.$.length;++c)r=w(t,i,c),r&&o.appendChild(r);return o},S=(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=w(null,l,o),i&&(s[o].m=i,c.insertBefore(i,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.m.remove()},j=(e,t)=>e.h===t.h,M=(e,t)=>{const n=t.m=e.m,l=e.$,s=t.$,o=t.i;null===o?(b(e,t,!1),null!==l&&null!==s?((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],$=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==$?$=l[--a]:j(c,f)?(M(c,f),c=t[++o],f=l[++r]):j(u,$)?(M(u,$),u=t[--i],$=l[--a]):j(c,$)?(M(c,$),e.insertBefore(c.m,u.m.nextSibling),c=t[++o],$=l[--a]):j(u,f)?(M(u,f),e.insertBefore(u.m,c.m),u=t[--i],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&c.m.parentNode.insertBefore(s,c.m));o>i?S(e,null==l[a+1]?null:l[a+1].m,n,l,r,a):r>a&&g(t,o,i)})(n,l,t,s):null!==s?(null!==e.i&&(n.textContent=""),S(n,null,t,s,0,s.length-1)):null!==l&&g(l,0,l.length-1)):e.i!==o&&(n.data=o)},v=e=>q(e).p,k=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},C=(e,t)=>{if(e.t|=16,!(4&e.t))return k(e,e.g),Y((()=>O(e,t)));e.t|=512},O=(e,t)=>{const n=e.j;let l;return t&&(l=N(n,"componentWillLoad")),R(l,(()=>P(e,n,t)))},P=async(e,t,n)=>{const l=e.p,o=l["s-rc"];n&&(e=>{const t=e.M,n=e.p,l=t.t,o=((e,t)=>{let n=u(t),l=B.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=c.get(e=e.head||e);o||c.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.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"]=o,n.classList.add(o+"-h"))})(e);x(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>E(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},x=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.p,o=n.M,r=n.v||h(null,null),i=(e=>e&&e.h===d)(l)?l:$(null,null,l);t=s.tagName,o.k&&(i.u=i.u||{},o.k.map((([e,t])=>i.u[t]=s[e]))),i.h=null,i.t|=4,n.v=i,i.m=r.m=s.shadowRoot||s,e=s["s-sc"],M(r,i)})(n,l)}catch(e){V(e,n.p)}return null},E=e=>{const t=e.p,n=e.g;N(e.j,"componentDidRender"),64&e.t||(e.t|=64,T(t),e.C(t),n||L()),e.S&&(e.S(),e.S=void 0),512&e.t&&X((()=>C(e,!1))),e.t&=-517},L=()=>{T(s.documentElement),X((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"casino-tournament-buttons"}});return e.dispatchEvent(t),t})(l)))},N=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){V(e)}},R=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),W=(e,t,n)=>{if(t.O){const l=Object.entries(t.O),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>q(this).P.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=q(e),o=s.P.get(t),r=s.t,i=s.j;n=((e,t)=>null==e||f(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.O[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(t,n),i&&2==(18&r)&&C(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){o.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.k.push([e,s]),s}))}}return e},A=(e,t={})=>{const n=[],r=t.exclude||[],c=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),h=[];let d,m=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],o:t[1],O:t[2],L:t[3]};l.O=t[2],l.k=[];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),F(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),m?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=q(e),n=t.M,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(t,t.g=n);break}}n.O&&Object.entries(n.O).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=z(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(W(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){V(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!B.has(t)){const l=()=>{};((e,t,n)=>{let l=B.get(e);i&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,B.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.g,r=()=>C(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return q(this).N}};l.R=e[0],r.includes(s)||c.get(s)||(n.push(s),c.define(s,W(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),m=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>d=setTimeout(L,30)))},U=new WeakMap,q=e=>U.get(e),D=(e,t)=>U.set(t.j=e,t),F=(e,t)=>{const n={t:0,p:e,M:t,P:new Map};return n.N=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],U.set(e,n)},H=(e,t)=>t in e,V=(e,t)=>(0,console.error)(e,t),_=new Map,z=e=>{const t=e.o.replace(/-/g,"_"),n=e.R,l=_.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(_.set(n,e),e[t])),V)},B=new Map,G=[],I=[],J=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?X(Q):o.raf(Q))},K=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){V(e)}e.length=0},Q=()=>{K(G),K(I),(n=G.length>0)&&o.raf(Q)},X=e=>r().then(e),Y=J(I,!0);export{A as b,v as g,$ as h,r as p,D as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,g as i}from"./p-2a13fa86.js";const 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."},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"}},n=(e,t)=>{var i,n;return(null===(i=r[t])||void 0===i?void 0:i[e])||(null===(n=r.en)||void 0===n?void 0:n[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}componentWillLoad(){var e;this.translationData&&(e=JSON.parse(this.translationData),Object.keys(e).forEach((t=>{for(let i in e[t])r[t][i]=e[t][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const e=new CSSStyleSheet;e.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}setClientStylingURL(){let e=new URL(this.clientStylingUrl);fetch(e.href).then((e=>e.text())).then((e=>{const t=new CSSStyleSheet;t.replace(e),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}))}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}/v1/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}/v1/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}/v1/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",{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)},n("readmore",this.language))),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)},n("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&t("span",{class:"ErrorText",part:"ErrorText"},n("joinerror",this.language)))}get host(){return i(this)}};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,563 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7d32432f.js');
|
|
6
|
-
|
|
7
|
-
const getDevice = () => {
|
|
8
|
-
let userAgent = window.navigator.userAgent;
|
|
9
|
-
if (userAgent.toLowerCase().match(/android/i)) {
|
|
10
|
-
return 'Android';
|
|
11
|
-
}
|
|
12
|
-
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
13
|
-
return 'iPhone';
|
|
14
|
-
}
|
|
15
|
-
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
16
|
-
return 'iPad';
|
|
17
|
-
}
|
|
18
|
-
return 'PC';
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
22
|
-
const TRANSLATIONS = {
|
|
23
|
-
en: {
|
|
24
|
-
joined: 'Joined',
|
|
25
|
-
join: 'Join',
|
|
26
|
-
enrolled: 'Enrolled',
|
|
27
|
-
scoreCriteria: 'Score Criteria',
|
|
28
|
-
minbet: 'min bet count',
|
|
29
|
-
seegames: 'You can see the games',
|
|
30
|
-
here: 'here',
|
|
31
|
-
scheduled: 'Scheduled',
|
|
32
|
-
ongoing: 'Ongoing',
|
|
33
|
-
finished: 'Finished',
|
|
34
|
-
startingAt: 'Starting at:',
|
|
35
|
-
startedAt: 'Started at:',
|
|
36
|
-
startingAtWithTime: `Starts `,
|
|
37
|
-
startedAtWithTime: `Started `,
|
|
38
|
-
mostRounds: 'Most Rounds',
|
|
39
|
-
betCount: 'Number of Bets',
|
|
40
|
-
maxWinStakeRatio: 'Max Win per Stake',
|
|
41
|
-
winStakeRatio: 'Total Win per Stake',
|
|
42
|
-
January: 'January',
|
|
43
|
-
February: 'February',
|
|
44
|
-
March: 'March',
|
|
45
|
-
April: 'April',
|
|
46
|
-
May: 'May',
|
|
47
|
-
June: 'June',
|
|
48
|
-
July: 'July',
|
|
49
|
-
August: 'August',
|
|
50
|
-
September: 'September',
|
|
51
|
-
October: 'October',
|
|
52
|
-
November: 'November',
|
|
53
|
-
December: 'December',
|
|
54
|
-
login: 'Log in',
|
|
55
|
-
register: 'Register',
|
|
56
|
-
details: 'Details',
|
|
57
|
-
joinerror: 'An error occurred while registering in the tournament, please try again.'
|
|
58
|
-
},
|
|
59
|
-
'zh-hk': {
|
|
60
|
-
enrolled: '已註冊',
|
|
61
|
-
scoreCriteria: '評分標準',
|
|
62
|
-
minbet: '最小投注數:',
|
|
63
|
-
seegames: '你可以看比賽',
|
|
64
|
-
here: '這裡',
|
|
65
|
-
scheduled: '預定的',
|
|
66
|
-
ongoing: '進行中',
|
|
67
|
-
finished: '完成的',
|
|
68
|
-
startingAt: '開始於',
|
|
69
|
-
startedAt: '大多數回合',
|
|
70
|
-
mostRounds: '投注數',
|
|
71
|
-
betCount: '投注计数',
|
|
72
|
-
maxWinStakeRatio: '最大勝率',
|
|
73
|
-
winStakeRatio: '勝率',
|
|
74
|
-
January: '一月',
|
|
75
|
-
February: '二月',
|
|
76
|
-
March: '行进',
|
|
77
|
-
April: '四月',
|
|
78
|
-
May: '可能',
|
|
79
|
-
June: '六月',
|
|
80
|
-
July: '七月',
|
|
81
|
-
August: '八月',
|
|
82
|
-
September: '九月',
|
|
83
|
-
October: '十月',
|
|
84
|
-
November: '十一月',
|
|
85
|
-
December: '十二月',
|
|
86
|
-
login: '登錄',
|
|
87
|
-
register: '登記',
|
|
88
|
-
details: '細節',
|
|
89
|
-
join: '加入',
|
|
90
|
-
joinerror: '加入錦標賽時出錯,請重試'
|
|
91
|
-
},
|
|
92
|
-
fr: {
|
|
93
|
-
enrolled: 'Inscrits',
|
|
94
|
-
scoreCriteria: 'Critères de notation',
|
|
95
|
-
minbet: 'nombre de paris minimum',
|
|
96
|
-
seegames: 'Vous pouvez voir les jeux',
|
|
97
|
-
here: 'ici',
|
|
98
|
-
scheduled: 'Programmé',
|
|
99
|
-
ongoing: 'En cours',
|
|
100
|
-
finished: 'Fini',
|
|
101
|
-
startingAt: 'À partir de:',
|
|
102
|
-
startedAt: 'Commencé à:',
|
|
103
|
-
mostRounds: 'Le plus grand nombre de tours',
|
|
104
|
-
betCount: 'Nombre de paris',
|
|
105
|
-
maxWinStakeRatio: 'Indice maximum du gain d\'une mise',
|
|
106
|
-
winStakeRatio: 'Indice du gain d\'une mise',
|
|
107
|
-
January: 'January',
|
|
108
|
-
February: 'February',
|
|
109
|
-
March: 'March',
|
|
110
|
-
April: 'April',
|
|
111
|
-
May: 'May',
|
|
112
|
-
June: 'June',
|
|
113
|
-
July: 'July',
|
|
114
|
-
August: 'August',
|
|
115
|
-
September: 'September',
|
|
116
|
-
October: 'October',
|
|
117
|
-
November: 'November',
|
|
118
|
-
December: 'December',
|
|
119
|
-
login: 'Connexion',
|
|
120
|
-
register: 'Enregistre',
|
|
121
|
-
details: 'Détails',
|
|
122
|
-
join: 'Rejoignez',
|
|
123
|
-
joinerror: 'Une erreur s\'est produite lors de l\'inscription au tournoi - '
|
|
124
|
-
},
|
|
125
|
-
ro: {
|
|
126
|
-
enrolled: 'Înscris',
|
|
127
|
-
scoreCriteria: 'Criterii de punctaj',
|
|
128
|
-
minbet: 'număr minim de pariuri',
|
|
129
|
-
seegames: 'Vezi jocurile',
|
|
130
|
-
here: 'aici',
|
|
131
|
-
scheduled: 'Programat',
|
|
132
|
-
ongoing: 'În desfășurare',
|
|
133
|
-
finished: 'Finalizat',
|
|
134
|
-
startingAt: 'Începând de la',
|
|
135
|
-
startedAt: 'A inceput la:',
|
|
136
|
-
startingAtWithTime: 'Începând de',
|
|
137
|
-
startedAtWithTime: 'A inceput:',
|
|
138
|
-
mostRounds: 'Cele mai multe runde',
|
|
139
|
-
betCount: 'Număr de pariuri',
|
|
140
|
-
maxWinStakeRatio: 'Pondere maximă a mizei din câștig',
|
|
141
|
-
winStakeRatio: 'Câștig Total per Miză',
|
|
142
|
-
January: 'Ianuarie',
|
|
143
|
-
February: 'Februarie',
|
|
144
|
-
March: 'Martie',
|
|
145
|
-
April: 'Aprilie',
|
|
146
|
-
May: 'Mai',
|
|
147
|
-
June: 'Iunie',
|
|
148
|
-
July: 'Iulie',
|
|
149
|
-
August: 'August',
|
|
150
|
-
September: 'Septembrie',
|
|
151
|
-
October: 'Octombrie',
|
|
152
|
-
November: 'Noiembrie',
|
|
153
|
-
December: 'Decembrie',
|
|
154
|
-
login: 'Autentificare',
|
|
155
|
-
register: 'Înregistrare',
|
|
156
|
-
details: 'Detalii',
|
|
157
|
-
join: 'Participă',
|
|
158
|
-
joinerror: 'A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.'
|
|
159
|
-
},
|
|
160
|
-
tr: {
|
|
161
|
-
enrolled: 'Katıldın',
|
|
162
|
-
scoreCriteria: 'Skor kriteri',
|
|
163
|
-
minbet: 'en düşük bahis sayısı',
|
|
164
|
-
seegames: 'Turnuvadaki oyunları görmek için',
|
|
165
|
-
here: 'tıklayın',
|
|
166
|
-
scheduled: 'Planlanmış',
|
|
167
|
-
ongoing: 'Devam Eden',
|
|
168
|
-
finished: 'Sona Ermiş',
|
|
169
|
-
startingAt: 'Başlangıç saati:',
|
|
170
|
-
startedAt: 'Başlangıç saati:',
|
|
171
|
-
mostRounds: 'ÇoğuRounds',
|
|
172
|
-
betCount: 'Oynanan Tur Sayısı',
|
|
173
|
-
maxWinStakeRatio: 'Maksimum Kazanç / Bahis Oranı',
|
|
174
|
-
winStakeRatio: 'Kazanç / Bahis Oranı',
|
|
175
|
-
January: 'Ocak',
|
|
176
|
-
February: 'Şubat',
|
|
177
|
-
March: 'Mart',
|
|
178
|
-
April: 'Nisan',
|
|
179
|
-
May: 'Mayıs',
|
|
180
|
-
June: 'Haziran',
|
|
181
|
-
July: 'Temmuz',
|
|
182
|
-
August: 'Ağustos',
|
|
183
|
-
September: 'Eylül',
|
|
184
|
-
October: 'Ekim',
|
|
185
|
-
November: 'Kasım',
|
|
186
|
-
December: 'Aralık',
|
|
187
|
-
login: 'Giriş',
|
|
188
|
-
register: 'Kayıt Ol',
|
|
189
|
-
details: 'Detaylar',
|
|
190
|
-
join: 'Katıl',
|
|
191
|
-
joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
|
|
192
|
-
},
|
|
193
|
-
el: {
|
|
194
|
-
enrolled: 'Εγγεγραμμένος',
|
|
195
|
-
scoreCriteria: 'Κριτήρια Σκορ',
|
|
196
|
-
minbet: 'Ελάχιστος αριθμός πονταρισμάτων',
|
|
197
|
-
seegames: 'Μπορείς να δεις τα παιχνίδια',
|
|
198
|
-
here: 'εδώ',
|
|
199
|
-
all: 'Όλα',
|
|
200
|
-
scheduled: 'Προγραμματισμένα',
|
|
201
|
-
ongoing: 'Τρέχοντα',
|
|
202
|
-
finished: 'Ολοκληρωμένα',
|
|
203
|
-
startingAt: 'Αρχίζει στις:',
|
|
204
|
-
startedAt: 'Άρχισε στις:',
|
|
205
|
-
startingAtWithTime: `Αρχίζει στις `,
|
|
206
|
-
startedAtWithTime: `Άρχισε στις `,
|
|
207
|
-
mostRounds: 'Οι περισσότεροι γύροι',
|
|
208
|
-
betCount: 'Οι περισσότεροι γύροι',
|
|
209
|
-
maxWinStakeRatio: 'Μεγαλύτερο Κέρδος άνα Ποντάρισμα',
|
|
210
|
-
winStakeRatio: 'Συνολική Αναλογία Κερδών άνα Ποντάρισμα',
|
|
211
|
-
January: 'Ιανουαρίου',
|
|
212
|
-
February: 'Φεβρουαρίου',
|
|
213
|
-
March: 'Μαρτίου',
|
|
214
|
-
April: 'Απριλίου',
|
|
215
|
-
May: 'Μαΐου',
|
|
216
|
-
June: 'Ιουνίου',
|
|
217
|
-
July: 'Ιουλίου',
|
|
218
|
-
August: 'Αυγούστου',
|
|
219
|
-
September: 'Σεπτεμβρίου',
|
|
220
|
-
October: 'Οκτωβρίου',
|
|
221
|
-
November: 'Νοεμβρίου',
|
|
222
|
-
December: 'Δεκεμβρίου',
|
|
223
|
-
login: 'Είσοδος',
|
|
224
|
-
register: 'Εγγραφή',
|
|
225
|
-
details: 'Λεπτομέρειες',
|
|
226
|
-
join: 'Συμμετοχή',
|
|
227
|
-
joinerror: 'Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.'
|
|
228
|
-
},
|
|
229
|
-
es: {
|
|
230
|
-
enrolled: 'Inscrito',
|
|
231
|
-
scoreCriteria: 'Criterios de puntuación',
|
|
232
|
-
minbet: 'la apuesta mínima cuenta',
|
|
233
|
-
seegames: 'Puedes ver los juegos',
|
|
234
|
-
here: 'aquí',
|
|
235
|
-
scheduled: 'Programado',
|
|
236
|
-
ongoing: 'En marcha',
|
|
237
|
-
finished: 'Terminado',
|
|
238
|
-
startingAt: 'Desde',
|
|
239
|
-
startedAt: 'Empezó el:',
|
|
240
|
-
mostRounds: 'LaMayoríaDeLasRondas',
|
|
241
|
-
betCount: 'Recuento De Apuestas',
|
|
242
|
-
maxWinStakeRatio: 'Ratio De Ganancia Máxima',
|
|
243
|
-
winStakeRatio: 'Ratio De Ganancia',
|
|
244
|
-
January: 'de enero',
|
|
245
|
-
February: 'de febrero',
|
|
246
|
-
March: 'de marzo',
|
|
247
|
-
April: 'de abril',
|
|
248
|
-
May: 'de mayo',
|
|
249
|
-
June: 'de junio',
|
|
250
|
-
July: 'de julio',
|
|
251
|
-
August: 'de agosto',
|
|
252
|
-
September: 'de septiembre',
|
|
253
|
-
October: 'de octubre',
|
|
254
|
-
November: 'de noviembre',
|
|
255
|
-
December: 'de diciembre',
|
|
256
|
-
login: 'Iniciar sesión',
|
|
257
|
-
register: 'Regístrate',
|
|
258
|
-
details: 'Detalles',
|
|
259
|
-
join: 'Unirse',
|
|
260
|
-
joinerror: 'Ha ocurrido un error mientras se registra en el Torneo',
|
|
261
|
-
},
|
|
262
|
-
pt: {
|
|
263
|
-
enrolled: 'Inscrito',
|
|
264
|
-
scoreCriteria: 'Critérios de pontuação',
|
|
265
|
-
minbet: 'Contagens de aposta mínima',
|
|
266
|
-
seegames: 'Você pode ver os jogos',
|
|
267
|
-
here: 'Aqui',
|
|
268
|
-
scheduled: 'Agendado',
|
|
269
|
-
ongoing: 'Em progresso',
|
|
270
|
-
finished: 'Finalizado',
|
|
271
|
-
startingAt: 'Começando às:',
|
|
272
|
-
startedAt: 'Começou às:',
|
|
273
|
-
mostRounds: 'Mais rodadas',
|
|
274
|
-
betCount: 'Contagem de Apostas',
|
|
275
|
-
maxWinStakeRatio: 'Rácio máximo de vitórias',
|
|
276
|
-
winStakeRatio: 'Rácio de Vitórias',
|
|
277
|
-
January: 'January',
|
|
278
|
-
February: 'February',
|
|
279
|
-
March: 'March',
|
|
280
|
-
April: 'April',
|
|
281
|
-
May: 'May',
|
|
282
|
-
June: 'June',
|
|
283
|
-
July: 'July',
|
|
284
|
-
August: 'August',
|
|
285
|
-
September: 'September',
|
|
286
|
-
October: 'October',
|
|
287
|
-
November: 'November',
|
|
288
|
-
December: 'December',
|
|
289
|
-
login: 'Entrar',
|
|
290
|
-
register: 'Registro',
|
|
291
|
-
details: 'Detalhes',
|
|
292
|
-
join: 'Junte-se',
|
|
293
|
-
joinerror: 'Ocorreu um erro ao entrar no torneio -'
|
|
294
|
-
},
|
|
295
|
-
hu: {
|
|
296
|
-
enrolled: 'Feliratkozott',
|
|
297
|
-
scoreCriteria: 'Pontozási kritériumok',
|
|
298
|
-
minbet: 'Minimális tét',
|
|
299
|
-
seegames: 'Játékok megnézése',
|
|
300
|
-
here: 'itt',
|
|
301
|
-
scheduled: 'Ütemezés',
|
|
302
|
-
ongoing: 'Folyamatban lévő',
|
|
303
|
-
finished: 'Befejezett',
|
|
304
|
-
startingAt: 'Kezdődik',
|
|
305
|
-
startedAt: 'Started at:',
|
|
306
|
-
mostRounds: 'Legtöbb kör',
|
|
307
|
-
betCount: 'Számított tét',
|
|
308
|
-
maxWinStakeRatio: 'Maximális nyeremény tétenként',
|
|
309
|
-
winStakeRatio: 'Összes nyeremény tétenként',
|
|
310
|
-
January: 'January',
|
|
311
|
-
February: 'February',
|
|
312
|
-
March: 'March',
|
|
313
|
-
April: 'April',
|
|
314
|
-
May: 'May',
|
|
315
|
-
June: 'June',
|
|
316
|
-
July: 'July',
|
|
317
|
-
August: 'August',
|
|
318
|
-
September: 'September',
|
|
319
|
-
October: 'October',
|
|
320
|
-
November: 'November',
|
|
321
|
-
December: 'December',
|
|
322
|
-
login: 'Bejelentkezés',
|
|
323
|
-
register: 'Regisztráció',
|
|
324
|
-
details: 'Adatok',
|
|
325
|
-
join: 'Csatlakozás',
|
|
326
|
-
joinerror: 'Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.',
|
|
327
|
-
},
|
|
328
|
-
hr: {
|
|
329
|
-
joined: 'Pridružen',
|
|
330
|
-
enrolled: 'Upisan',
|
|
331
|
-
scoreCriteria: 'Kriteriji bodovanja',
|
|
332
|
-
minbet: 'minimalni broj beta',
|
|
333
|
-
seegames: 'Možete vidjeti igre',
|
|
334
|
-
here: 'Ovdje',
|
|
335
|
-
scheduled: 'Zakazano',
|
|
336
|
-
ongoing: 'U tijeku',
|
|
337
|
-
finished: 'Gotovo',
|
|
338
|
-
startingAt: 'S početkom u',
|
|
339
|
-
startedAt: 'Započelo u',
|
|
340
|
-
startingAtWithTime: `Počinje `,
|
|
341
|
-
startedAtWithTime: `Započelo `,
|
|
342
|
-
mostRounds: 'Najviše rundi',
|
|
343
|
-
betCount: 'Broj betova',
|
|
344
|
-
maxWinStakeRatio: 'Maksimalni dobitak po ulogu',
|
|
345
|
-
winStakeRatio: 'Ukupni dobitak po ulogu',
|
|
346
|
-
January: 'Siječanj',
|
|
347
|
-
February: 'Veljača',
|
|
348
|
-
March: 'Ožujak',
|
|
349
|
-
April: 'Travanj',
|
|
350
|
-
May: 'Svibanj',
|
|
351
|
-
June: 'Lipanj',
|
|
352
|
-
July: 'Srpanj',
|
|
353
|
-
August: 'Kolovoz',
|
|
354
|
-
September: 'Rujan',
|
|
355
|
-
October: 'Listopad',
|
|
356
|
-
November: 'Studeni',
|
|
357
|
-
December: 'Prosinac',
|
|
358
|
-
login: 'Prijaviti se',
|
|
359
|
-
register: 'Registracija',
|
|
360
|
-
details: 'Detalji',
|
|
361
|
-
join: 'join',
|
|
362
|
-
joinerror: 'Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.',
|
|
363
|
-
left: 'lijevo',
|
|
364
|
-
minutes: 'minute',
|
|
365
|
-
hours: 'sati',
|
|
366
|
-
days: 'dani',
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
const translate = (key, customLang) => {
|
|
370
|
-
var _a, _b;
|
|
371
|
-
const lang = customLang;
|
|
372
|
-
return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
|
|
373
|
-
};
|
|
374
|
-
const getTranslations = (data) => {
|
|
375
|
-
Object.keys(data).forEach((item) => {
|
|
376
|
-
for (let key in data[item]) {
|
|
377
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
const casinoTournamentButtonsCss = ":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}";
|
|
383
|
-
|
|
384
|
-
const CasinoTournamentButtons = class {
|
|
385
|
-
constructor(hostRef) {
|
|
386
|
-
index.registerInstance(this, hostRef);
|
|
387
|
-
/**
|
|
388
|
-
* Player enrolled
|
|
389
|
-
*/
|
|
390
|
-
this.enrolled = false;
|
|
391
|
-
/**
|
|
392
|
-
* Show read more button
|
|
393
|
-
*/
|
|
394
|
-
this.showReadMore = false;
|
|
395
|
-
/**
|
|
396
|
-
* Client custom styling via inline styles
|
|
397
|
-
*/
|
|
398
|
-
this.clientStyling = '';
|
|
399
|
-
/**
|
|
400
|
-
* Client custom styling via url
|
|
401
|
-
*/
|
|
402
|
-
this.clientStylingUrl = '';
|
|
403
|
-
this.limitStylingAppends = false;
|
|
404
|
-
this.joinButtonLoading = false;
|
|
405
|
-
this.errorJoin = false;
|
|
406
|
-
this.errorJoinConcurrently = false;
|
|
407
|
-
}
|
|
408
|
-
componentWillLoad() {
|
|
409
|
-
if (this.translationData) {
|
|
410
|
-
getTranslations(JSON.parse(this.translationData));
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
componentDidRender() {
|
|
414
|
-
if (!this.limitStylingAppends && this.host) {
|
|
415
|
-
if (this.clientStyling)
|
|
416
|
-
this.setClientStyling();
|
|
417
|
-
if (this.clientStylingUrl)
|
|
418
|
-
this.setClientStylingURL();
|
|
419
|
-
this.limitStylingAppends = true;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
setClientStyling() {
|
|
423
|
-
const sheet = new CSSStyleSheet();
|
|
424
|
-
// @ts-ignore
|
|
425
|
-
sheet.replace(this.clientStyling);
|
|
426
|
-
// @ts-ignore
|
|
427
|
-
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
428
|
-
}
|
|
429
|
-
setClientStylingURL() {
|
|
430
|
-
let url = new URL(this.clientStylingUrl);
|
|
431
|
-
fetch(url.href)
|
|
432
|
-
.then((res) => res.text())
|
|
433
|
-
.then((data) => {
|
|
434
|
-
const sheet = new CSSStyleSheet();
|
|
435
|
-
// @ts-ignore
|
|
436
|
-
sheet.replace(data);
|
|
437
|
-
// @ts-ignore
|
|
438
|
-
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
loginAction() {
|
|
442
|
-
if (this.loginEvent) {
|
|
443
|
-
window.postMessage({ type: this.loginEvent, transition: 'Login' }, window.location.href);
|
|
444
|
-
// @ts-ignore Analytics event
|
|
445
|
-
if (typeof gtag == 'function') {
|
|
446
|
-
// @ts-ignore
|
|
447
|
-
gtag('event', 'OpenLoginModal', {
|
|
448
|
-
'context': 'TournamentsThumbnailController'
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
if (this.loginUrl) {
|
|
453
|
-
location.href = this.loginUrl;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
registerAction() {
|
|
457
|
-
if (this.registerEvent) {
|
|
458
|
-
window.postMessage({ type: this.registerEvent, transition: 'Register' }, window.location.href);
|
|
459
|
-
//@ts-ignoreAnalytics event
|
|
460
|
-
if (typeof gtag == 'function') {
|
|
461
|
-
//@ts-ignore
|
|
462
|
-
gtag('event', 'OpenRegisterModal', {
|
|
463
|
-
'context': 'TournamentsThumbnailController'
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
if (this.registerUrl) {
|
|
468
|
-
location.href = this.registerUrl;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
async joinAction(tournamentId, bonuscode) {
|
|
472
|
-
var _a;
|
|
473
|
-
this.errorJoin = false;
|
|
474
|
-
this.errorJoinConcurrently = false;
|
|
475
|
-
window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
|
|
476
|
-
this.joinButtonLoading = true;
|
|
477
|
-
let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
|
|
478
|
-
let reqHeaders = new Headers();
|
|
479
|
-
let body = {};
|
|
480
|
-
joinUrl.searchParams.append('language', this.language);
|
|
481
|
-
joinUrl.searchParams.append('platform', getDevice());
|
|
482
|
-
reqHeaders.append('Content-Type', 'application/json');
|
|
483
|
-
reqHeaders.append("X-SessionID", this.session);
|
|
484
|
-
if (bonuscode) {
|
|
485
|
-
body = {
|
|
486
|
-
language: this.language,
|
|
487
|
-
bonusCode: bonuscode,
|
|
488
|
-
currency: this.currency
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
let requestOptions = {
|
|
492
|
-
method: 'PUT',
|
|
493
|
-
headers: reqHeaders,
|
|
494
|
-
body: JSON.stringify(body),
|
|
495
|
-
};
|
|
496
|
-
const handlerOnSuccess = () => {
|
|
497
|
-
this.joinButtonLoading = false;
|
|
498
|
-
this.enrolled = true;
|
|
499
|
-
window.postMessage({ type: 'TournamentUserEnrolled', userenrolled: this.enrolled }, window.location.href);
|
|
500
|
-
};
|
|
501
|
-
const handlerOnFail = () => {
|
|
502
|
-
this.joinButtonLoading = false;
|
|
503
|
-
this.errorJoin = true;
|
|
504
|
-
};
|
|
505
|
-
const fetcher = async () => {
|
|
506
|
-
let result;
|
|
507
|
-
try {
|
|
508
|
-
result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
|
|
509
|
-
result = await result.json();
|
|
510
|
-
}
|
|
511
|
-
catch (e) {
|
|
512
|
-
handlerOnFail();
|
|
513
|
-
}
|
|
514
|
-
return result;
|
|
515
|
-
};
|
|
516
|
-
const data = await fetcher();
|
|
517
|
-
if (!data)
|
|
518
|
-
return;
|
|
519
|
-
if (data.success == true) {
|
|
520
|
-
handlerOnSuccess();
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
if (data.errorMessage.match("VersionMismatchException")) {
|
|
524
|
-
let resultDoubleCheck;
|
|
525
|
-
resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
|
|
526
|
-
headers: {
|
|
527
|
-
'X-SessionID': this.session
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
resultDoubleCheck = await resultDoubleCheck.json();
|
|
531
|
-
if ((_a = resultDoubleCheck === null || resultDoubleCheck === void 0 ? void 0 : resultDoubleCheck.item) === null || _a === void 0 ? void 0 : _a.playerEnrolled) {
|
|
532
|
-
handlerOnSuccess();
|
|
533
|
-
}
|
|
534
|
-
else {
|
|
535
|
-
handlerOnFail();
|
|
536
|
-
this.errorJoinConcurrently = true;
|
|
537
|
-
this.errorJoin = false;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
handlerOnFail();
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
detailAction(tournamentId) {
|
|
546
|
-
window.postMessage({ type: 'TournamentDetailsClicked', tournamentId, showLeaderboard: true }, window.location.href);
|
|
547
|
-
}
|
|
548
|
-
moreAction(tournamentId) {
|
|
549
|
-
window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
|
|
550
|
-
}
|
|
551
|
-
render() {
|
|
552
|
-
return index.h("div", { class: "TournamentButtons" }, !this.session &&
|
|
553
|
-
index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), index.h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
|
|
554
|
-
index.h("div", null, !this.enrolled &&
|
|
555
|
-
index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && index.h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language))), this.enrolled &&
|
|
556
|
-
index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && index.h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, translate('readmore', this.language)))), (this.errorJoin || this.errorJoinConcurrently) &&
|
|
557
|
-
index.h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
|
|
558
|
-
}
|
|
559
|
-
get host() { return index.getElement(this); }
|
|
560
|
-
};
|
|
561
|
-
CasinoTournamentButtons.style = casinoTournamentButtonsCss;
|
|
562
|
-
|
|
563
|
-
exports.casino_tournament_buttons = CasinoTournamentButtons;
|