@everymatrix/casino-engagement-suite-container 1.73.0 → 1.73.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.
@@ -1 +1 @@
1
- import{r as t,c as i,h as s}from"./index-58fe1cb7.js";import{D as e,d as n,r as a,t as h,L as d,f as o,b as r,h as c}from"./util.date-3169fc53.js";import"./utils-25141486.js";const l=class{constructor(s){t(this,s),this.unjoinTournamentConfirmEvent=i(this,"unjoinTournamentConfirmEvent",7),this.joinTournamentEvent=i(this,"joinTournamentEvent",7),this.tournament=void 0,this.language="en",this.isButtonDisabed=!1}onTournamentChanged(t){this.isButtonDisabed=!0===t.isActionJoinPending}onClickItemJoin(){this.isButtonDisabed||(this.isButtonDisabed=!this.tournament.isPlayerAcknowledged,this.tournament.isPlayerAcknowledged?this.unjoinTournamentConfirmEvent.emit({type:e.unjoin,tournament:this.tournament}):this.joinTournamentEvent.emit(this.tournament))}componentDidLoad(){this.isButtonDisabed=!0===this.tournament.isActionJoinPending}render(){return s("div",{key:"3123b0ffd6335833a5938b13e4c620ded693da38",class:"TitleContainer"},s("div",{key:"88977f242dd5cce6265c679ae55dc1dfdecd7fd0",class:"Title"},this.tournament.nameOrTitle),!n(this.tournament)&&s("div",{key:"bf2aad175409e687ed2bd42350a7f8585d86c112"},a({statedClasses:{isHollow:this.tournament.isPlayerAcknowledged,isPending:this.isButtonDisabed},onClick:t=>{t.stopPropagation(),this.onClickItemJoin()},innerHTML:h(this.tournament.isPlayerAcknowledged?"Unjoin":"Join",this.language)})))}static get watchers(){return{tournament:["onTournamentChanged"]}}},m=class{constructor(i){t(this,i),this.tournament=void 0,this.isDetail=!1,this.timeHolder=void 0,this.timeClock=!0,this.lastTimeDiff=void 0,this.lastProgress=void 0}containerPageChangeHandler(t){this.timeClock=t.detail.page===d.list&&!this.isDetail||t.detail.page===d.item&&this.isDetail}componentWillLoad(){this.lastProgress=o(this.tournament.startTime,this.tournament.endTime),this.lastTimeDiff=r(new Date,this.tournament.endTime,this.lastProgress)}setTimeInterval(){this.timeHolder=setInterval((()=>{const t=o(this.tournament.startTime,this.tournament.endTime),i=r(new Date,this.tournament.endTime,t);!this.timeClock||n(this.tournament)||i==this.lastTimeDiff&&t==this.lastProgress||(this.lastProgress=t,this.lastTimeDiff=i)}),2e3)}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}render(){return s("section",{key:"11426165a8f384d97f2b0158f7435f80ac0965a2",class:"TimeContainer"},s("div",{key:"b86c8a42a73b358fcc855a853cb322d1d314471a",class:"Time"},"Running"===this.tournament.state?s("div",{class:"Running"},s("div",null,this.lastTimeDiff),s("div",null,a({statedClasses:{isHollow:!0,isPending:!!this.tournament.isActionJoinPending},innerHTML:`${this.lastProgress}%`}))):[s("div",{class:"NotRunning"},c(this.tournament.startTime)),s("div",null,c(this.tournament.endTime))]),s("casino-engagement-suite-progress-bar",{key:"7f98e88679f30d0a0737d94ee806b1d92800b6a3",indeterminate:!1,value:Number(this.lastProgress>=100?100:this.lastProgress),"hide-percent":!0}))}};export{l as tournament_item_title,m as tournament_timer}
1
+ import{r as t,c as i,h as s}from"./index-58fe1cb7.js";import{D as e,d as n,r as a,t as h,L as d,f as o,b as r,h as c}from"./util.date-308e74a2.js";import"./utils-25141486.js";const l=class{constructor(s){t(this,s),this.unjoinTournamentConfirmEvent=i(this,"unjoinTournamentConfirmEvent",7),this.joinTournamentEvent=i(this,"joinTournamentEvent",7),this.tournament=void 0,this.language="en",this.isButtonDisabed=!1}onTournamentChanged(t){this.isButtonDisabed=!0===t.isActionJoinPending}onClickItemJoin(){this.isButtonDisabed||(this.isButtonDisabed=!this.tournament.isPlayerAcknowledged,this.tournament.isPlayerAcknowledged?this.unjoinTournamentConfirmEvent.emit({type:e.unjoin,tournament:this.tournament}):this.joinTournamentEvent.emit(this.tournament))}componentDidLoad(){this.isButtonDisabed=!0===this.tournament.isActionJoinPending}render(){return s("div",{key:"3123b0ffd6335833a5938b13e4c620ded693da38",class:"TitleContainer"},s("div",{key:"88977f242dd5cce6265c679ae55dc1dfdecd7fd0",class:"Title"},this.tournament.nameOrTitle),!n(this.tournament)&&s("div",{key:"bf2aad175409e687ed2bd42350a7f8585d86c112"},a({statedClasses:{isHollow:this.tournament.isPlayerAcknowledged,isPending:this.isButtonDisabed},onClick:t=>{t.stopPropagation(),this.onClickItemJoin()},innerHTML:h(this.tournament.isPlayerAcknowledged?"Unjoin":"Join",this.language)})))}static get watchers(){return{tournament:["onTournamentChanged"]}}},m=class{constructor(i){t(this,i),this.tournament=void 0,this.isDetail=!1,this.timeHolder=void 0,this.timeClock=!0,this.lastTimeDiff=void 0,this.lastProgress=void 0}containerPageChangeHandler(t){this.timeClock=t.detail.page===d.list&&!this.isDetail||t.detail.page===d.item&&this.isDetail}componentWillLoad(){this.lastProgress=o(this.tournament.startTime,this.tournament.endTime),this.lastTimeDiff=r(new Date,this.tournament.endTime,this.lastProgress)}setTimeInterval(){this.timeHolder=setInterval((()=>{const t=o(this.tournament.startTime,this.tournament.endTime),i=r(new Date,this.tournament.endTime,t);!this.timeClock||n(this.tournament)||i==this.lastTimeDiff&&t==this.lastProgress||(this.lastProgress=t,this.lastTimeDiff=i)}),2e3)}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}render(){return s("section",{key:"11426165a8f384d97f2b0158f7435f80ac0965a2",class:"TimeContainer"},s("div",{key:"b86c8a42a73b358fcc855a853cb322d1d314471a",class:"Time"},"Running"===this.tournament.state?s("div",{class:"Running"},s("div",null,this.lastTimeDiff),s("div",null,a({statedClasses:{isHollow:!0,isPending:!!this.tournament.isActionJoinPending},innerHTML:`${this.lastProgress}%`}))):[s("div",{class:"NotRunning"},c(this.tournament.startTime)),s("div",null,c(this.tournament.endTime))]),s("casino-engagement-suite-progress-bar",{key:"7f98e88679f30d0a0737d94ee806b1d92800b6a3",indeterminate:!1,value:Number(this.lastProgress>=100?100:this.lastProgress),"hide-percent":!0}))}};export{l as tournament_item_title,m as tournament_timer}
@@ -1,4 +1,4 @@
1
- import{h as e}from"./index-58fe1cb7.js";import{c as n}from"./utils-25141486.js";
1
+ import{h as e}from"./index-58fe1cb7.js";import{c as a}from"./utils-25141486.js";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function a(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(a[t[r]]=e[t[r]])}return a}var t,r;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(t||(t={})),function(e){e.Starts="Starts",e.Ends="Ends"}(r||(r={}));const o=["en","zh"],i=(e,n)=>(Object.keys(n).map((a=>{e=e.replace(`{${a}}`,n[a])})),e),s={en:Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},t),r),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Places:"places",Prizes:"Rewards",Player:"Player",Rank:"Rank",Score:"Score",Prize:"Prize",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:{Title:"Congratulations!",Description:"You won <span>{rewards}</span>!",ButtonContinue:"Continue",FailedTitle:"Reward cannot be issued",FailedDescription:"Please contact support.",FailedButtonContinue:"Ok, 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>",TipPrizeWithoutReward:"You took <span>{place}</span> place</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!",NoGameConfiged:"No game configed",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),zh:{Join:"加入",Unjoin:"取消",info:"信息",leaderboard:"排行榜",games:"游戏",Starts:"开始",Ends:"结束",TC:"条款与条件",ScoreCriteria:"积分规则",MinimumBetCriteria:"最低投注要求",Place:"名次",Places:"名次",Prizes:"奖励",Player:"玩家",Rank:"排名",Score:"积分",Prize:"奖品",LeaderboardDetails:"排行榜详情",UnjoinDialog:{Title:"退出排行榜?",Description:"当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?",ButtonYes:"是的,我要退出排行榜",ButtonNo:"不,留在排行榜"},WinDialog:{Title:"恭喜!",Description:"您赢得了 <span>{rewards}</span>!",ButtonContinue:"继续",FailedTitle:"奖励无法发放",FailedDescription:"请联系客服。",FailedButtonContinue:"好的,继续"},NoLeaderboards:"暂无排行榜",NoLeaderboardsTip:"尝试通过赢得奖品或启动其他增强游戏来获得排行榜",Leaderboards:"排行榜",TipPrize:"您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>",TipPrizeWithoutReward:"您获得 <span>{place}</span> 名",Tip:"您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。",TournamentNotStarted:"排行榜尚未开始。 <br> 它将在 {startTime} 开始。",BeOne:"目前暂无赢家。成为其中之一!",NoGameConfiged:"没有配置游戏",FailedToJoin:"哦哦!发生了一些意外错误,请再试一次。",FailedToUnjoin:"哦哦!发生了一些意外错误,请再试一次。"}},d=(e,n)=>{const a=n;return s[void 0!==a&&o.includes(a)?a:"en"][e]};var l,u,c,p;!function(e){e.list="list",e.item="item"}(l||(l={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(u||(u={})),function(e){e.FreeSpin="FreeSpin",e.Mission="Challenge",e.Leaderboard="TournamentTicket",e.Custom="Custom",e.LuckyWheel="PrizeEngine"}(c||(c={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(p||(p={}));const b=12,m=e=>{let n=null;return(e||[]).map((e=>{var a;const{leaderBoard:{rank:t}}=e;t&&(n=!n||(null===(a=n.leaderBoard)||void 0===a?void 0:a.rank)>t?e:n)})),{rank:n?`${n.leaderBoard.rank} / ${n.endRank}`:"-",detail:n?{playerRank:n.leaderBoard.rank,total:n.endRank}:null}},g=e=>[u.Closed].includes(e.state),T=e=>[u.Closed,u.Closing].includes(e.state),h=e=>{switch(e.type){case c.FreeSpin:return e.campaignName;case c.Mission:return e.challengeName;case c.Leaderboard:return e.ticketProgramName;case c.LuckyWheel:return e.prizeEngineProgramName;case c.Custom:return e.value;default:return e.name}},f=t=>{var{statedClasses:r,innerHTML:o}=t,i=a(t,["statedClasses","innerHTML"]);const{isHollow:s,isPending:d}=r;return e("button",Object.assign({class:n("GradientRoundedButton","GradientRounded",{Hollow:s||!1,Pending:d||!1})},i),e("span",null,o))};function w(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function C(e,n){return(new Date).getTime()>=n.getTime()?100:Math.floor(100*((new Date).getTime()-e.getTime())/(n.getTime()-e.getTime()))}function j(e,n,a=0){const t=Math.abs(n.getTime()-e.getTime()),r=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),s=100===a?0:0===i?1:i;return`${String(r).padStart(2,"0")}d:${String(o).padStart(2,"0")}h:${String(s).padStart(2,"0")}m`}export{p as D,l as L,t as T,a as _,h as a,j as b,s as c,T as d,b as e,C as f,m as g,w as h,g as i,i as l,f as r,d as t}
15
+ ***************************************************************************** */function n(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)a.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(n[t[r]]=e[t[r]])}return n}var t,r;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(t||(t={})),function(e){e.Starts="Starts",e.Ends="Ends"}(r||(r={}));const o=["en","zh"],i=(e,a)=>(Object.keys(a).map((n=>{e=e.replace(`{${n}}`,a[n])})),e),s={en:Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},t),r),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",ScoreAlgorithms:{BetCount:"Most Rounds",WinStakeRatio:"Win/Stake Ratio",MaxWinStakeRatio:"Max Win/Stake Ratio",Stake:"Turnover"},Place:"place",Places:"places",Prizes:"Rewards",Player:"Player",Rank:"Rank",Score:"Score",Prize:"Prize",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:{Title:"Congratulations!",Description:"You won <span>{rewards}</span>!",ButtonContinue:"Continue",FailedTitle:"Reward cannot be issued",FailedDescription:"Please contact support.",FailedButtonContinue:"Ok, 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>",TipPrizeWithoutReward:"You took <span>{place}</span> place</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!",NoGameConfiged:"No game configed",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),zh:{Join:"加入",Unjoin:"取消",info:"信息",leaderboard:"排行榜",games:"游戏",Starts:"开始",Ends:"结束",TC:"条款与条件",ScoreCriteria:"积分规则",MinimumBetCriteria:"最低投注要求",ScoreAlgorithms:{BetCount:"最多轮次",WinStakeRatio:"赢注比例",MaxWinStakeRatio:"最大赢注比例",Stake:"投注额"},Place:"名次",Places:"名次",Prizes:"奖励",Player:"玩家",Rank:"排名",Score:"积分",Prize:"奖品",LeaderboardDetails:"排行榜详情",UnjoinDialog:{Title:"退出排行榜?",Description:"当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?",ButtonYes:"是的,我要退出排行榜",ButtonNo:"不,留在排行榜"},WinDialog:{Title:"恭喜!",Description:"您赢得了 <span>{rewards}</span>!",ButtonContinue:"继续",FailedTitle:"奖励无法发放",FailedDescription:"请联系客服。",FailedButtonContinue:"好的,继续"},NoLeaderboards:"暂无排行榜",NoLeaderboardsTip:"尝试通过赢得奖品或启动其他增强游戏来获得排行榜",Leaderboards:"排行榜",TipPrize:"您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>",TipPrizeWithoutReward:"您获得 <span>{place}</span> 名",Tip:"您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。",TournamentNotStarted:"排行榜尚未开始。 <br> 它将在 {startTime} 开始。",BeOne:"目前暂无赢家。成为其中之一!",NoGameConfiged:"没有配置游戏",FailedToJoin:"哦哦!发生了一些意外错误,请再试一次。",FailedToUnjoin:"哦哦!发生了一些意外错误,请再试一次。"}},d=(e,a)=>{const n=a;return s[void 0!==n&&o.includes(n)?n:"en"][e]};var l,u,c,p;!function(e){e.list="list",e.item="item"}(l||(l={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(u||(u={})),function(e){e.FreeSpin="FreeSpin",e.Mission="Challenge",e.Leaderboard="TournamentTicket",e.Custom="Custom",e.LuckyWheel="PrizeEngine"}(c||(c={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(p||(p={}));const b=12,m=e=>{let a=null;return(e||[]).map((e=>{var n;const{leaderBoard:{rank:t}}=e;t&&(a=!a||(null===(n=a.leaderBoard)||void 0===n?void 0:n.rank)>t?e:a)})),{rank:a?`${a.leaderBoard.rank} / ${a.endRank}`:"-",detail:a?{playerRank:a.leaderBoard.rank,total:a.endRank}:null}},g=e=>[u.Closed].includes(e.state),T=e=>[u.Closed,u.Closing].includes(e.state),h=e=>{switch(e.type){case c.FreeSpin:return e.campaignName;case c.Mission:return e.challengeName;case c.Leaderboard:return e.ticketProgramName;case c.LuckyWheel:return e.prizeEngineProgramName;case c.Custom:return e.value;default:return e.name}},f=t=>{var{statedClasses:r,innerHTML:o}=t,i=n(t,["statedClasses","innerHTML"]);const{isHollow:s,isPending:d}=r;return e("button",Object.assign({class:a("GradientRoundedButton","GradientRounded",{Hollow:s||!1,Pending:d||!1})},i),e("span",null,o))};function S(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function C(e,a){return(new Date).getTime()>=a.getTime()?100:Math.floor(100*((new Date).getTime()-e.getTime())/(a.getTime()-e.getTime()))}function w(e,a,n=0){const t=Math.abs(a.getTime()-e.getTime()),r=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),s=100===n?0:0===i?1:i;return`${String(r).padStart(2,"0")}d:${String(o).padStart(2,"0")}h:${String(s).padStart(2,"0")}m`}export{p as D,l as L,t as T,n as _,h as a,w as b,s as c,T as d,b as e,C as f,m as g,S as h,g as i,i as l,f as r,d as t}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-14c77f03.js');
6
- const util_date = require('./util.date-e14691ef.js');
6
+ const util_date = require('./util.date-a60234a9.js');
7
7
  const utils = require('./utils-22119cc1.js');
8
8
 
9
9
  function formatBalance$4(amount, currency, maxAmount = 99999999) {
@@ -6760,7 +6760,8 @@ const tab = {
6760
6760
  const rewardInfo = !(playerRank === null || playerRank === void 0 ? void 0 : playerRank.place) || (playerRank === null || playerRank === void 0 ? void 0 : playerRank.unqualified)
6761
6761
  ? ''
6762
6762
  : util_date.localePostprocess(((playerRank === null || playerRank === void 0 ? void 0 : playerRank.prize) ? locale.TipPrize : locale.TipPrizeWithoutReward), playerRank);
6763
- return (index.h("div", { class: "InfoContainer" }, index.h("tournament-timer", { "is-detail": true, tournament: tournament }), index.h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) }, index.h("div", { class: "DetailHeader" }, index.h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose), index.h("span", null, locale.LeaderboardDetails))), index.h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` }, isShowInfo && (index.h("section", { class: "Info" }, index.h("div", { class: "Description" }, tournament.description), index.h("div", { class: "Criterias" }, index.h("div", null, locale.ScoreCriteria, ": ", index.h("span", null, tournament.scoreCriteria)), index.h("div", null, locale.MinimumBetCriteria, ": ", index.h("span", null, tournament.minBetCount))), !!tournament.termsUrl && (index.h("div", { class: "TC" }, index.h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))), util_date.isTournamentClosed(instance.tournamentItem) && ((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe)) && (index.h("section", { class: "ResultPrize", innerHTML: rewardInfo })), index.h("section", { class: "PrizesContainer" }, index.h("div", { class: "PrizesHeader" }, iconReward, index.h("span", { class: "PrizesText" }, locale.Prizes)), index.h("div", { class: "Prizes" }, tournament.prizes.map((prize) => (index.h("div", { class: "Prize" }, index.h("span", { class: 'Rank' }, prize.rank, " ", prize.count === 1 ? '' : ` - ${(prize.rank + prize.count - 1)}`), prize.count === 1 ? locale.Place : locale.Places, ": ", index.h("span", { class: "PrizeText" }, prize.name)))))))));
6763
+ const scoreCriteriaText = locale.ScoreAlgorithms[tournament.scoreCriteria];
6764
+ return (index.h("div", { class: "InfoContainer" }, index.h("tournament-timer", { "is-detail": true, tournament: tournament }), index.h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) }, index.h("div", { class: "DetailHeader" }, index.h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose), index.h("span", null, locale.LeaderboardDetails))), index.h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` }, isShowInfo && (index.h("section", { class: "Info" }, index.h("div", { class: "Description" }, tournament.description), index.h("div", { class: "Criterias" }, index.h("div", null, locale.ScoreCriteria, ": ", index.h("span", null, scoreCriteriaText)), index.h("div", null, locale.MinimumBetCriteria, ": ", index.h("span", null, tournament.minBetCount))), !!tournament.termsUrl && (index.h("div", { class: "TC" }, index.h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))), util_date.isTournamentClosed(instance.tournamentItem) && ((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe)) && (index.h("section", { class: "ResultPrize", innerHTML: rewardInfo })), index.h("section", { class: "PrizesContainer" }, index.h("div", { class: "PrizesHeader" }, iconReward, index.h("span", { class: "PrizesText" }, locale.Prizes)), index.h("div", { class: "Prizes" }, tournament.prizes.map((prize) => (index.h("div", { class: "Prize" }, index.h("span", { class: 'Rank' }, prize.rank, " ", prize.count === 1 ? '' : ` - ${(prize.rank + prize.count - 1)}`), prize.count === 1 ? locale.Place : locale.Places, ": ", index.h("span", { class: "PrizeText" }, prize.name)))))))));
6764
6765
  },
