speakid-hangman 1.0.11 → 1.0.12
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useMemo as Q, useCallback as he, useEffect as ue } from "react";
|
|
3
|
+
const l = {
|
|
4
4
|
gmCenterScreen: {
|
|
5
5
|
position: "relative",
|
|
6
6
|
zIndex: 1,
|
|
@@ -204,17 +204,17 @@ const a = {
|
|
|
204
204
|
display: "block"
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
function
|
|
207
|
+
function je({
|
|
208
208
|
mistakes: r,
|
|
209
209
|
maxMistakes: J,
|
|
210
|
-
size:
|
|
210
|
+
size: P = 200
|
|
211
211
|
}) {
|
|
212
|
-
const
|
|
213
|
-
return /* @__PURE__ */
|
|
212
|
+
const p = P, h = P * 1.25, w = Math.max(3, P / 100), C = 10 * (p / 200), x = 240 * (h / 250), y = 150 * (p / 200), b = 80 * (p / 200), ee = 20 * (h / 250), _ = 240 * (h / 250), M = 80 * (p / 200), N = 20 * (h / 250), L = 150 * (p / 200), H = 150 * (p / 200), S = 20 * (h / 250), I = 50 * (h / 250), F = 150 * (p / 200), R = 70 * (h / 250), U = 20 * (p / 200), T = 150 * (p / 200), te = 90 * (h / 250), Y = 150 * (h / 250), f = 150 * (p / 200), B = 110 * (h / 250), d = 130 * (p / 200), D = 130 * (h / 250), ne = 150 * (p / 200), E = 110 * (h / 250), me = 170 * (p / 200), W = 130 * (h / 250), oe = 150 * (p / 200), V = 150 * (h / 250), g = 130 * (p / 200), re = 190 * (h / 250), j = 150 * (p / 200), ie = 150 * (h / 250), a = 170 * (p / 200), ae = 190 * (h / 250), k = r === 0 || r <= J * 0.5 ? "#1f2937" : r <= J * 0.75 ? "#f59e0b" : "#ec4c44";
|
|
213
|
+
return /* @__PURE__ */ m(
|
|
214
214
|
"svg",
|
|
215
215
|
{
|
|
216
|
-
width:
|
|
217
|
-
height:
|
|
216
|
+
width: p,
|
|
217
|
+
height: h,
|
|
218
218
|
viewBox: "0 0 200 250",
|
|
219
219
|
style: {
|
|
220
220
|
display: "block",
|
|
@@ -244,7 +244,7 @@ function He({
|
|
|
244
244
|
x1: b,
|
|
245
245
|
y1: ee,
|
|
246
246
|
x2: b,
|
|
247
|
-
y2:
|
|
247
|
+
y2: _,
|
|
248
248
|
stroke: k,
|
|
249
249
|
strokeWidth: w
|
|
250
250
|
}
|
|
@@ -253,9 +253,9 @@ function He({
|
|
|
253
253
|
"line",
|
|
254
254
|
{
|
|
255
255
|
x1: M,
|
|
256
|
-
y1:
|
|
256
|
+
y1: N,
|
|
257
257
|
x2: L,
|
|
258
|
-
y2:
|
|
258
|
+
y2: N,
|
|
259
259
|
stroke: k,
|
|
260
260
|
strokeWidth: w
|
|
261
261
|
}
|
|
@@ -298,8 +298,8 @@ function He({
|
|
|
298
298
|
{
|
|
299
299
|
x1: f,
|
|
300
300
|
y1: B,
|
|
301
|
-
x2:
|
|
302
|
-
y2:
|
|
301
|
+
x2: d,
|
|
302
|
+
y2: D,
|
|
303
303
|
stroke: k,
|
|
304
304
|
strokeWidth: w
|
|
305
305
|
}
|
|
@@ -309,7 +309,7 @@ function He({
|
|
|
309
309
|
{
|
|
310
310
|
x1: ne,
|
|
311
311
|
y1: E,
|
|
312
|
-
x2:
|
|
312
|
+
x2: me,
|
|
313
313
|
y2: W,
|
|
314
314
|
stroke: k,
|
|
315
315
|
strokeWidth: w
|
|
@@ -320,7 +320,7 @@ function He({
|
|
|
320
320
|
{
|
|
321
321
|
x1: oe,
|
|
322
322
|
y1: V,
|
|
323
|
-
x2:
|
|
323
|
+
x2: g,
|
|
324
324
|
y2: re,
|
|
325
325
|
stroke: k,
|
|
326
326
|
strokeWidth: w
|
|
@@ -331,7 +331,7 @@ function He({
|
|
|
331
331
|
{
|
|
332
332
|
x1: j,
|
|
333
333
|
y1: ie,
|
|
334
|
-
x2:
|
|
334
|
+
x2: a,
|
|
335
335
|
y2: ae,
|
|
336
336
|
stroke: k,
|
|
337
337
|
strokeWidth: w
|
|
@@ -341,12 +341,12 @@ function He({
|
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Oe({
|
|
345
345
|
gameCubeSize: r = 400,
|
|
346
346
|
screenHeight: J = 800,
|
|
347
|
-
screenWidth:
|
|
348
|
-
logoUrl:
|
|
349
|
-
showLogo:
|
|
347
|
+
screenWidth: P = 800,
|
|
348
|
+
logoUrl: p,
|
|
349
|
+
showLogo: h = !0,
|
|
350
350
|
baseURL: w
|
|
351
351
|
} = {}) {
|
|
352
352
|
const C = {
|
|
@@ -367,56 +367,56 @@ function Ae({
|
|
|
367
367
|
Environment: ["tree", "forest", "air", "water", "pollution", "recycle", "nature", "clean", "waste", "plastic", "energy", "animal", "climate", "earth", "ocean", "river", "planet", "save", "green", "environment", "litter", "organic"],
|
|
368
368
|
Space: ["planet", "star", "sun", "moon", "astronaut", "rocket", "space", "galaxy", "universe", "telescope", "comet", "asteroid", "orbit", "gravity", "alien", "spaceship", "mars", "satellite", "sky", "eclipse"],
|
|
369
369
|
Devices: ["computer", "laptop", "phone", "tablet", "tv", "keyboard", "mouse", "printer", "camera", "headphones", "charger", "screen", "watch", "microphone", "speaker", "console", "router", "battery", "cable", "remote"]
|
|
370
|
-
}, [x, y] =
|
|
371
|
-
const e = (
|
|
370
|
+
}, [x, y] = u("lobby"), [b, ee] = u(""), [_] = u("Normal"), [M, N] = u(0), [L, H] = u(1), [S, I] = u(""), [F, R] = u([]), [U, T] = u(0), [te, Y] = u(0), [f, B] = u(null), [d, D] = u(null), [ne, E] = u(1), [me, W] = u([]), oe = _ === "Easy" ? 8 : _ === "Normal" ? 6 : 4, V = w || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman` : "/cloud/speakid/games/hangman"), [g, re] = u(!1), [j, ie] = u(!1), [a, ae] = u(!1), [$, k] = u(!1), s = Q(() => {
|
|
371
|
+
const e = (d || r || 1e3) / 400, n = a ? 0.8 : 1, i = $ ? 0.9 : 1, c = n * i;
|
|
372
372
|
return {
|
|
373
|
-
headline1:
|
|
373
|
+
headline1: g ? Math.max(24, Math.min(30, 30 * e * c)) : Math.max(28, Math.min(32, 32 * e * i)),
|
|
374
374
|
// Desktop: 32px
|
|
375
|
-
headline2: Math.max(20, Math.min(28, 24 * e *
|
|
375
|
+
headline2: Math.max(20, Math.min(28, 24 * e * c)),
|
|
376
376
|
// Desktop: 24px
|
|
377
|
-
headline3:
|
|
377
|
+
headline3: g ? Math.max(14, Math.min(18, 16 * e * c)) : Math.max(20, Math.min(26, 24 * e * c)),
|
|
378
378
|
// Desktop: 24px
|
|
379
|
-
bodyL: Math.max(14, Math.min(20, 18 * e *
|
|
379
|
+
bodyL: Math.max(14, Math.min(20, 18 * e * c)),
|
|
380
380
|
// Desktop: 18px
|
|
381
|
-
bodyM:
|
|
381
|
+
bodyM: g ? Math.max(12, Math.min(16, 14 * e * c)) : Math.max(14, Math.min(18, 16 * e * c)),
|
|
382
382
|
// Desktop: 16px
|
|
383
|
-
bodyS:
|
|
383
|
+
bodyS: g ? Math.max(10, Math.min(14, 12 * e * c)) : Math.max(12, Math.min(16, 14 * e * c)),
|
|
384
384
|
// Desktop: 14px
|
|
385
|
-
wordDisplay: Math.max(18, Math.min(32, 26 * e *
|
|
385
|
+
wordDisplay: Math.max(18, Math.min(32, 26 * e * c)),
|
|
386
386
|
// Адаптивный размер
|
|
387
|
-
button: Math.max(12, Math.min(18, 16 * e *
|
|
387
|
+
button: Math.max(12, Math.min(18, 16 * e * c))
|
|
388
388
|
// Desktop: 16px
|
|
389
389
|
};
|
|
390
|
-
}, [
|
|
391
|
-
const e = (
|
|
392
|
-
return j ? Math.max(8, Math.min(12, 10 * e)) : Math.max(12, Math.min(24, 16 * e)) *
|
|
393
|
-
}, [j,
|
|
394
|
-
const e = (
|
|
395
|
-
return j ? Math.max(3, Math.min(6, 5 * e)) : Math.max(4, Math.min(12, 8 * e)) *
|
|
396
|
-
}, [j,
|
|
397
|
-
const e = (
|
|
398
|
-
return Math.max(6, Math.min(10, 8 * e *
|
|
399
|
-
}, [
|
|
400
|
-
var
|
|
390
|
+
}, [g, d, r, a, $]), fe = Q(() => {
|
|
391
|
+
const e = (d || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
|
|
392
|
+
return j ? Math.max(8, Math.min(12, 10 * e)) : Math.max(12, Math.min(24, 16 * e)) * n * i;
|
|
393
|
+
}, [j, d, r, a, $]), t = Q(() => {
|
|
394
|
+
const e = (d || r || 1e3) / 400, n = a ? 0.65 : 1, i = $ ? 0.85 : 1;
|
|
395
|
+
return j ? Math.max(3, Math.min(6, 5 * e)) : Math.max(4, Math.min(12, 8 * e)) * n * i;
|
|
396
|
+
}, [j, d, r, a, $]), v = Q(() => {
|
|
397
|
+
const e = (d || r || 1e3) / 400, n = $ ? 0.9 : 1;
|
|
398
|
+
return Math.max(6, Math.min(10, 8 * e * n));
|
|
399
|
+
}, [d, r, $]), we = (e, n) => e.split("").every((i) => n.includes(i)), ke = (e, n) => e.split("").map((i) => n.includes(i) ? i : "_").join(" "), Me = (e) => "abcdefghijklmnopqrstuvwxyz".split("").filter((i) => !e.includes(i)), Z = (e, n = []) => {
|
|
400
|
+
var A;
|
|
401
401
|
if (!e || !C[e]) {
|
|
402
402
|
const z = Object.keys(C)[0];
|
|
403
|
-
return ((
|
|
403
|
+
return ((A = C[z]) == null ? void 0 : A[0]) || "";
|
|
404
404
|
}
|
|
405
405
|
const i = C[e];
|
|
406
406
|
if (!i || i.length === 0)
|
|
407
407
|
return "";
|
|
408
|
-
const
|
|
409
|
-
if (
|
|
408
|
+
const c = i.filter((z) => !n.includes(z)), X = c.length > 0 ? c : i;
|
|
409
|
+
if (X.length === 0)
|
|
410
410
|
return "";
|
|
411
|
-
let
|
|
411
|
+
let q;
|
|
412
412
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
413
413
|
const z = new Uint32Array(1);
|
|
414
414
|
crypto.getRandomValues(z);
|
|
415
415
|
const ge = z[0] / 4294967295;
|
|
416
|
-
|
|
416
|
+
q = Math.floor(ge * X.length);
|
|
417
417
|
} else
|
|
418
|
-
|
|
419
|
-
return
|
|
418
|
+
q = Math.floor(Math.random() * X.length);
|
|
419
|
+
return X[q];
|
|
420
420
|
}, $e = () => {
|
|
421
421
|
if (!b) return;
|
|
422
422
|
W([]);
|
|
@@ -426,30 +426,30 @@ function Ae({
|
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
428
|
I(e), W([e]), R([]), T(0), H(1), Y(0), B(null), y("game");
|
|
429
|
-
}, se =
|
|
429
|
+
}, se = he((e) => {
|
|
430
430
|
if (x !== "game" || f !== null) return;
|
|
431
|
-
const
|
|
432
|
-
/^[a-z]$/.test(
|
|
433
|
-
}, [x, f]), le =
|
|
431
|
+
const n = e.toLowerCase();
|
|
432
|
+
/^[a-z]$/.test(n) && (R((i) => i.includes(n) ? i : [...i, n]), I((i) => (i && !i.includes(n) && T((c) => c + 1), i)));
|
|
433
|
+
}, [x, f]), le = he((e) => {
|
|
434
434
|
se(e.key);
|
|
435
435
|
}, [se]);
|
|
436
|
-
|
|
436
|
+
ue(() => {
|
|
437
437
|
if (x === "game")
|
|
438
438
|
return window.addEventListener("keydown", le), () => window.removeEventListener("keydown", le);
|
|
439
439
|
}, [x, le]);
|
|
440
|
-
const ve = S ? ke(S, F) : "", xe = S ? we(S, F) : !1, ye = U >= 10, Se = Me(F), ce =
|
|
440
|
+
const ve = S ? ke(S, F) : "", xe = S ? we(S, F) : !1, ye = U >= 10, Se = Me(F), ce = he(() => {
|
|
441
441
|
if (!b || L >= M) {
|
|
442
442
|
y("result");
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
445
|
H((e) => e + 1), W((e) => {
|
|
446
|
-
const
|
|
447
|
-
return
|
|
446
|
+
const n = Z(b, e);
|
|
447
|
+
return n ? (I(n), [...e, n]) : e;
|
|
448
448
|
}), R([]), T(0), B(null);
|
|
449
449
|
}, [b, L, M]);
|
|
450
|
-
|
|
450
|
+
ue(() => {
|
|
451
451
|
if (xe && f === null) {
|
|
452
|
-
B("win"), Y((
|
|
452
|
+
B("win"), Y((n) => n + 1);
|
|
453
453
|
const e = setTimeout(() => {
|
|
454
454
|
ce();
|
|
455
455
|
}, 2e3);
|
|
@@ -469,23 +469,23 @@ function Ae({
|
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
471
|
H((e) => e + 1), W((e) => {
|
|
472
|
-
const
|
|
473
|
-
return
|
|
472
|
+
const n = Z(b, e);
|
|
473
|
+
return n ? (I(n), [...e, n]) : e;
|
|
474
474
|
}), R([]), T(0), B(null);
|
|
475
475
|
};
|
|
476
|
-
|
|
476
|
+
ue(() => {
|
|
477
477
|
const e = () => {
|
|
478
|
-
const
|
|
479
|
-
if (re(
|
|
480
|
-
|
|
481
|
-
else if (
|
|
482
|
-
|
|
478
|
+
const n = window.innerWidth, i = window.innerHeight, c = i < 800, A = n < 768 || c || (n === 926 && i === 428 || n === 932 && i === 430), z = i < 700, ge = n / i > 1.8, We = n === 1024 && i === 600, ze = A && n > i, Ce = n >= 1200 && n <= 1400;
|
|
479
|
+
if (re(A), ie(We), ae(ze), k(Ce), A)
|
|
480
|
+
D(null), E(1);
|
|
481
|
+
else if (z)
|
|
482
|
+
D(null), E(1);
|
|
483
483
|
else {
|
|
484
|
-
const
|
|
484
|
+
const He = n - 80, Ie = i - 80, be = Math.min(He, Ie);
|
|
485
485
|
let pe;
|
|
486
486
|
r && r >= 320 ? pe = Math.min(r, be) : pe = Math.min(1e3, be * 0.9);
|
|
487
|
-
const
|
|
488
|
-
|
|
487
|
+
const Re = Math.max(400, Math.min(1200, pe));
|
|
488
|
+
D(Re), E(ge ? 0.85 : 1);
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
@@ -534,8 +534,8 @@ function Ae({
|
|
|
534
534
|
<path d="M 35% 85% Q 37% 83%, 39% 85% T 43% 85% T 47% 85%"
|
|
535
535
|
fill="none" stroke="#FF4500" stroke-width="3.5" stroke-linecap="round"/>
|
|
536
536
|
</svg>
|
|
537
|
-
`, Fe = !
|
|
538
|
-
...
|
|
537
|
+
`, Fe = !g && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !g && h && (x !== "game" || Fe), Te = {
|
|
538
|
+
...l.gmCenterScreen,
|
|
539
539
|
width: "100%",
|
|
540
540
|
height: "100%",
|
|
541
541
|
padding: `${fe}px`,
|
|
@@ -546,45 +546,45 @@ function Ae({
|
|
|
546
546
|
position: "relative",
|
|
547
547
|
boxSizing: "border-box",
|
|
548
548
|
background: "transparent"
|
|
549
|
-
},
|
|
549
|
+
}, O = Q(
|
|
550
550
|
() => {
|
|
551
551
|
if (!de)
|
|
552
552
|
return null;
|
|
553
553
|
const e = window.innerWidth;
|
|
554
|
-
if (
|
|
554
|
+
if (g && e > window.innerHeight)
|
|
555
555
|
return null;
|
|
556
|
-
const
|
|
557
|
-
return /* @__PURE__ */ o("div", { style:
|
|
556
|
+
const n = p || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman/logo` : "/cloud/speakid/games/hangman/logo");
|
|
557
|
+
return /* @__PURE__ */ o("div", { style: l.gmLogoFixed, children: /* @__PURE__ */ m("picture", { children: [
|
|
558
558
|
/* @__PURE__ */ o(
|
|
559
559
|
"source",
|
|
560
560
|
{
|
|
561
|
-
srcSet: `${
|
|
561
|
+
srcSet: `${n}.svg`,
|
|
562
562
|
type: "image/svg+xml"
|
|
563
563
|
}
|
|
564
564
|
),
|
|
565
565
|
/* @__PURE__ */ o(
|
|
566
566
|
"img",
|
|
567
567
|
{
|
|
568
|
-
src: `${
|
|
568
|
+
src: `${n}.png`,
|
|
569
569
|
alt: "SPEAKID Logo",
|
|
570
|
-
style:
|
|
570
|
+
style: l.gmLogoImg,
|
|
571
571
|
loading: "lazy"
|
|
572
572
|
}
|
|
573
573
|
)
|
|
574
574
|
] }) });
|
|
575
575
|
},
|
|
576
|
-
[
|
|
577
|
-
), Be = () => x === "lobby" ? /* @__PURE__ */
|
|
578
|
-
|
|
576
|
+
[g, de, p, x]
|
|
577
|
+
), Be = () => x === "lobby" ? /* @__PURE__ */ m(G, { children: [
|
|
578
|
+
O,
|
|
579
579
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
580
580
|
/* @__PURE__ */ o("h1", { style: {
|
|
581
|
-
...
|
|
581
|
+
...l.gmHeadline1,
|
|
582
582
|
fontSize: `${s.headline1}px`,
|
|
583
|
-
marginBottom: `${
|
|
583
|
+
marginBottom: `${t * 3}px`,
|
|
584
584
|
position: "relative",
|
|
585
585
|
zIndex: 1
|
|
586
586
|
}, children: "HANGMAN" }),
|
|
587
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ m(
|
|
588
588
|
"button",
|
|
589
589
|
{
|
|
590
590
|
onClick: () => y("category"),
|
|
@@ -593,7 +593,7 @@ function Ae({
|
|
|
593
593
|
fontWeight: 500,
|
|
594
594
|
// Medium для более заметности
|
|
595
595
|
fontSize: `${s.button}px`,
|
|
596
|
-
padding: `${
|
|
596
|
+
padding: `${t * 1.2}px ${t * 3}px`,
|
|
597
597
|
borderRadius: `${v * 1.5}px`,
|
|
598
598
|
position: "relative",
|
|
599
599
|
zIndex: 1,
|
|
@@ -626,7 +626,7 @@ function Ae({
|
|
|
626
626
|
viewBox: "0 0 24 24",
|
|
627
627
|
fill: "none",
|
|
628
628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
|
-
style: { display: "block", marginRight: `${
|
|
629
|
+
style: { display: "block", marginRight: `${t}px` },
|
|
630
630
|
children: /* @__PURE__ */ o(
|
|
631
631
|
"path",
|
|
632
632
|
{
|
|
@@ -641,7 +641,7 @@ function Ae({
|
|
|
641
641
|
]
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ m("div", { style: {
|
|
645
645
|
position: "absolute",
|
|
646
646
|
top: "50%",
|
|
647
647
|
left: "50%",
|
|
@@ -658,10 +658,10 @@ function Ae({
|
|
|
658
658
|
alt: "Sun",
|
|
659
659
|
style: {
|
|
660
660
|
position: "absolute",
|
|
661
|
-
left:
|
|
661
|
+
left: g ? "-10%" : "5%",
|
|
662
662
|
top: "20%",
|
|
663
663
|
width: "auto",
|
|
664
|
-
height:
|
|
664
|
+
height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
|
|
665
665
|
maxHeight: "33vh",
|
|
666
666
|
objectFit: "contain",
|
|
667
667
|
opacity: 0.6
|
|
@@ -675,10 +675,10 @@ function Ae({
|
|
|
675
675
|
alt: "Hangman character",
|
|
676
676
|
style: {
|
|
677
677
|
position: "absolute",
|
|
678
|
-
right:
|
|
678
|
+
right: g ? "5%" : "10%",
|
|
679
679
|
bottom: "10%",
|
|
680
680
|
width: "auto",
|
|
681
|
-
height:
|
|
681
|
+
height: g ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((d || r || 1e3) * 0.33, 300)}px`,
|
|
682
682
|
maxHeight: "33vh",
|
|
683
683
|
objectFit: "contain",
|
|
684
684
|
opacity: 0.6
|
|
@@ -686,8 +686,8 @@ function Ae({
|
|
|
686
686
|
}
|
|
687
687
|
)
|
|
688
688
|
] })
|
|
689
|
-
] }) : x === "category" ? /* @__PURE__ */
|
|
690
|
-
|
|
689
|
+
] }) : x === "category" ? /* @__PURE__ */ m(G, { children: [
|
|
690
|
+
O,
|
|
691
691
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
692
692
|
/* @__PURE__ */ o(
|
|
693
693
|
"button",
|
|
@@ -700,14 +700,14 @@ function Ae({
|
|
|
700
700
|
e.currentTarget.style.backgroundColor = "#f9f9f9";
|
|
701
701
|
},
|
|
702
702
|
style: {
|
|
703
|
-
...
|
|
704
|
-
...
|
|
703
|
+
...l.gmButton,
|
|
704
|
+
...l.gmButtonSecondary,
|
|
705
705
|
fontSize: `${s.button}px`,
|
|
706
|
-
padding: `${
|
|
706
|
+
padding: `${t}px ${t * 1.5}px`,
|
|
707
707
|
borderRadius: `${v}px`,
|
|
708
708
|
position: "absolute",
|
|
709
|
-
top: "
|
|
710
|
-
// ✅
|
|
709
|
+
top: "24px",
|
|
710
|
+
// ✅ Поднял кнопку назад выше
|
|
711
711
|
left: "24px",
|
|
712
712
|
// ✅ Та же позиция что и логотип
|
|
713
713
|
zIndex: 10
|
|
@@ -715,26 +715,26 @@ function Ae({
|
|
|
715
715
|
children: "←"
|
|
716
716
|
}
|
|
717
717
|
),
|
|
718
|
-
/* @__PURE__ */ o("div", { style: { ...
|
|
718
|
+
/* @__PURE__ */ o("div", { style: { ...l.gmButtonGroup, gap: `${t}px`, marginBottom: `${t * 3}px`, marginTop: `${t * 4}px`, position: "relative", zIndex: 1 }, children: Object.keys(C).map((e) => /* @__PURE__ */ o(
|
|
719
719
|
"button",
|
|
720
720
|
{
|
|
721
721
|
onClick: () => {
|
|
722
722
|
ee(e), y("rounds");
|
|
723
723
|
},
|
|
724
|
-
onMouseEnter: (
|
|
725
|
-
|
|
724
|
+
onMouseEnter: (n) => {
|
|
725
|
+
n.currentTarget.style.backgroundColor = "#f0f0f0", n.currentTarget.style.borderColor = "#1f2937", n.currentTarget.style.transform = "scale(1.05)";
|
|
726
726
|
},
|
|
727
|
-
onMouseLeave: (
|
|
728
|
-
|
|
727
|
+
onMouseLeave: (n) => {
|
|
728
|
+
n.currentTarget.style.backgroundColor = "transparent", n.currentTarget.style.borderColor = "#e5e7eb", n.currentTarget.style.transform = "scale(1)";
|
|
729
729
|
},
|
|
730
730
|
style: {
|
|
731
731
|
fontFamily: '"Onest", system-ui, sans-serif',
|
|
732
732
|
fontWeight: 500,
|
|
733
733
|
fontSize: `${s.button}px`,
|
|
734
|
-
padding: `${
|
|
734
|
+
padding: `${t * 1.2}px ${t * 2}px`,
|
|
735
735
|
borderRadius: `${v * 2}px`,
|
|
736
736
|
// Более округлые для облачков
|
|
737
|
-
margin: `${
|
|
737
|
+
margin: `${t / 2}px`,
|
|
738
738
|
background: "transparent",
|
|
739
739
|
border: "2px solid #e5e7eb",
|
|
740
740
|
color: "#1f2937",
|
|
@@ -746,8 +746,8 @@ function Ae({
|
|
|
746
746
|
},
|
|
747
747
|
e
|
|
748
748
|
)) })
|
|
749
|
-
] }) : x === "rounds" ? /* @__PURE__ */
|
|
750
|
-
|
|
749
|
+
] }) : x === "rounds" ? /* @__PURE__ */ m(G, { children: [
|
|
750
|
+
O,
|
|
751
751
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
752
752
|
/* @__PURE__ */ o(
|
|
753
753
|
"button",
|
|
@@ -760,14 +760,14 @@ function Ae({
|
|
|
760
760
|
e.currentTarget.style.backgroundColor = "#f9f9f9";
|
|
761
761
|
},
|
|
762
762
|
style: {
|
|
763
|
-
...
|
|
764
|
-
...
|
|
763
|
+
...l.gmButton,
|
|
764
|
+
...l.gmButtonSecondary,
|
|
765
765
|
fontSize: `${s.button}px`,
|
|
766
|
-
padding: `${
|
|
766
|
+
padding: `${t}px ${t * 1.5}px`,
|
|
767
767
|
borderRadius: `${v}px`,
|
|
768
768
|
position: "absolute",
|
|
769
|
-
top: "
|
|
770
|
-
// ✅
|
|
769
|
+
top: "24px",
|
|
770
|
+
// ✅ Поднял кнопку назад выше
|
|
771
771
|
left: "24px",
|
|
772
772
|
// ✅ Та же позиция что и логотип
|
|
773
773
|
zIndex: 10
|
|
@@ -775,27 +775,27 @@ function Ae({
|
|
|
775
775
|
children: "←"
|
|
776
776
|
}
|
|
777
777
|
),
|
|
778
|
-
/* @__PURE__ */ o("h1", { style: { ...
|
|
779
|
-
/* @__PURE__ */ o("div", { style: { ...
|
|
778
|
+
/* @__PURE__ */ o("h1", { style: { ...l.gmHeadline1, fontSize: `${s.headline1}px`, marginBottom: `${t * 2}px`, position: "relative", zIndex: 1 }, children: "Choose rounds" }),
|
|
779
|
+
/* @__PURE__ */ o("div", { style: { ...l.gmButtonGroup, gap: `${t}px`, marginBottom: `${t * 3}px`, position: "relative", zIndex: 1 }, children: [1, 3, 5].map((e) => /* @__PURE__ */ o(
|
|
780
780
|
"button",
|
|
781
781
|
{
|
|
782
782
|
onClick: () => {
|
|
783
|
-
|
|
783
|
+
N(e), $e();
|
|
784
784
|
},
|
|
785
|
-
onMouseEnter: (
|
|
786
|
-
|
|
785
|
+
onMouseEnter: (n) => {
|
|
786
|
+
n.currentTarget.style.backgroundColor = "#f0f0f0", n.currentTarget.style.borderColor = "#1f2937", n.currentTarget.style.transform = "scale(1.05)";
|
|
787
787
|
},
|
|
788
|
-
onMouseLeave: (
|
|
789
|
-
|
|
788
|
+
onMouseLeave: (n) => {
|
|
789
|
+
n.currentTarget.style.backgroundColor = "transparent", n.currentTarget.style.borderColor = "#e5e7eb", n.currentTarget.style.transform = "scale(1)";
|
|
790
790
|
},
|
|
791
791
|
style: {
|
|
792
792
|
fontFamily: '"Onest", system-ui, sans-serif',
|
|
793
793
|
fontWeight: 500,
|
|
794
794
|
fontSize: `${s.button}px`,
|
|
795
|
-
padding: `${
|
|
795
|
+
padding: `${t * 1.2}px ${t * 2}px`,
|
|
796
796
|
borderRadius: `${v * 2}px`,
|
|
797
797
|
// Более округлые для облачков
|
|
798
|
-
margin: `${
|
|
798
|
+
margin: `${t / 2}px`,
|
|
799
799
|
background: "transparent",
|
|
800
800
|
border: "2px solid #e5e7eb",
|
|
801
801
|
color: "#1f2937",
|
|
@@ -807,17 +807,17 @@ function Ae({
|
|
|
807
807
|
},
|
|
808
808
|
e
|
|
809
809
|
)) })
|
|
810
|
-
] }) : x === "game" ? /* @__PURE__ */
|
|
811
|
-
|
|
812
|
-
!
|
|
810
|
+
] }) : x === "game" ? /* @__PURE__ */ m(G, { children: [
|
|
811
|
+
O,
|
|
812
|
+
!a && /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
813
813
|
" ",
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
...
|
|
816
|
-
padding: `${
|
|
817
|
-
// ✅
|
|
818
|
-
marginBottom: `${
|
|
819
|
-
// ✅
|
|
820
|
-
maxWidth: `${(
|
|
814
|
+
/* @__PURE__ */ m("div", { style: {
|
|
815
|
+
...l.gmInfoBox,
|
|
816
|
+
padding: `${a ? t * 0.5 : t * 0.8}px`,
|
|
817
|
+
// ✅ Унифицированный padding для всех landscape iPhone
|
|
818
|
+
marginBottom: `${a ? t * 0.2 : t * 0.5}px`,
|
|
819
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
820
|
+
maxWidth: `${(d || r) * 0.9}px`,
|
|
821
821
|
textAlign: "center",
|
|
822
822
|
// ✅ Центрируем текст по плашке
|
|
823
823
|
display: "flex",
|
|
@@ -825,124 +825,129 @@ function Ae({
|
|
|
825
825
|
alignItems: "center",
|
|
826
826
|
justifyContent: "center"
|
|
827
827
|
}, children: [
|
|
828
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ m("h3", { style: { ...l.gmHeadline3, fontSize: `${s.headline3}px`, marginBottom: `${t * 0.2}px`, textAlign: "center" }, children: [
|
|
829
829
|
"Category: ",
|
|
830
830
|
b
|
|
831
831
|
] }),
|
|
832
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ m("p", { style: { ...l.gmBodyM, fontSize: `${s.bodyM}px`, marginBottom: "0px", textAlign: "center" }, children: [
|
|
833
833
|
"Round ",
|
|
834
834
|
L,
|
|
835
835
|
" of ",
|
|
836
836
|
M
|
|
837
837
|
] })
|
|
838
838
|
] }),
|
|
839
|
-
S && /* @__PURE__ */
|
|
840
|
-
...
|
|
839
|
+
S && /* @__PURE__ */ m("p", { style: {
|
|
840
|
+
...l.gmBodyS,
|
|
841
841
|
fontSize: `${s.bodyS}px`,
|
|
842
|
-
marginTop: `${
|
|
843
|
-
// ✅
|
|
844
|
-
marginBottom: `${
|
|
845
|
-
// ✅
|
|
842
|
+
marginTop: `${a ? t * 0.2 : t * 0.5}px`,
|
|
843
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
844
|
+
marginBottom: `${a ? t * 0.3 : t}px`
|
|
845
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
846
846
|
}, children: [
|
|
847
847
|
"I am thinking of a word that is ",
|
|
848
848
|
/* @__PURE__ */ o("strong", { children: S.length }),
|
|
849
849
|
" letters long"
|
|
850
850
|
] }),
|
|
851
851
|
/* @__PURE__ */ o("div", { style: {
|
|
852
|
-
margin: `${
|
|
853
|
-
// ✅
|
|
852
|
+
margin: `${a ? t * 0.3 : t}px 0`,
|
|
853
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
854
854
|
display: "flex",
|
|
855
855
|
justifyContent: "center",
|
|
856
856
|
alignItems: "center"
|
|
857
857
|
}, children: /* @__PURE__ */ o(
|
|
858
|
-
|
|
858
|
+
je,
|
|
859
859
|
{
|
|
860
860
|
mistakes: U,
|
|
861
861
|
maxMistakes: oe,
|
|
862
|
-
size: j ? Math.max(80, Math.min(110, (
|
|
862
|
+
size: j ? Math.max(80, Math.min(110, (d || r) * 0.16)) : g ? a ? Math.max(90, Math.min(130, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, (d || r) * 0.2))
|
|
863
863
|
}
|
|
864
864
|
) }),
|
|
865
865
|
/* @__PURE__ */ o("div", { style: {
|
|
866
|
-
...
|
|
867
|
-
fontSize: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9))}px`,
|
|
868
|
-
margin: `${
|
|
869
|
-
// ✅
|
|
870
|
-
letterSpacing: `${
|
|
871
|
-
minHeight: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9)) * 1.2}px`
|
|
866
|
+
...l.gmWordDisplay,
|
|
867
|
+
fontSize: `${a ? Math.max(14, Math.min(20, s.wordDisplay * 0.8)) : Math.max(16, Math.min(24, s.wordDisplay * 0.9))}px`,
|
|
868
|
+
margin: `${a ? t * 0.3 : t}px 0`,
|
|
869
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
870
|
+
letterSpacing: `${a ? t * 0.6 : t * 0.8}px`,
|
|
871
|
+
minHeight: `${(a ? Math.max(14, Math.min(20, s.wordDisplay * 0.8)) : Math.max(16, Math.min(24, s.wordDisplay * 0.9))) * 1.2}px`
|
|
872
872
|
}, children: ve || "Loading..." }),
|
|
873
873
|
/* @__PURE__ */ o("div", { style: {
|
|
874
|
-
...
|
|
875
|
-
padding: `${
|
|
876
|
-
// ✅
|
|
877
|
-
marginTop: `${
|
|
878
|
-
// ✅
|
|
879
|
-
marginBottom: `${
|
|
880
|
-
// ✅
|
|
881
|
-
maxWidth: `${(
|
|
874
|
+
...l.gmInfoBox,
|
|
875
|
+
padding: `${a ? t * 0.5 : t}px`,
|
|
876
|
+
// ✅ Унифицированный padding для всех landscape iPhone
|
|
877
|
+
marginTop: `${a ? t * 0.3 : t}px`,
|
|
878
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
879
|
+
marginBottom: `${a ? t * 0.3 : t}px`,
|
|
880
|
+
// ✅ Унифицированный margin для всех landscape iPhone
|
|
881
|
+
maxWidth: `${(d || r) * 0.95}px`
|
|
882
882
|
}, children: /* @__PURE__ */ o("div", { style: {
|
|
883
883
|
display: "flex",
|
|
884
884
|
flexWrap: "wrap",
|
|
885
|
-
gap: `${
|
|
885
|
+
gap: `${a ? t / 4 : t / 3}px`,
|
|
886
|
+
// ✅ Унифицированный gap для всех landscape iPhone
|
|
886
887
|
justifyContent: "center",
|
|
887
888
|
alignItems: "center",
|
|
888
889
|
fontFamily: '"Onest", system-ui, sans-serif'
|
|
889
|
-
}, children: Se.map((e) =>
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
f
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
890
|
+
}, children: Se.map((e) => {
|
|
891
|
+
const n = a ? Math.max((d || r) * 0.05, t * 1.5) : Math.max((d || r) * 0.06, t * 2), i = a ? Math.max((d || r) * 0.1, t * 2.5) : Math.max((d || r) * 0.12, t * 3);
|
|
892
|
+
return /* @__PURE__ */ o(
|
|
893
|
+
"button",
|
|
894
|
+
{
|
|
895
|
+
onClick: () => se(e),
|
|
896
|
+
disabled: f !== null,
|
|
897
|
+
onMouseEnter: (c) => {
|
|
898
|
+
f === null && (c.currentTarget.style.backgroundColor = "#e5e7eb", c.currentTarget.style.cursor = "pointer");
|
|
899
|
+
},
|
|
900
|
+
onMouseLeave: (c) => {
|
|
901
|
+
f === null && (c.currentTarget.style.backgroundColor = "#f9f9f9", c.currentTarget.style.cursor = "pointer");
|
|
902
|
+
},
|
|
903
|
+
style: {
|
|
904
|
+
flex: "1 1 auto",
|
|
905
|
+
padding: `${a ? t * 0.4 : t * 0.5}px ${a ? t * 0.3 : t * 0.4}px`,
|
|
906
|
+
// ✅ Унифицированный padding для всех landscape iPhone
|
|
907
|
+
borderRadius: `${v * 0.5}px`,
|
|
908
|
+
background: "#f9f9f9",
|
|
909
|
+
color: "#1f2937",
|
|
910
|
+
border: "1px solid #e5e7eb",
|
|
911
|
+
minWidth: `${n}px`,
|
|
912
|
+
maxWidth: `${i}px`,
|
|
913
|
+
textAlign: "center",
|
|
914
|
+
display: "flex",
|
|
915
|
+
alignItems: "center",
|
|
916
|
+
justifyContent: "center",
|
|
917
|
+
cursor: f === null ? "pointer" : "default",
|
|
918
|
+
fontFamily: '"Onest", system-ui, sans-serif',
|
|
919
|
+
fontSize: `${a ? Math.max(12, Math.min(16, s.bodyS * 1)) : Math.max(14, Math.min(20, s.bodyS * 1.2))}px`,
|
|
920
|
+
fontWeight: 500,
|
|
921
|
+
transition: "background-color 0.2s ease"
|
|
922
|
+
},
|
|
923
|
+
children: e.toUpperCase()
|
|
918
924
|
},
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
)) }) }),
|
|
925
|
+
e
|
|
926
|
+
);
|
|
927
|
+
}) }) }),
|
|
923
928
|
F.length > 0 && /* @__PURE__ */ o("div", { style: {
|
|
924
|
-
...
|
|
929
|
+
...l.gmGuessedLetters,
|
|
925
930
|
fontSize: `${Math.max(10, Math.min(12, s.bodyS * 0.85))}px`,
|
|
926
|
-
marginTop: `${
|
|
931
|
+
marginTop: `${t * 0.5}px`,
|
|
927
932
|
marginBottom: "2px"
|
|
928
|
-
}, children: /* @__PURE__ */
|
|
933
|
+
}, children: /* @__PURE__ */ m("span", { style: { color: "#6b7280" }, children: [
|
|
929
934
|
"Guessed letters: ",
|
|
930
935
|
/* @__PURE__ */ o("strong", { children: F.join(", ") })
|
|
931
936
|
] }) }),
|
|
932
937
|
f === "win" && /* @__PURE__ */ o("div", { style: {
|
|
933
|
-
...
|
|
938
|
+
...l.gmStatusWin,
|
|
934
939
|
fontSize: `${s.bodyL}px`,
|
|
935
940
|
margin: "2px 0"
|
|
936
941
|
}, children: "🎉 You won this round!" }),
|
|
937
|
-
f === "lose" && /* @__PURE__ */
|
|
938
|
-
...
|
|
942
|
+
f === "lose" && /* @__PURE__ */ m("div", { style: {
|
|
943
|
+
...l.gmStatusLose,
|
|
939
944
|
fontSize: `${s.bodyL}px`,
|
|
940
945
|
margin: "2px 0"
|
|
941
946
|
}, children: [
|
|
942
947
|
"The hangman is complete! The word was: ",
|
|
943
948
|
/* @__PURE__ */ o("strong", { children: S })
|
|
944
949
|
] }),
|
|
945
|
-
f !== null && L < M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${
|
|
950
|
+
f !== null && L < M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${t}px` }, children: /* @__PURE__ */ o(
|
|
946
951
|
"button",
|
|
947
952
|
{
|
|
948
953
|
onClick: Le,
|
|
@@ -953,15 +958,15 @@ function Ae({
|
|
|
953
958
|
e.currentTarget.style.backgroundColor = "#ec4c44";
|
|
954
959
|
},
|
|
955
960
|
style: {
|
|
956
|
-
...
|
|
961
|
+
...l.gmButton,
|
|
957
962
|
fontSize: `${Math.max(11, Math.min(14, s.button * 0.85))}px`,
|
|
958
|
-
padding: `${
|
|
963
|
+
padding: `${t * 0.6}px ${t * 1.2}px`,
|
|
959
964
|
borderRadius: `${v}px`
|
|
960
965
|
},
|
|
961
966
|
children: "NEXT"
|
|
962
967
|
}
|
|
963
968
|
) }),
|
|
964
|
-
f !== null && L >= M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${
|
|
969
|
+
f !== null && L >= M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${t}px` }, children: /* @__PURE__ */ o(
|
|
965
970
|
"button",
|
|
966
971
|
{
|
|
967
972
|
onClick: () => y("result"),
|
|
@@ -972,31 +977,31 @@ function Ae({
|
|
|
972
977
|
e.currentTarget.style.backgroundColor = "#ec4c44";
|
|
973
978
|
},
|
|
974
979
|
style: {
|
|
975
|
-
...
|
|
980
|
+
...l.gmButton,
|
|
976
981
|
fontSize: `${s.button}px`,
|
|
977
|
-
padding: `${
|
|
982
|
+
padding: `${t}px ${t * 1.5}px`,
|
|
978
983
|
borderRadius: `${v}px`
|
|
979
984
|
},
|
|
980
985
|
children: "View results"
|
|
981
986
|
}
|
|
982
987
|
) }),
|
|
983
988
|
f === null && F.length === 0 && /* @__PURE__ */ o("p", { style: {
|
|
984
|
-
...
|
|
989
|
+
...l.gmBodyS,
|
|
985
990
|
fontSize: `${s.bodyS}px`,
|
|
986
|
-
marginTop: `${
|
|
987
|
-
marginBottom: `${
|
|
991
|
+
marginTop: `${t}px`,
|
|
992
|
+
marginBottom: `${t}px`
|
|
988
993
|
}, children: "Type a letter on your keyboard" })
|
|
989
|
-
] }) : x === "result" ? /* @__PURE__ */
|
|
990
|
-
|
|
994
|
+
] }) : x === "result" ? /* @__PURE__ */ m(G, { children: [
|
|
995
|
+
O,
|
|
991
996
|
/* @__PURE__ */ o("h1", { style: {
|
|
992
|
-
...
|
|
997
|
+
...l.gmHeadline1,
|
|
993
998
|
fontSize: `${s.headline1}px`,
|
|
994
|
-
marginBottom: `${
|
|
999
|
+
marginBottom: `${t * 2}px`
|
|
995
1000
|
}, children: "🎊 Game Finished!" }),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
...
|
|
1001
|
+
/* @__PURE__ */ m("p", { style: {
|
|
1002
|
+
...l.gmBodyL,
|
|
998
1003
|
fontSize: `${s.bodyL}px`,
|
|
999
|
-
marginBottom: `${
|
|
1004
|
+
marginBottom: `${t * 2}px`
|
|
1000
1005
|
}, children: [
|
|
1001
1006
|
"You guessed ",
|
|
1002
1007
|
/* @__PURE__ */ o("strong", { children: te }),
|
|
@@ -1004,10 +1009,10 @@ function Ae({
|
|
|
1004
1009
|
/* @__PURE__ */ o("strong", { children: M }),
|
|
1005
1010
|
" words correctly."
|
|
1006
1011
|
] }),
|
|
1007
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ m("div", { style: {
|
|
1008
1013
|
display: "flex",
|
|
1009
1014
|
flexDirection: "column",
|
|
1010
|
-
gap: `${
|
|
1015
|
+
gap: `${t}px`,
|
|
1011
1016
|
alignItems: "center"
|
|
1012
1017
|
}, children: [
|
|
1013
1018
|
/* @__PURE__ */ o(
|
|
@@ -1029,9 +1034,9 @@ function Ae({
|
|
|
1029
1034
|
e.currentTarget.style.backgroundColor = "#ec4c44";
|
|
1030
1035
|
},
|
|
1031
1036
|
style: {
|
|
1032
|
-
...
|
|
1037
|
+
...l.gmButton,
|
|
1033
1038
|
fontSize: `${s.button}px`,
|
|
1034
|
-
padding: `${
|
|
1039
|
+
padding: `${t}px ${t * 1.5}px`,
|
|
1035
1040
|
borderRadius: `${v}px`,
|
|
1036
1041
|
minWidth: "200px"
|
|
1037
1042
|
},
|
|
@@ -1049,10 +1054,10 @@ function Ae({
|
|
|
1049
1054
|
e.currentTarget.style.backgroundColor = "#f9f9f9";
|
|
1050
1055
|
},
|
|
1051
1056
|
style: {
|
|
1052
|
-
...
|
|
1053
|
-
...
|
|
1057
|
+
...l.gmButton,
|
|
1058
|
+
...l.gmButtonSecondary,
|
|
1054
1059
|
fontSize: `${s.button}px`,
|
|
1055
|
-
padding: `${
|
|
1060
|
+
padding: `${t}px ${t * 1.5}px`,
|
|
1056
1061
|
borderRadius: `${v}px`,
|
|
1057
1062
|
minWidth: "200px"
|
|
1058
1063
|
},
|
|
@@ -1082,19 +1087,20 @@ function Ae({
|
|
|
1082
1087
|
"div",
|
|
1083
1088
|
{
|
|
1084
1089
|
style: {
|
|
1085
|
-
width:
|
|
1086
|
-
height:
|
|
1090
|
+
width: g ? "100%" : d || r || 1e3,
|
|
1091
|
+
height: g ? "100%" : d || r || 1e3,
|
|
1087
1092
|
display: "flex",
|
|
1088
1093
|
justifyContent: "center",
|
|
1089
1094
|
alignItems: "center",
|
|
1090
1095
|
overflow: "hidden",
|
|
1091
|
-
borderRadius:
|
|
1096
|
+
borderRadius: g ? 0 : "20px",
|
|
1092
1097
|
background: "#ffffff",
|
|
1093
|
-
boxShadow:
|
|
1094
|
-
margin:
|
|
1098
|
+
boxShadow: g ? "none" : "0 0 40px rgba(0,0,0,0.1)",
|
|
1099
|
+
margin: g ? "0 auto" : "unset",
|
|
1095
1100
|
position: "relative",
|
|
1096
1101
|
// needed so absolute logo is inside the square
|
|
1097
|
-
transform: `scale(${ne})`
|
|
1102
|
+
transform: g && !a ? `scale(${ne})` : void 0
|
|
1103
|
+
// ✅ scale только для портретного режима мобильных
|
|
1098
1104
|
},
|
|
1099
1105
|
children: /* @__PURE__ */ o(
|
|
1100
1106
|
"div",
|
|
@@ -1116,8 +1122,8 @@ function Ae({
|
|
|
1116
1122
|
);
|
|
1117
1123
|
}
|
|
1118
1124
|
export {
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1125
|
+
Oe as Game,
|
|
1126
|
+
Oe as HangmanLobbyGame,
|
|
1127
|
+
Oe as default
|
|
1122
1128
|
};
|
|
1123
1129
|
//# sourceMappingURL=speakid-hangman.es.js.map
|