@everymatrix/tournament-details-page 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/components/{ChartIcon-CQ9xzPNv.cjs → ChartIcon-Befgjhbq.cjs} +1 -1
  2. package/components/{ChartIcon-Bpak0Ha5.js → ChartIcon-Cijyoj4D.js} +1 -1
  3. package/components/{ChartIcon-jHYM_pz4.cjs → ChartIcon-DHA4OiwS.cjs} +1 -1
  4. package/components/{ChartIcon-Bhz3dlNt.js → ChartIcon-R4lVwti5.js} +1 -1
  5. package/components/{CoinStackIcon-w0E7Vjou.cjs → CoinStackIcon-BJ5Cza44.cjs} +1 -1
  6. package/components/{CoinStackIcon-Ccp3qOAA.js → CoinStackIcon-C1F7M7aX.js} +1 -1
  7. package/components/{CoinStackIcon-6LCcPwql.js → CoinStackIcon-D3SYgfiW.js} +1 -1
  8. package/components/{CoinStackIcon-gHBgq0A7.cjs → CoinStackIcon-DaTufppr.cjs} +1 -1
  9. package/components/{DocumentsIcon-SkzMlDao.js → DocumentsIcon-B8czAvSb.js} +1 -1
  10. package/components/{DocumentsIcon-D7v18JHm.cjs → DocumentsIcon-C-xeVT_v.cjs} +1 -1
  11. package/components/{DocumentsIcon-CCY_TgTL.js → DocumentsIcon-DNlyMYIU.js} +1 -1
  12. package/components/{DocumentsIcon-TikJpiUM.cjs → DocumentsIcon-SuePRQNo.cjs} +1 -1
  13. package/components/{FootballIcon-BxC3qLd6.cjs → FootballIcon-B8X-AjbG.cjs} +1 -1
  14. package/components/{FootballIcon-2V3-bZP6.cjs → FootballIcon-C4eNGKY4.cjs} +1 -1
  15. package/components/{FootballIcon-DiVQPE5J.js → FootballIcon-DVZ96gIt.js} +1 -1
  16. package/components/{FootballIcon-CNGC-ysJ.js → FootballIcon-u7l6pKui.js} +1 -1
  17. package/components/{PeopleIcon-nbIehGXq.cjs → PeopleIcon-BflWZAxo.cjs} +1 -1
  18. package/components/{PeopleIcon-CeTcZT9N.js → PeopleIcon-DLW94oOG.js} +1 -1
  19. package/components/{PeopleIcon-CIePqv40.cjs → PeopleIcon-DciAxL_a.cjs} +1 -1
  20. package/components/{PeopleIcon-DE_VDpzu.js → PeopleIcon-s7Ccyi1V.js} +1 -1
  21. package/components/{RankArrowIcon-CwlkgpW2.js → RankArrowIcon-97fk5fg5.js} +1 -1
  22. package/components/{RankArrowIcon-DeVP6SqV.js → RankArrowIcon-FXyB2gGq.js} +1 -1
  23. package/components/{RankArrowIcon-N3Rja8qO.cjs → RankArrowIcon-SoYkNu_W.cjs} +1 -1
  24. package/components/{RankArrowIcon-Dfflx6jx.cjs → RankArrowIcon-hrpZ9ET-.cjs} +1 -1
  25. package/components/{SlotMachineIcon-BfZMN8W8.js → SlotMachineIcon-BNa44gB0.js} +1 -1
  26. package/components/{SlotMachineIcon-B8LXNyS_.cjs → SlotMachineIcon-CaTi0xrT.cjs} +1 -1
  27. package/components/{SlotMachineIcon-Bcda_Xmo.js → SlotMachineIcon-CpTV5Gjw.js} +1 -1
  28. package/components/{SlotMachineIcon-BB--rwxm.cjs → SlotMachineIcon-DyoJSpjm.cjs} +1 -1
  29. package/components/{StatusBadge-48pKkesj.js → StatusBadge-1cAE-BMW.js} +1 -1
  30. package/components/{StatusBadge-CiBujliJ.cjs → StatusBadge-CMV-2nkA.cjs} +1 -1
  31. package/components/{StatusBadge-Bi4UTGIK.cjs → StatusBadge-DYQwo1l2.cjs} +1 -1
  32. package/components/{StatusBadge-BUU_5AgK.js → StatusBadge-Dz7gL5NT.js} +1 -1
  33. package/components/{TournamentActions-CZGHUCTG.js → TournamentActions-B4XIKdGS.js} +3 -3
  34. package/components/{TournamentActions-DrwI70Qj.js → TournamentActions-CIe9g5tR.js} +3 -3
  35. package/components/{TournamentActions-DYS3Zas8.cjs → TournamentActions-D0kIKeFb.cjs} +1 -1
  36. package/components/{TournamentActions-yR_aN1JY.cjs → TournamentActions-DHAVf_xi.cjs} +1 -1
  37. package/components/{TournamentDetailsPage-DEpxQPEA.cjs → TournamentDetailsPage-5vGjPG32.cjs} +2 -2
  38. package/components/{TournamentDetailsPage-Bp60Uk-8.js → TournamentDetailsPage-CQdLNEwc.js} +10 -10
  39. package/components/{TournamentDetailsPage-BuiUVQhu.cjs → TournamentDetailsPage-CdsWSXuQ.cjs} +2 -2
  40. package/components/{TournamentDetailsPage-Dnv8IQ1B.js → TournamentDetailsPage-DdXVtbXN.js} +10 -10
  41. package/components/{TournamentDetailsSkeleton-B7Qc2qaP.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs} +3 -3
  42. package/components/{TournamentDetailsSkeleton-qTpuepan.js → TournamentDetailsSkeleton-DA318hry.js} +8 -8
  43. package/components/{TournamentDetailsSkeleton-CFgmljN6.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs} +3 -3
  44. package/components/{TournamentDetailsSkeleton-Dn6_fjHV.js → TournamentDetailsSkeleton-DthtZKyT.js} +8 -8
  45. package/components/TournamentGames-CM0_tj8g.cjs +19 -0
  46. package/components/TournamentGames-D4b31JLG.cjs +19 -0
  47. package/components/TournamentGames-VQKGwemr.js +325 -0
  48. package/components/TournamentGames-n4c8SvY_.js +303 -0
  49. package/components/{TournamentImage-B8k7urkf.js → TournamentImage-87bhDEnk.js} +1 -1
  50. package/components/{TournamentImage-DAfP40BM.js → TournamentImage-D0na0-p6.js} +1 -1
  51. package/components/{TournamentImage-By_eps51.cjs → TournamentImage-D6eLaW4m.cjs} +1 -1
  52. package/components/{TournamentImage-BxojXrGF.cjs → TournamentImage-DK1HgudW.cjs} +1 -1
  53. package/components/{TournamentLeaderboard-C1uFc5GZ.cjs → TournamentLeaderboard-C3iblI14.cjs} +9 -9
  54. package/components/{TournamentLeaderboard-Bk72WFe2.js → TournamentLeaderboard-Cc-xMiwP.js} +179 -179
  55. package/components/{TournamentLeaderboard-cnaAJbty.js → TournamentLeaderboard-DvvnA47t.js} +252 -252
  56. package/components/{TournamentLeaderboard-BHGPwbuz.cjs → TournamentLeaderboard-NEJ1wTBv.cjs} +2 -2
  57. package/components/TournamentRules-CyqSU5RQ.js +147 -0
  58. package/components/TournamentRules-D9R2cmXK.js +152 -0
  59. package/components/TournamentRules-DDlD1tXH.cjs +6 -0
  60. package/components/TournamentRules-OGoN3OYX.cjs +6 -0
  61. package/components/{TournamentSummary-DPIK4FyI.cjs → TournamentSummary-BY9YlM53.cjs} +1 -1
  62. package/components/{TournamentSummary-DRt9iIEz.js → TournamentSummary-CewShnfd.js} +6 -6
  63. package/components/{TournamentSummary-DAVQCaqt.js → TournamentSummary-D_DLGxO7.js} +6 -6
  64. package/components/{TournamentSummary-BvxGV6na.cjs → TournamentSummary-Dy6cHmly.cjs} +1 -1
  65. package/components/{TournamentTabs-D4lAhT6v.cjs → TournamentTabs-3OdZuIOf.cjs} +1 -1
  66. package/components/{TournamentTabs-C5mZ8N3x.cjs → TournamentTabs-BDsQomg2.cjs} +1 -1
  67. package/components/{TournamentTabs-DOIFHU3l.js → TournamentTabs-mlb4UDEZ.js} +2 -2
  68. package/components/{TournamentTabs-BVNuWoQ4.js → TournamentTabs-yOsQleAI.js} +2 -2
  69. package/components/{TrophyIcon-95ROc4Lc.cjs → TrophyIcon-CUdep5Qu.cjs} +1 -1
  70. package/components/{TrophyIcon-BqeMso6k.js → TrophyIcon-D6xEdEIW.js} +1 -1
  71. package/components/{TrophyIcon-BuT5Q6K0.cjs → TrophyIcon-DJDEDfa7.cjs} +1 -1
  72. package/components/{TrophyIcon-BolnMSK-.js → TrophyIcon-rK1Ad8lv.js} +1 -1
  73. package/components/{translations-CPDBBwzN.cjs → translations-B2zzqYUc.cjs} +1 -1
  74. package/components/{translations-CzV51BzW.js → translations-BPv4iAvC.js} +10 -7
  75. package/components/{translations-CoULEJN6.js → translations-BY4crXAR.js} +10 -7
  76. package/components/{translations-Bgd_tQSB.cjs → translations-CmWDttoq.cjs} +1 -1
  77. package/es2015/tournament-details-page.cjs +1 -1
  78. package/es2015/tournament-details-page.js +2 -2
  79. package/esnext/tournament-details-page.cjs +1 -1
  80. package/esnext/tournament-details-page.js +2 -2
  81. package/package.json +1 -1
  82. package/components/TournamentGames-BHzZyU1T.cjs +0 -19
  83. package/components/TournamentGames-BSbbbGfz.js +0 -313
  84. package/components/TournamentGames-D9NuiZl1.js +0 -291
  85. package/components/TournamentGames-Zkp7iS-3.cjs +0 -19
  86. package/components/TournamentRules-B392M3KD.js +0 -138
  87. package/components/TournamentRules-BpcwEy6C.cjs +0 -6
  88. package/components/TournamentRules-D8ePsXfz.js +0 -143
  89. package/components/TournamentRules-DRhqdG_B.cjs +0 -6
