@oddsmith/ui 1.0.0 → 1.0.1
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/README.md +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/config.json +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/defaults/glam-sections.json +3 -3
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json.js +7 -7
- package/dist/components/os-leaderboard-casino/assets/fallback/manifest.json +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json.js +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json +4 -4
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js +1 -1
- package/dist/components/os-leaderboard-casino/constants/defaults.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/constants/index.d.ts +2 -0
- package/dist/components/os-leaderboard-casino/constants/tags.d.ts +22 -0
- package/dist/components/os-leaderboard-casino/constants/tags.js +6 -4
- package/dist/components/os-leaderboard-casino/constants/tags.js.map +1 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.d.ts +35 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.host.d.ts +13 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js +5 -5
- package/dist/components/os-leaderboard-casino/index.d.ts +36 -0
- package/dist/components/os-leaderboard-casino/index.js +23 -23
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.d.ts +21 -0
- package/dist/components/os-leaderboard-casino/integration/assets-context.d.ts +26 -0
- package/dist/components/os-leaderboard-casino/integration/defaults-glam.d.ts +14 -0
- package/dist/components/os-leaderboard-casino/integration/defaults-new-money.d.ts +3 -0
- package/dist/components/os-leaderboard-casino/integration/index.d.ts +5 -0
- package/dist/components/os-leaderboard-casino/integration/labels.d.ts +1 -0
- package/dist/components/os-leaderboard-casino/integration/load-assets.d.ts +9 -0
- package/dist/components/os-leaderboard-casino/integration/presets.d.ts +1 -0
- package/dist/components/os-leaderboard-casino/integration/resolve-input.d.ts +20 -0
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js +3 -3
- package/dist/components/os-leaderboard-casino/integration/themes.d.ts +1 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.d.ts +19 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.host.d.ts +15 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.d.ts +5 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.d.ts +16 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.host.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js +1 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.d.ts +10 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.host.d.ts +3 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js +1 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/components/game-images.d.ts +1 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.d.ts +20 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.host.d.ts +7 -0
- package/dist/components/os-leaderboard-casino/sections/header-section/header-section.d.ts +12 -0
- package/dist/components/os-leaderboard-casino/sections/header-section/header-section.host.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.d.ts +37 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.host.d.ts +20 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js +1 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.d.ts +18 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.host.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js +1 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/live-feed-section/live-feed-section.d.ts +13 -0
- package/dist/components/os-leaderboard-casino/sections/live-feed-section/live-feed-section.host.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.d.ts +3 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.d.ts +14 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.d.ts +42 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.host.d.ts +8 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.d.ts +6 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.d.ts +16 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.js +71 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.d.ts +23 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.host.d.ts +11 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js +15 -14
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-band/stat-band.d.ts +17 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-card/stat-card.d.ts +15 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-chip/stat-chip.d.ts +17 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-gauge/stat-gauge.d.ts +14 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.d.ts +5 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js +11 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-meter/stat-meter.d.ts +17 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.d.ts +17 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.js +61 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.d.ts +16 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.host.d.ts +13 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js +14 -12
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.d.ts +31 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.host.d.ts +15 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js +1 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js.map +1 -1
- package/dist/components/os-leaderboard-casino/services/adapter.service.d.ts +11 -0
- package/dist/components/os-leaderboard-casino/services/icon.service.d.ts +28 -0
- package/dist/components/os-leaderboard-casino/services/index.d.ts +2 -0
- package/dist/components/os-leaderboard-casino/theme/index.d.ts +3 -0
- package/dist/components/os-leaderboard-casino/theme/prize-icons.d.ts +1 -0
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.d.ts +5 -0
- package/dist/components/os-leaderboard-casino/theme/styles.d.ts +9 -0
- package/dist/components/os-leaderboard-casino/theme/vip-icons.d.ts +2 -0
- package/dist/components/os-leaderboard-casino/theme/vip-mark.d.ts +7 -0
- package/dist/components/os-leaderboard-casino/types/assets.d.ts +40 -0
- package/dist/components/os-leaderboard-casino/types/data.d.ts +106 -0
- package/dist/components/os-leaderboard-casino/types/events.d.ts +18 -0
- package/dist/components/os-leaderboard-casino/types/icons.d.ts +18 -0
- package/dist/components/os-leaderboard-casino/types/input.d.ts +73 -0
- package/dist/components/os-leaderboard-casino/types/ledger.d.ts +67 -0
- package/dist/components/os-leaderboard-casino/types/sections.d.ts +200 -0
- package/dist/components/os-leaderboard-casino/types/state.d.ts +69 -0
- package/dist/shared/lib/lit/component.d.ts +5 -0
- package/dist/shared/lib/lit/safe-custom-element.d.ts +5 -0
- package/dist/shared/lib/lit/scss.d.ts +3 -0
- package/dist/shared/lib/lit/template.d.ts +3 -0
- package/package.json +3 -2
- package/dist/index.d.ts +0 -734
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"hero": {
|
|
47
47
|
"bannerAsset": {
|
|
48
48
|
"uuid": "banner-1",
|
|
49
|
-
"createdTs": "2026-06-
|
|
49
|
+
"createdTs": "2026-06-21T17:18:02.072Z",
|
|
50
50
|
"name": "midnight-millions-banner",
|
|
51
51
|
"label": "Midnight Millions",
|
|
52
52
|
"comment": "",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"title": "Midnight Millions",
|
|
59
59
|
"description": "Climb the board before the timer hits zero.",
|
|
60
|
-
"endTs": "2026-06-
|
|
60
|
+
"endTs": "2026-06-24T17:18:02.073Z",
|
|
61
61
|
"status": "active",
|
|
62
62
|
"prizePoolValue": 124500,
|
|
63
63
|
"prizePoolCurrency": "USD"
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
"winRate": 48,
|
|
540
540
|
"gamesPlayed": 31
|
|
541
541
|
},
|
|
542
|
-
"ctaLabel": "Enter the
|
|
542
|
+
"ctaLabel": "Enter the Thing"
|
|
543
543
|
},
|
|
544
544
|
"footer": {
|
|
545
545
|
"text": "Unused powered by oddsmith.io"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
back:
|
|
3
|
-
live:
|
|
4
|
-
cta:
|
|
1
|
+
const t = "Return", e = "Live", n = "Enter the Thing", c = {
|
|
2
|
+
back: t,
|
|
3
|
+
live: e,
|
|
4
|
+
cta: n
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
t as back,
|
|
8
|
+
n as cta,
|
|
9
9
|
c as default,
|
|
10
|
-
|
|
10
|
+
e as live
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=labels.json.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "golden", a = [{ id: "golden", label: "Golden", description: "Full glam layout — noir gold palette, prize podium, and rankings table.", appearance: "glam", themeId: "glam-default", config: { labels: { back: "Return", live: "Live", cta: "Enter the
|
|
1
|
+
const e = "golden", a = [{ id: "golden", label: "Golden", description: "Full glam layout — noir gold palette, prize podium, and rankings table.", appearance: "glam", themeId: "glam-default", config: { labels: { back: "Return", live: "Live", cta: "Enter the Thing" }, enabled: ["marquee", "events", "hero", "prize", "stats", "games", "climb", "table", "footer", "legals"], mainOrder: ["prize", "stats", "games", "climb", "table"] } }], t = {
|
|
2
2
|
defaultPresetId: e,
|
|
3
3
|
presets: a
|
|
4
4
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"labels": {
|
|
7
7
|
"back": "Return",
|
|
8
8
|
"live": "Live",
|
|
9
|
-
"cta": "Enter the
|
|
9
|
+
"cta": "Enter the Thing"
|
|
10
10
|
},
|
|
11
11
|
"enabled": [
|
|
12
12
|
"marquee",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"hero": {
|
|
82
82
|
"bannerAsset": {
|
|
83
83
|
"uuid": "banner-1",
|
|
84
|
-
"createdTs": "2026-06-
|
|
84
|
+
"createdTs": "2026-06-21T17:18:02.072Z",
|
|
85
85
|
"name": "midnight-millions-banner",
|
|
86
86
|
"label": "Midnight Millions",
|
|
87
87
|
"comment": "",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
},
|
|
93
93
|
"title": "Midnight Millions",
|
|
94
94
|
"description": "Climb the board before the timer hits zero.",
|
|
95
|
-
"endTs": "2026-06-
|
|
95
|
+
"endTs": "2026-06-24T17:18:02.073Z",
|
|
96
96
|
"status": "active",
|
|
97
97
|
"prizePoolValue": 124500,
|
|
98
98
|
"prizePoolCurrency": "USD"
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"winRate": 48,
|
|
575
575
|
"gamesPlayed": 31
|
|
576
576
|
},
|
|
577
|
-
"ctaLabel": "Enter the
|
|
577
|
+
"ctaLabel": "Enter the Thing"
|
|
578
578
|
},
|
|
579
579
|
"footer": {
|
|
580
580
|
"text": "Unused powered by oddsmith.io"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { config: { appearance: "glam", themeId: "glam-default", labels: { back: "Return", live: "Live", cta: "Enter the
|
|
1
|
+
const e = { config: { appearance: "glam", themeId: "glam-default", labels: { back: "Return", live: "Live", cta: "Enter the Thing" }, enabled: ["marquee", "events", "hero", "prize", "stats", "games", "climb", "table", "footer", "legals"], mainOrder: ["prize", "stats", "games", "climb", "table"], themeVars: { "--os-casino-font-display": "'Sora', system-ui, sans-serif", "--os-casino-font-body": "'Inter', system-ui, sans-serif", "--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace" } }, sections: { marquee: { items: [{ id: "mq-1", gameId: "slot-machine", text: "krakenbet won $4,200 on Mega Fortune", amount: 4200, currency: "USD", vip: !0 }, { id: "mq-2", gameId: "roulette", text: "marisol_v won $1,800 on Lightning Roulette", amount: 1800, currency: "USD" }, { id: "mq-3", gameId: "cards", text: "mr_midnight won $9,600 on VIP Baccarat", amount: 9600, currency: "USD", vip: !0 }], speedSec: 32 }, events: { events: [{ id: "event-1", title: "Double points weekend", subtitle: "All slots count 2× toward the board", accent: "gold" }, { id: "event-2", title: "High roller boost", subtitle: "Tables over $500 qualify for bonus tiers", accent: "violet" }] }, hero: { bannerAsset: { uuid: "banner-1", createdTs: "2026-06-21T17:18:02.072Z", name: "midnight-millions-banner", label: "Midnight Millions", comment: "", url: "", tags: [], type: "GAME", sportType: "casino" }, title: "Midnight Millions", description: "Climb the board before the timer hits zero.", endTs: "2026-06-24T17:18:02.073Z", status: "active", prizePoolValue: 124500, prizePoolCurrency: "USD" }, prize: { prizePackage: { uuid: "prize-package-1", name: "Midnight Millions", prizes: [{ uuid: "prize-1", label: { values: [{ value: "Grand Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Grand Jackpot" }, value: 5e4, currency: "USD", rankFrom: 1, rankTo: 1 }, { uuid: "prize-2", label: { values: [{ value: "Major Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Major Jackpot" }, value: 25e3, currency: "USD", rankFrom: 2, rankTo: 2 }, { uuid: "prize-3", label: { values: [{ value: "Mini Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Mini Jackpot" }, value: 1e4, currency: "USD", rankFrom: 3, rankTo: 3 }, { uuid: "prize-4", label: { values: [{ value: "Casino Credits", language: "en" }], labelType: "ON_DEMAND", enValue: "Casino Credits" }, value: 1e3, currency: "USD", rankFrom: 4, rankTo: 4 }, { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, { uuid: "prize-6", label: { values: [{ value: "Mystery Bonus Drop", language: "en" }], labelType: "ON_DEMAND", enValue: "Mystery Bonus Drop" }, value: 100, currency: "USD", rankFrom: 11, rankTo: 200 }] }, allocationStrategy: "BEST_PRIZE" }, stats: { totalParticipants: 12842, totalPrizes: 6, biggestWin: 9600, biggestWinCurrency: "USD" }, games: { games: [{ id: "chips", title: "Golden Chips", boost: "2×" }, { id: "cards", title: "VIP Baccarat", boost: "1.5×" }, { id: "slot-machine", title: "Mega Fortune", boost: "2×" }, { id: "roulette", title: "Lightning Roulette", boost: "1.5×" }, { id: "dice", title: "Mega Dice", boost: "1.2×" }, { id: "gates-of-olympus", title: "Gates of Olympus", boost: "3×" }] }, climb: { username: "deep_cut", rank: 17, points: 28460, nextTierRank: 10, nextTierLabel: "Free Spins ×25", pointsToNextTier: 1240, progress: 0.62, trend: 3 }, table: { mode: "preview", topPlayers: [{ username: "krakenbet", rank: 1, points: 184200, totalBet: 14200, prize: { uuid: "prize-1", label: { values: [{ value: "Grand Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Grand Jackpot" }, value: 5e4, currency: "USD", rankFrom: 1, rankTo: 1 }, splitCount: 1, you: !1, vip: !0, previousRank: 3, winRate: 68, gamesPlayed: 182 }, { username: "marisol_v", rank: 2, points: 129718, totalBet: 12800, prize: { uuid: "prize-2", label: { values: [{ value: "Major Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Major Jackpot" }, value: 25e3, currency: "USD", rankFrom: 2, rankTo: 2 }, splitCount: 1, you: !1, previousRank: 4, winRate: 64, gamesPlayed: 168 }, { username: "mr_midnight", rank: 3, points: 100109, totalBet: 11500, prize: { uuid: "prize-3", label: { values: [{ value: "Mini Jackpot", language: "en" }], labelType: "ON_DEMAND", enValue: "Mini Jackpot" }, value: 1e4, currency: "USD", rankFrom: 3, rankTo: 3 }, splitCount: 1, you: !1, vip: !0, previousRank: 2, winRate: 61, gamesPlayed: 155 }, { username: "piotr_k", rank: 4, points: 81504, totalBet: 10200, prize: { uuid: "prize-4", label: { values: [{ value: "Casino Credits", language: "en" }], labelType: "ON_DEMAND", enValue: "Casino Credits" }, value: 1e3, currency: "USD", rankFrom: 4, rankTo: 4 }, splitCount: 1, you: !1, vip: !0, previousRank: 1, winRate: 58, gamesPlayed: 144 }, { username: "bl4ze77", rank: 5, points: 68731, totalBet: 9100, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, previousRank: 6, winRate: 56, gamesPlayed: 138 }, { username: "ghostchip", rank: 6, points: 59419, totalBet: 8200, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, previousRank: 5, winRate: 54, gamesPlayed: 127 }, { username: "LunaX", rank: 7, points: 52330, totalBet: 7400, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, vip: !0, previousRank: 10, winRate: 51, gamesPlayed: 119 }, { username: "soyuz3", rank: 8, points: 46751, totalBet: 6600, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, previousRank: 7, winRate: 49, gamesPlayed: 113 }, { username: "NovaBet", rank: 9, points: 42248, totalBet: 5800, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, previousRank: 9, winRate: 47, gamesPlayed: 106 }, { username: "tundra_rex", rank: 10, points: 38536, totalBet: 5e3, prize: { uuid: "prize-5", label: { values: [{ value: "Free Spins ×25", language: "en" }], labelType: "ON_DEMAND", enValue: "Free Spins ×25" }, value: 250, currency: "USD", rankFrom: 5, rankTo: 10 }, splitCount: 1, you: !1, previousRank: 8, winRate: 44, gamesPlayed: 98 }], currentUser: { username: "deep_cut", rank: 17, points: 28460, totalBet: 3200, prize: { uuid: "prize-6", label: { values: [{ value: "Mystery Bonus Drop", language: "en" }], labelType: "ON_DEMAND", enValue: "Mystery Bonus Drop" }, value: 100, currency: "USD", rankFrom: 11, rankTo: 200 }, splitCount: 1, you: !0, previousRank: 20, winRate: 48, gamesPlayed: 31 }, ctaLabel: "Enter the Thing" }, footer: { text: "Unused powered by oddsmith.io" }, legals: { links: [{ type: "internal", label: "Rules" }, { type: "internal", label: "FAQ" }, { type: "external", label: "Terms & Conditions", href: "https://www.google.com" }] } } }, a = {
|
|
2
2
|
golden: e
|
|
3
3
|
};
|
|
4
4
|
export {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Default copy for the casino leaderboard. */
|
|
2
|
+
export declare const DEFAULT_PRIZE_TITLE = "Prize Pool";
|
|
3
|
+
export declare const DEFAULT_CTA_LABEL = "Enter the Leaderboard";
|
|
4
|
+
export declare const DEFAULT_CTA_LABEL_FINISHED = "View Final Standings";
|
|
5
|
+
export declare const DEFAULT_SEARCH_PLACEHOLDER = "Search players\u2026";
|
|
6
|
+
export declare const DEFAULT_TABLE_TITLE = "Top Players";
|
|
7
|
+
export declare const DEFAULT_LIVE_FEED_TITLE = "Live Activity";
|
|
8
|
+
export declare const DEFAULT_EVENTS_ROTATE_MS = 4500;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Root custom element for the package. */
|
|
2
|
+
export declare const OS_LEADERBOARD_CASINO_TAG = "os-leaderboard-casino";
|
|
3
|
+
/** Section custom elements. */
|
|
4
|
+
export declare const OS_LEADERBOARD_CASINO_HEADER = "os-leaderboard-casino-header";
|
|
5
|
+
export declare const OS_LEADERBOARD_CASINO_EVENTS = "os-leaderboard-casino-events";
|
|
6
|
+
export declare const OS_LEADERBOARD_CASINO_HERO = "os-leaderboard-casino-hero";
|
|
7
|
+
export declare const OS_LEADERBOARD_CASINO_PRIZE = "os-leaderboard-casino-prize";
|
|
8
|
+
export declare const OS_LEADERBOARD_CASINO_STATS = "os-leaderboard-casino-stats";
|
|
9
|
+
export declare const OS_LEADERBOARD_CASINO_LIVE_FEED = "os-leaderboard-casino-live-feed";
|
|
10
|
+
export declare const OS_LEADERBOARD_CASINO_TABLE = "os-leaderboard-casino-table";
|
|
11
|
+
export declare const OS_LEADERBOARD_CASINO_FOOTER = "os-leaderboard-casino-footer";
|
|
12
|
+
export declare const OS_LEADERBOARD_CASINO_MARQUEE = "os-leaderboard-casino-marquee";
|
|
13
|
+
export declare const OS_LEADERBOARD_CASINO_CLIMB = "os-leaderboard-casino-climb";
|
|
14
|
+
export declare const OS_LEADERBOARD_CASINO_GAMES = "os-leaderboard-casino-games";
|
|
15
|
+
export declare const OS_LEADERBOARD_CASINO_MEDAL_COIN = "os-leaderboard-casino-medal-coin";
|
|
16
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_GAUGE = "os-leaderboard-casino-stat-gauge";
|
|
17
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_CARD = "os-leaderboard-casino-stat-card";
|
|
18
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_RAIL = "os-leaderboard-casino-stat-rail";
|
|
19
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_BAND = "os-leaderboard-casino-stat-band";
|
|
20
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_CHIP = "os-leaderboard-casino-stat-chip";
|
|
21
|
+
export declare const OS_LEADERBOARD_CASINO_STAT_METER = "os-leaderboard-casino-stat-meter";
|
|
22
|
+
export declare const OS_LEADERBOARD_CASINO_LEGALS = "os-leaderboard-casino-legals";
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
const o = "os-leaderboard-casino", A = "os-leaderboard-casino-events", a = "os-leaderboard-casino-hero", s = "os-leaderboard-casino-prize", O = "os-leaderboard-casino-stats",
|
|
1
|
+
const o = "os-leaderboard-casino", A = "os-leaderboard-casino-events", a = "os-leaderboard-casino-hero", s = "os-leaderboard-casino-prize", O = "os-leaderboard-casino-stats", _ = "os-leaderboard-casino-table", e = "os-leaderboard-casino-footer", E = "os-leaderboard-casino-marquee", r = "os-leaderboard-casino-climb", S = "os-leaderboard-casino-games", R = "os-leaderboard-casino-medal-coin", c = "os-leaderboard-casino-stat-rail", n = "os-leaderboard-casino-legals";
|
|
2
2
|
export {
|
|
3
3
|
r as OS_LEADERBOARD_CASINO_CLIMB,
|
|
4
4
|
A as OS_LEADERBOARD_CASINO_EVENTS,
|
|
5
|
-
|
|
5
|
+
e as OS_LEADERBOARD_CASINO_FOOTER,
|
|
6
6
|
S as OS_LEADERBOARD_CASINO_GAMES,
|
|
7
7
|
a as OS_LEADERBOARD_CASINO_HERO,
|
|
8
|
-
|
|
8
|
+
n as OS_LEADERBOARD_CASINO_LEGALS,
|
|
9
9
|
E as OS_LEADERBOARD_CASINO_MARQUEE,
|
|
10
|
+
R as OS_LEADERBOARD_CASINO_MEDAL_COIN,
|
|
10
11
|
s as OS_LEADERBOARD_CASINO_PRIZE,
|
|
11
12
|
O as OS_LEADERBOARD_CASINO_STATS,
|
|
12
|
-
|
|
13
|
+
c as OS_LEADERBOARD_CASINO_STAT_RAIL,
|
|
14
|
+
_ as OS_LEADERBOARD_CASINO_TABLE,
|
|
13
15
|
o as OS_LEADERBOARD_CASINO_TAG
|
|
14
16
|
};
|
|
15
17
|
//# sourceMappingURL=tags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.js","sources":["../../../../src/components/os-leaderboard-casino/constants/tags.ts"],"sourcesContent":["/** Root custom element for the package. */\nexport const OS_LEADERBOARD_CASINO_TAG = 'os-leaderboard-casino';\n\n/** Section custom elements. */\nexport const OS_LEADERBOARD_CASINO_HEADER =\n 'os-leaderboard-casino-header';\nexport const OS_LEADERBOARD_CASINO_EVENTS =\n 'os-leaderboard-casino-events';\nexport const OS_LEADERBOARD_CASINO_HERO = 'os-leaderboard-casino-hero';\nexport const OS_LEADERBOARD_CASINO_PRIZE = 'os-leaderboard-casino-prize';\nexport const OS_LEADERBOARD_CASINO_STATS = 'os-leaderboard-casino-stats';\nexport const OS_LEADERBOARD_CASINO_LIVE_FEED =\n 'os-leaderboard-casino-live-feed';\nexport const OS_LEADERBOARD_CASINO_TABLE =\n 'os-leaderboard-casino-table';\nexport const OS_LEADERBOARD_CASINO_FOOTER =\n 'os-leaderboard-casino-footer';\nexport const OS_LEADERBOARD_CASINO_MARQUEE =\n 'os-leaderboard-casino-marquee';\nexport const OS_LEADERBOARD_CASINO_CLIMB = 'os-leaderboard-casino-climb';\nexport const OS_LEADERBOARD_CASINO_GAMES = 'os-leaderboard-casino-games';\nexport const OS_LEADERBOARD_CASINO_MEDAL_COIN =\n 'os-leaderboard-casino-medal-coin';\nexport const OS_LEADERBOARD_CASINO_STAT_GAUGE =\n 'os-leaderboard-casino-stat-gauge';\nexport const OS_LEADERBOARD_CASINO_STAT_CARD =\n 'os-leaderboard-casino-stat-card';\nexport const OS_LEADERBOARD_CASINO_STAT_RAIL =\n 'os-leaderboard-casino-stat-rail';\nexport const OS_LEADERBOARD_CASINO_STAT_BAND =\n 'os-leaderboard-casino-stat-band';\nexport const OS_LEADERBOARD_CASINO_STAT_CHIP =\n 'os-leaderboard-casino-stat-chip';\nexport const OS_LEADERBOARD_CASINO_STAT_METER =\n 'os-leaderboard-casino-stat-meter';\nexport const OS_LEADERBOARD_CASINO_LEGALS =\n 'os-leaderboard-casino-legals';\n"],"names":["OS_LEADERBOARD_CASINO_TAG","OS_LEADERBOARD_CASINO_EVENTS","OS_LEADERBOARD_CASINO_HERO","OS_LEADERBOARD_CASINO_PRIZE","OS_LEADERBOARD_CASINO_STATS","OS_LEADERBOARD_CASINO_TABLE","OS_LEADERBOARD_CASINO_FOOTER","OS_LEADERBOARD_CASINO_MARQUEE","OS_LEADERBOARD_CASINO_CLIMB","OS_LEADERBOARD_CASINO_GAMES","OS_LEADERBOARD_CASINO_LEGALS"],"mappings":"AACO,MAAMA,IAA4B,yBAK5BC,IACX,gCACWC,IAA6B,8BAC7BC,IAA8B,+BAC9BC,IAA8B,+BAG9BC,IACX,+BACWC,IACX,gCACWC,IACX,iCACWC,IAA8B,+BAC9BC,IAA8B,+
|
|
1
|
+
{"version":3,"file":"tags.js","sources":["../../../../src/components/os-leaderboard-casino/constants/tags.ts"],"sourcesContent":["/** Root custom element for the package. */\nexport const OS_LEADERBOARD_CASINO_TAG = 'os-leaderboard-casino';\n\n/** Section custom elements. */\nexport const OS_LEADERBOARD_CASINO_HEADER =\n 'os-leaderboard-casino-header';\nexport const OS_LEADERBOARD_CASINO_EVENTS =\n 'os-leaderboard-casino-events';\nexport const OS_LEADERBOARD_CASINO_HERO = 'os-leaderboard-casino-hero';\nexport const OS_LEADERBOARD_CASINO_PRIZE = 'os-leaderboard-casino-prize';\nexport const OS_LEADERBOARD_CASINO_STATS = 'os-leaderboard-casino-stats';\nexport const OS_LEADERBOARD_CASINO_LIVE_FEED =\n 'os-leaderboard-casino-live-feed';\nexport const OS_LEADERBOARD_CASINO_TABLE =\n 'os-leaderboard-casino-table';\nexport const OS_LEADERBOARD_CASINO_FOOTER =\n 'os-leaderboard-casino-footer';\nexport const OS_LEADERBOARD_CASINO_MARQUEE =\n 'os-leaderboard-casino-marquee';\nexport const OS_LEADERBOARD_CASINO_CLIMB = 'os-leaderboard-casino-climb';\nexport const OS_LEADERBOARD_CASINO_GAMES = 'os-leaderboard-casino-games';\nexport const OS_LEADERBOARD_CASINO_MEDAL_COIN =\n 'os-leaderboard-casino-medal-coin';\nexport const OS_LEADERBOARD_CASINO_STAT_GAUGE =\n 'os-leaderboard-casino-stat-gauge';\nexport const OS_LEADERBOARD_CASINO_STAT_CARD =\n 'os-leaderboard-casino-stat-card';\nexport const OS_LEADERBOARD_CASINO_STAT_RAIL =\n 'os-leaderboard-casino-stat-rail';\nexport const OS_LEADERBOARD_CASINO_STAT_BAND =\n 'os-leaderboard-casino-stat-band';\nexport const OS_LEADERBOARD_CASINO_STAT_CHIP =\n 'os-leaderboard-casino-stat-chip';\nexport const OS_LEADERBOARD_CASINO_STAT_METER =\n 'os-leaderboard-casino-stat-meter';\nexport const OS_LEADERBOARD_CASINO_LEGALS =\n 'os-leaderboard-casino-legals';\n"],"names":["OS_LEADERBOARD_CASINO_TAG","OS_LEADERBOARD_CASINO_EVENTS","OS_LEADERBOARD_CASINO_HERO","OS_LEADERBOARD_CASINO_PRIZE","OS_LEADERBOARD_CASINO_STATS","OS_LEADERBOARD_CASINO_TABLE","OS_LEADERBOARD_CASINO_FOOTER","OS_LEADERBOARD_CASINO_MARQUEE","OS_LEADERBOARD_CASINO_CLIMB","OS_LEADERBOARD_CASINO_GAMES","OS_LEADERBOARD_CASINO_MEDAL_COIN","OS_LEADERBOARD_CASINO_STAT_RAIL","OS_LEADERBOARD_CASINO_LEGALS"],"mappings":"AACO,MAAMA,IAA4B,yBAK5BC,IACX,gCACWC,IAA6B,8BAC7BC,IAA8B,+BAC9BC,IAA8B,+BAG9BC,IACX,+BACWC,IACX,gCACWC,IACX,iCACWC,IAA8B,+BAC9BC,IAA8B,+BAC9BC,IACX,oCAKWC,IACX,mCAOWC,IACX;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement, nothing, PropertyValues } from 'lit';
|
|
2
|
+
import { OsLeaderboardCasinoState } from '../types/state.js';
|
|
3
|
+
import { OsLeaderboardCasinoLayout } from '../types/sections.js';
|
|
4
|
+
import { LeaderboardCasinoAssetsBundle } from '../types/assets.js';
|
|
5
|
+
import { LeaderboardCasinoInput } from '../types/input.js';
|
|
6
|
+
import { OsLeaderboardCasinoHost } from './os-leaderboard-casino.host.js';
|
|
7
|
+
/**
|
|
8
|
+
* Config-driven casino leaderboard.
|
|
9
|
+
* Parent provides static JSON via `.assets` or `assets-base-url`.
|
|
10
|
+
* Bundled `assets/fallback/*.json` is used when parent files fail to load.
|
|
11
|
+
*/
|
|
12
|
+
export declare class OsLeaderboardCasino extends LitElement implements OsLeaderboardCasinoHost {
|
|
13
|
+
static styles: import('lit').CSSResult[];
|
|
14
|
+
assets: LeaderboardCasinoAssetsBundle | null;
|
|
15
|
+
assetsBaseUrl: string;
|
|
16
|
+
input: LeaderboardCasinoInput | null;
|
|
17
|
+
state: OsLeaderboardCasinoState;
|
|
18
|
+
uuid: string;
|
|
19
|
+
finished: boolean;
|
|
20
|
+
private assetsLoadTask;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
get layout(): OsLeaderboardCasinoLayout;
|
|
23
|
+
get mainOrder(): string[];
|
|
24
|
+
private ensureAssetsLoaded;
|
|
25
|
+
private applyInputToState;
|
|
26
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
27
|
+
private renderMainSection;
|
|
28
|
+
renderMarquee(): typeof nothing | import('lit').TemplateResult<1>;
|
|
29
|
+
renderEventsBanner(): typeof nothing | import('lit').TemplateResult<1>;
|
|
30
|
+
renderHero(): typeof nothing | import('lit').TemplateResult<1>;
|
|
31
|
+
renderMainSections(): import('lit').TemplateResult<1>;
|
|
32
|
+
renderFooter(): typeof nothing | import('lit').TemplateResult<1>;
|
|
33
|
+
renderLegals(): typeof nothing | import('lit').TemplateResult<1>;
|
|
34
|
+
protected render(): import('lit').TemplateResult;
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitTemplate } from '../../../shared/lib/lit/template.js';
|
|
2
|
+
/** Host API required by `os-leaderboard-casino.html`. */
|
|
3
|
+
export interface OsLeaderboardCasinoHost {
|
|
4
|
+
readonly uuid: string;
|
|
5
|
+
readonly finished: boolean;
|
|
6
|
+
readonly mainOrder: string[];
|
|
7
|
+
renderMarquee(): LitTemplate;
|
|
8
|
+
renderEventsBanner(): LitTemplate;
|
|
9
|
+
renderHero(): LitTemplate;
|
|
10
|
+
renderMainSections(): LitTemplate;
|
|
11
|
+
renderFooter(): LitTemplate;
|
|
12
|
+
renderLegals(): LitTemplate;
|
|
13
|
+
}
|
|
@@ -4,8 +4,9 @@ import { Component as m } from "../../../shared/lib/lit/component.js";
|
|
|
4
4
|
import { scss as b } from "../../../shared/lib/lit/scss.js";
|
|
5
5
|
import { OS_LEADERBOARD_CASINO_TAG as f } from "../constants/tags.js";
|
|
6
6
|
import { osLeaderboardCasinoTheme as y } from "../theme/styles.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { iconService as L } from "../services/icon.service.js";
|
|
8
|
+
import { EMPTY_OS_LEADERBOARD_CASINO_STATE as v } from "../types/state.js";
|
|
9
|
+
import { adapterService as c } from "../services/adapter.service.js";
|
|
9
10
|
import { resolveLeaderboardCasinoInput as S } from "../integration/resolve-input.js";
|
|
10
11
|
import { loadLeaderboardCasinoAssets as g } from "../integration/load-assets.js";
|
|
11
12
|
import O from "./os-leaderboard-casino.html.js";
|
|
@@ -20,7 +21,6 @@ import "../sections/climb-section/climb-section.js";
|
|
|
20
21
|
import "../sections/table-section/table-section.js";
|
|
21
22
|
import "../sections/footer-section/footer-section.js";
|
|
22
23
|
import "../sections/legals-section/legals-section.js";
|
|
23
|
-
import { adapterService as c } from "../services/adapter.service.js";
|
|
24
24
|
var _ = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, n = (s, o, l, i) => {
|
|
25
25
|
for (var r = i > 1 ? void 0 : i ? $(o, l) : o, d = s.length - 1, u; d >= 0; d--)
|
|
26
26
|
(u = s[d]) && (r = (i ? u(o, l, r) : u(r)) || r);
|
|
@@ -28,10 +28,10 @@ var _ = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, n = (s, o, l
|
|
|
28
28
|
};
|
|
29
29
|
let a = class extends h {
|
|
30
30
|
constructor() {
|
|
31
|
-
super(...arguments), this.assets = null, this.assetsBaseUrl = "", this.input = null, this.state =
|
|
31
|
+
super(...arguments), this.assets = null, this.assetsBaseUrl = "", this.input = null, this.state = v, this.uuid = "", this.finished = !1, this.assetsLoadTask = null;
|
|
32
32
|
}
|
|
33
33
|
connectedCallback() {
|
|
34
|
-
super.connectedCallback(),
|
|
34
|
+
super.connectedCallback(), L.load(), this.ensureAssetsLoaded();
|
|
35
35
|
}
|
|
36
36
|
get layout() {
|
|
37
37
|
return c.toLayout(this.state);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Casino leaderboard — config-driven glam layout.
|
|
3
|
+
*
|
|
4
|
+
* Parent app ships producer JSON under `/assets/...` and passes it to the element:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import '@oddsmith/ui/os-leaderboard-casino';
|
|
8
|
+
* import {
|
|
9
|
+
* applyLeaderboardCasinoInput,
|
|
10
|
+
* loadLeaderboardCasinoAssets,
|
|
11
|
+
* LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE,
|
|
12
|
+
* } from '@oddsmith/ui/os-leaderboard-casino';
|
|
13
|
+
*
|
|
14
|
+
* const board = document.querySelector('os-leaderboard-casino')!;
|
|
15
|
+
* const assets = await loadLeaderboardCasinoAssets(LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE);
|
|
16
|
+
*
|
|
17
|
+
* applyLeaderboardCasinoInput(board, {
|
|
18
|
+
* branding: { themeId: 'glam-emerald', labels: { cta: 'Play now' } },
|
|
19
|
+
* campaign: { title: 'Midnight Millions', endAt: api.endsAt },
|
|
20
|
+
* players: api.leaderboard,
|
|
21
|
+
* }, assets);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Or set `assets-base-url="/assets/producer_output/os-leaderboard-casino/free"` on the element.
|
|
25
|
+
* Without parent assets, the bundled `assets/fallback/fallback.json` is used.
|
|
26
|
+
*/
|
|
27
|
+
export type { LeaderboardCasinoAssetsBundle, LeaderboardCasinoAssetsInput, LeaderboardCasinoAssetsPreset, LeaderboardCasinoAssetsTheme, } from './types/assets.js';
|
|
28
|
+
export type { LeaderboardCasinoBranding, LeaderboardCasinoCampaign, LeaderboardCasinoInput, LeaderboardCasinoLabels, LeaderboardCasinoPlayer, LeaderboardCasinoPresetId, LeaderboardCasinoPresetMeta, } from './types/input.js';
|
|
29
|
+
export type { OsLeaderboardCasinoAppearance, OsLeaderboardCasinoConfig, OsLeaderboardCasinoHeroSection, OsLeaderboardCasinoLabels, OsLeaderboardCasinoMainSectionId, OsLeaderboardCasinoPrizeSection, OsLeaderboardCasinoSectionData, OsLeaderboardCasinoSectionId, OsLeaderboardCasinoSectionPatch, OsLeaderboardCasinoState, OsLeaderboardCasinoTableSection, } from './types/state.js';
|
|
30
|
+
export { EMPTY_OS_LEADERBOARD_CASINO_STATE } from './types/state.js';
|
|
31
|
+
export * from './types/events.js';
|
|
32
|
+
export { OS_LEADERBOARD_CASINO_TAG } from './constants/index.js';
|
|
33
|
+
export { AdapterService, adapterService, IconService, iconService } from './services/index.js';
|
|
34
|
+
export type { GameIconName, IconHandle, IconName, IconRenderOptions, PrizeIconName, StatIconName, WinIconName, } from './services/index.js';
|
|
35
|
+
export { LEADERBOARD_CASINO_PRESET_CATALOG, LEADERBOARD_CASINO_ASSET_FILES, LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE, applyLeaderboardCasinoInput, resolveLeaderboardCasinoInput, loadLeaderboardCasinoAssets, assembleAssetsBundle, getFallbackAssetsBundle, resolveAssetsBundle, DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID, OS_LEADERBOARD_CASINO_PRESETS, OS_LEADERBOARD_CASINO_LABELS, OS_LEADERBOARD_CASINO_THEMES, getOsLeaderboardCasinoPreset, getTheme, type LeaderboardCasinoHost, type OsLeaderboardCasinoPreset, type OsLeaderboardCasinoThemeId, } from './integration/index.js';
|
|
36
|
+
export { OsLeaderboardCasino } from './container/os-leaderboard-casino.js';
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { EMPTY_OS_LEADERBOARD_CASINO_STATE as E } from "./types/state.js";
|
|
2
2
|
import { OS_LEADERBOARD_CASINO_OPEN as S, OS_LEADERBOARD_CASINO_PRIZE_CLICK as O, OS_LEADERBOARD_CASINO_REFRESH as r, OS_LEADERBOARD_CASINO_SEARCH_CHANGE as o } from "./types/events.js";
|
|
3
|
-
import {
|
|
3
|
+
import { OS_LEADERBOARD_CASINO_TAG as D } from "./constants/tags.js";
|
|
4
4
|
import { AdapterService as s, adapterService as a } from "./services/adapter.service.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { IconService as t, iconService as I } from "./services/icon.service.js";
|
|
6
|
+
import { applyLeaderboardCasinoInput as d, resolveLeaderboardCasinoInput as p } from "./integration/resolve-input.js";
|
|
7
|
+
import { DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID as T, LEADERBOARD_CASINO_PRESET_CATALOG as m, OS_LEADERBOARD_CASINO_LABELS as n, OS_LEADERBOARD_CASINO_PRESETS as f, OS_LEADERBOARD_CASINO_THEMES as i, getFallbackAssetsBundle as l, getOsLeaderboardCasinoPreset as x, getTheme as b, resolveAssetsBundle as c } from "./integration/assets-context.js";
|
|
8
8
|
import { LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE as v, loadLeaderboardCasinoAssets as u } from "./integration/load-assets.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { OsLeaderboardCasino as H } from "./container/os-leaderboard-casino.js";
|
|
10
|
+
import { LEADERBOARD_CASINO_ASSET_FILES as G, assembleAssetsBundle as M } from "./integration/assemble-assets.js";
|
|
11
11
|
export {
|
|
12
12
|
s as AdapterService,
|
|
13
|
-
|
|
13
|
+
T as DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID,
|
|
14
14
|
E as EMPTY_OS_LEADERBOARD_CASINO_STATE,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
t as IconService,
|
|
16
|
+
G as LEADERBOARD_CASINO_ASSET_FILES,
|
|
17
17
|
v as LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
m as LEADERBOARD_CASINO_PRESET_CATALOG,
|
|
19
|
+
n as OS_LEADERBOARD_CASINO_LABELS,
|
|
20
20
|
S as OS_LEADERBOARD_CASINO_OPEN,
|
|
21
|
-
|
|
21
|
+
f as OS_LEADERBOARD_CASINO_PRESETS,
|
|
22
22
|
O as OS_LEADERBOARD_CASINO_PRIZE_CLICK,
|
|
23
23
|
r as OS_LEADERBOARD_CASINO_REFRESH,
|
|
24
24
|
o as OS_LEADERBOARD_CASINO_SEARCH_CHANGE,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
D as OS_LEADERBOARD_CASINO_TAG,
|
|
26
|
+
i as OS_LEADERBOARD_CASINO_THEMES,
|
|
27
|
+
H as OsLeaderboardCasino,
|
|
28
28
|
a as adapterService,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
d as applyLeaderboardCasinoInput,
|
|
30
|
+
M as assembleAssetsBundle,
|
|
31
|
+
l as getFallbackAssetsBundle,
|
|
32
|
+
x as getOsLeaderboardCasinoPreset,
|
|
33
|
+
b as getTheme,
|
|
34
|
+
I as iconService,
|
|
35
35
|
u as loadLeaderboardCasinoAssets,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
c as resolveAssetsBundle,
|
|
37
|
+
p as resolveLeaderboardCasinoInput
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LeaderboardCasinoAssetsBundle, LeaderboardCasinoAssetsTheme } from '../types/assets.js';
|
|
2
|
+
import { LeaderboardCasinoLabels, LeaderboardCasinoPresetMeta } from '../types/input.js';
|
|
3
|
+
import { OsLeaderboardCasinoState } from '../types/state.js';
|
|
4
|
+
export type AssembledAssetsParts = {
|
|
5
|
+
labels: LeaderboardCasinoLabels;
|
|
6
|
+
themes: readonly LeaderboardCasinoAssetsTheme[];
|
|
7
|
+
presets: LeaderboardCasinoAssetsBundle['presets'];
|
|
8
|
+
catalog: readonly LeaderboardCasinoPresetMeta[];
|
|
9
|
+
resolvedPresets: Record<string, OsLeaderboardCasinoState>;
|
|
10
|
+
};
|
|
11
|
+
export declare function assembleAssetsBundle(parts: AssembledAssetsParts): LeaderboardCasinoAssetsBundle;
|
|
12
|
+
/** Relative paths loaded from a free-tier assets directory. */
|
|
13
|
+
export declare const LEADERBOARD_CASINO_ASSET_FILES: {
|
|
14
|
+
readonly labels: "labels.json";
|
|
15
|
+
readonly themes: "themes.json";
|
|
16
|
+
readonly presets: "presets.json";
|
|
17
|
+
readonly catalog: "catalog.json";
|
|
18
|
+
readonly resolvedPresets: "resolved-presets.json";
|
|
19
|
+
};
|
|
20
|
+
export declare function fetchJson<T>(url: string): Promise<T>;
|
|
21
|
+
export declare function loadAssetsFromBaseUrl(baseUrl: string): Promise<LeaderboardCasinoAssetsBundle>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LeaderboardCasinoAssetsBundle, LeaderboardCasinoAssetsPreset, LeaderboardCasinoAssetsTheme } from '../types/assets.js';
|
|
2
|
+
import { LeaderboardCasinoPresetId, LeaderboardCasinoPresetMeta } from '../types/input.js';
|
|
3
|
+
import { OsLeaderboardCasinoState } from '../types/state.js';
|
|
4
|
+
export type OsLeaderboardCasinoPresetLabels = LeaderboardCasinoAssetsBundle['labels'];
|
|
5
|
+
export type OsLeaderboardCasinoThemeId = string;
|
|
6
|
+
export type OsLeaderboardCasinoThemeOption = LeaderboardCasinoAssetsTheme;
|
|
7
|
+
export type OsLeaderboardCasinoPreset = LeaderboardCasinoAssetsPreset;
|
|
8
|
+
export declare function resolveAssetsBundle(assets?: LeaderboardCasinoAssetsBundle | null): LeaderboardCasinoAssetsBundle;
|
|
9
|
+
export declare function getFallbackAssetsBundle(): LeaderboardCasinoAssetsBundle;
|
|
10
|
+
export declare function getBundleLabels(bundle: LeaderboardCasinoAssetsBundle): OsLeaderboardCasinoPresetLabels;
|
|
11
|
+
export declare function getBundleCatalog(bundle: LeaderboardCasinoAssetsBundle): readonly LeaderboardCasinoPresetMeta[];
|
|
12
|
+
export declare function getBundlePresets(bundle: LeaderboardCasinoAssetsBundle): readonly OsLeaderboardCasinoPreset[];
|
|
13
|
+
export declare function getBundleDefaultPresetId(bundle: LeaderboardCasinoAssetsBundle): LeaderboardCasinoPresetId;
|
|
14
|
+
export declare function getBundleThemes(bundle: LeaderboardCasinoAssetsBundle): readonly OsLeaderboardCasinoThemeOption[];
|
|
15
|
+
export declare function getOsLeaderboardCasinoPreset(id: string, bundle?: LeaderboardCasinoAssetsBundle): OsLeaderboardCasinoPreset | undefined;
|
|
16
|
+
export declare function getTheme(id: OsLeaderboardCasinoThemeId, bundle?: LeaderboardCasinoAssetsBundle): OsLeaderboardCasinoThemeOption;
|
|
17
|
+
export declare function getThemeVars(id: OsLeaderboardCasinoThemeId, bundle?: LeaderboardCasinoAssetsBundle): Record<string, string>;
|
|
18
|
+
export declare function resolvePresetState(presetId: string, bundle?: LeaderboardCasinoAssetsBundle): OsLeaderboardCasinoState;
|
|
19
|
+
/** Bundled fallback exports for dev tooling. */
|
|
20
|
+
export declare const OS_LEADERBOARD_CASINO_LABELS: import('..').LeaderboardCasinoLabels;
|
|
21
|
+
export declare const OS_LEADERBOARD_CASINO_THEMES: readonly LeaderboardCasinoAssetsTheme[];
|
|
22
|
+
export declare const OS_LEADERBOARD_CASINO_PRESETS: readonly LeaderboardCasinoAssetsPreset[];
|
|
23
|
+
export declare const DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID: "golden";
|
|
24
|
+
export declare const LEADERBOARD_CASINO_PRESET_CATALOG: readonly LeaderboardCasinoPresetMeta[];
|
|
25
|
+
export declare const playgroundThemes: readonly LeaderboardCasinoAssetsTheme[];
|
|
26
|
+
export declare function getPlaygroundTheme(id: string, bundle?: LeaderboardCasinoAssetsBundle): OsLeaderboardCasinoThemeOption;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QuizLeaderboard, UserRank } from '../types/data.js';
|
|
2
|
+
import { OsLeaderboardCasinoClimbSection, OsLeaderboardCasinoEventItem, OsLeaderboardCasinoFeedItem, OsLeaderboardCasinoGameItem, OsLeaderboardCasinoMarqueeItem } from '../types/sections.js';
|
|
3
|
+
export declare const mockLeaderboard: QuizLeaderboard;
|
|
4
|
+
export declare const mockPrizePoolValue = 128450;
|
|
5
|
+
export declare const mockBiggestWin = 9600;
|
|
6
|
+
export declare const mockTotalParticipants = 12842;
|
|
7
|
+
export declare const mockUsers: UserRank[];
|
|
8
|
+
export declare const mockCurrentUser: UserRank;
|
|
9
|
+
export declare const mockMarqueeItems: OsLeaderboardCasinoMarqueeItem[];
|
|
10
|
+
export declare const mockEvents: OsLeaderboardCasinoEventItem[];
|
|
11
|
+
export declare const mockGames: OsLeaderboardCasinoGameItem[];
|
|
12
|
+
export declare const mockClimb: OsLeaderboardCasinoClimbSection;
|
|
13
|
+
export declare const mockFeedItems: OsLeaderboardCasinoFeedItem[];
|
|
14
|
+
export declare const FEED_TICKER_POOL: Omit<OsLeaderboardCasinoFeedItem, 'id' | 'timestamp'>[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { mockClimb, mockCurrentUser, mockEvents, mockFeedItems, mockGames, mockLeaderboard, mockMarqueeItems, mockPrizePoolValue as glamPrizePoolValue, mockTotalParticipants, mockUsers, FEED_TICKER_POOL, } from './defaults-glam.js';
|
|
2
|
+
export { BOOST_GAMES, demoCountdownEndTs, mockClimb as newMoneyClimb, mockEvents as newMoneyEvents, mockFeedItems as newMoneyFeedItems, mockMarqueeItems as newMoneyMarqueeItems, mockPlayers, mockPrizePoolValue as newMoneyPrizePoolValue, mockPrizeTiers, mockTotalParticipants as newMoneyTotalParticipants, } from './defaults-new-money-data.js';
|
|
3
|
+
export { labelText } from '../types/data.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { LEADERBOARD_CASINO_PRESET_CATALOG, applyLeaderboardCasinoInput, resolveLeaderboardCasinoInput, type LeaderboardCasinoHost, } from './resolve-input.js';
|
|
2
|
+
export { DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID, OS_LEADERBOARD_CASINO_PRESETS, getOsLeaderboardCasinoPreset, resolvePresetState, type OsLeaderboardCasinoPreset, } from './presets.js';
|
|
3
|
+
export { OS_LEADERBOARD_CASINO_LABELS, getFallbackAssetsBundle, getBundleCatalog, getBundleDefaultPresetId, getBundleLabels, getBundlePresets, getBundleThemes, resolveAssetsBundle, type OsLeaderboardCasinoPresetLabels, } from './assets-context.js';
|
|
4
|
+
export { getPlaygroundTheme, getTheme, getThemeVars, OS_LEADERBOARD_CASINO_THEMES, playgroundThemes, type OsLeaderboardCasinoThemeId, } from './themes.js';
|
|
5
|
+
export { assembleAssetsBundle, LEADERBOARD_CASINO_ASSET_FILES, loadAssetsFromBaseUrl, loadLeaderboardCasinoAssets, LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE, } from './load-assets.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OS_LEADERBOARD_CASINO_LABELS, type OsLeaderboardCasinoPresetLabels, } from './assets-context.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeaderboardCasinoAssetsBundle } from '../types/assets.js';
|
|
2
|
+
export { assembleAssetsBundle, LEADERBOARD_CASINO_ASSET_FILES, loadAssetsFromBaseUrl, } from './assemble-assets.js';
|
|
3
|
+
/** Default path under parent app static `assets/`. */
|
|
4
|
+
export declare const LEADERBOARD_CASINO_DEFAULT_ASSETS_BASE = "/assets/producer_output/os-leaderboard-casino/free";
|
|
5
|
+
/**
|
|
6
|
+
* Load free-tier JSON from the parent app. Falls back to bundled
|
|
7
|
+
* `assets/fallback/*.json` when remote files fail.
|
|
8
|
+
*/
|
|
9
|
+
export declare function loadLeaderboardCasinoAssets(baseUrl?: string): Promise<LeaderboardCasinoAssetsBundle>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_OS_LEADERBOARD_CASINO_PRESET_ID, getOsLeaderboardCasinoPreset, LEADERBOARD_CASINO_PRESET_CATALOG, OS_LEADERBOARD_CASINO_PRESETS, resolvePresetState, type OsLeaderboardCasinoPreset, } from './assets-context.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LeaderboardCasinoAssetsBundle } from '../types/assets.js';
|
|
2
|
+
import { LeaderboardCasinoInput } from '../types/input.js';
|
|
3
|
+
import { OsLeaderboardCasinoState } from '../types/state.js';
|
|
4
|
+
import { LEADERBOARD_CASINO_PRESET_CATALOG } from './assets-context.js';
|
|
5
|
+
export { LEADERBOARD_CASINO_PRESET_CATALOG };
|
|
6
|
+
/**
|
|
7
|
+
* Resolve integration input into render state using the provided assets bundle.
|
|
8
|
+
* Falls back to bundled `assets/fallback/fallback.json` when `assets` is omitted.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveLeaderboardCasinoInput(input: LeaderboardCasinoInput, assets?: LeaderboardCasinoAssetsBundle | null): OsLeaderboardCasinoState;
|
|
11
|
+
export type LeaderboardCasinoHost = HTMLElement & {
|
|
12
|
+
state: OsLeaderboardCasinoState;
|
|
13
|
+
uuid?: string;
|
|
14
|
+
finished?: boolean;
|
|
15
|
+
input?: LeaderboardCasinoInput | null;
|
|
16
|
+
assets?: LeaderboardCasinoAssetsBundle | null;
|
|
17
|
+
assetsBaseUrl?: string;
|
|
18
|
+
};
|
|
19
|
+
/** Apply input (+ optional assets bundle) to a mounted element. */
|
|
20
|
+
export declare function applyLeaderboardCasinoInput(host: LeaderboardCasinoHost, input: LeaderboardCasinoInput, assets?: LeaderboardCasinoAssetsBundle | null): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getBundleDefaultPresetId as c, getOsLeaderboardCasinoPreset as a, resolvePresetState as f, getBundleLabels as p, getThemeVars as b,
|
|
1
|
+
import { getBundleDefaultPresetId as c, getOsLeaderboardCasinoPreset as a, resolvePresetState as f, getBundleLabels as p, getThemeVars as b, getTheme as P, resolveAssetsBundle as h } from "./assets-context.js";
|
|
2
2
|
import { LEADERBOARD_CASINO_PRESET_CATALOG as L } from "./assets-context.js";
|
|
3
3
|
function g(e, n, r, s) {
|
|
4
4
|
const t = e.branding?.themeId;
|
|
5
|
-
return !t ||
|
|
5
|
+
return !t || P(t, s).appearance !== n ? r : t;
|
|
6
6
|
}
|
|
7
7
|
function l(e) {
|
|
8
8
|
return {
|
|
@@ -68,7 +68,7 @@ function C(e, n) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
function v(e, n) {
|
|
71
|
-
const r =
|
|
71
|
+
const r = h(n), s = e.preset ?? c(r), t = a(s, r);
|
|
72
72
|
if (!t)
|
|
73
73
|
throw new Error(
|
|
74
74
|
`Unknown leaderboard preset "${s}". Check assets catalog.`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getPlaygroundTheme, getTheme, getThemeVars, OS_LEADERBOARD_CASINO_THEMES, playgroundThemes, type OsLeaderboardCasinoThemeId, type OsLeaderboardCasinoThemeOption, } from './assets-context.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement, nothing, TemplateResult } from 'lit';
|
|
2
|
+
import { OsLeaderboardCasinoClimbSection } from '../../types/sections.js';
|
|
3
|
+
import { ClimbSectionHost } from './climb-section.host.js';
|
|
4
|
+
/** "Your climb" — progress towards the next prize tier with rank trend. */
|
|
5
|
+
export declare class OsLeaderboardCasinoClimb extends LitElement implements ClimbSectionHost {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
section: OsLeaderboardCasinoClimbSection;
|
|
8
|
+
get climbTitle(): string;
|
|
9
|
+
get pointsLabel(): string;
|
|
10
|
+
get trendClass(): string;
|
|
11
|
+
renderTrend(): TemplateResult;
|
|
12
|
+
get pointsToNextLabel(): string;
|
|
13
|
+
get nextTierRank(): number;
|
|
14
|
+
get nextTierLabel(): string;
|
|
15
|
+
renderNextTierPrizeIcon(): TemplateResult;
|
|
16
|
+
get progressPct(): number;
|
|
17
|
+
renderName(): TemplateResult;
|
|
18
|
+
render(): TemplateResult | typeof nothing;
|
|
19
|
+
}
|