@oddsmith/ui 1.0.0 → 1.0.2
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/defaults/glam-sections.json +3 -3
- package/dist/components/os-leaderboard-casino/assets/fallback/manifest.json +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json +6 -4
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js +1 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json +3 -4
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js +3 -4
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js.map +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.html.js +5 -3
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js +12 -10
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js.map +1 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.scss.js +1 -1
- 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/assets-context.js +40 -35
- package/dist/components/os-leaderboard-casino/integration/assets-context.js.map +1 -1
- 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 +31 -27
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js.map +1 -1
- 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 +18 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.host.d.ts +14 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js +7 -5
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js +33 -38
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js.map +1 -1
- 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/components/event-icons.js +7 -5
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.js.map +1 -1
- 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 +26 -22
- 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.html.js +7 -5
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js +11 -8
- 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/games-section/games-section.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js +15 -13
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js.map +1 -1
- 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.html.js +6 -4
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js +6 -2
- 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.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js +10 -5
- 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-section.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js +26 -23
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js.map +1 -1
- 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 +73 -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.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js +18 -15
- 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 +63 -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.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js +20 -16
- 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.html.js +5 -3
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.html.js.map +1 -1
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js +17 -14
- 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/icon.service.js +10 -8
- package/dist/components/os-leaderboard-casino/services/icon.service.js.map +1 -1
- package/dist/components/os-leaderboard-casino/services/index.d.ts +2 -0
- package/dist/components/os-leaderboard-casino/theme/background.d.ts +4 -0
- package/dist/components/os-leaderboard-casino/theme/background.js +22 -0
- package/dist/components/os-leaderboard-casino/theme/background.js.map +1 -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/styles.js +3 -3
- package/dist/components/os-leaderboard-casino/theme/styles.js.map +1 -1
- 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/theme/vip-mark.js +11 -9
- package/dist/components/os-leaderboard-casino/theme/vip-mark.js.map +1 -1
- package/dist/components/os-leaderboard-casino/types/assets.d.ts +42 -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 +79 -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/scss.js +4 -4
- package/dist/shared/lib/lit/template.d.ts +3 -0
- package/dist/shared/vendor/lit-element-lit-element.js +45 -0
- package/dist/shared/vendor/lit-element-lit-element.js.map +1 -0
- package/dist/shared/vendor/lit-html-directive-helpers.js +32 -0
- package/dist/shared/vendor/lit-html-directive-helpers.js.map +1 -0
- package/dist/shared/vendor/lit-html-directive.js +23 -0
- package/dist/shared/vendor/lit-html-directive.js.map +1 -0
- package/dist/shared/vendor/lit-html-keyed.js +18 -0
- package/dist/shared/vendor/lit-html-keyed.js.map +1 -0
- package/dist/shared/vendor/lit-html-lit-html.js +234 -0
- package/dist/shared/vendor/lit-html-lit-html.js.map +1 -0
- package/dist/shared/vendor/lit-html-repeat.js +57 -0
- package/dist/shared/vendor/lit-html-repeat.js.map +1 -0
- package/dist/shared/vendor/lit-html-unsafe-html.js +21 -0
- package/dist/shared/vendor/lit-html-unsafe-html.js.map +1 -0
- package/dist/shared/vendor/lit-html-unsafe-svg.js +10 -0
- package/dist/shared/vendor/lit-html-unsafe-svg.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-base.js +5 -0
- package/dist/shared/vendor/lit-reactive-element-base.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-css-tag.js +46 -0
- package/dist/shared/vendor/lit-reactive-element-css-tag.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-property.js +33 -0
- package/dist/shared/vendor/lit-reactive-element-property.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-query.js +13 -0
- package/dist/shared/vendor/lit-reactive-element-query.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-reactive-element.js +226 -0
- package/dist/shared/vendor/lit-reactive-element-reactive-element.js.map +1 -0
- package/dist/shared/vendor/lit-reactive-element-state.js +8 -0
- package/dist/shared/vendor/lit-reactive-element-state.js.map +1 -0
- package/package.json +5 -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-21T19:25:10.876Z",
|
|
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-24T19:25:10.877Z",
|
|
61
61
|
"status": "active",
|
|
62
62
|
"prizePoolValue": 124500,
|
|
63
63
|
"prizePoolCurrency": "USD"
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
"id": "dice",
|
|
206
|
-
"title": "
|
|
206
|
+
"title": "Crystal Dice",
|
|
207
207
|
"boost": "1.2×"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"themeVars": {
|
|
31
31
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
32
32
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
33
|
-
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace"
|
|
33
|
+
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace",
|
|
34
|
+
"--os-casino-bg": "#181622",
|
|
35
|
+
"--os-casino-bg-2": "#181622"
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
"sections": {
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
"hero": {
|
|
82
84
|
"bannerAsset": {
|
|
83
85
|
"uuid": "banner-1",
|
|
84
|
-
"createdTs": "2026-06-
|
|
86
|
+
"createdTs": "2026-06-21T19:25:10.876Z",
|
|
85
87
|
"name": "midnight-millions-banner",
|
|
86
88
|
"label": "Midnight Millions",
|
|
87
89
|
"comment": "",
|
|
@@ -92,7 +94,7 @@
|
|
|
92
94
|
},
|
|
93
95
|
"title": "Midnight Millions",
|
|
94
96
|
"description": "Climb the board before the timer hits zero.",
|
|
95
|
-
"endTs": "2026-06-
|
|
97
|
+
"endTs": "2026-06-24T19:25:10.877Z",
|
|
96
98
|
"status": "active",
|
|
97
99
|
"prizePoolValue": 124500,
|
|
98
100
|
"prizePoolCurrency": "USD"
|
|
@@ -238,7 +240,7 @@
|
|
|
238
240
|
},
|
|
239
241
|
{
|
|
240
242
|
"id": "dice",
|
|
241
|
-
"title": "
|
|
243
|
+
"title": "Crystal Dice",
|
|
242
244
|
"boost": "1.2×"
|
|
243
245
|
},
|
|
244
246
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { config: { appearance: "glam", themeId: "glam-default", labels: { back: "Return", live: "Live", cta: "Enter the Leaderboard" }, 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-
|
|
1
|
+
const e = { config: { appearance: "glam", themeId: "glam-default", labels: { back: "Return", live: "Live", cta: "Enter the Leaderboard" }, 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", "--os-casino-bg": "#181622", "--os-casino-bg-2": "#181622" } }, 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-21T19:25:10.876Z", 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-24T19:25:10.877Z", 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: "Crystal 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 Leaderboard" }, 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 {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"label": "Noir Gold",
|
|
5
5
|
"description": "Default casino noir — champagne gold on deep noir.",
|
|
6
6
|
"appearance": "glam",
|
|
7
|
+
"background": "#181622",
|
|
7
8
|
"vars": {
|
|
8
9
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
9
10
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
@@ -15,12 +16,11 @@
|
|
|
15
16
|
"label": "Royal Violet",
|
|
16
17
|
"description": "Regal violet and silver over midnight blue.",
|
|
17
18
|
"appearance": "glam",
|
|
19
|
+
"background": "#070a16",
|
|
18
20
|
"vars": {
|
|
19
21
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
20
22
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
21
23
|
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace",
|
|
22
|
-
"--os-casino-bg": "#070a16",
|
|
23
|
-
"--os-casino-bg-2": "#0c1124",
|
|
24
24
|
"--os-casino-surface": "rgba(22, 27, 52, 0.78)",
|
|
25
25
|
"--os-casino-surface-solid": "#161b34",
|
|
26
26
|
"--os-casino-surface-2": "rgba(31, 38, 72, 0.85)",
|
|
@@ -43,12 +43,11 @@
|
|
|
43
43
|
"label": "Emerald High Roller",
|
|
44
44
|
"description": "Emerald felt and mint accents — classic table vibes.",
|
|
45
45
|
"appearance": "glam",
|
|
46
|
+
"background": "#04100b",
|
|
46
47
|
"vars": {
|
|
47
48
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
48
49
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
49
50
|
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace",
|
|
50
|
-
"--os-casino-bg": "#04100b",
|
|
51
|
-
"--os-casino-bg-2": "#071a12",
|
|
52
51
|
"--os-casino-surface": "rgba(13, 38, 28, 0.8)",
|
|
53
52
|
"--os-casino-surface-solid": "#0d261c",
|
|
54
53
|
"--os-casino-surface-2": "rgba(18, 52, 38, 0.85)",
|
|
@@ -4,6 +4,7 @@ const o = [
|
|
|
4
4
|
label: "Noir Gold",
|
|
5
5
|
description: "Default casino noir — champagne gold on deep noir.",
|
|
6
6
|
appearance: "glam",
|
|
7
|
+
background: "#181622",
|
|
7
8
|
vars: {
|
|
8
9
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
9
10
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
@@ -15,12 +16,11 @@ const o = [
|
|
|
15
16
|
label: "Royal Violet",
|
|
16
17
|
description: "Regal violet and silver over midnight blue.",
|
|
17
18
|
appearance: "glam",
|
|
19
|
+
background: "#070a16",
|
|
18
20
|
vars: {
|
|
19
21
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
20
22
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
21
23
|
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace",
|
|
22
|
-
"--os-casino-bg": "#070a16",
|
|
23
|
-
"--os-casino-bg-2": "#0c1124",
|
|
24
24
|
"--os-casino-surface": "rgba(22, 27, 52, 0.78)",
|
|
25
25
|
"--os-casino-surface-solid": "#161b34",
|
|
26
26
|
"--os-casino-surface-2": "rgba(31, 38, 72, 0.85)",
|
|
@@ -43,12 +43,11 @@ const o = [
|
|
|
43
43
|
label: "Emerald High Roller",
|
|
44
44
|
description: "Emerald felt and mint accents — classic table vibes.",
|
|
45
45
|
appearance: "glam",
|
|
46
|
+
background: "#04100b",
|
|
46
47
|
vars: {
|
|
47
48
|
"--os-casino-font-display": "'Sora', system-ui, sans-serif",
|
|
48
49
|
"--os-casino-font-body": "'Inter', system-ui, sans-serif",
|
|
49
50
|
"--os-casino-font-mono": "ui-monospace, 'JetBrains Mono', monospace",
|
|
50
|
-
"--os-casino-bg": "#04100b",
|
|
51
|
-
"--os-casino-bg-2": "#071a12",
|
|
52
51
|
"--os-casino-surface": "rgba(13, 38, 28, 0.8)",
|
|
53
52
|
"--os-casino-surface-solid": "#0d261c",
|
|
54
53
|
"--os-casino-surface-2": "rgba(18, 52, 38, 0.85)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themes.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
+
import { html as r } from "../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
+
import "../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
+
function a(e) {
|
|
3
5
|
return r`<div class="shell">
|
|
4
6
|
${e.renderMarquee()}
|
|
5
7
|
${e.renderEventsBanner()}
|
|
@@ -15,6 +17,6 @@ function d(e) {
|
|
|
15
17
|
`;
|
|
16
18
|
}
|
|
17
19
|
export {
|
|
18
|
-
|
|
20
|
+
a as default
|
|
19
21
|
};
|
|
20
22
|
//# sourceMappingURL=os-leaderboard-casino.html.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os-leaderboard-casino.html.js","sources":["../../../../src/components/os-leaderboard-casino/container/os-leaderboard-casino.html?lit-html"],"sourcesContent":["\nimport { html } from 'lit';\n\nexport default function render(host) {\n return html`<div class=\"shell\">\n ${host.renderMarquee()}\n ${host.renderEventsBanner()}\n ${host.renderHero()}\n\n <div class=\"columns\">\n <div class=\"main\">${host.renderMainSections()}</div>\n </div>\n\n ${host.renderFooter()}\n ${host.renderLegals()}\n</div>\n`;\n}\n"],"names":["render","host","html"],"mappings":"
|
|
1
|
+
{"version":3,"file":"os-leaderboard-casino.html.js","sources":["../../../../src/components/os-leaderboard-casino/container/os-leaderboard-casino.html?lit-html"],"sourcesContent":["\nimport { html } from 'lit';\n\nexport default function render(host) {\n return html`<div class=\"shell\">\n ${host.renderMarquee()}\n ${host.renderEventsBanner()}\n ${host.renderHero()}\n\n <div class=\"columns\">\n <div class=\"main\">${host.renderMainSections()}</div>\n </div>\n\n ${host.renderFooter()}\n ${host.renderLegals()}\n</div>\n`;\n}\n"],"names":["render","host","html"],"mappings":";;;AAGe,SAASA,EAAOC,GAAM;AACnC,SAAOC;AAAAA,IACLD,EAAK,cAAa,CAAE;AAAA,IACpBA,EAAK,mBAAkB,CAAE;AAAA,IACzBA,EAAK,WAAU,CAAE;AAAA;AAAA;AAAA,wBAGGA,EAAK,oBAAoB;AAAA;AAAA;AAAA,IAG7CA,EAAK,aAAY,CAAE;AAAA,IACnBA,EAAK,aAAY,CAAE;AAAA;AAAA;AAGvB;"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
+
import { nothing as e, html as t } from "../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
+
import { LitElement as h } from "../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
+
import { property as p } from "../../../shared/vendor/lit-reactive-element-property.js";
|
|
3
5
|
import { Component as m } from "../../../shared/lib/lit/component.js";
|
|
4
6
|
import { scss as b } from "../../../shared/lib/lit/scss.js";
|
|
5
7
|
import { OS_LEADERBOARD_CASINO_TAG as f } from "../constants/tags.js";
|
|
6
8
|
import { osLeaderboardCasinoTheme as y } from "../theme/styles.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
+
import { iconService as L } from "../services/icon.service.js";
|
|
10
|
+
import { EMPTY_OS_LEADERBOARD_CASINO_STATE as v } from "../types/state.js";
|
|
11
|
+
import { adapterService as c } from "../services/adapter.service.js";
|
|
9
12
|
import { resolveLeaderboardCasinoInput as S } from "../integration/resolve-input.js";
|
|
10
13
|
import { loadLeaderboardCasinoAssets as g } from "../integration/load-assets.js";
|
|
11
14
|
import O from "./os-leaderboard-casino.html.js";
|
|
@@ -20,18 +23,17 @@ import "../sections/climb-section/climb-section.js";
|
|
|
20
23
|
import "../sections/table-section/table-section.js";
|
|
21
24
|
import "../sections/footer-section/footer-section.js";
|
|
22
25
|
import "../sections/legals-section/legals-section.js";
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
for (var r = i > 1 ? void 0 : i ? $(o, l) : o, d = s.length - 1, u; d >= 0; d--)
|
|
26
|
+
var A = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (s, o, l, i) => {
|
|
27
|
+
for (var r = i > 1 ? void 0 : i ? _(o, l) : o, d = s.length - 1, u; d >= 0; d--)
|
|
26
28
|
(u = s[d]) && (r = (i ? u(o, l, r) : u(r)) || r);
|
|
27
|
-
return i && r &&
|
|
29
|
+
return i && r && A(o, l, r), r;
|
|
28
30
|
};
|
|
29
31
|
let a = class extends h {
|
|
30
32
|
constructor() {
|
|
31
|
-
super(...arguments), this.assets = null, this.assetsBaseUrl = "", this.input = null, this.state =
|
|
33
|
+
super(...arguments), this.assets = null, this.assetsBaseUrl = "", this.input = null, this.state = v, this.uuid = "", this.finished = !1, this.assetsLoadTask = null;
|
|
32
34
|
}
|
|
33
35
|
connectedCallback() {
|
|
34
|
-
super.connectedCallback(),
|
|
36
|
+
super.connectedCallback(), L.load(), this.ensureAssetsLoaded();
|
|
35
37
|
}
|
|
36
38
|
get layout() {
|
|
37
39
|
return c.toLayout(this.state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"os-leaderboard-casino.js","sources":["../../../../src/components/os-leaderboard-casino/container/os-leaderboard-casino.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport type { PropertyValues } from 'lit';\nimport { Component } from '@oddsmith/lib/lit/component.js';\nimport { scss } from '@oddsmith/lib/lit/scss.js';\nimport { OS_LEADERBOARD_CASINO_TAG } from '@os-leaderboard-casino/constants/tags.js';\nimport { osLeaderboardCasinoTheme } from '@os-leaderboard-casino/theme/index.js';\nimport {\n EMPTY_OS_LEADERBOARD_CASINO_STATE,\n type OsLeaderboardCasinoState,\n} from '@os-leaderboard-casino/types/state.js';\nimport type { OsLeaderboardCasinoLayout } from '@os-leaderboard-casino/types/sections.js';\nimport { adapterService } from '@os-leaderboard-casino/services/index.js';\nimport { iconService } from '@os-leaderboard-casino/services/icon.service.js';\nimport { resolveLeaderboardCasinoInput } from '@os-leaderboard-casino/integration/resolve-input.js';\nimport { loadLeaderboardCasinoAssets } from '@os-leaderboard-casino/integration/load-assets.js';\nimport type { LeaderboardCasinoAssetsBundle } from '@os-leaderboard-casino/types/assets.js';\nimport type { LeaderboardCasinoInput } from '@os-leaderboard-casino/types/input.js';\nimport type { OsLeaderboardCasinoHost } from './os-leaderboard-casino.host.js';\nimport renderTemplate from './os-leaderboard-casino.html?lit-html';\nimport componentStyles from './os-leaderboard-casino.scss?inline';\nimport '@os-leaderboard-casino/sections/marquee-section/marquee-section.js';\nimport '@os-leaderboard-casino/sections/events-banner/events-banner.js';\nimport '@os-leaderboard-casino/sections/hero-section/hero-section.js';\nimport '@os-leaderboard-casino/sections/prize-section/prize-section.js';\nimport '@os-leaderboard-casino/sections/stats-section/stats-section.js';\nimport '@os-leaderboard-casino/sections/games-section/games-section.js';\nimport '@os-leaderboard-casino/sections/climb-section/climb-section.js';\nimport '@os-leaderboard-casino/sections/table-section/table-section.js';\nimport '@os-leaderboard-casino/sections/footer-section/footer-section.js';\nimport '@os-leaderboard-casino/sections/legals-section/legals-section.js';\n\n/**\n * Config-driven casino leaderboard.\n * Parent provides static JSON via `.assets` or `assets-base-url`.\n * Bundled `assets/fallback/*.json` is used when parent files fail to load.\n */\n@Component({ selector: OS_LEADERBOARD_CASINO_TAG })\nexport class OsLeaderboardCasino\n extends LitElement\n implements OsLeaderboardCasinoHost\n{\n static styles = [osLeaderboardCasinoTheme, scss(componentStyles)];\n\n @property({ attribute: false })\n assets: LeaderboardCasinoAssetsBundle | null = null;\n\n @property({ type: String, attribute: 'assets-base-url' })\n assetsBaseUrl = '';\n\n @property({ attribute: false })\n input: LeaderboardCasinoInput | null = null;\n\n @property({ attribute: false })\n state: OsLeaderboardCasinoState = EMPTY_OS_LEADERBOARD_CASINO_STATE;\n\n @property({ type: String })\n uuid = '';\n\n @property({ type: Boolean })\n finished = false;\n\n private assetsLoadTask: Promise<void> | null = null;\n\n override connectedCallback(): void {\n super.connectedCallback();\n void iconService.load();\n void this.ensureAssetsLoaded();\n }\n\n get layout(): OsLeaderboardCasinoLayout {\n return adapterService.toLayout(this.state);\n }\n\n get mainOrder(): string[] {\n return (\n this.layout.mainOrder ?? [\n 'prize',\n 'stats',\n 'games',\n 'climb',\n 'table',\n ]\n );\n }\n\n private async ensureAssetsLoaded(): Promise<void> {\n if (this.assets) return;\n if (!this.assetsBaseUrl) return;\n\n if (!this.assetsLoadTask) {\n this.assetsLoadTask = loadLeaderboardCasinoAssets(this.assetsBaseUrl)\n .then((bundle) => {\n this.assets = bundle;\n this.applyInputToState();\n })\n .finally(() => {\n this.assetsLoadTask = null;\n });\n }\n\n await this.assetsLoadTask;\n }\n\n private applyInputToState(): void {\n if (!this.input) return;\n this.uuid = this.input.campaign?.uuid ?? '';\n this.finished = this.input.campaign?.finished ?? false;\n this.state = resolveLeaderboardCasinoInput(this.input, this.assets);\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n if (changed.has('assetsBaseUrl') && this.assetsBaseUrl && !this.assets) {\n void this.ensureAssetsLoaded();\n }\n\n if (\n (changed.has('input') || changed.has('assets')) &&\n this.input &&\n (this.assets || !this.assetsBaseUrl)\n ) {\n this.applyInputToState();\n }\n\n if (changed.has('state')) {\n adapterService.applyThemeVars(this, this.state);\n }\n }\n\n private renderMainSection(id: string) {\n const { prize, stats, games, climb, table } = this.layout;\n switch (id) {\n case 'prize':\n return prize\n ? html`<os-leaderboard-casino-prize\n .section=${prize}\n ></os-leaderboard-casino-prize>`\n : nothing;\n case 'stats':\n return stats\n ? html`<os-leaderboard-casino-stats\n .section=${stats}\n ></os-leaderboard-casino-stats>`\n : nothing;\n case 'games':\n return games\n ? html`<os-leaderboard-casino-games\n .section=${games}\n ></os-leaderboard-casino-games>`\n : nothing;\n case 'climb':\n return climb\n ? html`<os-leaderboard-casino-climb\n .section=${climb}\n ></os-leaderboard-casino-climb>`\n : nothing;\n case 'table':\n return table\n ? html`<os-leaderboard-casino-table\n .section=${table}\n uuid=${this.uuid}\n ?finished=${this.finished}\n ></os-leaderboard-casino-table>`\n : nothing;\n default:\n return nothing;\n }\n }\n\n renderMarquee() {\n const { marquee } = this.layout;\n return marquee\n ? html`<os-leaderboard-casino-marquee\n .section=${marquee}\n ></os-leaderboard-casino-marquee>`\n : nothing;\n }\n\n renderEventsBanner() {\n const { eventsBanner } = this.layout;\n return eventsBanner\n ? html`<os-leaderboard-casino-events\n .section=${eventsBanner}\n ></os-leaderboard-casino-events>`\n : nothing;\n }\n\n renderHero() {\n const { hero } = this.layout;\n return hero\n ? html`<os-leaderboard-casino-hero\n .section=${hero}\n ></os-leaderboard-casino-hero>`\n : nothing;\n }\n\n renderMainSections() {\n return html`${this.mainOrder.map((id) => this.renderMainSection(id))}`;\n }\n\n renderFooter() {\n const { footer } = this.layout;\n if (!footer?.text) {\n return nothing;\n }\n return html`<os-leaderboard-casino-footer\n .section=${footer}\n ></os-leaderboard-casino-footer>`;\n }\n\n renderLegals() {\n const { legals } = this.layout;\n if (!legals?.links?.length) return nothing;\n return html`<os-leaderboard-casino-legals\n .section=${legals}\n ></os-leaderboard-casino-legals>`;\n }\n\n protected override render() {\n return renderTemplate(this);\n }\n}\n"],"names":["OsLeaderboardCasino","LitElement","EMPTY_OS_LEADERBOARD_CASINO_STATE","iconService","adapterService","loadLeaderboardCasinoAssets","bundle","resolveLeaderboardCasinoInput","changed","id","prize","stats","games","climb","table","html","nothing","marquee","eventsBanner","hero","footer","legals","renderTemplate","osLeaderboardCasinoTheme","scss","componentStyles","__decorateClass","property","Component","OS_LEADERBOARD_CASINO_TAG"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"os-leaderboard-casino.js","sources":["../../../../src/components/os-leaderboard-casino/container/os-leaderboard-casino.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport type { PropertyValues } from 'lit';\nimport { Component } from '@oddsmith/lib/lit/component.js';\nimport { scss } from '@oddsmith/lib/lit/scss.js';\nimport { OS_LEADERBOARD_CASINO_TAG } from '@os-leaderboard-casino/constants/tags.js';\nimport { osLeaderboardCasinoTheme } from '@os-leaderboard-casino/theme/index.js';\nimport {\n EMPTY_OS_LEADERBOARD_CASINO_STATE,\n type OsLeaderboardCasinoState,\n} from '@os-leaderboard-casino/types/state.js';\nimport type { OsLeaderboardCasinoLayout } from '@os-leaderboard-casino/types/sections.js';\nimport { adapterService } from '@os-leaderboard-casino/services/index.js';\nimport { iconService } from '@os-leaderboard-casino/services/icon.service.js';\nimport { resolveLeaderboardCasinoInput } from '@os-leaderboard-casino/integration/resolve-input.js';\nimport { loadLeaderboardCasinoAssets } from '@os-leaderboard-casino/integration/load-assets.js';\nimport type { LeaderboardCasinoAssetsBundle } from '@os-leaderboard-casino/types/assets.js';\nimport type { LeaderboardCasinoInput } from '@os-leaderboard-casino/types/input.js';\nimport type { OsLeaderboardCasinoHost } from './os-leaderboard-casino.host.js';\nimport renderTemplate from './os-leaderboard-casino.html?lit-html';\nimport componentStyles from './os-leaderboard-casino.scss?inline';\nimport '@os-leaderboard-casino/sections/marquee-section/marquee-section.js';\nimport '@os-leaderboard-casino/sections/events-banner/events-banner.js';\nimport '@os-leaderboard-casino/sections/hero-section/hero-section.js';\nimport '@os-leaderboard-casino/sections/prize-section/prize-section.js';\nimport '@os-leaderboard-casino/sections/stats-section/stats-section.js';\nimport '@os-leaderboard-casino/sections/games-section/games-section.js';\nimport '@os-leaderboard-casino/sections/climb-section/climb-section.js';\nimport '@os-leaderboard-casino/sections/table-section/table-section.js';\nimport '@os-leaderboard-casino/sections/footer-section/footer-section.js';\nimport '@os-leaderboard-casino/sections/legals-section/legals-section.js';\n\n/**\n * Config-driven casino leaderboard.\n * Parent provides static JSON via `.assets` or `assets-base-url`.\n * Bundled `assets/fallback/*.json` is used when parent files fail to load.\n */\n@Component({ selector: OS_LEADERBOARD_CASINO_TAG })\nexport class OsLeaderboardCasino\n extends LitElement\n implements OsLeaderboardCasinoHost\n{\n static styles = [osLeaderboardCasinoTheme, scss(componentStyles)];\n\n @property({ attribute: false })\n assets: LeaderboardCasinoAssetsBundle | null = null;\n\n @property({ type: String, attribute: 'assets-base-url' })\n assetsBaseUrl = '';\n\n @property({ attribute: false })\n input: LeaderboardCasinoInput | null = null;\n\n @property({ attribute: false })\n state: OsLeaderboardCasinoState = EMPTY_OS_LEADERBOARD_CASINO_STATE;\n\n @property({ type: String })\n uuid = '';\n\n @property({ type: Boolean })\n finished = false;\n\n private assetsLoadTask: Promise<void> | null = null;\n\n override connectedCallback(): void {\n super.connectedCallback();\n void iconService.load();\n void this.ensureAssetsLoaded();\n }\n\n get layout(): OsLeaderboardCasinoLayout {\n return adapterService.toLayout(this.state);\n }\n\n get mainOrder(): string[] {\n return (\n this.layout.mainOrder ?? [\n 'prize',\n 'stats',\n 'games',\n 'climb',\n 'table',\n ]\n );\n }\n\n private async ensureAssetsLoaded(): Promise<void> {\n if (this.assets) return;\n if (!this.assetsBaseUrl) return;\n\n if (!this.assetsLoadTask) {\n this.assetsLoadTask = loadLeaderboardCasinoAssets(this.assetsBaseUrl)\n .then((bundle) => {\n this.assets = bundle;\n this.applyInputToState();\n })\n .finally(() => {\n this.assetsLoadTask = null;\n });\n }\n\n await this.assetsLoadTask;\n }\n\n private applyInputToState(): void {\n if (!this.input) return;\n this.uuid = this.input.campaign?.uuid ?? '';\n this.finished = this.input.campaign?.finished ?? false;\n this.state = resolveLeaderboardCasinoInput(this.input, this.assets);\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n if (changed.has('assetsBaseUrl') && this.assetsBaseUrl && !this.assets) {\n void this.ensureAssetsLoaded();\n }\n\n if (\n (changed.has('input') || changed.has('assets')) &&\n this.input &&\n (this.assets || !this.assetsBaseUrl)\n ) {\n this.applyInputToState();\n }\n\n if (changed.has('state')) {\n adapterService.applyThemeVars(this, this.state);\n }\n }\n\n private renderMainSection(id: string) {\n const { prize, stats, games, climb, table } = this.layout;\n switch (id) {\n case 'prize':\n return prize\n ? html`<os-leaderboard-casino-prize\n .section=${prize}\n ></os-leaderboard-casino-prize>`\n : nothing;\n case 'stats':\n return stats\n ? html`<os-leaderboard-casino-stats\n .section=${stats}\n ></os-leaderboard-casino-stats>`\n : nothing;\n case 'games':\n return games\n ? html`<os-leaderboard-casino-games\n .section=${games}\n ></os-leaderboard-casino-games>`\n : nothing;\n case 'climb':\n return climb\n ? html`<os-leaderboard-casino-climb\n .section=${climb}\n ></os-leaderboard-casino-climb>`\n : nothing;\n case 'table':\n return table\n ? html`<os-leaderboard-casino-table\n .section=${table}\n uuid=${this.uuid}\n ?finished=${this.finished}\n ></os-leaderboard-casino-table>`\n : nothing;\n default:\n return nothing;\n }\n }\n\n renderMarquee() {\n const { marquee } = this.layout;\n return marquee\n ? html`<os-leaderboard-casino-marquee\n .section=${marquee}\n ></os-leaderboard-casino-marquee>`\n : nothing;\n }\n\n renderEventsBanner() {\n const { eventsBanner } = this.layout;\n return eventsBanner\n ? html`<os-leaderboard-casino-events\n .section=${eventsBanner}\n ></os-leaderboard-casino-events>`\n : nothing;\n }\n\n renderHero() {\n const { hero } = this.layout;\n return hero\n ? html`<os-leaderboard-casino-hero\n .section=${hero}\n ></os-leaderboard-casino-hero>`\n : nothing;\n }\n\n renderMainSections() {\n return html`${this.mainOrder.map((id) => this.renderMainSection(id))}`;\n }\n\n renderFooter() {\n const { footer } = this.layout;\n if (!footer?.text) {\n return nothing;\n }\n return html`<os-leaderboard-casino-footer\n .section=${footer}\n ></os-leaderboard-casino-footer>`;\n }\n\n renderLegals() {\n const { legals } = this.layout;\n if (!legals?.links?.length) return nothing;\n return html`<os-leaderboard-casino-legals\n .section=${legals}\n ></os-leaderboard-casino-legals>`;\n }\n\n protected override render() {\n return renderTemplate(this);\n }\n}\n"],"names":["OsLeaderboardCasino","LitElement","EMPTY_OS_LEADERBOARD_CASINO_STATE","iconService","adapterService","loadLeaderboardCasinoAssets","bundle","resolveLeaderboardCasinoInput","changed","id","prize","stats","games","climb","table","html","nothing","marquee","eventsBanner","hero","footer","legals","renderTemplate","osLeaderboardCasinoTheme","scss","componentStyles","__decorateClass","property","Component","OS_LEADERBOARD_CASINO_TAG"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = ":host{display:block;width:100%;min-height:100vh;min-height:100dvh;box-sizing:border-box;background:
|
|
1
|
+
const a = ":host{display:block;width:100%;min-height:100vh;min-height:100dvh;box-sizing:border-box;background:var(--bg);color:var(--text);font-family:var(--font-body)}.shell{width:100%;max-width:1180px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;gap:18px;padding:clamp(14px,3vw,28px);padding-top:calc(clamp(14px,3vw,28px) + env(safe-area-inset-top));padding-bottom:calc(clamp(14px,3vw,28px) + env(safe-area-inset-bottom));box-sizing:border-box}.columns{display:flex;flex:1;flex-direction:column;gap:18px;min-height:0}.main{display:flex;flex:1;flex-direction:column;gap:18px;min-width:0}os-leaderboard-casino-table{flex:1;min-height:0}os-leaderboard-casino-footer{margin-top:auto}os-leaderboard-casino-legals{margin-top:-6px}";
|
|
2
2
|
export {
|
|
3
3
|
a as default
|
|
4
4
|
};
|
|
@@ -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>;
|