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

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 (69) hide show
  1. package/README.md +6 -5
  2. package/dist/Ad-Ck5UdTq3.js +387 -0
  3. package/dist/Ad.js +2 -604
  4. package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
  5. package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
  6. package/dist/ArticlesAd.js +16 -15
  7. package/dist/Button-BlAdEbSd.js +30 -0
  8. package/dist/CreditsModal.js +56 -0
  9. package/dist/DarkModeHandler.js +17 -16
  10. package/dist/FriendsList.js +77 -121
  11. package/dist/GameScoreboard-CBY3JsFa.js +165 -0
  12. package/dist/GameScoreboard.js +2 -190
  13. package/dist/GlobalBody.js +36 -7
  14. package/dist/GlobalHead.js +10 -12
  15. package/dist/Link-MFZblBb4.js +17 -0
  16. package/dist/Modal-BX1s6CCU.js +1631 -0
  17. package/dist/ReturnToLauncherButton.js +39 -54
  18. package/dist/SettingsModal-XI2dMI09.js +247 -0
  19. package/dist/SettingsModal.js +2 -658
  20. package/dist/StatusModal-elrPJvX1.js +70 -0
  21. package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
  22. package/dist/ViewUserModal.js +3 -3149
  23. package/dist/articles-dev-box.css +2 -1
  24. package/dist/classnames-DP6dWde5.js +31 -0
  25. package/dist/index.js +16 -28
  26. package/dist/jsx-runtime-VZk6y-ec.js +191 -0
  27. package/dist/numberWithCommas-BSKBdR-e.js +18 -0
  28. package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
  29. package/dist/useFullscreen.js +24 -0
  30. package/dist/useUserDetails.js +22 -32
  31. package/dist/useUserFriends.js +29 -51
  32. package/dist/useUserToken.js +16 -21
  33. package/package.json +26 -67
  34. package/dist/Ad.cjs +0 -1
  35. package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
  36. package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
  37. package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
  38. package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
  39. package/dist/ArticlesAd.cjs +0 -1
  40. package/dist/Button-0ZK0NKiK.cjs +0 -1
  41. package/dist/Button-_Quon8UV.js +0 -54
  42. package/dist/DarkModeHandler.cjs +0 -1
  43. package/dist/ElementChildren-DN3RWY2E.js +0 -51
  44. package/dist/ElementChildren-eAwIENLl.cjs +0 -1
  45. package/dist/FriendsList.cjs +0 -1
  46. package/dist/GameScoreboard.cjs +0 -1
  47. package/dist/GlobalBody-BrrtfBBs.js +0 -123
  48. package/dist/GlobalBody-weON_TbJ.cjs +0 -33
  49. package/dist/GlobalBody.cjs +0 -1
  50. package/dist/GlobalHead.cjs +0 -1
  51. package/dist/Modal-Bdhkgkwr.cjs +0 -2
  52. package/dist/Modal-nux8R77F.js +0 -2087
  53. package/dist/ReturnToLauncherButton.cjs +0 -1
  54. package/dist/SettingsModal.cjs +0 -1
  55. package/dist/StatusModal-B086BgSW.js +0 -71
  56. package/dist/StatusModal-CzPyqQQA.cjs +0 -1
  57. package/dist/ViewUserModal.cjs +0 -1
  58. package/dist/index-BlP2-uOi.cjs +0 -1
  59. package/dist/index-C8MeSLnR.js +0 -2504
  60. package/dist/index-DWV8myok.cjs +0 -6
  61. package/dist/index-YnD2EP-S.js +0 -43
  62. package/dist/index.cjs +0 -1
  63. package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
  64. package/dist/jsx-runtime-tc70JA_2.js +0 -264
  65. package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
  66. package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
  67. package/dist/useUserDetails.cjs +0 -1
  68. package/dist/useUserFriends.cjs +0 -1
  69. package/dist/useUserToken.cjs +0 -1
