@everymatrix/casino-engagement-suite-tournament 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-00972ad5.js +2 -0
- package/dist/casino-engagement-suite-tournament/{p-9c24a103.entry.js → p-69ef97d1.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-c1d0b870.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +39 -13
- package/dist/cjs/{casino-engagement-suite-tournament-d2f62483.js → casino-engagement-suite-tournament-19a1c3b7.js} +200 -144
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-4eb9b2e6.js → index-79c59362.js} +253 -145
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +35 -4
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +39 -13
- package/dist/esm/{casino-engagement-suite-tournament-66512e26.js → casino-engagement-suite-tournament-f2131da2.js} +200 -144
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-3124114b.js → index-bc18616b.js} +253 -145
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-1cd75583.js +0 -2
- package/dist/casino-engagement-suite-tournament/p-94b7b68e.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as n}from"./p-
|
|
1
|
+
import{p as t,b as n}from"./p-00972ad5.js";export{s as setNonce}from"./p-00972ad5.js";import{g as e}from"./p-e1255160.js";(()=>{const n=import.meta.url,e={};return""!==n&&(e.resourcesUrl=new URL(".",n).href),t(e)})().then((async t=>(await e(),n([["p-69ef97d1",[[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],leaderboardsInit:[16],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isActionJoinPending:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],time:[32],newIdList:[32]},[[8,"message","handleEvent"]],{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}],[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],t))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoEngagementSuiteTournament}from"./p-
|
|
1
|
+
export{C as CasinoEngagementSuiteTournament}from"./p-c1d0b870.js";import"./p-00972ad5.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,v=[],y=[],$=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&d.o?S(w):d.raf(w))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{b(v),b(y),(m=v.length>0)&&d.raf(w)},S=t=>h().then(t),g=$(y,!0),j=t=>"object"==(t=typeof t)||"function"===t;function k(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>C,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return C(t.value);throw"should never get here"}var M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},T=t=>{const e=t.__childNodes||t.childNodes;t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&R(e,t.tagName).forEach((t=>{var e;1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!(null==(e=L(t,t["s-sn"],!1))?void 0:e.length))}));for(const t of e)1===t.nodeType&&(t.__childNodes||t.childNodes).length&&T(t)};function R(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&o["s-hn"]===e&&(void 0===n||o["s-sn"]===n)&&(s.push(o),void 0!==n))return s;s=[...s,...R(o.childNodes,e,n)]}return s}var P,F,L=(t,e,n=!0)=>{const o=[];for((n&&t["s-sr"]||!t["s-sr"])&&o.push(t);(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},A=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,N=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?H(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const f=H(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},H=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),B={},D=(t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,U=t=>n(t).$hostElement$,W=(t,e,n)=>{const o=U(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=d.ce(e,n);return t.dispatchEvent(o),o},q=new WeakMap,G=t=>"sc-"+t.S,_=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=I(n);let s=I(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(J);e=e.replace(K,""),n&&d.rel(t,e,n,l),o&&d.ael(t,e,o,l)}}},z=/\s/,I=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(z):[]),J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of X(Object.keys(l)))t in s||_(o,t,l[t],void 0,n,e.o);for(const t of X(Object.keys(s)))_(o,t,l[t],s[t],n,e.o)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Y=!1,Z=!1,tt=!1,et=!1,nt=(t,e,n)=>{var o;const l=e.h[n];let s,i,r,c=0;if(Y||(tt=!0,"slot"===l.v&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=a.createTextNode(l.i);else if(1&l.o)s=l.$=a.createTextNode("");else if(s=l.$=a.createElement(!Y&&2&l.o?"slot-fb":l.v),Q(null,l,et),l.h)for(c=0;c<l.h.length;++c)i=nt(t,l,c),i&&s.appendChild(i);return s["s-hn"]=F,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=P,s["s-sn"]=l.m||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,r=t&&t.h&&t.h[n],r&&r.v===l.v&&t.$&&ot(t.$,!1)),s},ot=(t,e)=>{d.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==F&&o["s-ol"]&&(dt(rt(o).parentNode,o,rt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,tt=!0),e&&ot(o,e)}d.o&=-2},lt=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=nt(null,n,l),i&&(o[l].$=i,dt(r,i,rt(e))))},st=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;at(e),t&&(Z=!0,t["s-ol"]?t["s-ol"].remove():ot(t,!0),t.remove())}}},it=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),rt=t=>t&&t["s-ol"]||t,ct=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.i;let r;null===i?(("slot"!==e.v||Y)&&Q(t,e,et),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ct(d,m,l),d=e[++r],m=o[++c];else if(it(h,v,l))ct(h,v,l),h=e[--a],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||ot(d.$.parentNode,!1),ct(d,v,l),dt(t,d.$,h.$.nextSibling),d=e[++r],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||ot(h.$.parentNode,!1),ct(h,m,l),dt(t,h.$,d.$),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.v!==m.v?s=nt(e&&e[c],n,u):(ct(i,m,l),e[u]=void 0,s=i.$),m=o[++c]):(s=nt(e&&e[c],n,c),m=o[++c]),s&&dt(rt(d.$).parentNode,s,rt(d.$))}r>a?lt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&st(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),lt(o,null,e,s,0,s.length-1)):!n&&null!==l&&st(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.i!==i&&(o.data=i)},ut=[],ft=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(A(e,l)){let n=ut.find((t=>t.j===e));Z=!0,e["s-sn"]=e["s-sn"]||l,n?(n.j["s-sh"]=t["s-hn"],n.k=t):(e["s-sh"]=t["s-hn"],ut.push({k:t,j:e})),e["s-sr"]&&ut.map((t=>{A(t.j,e["s-sn"])&&(n=ut.find((t=>t.j===e)),n&&!t.k&&(t.k=n.k))}))}else ut.some((t=>t.j===e))||ut.push({j:e})}1===t.nodeType&&ft(t)}},at=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(at)},dt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),ht=(t,e)=>{if(e&&!t.O&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.O=()=>{e["s-p"].splice(n-1,1),o()})))}},pt=(t,e)=>{if(t.o|=16,!(4&t.o))return ht(t,t.C),g((()=>mt(t,e)));t.o|=512},mt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 l;return e&&(t.o|=256,t.M&&(t.M.map((([t,e])=>gt(o,t,e,n))),t.M=void 0),l=gt(o,"componentWillLoad",void 0,n)),vt(l,(()=>$t(t,o,e)))},vt=(t,e)=>yt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),yt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.T,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=G(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=q.get(t=t.head||t);if(i||q.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=d.R)?n:k(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);bt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>wt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},bt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.T,u=t.P||H(null,null),f=(t=>t&&t.v===B)(e)?e:N(null,null,e);if(F=r.tagName,c.F&&(f.u=f.u||{},c.F.map((([t,e])=>f.u[e]=r[t]))),n&&f.u)for(const t of Object.keys(f.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=r[t]);if(f.v=null,f.o|=4,t.P=f,f.$=u.$=r.shadowRoot||r,Y=!(!(1&c.o)||128&c.o),P=r["s-cr"],Z=!1,ct(u,f,n),d.o|=1,tt){ft(f.$);for(const t of ut){const e=t.j;if(!e["s-ol"]){const t=a.createTextNode("");t["s-nr"]=e,dt(e.parentNode,e["s-ol"]=t,e)}}for(const t of ut){const e=t.j,r=t.k;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),dt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Z&&T(f.$),d.o&=-2,ut.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},wt=t=>{const e=t.$hostElement$,n=t.C;gt(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,jt(e),t.L(e),n||St()),t.O&&(t.O(),t.O=void 0),512&t.o&&S((()=>pt(t,!1))),t.o&=-517},St=()=>{S((()=>V(f,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},gt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},jt=t=>t.classList.add("hydrated"),kt=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.S}" 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=i.$hostElement$,c=i.A.get(e),u=i.o,f=i.t;if(o=D(o,l.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(e,o),f)){if(l.H&&128&u){const t=l.H[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&pt(i,!1)}},Ot=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N||e.H||t.watchers){t.watchers&&!e.H&&(e.H=t.watchers);const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,D(s,l)),void kt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return kt(this,t,s,e),void(1&o&&!i.t&&i.B.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=D(s,l),kt(this,t,i.t[t],e)};i.t?n():i.B.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){d.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.F)||l.push([t,s])),s}))]))}}return t},Ct=(t,e)=>{gt(t,"connectedCallback",void 0,e)},Et=(t,e)=>{gt(t,"disconnectedCallback",void 0,e||t)},Mt=(t,o={})=>{var l;const u=[],h=o.exclude||[],m=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],N:o[2],D:o[3]};4&c.o&&(g=!0),c.N=o[2],c.D=o[3],c.F=[],c.H=null!=(l=o[4])?l:{};const f=c.S,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,T:n,A:new Map};o.B=new Promise((t=>o.L=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,xt(this,t,c.D)),w&&(clearTimeout(w),w=null),S?b.push(this):d.jmp((()=>(t=>{if(!(1&d.o)){const e=n(t),o=e.T,l=()=>{};if(1&e.o)xt(t,e,o.D),(null==e?void 0:e.t)?Ct(e.t,t):(null==e?void 0:e.B)&&e.B.then((()=>Ct(e.t,t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,dt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){ht(e,e.C=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.U){const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.U;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.W}" was not found`);o.isProxied||(n.H=o.watchers,Ot(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r(),Ct(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=G(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>pt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async t=>{if(!(1&d.o)){const e=n(t);e.V&&(e.V.map((t=>t())),e.V=void 0),(null==e?void 0:e.t)?Et(e.t,t):(null==e?void 0:e.B)&&e.B.then((()=>Et(e.t,t)))}q.has(t)&&q.delete(t),t.shadowRoot&&q.has(t.shadowRoot)&&q.delete(t.shadowRoot)})(this))),d.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.P)?void 0:t.$)instanceof Node&&!e.P.$.isConnected&&delete e.P.$}))}componentOnReady(){return n(this).B}};c.U=t[0],h.includes(f)||m.get(f)||(u.push(f),m.define(f,Ot(v,c,1)))}))})),u.length>0&&(g&&($.textContent+=c),$.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(l=d.R)?l:k(a);null!=t&&$.setAttribute("nonce",t),v.insertBefore($,y?y.nextSibling:v.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):d.jmp((()=>w=setTimeout(St,30)))},xt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Rt(t,n),i=Tt(e,l),r=Pt(n);d.ael(s,o,i,r),(e.V=e.V||[]).push((()=>d.rel(s,o,i,r)))}))},Tt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},Rt=(t,e)=>8&e?f:t,Pt=t=>({passive:!!(1&t),capture:!!(2&t)}),Ft=t=>d.R=t;export{B as H,Mt as b,W as c,U as g,N as h,h as p,o as r,Ft as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,g as r}from"./p-
|
|
1
|
+
import{r as e,h as t,g as r}from"./p-00972ad5.js";export{C as casino_engagement_suite_tournament}from"./p-c1d0b870.js";const s=class{constructor(t){e(this,t),this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.host.prepend(t)}),1)})).catch((e=>{console.log("Error ",e)}))}}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return t("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return t("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},t("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},t("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},t("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),t("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},t("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),t("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return r(this)}};s.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";const i=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.el.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))}}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const s=(t=this.translationUrl,r=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{r[e]=r[e]?r[e]:{};for(let s in t[e])r[e][s]=t[e][s]})),e(!0)}))})));e.push(s)}var t,r;return await Promise.all(e)}render(){return t("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},t("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return r(this)}};i.style=":host{display:block}";export{s as casino_engagement_suite_progress_bar,i as general_styling_wrapper}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,H as t,r as i,c as n}from"./p-00972ad5.js";function r(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}var o,s;"function"==typeof SuppressedError&&SuppressedError,function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(o||(o={})),function(e){e.Starts="Starts",e.Ends="Ends"}(s||(s={}));const a=(e,t)=>(Object.keys(t).map((i=>{e=e.replace(`{${i}}`,t[i])})),e),l=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),s),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Prizes:"Rewards",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},WinDialog:{Tile:"Congratulations!",Description:"You won <span>{tournamentName}</span>!",ButtonContinue:"Continue"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward."}),d=(...e)=>{let t=[];return e.map((e=>{switch(typeof e){case"string":t.push(e);break;case"object":Object.keys(e).map((i=>{e[i]&&t.push(i)}))}})),t.join(" ")};var c,p,u;!function(e){e.list="list",e.item="item"}(c||(c={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(p||(p={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift"}(u||(u={}));const h=e=>[p.Closed,p.Closing].includes(e.state),g=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),m=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),f=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),b=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),v=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/reward.svg"}),w=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),y=t=>{var{statedClasses:i,innerHTML:n}=t,o=r(t,["statedClasses","innerHTML"]);const{isHollow:s,isPending:a}=i;return e("button",Object.assign({class:d("GradientRoundedButton","GradientRounded",{Hollow:s||!1,Pending:a||!1})},o),e("span",null,n))};var L;!function(e){e.normal="normal",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(L||(L={}));const C=(e,t)=>{const{locale:i}=e,n={normal:{innerHTML:i.WinDialog.ButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:i.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:i.UnjoinDialog.ButtonNo}}[t];return y({statedClasses:Object.assign({isPending:e.isActionJoinPending},n.statedClasses),onClick:()=>{var t;null===(t=n.onClick)||void 0===t||t.call(),e.closeDialog()},innerHTML:n.innerHTML})},T={gift(t){const{name:i}=t.gifts[0],{locale:n}=t;return e("div",{class:"PageConfirmContainer"},e("div",{class:"PageConfirm"},e("div",null,w),e("div",{class:"Title"},n.WinDialog.Tile),e("div",{class:"Description",innerHTML:a(n.WinDialog.Description,{tournamentName:i})}),e("div",{class:"PageConfirmButtonsGroup"},C(t,L.normal))))},unjoin(t){const{locale:i}=t;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},i.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:i.UnjoinDialog.Description}),C(t,L.unjoinYes),C(t,L.unjoinNo))}},k=e=>{const t=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],i={};return Object.keys(e).map((n=>{const r=e[n];i[n]="games"===n?r.items:t.includes(n)?new Date(r):r})),i},j=e=>{let{item:t,items:i}=e;return t?i.map((e=>t&&t.userID===e.userID?Object.assign(Object.assign({},e),{isMe:!0}):e)):i},F=t=>{const{left:i,middle:n,right:r}=t,o={left:i,middle:n,right:r};return e("div",{class:"WrapperBar"},Object.keys(o).map((t=>{return e("div",{class:"WrapperBar"+(i=t,i.split("").map(((e,t)=>0===t?e.toUpperCase():e)).join(""))},o[t]||"");var i})))};function z(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function P(e,t){const i=new Date(e);return i.setSeconds(i.getSeconds()+t),i}function O(e,t){const i=Math.abs(t.getTime()-e.getTime()),n=Math.floor(i/864e5),r=Math.floor(i%864e5/36e5),o=Math.floor(i%36e5/6e4);return`${String(n).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(o).padStart(2,"0")}m`}function $(e,t){return(100*((new Date).getTime()-e.getTime())/(t.getTime()-e.getTime())).toFixed(0)}const R=(t,i)=>e("section",{class:"TimeContainer"},e("div",{class:"Time"},i.playerEnrolled?[e("div",null,O(P(i.startTime,t.time),i.endTime)),e("div",null,y({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${$(i.startTime,i.endTime)}%`}))]:[e("div",null,z(i.startTime)),e("div",null,z(i.endTime))]),e("casino-engagement-suite-progress-bar",{value:Number($(i.startTime,i.endTime)),"hide-percent":!0})),M=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),U=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),S=(e,t)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:t}),H=(e,t)=>{const{success:i}=t;if(i)switch(e.tournamentItem=Object.assign(Object.assign({},e.tournamentItem),{playerEnrolled:!e.tournamentItem.playerEnrolled}),e.page){case c.item:break;case c.list:B(e,e.tournamentItem)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0),e.isActionJoinPending=!1},B=(e,t)=>{e.tournamentList=e.tournamentList.map((e=>e.id===t.id?k(t):e))},E=(e,t)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==t.id))},I=(e,t)=>{const i=e.tournamentList.findIndex((e=>e.id===t.id));-1!==i?e.tournamentList[i]=k(t):e.tournamentList=e.tournamentList.concat(k(t))},D={list(t){var i;if(!t.tournamentList)return t.tournamentList=null===(i=t.leaderboardsInit)||void 0===i?void 0:i.map((e=>k(e))),e("general-animation-loading",null);const{locale:n}=t;if(t.tournamentList.length){const i=e=>{t.setPage(c.item,{tournament:e}),t.newIdList=t.newIdList.filter((t=>t!==e.id))};return W(t,e("div",{class:"Leaderboards Row"},t.tournamentList.map((n=>e("div",{class:d("LeaderboardsItem",n.playerEnrolled?" GradientRounded Hollow":""),onClick:()=>i(n)},e("div",{class:"LeaderboardsItemContainer"},N(t,n),R(t,n)),e("div",{class:"LeaderboardLabels"},t.newIdList.includes(n.id)&&e("div",{class:"LeaderboardLabel"},e("span",null,"new"))))))))}return W(t,e("div",{class:"NoLeaderboards Row"},e("div",null,n.NoLeaderboards),e("div",null,n.NoLeaderboardsTip)))},item:t=>t.tournamentItem?W(t,[N(t,t.tournamentItem),(()=>{const{locale:i,tab:n}=t;return e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(o).map((r=>e("div",{class:d({active:n===r}),onClick:()=>(e=>{switch(t.tab=e,e){case o.leaderboard:t.leaderboards=void 0,S(t.tournamentItem);break;case o.games:U(t.tournamentItem)}})(r)},i[r])))))})(),t.renders.tab[t.tab]()]):e("general-animation-loading",null)},N=(t,i)=>{const{locale:n}=t;return e("div",{class:"TitleContainer"},e("div",{class:"Title"},i.nameOrTitle),i.state!==p.Closed&&e("div",null,y({statedClasses:{isHollow:i.playerEnrolled,isPending:t.isActionJoinPending},onClick:e=>{e.stopPropagation(),(e=>{e.playerEnrolled?t.openDialog(u.unjoin,e):(t.actionJoin(e),t.tournamentItem=e)})(i)},innerHTML:i.playerEnrolled?n.Unjoin:n.Join})))},W=(t,i)=>{const{dialog:{isOpen:n}}=t,r=F({right:e("span",{onClick:()=>t.closeDialog()},g)});return e("div",{class:`Wrapper ${t.device}`},e("div",{class:d("WrapperContent",{faded:n})},(()=>{const{left:i,middle:n}=(()=>{const{page:i,locale:n}=t;switch(i){case c.list:return{left:e("span",{onClick:()=>t.openDialog(u.tip)},m),middle:n.Leaderboards};case c.item:return{left:e("span",{onClick:()=>t.setPage(c.list)},v),middle:""}}})();return F({left:i,middle:n,right:e("span",{onClick:()=>t.close.emit()},g)})})(),e("div",{class:"Root"},e("div",{class:"Main"},i))),e("div",{class:"WrapperUtil"},e("dialog",{open:n},e("div",{class:"GradientRounded Hollow"},r,n&&(()=>{switch(t.dialog.type){case u.unjoin:return t.renders.dialog.unjoin();case u.tip:return e("div",{class:"Tip"},t.locale.Tip);case u.gift:return t.renders.dialog.gift()}})()))))},G={info(t){var i,n;const{locale:r,tournamentItem:o,isShowInfo:s}=t;return e("div",{class:"InfoContainer"},R(t,o),e("section",{class:"ShowInfo",onClick:()=>t.isShowInfo=!t.isShowInfo},e("p",null,e("span",null,s?b:f),e("span",null,r.LeaderboardDetails))),s&&e("section",{class:"Info"},e("div",null,o.description),e("div",{class:"Criterias"},e("div",null,r.ScoreCriteria,": ",e("span",null,o.scoreCriteria)),e("div",null,r.MinimumBetCriteria,": ",e("span",null,o.minBetCount))),e("div",{class:"TC"},e("a",{href:o.termsUrl,target:"_blank"},r.TC))),h(t.tournamentItem)&&(null===(i=t.leaderboards)||void 0===i?void 0:i.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:a(r.TipPrize,_(null===(n=t.leaderboards)||void 0===n?void 0:n.find((e=>e.isMe))))}),e("section",{class:"Prizes"},e("div",{class:"PrizesHeader"},x,e("span",{class:"PrizesText"},r.Prizes)),o.prizes.map(((t,i)=>e("div",{class:"Prize"},i+1," ",r.Place,": ",e("span",{class:"PrizeText"},t.name))))))},leaderboard:t=>t.leaderboards?t.leaderboards.length?e("table",{class:"Leaderboards"},t.leaderboards.map((t=>e("tr",{class:d({isMe:t.isMe})},e("td",{class:"LeaderboardRank"},e("span",null,t.rank)),e("td",{class:"LeaderboardName"},t.shortName),e("td",{class:"LeaderboardScore"},t.score),e("td",{class:"LeaderboardPrize"},t.prizeName))))):"":e("general-animation-loading",null),games(t){var i;return e("div",{class:"Games"},null===(i=t.tournamentItem.games)||void 0===i?void 0:i.map((t=>e("div",null,e("img",{src:t.defaultThumbnail,alt:""})))))}},_=e=>({prize:e.prizeName,place:e.rank}),q={dialog:T,page:D,tab:G};function A(){}function J(e){return e()}function Y(){return Object.create(null)}function Q(e){e.forEach(J)}function K(e){return"function"==typeof e}function V(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function X(e,t,i){e.insertBefore(t,i||null)}function Z(e){e.parentNode&&e.parentNode.removeChild(e)}function ee(e){return document.createElement(e)}let te;function ie(e){te=e}const ne=[],re=[];let oe=[];const se=[],ae=Promise.resolve();let le=!1;function de(e){oe.push(e)}const ce=new Set;let pe=0;function ue(){if(0!==pe)return;const e=te;do{try{for(;pe<ne.length;){const e=ne[pe];pe++,ie(e),he(e.$$)}}catch(e){throw ne.length=0,pe=0,e}for(ie(null),ne.length=0,pe=0;re.length;)re.pop()();for(let e=0;e<oe.length;e+=1){const t=oe[e];ce.has(t)||(ce.add(t),t())}oe.length=0}while(ne.length);for(;se.length;)se.pop()();le=!1,ce.clear(),ie(e)}function he(e){if(null!==e.fragment){e.update(),Q(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(de)}}const ge=new Set;function me(e,t,i,n,r,o,s=null,a=[-1]){const l=te;ie(e);const d=e.$$={fragment:null,ctx:[],props:o,update:A,not_equal:r,bound:Y(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Y(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(d.root);let c=!1;if(d.ctx=i?i(e,t.props||{},((t,i,...n)=>{const o=n.length?n[0]:i;return d.ctx&&r(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),c&&function(e,t){-1===e.$$.dirty[0]&&(ne.push(e),le||(le=!0,ae.then(ue)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],d.update(),c=!0,Q(d.before_update),d.fragment=!!n&&n(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(Z)}else d.fragment&&d.fragment.c();t.intro&&function(e){e&&e.i&&(ge.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:r}=e.$$;n&&n.m(t,i),de((()=>{const t=e.$$.on_mount.map(J).filter(K);e.$$.on_destroy?e.$$.on_destroy.push(...t):Q(t),e.$$.on_mount=[]})),r.forEach(de)}(e,t.target,t.anchor),ue()}ie(l)}let fe;function be(e,t,i,n){const r=i[e]?.type;if(t="Boolean"===r&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(r){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(fe=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=ee("slot"),"default"!==e&&function(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}(t,"name",e)},m:function(e,i){X(e,t,i)},d:function(e){e&&Z(t)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=be(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=be(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=be(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class ve{$$=void 0;$$set=void 0;$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];oe.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),oe=t}(i.after_update),Q(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=A}$on(e,t){if(!K(t))return A;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function xe(e){!function(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!n.getElementById(t)){const e=ee("style");e.id=t,e.textContent=i,function(e,t){!function(e,t){e.appendChild(t)}(e.head||e,t)}(n,e)}}(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function we(e){let t;return{c(){t=ee("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,n){X(i,t,n),e[4](t)},p:A,i:A,o:A,d(i){i&&Z(t),e[4](null)}}}function ye(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t;return function(e){(function(){if(!te)throw new Error("Function called outside component initialization");return te})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl),"mbsource"in e&&i(3,s=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&r&&n&&function(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}(n,r),5&e.$$.dirty&&o&&n&&function(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,o),9&e.$$.dirty&&s&&n&&function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(n,`${s}.Style`)},[n,r,o,s,function(e){re[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class Le extends ve{constructor(e){super(),me(this,e,ye,we,V,{clientstyling:1,clientstylingurl:2,mbsource:3},xe)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),ue()}}var Ce;!function(e,t,i){let n=class extends fe{constructor(){super(e,i,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};Object.keys(t).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){i=be(e,i,t),this.$$d[e]=i,this.$$c?.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c?.[e]}})})),e.element=n}(Le,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),customElements.define=(Ce=customElements.define,function(...e){try{return Ce.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",Le.element);const Te=class{handleEvent(e){var t,i;const n=e.data,{type:o}=n,s=r(n,["type"]);var a;null===(i=null===(a=this,t={UpdateLeaderboardsPlayerRes:e=>{const t=(e=>{let t;return e.map((e=>{var i;const n=null===(i=e.leaderBoard)||void 0===i?void 0:i.rank;n&&(t?n<t.leaderBoard.rank&&(t=e):t=e)})),t?`${t.leaderBoard.rank} / ${t.endRank}`:"-"})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:t})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const t=k(e.data.item);a.tournamentItem=t,B(a,t)},UpdateLeaderboardsRes:e=>{a.leaderboards=j(e.data)},JoinTournamentRes:e=>H(a,e),UnjoinTournamentRes:e=>H(a,e),LeaderboardLiveEvent:e=>{((e,t)=>{const{messageType:i,item:n}=t;switch(i){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":I(e,n);break;case"TournamentRemove":E(e,n);break;case"LeaderBoardUpdate":e.leaderboards=j(t)}})(a,e)}})||void 0===t?void 0:t[o])||void 0===i||i.call(null,s)}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,t){if(t){const r=(i=t,n=(e,t)=>e.id===t.id,e.filter((e=>!i.some((t=>n(e,t))))));this.newIdList=[...this.newIdList,...r.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var i,n}showPropWatcher(e,t){0==t&&1==e&&this.checkGift()}addLabel(e){this.labels.includes(e)||this.labels.push(e),M(this.labels)}removeLabel(e){this.labels=this.labels.filter((t=>t!=e)),M(this.labels)}setTimeInterval(){this.timeHolder=setInterval((()=>{this.time=this.tournamentList||this.tournamentItem?this.time+1:0}),1e3)}checkGift(){this.gifts.length?this.openDialog(u.gift,this.gifts[0],(()=>{this.dialog.type===u.gift&&(this.gifts=this.gifts.slice(1),setTimeout((()=>{this.checkGift()}),300))})):this.removeLabel("win")}connectedCallback(){this.setTimeInterval(),window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}disconnectedCallback(){clearInterval(this.timeHolder)}actionJoin(e){if(!this.isActionJoinPending){this.isActionJoinPending=!0;try{e.playerEnrolled?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var t,i;window.postMessage({type:"JoinTournamentReq",bonusCode:null===(i=null===(t=e.wallets)||void 0===t?void 0:t[0])||void 0===i?void 0:i.code})})(e)}catch(e){return void console.log("error",e)}}}setPage(e,t){e==c.item&&(this.tournamentItem=t.tournament,this.tournamentItem||U(t.tournament),h(this.tournamentItem)&&S(this.tournamentItem)),this.tab=o.info,this.page=e}render(){return e(t,{key:"f9e9ea96e0fddd20d3f12141c7cf66588ab94ccd"},e("general-styling-wrapper",{key:"aea948ea6c8f8cc5e4aaea5812873d3fe7045568",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:l,translationUrl:this.translationUrl}),this.renders.page[this.page]())}openDialog(e,t,i){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:i,type:e,data:t})}closeDialog(){var e;null===(e=this.dialog.onClose)||void 0===e||e.call(this),this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1,onClose:void 0})}constructor(e){i(this,e),this.close=n(this,"close",7),this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.tab=o.info,this.locale=l,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isActionJoinPending=!1,this.isDialogOpen=!1,this.isShowInfo=!1,this.page=c.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.time=0,this.gifts=[],this.newIdList=[],this.labels=[],this.renders={},Object.keys(q).forEach((e=>{this.renders[e]={},Object.keys(q[e]).forEach((t=>{this.renders[e][t]=q[e][t].bind(this,this)}))}))}static get watchers(){return{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};Te.style='.Wrapper{height:100%;position:relative;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px;overflow-y:auto}.Wrapper.Mobile{border-radius:16px}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.Wrapper.Mobile .WrapperBar{padding:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 12px);font-family:Inter}.Row{margin:24px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.Info{margin:24px 0;padding:0 20px}.TimeContainer{margin:24px 0;padding:0 20px}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 12px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 12px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.ShowInfo{margin:24px 0;padding:0 20px;cursor:pointer;color:rgb(102, 97, 120)}.ShowInfo p{display:flex;gap:4px}.TitleContainer{display:flex;justify-content:space-between;margin:24px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat}.TitleContainer .GradientRoundedButton{width:120px}.TabsContainer{margin:24px 0;padding:0 20px;margin:0 20px;padding:0;border-bottom:1px solid #575757}.Tabs{display:flex;justify-content:space-between;justify-content:start;font-size:var(--emw--font-size-x-small, 12px);margin-bottom:-1px}.Tabs>div{padding:10px;color:rgb(102, 97, 120);cursor:pointer}.Tabs>div.active{color:var(--emw--color-typography, #FFF);border-bottom:2px solid var(--emw--color-typography, #FFF)}.Title{font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:12px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:12px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:24px 0;padding:0 20px}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.Prizes{margin:24px 0;padding:0 20px}.Prizes .PrizesText{margin-left:3px;font-weight:600}.Prizes .PrizesHeader{align-items:center;display:flex}.Prizes .PrizesHeader img{width:12px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:20px 5px}.Leaderboards td:first-child{padding-left:20px}.Leaderboards td:last-child{padding-right:20px}.Leaderboards .LeaderboardName{color:var(--emw--color-typography, #FFF);opacity:1}.Leaderboards tr.isMe{background:rgba(0, 0, 0, 0.2)}.Leaderboards tr.isMe .LeaderboardRank span{padding:0px 3px;opacity:1;border:1px solid var(--emw--color-primary, rgb(255, 214, 47));border-radius:11px}.Leaderboards tr.isMe td{color:var(--emw--color-primary, rgb(255, 214, 47))}.LeaderboardLabels{position:absolute;top:-6px;right:18px;display:flex;gap:4px}.LeaderboardLabel{width:30px;height:15px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:var(--emw--font-size-3x-small, 7px);line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-background, #1E1638)}.Games{margin:24px 0;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:4px 7.25px}.Games img{width:60px}dialog{position:absolute;top:30px;width:100%;height:100%;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF)}dialog>div{margin:32px;border-radius:8px;background:var(--emw--color-background, hsl(254, 44%, 15%));border:1px solid hsl(254, 20%, 28%);align-items:center}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;flex-direction:column}.DialogContentUnjoinTitle{font-family:Montserrat;font-size:var(--emw--font-size-large, 20px);font-weight:600;line-height:24.38px;text-align:center}.DialogContentUnjoinDescription{color:var(--emw--color-secondary, rgb(187, 185, 195));margin-bottom:30px}.Tip{padding:32px;padding-top:10px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.PageConfirmContainer{text-align:center;width:80%;margin:0 auto}.PageConfirm{padding:40px 32px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 20px);text-align:center}.PageConfirm .Description{color:var(--emw--color-secondary, rgb(187, 185, 195));font-weight:400}.PageConfirm .Description span{color:var(--emw--color-typography, #FFF);font-weight:600}.PageConfirmButtonsGroup{width:150px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.GradientRounded{display:block;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:rgb(30, 22, 56);position:relative;border-radius:16px}.GradientRounded.Hollow{background:rgb(30, 22, 56);color:#FFFFFF}.GradientRounded.Hollow::before{content:"";position:absolute;inset:0;border-radius:15px;border:1px solid transparent;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.GradientRoundedButton{border:none;padding:7px;height:32px;width:100%;font-size:var(--emw--font-size-small, 14px);font-weight:700;line-height:17.07px;text-align:center;transition:0.5s opacity;cursor:pointer}.GradientRoundedButton.Pending{cursor:not-allowed;opacity:0.3}.GradientRoundedButton.Hollow span{background:-webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}';export{Te as C}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
5
|
+
const index = require('./index-79c59362.js');
|
|
6
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-19a1c3b7.js');
|
|
7
7
|
|
|
8
8
|
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
|
9
9
|
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
|
@@ -11,6 +11,31 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
|
|
|
11
11
|
const CasinoEngagementSuiteProgressBar = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
+
/**
|
|
15
|
+
* Value for the widget
|
|
16
|
+
*/
|
|
17
|
+
this.value = 0;
|
|
18
|
+
/**
|
|
19
|
+
* Shows disabled styles
|
|
20
|
+
*/
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
/**
|
|
23
|
+
* Hide percent value
|
|
24
|
+
*/
|
|
25
|
+
this.hidePercent = false;
|
|
26
|
+
/**
|
|
27
|
+
* Constantly animates
|
|
28
|
+
*/
|
|
29
|
+
this.indeterminate = false;
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via string
|
|
32
|
+
*/
|
|
33
|
+
this.clientStyling = '';
|
|
34
|
+
/**
|
|
35
|
+
* Client custom styling via url
|
|
36
|
+
*/
|
|
37
|
+
this.clientStylingUrl = '';
|
|
38
|
+
this.limitStylingAppends = false;
|
|
14
39
|
this.setClientStyling = () => {
|
|
15
40
|
let sheet = document.createElement('style');
|
|
16
41
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -29,13 +54,6 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
29
54
|
console.log('Error ', err);
|
|
30
55
|
});
|
|
31
56
|
};
|
|
32
|
-
this.value = 0;
|
|
33
|
-
this.disabled = false;
|
|
34
|
-
this.hidePercent = false;
|
|
35
|
-
this.indeterminate = false;
|
|
36
|
-
this.clientStyling = '';
|
|
37
|
-
this.clientStylingUrl = '';
|
|
38
|
-
this.limitStylingAppends = false;
|
|
39
57
|
}
|
|
40
58
|
componentDidRender() {
|
|
41
59
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -91,6 +109,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
91
109
|
const GeneralStylingWrapper = class {
|
|
92
110
|
constructor(hostRef) {
|
|
93
111
|
index.registerInstance(this, hostRef);
|
|
112
|
+
/**
|
|
113
|
+
* Client custom styling via inline styles
|
|
114
|
+
*/
|
|
115
|
+
this.clientStyling = '';
|
|
116
|
+
/**
|
|
117
|
+
* Client custom styling via url
|
|
118
|
+
*/
|
|
119
|
+
this.clientStylingUrl = '';
|
|
120
|
+
/**
|
|
121
|
+
* Translation via url
|
|
122
|
+
*/
|
|
123
|
+
this.translationUrl = '';
|
|
94
124
|
this.stylingAppends = false;
|
|
95
125
|
this.setClientStyling = () => {
|
|
96
126
|
let sheet = document.createElement('style');
|
|
@@ -112,10 +142,6 @@ const GeneralStylingWrapper = class {
|
|
|
112
142
|
console.log('error ', err);
|
|
113
143
|
});
|
|
114
144
|
};
|
|
115
|
-
this.clientStyling = '';
|
|
116
|
-
this.clientStylingUrl = '';
|
|
117
|
-
this.translationUrl = '';
|
|
118
|
-
this.targetTranslations = undefined;
|
|
119
145
|
}
|
|
120
146
|
componentDidRender() {
|
|
121
147
|
// start custom styling area
|