@everymatrix/casino-engagement-suite-tournament 1.63.0 → 1.63.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-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-d24f1017.entry.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-f478f260.js +15 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_6.cjs.entry.js +110 -112
- package/dist/cjs/{casino-engagement-suite-tournament-1f1275c4.js → casino-engagement-suite-tournament-785dd5cc.js} +31 -56
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +6 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +26 -6
- package/dist/collection/shared/TournamentDurationTimer.js +45 -24
- package/dist/collection/shared/TournamentItem.js +10 -20
- package/dist/collection/shared/TournamentItemTitle.js +9 -7
- package/dist/collection/shared/renders.page.js +2 -2
- package/dist/collection/shared/renders.tab.js +1 -2
- package/dist/collection/utils/bussiness.js +6 -18
- package/dist/collection/utils/message.js +11 -7
- package/dist/esm/casino-engagement-suite-progress-bar_6.entry.js +109 -111
- package/dist/esm/{casino-engagement-suite-tournament-54c513f1.js → casino-engagement-suite-tournament-3be75bd2.js} +28 -54
- package/dist/esm/casino-engagement-suite-tournament.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +1 -0
- package/dist/types/components.d.ts +45 -41
- package/dist/types/shared/TournamentDurationTimer.d.ts +3 -2
- package/dist/types/shared/TournamentItem.d.ts +1 -2
- package/dist/types/shared/TournamentItemTitle.d.ts +1 -1
- package/dist/types/utils/bussiness.d.ts +1 -1
- package/dist/types/utils/message.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-14ab3c1a.entry.js +0 -1
- package/dist/casino-engagement-suite-tournament/p-5f051654.js +0 -15
- package/dist/collection/shared/renders.util.js +0 -16
- package/dist/types/shared/renders.util.d.ts +0 -2
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{h as e,H as t,r as i,c as n}from"./p-c6fe0205.js";
|
|
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,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}var o,a;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(o||(o={})),function(e){e.Starts="Starts",e.Ends="Ends"}(a||(a={}));const s=(e,t)=>(Object.keys(t).map((i=>{e=e.replace(`{${i}}`,t[i])})),e),l=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),a),{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."}),M=(...e)=>{let t=["Tab"];return e.map((e=>{switch(typeof e){case"string":t.push(e);break;case"object":Object.keys(e).map((i=>{e[i]&&t.push(i)}))}})),t.join(" ")};var d,c,u;!function(e){e.list="list",e.item="item"}(d||(d={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(c||(c={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(u||(u={}));const g=e=>[c.Closed,c.Closing].includes(e.state),p=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),D=e("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0c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AwOCA2LjY2NjY3TDkuMjgwMDggNi42NjU2OEM5LjI4MDU1IDYuMzUwOCA5LjE2OTU3IDYuMDQ1OTEgOC45NjY3OCA1LjgwNTAyQzguNzY0IDUuNTY0MTMgOC40ODI1MSA1LjQwMjc4IDguMTcyMTYgNS4zNDk1NVpNNy4zMzM0MSAxMS4zMzMzQzcuMzMzNDEgMTAuOTY1MSA3LjYzMTg5IDEwLjY2NjcgOC4wMDAwOCAxMC42NjY3SDguMDA2NzVDOC4zNzQ5NCAxMC42NjY3IDguNjczNDEgMTAuOTY1MSA4LjY3MzQxIDExLjMzMzNDOC42NzM0MSAxMS43MDE1IDguMzc0OTQgMTIgOC4wMDY3NSAxMkg4LjAwMDA4QzcuNjMxODkgMTIgNy4zMzM0MSAxMS43MDE1IDcuMzMzNDEgMTEuMzMzM1oiIGZpbGw9IiM2NjYxNzgiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTk3MV81MTYiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPHNjcmlwdCB4bWxucz0iIi8+PC9zdmc+Cg==",alt:"question",class:"Question"}),j=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),N=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),h=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),z=e("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIxMTVfMzA2K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MTAuNDU3MSAxMy4yMzcyIDkuNzc2NiAxMi42NjY3IDguOTYyODYgMTIuNjY2N0g3LjAzNjk0WiIgZmlsbD0iIzhGOEI5QyIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzIxMTVfMzA2Ij4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+CjxzY3JpcHQgeG1sbnM9IiIvPgo8L3N2Zz4K",alt:"reward",class:"Reward"}),m=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),x=t=>{var{statedClasses:i,innerHTML:n}=t,o=r(t,["statedClasses","innerHTML"]);const{isHollow:a,isPending:s}=i;return e("button",Object.assign({class:M("GradientRoundedButton","GradientRounded",{Hollow:a||!1,Pending:s||!1})},o),e("span",null,n))};var y;!function(e){e.normal="normal",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(y||(y={}));const T=(e,t,i=!1)=>{const{locale:n}=e,r={normal:{innerHTML:n.WinDialog.ButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:n.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:n.UnjoinDialog.ButtonNo}}[t];return x({statedClasses:Object.assign({isPending:i},r.statedClasses),onClick:()=>{var t;null===(t=r.onClick)||void 0===t||t.call(),e.closeDialog()},innerHTML:r.innerHTML})},I={gift(t){const{name:i}=t.gifts[0],{locale:n}=t;return e("div",{class:"PageConfirmContainer"},e("div",{class:"PageConfirm"},e("div",null,m),e("div",{class:"Title"},n.WinDialog.Tile),e("div",{class:"Description",innerHTML:s(n.WinDialog.Description,{tournamentName:i})}),e("div",{class:"PageConfirmButtonsGroup"},T(t,y.normal))))},unjoin(t){const{locale:i}=t;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},i.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:i.UnjoinDialog.Description}),T(t,y.unjoinYes),T(t,y.unjoinNo))}},b=e=>{const t=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],i={};return Object.keys(e).map((n=>{const r=e[n];i[n]="games"===n?r.items:t.includes(n)?new Date(r):r})),i},w=e=>{let{item:t,items:i}=e;return t?(-1!==i.findIndex((e=>e.userId===t.userId))||(i=[t,...i]),i.map((e=>(null==t?void 0:t.userId)&&t.userId===e.userId?Object.assign(Object.assign({},e),{isMe:!0}):e))):i},f=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),A=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),O=(e,t)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:t}),L=(e,t)=>{const{success:i,data:n}=t;let r=e.tournamentList.findIndex((e=>e.id===(n.tournamentId||n.id||n.bonusCode))),o=e.tournamentList[r];if(-1!=r){if(o=Object.assign(Object.assign({},o),{isActionJoinPending:!1}),!i)return e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],void((e,t)=>{e.dialog=Object.assign(Object.assign({},e.dialog),{isOpen:!0,type:t})})(e,u.error);if(o=Object.assign(Object.assign({},o),{isUnjoined:!!o.isPlayerAcknowledged,isPlayerAcknowledged:!o.isPlayerAcknowledged}),e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],e.page===d.item){if(o.isUnjoined)return void e.setPage(d.list);e.tournamentItem=Object.assign({},o)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0)}},v=(e,t)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==t.id))},C=(e,t)=>{const i=e.tournamentList.findIndex((e=>e.id===t.id));-1===i?e.tournamentList=[b(t),...e.tournamentList]:(e.tournamentList[i]=b(t),e.tournamentList=[...e.tournamentList])},k={list(t){var i;if(!(null==t?void 0:t.tournamentList))return t.tournamentList=null===(i=t.leaderboardsInit)||void 0===i?void 0:i.map((e=>b(e))),e("general-animation-loading",null);const{locale:n}=t;return E(t.tournamentList.length?e("div",{class:"Leaderboards ScrollBar Row"},t.tournamentList.map((i=>e("casino-engagement-suite-tournament-item",{tournament:i,isNew:t.newIdList.includes(i.id)})))):e("div",{class:"NoLeaderboards ScrollBar Row"},e("h3",{class:"Title"},n.NoLeaderboards),e("div",{class:"message"},n.NoLeaderboardsTip)))},item:t=>t.tournamentItem?E([e("casino-engagement-suite-tournament-item-title",{tournament:t.tournamentItem}),(()=>{const{locale:i,tab:n}=t;return e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(o).map((r=>e("div",{class:M({active:n===r}),onClick:()=>(e=>{switch(t.tab=e,e){case o.leaderboard:t.leaderboards=void 0,O(t.tournamentItem);break;case o.games:A(t.tournamentItem)}})(r)},i[r])))))})(),e("div",{class:`TableContentWrapper ${t.tab}`},t.renders.tab[t.tab]())]):e("general-animation-loading",null)},E=t=>e("div",{class:"Root"},e("div",{class:"Main"},t));function Y(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function S(e,t){return(new Date).getTime()>=t.getTime()?100:(100*((new Date).getTime()-e.getTime())/(t.getTime()-e.getTime())).toFixed(0)}function U(e,t){const i=Math.abs(t.getTime()-e.getTime()),n=Math.floor(i/864e5),r=Math.floor(i%864e5/36e5),o=Math.floor(i%36e5/6e4);return`${String(n).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(o).padStart(2,"0")}m`}const Q={info(t){var i,n;const{locale:r,tournamentItem:o,isShowInfo:a}=t;return e("div",{class:"InfoContainer"},(t=>e("section",{class:"TimeContainer"},e("div",{class:"Time"},"Running"===t.state?[e("div",{class:"Running"},e("div",null,U(new Date,t.endTime)),",",e("div",null,x({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${S(t.startTime,t.endTime)}%`})))]:[e("div",{class:"NotRunning"},Y(t.startTime)),e("div",null,Y(t.endTime))]),e("casino-engagement-suite-progress-bar",{value:Number(S(t.startTime,t.endTime)),"hide-percent":!0})))(o),e("section",{class:"ShowInfo",onClick:()=>t.isShowInfo=!t.isShowInfo},e("div",{class:"DetailHeader"},e("span",null,a?j:N),e("span",null,r.LeaderboardDetails))),e("div",{class:"ContentScrollContainer "+(a?"expanded":"")},a&&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))),g(t.tournamentItem)&&(null===(i=t.leaderboards)||void 0===i?void 0:i.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:s(r.TipPrize,P(null===(n=t.leaderboards)||void 0===n?void 0:n.find((e=>e.isMe))))}),e("section",{class:"PrizesContainer"},e("div",{class:"PrizesHeader"},z,e("span",{class:"PrizesText"},r.Prizes)),e("div",{class:"Prizes"},o.prizes.map(((t,i)=>e("div",{class:"Prize"},i+1," ",r.Place,": ",e("span",{class:"PrizeText"},t.name))))))))},leaderboard(t){const{locale:i,tournamentItem:n}=t;if("Unstarted"===(null==n?void 0:n.state)){const t=U(null==n?void 0:n.startTime,new Date);return e("div",{class:"LeaderboardUnstarted",innerHTML:s(i.TournamentNotStarted,{startTime:t})})}return t.leaderboards?t.leaderboards.length?e("table",{class:"Leaderboards"},t.leaderboards.map((t=>e("tr",{class:M({isMe:t.isMe})},e("td",{class:"LeaderboardRank"},e("span",null,t.rank)),e("td",{class:"LeaderboardName"},t.shortName),e("td",{class:"LeaderboardScore"},((e,t,i=!1)=>{const n=Number(e);if(isNaN(n))throw new Error("Input must be a valid number or string that can be converted to number");if(i&&!n.toString().includes("."))return e;if(0===t)return Math.floor(n);const r=Math.pow(10,t);return(Math.floor(n*r)/r).toFixed(t)})(t.score,2,!0)),e("td",{class:"LeaderboardPrize"},t.prizeName))))):e("div",{class:"LeaderboardUnstarted"},i.BeOne):e("general-animation-loading",null)},games(t){var i;return e("div",{class:"Games"},null===(i=t.tournamentItem.games)||void 0===i?void 0:i.map((i=>e("div",{class:"Game "+(t.currentGameId==i.id?"Current":""),onClick:()=>{t.onGameClick(i)}},e("img",{src:i.defaultThumbnail,alt:""})))))}},P=e=>({prize:e.prizeName,place:e.rank}),F={dialog:I,page:k,tab:Q};var R,G={};(function(e){var t=Object.defineProperty,i=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,l=(e,t)=>{for(var i in t||(t={}))o.call(t,i)&&s(e,i,t[i]);if(r)for(var i of r(t))a.call(t,i)&&s(e,i,t[i]);return e},M=(e,t)=>i(e,n(t)),d=(e,t,i)=>(s(e,"symbol"!=typeof t?t+"":t,i),i);function c(){}function u(e){return e()}function g(){return Object.create(null)}function p(e){e.forEach(u)}function D(e){return"function"==typeof e}function j(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function N(e,t,i){e.insertBefore(t,i||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function z(e){return document.createElement(e)}let m;function x(e){m=e}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const y=[],T=[];let I=[];const b=[],w=Promise.resolve();let f=!1;function A(e){I.push(e)}const O=new Set;let L=0;function v(){if(0!==L)return;const e=m;do{try{for(;L<y.length;){const e=y[L];L++,x(e),C(e.$$)}}catch(e){throw y.length=0,L=0,e}for(x(null),y.length=0,L=0;T.length;)T.pop()();for(let e=0;e<I.length;e+=1){const t=I[e];O.has(t)||(O.add(t),t())}I.length=0}while(y.length);for(;b.length;)b.pop()();f=!1,O.clear(),x(e)}function C(e){if(null!==e.fragment){e.update(),p(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}const k=new Set;function E(e,t,i,n,r,o,a=null,s=[-1]){const l=m;x(e);const M=e.$$={fragment:null,ctx:[],props:o,update:c,not_equal:r,bound:g(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:g(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(M.root);let d=!1;if(M.ctx=i?i(e,t.props||{},((t,i,...n)=>{const o=n.length?n[0]:i;return M.ctx&&r(M.ctx[t],M.ctx[t]=o)&&(!M.skip_bound&&M.bound[t]&&M.bound[t](o),d&&function(e,t){-1===e.$$.dirty[0]&&(y.push(e),f||(f=!0,w.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],M.update(),d=!0,p(M.before_update),M.fragment=!!n&&n(M.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);M.fragment&&M.fragment.l(e),e.forEach(h)}else M.fragment&&M.fragment.c();t.intro&&function(e){e&&e.i&&(k.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:r}=e.$$;n&&n.m(t,i),A((()=>{const t=e.$$.on_mount.map(u).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...t):p(t),e.$$.on_mount=[]})),r.forEach(A)}(e,t.target,t.anchor),v()}x(l)}let Y;function S(e,t,i,n){var r;const o=null==(r=i[e])?void 0:r.type;if(t="Boolean"===o&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(o){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(Y=class extends HTMLElement{constructor(e,t,i){super(),d(this,"$$ctor"),d(this,"$$s"),d(this,"$$c"),d(this,"$$cn",!1),d(this,"$$d",{}),d(this,"$$r",!1),d(this,"$$p_d",{}),d(this,"$$l",{}),d(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}connectedCallback(){return e=this,t=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=z("slot"),"default"!==e&&function(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}(t,"name",e)},m:function(e,i){N(e,t,i)},d:function(e){e&&h(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=S(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:M(l({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=S(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}},new Promise(((i,n)=>{var r=e=>{try{a(t.next(e))}catch(e){n(e)}},o=e=>{try{a(t.throw(e))}catch(e){n(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,o);a((t=t.apply(e,null)).next())}));var e,t}attributeChangedCallback(e,t,i){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=S(e,i,this.$$p_d,"toProp"),null==(n=this.$$c)||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class U{constructor(){d(this,"$$"),d(this,"$$set")}$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];I.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),I=t}(i.after_update),p(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=c}$on(e,t){if(!D(t))return c;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Q(e){!function(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!n.getElementById(t)){const e=z("style");e.id=t,e.textContent=i,function(e,t){!function(e,t){e.appendChild(t)}(e.head||e,t)}(n,e)}}(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function P(e){let t;return{c(){t=z("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,n){N(i,t,n),e[4](t)},p:c,i:c,o:c,d(i){i&&h(t),e[4](null)}}}function F(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:o=""}=t,{mbsource:a}=t;return function(e){(function(){if(!m)throw new Error("Function called outside component initialization");return m})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl),"mbsource"in e&&i(3,a=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&r&&n&&function(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}(n,r),5&e.$$.dirty&&o&&n&&function(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,o),9&e.$$.dirty&&a&&n&&function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(n,`${a}.Style`)},[n,r,o,a,function(e){T[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class R extends U{constructor(e){super(),E(this,e,F,P,j,{clientstyling:1,clientstylingurl:2,mbsource:3},Q)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),v()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),v()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),v()}}!function(e,t,i){let n=class extends Y{constructor(){super(e,i,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};Object.keys(t).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){var n;i=S(e,i,t),this.$$d[e]=i,null==(n=this.$$c)||n.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),e.element=n}(R,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),e.default=R})(G),"undefined"!=typeof window&&(customElements.define=(R=customElements.define,function(...e){try{return R.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>G)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)})));const W=t=>{const{left:i,middle:n,right:r}=t,o={left:i,middle:n,right:r};return e("div",{class:"WrapperBar"},Object.keys(o).map((t=>{return e("div",{class:"WrapperBar"+(i=t,i.split("").map(((e,t)=>0===t?e.toUpperCase():e)).join(""))},o[t]||"");var i})))},B=class{handleEvent(e){var t,i;const n=e.data,{type:o}=n,a=r(n,["type"]);var s;null===(i=null===(s=this,t={UpdateLeaderboardsPlayerRes:e=>{const t=(e=>{let t;return e.map((e=>{var i;const n=null===(i=e.leaderBoard)||void 0===i?void 0:i.rank;n&&(t?n<t.leaderBoard.rank&&(t=e):t=e)})),t?`${t.leaderBoard.rank} / ${t.endRank}`:"-"})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:t})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const t=b(e.data.item);s.tournamentItem=t,((e,t)=>{e.tournamentList=e.tournamentList.map((e=>e.id===t.id?b(t):e))})(s,t)},UpdateLeaderboardsRes:e=>((e,t)=>{e.leaderboards=w(t.data),e.currentPlyerRank=t.data.item?t.data.item.rank:-1})(s,e),JoinTournamentRes:e=>L(s,e),UnjoinTournamentRes:e=>L(s,e),TournamentsPageIsReadyRes:e=>s.currentGameId=e.data.GameId,LeaderboardLiveEvent:e=>{((e,t)=>{const{messageType:i,item:n}=t;switch(i){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":C(e,n);break;case"TournamentRemove":v(e,n);break;case"LeaderBoardUpdate":e.leaderboards=w(t)}})(s,e)}})||void 0===t?void 0:t[o])||void 0===i||i.call(null,a)}handleClickToTournamentDetail(e){const t=e.detail;this.setPage(d.item,{tournament:t}),this.newIdList=this.newIdList.filter((e=>e!==t.id))}handleJoinTournamentEvent(e){const t=e.detail;this.actionJoin(t),this.tournamentItem=t}handleUnjoinTournamentEvent(e){const{tournament:t}=e.detail;this.openDialog(u.unjoin,t)}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,t){if(t){const r=(i=t,n=(e,t)=>e.id===t.id,e.filter((e=>!i.some((t=>n(e,t))))));this.newIdList=[...this.newIdList,...r.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var i,n}showPropWatcher(e,t){0==t&&1==e&&(this.checkGift(),this.page=d.list)}addLabel(e){this.labels.includes(e)||this.labels.push(e),f(this.labels)}removeLabel(e){this.labels=this.labels.filter((t=>t!=e)),f(this.labels)}checkGift(){this.gifts.length?this.openDialog(u.gift,this.gifts[0],(()=>{this.dialog.type===u.gift&&(this.gifts=this.gifts.slice(1),setTimeout((()=>{this.checkGift()}),300))})):this.removeLabel("win")}getContainerScrollTop(){var e;return this.page===d.list?this.containerScrollTop:(null===(e=this.detailElement)||void 0===e?void 0:e.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})),window.postMessage({type:"TournamentsPageIsReady"})}renderTooltip(){return this.showTooltip?e("div",{class:"question__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.locale.Tip}):null}connectedCallback(){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===d.item&&this.tab===o.leaderboard?this.currentPlyerRank>this.maxPlyerRank&&!this.scrolledToMyLine&&this.scrollToMyRankLine():this.page===d.list&&(this.scrolledToMyLine=!1)}onGameClick(e){e.id!==this.currentGameId&&(e=>{window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:e.slug}})})(e)}actionJoin(e){if(!e.isActionJoinPending)try{e.isPlayerAcknowledged?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{window.postMessage({type:"JoinTournamentReq",id:e.id})})(e)}catch(e){return void console.log("error",e)}}setPage(e,t){var i;this.page=e,e===d.item&&(this.isShowInfo=!1,this.tournamentItem=t.tournament,this.tournamentItem||A(t.tournament),g(this.tournamentItem)&&O(this.tournamentItem),this.tab=o.info),this.tournamentTimer.emit({page:e,tournamentId:null===(i=this.tournamentItem)||void 0===i?void 0:i.id})}render(){return e(t,null,e("general-styling-wrapper",{clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:l,translationUrl:this.translationUrl}),e("div",{class:`Wrapper ${this.device}`},e("div",{class:M("WrapperContent",{faded:this.dialog.isOpen})},W({left:this.page===d.list?e("span",{onClick:this.openDialog.bind(this,u.tip)},D):e("span",{onClick:this.setPage.bind(this,d.list)},h),middle:this.locale.Leaderboards,right:e("span",{onClick:()=>this.close.emit()},p)}),e("div",{class:`Leaderboards ${this.page} ${"list"===this.page?"Active":"Hidden"}`,ref:e=>this.pageElement=e},this.renders.page.list()),this.page===d.item&&e("div",{class:`Leaderboards ${this.page} ${"item"===this.page?"Active":"Hidden"} `,ref:e=>this.detailElement=e},this.renders.page.item())),e("div",{class:"WrapperUtil"},e("dialog",{open:this.dialog.isOpen,style:{top:this.getContainerScrollTop()+"px"}},e("div",{class:"GradientRounded Hollow"},W({right:e("span",{onClick:()=>this.closeDialog()},p)}),this.dialog.isOpen&&(()=>{switch(this.dialog.type){case u.unjoin:return this.renders.dialog.unjoin();case u.tip:return e("div",{class:"Tip"},this.locale.Tip);case u.error:return e("div",{class:"Tip Error"},this.locale.FailedToJoin);case u.gift:return this.renders.dialog.gift()}})())))))}openDialog(e,t,i){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:i,type:e,data:t})}closeDialog(){var e;null===(e=this.dialog.onClose)||void 0===e||e.call(this),this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1,onClose:void 0})}constructor(e){i(this,e),this.close=n(this,"close",7),this.tournamentTimer=n(this,"tournamentTimer",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=l,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isDialogOpen=!1,this.isShowInfo=!1,this.page=d.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.newIdList=[],this.renders={},Object.keys(F).forEach((e=>{this.renders[e]={},Object.keys(F[e]).forEach((t=>{this.renders[e][t]=F[e][t].bind(this,this)}))}))}static get watchers(){return{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};B.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 .TableContentWrapper{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Wrapper .WrapperContent .TableContentWrapper{height:calc(100vh - 278px);overflow-y:auto}.Wrapper .WrapperContent .Main{height:calc(100vh - 188px)}.Wrapper.Mobile{border-radius:16px}.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}.ScrollBar{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0;padding-top:5px}.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 .Running{width:100%;display:flex;flex-direction:row;justify-content:space-between}.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.Current{cursor:auto;filter:grayscale(10)}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25))}.Games .Game.Current:hover{cursor:auto;filter:grayscale(10)}.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{B as C,u as D,d as L,l as T,c as a,S as b,M as c,Y as f,U as g,x as r}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { getTimeDifference, formatDate, getProgress } from "../utils/util.date";
|
|
3
|
-
import { renderGradientRoundedButton } from "./GradientRoundedButton";
|
|
4
|
-
export const renderTimeBar = (tournament) => {
|
|
5
|
-
return (h("section", { class: "TimeContainer" }, h("div", { class: "Time" }, tournament.state === 'Running'
|
|
6
|
-
? [
|
|
7
|
-
h("div", { class: 'Running' }, h("div", null, getTimeDifference(new Date(), tournament.endTime)), ",", h("div", null, renderGradientRoundedButton({
|
|
8
|
-
statedClasses: {
|
|
9
|
-
isHollow: true,
|
|
10
|
-
isPendding: false
|
|
11
|
-
},
|
|
12
|
-
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
13
|
-
})))
|
|
14
|
-
]
|
|
15
|
-
: [h("div", { class: 'NotRunning' }, formatDate(tournament.startTime)), h("div", null, formatDate(tournament.endTime))]), h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
16
|
-
};
|