@everymatrix/tournament-details-page 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/components/{TournamentDetails-C_f9o603.js → TournamentDetails-BVnS_IYF.js} +247 -666
  2. package/components/TournamentDetails-BoaqYHo1.cjs +3 -0
  3. package/components/TournamentDetails-CYrQWwZn.cjs +3 -0
  4. package/components/{TournamentDetails-HtQSmioM.js → TournamentDetails-hOUvqDF2.js} +250 -669
  5. package/components/TournamentDetailsPage-BgoG6goQ.cjs +36 -0
  6. package/components/{TournamentDetailsPage-Bd3xnU6b.js → TournamentDetailsPage-DcS7Pa0U.js} +338 -434
  7. package/components/{TournamentDetailsPage-Wc_qqtHS.js → TournamentDetailsPage-LxAzPvhv.js} +351 -402
  8. package/components/TournamentDetailsPage-WnIR1yO-.cjs +36 -0
  9. package/components/{TournamentGames-DqePP6sz.js → TournamentGames-B5Vr9KT7.js} +484 -468
  10. package/components/{TournamentGames-n3vpJ0SA.js → TournamentGames-Bgha2ST9.js} +448 -432
  11. package/components/TournamentGames-DXcN8tkz.cjs +51 -0
  12. package/components/TournamentGames-DpOh7T_F.cjs +51 -0
  13. package/components/TournamentLeaderboard-8MMMRNQy.cjs +46 -0
  14. package/components/TournamentLeaderboard-C_Ne8wC4.js +7718 -0
  15. package/components/TournamentLeaderboard-DpfSasWx.cjs +46 -0
  16. package/components/TournamentLeaderboard-cxKLflDm.js +7614 -0
  17. package/es2015/tournament-details-page.cjs +1 -1
  18. package/es2015/tournament-details-page.js +2 -2
  19. package/esnext/tournament-details-page.cjs +1 -1
  20. package/esnext/tournament-details-page.js +2 -2
  21. package/package.json +1 -1
  22. package/components/TournamentDetails-CNV6FJFf.cjs +0 -3
  23. package/components/TournamentDetails-h5LnXQfE.cjs +0 -3
  24. package/components/TournamentDetailsPage-6yyclmUS.cjs +0 -44
  25. package/components/TournamentDetailsPage-DEsqiKjD.cjs +0 -44
  26. package/components/TournamentGames-CVFiICNX.cjs +0 -51
  27. package/components/TournamentGames-Chs_XOxu.cjs +0 -51
  28. package/components/TournamentLeaderboard-B_9ojgZo.js +0 -7455
  29. package/components/TournamentLeaderboard-CJLCAutr.cjs +0 -38
  30. package/components/TournamentLeaderboard-CP3IAn1u.js +0 -7557
  31. package/components/TournamentLeaderboard-Dz-5i1SK.cjs +0 -38
