@everymatrix/casino-engagement-suite-tournament 1.53.11 → 1.54.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.
Files changed (18) hide show
  1. package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
  2. package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
  3. package/dist/casino-engagement-suite-tournament/{p-f3795238.entry.js → p-a4450dc8.entry.js} +1 -1
  4. package/dist/casino-engagement-suite-tournament/p-be135960.js +1 -0
  5. package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +1 -1
  6. package/dist/cjs/{casino-engagement-suite-tournament-c194e96a.js → casino-engagement-suite-tournament-7dcc8c92.js} +6 -484
  7. package/dist/cjs/index.cjs.js +1 -1
  8. package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +1 -1
  9. package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +1 -1
  10. package/dist/esm/{casino-engagement-suite-tournament-18e62f35.js → casino-engagement-suite-tournament-fa3789eb.js} +89 -567
  11. package/dist/esm/index.js +1 -1
  12. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
  13. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
  14. package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +1 -1
  15. package/package.json +1 -1
  16. package/dist/casino-engagement-suite-tournament/p-575729c8.js +0 -1
  17. 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 +0 -2
  18. 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 +0 -2
@@ -1 +1 @@
1
- import{p as t,b as n}from"./p-399401c8.js";export{s as setNonce}from"./p-399401c8.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-f3795238",[[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
+ import{p as t,b as n}from"./p-399401c8.js";export{s as setNonce}from"./p-399401c8.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-a4450dc8",[[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-575729c8.js";import"./p-399401c8.js";
1
+ export{C as CasinoEngagementSuiteTournament}from"./p-be135960.js";import"./p-399401c8.js";
@@ -1 +1 @@
1
- import{r as e,h as t,g as r}from"./p-399401c8.js";export{C as casino_engagement_suite_tournament}from"./p-575729c8.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}
1
+ import{r as e,h as t,g as r}from"./p-399401c8.js";export{C as casino_engagement_suite_tournament}from"./p-be135960.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-399401c8.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))}},j=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},k=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 P(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function z(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(z(i.startTime,t.time),i.endTime)),e("div",null,y({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${$(i.startTime,i.endTime)}%`}))]:[e("div",null,P(i.startTime)),e("div",null,P(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}),S=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),U=(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?j(t):e))},I=(e,t)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==t.id))},D=(e,t)=>{const i=e.tournamentList.findIndex((e=>e.id===t.id));-1!==i?e.tournamentList[i]=j(t):e.tournamentList=e.tournamentList.concat(j(t))},E={list(t){var i;if(!t.tournamentList)return t.tournamentList=null===(i=t.leaderboardsInit)||void 0===i?void 0:i.map((e=>j(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,U(t.tournamentItem);break;case o.games:S(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:E,tab:G};var A,J={};(function(e){var t=Object.defineProperty,i=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,l=(e,t)=>{for(var i in t||(t={}))o.call(t,i)&&a(e,i,t[i]);if(r)for(var i of r(t))s.call(t,i)&&a(e,i,t[i]);return e},d=(e,t)=>i(e,n(t)),c=(e,t,i)=>a(e,"symbol"!=typeof t?t+"":t,i);function p(){}function u(e){return e()}function h(){return Object.create(null)}function g(e){e.forEach(u)}function m(e){return"function"==typeof e}function f(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function b(e,t,i){e.insertBefore(t,i||null)}function v(e){e.parentNode&&e.parentNode.removeChild(e)}function x(e){return document.createElement(e)}let w;function y(e){w=e}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const L=[],C=[];let T=[];const j=[],k=Promise.resolve();let F=!1;function P(e){T.push(e)}const z=new Set;let O=0;function $(){if(0!==O)return;const e=w;do{try{for(;O<L.length;){const e=L[O];O++,y(e),R(e.$$)}}catch(e){throw L.length=0,O=0,e}for(y(null),L.length=0,O=0;C.length;)C.pop()();for(let e=0;e<T.length;e+=1){const t=T[e];z.has(t)||(z.add(t),t())}T.length=0}while(L.length);for(;j.length;)j.pop()();F=!1,z.clear(),y(e)}function R(e){if(null!==e.fragment){e.update(),g(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}const M=new Set;function S(e,t,i,n,r,o,s=null,a=[-1]){const l=w;y(e);const d=e.$$={fragment:null,ctx:[],props:o,update:p,not_equal:r,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:h(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(d.root);let c=!1;if(d.ctx=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]&&(L.push(e),F||(F=!0,k.then($)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})),d.update(),c=!0,g(d.before_update),d.fragment=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(v)}else d.fragment&&d.fragment.c();t.intro&&function(e){e&&e.i&&(M.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:r}=e.$$;n&&n.m(t,i),P((()=>{const t=e.$$.on_mount.map(u).filter(m);e.$$.on_destroy?e.$$.on_destroy.push(...t):g(t),e.$$.on_mount=[]})),r.forEach(P)}(e,t.target,t.anchor),$()}y(l)}let U;function H(e,t,i,n){var r;const o=null==(r=i[e])?void 0:r.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(e,t,i){super(),c(this,"$$ctor"),c(this,"$$s"),c(this,"$$c"),c(this,"$$cn",!1),c(this,"$$d",{}),c(this,"$$r",!1),c(this,"$$p_d",{}),c(this,"$$l",{}),c(this,"$$l_u",new Map),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))}}connectedCallback(){return e=this,t=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=x("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){b(e,t,i)},d:function(e){e&&v(t)}}}};if(yield 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]=H(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:d(l({},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=H(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={}}},new Promise(((i,n)=>{var r=e=>{try{s(t.next(e))}catch(e){n(e)}},o=e=>{try{s(t.throw(e))}catch(e){n(e)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,o);s((t=t.apply(e,null)).next())}));var e,t}attributeChangedCallback(e,t,i){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=H(e,i,this.$$p_d,"toProp"),null==(n=this.$$c)||n.$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 B{constructor(){c(this,"$$"),c(this,"$$set")}$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];T.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),T=t}(i.after_update),g(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=p}$on(e,t){if(!m(t))return p;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 I(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=x("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 D(e){let t;return{c(){t=x("div"),t.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,n){b(i,t,n),e[3](t)},p,i:p,o:p,d(i){i&&v(t),e[3](null)}}}function E(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:o=""}=t;return e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl)},e.$$.update=()=>{3&e.$$.dirty&&r&&n&&(()=>{let e=document.createElement("style");e.innerHTML=r,n.appendChild(e)})(),5&e.$$.dirty&&o&&n&&(()=>{let e=new URL(o),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[n,r,o,function(e){C[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class N extends B{constructor(e){super(),S(this,e,E,D,f,{clientstyling:1,clientstylingurl:2},I)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}}!function(e,t,i){let n=class extends U{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){var n;i=H(e,i,t),this.$$d[e]=i,null==(n=this.$$c)||n.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),e.element=n}(N,{clientstyling:{},clientstylingurl:{}},[]),e.default=N})(J),"undefined"!=typeof window&&(customElements.define=(A=customElements.define,function(...e){try{return A.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}}),Promise.resolve().then((()=>J)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)})));const Y=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=j(e.data.item);a.tournamentItem=t,B(a,t)},UpdateLeaderboardsRes:e=>{a.leaderboards=k(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":D(e,n);break;case"TournamentRemove":I(e,n);break;case"LeaderBoardUpdate":e.leaderboards=k(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||S(t.tournament),h(this.tournamentItem)&&U(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"]}}};Y.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{Y as C}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-6ea4215d.js');
6
- const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-c194e96a.js');
6
+ const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-7dcc8c92.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;
@@ -646,491 +646,13 @@ const renders = {
646
646
  tab
647
647
  };
648
648
 
649
- function a() {
650
- }
651
- function N(t) {
652
- return t();
653
- }
654
- function A() {
655
- return /* @__PURE__ */ Object.create(null);
656
- }
657
- function y(t) {
658
- t.forEach(N);
659
- }
660
- function P(t) {
661
- return typeof t == "function";
662
- }
663
- function B(t, e) {
664
- return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
665
- }
666
- function R(t) {
667
- return Object.keys(t).length === 0;
668
- }
669
- function H(t, e) {
670
- t.appendChild(e);
671
- }
672
- function I(t, e, n) {
673
- const s = U(t);
674
- if (!s.getElementById(e)) {
675
- const i = v("style");
676
- i.id = e, i.textContent = n, D(s, i);
677
- }
678
- }
679
- function U(t) {
680
- if (!t) return document;
681
- const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
682
- return e && /** @type {ShadowRoot} */
683
- e.host ? (
684
- /** @type {ShadowRoot} */
685
- e
686
- ) : t.ownerDocument;
687
- }
688
- function D(t, e) {
689
- return H(
690
- /** @type {Document} */
691
- t.head || t,
692
- e
693
- ), e.sheet;
694
- }
695
- function M(t, e, n) {
696
- t.insertBefore(e, n || null);
697
- }
698
- function E(t) {
699
- t.parentNode && t.parentNode.removeChild(t);
700
- }
701
- function v(t) {
702
- return document.createElement(t);
703
- }
704
- function G(t, e, n) {
705
- n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
706
- }
707
- function J(t) {
708
- return Array.from(t.childNodes);
709
- }
710
- function V(t) {
711
- const e = {};
712
- return t.childNodes.forEach(
713
- /** @param {Element} node */
714
- (n) => {
715
- e[n.slot || "default"] = !0;
716
- }
717
- ), e;
718
- }
719
- let C;
720
- function p(t) {
721
- C = t;
722
- }
723
- const f = [], x = [];
724
- let h = [];
725
- const S = [], z = /* @__PURE__ */ Promise.resolve();
726
- let w = !1;
727
- function F() {
728
- w || (w = !0, z.then(m));
729
- }
730
- function k(t) {
731
- h.push(t);
732
- }
733
- const b = /* @__PURE__ */ new Set();
734
- let $ = 0;
735
- function m() {
736
- if ($ !== 0)
737
- return;
738
- const t = C;
739
- do {
740
- try {
741
- for (; $ < f.length; ) {
742
- const e = f[$];
743
- $++, p(e), q(e.$$);
744
- }
745
- } catch (e) {
746
- throw f.length = 0, $ = 0, e;
747
- }
748
- for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
749
- for (let e = 0; e < h.length; e += 1) {
750
- const n = h[e];
751
- b.has(n) || (b.add(n), n());
752
- }
753
- h.length = 0;
754
- } while (f.length);
755
- for (; S.length; )
756
- S.pop()();
757
- w = !1, b.clear(), p(t);
758
- }
759
- function q(t) {
760
- if (t.fragment !== null) {
761
- t.update(), y(t.before_update);
762
- const e = t.dirty;
763
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
764
- }
765
- }
766
- function K(t) {
767
- const e = [], n = [];
768
- h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
769
- }
770
- const Q = /* @__PURE__ */ new Set();
771
- function W(t, e) {
772
- t && t.i && (Q.delete(t), t.i(e));
773
- }
774
- function X(t, e, n) {
775
- const { fragment: s, after_update: i } = t.$$;
776
- s && s.m(e, n), k(() => {
777
- const l = t.$$.on_mount.map(N).filter(P);
778
- t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
779
- }), i.forEach(k);
780
- }
781
- function Y(t, e) {
782
- const n = t.$$;
783
- n.fragment !== null && (K(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
784
- }
785
- function Z(t, e) {
786
- t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
787
- }
788
- function tt(t, e, n, s, i, l, u = null, c = [-1]) {
789
- const o = C;
790
- p(t);
791
- const r = t.$$ = {
792
- fragment: null,
793
- ctx: [],
794
- // state
795
- props: l,
796
- update: a,
797
- not_equal: i,
798
- bound: A(),
799
- // lifecycle
800
- on_mount: [],
801
- on_destroy: [],
802
- on_disconnect: [],
803
- before_update: [],
804
- after_update: [],
805
- context: new Map(e.context || (o ? o.$$.context : [])),
806
- // everything else
807
- callbacks: A(),
808
- dirty: c,
809
- skip_bound: !1,
810
- root: e.target || o.$$.root
811
- };
812
- u && u(r.root);
813
- let _ = !1;
814
- if (r.ctx = n(t, e.props || {}, (d, L, ...j) => {
815
- const O = j.length ? j[0] : L;
816
- return r.ctx && i(r.ctx[d], r.ctx[d] = O) && (!r.skip_bound && r.bound[d] && r.bound[d](O), _ && Z(t, d)), L;
817
- }), r.update(), _ = !0, y(r.before_update), r.fragment = s(r.ctx), e.target) {
818
- if (e.hydrate) {
819
- const d = J(e.target);
820
- r.fragment && r.fragment.l(d), d.forEach(E);
821
- } else
822
- r.fragment && r.fragment.c();
823
- e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
824
- }
825
- p(o);
826
- }
827
- let T;
828
- typeof HTMLElement == "function" && (T = class extends HTMLElement {
829
- /** The Svelte component constructor */
830
- $$ctor;
831
- /** Slots */
832
- $$s;
833
- /** The Svelte component instance */
834
- $$c;
835
- /** Whether or not the custom element is connected */
836
- $$cn = !1;
837
- /** Component props data */
838
- $$d = {};
839
- /** `true` if currently in the process of reflecting component props back to attributes */
840
- $$r = !1;
841
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
842
- $$p_d = {};
843
- /** @type {Record<string, Function[]>} Event listeners */
844
- $$l = {};
845
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
846
- $$l_u = /* @__PURE__ */ new Map();
847
- constructor(t, e, n) {
848
- super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
849
- }
850
- addEventListener(t, e, n) {
851
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
852
- const s = this.$$c.$on(t, e);
853
- this.$$l_u.set(e, s);
854
- }
855
- super.addEventListener(t, e, n);
856
- }
857
- removeEventListener(t, e, n) {
858
- if (super.removeEventListener(t, e, n), this.$$c) {
859
- const s = this.$$l_u.get(e);
860
- s && (s(), this.$$l_u.delete(e));
861
- }
862
- }
863
- async connectedCallback() {
864
- if (this.$$cn = !0, !this.$$c) {
865
- let t = function(i) {
866
- return () => {
867
- let l;
868
- return {
869
- c: function() {
870
- l = v("slot"), i !== "default" && G(l, "name", i);
871
- },
872
- /**
873
- * @param {HTMLElement} target
874
- * @param {HTMLElement} [anchor]
875
- */
876
- m: function(o, r) {
877
- M(o, l, r);
878
- },
879
- d: function(o) {
880
- o && E(l);
881
- }
882
- };
883
- };
884
- };
885
- if (await Promise.resolve(), !this.$$cn || this.$$c)
886
- return;
887
- const e = {}, n = V(this);
888
- for (const i of this.$$s)
889
- i in n && (e[i] = [t(i)]);
890
- for (const i of this.attributes) {
891
- const l = this.$$g_p(i.name);
892
- l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
893
- }
894
- for (const i in this.$$p_d)
895
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
896
- this.$$c = new this.$$ctor({
897
- target: this.shadowRoot || this,
898
- props: {
899
- ...this.$$d,
900
- $$slots: e,
901
- $$scope: {
902
- ctx: []
903
- }
904
- }
905
- });
906
- const s = () => {
907
- this.$$r = !0;
908
- for (const i in this.$$p_d)
909
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
910
- const l = g(
911
- i,
912
- this.$$d[i],
913
- this.$$p_d,
914
- "toAttribute"
915
- );
916
- l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
917
- }
918
- this.$$r = !1;
919
- };
920
- this.$$c.$$.after_update.push(s), s();
921
- for (const i in this.$$l)
922
- for (const l of this.$$l[i]) {
923
- const u = this.$$c.$on(i, l);
924
- this.$$l_u.set(l, u);
925
- }
926
- this.$$l = {};
927
- }
928
- }
929
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
930
- // and setting attributes through setAttribute etc, this is helpful
931
- attributeChangedCallback(t, e, n) {
932
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
933
- }
934
- disconnectedCallback() {
935
- this.$$cn = !1, Promise.resolve().then(() => {
936
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
937
- });
938
- }
939
- $$g_p(t) {
940
- return Object.keys(this.$$p_d).find(
941
- (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
942
- ) || t;
943
- }
944
- });
945
- function g(t, e, n, s) {
946
- const i = n[t]?.type;
947
- if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
948
- return e;
949
- if (s === "toAttribute")
950
- switch (i) {
951
- case "Object":
952
- case "Array":
953
- return e == null ? null : JSON.stringify(e);
954
- case "Boolean":
955
- return e ? "" : null;
956
- case "Number":
957
- return e ?? null;
958
- default:
959
- return e;
960
- }
961
- else
962
- switch (i) {
963
- case "Object":
964
- case "Array":
965
- return e && JSON.parse(e);
966
- case "Boolean":
967
- return e;
968
- case "Number":
969
- return e != null ? +e : e;
970
- default:
971
- return e;
972
- }
973
- }
974
- function et(t, e, n, s, i, l) {
975
- let u = class extends T {
976
- constructor() {
977
- super(t, n, i), this.$$p_d = e;
978
- }
979
- static get observedAttributes() {
980
- return Object.keys(e).map(
981
- (c) => (e[c].attribute || c).toLowerCase()
982
- );
983
- }
984
- };
985
- return Object.keys(e).forEach((c) => {
986
- Object.defineProperty(u.prototype, c, {
987
- get() {
988
- return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
989
- },
990
- set(o) {
991
- o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
992
- }
993
- });
994
- }), s.forEach((c) => {
995
- Object.defineProperty(u.prototype, c, {
996
- get() {
997
- return this.$$c?.[c];
998
- }
999
- });
1000
- }), t.element = /** @type {any} */
1001
- u, u;
1002
- }
1003
- class nt {
1004
- /**
1005
- * ### PRIVATE API
1006
- *
1007
- * Do not use, may change at any time
1008
- *
1009
- * @type {any}
1010
- */
1011
- $$ = void 0;
1012
- /**
1013
- * ### PRIVATE API
1014
- *
1015
- * Do not use, may change at any time
1016
- *
1017
- * @type {any}
1018
- */
1019
- $$set = void 0;
1020
- /** @returns {void} */
1021
- $destroy() {
1022
- Y(this, 1), this.$destroy = a;
1023
- }
1024
- /**
1025
- * @template {Extract<keyof Events, string>} K
1026
- * @param {K} type
1027
- * @param {((e: Events[K]) => void) | null | undefined} callback
1028
- * @returns {() => void}
1029
- */
1030
- $on(e, n) {
1031
- if (!P(n))
1032
- return a;
1033
- const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
1034
- return s.push(n), () => {
1035
- const i = s.indexOf(n);
1036
- i !== -1 && s.splice(i, 1);
1037
- };
1038
- }
1039
- /**
1040
- * @param {Partial<Props>} props
1041
- * @returns {void}
1042
- */
1043
- $set(e) {
1044
- this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
1045
- }
1046
- }
1047
- const it = "4";
1048
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
1049
- function st(t) {
1050
- I(t, "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)}}");
1051
- }
1052
- function rt(t) {
1053
- let e;
1054
- return {
1055
- c() {
1056
- e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
1057
- },
1058
- m(n, s) {
1059
- M(n, e, s), t[3](e);
1060
- },
1061
- p: a,
1062
- i: a,
1063
- o: a,
1064
- d(n) {
1065
- n && E(e), t[3](null);
1066
- }
1067
- };
1068
- }
1069
- function lt(t, e, n) {
1070
- let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
1071
- const u = () => {
1072
- let r = document.createElement("style");
1073
- r.innerHTML = s, l.appendChild(r);
1074
- }, c = () => {
1075
- let r = new URL(i), _ = document.createElement("style");
1076
- fetch(r.href).then((d) => d.text()).then((d) => {
1077
- _.innerHTML = d, setTimeout(
1078
- () => {
1079
- l.appendChild(_);
1080
- },
1081
- 1
1082
- ), setTimeout(
1083
- () => {
1084
- },
1085
- 500
1086
- );
1087
- });
1088
- };
1089
- function o(r) {
1090
- x[r ? "unshift" : "push"](() => {
1091
- l = r, n(0, l);
1092
- });
1093
- }
1094
- return t.$$set = (r) => {
1095
- "clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
1096
- }, t.$$.update = () => {
1097
- t.$$.dirty & /*clientstyling, customStylingContainer*/
1098
- 3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
1099
- 5 && i && l && c();
1100
- }, [l, s, i, o];
1101
- }
1102
- class ct extends nt {
1103
- constructor(e) {
1104
- super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
1105
- }
1106
- get clientstyling() {
1107
- return this.$$.ctx[1];
1108
- }
1109
- set clientstyling(e) {
1110
- this.$$set({ clientstyling: e }), m();
1111
- }
1112
- get clientstylingurl() {
1113
- return this.$$.ctx[2];
1114
- }
1115
- set clientstylingurl(e) {
1116
- this.$$set({ clientstylingurl: e }), m();
1117
- }
1118
- }
1119
- et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
649
+ var GeneralAnimationLoadingBrLCbjvF = {};
1120
650
 
1121
- function i(n) {
1122
- return function(...t) {
1123
- try {
1124
- return n.apply(this, t);
1125
- } catch (e) {
1126
- 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"))
1127
- return !1;
1128
- throw e;
1129
- }
1130
- };
1131
- }
1132
- customElements.define = i(customElements.define);
1133
- !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", ct.element);
651
+ (function (exports) {
652
+ var V=Object.defineProperty,z=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))q.call(t,n)&&x(e,n,t[n]);return e},M=(e,t)=>z(e,F(t));var $=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);var T=(e,t,n)=>new Promise((s,l)=>{var i=o=>{try{u(n.next(o));}catch(r){l(r);}},c=o=>{try{u(n.throw(o));}catch(r){l(r);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,c);u((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function B(){return Object.create(null)}function b(e){e.forEach(H);}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t);}function X(e,t,n){const s=Y(e);if(!s.getElementById(t)){const l=L("style");l.id=t,l.textContent=n,Z(s,l);}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null);}function C(e){e.parentNode&&e.parentNode.removeChild(e);}function L(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let j;function g(e){j=e;}const h=[],k=[];let p=[];const R=[],it=Promise.resolve();let v=!1;function st(){v||(v=!0,it.then(y));}function E(e){p.push(e);}const w=new Set;let a=0;function y(){if(a!==0)return;const e=j;do{try{for(;a<h.length;){const t=h[a];a++,g(t),rt(t.$$);}}catch(t){throw h.length=0,a=0,t}for(g(null),h.length=0,a=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];w.has(n)||(w.add(n),n());}p.length=0;}while(h.length);for(;R.length;)R.pop()();v=!1,w.clear(),g(e);}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(E);}}function lt(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t;}const ct=new Set;function ot(e,t){e&&e.i&&(ct.delete(e),e.i(t));}function ut(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),E(()=>{const i=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),l.forEach(E);}function dt(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function $t(e,t){e.$$.dirty[0]===-1&&(h.push(e),st(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function ft(e,t,n,s,l,i,c=null,u=[-1]){const o=j;g(e);const r=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:l,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:B(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(r.root);let f=!1;if(r.ctx=n(e,t.props||{},(d,O,...S)=>{const A=S.length?S[0]:O;return r.ctx&&l(r.ctx[d],r.ctx[d]=A)&&(!r.skip_bound&&r.bound[d]&&r.bound[d](A),f&&$t(e,d)),O}),r.update(),f=!0,b(r.before_update),r.fragment=s(r.ctx),t.target){if(t.hydrate){const d=et(t.target);r.fragment&&r.fragment.l(d),d.forEach(C);}else r.fragment&&r.fragment.c();t.intro&&ot(e.$$.fragment),ut(e,t.target,t.anchor),y();}g(o);}let D;typeof HTMLElement=="function"&&(D=class extends HTMLElement{constructor(t,n,s){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n));}}connectedCallback(){return T(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let c;return {c:function(){c=L("slot"),i!=="default"&&tt(c,"name",i);},m:function(r,f){U(r,c,f);},d:function(r){r&&C(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=nt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=m(c,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=m(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c);}this.$$r=!1;};this.$$c.$$.after_update.push(l),l();for(const i in this.$$l)for(const c of this.$$l[i]){const u=this.$$c.$on(i,c);this.$$l_u.set(c,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=m(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function m(e,t,n,s){var i;const l=(i=n[e])==null?void 0:i.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function at(e,t,n,s,l,i){let c=class extends D{constructor(){super(e,n,l),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var r;o=m(u,o,t),this.$$d[u]=o,(r=this.$$c)==null||r.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=c,c}class ht{constructor(){$(this,"$$");$(this,"$$set");}$destroy(){dt(this,1),this.$destroy=_;}$on(t,n){if(!I(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1);}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function pt(e){X(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 gt(e){let t;return {c(){t=L("div"),t.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){U(n,t,s),e[3](t);},p:_,i:_,o:_,d(n){n&&C(t),e[3](null);}}}function mt(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,i;const c=()=>{let r=document.createElement("style");r.innerHTML=s,i.appendChild(r);},u=()=>{let r=new URL(l),f=document.createElement("style");fetch(r.href).then(d=>d.text()).then(d=>{f.innerHTML=d,setTimeout(()=>{i.appendChild(f);},1),setTimeout(()=>{},500);});};function o(r){k[r?"unshift":"push"](()=>{i=r,n(0,i);});}return e.$$set=r=>{"clientstyling"in r&&n(1,s=r.clientstyling),"clientstylingurl"in r&&n(2,l=r.clientstylingurl);},e.$$.update=()=>{e.$$.dirty&3&&s&&i&&c(),e.$$.dirty&5&&l&&i&&u();},[i,s,l,o]}class J extends ht{constructor(t){super(),ft(this,t,mt,gt,K,{clientstyling:1,clientstylingurl:2},pt);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),y();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y();}}at(J,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=J;
653
+ }(GeneralAnimationLoadingBrLCbjvF));
654
+
655
+ if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingBrLCbjvF).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
1134
656
 
1135
657
  const casinoEngagementSuiteTournamentCss = ".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}";
1136
658
  const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;