speakid-hangman 1.0.6 → 1.0.8
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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as h, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import { useState as m, useMemo as Q, useCallback as
|
|
2
|
+
import { useState as m, useMemo as Q, useCallback as ue, useEffect as he } from "react";
|
|
3
3
|
const a = {
|
|
4
4
|
gmCenterScreen: {
|
|
5
5
|
position: "relative",
|
|
@@ -180,8 +180,10 @@ const a = {
|
|
|
180
180
|
// ✅ Обновлено только для качества логотипа (размер как в magic-sentence)
|
|
181
181
|
gmLogoFixed: {
|
|
182
182
|
position: "absolute",
|
|
183
|
-
top: "
|
|
184
|
-
|
|
183
|
+
top: "24px",
|
|
184
|
+
// ✅ Увеличен отступ сверху для большего пространства
|
|
185
|
+
left: "24px",
|
|
186
|
+
// ✅ Увеличен отступ слева для большего пространства
|
|
185
187
|
width: "auto",
|
|
186
188
|
zIndex: 30,
|
|
187
189
|
// ✅ Унифицирован zIndex для консистентности
|
|
@@ -202,17 +204,17 @@ const a = {
|
|
|
202
204
|
display: "block"
|
|
203
205
|
}
|
|
204
206
|
};
|
|
205
|
-
function
|
|
206
|
-
mistakes:
|
|
207
|
+
function He({
|
|
208
|
+
mistakes: i,
|
|
207
209
|
maxMistakes: J,
|
|
208
210
|
size: _ = 200
|
|
209
211
|
}) {
|
|
210
|
-
const
|
|
212
|
+
const c = _, g = _ * 1.25, w = Math.max(3, _ / 100), C = 10 * (c / 200), x = 240 * (g / 250), y = 150 * (c / 200), b = 80 * (c / 200), ee = 20 * (g / 250), N = 240 * (g / 250), M = 80 * (c / 200), P = 20 * (g / 250), L = 150 * (c / 200), H = 150 * (c / 200), v = 20 * (g / 250), I = 50 * (g / 250), F = 150 * (c / 200), R = 70 * (g / 250), V = 20 * (c / 200), T = 150 * (c / 200), te = 90 * (g / 250), A = 150 * (g / 250), f = 150 * (c / 200), B = 110 * (g / 250), p = 130 * (c / 200), O = 130 * (g / 250), ne = 150 * (c / 200), E = 110 * (g / 250), me = 170 * (c / 200), z = 130 * (g / 250), oe = 150 * (c / 200), Z = 150 * (g / 250), d = 130 * (c / 200), re = 190 * (g / 250), j = 150 * (c / 200), ie = 150 * (g / 250), u = 170 * (c / 200), ae = 190 * (g / 250), k = i === 0 || i <= J * 0.5 ? "#1f2937" : i <= J * 0.75 ? "#f59e0b" : "#ec4c44";
|
|
211
213
|
return /* @__PURE__ */ h(
|
|
212
214
|
"svg",
|
|
213
215
|
{
|
|
214
|
-
width:
|
|
215
|
-
height:
|
|
216
|
+
width: c,
|
|
217
|
+
height: g,
|
|
216
218
|
viewBox: "0 0 200 250",
|
|
217
219
|
style: {
|
|
218
220
|
display: "block",
|
|
@@ -225,113 +227,113 @@ function Fe({
|
|
|
225
227
|
// ✅ Включение аппаратного ускорения на iOS
|
|
226
228
|
},
|
|
227
229
|
children: [
|
|
228
|
-
|
|
230
|
+
i > 0 && /* @__PURE__ */ o(
|
|
229
231
|
"line",
|
|
230
232
|
{
|
|
231
|
-
x1:
|
|
232
|
-
y1:
|
|
233
|
-
x2:
|
|
234
|
-
y2:
|
|
235
|
-
stroke:
|
|
233
|
+
x1: C,
|
|
234
|
+
y1: x,
|
|
235
|
+
x2: y,
|
|
236
|
+
y2: x,
|
|
237
|
+
stroke: k,
|
|
236
238
|
strokeWidth: w
|
|
237
239
|
}
|
|
238
240
|
),
|
|
239
|
-
|
|
241
|
+
i > 1 && /* @__PURE__ */ o(
|
|
240
242
|
"line",
|
|
241
243
|
{
|
|
242
|
-
x1:
|
|
244
|
+
x1: b,
|
|
243
245
|
y1: ee,
|
|
244
|
-
x2:
|
|
246
|
+
x2: b,
|
|
245
247
|
y2: N,
|
|
246
|
-
stroke:
|
|
248
|
+
stroke: k,
|
|
247
249
|
strokeWidth: w
|
|
248
250
|
}
|
|
249
251
|
),
|
|
250
|
-
|
|
252
|
+
i > 2 && /* @__PURE__ */ o(
|
|
251
253
|
"line",
|
|
252
254
|
{
|
|
253
|
-
x1:
|
|
255
|
+
x1: M,
|
|
254
256
|
y1: P,
|
|
255
|
-
x2:
|
|
257
|
+
x2: L,
|
|
256
258
|
y2: P,
|
|
257
|
-
stroke:
|
|
259
|
+
stroke: k,
|
|
258
260
|
strokeWidth: w
|
|
259
261
|
}
|
|
260
262
|
),
|
|
261
|
-
|
|
263
|
+
i > 3 && /* @__PURE__ */ o(
|
|
262
264
|
"line",
|
|
263
265
|
{
|
|
264
|
-
x1:
|
|
265
|
-
y1:
|
|
266
|
-
x2:
|
|
267
|
-
y2:
|
|
268
|
-
stroke:
|
|
266
|
+
x1: H,
|
|
267
|
+
y1: v,
|
|
268
|
+
x2: H,
|
|
269
|
+
y2: I,
|
|
270
|
+
stroke: k,
|
|
269
271
|
strokeWidth: w
|
|
270
272
|
}
|
|
271
273
|
),
|
|
272
|
-
|
|
274
|
+
i > 4 && /* @__PURE__ */ o(
|
|
273
275
|
"circle",
|
|
274
276
|
{
|
|
275
|
-
cx:
|
|
276
|
-
cy:
|
|
277
|
+
cx: F,
|
|
278
|
+
cy: R,
|
|
277
279
|
r: V,
|
|
278
|
-
stroke:
|
|
280
|
+
stroke: k,
|
|
279
281
|
fill: "none",
|
|
280
282
|
strokeWidth: w
|
|
281
283
|
}
|
|
282
284
|
),
|
|
283
|
-
|
|
285
|
+
i > 5 && /* @__PURE__ */ o(
|
|
284
286
|
"line",
|
|
285
287
|
{
|
|
286
|
-
x1:
|
|
288
|
+
x1: T,
|
|
287
289
|
y1: te,
|
|
288
|
-
x2:
|
|
289
|
-
y2:
|
|
290
|
-
stroke:
|
|
290
|
+
x2: T,
|
|
291
|
+
y2: A,
|
|
292
|
+
stroke: k,
|
|
291
293
|
strokeWidth: w
|
|
292
294
|
}
|
|
293
295
|
),
|
|
294
|
-
|
|
296
|
+
i > 6 && /* @__PURE__ */ o(
|
|
295
297
|
"line",
|
|
296
298
|
{
|
|
297
|
-
x1:
|
|
298
|
-
y1:
|
|
299
|
-
x2:
|
|
300
|
-
y2:
|
|
301
|
-
stroke:
|
|
299
|
+
x1: f,
|
|
300
|
+
y1: B,
|
|
301
|
+
x2: p,
|
|
302
|
+
y2: O,
|
|
303
|
+
stroke: k,
|
|
302
304
|
strokeWidth: w
|
|
303
305
|
}
|
|
304
306
|
),
|
|
305
|
-
|
|
307
|
+
i > 7 && /* @__PURE__ */ o(
|
|
306
308
|
"line",
|
|
307
309
|
{
|
|
308
310
|
x1: ne,
|
|
309
|
-
y1:
|
|
310
|
-
x2:
|
|
311
|
-
y2:
|
|
312
|
-
stroke:
|
|
311
|
+
y1: E,
|
|
312
|
+
x2: me,
|
|
313
|
+
y2: z,
|
|
314
|
+
stroke: k,
|
|
313
315
|
strokeWidth: w
|
|
314
316
|
}
|
|
315
317
|
),
|
|
316
|
-
|
|
318
|
+
i > 8 && /* @__PURE__ */ o(
|
|
317
319
|
"line",
|
|
318
320
|
{
|
|
319
321
|
x1: oe,
|
|
320
322
|
y1: Z,
|
|
321
323
|
x2: d,
|
|
322
324
|
y2: re,
|
|
323
|
-
stroke:
|
|
325
|
+
stroke: k,
|
|
324
326
|
strokeWidth: w
|
|
325
327
|
}
|
|
326
328
|
),
|
|
327
|
-
|
|
329
|
+
i > 9 && /* @__PURE__ */ o(
|
|
328
330
|
"line",
|
|
329
331
|
{
|
|
330
|
-
x1:
|
|
332
|
+
x1: j,
|
|
331
333
|
y1: ie,
|
|
332
|
-
x2:
|
|
334
|
+
x2: u,
|
|
333
335
|
y2: ae,
|
|
334
|
-
stroke:
|
|
336
|
+
stroke: k,
|
|
335
337
|
strokeWidth: w
|
|
336
338
|
}
|
|
337
339
|
)
|
|
@@ -339,15 +341,15 @@ function Fe({
|
|
|
339
341
|
}
|
|
340
342
|
);
|
|
341
343
|
}
|
|
342
|
-
function
|
|
343
|
-
gameCubeSize:
|
|
344
|
+
function Ye({
|
|
345
|
+
gameCubeSize: i = 400,
|
|
344
346
|
screenHeight: J = 800,
|
|
345
347
|
screenWidth: _ = 800,
|
|
346
|
-
logoUrl:
|
|
347
|
-
showLogo:
|
|
348
|
+
logoUrl: c,
|
|
349
|
+
showLogo: g = !0,
|
|
348
350
|
baseURL: w
|
|
349
351
|
} = {}) {
|
|
350
|
-
const
|
|
352
|
+
const C = {
|
|
351
353
|
Professions: ["teacher", "doctor", "nurse", "driver", "police", "firefighter", "cook", "waiter", "farmer", "builder", "singer", "actor", "dentist", "pilot", "vet", "artist", "cleaner", "student", "baker", "mechanic"],
|
|
352
354
|
Family: ["mother", "father", "sister", "brother", "grandmother", "grandfather", "aunt", "uncle", "cousin", "baby", "parents", "children", "wife", "husband", "son", "daughter", "family", "twins", "relatives"],
|
|
353
355
|
"Farm animals": ["cow", "pig", "horse", "sheep", "goat", "duck", "chicken", "rooster", "turkey", "goose", "rabbit", "mouse", "donkey", "bee", "hen", "lamb", "bull", "pony"],
|
|
@@ -365,132 +367,129 @@ function We({
|
|
|
365
367
|
Environment: ["tree", "forest", "air", "water", "pollution", "recycle", "nature", "clean", "waste", "plastic", "energy", "animal", "climate", "earth", "ocean", "river", "planet", "save", "green", "environment", "litter", "organic"],
|
|
366
368
|
Space: ["planet", "star", "sun", "moon", "astronaut", "rocket", "space", "galaxy", "universe", "telescope", "comet", "asteroid", "orbit", "gravity", "alien", "spaceship", "mars", "satellite", "sky", "eclipse"],
|
|
367
369
|
Devices: ["computer", "laptop", "phone", "tablet", "tv", "keyboard", "mouse", "printer", "camera", "headphones", "charger", "screen", "watch", "microphone", "speaker", "console", "router", "battery", "cable", "remote"]
|
|
368
|
-
}, [
|
|
369
|
-
const e = (
|
|
370
|
+
}, [x, y] = m("lobby"), [b, ee] = m(""), [N] = m("Normal"), [M, P] = m(0), [L, H] = m(1), [v, I] = m(""), [F, R] = m([]), [V, T] = m(0), [te, A] = m(0), [f, B] = m(null), [p, O] = m(null), [ne, E] = m(1), [me, z] = m([]), oe = N === "Easy" ? 8 : N === "Normal" ? 6 : 4, Z = w || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman` : "/cloud/speakid/games/hangman"), [d, re] = m(!1), [j, ie] = m(!1), [u, ae] = m(!1), [$, k] = m(!1), s = Q(() => {
|
|
371
|
+
const e = (p || i || 1e3) / 400, t = u ? 0.8 : 1, r = $ ? 0.9 : 1, l = t * r;
|
|
370
372
|
return {
|
|
371
|
-
headline1: d ? Math.max(24, Math.min(30, 30 * e *
|
|
373
|
+
headline1: d ? Math.max(24, Math.min(30, 30 * e * l)) : Math.max(28, Math.min(32, 32 * e * r)),
|
|
372
374
|
// Desktop: 32px
|
|
373
|
-
headline2: Math.max(20, Math.min(28, 24 * e *
|
|
375
|
+
headline2: Math.max(20, Math.min(28, 24 * e * l)),
|
|
374
376
|
// Desktop: 24px
|
|
375
|
-
headline3: d ? Math.max(14, Math.min(18, 16 * e *
|
|
377
|
+
headline3: d ? Math.max(14, Math.min(18, 16 * e * l)) : Math.max(20, Math.min(26, 24 * e * l)),
|
|
376
378
|
// Desktop: 24px
|
|
377
|
-
bodyL: Math.max(14, Math.min(20, 18 * e *
|
|
379
|
+
bodyL: Math.max(14, Math.min(20, 18 * e * l)),
|
|
378
380
|
// Desktop: 18px
|
|
379
|
-
bodyM: d ? Math.max(12, Math.min(16, 14 * e *
|
|
381
|
+
bodyM: d ? Math.max(12, Math.min(16, 14 * e * l)) : Math.max(14, Math.min(18, 16 * e * l)),
|
|
380
382
|
// Desktop: 16px
|
|
381
|
-
bodyS: d ? Math.max(10, Math.min(14, 12 * e *
|
|
383
|
+
bodyS: d ? Math.max(10, Math.min(14, 12 * e * l)) : Math.max(12, Math.min(16, 14 * e * l)),
|
|
382
384
|
// Desktop: 14px
|
|
383
|
-
wordDisplay: Math.max(18, Math.min(32, 26 * e *
|
|
385
|
+
wordDisplay: Math.max(18, Math.min(32, 26 * e * l)),
|
|
384
386
|
// Адаптивный размер
|
|
385
|
-
button: Math.max(12, Math.min(18, 16 * e *
|
|
387
|
+
button: Math.max(12, Math.min(18, 16 * e * l))
|
|
386
388
|
// Desktop: 16px
|
|
387
389
|
};
|
|
388
|
-
}, [d,
|
|
389
|
-
const e = (
|
|
390
|
-
return
|
|
391
|
-
}, [
|
|
392
|
-
const e = (
|
|
393
|
-
return
|
|
394
|
-
}, [
|
|
395
|
-
const e = (
|
|
396
|
-
return Math.max(6, Math.min(10, 8 * e));
|
|
397
|
-
}, [
|
|
390
|
+
}, [d, p, i, u, $]), fe = Q(() => {
|
|
391
|
+
const e = (p || i || 1e3) / 400, t = u ? 0.65 : 1, r = $ ? 0.85 : 1;
|
|
392
|
+
return j ? Math.max(8, Math.min(12, 10 * e)) : Math.max(12, Math.min(24, 16 * e)) * t * r;
|
|
393
|
+
}, [j, p, i, u, $]), n = Q(() => {
|
|
394
|
+
const e = (p || i || 1e3) / 400, t = u ? 0.65 : 1, r = $ ? 0.85 : 1;
|
|
395
|
+
return j ? Math.max(3, Math.min(6, 5 * e)) : Math.max(4, Math.min(12, 8 * e)) * t * r;
|
|
396
|
+
}, [j, p, i, u, $]), S = Q(() => {
|
|
397
|
+
const e = (p || i || 1e3) / 400, t = $ ? 0.9 : 1;
|
|
398
|
+
return Math.max(6, Math.min(10, 8 * e * t));
|
|
399
|
+
}, [p, i, $]), we = (e, t) => e.split("").every((r) => t.includes(r)), ke = (e, t) => e.split("").map((r) => t.includes(r) ? r : "_").join(" "), Me = (e) => "abcdefghijklmnopqrstuvwxyz".split("").filter((r) => !e.includes(r)), U = (e, t = []) => {
|
|
398
400
|
var q;
|
|
399
|
-
if (!e || !
|
|
400
|
-
const
|
|
401
|
-
return ((q = W
|
|
401
|
+
if (!e || !C[e]) {
|
|
402
|
+
const W = Object.keys(C)[0];
|
|
403
|
+
return ((q = C[W]) == null ? void 0 : q[0]) || "";
|
|
402
404
|
}
|
|
403
|
-
const
|
|
404
|
-
if (!
|
|
405
|
+
const r = C[e];
|
|
406
|
+
if (!r || r.length === 0)
|
|
405
407
|
return "";
|
|
406
|
-
const
|
|
408
|
+
const l = r.filter((W) => !t.includes(W)), Y = l.length > 0 ? l : r;
|
|
407
409
|
if (Y.length === 0)
|
|
408
410
|
return "";
|
|
409
411
|
let D;
|
|
410
412
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
411
|
-
const
|
|
412
|
-
crypto.getRandomValues(
|
|
413
|
-
const
|
|
414
|
-
D = Math.floor(
|
|
413
|
+
const W = new Uint32Array(1);
|
|
414
|
+
crypto.getRandomValues(W);
|
|
415
|
+
const ge = W[0] / 4294967295;
|
|
416
|
+
D = Math.floor(ge * Y.length);
|
|
415
417
|
} else
|
|
416
418
|
D = Math.floor(Math.random() * Y.length);
|
|
417
419
|
return Y[D];
|
|
418
|
-
},
|
|
419
|
-
if (!
|
|
420
|
-
|
|
421
|
-
const e = U(
|
|
420
|
+
}, $e = () => {
|
|
421
|
+
if (!b) return;
|
|
422
|
+
z([]);
|
|
423
|
+
const e = U(b, []);
|
|
422
424
|
if (!e) {
|
|
423
|
-
|
|
425
|
+
y("category");
|
|
424
426
|
return;
|
|
425
427
|
}
|
|
426
|
-
|
|
427
|
-
}, se =
|
|
428
|
-
if (
|
|
428
|
+
I(e), z([e]), R([]), T(0), H(1), A(0), B(null), y("game");
|
|
429
|
+
}, se = ue((e) => {
|
|
430
|
+
if (x !== "game" || f !== null) return;
|
|
429
431
|
const t = e.toLowerCase();
|
|
430
|
-
/^[a-z]$/.test(t) && (
|
|
431
|
-
}, [
|
|
432
|
+
/^[a-z]$/.test(t) && (R((r) => r.includes(t) ? r : [...r, t]), I((r) => (r && !r.includes(t) && T((l) => l + 1), r)));
|
|
433
|
+
}, [x, f]), le = ue((e) => {
|
|
432
434
|
se(e.key);
|
|
433
435
|
}, [se]);
|
|
434
|
-
|
|
435
|
-
if (
|
|
436
|
+
he(() => {
|
|
437
|
+
if (x === "game")
|
|
436
438
|
return window.addEventListener("keydown", le), () => window.removeEventListener("keydown", le);
|
|
437
|
-
}, [
|
|
438
|
-
const
|
|
439
|
-
if (!
|
|
440
|
-
|
|
439
|
+
}, [x, le]);
|
|
440
|
+
const Se = v ? ke(v, F) : "", xe = v ? we(v, F) : !1, ye = V >= 10, ve = Me(F), ce = ue(() => {
|
|
441
|
+
if (!b || L >= M) {
|
|
442
|
+
y("result");
|
|
441
443
|
return;
|
|
442
444
|
}
|
|
443
|
-
|
|
444
|
-
const t = U(
|
|
445
|
-
return t ? (
|
|
446
|
-
}),
|
|
447
|
-
}, [
|
|
448
|
-
|
|
449
|
-
if (
|
|
450
|
-
|
|
445
|
+
H((e) => e + 1), z((e) => {
|
|
446
|
+
const t = U(b, e);
|
|
447
|
+
return t ? (I(t), [...e, t]) : e;
|
|
448
|
+
}), R([]), T(0), B(null);
|
|
449
|
+
}, [b, L, M]);
|
|
450
|
+
he(() => {
|
|
451
|
+
if (xe && f === null) {
|
|
452
|
+
B("win"), A((t) => t + 1);
|
|
451
453
|
const e = setTimeout(() => {
|
|
452
|
-
|
|
454
|
+
ce();
|
|
453
455
|
}, 2e3);
|
|
454
456
|
return () => clearTimeout(e);
|
|
455
457
|
}
|
|
456
|
-
if (
|
|
457
|
-
|
|
458
|
+
if (ye && f === null) {
|
|
459
|
+
B("lose");
|
|
458
460
|
const e = setTimeout(() => {
|
|
459
|
-
|
|
461
|
+
ce();
|
|
460
462
|
}, 2e3);
|
|
461
463
|
return () => clearTimeout(e);
|
|
462
464
|
}
|
|
463
|
-
}, [
|
|
464
|
-
const
|
|
465
|
-
if (!
|
|
466
|
-
|
|
465
|
+
}, [xe, ye, f, ce]);
|
|
466
|
+
const Le = () => {
|
|
467
|
+
if (!b || L >= M) {
|
|
468
|
+
y("result");
|
|
467
469
|
return;
|
|
468
470
|
}
|
|
469
|
-
|
|
470
|
-
const t = U(
|
|
471
|
-
return t ? (
|
|
472
|
-
}),
|
|
471
|
+
H((e) => e + 1), z((e) => {
|
|
472
|
+
const t = U(b, e);
|
|
473
|
+
return t ? (I(t), [...e, t]) : e;
|
|
474
|
+
}), R([]), T(0), B(null);
|
|
473
475
|
};
|
|
474
|
-
|
|
476
|
+
he(() => {
|
|
475
477
|
const e = () => {
|
|
476
|
-
const t = window.innerWidth,
|
|
477
|
-
if (re(
|
|
478
|
-
|
|
479
|
-
R(Le), j(1);
|
|
480
|
-
} else if (B)
|
|
481
|
-
R(null), j(1);
|
|
478
|
+
const t = window.innerWidth, r = window.innerHeight, l = t < 768 || t === 926 && r === 428 || t === 932 && r === 430, Y = r < 700, D = t / r > 1.8, q = t === 1024 && r === 600, W = l && t > r, ge = t >= 1200 && t <= 1400;
|
|
479
|
+
if (re(l), ie(q), ae(W), k(ge), l)
|
|
480
|
+
O(null), E(1);
|
|
482
481
|
else if (Y)
|
|
483
|
-
|
|
484
|
-
else
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
const
|
|
489
|
-
|
|
482
|
+
O(null), E(1);
|
|
483
|
+
else {
|
|
484
|
+
const ze = t - 80, We = r - 80, be = Math.min(ze, We);
|
|
485
|
+
let pe;
|
|
486
|
+
i && i >= 320 ? pe = Math.min(i, be) : pe = Math.min(1e3, be * 0.9);
|
|
487
|
+
const Ce = Math.max(400, Math.min(1200, pe));
|
|
488
|
+
O(Ce), E(D ? 0.85 : 1);
|
|
490
489
|
}
|
|
491
490
|
};
|
|
492
491
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
493
|
-
}, [
|
|
492
|
+
}, [i]);
|
|
494
493
|
const K = `
|
|
495
494
|
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0.2;">
|
|
496
495
|
<!-- Каракули мелками и фломастерами -->
|
|
@@ -535,35 +534,36 @@ function We({
|
|
|
535
534
|
<path d="M 35% 85% Q 37% 83%, 39% 85% T 43% 85% T 47% 85%"
|
|
536
535
|
fill="none" stroke="#FF4500" stroke-width="3.5" stroke-linecap="round"/>
|
|
537
536
|
</svg>
|
|
538
|
-
`,
|
|
537
|
+
`, Fe = !d && typeof window < "u" && window.innerWidth >= 768 && window.innerWidth < 1024, de = !d && g && (x !== "game" || Fe), Te = {
|
|
539
538
|
...a.gmCenterScreen,
|
|
540
539
|
width: "100%",
|
|
541
540
|
height: "100%",
|
|
542
|
-
padding: `${
|
|
543
|
-
paddingTop:
|
|
544
|
-
// ✅ Резервируем
|
|
545
|
-
overflow: "auto",
|
|
541
|
+
padding: `${fe}px`,
|
|
542
|
+
paddingTop: de ? "80px" : `${fe}px`,
|
|
543
|
+
// ✅ Резервируем больше места под логотип (24px top + 28px высота + 28px отступ)
|
|
544
|
+
overflow: $ ? "hidden" : "auto",
|
|
545
|
+
// ✅ Для разрешений 1200-1400 убираем скролл
|
|
546
546
|
position: "relative",
|
|
547
547
|
boxSizing: "border-box",
|
|
548
548
|
background: "transparent"
|
|
549
549
|
}, X = Q(
|
|
550
550
|
() => {
|
|
551
551
|
const e = window.innerWidth, t = window.innerHeight;
|
|
552
|
-
if (d && e > t || t < 700 || !
|
|
552
|
+
if (d && e > t || t < 700 || !de)
|
|
553
553
|
return null;
|
|
554
|
-
const
|
|
554
|
+
const r = c || (typeof window < "u" && window.origin ? `${window.origin}/cloud/speakid/games/hangman/logo` : "/cloud/speakid/games/hangman/logo");
|
|
555
555
|
return /* @__PURE__ */ o("div", { style: a.gmLogoFixed, children: /* @__PURE__ */ h("picture", { children: [
|
|
556
556
|
/* @__PURE__ */ o(
|
|
557
557
|
"source",
|
|
558
558
|
{
|
|
559
|
-
srcSet: `${
|
|
559
|
+
srcSet: `${r}.svg`,
|
|
560
560
|
type: "image/svg+xml"
|
|
561
561
|
}
|
|
562
562
|
),
|
|
563
563
|
/* @__PURE__ */ o(
|
|
564
564
|
"img",
|
|
565
565
|
{
|
|
566
|
-
src: `${
|
|
566
|
+
src: `${r}.png`,
|
|
567
567
|
alt: "SPEAKID Logo",
|
|
568
568
|
style: a.gmLogoImg,
|
|
569
569
|
loading: "lazy"
|
|
@@ -571,8 +571,8 @@ function We({
|
|
|
571
571
|
)
|
|
572
572
|
] }) });
|
|
573
573
|
},
|
|
574
|
-
[d,
|
|
575
|
-
),
|
|
574
|
+
[d, de, c, x]
|
|
575
|
+
), Be = () => x === "lobby" ? /* @__PURE__ */ h(G, { children: [
|
|
576
576
|
X,
|
|
577
577
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
578
578
|
/* @__PURE__ */ o("h1", { style: {
|
|
@@ -585,14 +585,14 @@ function We({
|
|
|
585
585
|
/* @__PURE__ */ h(
|
|
586
586
|
"button",
|
|
587
587
|
{
|
|
588
|
-
onClick: () =>
|
|
588
|
+
onClick: () => y("category"),
|
|
589
589
|
style: {
|
|
590
590
|
fontFamily: '"Onest", system-ui, sans-serif',
|
|
591
591
|
fontWeight: 500,
|
|
592
592
|
// Medium для более заметности
|
|
593
593
|
fontSize: `${s.button}px`,
|
|
594
594
|
padding: `${n * 1.2}px ${n * 3}px`,
|
|
595
|
-
borderRadius: `${
|
|
595
|
+
borderRadius: `${S * 1.5}px`,
|
|
596
596
|
position: "relative",
|
|
597
597
|
zIndex: 1,
|
|
598
598
|
display: "flex",
|
|
@@ -659,7 +659,7 @@ function We({
|
|
|
659
659
|
left: d ? "-10%" : "5%",
|
|
660
660
|
top: "20%",
|
|
661
661
|
width: "auto",
|
|
662
|
-
height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((
|
|
662
|
+
height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((p || i || 1e3) * 0.33, 300)}px`,
|
|
663
663
|
maxHeight: "33vh",
|
|
664
664
|
objectFit: "contain",
|
|
665
665
|
opacity: 0.6
|
|
@@ -676,7 +676,7 @@ function We({
|
|
|
676
676
|
right: d ? "5%" : "10%",
|
|
677
677
|
bottom: "10%",
|
|
678
678
|
width: "auto",
|
|
679
|
-
height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((
|
|
679
|
+
height: d ? `${Math.min(window.innerHeight * 0.33, 200)}px` : `${Math.min((p || i || 1e3) * 0.33, 300)}px`,
|
|
680
680
|
maxHeight: "33vh",
|
|
681
681
|
objectFit: "contain",
|
|
682
682
|
opacity: 0.6
|
|
@@ -684,13 +684,13 @@ function We({
|
|
|
684
684
|
}
|
|
685
685
|
)
|
|
686
686
|
] })
|
|
687
|
-
] }) :
|
|
687
|
+
] }) : x === "category" ? /* @__PURE__ */ h(G, { children: [
|
|
688
688
|
X,
|
|
689
689
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
690
690
|
/* @__PURE__ */ o(
|
|
691
691
|
"button",
|
|
692
692
|
{
|
|
693
|
-
onClick: () =>
|
|
693
|
+
onClick: () => y("lobby"),
|
|
694
694
|
onMouseEnter: (e) => {
|
|
695
695
|
e.currentTarget.style.backgroundColor = "#e5e7eb";
|
|
696
696
|
},
|
|
@@ -702,22 +702,22 @@ function We({
|
|
|
702
702
|
...a.gmButtonSecondary,
|
|
703
703
|
fontSize: `${s.button}px`,
|
|
704
704
|
padding: `${n}px ${n * 1.5}px`,
|
|
705
|
-
borderRadius: `${
|
|
705
|
+
borderRadius: `${S}px`,
|
|
706
706
|
position: "absolute",
|
|
707
|
-
top: "
|
|
708
|
-
// ✅ Под логотипом (
|
|
709
|
-
left: "
|
|
707
|
+
top: "60px",
|
|
708
|
+
// ✅ Под логотипом (24px top логотипа + 28px высота + 8px отступ)
|
|
709
|
+
left: "24px",
|
|
710
710
|
// ✅ Та же позиция что и логотип
|
|
711
711
|
zIndex: 10
|
|
712
712
|
},
|
|
713
713
|
children: "←"
|
|
714
714
|
}
|
|
715
715
|
),
|
|
716
|
-
/* @__PURE__ */ o("div", { style: { ...a.gmButtonGroup, gap: `${n}px`, marginBottom: `${n * 3}px`, marginTop: `${n * 4}px`, position: "relative", zIndex: 1 }, children: Object.keys(
|
|
716
|
+
/* @__PURE__ */ o("div", { style: { ...a.gmButtonGroup, gap: `${n}px`, marginBottom: `${n * 3}px`, marginTop: `${n * 4}px`, position: "relative", zIndex: 1 }, children: Object.keys(C).map((e) => /* @__PURE__ */ o(
|
|
717
717
|
"button",
|
|
718
718
|
{
|
|
719
719
|
onClick: () => {
|
|
720
|
-
ee(e),
|
|
720
|
+
ee(e), y("rounds");
|
|
721
721
|
},
|
|
722
722
|
onMouseEnter: (t) => {
|
|
723
723
|
t.currentTarget.style.backgroundColor = "#f0f0f0", t.currentTarget.style.borderColor = "#1f2937", t.currentTarget.style.transform = "scale(1.05)";
|
|
@@ -730,7 +730,7 @@ function We({
|
|
|
730
730
|
fontWeight: 500,
|
|
731
731
|
fontSize: `${s.button}px`,
|
|
732
732
|
padding: `${n * 1.2}px ${n * 2}px`,
|
|
733
|
-
borderRadius: `${
|
|
733
|
+
borderRadius: `${S * 2}px`,
|
|
734
734
|
// Более округлые для облачков
|
|
735
735
|
margin: `${n / 2}px`,
|
|
736
736
|
background: "transparent",
|
|
@@ -744,13 +744,13 @@ function We({
|
|
|
744
744
|
},
|
|
745
745
|
e
|
|
746
746
|
)) })
|
|
747
|
-
] }) :
|
|
747
|
+
] }) : x === "rounds" ? /* @__PURE__ */ h(G, { children: [
|
|
748
748
|
X,
|
|
749
749
|
/* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
750
750
|
/* @__PURE__ */ o(
|
|
751
751
|
"button",
|
|
752
752
|
{
|
|
753
|
-
onClick: () =>
|
|
753
|
+
onClick: () => y("category"),
|
|
754
754
|
onMouseEnter: (e) => {
|
|
755
755
|
e.currentTarget.style.backgroundColor = "#e5e7eb";
|
|
756
756
|
},
|
|
@@ -762,11 +762,11 @@ function We({
|
|
|
762
762
|
...a.gmButtonSecondary,
|
|
763
763
|
fontSize: `${s.button}px`,
|
|
764
764
|
padding: `${n}px ${n * 1.5}px`,
|
|
765
|
-
borderRadius: `${
|
|
765
|
+
borderRadius: `${S}px`,
|
|
766
766
|
position: "absolute",
|
|
767
|
-
top: "
|
|
768
|
-
// ✅ Под логотипом (
|
|
769
|
-
left: "
|
|
767
|
+
top: "60px",
|
|
768
|
+
// ✅ Под логотипом (24px top логотипа + 28px высота + 8px отступ)
|
|
769
|
+
left: "24px",
|
|
770
770
|
// ✅ Та же позиция что и логотип
|
|
771
771
|
zIndex: 10
|
|
772
772
|
},
|
|
@@ -778,7 +778,7 @@ function We({
|
|
|
778
778
|
"button",
|
|
779
779
|
{
|
|
780
780
|
onClick: () => {
|
|
781
|
-
P(e),
|
|
781
|
+
P(e), $e();
|
|
782
782
|
},
|
|
783
783
|
onMouseEnter: (t) => {
|
|
784
784
|
t.currentTarget.style.backgroundColor = "#f0f0f0", t.currentTarget.style.borderColor = "#1f2937", t.currentTarget.style.transform = "scale(1.05)";
|
|
@@ -791,7 +791,7 @@ function We({
|
|
|
791
791
|
fontWeight: 500,
|
|
792
792
|
fontSize: `${s.button}px`,
|
|
793
793
|
padding: `${n * 1.2}px ${n * 2}px`,
|
|
794
|
-
borderRadius: `${
|
|
794
|
+
borderRadius: `${S * 2}px`,
|
|
795
795
|
// Более округлые для облачков
|
|
796
796
|
margin: `${n / 2}px`,
|
|
797
797
|
background: "transparent",
|
|
@@ -805,72 +805,72 @@ function We({
|
|
|
805
805
|
},
|
|
806
806
|
e
|
|
807
807
|
)) })
|
|
808
|
-
] }) :
|
|
808
|
+
] }) : x === "game" ? /* @__PURE__ */ h(G, { children: [
|
|
809
809
|
X,
|
|
810
|
-
!
|
|
810
|
+
!u && /* @__PURE__ */ o("div", { dangerouslySetInnerHTML: { __html: K } }),
|
|
811
811
|
" ",
|
|
812
812
|
/* @__PURE__ */ h("div", { style: {
|
|
813
813
|
...a.gmInfoBox,
|
|
814
|
-
padding: `${
|
|
814
|
+
padding: `${u ? n * 0.6 : n * 0.8}px`,
|
|
815
815
|
// ✅ Уменьшаем padding в landscape
|
|
816
|
-
marginBottom: `${
|
|
816
|
+
marginBottom: `${u ? n * 0.3 : n * 0.5}px`,
|
|
817
817
|
// ✅ Уменьшаем margin в landscape
|
|
818
|
-
maxWidth: `${(
|
|
818
|
+
maxWidth: `${(p || i) * 0.9}px`
|
|
819
819
|
}, children: [
|
|
820
820
|
/* @__PURE__ */ h("h3", { style: { ...a.gmHeadline3, fontSize: `${s.headline3}px`, marginBottom: `${n * 0.5}px` }, children: [
|
|
821
821
|
"Category: ",
|
|
822
|
-
|
|
822
|
+
b
|
|
823
823
|
] }),
|
|
824
824
|
/* @__PURE__ */ h("p", { style: { ...a.gmBodyM, fontSize: `${s.bodyM}px`, marginBottom: "0px" }, children: [
|
|
825
825
|
"Round ",
|
|
826
|
-
|
|
826
|
+
L,
|
|
827
827
|
" of ",
|
|
828
|
-
|
|
828
|
+
M
|
|
829
829
|
] })
|
|
830
830
|
] }),
|
|
831
|
-
|
|
831
|
+
v && /* @__PURE__ */ h("p", { style: {
|
|
832
832
|
...a.gmBodyS,
|
|
833
833
|
fontSize: `${s.bodyS}px`,
|
|
834
|
-
marginTop: `${
|
|
834
|
+
marginTop: `${u ? n * 0.3 : n * 0.5}px`,
|
|
835
835
|
// ✅ Уменьшаем margin в landscape
|
|
836
|
-
marginBottom: `${
|
|
836
|
+
marginBottom: `${u ? n * 0.5 : n}px`
|
|
837
837
|
// ✅ Уменьшаем margin в landscape
|
|
838
838
|
}, children: [
|
|
839
839
|
"I am thinking of a word that is ",
|
|
840
|
-
/* @__PURE__ */ o("strong", { children:
|
|
840
|
+
/* @__PURE__ */ o("strong", { children: v.length }),
|
|
841
841
|
" letters long"
|
|
842
842
|
] }),
|
|
843
843
|
/* @__PURE__ */ o("div", { style: {
|
|
844
|
-
margin: `${
|
|
844
|
+
margin: `${u ? n * 0.5 : n}px 0`,
|
|
845
845
|
// ✅ Уменьшаем margin в landscape
|
|
846
846
|
display: "flex",
|
|
847
847
|
justifyContent: "center",
|
|
848
848
|
alignItems: "center"
|
|
849
849
|
}, children: /* @__PURE__ */ o(
|
|
850
|
-
|
|
850
|
+
He,
|
|
851
851
|
{
|
|
852
852
|
mistakes: V,
|
|
853
853
|
maxMistakes: oe,
|
|
854
|
-
size:
|
|
854
|
+
size: j ? Math.max(80, Math.min(110, (p || i) * 0.16)) : d ? u ? Math.max(70, Math.min(120, Math.min(window.innerWidth * 0.25, window.innerHeight * 0.15))) : Math.max(100, Math.min(150, Math.min(window.innerWidth * 0.3, window.innerHeight * 0.2))) : Math.max(100, Math.min(150, (p || i) * 0.2))
|
|
855
855
|
}
|
|
856
856
|
) }),
|
|
857
857
|
/* @__PURE__ */ o("div", { style: {
|
|
858
858
|
...a.gmWordDisplay,
|
|
859
859
|
fontSize: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9))}px`,
|
|
860
|
-
margin: `${
|
|
860
|
+
margin: `${u ? n * 0.5 : n}px 0`,
|
|
861
861
|
// ✅ Уменьшаем margin в landscape
|
|
862
862
|
letterSpacing: `${n * 0.8}px`,
|
|
863
863
|
minHeight: `${Math.max(16, Math.min(24, s.wordDisplay * 0.9)) * 1.2}px`
|
|
864
|
-
}, children:
|
|
864
|
+
}, children: Se || "Loading..." }),
|
|
865
865
|
/* @__PURE__ */ h("div", { style: {
|
|
866
866
|
...a.gmInfoBox,
|
|
867
|
-
padding: `${
|
|
867
|
+
padding: `${u ? n * 0.6 : n}px`,
|
|
868
868
|
// ✅ Уменьшаем padding в landscape
|
|
869
|
-
marginTop: `${
|
|
869
|
+
marginTop: `${u ? n * 0.5 : n}px`,
|
|
870
870
|
// ✅ Уменьшаем margin в landscape
|
|
871
|
-
marginBottom: `${
|
|
871
|
+
marginBottom: `${u ? n * 0.5 : n}px`,
|
|
872
872
|
// ✅ Уменьшаем margin в landscape
|
|
873
|
-
maxWidth: `${(
|
|
873
|
+
maxWidth: `${(p || i) * 0.95}px`
|
|
874
874
|
}, children: [
|
|
875
875
|
/* @__PURE__ */ o("p", { style: {
|
|
876
876
|
...a.gmBodyS,
|
|
@@ -886,27 +886,27 @@ function We({
|
|
|
886
886
|
justifyContent: "center",
|
|
887
887
|
fontSize: `${Math.max(9, Math.min(12, s.bodyS * 0.75))}px`,
|
|
888
888
|
fontFamily: '"Onest", system-ui, sans-serif'
|
|
889
|
-
}, children:
|
|
889
|
+
}, children: ve.map((e) => /* @__PURE__ */ o(
|
|
890
890
|
"button",
|
|
891
891
|
{
|
|
892
892
|
onClick: () => se(e),
|
|
893
|
-
disabled:
|
|
893
|
+
disabled: f !== null,
|
|
894
894
|
onMouseEnter: (t) => {
|
|
895
|
-
|
|
895
|
+
f === null && (t.currentTarget.style.backgroundColor = "#e5e7eb", t.currentTarget.style.cursor = "pointer");
|
|
896
896
|
},
|
|
897
897
|
onMouseLeave: (t) => {
|
|
898
|
-
|
|
898
|
+
f === null && (t.currentTarget.style.backgroundColor = "#f9f9f9", t.currentTarget.style.cursor = "pointer");
|
|
899
899
|
},
|
|
900
900
|
style: {
|
|
901
901
|
padding: `${n / 4}px ${n / 3}px`,
|
|
902
|
-
borderRadius: `${
|
|
902
|
+
borderRadius: `${S * 0.5}px`,
|
|
903
903
|
background: "#f9f9f9",
|
|
904
904
|
color: "#1f2937",
|
|
905
905
|
border: "1px solid #e5e7eb",
|
|
906
|
-
minWidth: `${Math.max(n * 1.5, (
|
|
906
|
+
minWidth: `${Math.max(n * 1.5, (p || i) * 0.04)}px`,
|
|
907
907
|
textAlign: "center",
|
|
908
908
|
display: "inline-block",
|
|
909
|
-
cursor:
|
|
909
|
+
cursor: f === null ? "pointer" : "default",
|
|
910
910
|
fontFamily: '"Onest", system-ui, sans-serif',
|
|
911
911
|
fontSize: `${Math.max(9, Math.min(12, s.bodyS * 0.75))}px`,
|
|
912
912
|
transition: "background-color 0.2s ease"
|
|
@@ -916,32 +916,32 @@ function We({
|
|
|
916
916
|
e
|
|
917
917
|
)) })
|
|
918
918
|
] }),
|
|
919
|
-
|
|
919
|
+
F.length > 0 && /* @__PURE__ */ o("div", { style: {
|
|
920
920
|
...a.gmGuessedLetters,
|
|
921
921
|
fontSize: `${Math.max(10, Math.min(12, s.bodyS * 0.85))}px`,
|
|
922
922
|
marginTop: `${n * 0.5}px`,
|
|
923
923
|
marginBottom: "2px"
|
|
924
924
|
}, children: /* @__PURE__ */ h("span", { style: { color: "#6b7280" }, children: [
|
|
925
925
|
"Guessed letters: ",
|
|
926
|
-
/* @__PURE__ */ o("strong", { children:
|
|
926
|
+
/* @__PURE__ */ o("strong", { children: F.join(", ") })
|
|
927
927
|
] }) }),
|
|
928
|
-
|
|
928
|
+
f === "win" && /* @__PURE__ */ o("div", { style: {
|
|
929
929
|
...a.gmStatusWin,
|
|
930
930
|
fontSize: `${s.bodyL}px`,
|
|
931
931
|
margin: "2px 0"
|
|
932
932
|
}, children: "🎉 You won this round!" }),
|
|
933
|
-
|
|
933
|
+
f === "lose" && /* @__PURE__ */ h("div", { style: {
|
|
934
934
|
...a.gmStatusLose,
|
|
935
935
|
fontSize: `${s.bodyL}px`,
|
|
936
936
|
margin: "2px 0"
|
|
937
937
|
}, children: [
|
|
938
938
|
"The hangman is complete! The word was: ",
|
|
939
|
-
/* @__PURE__ */ o("strong", { children:
|
|
939
|
+
/* @__PURE__ */ o("strong", { children: v })
|
|
940
940
|
] }),
|
|
941
|
-
|
|
941
|
+
f !== null && L < M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${n}px` }, children: /* @__PURE__ */ o(
|
|
942
942
|
"button",
|
|
943
943
|
{
|
|
944
|
-
onClick:
|
|
944
|
+
onClick: Le,
|
|
945
945
|
onMouseEnter: (e) => {
|
|
946
946
|
e.currentTarget.style.backgroundColor = "#d43a32";
|
|
947
947
|
},
|
|
@@ -952,15 +952,15 @@ function We({
|
|
|
952
952
|
...a.gmButton,
|
|
953
953
|
fontSize: `${Math.max(11, Math.min(14, s.button * 0.85))}px`,
|
|
954
954
|
padding: `${n * 0.6}px ${n * 1.2}px`,
|
|
955
|
-
borderRadius: `${
|
|
955
|
+
borderRadius: `${S}px`
|
|
956
956
|
},
|
|
957
957
|
children: "NEXT"
|
|
958
958
|
}
|
|
959
959
|
) }),
|
|
960
|
-
|
|
960
|
+
f !== null && L >= M && /* @__PURE__ */ o("div", { style: { marginTop: "2px", marginBottom: `${n}px` }, children: /* @__PURE__ */ o(
|
|
961
961
|
"button",
|
|
962
962
|
{
|
|
963
|
-
onClick: () =>
|
|
963
|
+
onClick: () => y("result"),
|
|
964
964
|
onMouseEnter: (e) => {
|
|
965
965
|
e.currentTarget.style.backgroundColor = "#d43a32";
|
|
966
966
|
},
|
|
@@ -971,18 +971,18 @@ function We({
|
|
|
971
971
|
...a.gmButton,
|
|
972
972
|
fontSize: `${s.button}px`,
|
|
973
973
|
padding: `${n}px ${n * 1.5}px`,
|
|
974
|
-
borderRadius: `${
|
|
974
|
+
borderRadius: `${S}px`
|
|
975
975
|
},
|
|
976
976
|
children: "View results"
|
|
977
977
|
}
|
|
978
978
|
) }),
|
|
979
|
-
|
|
979
|
+
f === null && F.length === 0 && /* @__PURE__ */ o("p", { style: {
|
|
980
980
|
...a.gmBodyS,
|
|
981
981
|
fontSize: `${s.bodyS}px`,
|
|
982
982
|
marginTop: `${n}px`,
|
|
983
983
|
marginBottom: `${n}px`
|
|
984
984
|
}, children: "Type a letter on your keyboard" })
|
|
985
|
-
] }) :
|
|
985
|
+
] }) : x === "result" ? /* @__PURE__ */ h(G, { children: [
|
|
986
986
|
X,
|
|
987
987
|
/* @__PURE__ */ o("h1", { style: {
|
|
988
988
|
...a.gmHeadline1,
|
|
@@ -997,7 +997,7 @@ function We({
|
|
|
997
997
|
"You guessed ",
|
|
998
998
|
/* @__PURE__ */ o("strong", { children: te }),
|
|
999
999
|
" out of ",
|
|
1000
|
-
/* @__PURE__ */ o("strong", { children:
|
|
1000
|
+
/* @__PURE__ */ o("strong", { children: M }),
|
|
1001
1001
|
" words correctly."
|
|
1002
1002
|
] }),
|
|
1003
1003
|
/* @__PURE__ */ h("div", { style: {
|
|
@@ -1010,13 +1010,13 @@ function We({
|
|
|
1010
1010
|
"button",
|
|
1011
1011
|
{
|
|
1012
1012
|
onClick: () => {
|
|
1013
|
-
if (!
|
|
1014
|
-
|
|
1013
|
+
if (!b || M === 0) {
|
|
1014
|
+
y("lobby");
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
|
|
1018
|
-
const e = U(
|
|
1019
|
-
e && (
|
|
1017
|
+
z([]);
|
|
1018
|
+
const e = U(b, []);
|
|
1019
|
+
e && (I(e), z([e]), R([]), T(0), H(1), A(0), B(null), y("game"));
|
|
1020
1020
|
},
|
|
1021
1021
|
onMouseEnter: (e) => {
|
|
1022
1022
|
e.currentTarget.style.backgroundColor = "#d43a32";
|
|
@@ -1028,7 +1028,7 @@ function We({
|
|
|
1028
1028
|
...a.gmButton,
|
|
1029
1029
|
fontSize: `${s.button}px`,
|
|
1030
1030
|
padding: `${n}px ${n * 1.5}px`,
|
|
1031
|
-
borderRadius: `${
|
|
1031
|
+
borderRadius: `${S}px`,
|
|
1032
1032
|
minWidth: "200px"
|
|
1033
1033
|
},
|
|
1034
1034
|
children: "Play again"
|
|
@@ -1037,7 +1037,7 @@ function We({
|
|
|
1037
1037
|
/* @__PURE__ */ o(
|
|
1038
1038
|
"button",
|
|
1039
1039
|
{
|
|
1040
|
-
onClick: () =>
|
|
1040
|
+
onClick: () => y("lobby"),
|
|
1041
1041
|
onMouseEnter: (e) => {
|
|
1042
1042
|
e.currentTarget.style.backgroundColor = "#e5e7eb";
|
|
1043
1043
|
},
|
|
@@ -1049,7 +1049,7 @@ function We({
|
|
|
1049
1049
|
...a.gmButtonSecondary,
|
|
1050
1050
|
fontSize: `${s.button}px`,
|
|
1051
1051
|
padding: `${n}px ${n * 1.5}px`,
|
|
1052
|
-
borderRadius: `${
|
|
1052
|
+
borderRadius: `${S}px`,
|
|
1053
1053
|
minWidth: "200px"
|
|
1054
1054
|
},
|
|
1055
1055
|
children: "Exit"
|
|
@@ -1078,8 +1078,8 @@ function We({
|
|
|
1078
1078
|
"div",
|
|
1079
1079
|
{
|
|
1080
1080
|
style: {
|
|
1081
|
-
width: d ? "100%" :
|
|
1082
|
-
height: d ? "100%" :
|
|
1081
|
+
width: d ? "100%" : p || i || 1e3,
|
|
1082
|
+
height: d ? "100%" : p || i || 1e3,
|
|
1083
1083
|
display: "flex",
|
|
1084
1084
|
justifyContent: "center",
|
|
1085
1085
|
alignItems: "center",
|
|
@@ -1103,7 +1103,7 @@ function We({
|
|
|
1103
1103
|
justifyContent: "center",
|
|
1104
1104
|
alignItems: "center"
|
|
1105
1105
|
},
|
|
1106
|
-
children: /* @__PURE__ */ o("div", { style:
|
|
1106
|
+
children: /* @__PURE__ */ o("div", { style: Te, children: Be() })
|
|
1107
1107
|
}
|
|
1108
1108
|
)
|
|
1109
1109
|
}
|
|
@@ -1112,8 +1112,8 @@ function We({
|
|
|
1112
1112
|
);
|
|
1113
1113
|
}
|
|
1114
1114
|
export {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1115
|
+
Ye as Game,
|
|
1116
|
+
Ye as HangmanLobbyGame,
|
|
1117
|
+
Ye as default
|
|
1118
1118
|
};
|
|
1119
1119
|
//# sourceMappingURL=speakid-hangman.es.js.map
|