@articles-media/articles-dev-box 1.0.22 → 1.0.24

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 (66) 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 +23 -24
  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 +18 -66
  25. package/dist/Ad-Ck5UdTq3.js +0 -387
  26. package/dist/Ad-DYtftKNV.cjs +0 -1
  27. package/dist/Ad.cjs +0 -1
  28. package/dist/AdConfirmExitModal-CJ-HtcVC.js +0 -56
  29. package/dist/AdConfirmExitModal-CRCnzYQM.cjs +0 -1
  30. package/dist/AdDetailsModal-DRNRTL2W.js +0 -108
  31. package/dist/AdDetailsModal-g0n7LiV6.cjs +0 -1
  32. package/dist/ArticlesAd.cjs +0 -1
  33. package/dist/Button-CbpRj01E.cjs +0 -1
  34. package/dist/CreditsModal.cjs +0 -1
  35. package/dist/DarkModeHandler.cjs +0 -1
  36. package/dist/FriendsList.cjs +0 -1
  37. package/dist/GameScoreboard-DdOCRxON.cjs +0 -1
  38. package/dist/GameScoreboard.cjs +0 -1
  39. package/dist/GlobalBody.cjs +0 -33
  40. package/dist/GlobalHead.cjs +0 -1
  41. package/dist/Link-MFZblBb4.js +0 -17
  42. package/dist/Link-c7exNCJ3.cjs +0 -1
  43. package/dist/Modal-BX1s6CCU.js +0 -1631
  44. package/dist/Modal-DP9CeAVD.cjs +0 -3
  45. package/dist/ReturnToLauncherButton.cjs +0 -1
  46. package/dist/SettingsModal--sWLmLGp.cjs +0 -1
  47. package/dist/SettingsModal-XI2dMI09.js +0 -247
  48. package/dist/SettingsModal.cjs +0 -1
  49. package/dist/StatusModal-D7WDDR9P.cjs +0 -1
  50. package/dist/StatusModal-elrPJvX1.js +0 -70
  51. package/dist/ViewUserModal-DDjWLpyM.js +0 -3094
  52. package/dist/ViewUserModal-DPVcjXNU.cjs +0 -1
  53. package/dist/ViewUserModal.cjs +0 -1
  54. package/dist/chunk-350yNsax.cjs +0 -1
  55. package/dist/classnames-pS64X3rL.cjs +0 -1
  56. package/dist/index.cjs +0 -1
  57. package/dist/jsx-runtime-VZk6y-ec.js +0 -191
  58. package/dist/jsx-runtime-hCcDh67y.cjs +0 -6
  59. package/dist/numberWithCommas-BSKBdR-e.js +0 -18
  60. package/dist/numberWithCommas-D9tgiUnq.cjs +0 -1
  61. package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +0 -1
  62. package/dist/useFullscreen.cjs +0 -1
  63. package/dist/useUserDetails.cjs +0 -1
  64. package/dist/useUserFriends.cjs +0 -1
  65. package/dist/useUserToken.cjs +0 -1
  66. /package/dist/{useAuthSiteStatus-1rHjYC4N.js → useAuthSiteStatus-Cj9IjMj7.js} +0 -0