6765
6766
  leaderboard(instance) {
6766
6767
  const { locale, tournamentItem } = instance;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-14c77f03.js');
6
- const util_date = require('./util.date-e14691ef.js');
6
+ const util_date = require('./util.date-a60234a9.js');
7
7
  require('./utils-22119cc1.js');
8
8
 
9
9
  const CasinoEngagementSuiteTournamentItemTitle = class {
@@ -50,7 +50,12 @@ const localePostprocess = (translationText, props) => {
50
50
  return translationText;
51
51
  };
52
52
  const TRANSLATIONS = {
53
- en: Object.assign(Object.assign(Object.assign({ Join: 'Join', Unjoin: 'Unjoin' }, exports.Tab), Time), { TC: 'Terms & Conditions', ScoreCriteria: 'Score Criteria', MinimumBetCriteria: 'Minimum bet criteria', Place: 'place', Places: 'places', Prizes: 'Rewards', Player: 'Player', Rank: 'Rank', Score: 'Score', Prize: 'Prize', LeaderboardDetails: 'Leaderboard Details', UnjoinDialog: {
53
+ en: Object.assign(Object.assign(Object.assign({ Join: 'Join', Unjoin: 'Unjoin' }, exports.Tab), Time), { TC: 'Terms & Conditions', ScoreCriteria: 'Score Criteria', MinimumBetCriteria: 'Minimum bet criteria', ScoreAlgorithms: {
54
+ BetCount: 'Most Rounds',
55
+ WinStakeRatio: 'Win/Stake Ratio',
56
+ MaxWinStakeRatio: 'Max Win/Stake Ratio',
57
+ Stake: 'Turnover'
58
+ }, Place: 'place', Places: 'places', Prizes: 'Rewards', Player: 'Player', Rank: 'Rank', Score: 'Score', Prize: 'Prize', LeaderboardDetails: 'Leaderboard Details', UnjoinDialog: {
54
59
  Title: 'Quit Leaderboard?',
55
60
  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?',
56
61
  ButtonYes: 'Yes, I want to quit leaderboard',
@@ -74,6 +79,12 @@ const TRANSLATIONS = {
74
79
  TC: '条款与条件',
75
80
  ScoreCriteria: '积分规则',
76
81
  MinimumBetCriteria: '最低投注要求',
82
+ ScoreAlgorithms: {
83
+ BetCount: '最多轮次',
84
+ WinStakeRatio: '赢注比例',
85
+ MaxWinStakeRatio: '最大赢注比例',
86
+ Stake: '投注额'
87
+ },
77
88
  Place: '名次',
78
89
  Places: '名次',
79
90
  Prizes: '奖励',
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, c as createEvent, g as getElement, H as Host } from './index-58fe1cb7.js';
2
- import { _ as __rest, l as localePostprocess, r as renderGradientRoundedButton, g as getMaxRankStr, L as LeaderboardPage, D as DialogType, a as getRewardNameByType$1, T as Tab, i as isTournamentClosed, b as getTimeDifference, c as TRANSLATIONS$a, d as isTournamentEnded, e as DEFAULT_PAGE_SIZE } from './util.date-3169fc53.js';
2
+ import { _ as __rest, l as localePostprocess, r as renderGradientRoundedButton, g as getMaxRankStr, L as LeaderboardPage, D as DialogType, a as getRewardNameByType$1, T as Tab, i as isTournamentClosed, b as getTimeDifference, c as TRANSLATIONS$a, d as isTournamentEnded, e as DEFAULT_PAGE_SIZE } from './util.date-308e74a2.js';
3
3
  import { c as classnames, t as truncateNumber, g as getNewItems } from './utils-25141486.js';
4
4
 
5
5
  function formatBalance$4(amount, currency, maxAmount = 99999999) {
@@ -6756,7 +6756,8 @@ const tab = {
6756
6756
  const rewardInfo = !(playerRank === null || playerRank === void 0 ? void 0 : playerRank.place) || (playerRank === null || playerRank === void 0 ? void 0 : playerRank.unqualified)
6757
6757
  ? ''
6758
6758
  : localePostprocess(((playerRank === null || playerRank === void 0 ? void 0 : playerRank.prize) ? locale.TipPrize : locale.TipPrizeWithoutReward), playerRank);
6759
- return (h("div", { class: "InfoContainer" }, h("tournament-timer", { "is-detail": true, tournament: tournament }), h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) }, h("div", { class: "DetailHeader" }, h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose), h("span", null, locale.LeaderboardDetails))), h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` }, isShowInfo && (h("section", { class: "Info" }, h("div", { class: "Description" }, tournament.description), h("div", { class: "Criterias" }, h("div", null, locale.ScoreCriteria, ": ", h("span", null, tournament.scoreCriteria)), h("div", null, locale.MinimumBetCriteria, ": ", h("span", null, tournament.minBetCount))), !!tournament.termsUrl && (h("div", { class: "TC" }, h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))), isTournamentClosed(instance.tournamentItem) && ((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe)) && (h("section", { class: "ResultPrize", innerHTML: rewardInfo })), h("section", { class: "PrizesContainer" }, h("div", { class: "PrizesHeader" }, iconReward, h("span", { class: "PrizesText" }, locale.Prizes)), h("div", { class: "Prizes" }, tournament.prizes.map((prize) => (h("div", { class: "Prize" }, h("span", { class: 'Rank' }, prize.rank, " ", prize.count === 1 ? '' : ` - ${(prize.rank + prize.count - 1)}`), prize.count === 1 ? locale.Place : locale.Places, ": ", h("span", { class: "PrizeText" }, prize.name)))))))));
6759
+ const scoreCriteriaText = locale.ScoreAlgorithms[tournament.scoreCriteria];
6760
+ return (h("div", { class: "InfoContainer" }, h("tournament-timer", { "is-detail": true, tournament: tournament }), h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) }, h("div", { class: "DetailHeader" }, h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose), h("span", null, locale.LeaderboardDetails))), h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` }, isShowInfo && (h("section", { class: "Info" }, h("div", { class: "Description" }, tournament.description), h("div", { class: "Criterias" }, h("div", null, locale.ScoreCriteria, ": ", h("span", null, scoreCriteriaText)), h("div", null, locale.MinimumBetCriteria, ": ", h("span", null, tournament.minBetCount))), !!tournament.termsUrl && (h("div", { class: "TC" }, h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))), isTournamentClosed(instance.tournamentItem) && ((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe)) && (h("section", { class: "ResultPrize", innerHTML: rewardInfo })), h("section", { class: "PrizesContainer" }, h("div", { class: "PrizesHeader" }, iconReward, h("span", { class: "PrizesText" }, locale.Prizes)), h("div", { class: "Prizes" }, tournament.prizes.map((prize) => (h("div", { class: "Prize" }, h("span", { class: 'Rank' }, prize.rank, " ", prize.count === 1 ? '' : ` - ${(prize.rank + prize.count - 1)}`), prize.count === 1 ? locale.Place : locale.Places, ": ", h("span", { class: "PrizeText" }, prize.name)))))))));
6760
6761
  },
6761
6762
  leaderboard(instance) {
6762
6763
  const { locale, tournamentItem } = instance;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-58fe1cb7.js';
2
- import { D as DialogType, d as isTournamentEnded, r as renderGradientRoundedButton, t as translate, L as LeaderboardPage, f as getProgress, b as getTimeDifference, h as formatDate } from './util.date-3169fc53.js';
2
+ import { D as DialogType, d as isTournamentEnded, r as renderGradientRoundedButton, t as translate, L as LeaderboardPage, f as getProgress, b as getTimeDifference, h as formatDate } from './util.date-308e74a2.js';
3
3
  import './utils-25141486.js';
4
4
 
5
5
  const CasinoEngagementSuiteTournamentItemTitle = class {
@@ -48,7 +48,12 @@ const localePostprocess = (translationText, props) => {
48
48
  return translationText;
49
49
  };
50
50
  const TRANSLATIONS = {
51
- en: Object.assign(Object.assign(Object.assign({ Join: 'Join', Unjoin: 'Unjoin' }, Tab), Time), { TC: 'Terms & Conditions', ScoreCriteria: 'Score Criteria', MinimumBetCriteria: 'Minimum bet criteria', Place: 'place', Places: 'places', Prizes: 'Rewards', Player: 'Player', Rank: 'Rank', Score: 'Score', Prize: 'Prize', LeaderboardDetails: 'Leaderboard Details', UnjoinDialog: {
51
+ en: Object.assign(Object.assign(Object.assign({ Join: 'Join', Unjoin: 'Unjoin' }, Tab), Time), { TC: 'Terms & Conditions', ScoreCriteria: 'Score Criteria', MinimumBetCriteria: 'Minimum bet criteria', ScoreAlgorithms: {
52
+ BetCount: 'Most Rounds',
53
+ WinStakeRatio: 'Win/Stake Ratio',
54
+ MaxWinStakeRatio: 'Max Win/Stake Ratio',
55
+ Stake: 'Turnover'
56
+ }, Place: 'place', Places: 'places', Prizes: 'Rewards', Player: 'Player', Rank: 'Rank', Score: 'Score', Prize: 'Prize', LeaderboardDetails: 'Leaderboard Details', UnjoinDialog: {
52
57
  Title: 'Quit Leaderboard?',
53
58
  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?',
54
59
  ButtonYes: 'Yes, I want to quit leaderboard',
@@ -72,6 +77,12 @@ const TRANSLATIONS = {
72
77
  TC: '条款与条件',
73
78
  ScoreCriteria: '积分规则',
74
79
  MinimumBetCriteria: '最低投注要求',
80
+ ScoreAlgorithms: {
81
+ BetCount: '最多轮次',
82
+ WinStakeRatio: '赢注比例',
83
+ MaxWinStakeRatio: '最大赢注比例',
84
+ Stake: '投注额'
85
+ },
75
86
  Place: '名次',
76
87
  Places: '名次',
77
88
  Prizes: '奖励',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-container",
3
- "version": "1.73.0",
3
+ "version": "1.73.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,38 +0,0 @@
1
- import { html } from "lit";
2
- import "@everymatrix/casino-engagement-suite-container";
3
- const meta = {
4
- title: 'Casino/Components/casino-engagement-suite-container',
5
- component: 'casino-engagement-suite-container',
6
- args: {
7
- clientStyling: "",
8
- clientStylingUrl: "",
9
- language: "en",
10
- endpoint: "",
11
- session: "",
12
- },
13
- argTypes: {
14
- clientStyling: { control: 'text', description: '' },
15
- clientStylingUrl: { control: 'text', description: '' },
16
- language: { control: 'text', description: '' },
17
- endpoint: { control: 'text', description: '' },
18
- session: { control: 'text', description: '' },
19
- },
20
- };
21
- export default meta;
22
- const Template = (args) => {
23
- return html `<casino-engagement-suite-container
24
- clientStyling="${args.clientStyling}"
25
- clientStylingUrl="${args.clientStylingUrl}"
26
- language="${args.language}"
27
- endpoint="${args.endpoint}"
28
- session="${args.session}"
29
- ></casino-engagement-suite-container>`;
30
- };
31
- export const Default = Template.bind({});
32
- Default.args = {
33
- clientStyling: "",
34
- clientStylingUrl: "",
35
- language: "en",
36
- endpoint: "",
37
- session: "",
38
- };
@@ -1,5 +0,0 @@
1
- import type { Meta } from '@storybook/web-components';
2
- import '@everymatrix/casino-engagement-suite-container';
3
- declare const meta: Meta;
4
- export default meta;
5
- export declare const Default: any;