@everymatrix/casino-tournament-prizes 1.44.0 → 1.45.2
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-prizes/casino-tournament-prizes.esm.js +1 -1
- package/dist/casino-tournament-prizes/p-52494b9c.js +2 -0
- package/dist/casino-tournament-prizes/p-9274e610.entry.js +1 -0
- package/dist/casino-tournament-prizes/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-tournament-prizes.cjs.entry.js +159 -153
- package/dist/cjs/casino-tournament-prizes.cjs.js +16 -10
- package/dist/cjs/index-c53c7832.js +1234 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +295 -309
- package/dist/collection/components/casino-tournament-prizes/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +53 -53
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-tournament-prizes.entry.js +159 -153
- package/dist/esm/casino-tournament-prizes.js +13 -10
- package/dist/esm/index-7e63d638.js +1207 -0
- package/dist/esm/loader.js +6 -12
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-tournament-prizes/casino-tournament-prizes.d.ts +22 -22
- package/dist/types/components/casino-tournament-prizes/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/casino-tournament-prizes/p-0c9dcd23.entry.js +0 -1
- package/dist/casino-tournament-prizes/p-44cdb103.js +0 -1
- package/dist/cjs/index-edbd2afe.js +0 -1195
- package/dist/components/casino-tournament-prizes.d.ts +0 -11
- package/dist/components/casino-tournament-prizes.js +0 -205
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-fd6b56d4.js +0 -1169
- 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/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-prizes/.stencil/packages/casino-tournament-prizes/stencil.config.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./p-
|
|
1
|
+
import{p as e,b as n}from"./p-52494b9c.js";export{s as setNonce}from"./p-52494b9c.js";import{g as t}from"./p-e1255160.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((async e=>(await t(),n([["p-9274e610",[[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]]]]],e))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,d=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?$(v):a.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{w(d),w(m),(p=d.length>0)&&a.raf(v)},$=e=>f().then(e),b=y(m,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>C,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var M,C=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?A(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},T=e=>n(e).$hostElement$,D=new WeakMap,H=e=>"sc-"+e.$,L=(e,t,n,o,l,s)=>{if(n!==o){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=U(n),s=U(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else{const i=S(o);if((r||i&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||l)&&!i&&e.setAttribute(t,o=!0===o?"":o)}}},N=/\s/,U=e=>e?e.split(N):[],W=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||g,s=t.u||g;for(const e of F(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of F(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else{if(q||(q="svg"===o.m),l=o.v=u.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),q&&"foreignObject"===o.m&&(q=!1),W(null,o,q),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=z(e,o,r),s&&l.appendChild(s);"svg"===o.m?q=!1:"foreignObject"===l.tagName&&(q=!0)}return l["s-hn"]=M,l},G=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=z(null,n,l),r&&(o[l].v=r,I(i,r,t)))},V=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),B=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,r=t.m,i=t.i;null===i?(W(e,t,q="svg"===r||"foreignObject"!==r&&q),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=o.length-1,m=o[0],y=o[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(_(h,m,l))B(h,m,l),h=t[++i],m=o[++c];else if(_(p,y,l))B(p,y,l),p=t[--f],y=o[--d];else if(_(h,y,l))B(h,y,l),I(e,h.v,p.v.nextSibling),h=t[++i],y=o[--d];else if(_(p,m,l))B(p,m,l),I(e,p.v,h.v),p=t[--f],m=o[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(B(r,m,l),t[u]=void 0,s=r.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&I(h.v.parentNode,s,h.v)}i>f?G(e,null==o[d+1]?null:o[d+1].v,n,o,c,d):c>d&&V(t,i,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),G(o,null,t,s,0,s.length-1)):!n&&null!==l&&V(l,0,l.length-1),q&&"svg"===r&&(q=!1)):e.i!==i&&(o.data=i)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.o|=16,!(4&e.o))return J(e,e.j),b((()=>Q(e,t)));e.o|=512},Q=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.O&&(e.O.map((([e,t])=>oe(n,e,t))),e.O=void 0),o=oe(n,"componentWillLoad")),X(o,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=H(t),l=r.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,r=D.get(e=e.head||e);if(r||D.set(e,r=new Set),!r.has(o)){{s=u.createElement("style"),s.innerHTML=l;const o=null!=(n=a.M)?n:j(u);null!=o&&s.setAttribute("nonce",o),(!(1&t.o)||1&t.o&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.o&&(s.innerHTML+=i),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ee(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ee=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||A(null,null),r=(e=>e&&e.m===R)(t)?t:P(null,null,t);if(M=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.C=r,r.v=s.v=o.shadowRoot||o,B(s,r,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.j;oe(e.t,"componentDidRender"),64&e.o||(e.o|=64,le(t),e.P(t),n||ne()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>K(e,!1))),e.o&=-517},ne=()=>{le(u.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-tournament-prizes"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},le=e=>e.classList.add("hydrated"),se=(e,t,o)=>{var l,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(l=t.A)?l:{});if(i.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.R.get(t),i=s.o,c=s.t;o=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(o,l.A[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.R.set(t,o),c&&2==(18&i)&&K(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.T)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},re=(e,o={})=>{var f;const p=[],d=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const i={o:o[0],$:o[1],A:o[2],D:o[3]};4&i.o&&(S=!0),i.A=o[2],i.D=o[3];const c=i.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,R:new Map};o.H=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,i),1&i.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ie(this,e,i.D)),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.k,i=()=>{};if(1&t.o)ie(e,t,o.D),(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.L;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.N}" was not found`);o.isProxied||(se(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,r()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=H(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const i=t.j,c=()=>K(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,o)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);e.U&&(e.U.map((e=>e())),e.U=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};i.L=e[0],d.includes(c)||m.get(c)||(p.push(c),m.define(c,se(u,i,1)))}))})),p.length>0&&(S&&(v.textContent+=i),v.textContent+=p.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.M)?f:j(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(ne,30)))},ie=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=ue(e,n),r=ce(t,l),i=ae(n);a.ael(s,o,r,i),(t.U=t.U||[]).push((()=>a.rel(s,o,r,i)))}))},ce=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.O=e.O||[]).push([t,n])}catch(e){l(e)}},ue=(e,t)=>8&t?c:e,ae=e=>({passive:!!(1&e),capture:!!(2&e)}),fe=e=>a.M=e;export{re as b,T as g,P as h,f as p,o as r,fe as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as i,g as s}from"./p-52494b9c.js";const t={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},a=(e,i)=>{var s,a;return(null===(s=t[i])||void 0===s?void 0:s[e])||(null===(a=t.en)||void 0===a?void 0:a[e])},r=class{constructor(i){e(this,i),this.language=void 0,this.useGroup=!1,this.useEvent=!1,this.endpoint=void 0,this.session=void 0,this.rawPrizes=void 0,this.tournamentId=void 0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(e){e.detail&&(this.prizes=e.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((e=>{let i=[];if(e.count>0)for(let s=0;s<e.count;s++)i.push({name:e.name,rank:e.rank+s});this.prizeGroups.push(i)}))}getTournamentInfo(){let e=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),i=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("language",this.language),e.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&i.append("X-SessionId",this.session),fetch(e.href,{method:"GET",headers:i}).then((e=>e.json())).then((e=>{this.prizes=e.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const 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 i=new CSSStyleSheet;i.replace(e),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"6f6d6a40e0374ad146b0eda343d963679fbd11f0",class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&i("div",{key:"28edb876913c67479b4fb5c885244cea36a073ea",class:"PrizeTitle"},i("svg",{key:"6cd86bf5db8eacee01a9577458c136cbe78684bc",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},i("path",{key:"744e27a1ee73240f5876abd14b2e912b8dbc979e",d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),i("div",{key:"ddd4dd055f8441b1b0355e95e88b43049a108b2c",class:"Title"},a("prizes",this.language))),this.initialLoad&&this.useGroup&&i("div",{key:"83b846fe441de36598d01742fd6730de4c5920bf",class:"GroupPrizeTitle"},i("svg",{key:"e6b379df8cc991173b588e8dd9408b0c6716de7a",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("g",{key:"0332923cca76d7ccbe779cb367abb4e8952842b5","clip-path":"url(#clip0_2459_42455)"},i("path",{key:"607a3379976189ca332117ec968c34046b3dcb46",d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),i("defs",{key:"66f11be400aac05c7f334a48b82cfb1aabdead8c"},i("clipPath",{key:"65e879523cff89288af691d5f705ef55996f3107",id:"clip0_2459_42455"},i("rect",{key:"382441f3ade90fa866096c5f25dfc3cb49d82132",width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),i("div",{key:"8610b8361faa0d2316415e39a21162dfcdcaeccf",class:"Title"},a("prizes",this.language))),i("div",{key:"76d9452769046d3c9cd4d0dd7a65396c5083ebc6",class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((e,s)=>i("div",{class:`PrizeGroup Group${s+1}`},e&&e.map(((e,s)=>i("div",{class:"PrizeRow"},i("div",{class:`PrizeItem Rank${s+1}`},i("span",{class:"PrizeRank"},e.rank," ",a("place",this.language)," "),i("span",{class:"PrizeName"},e.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((e,s)=>i("div",{class:`Prize Prize${s}`},i("p",{class:"PrizeText"},i("span",{class:"PrizeRank"},e.count>1?`${e.rank}~${e.rank+e.count-1}`:e.rank)," ",a("place",this.language),": ",e.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},a("noprizes",this.language))))}get host(){return s(this)}};r.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";export{r as casino_tournament_prizes}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -2,176 +2,182 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c53c7832.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
9
|
+
en: {
|
|
10
|
+
prizes: 'Prizes',
|
|
11
|
+
noprizes: 'No available prizes',
|
|
12
|
+
place: 'place',
|
|
13
|
+
},
|
|
14
|
+
'zh-hk': {
|
|
15
|
+
prizes: '獎品',
|
|
16
|
+
noprizes: '沒有可用的獎品',
|
|
17
|
+
place: 'place', // need translation
|
|
18
|
+
},
|
|
19
|
+
fr: {
|
|
20
|
+
prizes: 'Prix',
|
|
21
|
+
noprizes: 'Aucun prix disponible',
|
|
22
|
+
place: 'place', // need translation
|
|
23
|
+
},
|
|
24
|
+
ro: {
|
|
25
|
+
prizes: 'Premii',
|
|
26
|
+
noprizes: 'Nu sunt disponibile premii',
|
|
27
|
+
place: 'poziție',
|
|
28
|
+
},
|
|
29
|
+
tr: {
|
|
30
|
+
prizes: 'Ödüller',
|
|
31
|
+
noprizes: 'Geçerli ödül yok',
|
|
32
|
+
place: 'Sıra',
|
|
33
|
+
},
|
|
34
|
+
el: {
|
|
35
|
+
prizes: 'Έπαθλα',
|
|
36
|
+
noprizes: 'Μη διαθέσιμα έπαθλα',
|
|
37
|
+
place: 'θέση',
|
|
38
|
+
},
|
|
39
|
+
es: {
|
|
40
|
+
prizes: 'Premios',
|
|
41
|
+
noprizes: 'No hay premios disponibles',
|
|
42
|
+
place: 'posición',
|
|
43
|
+
},
|
|
44
|
+
hu: {
|
|
45
|
+
prizes: 'Nyeremények',
|
|
46
|
+
noprizes: 'Nincs elérhető nyeremény',
|
|
47
|
+
place: 'helyezés',
|
|
48
|
+
},
|
|
49
|
+
pt: {
|
|
50
|
+
prizes: 'Prêmios',
|
|
51
|
+
noprizes: 'Não há prêmios disponíveis',
|
|
52
|
+
place: 'place', // need translation
|
|
53
|
+
},
|
|
54
|
+
hr: {
|
|
55
|
+
prizes: 'Nagrade',
|
|
56
|
+
noprizes: 'Nema dostupnih nagrada',
|
|
57
|
+
place: 'mjesto',
|
|
58
|
+
}
|
|
59
59
|
};
|
|
60
60
|
const translate = (key, customLang) => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
var _a, _b;
|
|
62
|
+
const lang = customLang;
|
|
63
|
+
return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
const casinoTournamentPrizesCss = ":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";
|
|
67
|
+
const CasinoTournamentPrizesStyle0 = casinoTournamentPrizesCss;
|
|
67
68
|
|
|
68
69
|
const CasinoTournamentPrizes = class {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.initialLoad = true;
|
|
70
|
+
constructor(hostRef) {
|
|
71
|
+
index.registerInstance(this, hostRef);
|
|
72
|
+
this.language = undefined;
|
|
73
|
+
this.useGroup = false;
|
|
74
|
+
this.useEvent = false;
|
|
75
|
+
this.endpoint = undefined;
|
|
76
|
+
this.session = undefined;
|
|
77
|
+
this.rawPrizes = undefined;
|
|
78
|
+
this.tournamentId = undefined;
|
|
79
|
+
this.clientStyling = '';
|
|
80
|
+
this.clientStylingUrl = '';
|
|
81
|
+
this.limitStylingAppends = false;
|
|
82
|
+
this.prizes = [];
|
|
83
|
+
this.prizeGroups = [];
|
|
84
|
+
this.initialLoad = false;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (prize.count > 0) {
|
|
92
|
-
for (let index = 0; index < prize.count; index++) {
|
|
93
|
-
const element = { name: prize.name, rank: prize.rank + index };
|
|
94
|
-
array.push(element);
|
|
86
|
+
infoCompletedHandler(event) {
|
|
87
|
+
if (event.detail) {
|
|
88
|
+
this.prizes = event.detail.prizes;
|
|
89
|
+
this.formatGroup();
|
|
90
|
+
this.initialLoad = true;
|
|
95
91
|
}
|
|
96
|
-
}
|
|
97
|
-
this.prizeGroups.push(array);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
getTournamentInfo() {
|
|
101
|
-
let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
|
|
102
|
-
let reqHeaders = new Headers();
|
|
103
|
-
url.searchParams.append('expand', 'games');
|
|
104
|
-
url.searchParams.append('language', this.language);
|
|
105
|
-
url.searchParams.append('fields', 'playerEnrolled,games(id,name,thumbnail)');
|
|
106
|
-
if (this.session) {
|
|
107
|
-
reqHeaders.append('X-SessionId', this.session);
|
|
108
92
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
componentWillLoad() {
|
|
123
|
-
if (!this.useEvent && this.rawPrizes) {
|
|
124
|
-
this.prizes = JSON.parse(this.rawPrizes);
|
|
125
|
-
if (this.useGroup) {
|
|
126
|
-
this.formatGroup();
|
|
127
|
-
}
|
|
128
|
-
this.initialLoad = true;
|
|
93
|
+
formatGroup() {
|
|
94
|
+
const prizes = this.prizes;
|
|
95
|
+
prizes.forEach((prize) => {
|
|
96
|
+
let array = [];
|
|
97
|
+
if (prize.count > 0) {
|
|
98
|
+
for (let index = 0; index < prize.count; index++) {
|
|
99
|
+
const element = { name: prize.name, rank: prize.rank + index };
|
|
100
|
+
array.push(element);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
this.prizeGroups.push(array);
|
|
104
|
+
});
|
|
129
105
|
}
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
getTournamentInfo() {
|
|
107
|
+
let url = new URL(this.endpoint + `/v1/tournaments/${this.tournamentId}`);
|
|
108
|
+
let reqHeaders = new Headers();
|
|
109
|
+
url.searchParams.append('expand', 'games');
|
|
110
|
+
url.searchParams.append('language', this.language);
|
|
111
|
+
url.searchParams.append('fields', 'playerEnrolled,games(id,name,thumbnail)');
|
|
112
|
+
if (this.session) {
|
|
113
|
+
reqHeaders.append('X-SessionId', this.session);
|
|
114
|
+
}
|
|
115
|
+
let requestOptions = {
|
|
116
|
+
method: 'GET',
|
|
117
|
+
headers: reqHeaders,
|
|
118
|
+
};
|
|
119
|
+
fetch(url.href, requestOptions).then((res) => res.json())
|
|
120
|
+
.then((res) => {
|
|
121
|
+
this.prizes = res.item.prizes;
|
|
122
|
+
if (this.useGroup) {
|
|
123
|
+
this.formatGroup();
|
|
124
|
+
}
|
|
125
|
+
this.initialLoad = true;
|
|
126
|
+
});
|
|
132
127
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
128
|
+
componentWillLoad() {
|
|
129
|
+
if (!this.useEvent && this.rawPrizes) {
|
|
130
|
+
this.prizes = JSON.parse(this.rawPrizes);
|
|
131
|
+
if (this.useGroup) {
|
|
132
|
+
this.formatGroup();
|
|
133
|
+
}
|
|
134
|
+
this.initialLoad = true;
|
|
135
|
+
}
|
|
136
|
+
if (!this.useEvent && this.endpoint && this.tournamentId) {
|
|
137
|
+
this.getTournamentInfo();
|
|
138
|
+
}
|
|
141
139
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
140
|
+
componentDidRender() {
|
|
141
|
+
if (!this.limitStylingAppends && this.host) {
|
|
142
|
+
if (this.clientStyling)
|
|
143
|
+
this.setClientStyling();
|
|
144
|
+
if (this.clientStylingUrl)
|
|
145
|
+
this.setClientStylingURL();
|
|
146
|
+
this.limitStylingAppends = true;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
setClientStyling() {
|
|
150
|
+
const sheet = new CSSStyleSheet();
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
sheet.replace(this.clientStyling);
|
|
153
|
+
// @ts-ignore
|
|
154
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
155
|
+
}
|
|
156
|
+
setClientStylingURL() {
|
|
157
|
+
let url = new URL(this.clientStylingUrl);
|
|
158
|
+
fetch(url.href)
|
|
159
|
+
.then((res) => res.text())
|
|
160
|
+
.then((data) => {
|
|
161
|
+
const sheet = new CSSStyleSheet();
|
|
162
|
+
// @ts-ignore
|
|
163
|
+
sheet.replace(data);
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
render() {
|
|
169
|
+
{
|
|
170
|
+
return index.h("div", { key: '6f6d6a40e0374ad146b0eda343d963679fbd11f0', class: `TournamentPrizes ${this.useGroup ? '' : 'PrizeView'}` }, this.initialLoad && !this.useGroup && index.h("div", { key: '28edb876913c67479b4fb5c885244cea36a073ea', class: "PrizeTitle" }, index.h("svg", { key: '6cd86bf5db8eacee01a9577458c136cbe78684bc', class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "30", height: "27.454", viewBox: "0 0 30 27.454" }, index.h("path", { key: '744e27a1ee73240f5876abd14b2e912b8dbc979e', d: "M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z", transform: "translate(-5.999 -9.76)" })), index.h("div", { key: 'ddd4dd055f8441b1b0355e95e88b43049a108b2c', class: "Title" }, translate('prizes', this.language))), this.initialLoad && this.useGroup && index.h("div", { key: '83b846fe441de36598d01742fd6730de4c5920bf', class: "GroupPrizeTitle" }, index.h("svg", { key: 'e6b379df8cc991173b588e8dd9408b0c6716de7a', class: "PrizeIcon", xmlns: "http://www.w3.org/2000/svg", width: "19", height: "16", viewBox: "0 0 19 16", fill: "none" }, index.h("g", { key: '0332923cca76d7ccbe779cb367abb4e8952842b5', "clip-path": "url(#clip0_2459_42455)" }, index.h("path", { key: '607a3379976189ca332117ec968c34046b3dcb46', d: "M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z", fill: "white" })), index.h("defs", { key: '66f11be400aac05c7f334a48b82cfb1aabdead8c' }, index.h("clipPath", { key: '65e879523cff89288af691d5f705ef55996f3107', id: "clip0_2459_42455" }, index.h("rect", { key: '382441f3ade90fa866096c5f25dfc3cb49d82132', width: "18.2857", height: "16", fill: "white", transform: "translate(0.5)" })))), index.h("div", { key: '8610b8361faa0d2316415e39a21162dfcdcaeccf', class: "Title" }, translate('prizes', this.language))), index.h("div", { key: '76d9452769046d3c9cd4d0dd7a65396c5083ebc6', class: "PrizeGroups" }, this.useGroup == true && this.prizeGroups && this.prizeGroups.map((group, groupIndex) => {
|
|
171
|
+
return index.h("div", { class: `PrizeGroup Group${groupIndex + 1}` }, group && group.map((prize, prizeIndex) => {
|
|
172
|
+
return index.h("div", { class: "PrizeRow" }, index.h("div", { class: `PrizeItem Rank${prizeIndex + 1}` }, index.h("span", { class: "PrizeRank" }, prize.rank, " ", translate('place', this.language), " "), index.h("span", { class: "PrizeName" }, prize.name)));
|
|
173
|
+
}));
|
|
174
|
+
}), this.useGroup == false && this.prizes && this.prizes.map((prize, prizeIndex) => {
|
|
175
|
+
return index.h("div", { class: `Prize Prize${prizeIndex}` }, index.h("p", { class: "PrizeText" }, index.h("span", { class: "PrizeRank" }, prize.count > 1 ? (`${prize.rank}~${prize.rank + prize.count - 1}`) : (prize.rank)), " ", translate('place', this.language), ": ", prize.name));
|
|
176
|
+
}), !this.prizes && index.h("p", { key: '2df9ce5a0f56928a550f0ebf3de962835df0d6f2' }, translate('noprizes', this.language))));
|
|
177
|
+
}
|
|
171
178
|
}
|
|
172
|
-
|
|
173
|
-
get host() { return index.getElement(this); }
|
|
179
|
+
get host() { return index.getElement(this); }
|
|
174
180
|
};
|
|
175
|
-
CasinoTournamentPrizes.style =
|
|
181
|
+
CasinoTournamentPrizes.style = CasinoTournamentPrizesStyle0;
|
|
176
182
|
|
|
177
183
|
exports.casino_tournament_prizes = CasinoTournamentPrizes;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-c53c7832.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
4
7
|
|
|
5
8
|
/*
|
|
6
|
-
Stencil Client Patch Browser
|
|
9
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
10
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-tournament-prizes.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
patchBrowser().then(options => {
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
18
22
|
return index.bootstrapLazy([["casino-tournament-prizes.cjs",[[1,"casino-tournament-prizes",{"language":[1],"useGroup":[4,"use-group"],"useEvent":[4,"use-event"],"endpoint":[1],"session":[1],"rawPrizes":[1,"raw-prizes"],"tournamentId":[1,"tournament-id"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"limitStylingAppends":[32],"prizes":[32],"prizeGroups":[32],"initialLoad":[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]]]]], options);
|
|
19
23
|
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|