@@ -1,3094 +0,0 @@
1
- import { n as e, r as t, t as n } from "./jsx-runtime-VZk6y-ec.js";
2
- import { t as r } from "./classnames-DP6dWde5.js";
3
- import { t as i } from "./Button-BlAdEbSd.js";
4
- import { t as a } from "./Link-MFZblBb4.js";
5
- import { n as o, t as s } from "./numberWithCommas-BSKBdR-e.js";
6
- import { _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, y as D } from "./Modal-BX1s6CCU.js";
7
- import * as O from "react";
8
- import { cloneElement as k, useCallback as A, useEffect as j, useLayoutEffect as M, useMemo as N, useRef as P, useState as F } from "react";
9
- import ee from "swr";
10
- import { differenceInMonths as I, format as te, minutesToMilliseconds as ne } from "date-fns";
11
- import L from "react-dom";
12
- import re from "swr/immutable";
13
- import { ProgressBar as R } from "react-bootstrap";
14
- //#region node_modules/@restart/hooks/esm/useMounted.js
15
- function ie() {
16
- let e = P(!0), t = P(() => e.current);
17
- return j(() => (e.current = !0, () => {
18
- e.current = !1;
19
- }), []), t.current;
20
- }
21
- //#endregion
22
- //#region node_modules/@restart/hooks/esm/useTimeout.js
23
- var ae = 2 ** 31 - 1;
24
- function oe(e, t, n) {
25
- let r = n - Date.now();
26
- e.current = r <= ae ? setTimeout(t, r) : setTimeout(() => oe(e, t, n), ae);
27
- }
28
- function se() {
29
- let e = ie(), t = P();
30
- return c(() => clearTimeout(t.current)), N(() => {
31
- let n = () => clearTimeout(t.current);
32
- function r(r, i = 0) {
33
- e() && (n(), i <= ae ? t.current = setTimeout(r, i) : oe(t, r, Date.now() + i));
34
- }
35
- return {
36
- set: r,
37
- clear: n,
38
- handleRef: t
39
- };
40
- }, []);
41
- }
42
- //#endregion
43
- //#region node_modules/warning/warning.js
44
- var ce = /* @__PURE__ */ e(((e, t) => {
45
- var n = process.env.NODE_ENV !== "production", r = function() {};
46
- if (n) {
47
- var i = function(e, t) {
48
- var n = arguments.length;
49
- t = Array(n > 1 ? n - 1 : 0);
50
- for (var r = 1; r < n; r++) t[r - 1] = arguments[r];
51
- var i = 0, a = "Warning: " + e.replace(/%s/g, function() {
52
- return t[i++];
53
- });
54
- typeof console < "u" && console.error(a);
55
- try {
56
- throw Error(a);
57
- } catch {}
58
- };
59
- r = function(e, t, n) {
60
- var r = arguments.length;
61
- n = Array(r > 2 ? r - 2 : 0);
62
- for (var a = 2; a < r; a++) n[a - 2] = arguments[a];
63
- if (t === void 0) throw Error("`warning(condition, format, ...args)` requires a warning message argument");
64
- e || i.apply(null, [t].concat(n));
65
- };
66
- }
67
- t.exports = r;
68
- }));
69
- (/* @__PURE__ */ e(((e, t) => {
70
- t.exports = function(e, t, n, r, i, a, o, s) {
71
- if (process.env.NODE_ENV !== "production" && t === void 0) throw Error("invariant requires an error message argument");
72
- if (!e) {
73
- var c;
74
- if (t === void 0) c = /* @__PURE__ */ Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
75
- else {
76
- var l = [
77
- n,
78
- r,
79
- i,
80
- a,
81
- o,
82
- s
83
- ], u = 0;
84
- c = Error(t.replace(/%s/g, function() {
85
- return l[u++];
86
- })), c.name = "Invariant Violation";
87
- }
88
- throw c.framesToPop = 1, c;
89
- }
90
- };
91
- })))();
92
- //#endregion
93
- //#region node_modules/uncontrollable/lib/esm/hook.js
94
- function le(e, t, n) {
95
- var r = P(e !== void 0), i = F(t), a = i[0], o = i[1], s = e !== void 0, c = r.current;
96
- return r.current = s, !s && c && a !== t && o(t), [s ? e : a, A(function(e) {
97
- var t = [...arguments].slice(1);
98
- n && n.apply(void 0, [e].concat(t)), o(e);
99
- }, [n])];
100
- }
101
- //#endregion
102
- //#region node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js
103
- function z() {
104
- var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
105
- e != null && this.setState(e);
106
- }
107
- function ue(e) {
108
- function t(t) {
109
- return this.constructor.getDerivedStateFromProps(e, t) ?? null;
110
- }
111
- this.setState(t.bind(this));
112
- }
113
- function de(e, t) {
114
- try {
115
- var n = this.props, r = this.state;
116
- this.props = e, this.state = t, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, r);
117
- } finally {
118
- this.props = n, this.state = r;
119
- }
120
- }
121
- z.__suppressDeprecationWarning = !0, ue.__suppressDeprecationWarning = !0, de.__suppressDeprecationWarning = !0;
122
- //#endregion
123
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCallbackRef.js
124
- function fe() {
125
- return F(null);
126
- }
127
- //#endregion
128
- //#region node_modules/dequal/dist/index.mjs
129
- var pe = Object.prototype.hasOwnProperty;
130
- function B(e, t, n) {
131
- for (n of e.keys()) if (V(n, t)) return n;
132
- }
133
- function V(e, t) {
134
- var n, r, i;
135
- if (e === t) return !0;
136
- if (e && t && (n = e.constructor) === t.constructor) {
137
- if (n === Date) return e.getTime() === t.getTime();
138
- if (n === RegExp) return e.toString() === t.toString();
139
- if (n === Array) {
140
- if ((r = e.length) === t.length) for (; r-- && V(e[r], t[r]););
141
- return r === -1;
142
- }
143
- if (n === Set) {
144
- if (e.size !== t.size) return !1;
145
- for (r of e) if (i = r, i && typeof i == "object" && (i = B(t, i), !i) || !t.has(i)) return !1;
146
- return !0;
147
- }
148
- if (n === Map) {
149
- if (e.size !== t.size) return !1;
150
- for (r of e) if (i = r[0], i && typeof i == "object" && (i = B(t, i), !i) || !V(r[1], t.get(i))) return !1;
151
- return !0;
152
- }
153
- if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
154
- else if (n === DataView) {
155
- if ((r = e.byteLength) === t.byteLength) for (; r-- && e.getInt8(r) === t.getInt8(r););
156
- return r === -1;
157
- }
158
- if (ArrayBuffer.isView(e)) {
159
- if ((r = e.byteLength) === t.byteLength) for (; r-- && e[r] === t[r];);
160
- return r === -1;
161
- }
162
- if (!n || typeof e == "object") {
163
- for (n in r = 0, e) if (pe.call(e, n) && ++r && !pe.call(t, n) || !(n in t) || !V(e[n], t[n])) return !1;
164
- return Object.keys(t).length === r;
165
- }
166
- }
167
- return e !== e && t !== t;
168
- }
169
- //#endregion
170
- //#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useSafeState.js
171
- function me(e) {
172
- let t = v();
173
- return [e[0], A((n) => {
174
- if (t()) return e[1](n);
175
- }, [t, e[1]])];
176
- }
177
- var H = "bottom", he = "right", U = "left", W = "auto", G = [
178
- "top",
179
- H,
180
- he,
181
- U
182
- ], ge = "start", _e = "clippingParents", ve = "viewport", ye = "popper", be = "reference", xe = /* @__PURE__ */ G.reduce(function(e, t) {
183
- return e.concat([t + "-" + ge, t + "-end"]);
184
- }, []), Se = /* @__PURE__ */ [].concat(G, [W]).reduce(function(e, t) {
185
- return e.concat([
186
- t,
187
- t + "-" + ge,
188
- t + "-end"
189
- ]);
190
- }, []), Ce = [
191
- "beforeRead",
192
- "read",
193
- "afterRead",
194
- "beforeMain",
195
- "main",
196
- "afterMain",
197
- "beforeWrite",
198
- "write",
199
- "afterWrite"
200
- ];
201
- //#endregion
202
- //#region node_modules/@popperjs/core/lib/utils/getBasePlacement.js
203
- function K(e) {
204
- return e.split("-")[0];
205
- }
206
- //#endregion
207
- //#region node_modules/@popperjs/core/lib/dom-utils/getWindow.js
208
- function q(e) {
209
- if (e == null) return window;
210
- if (e.toString() !== "[object Window]") {
211
- var t = e.ownerDocument;
212
- return t && t.defaultView || window;
213
- }
214
- return e;
215
- }
216
- //#endregion
217
- //#region node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
218
- function we(e) {
219
- return e instanceof q(e).Element || e instanceof Element;
220
- }
221
- function J(e) {
222
- return e instanceof q(e).HTMLElement || e instanceof HTMLElement;
223
- }
224
- function Te(e) {
225
- return typeof ShadowRoot > "u" ? !1 : e instanceof q(e).ShadowRoot || e instanceof ShadowRoot;
226
- }
227
- //#endregion
228
- //#region node_modules/@popperjs/core/lib/utils/math.js
229
- var Ee = Math.max, De = Math.min, Oe = Math.round;
230
- //#endregion
231
- //#region node_modules/@popperjs/core/lib/utils/userAgent.js
232
- function ke() {
233
- var e = navigator.userAgentData;
234
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
235
- return e.brand + "/" + e.version;
236
- }).join(" ") : navigator.userAgent;
237
- }
238
- //#endregion
239
- //#region node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
240
- function Ae() {
241
- return !/^((?!chrome|android).)*safari/i.test(ke());
242
- }
243
- //#endregion
244
- //#region node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
245
- function je(e, t, n) {
246
- t === void 0 && (t = !1), n === void 0 && (n = !1);
247
- var r = e.getBoundingClientRect(), i = 1, a = 1;
248
- t && J(e) && (i = e.offsetWidth > 0 && Oe(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Oe(r.height) / e.offsetHeight || 1);
249
- var o = (we(e) ? q(e) : window).visualViewport, s = !Ae() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
250
- return {
251
- width: u,
252
- height: d,
253
- top: l,
254
- right: c + u,
255
- bottom: l + d,
256
- left: c,
257
- x: c,
258
- y: l
259
- };
260
- }
261
- //#endregion
262
- //#region node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
263
- function Me(e) {
264
- var t = je(e), n = e.offsetWidth, r = e.offsetHeight;
265
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
266
- x: e.offsetLeft,
267
- y: e.offsetTop,
268
- width: n,
269
- height: r
270
- };
271
- }
272
- //#endregion
273
- //#region node_modules/@popperjs/core/lib/dom-utils/contains.js
274
- function Ne(e, t) {
275
- var n = t.getRootNode && t.getRootNode();
276
- if (e.contains(t)) return !0;
277
- if (n && Te(n)) {
278
- var r = t;
279
- do {
280
- if (r && e.isSameNode(r)) return !0;
281
- r = r.parentNode || r.host;
282
- } while (r);
283
- }
284
- return !1;
285
- }
286
- //#endregion
287
- //#region node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
288
- function Pe(e) {
289
- return e ? (e.nodeName || "").toLowerCase() : null;
290
- }
291
- //#endregion
292
- //#region node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
293
- function Y(e) {
294
- return q(e).getComputedStyle(e);
295
- }
296
- //#endregion
297
- //#region node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
298
- function Fe(e) {
299
- return [
300
- "table",
301
- "td",
302
- "th"
303
- ].indexOf(Pe(e)) >= 0;
304
- }
305
- //#endregion
306
- //#region node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
307
- function Ie(e) {
308
- return ((we(e) ? e.ownerDocument : e.document) || window.document).documentElement;
309
- }
310
- //#endregion
311
- //#region node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
312
- function Le(e) {
313
- return Pe(e) === "html" ? e : e.assignedSlot || e.parentNode || (Te(e) ? e.host : null) || Ie(e);
314
- }
315
- //#endregion
316
- //#region node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
317
- function Re(e) {
318
- return !J(e) || Y(e).position === "fixed" ? null : e.offsetParent;
319
- }
320
- function ze(e) {
321
- var t = /firefox/i.test(ke());
322
- if (/Trident/i.test(ke()) && J(e) && Y(e).position === "fixed") return null;
323
- var n = Le(e);
324
- for (Te(n) && (n = n.host); J(n) && ["html", "body"].indexOf(Pe(n)) < 0;) {
325
- var r = Y(n);
326
- if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none") return n;
327
- n = n.parentNode;
328
- }
329
- return null;
330
- }
331
- function Be(e) {
332
- for (var t = q(e), n = Re(e); n && Fe(n) && Y(n).position === "static";) n = Re(n);
333
- return n && (Pe(n) === "html" || Pe(n) === "body" && Y(n).position === "static") ? t : n || ze(e) || t;
334
- }
335
- //#endregion
336
- //#region node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
337
- function Ve(e) {
338
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
339
- }
340
- //#endregion
341
- //#region node_modules/@popperjs/core/lib/utils/within.js
342
- function He(e, t, n) {
343
- return Ee(e, De(t, n));
344
- }
345
- function Ue(e, t, n) {
346
- var r = He(e, t, n);
347
- return r > n ? n : r;
348
- }
349
- //#endregion
350
- //#region node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
351
- function We() {
352
- return {
353
- top: 0,
354
- right: 0,
355
- bottom: 0,
356
- left: 0
357
- };
358
- }
359
- //#endregion
360
- //#region node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
361
- function Ge(e) {
362
- return Object.assign({}, We(), e);
363
- }
364
- //#endregion
365
- //#region node_modules/@popperjs/core/lib/utils/expandToHashMap.js
366
- function Ke(e, t) {
367
- return t.reduce(function(t, n) {
368
- return t[n] = e, t;
369
- }, {});
370
- }
371
- //#endregion
372
- //#region node_modules/@popperjs/core/lib/modifiers/arrow.js
373
- var qe = function(e, t) {
374
- return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, Ge(typeof e == "number" ? Ke(e, G) : e);
375
- };
376
- function Je(e) {
377
- var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = K(n.placement), c = Ve(s), l = ["left", "right"].indexOf(s) >= 0 ? "height" : "width";
378
- if (!(!a || !o)) {
379
- var u = qe(i.padding, n), d = Me(a), f = c === "y" ? "top" : U, p = c === "y" ? H : he, m = n.rects.reference[l] + n.rects.reference[c] - o[c] - n.rects.popper[l], h = o[c] - n.rects.reference[c], g = Be(a), _ = g ? c === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2, y = u[f], b = _ - d[l] - u[p], x = _ / 2 - d[l] / 2 + v, S = He(y, x, b), C = c;
380
- n.modifiersData[r] = (t = {}, t[C] = S, t.centerOffset = S - x, t);
381
- }
382
- }
383
- function Ye(e) {
384
- var t = e.state, n = e.options.element, r = n === void 0 ? "[data-popper-arrow]" : n;
385
- r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Ne(t.elements.popper, r) && (t.elements.arrow = r));
386
- }
387
- var Xe = {
388
- name: "arrow",
389
- enabled: !0,
390
- phase: "main",
391
- fn: Je,
392
- effect: Ye,
393
- requires: ["popperOffsets"],
394
- requiresIfExists: ["preventOverflow"]
395
- };
396
- //#endregion
397
- //#region node_modules/@popperjs/core/lib/utils/getVariation.js
398
- function Ze(e) {
399
- return e.split("-")[1];
400
- }
401
- //#endregion
402
- //#region node_modules/@popperjs/core/lib/modifiers/computeStyles.js
403
- var Qe = {
404
- top: "auto",
405
- right: "auto",
406
- bottom: "auto",
407
- left: "auto"
408
- };
409
- function $e(e, t) {
410
- var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
411
- return {
412
- x: Oe(n * i) / i || 0,
413
- y: Oe(r * i) / i || 0
414
- };
415
- }
416
- function et(e) {
417
- var t, n = e.popper, r = e.popperRect, i = e.placement, a = e.variation, o = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = o.x, p = f === void 0 ? 0 : f, m = o.y, h = m === void 0 ? 0 : m, g = typeof u == "function" ? u({
418
- x: p,
419
- y: h
420
- }) : {
421
- x: p,
422
- y: h
423
- };
424
- p = g.x, h = g.y;
425
- var _ = o.hasOwnProperty("x"), v = o.hasOwnProperty("y"), y = U, b = "top", x = window;
426
- if (l) {
427
- var S = Be(n), C = "clientHeight", w = "clientWidth";
428
- if (S === q(n) && (S = Ie(n), Y(S).position !== "static" && s === "absolute" && (C = "scrollHeight", w = "scrollWidth")), S = S, i === "top" || (i === "left" || i === "right") && a === "end") {
429
- b = H;
430
- var T = d && S === x && x.visualViewport ? x.visualViewport.height : S[C];
431
- h -= T - r.height, h *= c ? 1 : -1;
432
- }
433
- if (i === "left" || (i === "top" || i === "bottom") && a === "end") {
434
- y = he;
435
- var E = d && S === x && x.visualViewport ? x.visualViewport.width : S[w];
436
- p -= E - r.width, p *= c ? 1 : -1;
437
- }
438
- }
439
- var D = Object.assign({ position: s }, l && Qe), O = u === !0 ? $e({
440
- x: p,
441
- y: h
442
- }, q(n)) : {
443
- x: p,
444
- y: h
445
- };
446
- if (p = O.x, h = O.y, c) {
447
- var k;
448
- return Object.assign({}, D, (k = {}, k[b] = v ? "0" : "", k[y] = _ ? "0" : "", k.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", k));
449
- }
450
- return Object.assign({}, D, (t = {}, t[b] = v ? h + "px" : "", t[y] = _ ? p + "px" : "", t.transform = "", t));
451
- }
452
- function tt(e) {
453
- var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, c = s === void 0 ? !0 : s, l = {
454
- placement: K(t.placement),
455
- variation: Ze(t.placement),
456
- popper: t.elements.popper,
457
- popperRect: t.rects.popper,
458
- gpuAcceleration: i,
459
- isFixed: t.options.strategy === "fixed"
460
- };
461
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, et(Object.assign({}, l, {
462
- offsets: t.modifiersData.popperOffsets,
463
- position: t.options.strategy,
464
- adaptive: o,
465
- roundOffsets: c
466
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, et(Object.assign({}, l, {
467
- offsets: t.modifiersData.arrow,
468
- position: "absolute",
469
- adaptive: !1,
470
- roundOffsets: c
471
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
472
- }
473
- var nt = {
474
- name: "computeStyles",
475
- enabled: !0,
476
- phase: "beforeWrite",
477
- fn: tt,
478
- data: {}
479
- }, rt = { passive: !0 };
480
- function it(e) {
481
- var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 ? !0 : i, o = r.resize, s = o === void 0 ? !0 : o, c = q(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
482
- return a && l.forEach(function(e) {
483
- e.addEventListener("scroll", n.update, rt);
484
- }), s && c.addEventListener("resize", n.update, rt), function() {
485
- a && l.forEach(function(e) {
486
- e.removeEventListener("scroll", n.update, rt);
487
- }), s && c.removeEventListener("resize", n.update, rt);
488
- };
489
- }
490
- var at = {
491
- name: "eventListeners",
492
- enabled: !0,
493
- phase: "write",
494
- fn: function() {},
495
- effect: it,
496
- data: {}
497
- }, ot = {
498
- left: "right",
499
- right: "left",
500
- bottom: "top",
501
- top: "bottom"
502
- };
503
- function st(e) {
504
- return e.replace(/left|right|bottom|top/g, function(e) {
505
- return ot[e];
506
- });
507
- }
508
- //#endregion
509
- //#region node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
510
- var ct = {
511
- start: "end",
512
- end: "start"
513
- };
514
- function lt(e) {
515
- return e.replace(/start|end/g, function(e) {
516
- return ct[e];
517
- });
518
- }
519
- //#endregion
520
- //#region node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
521
- function ut(e) {
522
- var t = q(e);
523
- return {
524
- scrollLeft: t.pageXOffset,
525
- scrollTop: t.pageYOffset
526
- };
527
- }
528
- //#endregion
529
- //#region node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
530
- function dt(e) {
531
- return je(Ie(e)).left + ut(e).scrollLeft;
532
- }
533
- //#endregion
534
- //#region node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
535
- function ft(e, t) {
536
- var n = q(e), r = Ie(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
537
- if (i) {
538
- a = i.width, o = i.height;
539
- var l = Ae();
540
- (l || !l && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
541
- }
542
- return {
543
- width: a,
544
- height: o,
545
- x: s + dt(e),
546
- y: c
547
- };
548
- }
549
- //#endregion
550
- //#region node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
551
- function pt(e) {
552
- var t = Ie(e), n = ut(e), r = e.ownerDocument?.body, i = Ee(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = Ee(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + dt(e), s = -n.scrollTop;
553
- return Y(r || t).direction === "rtl" && (o += Ee(t.clientWidth, r ? r.clientWidth : 0) - i), {
554
- width: i,
555
- height: a,
556
- x: o,
557
- y: s
558
- };
559
- }
560
- //#endregion
561
- //#region node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
562
- function mt(e) {
563
- var t = Y(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
564
- return /auto|scroll|overlay|hidden/.test(n + i + r);
565
- }
566
- //#endregion
567
- //#region node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
568
- function ht(e) {
569
- return [
570
- "html",
571
- "body",
572
- "#document"
573
- ].indexOf(Pe(e)) >= 0 ? e.ownerDocument.body : J(e) && mt(e) ? e : ht(Le(e));
574
- }
575
- //#endregion
576
- //#region node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
577
- function gt(e, t) {
578
- t === void 0 && (t = []);
579
- var n = ht(e), r = n === e.ownerDocument?.body, i = q(n), a = r ? [i].concat(i.visualViewport || [], mt(n) ? n : []) : n, o = t.concat(a);
580
- return r ? o : o.concat(gt(Le(a)));
581
- }
582
- //#endregion
583
- //#region node_modules/@popperjs/core/lib/utils/rectToClientRect.js
584
- function _t(e) {
585
- return Object.assign({}, e, {
586
- left: e.x,
587
- top: e.y,
588
- right: e.x + e.width,
589
- bottom: e.y + e.height
590
- });
591
- }
592
- //#endregion
593
- //#region node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
594
- function vt(e, t) {
595
- var n = je(e, !1, t === "fixed");
596
- return n.top += e.clientTop, n.left += e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
597
- }
598
- function yt(e, t, n) {
599
- return t === "viewport" ? _t(ft(e, n)) : we(t) ? vt(t, n) : _t(pt(Ie(e)));
600
- }
601
- function bt(e) {
602
- var t = gt(Le(e)), n = ["absolute", "fixed"].indexOf(Y(e).position) >= 0 && J(e) ? Be(e) : e;
603
- return we(n) ? t.filter(function(e) {
604
- return we(e) && Ne(e, n) && Pe(e) !== "body";
605
- }) : [];
606
- }
607
- function xt(e, t, n, r) {
608
- var i = t === "clippingParents" ? bt(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
609
- var i = yt(e, n, r);
610
- return t.top = Ee(i.top, t.top), t.right = De(i.right, t.right), t.bottom = De(i.bottom, t.bottom), t.left = Ee(i.left, t.left), t;
611
- }, yt(e, o, r));
612
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
613
- }
614
- //#endregion
615
- //#region node_modules/@popperjs/core/lib/utils/computeOffsets.js
616
- function St(e) {
617
- var t = e.reference, n = e.element, r = e.placement, i = r ? K(r) : null, a = r ? Ze(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
618
- switch (i) {
619
- case "top":
620
- c = {
621
- x: o,
622
- y: t.y - n.height
623
- };
624
- break;
625
- case H:
626
- c = {
627
- x: o,
628
- y: t.y + t.height
629
- };
630
- break;
631
- case he:
632
- c = {
633
- x: t.x + t.width,
634
- y: s
635
- };
636
- break;
637
- case U:
638
- c = {
639
- x: t.x - n.width,
640
- y: s
641
- };
642
- break;
643
- default: c = {
644
- x: t.x,
645
- y: t.y
646
- };
647
- }
648
- var l = i ? Ve(i) : null;
649
- if (l != null) {
650
- var u = l === "y" ? "height" : "width";
651
- switch (a) {
652
- case ge:
653
- c[l] = c[l] - (t[u] / 2 - n[u] / 2);
654
- break;
655
- case "end":
656
- c[l] = c[l] + (t[u] / 2 - n[u] / 2);
657
- break;
658
- default:
659
- }
660
- }
661
- return c;
662
- }
663
- //#endregion
664
- //#region node_modules/@popperjs/core/lib/utils/detectOverflow.js
665
- function Ct(e, t) {
666
- t === void 0 && (t = {});
667
- var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? _e : s, l = n.rootBoundary, u = l === void 0 ? ve : l, d = n.elementContext, f = d === void 0 ? ye : d, p = n.altBoundary, m = p === void 0 ? !1 : p, h = n.padding, g = h === void 0 ? 0 : h, _ = Ge(typeof g == "number" ? Ke(g, G) : g), v = f === "popper" ? be : ye, y = e.rects.popper, b = e.elements[m ? v : f], x = xt(we(b) ? b : b.contextElement || Ie(e.elements.popper), c, u, o), S = je(e.elements.reference), C = St({
668
- reference: S,
669
- element: y,
670
- strategy: "absolute",
671
- placement: i
672
- }), w = _t(Object.assign({}, y, C)), T = f === "popper" ? w : S, E = {
673
- top: x.top - T.top + _.top,
674
- bottom: T.bottom - x.bottom + _.bottom,
675
- left: x.left - T.left + _.left,
676
- right: T.right - x.right + _.right
677
- }, D = e.modifiersData.offset;
678
- if (f === "popper" && D) {
679
- var O = D[i];
680
- Object.keys(E).forEach(function(e) {
681
- var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
682
- E[e] += O[n] * t;
683
- });
684
- }
685
- return E;
686
- }
687
- //#endregion
688
- //#region node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
689
- function wt(e, t) {
690
- t === void 0 && (t = {});
691
- var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? Se : c, u = Ze(r), d = u ? s ? xe : xe.filter(function(e) {
692
- return Ze(e) === u;
693
- }) : G, f = d.filter(function(e) {
694
- return l.indexOf(e) >= 0;
695
- });
696
- f.length === 0 && (f = d);
697
- var p = f.reduce(function(t, n) {
698
- return t[n] = Ct(e, {
699
- placement: n,
700
- boundary: i,
701
- rootBoundary: a,
702
- padding: o
703
- })[K(n)], t;
704
- }, {});
705
- return Object.keys(p).sort(function(e, t) {
706
- return p[e] - p[t];
707
- });
708
- }
709
- //#endregion
710
- //#region node_modules/@popperjs/core/lib/modifiers/flip.js
711
- function Tt(e) {
712
- if (K(e) === "auto") return [];
713
- var t = st(e);
714
- return [
715
- lt(e),
716
- t,
717
- lt(t)
718
- ];
719
- }
720
- function Et(e) {
721
- var t = e.state, n = e.options, r = e.name;
722
- if (!t.modifiersData[r]._skip) {
723
- for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, h = n.allowedAutoPlacements, g = t.options.placement, _ = K(g) === g, v = c || (_ || !m ? [st(g)] : Tt(g)), y = [g].concat(v).reduce(function(e, n) {
724
- return e.concat(K(n) === "auto" ? wt(t, {
725
- placement: n,
726
- boundary: u,
727
- rootBoundary: d,
728
- padding: l,
729
- flipVariations: m,
730
- allowedAutoPlacements: h
731
- }) : n);
732
- }, []), b = t.rects.reference, x = t.rects.popper, S = /* @__PURE__ */ new Map(), C = !0, w = y[0], T = 0; T < y.length; T++) {
733
- var E = y[T], D = K(E), O = Ze(E) === ge, k = ["top", H].indexOf(D) >= 0, A = k ? "width" : "height", j = Ct(t, {
734
- placement: E,
735
- boundary: u,
736
- rootBoundary: d,
737
- altBoundary: f,
738
- padding: l
739
- }), M = k ? O ? he : U : O ? H : "top";
740
- b[A] > x[A] && (M = st(M));
741
- var N = st(M), P = [];
742
- if (a && P.push(j[D] <= 0), s && P.push(j[M] <= 0, j[N] <= 0), P.every(function(e) {
743
- return e;
744
- })) {
745
- w = E, C = !1;
746
- break;
747
- }
748
- S.set(E, P);
749
- }
750
- if (C) for (var F = m ? 3 : 1, ee = function(e) {
751
- var t = y.find(function(t) {
752
- var n = S.get(t);
753
- if (n) return n.slice(0, e).every(function(e) {
754
- return e;
755
- });
756
- });
757
- if (t) return w = t, "break";
758
- }, I = F; I > 0 && ee(I) !== "break"; I--);
759
- t.placement !== w && (t.modifiersData[r]._skip = !0, t.placement = w, t.reset = !0);
760
- }
761
- }
762
- var Dt = {
763
- name: "flip",
764
- enabled: !0,
765
- phase: "main",
766
- fn: Et,
767
- requiresIfExists: ["offset"],
768
- data: { _skip: !1 }
769
- };
770
- //#endregion
771
- //#region node_modules/@popperjs/core/lib/modifiers/hide.js
772
- function Ot(e, t, n) {
773
- return n === void 0 && (n = {
774
- x: 0,
775
- y: 0
776
- }), {
777
- top: e.top - t.height - n.y,
778
- right: e.right - t.width + n.x,
779
- bottom: e.bottom - t.height + n.y,
780
- left: e.left - t.width - n.x
781
- };
782
- }
783
- function kt(e) {
784
- return [
785
- "top",
786
- he,
787
- H,
788
- U
789
- ].some(function(t) {
790
- return e[t] >= 0;
791
- });
792
- }
793
- function At(e) {
794
- var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = Ct(t, { elementContext: "reference" }), s = Ct(t, { altBoundary: !0 }), c = Ot(o, r), l = Ot(s, i, a), u = kt(c), d = kt(l);
795
- t.modifiersData[n] = {
796
- referenceClippingOffsets: c,
797
- popperEscapeOffsets: l,
798
- isReferenceHidden: u,
799
- hasPopperEscaped: d
800
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
801
- "data-popper-reference-hidden": u,
802
- "data-popper-escaped": d
803
- });
804
- }
805
- var jt = {
806
- name: "hide",
807
- enabled: !0,
808
- phase: "main",
809
- requiresIfExists: ["preventOverflow"],
810
- fn: At
811
- };
812
- //#endregion
813
- //#region node_modules/@popperjs/core/lib/modifiers/offset.js
814
- function Mt(e, t, n) {
815
- var r = K(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
816
- return o ||= 0, s = (s || 0) * i, ["left", "right"].indexOf(r) >= 0 ? {
817
- x: s,
818
- y: o
819
- } : {
820
- x: o,
821
- y: s
822
- };
823
- }
824
- function Nt(e) {
825
- var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = Se.reduce(function(e, n) {
826
- return e[n] = Mt(n, t.rects, a), e;
827
- }, {}), s = o[t.placement], c = s.x, l = s.y;
828
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = o;
829
- }
830
- var Pt = {
831
- name: "offset",
832
- enabled: !0,
833
- phase: "main",
834
- requires: ["popperOffsets"],
835
- fn: Nt
836
- };
837
- //#endregion
838
- //#region node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
839
- function Ft(e) {
840
- var t = e.state, n = e.name;
841
- t.modifiersData[n] = St({
842
- reference: t.rects.reference,
843
- element: t.rects.popper,
844
- strategy: "absolute",
845
- placement: t.placement
846
- });
847
- }
848
- var It = {
849
- name: "popperOffsets",
850
- enabled: !0,
851
- phase: "read",
852
- fn: Ft,
853
- data: {}
854
- };
855
- //#endregion
856
- //#region node_modules/@popperjs/core/lib/utils/getAltAxis.js
857
- function Lt(e) {
858
- return e === "x" ? "y" : "x";
859
- }
860
- //#endregion
861
- //#region node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
862
- function Rt(e) {
863
- var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !1 : o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 ? !0 : f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = Ct(t, {
864
- boundary: c,
865
- rootBoundary: l,
866
- padding: d,
867
- altBoundary: u
868
- }), _ = K(t.placement), v = Ze(t.placement), y = !v, b = Ve(_), x = Lt(b), S = t.modifiersData.popperOffsets, C = t.rects.reference, w = t.rects.popper, T = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, E = typeof T == "number" ? {
869
- mainAxis: T,
870
- altAxis: T
871
- } : Object.assign({
872
- mainAxis: 0,
873
- altAxis: 0
874
- }, T), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, O = {
875
- x: 0,
876
- y: 0
877
- };
878
- if (S) {
879
- if (a) {
880
- var k = b === "y" ? "top" : U, A = b === "y" ? H : he, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, ee = v === "start" ? C[j] : w[j], I = v === "start" ? -w[j] : -C[j], te = t.elements.arrow, ne = p && te ? Me(te) : {
881
- width: 0,
882
- height: 0
883
- }, L = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : We(), re = L[k], R = L[A], ie = He(0, C[j], ne[j]), ae = y ? C[j] / 2 - F - ie - re - E.mainAxis : ee - ie - re - E.mainAxis, oe = y ? -C[j] / 2 + F + ie + R + E.mainAxis : I + ie + R + E.mainAxis, se = t.elements.arrow && Be(t.elements.arrow), ce = se ? b === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, le = D?.[b] ?? 0, z = M + ae - le - ce, ue = M + oe - le, de = He(p ? De(N, z) : N, M, p ? Ee(P, ue) : P);
884
- S[b] = de, O[b] = de - M;
885
- }
886
- if (s) {
887
- var fe = b === "x" ? "top" : U, pe = b === "x" ? H : he, B = S[x], V = x === "y" ? "height" : "width", me = B + g[fe], W = B - g[pe], G = ["top", U].indexOf(_) !== -1, ge = D?.[x] ?? 0, _e = G ? me : B - C[V] - w[V] - ge + E.altAxis, ve = G ? B + C[V] + w[V] - ge - E.altAxis : W, ye = p && G ? Ue(_e, B, ve) : He(p ? _e : me, B, p ? ve : W);
888
- S[x] = ye, O[x] = ye - B;
889
- }
890
- t.modifiersData[r] = O;
891
- }
892
- }
893
- var zt = {
894
- name: "preventOverflow",
895
- enabled: !0,
896
- phase: "main",
897
- fn: Rt,
898
- requiresIfExists: ["offset"]
899
- };
900
- //#endregion
901
- //#region node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
902
- function Bt(e) {
903
- return {
904
- scrollLeft: e.scrollLeft,
905
- scrollTop: e.scrollTop
906
- };
907
- }
908
- //#endregion
909
- //#region node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
910
- function Vt(e) {
911
- return e === q(e) || !J(e) ? ut(e) : Bt(e);
912
- }
913
- //#endregion
914
- //#region node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
915
- function Ht(e) {
916
- var t = e.getBoundingClientRect(), n = Oe(t.width) / e.offsetWidth || 1, r = Oe(t.height) / e.offsetHeight || 1;
917
- return n !== 1 || r !== 1;
918
- }
919
- function Ut(e, t, n) {
920
- n === void 0 && (n = !1);
921
- var r = J(t), i = J(t) && Ht(t), a = Ie(t), o = je(e, i, n), s = {
922
- scrollLeft: 0,
923
- scrollTop: 0
924
- }, c = {
925
- x: 0,
926
- y: 0
927
- };
928
- return (r || !r && !n) && ((Pe(t) !== "body" || mt(a)) && (s = Vt(t)), J(t) ? (c = je(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = dt(a))), {
929
- x: o.left + s.scrollLeft - c.x,
930
- y: o.top + s.scrollTop - c.y,
931
- width: o.width,
932
- height: o.height
933
- };
934
- }
935
- //#endregion
936
- //#region node_modules/@popperjs/core/lib/utils/orderModifiers.js
937
- function Wt(e) {
938
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
939
- e.forEach(function(e) {
940
- t.set(e.name, e);
941
- });
942
- function i(e) {
943
- n.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach(function(e) {
944
- if (!n.has(e)) {
945
- var r = t.get(e);
946
- r && i(r);
947
- }
948
- }), r.push(e);
949
- }
950
- return e.forEach(function(e) {
951
- n.has(e.name) || i(e);
952
- }), r;
953
- }
954
- function Gt(e) {
955
- var t = Wt(e);
956
- return Ce.reduce(function(e, n) {
957
- return e.concat(t.filter(function(e) {
958
- return e.phase === n;
959
- }));
960
- }, []);
961
- }
962
- //#endregion
963
- //#region node_modules/@popperjs/core/lib/utils/debounce.js
964
- function Kt(e) {
965
- var t;
966
- return function() {
967
- return t ||= new Promise(function(n) {
968
- Promise.resolve().then(function() {
969
- t = void 0, n(e());
970
- });
971
- }), t;
972
- };
973
- }
974
- //#endregion
975
- //#region node_modules/@popperjs/core/lib/utils/mergeByName.js
976
- function qt(e) {
977
- var t = e.reduce(function(e, t) {
978
- var n = e[t.name];
979
- return e[t.name] = n ? Object.assign({}, n, t, {
980
- options: Object.assign({}, n.options, t.options),
981
- data: Object.assign({}, n.data, t.data)
982
- }) : t, e;
983
- }, {});
984
- return Object.keys(t).map(function(e) {
985
- return t[e];
986
- });
987
- }
988
- //#endregion
989
- //#region node_modules/@popperjs/core/lib/createPopper.js
990
- var Jt = {
991
- placement: "bottom",
992
- modifiers: [],
993
- strategy: "absolute"
994
- };
995
- function Yt() {
996
- return ![...arguments].some(function(e) {
997
- return !(e && typeof e.getBoundingClientRect == "function");
998
- });
999
- }
1000
- function Xt(e) {
1001
- e === void 0 && (e = {});
1002
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? Jt : i;
1003
- return function(e, t, n) {
1004
- n === void 0 && (n = a);
1005
- var i = {
1006
- placement: "bottom",
1007
- orderedModifiers: [],
1008
- options: Object.assign({}, Jt, a),
1009
- modifiersData: {},
1010
- elements: {
1011
- reference: e,
1012
- popper: t
1013
- },
1014
- attributes: {},
1015
- styles: {}
1016
- }, o = [], s = !1, c = {
1017
- state: i,
1018
- setOptions: function(n) {
1019
- var o = typeof n == "function" ? n(i.options) : n;
1020
- u(), i.options = Object.assign({}, a, i.options, o), i.scrollParents = {
1021
- reference: we(e) ? gt(e) : e.contextElement ? gt(e.contextElement) : [],
1022
- popper: gt(t)
1023
- };
1024
- var s = Gt(qt([].concat(r, i.options.modifiers)));
1025
- return i.orderedModifiers = s.filter(function(e) {
1026
- return e.enabled;
1027
- }), l(), c.update();
1028
- },
1029
- forceUpdate: function() {
1030
- if (!s) {
1031
- var e = i.elements, t = e.reference, n = e.popper;
1032
- if (Yt(t, n)) {
1033
- i.rects = {
1034
- reference: Ut(t, Be(n), i.options.strategy === "fixed"),
1035
- popper: Me(n)
1036
- }, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
1037
- return i.modifiersData[e.name] = Object.assign({}, e.data);
1038
- });
1039
- for (var r = 0; r < i.orderedModifiers.length; r++) {
1040
- if (i.reset === !0) {
1041
- i.reset = !1, r = -1;
1042
- continue;
1043
- }
1044
- var a = i.orderedModifiers[r], o = a.fn, l = a.options, u = l === void 0 ? {} : l, d = a.name;
1045
- typeof o == "function" && (i = o({
1046
- state: i,
1047
- options: u,
1048
- name: d,
1049
- instance: c
1050
- }) || i);
1051
- }
1052
- }
1053
- }
1054
- },
1055
- update: Kt(function() {
1056
- return new Promise(function(e) {
1057
- c.forceUpdate(), e(i);
1058
- });
1059
- }),
1060
- destroy: function() {
1061
- u(), s = !0;
1062
- }
1063
- };
1064
- if (!Yt(e, t)) return c;
1065
- c.setOptions(n).then(function(e) {
1066
- !s && n.onFirstUpdate && n.onFirstUpdate(e);
1067
- });
1068
- function l() {
1069
- i.orderedModifiers.forEach(function(e) {
1070
- var t = e.name, n = e.options, r = n === void 0 ? {} : n, a = e.effect;
1071
- if (typeof a == "function") {
1072
- var s = a({
1073
- state: i,
1074
- name: t,
1075
- instance: c,
1076
- options: r
1077
- });
1078
- o.push(s || function() {});
1079
- }
1080
- });
1081
- }
1082
- function u() {
1083
- o.forEach(function(e) {
1084
- return e();
1085
- }), o = [];
1086
- }
1087
- return c;
1088
- };
1089
- }
1090
- //#endregion
1091
- //#region node_modules/@restart/ui/esm/popper.js
1092
- var Zt = Xt({ defaultModifiers: [
1093
- jt,
1094
- It,
1095
- nt,
1096
- at,
1097
- Pt,
1098
- Dt,
1099
- zt,
1100
- Xe
1101
- ] }), Qt = [
1102
- "enabled",
1103
- "placement",
1104
- "strategy",
1105
- "modifiers"
1106
- ];
1107
- function $t(e, t) {
1108
- if (e == null) return {};
1109
- var n = {};
1110
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
1111
- if (t.indexOf(r) >= 0) continue;
1112
- n[r] = e[r];
1113
- }
1114
- return n;
1115
- }
1116
- var en = {
1117
- name: "applyStyles",
1118
- enabled: !1,
1119
- phase: "afterWrite",
1120
- fn: () => void 0
1121
- }, tn = {
1122
- name: "ariaDescribedBy",
1123
- enabled: !0,
1124
- phase: "afterWrite",
1125
- effect: ({ state: e }) => () => {
1126
- let { reference: t, popper: n } = e.elements;
1127
- if ("removeAttribute" in t) {
1128
- let e = (t.getAttribute("aria-describedby") || "").split(",").filter((e) => e.trim() !== n.id);
1129
- e.length ? t.setAttribute("aria-describedby", e.join(",")) : t.removeAttribute("aria-describedby");
1130
- }
1131
- },
1132
- fn: ({ state: e }) => {
1133
- let { popper: t, reference: n } = e.elements, r = t.getAttribute("role")?.toLowerCase();
1134
- if (t.id && r === "tooltip" && "setAttribute" in n) {
1135
- let e = n.getAttribute("aria-describedby");
1136
- if (e && e.split(",").indexOf(t.id) !== -1) return;
1137
- n.setAttribute("aria-describedby", e ? `${e},${t.id}` : t.id);
1138
- }
1139
- }
1140
- }, nn = [];
1141
- function rn(e, t, n = {}) {
1142
- let { enabled: r = !0, placement: i = "bottom", strategy: a = "absolute", modifiers: o = nn } = n, s = $t(n, Qt), c = P(o), l = P(), u = A(() => {
1143
- var e;
1144
- (e = l.current) == null || e.update();
1145
- }, []), d = A(() => {
1146
- var e;
1147
- (e = l.current) == null || e.forceUpdate();
1148
- }, []), [f, p] = me(F({
1149
- placement: i,
1150
- update: u,
1151
- forceUpdate: d,
1152
- attributes: {},
1153
- styles: {
1154
- popper: {},
1155
- arrow: {}
1156
- }
1157
- })), m = N(() => ({
1158
- name: "updateStateModifier",
1159
- enabled: !0,
1160
- phase: "write",
1161
- requires: ["computeStyles"],
1162
- fn: ({ state: e }) => {
1163
- let t = {}, n = {};
1164
- Object.keys(e.elements).forEach((r) => {
1165
- t[r] = e.styles[r], n[r] = e.attributes[r];
1166
- }), p({
1167
- state: e,
1168
- styles: t,
1169
- attributes: n,
1170
- update: u,
1171
- forceUpdate: d,
1172
- placement: e.placement
1173
- });
1174
- }
1175
- }), [
1176
- u,
1177
- d,
1178
- p
1179
- ]), h = N(() => (V(c.current, o) || (c.current = o), c.current), [o]);
1180
- return j(() => {
1181
- !l.current || !r || l.current.setOptions({
1182
- placement: i,
1183
- strategy: a,
1184
- modifiers: [
1185
- ...h,
1186
- m,
1187
- en
1188
- ]
1189
- });
1190
- }, [
1191
- a,
1192
- i,
1193
- m,
1194
- r,
1195
- h
1196
- ]), j(() => {
1197
- if (!(!r || e == null || t == null)) return l.current = Zt(e, t, Object.assign({}, s, {
1198
- placement: i,
1199
- strategy: a,
1200
- modifiers: [
1201
- ...h,
1202
- tn,
1203
- m
1204
- ]
1205
- })), () => {
1206
- l.current != null && (l.current.destroy(), l.current = void 0, p((e) => Object.assign({}, e, {
1207
- attributes: {},
1208
- styles: { popper: {} }
1209
- })));
1210
- };
1211
- }, [
1212
- r,
1213
- e,
1214
- t
1215
- ]), f;
1216
- }
1217
- //#endregion
1218
- //#region node_modules/@restart/ui/esm/useClickOutside.js
1219
- var an = /* @__PURE__ */ t(ce()), on = () => {};
1220
- function sn(e) {
1221
- return e.button === 0;
1222
- }
1223
- function cn(e) {
1224
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1225
- }
1226
- var ln = (e) => e && ("current" in e ? e.current : e), un = {
1227
- click: "mousedown",
1228
- mouseup: "mousedown",
1229
- pointerup: "pointerdown"
1230
- };
1231
- function dn(e, t = on, { disabled: n, clickTrigger: r = "click" } = {}) {
1232
- let i = P(!1), a = P(!1), o = A((t) => {
1233
- let n = ln(e);
1234
- (0, an.default)(!!n, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), i.current = !n || cn(t) || !sn(t) || !!h(n, t.target) || a.current, a.current = !1;
1235
- }, [e]), s = x((t) => {
1236
- let n = ln(e);
1237
- n && h(n, t.target) ? a.current = !0 : a.current = !1;
1238
- }), c = x((e) => {
1239
- i.current || t(e);
1240
- });
1241
- j(() => {
1242
- if (n || e == null) return;
1243
- let t = u(ln(e)), i = t.defaultView || window, a = i.event ?? i.parent?.event, l = null;
1244
- un[r] && (l = m(t, un[r], s, !0));
1245
- let d = m(t, r, o, !0), f = m(t, r, (e) => {
1246
- if (e === a) {
1247
- a = void 0;
1248
- return;
1249
- }
1250
- c(e);
1251
- }), p = [];
1252
- return "ontouchstart" in t.documentElement && (p = [].slice.call(t.body.children).map((e) => m(e, "mousemove", on))), () => {
1253
- l?.(), d(), f(), p.forEach((e) => e());
1254
- };
1255
- }, [
1256
- e,
1257
- n,
1258
- r,
1259
- o,
1260
- s,
1261
- c
1262
- ]);
1263
- }
1264
- //#endregion
1265
- //#region node_modules/@restart/ui/esm/useRootClose.js
1266
- var fn = () => {};
1267
- function pn(e, t, { disabled: n, clickTrigger: r } = {}) {
1268
- let i = t || fn;
1269
- dn(e, i, {
1270
- disabled: n,
1271
- clickTrigger: r
1272
- });
1273
- let a = x((e) => {
1274
- T(e) && i(e);
1275
- });
1276
- j(() => {
1277
- if (n || e == null) return;
1278
- let t = u(ln(e)), r = (t.defaultView || window).event, i = m(t, "keyup", (e) => {
1279
- if (e === r) {
1280
- r = void 0;
1281
- return;
1282
- }
1283
- a(e);
1284
- });
1285
- return () => {
1286
- i();
1287
- };
1288
- }, [
1289
- e,
1290
- n,
1291
- a
1292
- ]);
1293
- }
1294
- //#endregion
1295
- //#region node_modules/@restart/ui/esm/mergeOptionsWithPopperConfig.js
1296
- function mn(e) {
1297
- let t = {};
1298
- return Array.isArray(e) ? (e?.forEach((e) => {
1299
- t[e.name] = e;
1300
- }), t) : e || t;
1301
- }
1302
- function hn(e = {}) {
1303
- return Array.isArray(e) ? e : Object.keys(e).map((t) => (e[t].name = t, e[t]));
1304
- }
1305
- function gn({ enabled: e, enableEvents: t, placement: n, flip: r, offset: i, fixed: a, containerPadding: o, arrowElement: s, popperConfig: c = {} }) {
1306
- let l = mn(c.modifiers);
1307
- return Object.assign({}, c, {
1308
- placement: n,
1309
- enabled: e,
1310
- strategy: a ? "fixed" : c.strategy,
1311
- modifiers: hn(Object.assign({}, l, {
1312
- eventListeners: {
1313
- enabled: t,
1314
- options: l.eventListeners?.options
1315
- },
1316
- preventOverflow: Object.assign({}, l.preventOverflow, { options: o ? Object.assign({ padding: o }, l.preventOverflow?.options) : l.preventOverflow?.options }),
1317
- offset: { options: Object.assign({ offset: i }, l.offset?.options) },
1318
- arrow: Object.assign({}, l.arrow, {
1319
- enabled: !!s,
1320
- options: Object.assign({}, l.arrow?.options, { element: s })
1321
- }),
1322
- flip: Object.assign({ enabled: !!r }, l.flip)
1323
- }))
1324
- });
1325
- }
1326
- //#endregion
1327
- //#region node_modules/@restart/ui/esm/Overlay.js
1328
- var _n = /* @__PURE__ */ O.forwardRef((e, t) => {
1329
- let { flip: n, offset: r, placement: i, containerPadding: a, popperConfig: o = {}, transition: s, runTransition: c } = e, [l, u] = fe(), [m, h] = fe(), g = f(u, t), _ = p(e.container), v = p(e.target), [y, b] = F(!e.show), x = rn(v, l, gn({
1330
- placement: i,
1331
- enableEvents: !!e.show,
1332
- containerPadding: a || 5,
1333
- flip: n,
1334
- offset: r,
1335
- arrowElement: m,
1336
- popperConfig: o
1337
- }));
1338
- e.show && y && b(!1);
1339
- let S = (...t) => {
1340
- b(!0), e.onExited && e.onExited(...t);
1341
- }, C = e.show || !y;
1342
- if (pn(l, e.onHide, {
1343
- disabled: !e.rootClose || e.rootCloseDisabled,
1344
- clickTrigger: e.rootCloseEvent
1345
- }), !C) return null;
1346
- let { onExit: w, onExiting: T, onEnter: E, onEntering: D, onEntered: O } = e, k = e.children(Object.assign({}, x.attributes.popper, {
1347
- style: x.styles.popper,
1348
- ref: g
1349
- }), {
1350
- popper: x,
1351
- placement: i,
1352
- show: !!e.show,
1353
- arrowProps: Object.assign({}, x.attributes.arrow, {
1354
- style: x.styles.arrow,
1355
- ref: h
1356
- })
1357
- });
1358
- return k = d(s, c, {
1359
- in: !!e.show,
1360
- appear: !0,
1361
- mountOnEnter: !0,
1362
- unmountOnExit: !0,
1363
- children: k,
1364
- onExit: w,
1365
- onExiting: T,
1366
- onExited: S,
1367
- onEnter: E,
1368
- onEntering: D,
1369
- onEntered: O
1370
- }), _ ? /* @__PURE__ */ L.createPortal(k, _) : null;
1371
- });
1372
- _n.displayName = "Overlay";
1373
- //#endregion
1374
- //#region node_modules/@restart/hooks/esm/useIsomorphicEffect.js
1375
- var vn = typeof global < "u" && global.navigator && global.navigator.product === "ReactNative", yn = typeof document < "u" || vn ? M : j, bn = /* @__PURE__ */ t(r()), X = n(), xn = /* @__PURE__ */ O.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = y(t, "popover-header"), /* @__PURE__ */ (0, X.jsx)(n, {
1376
- ref: i,
1377
- className: (0, bn.default)(e, t),
1378
- ...r
1379
- })));
1380
- xn.displayName = "PopoverHeader";
1381
- //#endregion
1382
- //#region node_modules/react-bootstrap/esm/PopoverBody.js
1383
- var Sn = /* @__PURE__ */ O.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = y(t, "popover-body"), /* @__PURE__ */ (0, X.jsx)(n, {
1384
- ref: i,
1385
- className: (0, bn.default)(e, t),
1386
- ...r
1387
- })));
1388
- Sn.displayName = "PopoverBody", O.Component;
1389
- function Cn(e, t) {
1390
- let n = e;
1391
- return e === "left" ? n = t ? "end" : "start" : e === "right" && (n = t ? "start" : "end"), n;
1392
- }
1393
- //#endregion
1394
- //#region node_modules/react-bootstrap/esm/getInitialPopperStyles.js
1395
- function wn(e = "absolute") {
1396
- return {
1397
- position: e,
1398
- top: "0",
1399
- left: "0",
1400
- opacity: "0",
1401
- pointerEvents: "none"
1402
- };
1403
- }
1404
- //#endregion
1405
- //#region node_modules/react-bootstrap/esm/Popover.js
1406
- var Tn = /* @__PURE__ */ O.forwardRef(({ bsPrefix: e, placement: t = "right", className: n, style: r, children: i, body: a, arrowProps: o, hasDoneInitialMeasure: s, popper: c, show: l, ...u }, d) => {
1407
- let f = y(e, "popover"), p = S(), [m] = t?.split("-") || [], h = Cn(m, p), g = r;
1408
- return l && !s && (g = {
1409
- ...r,
1410
- ...wn(c?.strategy)
1411
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
1412
- ref: d,
1413
- role: "tooltip",
1414
- style: g,
1415
- "x-placement": m,
1416
- className: (0, bn.default)(n, f, m && `bs-popover-${h}`),
1417
- ...u,
1418
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
1419
- className: "popover-arrow",
1420
- ...o
1421
- }), a ? /* @__PURE__ */ (0, X.jsx)(Sn, { children: i }) : i]
1422
- });
1423
- });
1424
- Tn.displayName = "Popover";
1425
- var En = Object.assign(Tn, {
1426
- Header: xn,
1427
- Body: Sn,
1428
- POPPER_OFFSET: [0, 8]
1429
- }), Dn = /* @__PURE__ */ O.forwardRef(({ bsPrefix: e, placement: t = "right", className: n, style: r, children: i, arrowProps: a, hasDoneInitialMeasure: o, popper: s, show: c, ...l }, u) => {
1430
- e = y(e, "tooltip");
1431
- let d = S(), [f] = t?.split("-") || [], p = Cn(f, d), m = r;
1432
- return c && !o && (m = {
1433
- ...r,
1434
- ...wn(s?.strategy)
1435
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
1436
- ref: u,
1437
- style: m,
1438
- role: "tooltip",
1439
- "x-placement": f,
1440
- className: (0, bn.default)(n, e, `bs-tooltip-${p}`),
1441
- ...l,
1442
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
1443
- className: "tooltip-arrow",
1444
- ...a
1445
- }), /* @__PURE__ */ (0, X.jsx)("div", {
1446
- className: `${e}-inner`,
1447
- children: i
1448
- })]
1449
- });
1450
- });
1451
- Dn.displayName = "Tooltip";
1452
- var Z = Object.assign(Dn, { TOOLTIP_OFFSET: [0, 6] });
1453
- //#endregion
1454
- //#region node_modules/react-bootstrap/esm/useOverlayOffset.js
1455
- function On(e) {
1456
- let t = P(null), n = y(void 0, "popover"), r = y(void 0, "tooltip");
1457
- return [t, [N(() => ({
1458
- name: "offset",
1459
- options: { offset: () => {
1460
- if (e) return e;
1461
- if (t.current) {
1462
- if (C(t.current, n)) return En.POPPER_OFFSET;
1463
- if (C(t.current, r)) return Z.TOOLTIP_OFFSET;
1464
- }
1465
- return [0, 0];
1466
- } }
1467
- }), [
1468
- e,
1469
- n,
1470
- r
1471
- ])]];
1472
- }
1473
- //#endregion
1474
- //#region node_modules/react-bootstrap/esm/Overlay.js
1475
- function kn(e, t) {
1476
- let { ref: n } = e, { ref: r } = t;
1477
- e.ref = n.__wrapped ||= (e) => n(l(e)), t.ref = r.__wrapped ||= (e) => r(l(e));
1478
- }
1479
- var An = /* @__PURE__ */ O.forwardRef(({ children: e, transition: t = g, popperConfig: n = {}, rootClose: r = !1, placement: i = "top", show: a = !1, ...o }, s) => {
1480
- let c = P({}), [l, u] = F(null), [d, f] = On(o.offset), p = E(s, d), m = t === !0 ? g : t || void 0, h = D((e) => {
1481
- u(e), n == null || n.onFirstUpdate == null || n.onFirstUpdate(e);
1482
- });
1483
- return yn(() => {
1484
- l && o.target && (c.current.scheduleUpdate == null || c.current.scheduleUpdate());
1485
- }, [l, o.target]), j(() => {
1486
- a || u(null);
1487
- }, [a]), /* @__PURE__ */ (0, X.jsx)(_n, {
1488
- ...o,
1489
- ref: p,
1490
- popperConfig: {
1491
- ...n,
1492
- modifiers: f.concat(n.modifiers || []),
1493
- onFirstUpdate: h
1494
- },
1495
- transition: m,
1496
- rootClose: r,
1497
- placement: i,
1498
- show: a,
1499
- children: (r, { arrowProps: i, popper: a, show: o }) => {
1500
- var s;
1501
- kn(r, i);
1502
- let u = a?.placement, d = Object.assign(c.current, {
1503
- state: a?.state,
1504
- scheduleUpdate: a?.update,
1505
- placement: u,
1506
- outOfBoundaries: (a == null || (s = a.state) == null || (s = s.modifiersData.hide) == null ? void 0 : s.isReferenceHidden) || !1,
1507
- strategy: n.strategy
1508
- }), f = !!l;
1509
- return typeof e == "function" ? e({
1510
- ...r,
1511
- placement: u,
1512
- show: o,
1513
- ...!t && o && { className: "show" },
1514
- popper: d,
1515
- arrowProps: i,
1516
- hasDoneInitialMeasure: f
1517
- }) : /* @__PURE__ */ O.cloneElement(e, {
1518
- ...r,
1519
- placement: u,
1520
- arrowProps: i,
1521
- popper: d,
1522
- hasDoneInitialMeasure: f,
1523
- className: (0, bn.default)(e.props.className, !t && o && "show"),
1524
- style: {
1525
- ...e.props.style,
1526
- ...r.style
1527
- }
1528
- });
1529
- }
1530
- });
1531
- });
1532
- An.displayName = "Overlay";
1533
- //#endregion
1534
- //#region node_modules/react-bootstrap/esm/OverlayTrigger.js
1535
- var jn = /* @__PURE__ */ t(b());
1536
- function Mn(e) {
1537
- return e && typeof e == "object" ? e : {
1538
- show: e,
1539
- hide: e
1540
- };
1541
- }
1542
- function Nn(e, t, n) {
1543
- let [r] = t, i = r.currentTarget, a = r.relatedTarget || r.nativeEvent[n];
1544
- (!a || a !== i) && !h(i, a) && e(...t);
1545
- }
1546
- jn.default.oneOf([
1547
- "click",
1548
- "hover",
1549
- "focus"
1550
- ]);
1551
- var Q = ({ trigger: e = ["hover", "focus"], overlay: t, children: n, popperConfig: r = {}, show: i, defaultShow: a = !1, onToggle: o, delay: s, placement: c, flip: u = c && c.indexOf("auto") !== -1, ...d }) => {
1552
- let f = P(null), p = E(f, _(n)), m = se(), h = P(""), [g, v] = le(i, a, o), y = Mn(s), { onFocus: b, onBlur: x, onClick: S } = typeof n == "function" ? {} : O.Children.only(n).props, C = (e) => {
1553
- p(l(e));
1554
- }, w = A(() => {
1555
- if (m.clear(), h.current = "show", !y.show) {
1556
- v(!0);
1557
- return;
1558
- }
1559
- m.set(() => {
1560
- h.current === "show" && v(!0);
1561
- }, y.show);
1562
- }, [
1563
- y.show,
1564
- v,
1565
- m
1566
- ]), T = A(() => {
1567
- if (m.clear(), h.current = "hide", !y.hide) {
1568
- v(!1);
1569
- return;
1570
- }
1571
- m.set(() => {
1572
- h.current === "hide" && v(!1);
1573
- }, y.hide);
1574
- }, [
1575
- y.hide,
1576
- v,
1577
- m
1578
- ]), D = A((...e) => {
1579
- w(), b?.(...e);
1580
- }, [w, b]), j = A((...e) => {
1581
- T(), x?.(...e);
1582
- }, [T, x]), M = A((...e) => {
1583
- v(!g), S?.(...e);
1584
- }, [
1585
- S,
1586
- v,
1587
- g
1588
- ]), N = A((...e) => {
1589
- Nn(w, e, "fromElement");
1590
- }, [w]), F = A((...e) => {
1591
- Nn(T, e, "toElement");
1592
- }, [T]), ee = e == null ? [] : [].concat(e), I = { ref: C };
1593
- return ee.indexOf("click") !== -1 && (I.onClick = M), ee.indexOf("focus") !== -1 && (I.onFocus = D, I.onBlur = j), ee.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && (0, an.default)(ee.length > 1, "[react-bootstrap] Specifying only the `\"hover\"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `\"focus\"` trigger so that touch and keyboard only users can see the overlay as well."), I.onMouseOver = N, I.onMouseOut = F), /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [typeof n == "function" ? n(I) : /* @__PURE__ */ k(n, I), /* @__PURE__ */ (0, X.jsx)(An, {
1594
- ...d,
1595
- show: g,
1596
- onHide: T,
1597
- flip: u,
1598
- placement: c,
1599
- popperConfig: r,
1600
- target: f.current,
1601
- children: t
1602
- })] });
1603
- };
1604
- //#endregion
1605
- //#region src/components/UI/UserProfilePhoto.jsx
1606
- function Pn(e) {
1607
- let { profile_photo: t, width: n, alt: r, hideDefault: i, activityStatus: a, user_id: o } = e;
1608
- return t?.key ? /* @__PURE__ */ (0, X.jsxs)("div", {
1609
- "data-using-react-profile-photo": "true",
1610
- className: `profile-photo-wrap ${n ? "" : "w-100 h-100"}`,
1611
- style: { ...n && {
1612
- width: n,
1613
- height: n
1614
- } },
1615
- children: [/* @__PURE__ */ (0, X.jsx)(Fn, {
1616
- activityStatus: a,
1617
- user_id: o
1618
- }), /* @__PURE__ */ (0, X.jsx)("img", {
1619
- className: "w-100 h-100",
1620
- src: `${process.env.NEXT_PUBLIC_CDN}${t.key}`,
1621
- style: { objectFit: "contain" },
1622
- alt: r || "Profile photo of a user"
1623
- })]
1624
- }) : /* @__PURE__ */ (0, X.jsxs)("div", {
1625
- "data-using-react-profile-photo": "true",
1626
- className: (0, bn.default)("profile-photo-wrap", {
1627
- "w-100 h-100": !n,
1628
- "d-none": i
1629
- }),
1630
- style: { ...n && {
1631
- width: n,
1632
- height: n
1633
- } },
1634
- children: [/* @__PURE__ */ (0, X.jsx)(Fn, {
1635
- activityStatus: a,
1636
- user_id: o
1637
- }), /* @__PURE__ */ (0, X.jsx)("img", {
1638
- className: "w-100 h-100",
1639
- src: `${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,
1640
- style: { objectFit: "contain" },
1641
- alt: r || "Profile photo of a user"
1642
- })]
1643
- });
1644
- }
1645
- function Fn({ activityStatus: e, user_id: t }) {
1646
- if (!(!e || !t)) return /* @__PURE__ */ (0, X.jsx)("div", {
1647
- "data-user_id": t,
1648
- className: (0, bn.default)("online-status", {
1649
- "status-online": e?.status == "Online" || t == "630f0b337c52851e754b03f7",
1650
- "status-offline": e?.status == "Offline",
1651
- "status-away": e?.status == "Away",
1652
- "activity-active": !1
1653
- })
1654
- });
1655
- }
1656
- //#endregion
1657
- //#region src/hooks/User/UserPublic/usePublicUserData.js
1658
- var In = (e) => {
1659
- let t = new URLSearchParams({ user_id: e.user_id }).toString();
1660
- return fetch(`${e.url}?${t}`).then((e) => e.json());
1661
- }, Ln = {
1662
- dedupingInterval: 1e3 * 60 * 1,
1663
- focusThrottleInterval: 1e3 * 60 * 1
1664
- }, Rn = (e) => {
1665
- let { data: t, error: n, isLoading: r, isValidating: i, mutate: a } = re(e?.user_id ? {
1666
- url: process.env.NODE_ENV === "development" ? "http://localhost:3001/api/user-public/getUserDetails" : "https://articles.media/api/user-public/getUserDetails",
1667
- user_id: e.user_id
1668
- } : null, In, Ln);
1669
- return {
1670
- data: t,
1671
- error: n,
1672
- isLoading: r,
1673
- isValidating: i,
1674
- mutate: a
1675
- };
1676
- };
1677
- //#endregion
1678
- //#region src/components/UI/IsDev.jsx
1679
- function zn({ className: e, noOutline: t, children: n, inline: r }) {
1680
- let [i, a] = F();
1681
- if (j(() => {
1682
- a(!0);
1683
- }, []), n && (!1)?.roles?.isDev && i) return /* @__PURE__ */ (0, X.jsx)("div", {
1684
- className: `is-dev-content ${t && "no-outline"} ${e} ${r && "d-inline-block"}`,
1685
- children: n
1686
- });
1687
- }
1688
- //#endregion
1689
- //#region src/constants/routes.js
1690
- var $ = {
1691
- BASE: "https://articles.media",
1692
- SIGN_IN: "/login",
1693
- SIGN_UP: "/signup",
1694
- HOME: "/",
1695
- PROPOSALS: "/politics/proposals",
1696
- PROPOSALS_SUBMISSIONS_ALL: "/politics/proposals/submissions",
1697
- STORIES: "/news/stories",
1698
- ISSUES: "/news/issues",
1699
- MYTHS: "/news/myths"
1700
- };
1701
- //#endregion
1702
- //#region src/components/UI/ViewUserModal/Panels/ProposalsStance.jsx
1703
- function Bn({ activeLayoutProposalSentiments: e, populated_user: t, usersProposalSentiments: n, setShowFullStanceDetails: r, showFullStanceDetails: o, userData: s }) {
1704
- return /* @__PURE__ */ (0, X.jsx)("div", {
1705
- className: "row mx-0 mb-2",
1706
- children: [{
1707
- name: `${t?.display_name || s.display_name}`,
1708
- data: e || {}
1709
- }, {
1710
- name: "You",
1711
- data: n || {}
1712
- }].map((e) => e.name == "You" ? /* @__PURE__ */ (0, X.jsx)("div", {
1713
- className: "col-lg-6 px-1",
1714
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
1715
- className: "card card-articles card-sm h-100",
1716
- children: [
1717
- /* @__PURE__ */ (0, X.jsx)("div", {
1718
- className: "card-header",
1719
- children: /* @__PURE__ */ (0, X.jsx)("b", { children: e.name })
1720
- }),
1721
- /* @__PURE__ */ (0, X.jsx)("div", {
1722
- className: "card-body p-2",
1723
- children: /* @__PURE__ */ (0, X.jsx)("small", { children: "Login or create an account to compare your political stance with this user!" })
1724
- }),
1725
- /* @__PURE__ */ (0, X.jsxs)("div", {
1726
- className: "card-footer",
1727
- children: [/* @__PURE__ */ (0, X.jsx)(a, {
1728
- href: $.SIGN_IN,
1729
- children: /* @__PURE__ */ (0, X.jsx)(i, {
1730
- small: !0,
1731
- className: "",
1732
- children: "Sign In"
1733
- })
1734
- }), /* @__PURE__ */ (0, X.jsx)(a, {
1735
- href: $.SIGN_UP,
1736
- children: /* @__PURE__ */ (0, X.jsx)(i, {
1737
- small: !0,
1738
- className: "",
1739
- children: "Sign Up"
1740
- })
1741
- })]
1742
- })
1743
- ]
1744
- })
1745
- }, e.name) : /* @__PURE__ */ (0, X.jsx)("div", {
1746
- className: "col-lg-6 px-1",
1747
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
1748
- className: "card card-articles card-sm",
1749
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
1750
- className: "card-header",
1751
- onClick: () => {
1752
- console.log(e.data);
1753
- },
1754
- children: /* @__PURE__ */ (0, X.jsx)("b", { children: e.name })
1755
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
1756
- className: "card-body py-2 px-2 small",
1757
- children: [
1758
- /* @__PURE__ */ (0, X.jsxs)("div", {
1759
- className: "",
1760
- children: [
1761
- /* @__PURE__ */ (0, X.jsxs)("div", {
1762
- className: "small",
1763
- children: [
1764
- "Fundamental: ",
1765
- e?.data?.fundamental?.filter((t) => e.data?.user_sentiments?.find((e) => e.proposal_id == t._id) ? t : null).length,
1766
- "/",
1767
- e?.data?.fundamental?.length
1768
- ]
1769
- }),
1770
- /* @__PURE__ */ (0, X.jsx)(R, {
1771
- striped: !0,
1772
- variant: "dark",
1773
- className: "shadow-articles mb-2",
1774
- now: (e.data?.fundamental?.filter((t) => e.data?.user_sentiments?.find((e) => e.proposal_id == t._id) ? t : null).length / e.data?.fundamental?.length * 100).toFixed(2),
1775
- label: `${(e.data?.fundamental?.filter((t) => e.data?.user_sentiments?.find((e) => e.proposal_id == t._id) ? t : null).length / e.data?.fundamental?.length * 100).toFixed(2)}%`
1776
- }),
1777
- /* @__PURE__ */ (0, X.jsxs)(R, {
1778
- className: "shadow-articles mb-2",
1779
- style: { height: "10px" },
1780
- children: [
1781
- /* @__PURE__ */ (0, X.jsx)(R, {
1782
- striped: !0,
1783
- variant: "danger",
1784
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Disagree" && e.populated_proposal.fundamental)?.length / e.data?.fundamental?.length * 100).toFixed(2)
1785
- }),
1786
- /* @__PURE__ */ (0, X.jsx)(R, {
1787
- striped: !0,
1788
- variant: "warning",
1789
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Needs Work" && e.populated_proposal.fundamental)?.length / e.data?.fundamental?.length * 100).toFixed(2)
1790
- }),
1791
- /* @__PURE__ */ (0, X.jsx)(R, {
1792
- striped: !0,
1793
- variant: "success",
1794
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Agree" && e.populated_proposal.fundamental)?.length / e.data?.fundamental?.length * 100).toFixed(2)
1795
- })
1796
- ]
1797
- }),
1798
- /* @__PURE__ */ (0, X.jsxs)("div", {
1799
- className: "",
1800
- children: ["Disagree: ", e.data?.user_sentiments?.filter((t) => {
1801
- let n = e.data?.fundamental.find((e) => e._id == t.proposal_id);
1802
- return t.sentiment_status == "Disagree" && n;
1803
- })?.length || 0]
1804
- }),
1805
- /* @__PURE__ */ (0, X.jsxs)("div", {
1806
- className: "",
1807
- children: ["Needs Work: ", e.data?.user_sentiments?.filter((t) => {
1808
- let n = e.data?.fundamental.find((e) => e._id == t.proposal_id);
1809
- return t.sentiment_status == "Needs Work" && n;
1810
- })?.length || 0]
1811
- }),
1812
- /* @__PURE__ */ (0, X.jsxs)("div", {
1813
- className: "mb-2",
1814
- children: ["Agree: ", e.data?.user_sentiments?.filter((t) => {
1815
- let n = e.data?.fundamental.find((e) => e._id == t.proposal_id);
1816
- return t.sentiment_status == "Agree" && n;
1817
- })?.length || 0]
1818
- })
1819
- ]
1820
- }),
1821
- !o && /* @__PURE__ */ (0, X.jsx)("span", {
1822
- onClick: () => r(!0),
1823
- className: "badge bg-articles-secondary shadow-articles badge-hover",
1824
- children: "View More"
1825
- }),
1826
- o && /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
1827
- /* @__PURE__ */ (0, X.jsx)("hr", {}),
1828
- /* @__PURE__ */ (0, X.jsxs)("div", {
1829
- className: "mb-2",
1830
- children: [
1831
- /* @__PURE__ */ (0, X.jsxs)("div", {
1832
- className: "small",
1833
- children: [
1834
- "All: ",
1835
- e.data?.user_sentiments?.length,
1836
- "/",
1837
- e.data?.total
1838
- ]
1839
- }),
1840
- /* @__PURE__ */ (0, X.jsx)(R, {
1841
- striped: !0,
1842
- animated: !0,
1843
- variant: "dark",
1844
- className: "shadow-articles mb-1",
1845
- now: (e.data?.user_sentiments?.length / e.data?.total * 100).toFixed(2),
1846
- label: `${(e.data?.user_sentiments?.length / e.data?.total * 100).toFixed(2)}%`
1847
- }),
1848
- /* @__PURE__ */ (0, X.jsxs)(R, {
1849
- className: "shadow-articles mb-2",
1850
- style: { height: "10px" },
1851
- children: [
1852
- /* @__PURE__ */ (0, X.jsx)(R, {
1853
- striped: !0,
1854
- animated: !0,
1855
- variant: "danger",
1856
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Disagree")?.length / e.data?.total * 100).toFixed(2)
1857
- }),
1858
- /* @__PURE__ */ (0, X.jsx)(R, {
1859
- striped: !0,
1860
- animated: !0,
1861
- variant: "warning",
1862
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Needs Work")?.length / e.data?.total * 100).toFixed(2)
1863
- }),
1864
- /* @__PURE__ */ (0, X.jsx)(R, {
1865
- striped: !0,
1866
- animated: !0,
1867
- variant: "success",
1868
- now: (e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Agree")?.length / e.data?.total * 100).toFixed(2)
1869
- })
1870
- ]
1871
- }),
1872
- /* @__PURE__ */ (0, X.jsxs)("div", {
1873
- className: "",
1874
- children: ["Disagree: ", e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Disagree")?.length || 0]
1875
- }),
1876
- /* @__PURE__ */ (0, X.jsxs)("div", {
1877
- className: "",
1878
- children: ["Needs Work: ", e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Needs Work")?.length || 0]
1879
- }),
1880
- /* @__PURE__ */ (0, X.jsxs)("div", {
1881
- className: "mb-2",
1882
- children: ["Agree: ", e.data?.user_sentiments?.filter((e) => e.sentiment_status == "Agree")?.length || 0]
1883
- })
1884
- ]
1885
- }),
1886
- /* @__PURE__ */ (0, X.jsx)("hr", {}),
1887
- /* @__PURE__ */ (0, X.jsx)("p", {
1888
- className: "mb-0",
1889
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
1890
- className: "row",
1891
- children: [
1892
- /* @__PURE__ */ (0, X.jsx)("div", {
1893
- className: "col-9",
1894
- children: "Comments"
1895
- }),
1896
- /* @__PURE__ */ (0, X.jsx)("div", {
1897
- className: "col-3",
1898
- children: /* @__PURE__ */ (0, X.jsx)("b", { children: e.data?.user_comments?.length || 0 })
1899
- }),
1900
- /* @__PURE__ */ (0, X.jsx)("div", {
1901
- className: "col-9",
1902
- children: "Submissions"
1903
- }),
1904
- /* @__PURE__ */ (0, X.jsx)("div", {
1905
- className: "col-3",
1906
- children: /* @__PURE__ */ (0, X.jsx)("b", { children: e.data?.user_submissions })
1907
- })
1908
- ]
1909
- })
1910
- })
1911
- ] })
1912
- ]
1913
- })]
1914
- })
1915
- }, e.name))
1916
- });
1917
- }
1918
- //#endregion
1919
- //#region src/components/UI/ViewUserModal/Panels/ProposalComments.jsx
1920
- function Vn({ activeLayoutProposalSentiments: e }) {
1921
- return /* @__PURE__ */ (0, X.jsx)("div", { children: e.user_comments?.filter((e) => !e.parent_id).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
1922
- className: "card card-articles card-sm border mb-2",
1923
- children: [
1924
- /* @__PURE__ */ (0, X.jsxs)("div", {
1925
- className: "card-header small",
1926
- children: ["Commented on ", /* @__PURE__ */ (0, X.jsx)("b", { children: e.populated_proposal.title })]
1927
- }),
1928
- /* @__PURE__ */ (0, X.jsx)("div", {
1929
- className: "card-body small p-2",
1930
- children: /* @__PURE__ */ (0, X.jsxs)("div", { children: [/* @__PURE__ */ (0, X.jsx)("span", {
1931
- className: "small",
1932
- children: te(new Date(e.date), "M/dd/yy")
1933
- }), /* @__PURE__ */ (0, X.jsx)("div", { children: e.comment })] })
1934
- }),
1935
- /* @__PURE__ */ (0, X.jsx)("div", {
1936
- className: "card-footer",
1937
- children: /* @__PURE__ */ (0, X.jsx)(a, {
1938
- prefetch: !1,
1939
- href: `${$.PROPOSALS}/${e.populated_proposal.url}?interaction_id=${e._id}`,
1940
- children: /* @__PURE__ */ (0, X.jsx)(i, {
1941
- small: !0,
1942
- children: "View"
1943
- })
1944
- })
1945
- })
1946
- ]
1947
- }, e._id)) });
1948
- }
1949
- //#endregion
1950
- //#region src/components/UI/ViewUserModal/Panels/ProposalSentiments.jsx
1951
- function Hn({ activeLayoutProposalSentiments: e }) {
1952
- return /* @__PURE__ */ (0, X.jsx)("div", { children: e.user_sentiments?.map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
1953
- className: "card card-articles card-sm border mb-2",
1954
- children: [
1955
- /* @__PURE__ */ (0, X.jsxs)("div", {
1956
- className: "card-header small",
1957
- children: ["Gave their sentiment on ", /* @__PURE__ */ (0, X.jsx)("b", { children: e.populated_proposal.title })]
1958
- }),
1959
- /* @__PURE__ */ (0, X.jsxs)("div", {
1960
- className: "card-body small p-2",
1961
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
1962
- className: "d-flex align-items-center border-bottom pb-1",
1963
- children: [
1964
- e.sentiment_status == "Agree" && /* @__PURE__ */ (0, X.jsx)("div", {
1965
- className: "badge shadow-articles bg-success",
1966
- children: "Agree"
1967
- }),
1968
- e.sentiment_status == "Needs Work" && /* @__PURE__ */ (0, X.jsx)("div", {
1969
- className: "badge shadow-articles bg-warning text-dark",
1970
- children: "Needs Work"
1971
- }),
1972
- e.sentiment_status == "Disagree" && /* @__PURE__ */ (0, X.jsx)("div", {
1973
- className: "badge shadow-articles bg-danger",
1974
- children: "Disagree"
1975
- }),
1976
- /* @__PURE__ */ (0, X.jsx)("span", {
1977
- className: "small ms-2",
1978
- children: te(new Date(e.date), "M/dd/yy")
1979
- })
1980
- ]
1981
- }), /* @__PURE__ */ (0, X.jsx)("div", {
1982
- className: "mt-1",
1983
- children: e.comment
1984
- })]
1985
- }),
1986
- /* @__PURE__ */ (0, X.jsx)("div", {
1987
- className: "card-footer",
1988
- children: /* @__PURE__ */ (0, X.jsx)(a, {
1989
- prefetch: !1,
1990
- href: `https://articles.media/politics/proposals/${e.populated_proposal.url}?interaction_id=${e._id}`,
1991
- children: /* @__PURE__ */ (0, X.jsx)(i, {
1992
- small: !0,
1993
- children: "View"
1994
- })
1995
- })
1996
- })
1997
- ]
1998
- }, e._id)) });
1999
- }
2000
- //#endregion
2001
- //#region src/components/UI/ViewUserModal/Panels/ProposalSubmissions.jsx
2002
- function Un({ activeLayoutProposalSentiments: e, userProposalsSubmitted: t }) {
2003
- let [n, r] = F(!1);
2004
- return /* @__PURE__ */ (0, X.jsxs)("div", { children: [
2005
- /* @__PURE__ */ (0, X.jsx)("div", {
2006
- className: "mb-2",
2007
- children: t?.slice(0, n ? 100 : 1).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
2008
- className: "card card-articles card-sm shadow-articles",
2009
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2010
- className: "card-body p-2 lh-sm d-flex align-items-center",
2011
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2012
- className: "ms-2",
2013
- children: [/* @__PURE__ */ (0, X.jsx)("div", { children: e.title }), /* @__PURE__ */ (0, X.jsxs)("div", {
2014
- className: "small",
2015
- children: [e.type, e.fundamental && " - Fundamental"]
2016
- })]
2017
- })
2018
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2019
- className: "card-footer d-flex",
2020
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2021
- href: `${$.PROPOSALS_SUBMISSIONS_ALL}/${e._id}`,
2022
- className: "",
2023
- children: /* @__PURE__ */ (0, X.jsx)(i, {
2024
- small: !0,
2025
- children: /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-eye me-1" }), "View"] })
2026
- })
2027
- })
2028
- })]
2029
- }, e._id))
2030
- }),
2031
- t?.length > 1 && /* @__PURE__ */ (0, X.jsx)(i, {
2032
- onClick: () => r(!n),
2033
- className: "w-100",
2034
- children: n ? "View Less" : "View All"
2035
- }),
2036
- t?.length == 0 && /* @__PURE__ */ (0, X.jsx)("span", {
2037
- className: "small",
2038
- children: "User has no proposal submissions"
2039
- })
2040
- ] });
2041
- }
2042
- //#endregion
2043
- //#region src/components/News/NewsPreviewImage.jsx
2044
- function Wn(e) {
2045
- let { featured_image: t, thumbnail_size: n } = e;
2046
- return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [(t?.image_type == "S3 File System" || t?.thumbnails?.length > 0) && /* @__PURE__ */ (0, X.jsx)(X.Fragment, { children: t?.thumbnails?.length > 0 ? /* @__PURE__ */ (0, X.jsx)(X.Fragment, { children: n && t?.thumbnails?.find((e) => e.width == n) ? /* @__PURE__ */ (0, X.jsx)("img", {
2047
- style: {
2048
- width: "100%",
2049
- height: "100%",
2050
- objectFit: "cover"
2051
- },
2052
- src: process.env.NEXT_PUBLIC_CDN + t?.thumbnails?.find((e) => e.width == n).key,
2053
- loading: "lazy",
2054
- alt: "",
2055
- className: "flex-shrink-0"
2056
- }) : /* @__PURE__ */ (0, X.jsx)("img", {
2057
- style: {
2058
- width: "100%",
2059
- height: "100%",
2060
- objectFit: "cover"
2061
- },
2062
- src: process.env.NEXT_PUBLIC_CDN + [...t?.thumbnails].sort((e, t) => e.width - t.width)[0].key,
2063
- loading: "lazy",
2064
- alt: "",
2065
- className: "flex-shrink-0"
2066
- }) }) : /* @__PURE__ */ (0, X.jsx)("img", {
2067
- style: {
2068
- width: "100%",
2069
- height: "100%",
2070
- objectFit: "cover"
2071
- },
2072
- src: process.env.NEXT_PUBLIC_CDN + t?.key,
2073
- loading: "lazy",
2074
- alt: "",
2075
- className: "flex-shrink-0"
2076
- }) }), t?.location && !t?.image_type && (t?.thumbnails?.length || 0) < 1 && /* @__PURE__ */ (0, X.jsx)("img", {
2077
- style: {
2078
- objectFit: "cover",
2079
- width: "100%",
2080
- height: "100%"
2081
- },
2082
- src: `${process.env.NEXT_PUBLIC_CDN}${t?.key}`,
2083
- alt: "",
2084
- loading: "lazy"
2085
- })] });
2086
- }
2087
- //#endregion
2088
- //#region src/util/renderNewsRoute.js
2089
- function Gn(e) {
2090
- switch (e) {
2091
- case "story": return $.STORIES;
2092
- case "issue": return $.ISSUES;
2093
- case "myth": return $.MYTHS;
2094
- default:
2095
- }
2096
- }
2097
- //#endregion
2098
- //#region src/components/UI/ViewUserModal/Panels/NewsComments.jsx
2099
- function Kn({ publicUserData: e }) {
2100
- return /* @__PURE__ */ (0, X.jsx)("div", { children: e?.populated_news_comments?.filter((e) => !e.parent_id).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
2101
- className: "card card-articles card-sm border mb-2",
2102
- children: [
2103
- /* @__PURE__ */ (0, X.jsxs)("div", {
2104
- className: "card-header small",
2105
- children: ["Commented on ", /* @__PURE__ */ (0, X.jsx)("b", { children: e.populated_news?.news_title })]
2106
- }),
2107
- /* @__PURE__ */ (0, X.jsxs)("div", {
2108
- className: "card-body small p-2 d-flex",
2109
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2110
- style: {
2111
- width: "100px",
2112
- height: "100px"
2113
- },
2114
- className: "me-2 flex-shrink-0",
2115
- children: /* @__PURE__ */ (0, X.jsx)(Wn, {
2116
- featured_image: e?.populated_news?.featured_image,
2117
- thumbnail_size: 100
2118
- })
2119
- }), /* @__PURE__ */ (0, X.jsxs)("div", { children: [/* @__PURE__ */ (0, X.jsx)("span", {
2120
- className: "small",
2121
- children: te(new Date(e.date), "M/dd/yy")
2122
- }), /* @__PURE__ */ (0, X.jsx)("div", { children: e.comment })] })]
2123
- }),
2124
- /* @__PURE__ */ (0, X.jsx)("div", {
2125
- className: "card-footer",
2126
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2127
- prefetch: !1,
2128
- href: `${Gn(e.populated_news?.news_type)}/${e.populated_news?.url}?interaction_id=${e._id}`,
2129
- children: /* @__PURE__ */ (0, X.jsx)(i, {
2130
- small: !0,
2131
- children: "View"
2132
- })
2133
- })
2134
- })
2135
- ]
2136
- }, e._id)) });
2137
- }
2138
- //#endregion
2139
- //#region src/components/UI/ViewUserModal/Panels/NewsSubmissions.jsx
2140
- function qn({ userNewsSubmitted: e }) {
2141
- let [t, n] = F(!1);
2142
- return /* @__PURE__ */ (0, X.jsxs)("div", { children: [
2143
- /* @__PURE__ */ (0, X.jsxs)("div", {
2144
- className: "mb-1 d-flex justify-content-between align-items-center",
2145
- children: [/* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-newspaper me-1" }), /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("span", { children: "News Submissions: " }), /* @__PURE__ */ (0, X.jsx)("span", {
2146
- className: "badge bg-dark",
2147
- children: e?.length || 0
2148
- })] })] }), /* @__PURE__ */ (0, X.jsxs)("span", {
2149
- className: "badge bg-articles-secondary",
2150
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-info me-1" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "Info" })]
2151
- })]
2152
- }),
2153
- /* @__PURE__ */ (0, X.jsx)("div", {
2154
- className: "mb-1",
2155
- children: e?.slice(0, t ? 100 : 1).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
2156
- className: "card card-articles shadow-articles",
2157
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2158
- className: "card-body py-1 px-2 lh-sm d-flex align-items-center",
2159
- children: [/* @__PURE__ */ (0, X.jsx)("img", {
2160
- className: "",
2161
- src: e?.featured_image?.location,
2162
- width: "40px",
2163
- height: "40px",
2164
- style: { objectFit: "cover" },
2165
- alt: ""
2166
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2167
- className: "ms-2",
2168
- children: /* @__PURE__ */ (0, X.jsx)("div", { children: e.news_title })
2169
- })]
2170
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2171
- className: "card-footer d-flex p-1",
2172
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2173
- href: `${$.HOME}/${e.url}`,
2174
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
2175
- small: !0,
2176
- className: "",
2177
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-eye me-1" }), "View"]
2178
- })
2179
- })
2180
- })]
2181
- }, e._id))
2182
- }),
2183
- e?.length > 1 ? /* @__PURE__ */ (0, X.jsx)(i, {
2184
- onClick: () => n(!t),
2185
- small: !0,
2186
- className: "",
2187
- children: t ? "View Less" : "View All"
2188
- }) : /* @__PURE__ */ (0, X.jsx)("span", {
2189
- className: "small",
2190
- children: "User has no news submissions"
2191
- })
2192
- ] });
2193
- }
2194
- //#endregion
2195
- //#region src/components/UI/ViewUserModal/Panels/Donations.jsx
2196
- function Jn({ activeLayoutProposalSentiments: e, userDonations: t, lifetimeContribution: n }) {
2197
- let [r, o] = F(!1);
2198
- return /* @__PURE__ */ (0, X.jsxs)("div", {
2199
- className: "card card-articles ",
2200
- children: [
2201
- /* @__PURE__ */ (0, X.jsxs)("div", {
2202
- className: "card-header d-flex justify-content-between align-items-center p-1",
2203
- children: [/* @__PURE__ */ (0, X.jsx)("span", { children: "Donations: " }), /* @__PURE__ */ (0, X.jsxs)("span", {
2204
- className: "badge bg-dark",
2205
- children: [
2206
- t.count,
2207
- " - ",
2208
- `$${s((n / 100 || 0).toFixed(2))}`
2209
- ]
2210
- })]
2211
- }),
2212
- /* @__PURE__ */ (0, X.jsxs)("div", {
2213
- className: "card-body p-2",
2214
- children: [t?.list?.length == 0 && /* @__PURE__ */ (0, X.jsx)("span", {
2215
- className: "small",
2216
- children: "User has no donations"
2217
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2218
- className: "donations-wrap",
2219
- children: t?.list?.slice(0, r ? 100 : 3).map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
2220
- className: "border",
2221
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2222
- className: "card-body py-1 px-2 lh-sm d-flex align-items-center",
2223
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2224
- className: "small",
2225
- children: "Most Recent"
2226
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
2227
- className: "ms-2 d-flex align-items-center",
2228
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2229
- className: "h4 mb-0 me-2",
2230
- children: `$${s((e.amount / 100).toFixed(2))}`
2231
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2232
- className: "small",
2233
- children: te(new Date(e.date), "M/dd/yy")
2234
- })]
2235
- })]
2236
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2237
- className: "card-footer d-flex p-1",
2238
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2239
- href: `${$.HOME}/${e.url}`,
2240
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
2241
- className: "",
2242
- small: !0,
2243
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-eye me-1" }), "View"]
2244
- })
2245
- })
2246
- })]
2247
- }, e._id))
2248
- })]
2249
- }),
2250
- /* @__PURE__ */ (0, X.jsx)("div", {
2251
- className: "card-footer p-1 d-flex justify-content-center",
2252
- children: t.count > 1 && /* @__PURE__ */ (0, X.jsx)(i, {
2253
- onClick: () => {
2254
- o(!r);
2255
- },
2256
- className: "w-100",
2257
- children: r ? "View Less" : "View All"
2258
- })
2259
- })
2260
- ]
2261
- });
2262
- }
2263
- //#endregion
2264
- //#region src/components/UI/ViewUserModal/Panels/Layouts.jsx
2265
- function Yn({ userLayoutsData: e, handleClose: t }) {
2266
- return /* @__PURE__ */ (0, X.jsx)("div", { children: e?.map((e) => /* @__PURE__ */ (0, X.jsxs)("div", {
2267
- className: "card card-articles shadow-articles",
2268
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2269
- className: "card-body py-1 px-2 lh-sm d-flex align-items-center",
2270
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2271
- className: "ms-2",
2272
- children: [/* @__PURE__ */ (0, X.jsx)("div", { children: e.name }), /* @__PURE__ */ (0, X.jsx)("div", {
2273
- className: "small",
2274
- children: "Last Viewed: Never"
2275
- })]
2276
- })
2277
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
2278
- className: "card-footer d-flex p-1",
2279
- children: [(!1)._id !== e.user_id && /* @__PURE__ */ (0, X.jsxs)(i, {
2280
- className: "",
2281
- small: !0,
2282
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-plus me-1" }), "Follow"]
2283
- }), /* @__PURE__ */ (0, X.jsx)(a, {
2284
- href: `${$.HOME}/${e.url}`,
2285
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
2286
- className: "",
2287
- small: !0,
2288
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-eye me-1" }), "View"]
2289
- })
2290
- })]
2291
- })]
2292
- }, e._id)) });
2293
- }
2294
- //#endregion
2295
- //#region src/components/UI/ViewUserModal/Panels/Verifications.jsx
2296
- function Xn({ activeLayoutProposalSentiments: e, userData: t }) {
2297
- return /* @__PURE__ */ (0, X.jsx)("div", { children: /* @__PURE__ */ (0, X.jsx)("div", {
2298
- className: "",
2299
- children: t?.verified?.verified_methods?.map((e, t) => Object.keys(e)?.length > 0 ? /* @__PURE__ */ (0, X.jsxs)("div", {
2300
- className: "card card-articles card-sm object mb-2",
2301
- children: [/* @__PURE__ */ (0, X.jsx)("div", {
2302
- className: "card-header",
2303
- children: e?.method_name
2304
- }), /* @__PURE__ */ (0, X.jsx)("div", {
2305
- className: "card-body p-2",
2306
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2307
- className: "small",
2308
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2309
- className: "d-flex align-items-center",
2310
- children: [/* @__PURE__ */ (0, X.jsx)("span", {
2311
- className: "me-2",
2312
- children: "Approved On: "
2313
- }), /* @__PURE__ */ (0, X.jsx)(o, { date: e.approved_date })]
2314
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
2315
- className: "d-flex align-items-center",
2316
- children: [/* @__PURE__ */ (0, X.jsx)("span", {
2317
- className: "me-2",
2318
- children: "Approved By: "
2319
- }), /* @__PURE__ */ (0, X.jsx)(tr, {
2320
- user_id: e.approved_by,
2321
- dangerousPopulate: !0
2322
- })]
2323
- })]
2324
- })
2325
- })]
2326
- }, t) : /* @__PURE__ */ (0, X.jsx)("div", {
2327
- className: "single",
2328
- children: e
2329
- }, t))
2330
- }) });
2331
- }
2332
- //#endregion
2333
- //#region src/components/UI/ViewUserModal/Panels/Achievements.jsx
2334
- var Zn = [];
2335
- function Qn({ activeLayoutProposalSentiments: e }) {
2336
- return /* @__PURE__ */ (0, X.jsx)("div", { children: /* @__PURE__ */ (0, X.jsx)("div", {
2337
- className: "achievements card card-articles",
2338
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2339
- className: "card-body p-0",
2340
- children: Zn.map((e) => /* @__PURE__ */ (0, X.jsx)("div", { children: /* @__PURE__ */ (0, X.jsxs)("div", {
2341
- className: "achievement w-100 d-flex align-items-center",
2342
- children: [
2343
- /* @__PURE__ */ (0, X.jsx)("div", {
2344
- className: "icon",
2345
- style: { width: "50px" },
2346
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: `fad ${e.icon} fa-lg` })
2347
- }),
2348
- /* @__PURE__ */ (0, X.jsxs)("div", {
2349
- className: "details small me-auto",
2350
- children: [
2351
- /* @__PURE__ */ (0, X.jsx)("b", {
2352
- className: "name",
2353
- children: e.name
2354
- }),
2355
- /* @__PURE__ */ (0, X.jsx)("div", {
2356
- className: "description mb-1",
2357
- children: e.description
2358
- }),
2359
- /* @__PURE__ */ (0, X.jsx)("div", {
2360
- className: "small",
2361
- children: e.tags?.map((e) => /* @__PURE__ */ (0, X.jsx)("span", {
2362
- className: "badge bg-dark border",
2363
- children: e
2364
- }, e))
2365
- })
2366
- ]
2367
- }),
2368
- /* @__PURE__ */ (0, X.jsx)("div", {
2369
- className: "icon border-end-0 border-start border-dark",
2370
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2371
- className: "text-center px-3",
2372
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-square fa-lg me-0" })
2373
- })
2374
- })
2375
- ]
2376
- }) }, e.name))
2377
- })
2378
- }) });
2379
- }
2380
- //#endregion
2381
- //#region src/hooks/Politics/usePoliticalParties.js
2382
- var $n = (e) => fetch(e).then((e) => e.json());
2383
- ne(60), ne(60);
2384
- var er = (e) => {
2385
- let { data: t, error: n, isLoading: r, mutate: i } = ee(process.env.NODE_ENV === "development" ? "http://localhost:3001/api/news/resources/political-parties" : "https://articles.media/api/news/resources/political-parties", $n, e?.preload ? {
2386
- dedupingInterval: 1e3 * 60 * 10,
2387
- fallbackData: e?.preload
2388
- } : { dedupingInterval: 1e3 * 60 * 10 });
2389
- return {
2390
- data: t,
2391
- error: n,
2392
- isLoading: r,
2393
- mutate: i
2394
- };
2395
- };
2396
- //#endregion
2397
- //#region src/components/UI/ViewUserModal/ViewUserModal.jsx
2398
- function tr(e) {
2399
- let { populated_user: t, hidePhoto: n, visibleItems: r, size: c, className: l, dangerousPopulate: u, user_id: d, buttonType: f, children: p, fakeMembership: m } = e, [h, g] = F(!1), [_, v] = F({}), [y, b] = F([]), [x, S] = F([]), [C, T] = F(null), [E, D] = F([]), [O, k] = F([]), [A, M] = F(!1), { data: P, isLoading: ee, mutate: ne } = er(), [L, re] = F("Proposals Stance"), R = () => {
2400
- g(!1);
2401
- };
2402
- j(() => {
2403
- t && v({ ...t });
2404
- }, []);
2405
- let [ie, ae] = F(!1), [oe, se] = F([]), [ce, le] = F([]), { data: z, isLoading: ue, mutate: de } = Rn((d || t?._id) && (h || u) ? { user_id: d || t?._id } : null), { data: fe, isLoading: pe, mutate: B } = Rn((!1)?._id && (h || u) ? { user_id: (!1)?._id } : null);
2406
- j(() => {
2407
- z && (console.log("publicUserData", z), v(z), b(z?.populated_public_layouts), S(z?.populated_public_donations), T(z?.populated_public_donations.total), k(z?.populated_public_proposals), se(z?.populated_public_proposals_stance), D(z?.populated_public_news_submissions || []));
2408
- }, [z]), j(() => {
2409
- fe && (console.log("personalUserData", fe), le(fe?.populated_public_proposals_stance));
2410
- }, [fe]);
2411
- let V = (t || _)?.articles_membership?.plan.replace(" ", "-").toLowerCase(), me = m?.replace(" ", "-").toLowerCase(), H = "https://articles.media/images/store/memberships/", he = () => {
2412
- let e = (t || _)?.articles_membership?.status == "Active";
2413
- return /* @__PURE__ */ (0, X.jsxs)("div", {
2414
- style: c == "lg" ? { fontSize: "1.5rem" } : {},
2415
- className: `view-user-modal-badge-wrap ${c == "lg" && "large"} ${l && l}`,
2416
- children: [
2417
- /* @__PURE__ */ (0, X.jsxs)("span", {
2418
- onClick: () => {
2419
- g(!0);
2420
- },
2421
- className: "position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles badge-hover ",
2422
- children: [
2423
- (e || m) && /* @__PURE__ */ (0, X.jsx)("i", {
2424
- className: `fad membership-badge ${me || V} fa-badge-check`,
2425
- style: {
2426
- position: "absolute",
2427
- top: "-2px",
2428
- left: "-2px",
2429
- fontSize: "0.9rem",
2430
- zIndex: 1
2431
- }
2432
- }),
2433
- /* @__PURE__ */ (0, X.jsxs)("div", {
2434
- className: `d-flex align-items-center ${e && ""}`,
2435
- children: [!n && /* @__PURE__ */ (0, X.jsx)("div", {
2436
- className: c == "lg" ? "me-0" : "me-1",
2437
- children: /* @__PURE__ */ (0, X.jsx)(Pn, {
2438
- width: "15px",
2439
- profile_photo: _.profile_photo
2440
- })
2441
- }), _.display_name || t?.display_name]
2442
- }),
2443
- /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-plus-square me-0 ms-2" })
2444
- ]
2445
- }),
2446
- r?.includes("Not Verified") && t?.verified?.status !== "Verified" && /* @__PURE__ */ (0, X.jsx)(Q, {
2447
- placement: "bottom",
2448
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2449
- style: { pointerEvents: "none" },
2450
- id: "button-tooltip",
2451
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2452
- className: "",
2453
- children: "User is not verified"
2454
- })
2455
- }),
2456
- children: /* @__PURE__ */ (0, X.jsxs)("span", {
2457
- className: "verification-user-badge badge bg-danger d-flex align-items-center",
2458
- children: [/* @__PURE__ */ (0, X.jsx)("i", {
2459
- style: { paddingBottom: "2px" },
2460
- className: "fas fa-robot me-1"
2461
- }), /* @__PURE__ */ (0, X.jsx)("span", {
2462
- className: "",
2463
- children: "Unverified"
2464
- })]
2465
- })
2466
- }),
2467
- !1,
2468
- r?.includes("Verification Status") && /* @__PURE__ */ (0, X.jsx)(Q, {
2469
- placement: "bottom",
2470
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2471
- id: "button-tooltip",
2472
- style: {
2473
- pointerEvents: "none",
2474
- transformX: "-20px"
2475
- },
2476
- children: t?.verified?.status == "Verified" ? "Verified" : " Not Verified"
2477
- }),
2478
- children: t?.verified?.status == "Verified" ? /* @__PURE__ */ (0, X.jsx)("span", {
2479
- className: "verification-user-badge badge bg-success cursor-pointer",
2480
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: "fas fa-check me-0" })
2481
- }) : /* @__PURE__ */ (0, X.jsxs)("span", {
2482
- className: "verification-user-badge badge bg-danger cursor-pointer",
2483
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fas fa-robot me-1" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "?" })]
2484
- })
2485
- }),
2486
- r?.includes("Political Party") && /* @__PURE__ */ (0, X.jsx)("div", {
2487
- className: "d-flex",
2488
- children: (t || _)?.political?.party_id && /* @__PURE__ */ (0, X.jsx)(Q, {
2489
- placement: "bottom",
2490
- overlay: /* @__PURE__ */ (0, X.jsxs)(Z, {
2491
- id: "tooltip-bottom",
2492
- style: { position: "fixed" },
2493
- children: [/* @__PURE__ */ (0, X.jsx)("img", {
2494
- width: "40px",
2495
- height: "40px",
2496
- style: {
2497
- objectFit: "contain",
2498
- padding: "0px",
2499
- zIndex: "10",
2500
- position: "relative"
2501
- },
2502
- loading: "lazy",
2503
- src: `${process.env.NEXT_PUBLIC_CDN}` + P?.find((e) => e._id == (t || _)?.political?.party_id)?.logo,
2504
- alt: ""
2505
- }), /* @__PURE__ */ (0, X.jsx)("span", {
2506
- className: "ms-2",
2507
- children: P?.find((e) => e._id == (t || _)?.political?.party_id)?.name
2508
- })]
2509
- }),
2510
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2511
- className: "badge bg-light text-capitalize ms-0 h-100 d-flex justify-content-center align-items-center",
2512
- style: {
2513
- padding: "0 0.15rem",
2514
- cursor: "pointer"
2515
- },
2516
- children: (t || _)?.political?.party_id && ((t || _)?.political?.party_id == "62a830440593acbd4061c48c" ? /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-unlink unaffiliated-icon fa-lg me-0" }) : /* @__PURE__ */ (0, X.jsx)("img", {
2517
- width: "15px",
2518
- height: "15px",
2519
- style: {
2520
- objectFit: "contain",
2521
- padding: "0px"
2522
- },
2523
- loading: "lazy",
2524
- src: `${process.env.NEXT_PUBLIC_CDN}` + P?.find((e) => e._id == (t || _)?.political?.party_id)?.logo,
2525
- alt: ""
2526
- }))
2527
- })
2528
- })
2529
- })
2530
- ]
2531
- });
2532
- };
2533
- function U(e) {
2534
- switch (e) {
2535
- case "Link": return /* @__PURE__ */ (0, X.jsx)("span", {
2536
- type: "button",
2537
- onClick: () => {
2538
- g(!0);
2539
- },
2540
- children: p
2541
- });
2542
- default: return /* @__PURE__ */ (0, X.jsx)(he, {});
2543
- }
2544
- }
2545
- let [W, G] = F(!1), [ge, _e] = F({}), [ve, ye] = F({});
2546
- j(() => {
2547
- W && Object.keys(ge).length == 0 && console.log("adminUserData", fe);
2548
- }, [W]);
2549
- let [be, xe] = F(null);
2550
- function Se() {
2551
- alert("TODO");
2552
- }
2553
- let Ce = N(() => y?.filter((e) => e.user_layout)?.[0]?.url, [y]);
2554
- return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [U(f), /* @__PURE__ */ (0, X.jsxs)(w, {
2555
- show: h,
2556
- size: "lg",
2557
- id: "view-users-modal",
2558
- className: "view-users-modal articles-modal",
2559
- scrollable: !0,
2560
- onHide: R,
2561
- children: [
2562
- /* @__PURE__ */ (0, X.jsx)(w.Header, {
2563
- closeButton: !0,
2564
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2565
- className: "w-100 d-flex justify-content-between align-items-center",
2566
- children: /* @__PURE__ */ (0, X.jsx)("h3", {
2567
- className: "mb-0",
2568
- children: "User Info"
2569
- })
2570
- })
2571
- }),
2572
- /* @__PURE__ */ (0, X.jsx)(w.Body, { children: /* @__PURE__ */ (0, X.jsxs)("div", {
2573
- className: "main-panel",
2574
- children: [
2575
- /* @__PURE__ */ (0, X.jsxs)("div", {
2576
- className: "d-flex",
2577
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2578
- className: "d-flex flex-column align-items-center",
2579
- style: { width: "100px" },
2580
- children: [
2581
- /* @__PURE__ */ (0, X.jsx)("div", {
2582
- type: "button",
2583
- onClick: () => {
2584
- xe(`${process.env.NEXT_PUBLIC_CDN}${_?.profile_photo?.key}`);
2585
- },
2586
- children: /* @__PURE__ */ (0, X.jsx)(Pn, {
2587
- width: "100px",
2588
- profile_photo: _?.profile_photo
2589
- })
2590
- }),
2591
- /* @__PURE__ */ (0, X.jsx)(Q, {
2592
- placement: "bottom",
2593
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2594
- id: "tooltip-bottom",
2595
- children: "Joined Articles Media"
2596
- }),
2597
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2598
- className: "badge bg-black border border-white shadow-sm rounded-0",
2599
- children: ["Joined ", _?.sign_up_date && te(new Date(_?.sign_up_date), "M/dd/yy")]
2600
- })
2601
- }),
2602
- Ce && /* @__PURE__ */ (0, X.jsx)(a, {
2603
- href: `https://articles.media/layouts/${Ce}`,
2604
- className: "mt-2 w-100",
2605
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
2606
- className: "w-100",
2607
- style: {},
2608
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-home" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "Layout" })]
2609
- })
2610
- }),
2611
- /* @__PURE__ */ (0, X.jsx)(zn, {
2612
- className: "w-100",
2613
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2614
- href: {
2615
- pathname: "https://articles.media/messages",
2616
- query: { startMsg: _?._id }
2617
- },
2618
- className: "mt-2 w-100",
2619
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
2620
- className: "w-100",
2621
- style: { fontSize: "0.88rem" },
2622
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-envelope" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "Message" })]
2623
- })
2624
- })
2625
- }),
2626
- W && /* @__PURE__ */ (0, X.jsxs)("div", {
2627
- className: "d-flex flex-column w-100 mt-2",
2628
- style: { maxWidth: "100px" },
2629
- children: [/* @__PURE__ */ (0, X.jsx)(i, {
2630
- variant: "warning",
2631
- small: !0,
2632
- className: "",
2633
- children: /* @__PURE__ */ (0, X.jsx)(Textfit, {
2634
- max: 14,
2635
- mode: "single",
2636
- children: "Remove Photo"
2637
- })
2638
- }), ge?.user?.profile_photo?.banned_uploads ? /* @__PURE__ */ (0, X.jsx)(i, {
2639
- variant: "warning",
2640
- small: !0,
2641
- className: "",
2642
- onClick: () => {
2643
- toggleBanCustomPhotoUpload();
2644
- },
2645
- children: /* @__PURE__ */ (0, X.jsx)(Textfit, {
2646
- max: 14,
2647
- mode: "single",
2648
- children: "Unban Uploads"
2649
- })
2650
- }) : /* @__PURE__ */ (0, X.jsx)(i, {
2651
- variant: "danger",
2652
- small: !0,
2653
- className: "",
2654
- onClick: () => {
2655
- toggleBanCustomPhotoUpload();
2656
- },
2657
- children: /* @__PURE__ */ (0, X.jsx)(Textfit, {
2658
- max: 14,
2659
- mode: "single",
2660
- children: "Ban Uploads"
2661
- })
2662
- })]
2663
- })
2664
- ]
2665
- }), /* @__PURE__ */ (0, X.jsxs)("div", {
2666
- className: "mx-2",
2667
- children: [
2668
- /* @__PURE__ */ (0, X.jsxs)("div", {
2669
- className: "d-flex align-items-center mb-1",
2670
- children: [/* @__PURE__ */ (0, X.jsx)("h5", {
2671
- className: "mb-0",
2672
- children: t?.display_name || _.display_name
2673
- }), /* @__PURE__ */ (0, X.jsxs)("span", {
2674
- className: "ms-2",
2675
- children: [" @", _?.username]
2676
- })]
2677
- }),
2678
- _?.articles_membership?.status == "Active" && /* @__PURE__ */ (0, X.jsx)(Q, {
2679
- placement: "bottom",
2680
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2681
- id: "tooltip-bottom",
2682
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2683
- className: "d-flex flex-column py-1",
2684
- children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2685
- className: "position-relative",
2686
- children: [
2687
- _?.articles_membership?.plan == "Supporter" && /* @__PURE__ */ (0, X.jsx)("img", {
2688
- src: `${H}supporter.jpg`,
2689
- width: 50,
2690
- height: 50,
2691
- alt: "Membership plan level"
2692
- }),
2693
- _?.articles_membership?.plan == "Premium Supporter" && /* @__PURE__ */ (0, X.jsx)("img", {
2694
- src: `${H}premiumSupporter.jpg`,
2695
- width: 50,
2696
- height: 50,
2697
- alt: "Membership plan level"
2698
- }),
2699
- _?.articles_membership?.plan == "Advocate" && /* @__PURE__ */ (0, X.jsx)("img", {
2700
- src: `${H}advocate.jpg`,
2701
- width: 50,
2702
- height: 50,
2703
- alt: "Membership plan level"
2704
- }),
2705
- /* @__PURE__ */ (0, X.jsx)("i", {
2706
- className: `fad membership-badge ${V} fa-badge-check me-1`,
2707
- style: {
2708
- position: "absolute",
2709
- top: "50%",
2710
- left: "50%",
2711
- transform: "translateX(-50%) translateY(-50%)",
2712
- fontSize: "1.5rem"
2713
- }
2714
- })
2715
- ]
2716
- }), /* @__PURE__ */ (0, X.jsxs)("span", {
2717
- className: "lh-sm",
2718
- children: [/* @__PURE__ */ (0, X.jsx)("div", { children: _?.articles_membership?.plan }), /* @__PURE__ */ (0, X.jsxs)("div", {
2719
- className: "small",
2720
- children: ["Since ", /* @__PURE__ */ (0, X.jsx)(o, {
2721
- format: "MM/dd/yy",
2722
- date: _?.articles_membership?.membership_started
2723
- })]
2724
- })]
2725
- })]
2726
- })
2727
- }),
2728
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2729
- className: "badge bg-articles border me-1 mb-1",
2730
- style: { cursor: "pointer" },
2731
- children: [
2732
- /* @__PURE__ */ (0, X.jsx)("i", {
2733
- className: `fad membership-badge ${V} fa-badge-check me-1`,
2734
- style: {}
2735
- }),
2736
- /* @__PURE__ */ (0, X.jsx)("span", { children: _?.articles_membership?.plan }),
2737
- /* @__PURE__ */ (0, X.jsx)("span", {
2738
- className: "px-1",
2739
- children: "|"
2740
- }),
2741
- /* @__PURE__ */ (0, X.jsx)("span", {
2742
- className: "months fw-bold",
2743
- children: I(/* @__PURE__ */ new Date(), new Date(_?.articles_membership?.membership_started)) || 0
2744
- })
2745
- ]
2746
- })
2747
- }),
2748
- _?.address?.state && /* @__PURE__ */ (0, X.jsx)(Q, {
2749
- placement: "bottom",
2750
- overlay: _.address?.state?.length == 2 ? /* @__PURE__ */ (0, X.jsxs)(Z, {
2751
- id: "tooltip-bottom",
2752
- children: ["From the state of ", convertRegion(_.address?.state, "name") ? convertRegion(_.address?.state, "name")[0] : ""]
2753
- }) : /* @__PURE__ */ (0, X.jsxs)(Z, {
2754
- id: "tooltip-bottom",
2755
- children: ["From the state of ", _.address?.state]
2756
- }),
2757
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2758
- className: "badge bg-articles border me-1 mb-1",
2759
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-map-pin me-1" }), _.address?.state]
2760
- })
2761
- }),
2762
- _.verified?.status !== "Verified" && /* @__PURE__ */ (0, X.jsx)(Q, {
2763
- placement: "bottom",
2764
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2765
- id: "tooltip-bottom",
2766
- children: "User is not verified"
2767
- }),
2768
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2769
- className: "badge bg-danger me-1 mb-1",
2770
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-robot me-1" }), "Unverified"]
2771
- })
2772
- }),
2773
- _.verified?.status == "Verified" && /* @__PURE__ */ (0, X.jsx)(Q, {
2774
- placement: "bottom",
2775
- overlay: /* @__PURE__ */ (0, X.jsxs)(Z, {
2776
- id: "tooltip-bottom",
2777
- className: "",
2778
- children: [
2779
- /* @__PURE__ */ (0, X.jsxs)("div", { children: [
2780
- "Verified by ",
2781
- _.verified?.verified_methods?.length,
2782
- " method",
2783
- _.verified?.verified_methods?.length > 1 && "s"
2784
- ] }),
2785
- /* @__PURE__ */ (0, X.jsx)("hr", {}),
2786
- /* @__PURE__ */ (0, X.jsx)("div", {
2787
- className: "pb-2",
2788
- children: _.verified?.verified_methods?.map((e, t) => Object.keys(e)?.length > 0 ? /* @__PURE__ */ (0, X.jsx)("div", {
2789
- className: "object",
2790
- children: e?.method_name
2791
- }, t) : /* @__PURE__ */ (0, X.jsx)("div", {
2792
- className: "single",
2793
- children: e
2794
- }, t))
2795
- })
2796
- ]
2797
- }),
2798
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2799
- className: "badge bg-articles border me-1 mb-1",
2800
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-star me-1" }), _.verified?.status]
2801
- })
2802
- }),
2803
- _.political?.party_id && /* @__PURE__ */ (0, X.jsx)(X.Fragment, { children: /* @__PURE__ */ (0, X.jsx)(Q, {
2804
- placement: "bottom",
2805
- overlay: /* @__PURE__ */ (0, X.jsx)(Z, {
2806
- id: "tooltip-bottom",
2807
- children: /* @__PURE__ */ (0, X.jsx)("div", { children: "Users political party" })
2808
- }),
2809
- children: /* @__PURE__ */ (0, X.jsx)(a, {
2810
- href: `https://articles.media/politics/parties/${(t || _)?.political?.party_id}`,
2811
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2812
- className: "badge bg-articles border text-capitalize me-1",
2813
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2814
- className: "",
2815
- children: [(t || _)?.political?.party_id == "62a830440593acbd4061c48c" ? /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-unlink unaffiliated-icon fa-lg me-0" }) : /* @__PURE__ */ (0, X.jsx)("img", {
2816
- width: "14px",
2817
- height: "14px",
2818
- style: {
2819
- objectFit: "contain",
2820
- padding: "0px"
2821
- },
2822
- loading: "lazy",
2823
- src: `${process.env.NEXT_PUBLIC_CDN}` + P?.find((e) => e._id == _?.political?.party_id)?.logo,
2824
- alt: ""
2825
- }), /* @__PURE__ */ (0, X.jsx)("span", {
2826
- className: "ms-1",
2827
- children: P?.find((e) => e._id == _.political?.party_id)?.name
2828
- })]
2829
- })
2830
- })
2831
- })
2832
- }) }),
2833
- /* @__PURE__ */ (0, X.jsx)("hr", {}),
2834
- /* @__PURE__ */ (0, X.jsx)("div", {
2835
- className: "small",
2836
- children: _?._id == "5e90cc96579a17440c5d7d52" && /* @__PURE__ */ (0, X.jsx)("span", { children: "Founder of Articles Media, thank you for using the site, feel free to message me with any questions, concerns or anything else." })
2837
- })
2838
- ]
2839
- })]
2840
- }),
2841
- /* @__PURE__ */ (0, X.jsx)("hr", {}),
2842
- W && /* @__PURE__ */ (0, X.jsxs)("div", { children: [
2843
- /* @__PURE__ */ (0, X.jsx)("div", {
2844
- className: "d-flex align-items-center justify-content-between",
2845
- children: /* @__PURE__ */ (0, X.jsx)("div", {
2846
- className: "small",
2847
- children: "Admin Mode Toolbar"
2848
- })
2849
- }),
2850
- /* @__PURE__ */ (0, X.jsxs)("div", { children: [/* @__PURE__ */ (0, X.jsxs)("div", {
2851
- className: "d-flex mb-2",
2852
- children: [
2853
- /* @__PURE__ */ (0, X.jsx)(i, {
2854
- small: !0,
2855
- variant: "warning",
2856
- className: "",
2857
- onClick: () => {
2858
- loadAdminUserData();
2859
- },
2860
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-redo me-0" })
2861
- }),
2862
- /* @__PURE__ */ (0, X.jsx)(i, {
2863
- active: W?.edit,
2864
- small: !0,
2865
- className: "",
2866
- onClick: () => {
2867
- G({
2868
- ...W,
2869
- edit: !W?.edit
2870
- });
2871
- },
2872
- children: "Edit Mode"
2873
- }),
2874
- W?.edit && /* @__PURE__ */ (0, X.jsx)(i, {
2875
- small: !0,
2876
- variant: "success",
2877
- className: "me-0",
2878
- onClick: () => {
2879
- Se();
2880
- },
2881
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-save me-0" })
2882
- })
2883
- ]
2884
- }), [
2885
- "User Details",
2886
- "Verification",
2887
- "Moderation",
2888
- "Bans",
2889
- "Stripe",
2890
- "Layouts",
2891
- "Reset Password",
2892
- "Sessions"
2893
- ].map((e) => /* @__PURE__ */ (0, X.jsx)(i, {
2894
- active: e == W?.tab,
2895
- small: !0,
2896
- onClick: () => {
2897
- G({
2898
- ...W,
2899
- tab: e
2900
- });
2901
- },
2902
- children: e
2903
- }, e))] }),
2904
- /* @__PURE__ */ (0, X.jsx)("hr", {})
2905
- ] }),
2906
- /* @__PURE__ */ (0, X.jsxs)("div", {
2907
- className: "pe-3 pb-3",
2908
- children: [
2909
- /* @__PURE__ */ (0, X.jsx)("div", {
2910
- className: "mb-2 me-2",
2911
- children: [
2912
- {
2913
- name: "Proposals Stance",
2914
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2915
- className: "badge bg-black ms-1",
2916
- children: /* @__PURE__ */ (0, X.jsxs)("div", {
2917
- className: "small",
2918
- children: [
2919
- /* @__PURE__ */ (0, X.jsx)("span", { children: ce?.fundamental?.filter((e) => ce?.user_sentiments?.find((t) => t.proposal_id == e._id) ? e : null).length }),
2920
- /* @__PURE__ */ (0, X.jsx)("span", {
2921
- className: "px-1",
2922
- children: "/"
2923
- }),
2924
- /* @__PURE__ */ (0, X.jsx)("span", { children: ce?.fundamental?.length })
2925
- ]
2926
- })
2927
- })
2928
- },
2929
- {
2930
- name: "Proposal Sentiments",
2931
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2932
- className: "badge bg-black ms-1",
2933
- children: _?.populated_public_proposals_stance?.user_sentiments_count || 0
2934
- })
2935
- },
2936
- {
2937
- name: "Proposal Comments",
2938
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2939
- className: "badge bg-black ms-1",
2940
- children: _?.populated_public_proposals_stance?.user_comments_count || 0
2941
- })
2942
- },
2943
- {
2944
- name: "Proposal Submissions",
2945
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2946
- className: "badge bg-black ms-1",
2947
- children: O?.length || 0
2948
- })
2949
- },
2950
- {
2951
- name: "News Comments",
2952
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2953
- className: "badge bg-black ms-1",
2954
- children: _?.populated_news_comments_count || 0
2955
- })
2956
- },
2957
- {
2958
- name: "News Submissions",
2959
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2960
- className: "badge bg-black ms-1",
2961
- children: E?.length || 0
2962
- })
2963
- },
2964
- {
2965
- name: "Verifications",
2966
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2967
- className: "badge bg-black ms-1",
2968
- children: _.verified?.verified_methods?.length || 0
2969
- })
2970
- },
2971
- {
2972
- name: "Layouts",
2973
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
2974
- className: "badge bg-black ms-1",
2975
- children: y?.length || 0
2976
- })
2977
- },
2978
- {
2979
- name: "Donations",
2980
- badge: /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("span", {
2981
- className: "badge bg-primary ms-1",
2982
- children: z?.populated_public_donations?.count || 0
2983
- }), /* @__PURE__ */ (0, X.jsxs)("span", {
2984
- className: "badge bg-black",
2985
- children: ["$", s((z?.populated_public_donations.total / 100).toFixed(2))]
2986
- })] })
2987
- },
2988
- {
2989
- name: "Orders",
2990
- badge: /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("span", {
2991
- className: "badge bg-primary ms-1",
2992
- children: "0"
2993
- }), /* @__PURE__ */ (0, X.jsx)("span", {
2994
- className: "badge bg-black",
2995
- children: "0"
2996
- })] })
2997
- },
2998
- {
2999
- name: "Achievements",
3000
- dev: !0,
3001
- badge: /* @__PURE__ */ (0, X.jsx)("span", {
3002
- className: "badge bg-black ms-1",
3003
- children: "0"
3004
- })
3005
- }
3006
- ].map((e) => (e.name, e.name, e.badge, e.name, e.dev ? /* @__PURE__ */ (0, X.jsx)(zn, {
3007
- inline: !0,
3008
- children: /* @__PURE__ */ (0, X.jsxs)(i, {
3009
- onClick: () => re(e.name),
3010
- active: e.name == L,
3011
- small: !0,
3012
- children: [e.name, e.badge]
3013
- }, e.name)
3014
- }, e.name) : /* @__PURE__ */ (0, X.jsxs)(i, {
3015
- onClick: () => re(e.name),
3016
- active: e.name == L,
3017
- small: !0,
3018
- children: [e.name, e.badge]
3019
- }, e.name)))
3020
- }),
3021
- L == "Proposals Stance" && /* @__PURE__ */ (0, X.jsx)(Bn, {
3022
- activeLayoutProposalSentiments: oe,
3023
- populated_user: t,
3024
- usersProposalSentiments: ce,
3025
- setShowFullStanceDetails: ae,
3026
- showFullStanceDetails: ie,
3027
- userData: _
3028
- }),
3029
- L == "Proposal Comments" && /* @__PURE__ */ (0, X.jsx)(Vn, { activeLayoutProposalSentiments: oe }),
3030
- L == "Proposal Sentiments" && /* @__PURE__ */ (0, X.jsx)(Hn, { activeLayoutProposalSentiments: oe }),
3031
- L == "Proposal Submissions" && /* @__PURE__ */ (0, X.jsx)(Un, { userProposalsSubmitted: z?.populated_public_proposals }),
3032
- L == "News Comments" && /* @__PURE__ */ (0, X.jsx)(Kn, { publicUserData: z }),
3033
- L == "News Submissions" && /* @__PURE__ */ (0, X.jsx)(qn, {
3034
- publicUserData: z,
3035
- userNewsSubmitted: z?.populated_public_news_submissions
3036
- }),
3037
- L == "Donations" && /* @__PURE__ */ (0, X.jsx)(Jn, {
3038
- publicUserData: z,
3039
- userDonations: z?.populated_public_donations,
3040
- lifetimeContribution: C
3041
- }),
3042
- L == "Layouts" && /* @__PURE__ */ (0, X.jsx)(Yn, {
3043
- publicUserData: z,
3044
- userLayoutsData: z?.populated_public_layouts
3045
- }),
3046
- L == "Verifications" && /* @__PURE__ */ (0, X.jsx)(Xn, {
3047
- publicUserData: z,
3048
- userData: _
3049
- }),
3050
- L == "Achievements" && /* @__PURE__ */ (0, X.jsx)(Qn, { publicUserData: z })
3051
- ]
3052
- })
3053
- ]
3054
- }) }),
3055
- /* @__PURE__ */ (0, X.jsxs)(w.Footer, {
3056
- className: "justify-content-between",
3057
- children: [(!1)?._id == "5e90cc96579a17440c5d7d52" ? /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsxs)(zn, {
3058
- inline: !0,
3059
- className: "me-2",
3060
- children: [/* @__PURE__ */ (0, X.jsxs)(i, {
3061
- onClick: () => {
3062
- G(W ? !1 : { tab: "" });
3063
- },
3064
- small: !0,
3065
- active: W,
3066
- variant: "",
3067
- className: "me-1",
3068
- children: [/* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-pen" }), /* @__PURE__ */ (0, X.jsx)("span", { children: "Admin Mode" })]
3069
- }), /* @__PURE__ */ (0, X.jsx)(i, {
3070
- onClick: () => {
3071
- de(), B();
3072
- },
3073
- small: !0,
3074
- variant: "warning",
3075
- className: "",
3076
- children: /* @__PURE__ */ (0, X.jsx)("i", { className: "fad fa-redo me-0" })
3077
- })]
3078
- }), /* @__PURE__ */ (0, X.jsx)("span", {
3079
- style: { fontSize: "0.8rem" },
3080
- children: _?._id
3081
- })] }) : /* @__PURE__ */ (0, X.jsx)("span", {}), /* @__PURE__ */ (0, X.jsx)("div", {
3082
- className: "justify-content-",
3083
- children: /* @__PURE__ */ (0, X.jsx)(i, {
3084
- variant: "articles",
3085
- onClick: R,
3086
- children: "Close"
3087
- })
3088
- })]
3089
- })
3090
- ]
3091
- })] });
3092
- }
3093
- //#endregion
3094
- export { tr as t };