@mblinkov/whats-missing 20.0.49 → 20.0.50

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,9 +1,9 @@
1
- import { jsx as d, jsxs as p, Fragment as Pn } from "react/jsx-runtime";
2
- import { useRef as V, useEffect as rn, useState as h, useMemo as Xn } from "react";
3
- const ni = window.origin + "/cloud/speakid/games/whatsmissing/", hn = (o, y) => o.map(([s, g]) => ({
4
- src: `${ni}${y}/${g.replace(/\s/g, "%20")}.png`,
1
+ import { jsx as d, jsxs as p, Fragment as kn } from "react/jsx-runtime";
2
+ import { useRef as Z, useEffect as hn, useState as h, useMemo as ii } from "react";
3
+ const ei = window.origin + "/cloud/speakid/games/whatsmissing/", gn = (o, y) => o.map(([s, g]) => ({
4
+ src: `${ei}${y}/${g.replace(/\s/g, "%20")}.png`,
5
5
  name: g
6
- })), ii = [
6
+ })), ti = [
7
7
  ["apple", "apple"],
8
8
  ["banana", "banana"],
9
9
  ["bread", "bread"],
@@ -29,7 +29,7 @@ const ni = window.origin + "/cloud/speakid/games/whatsmissing/", hn = (o, y) =>
29
29
  ["strawberry", "strawberry"],
30
30
  ["tomato", "tomato"],
31
31
  ["watermelon", "watermelon"]
32
- ], ei = [
32
+ ], wi = [
33
33
  ["bear", "bear"],
34
34
  ["cat", "cat"],
35
35
  ["crocodile", "crocodile"],
@@ -49,7 +49,7 @@ const ni = window.origin + "/cloud/speakid/games/whatsmissing/", hn = (o, y) =>
49
49
  ["tortoise", "tortoise"],
50
50
  ["wolf", "wolf"],
51
51
  ["zebra", "zebra"]
52
- ], ti = [
52
+ ], di = [
53
53
  ["ball", "ball"],
54
54
  ["balloon", "balloon"],
55
55
  ["blocks", "blocks"],
@@ -70,10 +70,10 @@ const ni = window.origin + "/cloud/speakid/games/whatsmissing/", hn = (o, y) =>
70
70
  ["yo-yo", "yo-yo"],
71
71
  ["crayons", "crayons"]
72
72
  ], _ = {
73
- food: hn(ii, "food"),
74
- animals: hn(ei, "animals"),
75
- toys: hn(ti, "toys")
76
- }, wi = `
73
+ food: gn(ti, "food"),
74
+ animals: gn(wi, "animals"),
75
+ toys: gn(di, "toys")
76
+ }, oi = `
77
77
  @keyframes spin {
78
78
  from { transform: rotate(0deg); }
79
79
  to { transform: rotate(360deg); }
@@ -81,9 +81,9 @@ const ni = window.origin + "/cloud/speakid/games/whatsmissing/", hn = (o, y) =>
81
81
  `;
82
82
  if (typeof document < "u" && !document.getElementById("spin-keyframes")) {
83
83
  const o = document.createElement("style");
84
- o.id = "spin-keyframes", o.innerHTML = wi, document.head.appendChild(o);
84
+ o.id = "spin-keyframes", o.innerHTML = oi, document.head.appendChild(o);
85
85
  }
86
- const di = {
86
+ const ri = {
87
87
  animation: "spin 1.4s linear infinite"
88
88
  }, w = {
89
89
  gmCenterScreen: {
@@ -218,9 +218,9 @@ const di = {
218
218
  },
219
219
  gmHourglass: {
220
220
  fontSize: "42px",
221
- ...di
221
+ ...ri
222
222
  }
223
- }, oi = () => {
223
+ }, hi = () => {
224
224
  const o = document.createElement("style");
225
225
  o.id = "whats-missing-reset", o.textContent = `
226
226
  #whats-missing-root, #whats-missing-root * {
@@ -251,7 +251,7 @@ const di = {
251
251
  `;
252
252
  const y = document.getElementById("whats-missing-reset");
253
253
  y && y.remove(), document.head.appendChild(o);
254
- }, ri = (o, y) => {
254
+ }, gi = (o, y) => {
255
255
  const s = Array.from({ length: o.length + 1 }, () => Array(y.length + 1).fill(0));
256
256
  for (let g = 0; g <= o.length; g++) s[g][0] = g;
257
257
  for (let g = 0; g <= y.length; g++) s[0][g] = g;
@@ -259,13 +259,13 @@ const di = {
259
259
  for (let a = 1; a <= y.length; a++)
260
260
  s[g][a] = o[g - 1] === y[a - 1] ? s[g - 1][a - 1] : Math.min(s[g - 1][a - 1], s[g][a - 1], s[g - 1][a]) + 1;
261
261
  return s[o.length][y.length];
262
- }, hi = (o) => new Promise((y) => {
262
+ }, si = (o) => new Promise((y) => {
263
263
  const s = new Image();
264
264
  s.onload = () => y(s), s.onerror = () => y(s), s.src = o;
265
- }), gn = async (o, y) => {
265
+ }), sn = async (o, y) => {
266
266
  const s = /* @__PURE__ */ new Map(), g = o.map(async (a) => {
267
- const E = await hi(a);
268
- s.set(a, E);
267
+ const j = await si(a);
268
+ s.set(a, j);
269
269
  });
270
270
  return await Promise.allSettled(g), s;
271
271
  };
@@ -274,109 +274,109 @@ function li({
274
274
  screenHeight: y,
275
275
  screenWidth: s
276
276
  }) {
277
- const g = V(null);
278
- rn(() => (oi(), () => {
277
+ const g = Z(null);
278
+ hn(() => (hi(), () => {
279
279
  document.documentElement.style.overflow = "", document.body.style.overflow = "";
280
280
  const i = document.getElementById("whats-missing-reset");
281
281
  i && i.remove(), v.current && v.current.abort();
282
282
  }), []);
283
- const [a, E] = h(null), [L, sn] = h([]), [j, kn] = h(4), [R, an] = h(!1), [D, pn] = h(1), [k, zn] = h(null), [S, G] = h("ready"), [ln, xn] = h(10), [q, K] = h(10), [O, cn] = h(20), [Tn, Z] = h(0), [F, J] = h(!1), [U, Hn] = h(""), [T, Q] = h(!1), [X, Wn] = h(!1), [mn, B] = h(null), [Mn, nn] = h([]), [Ln, fn] = h([]), [n, Rn] = h(!1), [Bn, Y] = h(1), [un, $] = h(null), [I, Cn] = h(!1), [l, An] = h(!1), [x, En] = h(!1), [c, jn] = h(!1), [H, Dn] = h(!1), [W, Gn] = h(!1), [m, Fn] = h(!1), [f, Un] = h(!1), [u, Yn] = h(!1), [en, $n] = h(!1), [gi, si] = h(!1), tn = V(/* @__PURE__ */ new Set()), N = V(/* @__PURE__ */ new Map()), v = V(null);
284
- rn(() => {
283
+ const [a, j] = h(null), [R, an] = h([]), [D, zn] = h(4), [B, pn] = h(!1), [G, ln] = h(1), [z, Tn] = h(null), [S, F] = h("ready"), [xn, cn] = h(10), [q, K] = h(10), [O, Hn] = h(20), [Mn, J] = h(0), [U, Q] = h(!1), [Y, Wn] = h(""), [L, X] = h(!1), [nn, mn] = h(!1), [fn, C] = h(null), [Ln, en] = h([]), [Rn, un] = h([]), [n, Bn] = h(!1), [Cn, $] = h(1), [yn, N] = h(null), [I, An] = h(!1), [l, En] = h(!1), [x, jn] = h(!1), [c, Dn] = h(!1), [H, Gn] = h(!1), [W, Fn] = h(!1), [m, Un] = h(!1), [f, Yn] = h(!1), [u, $n] = h(!1), [tn, Nn] = h(!1), [P, Vn] = h(!1), wn = Z(/* @__PURE__ */ new Set()), V = Z(/* @__PURE__ */ new Map()), v = Z(null);
284
+ hn(() => {
285
285
  const i = () => {
286
- const e = s ?? window.innerWidth, t = y ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, b = t < 700, M = e / t > 1.8, C = e === 768 && t === 1024, dn = e === 1024 && t === 768, A = e === 820 && t === 1180, P = e === 1180 && t === 820, z = e === 540 && t === 720, In = e === 720 && t === 540, Sn = e === 1024 && t === 1366, vn = e === 1366 && t === 1024, On = e >= 1200 && t >= 600 && !r;
287
- Cn(On), An(C), En(dn), jn(A), Dn(P), Gn(z), Fn(In), Un(Sn), Yn(vn);
288
- const Zn = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
289
- t < 700 || M || // ✅ Широкие экраны
290
- e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || C || dn || A || P || z || In || Sn || vn || I;
291
- if ($n(Zn), Rn(r), r)
292
- $(o && o >= 320 ? o : null), Y(1);
286
+ const e = s ?? window.innerWidth, t = y ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, b = t < 700, T = e / t > 1.8, A = e === 768 && t === 1024, on = e === 1024 && t === 768, E = e === 820 && t === 1180, k = e === 1180 && t === 820, M = e === 540 && t === 720, Sn = e === 720 && t === 540, vn = e === 1024 && t === 1366, Pn = e === 1366 && t === 1024, Jn = e >= 1200 && t >= 600 && !r;
287
+ An(Jn), En(A), jn(on), Dn(E), Gn(k), Fn(M), Un(Sn), Yn(vn), $n(Pn), Vn(T);
288
+ const Qn = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
289
+ t < 700 || T || // ✅ Широкие экраны
290
+ e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || A || on || E || k || M || Sn || vn || Pn || I;
291
+ if (Nn(Qn), Bn(r), r)
292
+ N(o && o >= 320 ? o : null), $(1);
293
293
  else if (b)
294
- $(o && o >= 400 ? o : null), Y(1);
295
- else if (M) {
296
- const on = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
297
- $(on), Y(0.85);
294
+ N(o && o >= 400 ? o : null), $(1);
295
+ else if (T) {
296
+ const rn = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
297
+ N(rn), $(0.85);
298
298
  } else {
299
- const on = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
300
- $(on), Y(1);
299
+ const rn = o ? Math.max(400, Math.min(1200, o)) : Math.min(1e3, Math.min(e, t) * 0.9);
300
+ N(rn), $(1);
301
301
  }
302
302
  };
303
303
  return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
304
304
  }, [s, y, o]);
305
- const wn = (i) => [...i].sort(() => Math.random() - 0.5).slice(0, 6), Nn = (i) => {
305
+ const dn = (i) => [...i].sort(() => Math.random() - 0.5).slice(0, 6), Zn = (i) => {
306
306
  v.current && v.current.abort(), v.current = new AbortController();
307
307
  const t = _[i].map((r) => r.src);
308
- gn(t, v.current.signal).then((r) => {
308
+ sn(t, v.current.signal).then((r) => {
309
309
  t.forEach((b) => {
310
- tn.current.add(b), r.has(b) && N.current.set(b, r.get(b));
310
+ wn.current.add(b), r.has(b) && V.current.set(b, r.get(b));
311
311
  });
312
312
  }).catch(() => {
313
313
  });
314
- }, yn = () => {
314
+ }, bn = () => {
315
315
  if (!a) return;
316
- const i = wn(_[a]);
317
- sn(i), an(!0), J(!1), pn(1), Z(0), nn([]), fn([]);
316
+ const i = dn(_[a]);
317
+ an(i), pn(!0), Q(!1), ln(1), J(0), en([]), un([]);
318
318
  const e = i.map((t) => t.src);
319
- gn(e, v.current?.signal).then((t) => {
319
+ sn(e, v.current?.signal).then((t) => {
320
320
  e.forEach((r) => {
321
- tn.current.add(r), t.has(r) && N.current.set(r, t.get(r));
321
+ wn.current.add(r), t.has(r) && V.current.set(r, t.get(r));
322
322
  });
323
323
  }).catch(() => {
324
- }), bn(i, [], !0);
325
- }, bn = (i = L, e = Ln, t = !1) => {
326
- const r = wn(i.length ? i : _[a]);
327
- let b = Math.floor(Math.random() * r.length), M = r[b].name, C = 0;
328
- for (; e.includes(M) && C < 20; )
329
- b = Math.floor(Math.random() * r.length), M = r[b].name, C++;
330
- if (sn(r), zn(b), fn([...e, M]), Q(!1), Hn(""), cn(20), B(null), a && !t) {
331
- const A = wn(_[a].filter((P) => !e.includes(P.name))).map((P) => P.src);
332
- gn(A, v.current?.signal).then((P) => {
333
- A.forEach((z) => {
334
- tn.current.add(z), P.has(z) && N.current.set(z, P.get(z));
324
+ }), In(i, [], !0);
325
+ }, In = (i = R, e = Rn, t = !1) => {
326
+ const r = dn(i.length ? i : _[a]);
327
+ let b = Math.floor(Math.random() * r.length), T = r[b].name, A = 0;
328
+ for (; e.includes(T) && A < 20; )
329
+ b = Math.floor(Math.random() * r.length), T = r[b].name, A++;
330
+ if (an(r), Tn(b), un([...e, T]), X(!1), Wn(""), Hn(20), C(null), a && !t) {
331
+ const E = dn(_[a].filter((k) => !e.includes(k.name))).map((k) => k.src);
332
+ sn(E, v.current?.signal).then((k) => {
333
+ E.forEach((M) => {
334
+ wn.current.add(M), k.has(M) && V.current.set(M, k.get(M));
335
335
  });
336
336
  }).catch(() => {
337
337
  });
338
338
  }
339
- t ? (G("ready"), xn(10), K(10)) : (G("memorize"), K(10));
339
+ t ? (F("ready"), cn(10), K(10)) : (F("memorize"), K(10));
340
340
  };
341
- rn(() => {
342
- if (!(!R || F || T)) {
341
+ hn(() => {
342
+ if (!(!B || U || L)) {
343
343
  if (S === "ready")
344
- if (ln <= 0) G("memorize");
344
+ if (xn <= 0) F("memorize");
345
345
  else {
346
- const i = setTimeout(() => xn((e) => e - 1), 1e3);
346
+ const i = setTimeout(() => cn((e) => e - 1), 1e3);
347
347
  return () => clearTimeout(i);
348
348
  }
349
349
  if (S === "memorize")
350
- if (q <= 0) G("guess");
350
+ if (q <= 0) F("guess");
351
351
  else {
352
352
  const i = setTimeout(() => K((e) => e - 1), 1e3);
353
353
  return () => clearTimeout(i);
354
354
  }
355
355
  if (S === "guess") {
356
356
  if (O <= 0) {
357
- Q(!0), B("wrong");
358
- const e = L[k].name;
359
- nn((t) => [
357
+ X(!0), C("wrong");
358
+ const e = R[z].name;
359
+ en((t) => [
360
360
  ...t,
361
- { round: D, answer: U, correct: e, result: "wrong" }
361
+ { round: G, answer: Y, correct: e, result: "wrong" }
362
362
  ]);
363
363
  return;
364
364
  }
365
- const i = setTimeout(() => cn((e) => e - 1), 1e3);
365
+ const i = setTimeout(() => Hn((e) => e - 1), 1e3);
366
366
  return () => clearTimeout(i);
367
367
  }
368
368
  }
369
- }, [S, ln, q, O, R, F, T, L, k, D, U]);
370
- const Vn = () => {
371
- if (k === null || X) return;
372
- const i = L[k].name, e = U.toLowerCase().trim();
369
+ }, [S, xn, q, O, B, U, L, R, z, G, Y]);
370
+ const _n = () => {
371
+ if (z === null || nn) return;
372
+ const i = R[z].name, e = Y.toLowerCase().trim();
373
373
  let t = "wrong";
374
- e === i ? (Z((r) => r + 1), B("correct"), t = "correct") : ri(e, i) === 1 ? (Z((r) => r + 0.5), B("almost"), t = "almost") : (B("wrong"), t = "wrong"), nn((r) => [...r, { round: D, answer: e, correct: i, result: t }]), Wn(!0), setTimeout(() => {
375
- Wn(!1), Q(!0);
374
+ e === i ? (J((r) => r + 1), C("correct"), t = "correct") : gi(e, i) === 1 ? (J((r) => r + 0.5), C("almost"), t = "almost") : (C("wrong"), t = "wrong"), en((r) => [...r, { round: G, answer: e, correct: i, result: t }]), mn(!0), setTimeout(() => {
375
+ mn(!1), X(!0);
376
376
  }, 600);
377
- }, _n = () => D < j ? (pn((i) => i + 1), bn()) : J(!0), qn = () => {
378
- v.current && v.current.abort(), an(!1), J(!1), E(null);
379
- }, Kn = Xn(
377
+ }, qn = () => G < D ? (ln((i) => i + 1), In()) : Q(!0), Kn = () => {
378
+ v.current && v.current.abort(), pn(!1), Q(!1), j(null);
379
+ }, On = ii(
380
380
  () => n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? null : (
381
381
  // ensure logo is positioned inside the square container
382
382
  /* @__PURE__ */ d("div", { style: { ...w.gmLogoFixed, position: "absolute", top: 16, left: 16, zIndex: 30 }, children: /* @__PURE__ */ p("picture", { children: [
@@ -423,8 +423,8 @@ function li({
423
423
  "div",
424
424
  {
425
425
  style: {
426
- width: n ? "100%" : un || o || 1e3,
427
- height: n ? "100%" : un || o || 1e3,
426
+ width: n ? "100%" : yn || o || 1e3,
427
+ height: n ? "100%" : yn || o || 1e3,
428
428
  display: "flex",
429
429
  justifyContent: "center",
430
430
  alignItems: "center",
@@ -435,14 +435,14 @@ function li({
435
435
  margin: n ? "0 auto" : "unset",
436
436
  position: "relative",
437
437
  // needed so absolute logo is inside the square
438
- transform: `scale(${Bn})`
438
+ transform: `scale(${Cn})`
439
439
  // ✅ Применяем масштаб для широких экранов
440
440
  },
441
441
  children: /* @__PURE__ */ d(
442
442
  "div",
443
443
  {
444
444
  style: {
445
- transform: "none",
445
+ transform: "translateZ(0)",
446
446
  width: "100%",
447
447
  height: "100%",
448
448
  display: "flex",
@@ -450,8 +450,8 @@ function li({
450
450
  alignItems: "center"
451
451
  },
452
452
  children: /* @__PURE__ */ p("div", { id: "whats-missing-root", children: [
453
- !n && Kn,
454
- !a && !R && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
453
+ !n && On,
454
+ !a && !B && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
455
455
  /* @__PURE__ */ d("h1", { style: w.gmHeadline1, children: "WHAT'S MISSING?" }),
456
456
  /* @__PURE__ */ d("p", { style: w.gmBodyM, children: "Select a theme:" }),
457
457
  /* @__PURE__ */ d("div", { style: { display: "flex", gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "16px" }, children: ["animals", "food", "toys"].map((i) => /* @__PURE__ */ d("button", { style: {
@@ -460,7 +460,7 @@ function li({
460
460
  fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
461
461
  minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "70px" : "auto"
462
462
  }, onClick: () => {
463
- E(i), Nn(i);
463
+ j(i), Zn(i);
464
464
  }, children: i === "animals" ? "🐶 Animals" : i === "food" ? "🍎 Food" : "🧸 Toys" }, i)) }),
465
465
  /* @__PURE__ */ p("div", { style: { marginTop: 24 }, children: [
466
466
  /* @__PURE__ */ d("p", { style: w.gmBodyS, children: "Choose number of rounds:" }),
@@ -469,35 +469,35 @@ function li({
469
469
  {
470
470
  style: {
471
471
  ...w.gmButton,
472
- ...j === i ? w.gmButtonActive : {},
472
+ ...D === i ? w.gmButtonActive : {},
473
473
  padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
474
474
  fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
475
475
  minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
476
476
  },
477
- onClick: () => kn(i),
477
+ onClick: () => zn(i),
478
478
  children: i
479
479
  },
480
480
  i
481
481
  )) })
482
482
  ] })
483
483
  ] }),
484
- a && !R && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
484
+ a && !B && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
485
485
  /* @__PURE__ */ p("h1", { style: w.gmHeadline1, children: [
486
486
  "Theme selected: ",
487
487
  a
488
488
  ] }),
489
489
  /* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
490
490
  "Rounds: ",
491
- j
491
+ D
492
492
  ] }),
493
493
  /* @__PURE__ */ d("button", { style: {
494
494
  ...w.gmButton,
495
495
  padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
496
496
  fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
497
497
  minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
498
- }, onClick: yn, children: "▶ Start game" })
498
+ }, onClick: bn, children: "▶ Start game" })
499
499
  ] }),
500
- F && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
500
+ U && /* @__PURE__ */ p("div", { style: w.gmCenterScreen, children: [
501
501
  /* @__PURE__ */ d("h1", { style: {
502
502
  ...w.gmHeadline1,
503
503
  marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || x || c || H || W || m || f || u ? "0px" : w.gmHeadline1.marginTop,
@@ -509,9 +509,9 @@ function li({
509
509
  marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || x || c || H || W || m || f || u ? "2px" : w.gmHeadline3.marginBottom
510
510
  }, children: [
511
511
  "Your score: ",
512
- Tn,
512
+ Mn,
513
513
  " / ",
514
- j
514
+ D
515
515
  ] }),
516
516
  /* @__PURE__ */ d("p", { style: {
517
517
  ...w.gmBodyM,
@@ -530,7 +530,7 @@ function li({
530
530
  /* @__PURE__ */ d("th", { children: "Correct" }),
531
531
  /* @__PURE__ */ d("th", { children: "Result" })
532
532
  ] }) }),
533
- /* @__PURE__ */ d("tbody", { children: Mn.map((i, e) => /* @__PURE__ */ p("tr", { children: [
533
+ /* @__PURE__ */ d("tbody", { children: Ln.map((i, e) => /* @__PURE__ */ p("tr", { children: [
534
534
  /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.round }),
535
535
  /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.answer || "—" }),
536
536
  /* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.correct }),
@@ -547,29 +547,29 @@ function li({
547
547
  padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
548
548
  fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
549
549
  minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
550
- }, onClick: yn, children: "🔁 Play again" }),
550
+ }, onClick: bn, children: "🔁 Play again" }),
551
551
  /* @__PURE__ */ d("button", { style: {
552
552
  ...w.gmButton,
553
553
  padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
554
554
  fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
555
555
  minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
556
- }, onClick: qn, children: "⬅️ Choose theme" })
556
+ }, onClick: Kn, children: "⬅️ Choose theme" })
557
557
  ] })
558
558
  ] }),
559
- R && !F && /* @__PURE__ */ p("div", { style: w.gmGameLayout, children: [
559
+ B && !U && /* @__PURE__ */ p("div", { style: w.gmGameLayout, children: [
560
560
  /* @__PURE__ */ p(
561
561
  "div",
562
562
  {
563
563
  style: {
564
- minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
564
+ minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
565
565
  display: "flex",
566
566
  flexDirection: "column",
567
567
  justifyContent: "center",
568
568
  alignItems: "center",
569
- paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
569
+ paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
570
570
  },
571
571
  children: [
572
- S === "ready" && /* @__PURE__ */ p(Pn, { children: [
572
+ S === "ready" && /* @__PURE__ */ p(kn, { children: [
573
573
  /* @__PURE__ */ d("h1", { style: { ...w.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
574
574
  /* @__PURE__ */ d("div", { style: w.gmHourglass, children: "⏳" })
575
575
  ] }),
@@ -578,7 +578,7 @@ function li({
578
578
  q,
579
579
  ")"
580
580
  ] }),
581
- S === "guess" && !T && /* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
581
+ S === "guess" && !L && /* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
582
582
  "⏳ Time left: ",
583
583
  O,
584
584
  "s"
@@ -591,17 +591,19 @@ function li({
591
591
  {
592
592
  style: {
593
593
  ...w.gmGrid,
594
- gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : "repeat(3, 210px)",
594
+ ...P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
595
+ // ✅ Широкие экраны: полная ширина грида
596
+ gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
595
597
  // desktop: 3 колонки фиксированного размера
596
- gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : "210px",
598
+ gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
597
599
  // desktop: стандартная высота
598
- gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : "20px",
600
+ gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
599
601
  justifyItems: "center",
600
602
  maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
601
- padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : "16px"
603
+ padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
602
604
  },
603
- children: L.map((i, e) => {
604
- const t = k === e && S === "guess" && !T;
605
+ children: R.map((i, e) => {
606
+ const t = z === e && S === "guess" && !L;
605
607
  return /* @__PURE__ */ d(
606
608
  "div",
607
609
  {
@@ -613,17 +615,17 @@ function li({
613
615
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
614
616
  transition: "all 0.3s ease",
615
617
  cursor: "pointer",
616
- ...mn === "correct" && k === e ? {
618
+ ...fn === "correct" && z === e ? {
617
619
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
618
620
  transform: "scale(1.03)"
619
621
  } : {},
620
- ...mn === "wrong" && k === e ? {
622
+ ...fn === "wrong" && z === e ? {
621
623
  boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
622
624
  transform: "scale(1.03)"
623
625
  } : {}
624
626
  },
625
627
  children: !t && (() => {
626
- const r = N.current.get(i.src), b = r?.complete && r.src ? r.src : i.src;
628
+ const r = V.current.get(i.src), b = r?.complete && r.src ? r.src : i.src;
627
629
  return /* @__PURE__ */ d(
628
630
  "img",
629
631
  {
@@ -648,31 +650,31 @@ function li({
648
650
  }
649
651
  ),
650
652
  /* @__PURE__ */ p("div", { style: {
651
- marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
652
- height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
653
+ marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
654
+ height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : P || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
653
655
  }, children: [
654
- S === "guess" && !T && /* @__PURE__ */ d("div", { style: {
656
+ S === "guess" && !L && /* @__PURE__ */ d("div", { style: {
655
657
  display: "flex",
656
- flexDirection: en ? "row" : "column",
658
+ flexDirection: tn ? "row" : "column",
657
659
  gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
658
660
  alignItems: "center",
659
661
  justifyContent: "center",
660
662
  width: "100%",
661
663
  maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
662
- }, children: /* @__PURE__ */ p(Pn, { children: [
664
+ }, children: /* @__PURE__ */ p(kn, { children: [
663
665
  /* @__PURE__ */ d(
664
666
  "input",
665
667
  {
666
668
  type: "text",
667
669
  placeholder: "Type the missing word",
668
- value: U,
669
- onChange: (i) => Hn(i.target.value),
670
+ value: Y,
671
+ onChange: (i) => Wn(i.target.value),
670
672
  style: {
671
673
  ...w.gmInput,
672
674
  width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
673
675
  padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
674
676
  fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
675
- flex: en ? "1" : "none"
677
+ flex: tn ? "1" : "none"
676
678
  }
677
679
  }
678
680
  ),
@@ -681,23 +683,23 @@ function li({
681
683
  {
682
684
  style: {
683
685
  ...w.gmButton,
684
- marginLeft: en ? "8px" : "0",
686
+ marginLeft: tn ? "8px" : "0",
685
687
  padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
686
688
  fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
687
689
  minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
688
690
  flexShrink: 0
689
691
  },
690
- onClick: Vn,
691
- disabled: X,
692
- children: X ? "..." : "Check"
692
+ onClick: _n,
693
+ disabled: nn,
694
+ children: nn ? "..." : "Check"
693
695
  }
694
696
  )
695
697
  ] }) }),
696
- T && /* @__PURE__ */ d("button", { style: {
698
+ L && /* @__PURE__ */ d("button", { style: {
697
699
  ...w.gmButton,
698
700
  padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
699
701
  fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || x || c || H || W || m || f || u || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
700
- }, onClick: _n, children: "Next round" })
702
+ }, onClick: qn, children: "Next round" })
701
703
  ] })
702
704
  ] })
703
705
  ] })
package/package.json CHANGED
@@ -1,9 +1,29 @@
1
1
  {
2
2
  "name": "@mblinkov/whats-missing",
3
- "version": "20.0.49",
4
- "main": "dist/whats-missing.umd.js",
3
+ "version": "20.0.50",
4
+ "description": "A memory game component for React - Guess what's missing from a collection of images",
5
+ "main": "dist/whats-missing.cjs.js",
5
6
  "module": "dist/whats-missing.es.js",
6
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "CHANGELOG.md"
12
+ ],
13
+ "keywords": [
14
+ "react",
15
+ "react-component",
16
+ "memory-game",
17
+ "whats-missing",
18
+ "game",
19
+ "typescript"
20
+ ],
21
+ "author": "Mihail Blinkov",
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/mblinkov/whats-missing"
26
+ },
7
27
  "peerDependencies": {
8
28
  "react": "^18.3.1",
9
29
  "react-dom": "^18.3.1"
@@ -18,6 +38,7 @@
18
38
  "@types/react": "^19.2.2",
19
39
  "@types/react-dom": "^19.2.1",
20
40
  "@vitejs/plugin-react": "^5.0.4",
21
- "typescript": "^5.9.3"
41
+ "typescript": "^5.9.3",
42
+ "vite-plugin-dts": "^4.5.4"
22
43
  }
23
44
  }