@@ -1 +1,2 @@
1
- .ad-wrap{z-index:1;margin:0 auto;margin-bottom:1rem;max-width:312px;width:100%;--card-background: #f9edcd;--bs-body-color: #000000}.ad-wrap.active-member .ad .main-panel{height:310px}.ad-wrap .ad{position:relative;align-self:flex-start;width:100%;z-index:2;font-family:brandon-grotesque,sans-serif;box-shadow:0 0 0 1px #00000040,0 2px 3px #0003;font-size:14px}@media(max-width:768px){.ad-wrap .ad{font-size:16px;width:100%}}.ad-wrap .ad .main-panel{background-color:var(--articles-ad-background-color, var(--card-background));color:var(--articles-ad-font-color, var(--bs-body-color));height:400px;display:flex;flex-direction:column}.ad-wrap .ad .main-panel .ad-warning{padding:.1rem .75rem;font-family:brandon-grotesque,sans-serif;font-weight:900;font-size:1rem;border-bottom:1px solid var(--articles-ad-border-color, var(--card-background))}.ad-wrap .ad .main-panel .content-wrap{display:flex;flex-direction:column;align-items:center}@media(min-width:992px){.ad-wrap .ad .main-panel .content-wrap{flex-direction:column}}.ad-wrap .ad .main-panel .photo-banner{position:relative;height:100px;width:100px;flex-shrink:0;display:flex;align-items:center;padding-left:1rem;margin-left:.75rem;margin-left:0rem;height:125px;width:100%;border-bottom:1px solid black}.ad-wrap .ad .main-panel .photo-banner .logo{object-fit:cover;z-index:1}.ad-wrap .ad .main-panel .photo-banner .logo img{width:75px;height:75px;object-fit:contain}.ad-wrap .ad .main-panel .photo-banner .splash{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%);width:100%;display:flex;align-items:center;justify-content:center;color:#000}.ad-wrap .ad .main-panel .photo-banner .splash i{font-size:3rem;margin-right:1rem}.ad-wrap .ad .main-panel .photo-banner .splash .text{display:flex;flex-direction:column;line-height:1;align-items:start}.ad-wrap .ad .main-panel .photo-banner .splash .text .label{font-size:1.5rem}.ad-wrap .ad .main-panel .photo-banner .splash .text .count{font-weight:700;font-size:2rem}.ad-wrap .ad .main-panel .photo-banner .splash .text .count .fa-spinner{font-size:1.5rem}.ad-wrap .ad .main-panel .photo-banner .member-since{position:absolute;bottom:0;left:0;padding:.25rem .5rem;background-color:#00000080;color:#fff;font-size:.75rem;border-top-right-radius:5px}.ad-wrap .ad .main-panel .photo-banner .photo{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}.ad-wrap .ad .main-panel .details-wrap{width:100%}.ad-wrap .ad .main-panel .links-list{display:flex;flex-direction:column}.ad-wrap .ad .main-panel .links-list .link-item{color:#000}.ad-wrap .ad .main-panel .links-list .link-item:hover{text-decoration:underline;text-decoration-color:red}.ad-wrap .ad .main-panel .details,.ad-wrap .ad .main-panel .detail-title{padding:.75rem .75rem 0rem;display:grid;grid-gap:5px 5px;grid-template-columns:repeat(2,1fr)}.ad-wrap .ad .main-panel .details .detail .icon,.ad-wrap .ad .main-panel .detail-title .detail .icon{display:inline-block;width:1.5rem}.ad-wrap .ad .main-panel .details .detail .icon i,.ad-wrap .ad .main-panel .detail-title .detail .icon i{justify-content:flex-start;display:flex}.ad-wrap .ad .main-panel .short-description{padding:.25rem .75rem 0rem;min-height:50px;overflow-y:auto;max-height:125px}.ad-wrap .ad .main-panel .detail-title{display:flex;justify-content:space-between;align-items:center}.ad-wrap .ad .main-panel .action-wrap{border-top:1px solid var(--articles-ad-border-color, var(--card-background))}.ad-wrap .ad .main-panel .action-wrap .action{padding:.25rem;display:flex;justify-content:center;align-items:center;border:1px solid var(--articles-ad-border-color, var(--card-background));color:var(--articles-ad-font-color, var(--bs-body-color));border-radius:10px;margin-left:auto;margin-right:auto;cursor:pointer;transition-duration:.2s}.ad-wrap .ad .main-panel .action-wrap .action:hover{background-color:#fff;color:#000}.ad-wrap .ad .main-panel .action-wrap .action:active{background-color:gray}.ad-wrap .advertise-with-us{background-color:var(--articles-ad-background-color, var(--card-background));border-top:2px solid var(--articles-ad-border-color, var(--card-background))}.ad-wrap .advertise-with-us a{color:var(--articles-ad-font-color, var(--bs-body-color))!important}.ad-wrap .advertise-with-us a:hover{text-decoration:underline;text-decoration-color:red}.view-user-modal-badge-wrap{display:flex;align-items:stretch;cursor:pointer}.view-user-modal-badge-wrap.large .view-user-modal-badge{position:relative;height:30px}.view-user-modal-badge-wrap.large .view-user-modal-badge .membership-badge{font-size:1rem!important}.view-user-modal-badge-wrap.large .view-user-modal-badge .profile-photo-wrap{height:22px!important;width:22px!important;margin-right:.5rem}.view-user-modal-badge-wrap.large .view-user-modal-badge img{margin-right:.5rem}.view-user-modal-badge-wrap .badge-membership{position:relative}.view-user-modal-badge-wrap .verification-user-badge{display:flex;align-items:center}.profile-photo-wrap{position:relative}.profile-photo-wrap .online-status{position:absolute;width:10px;height:10px;background-color:gray;bottom:1px;right:1px;border:2px solid #000;z-index:1}.profile-photo-wrap .online-status.status-online{background-color:green;border:2px solid #009b22}:root{--articles-theme-primary: #f9edcd}.bg-articles{background-color:var(--articles-theme-primary);color:#000!important}.shadow-articles{box-shadow:0 0 0 1px #0000004d,0 2px 3px #0003;box-shadow:0 0 0 1px #00000040,0 2px 3px #0003}.text-center{text-align:center}.d-flex{display:flex}.flex-header{display:flex;justify-content:space-between;align-items:center}.scoreboard{margin-top:1rem;max-width:300px;width:100%;margin-bottom:1rem}@media(min-width:992px){.scoreboard{margin-top:0rem;margin-bottom:0rem;display:block;position:absolute;left:1rem;top:50%;transform:translateY(-50%)}}.articles-game-scoreboard{border:1px solid rgb(206,212,218);border-radius:8px;box-shadow:#00000012 0 2px 8px;color:#222;width:100%;max-width:350px;margin:0px 1rem;overflow:hidden;display:flex;flex-direction:column;z-index:1;position:fixed;bottom:50%;transform:translateY(50%);left:8px}
1
+ .ad-wrap{z-index:1;--card-background:#f9edcd;--bs-body-color:#000;width:100%;max-width:312px;margin:0 auto 1rem}.ad-wrap.active-member .ad .main-panel{height:310px}.ad-wrap .ad{z-index:2;align-self:flex-start;width:100%;font-family:brandon-grotesque,sans-serif;font-size:14px;position:relative;box-shadow:0 0 0 1px #00000040,0 2px 3px #0003}@media (width<=768px){.ad-wrap .ad{width:100%;font-size:16px}}.ad-wrap .ad .main-panel{background-color:var(--articles-ad-background-color,var(--card-background));color:var(--articles-ad-font-color,var(--bs-body-color));flex-direction:column;height:400px;display:flex}.ad-wrap .ad .main-panel .ad-warning{border-bottom:1px solid var(--articles-ad-border-color,var(--card-background));padding:.1rem .75rem;font-family:brandon-grotesque,sans-serif;font-size:1rem;font-weight:900}.ad-wrap .ad .main-panel .content-wrap{flex-direction:column;align-items:center;display:flex}@media (width>=992px){.ad-wrap .ad .main-panel .content-wrap{flex-direction:column}}.ad-wrap .ad .main-panel .photo-banner{border-bottom:1px solid #000;flex-shrink:0;align-items:center;width:100%;height:125px;margin-left:0;padding-left:1rem;display:flex;position:relative}.ad-wrap .ad .main-panel .photo-banner .logo{object-fit:cover;z-index:1}.ad-wrap .ad .main-panel .photo-banner .logo img{object-fit:contain;width:75px;height:75px}.ad-wrap .ad .main-panel .photo-banner .splash{color:#000;justify-content:center;align-items:center;width:100%;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%)translateY(-50%)}.ad-wrap .ad .main-panel .photo-banner .splash i{margin-right:1rem;font-size:3rem}.ad-wrap .ad .main-panel .photo-banner .splash .text{flex-direction:column;align-items:start;line-height:1;display:flex}.ad-wrap .ad .main-panel .photo-banner .splash .text .label{font-size:1.5rem}.ad-wrap .ad .main-panel .photo-banner .splash .text .count{font-size:2rem;font-weight:700}.ad-wrap .ad .main-panel .photo-banner .splash .text .count .fa-spinner{font-size:1.5rem}.ad-wrap .ad .main-panel .photo-banner .member-since{color:#fff;background-color:#00000080;border-top-right-radius:5px;padding:.25rem .5rem;font-size:.75rem;position:absolute;bottom:0;left:0}.ad-wrap .ad .main-panel .photo-banner .photo{object-fit:cover;width:100%;height:100%;position:absolute;top:0;left:0}.ad-wrap .ad .main-panel .details-wrap{width:100%}.ad-wrap .ad .main-panel .links-list{flex-direction:column;display:flex}.ad-wrap .ad .main-panel .links-list .link-item{color:#000}.ad-wrap .ad .main-panel .links-list .link-item:hover{-webkit-text-decoration:underline red;text-decoration:underline red}.ad-wrap .ad .main-panel .details,.ad-wrap .ad .main-panel .detail-title{grid-gap:5px 5px;grid-template-columns:repeat(2,1fr);padding:.75rem .75rem 0;display:grid}.ad-wrap .ad .main-panel .details .detail .icon,.ad-wrap .ad .main-panel .detail-title .detail .icon{width:1.5rem;display:inline-block}.ad-wrap .ad .main-panel .details .detail .icon i,.ad-wrap .ad .main-panel .detail-title .detail .icon i{justify-content:flex-start;display:flex}.ad-wrap .ad .main-panel .short-description{min-height:50px;max-height:125px;padding:.25rem .75rem 0;overflow-y:auto}.ad-wrap .ad .main-panel .detail-title{justify-content:space-between;align-items:center;display:flex}.ad-wrap .ad .main-panel .action-wrap{border-top:1px solid var(--articles-ad-border-color,var(--card-background))}.ad-wrap .ad .main-panel .action-wrap .action{border:1px solid var(--articles-ad-border-color,var(--card-background));color:var(--articles-ad-font-color,var(--bs-body-color));cursor:pointer;border-radius:10px;justify-content:center;align-items:center;margin-left:auto;margin-right:auto;padding:.25rem;transition-duration:.2s;display:flex}.ad-wrap .ad .main-panel .action-wrap .action:hover{color:#000;background-color:#fff}.ad-wrap .ad .main-panel .action-wrap .action:active{background-color:gray}.ad-wrap .advertise-with-us{background-color:var(--articles-ad-background-color,var(--card-background));border-top:2px solid var(--articles-ad-border-color,var(--card-background))}.ad-wrap .advertise-with-us a{color:var(--articles-ad-font-color,var(--bs-body-color))!important}.ad-wrap .advertise-with-us a:hover{-webkit-text-decoration:underline red;text-decoration:underline red}.view-user-modal-badge-wrap{cursor:pointer;align-items:stretch;display:flex}.view-user-modal-badge-wrap.large .view-user-modal-badge{height:30px;position:relative}.view-user-modal-badge-wrap.large .view-user-modal-badge .membership-badge{font-size:1rem!important}.view-user-modal-badge-wrap.large .view-user-modal-badge .profile-photo-wrap{margin-right:.5rem;width:22px!important;height:22px!important}.view-user-modal-badge-wrap.large .view-user-modal-badge img{margin-right:.5rem}.view-user-modal-badge-wrap .badge-membership{position:relative}.view-user-modal-badge-wrap .verification-user-badge{align-items:center;display:flex}.profile-photo-wrap{position:relative}.profile-photo-wrap .online-status{z-index:1;background-color:gray;border:2px solid #000;width:10px;height:10px;position:absolute;bottom:1px;right:1px}.profile-photo-wrap .online-status.status-online{background-color:green;border:2px solid #009b22}:root{--articles-theme-primary:#f9edcd}.bg-articles{background-color:var(--articles-theme-primary);color:#000!important}.shadow-articles{box-shadow:0 0 0 1px #00000040,0 2px 3px #0003}.text-center{text-align:center}.d-flex{display:flex}.flex-header{justify-content:space-between;align-items:center;display:flex}.scoreboard{width:100%;max-width:300px;margin-top:1rem;margin-bottom:1rem}@media (width>=992px){.scoreboard{margin-top:0;margin-bottom:0;display:block;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}}.articles-game-scoreboard{color:#222;z-index:1;border:1px solid #ced4da;border-radius:8px;flex-direction:column;width:100%;max-width:350px;margin:0 1rem;display:flex;position:fixed;bottom:50%;left:8px;overflow:hidden;transform:translateY(50%);box-shadow:0 2px 8px #00000012}
2
+ /*$vite$:1*/
@@ -0,0 +1,31 @@
1
+ import { n as e } from "./jsx-runtime-VZk6y-ec.js";
2
+ //#region node_modules/classnames/index.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ (function() {
5
+ var e = {}.hasOwnProperty;
6
+ function n() {
7
+ for (var e = "", t = 0; t < arguments.length; t++) {
8
+ var n = arguments[t];
9
+ n && (e = i(e, r(n)));
10
+ }
11
+ return e;
12
+ }
13
+ function r(t) {
14
+ if (typeof t == "string" || typeof t == "number") return t;
15
+ if (typeof t != "object") return "";
16
+ if (Array.isArray(t)) return n.apply(null, t);
17
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
18
+ var r = "";
19
+ for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
20
+ return r;
21
+ }
22
+ function i(e, t) {
23
+ return t ? e ? e + " " + t : e + t : e;
24
+ }
25
+ t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
26
+ return n;
27
+ }) : window.classNames = n;
28
+ })();
29
+ }));
30
+ //#endregion
31
+ export { t };
package/dist/index.js CHANGED
@@ -1,28 +1,16 @@
1
- import { default as o } from "./ReturnToLauncherButton.js";
2
- import { default as t } from "./ArticlesAd.js";
3
- import { default as f } from "./Ad.js";
4
- import { default as l } from "./GameScoreboard.js";
5
- import { default as m } from "./GlobalHead.js";
6
- import { G as x } from "./GlobalBody-BrrtfBBs.js";
7
- import { default as i } from "./ViewUserModal.js";
8
- import { default as U } from "./SettingsModal.js";
9
- import { default as c } from "./DarkModeHandler.js";
10
- import { default as M } from "./FriendsList.js";
11
- import { default as B } from "./useUserDetails.js";
12
- import { default as F } from "./useUserToken.js";
13
- import { default as L } from "./useUserFriends.js";
14
- export {
15
- f as Ad,
16
- t as ArticlesAd,
17
- c as DarkModeHandler,
18
- M as FriendsList,
19
- l as GameScoreboard,
20
- x as GlobalBody,
21
- m as GlobalHead,
22
- o as ReturnToLauncherButton,
23
- U as SettingsModal,
24
- i as ViewUserModal,
25
- B as useUserDetails,
26
- L as useUserFriends,
27
- F as useUserToken
28
- };
1
+ import e from "./ReturnToLauncherButton.js";
2
+ import t from "./ArticlesAd.js";
3
+ import { t as n } from "./Ad-Ck5UdTq3.js";
4
+ import { t as r } from "./ViewUserModal-DDjWLpyM.js";
5
+ import { t as i } from "./GameScoreboard-CBY3JsFa.js";
6
+ import a from "./GlobalHead.js";
7
+ import o from "./GlobalBody.js";
8
+ import { t as s } from "./SettingsModal-XI2dMI09.js";
9
+ import c from "./CreditsModal.js";
10
+ import l from "./DarkModeHandler.js";
11
+ import u from "./useUserFriends.js";
12
+ import d from "./FriendsList.js";
13
+ import f from "./useUserDetails.js";
14
+ import p from "./useUserToken.js";
15
+ import m from "./useFullscreen.js";
16
+ export { n as Ad, t as ArticlesAd, c as CreditsModal, l as DarkModeHandler, d as FriendsList, i as GameScoreboard, o as GlobalBody, a as GlobalHead, e as ReturnToLauncherButton, s as SettingsModal, r as ViewUserModal, m as useFullscreen, f as useUserDetails, u as useUserFriends, p as useUserToken };
@@ -0,0 +1,191 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
3
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
+ get: ((e) => i[e]).bind(null, d),
5
+ enumerable: !(s = n(i, d)) || s.enumerable
6
+ });
7
+ return e;
8
+ }, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
9
+ value: n,
10
+ enumerable: !0
11
+ }) : a, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
12
+ if (typeof require < "u") return require.apply(this, arguments);
13
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
14
+ }), u = /* @__PURE__ */ o(((e) => {
15
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
16
+ function r(e, n, r) {
17
+ var i = null;
18
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
19
+ else r = n;
20
+ return n = r.ref, {
21
+ $$typeof: t,
22
+ type: e,
23
+ key: i,
24
+ ref: n === void 0 ? null : n,
25
+ props: r
26
+ };
27
+ }
28
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
29
+ })), d = /* @__PURE__ */ o(((e) => {
30
+ process.env.NODE_ENV !== "production" && (function() {
31
+ function t(e) {
32
+ if (e == null) return null;
33
+ if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
34
+ if (typeof e == "string") return e;
35
+ switch (e) {
36
+ case v: return "Fragment";
37
+ case b: return "Profiler";
38
+ case y: return "StrictMode";
39
+ case w: return "Suspense";
40
+ case T: return "SuspenseList";
41
+ case O: return "Activity";
42
+ }
43
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
44
+ case _: return "Portal";
45
+ case S: return e.displayName || "Context";
46
+ case x: return (e._context.displayName || "Context") + ".Consumer";
47
+ case C:
48
+ var n = e.render;
49
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
50
+ case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
51
+ case D:
52
+ n = e._payload, e = e._init;
53
+ try {
54
+ return t(e(n));
55
+ } catch {}
56
+ }
57
+ return null;
58
+ }
59
+ function n(e) {
60
+ return "" + e;
61
+ }
62
+ function r(e) {
63
+ try {
64
+ n(e);
65
+ var t = !1;
66
+ } catch {
67
+ t = !0;
68
+ }
69
+ if (t) {
70
+ t = console;
71
+ var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
72
+ return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
73
+ }
74
+ }
75
+ function i(e) {
76
+ if (e === v) return "<>";
77
+ if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
78
+ try {
79
+ var n = t(e);
80
+ return n ? "<" + n + ">" : "<...>";
81
+ } catch {
82
+ return "<...>";
83
+ }
84
+ }
85
+ function a() {
86
+ var e = A.A;
87
+ return e === null ? null : e.getOwner();
88
+ }
89
+ function o() {
90
+ return Error("react-stack-top-frame");
91
+ }
92
+ function s(e) {
93
+ if (j.call(e, "key")) {
94
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
95
+ if (t && t.isReactWarning) return !1;
96
+ }
97
+ return e.key !== void 0;
98
+ }
99
+ function c(e, t) {
100
+ function n() {
101
+ P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
102
+ }
103
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
104
+ get: n,
105
+ configurable: !0
106
+ });
107
+ }
108
+ function u() {
109
+ var e = t(this.type);
110
+ return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
111
+ }
112
+ function d(e, t, n, r, i, a) {
113
+ var o = n.ref;
114
+ return e = {
115
+ $$typeof: g,
116
+ type: e,
117
+ key: t,
118
+ props: n,
119
+ _owner: r
120
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
121
+ enumerable: !1,
122
+ value: null
123
+ }) : Object.defineProperty(e, "ref", {
124
+ enumerable: !1,
125
+ get: u
126
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
127
+ configurable: !1,
128
+ enumerable: !1,
129
+ writable: !0,
130
+ value: 0
131
+ }), Object.defineProperty(e, "_debugInfo", {
132
+ configurable: !1,
133
+ enumerable: !1,
134
+ writable: !0,
135
+ value: null
136
+ }), Object.defineProperty(e, "_debugStack", {
137
+ configurable: !1,
138
+ enumerable: !1,
139
+ writable: !0,
140
+ value: i
141
+ }), Object.defineProperty(e, "_debugTask", {
142
+ configurable: !1,
143
+ enumerable: !1,
144
+ writable: !0,
145
+ value: a
146
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
147
+ }
148
+ function f(e, n, i, o, l, u) {
149
+ var f = n.children;
150
+ if (f !== void 0) if (o) if (M(f)) {
151
+ for (o = 0; o < f.length; o++) p(f[o]);
152
+ Object.freeze && Object.freeze(f);
153
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
154
+ else p(f);
155
+ if (j.call(n, "key")) {
156
+ f = t(e);
157
+ var m = Object.keys(n).filter(function(e) {
158
+ return e !== "key";
159
+ });
160
+ o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), R[f + o] = !0);
161
+ }
162
+ if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
163
+ else i = n;
164
+ return f && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), l, u);
165
+ }
166
+ function p(e) {
167
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
168
+ }
169
+ function m(e) {
170
+ return typeof e == "object" && !!e && e.$$typeof === g;
171
+ }
172
+ var h = l("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
173
+ return null;
174
+ };
175
+ h = { react_stack_bottom_frame: function(e) {
176
+ return e();
177
+ } };
178
+ var P, F = {}, I = h.react_stack_bottom_frame.bind(h, o)(), L = N(i(o)), R = {};
179
+ e.Fragment = v, e.jsx = function(e, t, n) {
180
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
181
+ return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
182
+ }, e.jsxs = function(e, t, n) {
183
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
184
+ return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
185
+ };
186
+ })();
187
+ })), f = /* @__PURE__ */ o(((e, t) => {
188
+ process.env.NODE_ENV === "production" ? t.exports = u() : t.exports = d();
189
+ }));
190
+ //#endregion
191
+ export { o as n, c as r, f as t };
@@ -0,0 +1,18 @@
1
+ import { t as e } from "./jsx-runtime-VZk6y-ec.js";
2
+ import { format as t } from "date-fns";
3
+ //#region src/components/UI/ArticlesDate.jsx
4
+ var n = e();
5
+ function r(e) {
6
+ let r = e?.date, i = e?.format;
7
+ return r ? /* @__PURE__ */ (0, n.jsx)("span", {
8
+ "date-renderer": "ArticlesDate",
9
+ children: t(new Date(r), i || "MM/dd/yy - h:mmaa")
10
+ }) : "Need date prop";
11
+ }
12
+ //#endregion
13
+ //#region src/util/numberWithCommas.js
14
+ function i(e) {
15
+ return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
16
+ }
17
+ //#endregion
18
+ export { r as n, i as t };
@@ -0,0 +1,29 @@
1
+ import e from "swr";
2
+ //#region src/hooks/useMainSiteStatus.js
3
+ var t = (e) => fetch(e).then((e) => e.json()), n = (n) => {
4
+ let { data: r, error: i, isLoading: a, mutate: o } = e(process.env.NODE_ENV === "development" && !n?.disable ? "http://localhost:3001/api/config" : null, t, {
5
+ revalidateOnFocus: !1,
6
+ revalidateOnReconnect: !1,
7
+ shouldRetryOnError: !1
8
+ });
9
+ return {
10
+ data: r,
11
+ error: i,
12
+ isLoading: a,
13
+ mutate: o
14
+ };
15
+ }, r = (e) => fetch(e).then((e) => e.json()), i = (t) => {
16
+ let { data: n, error: i, isLoading: a, mutate: o } = e(process.env.NODE_ENV === "development" && !t?.disable ? "http://localhost:3012/api/status" : null, r, {
17
+ revalidateOnFocus: !1,
18
+ revalidateOnReconnect: !1,
19
+ shouldRetryOnError: !1
20
+ });
21
+ return {
22
+ data: n,
23
+ error: i,
24
+ isLoading: a,
25
+ mutate: o
26
+ };
27
+ };
28
+ //#endregion
29
+ export { n, i as t };
@@ -0,0 +1,24 @@
1
+ import { useEffect as e, useState as t } from "react";
2
+ //#region src/hooks/useFullscreen.js
3
+ var n = () => {
4
+ let [n, r] = t(!1);
5
+ return e(() => {
6
+ let e = () => {
7
+ r(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement);
8
+ };
9
+ return document.addEventListener("fullscreenchange", e), document.addEventListener("mozfullscreenchange", e), document.addEventListener("webkitfullscreenchange", e), document.addEventListener("MSFullscreenChange", e), () => {
10
+ document.removeEventListener("fullscreenchange", e), document.removeEventListener("mozfullscreenchange", e), document.removeEventListener("webkitfullscreenchange", e), document.removeEventListener("MSFullscreenChange", e);
11
+ };
12
+ }, []), {
13
+ isFullscreen: n,
14
+ requestFullscreen: (e) => {
15
+ let t = e ? document.getElementById(e) : document.documentElement;
16
+ t && (t.requestFullscreen ? t.requestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : t.msRequestFullscreen && t.msRequestFullscreen(), r(!0));
17
+ },
18
+ exitFullscreen: () => {
19
+ document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), r(!1);
20
+ }
21
+ };
22
+ };
23
+ //#endregion
24
+ export { n as default };
@@ -1,33 +1,23 @@
1
- import { u as n, a as r } from "./index-C8MeSLnR.js";
2
- const l = (e) => r.get(e.url, {
3
- // headers: {
4
- // Authorization: `Bearer ${params.token}`
5
- // },
6
- params: {
7
- token: e.token
8
- }
9
- }).then((t) => t.data), c = (e) => {
10
- const { data: t, error: s, isLoading: a, mutate: o } = n(
11
- e.token ? {
12
- // url: "/api/details",
13
- // url: "http://localhost:3012/api/auth/session",
14
- url: (process.env.NODE_ENV === "development" ? "http://localhost:3012" : "https://accounts.articles.media") + "/api/auth/session",
15
- token: e.token
16
- } : null,
17
- l,
18
- {
19
- revalidateOnFocus: !1,
20
- revalidateOnReconnect: !1,
21
- shouldRetryOnError: !1
22
- }
23
- );
24
- return {
25
- data: t,
26
- error: s,
27
- isLoading: a,
28
- mutate: o
29
- };
30
- };
31
- export {
32
- c as default
1
+ import e from "swr";
2
+ //#region src/hooks/User/useUserDetails.js
3
+ var t = (e) => {
4
+ let t = new URLSearchParams({ token: e.token }).toString();
5
+ return fetch(`${e.url}?${t}`).then((e) => e.json());
6
+ }, n = (n) => {
7
+ let { data: r, error: i, isLoading: a, mutate: o } = e(n.token ? {
8
+ url: (process.env.NODE_ENV === "development" ? "http://localhost:3012" : "https://accounts.articles.media") + "/api/auth/session",
9
+ token: n.token
10
+ } : null, t, {
11
+ revalidateOnFocus: !1,
12
+ revalidateOnReconnect: !1,
13
+ shouldRetryOnError: !1
14
+ });
15
+ return {
16
+ data: r,
17
+ error: i,
18
+ isLoading: a,
19
+ mutate: o
20
+ };
33
21
  };
22
+ //#endregion
23
+ export { n as default };
@@ -1,52 +1,30 @@
1
- import { u, a } from "./index-C8MeSLnR.js";
2
- const l = async (e) => {
3
- if (process.env.NODE_ENV === "development")
4
- try {
5
- return (await a.get("http://localhost:3001/api/user/friends", {
6
- params: {
7
- game: e.game
8
- // user_token: obj.user_token
9
- },
10
- headers: {
11
- "x-articles-api-key": e.user_token
12
- }
13
- })).data;
14
- } catch {
15
- }
16
- return a.get(e.url, {
17
- params: {
18
- game: e.game
19
- },
20
- headers: {
21
- "x-articles-api-key": e.user_token
22
- }
23
- }).then((r) => r.data);
24
- }, o = {
25
- dedupingInterval: 1e3 * 60 * 30,
26
- refreshInterval: 0,
27
- revalidateOnFocus: !1,
28
- revalidateIfStale: !1,
29
- shouldRetryOnError: !1
30
- // fallbackData: []
31
- }, c = (e) => {
32
- const { data: r, error: t, isLoading: s, isValidating: n, mutate: i } = u(
33
- e?.user_id && e?.user_token ? {
34
- // url: "/api/community/games/scoreboard",
35
- url: "https://articles.media/api/user/friends",
36
- // game: params.game,
37
- user_token: e.user_token
38
- } : null,
39
- l,
40
- o
41
- );
42
- return {
43
- data: r,
44
- error: t,
45
- isLoading: s,
46
- isValidating: n,
47
- mutate: i
48
- };
49
- };
50
- export {
51
- c as default
1
+ import e from "swr";
2
+ //#region src/hooks/User/useUserFriends.js
3
+ var t = async (e) => {
4
+ if (process.env.NODE_ENV === "development") try {
5
+ let t = new URLSearchParams({ game: e.game }).toString();
6
+ return await (await fetch(`http://localhost:3001/api/user/friends?${t}`, { headers: { "x-articles-api-key": e.user_token } })).json();
7
+ } catch {}
8
+ let t = new URLSearchParams({ game: e.game }).toString();
9
+ return fetch(`${e.url}?${t}`, { headers: { "x-articles-api-key": e.user_token } }).then((e) => e.json());
10
+ }, n = {
11
+ dedupingInterval: 1e3 * 60 * 30,
12
+ refreshInterval: 0,
13
+ revalidateOnFocus: !1,
14
+ revalidateIfStale: !1,
15
+ shouldRetryOnError: !1
16
+ }, r = (r) => {
17
+ let { data: i, error: a, isLoading: o, isValidating: s, mutate: c } = e(r?.user_id && r?.user_token ? {
18
+ url: "https://articles.media/api/user/friends",
19
+ user_token: r.user_token
20
+ } : null, t, n);
21
+ return {
22
+ data: i,
23
+ error: a,
24
+ isLoading: o,
25
+ isValidating: s,
26
+ mutate: c
27
+ };
52
28
  };
29
+ //#endregion
30
+ export { r as default };
@@ -1,22 +1,17 @@
1
- import { u as r, a as n } from "./index-C8MeSLnR.js";
2
- const l = (e) => n.get(e).then((t) => t.data), d = (e) => {
3
- const { data: t, error: a, isLoading: o, mutate: s } = r(
4
- // "http://localhost:3012/api/auth/session",
5
- process.env.NODE_ENV === "development" ? `http://localhost:${e}/api/token` : "/api/token",
6
- l,
7
- {
8
- revalidateOnFocus: !1,
9
- revalidateOnReconnect: !1,
10
- shouldRetryOnError: !1
11
- }
12
- );
13
- return {
14
- data: t,
15
- error: a,
16
- isLoading: o,
17
- mutate: s
18
- };
19
- };
20
- export {
21
- d as default
1
+ import e from "swr";
2
+ //#region src/hooks/User/useUserToken.js
3
+ var t = (e) => fetch(e).then((e) => e.json()), n = (n) => {
4
+ let { data: r, error: i, isLoading: a, mutate: o } = e(process.env.NODE_ENV === "development" ? `http://localhost:${n}/api/token` : "/api/token", t, {
5
+ revalidateOnFocus: !1,
6
+ revalidateOnReconnect: !1,
7
+ shouldRetryOnError: !1
8
+ });
9
+ return {
10
+ data: r,
11
+ error: i,
12
+ isLoading: a,
13
+ mutate: o
14
+ };
22
15
  };
16
+ //#endregion
17
+ export { n as default };