@adiakys/feeling-lucky 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/dist/config/types.d.ts +6 -0
- package/dist/{de-Cp-ILcpM.js → de-B56NsnDF.js} +8 -2
- package/dist/developer/panel.d.ts +1 -0
- package/dist/developer/settings.d.ts +1 -0
- package/dist/engine/dealer.d.ts +21 -0
- package/dist/{es-DHZIstf4.js → es-9iWwCe8s.js} +8 -2
- package/dist/feeling-lucky.iife.js +259 -243
- package/dist/feeling-lucky.js +6 -4
- package/dist/{fr-BPFoerSF.js → fr-Y2BcCS3U.js} +8 -2
- package/dist/games/blackjack/blackjack.d.ts +1 -0
- package/dist/games/cards/dealer.d.ts +9 -0
- package/dist/games/cards/table.d.ts +4 -0
- package/dist/games/holdem/holdem.d.ts +2 -0
- package/dist/{i18n-CihzHMU5.js → i18n-it2FlmVZ.js} +12 -6
- package/dist/{it-B95CFDto.js → it-CNSOLgaT.js} +8 -2
- package/dist/locales/de/developer.d.ts +4 -0
- package/dist/locales/de/room.d.ts +2 -0
- package/dist/locales/en/developer.d.ts +4 -0
- package/dist/locales/en/room.d.ts +2 -0
- package/dist/locales/es/developer.d.ts +4 -0
- package/dist/locales/es/room.d.ts +2 -0
- package/dist/locales/fr/developer.d.ts +4 -0
- package/dist/locales/fr/room.d.ts +2 -0
- package/dist/locales/it/developer.d.ts +4 -0
- package/dist/locales/it/room.d.ts +2 -0
- package/dist/{mount-BxDaFww2.js → mount-CBUkAcVV.js} +937 -862
- package/dist/{panel-D1hKmQL7.js → panel-tWJMt9kl.js} +16 -1
- package/dist/room/boost.d.ts +1 -1
- package/dist/room/lobby.d.ts +1 -0
- package/dist/room/room.d.ts +5 -1
- package/dist/room/stage.d.ts +2 -1
- package/dist/runtime/context.d.ts +2 -1
- package/dist/runtime/sound.d.ts +1 -1
- package/package.json +1 -1
package/dist/feeling-lucky.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { a as e, r as t, s as n, t as r } from "./i18n-
|
|
1
|
+
import { a as e, r as t, s as n, t as r } from "./i18n-it2FlmVZ.js";
|
|
2
2
|
// src/config/resolve.ts
|
|
3
3
|
var i = async (e) => typeof e == "function" ? e() : e;
|
|
4
4
|
async function a(e) {
|
|
5
|
-
let [t, n, r, a, o, s] = await Promise.all([
|
|
5
|
+
let [t, n, r, a, o, s, c] = await Promise.all([
|
|
6
6
|
i(e.prizes),
|
|
7
7
|
e.locale === void 0 ? void 0 : i(e.locale),
|
|
8
8
|
e.messages === void 0 ? {} : i(e.messages),
|
|
9
9
|
e.player === void 0 ? null : i(e.player),
|
|
10
10
|
e.developer !== void 0 && i(e.developer),
|
|
11
|
-
e.logo === void 0 ? void 0 : i(e.logo)
|
|
11
|
+
e.logo === void 0 ? void 0 : i(e.logo),
|
|
12
|
+
e.dealers === void 0 ? void 0 : i(e.dealers)
|
|
12
13
|
]);
|
|
13
14
|
if (!t.length) throw Error("feeling-lucky: at least one prize is needed");
|
|
14
15
|
return {
|
|
@@ -17,6 +18,7 @@ async function a(e) {
|
|
|
17
18
|
messages: r,
|
|
18
19
|
player: a,
|
|
19
20
|
logo: s,
|
|
21
|
+
dealers: c,
|
|
20
22
|
developer: o === !1 ? null : { passwordHash: o === !0 ? void 0 : o.passwordHash },
|
|
21
23
|
onWin: e.onWin,
|
|
22
24
|
onClaim: e.onClaim
|
|
@@ -38,7 +40,7 @@ function o(n) {
|
|
|
38
40
|
o = document.body.appendChild(document.createElement("feeling-lucky"));
|
|
39
41
|
let d = o;
|
|
40
42
|
(async () => {
|
|
41
|
-
let [e, { mountRoom: n }] = await Promise.all([a(i), import("./mount-
|
|
43
|
+
let [e, { mountRoom: n }] = await Promise.all([a(i), import("./mount-CBUkAcVV.js").then((e) => e.t)]);
|
|
42
44
|
await r(e.locale ?? t.value).catch(() => void 0), o === d && (s = n(d, e, u), s.addEventListener("closed", c));
|
|
43
45
|
})().catch((e) => {
|
|
44
46
|
o === d && c(), console.error(e);
|
|
@@ -34,7 +34,9 @@ var t = e({
|
|
|
34
34
|
boost: {
|
|
35
35
|
badge: "×{n}",
|
|
36
36
|
title: "Bonus du jour",
|
|
37
|
-
odds: "Bonus du jour\xA0: gains {n} fois plus probables"
|
|
37
|
+
odds: "Bonus du jour\xA0: gains {n} fois plus probables",
|
|
38
|
+
dealer: "Croupier à la table",
|
|
39
|
+
dealerOdds: "Croupier à la table : gains {n} fois plus probables"
|
|
38
40
|
},
|
|
39
41
|
themes: {
|
|
40
42
|
christmas: {
|
|
@@ -447,6 +449,10 @@ var t = e({
|
|
|
447
449
|
calendar: "D'après le calendrier",
|
|
448
450
|
noTheme: "Aucun",
|
|
449
451
|
language: "Langue",
|
|
450
|
-
autoLanguage: "Automatique"
|
|
452
|
+
autoLanguage: "Automatique",
|
|
453
|
+
dealer: "Croupier",
|
|
454
|
+
dealerShifts: "Selon les services du jour",
|
|
455
|
+
dealerAbsent: "Absent",
|
|
456
|
+
dealerNumber: "Croupier {n}"
|
|
451
457
|
} });
|
|
452
458
|
export { t as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { LuckyElement } from '../../runtime/element';
|
|
3
|
+
export declare class DealerPortrait extends LuckyElement {
|
|
4
|
+
dealer: number | null;
|
|
5
|
+
dealing: boolean;
|
|
6
|
+
private last;
|
|
7
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
8
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
9
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
2
|
import type { RoomContext } from '../../runtime/context';
|
|
3
|
+
import './dealer';
|
|
3
4
|
export declare function cardTable(room: RoomContext, print: string, { dealer, centre, bet, player }: {
|
|
4
5
|
dealer: TemplateResult;
|
|
5
6
|
centre: TemplateResult;
|
|
6
7
|
bet?: TemplateResult;
|
|
7
8
|
player: TemplateResult;
|
|
9
|
+
}, { on, dealing }: {
|
|
10
|
+
on: number | null;
|
|
11
|
+
dealing: boolean;
|
|
8
12
|
}): TemplateResult<1>;
|
|
@@ -35,7 +35,9 @@ var n = e({
|
|
|
35
35
|
boost: {
|
|
36
36
|
badge: "×{n}",
|
|
37
37
|
title: "Bonus of the day",
|
|
38
|
-
odds: "Bonus of the day: wins {n} times as likely"
|
|
38
|
+
odds: "Bonus of the day: wins {n} times as likely",
|
|
39
|
+
dealer: "Dealer at the table",
|
|
40
|
+
dealerOdds: "Dealer at the table: wins {n} times as likely"
|
|
39
41
|
},
|
|
40
42
|
themes: {
|
|
41
43
|
christmas: {
|
|
@@ -448,12 +450,16 @@ var n = e({
|
|
|
448
450
|
calendar: "From the calendar",
|
|
449
451
|
noTheme: "None",
|
|
450
452
|
language: "Language",
|
|
451
|
-
autoLanguage: "Automatic"
|
|
453
|
+
autoLanguage: "Automatic",
|
|
454
|
+
dealer: "Dealer",
|
|
455
|
+
dealerShifts: "From the day's shifts",
|
|
456
|
+
dealerAbsent: "Absent",
|
|
457
|
+
dealerNumber: "Dealer {n}"
|
|
452
458
|
} }), r = {
|
|
453
|
-
it: () => import("./it-
|
|
454
|
-
es: () => import("./es-
|
|
455
|
-
fr: () => import("./fr-
|
|
456
|
-
de: () => import("./de-
|
|
459
|
+
it: () => import("./it-CNSOLgaT.js"),
|
|
460
|
+
es: () => import("./es-9iWwCe8s.js"),
|
|
461
|
+
fr: () => import("./fr-Y2BcCS3U.js"),
|
|
462
|
+
de: () => import("./de-B56NsnDF.js")
|
|
457
463
|
}, i = ["en", ...Object.keys(r)], a = { en: n }, o = (e) => a[e], s = (e) => e.every((e) => !r[e] || a[e]);
|
|
458
464
|
async function c(e) {
|
|
459
465
|
await Promise.all(e.filter((e) => r[e] && !a[e]).map(async (e) => a[e] = (await r[e]()).default));
|
|
@@ -34,7 +34,9 @@ var t = e({
|
|
|
34
34
|
boost: {
|
|
35
35
|
badge: "×{n}",
|
|
36
36
|
title: "Bonus del giorno",
|
|
37
|
-
odds: "Bonus del giorno: vincite {n} volte più probabili"
|
|
37
|
+
odds: "Bonus del giorno: vincite {n} volte più probabili",
|
|
38
|
+
dealer: "Croupier al tavolo",
|
|
39
|
+
dealerOdds: "Croupier al tavolo: vincite {n} volte più probabili"
|
|
38
40
|
},
|
|
39
41
|
themes: {
|
|
40
42
|
christmas: {
|
|
@@ -447,6 +449,10 @@ var t = e({
|
|
|
447
449
|
calendar: "Dal calendario",
|
|
448
450
|
noTheme: "Nessuno",
|
|
449
451
|
language: "Lingua",
|
|
450
|
-
autoLanguage: "Automatica"
|
|
452
|
+
autoLanguage: "Automatica",
|
|
453
|
+
dealer: "Croupier",
|
|
454
|
+
dealerShifts: "Dai turni del giorno",
|
|
455
|
+
dealerAbsent: "Assente",
|
|
456
|
+
dealerNumber: "Croupier {n}"
|
|
451
457
|
} });
|
|
452
458
|
export { t as default };
|