@@ -1,44 +0,0 @@
1
- var Re=(s,t,n)=>new Promise((i,p)=>{var g=o=>{try{m(n.next(o))}catch(b){p(b)}},f=o=>{try{m(n.throw(o))}catch(b){p(b)}},m=o=>o.done?i(o.value):Promise.resolve(o.value).then(g,f);m((n=n.apply(s,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-Dz-5i1SK.cjs"),De=require("./TournamentGames-CVFiICNX.cjs"),ee=require("./TournamentDetails-h5LnXQfE.cjs");function c2({withLocale:s,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(s))})}function Be(s,t){e.addMessages(s,t)}function Oe(s){e.$locale.set(s)}const qe={en:{totalPrizes:"Total prizes",viewPrizes:"View Prizes",moreGames:"More Games",play:"Play",joinButton:"Join",rules:"Rules",scoreCriteriaType:{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.",mostRounds:"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
2
- as a sum of win/stake ratios for qualified rounds and bets.
3
- The player who got the highest score will win the tournament.`,winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
4
- <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
5
- minimum score value.</span>
6
- </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.
7
- For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.
8
- 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
9
- rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.
10
- In this case. the score will be calculated as 1+3+2=6.`},miniBetCount:"Minimum bet count: <b>{betCount}</b>. To be qualified for prizes, the player has to play at least <b>{betCount} rounds</b>, otherwise the prize won’t be granted.",timePeriod:"The tournament starts at <b>{startTime}</b> and ends at <b>{endTime}</b>",terms:'See <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Terms & Conditions.</a>',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"},tr:{totalPrizes:"Toplam Ödüller",viewPrizes:"Ödülleri Görüntüle",moreGames:"Daha Fazla Oyun",play:"Oyna",joinButton:"Katıl",scoreCriteriaType:{stake:"Bu turnuvanın puan kriteri <b>Ciro</b>'dur. Oluşturulan her X için (X= oyuncunun para biriminde veya temel para birimindeki eşdeğerinde oynanan bahis miktarı) oyuncu 1 puan alacaktır. En fazla ciroya sahip olan oyuncu en yüksek puana ve sıralamaya sahip olacaktır.",mostRounds:"Bu turnuvanın puan kriteri <b>En Çok Tur</b>'dur. Oynanan her tur için oyuncu 1 puan alacaktır. En fazla oynanan tur/bahis sayısına sahip olan oyuncu, en yüksek puana ve sıralamaya sahip olacaktır.",winStakeRatio:"Bu turnuvanın puan kriteri <b>Galibiyet/Durum Oranı</b>'dır. Puan, nitelikli turlar ve bahisler için kazanma/bahis oranlarının toplamı olarak hesaplanacaktır. En yüksek puanı alan oyuncu turnuvayı kazanacak.",winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
11
- <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
12
- minimum score value.</span>
13
- </li></ul>`,maxWinStakeRatio:"Bu turnuvanın puan kriteri <b>Maksimum Galibiyet/Durum Oranı</b>'dır. En küçük bahsi koyarak en büyük kazancı elde eden oyuncu turnuvayı kazanacaktır (bahis = 10 EUR, galibiyet = 5000 EUR, skor 500 olacaktır). Yalnızca daha yüksek oran oyuncunun puanını güncelleyecektir."},miniBetCount:"Minimum bahis sayısı: <b>{betCount}</b>. Ödüllere hak kazanmak için oyuncunun en az <b>{betCount} tur</b> oynaması gerekir, aksi takdirde ödül verilmeyecektir.",timePeriod:"Turnuva <b>{startTime}</b> tarihinde başlar ve <b>{endTime}</b> tarihinde sona erer",terms:'Bkz. <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Şartlar ve Koşullar.</a>',productNoLimitsBet:"{productName} için minimum ve maksimum bahis limiti belirlenmemiştir.",casinoRuleMinMaxBet:"Min bahis{minBet}, Maks bahis{maxBet}",unlimited:"Sınırsız",forCasino:"Casino Oyunları İçin",forSportsbook:"Spor Bahisleri İçin",sportsRuleMinMaxBet:"Min bahis{sportMinBet}, Maks bahis{sportMaxBet}",sportsRuleMinMaxOdds:"Min Oran{sportMinOdds}, Maks Oran{sportMaxOdds}",matchTyppePre:"Maç Öncesi Spor bahisleri",matchTypeLive:"Canlı Spor bahisleri",matchTypePreAndLive:"Maç Öncesi ve Canlı Spor bahisleri",betTypeSingle:"Tekli bahis",betTypeMultiple:"Kombine bahis",betTypeSystem:"Sistem bahis",typeOfSelection:"Seçim türü",numberOfSelection:"Seçim sayısı",oddsPerSelection:"Seçim başına oranlar",betBuilderOnly:"Yalnızca Bahis Oluşturucu",bankerOnly:"Yalnızca Banker",typeOfSelectionAny:"Herhangi",notBuilderOnly:"Bahis Oluşturucu Hariç",nonBankerOnly:"Banker Hariç"},da:{totalPrizes:"Samlede præmier",moreGames:"Flere spil",play:"Spil",rules:"Regler",scoreCriteriaType:{stake:"Scoringskriteriet for denne turnering er <b>Omsætning</b>. For hver X genereret (X= beløb satset i spillerens valuta eller tilsvarende i basisvaluta) får spilleren 1 point. Spilleren med den største omsætning får den højeste score og rang.",mostRounds:"Scoringskriteriet for denne turnering er <b>Flest runder</b>. For hver spillet runde får spilleren 1 point. Spilleren med det største antal spillede runder / placerede væddemål får den højeste score og rang.",winStakeRatio:"Scoringskriteriet for denne turnering er <b>Gevinst/Indsats-forhold</b>. Scoren beregnes som summen af gevinst/indsats-forhold for kvalificerede runder og væddemål. Spilleren med den højeste score vinder turneringen.",winStakeRatioWinMinScore:'<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum score: {minScore} <span class="Desc">Spilleren får ikke point, hvis gevinst/indsats-forholdet i hver runde er lavere end den definerede minimumsscoreværdi.</span></li></ul>',maxWinStakeRatio:"Scoringskriteriet for denne turnering er <b>Maks. gevinst/indsats-forhold</b>. Spilleren, der får den største gevinst ved at placere den mindste indsats, vinder turneringen (indsats = 10 EUR, gevinst = 5000 EUR, scoren bliver 500). Kun et højere forhold vil opdatere spillerens score.",win:"Scoringskriteriet for denne turnering er <b>Gevinster</b>. Scoren beregnes ud fra summen af alle væddemålsgevinster i de kvalificerende runder/væddemål. For eksempel har en spiller to kvalificerende runder. Han vandt €1 i den ene runde og €3 i den anden. I dette tilfælde beregnes scoren som 1+3=4.",winBetCount:"Scoringskriteriet for denne turnering er <b>Gevinster og antal runder</b>. Scoren beregnes ud fra summen af alle væddemålsgevinster og antallet af runder i de kvalificerende runder/væddemål. For eksempel har en spiller to kvalificerende runder. Han vandt €1 i den ene runde og €3 i den anden. I dette tilfælde beregnes scoren som 1+3+2=6."},miniBetCount:"Minimum antal væddemål: <b>{betCount}</b>. For at være kvalificeret til præmier skal spilleren spille mindst <b>{betCount} runder</b>, ellers gives præmien ikke.",timePeriod:"Turneringen starter kl. <b>{startTime}</b> og slutter kl. <b>{endTime}</b>",terms:'Se <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Vilkår og betingelser.</a>',productNoLimitsBet:"For {productName} er der ingen minimums- og maksimumsindsatsgrænser fastsat.",casinoRuleMinMaxBet:"Min. indsats{minBet}, Maks. indsats{maxBet}",unlimited:"Ubegrænset",forCasino:"For casinospil",forSportsbook:"For sportsbook",sportsRuleMinMaxBet:"Min. indsats{sportMinBet}, Maks. indsats{sportMaxBet}",sportsRuleMinMaxOdds:"Min. odds{sportMinOdds}, Maks. odds{sportMaxOdds}",matchTyppePre:"Prelive sportsvæddemål",matchTypeLive:"Live sportsvæddemål",matchTypePreAndLive:"Prelive- og Live-sportsvæddemål",betTypeSingle:"Enkelt væddemål",betTypeMultiple:"Kombinationsvæddemål",betTypeSystem:"Systemvæddemål",typeOfSelection:"Type af valg",numberOfSelection:"Antal valg",oddsPerSelection:"Odds pr. valg",betBuilderOnly:"Kun Bet Builder",bankerOnly:"Kun banker",typeOfSelectionAny:"Alle",notBuilderOnly:"Ikke kun Bet Builder",nonBankerOnly:"Ikke kun banker"}},Le=[],Ee={},m2=(s,t=0)=>{if(Le.indexOf(s)==-1){const n=new De.ReplaySubject(t);Ee[s]=n,Le.push(s)}return Ee[s]};typeof window!="undefined"&&(window.emWidgets={topic:m2});const v2=s=>s.toLowerCase().match(/android/i)?"Android":s.toLowerCase().match(/iphone/i)?"iPhone":s.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;ee.dayjs.extend(ee.customParseFormat);const Pe=s=>ee.dayjs(s).format("MMMM D, HH:mm"),p2=()=>typeof window=="undefined";class He{constructor(){}static processMinMax(t,n){return{minValue:t?`: ${t}`:null,maxValue:n?`: ${n}`:null}}static generateCasinoRule(t,n){var m,o;const i=` ~ ${t("unlimited")}`,p=n.currency||"EUR",g=(m=n.minStake)!=null&&m.amount[p]?`: ${n.minStake.amount[p]} ${p}`:i,f=(o=n.maxStake)!=null&&o.amount[p]?`: ${n.maxStake.amount[p]} ${p}`:i;return t("casinoRuleMinMaxBet",{values:{minBet:g,maxBet:f}})}static generateSportsRule(t,n){var x,F,$,R,B,D,j,O,K,J;const i=[],p=` ~ ${t("unlimited")}`,g=n.currency||"EUR",f=(x=n.minStake)!=null&&x.amount[g]?`: ${n.minStake.amount[g]} ${g}`:p,m=(F=n.maxStake)!=null&&F.amount[g]?`: ${n.maxStake.amount[g]} ${g}`:p;i.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:f,sportMaxBet:m}}));const o=n.config.liveMatch==="true",b=n.config.preLiveMatch==="true";o&&b?i.push(t("matchTypePreAndLive")):o?i.push(`${t("matchTypeLive")}`):b&&i.push(`${t("matchTyppePre")}`);const y=n.combination,u=[];y.single.isEligible&&u.push(t("betTypeSingle"));const te={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},ne={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let _="",l="";const E=`${t("oddsPerSelection")}: ${n.config.minOdds||t("unlimited")} - ${n.config.maxOdds||t("unlimited")}`,P=y.system.isEligible,H=y.multiple.isEligible;P&&(_=` ${t("betTypeSystem")}
14
- ( ${t("typeOfSelection")}: ${te[((R=($=n.combination.system.banker)==null?void 0:$.include)==null?void 0:R.toString())||"null"]},
15
- ${t("numberOfSelection")}:
16
- ${((B=y.system.minSelection)==null?void 0:B.number)||t("unlimited")} - ${((D=y.system.maxSelection)==null?void 0:D.number)||t("unlimited")},
17
- ${E} ) `),H&&(l=` ${t("betTypeMultiple")}
18
- ( ${t("typeOfSelection")}: ${ne[((O=(j=n.combination.multiple.betBuilder)==null?void 0:j.mode)==null?void 0:O.toString())||"unspecific"]},
19
- ${t("numberOfSelection")}:
20
- ${((K=y.multiple.minSelection)==null?void 0:K.number)||t("unlimited")} - ${((J=y.multiple.maxSelection)==null?void 0:J.number)||t("unlimited")},
21
- ${E} ) `),P&&H?u.push(l+t("and")+_):P?u.push(_):H&&u.push(l),i.push(u.join(", "));const X=n.config.minTotalOdds?`: ${n.config.minTotalOdds}`:p,z=n.config.maxTotalOdds?`: ${n.config.maxTotalOdds}`:p;return i.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:X,sportMaxOdds:z}})}`),i}}const g2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%2013.4315C10.4965%2013.4315%2010.8065%2013.7415%2010.8065%2014.1238C10.8065%2014.353%2011.001%2014.7342%2011.708%2015.0993C12.3797%2015.4461%2013.3557%2015.6812%2014.4718%2015.6812C15.5879%2015.6812%2016.5642%2015.4461%2017.2361%2015.0993C17.9435%2014.7342%2018.138%2014.3528%2018.138%2014.1238C18.138%2013.7415%2018.448%2013.4315%2018.8303%2013.4315C19.2126%2013.4315%2019.5226%2013.7415%2019.5226%2014.1238C19.5226%2015.1368%2018.7414%2015.8804%2017.8712%2016.3296C16.9656%2016.7971%2015.7626%2017.0658%2014.4718%2017.0658C13.181%2017.0658%2011.9782%2016.7971%2011.0728%2016.3296C10.2027%2015.8803%209.42185%2015.1367%209.42185%2014.1238C9.42185%2013.7415%209.73182%2013.4315%2010.1142%2013.4315Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%209.1839C4.16841%209.1839%204.47836%209.49386%204.47836%209.8762C4.47836%2010.1058%204.67303%2010.487%205.38022%2010.852C6.05207%2011.1988%207.02836%2011.4337%208.14459%2011.4337C8.52693%2011.4337%208.83689%2011.7436%208.83689%2012.126C8.83689%2012.5083%208.52693%2012.8183%208.14459%2012.8183C6.85387%2012.8183%205.65089%2012.5498%204.74522%2012.0824C3.87488%2011.6333%203.09375%2010.8896%203.09375%209.8762C3.09375%209.49386%203.40371%209.1839%203.78606%209.1839Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%205.25C4.16841%205.25%204.47836%205.55996%204.47836%205.94231V13.8114C4.47836%2014.041%204.67303%2014.4222%205.38022%2014.7872C6.05207%2015.1339%207.02836%2015.3689%208.14459%2015.3689C8.52693%2015.3689%208.83689%2015.6788%208.83689%2016.0612C8.83689%2016.4436%208.52693%2016.7535%208.14459%2016.7535C6.85387%2016.7535%205.65089%2016.485%204.74522%2016.0177C3.87488%2015.5685%203.09375%2014.8249%203.09375%2013.8114V5.94231C3.09375%205.55996%203.40371%205.25%203.78606%205.25Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.38029%204.96658C4.67291%205.33175%204.47836%205.71303%204.47836%205.94207C4.47836%206.17164%204.67303%206.5529%205.38022%206.91786C6.05207%207.2646%207.02836%207.49953%208.14459%207.49953C8.52693%207.49953%208.83689%207.80949%208.83689%208.19184C8.83689%208.57418%208.52693%208.88414%208.14459%208.88414C6.85387%208.88414%205.65089%208.61569%204.74522%208.14829C3.87488%207.69912%203.09375%206.95549%203.09375%205.94207C3.09375%204.92903%203.87499%204.18542%204.74515%203.73624C5.65079%203.26872%206.85377%203%208.14459%203C9.43542%203%2010.6384%203.26872%2011.544%203.73624C12.4142%204.18542%2013.1954%204.92903%2013.1954%205.94207C13.1954%206.32442%2012.8854%206.63438%2012.5031%206.63438C12.1207%206.63438%2011.8108%206.32442%2011.8108%205.94207C11.8108%205.71303%2011.6163%205.33175%2010.9089%204.96658C10.237%204.61973%209.26068%204.38462%208.14459%204.38462C7.02847%204.38462%206.05218%204.61973%205.38029%204.96658Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%209.49759C10.4965%209.49759%2010.8065%209.80755%2010.8065%2010.1899V18.0591C10.8065%2018.2887%2011.0011%2018.67%2011.7079%2019.0349C12.3796%2019.3816%2013.3556%2019.6165%2014.4718%2019.6165C15.588%2019.6165%2016.5643%2019.3816%2017.2362%2019.0349C17.9433%2018.6699%2018.138%2018.2886%2018.138%2018.0591V10.1899C18.138%209.80755%2018.448%209.49759%2018.8303%209.49759C19.2126%209.49759%2019.5226%209.80755%2019.5226%2010.1899V18.0591C19.5226%2019.0724%2018.7415%2019.8161%2017.8711%2020.2652C16.9655%2020.7327%2015.7626%2021.0011%2014.4718%2021.0011C13.1811%2021.0011%2011.9783%2020.7327%2011.0729%2020.2652C10.2026%2019.816%209.42185%2019.0723%209.42185%2018.0591V10.1899C9.42185%209.80755%209.73182%209.49759%2010.1142%209.49759Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.708%209.21414C11.001%209.57923%2010.8065%209.96048%2010.8065%2010.1897C10.8065%2010.4189%2011.001%2010.8001%2011.708%2011.1652C12.3797%2011.512%2013.3557%2011.7472%2014.4718%2011.7472C15.5879%2011.7472%2016.5642%2011.512%2017.2361%2011.1652C17.9435%2010.8%2018.138%2010.4187%2018.138%2010.1897C18.138%209.96063%2017.9435%209.57934%2017.2361%209.21418C16.5642%208.86733%2015.5879%208.63221%2014.4718%208.63221C13.3557%208.63221%2012.3797%208.86733%2011.708%209.21414ZM11.0728%207.98387C11.9782%207.51632%2013.181%207.24759%2014.4718%207.24759C15.7626%207.24759%2016.9656%207.51632%2017.8712%207.98383C18.7414%208.43303%2019.5226%209.17662%2019.5226%2010.1897C19.5226%2011.2027%2018.7414%2011.9463%2017.8712%2012.3955C16.9656%2012.863%2015.7626%2013.1318%2014.4718%2013.1318C13.181%2013.1318%2011.9782%2012.863%2011.0728%2012.3954C10.2027%2011.9462%209.42185%2011.2026%209.42185%2010.1897C9.42185%209.17677%2010.2027%208.43314%2011.0728%207.98387Z'%20fill='%23999999'/%3e%3c/svg%3e",h2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202ZM15.5361%2013.9111C14.7377%2014.2225%2013.47%2014.4267%2012.042%2014.4268C10.6135%2014.4268%209.34534%2014.2226%208.54688%2013.9111C7.99508%2014.1264%207.66726%2014.3932%207.66699%2014.6836C7.66713%2015.3942%209.62583%2015.9707%2012.042%2015.9707C14.4579%2015.9706%2016.4169%2015.3942%2016.417%2014.6836C16.4167%2014.3932%2016.0882%2014.1264%2015.5361%2013.9111ZM15.5361%2011.3389C14.7377%2011.6501%2013.4698%2011.8535%2012.042%2011.8535C10.6137%2011.8535%209.34537%2011.6503%208.54688%2011.3389C7.99513%2011.5542%207.66699%2011.8199%207.66699%2012.1104C7.66784%2012.8208%209.62627%2013.3975%2012.042%2013.3975C14.4575%2013.3974%2016.4161%2012.8208%2016.417%2012.1104C16.417%2011.8199%2016.0881%2011.5542%2015.5361%2011.3389ZM12.042%208.25C9.62575%208.25%207.66699%208.82645%207.66699%209.53711C7.66763%2010.2476%209.62614%2010.8232%2012.042%2010.8232C14.4576%2010.8232%2016.4164%2010.2476%2016.417%209.53711C16.417%208.8265%2014.458%208.25008%2012.042%208.25Z'%20fill='%23999999'/%3e%3c/svg%3e",f2="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",b2="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",C2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",k2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",w2="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i instanceof Error&&i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-Dz-5i1SK.cjs")).then(t=>t.TournamentLeaderboard_ce).then(t=>{const n=t.default||t;customElements.get("tournament-leaderboard")||customElements.define("tournament-leaderboard",n.element||n)}).catch(t=>{console.error("BOOT ERROR:",t)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i instanceof Error&&i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-h5LnXQfE.cjs")).then(t=>t.TournamentDetails_ce).then(t=>{const n=t.default||t;customElements.get("tournament-details")||customElements.define("tournament-details",n.element||n)}).catch(t=>{console.error("BOOT ERROR:",t)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i instanceof Error&&i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TournamentGames-CVFiICNX.cjs")).then(t=>t.TournamentGames_ce).then(t=>{const n=t.default||t;customElements.get("tournament-games")||customElements.define("tournament-games",n.element||n)}).catch(t=>{console.error("BOOT ERROR:",t)})}var S2=e.from_html('<span class="Spinner svelte-tv1q7k"></span>'),x2=e.from_html("<button><!></button>"),T2=e.from_html('<div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="RuleText svelte-tv1q7k"><!>: <span class="RuleContent svelte-tv1q7k"> </span></div></div>'),M2=e.from_html('<li class="RuleTxt svelte-tv1q7k"> </li>'),_2=e.from_html('<div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="RuleText svelte-tv1q7k"><!>: <ul class="SportsRules svelte-tv1q7k"></ul></div></div>'),R2=e.from_html('<div class="TournamemntRulesContent svelte-tv1q7k"><div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="svelte-tv1q7k"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="RuleText svelte-tv1q7k"></div></div> <div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="RuleText svelte-tv1q7k"></div></div> <div class="TournamentRuleRow svelte-tv1q7k"><div class="RuleIcon svelte-tv1q7k"><img alt="Icon" class="svelte-tv1q7k"/></div> <div class="RuleText svelte-tv1q7k"></div></div> <!> <!></div>'),B2=e.from_html('<div class="DetailsWrapper svelte-tv1q7k"><!> <!></div> <div class="LeaderboardWrapper svelte-tv1q7k"><!></div> <div class="TournamentRulesWrapper svelte-tv1q7k"><button class="TournamentRulesHeader svelte-tv1q7k"><span class="TournamemntRulesTitle svelte-tv1q7k"> </span> <img alt="Icon" class="Icon svelte-tv1q7k"/></button> <!></div> <div class="GamesWrapper svelte-tv1q7k"><!></div>',1),O2=e.from_html('<div class="SkeletonWrapper svelte-tv1q7k"><div class="Skeleton Details svelte-tv1q7k"><div class="SkeletonShimmer svelte-tv1q7k"></div></div> <div class="Skeleton Leaderboard svelte-tv1q7k"><div class="SkeletonShimmer svelte-tv1q7k"></div></div> <div class="Skeleton Rules svelte-tv1q7k"><div class="SkeletonShimmer svelte-tv1q7k"></div></div> <div class="Skeleton Games svelte-tv1q7k"><div class="SkeletonShimmer svelte-tv1q7k"></div></div></div>'),q2=e.from_html('<div class="TournamentDetailsPageWrapper svelte-tv1q7k"><!> <!></div>');const L2={hash:"svelte-tv1q7k",code:`.svelte-tv1q7k,
22
- .svelte-tv1q7k::before,
23
- .svelte-tv1q7k::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-tv1q7k {display:flex;flex-direction:column;justify-content:space-between;gap:10px;}.Skeleton.svelte-tv1q7k {width:100%;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
24
- animation: svelte-tv1q7k-pulse 1.5s infinite;&.Details {height:400px;}&.Leaderboard {height:500px;}&.Rules {height:150px;}&.Games {height:300px;}}
25
-
26
- @keyframes svelte-tv1q7k-pulse {
27
- 0% {
28
- opacity: 0;
29
- }
30
- 50% {
31
- opacity: 1;
32
- }
33
- 100% {
34
- opacity: 0;
35
- }
36
- }.TournamentDetailsPageWrapper.svelte-tv1q7k {max-width:1300px;margin:auto;background-color:#2C2B2B;padding:10px;border-radius:6px;display:flex;flex-direction:column;gap:10px;.LeaderboardWrapper:where(.svelte-tv1q7k) {min-height:500px;}.GamesWrapper:where(.svelte-tv1q7k) {min-height:200px;}}.DetailsWrapper.svelte-tv1q7k {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding-bottom:16px;min-height:400px;.ViewPrizesContainer:where(.svelte-tv1q7k) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:calc(100% - 32px);margin:auto;padding:10px;}}.ButtonPrimary.svelte-tv1q7k {display:block;width:calc(100% - 32px);margin:auto;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}.Spinner.svelte-tv1q7k {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
37
- animation: svelte-tv1q7k-spin 0.6s linear infinite;}
38
-
39
- @keyframes svelte-tv1q7k-spin {
40
- to { transform: rotate(360deg); }
41
- }
42
-
43
- @media (min-width: 1000px) {.ButtonPrimary.svelte-tv1q7k {display:block;width:300px;margin:auto;}
44
- }.TournamentRulesWrapper.svelte-tv1q7k {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;min-height:40px;.TournamentRulesHeader:where(.svelte-tv1q7k) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-tv1q7k):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-tv1q7k):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-tv1q7k) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-tv1q7k) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-tv1q7k) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-tv1q7k) {align-self:center;}.RuleIcon:where(.svelte-tv1q7k) {min-width:24px;min-height:24px;}}}}`};function ge(s,t){var fe,be;e.push(t,!0),e.append_styles(s,L2);const n=()=>e.store_get(e.$format,"$_",i),[i,p]=e.setup_stores(),g=e.prop(t,"initialState"),f=e.prop(t,"endpoint"),m=e.prop(t,"language",7,"en"),o=e.prop(t,"session"),b=e.prop(t,"tournamentid"),y=e.prop(t,"gamesLimit",7,6),u=e.prop(t,"platformProp",7,null),M=e.prop(t,"translationurl");c2({withLocale:"en",translations:{}});const te=()=>{let r=new URL(M());fetch(r.href).then(v=>v.json()).then(v=>{Object.keys(v).forEach(S=>{Be(S,v[S])})}).catch(v=>{console.log(v)})};Object.keys(qe).forEach(r=>{Be(r,qe[r])}),Oe(m());const ne=()=>{Oe(m())};e.user_effect(()=>{ne()}),e.user_pre_effect(()=>{M()&&te()});const _=p2()?(fe=u())!=null?fe:"dk":v2(window.navigator.userAgent);let l=e.state(e.proxy(((be=g())==null?void 0:be.tournament)||null)),E=e.state(!1),P=e.state(e.proxy([])),H=e.state(void 0),X=e.state(void 0),z=e.state(!1),x=e.state(!1),F=e.state(!1),$=e.state(""),R=e.state(void 0),B=e.state(void 0),D=e.state(e.proxy([])),j=e.state(""),O=e.state(!1);const K=()=>{e.set(j,e.get(B)?He.generateCasinoRule(n(),e.get(B)):"",!0),e.set(D,e.get(R)?He.generateSportsRule(n(),e.get(R)):[],!0)},J=()=>Re(this,null,function*(){e.set(E,!0);const r=new URL(`${f()}/v1/tournaments/${b()}`),v=new Headers;o()&&v.append("X-SessionId",o());const S={method:"GET",headers:v};r.searchParams.append("language",m()),r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${y()},offset=0)`),r.searchParams.append("platform",_),fetch(r,S).then(d=>d.json()).then(d=>{var C,Y,V,Q,I,q,Z;e.set(l,d==null?void 0:d.item,!0),e.set(P,(Y=(C=d==null?void 0:d.item)==null?void 0:C.games)==null?void 0:Y.items,!0),e.set(H,(Q=(V=d==null?void 0:d.item)==null?void 0:V.games)==null?void 0:Q.total,!0),e.set(X,(I=d==null?void 0:d.item)==null?void 0:I.metadata,!0),e.set(B,(q=d==null?void 0:d.item)==null?void 0:q.wallet.casino,!0),e.set(R,(Z=d==null?void 0:d.item)==null?void 0:Z.wallet.sports,!0),(e.get(R)||e.get(B))&&K()}).catch(d=>console.log(d)).finally(()=>{e.set(E,!1)})}),Ie=()=>{fetch(`${f()}/tournaments/${e.get(l).id}`,{headers:{"X-SessionID":o()}}).then(r=>r.json()).then(r=>{var v;(v=r==null?void 0:r.item)!=null&&v.playerEnrolled?e.set(x,!0):(e.set(F,!0),e.set($,r.errorMessage,!0))}).catch(r=>console.log(r))},Ze=()=>{e.set(z,!0);const r=new URL(`${f()}/v1/bonus/claim`);r.searchParams.append("language",m()),r.searchParams.append("platform",_);const v=new Headers;v.append("Content-Type","application/json"),v.append("X-SessionID",o());let S={};e.get(l).wallets&&e.get(l).wallets.length>0&&(S={language:m(),bonusCode:e.get(l).wallets[0].code,currency:e.get(l).baseCurrency,type:"tournament"});const d={method:"PUT",headers:v,body:JSON.stringify(S)};fetch(r,d).then(C=>C.json()).then(C=>{C&&(C.success==!0?e.set(x,!0):C.errorMessage.match("VersionMismatchException")&&Ie())}).catch(C=>{console.log(C),e.set(F,!0),e.set($,C.errorMessage,!0)}).finally(()=>e.set(z,!1))},ze=()=>{e.set(O,!e.get(O))};e.onMount(()=>{g()||o()&&b()&&f()&&J()});var Fe={get initialState(){return g()},set initialState(r){g(r),e.flushSync()},get endpoint(){return f()},set endpoint(r){f(r),e.flushSync()},get language(){return m()},set language(r="en"){m(r),e.flushSync()},get session(){return o()},set session(r){o(r),e.flushSync()},get tournamentid(){return b()},set tournamentid(r){b(r),e.flushSync()},get gamesLimit(){return y()},set gamesLimit(r=6){y(r),e.flushSync()},get platformProp(){return u()},set platformProp(r=null){u(r),e.flushSync()},get translationurl(){return M()},set translationurl(r){M(r),e.flushSync()}},re=q2(),he=e.child(re);{var $e=r=>{var v=B2(),S=e.first_child(v),d=e.child(S);{let k=e.user_derived(()=>{var w;return((w=e.get(l))==null?void 0:w.playerEnrolled)||e.get(x)});ee.TournamentDetails(d,{get tournament(){return e.get(l)},get language(){return m()},get enrolled(){return e.get(k)},get translationurl(){return M()}})}var C=e.sibling(d,2);{var Y=k=>{var w=x2(),A=e.child(w);{var U=T=>{var L=S2();e.append(T,L)},ie=T=>{var L=e.text();e.template_effect(ae=>e.set_text(L,ae),[()=>n()("joinButton")]),e.append(T,L)};e.if_block(A,T=>{e.get(z)?T(U):T(ie,-1)})}e.reset(w),e.template_effect(()=>{e.set_class(w,1,`ButtonPrimary ${e.get(l).playerEnrolled||e.get(x)?"Enrolled":""}`,"svelte-tv1q7k"),w.disabled=e.get(l).playerEnrolled||e.get(x)}),e.delegated("click",w,Ze),e.append(k,w)};e.if_block(C,k=>{!e.get(l).playerEnrolled&&e.get(l).state!=="Closed"&&!e.get(x)&&k(Y)})}e.reset(S);var V=e.sibling(S,2),Q=e.child(V);e.TournamentLeaderboard(Q,{get endpoint(){return f()},get language(){return m()},get session(){return o()},get tournamentid(){return b()},get newlyEnrolled(){return e.get(x)},get platform(){return _},get translationurl(){return M()}}),e.reset(V);var I=e.sibling(V,2),q=e.child(I),Z=e.child(q),Ge=e.child(Z,!0);e.reset(Z);var Ne=e.sibling(Z,2);e.reset(q);var We=e.sibling(q,2);{var Xe=k=>{var w=R2(),A=e.child(w),U=e.child(A),ie=e.child(U);e.reset(U);var T=e.sibling(U,2),L=e.child(T);{var ae=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.mostRounds")),e.append(a,c)};e.if_block(L,a=>{e.get(l).scoreCriteria=="BetCount"&&a(ae)})}var Ce=e.sibling(L,2);{var Je=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.winStakeRatio")),e.append(a,c)};e.if_block(Ce,a=>{e.get(l).scoreCriteria=="WinStakeRatio"&&a(Je)})}var ke=e.sibling(Ce,2);{var Ye=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.maxWinStakeRatio")),e.append(a,c)};e.if_block(ke,a=>{e.get(l).scoreCriteria=="MaxWinStakeRatio"&&a(Ye)})}var we=e.sibling(ke,2);{var Qe=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.stake")),e.append(a,c)};e.if_block(we,a=>{e.get(l).scoreCriteria=="Stake"&&a(Qe)})}var Se=e.sibling(we,2);{var e2=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.win")),e.append(a,c)};e.if_block(Se,a=>{e.get(l).scoreCriteria=="Win"&&a(e2)})}var t2=e.sibling(Se,2);{var n2=a=>{var c=e.comment(),h=e.first_child(c);e.html(h,()=>n()("scoreCriteriaType.winBetCount")),e.append(a,c)};e.if_block(t2,a=>{e.get(l).scoreCriteria=="WinBetCount"&&a(n2)})}e.reset(T),e.reset(A);var se=e.sibling(A,2),oe=e.child(se),r2=e.child(oe);e.reset(oe);var xe=e.sibling(oe,2);e.html(xe,()=>n()("miniBetCount",{values:{betCount:e.get(l).minBetCount}}),!0),e.reset(xe),e.reset(se);var le=e.sibling(se,2),de=e.child(le),i2=e.child(de);e.reset(de);var Te=e.sibling(de,2);e.html(Te,()=>n()("timePeriod",{values:{startTime:Pe(e.get(l).startTime),endTime:Pe(e.get(l).endTime)}}),!0),e.reset(Te),e.reset(le);var ue=e.sibling(le,2),ce=e.child(ue),a2=e.child(ce);e.reset(ce);var Me=e.sibling(ce,2);e.html(Me,()=>n()("terms",{values:{tcUrl:e.get(l).termsUrl||"#"}}),!0),e.reset(Me),e.reset(ue);var _e=e.sibling(ue,2);{var s2=a=>{var c=T2(),h=e.child(c),me=e.child(h);e.reset(h);var G=e.sibling(h,2),N=e.child(G);e.html(N,()=>n()("forCasino"));var W=e.sibling(N,2),ve=e.child(W,!0);e.reset(W),e.reset(G),e.reset(c),e.template_effect(()=>{e.set_attribute(me,"src",g2),e.set_text(ve,e.get(j))}),e.append(a,c)};e.if_block(_e,a=>{e.get(B)&&a(s2)})}var o2=e.sibling(_e,2);{var l2=a=>{var c=_2(),h=e.child(c),me=e.child(h);e.reset(h);var G=e.sibling(h,2),N=e.child(G);e.html(N,()=>n()("forSportsbook"));var W=e.sibling(N,2);e.each(W,21,()=>e.get(D),e.index,(ve,d2)=>{var pe=M2(),u2=e.child(pe,!0);e.reset(pe),e.template_effect(()=>e.set_text(u2,e.get(d2))),e.append(ve,pe)}),e.reset(W),e.reset(G),e.reset(c),e.template_effect(()=>e.set_attribute(me,"src",h2)),e.append(a,c)};e.if_block(o2,a=>{e.get(R)&&e.get(D).length&&a(l2)})}e.reset(w),e.template_effect(()=>{e.set_attribute(ie,"src",C2),e.set_attribute(r2,"src",y2),e.set_attribute(i2,"src",w2),e.set_attribute(a2,"src",k2)}),e.append(k,w)};e.if_block(We,k=>{e.get(O)&&k(Xe)})}e.reset(I);var ye=e.sibling(I,2),Ke=e.child(ye);{let k=e.user_derived(()=>e.get(X)||{});De.TournamentGames(Ke,{get endpoint(){return f()},get language(){return m()},get session(){return o()},get tournamentid(){return b()},get platform(){return _},get initialGames(){return e.get(P)},get totalGames(){return e.get(H)},get tournamentMetadata(){return e.get(k)},get translationurl(){return M()}})}e.reset(ye),e.template_effect(k=>{e.set_attribute(q,"aria-expanded",e.get(O)),e.set_text(Ge,k),e.set_attribute(Ne,"src",e.get(O)?f2:b2)},[()=>n()("rules")]),e.delegated("click",q,ze),e.append(r,v)};e.if_block(he,r=>{e.get(l)&&r($e)})}var je=e.sibling(he,2);{var Ae=r=>{var v=O2();e.append(r,v)};e.if_block(je,r=>{e.get(E)&&r(Ae)})}e.reset(re),e.append(s,re);var Ue=e.pop(Fe);return p(),Ue}e.delegate(["click"]);e.create_custom_element(ge,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[],{mode:"open"});function Ve(s,t){e.push(t,!0);let n=e.prop(t,"initialState"),i=e.prop(t,"endpoint"),p=e.prop(t,"language",7,"en"),g=e.prop(t,"session"),f=e.prop(t,"tournamentid"),m=e.prop(t,"gamesLimit",7,6),o=e.prop(t,"platformProp",7,null),b=e.prop(t,"translationurl");var y={get initialState(){return n()},set initialState(u){n(u),e.flushSync()},get endpoint(){return i()},set endpoint(u){i(u),e.flushSync()},get language(){return p()},set language(u="en"){p(u),e.flushSync()},get session(){return g()},set session(u){g(u),e.flushSync()},get tournamentid(){return f()},set tournamentid(u){f(u),e.flushSync()},get gamesLimit(){return m()},set gamesLimit(u=6){m(u),e.flushSync()},get platformProp(){return o()},set platformProp(u=null){o(u),e.flushSync()},get translationurl(){return b()},set translationurl(u){b(u),e.flushSync()}};return ge(s,{get initialState(){return n()},get endpoint(){return i()},get language(){return p()},get session(){return g()},get tournamentid(){return f()},get gamesLimit(){return m()},get platformProp(){return o()},get translationurl(){return b()}}),e.pop(y)}customElements.define("tournament-details-page",e.create_custom_element(Ve,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[]));const E2=Object.freeze(Object.defineProperty({__proto__:null,default:Ve},Symbol.toStringTag,{value:"Module"}));exports.TournamentDetailsPage=ge;exports.TournamentDetailsPage_ce=E2;
@@ -1,51 +0,0 @@
1
- var ce=(n,r,t)=>new Promise((o,a)=>{var s=f=>{try{c(t.next(f))}catch(b){a(b)}},u=f=>{try{c(t.throw(f))}catch(b){a(b)}},c=f=>f.done?o(f.value):Promise.resolve(f.value).then(s,u);c((t=t.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-Dz-5i1SK.cjs");/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var V=function(n,r){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])},V(n,r)};function B(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");V(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Q(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],o=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var o=t.call(n),a,s=[],u;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(u)throw u.error}}return s}function $(n,r,t){if(arguments.length===2)for(var o=0,a=r.length,s;o<a;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return n.concat(s||r)}function G(n){return typeof n=="function"}function we(n){var r=function(o){Error.call(o),o.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var K=we(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
15
- `+t.map(function(o,a){return a+1+") "+o.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function ee(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var U=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,o,a,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=Q(u),f=c.next();!f.done;f=c.next()){var b=f.value;b.remove(this)}}catch(_){r={error:_}}finally{try{f&&!f.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else u.remove(this);var m=this.initialTeardown;if(G(m))try{m()}catch(_){s=_ instanceof K?_.errors:[_]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var k=Q(y),d=k.next();!d.done;d=k.next()){var O=d.value;try{pe(O)}catch(_){s=s!=null?s:[],_ instanceof K?s=$($([],Z(s)),Z(_.errors)):s.push(_)}}}catch(_){o={error:_}}finally{try{d&&!d.done&&(a=k.return)&&a.call(k)}finally{if(o)throw o.error}}}if(s)throw new K(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)pe(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ee(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&ee(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),xe=U.EMPTY;function Se(n){return n instanceof U||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function pe(n){G(n)?n():n.unsubscribe()}var rt={Promise:void 0},nt={setTimeout:function(n,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return setTimeout.apply(void 0,$([n,r],Z(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function ot(n){nt.setTimeout(function(){throw n})}function fe(){}function R(n){n()}var Pe=function(n){B(r,n);function r(t){var o=n.call(this)||this;return o.isStopped=!1,t?(o.destination=t,Se(t)&&t.add(o)):o.destination=st,o}return r.create=function(t,o,a){return new te(t,o,a)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(U),it=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(o){N(o)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(o){N(o)}else N(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){N(t)}},n}(),te=function(n){B(r,n);function r(t,o,a){var s=n.call(this)||this,u;return G(t)||!t?u={next:t!=null?t:void 0,error:o!=null?o:void 0,complete:a!=null?a:void 0}:u=t,s.destination=new it(u),s}return r}(Pe);function N(n){ot(n)}function at(n){throw n}var st={closed:!0,next:fe,error:at,complete:fe},lt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ut(n){return n}function ct(n){return n.length===0?ut:n.length===1?n[0]:function(t){return n.reduce(function(o,a){return a(o)},t)}}var de=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,o){var a=this,s=ft(r)?r:new te(r,t,o);return R(function(){var u=a,c=u.operator,f=u.source;s.add(c?c.call(s,f):f?a._subscribe(s):a._trySubscribe(s))}),s},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var o=this;return t=ve(t),new t(function(a,s){var u=new te({next:function(c){try{r(c)}catch(f){s(f),u.unsubscribe()}},error:s,complete:a});o.subscribe(u)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[lt]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ct(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=ve(r),new r(function(o,a){var s;t.subscribe(function(u){return s=u},function(u){return a(u)},function(){return o(s)})})},n.create=function(r){return new n(r)},n}();function ve(n){var r;return(r=n!=null?n:rt.Promise)!==null&&r!==void 0?r:Promise}function pt(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function ft(n){return n&&n instanceof Pe||pt(n)&&Se(n)}var dt=we(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Te=function(n){B(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var o=new me(this,this);return o.operator=t,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new dt},r.prototype.next=function(t){var o=this;R(function(){var a,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var u=Q(o.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(t)}}catch(b){a={error:b}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}}})},r.prototype.error=function(t){var o=this;R(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=t;for(var a=o.observers;a.length;)a.shift().error(t)}})},r.prototype.complete=function(){var t=this;R(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var o=t.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var o=this,a=this,s=a.hasError,u=a.isStopped,c=a.observers;return s||u?xe:(this.currentObservers=null,c.push(t),new U(function(){o.currentObservers=null,ee(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,a=o.hasError,s=o.thrownError,u=o.isStopped;a?t.error(s):u&&t.complete()},r.prototype.asObservable=function(){var t=new de;return t.source=this,t},r.create=function(t,o){return new me(t,o)},r}(de),me=function(n){B(r,n);function r(t,o){var a=n.call(this)||this;return a.destination=t,a.source=o,a}return r.prototype.next=function(t){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,t)},r.prototype.error=function(t){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,t)},r.prototype.complete=function(){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||o===void 0||o.call(t)},r.prototype._subscribe=function(t){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&a!==void 0?a:xe},r}(Te),ke={now:function(){return(ke.delegate||Date).now()},delegate:void 0},Ge=function(n){B(r,n);function r(t,o,a){t===void 0&&(t=1/0),o===void 0&&(o=1/0),a===void 0&&(a=ke);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=o,s._timestampProvider=a,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(t){var o=this,a=o.isStopped,s=o._buffer,u=o._infiniteTimeWindow,c=o._timestampProvider,f=o._windowTime;a||(s.push(t),!u&&s.push(c.now()+f)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(t),a=this,s=a._infiniteTimeWindow,u=a._buffer,c=u.slice(),f=0;f<c.length&&!t.closed;f+=s?1:2)t.next(c[f]);return this._checkFinalizedStatuses(t),o},r.prototype._trimBuffer=function(){var t=this,o=t._bufferSize,a=t._timestampProvider,s=t._buffer,u=t._infiniteTimeWindow,c=(u?1:2)*o;if(o<1/0&&c<s.length&&s.splice(0,s.length-c),!u){for(var f=a.now(),b=0,m=1;m<s.length&&s[m]<=f;m+=2)b=m;b&&s.splice(0,b+1)}},r}(Te);function he(n,r){e.addMessages(n,r)}function be(n){e.$locale.set(n)}const ge={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"},da:{previousButton:"Forrige",nextButton:"Næste",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Deltagende spil",gamesDescriptionSubtitle:"Opdag spillene",sportsRulesParseError:"Fejl ved parsing af turneringsregler",noAvailableGames:"Der er endnu ikke konfigureret nogen spil!"}},ye=[],_e={},vt=(n,r=0)=>{if(ye.indexOf(n)==-1){const t=new Ge(r);_e[n]=t,ye.push(n)}return _e[n]};typeof window!="undefined"&&(window.emWidgets={topic:vt});const mt=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const ht=()=>typeof window=="undefined";var bt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),gt=e.from_html('<p class="svelte-2ya82b"> </p>'),yt=e.from_html("<div></div>"),_t=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),wt=e.from_html("<p> </p>"),xt=e.from_html('<div class="TournamentGameThumbnail svelte-2ya82b"><div class="ImageContainer svelte-2ya82b"><img class="svelte-2ya82b"/> <div class="PlayButtonOverlay svelte-2ya82b"><button class="PlayGameButton svelte-2ya82b"> </button></div></div></div>'),St=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),Pt=e.from_html("<button> </button>"),Tt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),kt=e.from_html('<div class="PaginationSkeleton svelte-2ya82b"><div class="PaginationSkeletonButton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationSkeletonButton svelte-2ya82b"></div></div>'),Gt=e.from_html('<div class="TournamentGamesWrapper svelte-2ya82b"><div class="GamesDescription svelte-2ya82b"><p class="GamesDescriptionTitle svelte-2ya82b"> </p> <p class="GamesDescriptionSubTitle svelte-2ya82b"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const Et={hash:"svelte-2ya82b",code:`.svelte-2ya82b,
17
- .svelte-2ya82b::before,
18
- .svelte-2ya82b::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-2ya82b {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-2ya82b {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-2ya82b) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-2ya82b {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;min-height:150px;}.TournamentGamesWrapper.svelte-2ya82b {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-2ya82b {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
19
- to top,
20
- var(--emw-color-primary, #FF1D4E),
21
- transparent
22
- );background-size:100% 200%;
23
- animation: svelte-2ya82b-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-2ya82b) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-2ya82b) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-2ya82b) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-2ya82b {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-2ya82b) {display:flex;gap:3px;}.PaginationButton:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-2ya82b {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-2ya82b {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
24
- animation: svelte-2ya82b-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
25
- animation: svelte-2ya82b-pulse 1s infinite;}}
26
-
27
- @keyframes svelte-2ya82b-pulse {
28
- 0% {
29
- opacity: 0;
30
- }
31
- 50% {
32
- opacity: 1;
33
- }
34
- 100% {
35
- opacity: 0;
36
- }
37
- }
38
-
39
-
40
- @media (min-width: 750px) {.TournamentGamesTabs.svelte-2ya82b {width:fit-content;}.PaginationWrapper.svelte-2ya82b, .PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;}.PaginationButton.svelte-2ya82b {min-width:75px;}.PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:35px;}}
41
-
42
- }
43
-
44
- @media (max-width: 475px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-2ya82b {& .PaginationButton:where(.svelte-2ya82b) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-2ya82b {font-size:12px;}
45
- }
46
-
47
- @media (max-width: 380px) {.TournamentGamesContainer.svelte-2ya82b {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
48
- }
49
-
50
- @media (min-width: 1500px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
51
- }.Hidden.svelte-2ya82b {display:none;}`};function re(n,r){var le;e.push(r,!0),e.append_styles(n,Et);const t=()=>e.store_get(e.$format,"$_",o),[o,a]=e.setup_stores(),s=e.prop(r,"initialGames"),u=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),f=e.prop(r,"session"),b=e.prop(r,"tournamentid"),m=e.prop(r,"gamesLimit",7,6),y=e.prop(r,"totalGames"),k=e.prop(r,"platformProp",7,null),d=e.prop(r,"tournamentMetadata"),O=e.prop(r,"translationurl"),_=()=>{let i=new URL(O());fetch(i.href).then(l=>l.json()).then(l=>{Object.keys(l).forEach(p=>{he(p,l[p])})}).catch(l=>{console.log(l)})};Object.keys(ge).forEach(i=>{he(i,ge[i])}),be(c());const Ae=()=>{be(c())};e.user_pre_effect(()=>{O()&&_()}),e.user_effect(()=>{Ae()});let z=e.state(e.proxy(s()||[])),M=e.state(!1),S=e.state(0),L=e.state(void 0),C=e.state(!0);const Oe=ht()?(le=k())!=null?le:"dk":mt(window.navigator.userAgent),F=()=>ce(this,null,function*(){if(H.has(e.get(D)))return;e.set(M,!0);const i=new URL(`${u()}/v1/tournaments/${b()}`),l=new Headers;f()&&l.append("X-SessionId",f());const p={method:"GET",headers:l};i.searchParams.append("filter",`id=${b()}`),i.searchParams.append("language",c()),i.searchParams.append("expand","games"),i.searchParams.append("pagination",`games(limit=${m()},offset=${e.get(S)})`),i.searchParams.append("platform",Oe),fetch(i,p).then(v=>v.json()).then(v=>{var g,h;e.set(z,(h=(g=v==null?void 0:v.item)==null?void 0:g.games)==null?void 0:h.items,!0),H.set(e.get(D),e.get(z)),e.get(C)||e.set(C,!0)}).catch(v=>console.log(v)).finally(()=>e.set(M,!1))}),je=()=>{const i=Math.ceil(y()/m()),l=Math.floor(e.get(S)/m())+1;if(i<=5)return Array.from({length:i},(v,g)=>g+1);const p=[];return p.push(1),l<=3?(p.push(2,3),p.push("..."),p.push(i)):l>=i-2?(p.push("..."),p.push(i-2,i-1,i)):(p.push("..."),p.push(l-1,l,l+1),p.push("..."),p.push(i)),p},Be=()=>{e.get(S)<y()&&(e.set(S,e.get(S)+m()),F())},Me=()=>{e.get(S)!==0&&(e.set(S,e.get(S)-m()),F())},Le=i=>{e.set(S,(i-1)*m()),F()},Ce=e.user_derived(je),D=e.user_derived(()=>Math.floor(e.get(S)/m())+1);let H=new Map([[1,s()]]),De=e.user_derived(()=>{var i;return(i=H.get(e.get(D)))!=null?i:[]}),E=e.state("casino");const Ie=()=>{var p;if(!d())return;const i=(p=d().sports)==null?void 0:p.rules;let l;if(i)try{l=JSON.parse(i),e.set(L,l[c()]||l["*"],!0)}catch(v){console.log(v),e.set(L,`${t()("sportsRulesParseError")}`)}},We=i=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:i.launchUrl,id:i.gameId,thumbnail:i.thumbnail,name:i.name},window.location.href)};e.user_effect(()=>{Object.keys(d()).length!==0&&Ie()});var Ne={get initialGames(){return s()},set initialGames(i){s(i),e.flushSync()},get endpoint(){return u()},set endpoint(i){u(i),e.flushSync()},get language(){return c()},set language(i="en"){c(i),e.flushSync()},get session(){return f()},set session(i){f(i),e.flushSync()},get tournamentid(){return b()},set tournamentid(i){b(i),e.flushSync()},get gamesLimit(){return m()},set gamesLimit(i=6){m(i),e.flushSync()},get totalGames(){return y()},set totalGames(i){y(i),e.flushSync()},get platformProp(){return k()},set platformProp(i=null){k(i),e.flushSync()},get tournamentMetadata(){return d()},set tournamentMetadata(i){d(i),e.flushSync()},get translationurl(){return O()},set translationurl(i){O(i),e.flushSync()}},Y=Gt(),X=e.child(Y),q=e.child(X),Re=e.child(q,!0);e.reset(q);var ne=e.sibling(q,2),Ue=e.child(ne,!0);e.reset(ne),e.reset(X);var oe=e.sibling(X,2);{var ze=i=>{var l=bt(),p=e.child(l);let v;var g=e.child(p,!0);e.reset(p);var h=e.sibling(p,2);let w;var x=e.child(h,!0);e.reset(h),e.reset(l),e.template_effect((P,T)=>{v=e.set_class(p,1,"Tab svelte-2ya82b",null,v,{Active:e.get(E)==="casino"}),e.set_text(g,P),w=e.set_class(h,1,"Tab svelte-2ya82b",null,w,{Active:e.get(E)==="sports"}),e.set_text(x,T)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",p,()=>e.set(E,"casino")),e.delegated("click",h,()=>e.set(E,"sports")),e.append(i,l)},Fe=e.user_derived(()=>Object.keys(d()).length!==0);e.if_block(oe,i=>{e.get(Fe)&&i(ze)})}var ie=e.sibling(oe,2);{var He=i=>{var l=yt();let p;e.each(l,21,()=>e.get(L),e.index,(v,g)=>{var h=gt(),w=e.child(h);e.reset(h),e.template_effect(x=>{var P;return e.set_text(w,`${(P=e.get(g).rule)!=null?P:""} ${x!=null?x:""}`)},[()=>t()("contribution")]),e.append(v,h)}),e.reset(l),e.template_effect(()=>p=e.set_class(l,1,"TournamentRulesWrapper svelte-2ya82b",null,p,{Hidden:e.get(E)==="casino"})),e.append(i,l)};e.if_block(ie,i=>{e.get(L)&&i(He)})}var I=e.sibling(ie,2);let ae;var Ye=e.child(I);{var Xe=i=>{var l=e.comment(),p=e.first_child(l);e.each(p,17,()=>Array(m()),e.index,(v,g,h,w)=>{var x=_t();e.append(v,x)}),e.append(i,l)},qe=i=>{var l=wt();let p;var v=e.child(l,!0);e.reset(l),e.template_effect(g=>{p=e.set_class(l,1,"NoGamesAvailable svelte-2ya82b",null,p,{Hidden:e.get(E)==="sports"}),e.set_text(v,g)},[()=>t()("noAvailableGames")]),e.append(i,l)},Je=i=>{var l=e.comment(),p=e.first_child(l);e.each(p,17,()=>e.get(De),e.index,(v,g)=>{var h=xt(),w=e.child(h),x=e.child(w),P=e.sibling(x,2),T=e.child(P),W=e.child(T,!0);e.reset(T),e.reset(P),e.reset(w),e.reset(h),e.template_effect(J=>{e.set_attribute(x,"src",`https:${e.get(g).thumbnail}`),e.set_attribute(x,"alt",e.get(g).name),e.set_text(W,J)},[()=>t()("play")]),e.delegated("click",h,()=>We(e.get(g))),e.append(v,h)}),e.append(i,l)};e.if_block(Ye,i=>{var l;e.get(M)?i(Xe):!e.get(M)&&((l=e.get(z))==null?void 0:l.length)===0?i(qe,1):i(Je,-1)})}e.reset(I);var se=e.sibling(I,2);{var Ke=i=>{var l=Tt();let p;var v=e.child(l),g=e.child(v,!0);e.reset(v);var h=e.sibling(v,2);e.each(h,21,()=>e.get(Ce),e.index,(P,T)=>{var W=e.comment(),J=e.first_child(W);{var $e=j=>{var A=St();e.append(j,A)},et=j=>{var A=Pt();let ue;var tt=e.child(A,!0);e.reset(A),e.template_effect(()=>{ue=e.set_class(A,1,"PaginationButton Number svelte-2ya82b",null,ue,{Active:e.get(T)===e.get(D)}),e.set_text(tt,e.get(T))}),e.delegated("click",A,()=>Le(e.get(T))),e.append(j,A)};e.if_block(J,j=>{typeof e.get(T)!="number"?j($e):j(et,-1)})}e.append(P,W)}),e.reset(h);var w=e.sibling(h,2),x=e.child(w,!0);e.reset(w),e.reset(l),e.template_effect((P,T)=>{p=e.set_class(l,1,"PaginationWrapper svelte-2ya82b",null,p,{Hidden:e.get(E)==="sports"}),v.disabled=e.get(S)===0,e.set_text(g,P),w.disabled=e.get(S)>=y()-m(),e.set_text(x,T)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",v,Me),e.delegated("click",w,Be),e.append(i,l)};e.if_block(se,i=>{e.get(C)&&y()>m()&&i(Ke)})}var Ve=e.sibling(se,2);{var Qe=i=>{var l=kt();e.append(i,l)};e.if_block(Ve,i=>{e.get(C)||i(Qe)})}e.reset(Y),e.template_effect((i,l)=>{e.set_text(Re,i),e.set_text(Ue,l),ae=e.set_class(I,1,"TournamentGamesContainer svelte-2ya82b",null,ae,{Hidden:e.get(E)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Ze=e.pop(Ne);return a(),Ze}e.delegate(["click"]);e.create_custom_element(re,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});function Ee(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),o=e.prop(r,"endpoint"),a=e.prop(r,"language",7,"en"),s=e.prop(r,"session"),u=e.prop(r,"tournamentid"),c=e.prop(r,"gamesLimit",7,6),f=e.prop(r,"totalGames"),b=e.prop(r,"platformProp",7,null),m=e.prop(r,"tournamentMetadata"),y=e.prop(r,"translationurl");var k={get initialGames(){return t()},set initialGames(d){t(d),e.flushSync()},get endpoint(){return o()},set endpoint(d){o(d),e.flushSync()},get language(){return a()},set language(d="en"){a(d),e.flushSync()},get session(){return s()},set session(d){s(d),e.flushSync()},get tournamentid(){return u()},set tournamentid(d){u(d),e.flushSync()},get gamesLimit(){return c()},set gamesLimit(d=6){c(d),e.flushSync()},get totalGames(){return f()},set totalGames(d){f(d),e.flushSync()},get platformProp(){return b()},set platformProp(d=null){b(d),e.flushSync()},get tournamentMetadata(){return m()},set tournamentMetadata(d){m(d),e.flushSync()},get translationurl(){return y()},set translationurl(d){y(d),e.flushSync()}};return re(n,{get initialGames(){return t()},get endpoint(){return o()},get language(){return a()},get translationurl(){return y()},get session(){return s()},get tournamentid(){return u()},get gamesLimit(){return c()},get totalGames(){return f()},get platformProp(){return b()},get tournamentMetadata(){return m()}}),e.pop(k)}customElements.define("tournament-games",e.create_custom_element(Ee,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[]));const At=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=Ge;exports.TournamentGames=re;exports.TournamentGames_ce=At;
@@ -1,51 +0,0 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-CJLCAutr.cjs");/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var V=function(n,r){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])},V(n,r)};function B(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");V(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Q(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],o=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var o=t.call(n),a,s=[],u;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(u)throw u.error}}return s}function $(n,r,t){if(arguments.length===2)for(var o=0,a=r.length,s;o<a;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return n.concat(s||r)}function k(n){return typeof n=="function"}function ye(n){var r=function(o){Error.call(o),o.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var K=ye(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
15
- `+t.map(function(o,a){return a+1+") "+o.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function ee(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var U=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,o,a,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=Q(u),d=c.next();!d.done;d=c.next()){var b=d.value;b.remove(this)}}catch(_){r={error:_}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else u.remove(this);var v=this.initialTeardown;if(k(v))try{v()}catch(_){s=_ instanceof K?_.errors:[_]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var T=Q(y),f=T.next();!f.done;f=T.next()){var O=f.value;try{ue(O)}catch(_){s=s??[],_ instanceof K?s=$($([],Z(s)),Z(_.errors)):s.push(_)}}}catch(_){o={error:_}}finally{try{f&&!f.done&&(a=T.return)&&a.call(T)}finally{if(o)throw o.error}}}if(s)throw new K(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ue(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ee(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&ee(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),_e=U.EMPTY;function we(n){return n instanceof U||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function ue(n){k(n)?n():n.unsubscribe()}var et={Promise:void 0},tt={setTimeout:function(n,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return setTimeout.apply(void 0,$([n,r],Z(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function rt(n){tt.setTimeout(function(){throw n})}function ce(){}function R(n){n()}var xe=function(n){B(r,n);function r(t){var o=n.call(this)||this;return o.isStopped=!1,t?(o.destination=t,we(t)&&t.add(o)):o.destination=it,o}return r.create=function(t,o,a){return new te(t,o,a)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(U),nt=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(o){N(o)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(o){N(o)}else N(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){N(t)}},n}(),te=function(n){B(r,n);function r(t,o,a){var s=n.call(this)||this,u;return k(t)||!t?u={next:t??void 0,error:o??void 0,complete:a??void 0}:u=t,s.destination=new nt(u),s}return r}(xe);function N(n){rt(n)}function ot(n){throw n}var it={closed:!0,next:ce,error:ot,complete:ce},at=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function st(n){return n}function lt(n){return n.length===0?st:n.length===1?n[0]:function(t){return n.reduce(function(o,a){return a(o)},t)}}var pe=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,o){var a=this,s=ct(r)?r:new te(r,t,o);return R(function(){var u=a,c=u.operator,d=u.source;s.add(c?c.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var o=this;return t=fe(t),new t(function(a,s){var u=new te({next:function(c){try{r(c)}catch(d){s(d),u.unsubscribe()}},error:s,complete:a});o.subscribe(u)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[at]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return lt(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=fe(r),new r(function(o,a){var s;t.subscribe(function(u){return s=u},function(u){return a(u)},function(){return o(s)})})},n.create=function(r){return new n(r)},n}();function fe(n){var r;return(r=n??et.Promise)!==null&&r!==void 0?r:Promise}function ut(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function ct(n){return n&&n instanceof xe||ut(n)&&we(n)}var pt=ye(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Se=function(n){B(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var o=new de(this,this);return o.operator=t,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new pt},r.prototype.next=function(t){var o=this;R(function(){var a,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var u=Q(o.currentObservers),c=u.next();!c.done;c=u.next()){var d=c.value;d.next(t)}}catch(b){a={error:b}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}}})},r.prototype.error=function(t){var o=this;R(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=t;for(var a=o.observers;a.length;)a.shift().error(t)}})},r.prototype.complete=function(){var t=this;R(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var o=t.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var o=this,a=this,s=a.hasError,u=a.isStopped,c=a.observers;return s||u?_e:(this.currentObservers=null,c.push(t),new U(function(){o.currentObservers=null,ee(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,a=o.hasError,s=o.thrownError,u=o.isStopped;a?t.error(s):u&&t.complete()},r.prototype.asObservable=function(){var t=new pe;return t.source=this,t},r.create=function(t,o){return new de(t,o)},r}(pe),de=function(n){B(r,n);function r(t,o){var a=n.call(this)||this;return a.destination=t,a.source=o,a}return r.prototype.next=function(t){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,t)},r.prototype.error=function(t){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,t)},r.prototype.complete=function(){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||o===void 0||o.call(t)},r.prototype._subscribe=function(t){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&a!==void 0?a:_e},r}(Se),Pe={now:function(){return(Pe.delegate||Date).now()},delegate:void 0},Te=function(n){B(r,n);function r(t,o,a){t===void 0&&(t=1/0),o===void 0&&(o=1/0),a===void 0&&(a=Pe);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=o,s._timestampProvider=a,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(t){var o=this,a=o.isStopped,s=o._buffer,u=o._infiniteTimeWindow,c=o._timestampProvider,d=o._windowTime;a||(s.push(t),!u&&s.push(c.now()+d)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(t),a=this,s=a._infiniteTimeWindow,u=a._buffer,c=u.slice(),d=0;d<c.length&&!t.closed;d+=s?1:2)t.next(c[d]);return this._checkFinalizedStatuses(t),o},r.prototype._trimBuffer=function(){var t=this,o=t._bufferSize,a=t._timestampProvider,s=t._buffer,u=t._infiniteTimeWindow,c=(u?1:2)*o;if(o<1/0&&c<s.length&&s.splice(0,s.length-c),!u){for(var d=a.now(),b=0,v=1;v<s.length&&s[v]<=d;v+=2)b=v;b&&s.splice(0,b+1)}},r}(Se);function ve(n,r){e.addMessages(n,r)}function me(n){e.$locale.set(n)}const he={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"},da:{previousButton:"Forrige",nextButton:"Næste",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Deltagende spil",gamesDescriptionSubtitle:"Opdag spillene",sportsRulesParseError:"Fejl ved parsing af turneringsregler",noAvailableGames:"Der er endnu ikke konfigureret nogen spil!"}},be=[],ge={},ft=(n,r=0)=>{if(be.indexOf(n)==-1){const t=new Te(r);ge[n]=t,be.push(n)}return ge[n]};typeof window<"u"&&(window.emWidgets={topic:ft});const dt=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const vt=()=>typeof window>"u";var mt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),ht=e.from_html('<p class="svelte-2ya82b"> </p>'),bt=e.from_html("<div></div>"),gt=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),yt=e.from_html("<p> </p>"),_t=e.from_html('<div class="TournamentGameThumbnail svelte-2ya82b"><div class="ImageContainer svelte-2ya82b"><img class="svelte-2ya82b"/> <div class="PlayButtonOverlay svelte-2ya82b"><button class="PlayGameButton svelte-2ya82b"> </button></div></div></div>'),wt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),xt=e.from_html("<button> </button>"),St=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),Pt=e.from_html('<div class="PaginationSkeleton svelte-2ya82b"><div class="PaginationSkeletonButton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationNumberSkeleton svelte-2ya82b"></div> <div class="PaginationSkeletonButton svelte-2ya82b"></div></div>'),Tt=e.from_html('<div class="TournamentGamesWrapper svelte-2ya82b"><div class="GamesDescription svelte-2ya82b"><p class="GamesDescriptionTitle svelte-2ya82b"> </p> <p class="GamesDescriptionSubTitle svelte-2ya82b"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const kt={hash:"svelte-2ya82b",code:`.svelte-2ya82b,
17
- .svelte-2ya82b::before,
18
- .svelte-2ya82b::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-2ya82b {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-2ya82b) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-2ya82b {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-2ya82b) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-2ya82b {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;min-height:150px;}.TournamentGamesWrapper.svelte-2ya82b {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-2ya82b {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
19
- to top,
20
- var(--emw-color-primary, #FF1D4E),
21
- transparent
22
- );background-size:100% 200%;
23
- animation: svelte-2ya82b-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-2ya82b) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-2ya82b) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-2ya82b) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-2ya82b) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-2ya82b {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-2ya82b) {display:flex;gap:3px;}.PaginationButton:where(.svelte-2ya82b) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-2ya82b {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-2ya82b {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
24
- animation: svelte-2ya82b-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
25
- animation: svelte-2ya82b-pulse 1s infinite;}}
26
-
27
- @keyframes svelte-2ya82b-pulse {
28
- 0% {
29
- opacity: 0;
30
- }
31
- 50% {
32
- opacity: 1;
33
- }
34
- 100% {
35
- opacity: 0;
36
- }
37
- }
38
-
39
-
40
- @media (min-width: 750px) {.TournamentGamesTabs.svelte-2ya82b {width:fit-content;}.PaginationWrapper.svelte-2ya82b, .PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;}.PaginationButton.svelte-2ya82b {min-width:75px;}.PaginationSkeleton.svelte-2ya82b {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-2ya82b) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-2ya82b) {width:35px;}}
41
-
42
- }
43
-
44
- @media (max-width: 475px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(150px, 100%), 1fr));}.PaginationWrapper.svelte-2ya82b {& .PaginationButton:where(.svelte-2ya82b) {font-size:11px;&.Number {font-size:11px;}}}.TournamentGamesTabs.svelte-2ya82b {font-size:12px;}
45
- }
46
-
47
- @media (max-width: 380px) {.TournamentGamesContainer.svelte-2ya82b {grid-template-columns:repeat(auto-fill, minmax(min(145px, 100%), 1fr));}
48
- }
49
-
50
- @media (min-width: 1500px) {.TournamentGamesContainer.svelte-2ya82b {gap:5px;grid-template-columns:repeat(auto-fill, minmax(min(215px, 100%), 1fr));}
51
- }.Hidden.svelte-2ya82b {display:none;}`};function re(n,r){e.push(r,!0),e.append_styles(n,kt);const t=()=>e.store_get(e.$format,"$_",o),[o,a]=e.setup_stores(),s=e.prop(r,"initialGames"),u=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),d=e.prop(r,"session"),b=e.prop(r,"tournamentid"),v=e.prop(r,"gamesLimit",7,6),y=e.prop(r,"totalGames"),T=e.prop(r,"platformProp",7,null),f=e.prop(r,"tournamentMetadata"),O=e.prop(r,"translationurl"),_=()=>{let i=new URL(O());fetch(i.href).then(l=>l.json()).then(l=>{Object.keys(l).forEach(p=>{ve(p,l[p])})}).catch(l=>{console.log(l)})};Object.keys(he).forEach(i=>{ve(i,he[i])}),me(c());const Ge=()=>{me(c())};e.user_pre_effect(()=>{O()&&_()}),e.user_effect(()=>{Ge()});let z=e.state(e.proxy(s()||[])),M=e.state(!1),x=e.state(0),L=e.state(void 0),C=e.state(!0);const Ee=vt()?T()??"dk":dt(window.navigator.userAgent),F=async()=>{if(H.has(e.get(D)))return;e.set(M,!0);const i=new URL(`${u()}/v1/tournaments/${b()}`),l=new Headers;d()&&l.append("X-SessionId",d());const p={method:"GET",headers:l};i.searchParams.append("filter",`id=${b()}`),i.searchParams.append("language",c()),i.searchParams.append("expand","games"),i.searchParams.append("pagination",`games(limit=${v()},offset=${e.get(x)})`),i.searchParams.append("platform",Ee),fetch(i,p).then(m=>m.json()).then(m=>{e.set(z,m?.item?.games?.items,!0),H.set(e.get(D),e.get(z)),e.get(C)||e.set(C,!0)}).catch(m=>console.log(m)).finally(()=>e.set(M,!1))},Ae=()=>{const i=Math.ceil(y()/v()),l=Math.floor(e.get(x)/v())+1;if(i<=5)return Array.from({length:i},(m,g)=>g+1);const p=[];return p.push(1),l<=3?(p.push(2,3),p.push("..."),p.push(i)):l>=i-2?(p.push("..."),p.push(i-2,i-1,i)):(p.push("..."),p.push(l-1,l,l+1),p.push("..."),p.push(i)),p},Oe=()=>{e.get(x)<y()&&(e.set(x,e.get(x)+v()),F())},je=()=>{e.get(x)!==0&&(e.set(x,e.get(x)-v()),F())},Be=i=>{e.set(x,(i-1)*v()),F()},Me=e.user_derived(Ae),D=e.user_derived(()=>Math.floor(e.get(x)/v())+1);let H=new Map([[1,s()]]),Le=e.user_derived(()=>H.get(e.get(D))??[]),G=e.state("casino");const Ce=()=>{if(!f())return;const i=f().sports?.rules;let l;if(i)try{l=JSON.parse(i),e.set(L,l[c()]||l["*"],!0)}catch(p){console.log(p),e.set(L,`${t()("sportsRulesParseError")}`)}},De=i=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:i.launchUrl,id:i.gameId,thumbnail:i.thumbnail,name:i.name},window.location.href)};e.user_effect(()=>{Object.keys(f()).length!==0&&Ce()});var Ie={get initialGames(){return s()},set initialGames(i){s(i),e.flushSync()},get endpoint(){return u()},set endpoint(i){u(i),e.flushSync()},get language(){return c()},set language(i="en"){c(i),e.flushSync()},get session(){return d()},set session(i){d(i),e.flushSync()},get tournamentid(){return b()},set tournamentid(i){b(i),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(i=6){v(i),e.flushSync()},get totalGames(){return y()},set totalGames(i){y(i),e.flushSync()},get platformProp(){return T()},set platformProp(i=null){T(i),e.flushSync()},get tournamentMetadata(){return f()},set tournamentMetadata(i){f(i),e.flushSync()},get translationurl(){return O()},set translationurl(i){O(i),e.flushSync()}},Y=Tt(),X=e.child(Y),q=e.child(X),We=e.child(q,!0);e.reset(q);var ne=e.sibling(q,2),Ne=e.child(ne,!0);e.reset(ne),e.reset(X);var oe=e.sibling(X,2);{var Re=i=>{var l=mt(),p=e.child(l);let m;var g=e.child(p,!0);e.reset(p);var h=e.sibling(p,2);let w;var S=e.child(h,!0);e.reset(h),e.reset(l),e.template_effect((E,P)=>{m=e.set_class(p,1,"Tab svelte-2ya82b",null,m,{Active:e.get(G)==="casino"}),e.set_text(g,E),w=e.set_class(h,1,"Tab svelte-2ya82b",null,w,{Active:e.get(G)==="sports"}),e.set_text(S,P)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",p,()=>e.set(G,"casino")),e.delegated("click",h,()=>e.set(G,"sports")),e.append(i,l)},Ue=e.user_derived(()=>Object.keys(f()).length!==0);e.if_block(oe,i=>{e.get(Ue)&&i(Re)})}var ie=e.sibling(oe,2);{var ze=i=>{var l=bt();let p;e.each(l,21,()=>e.get(L),e.index,(m,g)=>{var h=ht(),w=e.child(h);e.reset(h),e.template_effect(S=>e.set_text(w,`${e.get(g).rule??""} ${S??""}`),[()=>t()("contribution")]),e.append(m,h)}),e.reset(l),e.template_effect(()=>p=e.set_class(l,1,"TournamentRulesWrapper svelte-2ya82b",null,p,{Hidden:e.get(G)==="casino"})),e.append(i,l)};e.if_block(ie,i=>{e.get(L)&&i(ze)})}var I=e.sibling(ie,2);let ae;var Fe=e.child(I);{var He=i=>{var l=e.comment(),p=e.first_child(l);e.each(p,17,()=>Array(v()),e.index,(m,g,h,w)=>{var S=gt();e.append(m,S)}),e.append(i,l)},Ye=i=>{var l=yt();let p;var m=e.child(l,!0);e.reset(l),e.template_effect(g=>{p=e.set_class(l,1,"NoGamesAvailable svelte-2ya82b",null,p,{Hidden:e.get(G)==="sports"}),e.set_text(m,g)},[()=>t()("noAvailableGames")]),e.append(i,l)},Xe=i=>{var l=e.comment(),p=e.first_child(l);e.each(p,17,()=>e.get(Le),e.index,(m,g)=>{var h=_t(),w=e.child(h),S=e.child(w),E=e.sibling(S,2),P=e.child(E),W=e.child(P,!0);e.reset(P),e.reset(E),e.reset(w),e.reset(h),e.template_effect(J=>{e.set_attribute(S,"src",`https:${e.get(g).thumbnail}`),e.set_attribute(S,"alt",e.get(g).name),e.set_text(W,J)},[()=>t()("play")]),e.delegated("click",h,()=>De(e.get(g))),e.append(m,h)}),e.append(i,l)};e.if_block(Fe,i=>{e.get(M)?i(He):!e.get(M)&&e.get(z)?.length===0?i(Ye,1):i(Xe,-1)})}e.reset(I);var se=e.sibling(I,2);{var qe=i=>{var l=St();let p;var m=e.child(l),g=e.child(m,!0);e.reset(m);var h=e.sibling(m,2);e.each(h,21,()=>e.get(Me),e.index,(E,P)=>{var W=e.comment(),J=e.first_child(W);{var Qe=j=>{var A=wt();e.append(j,A)},Ze=j=>{var A=xt();let le;var $e=e.child(A,!0);e.reset(A),e.template_effect(()=>{le=e.set_class(A,1,"PaginationButton Number svelte-2ya82b",null,le,{Active:e.get(P)===e.get(D)}),e.set_text($e,e.get(P))}),e.delegated("click",A,()=>Be(e.get(P))),e.append(j,A)};e.if_block(J,j=>{typeof e.get(P)!="number"?j(Qe):j(Ze,-1)})}e.append(E,W)}),e.reset(h);var w=e.sibling(h,2),S=e.child(w,!0);e.reset(w),e.reset(l),e.template_effect((E,P)=>{p=e.set_class(l,1,"PaginationWrapper svelte-2ya82b",null,p,{Hidden:e.get(G)==="sports"}),m.disabled=e.get(x)===0,e.set_text(g,E),w.disabled=e.get(x)>=y()-v(),e.set_text(S,P)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",m,je),e.delegated("click",w,Oe),e.append(i,l)};e.if_block(se,i=>{e.get(C)&&y()>v()&&i(qe)})}var Je=e.sibling(se,2);{var Ke=i=>{var l=Pt();e.append(i,l)};e.if_block(Je,i=>{e.get(C)||i(Ke)})}e.reset(Y),e.template_effect((i,l)=>{e.set_text(We,i),e.set_text(Ne,l),ae=e.set_class(I,1,"TournamentGamesContainer svelte-2ya82b",null,ae,{Hidden:e.get(G)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Ve=e.pop(Ie);return a(),Ve}e.delegate(["click"]);e.create_custom_element(re,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});function ke(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),o=e.prop(r,"endpoint"),a=e.prop(r,"language",7,"en"),s=e.prop(r,"session"),u=e.prop(r,"tournamentid"),c=e.prop(r,"gamesLimit",7,6),d=e.prop(r,"totalGames"),b=e.prop(r,"platformProp",7,null),v=e.prop(r,"tournamentMetadata"),y=e.prop(r,"translationurl");var T={get initialGames(){return t()},set initialGames(f){t(f),e.flushSync()},get endpoint(){return o()},set endpoint(f){o(f),e.flushSync()},get language(){return a()},set language(f="en"){a(f),e.flushSync()},get session(){return s()},set session(f){s(f),e.flushSync()},get tournamentid(){return u()},set tournamentid(f){u(f),e.flushSync()},get gamesLimit(){return c()},set gamesLimit(f=6){c(f),e.flushSync()},get totalGames(){return d()},set totalGames(f){d(f),e.flushSync()},get platformProp(){return b()},set platformProp(f=null){b(f),e.flushSync()},get tournamentMetadata(){return v()},set tournamentMetadata(f){v(f),e.flushSync()},get translationurl(){return y()},set translationurl(f){y(f),e.flushSync()}};return re(n,{get initialGames(){return t()},get endpoint(){return o()},get language(){return a()},get translationurl(){return y()},get session(){return s()},get tournamentid(){return u()},get gamesLimit(){return c()},get totalGames(){return d()},get platformProp(){return b()},get tournamentMetadata(){return v()}}),e.pop(T)}customElements.define("tournament-games",e.create_custom_element(ke,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[]));const Gt=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=Te;exports.TournamentGames=re;exports.TournamentGames_ce=Gt;