@everymatrix/casino-engagement-suite-tournament 1.60.2 → 1.61.1
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-b582ab53.entry.js → p-2dd35709.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-2de8ee45.js +15 -0
- package/dist/casino-engagement-suite-tournament/{p-a9e7f099.js → p-bfca9e2a.js} +1 -1
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +2 -2
- package/dist/cjs/{casino-engagement-suite-tournament-0a51ec72.js → casino-engagement-suite-tournament-49cebf14.js} +123 -36
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-3539ab09.js → index-982cd594.js} +2 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/reward.svg +11 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +80 -26
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +58 -6
- package/dist/collection/shared/icons.js +2 -1
- package/dist/collection/shared/renders.page.js +5 -5
- package/dist/collection/shared/renders.tab.js +4 -2
- package/dist/collection/shared/renders.util.js +3 -4
- package/dist/collection/utils/api.apdater.js +1 -1
- package/dist/collection/utils/bussiness.js +15 -0
- package/dist/collection/utils/message.js +15 -9
- package/dist/collection/utils/utils.js +38 -1
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +2 -2
- package/dist/esm/{casino-engagement-suite-tournament-8680a674.js → casino-engagement-suite-tournament-bd7c9cdd.js} +123 -36
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-ecf4f553.js → index-ac437a77.js} +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +19 -9
- package/dist/types/utils/bussiness.d.ts +12 -0
- package/dist/types/utils/message.d.ts +2 -0
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +6 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-e7ecbdf5.js +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-bfca9e2a.js";export{s as setNonce}from"./p-bfca9e2a.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["p-2dd35709",[[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],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],time:[32],newIdList:[32]},[[8,"message","handleEvent"],[4,"click","handleClickOutside"]],{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-2de8ee45.js";import"./p-bfca9e2a.js";import"@everymatrix/general-animation-loading/dist";
|
|
@@ -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-bfca9e2a.js";export{C as casino_engagement_suite_tournament}from"./p-2de8ee45.js";import"@everymatrix/general-animation-loading/dist";const s=class{constructor(t){e(this,t),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)}))},this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}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.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)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}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,15 @@
|
|
|
1
|
+
import{h as e,H as i,r as t,c as a}from"./p-bfca9e2a.js";import"@everymatrix/general-animation-loading/dist";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */function r(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)i.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t}var o,n;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(o||(o={})),function(e){e.Starts="Starts",e.Ends="Ends"}(n||(n={}));const s=(e,i)=>(Object.keys(i).map((t=>{e=e.replace(`{${t}}`,i[t])})),e),d=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),n),{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.",TournamentNotStarted:"The leaderboard is not started yet. <br> It will start in {startTime}.",BeOne:"No winners for the time being. Be one of them!",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),l=(...e)=>{let i=["Tab"];return e.map((e=>{switch(typeof e){case"string":i.push(e);break;case"object":Object.keys(e).map((t=>{e[t]&&i.push(t)}))}})),i.join(" ")},M=()=>{const e=(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(e)return"PC"===e?"dk":"iPad"===e||"iPhone"===e?"ios":"mtWeb"};var c,g,p;!function(e){e.list="list",e.item="item"}(c||(c={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(g||(g={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(p||(p={}));const u=e=>[g.Closed,g.Closing].includes(e.state),m=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),z=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"}),j=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),y=e("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIxMTVfMzA2KSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNC45MDI5MiAwLjY2NjQ5NkM0LjkyMzM5IDAuNjY2NTc5IDQuOTQzNCAwLjY2NjY2IDQuOTYyODYgMC42NjY2NkgxMS4wMzY5QzExLjA1NjQgMC42NjY2NiAxMS4wNzY0IDAuNjY2NTc5IDExLjA5NjkgMC42NjY0OTZDMTEuMzA1NiAwLjY2NTY1MyAxMS41NjI3IDAuNjY0NjEzIDExLjc4OTMgMC43NDcwN0MxMi4xNTk2IDAuODgxODY4IDEyLjQ1MTQgMS4xNzM2MSAxMi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svg"}),N=i=>{var{statedClasses:t,innerHTML:a}=i,o=r(i,["statedClasses","innerHTML"]);const{isHollow:n,isPending:s}=t;return e("button",Object.assign({class:l("GradientRoundedButton","GradientRounded",{Hollow:n||!1,Pending:s||!1})},o),e("span",null,a))};var D;!function(e){e.normal="normal",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(D||(D={}));const T=(e,i,t=!1)=>{const{locale:a}=e,r={normal:{innerHTML:a.WinDialog.ButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:a.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:a.UnjoinDialog.ButtonNo}}[i];return N({statedClasses:Object.assign({isPending:t},r.statedClasses),onClick:()=>{var i;null===(i=r.onClick)||void 0===i||i.call(),e.closeDialog()},innerHTML:r.innerHTML})},w={gift(i){const{name:t}=i.gifts[0],{locale:a}=i;return e("div",{class:"PageConfirmContainer"},e("div",{class:"PageConfirm"},e("div",null,h),e("div",{class:"Title"},a.WinDialog.Tile),e("div",{class:"Description",innerHTML:s(a.WinDialog.Description,{tournamentName:t})}),e("div",{class:"PageConfirmButtonsGroup"},T(i,D.normal))))},unjoin(i){const{locale:t}=i;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),T(i,D.unjoinYes),T(i,D.unjoinNo))}},I=e=>{const i=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],t={};return Object.keys(e).map((a=>{const r=e[a];t[a]="games"===a?r.items:i.includes(a)?new Date(r):r})),t},L=e=>{let{item:i,items:t}=e;return i?t.map((e=>(null==i?void 0:i.userId)&&i.userId===e.userId?Object.assign(Object.assign({},e),{isMe:!0}):e)):t},v=i=>{const{left:t,middle:a,right:r}=i,o={left:t,middle:a,right:r};return e("div",{class:"WrapperBar"},Object.keys(o).map((i=>{return e("div",{class:"WrapperBar"+(t=i,t.split("").map(((e,i)=>0===i?e.toUpperCase():e)).join(""))},o[i]||"");var t})))};function f(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function O(e,i){return(100*((new Date).getTime()-e.getTime())/(i.getTime()-e.getTime())).toFixed(0)}function A(e,i){const t=Math.abs(i.getTime()-e.getTime()),a=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4);return`${String(a).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(o).padStart(2,"0")}m`}const k=i=>e("section",{class:"TimeContainer"},e("div",{class:"Time"},"Running"===i.state?[e("div",{class:"Running"},e("div",null,A(new Date,i.endTime)),",",e("div",null,N({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${O(i.startTime,i.endTime)}%`})))]:[e("div",{class:"NotRunning"},f(i.startTime)),e("div",null,f(i.endTime))]),e("casino-engagement-suite-progress-bar",{value:Number(O(i.startTime,i.endTime)),"hide-percent":!0})),C=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),E=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),Y=(e,i)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:i}),U=(e,i)=>{const{success:t,data:a}=i;let r=e.tournamentList.findIndex((e=>e.id===(a.tournamentId||a.id||a.bonusCode))),o=e.tournamentList[r];if(o.isActionJoinPending=!1,!t)return e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],void((e,i)=>{e.dialog=Object.assign(Object.assign({},e.dialog),{isOpen:!0,type:i})})(e,p.error);o=Object.assign(Object.assign({},o),{isUnjoined:!!o.isPlayerAcknowledged,isPlayerAcknowledged:!o.isPlayerAcknowledged}),e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0)},S=(e,i)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i.id))},Q=(e,i)=>{const t=e.tournamentList.findIndex((e=>e.id===i.id));-1!==t?e.tournamentList[t]=I(i):e.tournamentList=e.tournamentList.concat(I(i))},P={list(i){var t;if(!(null==i?void 0:i.tournamentList))return i.tournamentList=null===(t=i.leaderboardsInit)||void 0===t?void 0:t.map((e=>I(e))),e("general-animation-loading",null);const{locale:a}=i;if(i.tournamentList.length){const t=e=>{i.setPage(c.item,{tournament:e}),i.newIdList=i.newIdList.filter((i=>i!==e.id))};return R(i,e("div",{class:"Leaderboards Row"},i.tournamentList.map((a=>e("div",{class:l("LeaderboardsItem",a.isPlayerAcknowledged?" GradientRounded Hollow":"",a.isUnjoined?"Unjoined":""),onClick:()=>t(a)},e("div",{class:"LeaderboardsItemContainer"},F(i,a),k(a)),e("div",{class:"LeaderboardLabels"},i.newIdList.includes(a.id)&&e("div",{class:"LeaderboardLabel"},e("span",null,"new"))))))))}return R(i,e("div",{class:"NoLeaderboards Row"},e("h3",{class:"Title"},a.NoLeaderboards),e("div",{class:"message"},a.NoLeaderboardsTip)))},item:i=>i.tournamentItem?R(i,[F(i,i.tournamentItem),(()=>{const{locale:t,tab:a}=i;return e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(o).map((r=>e("div",{class:l({active:a===r}),onClick:()=>(e=>{switch(i.tab=e,e){case o.leaderboard:i.leaderboards=void 0,Y(i.tournamentItem);break;case o.games:E(i.tournamentItem)}})(r)},t[r])))))})(),e("div",{class:`TableContentWrapper ${i.tab}`},i.renders.tab[i.tab]())]):e("general-animation-loading",null)},F=(i,t)=>{const{locale:a}=i;return e("div",{class:"TitleContainer"},e("div",{class:"Title"},t.nameOrTitle),t.state!==g.Closed&&e("div",null,N({statedClasses:{isHollow:t.isPlayerAcknowledged,isPending:t.isActionJoinPending},onClick:e=>{e.stopPropagation(),t.isActionJoinPending||(e=>{e.isPlayerAcknowledged?i.openDialog(p.unjoin,e):(i.actionJoin(e),i.tournamentItem=e)})(t)},innerHTML:t.isPlayerAcknowledged?a.Unjoin:a.Join})))},R=(i,t)=>{const{dialog:{isOpen:a}}=i,r=v({right:e("span",{onClick:()=>i.closeDialog()},m)});return e("div",{class:`Wrapper ${i.device}`},e("div",{class:l("WrapperContent",{faded:a})},(()=>{const{left:t,middle:a}=(()=>{const{page:t,locale:a}=i;switch(t){case c.list:return{left:e("span",{onClick:()=>i.openDialog(p.tip),onMouseEnter:()=>{i.showTooltip=!0},onMouseLeave:()=>{i.showTooltip=!1},ref:e=>i.tooltipIconReference=e},x,i.renderTooltip()),middle:a.Leaderboards};case c.item:return{left:e("span",{onClick:()=>i.setPage(c.list)},j),middle:a.Leaderboards}}})();return v({left:t,middle:a,right:e("span",{onClick:()=>i.close.emit()},m)})})(),e("div",{class:"Root"},e("div",{class:"Main"},t))),e("div",{class:"WrapperUtil"},e("dialog",{open:a,style:{top:i.getContainerScrollTop()+"px"}},e("div",{class:"GradientRounded Hollow"},r,a&&(()=>{switch(i.dialog.type){case p.unjoin:return i.renders.dialog.unjoin();case p.tip:return e("div",{class:"Tip"},i.locale.Tip);case p.error:return e("div",{class:"Tip Error"},i.locale.FailedToJoin);case p.gift:return i.renders.dialog.gift()}})()))))},H={info(i){var t,a;const{locale:r,tournamentItem:o,isShowInfo:n}=i;return e("div",{class:"InfoContainer"},k(o),e("section",{class:"ShowInfo",onClick:()=>i.isShowInfo=!i.isShowInfo},e("div",{class:"DetailHeader"},e("span",null,n?z:b),e("span",null,r.LeaderboardDetails))),e("div",{class:"ContentScrollContainer "+(n?"expanded":"")},n&&e("section",{class:"Info"},e("div",{class:"Description"},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))),!!o.termsUrl&&e("div",{class:"TC"},e("a",{href:o.termsUrl,target:"_blank"},r.TC))),u(i.tournamentItem)&&(null===(t=i.leaderboards)||void 0===t?void 0:t.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:s(r.TipPrize,W(null===(a=i.leaderboards)||void 0===a?void 0:a.find((e=>e.isMe))))}),e("section",{class:"PrizesContainer"},e("div",{class:"PrizesHeader"},y,e("span",{class:"PrizesText"},r.Prizes)),e("div",{class:"Prizes"},o.prizes.map(((i,t)=>e("div",{class:"Prize"},t+1," ",r.Place,": ",e("span",{class:"PrizeText"},i.name))))))))},leaderboard(i){const{locale:t,tournamentItem:a}=i;if("Unstarted"===(null==a?void 0:a.state)){const i=A(null==a?void 0:a.startTime,new Date);return e("div",{class:"LeaderboardUnstarted",innerHTML:s(t.TournamentNotStarted,{startTime:i})})}return i.leaderboards?i.leaderboards.length?e("table",{class:"Leaderboards"},i.leaderboards.map((i=>e("tr",{class:l({isMe:i.isMe})},e("td",{class:"LeaderboardRank"},e("span",null,i.rank)),e("td",{class:"LeaderboardName"},i.shortName),e("td",{class:"LeaderboardScore"},((e,i,t=!1)=>{const a=Number(e);if(isNaN(a))throw new Error("Input must be a valid number or string that can be converted to number");if(t&&!a.toString().includes("."))return e;if(0===i)return Math.floor(a);const r=Math.pow(10,i);return(Math.floor(a*r)/r).toFixed(i)})(i.score,2,!0)),e("td",{class:"LeaderboardPrize"},i.prizeName))))):e("div",{class:"LeaderboardUnstarted"},t.BeOne):e("general-animation-loading",null)},games(i){var t;return e("div",{class:"Games"},null===(t=i.tournamentItem.games)||void 0===t?void 0:t.map((t=>e("div",{class:"Game",onClick:()=>{i.onGameClick(t)}},e("img",{src:t.defaultThumbnail,alt:""})))))}},W=e=>({prize:e.prizeName,place:e.rank}),B={dialog:w,page:P,tab:H},G=class{handleEvent(e){var i,t;const a=e.data,{type:o}=a,n=r(a,["type"]);var s;null===(t=null===(s=this,i={UpdateLeaderboardsPlayerRes:e=>{const i=(e=>{let i;return e.map((e=>{var t;const a=null===(t=e.leaderBoard)||void 0===t?void 0:t.rank;a&&(i?a<i.leaderBoard.rank&&(i=e):i=e)})),i?`${i.leaderBoard.rank} / ${i.endRank}`:"-"})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:i})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const i=I(e.data.item);s.tournamentItem=i,((e,i)=>{e.tournamentList=e.tournamentList.map((e=>e.id===i.id?I(i):e))})(s,i)},UpdateLeaderboardsRes:e=>((e,i)=>{e.leaderboards=L(i.data),e.currentPlyerRank=i.data.item?i.data.item.rank:-1})(s,e),JoinTournamentRes:e=>U(s,e),UnjoinTournamentRes:e=>U(s,e),LeaderboardLiveEvent:e=>{((e,i)=>{const{messageType:t,item:a}=i;switch(t){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":Q(e,a);break;case"TournamentRemove":S(e,a);break;case"LeaderBoardUpdate":e.leaderboards=L(i)}})(s,e)}})||void 0===i?void 0:i[o])||void 0===t||t.call(null,n)}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,i){if(i){const r=(t=i,a=(e,i)=>e.id===i.id,e.filter((e=>!t.some((i=>a(e,i))))));this.newIdList=[...this.newIdList,...r.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var t,a}showPropWatcher(e,i){0==i&&1==e&&(this.checkGift(),this.page=c.list)}addLabel(e){this.labels.includes(e)||this.labels.push(e),C(this.labels)}removeLabel(e){this.labels=this.labels.filter((i=>i!=e)),C(this.labels)}setTimeInterval(){this.timeHolder=setInterval((()=>{this.time=this.tournamentList||this.tournamentItem?this.time+1:0}),1e3)}checkGift(){this.gifts.length?this.openDialog(p.gift,this.gifts[0],(()=>{this.dialog.type===p.gift&&(this.gifts=this.gifts.slice(1),setTimeout((()=>{this.checkGift()}),300))})):this.removeLabel("win")}getContainerScrollTop(){return this.page===c.list?this.containerScrollTop:this.detailElement.clientHeight/2-250}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidLoad(){this.pageElement.addEventListener("scroll",(e=>{this.containerScrollTop=e.target.scrollTop+e.target.clientHeight/2-250}))}renderTooltip(){return this.showTooltip?e("div",{class:"question__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.locale.Tip}):null}connectedCallback(){this.setTimeInterval(),window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}scrollToMyRankLine(){this.detailElement.querySelectorAll(".isMe").length&&(this.detailElement.querySelectorAll(".TableContentWrapper.leaderboard")[0].scrollTo({top:this.detailElement.querySelectorAll(".isMe")[0].offsetTop,behavior:"smooth"}),this.scrolledToMyLine=!0)}componentDidRender(){this.page!==c.item||this.tab!==o.leaderboard||this.scrolledToMyLine?this.scrolledToMyLine=!1:this.currentPlyerRank>this.maxPlyerRank&&this.scrollToMyRankLine()}disconnectedCallback(){clearInterval(this.timeHolder)}onGameClick(e){(e=>{window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:e.slug}})})(e)}actionJoin(e){if(!e.isActionJoinPending){e.isActionJoinPending=!0;try{e.isPlayerAcknowledged?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var i,t;window.postMessage({type:"JoinTournamentReq",id:e.id,bonusCode:e.id||(null===(t=null===(i=e.wallets)||void 0===i?void 0:i[0])||void 0===t?void 0:t.code)})})(e)}catch(e){return void console.log("error",e)}}}setPage(e,i){var t;e==c.item&&(this.tournamentItem=i.tournament,this.tournamentItem||(t={type:"GetTournamentGamesById",pathParams:{id:i.tournament.id},payload:{expand:"games",pagination:"games(limit=50,offset=0)",fields:"games(id,name,thumbnail,launchUrl)",platform:M(),language:this.language}},window.postMessage(Object.assign({},t)),E(i.tournament)),u(this.tournamentItem)&&Y(this.tournamentItem)),this.tab=o.info,this.page=e}render(){return e(i,{key:"5a65900ecb503dd01f8f39774b92a6e95048dbf3"},e("general-styling-wrapper",{key:"58cee35cf4142512e9b49566787b48cbc2761a4a",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:d,translationUrl:this.translationUrl}),e("div",{key:"1848e193e8c61fe6bc9d3e123b7651cb1b97981b",class:`Leaderboards ${this.page} ${"list"===this.page?"Active":"Hidden"}`,ref:e=>this.pageElement=e},this.renders.page.list()),e("div",{key:"f865edc80013565981b76df146e99ebf1d5d4721",class:`Leaderboards ${this.page} ${"item"===this.page?"Active":"Hidden"} `,ref:e=>this.detailElement=e},this.renders.page.item()))}openDialog(e,i,t){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:t,type:e,data:i})}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){t(this,e),this.close=a(this,"close",7),this.gifts=[],this.labels=[],this.showTooltip=!1,this.maxPlyerRank=30,this.scrolledToMyLine=!1,this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.leaderboardsInit=void 0,this.tab=o.info,this.locale=d,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],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.newIdList=[],this.renders={},Object.keys(B).forEach((e=>{this.renders[e]={},Object.keys(B[e]).forEach((i=>{this.renders[e][i]=B[e][i].bind(this,this)}))}))}static get watchers(){return{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};G.style='.Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}.Wrapper{position:relative;min-height:100%;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px}.Wrapper.Mobile{border-radius:16px}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 278px);overflow-y:auto}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBar .WrapperBarLeft span{position:relative}.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:10px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.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}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat}.TitleContainer .GradientRoundedButton{width:120px}.TabsContainer{margin:10px 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 .Tab{text-transform:capitalize}.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:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:12px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;max-height:300px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:15px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{padding-left:15px;margin-top:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:12px 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);border:1px solid var(--emw--color-primary, rgb(255, 214, 47))}.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));font-weight:var(--emw--font-weight-semibold, 500)}.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)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:start;margin:20px auto}.Games .Game{cursor:pointer;width:25%;display:flex;padding:5px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25))}.Games img{width:100%;height:fit-content}dialog{position:absolute;top:30px;width:100%;height:max-content;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}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)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.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}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}';export{G as C}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},d={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],$=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.l?g(w):d.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(y),b($),(m=y.length>0)&&d.raf(w)},g=e=>h().then(e),k=v($,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>M,ok:()=>C,unwrap:()=>T,unwrapErr:()=>A});var C=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return E(e.value);throw"should never get here"}var x,R,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!j(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?N(null,l):l),r=i)};if(u(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=N(e,null);return a.u=t,c.length>0&&(a.h=c),a.p=o,a.m=s,a},N=(e,t)=>({l:0,$:e,i:t,v:null,h:null,u:null,p:null,m:null}),D={},F=e=>n(e).$hostElement$,H=(e,t,n)=>{const l=F(e);return{emit:e=>U(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},U=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,q=e=>"sc-"+e.k,G=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=_(n),s=_(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(B,""),n&&d.rel(e,t,n,o),l&&d.ael(e,t,l,o)}}},V=/\s/,_=e=>e?e.split(V):[],z="Capture",B=RegExp(z+"$"),I=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of J(Object.keys(o)))e in s||G(l,e,o[e],void 0,n,t.l);for(const e of J(Object.keys(s)))G(l,e,o[e],s[e],n,t.l)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=!1,X=!1,Y=!1,Z=(e,t,n,l)=>{var o;const s=t.h[n];let i,r,c,u=0;if(K||(X=!0,"slot"===s.$&&(x&&l.classList.add(x+"-s"),s.l|=s.h?2:1)),null!==s.i)i=s.v=f.createTextNode(s.i);else if(1&s.l)i=s.v=f.createTextNode("");else if(i=s.v=f.createElement(!K&&2&s.l?"slot-fb":s.$),I(null,s,Y),null!=x&&i["s-si"]!==x&&i.classList.add(i["s-si"]=x),s.h)for(u=0;u<s.h.length;++u)r=Z(e,s,u,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.l&&(i["s-sr"]=!0,i["s-cr"]=R,i["s-sn"]=s.m||"",i["s-rf"]=null==(o=s.u)?void 0:o.ref,c=e&&e.h&&e.h[n],c&&c.$===s.$&&e.v&&ee(e.v,!1)),i},ee=(e,t)=>{d.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==P&&l["s-ol"]&&(de(se(l),l,oe(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,X=!0),t&&ee(l,t)}d.l&=-2},te=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=Z(null,n,o,e),i&&(l[o].v=i,de(r,i,oe(t))))},ne=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;fe(t),e&&(Q=!0,e["s-ol"]?e["s-ol"].remove():ee(e,!0),e.remove())}}},le=(e,t,n=!1)=>e.$===t.$&&("slot"===e.$?e.m===t.m:!!n||e.p===t.p),oe=e=>e&&e["s-ol"]||e,se=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ie=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.$||K)&&I(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(le(d,m,o))ie(d,m,o),d=t[++r],m=l[++c];else if(le(h,y,o))ie(h,y,o),h=t[--f],y=l[--p];else if(le(d,y,o))"slot"!==d.$&&"slot"!==y.$||ee(d.v.parentNode,!1),ie(d,y,o),de(e,d.v,h.v.nextSibling),d=t[++r],y=l[--p];else if(le(h,m,o))"slot"!==d.$&&"slot"!==y.$||ee(h.v.parentNode,!1),ie(h,m,o),de(e,h.v,d.v),h=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.$!==m.$?s=Z(t&&t[c],n,u,e):(ie(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=Z(t&&t[c],n,c,e),m=l[++c]),s&&de(se(d.v),s,oe(d.v))}r>f?te(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ne(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),te(l,null,t,s,0,s.length-1)):null!==o&&ne(o,0,o.length-1)):(r=l["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(l.data=i)},re=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}re(e)}},ce=[],ue=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(ae(t,e)){let n=ce.find((e=>e.S===t));Q=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=o["s-hn"],n.j=o):(t["s-sh"]=o["s-hn"],ce.push({j:o,S:t})),t["s-sr"]&&ce.map((e=>{ae(e.S,t["s-sn"])&&(n=ce.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ce.some((e=>e.S===t))||ce.push({S:t})}1===o.nodeType&&ue(o)}},ae=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,fe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(fe)},de=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),he=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},pe=(e,t)=>{if(e.l|=16,!(4&e.l))return he(e,e.C),k((()=>me(e,t)));e.l|=512},me=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.M&&(e.M.map((([e,t])=>ke(n,e,t))),e.M=void 0),l=ke(n,"componentWillLoad")),ye(l,(()=>ve(e,n,t)))},ye=(e,t)=>$e(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),$e=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ve=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.R,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=q(t),o=r.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,i=W.get(e=e.head||e);if(i||W.set(e,i=new Set),!i.has(l)){{s=f.createElement("style"),s.innerHTML=o;const t=null!=(n=d.P)?n:O(f);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);be(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>we(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},be=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.R,u=e.T||N(null,null),a=(e=>e&&e.$===D)(t)?t:L(null,null,t);if(P=r.tagName,c.A&&(a.u=a.u||{},c.A.map((([e,t])=>a.u[t]=r[e]))),n&&a.u)for(const e of Object.keys(a.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.u[e]=r[e]);if(a.$=null,a.l|=4,e.T=a,a.v=u.v=r.shadowRoot||r,x=r["s-sc"],K=!!(1&c.l),R=r["s-cr"],Q=!1,ie(u,a,n),d.l|=1,X){ue(a.v);for(const e of ce){const t=e.S;if(!t["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t,de(t.parentNode,t["s-ol"]=e,t)}}for(const e of ce){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),de(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Q&&re(a.v),d.l&=-2,ce.length=0,R=void 0})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},we=e=>{const t=e.$hostElement$,n=e.t,l=e.C;ke(n,"componentDidRender"),64&e.l||(e.l|=64,Se(t),ke(n,"componentDidLoad"),e.L(t),l||ge()),e.O&&(e.O(),e.O=void 0),512&e.l&&g((()=>pe(e,!1))),e.l&=-517},ge=()=>{Se(f.documentElement),g((()=>U(a,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Se=e=>e.classList.add("hydrated"),je=(e,t,l)=>{var o,i;const r=e.prototype;if(t.N||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.N)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.k}" 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.F.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.N[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.F.set(t,l),a)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&pe(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){d.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.D)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},Oe=e=>{ke(e,"connectedCallback")},Ce=e=>{ke(e,"disconnectedCallback")},Ee=(e,l={})=>{var o;const u=[],h=l.exclude||[],m=a.customElements,y=f.head,$=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let w,g=!0;Object.assign(d,l),d.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],k:l[1],N:l[2],H:l[3]};4&c.l&&(k=!0),c.N=l[2],c.H=l[3],c.A=[],c.D=null!=(o=l[4])?o:{};const a=c.k,y=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,R:n,F:new Map};l.U=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Me(this,e,c.H)),w&&(clearTimeout(w),w=null),g?b.push(this):d.jmp((()=>(e=>{if(!(1&d.l)){const t=n(e),l=t.R,o=()=>{};if(1&t.l)Me(e,t,l.H),(null==t?void 0:t.t)?Oe(t.t):(null==t?void 0:t.U)&&t.U.then((()=>Oe(t.t)));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,de(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){he(t,t.C=n);break}}l.N&&Object.entries(l.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.W;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.q}" was not found`);l.isProxied||(n.D=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),Oe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.C,c=()=>pe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?Ce(e.t):(null==e?void 0:e.U)&&e.U.then((()=>Ce(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],h.includes(a)||m.get(a)||(u.push(a),m.define(a,je(y,c,1)))}))})),u.length>0&&(k&&(v.textContent+=c),v.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=d.P)?o:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Re(e,n),i=xe(t,o),r=Pe(n);d.ael(s,l,i,r),(t.G=t.G||[]).push((()=>d.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Re=(e,t)=>8&t?a:e,Pe=e=>({passive:!!(1&e),capture:!!(2&e)}),Te=e=>d.P=e;export{D as H,Ee as b,H as c,F as g,L as h,h as p,l as r,Te as s}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.q}" was not found`);l.isProxied||(n.D=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),Oe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.C,c=()=>pe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?Ce(e.t):(null==e?void 0:e.U)&&e.U.then((()=>Ce(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],h.includes(a)||m.get(a)||(u.push(a),m.define(a,je(y,c,1)))}))})),u.length>0&&(k&&(v.textContent+=c),v.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=d.P)?o:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Re(e,n),i=xe(t,o),r=Pe(n);d.ael(s,l,i,r),(t.G=t.G||[]).push((()=>d.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Re=(e,t)=>4&t?f:8&t?a:e,Pe=e=>({passive:!!(1&e),capture:!!(2&e)}),Te=e=>d.P=e;export{D as H,Ee as b,H as c,F as g,L as h,h as p,l as r,Te as s}
|
|
@@ -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-982cd594.js');
|
|
6
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-49cebf14.js');
|
|
7
7
|
require('@everymatrix/general-animation-loading/dist');
|
|
8
8
|
|
|
9
9
|
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)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-982cd594.js');
|
|
4
4
|
require('@everymatrix/general-animation-loading/dist');
|
|
5
5
|
|
|
6
6
|
/*! *****************************************************************************
|
|
@@ -59,7 +59,7 @@ const TRANSLATIONS = Object.assign(Object.assign(Object.assign({ Join: 'Join', U
|
|
|
59
59
|
}, 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.', TournamentNotStarted: 'The leaderboard is not started yet. <br> It will start in {startTime}.', BeOne: 'No winners for the time being. Be one of them!', FailedToJoin: 'Oops! some unexpected error happened, please try it again.', FailedToUnjoin: 'Oops! some unexpected error happened, please try it again.' });
|
|
60
60
|
|
|
61
61
|
const classnames = (...args) => {
|
|
62
|
-
let classnameArray = [];
|
|
62
|
+
let classnameArray = ['Tab'];
|
|
63
63
|
args.map((arg) => {
|
|
64
64
|
switch (typeof arg) {
|
|
65
65
|
case 'string':
|
|
@@ -108,6 +108,33 @@ const truncateNumber = (value, decimals, isInteger = false) => {
|
|
|
108
108
|
// Return string representation with fixed decimals to preserve trailing zeros
|
|
109
109
|
return truncated.toFixed(decimals);
|
|
110
110
|
};
|
|
111
|
+
const getDevice = () => {
|
|
112
|
+
let userAgent = window.navigator.userAgent;
|
|
113
|
+
if (userAgent.toLowerCase().match(/android/i)) {
|
|
114
|
+
return 'Android';
|
|
115
|
+
}
|
|
116
|
+
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
117
|
+
return 'iPhone';
|
|
118
|
+
}
|
|
119
|
+
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
120
|
+
return 'iPad';
|
|
121
|
+
}
|
|
122
|
+
return 'PC';
|
|
123
|
+
};
|
|
124
|
+
const getDevicePlatform = () => {
|
|
125
|
+
const device = getDevice();
|
|
126
|
+
if (device) {
|
|
127
|
+
if (device === 'PC') {
|
|
128
|
+
return 'dk';
|
|
129
|
+
}
|
|
130
|
+
else if (device === 'iPad' || device === 'iPhone') {
|
|
131
|
+
return 'ios';
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return 'mtWeb';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
111
138
|
|
|
112
139
|
var LeaderboardPage;
|
|
113
140
|
(function (LeaderboardPage) {
|
|
@@ -157,12 +184,14 @@ const isTournamentClosed = (tournament) => {
|
|
|
157
184
|
return [TournamentState.Closed, TournamentState.Closing].includes(tournament.state);
|
|
158
185
|
};
|
|
159
186
|
|
|
187
|
+
const rewardSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0P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y42NjY2IDMuMzMzMzNIMTIuNjY2NlpNNy4wMzY5NCAxMi42NjY3QzYuMjIzMiAxMi42NjY3IDUuNTQyNzEgMTMuMjM3MiA1LjM3MzYxIDE0SDEwLjYyNjJDMTAuNDU3MSAxMy4yMzcyIDkuNzc2NiAxMi42NjY3IDguOTYyODYgMTIuNjY2N0g3LjAzNjk0WiIgZmlsbD0iIzhGOEI5QyIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzIxMTVfMzA2Ij4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+CjxzY3JpcHQgeG1sbnM9IiIvPgo8L3N2Zz4K';
|
|
188
|
+
|
|
160
189
|
const iconClose = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg" });
|
|
161
190
|
const iconQuestion = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/help.svg" });
|
|
162
191
|
const iconEyeOpen = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg" });
|
|
163
192
|
const iconEyeClose = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg" });
|
|
164
193
|
const iconBack = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg" });
|
|
165
|
-
const iconReward = index.h("img", { src: "
|
|
194
|
+
const iconReward = index.h("img", { src: rewardSvg, alt: "reward", class: "Reward" });
|
|
166
195
|
const iconTrophy = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg" });
|
|
167
196
|
|
|
168
197
|
const renderGradientRoundedButton = (_a) => {
|
|
@@ -257,7 +286,7 @@ const leaderboardsAdapter = (leaderboardRes) => {
|
|
|
257
286
|
return leaderboards;
|
|
258
287
|
}
|
|
259
288
|
return leaderboards.map((leaderboard) => {
|
|
260
|
-
if (item && item.
|
|
289
|
+
if ((item === null || item === void 0 ? void 0 : item.userId) && item.userId === leaderboard.userId) {
|
|
261
290
|
return Object.assign(Object.assign({}, leaderboard), { isMe: true });
|
|
262
291
|
}
|
|
263
292
|
else {
|
|
@@ -306,20 +335,28 @@ const renderTimeBar = (tournament) => {
|
|
|
306
335
|
return (index.h("section", { class: "TimeContainer" },
|
|
307
336
|
index.h("div", { class: "Time" }, tournament.state === 'Running'
|
|
308
337
|
? [
|
|
309
|
-
index.h("div",
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
338
|
+
index.h("div", { class: 'Running' },
|
|
339
|
+
index.h("div", null, getTimeDifference(new Date(), tournament.endTime)),
|
|
340
|
+
",",
|
|
341
|
+
index.h("div", null, renderGradientRoundedButton({
|
|
342
|
+
statedClasses: {
|
|
343
|
+
isHollow: true,
|
|
344
|
+
isPendding: false
|
|
345
|
+
},
|
|
346
|
+
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
347
|
+
})))
|
|
317
348
|
]
|
|
318
|
-
: [index.h("div",
|
|
349
|
+
: [index.h("div", { class: 'NotRunning' }, formatDate(tournament.startTime)), index.h("div", null, formatDate(tournament.endTime))]),
|
|
319
350
|
index.h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
320
351
|
};
|
|
321
352
|
|
|
322
353
|
const messageSender = {
|
|
354
|
+
InitTournamentList: (queryParams) => {
|
|
355
|
+
window.postMessage(Object.assign({ type: 'InitTournamentList' }, queryParams));
|
|
356
|
+
},
|
|
357
|
+
post: (options) => {
|
|
358
|
+
window.postMessage(Object.assign({}, options));
|
|
359
|
+
},
|
|
323
360
|
UpdateSuiteBarState: (labels) => window.postMessage({ type: 'UpdateLeaderboardState', labels }),
|
|
324
361
|
JoinTournamentReq: (tournament) => {
|
|
325
362
|
var _a, _b;
|
|
@@ -333,7 +370,7 @@ const messageSender = {
|
|
|
333
370
|
UpdateTournamentsItemReq: (tournament) => window.postMessage({ type: 'UpdateTournamentsItemReq', id: tournament.id }),
|
|
334
371
|
UpdateLeaderboardsReq: (tournament, query) => window.postMessage({ type: 'UpdateLeaderboardsReq', id: tournament.id, query }),
|
|
335
372
|
UpdateLeaderboardsPlayerReq: () => window.postMessage({ type: 'UpdateLeaderboardsPlayerReq' }),
|
|
336
|
-
GameClickReq: (game) => window.postMessage({ type: '
|
|
373
|
+
GameClickReq: (game) => window.postMessage({ type: 'EngagementSuiteGameRedirect', data: { Slug: game.slug } }),
|
|
337
374
|
};
|
|
338
375
|
const messageReceiver = (instance) => {
|
|
339
376
|
const receiver = {
|
|
@@ -349,17 +386,13 @@ const messageReceiver = (instance) => {
|
|
|
349
386
|
instance.tournamentItem = tournamentNew;
|
|
350
387
|
updateTournamentListByItem(instance, tournamentNew);
|
|
351
388
|
},
|
|
352
|
-
UpdateLeaderboardsRes: (rest) =>
|
|
353
|
-
instance.leaderboards = leaderboardsAdapter(rest.data);
|
|
354
|
-
},
|
|
389
|
+
UpdateLeaderboardsRes: (rest) => processLeaderboardTableData(instance, rest),
|
|
355
390
|
JoinTournamentRes: (rest) => commonJoinRes(instance, rest),
|
|
356
|
-
UnjoinTournamentRes: (rest) =>
|
|
357
|
-
commonJoinRes(instance, rest);
|
|
358
|
-
},
|
|
391
|
+
UnjoinTournamentRes: (rest) => commonJoinRes(instance, rest),
|
|
359
392
|
// listen to LeaderboardLiveEvent event, handle update
|
|
360
393
|
LeaderboardLiveEvent: (rest) => {
|
|
361
394
|
handleLeaderboardLiveEvent(instance, rest);
|
|
362
|
-
}
|
|
395
|
+
},
|
|
363
396
|
};
|
|
364
397
|
return receiver;
|
|
365
398
|
};
|
|
@@ -442,7 +475,7 @@ const showErrorMessage = (instance, type) => {
|
|
|
442
475
|
};
|
|
443
476
|
const commonJoinRes = (instance, rest) => {
|
|
444
477
|
const { success, data } = rest;
|
|
445
|
-
let tournamentIdx = instance.tournamentList.findIndex((tournament) => tournament.id === (data.id || data.bonusCode)), current = instance.tournamentList[tournamentIdx];
|
|
478
|
+
let tournamentIdx = instance.tournamentList.findIndex((tournament) => tournament.id === (data.tournamentId || data.id || data.bonusCode)), current = instance.tournamentList[tournamentIdx];
|
|
446
479
|
current.isActionJoinPending = false;
|
|
447
480
|
if (!success) {
|
|
448
481
|
instance.tournamentList[tournamentIdx] = current;
|
|
@@ -458,6 +491,10 @@ const commonJoinRes = (instance, rest) => {
|
|
|
458
491
|
instance.nextPage = undefined;
|
|
459
492
|
}
|
|
460
493
|
};
|
|
494
|
+
const processLeaderboardTableData = (instance, rest) => {
|
|
495
|
+
instance.leaderboards = leaderboardsAdapter(rest.data);
|
|
496
|
+
instance.currentPlyerRank = rest.data.item ? rest.data.item.rank : -1;
|
|
497
|
+
};
|
|
461
498
|
const updateTournamentListByItem = (instance, tournament) => {
|
|
462
499
|
instance.tournamentList = instance.tournamentList.map((_tournament) => {
|
|
463
500
|
if (_tournament.id === tournament.id) {
|
|
@@ -494,7 +531,7 @@ const page = {
|
|
|
494
531
|
instance.setPage(LeaderboardPage.item, { tournament });
|
|
495
532
|
instance.newIdList = instance.newIdList.filter((id) => id !== tournament.id);
|
|
496
533
|
};
|
|
497
|
-
return renderLeaderboardContainer(instance, index.h("div", { class:
|
|
534
|
+
return renderLeaderboardContainer(instance, index.h("div", { class: 'Leaderboards Row' }, instance.tournamentList.map((_tournament) => (index.h("div", { class: classnames('LeaderboardsItem', _tournament.isPlayerAcknowledged ? ' GradientRounded Hollow' : '', _tournament.isUnjoined ? 'Unjoined' : ''), onClick: () => onClickListItemChangePage(_tournament) },
|
|
498
535
|
index.h("div", { class: "LeaderboardsItemContainer" },
|
|
499
536
|
renderTitleContainer(instance, _tournament),
|
|
500
537
|
renderTimeBar(_tournament)),
|
|
@@ -503,8 +540,8 @@ const page = {
|
|
|
503
540
|
}
|
|
504
541
|
else {
|
|
505
542
|
return renderLeaderboardContainer(instance, index.h("div", { class: "NoLeaderboards Row" },
|
|
506
|
-
index.h("
|
|
507
|
-
index.h("div",
|
|
543
|
+
index.h("h3", { class: 'Title' }, locale.NoLeaderboards),
|
|
544
|
+
index.h("div", { class: 'message' }, locale.NoLeaderboardsTip)));
|
|
508
545
|
}
|
|
509
546
|
},
|
|
510
547
|
item(instance) {
|
|
@@ -531,7 +568,7 @@ const page = {
|
|
|
531
568
|
return renderLeaderboardContainer(instance, [
|
|
532
569
|
renderTitleContainer(instance, instance.tournamentItem),
|
|
533
570
|
renderTabs(),
|
|
534
|
-
instance.renders.tab[instance.tab]()
|
|
571
|
+
index.h("div", { class: `TableContentWrapper ${instance.tab}` }, instance.renders.tab[instance.tab]())
|
|
535
572
|
]);
|
|
536
573
|
}
|
|
537
574
|
};
|
|
@@ -584,7 +621,9 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
584
621
|
switch (page) {
|
|
585
622
|
case LeaderboardPage.list:
|
|
586
623
|
return {
|
|
587
|
-
left: index.h("span", { onClick: () => instance.openDialog(DialogType.tip) },
|
|
624
|
+
left: index.h("span", { onClick: () => instance.openDialog(DialogType.tip), onMouseEnter: () => { instance.showTooltip = true; }, onMouseLeave: () => { instance.showTooltip = false; }, ref: (el) => instance.tooltipIconReference = el },
|
|
625
|
+
iconQuestion,
|
|
626
|
+
instance.renderTooltip()),
|
|
588
627
|
middle: locale.Leaderboards
|
|
589
628
|
};
|
|
590
629
|
case LeaderboardPage.item:
|
|
@@ -608,7 +647,7 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
608
647
|
index.h("div", { class: "Root" },
|
|
609
648
|
index.h("div", { class: "Main" }, render))),
|
|
610
649
|
index.h("div", { class: "WrapperUtil" },
|
|
611
|
-
index.h("dialog", { open: isOpen, style: { 'top': instance.
|
|
650
|
+
index.h("dialog", { open: isOpen, style: { 'top': instance.getContainerScrollTop() + 'px' } },
|
|
612
651
|
index.h("div", { class: "GradientRounded Hollow" },
|
|
613
652
|
renderBar,
|
|
614
653
|
isOpen && renderDialogContent())))));
|
|
@@ -621,12 +660,12 @@ const tab = {
|
|
|
621
660
|
return (index.h("div", { class: "InfoContainer" },
|
|
622
661
|
renderTimeBar(tournament),
|
|
623
662
|
index.h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) },
|
|
624
|
-
index.h("
|
|
625
|
-
index.h("span", null, isShowInfo ?
|
|
663
|
+
index.h("div", { class: 'DetailHeader' },
|
|
664
|
+
index.h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose),
|
|
626
665
|
index.h("span", null, locale.LeaderboardDetails))),
|
|
627
666
|
index.h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` },
|
|
628
667
|
isShowInfo && (index.h("section", { class: "Info" },
|
|
629
|
-
index.h("div",
|
|
668
|
+
index.h("div", { class: 'Description' }, tournament.description),
|
|
630
669
|
index.h("div", { class: "Criterias" },
|
|
631
670
|
index.h("div", null,
|
|
632
671
|
locale.ScoreCriteria,
|
|
@@ -670,7 +709,9 @@ const tab = {
|
|
|
670
709
|
},
|
|
671
710
|
games(instance) {
|
|
672
711
|
var _a;
|
|
673
|
-
return (index.h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map((game) => (index.h("div", { class: 'Game', onClick: () => {
|
|
712
|
+
return (index.h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map((game) => (index.h("div", { class: 'Game', onClick: () => {
|
|
713
|
+
instance.onGameClick(game);
|
|
714
|
+
} },
|
|
674
715
|
index.h("img", { src: game.defaultThumbnail, alt: "" }))))));
|
|
675
716
|
}
|
|
676
717
|
};
|
|
@@ -687,7 +728,7 @@ const renders = {
|
|
|
687
728
|
tab
|
|
688
729
|
};
|
|
689
730
|
|
|
690
|
-
const casinoEngagementSuiteTournamentCss = ".Leaderboards{height:100%;overflow-y:auto}.Wrapper{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}.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{opacity:1;transition:1s opacity ease;position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.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}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img{width:12px}.PrizesHeader .PrizesText{margin-left:3px;font-weight:600}.Prizes{margin:24px 0;padding:0 20px;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;max-height:300px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px}*{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:#FFD029;font-weight:var(--emw--font-weight-semibold, 500)}.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)}.LeaderboardUnstarted{margin:24px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:24px 0;padding:0 20px;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:start;margin:20px auto}.Games .Game{cursor:pointer;width:25%;display:flex;padding:5px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25))}.Games img{width:100%;height:fit-content}dialog{position:absolute;top:30px;width:100%;height:max-content;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}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)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.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}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}";
|
|
731
|
+
const casinoEngagementSuiteTournamentCss = ".Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}.Wrapper{position:relative;min-height:100%;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px}.Wrapper.Mobile{border-radius:16px}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 278px);overflow-y:auto}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBar .WrapperBarLeft span{position:relative}.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:10px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.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}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat}.TitleContainer .GradientRoundedButton{width:120px}.TabsContainer{margin:10px 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 .Tab{text-transform:capitalize}.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:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:12px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;max-height:300px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:15px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{padding-left:15px;margin-top:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:12px 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);border:1px solid var(--emw--color-primary, rgb(255, 214, 47))}.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));font-weight:var(--emw--font-weight-semibold, 500)}.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)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:start;margin:20px auto}.Games .Game{cursor:pointer;width:25%;display:flex;padding:5px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25))}.Games img{width:100%;height:fit-content}dialog{position:absolute;top:30px;width:100%;height:max-content;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}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)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.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}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}";
|
|
691
732
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
692
733
|
|
|
693
734
|
const CasinoEngagementSuiteTournament = class {
|
|
@@ -755,15 +796,47 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
755
796
|
this.removeLabel('win');
|
|
756
797
|
}
|
|
757
798
|
}
|
|
799
|
+
getContainerScrollTop() {
|
|
800
|
+
return this.page === LeaderboardPage.list ? this.containerScrollTop : this.detailElement.clientHeight / 2 - 250;
|
|
801
|
+
}
|
|
802
|
+
handleClickOutside(event) {
|
|
803
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
804
|
+
return;
|
|
805
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
806
|
+
this.showTooltip = false;
|
|
807
|
+
}
|
|
758
808
|
componentDidLoad() {
|
|
759
809
|
this.pageElement.addEventListener('scroll', (event) => {
|
|
760
|
-
this.containerScrollTop = event.target.scrollTop +
|
|
810
|
+
this.containerScrollTop = event.target.scrollTop + event.target.clientHeight / 2 - 250;
|
|
761
811
|
});
|
|
762
812
|
}
|
|
813
|
+
renderTooltip() {
|
|
814
|
+
if (this.showTooltip) {
|
|
815
|
+
return (index.h("div", { class: `question__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.locale.Tip }));
|
|
816
|
+
}
|
|
817
|
+
return null;
|
|
818
|
+
}
|
|
763
819
|
connectedCallback() {
|
|
764
820
|
this.setTimeInterval();
|
|
765
821
|
messageSender.UpdateLeaderboardsPlayerReq();
|
|
766
822
|
}
|
|
823
|
+
scrollToMyRankLine() {
|
|
824
|
+
if (!this.detailElement.querySelectorAll('.isMe').length) {
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
(this.detailElement.querySelectorAll('.TableContentWrapper.leaderboard')[0]).scrollTo({ top: this.detailElement.querySelectorAll('.isMe')[0].offsetTop, behavior: 'smooth' });
|
|
828
|
+
this.scrolledToMyLine = true;
|
|
829
|
+
}
|
|
830
|
+
componentDidRender() {
|
|
831
|
+
if (this.page === LeaderboardPage.item && this.tab === Tab.leaderboard && !this.scrolledToMyLine) {
|
|
832
|
+
if (this.currentPlyerRank > this.maxPlyerRank) {
|
|
833
|
+
this.scrollToMyRankLine();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
this.scrolledToMyLine = false;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
767
840
|
disconnectedCallback() {
|
|
768
841
|
clearInterval(this.timeHolder);
|
|
769
842
|
}
|
|
@@ -791,6 +864,17 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
791
864
|
if (page == LeaderboardPage.item) {
|
|
792
865
|
this.tournamentItem = metaData.tournament;
|
|
793
866
|
if (!this.tournamentItem) {
|
|
867
|
+
messageSender.post({
|
|
868
|
+
type: 'GetTournamentGamesById',
|
|
869
|
+
pathParams: { id: metaData.tournament.id },
|
|
870
|
+
payload: {
|
|
871
|
+
expand: 'games',
|
|
872
|
+
pagination: 'games(limit=50,offset=0)',
|
|
873
|
+
fields: 'games(id,name,thumbnail,launchUrl)',
|
|
874
|
+
platform: getDevicePlatform(),
|
|
875
|
+
language: this.language
|
|
876
|
+
}
|
|
877
|
+
});
|
|
794
878
|
messageSender.UpdateTournamentsItemReq(metaData.tournament);
|
|
795
879
|
}
|
|
796
880
|
if (isTournamentClosed(this.tournamentItem)) {
|
|
@@ -801,9 +885,9 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
801
885
|
this.page = page;
|
|
802
886
|
}
|
|
803
887
|
render() {
|
|
804
|
-
return (index.h(index.Host, { key: '
|
|
888
|
+
return (index.h(index.Host, { key: '5a65900ecb503dd01f8f39774b92a6e95048dbf3' }, index.h("general-styling-wrapper", { key: '58cee35cf4142512e9b49566787b48cbc2761a4a', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
805
889
|
// @ts-ignore
|
|
806
|
-
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { key: '
|
|
890
|
+
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { key: '1848e193e8c61fe6bc9d3e123b7651cb1b97981b', class: `Leaderboards ${this.page} ${this.page === 'list' ? 'Active' : 'Hidden'}`, ref: el => this.pageElement = el }, this.renders.page.list()), index.h("div", { key: 'f865edc80013565981b76df146e99ebf1d5d4721', class: `Leaderboards ${this.page} ${this.page === 'item' ? 'Active' : 'Hidden'} `, ref: el => this.detailElement = el }, this.renders.page.item())));
|
|
807
891
|
}
|
|
808
892
|
openDialog(type, data = undefined, onClose = undefined) {
|
|
809
893
|
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: true, onClose,
|
|
@@ -820,6 +904,9 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
820
904
|
this.close = index.createEvent(this, "close", 7);
|
|
821
905
|
this.gifts = [];
|
|
822
906
|
this.labels = [];
|
|
907
|
+
this.showTooltip = false;
|
|
908
|
+
this.maxPlyerRank = 30;
|
|
909
|
+
this.scrolledToMyLine = false;
|
|
823
910
|
this.language = 'en';
|
|
824
911
|
this.show = false;
|
|
825
912
|
this.clientStyling = '';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-982cd594.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_3.cjs",[[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],"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]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_3.cjs",[[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],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32],"newIdList":[32]},[[8,"message","handleEvent"],[4,"click","handleClickOutside"]],{"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]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|