@everymatrix/tournament-details-page 0.1.27 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/StatusBadge-BVcNxptf.cjs +8 -0
- package/components/StatusBadge-BnPuCJnO.js +7097 -0
- package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
- package/components/StatusBadge-DKawANSc.js +7010 -0
- package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
- package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
- package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
- package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
- package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
- package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
- package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
- package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
- package/components/TournamentGames-B6UkeuiX.js +821 -0
- package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
- package/components/TournamentGames-DO01jBJs.js +799 -0
- package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
- package/components/TournamentImage-BeCXYKda.cjs +5 -0
- package/components/TournamentImage-BxaewAcW.js +177 -0
- package/components/TournamentImage-Cp5BEQ0s.js +180 -0
- package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
- package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
- package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
- package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
- package/components/TournamentRules-BbxvSZdU.cjs +6 -0
- package/components/TournamentRules-Bsxb9Asj.js +144 -0
- package/components/TournamentRules-DX1CVsV7.cjs +6 -0
- package/components/TournamentRules-SECANCVS.js +149 -0
- package/components/TournamentSummary-Ardxi8yJ.js +159 -0
- package/components/TournamentSummary-BGk055-K.cjs +3 -0
- package/components/TournamentSummary-CizBbtzd.cjs +3 -0
- package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
- package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
- package/components/TournamentTabs-DpLpOYtB.js +57 -0
- package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
- package/components/TournamentTabs-FzkOjNA3.js +72 -0
- package/components/translations-BQS5XycD.js +146 -0
- package/components/translations-BSe2qToO.cjs +1 -0
- package/components/translations-DPzojb4V.js +146 -0
- package/components/translations-FufS-X5l.cjs +1 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentDetails-BZghU11I.js +0 -436
- package/components/TournamentDetails-C_DjsiRO.js +0 -435
- package/components/TournamentDetails-DJkyA6Vc.cjs +0 -3
- package/components/TournamentDetails-_CAwLQSz.cjs +0 -3
- package/components/TournamentDetailsPage-6wv_wZG8.js +0 -715
- package/components/TournamentDetailsPage-B3pa9l3K.cjs +0 -36
- package/components/TournamentDetailsPage-D4d6LK8N.js +0 -736
- package/components/TournamentDetailsPage-Wti3EW2y.cjs +0 -36
- package/components/TournamentGames-BitHaGk1.cjs +0 -51
- package/components/TournamentGames-CPAgktBV.cjs +0 -51
- package/components/TournamentGames-D0Vx9asc.js +0 -1025
- package/components/TournamentGames-D4Zol0Yj.js +0 -999
- package/components/TournamentLeaderboard-BH1mlCiD.cjs +0 -46
- package/components/TournamentLeaderboard-BefYxI8Y.cjs +0 -46
- package/components/TournamentLeaderboard-CpJXePmH.js +0 -8055
- package/components/TournamentLeaderboard-DKFSvo2X.js +0 -8164
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-BH1mlCiD.cjs"),ke=require("./TournamentGames-BitHaGk1.cjs"),e2=require("./TournamentDetails-DJkyA6Vc.cjs"),t2={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"}},be=[],Ce={},n2=(l,t=0)=>{if(be.indexOf(l)==-1){const r=new ke.ReplaySubject(t);Ce[l]=r,be.push(l)}return Ce[l]};typeof window<"u"&&(window.emWidgets={topic:n2});const r2=l=>l.toLowerCase().match(/android/i)?"Android":l.toLowerCase().match(/iphone/i)?"iPhone":l.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;const i2="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",a2="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",s2="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",l2="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",o2="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",d2="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",u2="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",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='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<"u"){let l=function(t){return function(...r){try{return t.apply(this,r)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s instanceof Error&&s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-BH1mlCiD.cjs")).then(t=>t.TournamentLeaderboard_ce).then(t=>{const r=t.default||t;customElements.get("tournament-leaderboard")||customElements.define("tournament-leaderboard",r.element||r)}).catch(t=>{console.error("BOOT ERROR:",t)})}if(typeof window<"u"){let l=function(t){return function(...r){try{return t.apply(this,r)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s instanceof Error&&s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-DJkyA6Vc.cjs")).then(t=>t.TournamentDetails_ce).then(t=>{const r=t.default||t;customElements.get("tournament-details")||customElements.define("tournament-details",r.element||r)}).catch(t=>{console.error("BOOT ERROR:",t)})}if(typeof window<"u"){let l=function(t){return function(...r){try{return t.apply(this,r)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s instanceof Error&&s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./TournamentGames-BitHaGk1.cjs")).then(t=>t.TournamentGames_ce).then(t=>{const r=t.default||t;customElements.get("tournament-games")||customElements.define("tournament-games",r.element||r)}).catch(t=>{console.error("BOOT ERROR:",t)})}var m2=e.from_html('<span class="Spinner svelte-tv1q7k"></span>'),v2=e.from_html("<button><!></button>"),p2=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>'),g2=e.from_html('<li class="RuleTxt svelte-tv1q7k"> </li>'),h2=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>'),f2=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),C2=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>'),k2=e.from_html('<div class="TournamentDetailsPageWrapper svelte-tv1q7k"><!> <!></div>');const y2={hash:"svelte-tv1q7k",code:`.svelte-tv1q7k,
|
|
14
|
-
.svelte-tv1q7k::before,
|
|
15
|
-
.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;
|
|
16
|
-
animation: svelte-tv1q7k-pulse 1.5s infinite;&.Details {height:400px;}&.Leaderboard {height:500px;}&.Rules {height:150px;}&.Games {height:300px;}}
|
|
17
|
-
|
|
18
|
-
@keyframes svelte-tv1q7k-pulse {
|
|
19
|
-
0% {
|
|
20
|
-
opacity: 0;
|
|
21
|
-
}
|
|
22
|
-
50% {
|
|
23
|
-
opacity: 1;
|
|
24
|
-
}
|
|
25
|
-
100% {
|
|
26
|
-
opacity: 0;
|
|
27
|
-
}
|
|
28
|
-
}.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%;
|
|
29
|
-
animation: svelte-tv1q7k-spin 0.6s linear infinite;}
|
|
30
|
-
|
|
31
|
-
@keyframes svelte-tv1q7k-spin {
|
|
32
|
-
to { transform: rotate(360deg); }
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@media (min-width: 1000px) {.ButtonPrimary.svelte-tv1q7k {display:block;width:300px;margin:auto;}
|
|
36
|
-
}.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 X(l,t){e.push(t,!0),e.append_styles(l,y2);const r=()=>e.store_get(e.$format,"$_",s),[s,w]=e.setup_stores(),b=e.prop(t,"initialState"),v=e.prop(t,"endpoint"),c=e.prop(t,"language",7,"en"),p=e.prop(t,"session"),g=e.prop(t,"tournamentid"),_=e.prop(t,"gamesLimit",7,6),o=e.prop(t,"platformProp",7,null),C=e.prop(t,"translationurl");e.setupI18n({withLocale:"en",translations:{}}),e.registerTranslations(t2),e.setLocale(c());const we=()=>{e.setLocale(c())};e.user_effect(()=>{we()}),e.user_pre_effect(()=>{C()&&e.loadTranslations(C())});const L=e.isServer()?o()??"dk":r2(window.navigator.userAgent);let d=e.state(e.proxy(b()?.tournament||null)),D=e.state(!1),J=e.state(e.proxy([])),Y=e.state(void 0),Q=e.state(void 0),H=e.state(!1),y=e.state(!1),$=e.state(!1),ee=e.state(""),S=e.state(void 0),x=e.state(void 0),V=e.state(e.proxy([])),te=e.state(""),T=e.state(!1);const _e=()=>{e.set(te,e.get(x)?e.TournamentWalletUtils.generateCasinoRule(r(),e.get(x)):"",!0),e.set(V,e.get(S)?e.TournamentWalletUtils.generateSportsRule(r(),e.get(S)):[],!0)},Se=async()=>{e.set(D,!0);try{const n=await e.fetchTournament({endpoint:v(),language:c(),platform:L,session:p(),tournamentid:g(),gamesLimit:_(),gamesOffset:0});e.set(d,n,!0),e.set(J,n?.games?.items,!0),e.set(Y,n?.games?.total,!0),e.set(Q,n?.metadata,!0),e.set(x,n?.wallet.casino,!0),e.set(S,n?.wallet.sports,!0),(e.get(S)||e.get(x))&&_e()}catch(n){console.log(n)}finally{e.set(D,!1)}},xe=async()=>{e.set(H,!0);try{const n=await e.joinTournament({endpoint:v(),language:c(),platform:L,session:p(),tournament:e.get(d)});n.enrolled?e.set(y,!0):n.errorMessage&&(e.set($,!0),e.set(ee,n.errorMessage,!0))}catch(n){console.log(n),e.set($,!0),e.set(ee,n.errorMessage,!0)}finally{e.set(H,!1)}},Te=()=>{e.set(T,!e.get(T))};e.onMount(()=>{b()||p()&&g()&&v()&&Se()});var Me={get initialState(){return b()},set initialState(n){b(n),e.flushSync()},get endpoint(){return v()},set endpoint(n){v(n),e.flushSync()},get language(){return c()},set language(n="en"){c(n),e.flushSync()},get session(){return p()},set session(n){p(n),e.flushSync()},get tournamentid(){return g()},set tournamentid(n){g(n),e.flushSync()},get gamesLimit(){return _()},set gamesLimit(n=6){_(n),e.flushSync()},get platformProp(){return o()},set platformProp(n=null){o(n),e.flushSync()},get translationurl(){return C()},set translationurl(n){C(n),e.flushSync()}},W=k2(),ne=e.child(W);{var Re=n=>{var O=b2(),Z=e.first_child(O),re=e.child(Z);{let m=e.user_derived(()=>e.get(d)?.playerEnrolled||e.get(y));e2.TournamentDetails(re,{get tournament(){return e.get(d)},get language(){return c()},get enrolled(){return e.get(m)},get translationurl(){return C()}})}var Oe=e.sibling(re,2);{var Pe=m=>{var h=v2(),R=e.child(h);{var P=f=>{var k=m2();e.append(f,k)},I=f=>{var k=e.text();e.template_effect(A=>e.set_text(k,A),[()=>r()("joinButton")]),e.append(f,k)};e.if_block(R,f=>{e.get(H)?f(P):f(I,-1)})}e.reset(h),e.template_effect(()=>{e.set_class(h,1,`ButtonPrimary ${e.get(d).playerEnrolled||e.get(y)?"Enrolled":""}`,"svelte-tv1q7k"),h.disabled=e.get(d).playerEnrolled||e.get(y)}),e.delegated("click",h,xe),e.append(m,h)};e.if_block(Oe,m=>{!e.get(d).playerEnrolled&&e.get(d).state!=="Closed"&&!e.get(y)&&m(Pe)})}e.reset(Z);var z=e.sibling(Z,2),Ee=e.child(z);e.TournamentLeaderboard(Ee,{get endpoint(){return v()},get language(){return c()},get session(){return p()},get tournamentid(){return g()},get newlyEnrolled(){return e.get(y)},get platform(){return L},get translationurl(){return C()}}),e.reset(z);var F=e.sibling(z,2),M=e.child(F),ie=e.child(M),De=e.only_child(ie,!0),He=e.sibling(ie,2);e.reset(M);var Ve=e.sibling(M,2);{var We=m=>{var h=f2(),R=e.child(h),P=e.child(R),I=e.only_child(P),f=e.sibling(P,2),k=e.child(f);{var A=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.mostRounds")),e.append(i,a)};e.if_block(k,i=>{e.get(d).scoreCriteria=="BetCount"&&i(A)})}var se=e.sibling(k,2);{var ze=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.winStakeRatio")),e.append(i,a)};e.if_block(se,i=>{e.get(d).scoreCriteria=="WinStakeRatio"&&i(ze)})}var le=e.sibling(se,2);{var Fe=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.maxWinStakeRatio")),e.append(i,a)};e.if_block(le,i=>{e.get(d).scoreCriteria=="MaxWinStakeRatio"&&i(Fe)})}var oe=e.sibling(le,2);{var Ie=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.stake")),e.append(i,a)};e.if_block(oe,i=>{e.get(d).scoreCriteria=="Stake"&&i(Ie)})}var de=e.sibling(oe,2);{var Ae=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.win")),e.append(i,a)};e.if_block(de,i=>{e.get(d).scoreCriteria=="Win"&&i(Ae)})}var Ge=e.sibling(de,2);{var Ue=i=>{var a=e.comment(),u=e.first_child(a);e.html(u,()=>r()("scoreCriteriaType.winBetCount")),e.append(i,a)};e.if_block(Ge,i=>{e.get(d).scoreCriteria=="WinBetCount"&&i(Ue)})}e.reset(f),e.reset(R);var G=e.sibling(R,2),ue=e.child(G),je=e.only_child(ue),ce=e.sibling(ue,2);e.html(ce,()=>r()("miniBetCount",{values:{betCount:e.get(d).minBetCount}}),!0),e.reset(ce),e.reset(G);var U=e.sibling(G,2),me=e.child(U),Ne=e.only_child(me),ve=e.sibling(me,2);e.html(ve,()=>r()("timePeriod",{values:{startTime:e.getFormattedDate(e.get(d).startTime),endTime:e.getFormattedDate(e.get(d).endTime)}}),!0),e.reset(ve),e.reset(U);var j=e.sibling(U,2),pe=e.child(j),Ke=e.only_child(pe),ge=e.sibling(pe,2);e.html(ge,()=>r()("terms",{values:{tcUrl:e.get(d).termsUrl||"#"}}),!0),e.reset(ge),e.reset(j);var he=e.sibling(j,2);{var Xe=i=>{var a=p2(),u=e.child(a),N=e.only_child(u),q=e.sibling(u,2),B=e.child(q);e.html(B,()=>r()("forCasino"));var E=e.sibling(B,2),K=e.only_child(E,!0);e.reset(q),e.reset(a),e.template_effect(()=>{e.set_attribute(N,"src",i2),e.set_text(K,e.get(te))}),e.append(i,a)};e.if_block(he,i=>{e.get(x)&&i(Xe)})}var Je=e.sibling(he,2);{var Ye=i=>{var a=h2(),u=e.child(a),N=e.only_child(u),q=e.sibling(u,2),B=e.child(q);e.html(B,()=>r()("forSportsbook"));var E=e.sibling(B,2);e.each(E,21,()=>e.get(V),e.index,(K,Qe)=>{var fe=g2(),$e=e.only_child(fe,!0);e.template_effect(()=>e.set_text($e,e.get(Qe))),e.append(K,fe)}),e.reset(E),e.reset(q),e.reset(a),e.template_effect(()=>e.set_attribute(N,"src",a2)),e.append(i,a)};e.if_block(Je,i=>{e.get(S)&&e.get(V).length&&i(Ye)})}e.reset(h),e.template_effect(()=>{e.set_attribute(I,"src",d2),e.set_attribute(je,"src",o2),e.set_attribute(Ne,"src",c2),e.set_attribute(Ke,"src",u2)}),e.append(m,h)};e.if_block(Ve,m=>{e.get(T)&&m(We)})}e.reset(F);var ae=e.sibling(F,2),Ze=e.child(ae);{let m=e.user_derived(()=>e.get(Q)||{});ke.TournamentGames(Ze,{get endpoint(){return v()},get language(){return c()},get session(){return p()},get tournamentid(){return g()},get platform(){return L},get initialGames(){return e.get(J)},get totalGames(){return e.get(Y)},get tournamentMetadata(){return e.get(m)},get translationurl(){return C()}})}e.reset(ae),e.template_effect(m=>{e.set_attribute(M,"aria-expanded",e.get(T)),e.set_text(De,m),e.set_attribute(He,"src",e.get(T)?s2:l2)},[()=>r()("rules")]),e.delegated("click",M,Te),e.append(n,O)};e.if_block(ne,n=>{e.get(d)&&n(Re)})}var qe=e.sibling(ne,2);{var Be=n=>{var O=C2();e.append(n,O)};e.if_block(qe,n=>{e.get(D)&&n(Be)})}e.reset(W),e.append(l,W);var Le=e.pop(Me);return w(),Le}e.delegate(["click"]);e.create_custom_element(X,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[],{mode:"open"});function ye(l,t){e.push(t,!0);let r=e.prop(t,"initialState"),s=e.prop(t,"endpoint"),w=e.prop(t,"language",7,"en"),b=e.prop(t,"session"),v=e.prop(t,"tournamentid"),c=e.prop(t,"gamesLimit",7,6),p=e.prop(t,"platformProp",7,null),g=e.prop(t,"translationurl");var _={get initialState(){return r()},set initialState(o){r(o),e.flushSync()},get endpoint(){return s()},set endpoint(o){s(o),e.flushSync()},get language(){return w()},set language(o="en"){w(o),e.flushSync()},get session(){return b()},set session(o){b(o),e.flushSync()},get tournamentid(){return v()},set tournamentid(o){v(o),e.flushSync()},get gamesLimit(){return c()},set gamesLimit(o=6){c(o),e.flushSync()},get platformProp(){return p()},set platformProp(o=null){p(o),e.flushSync()},get translationurl(){return g()},set translationurl(o){g(o),e.flushSync()}};return X(l,{get initialState(){return r()},get endpoint(){return s()},get language(){return w()},get session(){return b()},get tournamentid(){return v()},get gamesLimit(){return c()},get platformProp(){return p()},get translationurl(){return g()}}),e.pop(_)}customElements.define("tournament-details-page",e.create_custom_element(ye,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[]));const w2=Object.freeze(Object.defineProperty({__proto__:null,default:ye},Symbol.toStringTag,{value:"Module"}));exports.TournamentDetailsPage=X;exports.TournamentDetailsPage_ce=w2;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-BH1mlCiD.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 i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])},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 X(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 Q(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var o=t.call(n),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(u){l={error:u}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(l)throw l.error}}return a}function Z(n,r,t){if(arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return n.concat(a||r)}function k(n){return typeof n=="function"}function me(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=me(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
-
`+t.map(function(o,i){return i+1+") "+o.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function $(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var z=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,i,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=X(l),d=u.next();!d.done;d=u.next()){var b=d.value;b.remove(this)}}catch(_){r={error:_}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else l.remove(this);var v=this.initialTeardown;if(k(v))try{v()}catch(_){a=_ instanceof K?_.errors:[_]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var P=X(y),p=P.next();!p.done;p=P.next()){var A=p.value;try{le(A)}catch(_){a=a??[],_ instanceof K?a=Z(Z([],Q(a)),Q(_.errors)):a.push(_)}}}catch(_){o={error:_}}finally{try{p&&!p.done&&(i=P.return)&&i.call(P)}finally{if(o)throw o.error}}}if(a)throw new K(a)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)le(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)&&$(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&$(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),he=z.EMPTY;function be(n){return n instanceof z||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function le(n){k(n)?n():n.unsubscribe()}var Xe={Promise:void 0},Qe={setTimeout:function(n,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return setTimeout.apply(void 0,Z([n,r],Q(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Ze(n){Qe.setTimeout(function(){throw n})}function ue(){}function R(n){n()}var ge=function(n){B(r,n);function r(t){var o=n.call(this)||this;return o.isStopped=!1,t?(o.destination=t,be(t)&&t.add(o)):o.destination=tt,o}return r.create=function(t,o,i){return new ee(t,o,i)},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}(z),$e=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}(),ee=function(n){B(r,n);function r(t,o,i){var a=n.call(this)||this,l;return k(t)||!t?l={next:t??void 0,error:o??void 0,complete:i??void 0}:l=t,a.destination=new $e(l),a}return r}(ge);function N(n){Ze(n)}function et(n){throw n}var tt={closed:!0,next:ue,error:et,complete:ue},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nt(n){return n}function ot(n){return n.length===0?nt:n.length===1?n[0]:function(t){return n.reduce(function(o,i){return i(o)},t)}}var ce=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 i=this,a=at(r)?r:new ee(r,t,o);return R(function(){var l=i,u=l.operator,d=l.source;a.add(u?u.call(a,d):d?i._subscribe(a):i._trySubscribe(a))}),a},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=pe(t),new t(function(i,a){var l=new ee({next:function(u){try{r(u)}catch(d){a(d),l.unsubscribe()}},error:a,complete:i});o.subscribe(l)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[rt]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ot(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=pe(r),new r(function(o,i){var a;t.subscribe(function(l){return a=l},function(l){return i(l)},function(){return o(a)})})},n.create=function(r){return new n(r)},n}();function pe(n){var r;return(r=n??Xe.Promise)!==null&&r!==void 0?r:Promise}function it(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function at(n){return n&&n instanceof ge||it(n)&&be(n)}var st=me(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ye=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 fe(this,this);return o.operator=t,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new st},r.prototype.next=function(t){var o=this;R(function(){var i,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=X(o.currentObservers),u=l.next();!u.done;u=l.next()){var d=u.value;d.next(t)}}catch(b){i={error:b}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.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 i=o.observers;i.length;)i.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,i=this,a=i.hasError,l=i.isStopped,u=i.observers;return a||l?he:(this.currentObservers=null,u.push(t),new z(function(){o.currentObservers=null,$(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,i=o.hasError,a=o.thrownError,l=o.isStopped;i?t.error(a):l&&t.complete()},r.prototype.asObservable=function(){var t=new ce;return t.source=this,t},r.create=function(t,o){return new fe(t,o)},r}(ce),fe=function(n){B(r,n);function r(t,o){var i=n.call(this)||this;return i.destination=t,i.source=o,i}return r.prototype.next=function(t){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,t)},r.prototype.error=function(t){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.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,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&i!==void 0?i:he},r}(ye),_e={now:function(){return(_e.delegate||Date).now()},delegate:void 0},xe=function(n){B(r,n);function r(t,o,i){t===void 0&&(t=1/0),o===void 0&&(o=1/0),i===void 0&&(i=_e);var a=n.call(this)||this;return a._bufferSize=t,a._windowTime=o,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=o===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,o),a}return r.prototype.next=function(t){var o=this,i=o.isStopped,a=o._buffer,l=o._infiniteTimeWindow,u=o._timestampProvider,d=o._windowTime;i||(a.push(t),!l&&a.push(u.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),i=this,a=i._infiniteTimeWindow,l=i._buffer,u=l.slice(),d=0;d<u.length&&!t.closed;d+=a?1:2)t.next(u[d]);return this._checkFinalizedStatuses(t),o},r.prototype._trimBuffer=function(){var t=this,o=t._bufferSize,i=t._timestampProvider,a=t._buffer,l=t._infiniteTimeWindow,u=(l?1:2)*o;if(o<1/0&&u<a.length&&a.splice(0,a.length-u),!l){for(var d=i.now(),b=0,v=1;v<a.length&&a[v]<=d;v+=2)b=v;b&&a.splice(0,b+1)}},r}(ye);const lt={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!"}},de=[],ve={},ut=(n,r=0)=>{if(de.indexOf(n)==-1){const t=new xe(r);ve[n]=t,de.push(n)}return ve[n]};typeof window<"u"&&(window.emWidgets={topic:ut});const ct=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;var pt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),ft=e.from_html('<p class="svelte-2ya82b"> </p>'),dt=e.from_html("<div></div>"),vt=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),mt=e.from_html("<p> </p>"),ht=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>'),bt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),gt=e.from_html("<button> </button>"),yt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),_t=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>'),xt=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 wt={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 te(n,r){e.push(r,!0),e.append_styles(n,wt);const t=()=>e.store_get(e.$format,"$_",o),[o,i]=e.setup_stores(),a=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),u=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"),P=e.prop(r,"platformProp",7,null),p=e.prop(r,"tournamentMetadata"),A=e.prop(r,"translationurl");e.registerTranslations(lt),e.setLocale(u());const _=()=>{e.setLocale(u())};e.user_pre_effect(()=>{A()&&e.loadTranslations(A())}),e.user_effect(()=>{_()});let F=e.state(e.proxy(a()||[])),M=e.state(!1),x=e.state(0),L=e.state(void 0),C=e.state(!0);const Se=e.isServer()?P()??"dk":ct(window.navigator.userAgent),U=async()=>{if(!H.has(e.get(D))){e.set(M,!0);try{const s=await e.fetchTournament({endpoint:l(),language:u(),platform:Se,session:d(),tournamentid:b(),filterById:!0,gamesLimit:v(),gamesOffset:e.get(x)});e.set(F,s?.games?.items,!0),H.set(e.get(D),e.get(F)),e.get(C)||e.set(C,!0)}catch(s){console.log(s)}finally{e.set(M,!1)}}},Pe=()=>{const s=Math.ceil(y()/v()),c=Math.floor(e.get(x)/v())+1;if(s<=5)return Array.from({length:s},(m,g)=>g+1);const f=[];return f.push(1),c<=3?(f.push(2,3),f.push("..."),f.push(s)):c>=s-2?(f.push("..."),f.push(s-2,s-1,s)):(f.push("..."),f.push(c-1,c,c+1),f.push("..."),f.push(s)),f},Te=()=>{e.get(x)<y()&&(e.set(x,e.get(x)+v()),U())},ke=()=>{e.get(x)!==0&&(e.set(x,e.get(x)-v()),U())},Ge=s=>{e.set(x,(s-1)*v()),U()},Ee=e.user_derived(Pe),D=e.user_derived(()=>Math.floor(e.get(x)/v())+1);let H=new Map([[1,a()]]),Ae=e.user_derived(()=>H.get(e.get(D))??[]),G=e.state("casino");const Oe=()=>{if(!p())return;const s=p().sports?.rules;let c;if(s)try{c=JSON.parse(s),e.set(L,c[u()]||c["*"],!0)}catch(f){console.log(f),e.set(L,`${t()("sportsRulesParseError")}`)}},je=s=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:s.launchUrl,id:s.gameId,thumbnail:s.thumbnail,name:s.name},window.location.href)};e.user_effect(()=>{Object.keys(p()).length!==0&&Oe()});var Be={get initialGames(){return a()},set initialGames(s){a(s),e.flushSync()},get endpoint(){return l()},set endpoint(s){l(s),e.flushSync()},get language(){return u()},set language(s="en"){u(s),e.flushSync()},get session(){return d()},set session(s){d(s),e.flushSync()},get tournamentid(){return b()},set tournamentid(s){b(s),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(s=6){v(s),e.flushSync()},get totalGames(){return y()},set totalGames(s){y(s),e.flushSync()},get platformProp(){return P()},set platformProp(s=null){P(s),e.flushSync()},get tournamentMetadata(){return p()},set tournamentMetadata(s){p(s),e.flushSync()},get translationurl(){return A()},set translationurl(s){A(s),e.flushSync()}},Y=xt(),q=e.child(Y),re=e.child(q),Me=e.only_child(re,!0),Le=e.sibling(re,2),Ce=e.only_child(Le,!0);e.reset(q);var ne=e.sibling(q,2);{var De=s=>{var c=pt(),f=e.child(c);let m;var g=e.only_child(f,!0),h=e.sibling(f,2);let w;var S=e.only_child(h,!0);e.reset(c),e.template_effect((E,T)=>{m=e.set_class(f,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,T)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",f,()=>e.set(G,"casino")),e.delegated("click",h,()=>e.set(G,"sports")),e.append(s,c)},Ie=e.user_derived(()=>Object.keys(p()).length!==0);e.if_block(ne,s=>{e.get(Ie)&&s(De)})}var oe=e.sibling(ne,2);{var We=s=>{var c=dt();let f;e.each(c,21,()=>e.get(L),e.index,(m,g)=>{var h=ft(),w=e.only_child(h);e.template_effect(S=>e.set_text(w,`${e.get(g).rule??""} ${S??""}`),[()=>t()("contribution")]),e.append(m,h)}),e.reset(c),e.template_effect(()=>f=e.set_class(c,1,"TournamentRulesWrapper svelte-2ya82b",null,f,{Hidden:e.get(G)==="casino"})),e.append(s,c)};e.if_block(oe,s=>{e.get(L)&&s(We)})}var I=e.sibling(oe,2);let ie;var Ne=e.child(I);{var Re=s=>{var c=e.comment(),f=e.first_child(c);e.each(f,17,()=>Array(v()),e.index,(m,g,h,w)=>{var S=vt();e.append(m,S)}),e.append(s,c)},ze=s=>{var c=mt();let f;var m=e.only_child(c,!0);e.template_effect(g=>{f=e.set_class(c,1,"NoGamesAvailable svelte-2ya82b",null,f,{Hidden:e.get(G)==="sports"}),e.set_text(m,g)},[()=>t()("noAvailableGames")]),e.append(s,c)},Fe=s=>{var c=e.comment(),f=e.first_child(c);e.each(f,17,()=>e.get(Ae),e.index,(m,g)=>{var h=ht(),w=e.child(h),S=e.child(w),E=e.sibling(S,2),T=e.child(E),W=e.only_child(T,!0);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,()=>je(e.get(g))),e.append(m,h)}),e.append(s,c)};e.if_block(Ne,s=>{e.get(M)?s(Re):!e.get(M)&&e.get(F)?.length===0?s(ze,1):s(Fe,-1)})}e.reset(I);var ae=e.sibling(I,2);{var Ue=s=>{var c=yt();let f;var m=e.child(c),g=e.only_child(m,!0),h=e.sibling(m,2);e.each(h,21,()=>e.get(Ee),e.index,(E,T)=>{var W=e.comment(),J=e.first_child(W);{var Je=O=>{var j=bt();e.append(O,j)},Ke=O=>{var j=gt();let se;var Ve=e.only_child(j,!0);e.template_effect(()=>{se=e.set_class(j,1,"PaginationButton Number svelte-2ya82b",null,se,{Active:e.get(T)===e.get(D)}),e.set_text(Ve,e.get(T))}),e.delegated("click",j,()=>Ge(e.get(T))),e.append(O,j)};e.if_block(J,O=>{typeof e.get(T)!="number"?O(Je):O(Ke,-1)})}e.append(E,W)}),e.reset(h);var w=e.sibling(h,2),S=e.only_child(w,!0);e.reset(c),e.template_effect((E,T)=>{f=e.set_class(c,1,"PaginationWrapper svelte-2ya82b",null,f,{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,T)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",m,ke),e.delegated("click",w,Te),e.append(s,c)};e.if_block(ae,s=>{e.get(C)&&y()>v()&&s(Ue)})}var He=e.sibling(ae,2);{var Ye=s=>{var c=_t();e.append(s,c)};e.if_block(He,s=>{e.get(C)||s(Ye)})}e.reset(Y),e.template_effect((s,c)=>{e.set_text(Me,s),e.set_text(Ce,c),ie=e.set_class(I,1,"TournamentGamesContainer svelte-2ya82b",null,ie,{Hidden:e.get(G)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var qe=e.pop(Be);return i(),qe}e.delegate(["click"]);e.create_custom_element(te,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});function we(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),o=e.prop(r,"endpoint"),i=e.prop(r,"language",7,"en"),a=e.prop(r,"session"),l=e.prop(r,"tournamentid"),u=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 P={get initialGames(){return t()},set initialGames(p){t(p),e.flushSync()},get endpoint(){return o()},set endpoint(p){o(p),e.flushSync()},get language(){return i()},set language(p="en"){i(p),e.flushSync()},get session(){return a()},set session(p){a(p),e.flushSync()},get tournamentid(){return l()},set tournamentid(p){l(p),e.flushSync()},get gamesLimit(){return u()},set gamesLimit(p=6){u(p),e.flushSync()},get totalGames(){return d()},set totalGames(p){d(p),e.flushSync()},get platformProp(){return b()},set platformProp(p=null){b(p),e.flushSync()},get tournamentMetadata(){return v()},set tournamentMetadata(p){v(p),e.flushSync()},get translationurl(){return y()},set translationurl(p){y(p),e.flushSync()}};return te(n,{get initialGames(){return t()},get endpoint(){return o()},get language(){return i()},get translationurl(){return y()},get session(){return a()},get tournamentid(){return l()},get gamesLimit(){return u()},get totalGames(){return d()},get platformProp(){return b()},get tournamentMetadata(){return v()}}),e.pop(P)}customElements.define("tournament-games",e.create_custom_element(we,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[]));const St=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=xe;exports.TournamentGames=te;exports.TournamentGames_ce=St;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var ue=(n,r,t)=>new Promise((o,i)=>{var a=p=>{try{c(t.next(p))}catch(m){i(m)}},l=p=>{try{c(t.throw(p))}catch(m){i(m)}},c=p=>p.done?o(p.value):Promise.resolve(p.value).then(a,l);c((t=t.apply(n,r)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./TournamentLeaderboard-BefYxI8Y.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 i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])},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 X(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 Q(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var o=t.call(n),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(l)throw l.error}}return a}function Z(n,r,t){if(arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return n.concat(a||r)}function G(n){return typeof n=="function"}function be(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=be(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
15
|
-
`+t.map(function(o,i){return i+1+") "+o.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function $(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var z=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,i,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=X(l),p=c.next();!p.done;p=c.next()){var m=p.value;m.remove(this)}}catch(_){r={error:_}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(r)throw r.error}}else l.remove(this);var v=this.initialTeardown;if(G(v))try{v()}catch(_){a=_ instanceof K?_.errors:[_]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var T=X(y),f=T.next();!f.done;f=T.next()){var A=f.value;try{ce(A)}catch(_){a=a!=null?a:[],_ instanceof K?a=Z(Z([],Q(a)),Q(_.errors)):a.push(_)}}}catch(_){o={error:_}}finally{try{f&&!f.done&&(i=T.return)&&i.call(T)}finally{if(o)throw o.error}}}if(a)throw new K(a)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ce(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)&&$(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&$(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),ge=z.EMPTY;function ye(n){return n instanceof z||n&&"closed"in n&&G(n.remove)&&G(n.add)&&G(n.unsubscribe)}function ce(n){G(n)?n():n.unsubscribe()}var Ze={Promise:void 0},$e={setTimeout:function(n,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return setTimeout.apply(void 0,Z([n,r],Q(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function et(n){$e.setTimeout(function(){throw n})}function pe(){}function R(n){n()}var _e=function(n){B(r,n);function r(t){var o=n.call(this)||this;return o.isStopped=!1,t?(o.destination=t,ye(t)&&t.add(o)):o.destination=nt,o}return r.create=function(t,o,i){return new ee(t,o,i)},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}(z),tt=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}(),ee=function(n){B(r,n);function r(t,o,i){var a=n.call(this)||this,l;return G(t)||!t?l={next:t!=null?t:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0}:l=t,a.destination=new tt(l),a}return r}(_e);function N(n){et(n)}function rt(n){throw n}var nt={closed:!0,next:pe,error:rt,complete:pe},ot=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function it(n){return n}function at(n){return n.length===0?it:n.length===1?n[0]:function(t){return n.reduce(function(o,i){return i(o)},t)}}var fe=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 i=this,a=lt(r)?r:new ee(r,t,o);return R(function(){var l=i,c=l.operator,p=l.source;a.add(c?c.call(a,p):p?i._subscribe(a):i._trySubscribe(a))}),a},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=de(t),new t(function(i,a){var l=new ee({next:function(c){try{r(c)}catch(p){a(p),l.unsubscribe()}},error:a,complete:i});o.subscribe(l)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[ot]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return at(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=de(r),new r(function(o,i){var a;t.subscribe(function(l){return a=l},function(l){return i(l)},function(){return o(a)})})},n.create=function(r){return new n(r)},n}();function de(n){var r;return(r=n!=null?n:Ze.Promise)!==null&&r!==void 0?r:Promise}function st(n){return n&&G(n.next)&&G(n.error)&&G(n.complete)}function lt(n){return n&&n instanceof _e||st(n)&&ye(n)}var ut=be(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xe=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 ve(this,this);return o.operator=t,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new ut},r.prototype.next=function(t){var o=this;R(function(){var i,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=X(o.currentObservers),c=l.next();!c.done;c=l.next()){var p=c.value;p.next(t)}}catch(m){i={error:m}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.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 i=o.observers;i.length;)i.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,i=this,a=i.hasError,l=i.isStopped,c=i.observers;return a||l?ge:(this.currentObservers=null,c.push(t),new z(function(){o.currentObservers=null,$(c,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,i=o.hasError,a=o.thrownError,l=o.isStopped;i?t.error(a):l&&t.complete()},r.prototype.asObservable=function(){var t=new fe;return t.source=this,t},r.create=function(t,o){return new ve(t,o)},r}(fe),ve=function(n){B(r,n);function r(t,o){var i=n.call(this)||this;return i.destination=t,i.source=o,i}return r.prototype.next=function(t){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,t)},r.prototype.error=function(t){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.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,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&i!==void 0?i:ge},r}(xe),we={now:function(){return(we.delegate||Date).now()},delegate:void 0},Se=function(n){B(r,n);function r(t,o,i){t===void 0&&(t=1/0),o===void 0&&(o=1/0),i===void 0&&(i=we);var a=n.call(this)||this;return a._bufferSize=t,a._windowTime=o,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=o===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,o),a}return r.prototype.next=function(t){var o=this,i=o.isStopped,a=o._buffer,l=o._infiniteTimeWindow,c=o._timestampProvider,p=o._windowTime;i||(a.push(t),!l&&a.push(c.now()+p)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(t),i=this,a=i._infiniteTimeWindow,l=i._buffer,c=l.slice(),p=0;p<c.length&&!t.closed;p+=a?1:2)t.next(c[p]);return this._checkFinalizedStatuses(t),o},r.prototype._trimBuffer=function(){var t=this,o=t._bufferSize,i=t._timestampProvider,a=t._buffer,l=t._infiniteTimeWindow,c=(l?1:2)*o;if(o<1/0&&c<a.length&&a.splice(0,a.length-c),!l){for(var p=i.now(),m=0,v=1;v<a.length&&a[v]<=p;v+=2)m=v;m&&a.splice(0,m+1)}},r}(xe);const ct={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!"}},me=[],he={},pt=(n,r=0)=>{if(me.indexOf(n)==-1){const t=new Se(r);he[n]=t,me.push(n)}return he[n]};typeof window!="undefined"&&(window.emWidgets={topic:pt});const ft=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;var dt=e.from_html('<div class="TournamentGamesTabs svelte-2ya82b"><button> </button> <button> </button></div>'),vt=e.from_html('<p class="svelte-2ya82b"> </p>'),mt=e.from_html("<div></div>"),ht=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-2ya82b"></div>'),bt=e.from_html("<p> </p>"),gt=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>'),yt=e.from_html('<span class="PaginationButton Elipsis svelte-2ya82b">...</span>'),_t=e.from_html("<button> </button>"),xt=e.from_html('<div><button class="PaginationButton svelte-2ya82b"> </button> <div class="PageNumberWrapper svelte-2ya82b"></div> <button class="PaginationButton svelte-2ya82b"> </button></div>'),wt=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>'),St=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 Pt={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 te(n,r){var se;e.push(r,!0),e.append_styles(n,Pt);const t=()=>e.store_get(e.$format,"$_",o),[o,i]=e.setup_stores(),a=e.prop(r,"initialGames"),l=e.prop(r,"endpoint"),c=e.prop(r,"language",7,"en"),p=e.prop(r,"session"),m=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"),A=e.prop(r,"translationurl");e.registerTranslations(ct),e.setLocale(c());const _=()=>{e.setLocale(c())};e.user_pre_effect(()=>{A()&&e.loadTranslations(A())}),e.user_effect(()=>{_()});let F=e.state(e.proxy(a()||[])),M=e.state(!1),w=e.state(0),L=e.state(void 0),C=e.state(!0);const Te=e.isServer()?(se=T())!=null?se:"dk":ft(window.navigator.userAgent),U=()=>ue(this,null,function*(){var s;if(!H.has(e.get(D))){e.set(M,!0);try{const u=yield e.fetchTournament({endpoint:l(),language:c(),platform:Te,session:p(),tournamentid:m(),filterById:!0,gamesLimit:v(),gamesOffset:e.get(w)});e.set(F,(s=u==null?void 0:u.games)==null?void 0:s.items,!0),H.set(e.get(D),e.get(F)),e.get(C)||e.set(C,!0)}catch(u){console.log(u)}finally{e.set(M,!1)}}}),ke=()=>{const s=Math.ceil(y()/v()),u=Math.floor(e.get(w)/v())+1;if(s<=5)return Array.from({length:s},(h,g)=>g+1);const d=[];return d.push(1),u<=3?(d.push(2,3),d.push("..."),d.push(s)):u>=s-2?(d.push("..."),d.push(s-2,s-1,s)):(d.push("..."),d.push(u-1,u,u+1),d.push("..."),d.push(s)),d},Ge=()=>{e.get(w)<y()&&(e.set(w,e.get(w)+v()),U())},Ee=()=>{e.get(w)!==0&&(e.set(w,e.get(w)-v()),U())},Ae=s=>{e.set(w,(s-1)*v()),U()},Oe=e.user_derived(ke),D=e.user_derived(()=>Math.floor(e.get(w)/v())+1);let H=new Map([[1,a()]]),je=e.user_derived(()=>{var s;return(s=H.get(e.get(D)))!=null?s:[]}),E=e.state("casino");const Be=()=>{var d;if(!f())return;const s=(d=f().sports)==null?void 0:d.rules;let u;if(s)try{u=JSON.parse(s),e.set(L,u[c()]||u["*"],!0)}catch(h){console.log(h),e.set(L,`${t()("sportsRulesParseError")}`)}},Me=s=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:s.launchUrl,id:s.gameId,thumbnail:s.thumbnail,name:s.name},window.location.href)};e.user_effect(()=>{Object.keys(f()).length!==0&&Be()});var Le={get initialGames(){return a()},set initialGames(s){a(s),e.flushSync()},get endpoint(){return l()},set endpoint(s){l(s),e.flushSync()},get language(){return c()},set language(s="en"){c(s),e.flushSync()},get session(){return p()},set session(s){p(s),e.flushSync()},get tournamentid(){return m()},set tournamentid(s){m(s),e.flushSync()},get gamesLimit(){return v()},set gamesLimit(s=6){v(s),e.flushSync()},get totalGames(){return y()},set totalGames(s){y(s),e.flushSync()},get platformProp(){return T()},set platformProp(s=null){T(s),e.flushSync()},get tournamentMetadata(){return f()},set tournamentMetadata(s){f(s),e.flushSync()},get translationurl(){return A()},set translationurl(s){A(s),e.flushSync()}},Y=St(),q=e.child(Y),re=e.child(q),Ce=e.only_child(re,!0),De=e.sibling(re,2),Ie=e.only_child(De,!0);e.reset(q);var ne=e.sibling(q,2);{var We=s=>{var u=dt(),d=e.child(u);let h;var g=e.only_child(d,!0),b=e.sibling(d,2);let S;var x=e.only_child(b,!0);e.reset(u),e.template_effect((P,k)=>{h=e.set_class(d,1,"Tab svelte-2ya82b",null,h,{Active:e.get(E)==="casino"}),e.set_text(g,P),S=e.set_class(b,1,"Tab svelte-2ya82b",null,S,{Active:e.get(E)==="sports"}),e.set_text(x,k)},[()=>t()("casinoTab"),()=>t()("sportsbookTab")]),e.delegated("click",d,()=>e.set(E,"casino")),e.delegated("click",b,()=>e.set(E,"sports")),e.append(s,u)},Ne=e.user_derived(()=>Object.keys(f()).length!==0);e.if_block(ne,s=>{e.get(Ne)&&s(We)})}var oe=e.sibling(ne,2);{var Re=s=>{var u=mt();let d;e.each(u,21,()=>e.get(L),e.index,(h,g)=>{var b=vt(),S=e.only_child(b);e.template_effect(x=>{var P;return e.set_text(S,`${(P=e.get(g).rule)!=null?P:""} ${x!=null?x:""}`)},[()=>t()("contribution")]),e.append(h,b)}),e.reset(u),e.template_effect(()=>d=e.set_class(u,1,"TournamentRulesWrapper svelte-2ya82b",null,d,{Hidden:e.get(E)==="casino"})),e.append(s,u)};e.if_block(oe,s=>{e.get(L)&&s(Re)})}var I=e.sibling(oe,2);let ie;var ze=e.child(I);{var Fe=s=>{var u=e.comment(),d=e.first_child(u);e.each(d,17,()=>Array(v()),e.index,(h,g,b,S)=>{var x=ht();e.append(h,x)}),e.append(s,u)},Ue=s=>{var u=bt();let d;var h=e.only_child(u,!0);e.template_effect(g=>{d=e.set_class(u,1,"NoGamesAvailable svelte-2ya82b",null,d,{Hidden:e.get(E)==="sports"}),e.set_text(h,g)},[()=>t()("noAvailableGames")]),e.append(s,u)},He=s=>{var u=e.comment(),d=e.first_child(u);e.each(d,17,()=>e.get(je),e.index,(h,g)=>{var b=gt(),S=e.child(b),x=e.child(S),P=e.sibling(x,2),k=e.child(P),W=e.only_child(k,!0);e.reset(P),e.reset(S),e.reset(b),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",b,()=>Me(e.get(g))),e.append(h,b)}),e.append(s,u)};e.if_block(ze,s=>{var u;e.get(M)?s(Fe):!e.get(M)&&((u=e.get(F))==null?void 0:u.length)===0?s(Ue,1):s(He,-1)})}e.reset(I);var ae=e.sibling(I,2);{var Ye=s=>{var u=xt();let d;var h=e.child(u),g=e.only_child(h,!0),b=e.sibling(h,2);e.each(b,21,()=>e.get(Oe),e.index,(P,k)=>{var W=e.comment(),J=e.first_child(W);{var Ve=O=>{var j=yt();e.append(O,j)},Xe=O=>{var j=_t();let le;var Qe=e.only_child(j,!0);e.template_effect(()=>{le=e.set_class(j,1,"PaginationButton Number svelte-2ya82b",null,le,{Active:e.get(k)===e.get(D)}),e.set_text(Qe,e.get(k))}),e.delegated("click",j,()=>Ae(e.get(k))),e.append(O,j)};e.if_block(J,O=>{typeof e.get(k)!="number"?O(Ve):O(Xe,-1)})}e.append(P,W)}),e.reset(b);var S=e.sibling(b,2),x=e.only_child(S,!0);e.reset(u),e.template_effect((P,k)=>{d=e.set_class(u,1,"PaginationWrapper svelte-2ya82b",null,d,{Hidden:e.get(E)==="sports"}),h.disabled=e.get(w)===0,e.set_text(g,P),S.disabled=e.get(w)>=y()-v(),e.set_text(x,k)},[()=>t()("previousButton"),()=>t()("nextButton")]),e.delegated("click",h,Ee),e.delegated("click",S,Ge),e.append(s,u)};e.if_block(ae,s=>{e.get(C)&&y()>v()&&s(Ye)})}var qe=e.sibling(ae,2);{var Je=s=>{var u=wt();e.append(s,u)};e.if_block(qe,s=>{e.get(C)||s(Je)})}e.reset(Y),e.template_effect((s,u)=>{e.set_text(Ce,s),e.set_text(Ie,u),ie=e.set_class(I,1,"TournamentGamesContainer svelte-2ya82b",null,ie,{Hidden:e.get(E)==="sports"})},[()=>t()("gamesDescriptionTitle"),()=>t()("gamesDescriptionSubtitle")]),e.append(n,Y);var Ke=e.pop(Le);return i(),Ke}e.delegate(["click"]);e.create_custom_element(te,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],{mode:"open"});function Pe(n,r){e.push(r,!0);let t=e.prop(r,"initialGames"),o=e.prop(r,"endpoint"),i=e.prop(r,"language",7,"en"),a=e.prop(r,"session"),l=e.prop(r,"tournamentid"),c=e.prop(r,"gamesLimit",7,6),p=e.prop(r,"totalGames"),m=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 i()},set language(f="en"){i(f),e.flushSync()},get session(){return a()},set session(f){a(f),e.flushSync()},get tournamentid(){return l()},set tournamentid(f){l(f),e.flushSync()},get gamesLimit(){return c()},set gamesLimit(f=6){c(f),e.flushSync()},get totalGames(){return p()},set totalGames(f){p(f),e.flushSync()},get platformProp(){return m()},set platformProp(f=null){m(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 te(n,{get initialGames(){return t()},get endpoint(){return o()},get language(){return i()},get translationurl(){return y()},get session(){return a()},get tournamentid(){return l()},get gamesLimit(){return c()},get totalGames(){return p()},get platformProp(){return m()},get tournamentMetadata(){return v()}}),e.pop(T)}customElements.define("tournament-games",e.create_custom_element(Pe,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[]));const Tt=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));exports.ReplaySubject=Se;exports.TournamentGames=te;exports.TournamentGames_ce=Tt;
|