@@ -1,138 +0,0 @@
1
- import { c as te, g as ae, a as se, p as $, i as x, _ as I, b as d, d as re, f as u, h as r, q as S, I as le, j as c, s as n, r as a, u as P, V as ne, $ as ie, O as U, M as j, t as q, N as w, P as oe } from "./StatusBadge-BUU_5AgK.js";
2
- import { S as ve } from "./TournamentLeaderboard-Bk72WFe2.js";
3
- import { T as pe } from "./TrophyIcon-BolnMSK-.js";
4
- import { C as de } from "./ChartIcon-Bhz3dlNt.js";
5
- import { C as ue } from "./CoinStackIcon-6LCcPwql.js";
6
- import { S as _e } from "./SlotMachineIcon-Bcda_Xmo.js";
7
- import { F as he } from "./FootballIcon-DiVQPE5J.js";
8
- import { D as ce } from "./DocumentsIcon-SkzMlDao.js";
9
- typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
10
- }, globalThis.customElements = { define() {
11
- }, get() {
12
- }, whenDefined() {
13
- } });
14
- var me = u("<li> </li>"), fe = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'), A = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'), xe = u('<p class="svelte-1hqp0j7"> </p>'), ge = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'), je = u('<li class="svelte-1hqp0j7"> </li>'), qe = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'), we = u('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');
15
- const be = {
16
- hash: "svelte-1hqp0j7",
17
- code: `.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
18
- ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
19
- p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
20
-
21
- @media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
22
- }`
23
- };
24
- function Ce(E, b) {
25
- ae(b, !0), se(E, be);
26
- const m = () => ne(ie, "$_", N), [N, V] = le(), i = $(b, "tournament", 7), C = $(b, "casinoRules", 7, ""), R = $(b, "sportRules", 23, () => []), M = P(() => [...i().prizes ?? []].sort((e, t) => e.rank - t.rank).map((e) => ({
27
- place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
28
- name: e.name
29
- }))), B = P(() => ve[i().scoreCriteria]);
30
- var Y = {
31
- get tournament() {
32
- return i();
33
- },
34
- set tournament(e) {
35
- i(e), S();
36
- },
37
- get casinoRules() {
38
- return C();
39
- },
40
- set casinoRules(e = "") {
41
- C(e), S();
42
- },
43
- get sportRules() {
44
- return R();
45
- },
46
- set sportRules(e = []) {
47
- R(e), S();
48
- }
49
- }, y = we(), D = r(y);
50
- {
51
- var G = (e) => {
52
- var t = fe(), s = r(t), o = r(s);
53
- pe(o, { width: 16, height: 16 }), a(s);
54
- var l = n(s, 2);
55
- U(l, 21, () => c(M), (v) => v.place, (v, f) => {
56
- var _ = me(), h = j(_, !0);
57
- q((p) => w(h, p), [
58
- () => m()("prizePlace", {
59
- values: { place: c(f).place, prize: c(f).name }
60
- })
61
- ]), d(v, _);
62
- }), a(l), a(t), d(e, t);
63
- };
64
- x(D, (e) => {
65
- c(M).length > 0 && e(G);
66
- });
67
- }
68
- var L = n(D, 2);
69
- {
70
- var J = (e) => {
71
- var t = A(), s = r(t), o = r(s);
72
- de(o, { width: 16, height: 16 }), a(s);
73
- var l = n(s, 2);
74
- I(l, () => m()(c(B)), !0), a(l), a(t), d(e, t);
75
- };
76
- x(L, (e) => {
77
- c(B) && e(J);
78
- });
79
- }
80
- var z = n(L, 2);
81
- {
82
- var Q = (e) => {
83
- var t = A(), s = r(t), o = r(s);
84
- ue(o, { width: 16, height: 16 }), a(s);
85
- var l = n(s, 2);
86
- I(l, () => m()("miniBetCount", { values: { betCount: i().minBetCount } }), !0), a(l), a(t), d(e, t);
87
- };
88
- x(z, (e) => {
89
- i().minBetCount && e(Q);
90
- });
91
- }
92
- var F = n(z, 2);
93
- {
94
- var W = (e) => {
95
- var t = ge(), s = r(t), o = r(s);
96
- _e(o, { width: 16, height: 16 }), a(s);
97
- var l = n(s, 2), v = r(l), f = j(v), _ = n(v, 2);
98
- {
99
- var h = (p) => {
100
- var g = xe(), T = j(g, !0);
101
- q(() => w(T, C())), d(p, g);
102
- };
103
- x(_, (p) => {
104
- C() && p(h);
105
- });
106
- }
107
- a(l), a(t), q((p) => w(f, `${p ?? ""}:`), [() => m()("forCasino")]), d(e, t);
108
- };
109
- x(F, (e) => {
110
- i().wallet?.casino && e(W);
111
- });
112
- }
113
- var H = n(F, 2);
114
- {
115
- var X = (e) => {
116
- var t = qe(), s = r(t), o = r(s);
117
- he(o, { width: 16, height: 16 }), a(s);
118
- var l = n(s, 2), v = r(l), f = j(v), _ = n(v, 2);
119
- U(_, 21, R, oe, (h, p) => {
120
- var g = je(), T = j(g, !0);
121
- q(() => w(T, c(p))), d(h, g);
122
- }), a(_), a(l), a(t), q((h) => w(f, `${h ?? ""}:`), [() => m()("forSportsbook")]), d(e, t);
123
- };
124
- x(H, (e) => {
125
- i().wallet?.sports && R().length > 0 && e(X);
126
- });
127
- }
128
- var K = n(H, 2), k = r(K), Z = r(k);
129
- ce(Z, { width: 16, height: 16 }), a(k);
130
- var O = n(k, 2);
131
- I(O, () => m()("termsLink", { values: { tcUrl: i().termsUrl || "#" } }), !0), a(O), a(K), a(y), d(E, y);
132
- var ee = re(Y);
133
- return V(), ee;
134
- }
135
- te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
136
- export {
137
- Ce as T
138
- };
@@ -1,6 +0,0 @@
1
- typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-Bi4UTGIK.cjs"),O=require("./TournamentLeaderboard-C1uFc5GZ.cjs"),P=require("./TrophyIcon-95ROc4Lc.cjs"),Y=require("./ChartIcon-jHYM_pz4.cjs"),$=require("./CoinStackIcon-gHBgq0A7.cjs"),G=require("./SlotMachineIcon-B8LXNyS_.cjs"),J=require("./FootballIcon-2V3-bZP6.cjs"),N=require("./DocumentsIcon-D7v18JHm.cjs");var Q=e.from_html("<li> </li>"),V=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'),T=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'),W=e.from_html('<p class="svelte-1hqp0j7"> </p>'),X=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'),Z=e.from_html('<li class="svelte-1hqp0j7"> </li>'),ee=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'),te=e.from_html('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');const se={hash:"svelte-1hqp0j7",code:`.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
2
- ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
3
- p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
4
-
5
- @media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
6
- }`};function E(q,u){e.push(u,!0),e.append_styles(q,se);const _=()=>e.store_get(e.$format,"$_",B),[B,L]=e.setup_stores(),a=e.prop(u,"tournament",7),v=e.prop(u,"casinoRules",7,""),m=e.prop(u,"sportRules",23,()=>[]),j=e.user_derived(()=>{var s;return[...(s=a().prizes)!=null?s:[]].sort((t,r)=>t.rank-r.rank).map(t=>({place:t.count>1?`${t.rank} - ${t.rank+t.count-1}`:String(t.rank),name:t.name}))}),b=e.user_derived(()=>O.SCORE_CRITERIA_KEYS[a().scoreCriteria]);var M={get tournament(){return a()},set tournament(s){a(s),e.flushSync()},get casinoRules(){return v()},set casinoRules(s=""){v(s),e.flushSync()},get sportRules(){return m()},set sportRules(s=[]){m(s),e.flushSync()}},f=te(),w=e.child(f);{var D=s=>{var t=V(),r=e.child(t),i=e.child(r);P.TrophyIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.each(n,21,()=>e.get(j),o=>o.place,(o,c)=>{var p=Q(),d=e.only_child(p,!0);e.template_effect(l=>e.set_text(d,l),[()=>_()("prizePlace",{values:{place:e.get(c).place,prize:e.get(c).name}})]),e.append(o,p)}),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(w,s=>{e.get(j).length>0&&s(D)})}var y=e.sibling(w,2);{var z=s=>{var t=T(),r=e.child(t),i=e.child(r);Y.ChartIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()(e.get(b)),!0),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(y,s=>{e.get(b)&&s(z)})}var k=e.sibling(y,2);{var F=s=>{var t=T(),r=e.child(t),i=e.child(r);$.CoinStackIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()("miniBetCount",{values:{betCount:a().minBetCount}}),!0),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(k,s=>{a().minBetCount&&s(F)})}var R=e.sibling(k,2);{var H=s=>{var t=X(),r=e.child(t),i=e.child(r);G.SlotMachineIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),o=e.child(n),c=e.only_child(o),p=e.sibling(o,2);{var d=l=>{var h=W(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,v())),e.append(l,h)};e.if_block(p,l=>{v()&&l(d)})}e.reset(n),e.reset(t),e.template_effect(l=>e.set_text(c,`${l!=null?l:""}:`),[()=>_()("forCasino")]),e.append(s,t)};e.if_block(R,s=>{var t;(t=a().wallet)!=null&&t.casino&&s(H)})}var C=e.sibling(R,2);{var K=s=>{var t=ee(),r=e.child(t),i=e.child(r);J.FootballIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),o=e.child(n),c=e.only_child(o),p=e.sibling(o,2);e.each(p,21,m,e.index,(d,l)=>{var h=Z(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,e.get(l))),e.append(d,h)}),e.reset(p),e.reset(n),e.reset(t),e.template_effect(d=>e.set_text(c,`${d!=null?d:""}:`),[()=>_()("forSportsbook")]),e.append(s,t)};e.if_block(C,s=>{var t;(t=a().wallet)!=null&&t.sports&&m().length>0&&s(K)})}var I=e.sibling(C,2),g=e.child(I),U=e.child(g);N.DocumentsIcon(U,{width:16,height:16}),e.reset(g);var S=e.sibling(g,2);e.html(S,()=>_()("termsLink",{values:{tcUrl:a().termsUrl||"#"}}),!0),e.reset(S),e.reset(I),e.reset(f),e.append(q,f);var A=e.pop(M);return L(),A}e.create_custom_element(E,{tournament:{},casinoRules:{},sportRules:{}},[],[],{mode:"open"});exports.TournamentRules=E;
@@ -1,143 +0,0 @@
1
- import { c as te, g as ae, a as se, p as I, i as x, _ as S, b as u, d as re, f as _, h as r, q as E, I as le, j as c, s as n, r as s, u as U, V as ne, $ as ie, O as $, M as j, t as q, N as w, P as oe } from "./StatusBadge-48pKkesj.js";
2
- import { S as ve } from "./TournamentLeaderboard-cnaAJbty.js";
3
- import { T as pe } from "./TrophyIcon-BqeMso6k.js";
4
- import { C as de } from "./ChartIcon-Bpak0Ha5.js";
5
- import { C as ue } from "./CoinStackIcon-Ccp3qOAA.js";
6
- import { S as _e } from "./SlotMachineIcon-BfZMN8W8.js";
7
- import { F as he } from "./FootballIcon-CNGC-ysJ.js";
8
- import { D as ce } from "./DocumentsIcon-CCY_TgTL.js";
9
- typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
10
- }, globalThis.customElements = { define() {
11
- }, get() {
12
- }, whenDefined() {
13
- } });
14
- var me = _("<li> </li>"), fe = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'), A = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'), xe = _('<p class="svelte-1hqp0j7"> </p>'), ge = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'), je = _('<li class="svelte-1hqp0j7"> </li>'), qe = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'), we = _('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');
15
- const be = {
16
- hash: "svelte-1hqp0j7",
17
- code: `.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
18
- ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
19
- p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
20
-
21
- @media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
22
- }`
23
- };
24
- function Ce(M, b) {
25
- ae(b, !0), se(M, be);
26
- const m = () => ne(ie, "$_", N), [N, V] = le(), o = I(b, "tournament", 7), C = I(b, "casinoRules", 7, ""), R = I(b, "sportRules", 23, () => []), B = U(() => {
27
- var t;
28
- return [...(t = o().prizes) != null ? t : []].sort((e, a) => e.rank - a.rank).map((e) => ({
29
- place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
30
- name: e.name
31
- }));
32
- }), D = U(() => ve[o().scoreCriteria]);
33
- var Y = {
34
- get tournament() {
35
- return o();
36
- },
37
- set tournament(t) {
38
- o(t), E();
39
- },
40
- get casinoRules() {
41
- return C();
42
- },
43
- set casinoRules(t = "") {
44
- C(t), E();
45
- },
46
- get sportRules() {
47
- return R();
48
- },
49
- set sportRules(t = []) {
50
- R(t), E();
51
- }
52
- }, y = we(), L = r(y);
53
- {
54
- var G = (t) => {
55
- var e = fe(), a = r(e), v = r(a);
56
- pe(v, { width: 16, height: 16 }), s(a);
57
- var l = n(a, 2);
58
- $(l, 21, () => c(B), (p) => p.place, (p, f) => {
59
- var h = me(), d = j(h, !0);
60
- q((i) => w(d, i), [
61
- () => m()("prizePlace", {
62
- values: { place: c(f).place, prize: c(f).name }
63
- })
64
- ]), u(p, h);
65
- }), s(l), s(e), u(t, e);
66
- };
67
- x(L, (t) => {
68
- c(B).length > 0 && t(G);
69
- });
70
- }
71
- var z = n(L, 2);
72
- {
73
- var J = (t) => {
74
- var e = A(), a = r(e), v = r(a);
75
- de(v, { width: 16, height: 16 }), s(a);
76
- var l = n(a, 2);
77
- S(l, () => m()(c(D)), !0), s(l), s(e), u(t, e);
78
- };
79
- x(z, (t) => {
80
- c(D) && t(J);
81
- });
82
- }
83
- var F = n(z, 2);
84
- {
85
- var Q = (t) => {
86
- var e = A(), a = r(e), v = r(a);
87
- ue(v, { width: 16, height: 16 }), s(a);
88
- var l = n(a, 2);
89
- S(l, () => m()("miniBetCount", { values: { betCount: o().minBetCount } }), !0), s(l), s(e), u(t, e);
90
- };
91
- x(F, (t) => {
92
- o().minBetCount && t(Q);
93
- });
94
- }
95
- var H = n(F, 2);
96
- {
97
- var W = (t) => {
98
- var e = ge(), a = r(e), v = r(a);
99
- _e(v, { width: 16, height: 16 }), s(a);
100
- var l = n(a, 2), p = r(l), f = j(p), h = n(p, 2);
101
- {
102
- var d = (i) => {
103
- var g = xe(), T = j(g, !0);
104
- q(() => w(T, C())), u(i, g);
105
- };
106
- x(h, (i) => {
107
- C() && i(d);
108
- });
109
- }
110
- s(l), s(e), q((i) => w(f, `${i != null ? i : ""}:`), [() => m()("forCasino")]), u(t, e);
111
- };
112
- x(H, (t) => {
113
- var e;
114
- (e = o().wallet) != null && e.casino && t(W);
115
- });
116
- }
117
- var K = n(H, 2);
118
- {
119
- var X = (t) => {
120
- var e = qe(), a = r(e), v = r(a);
121
- he(v, { width: 16, height: 16 }), s(a);
122
- var l = n(a, 2), p = r(l), f = j(p), h = n(p, 2);
123
- $(h, 21, R, oe, (d, i) => {
124
- var g = je(), T = j(g, !0);
125
- q(() => w(T, c(i))), u(d, g);
126
- }), s(h), s(l), s(e), q((d) => w(f, `${d != null ? d : ""}:`), [() => m()("forSportsbook")]), u(t, e);
127
- };
128
- x(K, (t) => {
129
- var e;
130
- (e = o().wallet) != null && e.sports && R().length > 0 && t(X);
131
- });
132
- }
133
- var O = n(K, 2), k = r(O), Z = r(k);
134
- ce(Z, { width: 16, height: 16 }), s(k);
135
- var P = n(k, 2);
136
- S(P, () => m()("termsLink", { values: { tcUrl: o().termsUrl || "#" } }), !0), s(P), s(O), s(y), u(M, y);
137
- var ee = re(Y);
138
- return V(), ee;
139
- }
140
- te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
141
- export {
142
- Ce as T
143
- };
@@ -1,6 +0,0 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CiBujliJ.cjs"),A=require("./TournamentLeaderboard-BHGPwbuz.cjs"),O=require("./TrophyIcon-BuT5Q6K0.cjs"),P=require("./ChartIcon-CQ9xzPNv.cjs"),Y=require("./CoinStackIcon-w0E7Vjou.cjs"),G=require("./SlotMachineIcon-BB--rwxm.cjs"),J=require("./FootballIcon-BxC3qLd6.cjs"),N=require("./DocumentsIcon-TikJpiUM.cjs");var Q=e.from_html("<li> </li>"),V=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'),T=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'),W=e.from_html('<p class="svelte-1hqp0j7"> </p>'),X=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'),Z=e.from_html('<li class="svelte-1hqp0j7"> </li>'),ee=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'),te=e.from_html('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');const se={hash:"svelte-1hqp0j7",code:`.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
2
- ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
3
- p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
4
-
5
- @media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
6
- }`};function $(q,u){e.push(u,!0),e.append_styles(q,se);const _=()=>e.store_get(e.$format,"$_",E),[E,B]=e.setup_stores(),l=e.prop(u,"tournament",7),v=e.prop(u,"casinoRules",7,""),m=e.prop(u,"sportRules",23,()=>[]),j=e.user_derived(()=>[...l().prizes??[]].sort((t,s)=>t.rank-s.rank).map(t=>({place:t.count>1?`${t.rank} - ${t.rank+t.count-1}`:String(t.rank),name:t.name}))),b=e.user_derived(()=>A.SCORE_CRITERIA_KEYS[l().scoreCriteria]);var L={get tournament(){return l()},set tournament(t){l(t),e.flushSync()},get casinoRules(){return v()},set casinoRules(t=""){v(t),e.flushSync()},get sportRules(){return m()},set sportRules(t=[]){m(t),e.flushSync()}},f=te(),w=e.child(f);{var M=t=>{var s=V(),r=e.child(s),a=e.child(r);O.TrophyIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.each(n,21,()=>e.get(j),i=>i.place,(i,c)=>{var d=Q(),p=e.only_child(d,!0);e.template_effect(o=>e.set_text(p,o),[()=>_()("prizePlace",{values:{place:e.get(c).place,prize:e.get(c).name}})]),e.append(i,d)}),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(w,t=>{e.get(j).length>0&&t(M)})}var y=e.sibling(w,2);{var D=t=>{var s=T(),r=e.child(s),a=e.child(r);P.ChartIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()(e.get(b)),!0),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(y,t=>{e.get(b)&&t(D)})}var k=e.sibling(y,2);{var z=t=>{var s=T(),r=e.child(s),a=e.child(r);Y.CoinStackIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()("miniBetCount",{values:{betCount:l().minBetCount}}),!0),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(k,t=>{l().minBetCount&&t(z)})}var R=e.sibling(k,2);{var F=t=>{var s=X(),r=e.child(s),a=e.child(r);G.SlotMachineIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),i=e.child(n),c=e.only_child(i),d=e.sibling(i,2);{var p=o=>{var h=W(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,v())),e.append(o,h)};e.if_block(d,o=>{v()&&o(p)})}e.reset(n),e.reset(s),e.template_effect(o=>e.set_text(c,`${o??""}:`),[()=>_()("forCasino")]),e.append(t,s)};e.if_block(R,t=>{l().wallet?.casino&&t(F)})}var C=e.sibling(R,2);{var H=t=>{var s=ee(),r=e.child(s),a=e.child(r);J.FootballIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),i=e.child(n),c=e.only_child(i),d=e.sibling(i,2);e.each(d,21,m,e.index,(p,o)=>{var h=Z(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,e.get(o))),e.append(p,h)}),e.reset(d),e.reset(n),e.reset(s),e.template_effect(p=>e.set_text(c,`${p??""}:`),[()=>_()("forSportsbook")]),e.append(t,s)};e.if_block(C,t=>{l().wallet?.sports&&m().length>0&&t(H)})}var I=e.sibling(C,2),g=e.child(I),K=e.child(g);N.DocumentsIcon(K,{width:16,height:16}),e.reset(g);var S=e.sibling(g,2);e.html(S,()=>_()("termsLink",{values:{tcUrl:l().termsUrl||"#"}}),!0),e.reset(S),e.reset(I),e.reset(f),e.append(q,f);var U=e.pop(L);return B(),U}e.create_custom_element($,{tournament:{},casinoRules:{},sportRules:{}},[],[],{mode:"open"});exports.TournamentRules=$;