@articles-media/articles-dev-box 1.0.23 → 1.0.25

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.
Files changed (35) hide show
  1. package/dist/Ad-BAvmOFcq.js +503 -0
  2. package/dist/Ad.js +1 -1
  3. package/dist/AdConfirmExitModal-BNFKKayL.js +55 -0
  4. package/dist/AdDetailsModal-Cv1ll9G-.js +107 -0
  5. package/dist/ArticlesAd.js +7 -8
  6. package/dist/{Button-BlAdEbSd.js → Button-CU11ETla.js} +9 -9
  7. package/dist/CreditsModal.js +50 -25
  8. package/dist/DarkModeHandler.js +11 -12
  9. package/dist/FriendsList.js +40 -41
  10. package/dist/{GameScoreboard-CBY3JsFa.js → GameScoreboard-Dj5mTFTn.js} +48 -49
  11. package/dist/GameScoreboard.js +1 -1
  12. package/dist/GlobalBody.js +20 -20
  13. package/dist/GlobalHead.js +2 -3
  14. package/dist/Link-8nSDV4sI.js +16 -0
  15. package/dist/ReturnToLauncherButton.js +17 -18
  16. package/dist/SettingsModal-tXcbd23J.js +246 -0
  17. package/dist/SettingsModal.js +1 -1
  18. package/dist/StatusModal-CBzdZdAm.js +69 -0
  19. package/dist/ViewUserModal-C_gWUvXi.js +1544 -0
  20. package/dist/ViewUserModal.js +1 -1
  21. package/dist/{classnames-DP6dWde5.js → classnames-CpG5mzJ5.js} +12 -4
  22. package/dist/index.js +4 -4
  23. package/dist/numberWithCommas-rN3cZDJL.js +1170 -0
  24. package/package.json +1 -1
  25. package/dist/Ad-Ck5UdTq3.js +0 -387
  26. package/dist/AdConfirmExitModal-CJ-HtcVC.js +0 -56
  27. package/dist/AdDetailsModal-DRNRTL2W.js +0 -108
  28. package/dist/Link-MFZblBb4.js +0 -17
  29. package/dist/Modal-BX1s6CCU.js +0 -1631
  30. package/dist/SettingsModal-XI2dMI09.js +0 -247
  31. package/dist/StatusModal-elrPJvX1.js +0 -70
  32. package/dist/ViewUserModal-DDjWLpyM.js +0 -3094
  33. package/dist/jsx-runtime-VZk6y-ec.js +0 -191
  34. package/dist/numberWithCommas-BSKBdR-e.js +0 -18
  35. /package/dist/{useAuthSiteStatus-1rHjYC4N.js → useAuthSiteStatus-Cj9IjMj7.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { r as e, t } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t as n } from "./classnames-DP6dWde5.js";
