@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.
- package/README.md +6 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.js +16 -21
- package/package.json +26 -67
- package/dist/Ad.cjs +0 -1
- package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
- package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
- package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
- package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
- package/dist/ArticlesAd.cjs +0 -1
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/DarkModeHandler.cjs +0 -1
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/FriendsList.cjs +0 -1
- package/dist/GameScoreboard.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/GlobalBody.cjs +0 -1
- package/dist/GlobalHead.cjs +0 -1
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/ReturnToLauncherButton.cjs +0 -1
- package/dist/SettingsModal.cjs +0 -1
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/ViewUserModal.cjs +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-C8MeSLnR.js +0 -2504
- package/dist/index-DWV8myok.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/index.cjs +0 -1
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
- package/dist/useUserDetails.cjs +0 -1
- package/dist/useUserFriends.cjs +0 -1
- package/dist/useUserToken.cjs +0 -1
package/dist/SettingsModal.js
CHANGED
|
@@ -1,658 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useContext as y, useMemo as D, useState as A } from "react";
|
|
4
|
-
import { A as f } from "./Button-_Quon8UV.js";
|
|
5
|
-
import { c as p } from "./index-YnD2EP-S.js";
|
|
6
|
-
import { u as h, a as P, b as ee, P as v, M as F } from "./Modal-nux8R77F.js";
|
|
7
|
-
import { h as se, w as G } from "./ElementChildren-DN3RWY2E.js";
|
|
8
|
-
function ae({
|
|
9
|
-
as: s,
|
|
10
|
-
bsPrefix: a,
|
|
11
|
-
className: n,
|
|
12
|
-
...t
|
|
13
|
-
}) {
|
|
14
|
-
a = h(a, "col");
|
|
15
|
-
const o = P(), r = ee(), i = [], l = [];
|
|
16
|
-
return o.forEach((d) => {
|
|
17
|
-
const c = t[d];
|
|
18
|
-
delete t[d];
|
|
19
|
-
let u, N, g;
|
|
20
|
-
typeof c == "object" && c != null ? {
|
|
21
|
-
span: u,
|
|
22
|
-
offset: N,
|
|
23
|
-
order: g
|
|
24
|
-
} = c : u = c;
|
|
25
|
-
const j = d !== r ? `-${d}` : "";
|
|
26
|
-
u && i.push(u === !0 ? `${a}${j}` : `${a}${j}-${u}`), g != null && l.push(`order${j}-${g}`), N != null && l.push(`offset${j}-${N}`);
|
|
27
|
-
}), [{
|
|
28
|
-
...t,
|
|
29
|
-
className: p(n, ...i, ...l)
|
|
30
|
-
}, {
|
|
31
|
-
as: s,
|
|
32
|
-
bsPrefix: a,
|
|
33
|
-
spans: i
|
|
34
|
-
}];
|
|
35
|
-
}
|
|
36
|
-
const E = /* @__PURE__ */ m.forwardRef(
|
|
37
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
38
|
-
(s, a) => {
|
|
39
|
-
const [{
|
|
40
|
-
className: n,
|
|
41
|
-
...t
|
|
42
|
-
}, {
|
|
43
|
-
as: o = "div",
|
|
44
|
-
bsPrefix: r,
|
|
45
|
-
spans: i
|
|
46
|
-
}] = ae(s);
|
|
47
|
-
return /* @__PURE__ */ e.jsx(o, {
|
|
48
|
-
...t,
|
|
49
|
-
ref: a,
|
|
50
|
-
className: p(n, !i.length && r)
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
E.displayName = "Col";
|
|
55
|
-
const ne = {
|
|
56
|
-
/**
|
|
57
|
-
* Specify whether the feedback is for valid or invalid fields
|
|
58
|
-
*
|
|
59
|
-
* @type {('valid'|'invalid')}
|
|
60
|
-
*/
|
|
61
|
-
type: v.string,
|
|
62
|
-
/** Display feedback as a tooltip. */
|
|
63
|
-
tooltip: v.bool,
|
|
64
|
-
as: v.elementType
|
|
65
|
-
}, w = /* @__PURE__ */ m.forwardRef(
|
|
66
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
67
|
-
({
|
|
68
|
-
as: s = "div",
|
|
69
|
-
className: a,
|
|
70
|
-
type: n = "valid",
|
|
71
|
-
tooltip: t = !1,
|
|
72
|
-
...o
|
|
73
|
-
}, r) => /* @__PURE__ */ e.jsx(s, {
|
|
74
|
-
...o,
|
|
75
|
-
ref: r,
|
|
76
|
-
className: p(a, `${n}-${t ? "tooltip" : "feedback"}`)
|
|
77
|
-
})
|
|
78
|
-
);
|
|
79
|
-
w.displayName = "Feedback";
|
|
80
|
-
w.propTypes = ne;
|
|
81
|
-
const x = /* @__PURE__ */ m.createContext({}), L = /* @__PURE__ */ m.forwardRef(({
|
|
82
|
-
id: s,
|
|
83
|
-
bsPrefix: a,
|
|
84
|
-
className: n,
|
|
85
|
-
type: t = "checkbox",
|
|
86
|
-
isValid: o = !1,
|
|
87
|
-
isInvalid: r = !1,
|
|
88
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
89
|
-
as: i = "input",
|
|
90
|
-
...l
|
|
91
|
-
}, d) => {
|
|
92
|
-
const {
|
|
93
|
-
controlId: c
|
|
94
|
-
} = y(x);
|
|
95
|
-
return a = h(a, "form-check-input"), /* @__PURE__ */ e.jsx(i, {
|
|
96
|
-
...l,
|
|
97
|
-
ref: d,
|
|
98
|
-
type: t,
|
|
99
|
-
id: s || c,
|
|
100
|
-
className: p(n, a, o && "is-valid", r && "is-invalid")
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
L.displayName = "FormCheckInput";
|
|
104
|
-
const k = /* @__PURE__ */ m.forwardRef(({
|
|
105
|
-
bsPrefix: s,
|
|
106
|
-
className: a,
|
|
107
|
-
htmlFor: n,
|
|
108
|
-
...t
|
|
109
|
-
}, o) => {
|
|
110
|
-
const {
|
|
111
|
-
controlId: r
|
|
112
|
-
} = y(x);
|
|
113
|
-
return s = h(s, "form-check-label"), /* @__PURE__ */ e.jsx("label", {
|
|
114
|
-
...t,
|
|
115
|
-
ref: o,
|
|
116
|
-
htmlFor: n || r,
|
|
117
|
-
className: p(a, s)
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
k.displayName = "FormCheckLabel";
|
|
121
|
-
const B = /* @__PURE__ */ m.forwardRef(({
|
|
122
|
-
id: s,
|
|
123
|
-
bsPrefix: a,
|
|
124
|
-
bsSwitchPrefix: n,
|
|
125
|
-
inline: t = !1,
|
|
126
|
-
reverse: o = !1,
|
|
127
|
-
disabled: r = !1,
|
|
128
|
-
isValid: i = !1,
|
|
129
|
-
isInvalid: l = !1,
|
|
130
|
-
feedbackTooltip: d = !1,
|
|
131
|
-
feedback: c,
|
|
132
|
-
feedbackType: u,
|
|
133
|
-
className: N,
|
|
134
|
-
style: g,
|
|
135
|
-
title: j = "",
|
|
136
|
-
type: $ = "checkbox",
|
|
137
|
-
label: R,
|
|
138
|
-
children: M,
|
|
139
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
140
|
-
as: W = "input",
|
|
141
|
-
...X
|
|
142
|
-
}, Y) => {
|
|
143
|
-
a = h(a, "form-check"), n = h(n, "form-switch");
|
|
144
|
-
const {
|
|
145
|
-
controlId: I
|
|
146
|
-
} = y(x), Z = D(() => ({
|
|
147
|
-
controlId: s || I
|
|
148
|
-
}), [I, s]), S = !M && R != null && R !== !1 || se(M, k), _ = /* @__PURE__ */ e.jsx(L, {
|
|
149
|
-
...X,
|
|
150
|
-
type: $ === "switch" ? "checkbox" : $,
|
|
151
|
-
ref: Y,
|
|
152
|
-
isValid: i,
|
|
153
|
-
isInvalid: l,
|
|
154
|
-
disabled: r,
|
|
155
|
-
as: W
|
|
156
|
-
});
|
|
157
|
-
return /* @__PURE__ */ e.jsx(x.Provider, {
|
|
158
|
-
value: Z,
|
|
159
|
-
children: /* @__PURE__ */ e.jsx("div", {
|
|
160
|
-
style: g,
|
|
161
|
-
className: p(N, S && a, t && `${a}-inline`, o && `${a}-reverse`, $ === "switch" && n),
|
|
162
|
-
children: M || /* @__PURE__ */ e.jsxs(e.Fragment, {
|
|
163
|
-
children: [_, S && /* @__PURE__ */ e.jsx(k, {
|
|
164
|
-
title: j,
|
|
165
|
-
children: R
|
|
166
|
-
}), c && /* @__PURE__ */ e.jsx(w, {
|
|
167
|
-
type: u,
|
|
168
|
-
tooltip: d,
|
|
169
|
-
children: c
|
|
170
|
-
})]
|
|
171
|
-
})
|
|
172
|
-
})
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
B.displayName = "FormCheck";
|
|
176
|
-
const b = Object.assign(B, {
|
|
177
|
-
Input: L,
|
|
178
|
-
Label: k
|
|
179
|
-
}), Q = /* @__PURE__ */ m.forwardRef(({
|
|
180
|
-
bsPrefix: s,
|
|
181
|
-
type: a,
|
|
182
|
-
size: n,
|
|
183
|
-
htmlSize: t,
|
|
184
|
-
id: o,
|
|
185
|
-
className: r,
|
|
186
|
-
isValid: i = !1,
|
|
187
|
-
isInvalid: l = !1,
|
|
188
|
-
plaintext: d,
|
|
189
|
-
readOnly: c,
|
|
190
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
191
|
-
as: u = "input",
|
|
192
|
-
...N
|
|
193
|
-
}, g) => {
|
|
194
|
-
const {
|
|
195
|
-
controlId: j
|
|
196
|
-
} = y(x);
|
|
197
|
-
return s = h(s, "form-control"), process.env.NODE_ENV !== "production" && G(j == null || !o, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ e.jsx(u, {
|
|
198
|
-
...N,
|
|
199
|
-
type: a,
|
|
200
|
-
size: t,
|
|
201
|
-
ref: g,
|
|
202
|
-
readOnly: c,
|
|
203
|
-
id: o || j,
|
|
204
|
-
className: p(r, d ? `${s}-plaintext` : s, n && `${s}-${n}`, a === "color" && `${s}-color`, i && "is-valid", l && "is-invalid")
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
Q.displayName = "FormControl";
|
|
208
|
-
const te = Object.assign(Q, {
|
|
209
|
-
Feedback: w
|
|
210
|
-
}), H = /* @__PURE__ */ m.forwardRef(({
|
|
211
|
-
className: s,
|
|
212
|
-
bsPrefix: a,
|
|
213
|
-
as: n = "div",
|
|
214
|
-
...t
|
|
215
|
-
}, o) => (a = h(a, "form-floating"), /* @__PURE__ */ e.jsx(n, {
|
|
216
|
-
ref: o,
|
|
217
|
-
className: p(s, a),
|
|
218
|
-
...t
|
|
219
|
-
})));
|
|
220
|
-
H.displayName = "FormFloating";
|
|
221
|
-
const T = /* @__PURE__ */ m.forwardRef(({
|
|
222
|
-
controlId: s,
|
|
223
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
224
|
-
as: a = "div",
|
|
225
|
-
...n
|
|
226
|
-
}, t) => {
|
|
227
|
-
const o = D(() => ({
|
|
228
|
-
controlId: s
|
|
229
|
-
}), [s]);
|
|
230
|
-
return /* @__PURE__ */ e.jsx(x.Provider, {
|
|
231
|
-
value: o,
|
|
232
|
-
children: /* @__PURE__ */ e.jsx(a, {
|
|
233
|
-
...n,
|
|
234
|
-
ref: t
|
|
235
|
-
})
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
T.displayName = "FormGroup";
|
|
239
|
-
const V = /* @__PURE__ */ m.forwardRef(({
|
|
240
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
241
|
-
as: s = "label",
|
|
242
|
-
bsPrefix: a,
|
|
243
|
-
column: n = !1,
|
|
244
|
-
visuallyHidden: t = !1,
|
|
245
|
-
className: o,
|
|
246
|
-
htmlFor: r,
|
|
247
|
-
...i
|
|
248
|
-
}, l) => {
|
|
249
|
-
const {
|
|
250
|
-
controlId: d
|
|
251
|
-
} = y(x);
|
|
252
|
-
a = h(a, "form-label");
|
|
253
|
-
let c = "col-form-label";
|
|
254
|
-
typeof n == "string" && (c = `${c} ${c}-${n}`);
|
|
255
|
-
const u = p(o, a, t && "visually-hidden", n && c);
|
|
256
|
-
return process.env.NODE_ENV !== "production" && G(d == null || !r, "`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."), r = r || d, n ? /* @__PURE__ */ e.jsx(E, {
|
|
257
|
-
ref: l,
|
|
258
|
-
as: "label",
|
|
259
|
-
className: u,
|
|
260
|
-
htmlFor: r,
|
|
261
|
-
...i
|
|
262
|
-
}) : /* @__PURE__ */ e.jsx(s, {
|
|
263
|
-
ref: l,
|
|
264
|
-
className: u,
|
|
265
|
-
htmlFor: r,
|
|
266
|
-
...i
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
V.displayName = "FormLabel";
|
|
270
|
-
const z = /* @__PURE__ */ m.forwardRef(({
|
|
271
|
-
bsPrefix: s,
|
|
272
|
-
className: a,
|
|
273
|
-
id: n,
|
|
274
|
-
...t
|
|
275
|
-
}, o) => {
|
|
276
|
-
const {
|
|
277
|
-
controlId: r
|
|
278
|
-
} = y(x);
|
|
279
|
-
return s = h(s, "form-range"), /* @__PURE__ */ e.jsx("input", {
|
|
280
|
-
...t,
|
|
281
|
-
type: "range",
|
|
282
|
-
ref: o,
|
|
283
|
-
className: p(a, s),
|
|
284
|
-
id: n || r
|
|
285
|
-
});
|
|
286
|
-
});
|
|
287
|
-
z.displayName = "FormRange";
|
|
288
|
-
const q = /* @__PURE__ */ m.forwardRef(({
|
|
289
|
-
bsPrefix: s,
|
|
290
|
-
size: a,
|
|
291
|
-
htmlSize: n,
|
|
292
|
-
className: t,
|
|
293
|
-
isValid: o = !1,
|
|
294
|
-
isInvalid: r = !1,
|
|
295
|
-
id: i,
|
|
296
|
-
...l
|
|
297
|
-
}, d) => {
|
|
298
|
-
const {
|
|
299
|
-
controlId: c
|
|
300
|
-
} = y(x);
|
|
301
|
-
return s = h(s, "form-select"), /* @__PURE__ */ e.jsx("select", {
|
|
302
|
-
...l,
|
|
303
|
-
size: n,
|
|
304
|
-
ref: d,
|
|
305
|
-
className: p(t, s, a && `${s}-${a}`, o && "is-valid", r && "is-invalid"),
|
|
306
|
-
id: i || c
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
q.displayName = "FormSelect";
|
|
310
|
-
const J = /* @__PURE__ */ m.forwardRef(
|
|
311
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
312
|
-
({
|
|
313
|
-
bsPrefix: s,
|
|
314
|
-
className: a,
|
|
315
|
-
as: n = "small",
|
|
316
|
-
muted: t,
|
|
317
|
-
...o
|
|
318
|
-
}, r) => (s = h(s, "form-text"), /* @__PURE__ */ e.jsx(n, {
|
|
319
|
-
...o,
|
|
320
|
-
ref: r,
|
|
321
|
-
className: p(a, s, t && "text-muted")
|
|
322
|
-
}))
|
|
323
|
-
);
|
|
324
|
-
J.displayName = "FormText";
|
|
325
|
-
const K = /* @__PURE__ */ m.forwardRef((s, a) => /* @__PURE__ */ e.jsx(b, {
|
|
326
|
-
...s,
|
|
327
|
-
ref: a,
|
|
328
|
-
type: "switch"
|
|
329
|
-
}));
|
|
330
|
-
K.displayName = "Switch";
|
|
331
|
-
const oe = Object.assign(K, {
|
|
332
|
-
Input: b.Input,
|
|
333
|
-
Label: b.Label
|
|
334
|
-
}), U = /* @__PURE__ */ m.forwardRef(({
|
|
335
|
-
bsPrefix: s,
|
|
336
|
-
className: a,
|
|
337
|
-
children: n,
|
|
338
|
-
controlId: t,
|
|
339
|
-
label: o,
|
|
340
|
-
...r
|
|
341
|
-
}, i) => (s = h(s, "form-floating"), /* @__PURE__ */ e.jsxs(T, {
|
|
342
|
-
ref: i,
|
|
343
|
-
className: p(a, s),
|
|
344
|
-
controlId: t,
|
|
345
|
-
...r,
|
|
346
|
-
children: [n, /* @__PURE__ */ e.jsx("label", {
|
|
347
|
-
htmlFor: t,
|
|
348
|
-
children: o
|
|
349
|
-
})]
|
|
350
|
-
})));
|
|
351
|
-
U.displayName = "FloatingLabel";
|
|
352
|
-
const le = {
|
|
353
|
-
/**
|
|
354
|
-
* The Form `ref` will be forwarded to the underlying element,
|
|
355
|
-
* which means, unless it's rendered `as` a composite component,
|
|
356
|
-
* it will be a DOM node, when resolved.
|
|
357
|
-
*
|
|
358
|
-
* @type {ReactRef}
|
|
359
|
-
* @alias ref
|
|
360
|
-
*/
|
|
361
|
-
_ref: v.any,
|
|
362
|
-
/**
|
|
363
|
-
* Mark a form as having been validated. Setting it to `true` will
|
|
364
|
-
* toggle any validation styles on the forms elements.
|
|
365
|
-
*/
|
|
366
|
-
validated: v.bool,
|
|
367
|
-
as: v.elementType
|
|
368
|
-
}, O = /* @__PURE__ */ m.forwardRef(({
|
|
369
|
-
className: s,
|
|
370
|
-
validated: a,
|
|
371
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
372
|
-
as: n = "form",
|
|
373
|
-
...t
|
|
374
|
-
}, o) => /* @__PURE__ */ e.jsx(n, {
|
|
375
|
-
...t,
|
|
376
|
-
ref: o,
|
|
377
|
-
className: p(s, a && "was-validated")
|
|
378
|
-
}));
|
|
379
|
-
O.displayName = "Form";
|
|
380
|
-
O.propTypes = le;
|
|
381
|
-
const C = Object.assign(O, {
|
|
382
|
-
Group: T,
|
|
383
|
-
Control: te,
|
|
384
|
-
Floating: H,
|
|
385
|
-
Check: b,
|
|
386
|
-
Switch: oe,
|
|
387
|
-
Label: V,
|
|
388
|
-
Text: J,
|
|
389
|
-
Range: z,
|
|
390
|
-
Select: q,
|
|
391
|
-
FloatingLabel: U
|
|
392
|
-
});
|
|
393
|
-
function re({
|
|
394
|
-
useStore: s
|
|
395
|
-
}) {
|
|
396
|
-
const a = s((l) => l?.darkMode), n = s((l) => l?.setDarkMode), t = s((l) => l?.graphicsQuality), o = s((l) => l?.setGraphicsQuality), r = s((l) => l?.landingAnimation), i = s((l) => l?.setLandingAnimation);
|
|
397
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
398
|
-
/* @__PURE__ */ e.jsx("div", { children: "Dark Mode" }),
|
|
399
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-3", children: [!1, !0].map((l, d) => /* @__PURE__ */ e.jsx(
|
|
400
|
-
f,
|
|
401
|
-
{
|
|
402
|
-
active: a === l,
|
|
403
|
-
onClick: () => {
|
|
404
|
-
n(l);
|
|
405
|
-
},
|
|
406
|
-
children: l ? "On" : "Off"
|
|
407
|
-
},
|
|
408
|
-
d
|
|
409
|
-
)) }),
|
|
410
|
-
/* @__PURE__ */ e.jsx("div", { children: "Graphics Quality" }),
|
|
411
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-3", children: ["Low", "Medium", "High"].map((l) => /* @__PURE__ */ e.jsx(
|
|
412
|
-
f,
|
|
413
|
-
{
|
|
414
|
-
active: t === l,
|
|
415
|
-
onClick: () => {
|
|
416
|
-
o(l);
|
|
417
|
-
},
|
|
418
|
-
children: l
|
|
419
|
-
},
|
|
420
|
-
l
|
|
421
|
-
)) }),
|
|
422
|
-
/* @__PURE__ */ e.jsx("div", { children: "Landing Animation" }),
|
|
423
|
-
/* @__PURE__ */ e.jsxs("div", { className: "mb-3", children: [
|
|
424
|
-
/* @__PURE__ */ e.jsx(
|
|
425
|
-
f,
|
|
426
|
-
{
|
|
427
|
-
active: r === !1,
|
|
428
|
-
onClick: () => {
|
|
429
|
-
i(!1);
|
|
430
|
-
},
|
|
431
|
-
children: "Disabled"
|
|
432
|
-
}
|
|
433
|
-
),
|
|
434
|
-
/* @__PURE__ */ e.jsx(
|
|
435
|
-
f,
|
|
436
|
-
{
|
|
437
|
-
active: r === !0,
|
|
438
|
-
onClick: () => {
|
|
439
|
-
i(!0);
|
|
440
|
-
},
|
|
441
|
-
children: "Enabled"
|
|
442
|
-
}
|
|
443
|
-
)
|
|
444
|
-
] })
|
|
445
|
-
] });
|
|
446
|
-
}
|
|
447
|
-
function ce({
|
|
448
|
-
useAudioStore: s,
|
|
449
|
-
config: a
|
|
450
|
-
}) {
|
|
451
|
-
const n = s((o) => o?.audioSettings), t = s((o) => o?.setAudioSettings);
|
|
452
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
453
|
-
/* @__PURE__ */ e.jsx("div", { children: "Sound" }),
|
|
454
|
-
/* @__PURE__ */ e.jsxs("div", { className: "mb-3", children: [
|
|
455
|
-
/* @__PURE__ */ e.jsx(
|
|
456
|
-
f,
|
|
457
|
-
{
|
|
458
|
-
active: !n?.enabled,
|
|
459
|
-
onClick: () => {
|
|
460
|
-
t({
|
|
461
|
-
...n,
|
|
462
|
-
enabled: !1
|
|
463
|
-
});
|
|
464
|
-
},
|
|
465
|
-
children: "Disabled"
|
|
466
|
-
}
|
|
467
|
-
),
|
|
468
|
-
/* @__PURE__ */ e.jsx(
|
|
469
|
-
f,
|
|
470
|
-
{
|
|
471
|
-
active: n?.enabled,
|
|
472
|
-
onClick: () => {
|
|
473
|
-
t({
|
|
474
|
-
...n,
|
|
475
|
-
enabled: !0
|
|
476
|
-
});
|
|
477
|
-
},
|
|
478
|
-
children: "Enabled"
|
|
479
|
-
}
|
|
480
|
-
)
|
|
481
|
-
] }),
|
|
482
|
-
a?.tabs?.Audio?.sliders?.map((o) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
483
|
-
/* @__PURE__ */ e.jsx(C.Label, { className: "mb-0", children: o.label }),
|
|
484
|
-
/* @__PURE__ */ e.jsx(
|
|
485
|
-
C.Range,
|
|
486
|
-
{
|
|
487
|
-
value: n?.[o.key],
|
|
488
|
-
onChange: (r) => {
|
|
489
|
-
t({
|
|
490
|
-
...n,
|
|
491
|
-
[o.key]: r.target.value
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
)
|
|
496
|
-
] }, o.key))
|
|
497
|
-
] });
|
|
498
|
-
}
|
|
499
|
-
function ie() {
|
|
500
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "p-2", children: [
|
|
501
|
-
/* @__PURE__ */ e.jsx(C.Label, { className: "mb-0", children: "Socket Server Host" }),
|
|
502
|
-
/* @__PURE__ */ e.jsx(
|
|
503
|
-
C.Control,
|
|
504
|
-
{
|
|
505
|
-
type: "text"
|
|
506
|
-
}
|
|
507
|
-
),
|
|
508
|
-
/* @__PURE__ */ e.jsx(C.Label, { className: "mb-0", children: "Edit this to connect to a different multiplayer host!" }),
|
|
509
|
-
/* @__PURE__ */ e.jsxs("div", { className: "mt-3", children: [
|
|
510
|
-
/* @__PURE__ */ e.jsx(
|
|
511
|
-
f,
|
|
512
|
-
{
|
|
513
|
-
className: "mb-1",
|
|
514
|
-
children: "Retry"
|
|
515
|
-
}
|
|
516
|
-
),
|
|
517
|
-
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
518
|
-
"Status: ",
|
|
519
|
-
/* @__PURE__ */ e.jsx("span", { className: "badge bg-danger", children: "Offline" })
|
|
520
|
-
] })
|
|
521
|
-
] })
|
|
522
|
-
] });
|
|
523
|
-
}
|
|
524
|
-
function de() {
|
|
525
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "p-2", children: [
|
|
526
|
-
/* @__PURE__ */ e.jsx("h5", { children: "Control Settings" }),
|
|
527
|
-
/* @__PURE__ */ e.jsx("p", { children: "Configure your key bindings and control preferences here." })
|
|
528
|
-
] });
|
|
529
|
-
}
|
|
530
|
-
function me({
|
|
531
|
-
useStore: s
|
|
532
|
-
}) {
|
|
533
|
-
const a = s((t) => t?.debug), n = s((t) => t?.setDebug);
|
|
534
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
535
|
-
/* @__PURE__ */ e.jsx("div", { children: "Debug Mode" }),
|
|
536
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-3", children: [!1, !0].map((t, o) => /* @__PURE__ */ e.jsx(
|
|
537
|
-
f,
|
|
538
|
-
{
|
|
539
|
-
active: a === t,
|
|
540
|
-
onClick: () => {
|
|
541
|
-
n(t);
|
|
542
|
-
},
|
|
543
|
-
children: t ? "On" : "Off"
|
|
544
|
-
},
|
|
545
|
-
o
|
|
546
|
-
)) })
|
|
547
|
-
] });
|
|
548
|
-
}
|
|
549
|
-
function Ne({
|
|
550
|
-
show: s,
|
|
551
|
-
setShow: a,
|
|
552
|
-
store: n,
|
|
553
|
-
useAudioStore: t,
|
|
554
|
-
config: o
|
|
555
|
-
}) {
|
|
556
|
-
const [r, i] = A(!1), [l, d] = A("Graphics");
|
|
557
|
-
return n((c) => c.darkMode), n((c) => c.setDarkMode), n((c) => c.arcadeMode), n((c) => c.setArcadeMode), /* @__PURE__ */ e.jsxs(
|
|
558
|
-
F,
|
|
559
|
-
{
|
|
560
|
-
className: "articles-modal",
|
|
561
|
-
size: "md",
|
|
562
|
-
show: s,
|
|
563
|
-
centered: !0,
|
|
564
|
-
scrollable: !0,
|
|
565
|
-
onExited: () => {
|
|
566
|
-
},
|
|
567
|
-
onHide: () => {
|
|
568
|
-
a(!1);
|
|
569
|
-
},
|
|
570
|
-
children: [
|
|
571
|
-
/* @__PURE__ */ e.jsx(F.Header, { closeButton: !0, children: /* @__PURE__ */ e.jsx(F.Title, { children: "Game Settings" }) }),
|
|
572
|
-
/* @__PURE__ */ e.jsxs(F.Body, { className: "flex-column p-0", children: [
|
|
573
|
-
/* @__PURE__ */ e.jsx("div", { className: "p-2", children: [
|
|
574
|
-
"Graphics",
|
|
575
|
-
"Controls",
|
|
576
|
-
"Audio",
|
|
577
|
-
"Multiplayer",
|
|
578
|
-
// 'Chat',
|
|
579
|
-
"Other"
|
|
580
|
-
].map(
|
|
581
|
-
(c) => /* @__PURE__ */ e.jsx(
|
|
582
|
-
f,
|
|
583
|
-
{
|
|
584
|
-
active: l == c,
|
|
585
|
-
onClick: () => {
|
|
586
|
-
d(c);
|
|
587
|
-
},
|
|
588
|
-
children: c
|
|
589
|
-
},
|
|
590
|
-
c
|
|
591
|
-
)
|
|
592
|
-
) }),
|
|
593
|
-
/* @__PURE__ */ e.jsx("hr", { className: "my-0" }),
|
|
594
|
-
/* @__PURE__ */ e.jsxs("div", { className: "p-2", children: [
|
|
595
|
-
l == "Controls" && /* @__PURE__ */ e.jsx(
|
|
596
|
-
de,
|
|
597
|
-
{
|
|
598
|
-
useStore: n,
|
|
599
|
-
config: o
|
|
600
|
-
}
|
|
601
|
-
),
|
|
602
|
-
l == "Graphics" && /* @__PURE__ */ e.jsx(
|
|
603
|
-
re,
|
|
604
|
-
{
|
|
605
|
-
useStore: n,
|
|
606
|
-
config: o
|
|
607
|
-
}
|
|
608
|
-
),
|
|
609
|
-
l == "Audio" && /* @__PURE__ */ e.jsx(
|
|
610
|
-
ce,
|
|
611
|
-
{
|
|
612
|
-
useAudioStore: t,
|
|
613
|
-
config: o
|
|
614
|
-
}
|
|
615
|
-
),
|
|
616
|
-
l == "Multiplayer" && /* @__PURE__ */ e.jsx(
|
|
617
|
-
ie,
|
|
618
|
-
{
|
|
619
|
-
useStore: n,
|
|
620
|
-
config: o
|
|
621
|
-
}
|
|
622
|
-
),
|
|
623
|
-
l == "Other" && /* @__PURE__ */ e.jsx(
|
|
624
|
-
me,
|
|
625
|
-
{
|
|
626
|
-
useStore: n
|
|
627
|
-
}
|
|
628
|
-
)
|
|
629
|
-
] })
|
|
630
|
-
] }),
|
|
631
|
-
/* @__PURE__ */ e.jsx(F.Footer, { className: "justify-content-between", children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
632
|
-
/* @__PURE__ */ e.jsx(
|
|
633
|
-
f,
|
|
634
|
-
{
|
|
635
|
-
variant: "outline-dark",
|
|
636
|
-
onClick: () => {
|
|
637
|
-
a(!1);
|
|
638
|
-
},
|
|
639
|
-
children: "Close"
|
|
640
|
-
}
|
|
641
|
-
),
|
|
642
|
-
/* @__PURE__ */ e.jsx(
|
|
643
|
-
f,
|
|
644
|
-
{
|
|
645
|
-
variant: "outline-danger ms-3",
|
|
646
|
-
onClick: () => {
|
|
647
|
-
},
|
|
648
|
-
children: "Reset"
|
|
649
|
-
}
|
|
650
|
-
)
|
|
651
|
-
] }) })
|
|
652
|
-
]
|
|
653
|
-
}
|
|
654
|
-
);
|
|
655
|
-
}
|
|
656
|
-
export {
|
|
657
|
-
Ne as default
|
|
658
|
-
};
|
|
1
|
+
import { t as e } from "./SettingsModal-XI2dMI09.js";
|
|
2
|
+
export { e as default };
|