@everymatrix/casino-tournaments-ingame-rule 0.2.2 → 0.2.3

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 e,h as i}from"./index-80e4149e.js";const n={en:{and:"And",rewards:"Rewards",places:"Places",place:"Place",Stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",BetCount:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",WinStakeRatio:"The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated\n as a sum of win/stake ratios for qualified rounds and bets.\n The player who got the highest score will win the tournament.",WinStakeRatioWinMinScore:'<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>\n <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined\n minimum score value.</span>\n </li></ul>',MaxWinStakeRatio:"The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",Win:"The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.\n For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.\n the score will be calculated as 1+3=4.",WinBetCount:"The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying\n rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.\n In this case. the score will be calculated as 1+3+2=6.",minBetCount:"Minimum bet count: {betCount}. To be qualified for prizes, the player has to play at least {betCount} rounds, otherwise the prize won’t be granted.",productNoLimitsBet:"For {productName}, there are no minimum and maximum bet limits set.",casinoRuleMinMaxBet:"Min bet{minBet}, Max bet{maxBet}",unlimited:"Unlimited",forCasino:"For Casino Games",forSportsbook:"For Sportsbook",sportsRuleMinMaxBet:"Min bet {sportMinBet}, Max bet {sportMaxBet}",sportsRuleMinMaxOdds:"Min Odds {sportMinOdds}, Max Odds {sportMaxOdds}",matchTyppePre:"Prelive Sports bets",matchTypeLive:"Live Sports bets",matchTypePreAndLive:"Prelive and Live Sport bets",betTypeSingle:"Single bet",betTypeMultiple:"Multiple bet",betTypeSystem:"System bet",typeOfSelection:"Type of selection",numberOfSelection:"Number of selections",oddsPerSelection:"Odds per selections",betBuilderOnly:"Bet Builder Only",bankerOnly:"Banker Only",typeOfSelectionAny:"Any",notBuilderOnly:"Not Bet Builder Only",nonBankerOnly:"Non Banker Only",termsSee:"See ",termsTC:"Terms & Conditions."}},t=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{n[i]||(n[i]={});for(let t in e[i])n[i][t]=e[i][t]})),i(!0)}))})),o=(e,i,t)=>{let o=n[void 0!==i&&i in n?i:"en"][e];if(void 0!==t)for(const[e,i]of Object.entries(t.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o},s='<svg width="14" height="17" viewBox="0 0 14 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1.51493C7.36073 1.50224 7.15436 1.50005 6.75883 1.50005H4.35C3.70757 1.50005 3.27085 1.50063 2.93328 1.52821C2.60447 1.55508 2.43631 1.60377 2.31902 1.66354C2.03677 1.80735 1.8073 2.03682 1.66349 2.31906C1.60372 2.43636 1.55503 2.60451 1.52816 2.93333C1.50058 3.27089 1.5 3.70761 1.5 4.35005V12.15C1.5 12.7925 1.50058 13.2292 1.52816 13.5668C1.55503 13.8956 1.60372 14.0637 1.66349 14.181C1.8073 14.4633 2.03677 14.6927 2.31902 14.8366C2.43631 14.8963 2.60447 14.945 2.93328 14.9719C3.27085 14.9995 3.70757 15 4.35 15H9.15C9.79244 15 10.2292 14.9995 10.5667 14.9719C10.8955 14.945 11.0637 14.8963 11.181 14.8366C11.4632 14.6927 11.6927 14.4633 11.8365 14.181C11.8963 14.0637 11.945 13.8956 11.9718 13.5668C11.9994 13.2292 12 12.7925 12 12.15V6.74122C12 6.34574 11.9978 6.13938 11.9851 6.0001L9.42608 6.0001C9.23679 6.00013 9.05245 6.00015 8.89633 5.98739C8.72488 5.97338 8.52258 5.94033 8.31901 5.83661C8.03677 5.6928 7.8073 5.46333 7.66349 5.18109C7.55977 4.97752 7.52672 4.77522 7.51271 4.60377C7.49995 4.44765 7.49998 4.2633 7.5 4.07401L7.5 1.51493ZM8.54519 0.262522C8.37578 0.186577 8.19942 0.126408 8.01836 0.0829375C7.67134 -0.000374693 7.31149 -0.000203389 6.83524 2.31679e-05C6.8101 3.51485e-05 6.78464 4.73078e-05 6.75883 4.73078e-05L4.31903 4.69502e-05C3.7153 3.73837e-05 3.21703 2.95155e-05 2.81113 0.0331925C2.38956 0.0676364 2.00203 0.14156 1.63803 0.327028C1.07354 0.614648 0.614601 1.07359 0.326981 1.63808C0.141513 2.00208 0.0675898 2.38961 0.0331459 2.81118C-1.71103e-05 3.21707 -9.24308e-06 3.71534 3.23469e-07 4.31907V12.181C-9.24308e-06 12.7847 -1.71103e-05 13.283 0.0331459 13.6889C0.0675898 14.1105 0.141513 14.498 0.326981 14.862C0.614601 15.4265 1.07354 15.8854 1.63803 16.1731C2.00203 16.3585 2.38956 16.4325 2.81113 16.4669C3.21702 16.5001 3.71529 16.5001 4.31901 16.5H9.18099C9.78471 16.5001 10.283 16.5001 10.6889 16.4669C11.1104 16.4325 11.498 16.3585 11.862 16.1731C12.4265 15.8854 12.8854 15.4265 13.173 14.862C13.3585 14.498 13.4324 14.1105 13.4669 13.6889C13.5 13.283 13.5 12.7848 13.5 12.181V6.74122C13.5 6.71541 13.5 6.68995 13.5 6.66481C13.5002 6.18856 13.5004 5.82871 13.4171 5.48169C13.3738 5.30115 13.3138 5.12529 13.2382 4.95632C13.2335 4.94531 13.2285 4.93444 13.2233 4.92371C13.1744 4.81766 13.1191 4.71442 13.0579 4.61453C12.8714 4.31024 12.6169 4.05591 12.28 3.71931C12.2622 3.70154 12.2442 3.68355 12.2259 3.6653L9.83475 1.27413C9.8165 1.25589 9.7985 1.23787 9.78074 1.22009C9.44414 0.883168 9.18981 0.628597 8.88552 0.442127C8.78522 0.380667 8.68155 0.325249 8.57505 0.276104C8.56522 0.271367 8.55526 0.266837 8.54519 0.262522ZM9 2.56071V4.0501C9 4.2725 9.00058 4.39419 9.00773 4.48163C9.00801 4.48511 9.0083 4.4884 9.00859 4.49151C9.0117 4.4918 9.01499 4.49209 9.01848 4.49237C9.10592 4.49952 9.22761 4.5001 9.45 4.5001H10.9394L9 2.56071ZM3 9.00005C3 8.58583 3.33579 8.25005 3.75 8.25005H9.75C10.1642 8.25005 10.5 8.58583 10.5 9.00005C10.5 9.41426 10.1642 9.75005 9.75 9.75005H3.75C3.33579 9.75005 3 9.41426 3 9.00005ZM3 12C3 11.5858 3.33579 11.25 3.75 11.25H8.25C8.66422 11.25 9 11.5858 9 12C9 12.4143 8.66422 12.75 8.25 12.75H3.75C3.33579 12.75 3 12.4143 3 12Z" fill="#9747FF"/>\n</svg>\n';class l{constructor(){}static processMinMax(e,i){return{minValue:e?`: ${e}`:null,maxValue:i?`: ${i}`:null}}static generateCasinoRule(e,i,n){var t,o;const s=` ~ ${e("unlimited",i)}`,l=n.currency||"EUR";return e("casinoRuleMinMaxBet",i,{values:{minBet:(null===(t=n.minStake)||void 0===t?void 0:t.amount[l])?`: ${n.minStake.amount[l]} ${l}`:s,maxBet:(null===(o=n.maxStake)||void 0===o?void 0:o.amount[l])?`: ${n.maxStake.amount[l]} ${l}`:s}})}static generateSportsRule(e,i,n){var t,o,s,l,r,a,C,d,h,u;const c=[],v=` ~ ${e("unlimited",i)}`,p=n.currency||"EUR",w=(null===(t=n.minStake)||void 0===t?void 0:t.amount[p])?`: ${n.minStake.amount[p]} ${p}`:v,m=(null===(o=n.maxStake)||void 0===o?void 0:o.amount[p])?`: ${n.maxStake.amount[p]} ${p}`:v;c.push(e("sportsRuleMinMaxBet",i,{values:{sportMinBet:w,sportMaxBet:m}}));const g="true"===n.config.liveMatch,f="true"===n.config.preLiveMatch;g&&f?c.push(e("matchTypePreAndLive",i)):g?c.push(`${e("matchTypeLive",i)}`):f&&c.push(`${e("matchTyppePre",i)}`);const M=n.combination,R=[];M.single.isEligible&&R.push(e("betTypeSingle",i));const T={null:e("typeOfSelectionAny",i),true:e("bankerOnly",i),false:e("nonBankerOnly",i)},L={unspecific:e("typeOfSelectionAny",i),all:e("betBuilderOnly",i),none:e("notBuilderOnly",i)};let b="",y="";const x=`${e("oddsPerSelection",i)}: ${n.config.minOdds||e("unlimited",i)} - ${n.config.maxOdds||e("unlimited",i)}`,H=M.system.isEligible,S=M.multiple.isEligible;return H&&(b=` ${e("betTypeSystem",i)}\n ( ${e("typeOfSelection",i)}: ${T[(null===(l=null===(s=n.combination.system.banker)||void 0===s?void 0:s.include)||void 0===l?void 0:l.toString())||"null"]},\n ${e("numberOfSelection",i)}:\n ${(null===(r=M.system.minSelection)||void 0===r?void 0:r.number)||e("unlimited",i)} - ${(null===(a=M.system.maxSelection)||void 0===a?void 0:a.number)||e("unlimited",i)},\n ${x} ) `),S&&(y=` ${e("betTypeMultiple",i)}\n ( ${e("typeOfSelection",i)}: ${L[(null===(d=null===(C=n.combination.multiple.betBuilder)||void 0===C?void 0:C.mode)||void 0===d?void 0:d.toString())||"unspecific"]},\n ${e("numberOfSelection",i)}:\n ${(null===(h=M.multiple.minSelection)||void 0===h?void 0:h.number)||e("unlimited",i)} - ${(null===(u=M.multiple.maxSelection)||void 0===u?void 0:u.number)||e("unlimited",i)},\n ${x} ) `),H&&S?R.push(y+e("and",i)+b):H?R.push(b):S&&R.push(y),c.push(R.join(", ")),c.push(`${e("sportsRuleMinMaxOdds",i,{values:{sportMinOdds:n.config.minTotalOdds?`: ${n.config.minTotalOdds}`:v,sportMaxOdds:n.config.maxTotalOdds?`: ${n.config.maxTotalOdds}`:v}})}`),c}}const r=class{constructor(i){e(this,i),this.translationUrl="",this.tournament=void 0,this.language="en",this.currency="EUR",this.cmsEndpoint=void 0,this.casinoRule=void 0,this.sportsRules=void 0,this.isSportsEnabled=!1,this.isCasinoEnabled=!1,this.isHiddenRewards=!0,this.tournamentDescription=void 0}onHiddenRewardsChange(){}onTournamentChange(){this.initGameRules()}toggleRewardsMore(){this.isHiddenRewards=!this.isHiddenRewards,this.showMoreTimerId1&&clearTimeout(this.showMoreTimerId1),this.showMoreTimerId2&&clearTimeout(this.showMoreTimerId2),this.isHiddenRewards?(this.rewardsContainer.style.height=`${this.rewardDefaultHeight}px`,this.rewardsContainer.classList.remove("ShowMore")):(this.rewardsContainer.style.height=`${this.rewardsContainer.scrollHeight+this.rewardDefaultHeight+5}px`,this.rewardsContainer.classList.add("ShowMore"),this.showMoreTimerId1=setTimeout((()=>{this.rewardsContainer.style.removeProperty("height")}),200),this.showMoreTimerId2=setTimeout((()=>{this.rewardsContainer.style.height=`${this.rewardsContainer.clientHeight}px`}),1e3))}loadCMSInfo(){if(this.cmsEndpoint)try{fetch(`${this.cmsEndpoint}/${this.tournament.id}`).then((e=>200===e.status?e.json():(this.cmsEndpoint=null,console.error("Error when try to get cms info, ",this.tournament.id,e.status),null))).then((e=>{e&&e.details&&(this.tournamentDescription=e.details)}))}catch(e){this.cmsEndpoint=null,console.error(e)}}updateTournamentDetailWallets(e){["casino","sports"].forEach((i=>{var n;const t=null===(n=null==e?void 0:e.wallet)||void 0===n?void 0:n[i];t&&(t.currency=((e,i)=>{var n,t,o,s;return(null===(t=null===(n=e.minStake)||void 0===n?void 0:n.amount)||void 0===t?void 0:t[i])||(null===(s=null===(o=e.maxStake)||void 0===o?void 0:o.amount)||void 0===s?void 0:s[i])})(t,this.currency)?this.currency:null==e?void 0:e.baseCurrency)}))}initGameRules(){if(!this.tournament)return;this.updateTournamentDetailWallets(this.tournament);const{casino:e,sports:i}=this.tournament.wallet||{};this.isSportsEnabled=!!i,this.isCasinoEnabled=!!e,this.casinoRule=e?l.generateCasinoRule(o,this.language,e):"",this.sportsRules=i?l.generateSportsRule(o,this.language,i):[]}render(){var e,n,t,l,r,a;return i("div",{key:"967ae2276f94291d51e2ae6c078cdd0f12275bcb",class:"RulesWrapper"},this.tournament?i("div",{class:"TournamentRuleContainer"},i("div",{class:"Rule RewardsContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.76597 0.000197385C4.789 0.000290457 4.81151 0.000381474 4.83341 0.000381474H11.6667C11.6886 0.000381474 11.7111 0.000290457 11.7342 0.000197385C11.969 -0.00075167 12.2582 -0.00192094 12.5131 0.0908425C12.9298 0.242491 13.258 0.570702 13.4096 0.987351C13.4695 1.15199 13.4903 1.33099 13.4972 1.50038L14.6449 1.50038C14.8025 1.50036 14.9559 1.50035 15.0865 1.50926C15.2293 1.519 15.3986 1.54185 15.5741 1.61456C15.9416 1.7668 16.2337 2.05881 16.3859 2.42636C16.4586 2.60189 16.4815 2.77118 16.4912 2.91396C16.5001 3.04452 16.5001 3.19799 16.5001 3.35552V3.75038C16.5001 3.78528 16.5001 3.81967 16.5001 3.85356C16.5004 4.4501 16.5007 4.8931 16.3979 5.27684C16.1204 6.31211 15.3118 7.12076 14.2765 7.39816C13.9911 7.47464 13.6729 7.4941 13.2831 7.49892C12.7072 9.43606 11.0434 10.9049 9.00007 11.1972V12.0004H9.33341C11.2204 12.0004 12.7501 13.5301 12.7501 15.417C12.7501 16.0154 12.265 16.5004 11.6667 16.5004H4.83341C4.2351 16.5004 3.75007 16.0154 3.75007 15.417C3.75007 13.5301 5.27977 12.0004 7.16674 12.0004H7.50007V11.1972C5.45673 10.9049 3.79295 9.43606 3.21705 7.49892C2.82725 7.4941 2.50904 7.47464 2.22362 7.39816C1.18834 7.12076 0.379696 6.31211 0.102295 5.27684C-0.00052749 4.8931 -0.000287615 4.45011 3.54125e-05 3.85357C5.3741e-05 3.81967 7.23376e-05 3.78528 7.23376e-05 3.75038V3.37538C7.23376e-05 3.36876 7.17118e-05 3.36214 7.10859e-05 3.35553C5.53503e-05 3.19799 4.0062e-05 3.04452 0.00894826 2.91396C0.01869 2.77118 0.0415452 2.60189 0.114253 2.42636C0.266494 2.05881 0.558505 1.7668 0.926047 1.61456C1.10158 1.54185 1.27087 1.519 1.41365 1.50926C1.54421 1.50035 1.69768 1.50036 1.85522 1.50038C1.86183 1.50038 1.86845 1.50038 1.87507 1.50038H3.00297C3.00988 1.33099 3.03061 1.15199 3.09053 0.987351C3.24218 0.570702 3.57039 0.242491 3.98704 0.0908425C4.24191 -0.00192094 4.53117 -0.00075167 4.76597 0.000197385ZM3.00007 3.00038H1.87507C1.69008 3.00038 1.5889 3.00079 1.51576 3.00578C1.51236 3.00601 1.50916 3.00625 1.50617 3.00648C1.50594 3.00947 1.5057 3.01267 1.50547 3.01607C1.50048 3.08921 1.50007 3.19039 1.50007 3.37538V3.75038C1.50007 4.49615 1.50651 4.7219 1.55118 4.88861C1.68988 5.40625 2.09421 5.81057 2.61184 5.94927C2.70094 5.97314 2.80689 5.9861 3.00007 5.99298V3.00038ZM4.50007 1.83371C4.50007 1.66942 4.50039 1.57958 4.50435 1.51445C4.50455 1.51117 4.50475 1.50811 4.50495 1.50526C4.5078 1.50506 4.51086 1.50486 4.51414 1.50466C4.57927 1.5007 4.66911 1.50038 4.83341 1.50038H11.6667C11.831 1.50038 11.9209 1.5007 11.986 1.50466C11.9893 1.50486 11.9923 1.50506 11.9952 1.50526C11.9954 1.50811 11.9956 1.51117 11.9958 1.51445C11.9998 1.57958 12.0001 1.66942 12.0001 1.83371V6.00038C12.0001 8.07145 10.3211 9.75038 8.25007 9.75038C6.179 9.75038 4.50007 8.07145 4.50007 6.00038V1.83371ZM13.5001 3.00038V5.99298C13.6933 5.9861 13.7992 5.97314 13.8883 5.94927C14.4059 5.81057 14.8103 5.40625 14.949 4.88861C14.9936 4.7219 15.0001 4.49615 15.0001 3.75038V3.37538C15.0001 3.19039 14.9997 3.08921 14.9947 3.01607C14.9944 3.01267 14.9942 3.00947 14.994 3.00648C14.991 3.00625 14.9878 3.00601 14.9844 3.00578C14.9112 3.00079 14.8101 3.00038 14.6251 3.00038H13.5001ZM7.16674 13.5004C6.25129 13.5004 5.48573 14.1422 5.29549 15.0004H11.2047C11.0144 14.1422 10.2489 13.5004 9.33341 13.5004H7.16674Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{ref:e=>this.rewardsContainer=e,class:"Rewards"},null===(e=this.tournament)||void 0===e?void 0:e.prizes.map(((e,n)=>i("div",{class:"Reward "+(this.tournament.prizes.length===n+1?"Last":"")},i("span",{class:"Rank"}," ",e.count>1?`${e.rank} - ${e.rank+e.count-1}`:e.rank," "),i("span",{class:"Place"}," ",o(e.count>1?"places":"place",this.language),":"),i("span",{class:"PrizeName"},e.name)))))),(null===(n=this.tournament)||void 0===n?void 0:n.prizes.length)>4&&i("div",{class:"RewardsMore",onClick:this.toggleRewardsMore.bind(this)},i("div",{class:"Reward"},i("div",{class:"Icon",innerHTML:this.isHiddenRewards?'<svg width="23" height="7" viewBox="0 0 23 7" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M10.226 6.42291C10.8606 6.74835 11.8894 6.74835 12.524 6.42291L22.274 1.42291C22.9087 1.09748 22.9087 0.56984 22.274 0.244403C21.6394 -0.0810332 20.6106 -0.0810332 19.976 0.244403L11.375 4.65515L2.77405 0.244403C2.13945 -0.0810332 1.11055 -0.0810332 0.475951 0.244403C-0.158651 0.56984 -0.158651 1.09748 0.475951 1.42291L10.226 6.42291Z"\n fill="#666178" />\n </svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="23" height="7" viewBox="0 0 23 7" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M0.475951 6.42291C1.11055 6.74835 2.13945 6.74835 2.77405 6.42291L11.375 2.01217L19.976 6.42291C20.6106 6.74835 21.6394 6.74835 22.274 6.42291C22.9087 6.09748 22.9087 5.56984 22.274 5.2444L12.524 0.244403C11.8894 -0.0810332 10.8606 -0.0810332 10.226 0.244403L0.475951 5.2444C-0.158651 5.56984 -0.158651 6.09748 0.475951 6.42291Z"\n fill="#666178" />\n </svg>\n'}))),i("div",{class:"Divider"}),i("div",{class:"Rule ScoreCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.125 16.4999H0V11.9999C0 11.4476 0.447715 10.9999 1 10.9999H4.125V16.4999ZM8.625 5.49991C9.17729 5.49991 9.625 5.94762 9.625 6.49991V16.4999H5.5V6.49991C5.5 5.94762 5.94772 5.49991 6.5 5.49991H8.625ZM14.125 9.62491C14.6773 9.62491 15.125 10.0726 15.125 10.6249V16.4999H11V9.62491H14.125ZM7.24121 0.215728C7.36678 -0.0719094 7.75822 -0.0719094 7.88379 0.215728L8.2207 0.987213C8.27213 1.10501 8.37955 1.18553 8.50293 1.2001L9.31152 1.29581C9.61246 1.33172 9.73328 1.72024 9.50977 1.9335L8.91016 2.50577C8.81856 2.59314 8.77693 2.72466 8.80176 2.85147L8.96484 3.68155C9.02547 3.99118 8.70814 4.23186 8.44434 4.07608L7.73633 3.65811C7.6284 3.59448 7.4966 3.59448 7.38867 3.65811L6.68066 4.07608C6.41686 4.23186 6.09953 3.99118 6.16016 3.68155L6.32324 2.85147C6.34807 2.72466 6.30644 2.59314 6.21484 2.50577L5.61523 1.9335C5.39172 1.72024 5.51254 1.33172 5.81348 1.29581L6.62207 1.2001C6.74545 1.18553 6.85287 1.10501 6.9043 0.987213L7.24121 0.215728Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"ScoreCriteria",innerHTML:o(`${null===(t=this.tournament)||void 0===t?void 0:t.scoreCriteria}`,this.language)})),i("div",{class:"Divider"}),i("div",{class:"Rule QualifiedCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.54597 2.25C1.55123 2.25479 1.55693 2.25984 1.56311 2.26515C1.67835 2.36423 1.88899 2.48745 2.21449 2.60582C2.85932 2.8403 3.79985 3 4.875 3C5.95015 3 6.89068 2.8403 7.53551 2.60582C7.86101 2.48745 8.07165 2.36423 8.1869 2.26515C8.19307 2.25985 8.19877 2.25479 8.20403 2.25C8.19877 2.24521 8.19307 2.24015 8.1869 2.23485C8.07165 2.13577 7.86101 2.01255 7.53551 1.89418C6.89068 1.6597 5.95015 1.5 4.875 1.5C3.79985 1.5 2.85932 1.6597 2.21449 1.89418C1.88899 2.01255 1.67835 2.13577 1.56311 2.23485C1.55693 2.24016 1.55123 2.24521 1.54597 2.25ZM8.25 3.93747C8.18361 3.96475 8.11623 3.99074 8.04812 4.01551C7.2 4.32391 6.07803 4.5 4.875 4.5C3.67197 4.5 2.55 4.32391 1.70188 4.01551C1.63377 3.99074 1.56639 3.96475 1.5 3.93747V5.57759C1.51096 5.59109 1.53037 5.61201 1.56311 5.64015C1.67835 5.73923 1.88899 5.86245 2.21449 5.98081C2.85932 6.2153 3.79985 6.375 4.875 6.375C5.95015 6.375 6.89068 6.2153 7.53551 5.98081C7.86101 5.86245 8.07165 5.73923 8.1869 5.64015C8.21963 5.61201 8.23904 5.59109 8.25 5.57759V3.93747ZM8.25 7.31247C8.18361 7.33975 8.11623 7.36574 8.04812 7.3905C7.2 7.69891 6.07803 7.875 4.875 7.875C3.67197 7.875 2.55 7.69891 1.70188 7.3905C1.63377 7.36574 1.56639 7.33975 1.5 7.31247V8.95259C1.51096 8.96609 1.53037 8.98701 1.56311 9.01515C1.67835 9.11423 1.88899 9.23745 2.21449 9.35582C2.85932 9.5903 3.79985 9.75 4.875 9.75C5.64545 9.75 6.35243 9.6679 6.9326 9.53221C7.43537 9.41462 7.80221 9.26627 8.03201 9.12562C8.09906 9.00065 8.17184 8.87921 8.25 8.76165V7.31247ZM9.75 7.35202V2.25C9.75 1.74207 9.46457 1.35516 9.16478 1.09742C8.86255 0.837584 8.4691 0.637578 8.04812 0.484495C7.2 0.176086 6.07803 0 4.875 0C3.67197 0 2.55 0.176086 1.70188 0.484495C1.2809 0.637578 0.887447 0.837584 0.585221 1.09742C0.285429 1.35516 0 1.74207 0 2.25V12.375C0 12.8829 0.285428 13.2698 0.585221 13.5276C0.887447 13.7874 1.2809 13.9874 1.70188 14.1405C2.55 14.4489 3.67197 14.625 4.875 14.625C5.77662 14.625 6.6267 14.5262 7.34842 14.3501C7.73111 14.2567 8.09907 14.1364 8.42671 13.9856C9.24919 15.0583 10.5438 15.75 12 15.75C14.4853 15.75 16.5 13.7353 16.5 11.25C16.5 8.76472 14.4853 6.75 12 6.75C11.1804 6.75 10.4119 6.96914 9.75 7.35202ZM7.50147 11.3661C7.51286 11.8157 7.59019 12.249 7.72416 12.6565C7.52996 12.7395 7.28663 12.8211 6.99283 12.8928C6.40206 13.037 5.67277 13.125 4.875 13.125C3.79985 13.125 2.85932 12.9653 2.21449 12.7308C1.88899 12.6125 1.67835 12.4892 1.56311 12.3902C1.53037 12.362 1.51096 12.3411 1.5 12.3276V10.6875C1.56639 10.7147 1.63377 10.7407 1.70188 10.7655C2.55 11.0739 3.67197 11.25 4.875 11.25C5.7463 11.25 6.56907 11.1577 7.2742 10.9928C7.35391 10.9742 7.43289 10.9544 7.51096 10.9335C7.50369 11.0381 7.5 11.1436 7.5 11.25C7.5 11.2888 7.50049 11.3275 7.50147 11.3661ZM9 11.25C9 12.9069 10.3431 14.25 12 14.25C13.6569 14.25 15 12.9069 15 11.25C15 9.59315 13.6569 8.25 12 8.25C10.3431 8.25 9 9.59315 9 11.25Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"ScoreCriteria",innerHTML:o("minBetCount",this.language,{values:{betCount:(null===(l=this.tournament)||void 0===l?void 0:l.minBetCount)||0}})})),this.isCasinoEnabled&&[i("div",{class:"Divider"}),i("div",{class:"Rule CasinoCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="16" height="12" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3.68256 4.92549C3.68256 4.68162 3.88019 4.48369 4.12436 4.48369C4.36824 4.48369 4.56616 4.68162 4.56616 4.92549V6.11747H7.09798V4.92549C7.09798 4.68162 7.2959 4.48369 7.53978 4.48369C7.78395 4.48369 7.98158 4.68162 7.98158 4.92549V6.11747H11.7908V1.12954C11.7908 0.506893 11.2839 0 10.661 0H7.98187V0.974319C7.98187 1.21819 7.78395 1.41612 7.54007 1.41612C7.2962 1.41612 7.09827 1.21819 7.09827 0.974319V0H4.56616V0.930433C4.56616 1.17431 4.36824 1.37223 4.12436 1.37223C3.88049 1.37223 3.68256 1.17431 3.68256 0.930433V0H1.12954C0.506893 0 0 0.506893 0 1.12954V6.11747H3.68256V4.92549ZM9.1016 1.89948H10.2846C10.4484 1.89948 10.5988 1.99008 10.6753 2.1349C10.7518 2.27972 10.7419 2.45494 10.6496 2.59025L10.5214 2.77822C10.206 3.24064 10.0393 3.78088 10.0393 4.34058C10.0393 4.58457 9.84153 4.78238 9.59754 4.78238C9.35355 4.78238 9.15574 4.58457 9.15574 4.34058C9.15574 3.79728 9.27485 3.26791 9.50361 2.78308H9.10163C8.85764 2.78308 8.65983 2.58527 8.65983 2.34128C8.65983 2.09729 8.85761 1.89948 9.1016 1.89948ZM5.22171 1.8712H6.4047C6.56849 1.8712 6.71879 1.9618 6.79531 2.1066C6.87186 2.25139 6.862 2.42664 6.76972 2.56192L6.64151 2.74989C6.32612 3.21231 6.15944 3.75257 6.15944 4.31227C6.15944 4.55627 5.96164 4.75408 5.71764 4.75408C5.47365 4.75408 5.27584 4.55627 5.27584 4.31227C5.27584 3.76895 5.39492 3.23958 5.62372 2.75478H5.22174C4.97774 2.75478 4.77993 2.55697 4.77993 2.31298C4.77993 2.06898 4.97771 1.8712 5.22171 1.8712ZM2.88979 2.59022L2.76155 2.77819C2.44619 3.24055 2.27952 3.78085 2.27952 4.34055C2.27952 4.58454 2.08171 4.78235 1.83772 4.78235C1.59372 4.78235 1.39591 4.58454 1.39591 4.34055C1.39591 3.79725 1.51505 3.26783 1.74376 2.78305H1.34178C1.09779 2.78305 0.899978 2.58524 0.899978 2.34125C0.899978 2.09726 1.09779 1.89945 1.34178 1.89945H2.52481C2.6886 1.89945 2.83893 1.99005 2.91545 2.13487C2.99197 2.27969 2.9821 2.45491 2.88979 2.59022Z" fill="#9747FF"/>\n<path d="M13.9755 2.50085C13.3663 2.50085 12.8707 2.99647 12.8707 3.60562C12.8707 4.05779 13.1437 4.4474 13.5336 4.61817V6.84252C13.5336 6.92882 13.4632 6.99922 13.3769 6.99922L9.15527e-05 7.00098V7.68636C9.15527e-05 8.30901 0.506985 8.8159 1.12963 8.8159H10.661C11.2171 8.8159 11.6804 8.4121 11.7738 7.88282H13.3769C13.9507 7.88282 14.4172 7.41598 14.4172 6.84252V4.6182C14.8071 4.44743 15.0802 4.05782 15.0802 3.60562C15.0802 2.99647 14.5847 2.50085 13.9755 2.50085Z" fill="#9747FF"/>\n<path d="M10.1662 10.5414H11.349C11.593 10.5414 11.7908 10.7392 11.7908 10.9832C11.7908 11.2272 11.593 11.425 11.349 11.425H0.441893C0.197901 11.425 9.15527e-05 11.2272 9.15527e-05 10.9832C9.15527e-05 10.7392 0.197901 10.5414 0.441893 10.5414H1.62474V9.69214H10.1662V10.5414Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"Content"},i("div",{class:"Title"},o("forCasino",this.language),": "),i("div",{class:"Details",innerHTML:this.casinoRule})))],this.isSportsEnabled&&[i("div",{class:"Divider"}),i("div",{class:"Rule SportsCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.46 12.9525C15.5025 11.595 16.125 9.9 16.125 8.0625C16.125 3.615 12.51 0 8.0625 0C5.43 0 3.09 1.27501 1.62 3.24001C1.605 3.25501 1.5975 3.27 1.59 3.2775C0.600002 4.62 0 6.27 0 8.0625C0 9.855 0.622501 11.595 1.665 12.9525C1.665 12.9525 1.665 12.9525 1.6725 12.96C2.64 14.22 3.975 15.195 5.52 15.705C5.5425 15.7125 5.565 15.72 5.5875 15.7275C6.3675 15.9825 7.2 16.1175 8.0625 16.1175C8.925 16.1175 9.7575 15.975 10.5375 15.7275C10.56 15.7275 10.5825 15.7125 10.605 15.705C12.15 15.1875 13.4775 14.22 14.4525 12.96C14.4525 12.96 14.4525 12.96 14.46 12.9525ZM1.89 4.92L2.3775 6.2025L1.2 7.09501C1.3125 6.3225 1.545 5.5875 1.89 4.9125V4.92ZM3.1575 7.0275L4.5975 7.5075L5.46 10.9575L4.7625 12H2.3625C1.6725 11.0025 1.245 9.825 1.155 8.55L3.165 7.0275H3.1575ZM4.6275 13.125L4.9125 14.235C4.335 13.9425 3.8025 13.5675 3.3375 13.125H4.6275ZM6.5025 10.5L5.7075 7.3125L8.0625 5.7375L10.4175 7.3125L9.6225 10.5H6.5025ZM11.4975 13.125H12.7875C12.315 13.5675 11.79 13.9425 11.2125 14.235L11.4975 13.125ZM11.3625 12L10.665 10.9575L11.5275 7.5L12.9525 7.0275L14.97 8.5575C14.88 9.8325 14.4525 11.01 13.7625 12H11.3625ZM14.925 7.1025L13.74 6.2025L14.235 4.90499C14.58 5.58 14.82 6.3225 14.9325 7.1025H14.925ZM13.47 3.735L12.6225 5.94749L11.1375 6.4425L8.6175 4.7625V3.34501L10.815 1.7025C11.8575 2.16 12.765 2.8575 13.47 3.735ZM9.5025 1.28251L8.055 2.3625L6.6075 1.28251C7.0725 1.18501 7.56 1.125 8.055 1.125C8.55 1.125 9.0375 1.17751 9.5025 1.28251ZM5.295 1.7025L7.4925 3.34501V4.7625L4.9725 6.4425L3.48 5.94749L2.64 3.7425C3.345 2.865 4.25251 2.16 5.30251 1.7025H5.295ZM6.195 14.7375L5.6625 12.6675L6.3525 11.625H9.7575L10.4475 12.6675L9.915 14.7375C9.3225 14.9025 8.7 15 8.055 15C7.41 15 6.7875 14.9025 6.195 14.7375Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"Content"},i("div",{class:"Title"},o("forSportsbook",this.language),": "),i("ul",{class:"Details"},(this.sportsRules||[]).map((e=>i("li",{class:"Item"},e))))))],(null===(r=this.tournament)||void 0===r?void 0:r.termsUrl)&&!this.cmsEndpoint&&[i("div",{class:"Divider"}),i("div",{class:"Rule TMContainer"},i("div",{class:"Icon",innerHTML:s}),i("div",{class:"ScoreCriteria"},o("termsSee",this.language),i("a",{href:(null===(a=this.tournament)||void 0===a?void 0:a.termsUrl)||"",target:"_blank"},o("termsTC",this.language))))],this.cmsEndpoint&&(this.tournamentDescription||[]).map(((e,n)=>[i("div",{class:"Divider"}),i("div",{class:`Rule CmsTMContainer Item${n}`},0===n&&i("div",{class:"Icon",innerHTML:s}),i("div",{class:"Title CmsItem"},e.title)),i("div",{class:"Rule Details CmsItem",innerHTML:e.description})]))):i("div",{class:"Loading"},"Loading"))}async componentWillLoad(){this.cmsEndpoint&&this.loadCMSInfo(),this.translationUrl.length>2&&await t(this.translationUrl)}handleNewTranslations(){t(this.translationUrl)}componentDidLoad(){var e,i,n;if(this.initGameRules(),(null===(i=null===(e=this.rewardsContainer)||void 0===e?void 0:e.children)||void 0===i?void 0:i.length)<4)return;(null===(n=this.tournament)||void 0===n?void 0:n.prizes.length)>4&&(this.rewardsContainer.style.height="90px");let t=this.rewardsContainer.children[3].offsetTop-this.rewardsContainer.offsetTop;t+=13,this.rewardDefaultHeight=t,this.rewardsContainer.style.height=`${t}px`}static get watchers(){return{isHiddenRewards:["onHiddenRewardsChange"],tournament:["onTournamentChange"],cmsEndpoint:["loadCMSInfo"],translationUrl:["handleNewTranslations"]}}};r.style=".RulesWrapper{overflow-y:auto;scrollbar-width:thin;padding:15px;height:calc(100% - 50px)}.Desktop .RulesWrapper{height:calc(100% - 30px);overflow-y:auto;scrollbar-width:thin}.TournamentRuleContainer .RewardsMore{display:flex;cursor:pointer;justify-content:center;margin-top:0px;width:100%;justify-self:center}.TournamentRuleContainer .RewardsMore .Icon svg{width:16px}.TournamentRuleContainer .Rule{display:flex;flex-direction:row;gap:8px;line-height:18px;margin-bottom:15px}.TournamentRuleContainer .Rule .Icon{width:16px;line-height:16px}.TournamentRuleContainer .RewardsContainer .RewardsTitle{font-weight:bold;font-size:var(--emw--font-size-medium, 14px)}.TournamentRuleContainer .RewardsContainer .Rewards{display:flex;flex-grow:1;flex-wrap:nowrap;flex-direction:column;height:fit-content;transition:height 0.3s ease-in-out;overflow:hidden;gap:6px}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore{transition:height 0.3s ease-in-out;height:max-content;cursor:pointer;height:max-content}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore .Reward:nth-child(4){opacity:1}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore .Reward:nth-child(n+5){display:flex}.TournamentRuleContainer .RewardsContainer .Rewards .Reward{display:flex;flex-direction:row;gap:6px}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .Rank{white-space:nowrap;color:var(--emw--ingame-color-lav-gray, #B4B0CC)}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .Place{margin-right:3px;color:var(--emw--ingame-color-lav-gray, #B4B0CC)}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .PrizeName{flex:1 1;font-weight:bold;white-space:pre-line;word-break:break-all}.TournamentRuleContainer .RewardsContainer .Rewards .Reward:nth-child(4){opacity:0.4}.TournamentRuleContainer .RewardsContainer .Rewards .Reward.Last:nth-child(4){opacity:1}.TournamentRuleContainer .RewardsContainer .Rewards .Reward:nth-child(n+5){display:none}.TournamentRuleContainer .TMContainer .ScoreCriteria a{cursor:pointer;font-weight:bold;color:var(--emw--ingame-color-text, #F4EFF4)}.TournamentRuleContainer .CmsTMContainer.Item0 .Title.CmsItem{margin-left:0}.TournamentRuleContainer .CmsTMContainer .Title{font-weight:bold;color:var(--emw--ingame-color-text, #F4EFF4)}.TournamentRuleContainer .CmsTMContainer .Title.CmsItem{margin-left:24px}.TournamentRuleContainer .CmsItem{margin-left:28px;display:block}.TournamentRuleContainer .SportsCriteriaContainer .Details{padding-inline-start:10px}";export{r as C}
1
+ import{r as e,h as i}from"./index-80e4149e.js";const n={en:{and:"And",rewards:"Rewards",places:"Places",place:"Place",Stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",BetCount:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",WinStakeRatio:"The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated\n as a sum of win/stake ratios for qualified rounds and bets.\n The player who got the highest score will win the tournament.",WinStakeRatioWinMinScore:'<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>\n <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined\n minimum score value.</span>\n </li></ul>',MaxWinStakeRatio:"The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",Win:"The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.\n For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.\n the score will be calculated as 1+3=4.",WinBetCount:"The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying\n rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.\n In this case. the score will be calculated as 1+3+2=6.",minBetCount:"Minimum bet count: {betCount}. To be qualified for prizes, the player has to play at least {betCount} rounds, otherwise the prize won’t be granted.",productNoLimitsBet:"For {productName}, there are no minimum and maximum bet limits set.",casinoRuleMinMaxBet:"Min bet{minBet}, Max bet{maxBet}",unlimited:"Unlimited",forCasino:"For Casino Games",forSportsbook:"For Sportsbook",sportsRuleMinMaxBet:"Min bet {sportMinBet}, Max bet {sportMaxBet}",sportsRuleMinMaxOdds:"Min Odds {sportMinOdds}, Max Odds {sportMaxOdds}",matchTyppePre:"Prelive Sports bets",matchTypeLive:"Live Sports bets",matchTypePreAndLive:"Prelive and Live Sport bets",betTypeSingle:"Single bet",betTypeMultiple:"Multiple bet",betTypeSystem:"System bet",typeOfSelection:"Type of selection",numberOfSelection:"Number of selections",oddsPerSelection:"Odds per selections",betBuilderOnly:"Bet Builder Only",bankerOnly:"Banker Only",typeOfSelectionAny:"Any",notBuilderOnly:"Not Bet Builder Only",nonBankerOnly:"Non Banker Only",termsSee:"See ",termsTC:"Terms & Conditions."}},t=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{n[i]||(n[i]={});for(let t in e[i])n[i][t]=e[i][t]})),i(!0)}))})),o=(e,i,t)=>{let o=n[void 0!==i&&i in n?i:"en"][e];if(void 0!==t)for(const[e,i]of Object.entries(t.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o},s='<svg width="14" height="17" viewBox="0 0 14 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1.51493C7.36073 1.50224 7.15436 1.50005 6.75883 1.50005H4.35C3.70757 1.50005 3.27085 1.50063 2.93328 1.52821C2.60447 1.55508 2.43631 1.60377 2.31902 1.66354C2.03677 1.80735 1.8073 2.03682 1.66349 2.31906C1.60372 2.43636 1.55503 2.60451 1.52816 2.93333C1.50058 3.27089 1.5 3.70761 1.5 4.35005V12.15C1.5 12.7925 1.50058 13.2292 1.52816 13.5668C1.55503 13.8956 1.60372 14.0637 1.66349 14.181C1.8073 14.4633 2.03677 14.6927 2.31902 14.8366C2.43631 14.8963 2.60447 14.945 2.93328 14.9719C3.27085 14.9995 3.70757 15 4.35 15H9.15C9.79244 15 10.2292 14.9995 10.5667 14.9719C10.8955 14.945 11.0637 14.8963 11.181 14.8366C11.4632 14.6927 11.6927 14.4633 11.8365 14.181C11.8963 14.0637 11.945 13.8956 11.9718 13.5668C11.9994 13.2292 12 12.7925 12 12.15V6.74122C12 6.34574 11.9978 6.13938 11.9851 6.0001L9.42608 6.0001C9.23679 6.00013 9.05245 6.00015 8.89633 5.98739C8.72488 5.97338 8.52258 5.94033 8.31901 5.83661C8.03677 5.6928 7.8073 5.46333 7.66349 5.18109C7.55977 4.97752 7.52672 4.77522 7.51271 4.60377C7.49995 4.44765 7.49998 4.2633 7.5 4.07401L7.5 1.51493ZM8.54519 0.262522C8.37578 0.186577 8.19942 0.126408 8.01836 0.0829375C7.67134 -0.000374693 7.31149 -0.000203389 6.83524 2.31679e-05C6.8101 3.51485e-05 6.78464 4.73078e-05 6.75883 4.73078e-05L4.31903 4.69502e-05C3.7153 3.73837e-05 3.21703 2.95155e-05 2.81113 0.0331925C2.38956 0.0676364 2.00203 0.14156 1.63803 0.327028C1.07354 0.614648 0.614601 1.07359 0.326981 1.63808C0.141513 2.00208 0.0675898 2.38961 0.0331459 2.81118C-1.71103e-05 3.21707 -9.24308e-06 3.71534 3.23469e-07 4.31907V12.181C-9.24308e-06 12.7847 -1.71103e-05 13.283 0.0331459 13.6889C0.0675898 14.1105 0.141513 14.498 0.326981 14.862C0.614601 15.4265 1.07354 15.8854 1.63803 16.1731C2.00203 16.3585 2.38956 16.4325 2.81113 16.4669C3.21702 16.5001 3.71529 16.5001 4.31901 16.5H9.18099C9.78471 16.5001 10.283 16.5001 10.6889 16.4669C11.1104 16.4325 11.498 16.3585 11.862 16.1731C12.4265 15.8854 12.8854 15.4265 13.173 14.862C13.3585 14.498 13.4324 14.1105 13.4669 13.6889C13.5 13.283 13.5 12.7848 13.5 12.181V6.74122C13.5 6.71541 13.5 6.68995 13.5 6.66481C13.5002 6.18856 13.5004 5.82871 13.4171 5.48169C13.3738 5.30115 13.3138 5.12529 13.2382 4.95632C13.2335 4.94531 13.2285 4.93444 13.2233 4.92371C13.1744 4.81766 13.1191 4.71442 13.0579 4.61453C12.8714 4.31024 12.6169 4.05591 12.28 3.71931C12.2622 3.70154 12.2442 3.68355 12.2259 3.6653L9.83475 1.27413C9.8165 1.25589 9.7985 1.23787 9.78074 1.22009C9.44414 0.883168 9.18981 0.628597 8.88552 0.442127C8.78522 0.380667 8.68155 0.325249 8.57505 0.276104C8.56522 0.271367 8.55526 0.266837 8.54519 0.262522ZM9 2.56071V4.0501C9 4.2725 9.00058 4.39419 9.00773 4.48163C9.00801 4.48511 9.0083 4.4884 9.00859 4.49151C9.0117 4.4918 9.01499 4.49209 9.01848 4.49237C9.10592 4.49952 9.22761 4.5001 9.45 4.5001H10.9394L9 2.56071ZM3 9.00005C3 8.58583 3.33579 8.25005 3.75 8.25005H9.75C10.1642 8.25005 10.5 8.58583 10.5 9.00005C10.5 9.41426 10.1642 9.75005 9.75 9.75005H3.75C3.33579 9.75005 3 9.41426 3 9.00005ZM3 12C3 11.5858 3.33579 11.25 3.75 11.25H8.25C8.66422 11.25 9 11.5858 9 12C9 12.4143 8.66422 12.75 8.25 12.75H3.75C3.33579 12.75 3 12.4143 3 12Z" fill="#9747FF"/>\n</svg>\n';class l{constructor(){}static processMinMax(e,i){return{minValue:e?`: ${e}`:null,maxValue:i?`: ${i}`:null}}static generateCasinoRule(e,i,n){var t,o;const s=` ~ ${e("unlimited",i)}`,l=n.currency||"EUR";return e("casinoRuleMinMaxBet",i,{values:{minBet:(null===(t=n.minStake)||void 0===t?void 0:t.amount[l])?`: ${n.minStake.amount[l]} ${l}`:s,maxBet:(null===(o=n.maxStake)||void 0===o?void 0:o.amount[l])?`: ${n.maxStake.amount[l]} ${l}`:s}})}static generateSportsRule(e,i,n){var t,o,s,l,r,a,C,d,h,u;const c=[],v=` ~ ${e("unlimited",i)}`,p=n.currency||"EUR",w=(null===(t=n.minStake)||void 0===t?void 0:t.amount[p])?`: ${n.minStake.amount[p]} ${p}`:v,m=(null===(o=n.maxStake)||void 0===o?void 0:o.amount[p])?`: ${n.maxStake.amount[p]} ${p}`:v;c.push(e("sportsRuleMinMaxBet",i,{values:{sportMinBet:w,sportMaxBet:m}}));const g="true"===n.config.liveMatch,f="true"===n.config.preLiveMatch;g&&f?c.push(e("matchTypePreAndLive",i)):g?c.push(`${e("matchTypeLive",i)}`):f&&c.push(`${e("matchTyppePre",i)}`);const M=n.combination,R=[];M.single.isEligible&&R.push(e("betTypeSingle",i));const T={null:e("typeOfSelectionAny",i),true:e("bankerOnly",i),false:e("nonBankerOnly",i)},b={unspecific:e("typeOfSelectionAny",i),all:e("betBuilderOnly",i),none:e("notBuilderOnly",i)};let L="",y="";const x=`${e("oddsPerSelection",i)}: ${n.config.minOdds||e("unlimited",i)} - ${n.config.maxOdds||e("unlimited",i)}`,H=M.system.isEligible,S=M.multiple.isEligible;return H&&(L=` ${e("betTypeSystem",i)}\n ( ${e("typeOfSelection",i)}: ${T[(null===(l=null===(s=n.combination.system.banker)||void 0===s?void 0:s.include)||void 0===l?void 0:l.toString())||"null"]},\n ${e("numberOfSelection",i)}:\n ${(null===(r=M.system.minSelection)||void 0===r?void 0:r.number)||e("unlimited",i)} - ${(null===(a=M.system.maxSelection)||void 0===a?void 0:a.number)||e("unlimited",i)},\n ${x} ) `),S&&(y=` ${e("betTypeMultiple",i)}\n ( ${e("typeOfSelection",i)}: ${b[(null===(d=null===(C=n.combination.multiple.betBuilder)||void 0===C?void 0:C.mode)||void 0===d?void 0:d.toString())||"unspecific"]},\n ${e("numberOfSelection",i)}:\n ${(null===(h=M.multiple.minSelection)||void 0===h?void 0:h.number)||e("unlimited",i)} - ${(null===(u=M.multiple.maxSelection)||void 0===u?void 0:u.number)||e("unlimited",i)},\n ${x} ) `),H&&S?R.push(y+e("and",i)+L):H?R.push(L):S&&R.push(y),c.push(R.join(", ")),c.push(`${e("sportsRuleMinMaxOdds",i,{values:{sportMinOdds:n.config.minTotalOdds?`: ${n.config.minTotalOdds}`:v,sportMaxOdds:n.config.maxTotalOdds?`: ${n.config.maxTotalOdds}`:v}})}`),c}}const r=class{constructor(i){e(this,i),this.translationUrl="",this.tournament=void 0,this.language="en",this.currency="EUR",this.cmsEndpoint=void 0,this.casinoRule=void 0,this.sportsRules=void 0,this.isSportsEnabled=!1,this.isCasinoEnabled=!1,this.isHiddenRewards=!0,this.tournamentDescription=void 0}onHiddenRewardsChange(){}onTournamentChange(){this.initGameRules()}toggleRewardsMore(){this.isHiddenRewards=!this.isHiddenRewards,this.showMoreTimerId1&&clearTimeout(this.showMoreTimerId1),this.showMoreTimerId2&&clearTimeout(this.showMoreTimerId2),this.isHiddenRewards?(this.rewardsContainer.style.height=`${this.rewardDefaultHeight}px`,this.rewardsContainer.classList.remove("ShowMore")):(this.rewardsContainer.style.height=`${this.rewardsContainer.scrollHeight+this.rewardDefaultHeight+5}px`,this.rewardsContainer.classList.add("ShowMore"),this.showMoreTimerId1=setTimeout((()=>{this.rewardsContainer.style.removeProperty("height")}),200),this.showMoreTimerId2=setTimeout((()=>{this.rewardsContainer.style.height=`${this.rewardsContainer.clientHeight}px`}),1e3))}loadCMSInfo(){if(this.cmsEndpoint)try{fetch(`${this.cmsEndpoint}/${this.tournament.id}`).then((e=>200===e.status?e.json():(this.cmsEndpoint=null,console.error("Error when try to get cms info, ",this.tournament.id,e.status),null))).then((e=>{e&&e.details&&(this.tournamentDescription=e.details)}))}catch(e){this.cmsEndpoint=null,console.error(e)}}updateTournamentDetailWallets(e){["casino","sports"].forEach((i=>{var n;const t=null===(n=null==e?void 0:e.wallet)||void 0===n?void 0:n[i];t&&(t.currency=((e,i)=>{var n,t,o,s;return(null===(t=null===(n=e.minStake)||void 0===n?void 0:n.amount)||void 0===t?void 0:t[i])||(null===(s=null===(o=e.maxStake)||void 0===o?void 0:o.amount)||void 0===s?void 0:s[i])})(t,this.currency)?this.currency:null==e?void 0:e.baseCurrency)}))}initGameRules(){if(!this.tournament)return;this.updateTournamentDetailWallets(this.tournament);const{casino:e,sports:i}=this.tournament.wallet||{};this.isSportsEnabled=!!i,this.isCasinoEnabled=!!e,this.casinoRule=e?l.generateCasinoRule(o,this.language,e):"",this.sportsRules=i?l.generateSportsRule(o,this.language,i):[]}render(){var e,n,t,l,r,a;return i("div",{key:"e8bf31a49b1cf1df0aa8b119dc22353a9be2eb39",class:"RulesWrapper"},this.tournament?i("div",{class:"TournamentRuleContainer"},i("div",{class:"Rule RewardsContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.76597 0.000197385C4.789 0.000290457 4.81151 0.000381474 4.83341 0.000381474H11.6667C11.6886 0.000381474 11.7111 0.000290457 11.7342 0.000197385C11.969 -0.00075167 12.2582 -0.00192094 12.5131 0.0908425C12.9298 0.242491 13.258 0.570702 13.4096 0.987351C13.4695 1.15199 13.4903 1.33099 13.4972 1.50038L14.6449 1.50038C14.8025 1.50036 14.9559 1.50035 15.0865 1.50926C15.2293 1.519 15.3986 1.54185 15.5741 1.61456C15.9416 1.7668 16.2337 2.05881 16.3859 2.42636C16.4586 2.60189 16.4815 2.77118 16.4912 2.91396C16.5001 3.04452 16.5001 3.19799 16.5001 3.35552V3.75038C16.5001 3.78528 16.5001 3.81967 16.5001 3.85356C16.5004 4.4501 16.5007 4.8931 16.3979 5.27684C16.1204 6.31211 15.3118 7.12076 14.2765 7.39816C13.9911 7.47464 13.6729 7.4941 13.2831 7.49892C12.7072 9.43606 11.0434 10.9049 9.00007 11.1972V12.0004H9.33341C11.2204 12.0004 12.7501 13.5301 12.7501 15.417C12.7501 16.0154 12.265 16.5004 11.6667 16.5004H4.83341C4.2351 16.5004 3.75007 16.0154 3.75007 15.417C3.75007 13.5301 5.27977 12.0004 7.16674 12.0004H7.50007V11.1972C5.45673 10.9049 3.79295 9.43606 3.21705 7.49892C2.82725 7.4941 2.50904 7.47464 2.22362 7.39816C1.18834 7.12076 0.379696 6.31211 0.102295 5.27684C-0.00052749 4.8931 -0.000287615 4.45011 3.54125e-05 3.85357C5.3741e-05 3.81967 7.23376e-05 3.78528 7.23376e-05 3.75038V3.37538C7.23376e-05 3.36876 7.17118e-05 3.36214 7.10859e-05 3.35553C5.53503e-05 3.19799 4.0062e-05 3.04452 0.00894826 2.91396C0.01869 2.77118 0.0415452 2.60189 0.114253 2.42636C0.266494 2.05881 0.558505 1.7668 0.926047 1.61456C1.10158 1.54185 1.27087 1.519 1.41365 1.50926C1.54421 1.50035 1.69768 1.50036 1.85522 1.50038C1.86183 1.50038 1.86845 1.50038 1.87507 1.50038H3.00297C3.00988 1.33099 3.03061 1.15199 3.09053 0.987351C3.24218 0.570702 3.57039 0.242491 3.98704 0.0908425C4.24191 -0.00192094 4.53117 -0.00075167 4.76597 0.000197385ZM3.00007 3.00038H1.87507C1.69008 3.00038 1.5889 3.00079 1.51576 3.00578C1.51236 3.00601 1.50916 3.00625 1.50617 3.00648C1.50594 3.00947 1.5057 3.01267 1.50547 3.01607C1.50048 3.08921 1.50007 3.19039 1.50007 3.37538V3.75038C1.50007 4.49615 1.50651 4.7219 1.55118 4.88861C1.68988 5.40625 2.09421 5.81057 2.61184 5.94927C2.70094 5.97314 2.80689 5.9861 3.00007 5.99298V3.00038ZM4.50007 1.83371C4.50007 1.66942 4.50039 1.57958 4.50435 1.51445C4.50455 1.51117 4.50475 1.50811 4.50495 1.50526C4.5078 1.50506 4.51086 1.50486 4.51414 1.50466C4.57927 1.5007 4.66911 1.50038 4.83341 1.50038H11.6667C11.831 1.50038 11.9209 1.5007 11.986 1.50466C11.9893 1.50486 11.9923 1.50506 11.9952 1.50526C11.9954 1.50811 11.9956 1.51117 11.9958 1.51445C11.9998 1.57958 12.0001 1.66942 12.0001 1.83371V6.00038C12.0001 8.07145 10.3211 9.75038 8.25007 9.75038C6.179 9.75038 4.50007 8.07145 4.50007 6.00038V1.83371ZM13.5001 3.00038V5.99298C13.6933 5.9861 13.7992 5.97314 13.8883 5.94927C14.4059 5.81057 14.8103 5.40625 14.949 4.88861C14.9936 4.7219 15.0001 4.49615 15.0001 3.75038V3.37538C15.0001 3.19039 14.9997 3.08921 14.9947 3.01607C14.9944 3.01267 14.9942 3.00947 14.994 3.00648C14.991 3.00625 14.9878 3.00601 14.9844 3.00578C14.9112 3.00079 14.8101 3.00038 14.6251 3.00038H13.5001ZM7.16674 13.5004C6.25129 13.5004 5.48573 14.1422 5.29549 15.0004H11.2047C11.0144 14.1422 10.2489 13.5004 9.33341 13.5004H7.16674Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{ref:e=>this.rewardsContainer=e,class:"Rewards"},null===(e=this.tournament)||void 0===e?void 0:e.prizes.map(((e,n)=>i("div",{class:"Reward "+(this.tournament.prizes.length===n+1?"Last":"")},i("span",{class:"Rank"}," ",e.count>1?`${e.rank} - ${e.rank+e.count-1}`:e.rank," "),i("span",{class:"Place"}," ",o(e.count>1?"places":"place",this.language),":"),i("span",{class:"PrizeName"},e.name)))))),(null===(n=this.tournament)||void 0===n?void 0:n.prizes.length)>4&&i("div",{class:"RewardsMore",onClick:this.toggleRewardsMore.bind(this)},i("div",{class:"Reward"},i("div",{class:"Icon",innerHTML:this.isHiddenRewards?'<svg width="23" height="7" viewBox="0 0 23 7" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M10.226 6.42291C10.8606 6.74835 11.8894 6.74835 12.524 6.42291L22.274 1.42291C22.9087 1.09748 22.9087 0.56984 22.274 0.244403C21.6394 -0.0810332 20.6106 -0.0810332 19.976 0.244403L11.375 4.65515L2.77405 0.244403C2.13945 -0.0810332 1.11055 -0.0810332 0.475951 0.244403C-0.158651 0.56984 -0.158651 1.09748 0.475951 1.42291L10.226 6.42291Z"\n fill="#666178" />\n </svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="23" height="7" viewBox="0 0 23 7" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M0.475951 6.42291C1.11055 6.74835 2.13945 6.74835 2.77405 6.42291L11.375 2.01217L19.976 6.42291C20.6106 6.74835 21.6394 6.74835 22.274 6.42291C22.9087 6.09748 22.9087 5.56984 22.274 5.2444L12.524 0.244403C11.8894 -0.0810332 10.8606 -0.0810332 10.226 0.244403L0.475951 5.2444C-0.158651 5.56984 -0.158651 6.09748 0.475951 6.42291Z"\n fill="#666178" />\n </svg>\n'}))),i("div",{class:"Divider"}),i("div",{class:"Rule ScoreCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M4.125 16.4999H0V11.9999C0 11.4476 0.447715 10.9999 1 10.9999H4.125V16.4999ZM8.625 5.49991C9.17729 5.49991 9.625 5.94762 9.625 6.49991V16.4999H5.5V6.49991C5.5 5.94762 5.94772 5.49991 6.5 5.49991H8.625ZM14.125 9.62491C14.6773 9.62491 15.125 10.0726 15.125 10.6249V16.4999H11V9.62491H14.125ZM7.24121 0.215728C7.36678 -0.0719094 7.75822 -0.0719094 7.88379 0.215728L8.2207 0.987213C8.27213 1.10501 8.37955 1.18553 8.50293 1.2001L9.31152 1.29581C9.61246 1.33172 9.73328 1.72024 9.50977 1.9335L8.91016 2.50577C8.81856 2.59314 8.77693 2.72466 8.80176 2.85147L8.96484 3.68155C9.02547 3.99118 8.70814 4.23186 8.44434 4.07608L7.73633 3.65811C7.6284 3.59448 7.4966 3.59448 7.38867 3.65811L6.68066 4.07608C6.41686 4.23186 6.09953 3.99118 6.16016 3.68155L6.32324 2.85147C6.34807 2.72466 6.30644 2.59314 6.21484 2.50577L5.61523 1.9335C5.39172 1.72024 5.51254 1.33172 5.81348 1.29581L6.62207 1.2001C6.74545 1.18553 6.85287 1.10501 6.9043 0.987213L7.24121 0.215728Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"ScoreCriteria",innerHTML:o(`${null===(t=this.tournament)||void 0===t?void 0:t.scoreCriteria}`,this.language)})),i("div",{class:"Divider"}),i("div",{class:"Rule QualifiedCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.54597 2.25C1.55123 2.25479 1.55693 2.25984 1.56311 2.26515C1.67835 2.36423 1.88899 2.48745 2.21449 2.60582C2.85932 2.8403 3.79985 3 4.875 3C5.95015 3 6.89068 2.8403 7.53551 2.60582C7.86101 2.48745 8.07165 2.36423 8.1869 2.26515C8.19307 2.25985 8.19877 2.25479 8.20403 2.25C8.19877 2.24521 8.19307 2.24015 8.1869 2.23485C8.07165 2.13577 7.86101 2.01255 7.53551 1.89418C6.89068 1.6597 5.95015 1.5 4.875 1.5C3.79985 1.5 2.85932 1.6597 2.21449 1.89418C1.88899 2.01255 1.67835 2.13577 1.56311 2.23485C1.55693 2.24016 1.55123 2.24521 1.54597 2.25ZM8.25 3.93747C8.18361 3.96475 8.11623 3.99074 8.04812 4.01551C7.2 4.32391 6.07803 4.5 4.875 4.5C3.67197 4.5 2.55 4.32391 1.70188 4.01551C1.63377 3.99074 1.56639 3.96475 1.5 3.93747V5.57759C1.51096 5.59109 1.53037 5.61201 1.56311 5.64015C1.67835 5.73923 1.88899 5.86245 2.21449 5.98081C2.85932 6.2153 3.79985 6.375 4.875 6.375C5.95015 6.375 6.89068 6.2153 7.53551 5.98081C7.86101 5.86245 8.07165 5.73923 8.1869 5.64015C8.21963 5.61201 8.23904 5.59109 8.25 5.57759V3.93747ZM8.25 7.31247C8.18361 7.33975 8.11623 7.36574 8.04812 7.3905C7.2 7.69891 6.07803 7.875 4.875 7.875C3.67197 7.875 2.55 7.69891 1.70188 7.3905C1.63377 7.36574 1.56639 7.33975 1.5 7.31247V8.95259C1.51096 8.96609 1.53037 8.98701 1.56311 9.01515C1.67835 9.11423 1.88899 9.23745 2.21449 9.35582C2.85932 9.5903 3.79985 9.75 4.875 9.75C5.64545 9.75 6.35243 9.6679 6.9326 9.53221C7.43537 9.41462 7.80221 9.26627 8.03201 9.12562C8.09906 9.00065 8.17184 8.87921 8.25 8.76165V7.31247ZM9.75 7.35202V2.25C9.75 1.74207 9.46457 1.35516 9.16478 1.09742C8.86255 0.837584 8.4691 0.637578 8.04812 0.484495C7.2 0.176086 6.07803 0 4.875 0C3.67197 0 2.55 0.176086 1.70188 0.484495C1.2809 0.637578 0.887447 0.837584 0.585221 1.09742C0.285429 1.35516 0 1.74207 0 2.25V12.375C0 12.8829 0.285428 13.2698 0.585221 13.5276C0.887447 13.7874 1.2809 13.9874 1.70188 14.1405C2.55 14.4489 3.67197 14.625 4.875 14.625C5.77662 14.625 6.6267 14.5262 7.34842 14.3501C7.73111 14.2567 8.09907 14.1364 8.42671 13.9856C9.24919 15.0583 10.5438 15.75 12 15.75C14.4853 15.75 16.5 13.7353 16.5 11.25C16.5 8.76472 14.4853 6.75 12 6.75C11.1804 6.75 10.4119 6.96914 9.75 7.35202ZM7.50147 11.3661C7.51286 11.8157 7.59019 12.249 7.72416 12.6565C7.52996 12.7395 7.28663 12.8211 6.99283 12.8928C6.40206 13.037 5.67277 13.125 4.875 13.125C3.79985 13.125 2.85932 12.9653 2.21449 12.7308C1.88899 12.6125 1.67835 12.4892 1.56311 12.3902C1.53037 12.362 1.51096 12.3411 1.5 12.3276V10.6875C1.56639 10.7147 1.63377 10.7407 1.70188 10.7655C2.55 11.0739 3.67197 11.25 4.875 11.25C5.7463 11.25 6.56907 11.1577 7.2742 10.9928C7.35391 10.9742 7.43289 10.9544 7.51096 10.9335C7.50369 11.0381 7.5 11.1436 7.5 11.25C7.5 11.2888 7.50049 11.3275 7.50147 11.3661ZM9 11.25C9 12.9069 10.3431 14.25 12 14.25C13.6569 14.25 15 12.9069 15 11.25C15 9.59315 13.6569 8.25 12 8.25C10.3431 8.25 9 9.59315 9 11.25Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"ScoreCriteria",innerHTML:o("minBetCount",this.language,{values:{betCount:(null===(l=this.tournament)||void 0===l?void 0:l.minBetCount)||0}})})),this.isCasinoEnabled&&[i("div",{class:"Divider"}),i("div",{class:"Rule CasinoCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="16" height="12" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3.68256 4.92549C3.68256 4.68162 3.88019 4.48369 4.12436 4.48369C4.36824 4.48369 4.56616 4.68162 4.56616 4.92549V6.11747H7.09798V4.92549C7.09798 4.68162 7.2959 4.48369 7.53978 4.48369C7.78395 4.48369 7.98158 4.68162 7.98158 4.92549V6.11747H11.7908V1.12954C11.7908 0.506893 11.2839 0 10.661 0H7.98187V0.974319C7.98187 1.21819 7.78395 1.41612 7.54007 1.41612C7.2962 1.41612 7.09827 1.21819 7.09827 0.974319V0H4.56616V0.930433C4.56616 1.17431 4.36824 1.37223 4.12436 1.37223C3.88049 1.37223 3.68256 1.17431 3.68256 0.930433V0H1.12954C0.506893 0 0 0.506893 0 1.12954V6.11747H3.68256V4.92549ZM9.1016 1.89948H10.2846C10.4484 1.89948 10.5988 1.99008 10.6753 2.1349C10.7518 2.27972 10.7419 2.45494 10.6496 2.59025L10.5214 2.77822C10.206 3.24064 10.0393 3.78088 10.0393 4.34058C10.0393 4.58457 9.84153 4.78238 9.59754 4.78238C9.35355 4.78238 9.15574 4.58457 9.15574 4.34058C9.15574 3.79728 9.27485 3.26791 9.50361 2.78308H9.10163C8.85764 2.78308 8.65983 2.58527 8.65983 2.34128C8.65983 2.09729 8.85761 1.89948 9.1016 1.89948ZM5.22171 1.8712H6.4047C6.56849 1.8712 6.71879 1.9618 6.79531 2.1066C6.87186 2.25139 6.862 2.42664 6.76972 2.56192L6.64151 2.74989C6.32612 3.21231 6.15944 3.75257 6.15944 4.31227C6.15944 4.55627 5.96164 4.75408 5.71764 4.75408C5.47365 4.75408 5.27584 4.55627 5.27584 4.31227C5.27584 3.76895 5.39492 3.23958 5.62372 2.75478H5.22174C4.97774 2.75478 4.77993 2.55697 4.77993 2.31298C4.77993 2.06898 4.97771 1.8712 5.22171 1.8712ZM2.88979 2.59022L2.76155 2.77819C2.44619 3.24055 2.27952 3.78085 2.27952 4.34055C2.27952 4.58454 2.08171 4.78235 1.83772 4.78235C1.59372 4.78235 1.39591 4.58454 1.39591 4.34055C1.39591 3.79725 1.51505 3.26783 1.74376 2.78305H1.34178C1.09779 2.78305 0.899978 2.58524 0.899978 2.34125C0.899978 2.09726 1.09779 1.89945 1.34178 1.89945H2.52481C2.6886 1.89945 2.83893 1.99005 2.91545 2.13487C2.99197 2.27969 2.9821 2.45491 2.88979 2.59022Z" fill="#9747FF"/>\n<path d="M13.9755 2.50085C13.3663 2.50085 12.8707 2.99647 12.8707 3.60562C12.8707 4.05779 13.1437 4.4474 13.5336 4.61817V6.84252C13.5336 6.92882 13.4632 6.99922 13.3769 6.99922L9.15527e-05 7.00098V7.68636C9.15527e-05 8.30901 0.506985 8.8159 1.12963 8.8159H10.661C11.2171 8.8159 11.6804 8.4121 11.7738 7.88282H13.3769C13.9507 7.88282 14.4172 7.41598 14.4172 6.84252V4.6182C14.8071 4.44743 15.0802 4.05782 15.0802 3.60562C15.0802 2.99647 14.5847 2.50085 13.9755 2.50085Z" fill="#9747FF"/>\n<path d="M10.1662 10.5414H11.349C11.593 10.5414 11.7908 10.7392 11.7908 10.9832C11.7908 11.2272 11.593 11.425 11.349 11.425H0.441893C0.197901 11.425 9.15527e-05 11.2272 9.15527e-05 10.9832C9.15527e-05 10.7392 0.197901 10.5414 0.441893 10.5414H1.62474V9.69214H10.1662V10.5414Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"Content"},i("div",{class:"Title"},o("forCasino",this.language),": "),i("div",{class:"Details",innerHTML:this.casinoRule})))],this.isSportsEnabled&&[i("div",{class:"Divider"}),i("div",{class:"Rule SportsCriteriaContainer"},i("div",{class:"Icon",innerHTML:'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.46 12.9525C15.5025 11.595 16.125 9.9 16.125 8.0625C16.125 3.615 12.51 0 8.0625 0C5.43 0 3.09 1.27501 1.62 3.24001C1.605 3.25501 1.5975 3.27 1.59 3.2775C0.600002 4.62 0 6.27 0 8.0625C0 9.855 0.622501 11.595 1.665 12.9525C1.665 12.9525 1.665 12.9525 1.6725 12.96C2.64 14.22 3.975 15.195 5.52 15.705C5.5425 15.7125 5.565 15.72 5.5875 15.7275C6.3675 15.9825 7.2 16.1175 8.0625 16.1175C8.925 16.1175 9.7575 15.975 10.5375 15.7275C10.56 15.7275 10.5825 15.7125 10.605 15.705C12.15 15.1875 13.4775 14.22 14.4525 12.96C14.4525 12.96 14.4525 12.96 14.46 12.9525ZM1.89 4.92L2.3775 6.2025L1.2 7.09501C1.3125 6.3225 1.545 5.5875 1.89 4.9125V4.92ZM3.1575 7.0275L4.5975 7.5075L5.46 10.9575L4.7625 12H2.3625C1.6725 11.0025 1.245 9.825 1.155 8.55L3.165 7.0275H3.1575ZM4.6275 13.125L4.9125 14.235C4.335 13.9425 3.8025 13.5675 3.3375 13.125H4.6275ZM6.5025 10.5L5.7075 7.3125L8.0625 5.7375L10.4175 7.3125L9.6225 10.5H6.5025ZM11.4975 13.125H12.7875C12.315 13.5675 11.79 13.9425 11.2125 14.235L11.4975 13.125ZM11.3625 12L10.665 10.9575L11.5275 7.5L12.9525 7.0275L14.97 8.5575C14.88 9.8325 14.4525 11.01 13.7625 12H11.3625ZM14.925 7.1025L13.74 6.2025L14.235 4.90499C14.58 5.58 14.82 6.3225 14.9325 7.1025H14.925ZM13.47 3.735L12.6225 5.94749L11.1375 6.4425L8.6175 4.7625V3.34501L10.815 1.7025C11.8575 2.16 12.765 2.8575 13.47 3.735ZM9.5025 1.28251L8.055 2.3625L6.6075 1.28251C7.0725 1.18501 7.56 1.125 8.055 1.125C8.55 1.125 9.0375 1.17751 9.5025 1.28251ZM5.295 1.7025L7.4925 3.34501V4.7625L4.9725 6.4425L3.48 5.94749L2.64 3.7425C3.345 2.865 4.25251 2.16 5.30251 1.7025H5.295ZM6.195 14.7375L5.6625 12.6675L6.3525 11.625H9.7575L10.4475 12.6675L9.915 14.7375C9.3225 14.9025 8.7 15 8.055 15C7.41 15 6.7875 14.9025 6.195 14.7375Z" fill="#9747FF"/>\n</svg>\n'}),i("div",{class:"Content"},i("div",{class:"Title"},o("forSportsbook",this.language),": "),i("ul",{class:"Details"},(this.sportsRules||[]).map((e=>i("li",{class:"Item"},e))))))],(null===(r=this.tournament)||void 0===r?void 0:r.termsUrl)&&!this.cmsEndpoint&&[i("div",{class:"Divider"}),i("div",{class:"Rule TMContainer"},i("div",{class:"Icon",innerHTML:s}),i("div",{class:"ScoreCriteria"},o("termsSee",this.language),i("a",{href:(null===(a=this.tournament)||void 0===a?void 0:a.termsUrl)||"",target:"_blank"},o("termsTC",this.language))))],this.cmsEndpoint&&(this.tournamentDescription||[]).map(((e,n)=>[i("div",{class:"Divider"}),i("div",{class:`Rule CmsTMContainer Item${n}`},0===n&&i("div",{class:"Icon",innerHTML:s}),i("div",{class:"Title CmsItem"},e.title)),i("div",{class:"Rule Details CmsItem",innerHTML:e.description})]))):i("div",{class:"Loading"},"Loading"))}async componentWillLoad(){this.cmsEndpoint&&this.loadCMSInfo(),this.translationUrl.length>2&&await t(this.translationUrl)}handleNewTranslations(){t(this.translationUrl)}componentDidLoad(){var e,i,n;if(this.initGameRules(),(null===(i=null===(e=this.rewardsContainer)||void 0===e?void 0:e.children)||void 0===i?void 0:i.length)<4)return;(null===(n=this.tournament)||void 0===n?void 0:n.prizes.length)>4&&(this.rewardsContainer.style.height="90px");let t=this.rewardsContainer.children[3].offsetTop-this.rewardsContainer.offsetTop;t+=13,this.rewardDefaultHeight=t,this.rewardsContainer.style.height=`${t}px`}static get watchers(){return{isHiddenRewards:["onHiddenRewardsChange"],tournament:["onTournamentChange"],cmsEndpoint:["loadCMSInfo"],translationUrl:["handleNewTranslations"]}}};r.style=".RulesWrapper{overflow-y:auto;scrollbar-width:thin;padding:15px;height:calc(100% - 50px)}.Desktop .RulesWrapper{height:calc(100% - 30px);overflow-y:auto;scrollbar-width:thin}.TournamentRuleContainer .RewardsMore{display:flex;cursor:pointer;justify-content:center;margin-top:0px;width:100%;justify-self:center}.TournamentRuleContainer .RewardsMore .Icon svg{width:16px}.TournamentRuleContainer .Rule{display:flex;flex-direction:row;gap:8px;line-height:18px;margin-bottom:15px}.TournamentRuleContainer .Rule .Icon{width:16px;line-height:16px}.TournamentRuleContainer .RewardsContainer .RewardsTitle{font-weight:bold;font-size:var(--emw--font-size-medium, 14px)}.TournamentRuleContainer .RewardsContainer .Rewards{display:flex;flex-grow:1;flex-wrap:nowrap;flex-direction:column;height:fit-content;transition:height 0.3s ease-in-out;overflow:hidden;gap:6px}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore{transition:height 0.3s ease-in-out;height:max-content;cursor:pointer;height:max-content}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore .Reward:nth-child(4){opacity:1}.TournamentRuleContainer .RewardsContainer .Rewards.ShowMore .Reward:nth-child(n+5){display:flex}.TournamentRuleContainer .RewardsContainer .Rewards .Reward{display:flex;flex-direction:row;gap:6px}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .Rank{white-space:nowrap;color:var(--emw--ingame-color-lav-gray, #B4B0CC)}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .Place{margin-right:3px;color:var(--emw--ingame-color-lav-gray, #B4B0CC)}.TournamentRuleContainer .RewardsContainer .Rewards .Reward .PrizeName{flex:1 1;font-weight:bold;white-space:pre-line;word-break:break-all}.TournamentRuleContainer .RewardsContainer .Rewards .Reward:nth-child(4){opacity:0.4}.TournamentRuleContainer .RewardsContainer .Rewards .Reward.Last:nth-child(4){opacity:1}.TournamentRuleContainer .RewardsContainer .Rewards .Reward:nth-child(n+5){display:none}.TournamentRuleContainer .TMContainer .ScoreCriteria a{cursor:pointer;font-weight:bold;color:var(--emw--ingame-color-text, #F4EFF4)}.TournamentRuleContainer .CmsTMContainer.Item0 .Title.CmsItem{margin-left:0}.TournamentRuleContainer .CmsTMContainer .Title{font-weight:bold;color:var(--emw--ingame-color-text, #F4EFF4)}.TournamentRuleContainer .CmsTMContainer .Title.CmsItem{margin-left:24px}.TournamentRuleContainer .CmsItem{margin-left:28px;display:block}.TournamentRuleContainer .SportsCriteriaContainer .Details{padding-inline-start:10px}";export{r as C}
@@ -1 +1 @@
1
- export{C as casino_tournaments_ingame_rule}from"./casino-tournaments-ingame-rule-cc0a3bb2.js";import"./index-80e4149e.js";
1
+ export{C as casino_tournaments_ingame_rule}from"./casino-tournaments-ingame-rule-c48d8b16.js";import"./index-80e4149e.js";
@@ -1 +1 @@
1
- export{C as CasinoTournamentsIngameRule}from"./casino-tournaments-ingame-rule-cc0a3bb2.js";import"./index-80e4149e.js";
1
+ export{C as CasinoTournamentsIngameRule}from"./casino-tournaments-ingame-rule-c48d8b16.js";import"./index-80e4149e.js";
@@ -310,7 +310,7 @@ const CasinoTournamentsIngameRule = class {
310
310
  }
311
311
  render() {
312
312
  var _a, _b, _c, _d, _e, _f;
313
- return index.h("div", { key: '967ae2276f94291d51e2ae6c078cdd0f12275bcb', class: 'RulesWrapper' }, !this.tournament ? index.h("div", { class: 'Loading' }, "Loading") : index.h("div", { class: 'TournamentRuleContainer' }, index.h("div", { class: 'Rule RewardsContainer' }, index.h("div", { class: 'Icon', innerHTML: RewardsSvg }), index.h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
313
+ return index.h("div", { key: 'e8bf31a49b1cf1df0aa8b119dc22353a9be2eb39', class: 'RulesWrapper' }, !this.tournament ? index.h("div", { class: 'Loading' }, "Loading") : index.h("div", { class: 'TournamentRuleContainer' }, index.h("div", { class: 'Rule RewardsContainer' }, index.h("div", { class: 'Icon', innerHTML: RewardsSvg }), index.h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
314
314
  return index.h("div", { class: `Reward ${this.tournament.prizes.length === idx + 1 ? 'Last' : ''}` }, index.h("span", { class: 'Rank' }, " ", prize.count > 1 ? `${prize.rank} - ${prize.rank + prize.count - 1}` : prize.rank, " "), index.h("span", { class: 'Place' }, " ", prize.count > 1 ? translate('places', this.language) : translate('place', this.language), ":"), index.h("span", { class: 'PrizeName' }, prize.name));
315
315
  }))), ((_b = this.tournament) === null || _b === void 0 ? void 0 : _b.prizes.length) > 4 && index.h("div", { class: 'RewardsMore', onClick: this.toggleRewardsMore.bind(this) }, index.h("div", { class: 'Reward' }, index.h("div", { class: 'Icon', innerHTML: this.isHiddenRewards ? ChevronDownSvg : ChevronUpSvg }))), index.h("div", { class: 'Divider' }), index.h("div", { class: 'Rule ScoreCriteriaContainer' }, index.h("div", { class: 'Icon', innerHTML: UnionSvg }), index.h("div", { class: 'ScoreCriteria', innerHTML: translate(`${(_c = this.tournament) === null || _c === void 0 ? void 0 : _c.scoreCriteria}`, this.language) })), index.h("div", { class: 'Divider' }), index.h("div", { class: 'Rule QualifiedCriteriaContainer' }, index.h("div", { class: 'Icon', innerHTML: Coins }), index.h("div", { class: 'ScoreCriteria', innerHTML: translate('minBetCount', this.language, { values: { betCount: ((_d = this.tournament) === null || _d === void 0 ? void 0 : _d.minBetCount) || 0 } }) })), this.isCasinoEnabled && [
316
316
  index.h("div", { class: 'Divider' }),
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoTournamentsIngameRule = require('./casino-tournaments-ingame-rule-7bab0668.js');
5
+ const casinoTournamentsIngameRule = require('./casino-tournaments-ingame-rule-7e54ff4d.js');
6
6
  require('./index-a2bfab9d.js');
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoTournamentsIngameRule = require('./casino-tournaments-ingame-rule-7bab0668.js');
5
+ const casinoTournamentsIngameRule = require('./casino-tournaments-ingame-rule-7e54ff4d.js');
6
6
  require('./index-a2bfab9d.js');
7
7
 
8
8
 
@@ -103,7 +103,7 @@ export class CasinoTournamentsIngameRule {
103
103
  }
104
104
  render() {
105
105
  var _a, _b, _c, _d, _e, _f;
106
- return h("div", { key: '967ae2276f94291d51e2ae6c078cdd0f12275bcb', class: 'RulesWrapper' }, !this.tournament ? h("div", { class: 'Loading' }, "Loading") : h("div", { class: 'TournamentRuleContainer' }, h("div", { class: 'Rule RewardsContainer' }, h("div", { class: 'Icon', innerHTML: RewardsSvg }), h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
106
+ return h("div", { key: 'e8bf31a49b1cf1df0aa8b119dc22353a9be2eb39', class: 'RulesWrapper' }, !this.tournament ? h("div", { class: 'Loading' }, "Loading") : h("div", { class: 'TournamentRuleContainer' }, h("div", { class: 'Rule RewardsContainer' }, h("div", { class: 'Icon', innerHTML: RewardsSvg }), h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
107
107
  return h("div", { class: `Reward ${this.tournament.prizes.length === idx + 1 ? 'Last' : ''}` }, h("span", { class: 'Rank' }, " ", prize.count > 1 ? `${prize.rank} - ${prize.rank + prize.count - 1}` : prize.rank, " "), h("span", { class: 'Place' }, " ", prize.count > 1 ? translate('places', this.language) : translate('place', this.language), ":"), h("span", { class: 'PrizeName' }, prize.name));
108
108
  }))), ((_b = this.tournament) === null || _b === void 0 ? void 0 : _b.prizes.length) > 4 && h("div", { class: 'RewardsMore', onClick: this.toggleRewardsMore.bind(this) }, h("div", { class: 'Reward' }, h("div", { class: 'Icon', innerHTML: this.isHiddenRewards ? ChevronDownSvg : ChevronUpSvg }))), h("div", { class: 'Divider' }), h("div", { class: 'Rule ScoreCriteriaContainer' }, h("div", { class: 'Icon', innerHTML: UnionSvg }), h("div", { class: 'ScoreCriteria', innerHTML: translate(`${(_c = this.tournament) === null || _c === void 0 ? void 0 : _c.scoreCriteria}`, this.language) })), h("div", { class: 'Divider' }), h("div", { class: 'Rule QualifiedCriteriaContainer' }, h("div", { class: 'Icon', innerHTML: Coins }), h("div", { class: 'ScoreCriteria', innerHTML: translate('minBetCount', this.language, { values: { betCount: ((_d = this.tournament) === null || _d === void 0 ? void 0 : _d.minBetCount) || 0 } }) })), this.isCasinoEnabled && [
109
109
  h("div", { class: 'Divider' }),
@@ -185,12 +185,12 @@ export class CasinoTournamentsIngameRule {
185
185
  "mutable": false,
186
186
  "complexType": {
187
187
  "original": "Tournament",
188
- "resolved": "{ href: string; id: string; nameOrTitle?: string; description: string; termsUrl?: string; baseCurrency: string; thumbnail?: string; thumbnails?: any[]; startTime: string; endTime: string; closeTime: string; exhibitionStartTime?: string; exhibitionEndTime?: string; state: string; tags?: string; minBetCount?: number; scoreCriteria?: string; enrollCriteria?: string; prizes: TournamentPrize[]; playerEnrolled?: boolean; overview?: { participants: number; }; metadata?: { sports?: { rules?: string; }; }; wallet?: { casino?: any; sports?: any; }; wallets?: { [key: string]: any; code: string; }[]; games?: { count: number; items: CasinoGame[]; total: number; }; presentPeriod?: { start: string; end: string; }; }",
188
+ "resolved": "{ href: string; id: string; nameOrTitle?: string; description: string; termsUrl?: string; baseCurrency: string; thumbnail?: string; thumbnails?: any[]; startTime: string; endTime: string; closeTime: string; exhibitionStartTime?: string; exhibitionEndTime?: string; state: string; tags?: string; minBetCount?: number; scoreCriteria?: string; enrollCriteria?: string; prizes?: TournamentPrize[]; playerEnrolled?: boolean; overview?: { participants: number; }; metadata?: { sports?: { rules?: string; }; }; wallet?: { casino?: any; sports?: any; }; wallets?: { [key: string]: any; code: string; }[]; games?: { count: number; items: CasinoGame[]; total: number; }; presentPeriod?: { start: string; end: string; }; }",
189
189
  "references": {
190
190
  "Tournament": {
191
191
  "location": "import",
192
- "path": "../../utils/types",
193
- "id": "../../../../packages/stencil/casino-tournaments-ingame-rule/src/utils/types.ts::Tournament"
192
+ "path": "@widgets/common/types/tournaments",
193
+ "id": "../../../../libs/common/src/types/casino/tournaments.ts::Tournament"
194
194
  }
195
195
  }
196
196
  },
@@ -308,7 +308,7 @@ const CasinoTournamentsIngameRule = class {
308
308
  }
309
309
  render() {
310
310
  var _a, _b, _c, _d, _e, _f;
311
- return h("div", { key: '967ae2276f94291d51e2ae6c078cdd0f12275bcb', class: 'RulesWrapper' }, !this.tournament ? h("div", { class: 'Loading' }, "Loading") : h("div", { class: 'TournamentRuleContainer' }, h("div", { class: 'Rule RewardsContainer' }, h("div", { class: 'Icon', innerHTML: RewardsSvg }), h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
311
+ return h("div", { key: 'e8bf31a49b1cf1df0aa8b119dc22353a9be2eb39', class: 'RulesWrapper' }, !this.tournament ? h("div", { class: 'Loading' }, "Loading") : h("div", { class: 'TournamentRuleContainer' }, h("div", { class: 'Rule RewardsContainer' }, h("div", { class: 'Icon', innerHTML: RewardsSvg }), h("div", { ref: el => this.rewardsContainer = el, class: `Rewards` }, (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.prizes.map((prize, idx) => {
312
312
  return h("div", { class: `Reward ${this.tournament.prizes.length === idx + 1 ? 'Last' : ''}` }, h("span", { class: 'Rank' }, " ", prize.count > 1 ? `${prize.rank} - ${prize.rank + prize.count - 1}` : prize.rank, " "), h("span", { class: 'Place' }, " ", prize.count > 1 ? translate('places', this.language) : translate('place', this.language), ":"), h("span", { class: 'PrizeName' }, prize.name));
313
313
  }))), ((_b = this.tournament) === null || _b === void 0 ? void 0 : _b.prizes.length) > 4 && h("div", { class: 'RewardsMore', onClick: this.toggleRewardsMore.bind(this) }, h("div", { class: 'Reward' }, h("div", { class: 'Icon', innerHTML: this.isHiddenRewards ? ChevronDownSvg : ChevronUpSvg }))), h("div", { class: 'Divider' }), h("div", { class: 'Rule ScoreCriteriaContainer' }, h("div", { class: 'Icon', innerHTML: UnionSvg }), h("div", { class: 'ScoreCriteria', innerHTML: translate(`${(_c = this.tournament) === null || _c === void 0 ? void 0 : _c.scoreCriteria}`, this.language) })), h("div", { class: 'Divider' }), h("div", { class: 'Rule QualifiedCriteriaContainer' }, h("div", { class: 'Icon', innerHTML: Coins }), h("div", { class: 'ScoreCriteria', innerHTML: translate('minBetCount', this.language, { values: { betCount: ((_d = this.tournament) === null || _d === void 0 ? void 0 : _d.minBetCount) || 0 } }) })), this.isCasinoEnabled && [
314
314
  h("div", { class: 'Divider' }),
@@ -1,2 +1,2 @@
1
- export { C as casino_tournaments_ingame_rule } from './casino-tournaments-ingame-rule-cc0a3bb2.js';
1
+ export { C as casino_tournaments_ingame_rule } from './casino-tournaments-ingame-rule-c48d8b16.js';
2
2
  import './index-80e4149e.js';
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CasinoTournamentsIngameRule } from './casino-tournaments-ingame-rule-cc0a3bb2.js';
1
+ export { C as CasinoTournamentsIngameRule } from './casino-tournaments-ingame-rule-c48d8b16.js';
2
2
  import './index-80e4149e.js';
@@ -47,7 +47,7 @@ export type Tournament = {
47
47
  minBetCount?: number;
48
48
  scoreCriteria?: string;
49
49
  enrollCriteria?: string;
50
- prizes: Array<TournamentPrize>;
50
+ prizes?: TournamentPrize[] | null;
51
51
  playerEnrolled?: boolean;
52
52
  overview?: {
53
53
  participants: number;
@@ -67,7 +67,7 @@ export type Tournament = {
67
67
  }>;
68
68
  games?: {
69
69
  count: number;
70
- items: Array<CasinoGame>;
70
+ items: CasinoGame[] | null;
71
71
  total: number;
72
72
  };
73
73
  presentPeriod?: {
@@ -1,4 +1,4 @@
1
- import { Tournament } from '../../utils/types';
1
+ import { Tournament } from "../../../../../../libs/common/src/types/casino/tournaments";
2
2
  export declare class CasinoTournamentsIngameRule {
3
3
  /**
4
4
  * Translation url
@@ -5,8 +5,8 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { Tournament } from "./utils/types";
9
- export { Tournament } from "./utils/types";
8
+ import { Tournament } from "../../../../libs/common/src/types/casino/tournaments";
9
+ export { Tournament } from "../../../../libs/common/src/types/casino/tournaments";
10
10
  export namespace Components {
11
11
  interface CasinoTournamentsIngameRule {
12
12
  "cmsEndpoint": string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-ingame-rule",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,7 +0,0 @@
1
- export var TournamentState;
2
- (function (TournamentState) {
3
- TournamentState["Unstarted"] = "Unstarted";
4
- TournamentState["Ongoing"] = "Running";
5
- TournamentState["Closing"] = "Closing";
6
- TournamentState["Closed"] = "Closed";
7
- })(TournamentState || (TournamentState = {}));