3
- import { forwardRef as r } from "react";
1
+ import { n as e, t } from "./classnames-CpG5mzJ5.js";
2
+ import { forwardRef as n } from "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/components/UI/Button.jsx
5
- var i = /* @__PURE__ */ e(n(), 1), a = t(), o = r((e, t) => {
6
- let { size: n, variant: r, style: o, small: s, large: c, onClick: l, className: u, disabled: d, active: f, type: p, onMouseDown: m, onMouseUp: h, onMouseLeave: g, onTouchStart: _, onTouchEnd: v, ...y } = e;
7
- return /* @__PURE__ */ (0, a.jsx)("button", {
5
+ var i = /* @__PURE__ */ e(t(), 1), a = n((e, t) => {
6
+ let { size: n, variant: a, style: o, small: s, large: c, onClick: l, className: u, disabled: d, active: f, type: p, onMouseDown: m, onMouseUp: h, onMouseLeave: g, onTouchStart: _, onTouchEnd: v, ...y } = e;
7
+ return /* @__PURE__ */ r("button", {
8
8
  ref: t,
9
9
  ...p && { type: "submit" },
10
10
  disabled: d,
@@ -14,7 +14,7 @@ var i = /* @__PURE__ */ e(n(), 1), a = t(), o = r((e, t) => {
14
14
  onMouseLeave: g,
15
15
  onTouchStart: _,
16
16
  onTouchEnd: v,
17
- className: (0, i.default)(`btn ${r ? `btn-${r}` : "btn-articles"}`, {
17
+ className: (0, i.default)(`btn ${a ? `btn-${a}` : "btn-articles"}`, {
18
18
  [u]: u,
19
19
  "btn-lg": c,
20
20
  "btn-sm": s,
@@ -25,6 +25,6 @@ var i = /* @__PURE__ */ e(n(), 1), a = t(), o = r((e, t) => {
25
25
  children: e.children
26
26
  });
27
27
  });
28
- o.displayName = "ArticlesButton";
28
+ a.displayName = "ArticlesButton";
29
29
  //#endregion
30
- export { o as t };
30
+ export { a as t };
@@ -1,50 +1,75 @@
1
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t } from "./Button-BlAdEbSd.js";
3
- import { useState as n } from "react";
4
- import { Modal as r } from "react-bootstrap";
1
+ import { t as e } from "./Button-CU11ETla.js";
2
+ import { useState as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { Modal as i } from "react-bootstrap";
5
5
  //#region src/components/Games/Credits/CreditsModal.jsx
6
- var i = e();
7
- function a({ show: e, setShow: a, useStore: o, owner: s, repo: c, developers: l, publisher: u, introText: d }) {
8
- let [f, p] = n(!1);
9
- return /* @__PURE__ */ (0, i.jsxs)(r, {
6
+ function a({ show: a, setShow: o, useStore: s, owner: c, repo: l, developers: u, publisher: d, introText: f }) {
7
+ let [p, m] = t(!1);
8
+ return /* @__PURE__ */ r(i, {
10
9
  className: "articles-modal",
11
10
  size: "md",
12
- show: e,
11
+ show: a,
13
12
  centered: !0,
14
13
  scrollable: !0,
15
14
  onExited: () => {},
16
15
  onHide: () => {
17
- a(!1);
16
+ o(!1);
18
17
  },
19
18
  children: [
20
- /* @__PURE__ */ (0, i.jsx)(r.Header, {
19
+ /* @__PURE__ */ n(i.Header, {
21
20
  closeButton: !0,
22
- children: /* @__PURE__ */ (0, i.jsx)(r.Title, { children: "Game Credits" })
21
+ children: /* @__PURE__ */ n(i.Title, { children: "Game Credits" })
23
22
  }),
24
- /* @__PURE__ */ (0, i.jsxs)(r.Body, {
23
+ /* @__PURE__ */ r(i.Body, {
25
24
  className: "flex-column p-3",
26
25
  children: [
27
- d && /* @__PURE__ */ (0, i.jsx)("div", {
26
+ f && /* @__PURE__ */ n("div", {
28
27
  className: "mb-3",
29
- children: d
28
+ children: f
30
29
  }),
31
- l ? /* @__PURE__ */ (0, i.jsx)("div", {}) : /* @__PURE__ */ (0, i.jsx)("div", { children: "Developed by: ArticlesJoey " }),
32
- u ? /* @__PURE__ */ (0, i.jsx)("div", {}) : /* @__PURE__ */ (0, i.jsx)("div", { children: "Published by: Articles Media " }),
33
- /* @__PURE__ */ (0, i.jsx)("div", { className: "mb-3" }),
34
- s && c && /* @__PURE__ */ (0, i.jsxs)("div", { children: [/* @__PURE__ */ (0, i.jsx)("div", { children: "Attributions:" }), /* @__PURE__ */ (0, i.jsx)("a", {
35
- href: `https://github.com/${s}/${c}/blob/main/README.md`,
30
+ u ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ r("div", { children: [/* @__PURE__ */ n("h6", {
31
+ className: "mb-2",
32
+ children: "Developer: Articles Joey"
33
+ }), /* @__PURE__ */ n("a", {
34
+ href: "https://github.com/articles-joey",
36
35
  target: "_blank",
37
36
  rel: "noopener noreferrer",
38
- children: /* @__PURE__ */ (0, i.jsxs)(t, { children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fab fa-github" }), "View on GitHub"] })
39
- })] })
37
+ children: /* @__PURE__ */ r(e, {
38
+ size: "",
39
+ className: "mb-4",
40
+ children: [/* @__PURE__ */ n("i", { className: "fab fa-github me-2" }), /* @__PURE__ */ n("span", { children: "View on Github" })]
41
+ })
42
+ })] }),
43
+ d ? /* @__PURE__ */ n("div", {}) : /* @__PURE__ */ r("div", { children: [/* @__PURE__ */ n("h6", {
44
+ className: "mb-2",
45
+ children: "Publisher: Articles Media"
46
+ }), /* @__PURE__ */ n("a", {
47
+ href: "https://github.com/Articles-Media",
48
+ target: "_blank",
49
+ rel: "noopener noreferrer",
50
+ children: /* @__PURE__ */ r(e, {
51
+ size: "",
52
+ className: "mb-4",
53
+ children: [/* @__PURE__ */ n("i", { className: "fad fa-browser me-2" }), /* @__PURE__ */ n("span", { children: "View Website" })]
54
+ })
55
+ })] }),
56
+ c && l && /* @__PURE__ */ r("div", {
57
+ className: "",
58
+ children: [/* @__PURE__ */ n("div", { children: "Attributions:" }), /* @__PURE__ */ n("a", {
59
+ href: `https://github.com/${c}/${l}/blob/main/README.md#attributions`,
60
+ target: "_blank",
61
+ rel: "noopener noreferrer",
62
+ children: /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ n("i", { className: "fab fa-github" }), "View on GitHub"] })
63
+ })]
64
+ })
40
65
  ]
41
66
  }),
42
- /* @__PURE__ */ (0, i.jsxs)(r.Footer, {
67
+ /* @__PURE__ */ r(i.Footer, {
43
68
  className: "justify-content-between",
44
- children: [/* @__PURE__ */ (0, i.jsx)("div", {}), /* @__PURE__ */ (0, i.jsx)(t, {
69
+ children: [/* @__PURE__ */ n("div", {}), /* @__PURE__ */ n(e, {
45
70
  variant: "outline-dark",
46
71
  onClick: () => {
47
- a(!1);
72
+ o(!1);
48
73
  },
49
74
  children: "Close"
50
75
  })]
@@ -1,18 +1,17 @@
1
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
2
- import { useEffect as t } from "react";
1
+ import { useEffect as e } from "react";
2
+ import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
3
  //#region src/components/UI/DarkModeHandler.jsx
4
- var n = e();
5
- function r({ useStore: e }) {
6
- let r = e((e) => e.darkMode), i = e((e) => e._hasHydrated);
7
- return t(() => {
8
- if (i) {
9
- if (r == null) {
10
- let t = window.matchMedia("(prefers-color-scheme: dark)").matches;
11
- e.getState().setDarkMode(!!t);
4
+ function r({ useStore: r }) {
5
+ let i = r((e) => e.darkMode), a = r((e) => e._hasHydrated);
6
+ return e(() => {
7
+ if (a) {
8
+ if (i == null) {
9
+ let e = window.matchMedia("(prefers-color-scheme: dark)").matches;
10
+ r.getState().setDarkMode(!!e);
12
11
  }
13
- r ? document.body.setAttribute("data-bs-theme", "dark") : document.body.setAttribute("data-bs-theme", "light");
12
+ i ? document.body.setAttribute("data-bs-theme", "dark") : document.body.setAttribute("data-bs-theme", "light");
14
13
  }
15
- }, [r, i]), /* @__PURE__ */ (0, n.jsx)(n.Fragment, {});
14
+ }, [i, a]), /* @__PURE__ */ n(t, {});
16
15
  }
17
16
  //#endregion
18
17
  export { r as default };
@@ -1,74 +1,73 @@
1
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t } from "./Button-BlAdEbSd.js";
3
- import n from "./useUserFriends.js";
4
- import { Modal as r } from "react-bootstrap";
1
+ import { t as e } from "./Button-CU11ETla.js";
2
+ import t from "./useUserFriends.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { Modal as i } from "react-bootstrap";
5
5
  //#region src/components/Friends/FriendsList.jsx
6
- var i = e();
7
- function a({ show: e, setShow: a, componentType: o, className: s, style: c = {}, user_id: l, user_token: u, id: d = null, allowInvite: f = !1, inviteFunction: p = null, modalBackdropClassName: m = "" }) {
8
- let { data: h, error: g, isLoading: _, mutate: v } = n({
9
- user_id: l,
10
- user_token: u
6
+ function a({ show: a, setShow: o, componentType: s, className: c, style: l = {}, user_id: u, user_token: d, id: f = null, allowInvite: p = !1, inviteFunction: m = null, modalBackdropClassName: h = "" }) {
7
+ let { data: g, error: _, isLoading: v, mutate: y } = t({
8
+ user_id: u,
9
+ user_token: d
11
10
  });
12
- if ((!o || o == "list") && !_ && h && h.length > 0) return /* @__PURE__ */ (0, i.jsx)("ul", {
13
- className: s,
14
- style: c,
15
- children: h.map((e) => /* @__PURE__ */ (0, i.jsxs)("li", { children: [
11
+ if ((!s || s == "list") && !v && g && g.length > 0) return /* @__PURE__ */ n("ul", {
12
+ className: c,
13
+ style: l,
14
+ children: g.map((e) => /* @__PURE__ */ r("li", { children: [
16
15
  e?.populated_user?.username,
17
16
  " - ",
18
17
  e?.populated_user?.display_name || "No Display Name"
19
18
  ] }, e.user_id))
20
19
  });
21
- if (o.toLowerCase() == "modal") return /* @__PURE__ */ (0, i.jsxs)(r, {
22
- show: e,
20
+ if (s.toLowerCase() == "modal") return /* @__PURE__ */ r(i, {
21
+ show: a,
23
22
  size: "md",
24
- className: `articles-modal ${s}`,
25
- modalBackdropClassName: m,
23
+ className: `articles-modal ${c}`,
24
+ modalBackdropClassName: h,
26
25
  centered: !0,
27
- onHide: () => a(!1),
28
- style: c,
29
- id: d,
26
+ onHide: () => o(!1),
27
+ style: l,
28
+ id: f,
30
29
  children: [
31
- /* @__PURE__ */ (0, i.jsx)(r.Header, { children: /* @__PURE__ */ (0, i.jsx)(r.Title, { children: "Friends" }) }),
32
- /* @__PURE__ */ (0, i.jsxs)(r.Body, { children: [
33
- _ && /* @__PURE__ */ (0, i.jsxs)("div", {
30
+ /* @__PURE__ */ n(i.Header, { children: /* @__PURE__ */ n(i.Title, { children: "Friends" }) }),
31
+ /* @__PURE__ */ r(i.Body, { children: [
32
+ v && /* @__PURE__ */ r("div", {
34
33
  className: "d-flex align-items-center",
35
- children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-spinner-third fa-spin fa-2x" }), /* @__PURE__ */ (0, i.jsx)("div", { children: "Loading..." })]
34
+ children: [/* @__PURE__ */ n("i", { className: "fad fa-spinner-third fa-spin fa-2x" }), /* @__PURE__ */ n("div", { children: "Loading..." })]
36
35
  }),
37
- !_ && h && h.length == 0 && /* @__PURE__ */ (0, i.jsx)("div", { children: "No friends to show." }),
38
- !_ && h && h.length > 0 && /* @__PURE__ */ (0, i.jsx)("div", { children: h.map((e) => /* @__PURE__ */ (0, i.jsxs)("div", {
36
+ !v && g && g.length == 0 && /* @__PURE__ */ n("div", { children: "No friends to show." }),
37
+ !v && g && g.length > 0 && /* @__PURE__ */ n("div", { children: g.map((t) => /* @__PURE__ */ r("div", {
39
38
  className: "d-flex align-items-center justify-content-between border p-1",
40
39
  children: [
41
- e?.populated_user?.username,
40
+ t?.populated_user?.username,
42
41
  " - ",
43
- e?.populated_user?.display_name || "No Display Name",
44
- /* @__PURE__ */ (0, i.jsxs)("div", { children: [f && /* @__PURE__ */ (0, i.jsx)(t, {
42
+ t?.populated_user?.display_name || "No Display Name",
43
+ /* @__PURE__ */ r("div", { children: [p && /* @__PURE__ */ n(e, {
45
44
  variant: "articles",
46
45
  onClick: () => {
47
- f(e);
46
+ p(t);
48
47
  },
49
- children: /* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-comment-check" })
50
- }), /* @__PURE__ */ (0, i.jsx)(t, {
48
+ children: /* @__PURE__ */ n("i", { className: "fad fa-comment-check" })
49
+ }), /* @__PURE__ */ n(e, {
51
50
  variant: "articles",
52
51
  onClick: () => {},
53
- children: /* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-info" })
52
+ children: /* @__PURE__ */ n("i", { className: "fad fa-info" })
54
53
  })] })
55
54
  ]
56
- }, e.user_id)) })
55
+ }, t.user_id)) })
57
56
  ] }),
58
- /* @__PURE__ */ (0, i.jsxs)(r.Footer, {
57
+ /* @__PURE__ */ r(i.Footer, {
59
58
  className: "justify-content-between",
60
- children: [/* @__PURE__ */ (0, i.jsxs)(t, {
59
+ children: [/* @__PURE__ */ r(e, {
61
60
  variant: "articles",
62
61
  onClick: () => {
63
- v();
62
+ y();
64
63
  },
65
- children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-redo me-2" }), /* @__PURE__ */ (0, i.jsx)("span", { children: "Refresh" })]
66
- }), /* @__PURE__ */ (0, i.jsxs)(t, {
64
+ children: [/* @__PURE__ */ n("i", { className: "fad fa-redo me-2" }), /* @__PURE__ */ n("span", { children: "Refresh" })]
65
+ }), /* @__PURE__ */ r(e, {
67
66
  variant: "articles",
68
67
  onClick: () => {
69
- a(!1);
68
+ o(!1);
70
69
  },
71
- children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-times me-2" }), "Close"]
70
+ children: [/* @__PURE__ */ n("i", { className: "fad fa-times me-2" }), "Close"]
72
71
  })]
73
72
  })
74
73
  ]
@@ -1,20 +1,19 @@
1
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t } from "./Button-BlAdEbSd.js";
3
- import { t as n } from "./Modal-BX1s6CCU.js";
4
- import { t as r } from "./ViewUserModal-DDjWLpyM.js";
5
- import { useEffect as i, useState as a } from "react";
1
+ import { t as e } from "./Button-CU11ETla.js";
2
+ import { t } from "./ViewUserModal-C_gWUvXi.js";
3
+ import { useEffect as n, useState as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
5
  import o from "swr";
6
+ import s from "react-bootstrap/Modal";
7
7
  //#region src/components/UI/ArticlesSwitch.jsx
8
- var s = e();
9
8
  function c({ setChecked: e, checked: t, readOnly: n }) {
10
- return /* @__PURE__ */ (0, s.jsxs)("label", {
9
+ return /* @__PURE__ */ a("label", {
11
10
  className: `articles-switch mb-0 ${t && "checked"}`,
12
- children: [/* @__PURE__ */ (0, s.jsx)("input", {
11
+ children: [/* @__PURE__ */ i("input", {
13
12
  type: "checkbox",
14
13
  readOnly: !!n,
15
14
  checked: t,
16
15
  onChange: () => {}
17
- }), /* @__PURE__ */ (0, s.jsx)("span", {
16
+ }), /* @__PURE__ */ i("span", {
18
17
  onClick: (n) => {
19
18
  if (e) {
20
19
  e(!t);
@@ -58,105 +57,105 @@ var l = async (e) => {
58
57
  };
59
58
  //#endregion
60
59
  //#region src/components/Games/GameScoreboard.jsx
61
- function f({ game: e, reloadScoreboard: o, setReloadScoreboard: l, prepend: u, append: f }) {
62
- let [p, m] = a(!1), [h, g] = a(!1), { data: _, isLoading: v, mutate: y } = d({ game: e });
63
- return i(() => {}, []), i(() => {
64
- o && (l(!1), y());
65
- }, [o]), /* @__PURE__ */ (0, s.jsxs)("div", {
60
+ function f({ game: o, reloadScoreboard: l, setReloadScoreboard: u, prepend: f, append: p }) {
61
+ let [m, h] = r(!1), [g, _] = r(!1), { data: v, isLoading: y, mutate: b } = d({ game: o });
62
+ return n(() => {}, []), n(() => {
63
+ l && (u(!1), b());
64
+ }, [l]), /* @__PURE__ */ a("div", {
66
65
  className: "scoreboard",
67
66
  children: [
68
- /* @__PURE__ */ (0, s.jsxs)(n, {
69
- show: p,
67
+ /* @__PURE__ */ a(s, {
68
+ show: m,
70
69
  size: "md",
71
70
  className: "articles-modal",
72
71
  centered: !0,
73
- onHide: () => m(!1),
72
+ onHide: () => h(!1),
74
73
  children: [
75
- /* @__PURE__ */ (0, s.jsx)(n.Header, { children: /* @__PURE__ */ (0, s.jsx)(n.Title, { children: "Scoreboard Settings" }) }),
76
- /* @__PURE__ */ (0, s.jsx)(n.Body, { children: /* @__PURE__ */ (0, s.jsxs)("div", {
74
+ /* @__PURE__ */ i(s.Header, { children: /* @__PURE__ */ i(s.Title, { children: "Scoreboard Settings" }) }),
75
+ /* @__PURE__ */ i(s.Body, { children: /* @__PURE__ */ a("div", {
77
76
  className: "d-flex justify-content-between align-items-center",
78
- onClick: () => g(!h),
79
- children: [/* @__PURE__ */ (0, s.jsxs)("div", { children: [/* @__PURE__ */ (0, s.jsx)("i", { className: "fas fa-trophy-alt" }), /* @__PURE__ */ (0, s.jsx)("span", { children: "Join Scoreboard?" })] }), /* @__PURE__ */ (0, s.jsx)(c, { checked: h })]
77
+ onClick: () => _(!g),
78
+ children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("i", { className: "fas fa-trophy-alt" }), /* @__PURE__ */ i("span", { children: "Join Scoreboard?" })] }), /* @__PURE__ */ i(c, { checked: g })]
80
79
  }) }),
81
- /* @__PURE__ */ (0, s.jsx)(n.Footer, {
80
+ /* @__PURE__ */ i(s.Footer, {
82
81
  className: "justify-content-between",
83
- children: /* @__PURE__ */ (0, s.jsx)(t, {
82
+ children: /* @__PURE__ */ i(e, {
84
83
  variant: "articles",
85
84
  onClick: () => {
86
- m(!1);
85
+ h(!1);
87
86
  },
88
87
  children: "Close"
89
88
  })
90
89
  })
91
90
  ]
92
91
  }),
93
- /* @__PURE__ */ (0, s.jsx)("div", {
92
+ /* @__PURE__ */ i("div", {
94
93
  className: "prepend-container",
95
- children: u
94
+ children: f
96
95
  }),
97
- /* @__PURE__ */ (0, s.jsxs)("div", {
96
+ /* @__PURE__ */ a("div", {
98
97
  className: "card card-articles card-sm mb-3 mb-lg-0",
99
98
  children: [
100
- /* @__PURE__ */ (0, s.jsxs)("div", {
99
+ /* @__PURE__ */ a("div", {
101
100
  className: "card-header d-flex justify-content-between align-items-center",
102
- children: [/* @__PURE__ */ (0, s.jsxs)("span", { children: [e, " Scoreboard"] }), /* @__PURE__ */ (0, s.jsx)(t, {
101
+ children: [/* @__PURE__ */ a("span", { children: [o, " Scoreboard"] }), /* @__PURE__ */ i(e, {
103
102
  onClick: () => {
104
- y();
103
+ b();
105
104
  },
106
105
  small: !0,
107
- children: /* @__PURE__ */ (0, s.jsx)("i", { className: "fad fa-redo me-0" })
106
+ children: /* @__PURE__ */ i("i", { className: "fad fa-redo me-0" })
108
107
  })]
109
108
  }),
110
- /* @__PURE__ */ (0, s.jsxs)("div", {
109
+ /* @__PURE__ */ a("div", {
111
110
  className: "card-body p-0",
112
- children: [(_?.length || 0) == 0 && /* @__PURE__ */ (0, s.jsx)("div", {
111
+ children: [(v?.length || 0) == 0 && /* @__PURE__ */ i("div", {
113
112
  className: "small p-2",
114
113
  children: "No scores yet"
115
- }), _?.map((e, t) => /* @__PURE__ */ (0, s.jsxs)("div", {
114
+ }), v?.map((e, n) => /* @__PURE__ */ a("div", {
116
115
  className: "result d-flex flex-column justify-content-between border-bottom p-2",
117
- children: [/* @__PURE__ */ (0, s.jsxs)("div", {
116
+ children: [/* @__PURE__ */ a("div", {
118
117
  className: "d-flex justify-content-between lh-sm",
119
- children: [/* @__PURE__ */ (0, s.jsxs)("div", {
118
+ children: [/* @__PURE__ */ a("div", {
120
119
  className: "d-flex",
121
- children: [/* @__PURE__ */ (0, s.jsx)("h5", {
120
+ children: [/* @__PURE__ */ i("h5", {
122
121
  className: "mb-0 me-3",
123
- children: t + 1
124
- }), /* @__PURE__ */ (0, s.jsx)("div", {
122
+ children: n + 1
123
+ }), /* @__PURE__ */ i("div", {
125
124
  className: "lh-sm",
126
- children: /* @__PURE__ */ (0, s.jsx)(r, {
125
+ children: /* @__PURE__ */ i(t, {
127
126
  populated_user: e.populated_user,
128
127
  user_id: e.user_id
129
128
  })
130
129
  })]
131
- }), /* @__PURE__ */ (0, s.jsx)("div", { children: /* @__PURE__ */ (0, s.jsx)("h5", {
130
+ }), /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h5", {
132
131
  className: "mb-0",
133
132
  children: e.score || e.total
134
133
  }) })]
135
- }), e.last_play && e.public_last_play && /* @__PURE__ */ (0, s.jsxs)("small", {
134
+ }), e.last_play && e.public_last_play && /* @__PURE__ */ a("small", {
136
135
  className: "mt-1",
137
136
  style: { fontSize: "0.75rem" },
138
137
  children: ["Played: ", format(new Date(e.last_play), "MM/d/yy hh:mmaa")]
139
138
  })]
140
139
  }, e._id))]
141
140
  }),
142
- /* @__PURE__ */ (0, s.jsxs)("div", {
141
+ /* @__PURE__ */ a("div", {
143
142
  className: "card-footer d-flex justify-content-between align-items-center",
144
- children: [/* @__PURE__ */ (0, s.jsx)("div", {
143
+ children: [/* @__PURE__ */ i("div", {
145
144
  className: "small",
146
145
  children: "Play to get on the board!"
147
- }), /* @__PURE__ */ (0, s.jsx)(t, {
146
+ }), /* @__PURE__ */ i(e, {
148
147
  small: !0,
149
148
  onClick: () => {
150
- m(!0);
149
+ h(!0);
151
150
  },
152
- children: /* @__PURE__ */ (0, s.jsx)("i", { className: "fad fa-cog me-0" })
151
+ children: /* @__PURE__ */ i("i", { className: "fad fa-cog me-0" })
153
152
  })]
154
153
  })
155
154
  ]
156
155
  }),
157
- /* @__PURE__ */ (0, s.jsx)("div", {
156
+ /* @__PURE__ */ i("div", {
158
157
  className: "append-container",
159
- children: f
158
+ children: p
160
159
  })
161
160
  ]
162
161
  });
@@ -1,2 +1,2 @@
1
- import { t as e } from "./GameScoreboard-CBY3JsFa.js";
1
+ import { t as e } from "./GameScoreboard-Dj5mTFTn.js";
2
2
  export { e as default };
@@ -1,36 +1,36 @@
1
1
  "use client";
2
- import { r as e, t } from "./jsx-runtime-VZk6y-ec.js";
3
- import { t as n } from "./classnames-DP6dWde5.js";
4
- import { n as r, t as i } from "./useAuthSiteStatus-1rHjYC4N.js";
5
- import { Suspense as a, lazy as o, memo as s, useState as c } from "react";
2
+ import { n as e, t } from "./classnames-CpG5mzJ5.js";
3
+ import { n, t as r } from "./useAuthSiteStatus-Cj9IjMj7.js";
4
+ import { Suspense as i, lazy as a, memo as o, useState as s } from "react";
5
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  //#region src/components/Global/GlobalBody.jsx
7
- var l = /* @__PURE__ */ e(n(), 1), u = t(), d = o(() => import("./StatusModal-elrPJvX1.js"));
8
- function f(e) {
9
- let [t, n] = c(!1), { data: o, error: s, isLoading: f, mutate: p } = r({ disable: process.env.NODE_ENV !== "development" }), { data: m, error: h, isLoading: g, mutate: _ } = i({ disable: process.env.NODE_ENV !== "development" });
10
- return /* @__PURE__ */ (0, u.jsxs)(u.Fragment, { children: [/* @__PURE__ */ (0, u.jsx)("link", {
7
+ var d = /* @__PURE__ */ e(t(), 1), f = a(() => import("./StatusModal-CBzdZdAm.js"));
8
+ function p(e) {
9
+ let [t, a] = s(!1), { data: o, error: p, isLoading: m, mutate: h } = n({ disable: process.env.NODE_ENV !== "development" }), { data: g, error: _, isLoading: v, mutate: y } = r({ disable: process.env.NODE_ENV !== "development" });
10
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("link", {
11
11
  rel: "stylesheet",
12
12
  href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
13
- }), process.env.NODE_ENV === "development" && /* @__PURE__ */ (0, u.jsxs)(u.Fragment, { children: [
14
- /* @__PURE__ */ (0, u.jsx)("style", { children: " \n @keyframes grow-shrink {\n 0% { transform: translateY(-50px); }\n 50% { transform: translateY(0px); }\n 100% { transform: translateY(-50px); }\n }\n .articles-global-body {\n transform: translateY(-40px);\n z-index: 1055!important;\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 50px;\n height: 50px;\n margin: 0;\n padding: 0;\n background-color: yellow;\n color: #FFFFFF;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n animation: grow-shrink 2s ease-in;\n border: 4px solid red;\n cursor: pointer;\n }\n .articles-global-body.main-connected {\n background-color: green;\n }\n .articles-global-body.auth-connected {\n border-color: blue;\n } \n " }),
15
- /* @__PURE__ */ (0, u.jsx)("div", {
13
+ }), process.env.NODE_ENV === "development" && /* @__PURE__ */ u(c, { children: [
14
+ /* @__PURE__ */ l("style", { children: " \n @keyframes grow-shrink {\n 0% { transform: translateY(-50px); }\n 50% { transform: translateY(0px); }\n 100% { transform: translateY(-50px); }\n }\n .articles-global-body {\n transform: translateY(-40px);\n z-index: 1055!important;\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 50px;\n height: 50px;\n margin: 0;\n padding: 0;\n background-color: yellow;\n color: #FFFFFF;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n animation: grow-shrink 2s ease-in;\n border: 4px solid red;\n cursor: pointer;\n }\n .articles-global-body.main-connected {\n background-color: green;\n }\n .articles-global-body.auth-connected {\n border-color: blue;\n } \n " }),
15
+ /* @__PURE__ */ l("div", {
16
16
  onClick: () => {
17
- n(!0);
17
+ a(!0);
18
18
  },
19
- className: (0, l.default)("articles-global-body", {
19
+ className: (0, d.default)("articles-global-body", {
20
20
  "main-connected": o,
21
- "auth-connected": m
21
+ "auth-connected": g
22
22
  }),
23
- children: /* @__PURE__ */ (0, u.jsx)("div", {
23
+ children: /* @__PURE__ */ l("div", {
24
24
  className: "content",
25
- children: /* @__PURE__ */ (0, u.jsx)("i", { className: "fas fa-thumbs-up" })
25
+ children: /* @__PURE__ */ l("i", { className: "fas fa-thumbs-up" })
26
26
  })
27
27
  }),
28
- t && /* @__PURE__ */ (0, u.jsx)(a, { children: /* @__PURE__ */ (0, u.jsx)(d, {
28
+ t && /* @__PURE__ */ l(i, { children: /* @__PURE__ */ l(f, {
29
29
  show: t,
30
- setShow: n
30
+ setShow: a
31
31
  }) })
32
32
  ] })] });
33
33
  }
34
- var p = s(f);
34
+ var m = o(p);
35
35
  //#endregion
36
- export { p as default };
36
+ export { m as default };
@@ -1,8 +1,7 @@
1
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
1
+ import { Fragment as e, jsx as t } from "react/jsx-runtime";
2
2
  //#region src/components/Global/GlobalHead.jsx
3
- var t = e();
4
3
  function n() {
5
- return /* @__PURE__ */ (0, t.jsx)(t.Fragment, { children: /* @__PURE__ */ (0, t.jsx)("link", {
4
+ return /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("link", {
6
5
  rel: "stylesheet",
7
6
  href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
8
7
  }) });
@@ -0,0 +1,16 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ //#region src/components/UI/Link.jsx
3
+ function t(t) {
4
+ let { href: n, children: r, newPage: i, ...a } = t;
5
+ return /* @__PURE__ */ e("a", {
6
+ href: n,
7
+ ...a,
8
+ ...i && {
9
+ target: "_blank",
10
+ rel: "noopener noreferrer"
11
+ },
12
+ children: r
13
+ });
14
+ }
15
+ //#endregion
16
+ export { t };
@@ -1,18 +1,17 @@
1
1
  "use client";
2
- import { t as e } from "./jsx-runtime-VZk6y-ec.js";
3
- import { t } from "./Button-BlAdEbSd.js";
4
- import { useEffect as n, useState as r } from "react";
2
+ import { t as e } from "./Button-CU11ETla.js";
3
+ import { useEffect as t, useState as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  //#region src/components/Games/ReturnToLauncherButton.jsx
6
- var i = e();
7
- function a({ className: e, id: a }) {
8
- let [o, s] = r(!1);
9
- if (n(() => {
10
- s(!0);
11
- }, []), !o) return null;
12
- let c = new URLSearchParams(window.location.search), { launcher_mode: l } = Object.fromEntries(c);
13
- return l = l === "1", l ? /* @__PURE__ */ (0, i.jsxs)(t, {
14
- className: `${e} w-100`,
15
- id: a,
6
+ function a({ className: a, id: o }) {
7
+ let [s, c] = n(!1);
8
+ if (t(() => {
9
+ c(!0);
10
+ }, []), !s) return null;
11
+ let l = new URLSearchParams(window.location.search), { launcher_mode: u } = Object.fromEntries(l);
12
+ return u = u === "1", u ? /* @__PURE__ */ i(e, {
13
+ className: `${a} w-100`,
14
+ id: o,
16
15
  small: !0,
17
16
  style: {
18
17
  zIndex: 10,
@@ -21,11 +20,11 @@ function a({ className: e, id: a }) {
21
20
  onClick: () => {
22
21
  window.location.href = "https://games.articles.media";
23
22
  },
24
- children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-gamepad" }), "Return to Games"]
25
- }) : /* @__PURE__ */ (0, i.jsxs)(t, {
26
- className: `${e} w-100`,
23
+ children: [/* @__PURE__ */ r("i", { className: "fad fa-gamepad" }), "Return to Games"]
24
+ }) : /* @__PURE__ */ i(e, {
25
+ className: `${a} w-100`,
27
26
  small: !0,
28
- id: a,
27
+ id: o,
29
28
  style: {
30
29
  zIndex: 10,
31
30
  position: "relative"
@@ -33,7 +32,7 @@ function a({ className: e, id: a }) {
33
32
  onClick: () => {
34
33
  window.location.href = "https://games.articles.media";
35
34
  },
36
- children: [/* @__PURE__ */ (0, i.jsx)("i", { className: "fad fa-gamepad" }), "View our other games"]
35
+ children: [/* @__PURE__ */ r("i", { className: "fad fa-gamepad" }), "View our other games"]
37
36
  });
38
37
  }
39
38
  //#endregion