@articles-media/articles-dev-box 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -2
- package/dist/{AdConfirmExitModal-CKkMAvBK.js → AdConfirmExitModal-Bhz-lt9w.js} +1 -1
- package/dist/{AdConfirmExitModal-CcSxmXKT.cjs → AdConfirmExitModal-N3Lvhb4y.cjs} +1 -1
- package/dist/{AdDetailsModal-k840vrS2.cjs → AdDetailsModal-BMj8DjV0.cjs} +1 -1
- package/dist/{AdDetailsModal-Bp5hZm9N.js → AdDetailsModal-DXvfmyKK.js} +1 -1
- package/dist/DarkModeHandler.cjs +1 -0
- package/dist/DarkModeHandler.js +17 -0
- package/dist/ElementChildren-DN3RWY2E.js +51 -0
- package/dist/ElementChildren-eAwIENLl.cjs +1 -0
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +85 -98
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -2
- package/dist/{GlobalBody-tmIC_GWn.js → GlobalBody-BrrtfBBs.js} +2 -2
- package/dist/{GlobalBody-BQ2qC81K.cjs → GlobalBody-weON_TbJ.cjs} +1 -1
- package/dist/GlobalBody.cjs +1 -1
- package/dist/GlobalBody.js +1 -1
- package/dist/{Modal-Wmqy9fOm.cjs → Modal-Bdhkgkwr.cjs} +2 -2
- package/dist/{Modal-C9oYRgI1.js → Modal-nux8R77F.js} +320 -306
- package/dist/SettingsModal.cjs +1 -0
- package/dist/SettingsModal.js +658 -0
- package/dist/{StatusModal-CAVxWCUq.js → StatusModal-B086BgSW.js} +2 -2
- package/dist/{StatusModal-BlwaI-2B.cjs → StatusModal-CzPyqQQA.cjs} +1 -1
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +465 -505
- package/dist/{index-DLYx67wi.js → index-C8MeSLnR.js} +935 -825
- package/dist/index-DWV8myok.cjs +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +19 -13
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +1 -1
- package/dist/useUserFriends.cjs +1 -0
- package/dist/useUserFriends.js +52 -0
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +1 -1
- package/package.json +13 -1
- package/dist/index-Ddv_TnxK.cjs +0 -6
package/dist/ViewUserModal.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { useRef as q, useEffect as X, useMemo as Me, useState as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import * as ce from "react";
|
|
3
|
+
import { useRef as q, useEffect as X, useMemo as Me, useState as C, useCallback as z, useLayoutEffect as xs, cloneElement as zt } from "react";
|
|
4
|
+
import { t as ke, a as Xt, L as Y, f as Te, n as et, A as Yt } from "./numberWithCommas-DnAkiOFL.js";
|
|
5
|
+
import { c as gs, d as bs, e as tt, f as st, o as qt, l as Ae, i as js, g as ys, h as wt, r as ws, u as ve, j as Kt, k as Nt, m as Gt, n as Ns, F as _t, s as at, p as _s, P as Os, M as Be } from "./Modal-nux8R77F.js";
|
|
6
|
+
import { w as Jt, m as Ss } from "./ElementChildren-DN3RWY2E.js";
|
|
7
|
+
import { c as ue } from "./index-YnD2EP-S.js";
|
|
8
|
+
import Ds from "react-dom";
|
|
9
|
+
import { w as Ps, u as Qt, a as Zt } from "./index-C8MeSLnR.js";
|
|
9
10
|
import { A as P } from "./Button-_Quon8UV.js";
|
|
10
11
|
function Qe(t, e) {
|
|
11
|
-
const a = +
|
|
12
|
+
const a = +ke(t) - +ke(e);
|
|
12
13
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
const [r, n] =
|
|
15
|
+
function As(t, e, a) {
|
|
16
|
+
const [r, n] = Xt(
|
|
16
17
|
a?.in,
|
|
17
18
|
t,
|
|
18
19
|
e
|
|
19
20
|
), l = r.getFullYear() - n.getFullYear(), i = r.getMonth() - n.getMonth();
|
|
20
21
|
return l * 12 + i;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
const a =
|
|
23
|
+
function Cs(t, e) {
|
|
24
|
+
const a = ke(t, e?.in);
|
|
24
25
|
return a.setHours(23, 59, 59, 999), a;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
const a =
|
|
27
|
+
function $s(t, e) {
|
|
28
|
+
const a = ke(t, e?.in), r = a.getMonth();
|
|
28
29
|
return a.setFullYear(a.getFullYear(), r + 1, 0), a.setHours(23, 59, 59, 999), a;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
const a =
|
|
32
|
-
return
|
|
31
|
+
function Es(t, e) {
|
|
32
|
+
const a = ke(t, e?.in);
|
|
33
|
+
return +Cs(a, e) == +$s(a, e);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
const [r, n, l] =
|
|
35
|
+
function Ms(t, e, a) {
|
|
36
|
+
const [r, n, l] = Xt(
|
|
36
37
|
a?.in,
|
|
37
38
|
t,
|
|
38
39
|
t,
|
|
39
40
|
e
|
|
40
41
|
), i = Qe(n, l), o = Math.abs(
|
|
41
|
-
|
|
42
|
+
As(n, l)
|
|
42
43
|
);
|
|
43
44
|
if (o < 1) return 0;
|
|
44
45
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - i * o);
|
|
45
46
|
let c = Qe(n, l) === -i;
|
|
46
|
-
|
|
47
|
+
Es(r) && o === 1 && Qe(r, l) === 1 && (c = !1);
|
|
47
48
|
const f = i * (o - +c);
|
|
48
49
|
return f === 0 ? 0 : f;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function ks() {
|
|
51
52
|
const t = q(!0), e = q(() => t.current);
|
|
52
53
|
return X(() => (t.current = !0, () => {
|
|
53
54
|
t.current = !1;
|
|
54
55
|
}), []), e.current;
|
|
55
56
|
}
|
|
56
|
-
const
|
|
57
|
-
function
|
|
57
|
+
const rt = 2 ** 31 - 1;
|
|
58
|
+
function es(t, e, a) {
|
|
58
59
|
const r = a - Date.now();
|
|
59
|
-
t.current = r <=
|
|
60
|
+
t.current = r <= rt ? setTimeout(e, r) : setTimeout(() => es(t, e, a), rt);
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
const t =
|
|
63
|
-
return
|
|
62
|
+
function Rs() {
|
|
63
|
+
const t = ks(), e = q();
|
|
64
|
+
return gs(() => clearTimeout(e.current)), Me(() => {
|
|
64
65
|
const a = () => clearTimeout(e.current);
|
|
65
66
|
function r(n, l = 0) {
|
|
66
|
-
t() && (a(), l <=
|
|
67
|
+
t() && (a(), l <= rt ? e.current = setTimeout(n, l) : es(e, n, Date.now() + l));
|
|
67
68
|
}
|
|
68
69
|
return {
|
|
69
70
|
set: r,
|
|
@@ -72,60 +73,23 @@ function Ts() {
|
|
|
72
73
|
};
|
|
73
74
|
}, []);
|
|
74
75
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (St) return Ze;
|
|
78
|
-
St = 1;
|
|
79
|
-
var t = process.env.NODE_ENV !== "production", e = function() {
|
|
80
|
-
};
|
|
81
|
-
if (t) {
|
|
82
|
-
var a = function(n, l) {
|
|
83
|
-
var i = arguments.length;
|
|
84
|
-
l = new Array(i > 1 ? i - 1 : 0);
|
|
85
|
-
for (var o = 1; o < i; o++)
|
|
86
|
-
l[o - 1] = arguments[o];
|
|
87
|
-
var c = 0, f = "Warning: " + n.replace(/%s/g, function() {
|
|
88
|
-
return l[c++];
|
|
89
|
-
});
|
|
90
|
-
typeof console < "u" && console.error(f);
|
|
91
|
-
try {
|
|
92
|
-
throw new Error(f);
|
|
93
|
-
} catch {
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
e = function(r, n, l) {
|
|
97
|
-
var i = arguments.length;
|
|
98
|
-
l = new Array(i > 2 ? i - 2 : 0);
|
|
99
|
-
for (var o = 2; o < i; o++)
|
|
100
|
-
l[o - 2] = arguments[o];
|
|
101
|
-
if (n === void 0)
|
|
102
|
-
throw new Error(
|
|
103
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
104
|
-
);
|
|
105
|
-
r || a.apply(null, [n].concat(l));
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
return Ze = e, Ze;
|
|
109
|
-
}
|
|
110
|
-
var Us = Fs();
|
|
111
|
-
const ss = /* @__PURE__ */ Ps(Us);
|
|
112
|
-
function Bs(t, e, a) {
|
|
113
|
-
var r = q(t !== void 0), n = A(e), l = n[0], i = n[1], o = t !== void 0, c = r.current;
|
|
76
|
+
function Ls(t, e, a) {
|
|
77
|
+
var r = q(t !== void 0), n = C(e), l = n[0], i = n[1], o = t !== void 0, c = r.current;
|
|
114
78
|
return r.current = o, !o && c && l !== e && i(e), [o ? t : l, z(function(f) {
|
|
115
79
|
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
116
80
|
m[h - 1] = arguments[h];
|
|
117
81
|
a && a.apply(void 0, [f].concat(m)), i(f);
|
|
118
82
|
}, [a])];
|
|
119
83
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
84
|
+
function Ot() {
|
|
85
|
+
return C(null);
|
|
122
86
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
87
|
+
var St = Object.prototype.hasOwnProperty;
|
|
88
|
+
function Dt(t, e, a) {
|
|
125
89
|
for (a of t.keys())
|
|
126
|
-
if (
|
|
90
|
+
if (Ce(a, e)) return a;
|
|
127
91
|
}
|
|
128
|
-
function
|
|
92
|
+
function Ce(t, e) {
|
|
129
93
|
var a, r, n;
|
|
130
94
|
if (t === e) return !0;
|
|
131
95
|
if (t && e && (a = t.constructor) === e.constructor) {
|
|
@@ -133,21 +97,21 @@ function Ae(t, e) {
|
|
|
133
97
|
if (a === RegExp) return t.toString() === e.toString();
|
|
134
98
|
if (a === Array) {
|
|
135
99
|
if ((r = t.length) === e.length)
|
|
136
|
-
for (; r-- &&
|
|
100
|
+
for (; r-- && Ce(t[r], e[r]); ) ;
|
|
137
101
|
return r === -1;
|
|
138
102
|
}
|
|
139
103
|
if (a === Set) {
|
|
140
104
|
if (t.size !== e.size)
|
|
141
105
|
return !1;
|
|
142
106
|
for (r of t)
|
|
143
|
-
if (n = r, n && typeof n == "object" && (n =
|
|
107
|
+
if (n = r, n && typeof n == "object" && (n = Dt(e, n), !n) || !e.has(n)) return !1;
|
|
144
108
|
return !0;
|
|
145
109
|
}
|
|
146
110
|
if (a === Map) {
|
|
147
111
|
if (t.size !== e.size)
|
|
148
112
|
return !1;
|
|
149
113
|
for (r of t)
|
|
150
|
-
if (n = r[0], n && typeof n == "object" && (n =
|
|
114
|
+
if (n = r[0], n && typeof n == "object" && (n = Dt(e, n), !n) || !Ce(r[1], e.get(n)))
|
|
151
115
|
return !1;
|
|
152
116
|
return !0;
|
|
153
117
|
}
|
|
@@ -166,25 +130,25 @@ function Ae(t, e) {
|
|
|
166
130
|
if (!a || typeof t == "object") {
|
|
167
131
|
r = 0;
|
|
168
132
|
for (a in t)
|
|
169
|
-
if (
|
|
133
|
+
if (St.call(t, a) && ++r && !St.call(e, a) || !(a in e) || !Ce(t[a], e[a])) return !1;
|
|
170
134
|
return Object.keys(e).length === r;
|
|
171
135
|
}
|
|
172
136
|
}
|
|
173
137
|
return t !== t && e !== e;
|
|
174
138
|
}
|
|
175
|
-
function
|
|
176
|
-
const e =
|
|
139
|
+
function Ts(t) {
|
|
140
|
+
const e = bs();
|
|
177
141
|
return [t[0], z((a) => {
|
|
178
142
|
if (e())
|
|
179
143
|
return t[1](a);
|
|
180
144
|
}, [e, t[1]])];
|
|
181
145
|
}
|
|
182
|
-
var U = "top", K = "bottom", G = "right", B = "left",
|
|
183
|
-
return t.concat([e + "-" + ye, e + "-" +
|
|
184
|
-
}, []),
|
|
185
|
-
return t.concat([e, e + "-" + ye, e + "-" +
|
|
186
|
-
}, []),
|
|
187
|
-
function
|
|
146
|
+
var U = "top", K = "bottom", G = "right", B = "left", ot = "auto", Fe = [U, K, G, B], ye = "start", Re = "end", Fs = "clippingParents", ts = "viewport", Pe = "popper", Us = "reference", Pt = /* @__PURE__ */ Fe.reduce(function(t, e) {
|
|
147
|
+
return t.concat([e + "-" + ye, e + "-" + Re]);
|
|
148
|
+
}, []), ss = /* @__PURE__ */ [].concat(Fe, [ot]).reduce(function(t, e) {
|
|
149
|
+
return t.concat([e, e + "-" + ye, e + "-" + Re]);
|
|
150
|
+
}, []), Bs = "beforeRead", Is = "read", Vs = "afterRead", Ws = "beforeMain", Hs = "main", zs = "afterMain", Xs = "beforeWrite", Ys = "write", qs = "afterWrite", Ks = [Bs, Is, Vs, Ws, Hs, zs, Xs, Ys, qs];
|
|
151
|
+
function se(t) {
|
|
188
152
|
return t.split("-")[0];
|
|
189
153
|
}
|
|
190
154
|
function W(t) {
|
|
@@ -200,31 +164,31 @@ function xe(t) {
|
|
|
200
164
|
var e = W(t).Element;
|
|
201
165
|
return t instanceof e || t instanceof Element;
|
|
202
166
|
}
|
|
203
|
-
function
|
|
167
|
+
function ae(t) {
|
|
204
168
|
var e = W(t).HTMLElement;
|
|
205
169
|
return t instanceof e || t instanceof HTMLElement;
|
|
206
170
|
}
|
|
207
|
-
function
|
|
171
|
+
function lt(t) {
|
|
208
172
|
if (typeof ShadowRoot > "u")
|
|
209
173
|
return !1;
|
|
210
174
|
var e = W(t).ShadowRoot;
|
|
211
175
|
return t instanceof e || t instanceof ShadowRoot;
|
|
212
176
|
}
|
|
213
177
|
var he = Math.max, He = Math.min, we = Math.round;
|
|
214
|
-
function
|
|
178
|
+
function nt() {
|
|
215
179
|
var t = navigator.userAgentData;
|
|
216
180
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
217
181
|
return e.brand + "/" + e.version;
|
|
218
182
|
}).join(" ") : navigator.userAgent;
|
|
219
183
|
}
|
|
220
|
-
function
|
|
221
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
184
|
+
function as() {
|
|
185
|
+
return !/^((?!chrome|android).)*safari/i.test(nt());
|
|
222
186
|
}
|
|
223
187
|
function Ne(t, e, a) {
|
|
224
188
|
e === void 0 && (e = !1), a === void 0 && (a = !1);
|
|
225
189
|
var r = t.getBoundingClientRect(), n = 1, l = 1;
|
|
226
|
-
e &&
|
|
227
|
-
var i = xe(t) ? W(t) : window, o = i.visualViewport, c = !
|
|
190
|
+
e && ae(t) && (n = t.offsetWidth > 0 && we(r.width) / t.offsetWidth || 1, l = t.offsetHeight > 0 && we(r.height) / t.offsetHeight || 1);
|
|
191
|
+
var i = xe(t) ? W(t) : window, o = i.visualViewport, c = !as() && a, f = (r.left + (c && o ? o.offsetLeft : 0)) / n, u = (r.top + (c && o ? o.offsetTop : 0)) / l, m = r.width / n, h = r.height / l;
|
|
228
192
|
return {
|
|
229
193
|
width: m,
|
|
230
194
|
height: h,
|
|
@@ -236,7 +200,7 @@ function Ne(t, e, a) {
|
|
|
236
200
|
y: u
|
|
237
201
|
};
|
|
238
202
|
}
|
|
239
|
-
function
|
|
203
|
+
function ct(t) {
|
|
240
204
|
var e = Ne(t), a = t.offsetWidth, r = t.offsetHeight;
|
|
241
205
|
return Math.abs(e.width - a) <= 1 && (a = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
242
206
|
x: t.offsetLeft,
|
|
@@ -245,11 +209,11 @@ function dt(t) {
|
|
|
245
209
|
height: r
|
|
246
210
|
};
|
|
247
211
|
}
|
|
248
|
-
function
|
|
212
|
+
function rs(t, e) {
|
|
249
213
|
var a = e.getRootNode && e.getRootNode();
|
|
250
214
|
if (t.contains(e))
|
|
251
215
|
return !0;
|
|
252
|
-
if (a &&
|
|
216
|
+
if (a && lt(a)) {
|
|
253
217
|
var r = e;
|
|
254
218
|
do {
|
|
255
219
|
if (r && t.isSameNode(r))
|
|
@@ -265,7 +229,7 @@ function pe(t) {
|
|
|
265
229
|
function de(t) {
|
|
266
230
|
return W(t).getComputedStyle(t);
|
|
267
231
|
}
|
|
268
|
-
function
|
|
232
|
+
function Gs(t) {
|
|
269
233
|
return ["table", "td", "th"].indexOf(pe(t)) >= 0;
|
|
270
234
|
}
|
|
271
235
|
function me(t) {
|
|
@@ -281,24 +245,24 @@ function ze(t) {
|
|
|
281
245
|
// $FlowFixMe[prop-missing]
|
|
282
246
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
283
247
|
t.parentNode || // DOM Element detected
|
|
284
|
-
(
|
|
248
|
+
(lt(t) ? t.host : null) || // ShadowRoot detected
|
|
285
249
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
286
250
|
me(t)
|
|
287
251
|
);
|
|
288
252
|
}
|
|
289
|
-
function
|
|
290
|
-
return !
|
|
253
|
+
function At(t) {
|
|
254
|
+
return !ae(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
291
255
|
de(t).position === "fixed" ? null : t.offsetParent;
|
|
292
256
|
}
|
|
293
|
-
function
|
|
294
|
-
var e = /firefox/i.test(
|
|
295
|
-
if (a &&
|
|
257
|
+
function Js(t) {
|
|
258
|
+
var e = /firefox/i.test(nt()), a = /Trident/i.test(nt());
|
|
259
|
+
if (a && ae(t)) {
|
|
296
260
|
var r = de(t);
|
|
297
261
|
if (r.position === "fixed")
|
|
298
262
|
return null;
|
|
299
263
|
}
|
|
300
264
|
var n = ze(t);
|
|
301
|
-
for (
|
|
265
|
+
for (lt(n) && (n = n.host); ae(n) && ["html", "body"].indexOf(pe(n)) < 0; ) {
|
|
302
266
|
var l = de(n);
|
|
303
267
|
if (l.transform !== "none" || l.perspective !== "none" || l.contain === "paint" || ["transform", "perspective"].indexOf(l.willChange) !== -1 || e && l.willChange === "filter" || e && l.filter && l.filter !== "none")
|
|
304
268
|
return n;
|
|
@@ -307,21 +271,21 @@ function ta(t) {
|
|
|
307
271
|
return null;
|
|
308
272
|
}
|
|
309
273
|
function Ue(t) {
|
|
310
|
-
for (var e = W(t), a =
|
|
311
|
-
a =
|
|
312
|
-
return a && (pe(a) === "html" || pe(a) === "body" && de(a).position === "static") ? e : a ||
|
|
274
|
+
for (var e = W(t), a = At(t); a && Gs(a) && de(a).position === "static"; )
|
|
275
|
+
a = At(a);
|
|
276
|
+
return a && (pe(a) === "html" || pe(a) === "body" && de(a).position === "static") ? e : a || Js(t) || e;
|
|
313
277
|
}
|
|
314
|
-
function
|
|
278
|
+
function dt(t) {
|
|
315
279
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
316
280
|
}
|
|
317
|
-
function
|
|
281
|
+
function $e(t, e, a) {
|
|
318
282
|
return he(t, He(e, a));
|
|
319
283
|
}
|
|
320
|
-
function
|
|
321
|
-
var r =
|
|
284
|
+
function Qs(t, e, a) {
|
|
285
|
+
var r = $e(t, e, a);
|
|
322
286
|
return r > a ? a : r;
|
|
323
287
|
}
|
|
324
|
-
function
|
|
288
|
+
function ns() {
|
|
325
289
|
return {
|
|
326
290
|
top: 0,
|
|
327
291
|
right: 0,
|
|
@@ -329,56 +293,56 @@ function os() {
|
|
|
329
293
|
left: 0
|
|
330
294
|
};
|
|
331
295
|
}
|
|
332
|
-
function
|
|
333
|
-
return Object.assign({},
|
|
296
|
+
function is(t) {
|
|
297
|
+
return Object.assign({}, ns(), t);
|
|
334
298
|
}
|
|
335
|
-
function
|
|
299
|
+
function os(t, e) {
|
|
336
300
|
return e.reduce(function(a, r) {
|
|
337
301
|
return a[r] = t, a;
|
|
338
302
|
}, {});
|
|
339
303
|
}
|
|
340
|
-
var
|
|
304
|
+
var Zs = function(e, a) {
|
|
341
305
|
return e = typeof e == "function" ? e(Object.assign({}, a.rects, {
|
|
342
306
|
placement: a.placement
|
|
343
|
-
})) : e,
|
|
307
|
+
})) : e, is(typeof e != "number" ? e : os(e, Fe));
|
|
344
308
|
};
|
|
345
|
-
function
|
|
346
|
-
var e, a = t.state, r = t.name, n = t.options, l = a.elements.arrow, i = a.modifiersData.popperOffsets, o =
|
|
309
|
+
function ea(t) {
|
|
310
|
+
var e, a = t.state, r = t.name, n = t.options, l = a.elements.arrow, i = a.modifiersData.popperOffsets, o = se(a.placement), c = dt(o), f = [B, G].indexOf(o) >= 0, u = f ? "height" : "width";
|
|
347
311
|
if (!(!l || !i)) {
|
|
348
|
-
var m =
|
|
349
|
-
a.modifiersData[r] = (e = {}, e[
|
|
312
|
+
var m = Zs(n.padding, a), h = ct(l), d = c === "y" ? U : B, v = c === "y" ? K : G, x = a.rects.reference[u] + a.rects.reference[c] - i[c] - a.rects.popper[u], p = i[c] - a.rects.reference[c], j = Ue(l), g = j ? c === "y" ? j.clientHeight || 0 : j.clientWidth || 0 : 0, N = x / 2 - p / 2, b = m[d], _ = g - h[u] - m[v], w = g / 2 - h[u] / 2 + N, O = $e(b, w, _), E = c;
|
|
313
|
+
a.modifiersData[r] = (e = {}, e[E] = O, e.centerOffset = O - w, e);
|
|
350
314
|
}
|
|
351
315
|
}
|
|
352
|
-
function
|
|
316
|
+
function ta(t) {
|
|
353
317
|
var e = t.state, a = t.options, r = a.element, n = r === void 0 ? "[data-popper-arrow]" : r;
|
|
354
|
-
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) ||
|
|
318
|
+
n != null && (typeof n == "string" && (n = e.elements.popper.querySelector(n), !n) || rs(e.elements.popper, n) && (e.elements.arrow = n));
|
|
355
319
|
}
|
|
356
|
-
const
|
|
320
|
+
const sa = {
|
|
357
321
|
name: "arrow",
|
|
358
322
|
enabled: !0,
|
|
359
323
|
phase: "main",
|
|
360
|
-
fn:
|
|
361
|
-
effect:
|
|
324
|
+
fn: ea,
|
|
325
|
+
effect: ta,
|
|
362
326
|
requires: ["popperOffsets"],
|
|
363
327
|
requiresIfExists: ["preventOverflow"]
|
|
364
328
|
};
|
|
365
329
|
function _e(t) {
|
|
366
330
|
return t.split("-")[1];
|
|
367
331
|
}
|
|
368
|
-
var
|
|
332
|
+
var aa = {
|
|
369
333
|
top: "auto",
|
|
370
334
|
right: "auto",
|
|
371
335
|
bottom: "auto",
|
|
372
336
|
left: "auto"
|
|
373
337
|
};
|
|
374
|
-
function
|
|
338
|
+
function ra(t, e) {
|
|
375
339
|
var a = t.x, r = t.y, n = e.devicePixelRatio || 1;
|
|
376
340
|
return {
|
|
377
341
|
x: we(a * n) / n || 0,
|
|
378
342
|
y: we(r * n) / n || 0
|
|
379
343
|
};
|
|
380
344
|
}
|
|
381
|
-
function
|
|
345
|
+
function Ct(t) {
|
|
382
346
|
var e, a = t.popper, r = t.popperRect, n = t.placement, l = t.variation, i = t.offsets, o = t.position, c = t.gpuAcceleration, f = t.adaptive, u = t.roundOffsets, m = t.isFixed, h = i.x, d = h === void 0 ? 0 : h, v = i.y, x = v === void 0 ? 0 : v, p = typeof u == "function" ? u({
|
|
383
347
|
x: d,
|
|
384
348
|
y: x
|
|
@@ -389,8 +353,8 @@ function $t(t) {
|
|
|
389
353
|
d = p.x, x = p.y;
|
|
390
354
|
var j = i.hasOwnProperty("x"), g = i.hasOwnProperty("y"), N = B, b = U, _ = window;
|
|
391
355
|
if (f) {
|
|
392
|
-
var w = Ue(a), O = "clientHeight",
|
|
393
|
-
if (w === W(a) && (w = me(a), de(w).position !== "static" && o === "absolute" && (O = "scrollHeight",
|
|
356
|
+
var w = Ue(a), O = "clientHeight", E = "clientWidth";
|
|
357
|
+
if (w === W(a) && (w = me(a), de(w).position !== "static" && o === "absolute" && (O = "scrollHeight", E = "scrollWidth")), w = w, n === U || (n === B || n === G) && l === Re) {
|
|
394
358
|
b = K;
|
|
395
359
|
var M = m && w === _ && _.visualViewport ? _.visualViewport.height : (
|
|
396
360
|
// $FlowFixMe[prop-missing]
|
|
@@ -398,45 +362,45 @@ function $t(t) {
|
|
|
398
362
|
);
|
|
399
363
|
x -= M - r.height, x *= c ? 1 : -1;
|
|
400
364
|
}
|
|
401
|
-
if (n === B || (n === U || n === K) && l ===
|
|
365
|
+
if (n === B || (n === U || n === K) && l === Re) {
|
|
402
366
|
N = G;
|
|
403
|
-
var
|
|
367
|
+
var A = m && w === _ && _.visualViewport ? _.visualViewport.width : (
|
|
404
368
|
// $FlowFixMe[prop-missing]
|
|
405
|
-
w[
|
|
369
|
+
w[E]
|
|
406
370
|
);
|
|
407
|
-
d -=
|
|
371
|
+
d -= A - r.width, d *= c ? 1 : -1;
|
|
408
372
|
}
|
|
409
373
|
}
|
|
410
|
-
var
|
|
374
|
+
var $ = Object.assign({
|
|
411
375
|
position: o
|
|
412
|
-
}, f &&
|
|
376
|
+
}, f && aa), R = u === !0 ? ra({
|
|
413
377
|
x: d,
|
|
414
378
|
y: x
|
|
415
379
|
}, W(a)) : {
|
|
416
380
|
x: d,
|
|
417
381
|
y: x
|
|
418
382
|
};
|
|
419
|
-
if (d =
|
|
383
|
+
if (d = R.x, x = R.y, c) {
|
|
420
384
|
var S;
|
|
421
|
-
return Object.assign({},
|
|
385
|
+
return Object.assign({}, $, (S = {}, S[b] = g ? "0" : "", S[N] = j ? "0" : "", S.transform = (_.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + x + "px)" : "translate3d(" + d + "px, " + x + "px, 0)", S));
|
|
422
386
|
}
|
|
423
|
-
return Object.assign({},
|
|
387
|
+
return Object.assign({}, $, (e = {}, e[b] = g ? x + "px" : "", e[N] = j ? d + "px" : "", e.transform = "", e));
|
|
424
388
|
}
|
|
425
|
-
function
|
|
389
|
+
function na(t) {
|
|
426
390
|
var e = t.state, a = t.options, r = a.gpuAcceleration, n = r === void 0 ? !0 : r, l = a.adaptive, i = l === void 0 ? !0 : l, o = a.roundOffsets, c = o === void 0 ? !0 : o, f = {
|
|
427
|
-
placement:
|
|
391
|
+
placement: se(e.placement),
|
|
428
392
|
variation: _e(e.placement),
|
|
429
393
|
popper: e.elements.popper,
|
|
430
394
|
popperRect: e.rects.popper,
|
|
431
395
|
gpuAcceleration: n,
|
|
432
396
|
isFixed: e.options.strategy === "fixed"
|
|
433
397
|
};
|
|
434
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
398
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Ct(Object.assign({}, f, {
|
|
435
399
|
offsets: e.modifiersData.popperOffsets,
|
|
436
400
|
position: e.options.strategy,
|
|
437
401
|
adaptive: i,
|
|
438
402
|
roundOffsets: c
|
|
439
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
403
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Ct(Object.assign({}, f, {
|
|
440
404
|
offsets: e.modifiersData.arrow,
|
|
441
405
|
position: "absolute",
|
|
442
406
|
adaptive: !1,
|
|
@@ -445,17 +409,17 @@ function ca(t) {
|
|
|
445
409
|
"data-popper-placement": e.placement
|
|
446
410
|
});
|
|
447
411
|
}
|
|
448
|
-
const
|
|
412
|
+
const ia = {
|
|
449
413
|
name: "computeStyles",
|
|
450
414
|
enabled: !0,
|
|
451
415
|
phase: "beforeWrite",
|
|
452
|
-
fn:
|
|
416
|
+
fn: na,
|
|
453
417
|
data: {}
|
|
454
418
|
};
|
|
455
419
|
var Ie = {
|
|
456
420
|
passive: !0
|
|
457
421
|
};
|
|
458
|
-
function
|
|
422
|
+
function oa(t) {
|
|
459
423
|
var e = t.state, a = t.instance, r = t.options, n = r.scroll, l = n === void 0 ? !0 : n, i = r.resize, o = i === void 0 ? !0 : i, c = W(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
460
424
|
return l && f.forEach(function(u) {
|
|
461
425
|
u.addEventListener("scroll", a.update, Ie);
|
|
@@ -465,16 +429,16 @@ function ua(t) {
|
|
|
465
429
|
}), o && c.removeEventListener("resize", a.update, Ie);
|
|
466
430
|
};
|
|
467
431
|
}
|
|
468
|
-
const
|
|
432
|
+
const la = {
|
|
469
433
|
name: "eventListeners",
|
|
470
434
|
enabled: !0,
|
|
471
435
|
phase: "write",
|
|
472
436
|
fn: function() {
|
|
473
437
|
},
|
|
474
|
-
effect:
|
|
438
|
+
effect: oa,
|
|
475
439
|
data: {}
|
|
476
440
|
};
|
|
477
|
-
var
|
|
441
|
+
var ca = {
|
|
478
442
|
left: "right",
|
|
479
443
|
right: "left",
|
|
480
444
|
bottom: "top",
|
|
@@ -482,44 +446,44 @@ var pa = {
|
|
|
482
446
|
};
|
|
483
447
|
function Ve(t) {
|
|
484
448
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
485
|
-
return
|
|
449
|
+
return ca[e];
|
|
486
450
|
});
|
|
487
451
|
}
|
|
488
|
-
var
|
|
452
|
+
var da = {
|
|
489
453
|
start: "end",
|
|
490
454
|
end: "start"
|
|
491
455
|
};
|
|
492
|
-
function
|
|
456
|
+
function $t(t) {
|
|
493
457
|
return t.replace(/start|end/g, function(e) {
|
|
494
|
-
return
|
|
458
|
+
return da[e];
|
|
495
459
|
});
|
|
496
460
|
}
|
|
497
|
-
function
|
|
461
|
+
function ut(t) {
|
|
498
462
|
var e = W(t), a = e.pageXOffset, r = e.pageYOffset;
|
|
499
463
|
return {
|
|
500
464
|
scrollLeft: a,
|
|
501
465
|
scrollTop: r
|
|
502
466
|
};
|
|
503
467
|
}
|
|
504
|
-
function
|
|
505
|
-
return Ne(me(t)).left +
|
|
468
|
+
function ft(t) {
|
|
469
|
+
return Ne(me(t)).left + ut(t).scrollLeft;
|
|
506
470
|
}
|
|
507
|
-
function
|
|
471
|
+
function ua(t, e) {
|
|
508
472
|
var a = W(t), r = me(t), n = a.visualViewport, l = r.clientWidth, i = r.clientHeight, o = 0, c = 0;
|
|
509
473
|
if (n) {
|
|
510
474
|
l = n.width, i = n.height;
|
|
511
|
-
var f =
|
|
475
|
+
var f = as();
|
|
512
476
|
(f || !f && e === "fixed") && (o = n.offsetLeft, c = n.offsetTop);
|
|
513
477
|
}
|
|
514
478
|
return {
|
|
515
479
|
width: l,
|
|
516
480
|
height: i,
|
|
517
|
-
x: o +
|
|
481
|
+
x: o + ft(t),
|
|
518
482
|
y: c
|
|
519
483
|
};
|
|
520
484
|
}
|
|
521
|
-
function
|
|
522
|
-
var e, a = me(t), r =
|
|
485
|
+
function fa(t) {
|
|
486
|
+
var e, a = me(t), r = ut(t), n = (e = t.ownerDocument) == null ? void 0 : e.body, l = he(a.scrollWidth, a.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), i = he(a.scrollHeight, a.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), o = -r.scrollLeft + ft(t), c = -r.scrollTop;
|
|
523
487
|
return de(n || a).direction === "rtl" && (o += he(a.clientWidth, n ? n.clientWidth : 0) - l), {
|
|
524
488
|
width: l,
|
|
525
489
|
height: i,
|
|
@@ -527,23 +491,23 @@ function va(t) {
|
|
|
527
491
|
y: c
|
|
528
492
|
};
|
|
529
493
|
}
|
|
530
|
-
function
|
|
494
|
+
function pt(t) {
|
|
531
495
|
var e = de(t), a = e.overflow, r = e.overflowX, n = e.overflowY;
|
|
532
496
|
return /auto|scroll|overlay|hidden/.test(a + n + r);
|
|
533
497
|
}
|
|
534
|
-
function
|
|
535
|
-
return ["html", "body", "#document"].indexOf(pe(t)) >= 0 ? t.ownerDocument.body :
|
|
498
|
+
function ls(t) {
|
|
499
|
+
return ["html", "body", "#document"].indexOf(pe(t)) >= 0 ? t.ownerDocument.body : ae(t) && pt(t) ? t : ls(ze(t));
|
|
536
500
|
}
|
|
537
|
-
function
|
|
501
|
+
function Ee(t, e) {
|
|
538
502
|
var a;
|
|
539
503
|
e === void 0 && (e = []);
|
|
540
|
-
var r =
|
|
504
|
+
var r = ls(t), n = r === ((a = t.ownerDocument) == null ? void 0 : a.body), l = W(r), i = n ? [l].concat(l.visualViewport || [], pt(r) ? r : []) : r, o = e.concat(i);
|
|
541
505
|
return n ? o : (
|
|
542
506
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
543
|
-
o.concat(
|
|
507
|
+
o.concat(Ee(ze(i)))
|
|
544
508
|
);
|
|
545
509
|
}
|
|
546
|
-
function
|
|
510
|
+
function it(t) {
|
|
547
511
|
return Object.assign({}, t, {
|
|
548
512
|
left: t.x,
|
|
549
513
|
top: t.y,
|
|
@@ -551,28 +515,28 @@ function ot(t) {
|
|
|
551
515
|
bottom: t.y + t.height
|
|
552
516
|
});
|
|
553
517
|
}
|
|
554
|
-
function
|
|
518
|
+
function pa(t, e) {
|
|
555
519
|
var a = Ne(t, !1, e === "fixed");
|
|
556
520
|
return a.top = a.top + t.clientTop, a.left = a.left + t.clientLeft, a.bottom = a.top + t.clientHeight, a.right = a.left + t.clientWidth, a.width = t.clientWidth, a.height = t.clientHeight, a.x = a.left, a.y = a.top, a;
|
|
557
521
|
}
|
|
558
|
-
function
|
|
559
|
-
return e ===
|
|
522
|
+
function Et(t, e, a) {
|
|
523
|
+
return e === ts ? it(ua(t, a)) : xe(e) ? pa(e, a) : it(fa(me(t)));
|
|
560
524
|
}
|
|
561
|
-
function
|
|
562
|
-
var e =
|
|
525
|
+
function ma(t) {
|
|
526
|
+
var e = Ee(ze(t)), a = ["absolute", "fixed"].indexOf(de(t).position) >= 0, r = a && ae(t) ? Ue(t) : t;
|
|
563
527
|
return xe(r) ? e.filter(function(n) {
|
|
564
|
-
return xe(n) &&
|
|
528
|
+
return xe(n) && rs(n, r) && pe(n) !== "body";
|
|
565
529
|
}) : [];
|
|
566
530
|
}
|
|
567
|
-
function
|
|
568
|
-
var n = e === "clippingParents" ?
|
|
569
|
-
var u =
|
|
531
|
+
function ha(t, e, a, r) {
|
|
532
|
+
var n = e === "clippingParents" ? ma(t) : [].concat(e), l = [].concat(n, [a]), i = l[0], o = l.reduce(function(c, f) {
|
|
533
|
+
var u = Et(t, f, r);
|
|
570
534
|
return c.top = he(u.top, c.top), c.right = He(u.right, c.right), c.bottom = He(u.bottom, c.bottom), c.left = he(u.left, c.left), c;
|
|
571
|
-
},
|
|
535
|
+
}, Et(t, i, r));
|
|
572
536
|
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
573
537
|
}
|
|
574
|
-
function
|
|
575
|
-
var e = t.reference, a = t.element, r = t.placement, n = r ?
|
|
538
|
+
function cs(t) {
|
|
539
|
+
var e = t.reference, a = t.element, r = t.placement, n = r ? se(r) : null, l = r ? _e(r) : null, i = e.x + e.width / 2 - a.width / 2, o = e.y + e.height / 2 - a.height / 2, c;
|
|
576
540
|
switch (n) {
|
|
577
541
|
case U:
|
|
578
542
|
c = {
|
|
@@ -604,14 +568,14 @@ function us(t) {
|
|
|
604
568
|
y: e.y
|
|
605
569
|
};
|
|
606
570
|
}
|
|
607
|
-
var f = n ?
|
|
571
|
+
var f = n ? dt(n) : null;
|
|
608
572
|
if (f != null) {
|
|
609
573
|
var u = f === "y" ? "height" : "width";
|
|
610
574
|
switch (l) {
|
|
611
575
|
case ye:
|
|
612
576
|
c[f] = c[f] - (e[u] / 2 - a[u] / 2);
|
|
613
577
|
break;
|
|
614
|
-
case
|
|
578
|
+
case Re:
|
|
615
579
|
c[f] = c[f] + (e[u] / 2 - a[u] / 2);
|
|
616
580
|
break;
|
|
617
581
|
}
|
|
@@ -620,28 +584,28 @@ function us(t) {
|
|
|
620
584
|
}
|
|
621
585
|
function Le(t, e) {
|
|
622
586
|
e === void 0 && (e = {});
|
|
623
|
-
var a = e, r = a.placement, n = r === void 0 ? t.placement : r, l = a.strategy, i = l === void 0 ? t.strategy : l, o = a.boundary, c = o === void 0 ?
|
|
587
|
+
var a = e, r = a.placement, n = r === void 0 ? t.placement : r, l = a.strategy, i = l === void 0 ? t.strategy : l, o = a.boundary, c = o === void 0 ? Fs : o, f = a.rootBoundary, u = f === void 0 ? ts : f, m = a.elementContext, h = m === void 0 ? Pe : m, d = a.altBoundary, v = d === void 0 ? !1 : d, x = a.padding, p = x === void 0 ? 0 : x, j = is(typeof p != "number" ? p : os(p, Fe)), g = h === Pe ? Us : Pe, N = t.rects.popper, b = t.elements[v ? g : h], _ = ha(xe(b) ? b : b.contextElement || me(t.elements.popper), c, u, i), w = Ne(t.elements.reference), O = cs({
|
|
624
588
|
reference: w,
|
|
625
589
|
element: N,
|
|
626
590
|
placement: n
|
|
627
|
-
}),
|
|
591
|
+
}), E = it(Object.assign({}, N, O)), M = h === Pe ? E : w, A = {
|
|
628
592
|
top: _.top - M.top + j.top,
|
|
629
593
|
bottom: M.bottom - _.bottom + j.bottom,
|
|
630
594
|
left: _.left - M.left + j.left,
|
|
631
595
|
right: M.right - _.right + j.right
|
|
632
|
-
},
|
|
633
|
-
if (h === Pe &&
|
|
634
|
-
var
|
|
635
|
-
Object.keys(
|
|
636
|
-
var L = [G, K].indexOf(S) >= 0 ? 1 : -1,
|
|
637
|
-
|
|
596
|
+
}, $ = t.modifiersData.offset;
|
|
597
|
+
if (h === Pe && $) {
|
|
598
|
+
var R = $[n];
|
|
599
|
+
Object.keys(A).forEach(function(S) {
|
|
600
|
+
var L = [G, K].indexOf(S) >= 0 ? 1 : -1, k = [U, K].indexOf(S) >= 0 ? "y" : "x";
|
|
601
|
+
A[S] += R[k] * L;
|
|
638
602
|
});
|
|
639
603
|
}
|
|
640
|
-
return
|
|
604
|
+
return A;
|
|
641
605
|
}
|
|
642
|
-
function
|
|
606
|
+
function va(t, e) {
|
|
643
607
|
e === void 0 && (e = {});
|
|
644
|
-
var a = e, r = a.placement, n = a.boundary, l = a.rootBoundary, i = a.padding, o = a.flipVariations, c = a.allowedAutoPlacements, f = c === void 0 ?
|
|
608
|
+
var a = e, r = a.placement, n = a.boundary, l = a.rootBoundary, i = a.padding, o = a.flipVariations, c = a.allowedAutoPlacements, f = c === void 0 ? ss : c, u = _e(r), m = u ? o ? Pt : Pt.filter(function(v) {
|
|
645
609
|
return _e(v) === u;
|
|
646
610
|
}) : Fe, h = m.filter(function(v) {
|
|
647
611
|
return f.indexOf(v) >= 0;
|
|
@@ -653,77 +617,77 @@ function ja(t, e) {
|
|
|
653
617
|
boundary: n,
|
|
654
618
|
rootBoundary: l,
|
|
655
619
|
padding: i
|
|
656
|
-
})[
|
|
620
|
+
})[se(x)], v;
|
|
657
621
|
}, {});
|
|
658
622
|
return Object.keys(d).sort(function(v, x) {
|
|
659
623
|
return d[v] - d[x];
|
|
660
624
|
});
|
|
661
625
|
}
|
|
662
|
-
function
|
|
663
|
-
if (
|
|
626
|
+
function xa(t) {
|
|
627
|
+
if (se(t) === ot)
|
|
664
628
|
return [];
|
|
665
629
|
var e = Ve(t);
|
|
666
|
-
return [
|
|
630
|
+
return [$t(t), e, $t(e)];
|
|
667
631
|
}
|
|
668
|
-
function
|
|
632
|
+
function ga(t) {
|
|
669
633
|
var e = t.state, a = t.options, r = t.name;
|
|
670
634
|
if (!e.modifiersData[r]._skip) {
|
|
671
|
-
for (var n = a.mainAxis, l = n === void 0 ? !0 : n, i = a.altAxis, o = i === void 0 ? !0 : i, c = a.fallbackPlacements, f = a.padding, u = a.boundary, m = a.rootBoundary, h = a.altBoundary, d = a.flipVariations, v = d === void 0 ? !0 : d, x = a.allowedAutoPlacements, p = e.options.placement, j =
|
|
672
|
-
return H.concat(
|
|
673
|
-
placement:
|
|
635
|
+
for (var n = a.mainAxis, l = n === void 0 ? !0 : n, i = a.altAxis, o = i === void 0 ? !0 : i, c = a.fallbackPlacements, f = a.padding, u = a.boundary, m = a.rootBoundary, h = a.altBoundary, d = a.flipVariations, v = d === void 0 ? !0 : d, x = a.allowedAutoPlacements, p = e.options.placement, j = se(p), g = j === p, N = c || (g || !v ? [Ve(p)] : xa(p)), b = [p].concat(N).reduce(function(H, ee) {
|
|
636
|
+
return H.concat(se(ee) === ot ? va(e, {
|
|
637
|
+
placement: ee,
|
|
674
638
|
boundary: u,
|
|
675
639
|
rootBoundary: m,
|
|
676
640
|
padding: f,
|
|
677
641
|
flipVariations: v,
|
|
678
642
|
allowedAutoPlacements: x
|
|
679
|
-
}) :
|
|
680
|
-
}, []), _ = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(),
|
|
681
|
-
var
|
|
682
|
-
placement:
|
|
643
|
+
}) : ee);
|
|
644
|
+
}, []), _ = e.rects.reference, w = e.rects.popper, O = /* @__PURE__ */ new Map(), E = !0, M = b[0], A = 0; A < b.length; A++) {
|
|
645
|
+
var $ = b[A], R = se($), S = _e($) === ye, L = [U, K].indexOf(R) >= 0, k = L ? "width" : "height", F = Le(e, {
|
|
646
|
+
placement: $,
|
|
683
647
|
boundary: u,
|
|
684
648
|
rootBoundary: m,
|
|
685
649
|
altBoundary: h,
|
|
686
650
|
padding: f
|
|
687
651
|
}), I = L ? S ? G : B : S ? K : U;
|
|
688
|
-
_[
|
|
689
|
-
var fe = Ve(I),
|
|
690
|
-
if (l &&
|
|
652
|
+
_[k] > w[k] && (I = Ve(I));
|
|
653
|
+
var fe = Ve(I), ne = [];
|
|
654
|
+
if (l && ne.push(F[R] <= 0), o && ne.push(F[I] <= 0, F[fe] <= 0), ne.every(function(H) {
|
|
691
655
|
return H;
|
|
692
656
|
})) {
|
|
693
|
-
M =
|
|
657
|
+
M = $, E = !1;
|
|
694
658
|
break;
|
|
695
659
|
}
|
|
696
|
-
O.set(
|
|
660
|
+
O.set($, ne);
|
|
697
661
|
}
|
|
698
|
-
if (
|
|
699
|
-
for (var
|
|
700
|
-
var
|
|
662
|
+
if (E)
|
|
663
|
+
for (var ie = v ? 3 : 1, Oe = function(ee) {
|
|
664
|
+
var oe = b.find(function(be) {
|
|
701
665
|
var J = O.get(be);
|
|
702
666
|
if (J)
|
|
703
|
-
return J.slice(0,
|
|
667
|
+
return J.slice(0, ee).every(function(Se) {
|
|
704
668
|
return Se;
|
|
705
669
|
});
|
|
706
670
|
});
|
|
707
|
-
if (
|
|
708
|
-
return M =
|
|
709
|
-
}, D =
|
|
671
|
+
if (oe)
|
|
672
|
+
return M = oe, "break";
|
|
673
|
+
}, D = ie; D > 0; D--) {
|
|
710
674
|
var ge = Oe(D);
|
|
711
675
|
if (ge === "break") break;
|
|
712
676
|
}
|
|
713
677
|
e.placement !== M && (e.modifiersData[r]._skip = !0, e.placement = M, e.reset = !0);
|
|
714
678
|
}
|
|
715
679
|
}
|
|
716
|
-
const
|
|
680
|
+
const ba = {
|
|
717
681
|
name: "flip",
|
|
718
682
|
enabled: !0,
|
|
719
683
|
phase: "main",
|
|
720
|
-
fn:
|
|
684
|
+
fn: ga,
|
|
721
685
|
requiresIfExists: ["offset"],
|
|
722
686
|
data: {
|
|
723
687
|
_skip: !1
|
|
724
688
|
}
|
|
725
689
|
};
|
|
726
|
-
function
|
|
690
|
+
function Mt(t, e, a) {
|
|
727
691
|
return a === void 0 && (a = {
|
|
728
692
|
x: 0,
|
|
729
693
|
y: 0
|
|
@@ -734,17 +698,17 @@ function kt(t, e, a) {
|
|
|
734
698
|
left: t.left - e.width - a.x
|
|
735
699
|
};
|
|
736
700
|
}
|
|
737
|
-
function
|
|
701
|
+
function kt(t) {
|
|
738
702
|
return [U, G, K, B].some(function(e) {
|
|
739
703
|
return t[e] >= 0;
|
|
740
704
|
});
|
|
741
705
|
}
|
|
742
|
-
function
|
|
706
|
+
function ja(t) {
|
|
743
707
|
var e = t.state, a = t.name, r = e.rects.reference, n = e.rects.popper, l = e.modifiersData.preventOverflow, i = Le(e, {
|
|
744
708
|
elementContext: "reference"
|
|
745
709
|
}), o = Le(e, {
|
|
746
710
|
altBoundary: !0
|
|
747
|
-
}), c =
|
|
711
|
+
}), c = Mt(i, r), f = Mt(o, n, l), u = kt(c), m = kt(f);
|
|
748
712
|
e.modifiersData[a] = {
|
|
749
713
|
referenceClippingOffsets: c,
|
|
750
714
|
popperEscapeOffsets: f,
|
|
@@ -755,15 +719,15 @@ function _a(t) {
|
|
|
755
719
|
"data-popper-escaped": m
|
|
756
720
|
});
|
|
757
721
|
}
|
|
758
|
-
const
|
|
722
|
+
const ya = {
|
|
759
723
|
name: "hide",
|
|
760
724
|
enabled: !0,
|
|
761
725
|
phase: "main",
|
|
762
726
|
requiresIfExists: ["preventOverflow"],
|
|
763
|
-
fn:
|
|
727
|
+
fn: ja
|
|
764
728
|
};
|
|
765
|
-
function
|
|
766
|
-
var r =
|
|
729
|
+
function wa(t, e, a) {
|
|
730
|
+
var r = se(t), n = [B, U].indexOf(r) >= 0 ? -1 : 1, l = typeof a == "function" ? a(Object.assign({}, e, {
|
|
767
731
|
placement: t
|
|
768
732
|
})) : a, i = l[0], o = l[1];
|
|
769
733
|
return i = i || 0, o = (o || 0) * n, [B, G].indexOf(r) >= 0 ? {
|
|
@@ -774,93 +738,93 @@ function Sa(t, e, a) {
|
|
|
774
738
|
y: o
|
|
775
739
|
};
|
|
776
740
|
}
|
|
777
|
-
function
|
|
778
|
-
var e = t.state, a = t.options, r = t.name, n = a.offset, l = n === void 0 ? [0, 0] : n, i =
|
|
779
|
-
return u[m] =
|
|
741
|
+
function Na(t) {
|
|
742
|
+
var e = t.state, a = t.options, r = t.name, n = a.offset, l = n === void 0 ? [0, 0] : n, i = ss.reduce(function(u, m) {
|
|
743
|
+
return u[m] = wa(m, e.rects, l), u;
|
|
780
744
|
}, {}), o = i[e.placement], c = o.x, f = o.y;
|
|
781
745
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += f), e.modifiersData[r] = i;
|
|
782
746
|
}
|
|
783
|
-
const
|
|
747
|
+
const _a = {
|
|
784
748
|
name: "offset",
|
|
785
749
|
enabled: !0,
|
|
786
750
|
phase: "main",
|
|
787
751
|
requires: ["popperOffsets"],
|
|
788
|
-
fn:
|
|
752
|
+
fn: Na
|
|
789
753
|
};
|
|
790
|
-
function
|
|
754
|
+
function Oa(t) {
|
|
791
755
|
var e = t.state, a = t.name;
|
|
792
|
-
e.modifiersData[a] =
|
|
756
|
+
e.modifiersData[a] = cs({
|
|
793
757
|
reference: e.rects.reference,
|
|
794
758
|
element: e.rects.popper,
|
|
795
759
|
placement: e.placement
|
|
796
760
|
});
|
|
797
761
|
}
|
|
798
|
-
const
|
|
762
|
+
const Sa = {
|
|
799
763
|
name: "popperOffsets",
|
|
800
764
|
enabled: !0,
|
|
801
765
|
phase: "read",
|
|
802
|
-
fn:
|
|
766
|
+
fn: Oa,
|
|
803
767
|
data: {}
|
|
804
768
|
};
|
|
805
|
-
function
|
|
769
|
+
function Da(t) {
|
|
806
770
|
return t === "x" ? "y" : "x";
|
|
807
771
|
}
|
|
808
|
-
function
|
|
772
|
+
function Pa(t) {
|
|
809
773
|
var e = t.state, a = t.options, r = t.name, n = a.mainAxis, l = n === void 0 ? !0 : n, i = a.altAxis, o = i === void 0 ? !1 : i, c = a.boundary, f = a.rootBoundary, u = a.altBoundary, m = a.padding, h = a.tether, d = h === void 0 ? !0 : h, v = a.tetherOffset, x = v === void 0 ? 0 : v, p = Le(e, {
|
|
810
774
|
boundary: c,
|
|
811
775
|
rootBoundary: f,
|
|
812
776
|
padding: m,
|
|
813
777
|
altBoundary: u
|
|
814
|
-
}), j =
|
|
778
|
+
}), j = se(e.placement), g = _e(e.placement), N = !g, b = dt(j), _ = Da(b), w = e.modifiersData.popperOffsets, O = e.rects.reference, E = e.rects.popper, M = typeof x == "function" ? x(Object.assign({}, e.rects, {
|
|
815
779
|
placement: e.placement
|
|
816
|
-
})) : x,
|
|
780
|
+
})) : x, A = typeof M == "number" ? {
|
|
817
781
|
mainAxis: M,
|
|
818
782
|
altAxis: M
|
|
819
783
|
} : Object.assign({
|
|
820
784
|
mainAxis: 0,
|
|
821
785
|
altAxis: 0
|
|
822
|
-
}, M),
|
|
786
|
+
}, M), $ = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
|
|
823
787
|
x: 0,
|
|
824
788
|
y: 0
|
|
825
789
|
};
|
|
826
790
|
if (w) {
|
|
827
791
|
if (l) {
|
|
828
|
-
var S, L = b === "y" ? U : B,
|
|
792
|
+
var S, L = b === "y" ? U : B, k = b === "y" ? K : G, F = b === "y" ? "height" : "width", I = w[b], fe = I + p[L], ne = I - p[k], ie = d ? -E[F] / 2 : 0, Oe = g === ye ? O[F] : E[F], D = g === ye ? -E[F] : -O[F], ge = e.elements.arrow, H = d && ge ? ct(ge) : {
|
|
829
793
|
width: 0,
|
|
830
794
|
height: 0
|
|
831
|
-
},
|
|
832
|
-
w[b] = Ye,
|
|
795
|
+
}, ee = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ns(), oe = ee[L], be = ee[k], J = $e(0, O[F], H[F]), Se = N ? O[F] / 2 - ie - J - oe - A.mainAxis : Oe - J - oe - A.mainAxis, Xe = N ? -O[F] / 2 + ie + J + be + A.mainAxis : D + J + be + A.mainAxis, T = e.elements.arrow && Ue(e.elements.arrow), je = T ? b === "y" ? T.clientTop || 0 : T.clientLeft || 0 : 0, De = (S = $?.[b]) != null ? S : 0, ht = I + Se - De - je, vt = I + Xe - De, Ye = $e(d ? He(fe, ht) : fe, I, d ? he(ne, vt) : ne);
|
|
796
|
+
w[b] = Ye, R[b] = Ye - I;
|
|
833
797
|
}
|
|
834
798
|
if (o) {
|
|
835
|
-
var qe, Ke = b === "x" ? U : B, Ge = b === "x" ? K : G,
|
|
836
|
-
w[_] =
|
|
799
|
+
var qe, Ke = b === "x" ? U : B, Ge = b === "x" ? K : G, te = w[_], y = _ === "y" ? "height" : "width", V = te + p[Ke], xt = te - p[Ge], Je = [U, B].indexOf(j) !== -1, gt = (qe = $?.[_]) != null ? qe : 0, bt = Je ? V : te - O[y] - E[y] - gt + A.altAxis, jt = Je ? te + O[y] + E[y] - gt - A.altAxis : xt, yt = d && Je ? Qs(bt, te, jt) : $e(d ? bt : V, te, d ? jt : xt);
|
|
800
|
+
w[_] = yt, R[_] = yt - te;
|
|
837
801
|
}
|
|
838
|
-
e.modifiersData[r] =
|
|
802
|
+
e.modifiersData[r] = R;
|
|
839
803
|
}
|
|
840
804
|
}
|
|
841
|
-
const
|
|
805
|
+
const Aa = {
|
|
842
806
|
name: "preventOverflow",
|
|
843
807
|
enabled: !0,
|
|
844
808
|
phase: "main",
|
|
845
|
-
fn:
|
|
809
|
+
fn: Pa,
|
|
846
810
|
requiresIfExists: ["offset"]
|
|
847
811
|
};
|
|
848
|
-
function
|
|
812
|
+
function Ca(t) {
|
|
849
813
|
return {
|
|
850
814
|
scrollLeft: t.scrollLeft,
|
|
851
815
|
scrollTop: t.scrollTop
|
|
852
816
|
};
|
|
853
817
|
}
|
|
854
|
-
function
|
|
855
|
-
return t === W(t) || !
|
|
818
|
+
function $a(t) {
|
|
819
|
+
return t === W(t) || !ae(t) ? ut(t) : Ca(t);
|
|
856
820
|
}
|
|
857
|
-
function
|
|
821
|
+
function Ea(t) {
|
|
858
822
|
var e = t.getBoundingClientRect(), a = we(e.width) / t.offsetWidth || 1, r = we(e.height) / t.offsetHeight || 1;
|
|
859
823
|
return a !== 1 || r !== 1;
|
|
860
824
|
}
|
|
861
|
-
function
|
|
825
|
+
function Ma(t, e, a) {
|
|
862
826
|
a === void 0 && (a = !1);
|
|
863
|
-
var r =
|
|
827
|
+
var r = ae(e), n = ae(e) && Ea(e), l = me(e), i = Ne(t, n, a), o = {
|
|
864
828
|
scrollLeft: 0,
|
|
865
829
|
scrollTop: 0
|
|
866
830
|
}, c = {
|
|
@@ -868,14 +832,14 @@ function Ta(t, e, a) {
|
|
|
868
832
|
y: 0
|
|
869
833
|
};
|
|
870
834
|
return (r || !r && !a) && ((pe(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
871
|
-
|
|
835
|
+
pt(l)) && (o = $a(e)), ae(e) ? (c = Ne(e, !0), c.x += e.clientLeft, c.y += e.clientTop) : l && (c.x = ft(l))), {
|
|
872
836
|
x: i.left + o.scrollLeft - c.x,
|
|
873
837
|
y: i.top + o.scrollTop - c.y,
|
|
874
838
|
width: i.width,
|
|
875
839
|
height: i.height
|
|
876
840
|
};
|
|
877
841
|
}
|
|
878
|
-
function
|
|
842
|
+
function ka(t) {
|
|
879
843
|
var e = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), r = [];
|
|
880
844
|
t.forEach(function(l) {
|
|
881
845
|
e.set(l.name, l);
|
|
@@ -894,15 +858,15 @@ function Fa(t) {
|
|
|
894
858
|
a.has(l.name) || n(l);
|
|
895
859
|
}), r;
|
|
896
860
|
}
|
|
897
|
-
function
|
|
898
|
-
var e =
|
|
899
|
-
return
|
|
861
|
+
function Ra(t) {
|
|
862
|
+
var e = ka(t);
|
|
863
|
+
return Ks.reduce(function(a, r) {
|
|
900
864
|
return a.concat(e.filter(function(n) {
|
|
901
865
|
return n.phase === r;
|
|
902
866
|
}));
|
|
903
867
|
}, []);
|
|
904
868
|
}
|
|
905
|
-
function
|
|
869
|
+
function La(t) {
|
|
906
870
|
var e;
|
|
907
871
|
return function() {
|
|
908
872
|
return e || (e = new Promise(function(a) {
|
|
@@ -912,7 +876,7 @@ function Ba(t) {
|
|
|
912
876
|
})), e;
|
|
913
877
|
};
|
|
914
878
|
}
|
|
915
|
-
function
|
|
879
|
+
function Ta(t) {
|
|
916
880
|
var e = t.reduce(function(a, r) {
|
|
917
881
|
var n = a[r.name];
|
|
918
882
|
return a[r.name] = n ? Object.assign({}, n, r, {
|
|
@@ -924,27 +888,27 @@ function Ia(t) {
|
|
|
924
888
|
return e[a];
|
|
925
889
|
});
|
|
926
890
|
}
|
|
927
|
-
var
|
|
891
|
+
var Rt = {
|
|
928
892
|
placement: "bottom",
|
|
929
893
|
modifiers: [],
|
|
930
894
|
strategy: "absolute"
|
|
931
895
|
};
|
|
932
|
-
function
|
|
896
|
+
function Lt() {
|
|
933
897
|
for (var t = arguments.length, e = new Array(t), a = 0; a < t; a++)
|
|
934
898
|
e[a] = arguments[a];
|
|
935
899
|
return !e.some(function(r) {
|
|
936
900
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
937
901
|
});
|
|
938
902
|
}
|
|
939
|
-
function
|
|
903
|
+
function Fa(t) {
|
|
940
904
|
t === void 0 && (t = {});
|
|
941
|
-
var e = t, a = e.defaultModifiers, r = a === void 0 ? [] : a, n = e.defaultOptions, l = n === void 0 ?
|
|
905
|
+
var e = t, a = e.defaultModifiers, r = a === void 0 ? [] : a, n = e.defaultOptions, l = n === void 0 ? Rt : n;
|
|
942
906
|
return function(o, c, f) {
|
|
943
907
|
f === void 0 && (f = l);
|
|
944
908
|
var u = {
|
|
945
909
|
placement: "bottom",
|
|
946
910
|
orderedModifiers: [],
|
|
947
|
-
options: Object.assign({},
|
|
911
|
+
options: Object.assign({}, Rt, l),
|
|
948
912
|
modifiersData: {},
|
|
949
913
|
elements: {
|
|
950
914
|
reference: o,
|
|
@@ -957,10 +921,10 @@ function Va(t) {
|
|
|
957
921
|
setOptions: function(j) {
|
|
958
922
|
var g = typeof j == "function" ? j(u.options) : j;
|
|
959
923
|
x(), u.options = Object.assign({}, l, u.options, g), u.scrollParents = {
|
|
960
|
-
reference: xe(o) ?
|
|
961
|
-
popper:
|
|
924
|
+
reference: xe(o) ? Ee(o) : o.contextElement ? Ee(o.contextElement) : [],
|
|
925
|
+
popper: Ee(c)
|
|
962
926
|
};
|
|
963
|
-
var N =
|
|
927
|
+
var N = Ra(Ta([].concat(r, u.options.modifiers)));
|
|
964
928
|
return u.orderedModifiers = N.filter(function(b) {
|
|
965
929
|
return b.enabled;
|
|
966
930
|
}), v(), d.update();
|
|
@@ -973,22 +937,22 @@ function Va(t) {
|
|
|
973
937
|
forceUpdate: function() {
|
|
974
938
|
if (!h) {
|
|
975
939
|
var j = u.elements, g = j.reference, N = j.popper;
|
|
976
|
-
if (
|
|
940
|
+
if (Lt(g, N)) {
|
|
977
941
|
u.rects = {
|
|
978
|
-
reference:
|
|
979
|
-
popper:
|
|
980
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
981
|
-
return u.modifiersData[
|
|
942
|
+
reference: Ma(g, Ue(N), u.options.strategy === "fixed"),
|
|
943
|
+
popper: ct(N)
|
|
944
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(A) {
|
|
945
|
+
return u.modifiersData[A.name] = Object.assign({}, A.data);
|
|
982
946
|
});
|
|
983
947
|
for (var b = 0; b < u.orderedModifiers.length; b++) {
|
|
984
948
|
if (u.reset === !0) {
|
|
985
949
|
u.reset = !1, b = -1;
|
|
986
950
|
continue;
|
|
987
951
|
}
|
|
988
|
-
var _ = u.orderedModifiers[b], w = _.fn, O = _.options,
|
|
952
|
+
var _ = u.orderedModifiers[b], w = _.fn, O = _.options, E = O === void 0 ? {} : O, M = _.name;
|
|
989
953
|
typeof w == "function" && (u = w({
|
|
990
954
|
state: u,
|
|
991
|
-
options:
|
|
955
|
+
options: E,
|
|
992
956
|
name: M,
|
|
993
957
|
instance: d
|
|
994
958
|
}) || u);
|
|
@@ -998,7 +962,7 @@ function Va(t) {
|
|
|
998
962
|
},
|
|
999
963
|
// Async and optimistically optimized update – it will not be executed if
|
|
1000
964
|
// not necessary (debounced to run at most once-per-tick)
|
|
1001
|
-
update:
|
|
965
|
+
update: La(function() {
|
|
1002
966
|
return new Promise(function(p) {
|
|
1003
967
|
d.forceUpdate(), p(u);
|
|
1004
968
|
});
|
|
@@ -1007,7 +971,7 @@ function Va(t) {
|
|
|
1007
971
|
x(), h = !0;
|
|
1008
972
|
}
|
|
1009
973
|
};
|
|
1010
|
-
if (!
|
|
974
|
+
if (!Lt(o, c))
|
|
1011
975
|
return d;
|
|
1012
976
|
d.setOptions(f).then(function(p) {
|
|
1013
977
|
!h && f.onFirstUpdate && f.onFirstUpdate(p);
|
|
@@ -1035,10 +999,10 @@ function Va(t) {
|
|
|
1035
999
|
return d;
|
|
1036
1000
|
};
|
|
1037
1001
|
}
|
|
1038
|
-
const
|
|
1039
|
-
defaultModifiers: [
|
|
1040
|
-
}),
|
|
1041
|
-
function
|
|
1002
|
+
const Ua = Fa({
|
|
1003
|
+
defaultModifiers: [ya, Sa, ia, la, _a, ba, Aa, sa]
|
|
1004
|
+
}), Ba = ["enabled", "placement", "strategy", "modifiers"];
|
|
1005
|
+
function Ia(t, e) {
|
|
1042
1006
|
if (t == null) return {};
|
|
1043
1007
|
var a = {};
|
|
1044
1008
|
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
@@ -1047,13 +1011,13 @@ function za(t, e) {
|
|
|
1047
1011
|
}
|
|
1048
1012
|
return a;
|
|
1049
1013
|
}
|
|
1050
|
-
const
|
|
1014
|
+
const Va = {
|
|
1051
1015
|
name: "applyStyles",
|
|
1052
1016
|
enabled: !1,
|
|
1053
1017
|
phase: "afterWrite",
|
|
1054
1018
|
fn: () => {
|
|
1055
1019
|
}
|
|
1056
|
-
},
|
|
1020
|
+
}, Wa = {
|
|
1057
1021
|
name: "ariaDescribedBy",
|
|
1058
1022
|
enabled: !0,
|
|
1059
1023
|
phase: "afterWrite",
|
|
@@ -1084,21 +1048,21 @@ const Xa = {
|
|
|
1084
1048
|
r.setAttribute("aria-describedby", l ? `${l},${a.id}` : a.id);
|
|
1085
1049
|
}
|
|
1086
1050
|
}
|
|
1087
|
-
},
|
|
1088
|
-
function
|
|
1051
|
+
}, Ha = [];
|
|
1052
|
+
function za(t, e, a = {}) {
|
|
1089
1053
|
let {
|
|
1090
1054
|
enabled: r = !0,
|
|
1091
1055
|
placement: n = "bottom",
|
|
1092
1056
|
strategy: l = "absolute",
|
|
1093
|
-
modifiers: i =
|
|
1094
|
-
} = a, o =
|
|
1057
|
+
modifiers: i = Ha
|
|
1058
|
+
} = a, o = Ia(a, Ba);
|
|
1095
1059
|
const c = q(i), f = q(), u = z(() => {
|
|
1096
1060
|
var p;
|
|
1097
1061
|
(p = f.current) == null || p.update();
|
|
1098
1062
|
}, []), m = z(() => {
|
|
1099
1063
|
var p;
|
|
1100
1064
|
(p = f.current) == null || p.forceUpdate();
|
|
1101
|
-
}, []), [h, d] =
|
|
1065
|
+
}, []), [h, d] = Ts(C({
|
|
1102
1066
|
placement: n,
|
|
1103
1067
|
update: u,
|
|
1104
1068
|
forceUpdate: m,
|
|
@@ -1127,19 +1091,19 @@ function Ka(t, e, a = {}) {
|
|
|
1127
1091
|
placement: p.placement
|
|
1128
1092
|
});
|
|
1129
1093
|
}
|
|
1130
|
-
}), [u, m, d]), x = Me(() => (
|
|
1094
|
+
}), [u, m, d]), x = Me(() => (Ce(c.current, i) || (c.current = i), c.current), [i]);
|
|
1131
1095
|
return X(() => {
|
|
1132
1096
|
!f.current || !r || f.current.setOptions({
|
|
1133
1097
|
placement: n,
|
|
1134
1098
|
strategy: l,
|
|
1135
|
-
modifiers: [...x, v,
|
|
1099
|
+
modifiers: [...x, v, Va]
|
|
1136
1100
|
});
|
|
1137
1101
|
}, [l, n, v, r, x]), X(() => {
|
|
1138
1102
|
if (!(!r || t == null || e == null))
|
|
1139
|
-
return f.current =
|
|
1103
|
+
return f.current = Ua(t, e, Object.assign({}, o, {
|
|
1140
1104
|
placement: n,
|
|
1141
1105
|
strategy: l,
|
|
1142
|
-
modifiers: [...x,
|
|
1106
|
+
modifiers: [...x, Wa, v]
|
|
1143
1107
|
})), () => {
|
|
1144
1108
|
f.current != null && (f.current.destroy(), f.current = void 0, d((p) => Object.assign({}, p, {
|
|
1145
1109
|
attributes: {},
|
|
@@ -1150,39 +1114,39 @@ function Ka(t, e, a = {}) {
|
|
|
1150
1114
|
};
|
|
1151
1115
|
}, [r, t, e]), h;
|
|
1152
1116
|
}
|
|
1153
|
-
const
|
|
1117
|
+
const Tt = () => {
|
|
1154
1118
|
};
|
|
1155
|
-
function
|
|
1119
|
+
function Xa(t) {
|
|
1156
1120
|
return t.button === 0;
|
|
1157
1121
|
}
|
|
1158
|
-
function
|
|
1122
|
+
function Ya(t) {
|
|
1159
1123
|
return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
|
|
1160
1124
|
}
|
|
1161
|
-
const We = (t) => t && ("current" in t ? t.current : t),
|
|
1125
|
+
const We = (t) => t && ("current" in t ? t.current : t), Ft = {
|
|
1162
1126
|
click: "mousedown",
|
|
1163
1127
|
mouseup: "mousedown",
|
|
1164
1128
|
pointerup: "pointerdown"
|
|
1165
1129
|
};
|
|
1166
|
-
function
|
|
1130
|
+
function qa(t, e = Tt, {
|
|
1167
1131
|
disabled: a,
|
|
1168
1132
|
clickTrigger: r = "click"
|
|
1169
1133
|
} = {}) {
|
|
1170
1134
|
const n = q(!1), l = q(!1), i = z((f) => {
|
|
1171
1135
|
const u = We(t);
|
|
1172
|
-
|
|
1173
|
-
}, [t]), o =
|
|
1136
|
+
Jt(!!u, "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"), n.current = !u || Ya(f) || !Xa(f) || !!tt(u, f.target) || l.current, l.current = !1;
|
|
1137
|
+
}, [t]), o = st((f) => {
|
|
1174
1138
|
const u = We(t);
|
|
1175
|
-
u &&
|
|
1176
|
-
}), c =
|
|
1139
|
+
u && tt(u, f.target) ? l.current = !0 : l.current = !1;
|
|
1140
|
+
}), c = st((f) => {
|
|
1177
1141
|
n.current || e(f);
|
|
1178
1142
|
});
|
|
1179
1143
|
X(() => {
|
|
1180
1144
|
var f, u;
|
|
1181
1145
|
if (a || t == null) return;
|
|
1182
|
-
const m =
|
|
1146
|
+
const m = qt(We(t)), h = m.defaultView || window;
|
|
1183
1147
|
let d = (f = h.event) != null ? f : (u = h.parent) == null ? void 0 : u.event, v = null;
|
|
1184
|
-
|
|
1185
|
-
const x =
|
|
1148
|
+
Ft[r] && (v = Ae(m, Ft[r], o, !0));
|
|
1149
|
+
const x = Ae(m, r, i, !0), p = Ae(m, r, (g) => {
|
|
1186
1150
|
if (g === d) {
|
|
1187
1151
|
d = void 0;
|
|
1188
1152
|
return;
|
|
@@ -1190,30 +1154,30 @@ function Qa(t, e = Ut, {
|
|
|
1190
1154
|
c(g);
|
|
1191
1155
|
});
|
|
1192
1156
|
let j = [];
|
|
1193
|
-
return "ontouchstart" in m.documentElement && (j = [].slice.call(m.body.children).map((g) =>
|
|
1157
|
+
return "ontouchstart" in m.documentElement && (j = [].slice.call(m.body.children).map((g) => Ae(g, "mousemove", Tt))), () => {
|
|
1194
1158
|
v?.(), x(), p(), j.forEach((g) => g());
|
|
1195
1159
|
};
|
|
1196
1160
|
}, [t, a, r, i, o, c]);
|
|
1197
1161
|
}
|
|
1198
|
-
const
|
|
1162
|
+
const Ka = () => {
|
|
1199
1163
|
};
|
|
1200
|
-
function
|
|
1164
|
+
function Ga(t, e, {
|
|
1201
1165
|
disabled: a,
|
|
1202
1166
|
clickTrigger: r
|
|
1203
1167
|
} = {}) {
|
|
1204
|
-
const n = e ||
|
|
1205
|
-
|
|
1168
|
+
const n = e || Ka;
|
|
1169
|
+
qa(t, n, {
|
|
1206
1170
|
disabled: a,
|
|
1207
1171
|
clickTrigger: r
|
|
1208
1172
|
});
|
|
1209
|
-
const l =
|
|
1210
|
-
|
|
1173
|
+
const l = st((i) => {
|
|
1174
|
+
js(i) && n(i);
|
|
1211
1175
|
});
|
|
1212
1176
|
X(() => {
|
|
1213
1177
|
if (a || t == null) return;
|
|
1214
|
-
const i =
|
|
1178
|
+
const i = qt(We(t));
|
|
1215
1179
|
let o = (i.defaultView || window).event;
|
|
1216
|
-
const c =
|
|
1180
|
+
const c = Ae(i, "keyup", (f) => {
|
|
1217
1181
|
if (f === o) {
|
|
1218
1182
|
o = void 0;
|
|
1219
1183
|
return;
|
|
@@ -1225,16 +1189,16 @@ function er(t, e, {
|
|
|
1225
1189
|
};
|
|
1226
1190
|
}, [t, a, l]);
|
|
1227
1191
|
}
|
|
1228
|
-
function
|
|
1192
|
+
function Ja(t) {
|
|
1229
1193
|
const e = {};
|
|
1230
1194
|
return Array.isArray(t) ? (t?.forEach((a) => {
|
|
1231
1195
|
e[a.name] = a;
|
|
1232
1196
|
}), e) : t || e;
|
|
1233
1197
|
}
|
|
1234
|
-
function
|
|
1198
|
+
function Qa(t = {}) {
|
|
1235
1199
|
return Array.isArray(t) ? t : Object.keys(t).map((e) => (t[e].name = e, t[e]));
|
|
1236
1200
|
}
|
|
1237
|
-
function
|
|
1201
|
+
function Za({
|
|
1238
1202
|
enabled: t,
|
|
1239
1203
|
enableEvents: e,
|
|
1240
1204
|
placement: a,
|
|
@@ -1246,12 +1210,12 @@ function ar({
|
|
|
1246
1210
|
popperConfig: c = {}
|
|
1247
1211
|
}) {
|
|
1248
1212
|
var f, u, m, h;
|
|
1249
|
-
const d =
|
|
1213
|
+
const d = Ja(c.modifiers);
|
|
1250
1214
|
return Object.assign({}, c, {
|
|
1251
1215
|
placement: a,
|
|
1252
1216
|
enabled: t,
|
|
1253
1217
|
strategy: l ? "fixed" : c.strategy,
|
|
1254
|
-
modifiers:
|
|
1218
|
+
modifiers: Qa(Object.assign({}, d, {
|
|
1255
1219
|
eventListeners: {
|
|
1256
1220
|
enabled: e,
|
|
1257
1221
|
options: (f = d.eventListeners) == null ? void 0 : f.options
|
|
@@ -1278,7 +1242,7 @@ function ar({
|
|
|
1278
1242
|
}))
|
|
1279
1243
|
});
|
|
1280
1244
|
}
|
|
1281
|
-
const
|
|
1245
|
+
const ds = /* @__PURE__ */ ce.forwardRef((t, e) => {
|
|
1282
1246
|
const {
|
|
1283
1247
|
flip: a,
|
|
1284
1248
|
offset: r,
|
|
@@ -1287,7 +1251,7 @@ const fs = /* @__PURE__ */ ee.forwardRef((t, e) => {
|
|
|
1287
1251
|
popperConfig: i = {},
|
|
1288
1252
|
transition: o,
|
|
1289
1253
|
runTransition: c
|
|
1290
|
-
} = t, [f, u] =
|
|
1254
|
+
} = t, [f, u] = Ot(), [m, h] = Ot(), d = ys(u, e), v = wt(t.container), x = wt(t.target), [p, j] = C(!t.show), g = za(x, f, Za({
|
|
1291
1255
|
placement: n,
|
|
1292
1256
|
enableEvents: !!t.show,
|
|
1293
1257
|
containerPadding: l || 5,
|
|
@@ -1297,10 +1261,10 @@ const fs = /* @__PURE__ */ ee.forwardRef((t, e) => {
|
|
|
1297
1261
|
popperConfig: i
|
|
1298
1262
|
}));
|
|
1299
1263
|
t.show && p && j(!1);
|
|
1300
|
-
const N = (
|
|
1301
|
-
j(!0), t.onExited && t.onExited(
|
|
1264
|
+
const N = (...$) => {
|
|
1265
|
+
j(!0), t.onExited && t.onExited(...$);
|
|
1302
1266
|
}, b = t.show || !p;
|
|
1303
|
-
if (
|
|
1267
|
+
if (Ga(f, t.onHide, {
|
|
1304
1268
|
disabled: !t.rootClose || t.rootCloseDisabled,
|
|
1305
1269
|
clickTrigger: t.rootCloseEvent
|
|
1306
1270
|
}), !b)
|
|
@@ -1309,10 +1273,10 @@ const fs = /* @__PURE__ */ ee.forwardRef((t, e) => {
|
|
|
1309
1273
|
onExit: _,
|
|
1310
1274
|
onExiting: w,
|
|
1311
1275
|
onEnter: O,
|
|
1312
|
-
onEntering:
|
|
1276
|
+
onEntering: E,
|
|
1313
1277
|
onEntered: M
|
|
1314
1278
|
} = t;
|
|
1315
|
-
let
|
|
1279
|
+
let A = t.children(Object.assign({}, g.attributes.popper, {
|
|
1316
1280
|
style: g.styles.popper,
|
|
1317
1281
|
ref: d
|
|
1318
1282
|
}), {
|
|
@@ -1324,24 +1288,24 @@ const fs = /* @__PURE__ */ ee.forwardRef((t, e) => {
|
|
|
1324
1288
|
ref: h
|
|
1325
1289
|
})
|
|
1326
1290
|
});
|
|
1327
|
-
return
|
|
1291
|
+
return A = ws(o, c, {
|
|
1328
1292
|
in: !!t.show,
|
|
1329
1293
|
appear: !0,
|
|
1330
1294
|
mountOnEnter: !0,
|
|
1331
1295
|
unmountOnExit: !0,
|
|
1332
|
-
children:
|
|
1296
|
+
children: A,
|
|
1333
1297
|
onExit: _,
|
|
1334
1298
|
onExiting: w,
|
|
1335
1299
|
onExited: N,
|
|
1336
1300
|
onEnter: O,
|
|
1337
|
-
onEntering:
|
|
1301
|
+
onEntering: E,
|
|
1338
1302
|
onEntered: M
|
|
1339
|
-
}), v ? /* @__PURE__ */
|
|
1303
|
+
}), v ? /* @__PURE__ */ Ds.createPortal(A, v) : null;
|
|
1340
1304
|
});
|
|
1341
|
-
|
|
1342
|
-
const
|
|
1305
|
+
ds.displayName = "Overlay";
|
|
1306
|
+
const er = typeof global < "u" && // @ts-ignore
|
|
1343
1307
|
global.navigator && // @ts-ignore
|
|
1344
|
-
global.navigator.product === "ReactNative",
|
|
1308
|
+
global.navigator.product === "ReactNative", tr = typeof document < "u", sr = tr || er ? xs : X, us = /* @__PURE__ */ ce.forwardRef(({
|
|
1345
1309
|
className: t,
|
|
1346
1310
|
bsPrefix: e,
|
|
1347
1311
|
as: a = "div",
|
|
@@ -1351,8 +1315,8 @@ global.navigator.product === "ReactNative", nr = typeof document < "u", ir = nr
|
|
|
1351
1315
|
className: ue(t, e),
|
|
1352
1316
|
...r
|
|
1353
1317
|
})));
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1318
|
+
us.displayName = "PopoverHeader";
|
|
1319
|
+
const mt = /* @__PURE__ */ ce.forwardRef(({
|
|
1356
1320
|
className: t,
|
|
1357
1321
|
bsPrefix: e,
|
|
1358
1322
|
as: a = "div",
|
|
@@ -1362,12 +1326,12 @@ const ht = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1362
1326
|
className: ue(t, e),
|
|
1363
1327
|
...r
|
|
1364
1328
|
})));
|
|
1365
|
-
|
|
1366
|
-
function
|
|
1329
|
+
mt.displayName = "PopoverBody";
|
|
1330
|
+
function fs(t, e) {
|
|
1367
1331
|
let a = t;
|
|
1368
1332
|
return t === "left" ? a = e ? "end" : "start" : t === "right" && (a = e ? "start" : "end"), a;
|
|
1369
1333
|
}
|
|
1370
|
-
function
|
|
1334
|
+
function ps(t = "absolute") {
|
|
1371
1335
|
return {
|
|
1372
1336
|
position: t,
|
|
1373
1337
|
top: "0",
|
|
@@ -1376,7 +1340,7 @@ function hs(t = "absolute") {
|
|
|
1376
1340
|
pointerEvents: "none"
|
|
1377
1341
|
};
|
|
1378
1342
|
}
|
|
1379
|
-
const
|
|
1343
|
+
const ms = /* @__PURE__ */ ce.forwardRef(({
|
|
1380
1344
|
bsPrefix: t,
|
|
1381
1345
|
placement: e = "right",
|
|
1382
1346
|
className: a,
|
|
@@ -1389,11 +1353,11 @@ const vs = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1389
1353
|
show: f,
|
|
1390
1354
|
...u
|
|
1391
1355
|
}, m) => {
|
|
1392
|
-
const h = ve(t, "popover"), d =
|
|
1356
|
+
const h = ve(t, "popover"), d = Kt(), [v] = e?.split("-") || [], x = fs(v, d);
|
|
1393
1357
|
let p = r;
|
|
1394
1358
|
return f && !o && (p = {
|
|
1395
1359
|
...r,
|
|
1396
|
-
...
|
|
1360
|
+
...ps(c?.strategy)
|
|
1397
1361
|
}), /* @__PURE__ */ s.jsxs("div", {
|
|
1398
1362
|
ref: m,
|
|
1399
1363
|
role: "tooltip",
|
|
@@ -1404,19 +1368,19 @@ const vs = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1404
1368
|
children: [/* @__PURE__ */ s.jsx("div", {
|
|
1405
1369
|
className: "popover-arrow",
|
|
1406
1370
|
...i
|
|
1407
|
-
}), l ? /* @__PURE__ */ s.jsx(
|
|
1371
|
+
}), l ? /* @__PURE__ */ s.jsx(mt, {
|
|
1408
1372
|
children: n
|
|
1409
1373
|
}) : n]
|
|
1410
1374
|
});
|
|
1411
1375
|
});
|
|
1412
|
-
|
|
1413
|
-
const
|
|
1414
|
-
Header:
|
|
1415
|
-
Body:
|
|
1376
|
+
ms.displayName = "Popover";
|
|
1377
|
+
const ar = Object.assign(ms, {
|
|
1378
|
+
Header: us,
|
|
1379
|
+
Body: mt,
|
|
1416
1380
|
// Default popover offset.
|
|
1417
1381
|
// https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
|
|
1418
1382
|
POPPER_OFFSET: [0, 8]
|
|
1419
|
-
}),
|
|
1383
|
+
}), hs = /* @__PURE__ */ ce.forwardRef(({
|
|
1420
1384
|
bsPrefix: t,
|
|
1421
1385
|
placement: e = "right",
|
|
1422
1386
|
className: a,
|
|
@@ -1429,11 +1393,11 @@ const or = Object.assign(vs, {
|
|
|
1429
1393
|
...f
|
|
1430
1394
|
}, u) => {
|
|
1431
1395
|
t = ve(t, "tooltip");
|
|
1432
|
-
const m =
|
|
1396
|
+
const m = Kt(), [h] = e?.split("-") || [], d = fs(h, m);
|
|
1433
1397
|
let v = r;
|
|
1434
1398
|
return c && !i && (v = {
|
|
1435
1399
|
...r,
|
|
1436
|
-
...
|
|
1400
|
+
...ps(o?.strategy)
|
|
1437
1401
|
}), /* @__PURE__ */ s.jsxs("div", {
|
|
1438
1402
|
ref: u,
|
|
1439
1403
|
style: v,
|
|
@@ -1450,13 +1414,13 @@ const or = Object.assign(vs, {
|
|
|
1450
1414
|
})]
|
|
1451
1415
|
});
|
|
1452
1416
|
});
|
|
1453
|
-
|
|
1454
|
-
const Q = Object.assign(
|
|
1417
|
+
hs.displayName = "Tooltip";
|
|
1418
|
+
const Q = Object.assign(hs, {
|
|
1455
1419
|
// Default tooltip offset.
|
|
1456
1420
|
// https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
|
|
1457
1421
|
TOOLTIP_OFFSET: [0, 6]
|
|
1458
1422
|
});
|
|
1459
|
-
function
|
|
1423
|
+
function rr(t) {
|
|
1460
1424
|
const e = q(null), a = ve(void 0, "popover"), r = ve(void 0, "tooltip"), n = Me(() => ({
|
|
1461
1425
|
name: "offset",
|
|
1462
1426
|
options: {
|
|
@@ -1464,9 +1428,9 @@ function lr(t) {
|
|
|
1464
1428
|
if (t)
|
|
1465
1429
|
return t;
|
|
1466
1430
|
if (e.current) {
|
|
1467
|
-
if (
|
|
1468
|
-
return
|
|
1469
|
-
if (
|
|
1431
|
+
if (Nt(e.current, a))
|
|
1432
|
+
return ar.POPPER_OFFSET;
|
|
1433
|
+
if (Nt(e.current, r))
|
|
1470
1434
|
return Q.TOOLTIP_OFFSET;
|
|
1471
1435
|
}
|
|
1472
1436
|
return [0, 0];
|
|
@@ -1475,31 +1439,31 @@ function lr(t) {
|
|
|
1475
1439
|
}), [t, a, r]);
|
|
1476
1440
|
return [e, [n]];
|
|
1477
1441
|
}
|
|
1478
|
-
function
|
|
1442
|
+
function nr(t, e) {
|
|
1479
1443
|
const {
|
|
1480
1444
|
ref: a
|
|
1481
1445
|
} = t, {
|
|
1482
1446
|
ref: r
|
|
1483
1447
|
} = e;
|
|
1484
|
-
t.ref = a.__wrapped || (a.__wrapped = (n) => a(
|
|
1448
|
+
t.ref = a.__wrapped || (a.__wrapped = (n) => a(at(n))), e.ref = r.__wrapped || (r.__wrapped = (n) => r(at(n)));
|
|
1485
1449
|
}
|
|
1486
|
-
const
|
|
1450
|
+
const vs = /* @__PURE__ */ ce.forwardRef(({
|
|
1487
1451
|
children: t,
|
|
1488
|
-
transition: e =
|
|
1452
|
+
transition: e = _t,
|
|
1489
1453
|
popperConfig: a = {},
|
|
1490
1454
|
rootClose: r = !1,
|
|
1491
1455
|
placement: n = "top",
|
|
1492
1456
|
show: l = !1,
|
|
1493
1457
|
...i
|
|
1494
1458
|
}, o) => {
|
|
1495
|
-
const c = q({}), [f, u] =
|
|
1459
|
+
const c = q({}), [f, u] = C(null), [m, h] = rr(i.offset), d = Gt(o, m), v = e === !0 ? _t : e || void 0, x = Ns((p) => {
|
|
1496
1460
|
u(p), a == null || a.onFirstUpdate == null || a.onFirstUpdate(p);
|
|
1497
1461
|
});
|
|
1498
|
-
return
|
|
1462
|
+
return sr(() => {
|
|
1499
1463
|
f && i.target && (c.current.scheduleUpdate == null || c.current.scheduleUpdate());
|
|
1500
1464
|
}, [f, i.target]), X(() => {
|
|
1501
1465
|
l || u(null);
|
|
1502
|
-
}, [l]), /* @__PURE__ */ s.jsx(
|
|
1466
|
+
}, [l]), /* @__PURE__ */ s.jsx(ds, {
|
|
1503
1467
|
...i,
|
|
1504
1468
|
ref: d,
|
|
1505
1469
|
popperConfig: {
|
|
@@ -1517,7 +1481,7 @@ const gs = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1517
1481
|
show: N
|
|
1518
1482
|
}) => {
|
|
1519
1483
|
var b;
|
|
1520
|
-
|
|
1484
|
+
nr(p, j);
|
|
1521
1485
|
const _ = g?.placement, w = Object.assign(c.current, {
|
|
1522
1486
|
state: g?.state,
|
|
1523
1487
|
scheduleUpdate: g?.update,
|
|
@@ -1535,7 +1499,7 @@ const gs = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1535
1499
|
popper: w,
|
|
1536
1500
|
arrowProps: j,
|
|
1537
1501
|
hasDoneInitialMeasure: O
|
|
1538
|
-
}) : /* @__PURE__ */
|
|
1502
|
+
}) : /* @__PURE__ */ ce.cloneElement(t, {
|
|
1539
1503
|
...p,
|
|
1540
1504
|
placement: _,
|
|
1541
1505
|
arrowProps: j,
|
|
@@ -1550,19 +1514,19 @@ const gs = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1550
1514
|
}
|
|
1551
1515
|
});
|
|
1552
1516
|
});
|
|
1553
|
-
|
|
1554
|
-
function
|
|
1517
|
+
vs.displayName = "Overlay";
|
|
1518
|
+
function ir(t) {
|
|
1555
1519
|
return t && typeof t == "object" ? t : {
|
|
1556
1520
|
show: t,
|
|
1557
1521
|
hide: t
|
|
1558
1522
|
};
|
|
1559
1523
|
}
|
|
1560
|
-
function
|
|
1524
|
+
function Ut(t, e, a) {
|
|
1561
1525
|
const [r] = e, n = r.currentTarget, l = r.relatedTarget || r.nativeEvent[a];
|
|
1562
|
-
(!l || l !== n) && !
|
|
1526
|
+
(!l || l !== n) && !tt(n, l) && t(...e);
|
|
1563
1527
|
}
|
|
1564
|
-
|
|
1565
|
-
const
|
|
1528
|
+
Os.oneOf(["click", "hover", "focus"]);
|
|
1529
|
+
const le = ({
|
|
1566
1530
|
trigger: t = ["hover", "focus"],
|
|
1567
1531
|
overlay: e,
|
|
1568
1532
|
children: a,
|
|
@@ -1575,12 +1539,12 @@ const ce = ({
|
|
|
1575
1539
|
flip: f = c && c.indexOf("auto") !== -1,
|
|
1576
1540
|
...u
|
|
1577
1541
|
}) => {
|
|
1578
|
-
const m = q(null), h =
|
|
1542
|
+
const m = q(null), h = Gt(m, _s(a)), d = Rs(), v = q(""), [x, p] = Ls(n, l, i), j = ir(o), {
|
|
1579
1543
|
onFocus: g,
|
|
1580
1544
|
onBlur: N,
|
|
1581
1545
|
onClick: b
|
|
1582
|
-
} = typeof a != "function" ?
|
|
1583
|
-
h(
|
|
1546
|
+
} = typeof a != "function" ? ce.Children.only(a).props : {}, _ = (k) => {
|
|
1547
|
+
h(at(k));
|
|
1584
1548
|
}, w = z(() => {
|
|
1585
1549
|
if (d.clear(), v.current = "show", !j.show) {
|
|
1586
1550
|
p(!0);
|
|
@@ -1597,21 +1561,21 @@ const ce = ({
|
|
|
1597
1561
|
d.set(() => {
|
|
1598
1562
|
v.current === "hide" && p(!1);
|
|
1599
1563
|
}, j.hide);
|
|
1600
|
-
}, [j.hide, p, d]),
|
|
1601
|
-
w(), g?.(...
|
|
1602
|
-
}, [w, g]), M = z((...
|
|
1603
|
-
O(), N?.(...
|
|
1604
|
-
}, [O, N]),
|
|
1605
|
-
p(!x), b?.(...
|
|
1606
|
-
}, [b, p, x]),
|
|
1607
|
-
|
|
1608
|
-
}, [w]),
|
|
1609
|
-
|
|
1564
|
+
}, [j.hide, p, d]), E = z((...k) => {
|
|
1565
|
+
w(), g?.(...k);
|
|
1566
|
+
}, [w, g]), M = z((...k) => {
|
|
1567
|
+
O(), N?.(...k);
|
|
1568
|
+
}, [O, N]), A = z((...k) => {
|
|
1569
|
+
p(!x), b?.(...k);
|
|
1570
|
+
}, [b, p, x]), $ = z((...k) => {
|
|
1571
|
+
Ut(w, k, "fromElement");
|
|
1572
|
+
}, [w]), R = z((...k) => {
|
|
1573
|
+
Ut(O, k, "toElement");
|
|
1610
1574
|
}, [O]), S = t == null ? [] : [].concat(t), L = {
|
|
1611
1575
|
ref: _
|
|
1612
1576
|
};
|
|
1613
|
-
return S.indexOf("click") !== -1 && (L.onClick =
|
|
1614
|
-
children: [typeof a == "function" ? a(L) : /* @__PURE__ */
|
|
1577
|
+
return S.indexOf("click") !== -1 && (L.onClick = A), S.indexOf("focus") !== -1 && (L.onFocus = E, L.onBlur = M), S.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && Jt(S.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.'), L.onMouseOver = $, L.onMouseOut = R), /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
1578
|
+
children: [typeof a == "function" ? a(L) : /* @__PURE__ */ zt(a, L), /* @__PURE__ */ s.jsx(vs, {
|
|
1615
1579
|
...u,
|
|
1616
1580
|
show: x,
|
|
1617
1581
|
onHide: O,
|
|
@@ -1623,7 +1587,7 @@ const ce = ({
|
|
|
1623
1587
|
})]
|
|
1624
1588
|
});
|
|
1625
1589
|
};
|
|
1626
|
-
function
|
|
1590
|
+
function Bt(t) {
|
|
1627
1591
|
const { profile_photo: e, width: a, alt: r, hideDefault: n, activityStatus: l, user_id: i } = t;
|
|
1628
1592
|
return e?.key ? /* @__PURE__ */ s.jsxs(
|
|
1629
1593
|
"div",
|
|
@@ -1638,7 +1602,7 @@ function Vt(t) {
|
|
|
1638
1602
|
},
|
|
1639
1603
|
children: [
|
|
1640
1604
|
/* @__PURE__ */ s.jsx(
|
|
1641
|
-
|
|
1605
|
+
It,
|
|
1642
1606
|
{
|
|
1643
1607
|
activityStatus: l,
|
|
1644
1608
|
user_id: i
|
|
@@ -1674,7 +1638,7 @@ function Vt(t) {
|
|
|
1674
1638
|
},
|
|
1675
1639
|
children: [
|
|
1676
1640
|
/* @__PURE__ */ s.jsx(
|
|
1677
|
-
|
|
1641
|
+
It,
|
|
1678
1642
|
{
|
|
1679
1643
|
activityStatus: l,
|
|
1680
1644
|
user_id: i
|
|
@@ -1693,7 +1657,7 @@ function Vt(t) {
|
|
|
1693
1657
|
}
|
|
1694
1658
|
);
|
|
1695
1659
|
}
|
|
1696
|
-
function
|
|
1660
|
+
function It({
|
|
1697
1661
|
activityStatus: t,
|
|
1698
1662
|
user_id: e
|
|
1699
1663
|
}) {
|
|
@@ -1715,23 +1679,23 @@ function Wt({
|
|
|
1715
1679
|
}
|
|
1716
1680
|
);
|
|
1717
1681
|
}
|
|
1718
|
-
const
|
|
1682
|
+
const or = (t) => (e, a, r) => (r.revalidateOnFocus = !1, r.revalidateIfStale = !1, r.revalidateOnReconnect = !1, t(e, a, r)), lr = Ps(Qt, or), cr = (t) => Zt.get(t.url, {
|
|
1719
1683
|
params: {
|
|
1720
1684
|
user_id: t.user_id
|
|
1721
1685
|
}
|
|
1722
|
-
}).then((e) => e.data),
|
|
1686
|
+
}).then((e) => e.data), dr = {
|
|
1723
1687
|
dedupingInterval: 1e3 * 60 * 1,
|
|
1724
1688
|
focusThrottleInterval: 1e3 * 60 * 1
|
|
1725
1689
|
// fallbackData: []
|
|
1726
|
-
},
|
|
1727
|
-
const { data: e, error: a, isLoading: r, isValidating: n, mutate: l } =
|
|
1690
|
+
}, Vt = (t) => {
|
|
1691
|
+
const { data: e, error: a, isLoading: r, isValidating: n, mutate: l } = lr(
|
|
1728
1692
|
t?.user_id ? {
|
|
1729
1693
|
url: process.env.NODE_ENV === "development" ? "http://localhost:3001/api/user-public/getUserDetails" : "https://articles.media/api/user-public/getUserDetails",
|
|
1730
1694
|
// "/api/user-public/getUserDetails",
|
|
1731
1695
|
user_id: t.user_id
|
|
1732
1696
|
} : null,
|
|
1733
|
-
|
|
1734
|
-
|
|
1697
|
+
cr,
|
|
1698
|
+
dr
|
|
1735
1699
|
);
|
|
1736
1700
|
return {
|
|
1737
1701
|
data: e,
|
|
@@ -1741,23 +1705,19 @@ const ur = (t) => (e, a, r) => (r.revalidateOnFocus = !1, r.revalidateIfStale =
|
|
|
1741
1705
|
mutate: l
|
|
1742
1706
|
};
|
|
1743
1707
|
};
|
|
1744
|
-
function
|
|
1745
|
-
const [l, i] =
|
|
1708
|
+
function Ze({ className: t, noOutline: e, children: a, inline: r }) {
|
|
1709
|
+
const [l, i] = C();
|
|
1746
1710
|
if (X(() => {
|
|
1747
1711
|
i(!0);
|
|
1748
1712
|
}, []), a && (!1)?.roles?.isDev && l)
|
|
1749
1713
|
return /* @__PURE__ */ s.jsx("div", { className: `is-dev-content ${e && "no-outline"} ${t} ${r && "d-inline-block"}`, children: a });
|
|
1750
1714
|
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
return ee.Children.map(t, (r) => /* @__PURE__ */ ee.isValidElement(r) ? e(r, a++) : r);
|
|
1754
|
-
}
|
|
1755
|
-
const zt = 1e3;
|
|
1756
|
-
function vr(t, e, a) {
|
|
1715
|
+
const Wt = 1e3;
|
|
1716
|
+
function ur(t, e, a) {
|
|
1757
1717
|
const r = (t - e) / (a - e) * 100;
|
|
1758
|
-
return Math.round(r *
|
|
1718
|
+
return Math.round(r * Wt) / Wt;
|
|
1759
1719
|
}
|
|
1760
|
-
function
|
|
1720
|
+
function Ht({
|
|
1761
1721
|
min: t,
|
|
1762
1722
|
now: e,
|
|
1763
1723
|
max: a,
|
|
@@ -1781,7 +1741,7 @@ function Xt({
|
|
|
1781
1741
|
[`${u}-bar-striped`]: i || l
|
|
1782
1742
|
}),
|
|
1783
1743
|
style: {
|
|
1784
|
-
width: `${
|
|
1744
|
+
width: `${ur(e, t, a)}%`,
|
|
1785
1745
|
...c
|
|
1786
1746
|
},
|
|
1787
1747
|
"aria-valuenow": e,
|
|
@@ -1793,7 +1753,7 @@ function Xt({
|
|
|
1793
1753
|
}) : r
|
|
1794
1754
|
});
|
|
1795
1755
|
}
|
|
1796
|
-
const Z = /* @__PURE__ */
|
|
1756
|
+
const Z = /* @__PURE__ */ ce.forwardRef(({
|
|
1797
1757
|
isChild: t = !1,
|
|
1798
1758
|
...e
|
|
1799
1759
|
}, a) => {
|
|
@@ -1806,7 +1766,7 @@ const Z = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1806
1766
|
...e
|
|
1807
1767
|
};
|
|
1808
1768
|
if (r.bsPrefix = ve(r.bsPrefix, "progress"), t)
|
|
1809
|
-
return
|
|
1769
|
+
return Ht(r, a);
|
|
1810
1770
|
const {
|
|
1811
1771
|
min: n,
|
|
1812
1772
|
now: l,
|
|
@@ -1825,9 +1785,9 @@ const Z = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1825
1785
|
ref: a,
|
|
1826
1786
|
...x,
|
|
1827
1787
|
className: ue(d, m),
|
|
1828
|
-
children: v ?
|
|
1788
|
+
children: v ? Ss(v, (p) => /* @__PURE__ */ zt(p, {
|
|
1829
1789
|
isChild: !0
|
|
1830
|
-
})) :
|
|
1790
|
+
})) : Ht({
|
|
1831
1791
|
min: n,
|
|
1832
1792
|
now: l,
|
|
1833
1793
|
max: i,
|
|
@@ -1841,7 +1801,7 @@ const Z = /* @__PURE__ */ ee.forwardRef(({
|
|
|
1841
1801
|
});
|
|
1842
1802
|
});
|
|
1843
1803
|
Z.displayName = "ProgressBar";
|
|
1844
|
-
const
|
|
1804
|
+
const re = {
|
|
1845
1805
|
SIGN_IN: "/login",
|
|
1846
1806
|
SIGN_UP: "/signup",
|
|
1847
1807
|
HOME: "/",
|
|
@@ -1852,7 +1812,7 @@ const ne = {
|
|
|
1852
1812
|
MYTHS: "/news/myths"
|
|
1853
1813
|
// ... other routes
|
|
1854
1814
|
};
|
|
1855
|
-
function
|
|
1815
|
+
function fr({
|
|
1856
1816
|
activeLayoutProposalSentiments: t,
|
|
1857
1817
|
populated_user: e,
|
|
1858
1818
|
usersProposalSentiments: a,
|
|
@@ -1873,8 +1833,8 @@ function xr({
|
|
|
1873
1833
|
/* @__PURE__ */ s.jsx("div", { className: "card-header", children: /* @__PURE__ */ s.jsx("b", { children: i.name }) }),
|
|
1874
1834
|
/* @__PURE__ */ s.jsx("div", { className: "card-body p-2", children: /* @__PURE__ */ s.jsx("small", { children: "Login or create an account to compare your political stance with this user!" }) }),
|
|
1875
1835
|
/* @__PURE__ */ s.jsxs("div", { className: "card-footer", children: [
|
|
1876
|
-
/* @__PURE__ */ s.jsx(Y, { href:
|
|
1877
|
-
/* @__PURE__ */ s.jsx(Y, { href:
|
|
1836
|
+
/* @__PURE__ */ s.jsx(Y, { href: re.SIGN_IN, children: /* @__PURE__ */ s.jsx(P, { small: !0, className: "", children: "Sign In" }) }),
|
|
1837
|
+
/* @__PURE__ */ s.jsx(Y, { href: re.SIGN_UP, children: /* @__PURE__ */ s.jsx(P, { small: !0, className: "", children: "Sign Up" }) })
|
|
1878
1838
|
] })
|
|
1879
1839
|
] }) }, i.name) : /* @__PURE__ */ s.jsx("div", { className: "col-lg-6 px-1", children: /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm", children: [
|
|
1880
1840
|
/* @__PURE__ */ s.jsx(
|
|
@@ -1963,7 +1923,7 @@ function xr({
|
|
|
1963
1923
|
] })
|
|
1964
1924
|
] }) }, i.name)) });
|
|
1965
1925
|
}
|
|
1966
|
-
function
|
|
1926
|
+
function pr({
|
|
1967
1927
|
activeLayoutProposalSentiments: t
|
|
1968
1928
|
}) {
|
|
1969
1929
|
return /* @__PURE__ */ s.jsx("div", { children: t.user_comments?.filter((e) => !e.parent_id).map((e) => /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm border mb-2", children: [
|
|
@@ -1975,7 +1935,7 @@ function gr({
|
|
|
1975
1935
|
/* @__PURE__ */ s.jsx("span", { className: "small", children: Te(new Date(e.date), "M/dd/yy") }),
|
|
1976
1936
|
/* @__PURE__ */ s.jsx("div", { children: e.comment })
|
|
1977
1937
|
] }) }),
|
|
1978
|
-
/* @__PURE__ */ s.jsx("div", { className: "card-footer", children: /* @__PURE__ */ s.jsx(Y, { prefetch: !1, href: `${
|
|
1938
|
+
/* @__PURE__ */ s.jsx("div", { className: "card-footer", children: /* @__PURE__ */ s.jsx(Y, { prefetch: !1, href: `${re.PROPOSALS}/${e.populated_proposal.url}?interaction_id=${e._id}`, children: /* @__PURE__ */ s.jsx(
|
|
1979
1939
|
P,
|
|
1980
1940
|
{
|
|
1981
1941
|
small: !0,
|
|
@@ -1984,7 +1944,7 @@ function gr({
|
|
|
1984
1944
|
) }) })
|
|
1985
1945
|
] }, e._id)) });
|
|
1986
1946
|
}
|
|
1987
|
-
function
|
|
1947
|
+
function mr({
|
|
1988
1948
|
activeLayoutProposalSentiments: t
|
|
1989
1949
|
}) {
|
|
1990
1950
|
return /* @__PURE__ */ s.jsx("div", { children: t.user_sentiments?.map((e) => /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm border mb-2", children: [
|
|
@@ -2017,11 +1977,11 @@ function br({
|
|
|
2017
1977
|
) })
|
|
2018
1978
|
] }, e._id)) });
|
|
2019
1979
|
}
|
|
2020
|
-
function
|
|
1980
|
+
function hr({
|
|
2021
1981
|
activeLayoutProposalSentiments: t,
|
|
2022
1982
|
userProposalsSubmitted: e
|
|
2023
1983
|
}) {
|
|
2024
|
-
const [a, r] =
|
|
1984
|
+
const [a, r] = C(!1);
|
|
2025
1985
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
2026
1986
|
/* @__PURE__ */ s.jsx("div", { className: "mb-2", children: e?.slice(0, a ? 100 : 1).map((n) => /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm shadow-articles", children: [
|
|
2027
1987
|
/* @__PURE__ */ s.jsx("div", { className: "card-body p-2 lh-sm d-flex align-items-center", children: /* @__PURE__ */ s.jsxs("div", { className: "ms-2", children: [
|
|
@@ -2034,7 +1994,7 @@ function jr({
|
|
|
2034
1994
|
/* @__PURE__ */ s.jsx("div", { className: "card-footer d-flex", children: /* @__PURE__ */ s.jsx(
|
|
2035
1995
|
Y,
|
|
2036
1996
|
{
|
|
2037
|
-
href: `${
|
|
1997
|
+
href: `${re.PROPOSALS_SUBMISSIONS_ALL}/${n._id}`,
|
|
2038
1998
|
className: "",
|
|
2039
1999
|
children: /* @__PURE__ */ s.jsx(P, { small: !0, children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
2040
2000
|
/* @__PURE__ */ s.jsx("i", { className: "fad fa-eye me-1" }),
|
|
@@ -2054,7 +2014,7 @@ function jr({
|
|
|
2054
2014
|
e?.length == 0 && /* @__PURE__ */ s.jsx("span", { className: "small", children: "User has no proposal submissions" })
|
|
2055
2015
|
] });
|
|
2056
2016
|
}
|
|
2057
|
-
function
|
|
2017
|
+
function vr(t) {
|
|
2058
2018
|
const { featured_image: e, thumbnail_size: a } = t;
|
|
2059
2019
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2060
2020
|
(e?.image_type == "S3 File System" || e?.thumbnails?.length > 0) && /* @__PURE__ */ s.jsx(s.Fragment, { children: e?.thumbnails?.length > 0 ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a && e?.thumbnails?.find((r) => r.width == a) ? /* @__PURE__ */ s.jsx(
|
|
@@ -2108,19 +2068,19 @@ function yr(t) {
|
|
|
2108
2068
|
)
|
|
2109
2069
|
] });
|
|
2110
2070
|
}
|
|
2111
|
-
function
|
|
2071
|
+
function xr(t) {
|
|
2112
2072
|
switch (t) {
|
|
2113
2073
|
case "story":
|
|
2114
|
-
return
|
|
2074
|
+
return re.STORIES;
|
|
2115
2075
|
// break;
|
|
2116
2076
|
case "issue":
|
|
2117
|
-
return
|
|
2077
|
+
return re.ISSUES;
|
|
2118
2078
|
// break;
|
|
2119
2079
|
case "myth":
|
|
2120
|
-
return
|
|
2080
|
+
return re.MYTHS;
|
|
2121
2081
|
}
|
|
2122
2082
|
}
|
|
2123
|
-
function
|
|
2083
|
+
function gr({
|
|
2124
2084
|
publicUserData: t
|
|
2125
2085
|
}) {
|
|
2126
2086
|
return /* @__PURE__ */ s.jsx("div", { children: t?.populated_news_comments?.filter((e) => !e.parent_id).map((e) => /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm border mb-2", children: [
|
|
@@ -2138,7 +2098,7 @@ function Nr({
|
|
|
2138
2098
|
},
|
|
2139
2099
|
className: "me-2 flex-shrink-0",
|
|
2140
2100
|
children: /* @__PURE__ */ s.jsx(
|
|
2141
|
-
|
|
2101
|
+
vr,
|
|
2142
2102
|
{
|
|
2143
2103
|
featured_image: e?.populated_news?.featured_image,
|
|
2144
2104
|
thumbnail_size: 100
|
|
@@ -2151,7 +2111,7 @@ function Nr({
|
|
|
2151
2111
|
/* @__PURE__ */ s.jsx("div", { children: e.comment })
|
|
2152
2112
|
] })
|
|
2153
2113
|
] }),
|
|
2154
|
-
/* @__PURE__ */ s.jsx("div", { className: "card-footer", children: /* @__PURE__ */ s.jsx(Y, { prefetch: !1, href: `${
|
|
2114
|
+
/* @__PURE__ */ s.jsx("div", { className: "card-footer", children: /* @__PURE__ */ s.jsx(Y, { prefetch: !1, href: `${xr(e.populated_news?.news_type)}/${e.populated_news?.url}?interaction_id=${e._id}`, children: /* @__PURE__ */ s.jsx(
|
|
2155
2115
|
P,
|
|
2156
2116
|
{
|
|
2157
2117
|
small: !0,
|
|
@@ -2160,10 +2120,10 @@ function Nr({
|
|
|
2160
2120
|
) }) })
|
|
2161
2121
|
] }, e._id)) });
|
|
2162
2122
|
}
|
|
2163
|
-
function
|
|
2123
|
+
function br({
|
|
2164
2124
|
userNewsSubmitted: t
|
|
2165
2125
|
}) {
|
|
2166
|
-
const [e, a] =
|
|
2126
|
+
const [e, a] = C(!1);
|
|
2167
2127
|
return /* @__PURE__ */ s.jsxs("div", { children: [
|
|
2168
2128
|
/* @__PURE__ */ s.jsxs("div", { className: "mb-1 d-flex justify-content-between align-items-center", children: [
|
|
2169
2129
|
/* @__PURE__ */ s.jsxs("span", { children: [
|
|
@@ -2183,7 +2143,7 @@ function _r({
|
|
|
2183
2143
|
/* @__PURE__ */ s.jsx("img", { className: "", src: r?.featured_image?.location, width: "40px", height: "40px", style: { objectFit: "cover" }, alt: "" }),
|
|
2184
2144
|
/* @__PURE__ */ s.jsx("div", { className: "ms-2", children: /* @__PURE__ */ s.jsx("div", { children: r.news_title }) })
|
|
2185
2145
|
] }),
|
|
2186
|
-
/* @__PURE__ */ s.jsx("div", { className: "card-footer d-flex p-1", children: /* @__PURE__ */ s.jsx(Y, { href: `${
|
|
2146
|
+
/* @__PURE__ */ s.jsx("div", { className: "card-footer d-flex p-1", children: /* @__PURE__ */ s.jsx(Y, { href: `${re.HOME}/${r.url}`, children: /* @__PURE__ */ s.jsxs(P, { small: !0, className: "", children: [
|
|
2187
2147
|
/* @__PURE__ */ s.jsx("i", { className: "fad fa-eye me-1" }),
|
|
2188
2148
|
"View"
|
|
2189
2149
|
] }) }) })
|
|
@@ -2191,19 +2151,19 @@ function _r({
|
|
|
2191
2151
|
t?.length > 1 ? /* @__PURE__ */ s.jsx(P, { onClick: () => a(!e), small: !0, className: "", children: e ? "View Less" : "View All" }) : /* @__PURE__ */ s.jsx("span", { className: "small", children: "User has no news submissions" })
|
|
2192
2152
|
] });
|
|
2193
2153
|
}
|
|
2194
|
-
function
|
|
2154
|
+
function jr({
|
|
2195
2155
|
activeLayoutProposalSentiments: t,
|
|
2196
2156
|
userDonations: e,
|
|
2197
2157
|
lifetimeContribution: a
|
|
2198
2158
|
}) {
|
|
2199
|
-
const [r, n] =
|
|
2159
|
+
const [r, n] = C(!1);
|
|
2200
2160
|
return /* @__PURE__ */ s.jsxs("div", { className: "card card-articles ", children: [
|
|
2201
2161
|
/* @__PURE__ */ s.jsxs("div", { className: "card-header d-flex justify-content-between align-items-center p-1", children: [
|
|
2202
2162
|
/* @__PURE__ */ s.jsx("span", { children: "Donations: " }),
|
|
2203
2163
|
/* @__PURE__ */ s.jsxs("span", { className: "badge bg-dark", children: [
|
|
2204
2164
|
e.count,
|
|
2205
2165
|
" - ",
|
|
2206
|
-
`$${
|
|
2166
|
+
`$${et((a / 100 || 0).toFixed(2))}`
|
|
2207
2167
|
] })
|
|
2208
2168
|
] }),
|
|
2209
2169
|
/* @__PURE__ */ s.jsxs("div", { className: "card-body p-2", children: [
|
|
@@ -2212,11 +2172,11 @@ function Or({
|
|
|
2212
2172
|
/* @__PURE__ */ s.jsxs("div", { className: "card-body py-1 px-2 lh-sm d-flex align-items-center", children: [
|
|
2213
2173
|
/* @__PURE__ */ s.jsx("div", { className: "small", children: "Most Recent" }),
|
|
2214
2174
|
/* @__PURE__ */ s.jsxs("div", { className: "ms-2 d-flex align-items-center", children: [
|
|
2215
|
-
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-0 me-2", children: `$${
|
|
2175
|
+
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-0 me-2", children: `$${et((l.amount / 100).toFixed(2))}` }),
|
|
2216
2176
|
/* @__PURE__ */ s.jsx("div", { className: "small", children: Te(new Date(l.date), "M/dd/yy") })
|
|
2217
2177
|
] })
|
|
2218
2178
|
] }),
|
|
2219
|
-
/* @__PURE__ */ s.jsx("div", { className: "card-footer d-flex p-1", children: /* @__PURE__ */ s.jsx(Y, { href: `${
|
|
2179
|
+
/* @__PURE__ */ s.jsx("div", { className: "card-footer d-flex p-1", children: /* @__PURE__ */ s.jsx(Y, { href: `${re.HOME}/${l.url}`, children: /* @__PURE__ */ s.jsxs(
|
|
2220
2180
|
P,
|
|
2221
2181
|
{
|
|
2222
2182
|
className: "",
|
|
@@ -2241,7 +2201,7 @@ function Or({
|
|
|
2241
2201
|
) })
|
|
2242
2202
|
] });
|
|
2243
2203
|
}
|
|
2244
|
-
function
|
|
2204
|
+
function yr({
|
|
2245
2205
|
userLayoutsData: t,
|
|
2246
2206
|
handleClose: e
|
|
2247
2207
|
}) {
|
|
@@ -2265,7 +2225,7 @@ function Sr({
|
|
|
2265
2225
|
/* @__PURE__ */ s.jsx(
|
|
2266
2226
|
Y,
|
|
2267
2227
|
{
|
|
2268
|
-
href: `${
|
|
2228
|
+
href: `${re.HOME}/${r.url}`,
|
|
2269
2229
|
children: /* @__PURE__ */ s.jsxs(
|
|
2270
2230
|
P,
|
|
2271
2231
|
{
|
|
@@ -2282,7 +2242,7 @@ function Sr({
|
|
|
2282
2242
|
] })
|
|
2283
2243
|
] }, r._id)) });
|
|
2284
2244
|
}
|
|
2285
|
-
function
|
|
2245
|
+
function wr({
|
|
2286
2246
|
activeLayoutProposalSentiments: t,
|
|
2287
2247
|
userData: e
|
|
2288
2248
|
}) {
|
|
@@ -2295,11 +2255,11 @@ function Dr({
|
|
|
2295
2255
|
/* @__PURE__ */ s.jsx("div", { className: "card-body p-2", children: /* @__PURE__ */ s.jsxs("div", { className: "small", children: [
|
|
2296
2256
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
2297
2257
|
/* @__PURE__ */ s.jsx("span", { className: "me-2", children: "Approved On: " }),
|
|
2298
|
-
/* @__PURE__ */ s.jsx(
|
|
2258
|
+
/* @__PURE__ */ s.jsx(Yt, { date: a.approved_date })
|
|
2299
2259
|
] }),
|
|
2300
2260
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
2301
2261
|
/* @__PURE__ */ s.jsx("span", { className: "me-2", children: "Approved By: " }),
|
|
2302
|
-
/* @__PURE__ */ s.jsx(
|
|
2262
|
+
/* @__PURE__ */ s.jsx(Dr, { user_id: a.approved_by, dangerousPopulate: !0 })
|
|
2303
2263
|
] })
|
|
2304
2264
|
] }) })
|
|
2305
2265
|
]
|
|
@@ -2314,11 +2274,11 @@ function Dr({
|
|
|
2314
2274
|
r
|
|
2315
2275
|
)) }) });
|
|
2316
2276
|
}
|
|
2317
|
-
const
|
|
2318
|
-
function
|
|
2277
|
+
const Nr = [];
|
|
2278
|
+
function _r({
|
|
2319
2279
|
activeLayoutProposalSentiments: t
|
|
2320
2280
|
}) {
|
|
2321
|
-
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx("div", { className: "achievements card card-articles", children: /* @__PURE__ */ s.jsx("div", { className: "card-body p-0", children:
|
|
2281
|
+
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx("div", { className: "achievements card card-articles", children: /* @__PURE__ */ s.jsx("div", { className: "card-body p-0", children: Nr.map(
|
|
2322
2282
|
(e) => /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs("div", { className: "achievement w-100 d-flex align-items-center", children: [
|
|
2323
2283
|
/* @__PURE__ */ s.jsx("div", { className: "icon", style: { width: "50px" }, children: /* @__PURE__ */ s.jsx("i", { className: `fad ${e.icon} fa-lg` }) }),
|
|
2324
2284
|
/* @__PURE__ */ s.jsxs("div", { className: "details small me-auto", children: [
|
|
@@ -2330,10 +2290,10 @@ function Er({
|
|
|
2330
2290
|
] }) }, e.name)
|
|
2331
2291
|
) }) }) });
|
|
2332
2292
|
}
|
|
2333
|
-
const
|
|
2334
|
-
const { data: e, error: a, isLoading: r, mutate: n } =
|
|
2293
|
+
const Or = (t) => Zt.get(t).then((e) => e.data), Sr = (t) => {
|
|
2294
|
+
const { data: e, error: a, isLoading: r, mutate: n } = Qt(
|
|
2335
2295
|
process.env.NODE_ENV === "development" ? "http://localhost:3001/api/news/resources/political-parties" : "https://articles.media/api/news/resources/political-parties",
|
|
2336
|
-
|
|
2296
|
+
Or,
|
|
2337
2297
|
{
|
|
2338
2298
|
dedupingInterval: 6e5
|
|
2339
2299
|
// fallbackData: []
|
|
@@ -2346,7 +2306,7 @@ const Ar = (t) => es.get(t).then((e) => e.data), Cr = (t) => {
|
|
|
2346
2306
|
mutate: n
|
|
2347
2307
|
};
|
|
2348
2308
|
};
|
|
2349
|
-
function
|
|
2309
|
+
function Dr(t) {
|
|
2350
2310
|
const {
|
|
2351
2311
|
populated_user: e,
|
|
2352
2312
|
hidePhoto: a,
|
|
@@ -2359,7 +2319,7 @@ function $r(t) {
|
|
|
2359
2319
|
children: f,
|
|
2360
2320
|
fakeMembership: u
|
|
2361
2321
|
// name
|
|
2362
|
-
} = t, [m, h] =
|
|
2322
|
+
} = t, [m, h] = C(!1), [d, v] = C({}), [x, p] = C([]), [j, g] = C([]), [N, b] = C(null), [_, w] = C([]), [O, E] = C([]), [M, A] = C(!1), $ = !1, { data: R } = Sr(), [S, L] = C("Proposals Stance"), k = () => {
|
|
2363
2323
|
h(!1);
|
|
2364
2324
|
};
|
|
2365
2325
|
X(() => {
|
|
@@ -2367,21 +2327,21 @@ function $r(t) {
|
|
|
2367
2327
|
...e
|
|
2368
2328
|
});
|
|
2369
2329
|
}, []);
|
|
2370
|
-
const [F, I] =
|
|
2330
|
+
const [F, I] = C(!1), [fe, ne] = C([]), [ie, Oe] = C([]), { data: D, mutate: ge } = Vt(
|
|
2371
2331
|
(o || e?._id) && (m || i) ? {
|
|
2372
2332
|
user_id: o || e?._id
|
|
2373
2333
|
} : null
|
|
2374
|
-
), { data: H, mutate:
|
|
2375
|
-
|
|
2376
|
-
user_id:
|
|
2334
|
+
), { data: H, mutate: ee } = Vt(
|
|
2335
|
+
$?._id && (m || i) ? {
|
|
2336
|
+
user_id: $?._id
|
|
2377
2337
|
} : null
|
|
2378
2338
|
);
|
|
2379
2339
|
X(() => {
|
|
2380
|
-
D && (console.log("publicUserData", D), v(D), p(D?.populated_public_layouts), g(D?.populated_public_donations), b(D?.populated_public_donations.total),
|
|
2340
|
+
D && (console.log("publicUserData", D), v(D), p(D?.populated_public_layouts), g(D?.populated_public_donations), b(D?.populated_public_donations.total), E(D?.populated_public_proposals), ne(D?.populated_public_proposals_stance), w(D?.populated_public_news_submissions || []));
|
|
2381
2341
|
}, [D]), X(() => {
|
|
2382
2342
|
H && (console.log("personalUserData", H), Oe(H?.populated_public_proposals_stance));
|
|
2383
2343
|
}, [H]);
|
|
2384
|
-
let
|
|
2344
|
+
let oe = (e || d)?.articles_membership?.plan.replace(" ", "-").toLowerCase(), be = u?.replace(" ", "-").toLowerCase();
|
|
2385
2345
|
const J = "https://articles.media/images/store/memberships/", Se = () => {
|
|
2386
2346
|
let y = (e || d)?.articles_membership?.status == "Active";
|
|
2387
2347
|
return /* @__PURE__ */ s.jsxs(
|
|
@@ -2404,7 +2364,7 @@ function $r(t) {
|
|
|
2404
2364
|
(y || u) && /* @__PURE__ */ s.jsx(
|
|
2405
2365
|
"i",
|
|
2406
2366
|
{
|
|
2407
|
-
className: `fad membership-badge ${be ||
|
|
2367
|
+
className: `fad membership-badge ${be || oe} fa-badge-check`,
|
|
2408
2368
|
style: {
|
|
2409
2369
|
position: "absolute",
|
|
2410
2370
|
// top: '50%',
|
|
@@ -2420,7 +2380,7 @@ function $r(t) {
|
|
|
2420
2380
|
),
|
|
2421
2381
|
/* @__PURE__ */ s.jsxs("div", { className: `d-flex align-items-center ${y && ""}`, children: [
|
|
2422
2382
|
!a && /* @__PURE__ */ s.jsx("div", { className: n == "lg" ? "me-0" : "me-1", children: /* @__PURE__ */ s.jsx(
|
|
2423
|
-
|
|
2383
|
+
Bt,
|
|
2424
2384
|
{
|
|
2425
2385
|
width: "15px",
|
|
2426
2386
|
profile_photo: d.profile_photo
|
|
@@ -2433,7 +2393,7 @@ function $r(t) {
|
|
|
2433
2393
|
}
|
|
2434
2394
|
),
|
|
2435
2395
|
r?.includes("Not Verified") && e?.verified?.status !== "Verified" && /* @__PURE__ */ s.jsx(
|
|
2436
|
-
|
|
2396
|
+
le,
|
|
2437
2397
|
{
|
|
2438
2398
|
placement: "bottom",
|
|
2439
2399
|
overlay: /* @__PURE__ */ s.jsx(Q, { style: { pointerEvents: "none" }, id: "button-tooltip", children: /* @__PURE__ */ s.jsx("div", { className: "", children: "User is not verified" }) }),
|
|
@@ -2454,7 +2414,7 @@ function $r(t) {
|
|
|
2454
2414
|
// visibleItems?.includes("Membership")
|
|
2455
2415
|
!1,
|
|
2456
2416
|
r?.includes("Verification Status") && /* @__PURE__ */ s.jsx(
|
|
2457
|
-
|
|
2417
|
+
le,
|
|
2458
2418
|
{
|
|
2459
2419
|
placement: "bottom",
|
|
2460
2420
|
overlay: /* @__PURE__ */ s.jsx(
|
|
@@ -2472,7 +2432,7 @@ function $r(t) {
|
|
|
2472
2432
|
}
|
|
2473
2433
|
),
|
|
2474
2434
|
r?.includes("Political Party") && /* @__PURE__ */ s.jsx("div", { className: "d-flex", children: (e || d)?.political?.party_id && /* @__PURE__ */ s.jsx(
|
|
2475
|
-
|
|
2435
|
+
le,
|
|
2476
2436
|
{
|
|
2477
2437
|
placement: "bottom",
|
|
2478
2438
|
overlay: /* @__PURE__ */ s.jsxs(
|
|
@@ -2493,7 +2453,7 @@ function $r(t) {
|
|
|
2493
2453
|
position: "relative"
|
|
2494
2454
|
},
|
|
2495
2455
|
loading: "lazy",
|
|
2496
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` +
|
|
2456
|
+
src: `${process.env.NEXT_PUBLIC_CDN}` + R?.find((V) => V._id == (e || d)?.political?.party_id)?.logo,
|
|
2497
2457
|
alt: ""
|
|
2498
2458
|
}
|
|
2499
2459
|
),
|
|
@@ -2501,7 +2461,7 @@ function $r(t) {
|
|
|
2501
2461
|
"span",
|
|
2502
2462
|
{
|
|
2503
2463
|
className: "ms-2",
|
|
2504
|
-
children:
|
|
2464
|
+
children: R?.find((V) => V._id == (e || d)?.political?.party_id)?.name
|
|
2505
2465
|
}
|
|
2506
2466
|
)
|
|
2507
2467
|
]
|
|
@@ -2525,7 +2485,7 @@ function $r(t) {
|
|
|
2525
2485
|
padding: "0px"
|
|
2526
2486
|
},
|
|
2527
2487
|
loading: "lazy",
|
|
2528
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` +
|
|
2488
|
+
src: `${process.env.NEXT_PUBLIC_CDN}` + R?.find((V) => V._id == (e || d)?.political?.party_id)?.logo,
|
|
2529
2489
|
alt: ""
|
|
2530
2490
|
}
|
|
2531
2491
|
))
|
|
@@ -2549,15 +2509,15 @@ function $r(t) {
|
|
|
2549
2509
|
}
|
|
2550
2510
|
) : /* @__PURE__ */ s.jsx(Se, {});
|
|
2551
2511
|
}
|
|
2552
|
-
const [T, je] =
|
|
2512
|
+
const [T, je] = C(!1), [De, ht] = C({}), [vt, Ye] = C({});
|
|
2553
2513
|
X(() => {
|
|
2554
2514
|
T && Object.keys(De).length == 0 && console.log("adminUserData", H);
|
|
2555
2515
|
}, [T]);
|
|
2556
|
-
const [qe, Ke] =
|
|
2516
|
+
const [qe, Ke] = C(null);
|
|
2557
2517
|
function Ge() {
|
|
2558
2518
|
alert("TODO");
|
|
2559
2519
|
}
|
|
2560
|
-
const
|
|
2520
|
+
const te = Me(() => x?.filter((y) => y.user_layout)?.[0]?.url, [x]);
|
|
2561
2521
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2562
2522
|
Xe(c),
|
|
2563
2523
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -2568,7 +2528,7 @@ function $r(t) {
|
|
|
2568
2528
|
id: "view-users-modal",
|
|
2569
2529
|
className: "view-users-modal articles-modal",
|
|
2570
2530
|
scrollable: !0,
|
|
2571
|
-
onHide:
|
|
2531
|
+
onHide: k,
|
|
2572
2532
|
children: [
|
|
2573
2533
|
/* @__PURE__ */ s.jsx(Be.Header, { closeButton: !0, children: /* @__PURE__ */ s.jsx("div", { className: "w-100 d-flex justify-content-between align-items-center", children: /* @__PURE__ */ s.jsx("h3", { className: "mb-0", children: "User Info" }) }) }),
|
|
2574
2534
|
/* @__PURE__ */ s.jsx(Be.Body, { children: /* @__PURE__ */ s.jsxs("div", { className: "main-panel", children: [
|
|
@@ -2589,7 +2549,7 @@ function $r(t) {
|
|
|
2589
2549
|
Ke(`${process.env.NEXT_PUBLIC_CDN}${d?.profile_photo?.key}`);
|
|
2590
2550
|
},
|
|
2591
2551
|
children: /* @__PURE__ */ s.jsx(
|
|
2592
|
-
|
|
2552
|
+
Bt,
|
|
2593
2553
|
{
|
|
2594
2554
|
width: "100px",
|
|
2595
2555
|
profile_photo: d?.profile_photo
|
|
@@ -2598,7 +2558,7 @@ function $r(t) {
|
|
|
2598
2558
|
}
|
|
2599
2559
|
),
|
|
2600
2560
|
/* @__PURE__ */ s.jsx(
|
|
2601
|
-
|
|
2561
|
+
le,
|
|
2602
2562
|
{
|
|
2603
2563
|
placement: "bottom",
|
|
2604
2564
|
overlay: /* @__PURE__ */ s.jsx(
|
|
@@ -2614,12 +2574,12 @@ function $r(t) {
|
|
|
2614
2574
|
] })
|
|
2615
2575
|
}
|
|
2616
2576
|
),
|
|
2617
|
-
|
|
2577
|
+
te && /* @__PURE__ */ s.jsx(
|
|
2618
2578
|
Y,
|
|
2619
2579
|
{
|
|
2620
2580
|
href: (
|
|
2621
2581
|
// `${ROUTES.LAYOUTS}/${userLayoutLink}`
|
|
2622
|
-
`https://articles.media/layouts/${
|
|
2582
|
+
`https://articles.media/layouts/${te}`
|
|
2623
2583
|
),
|
|
2624
2584
|
className: "mt-2 w-100",
|
|
2625
2585
|
children: /* @__PURE__ */ s.jsxs(
|
|
@@ -2637,7 +2597,7 @@ function $r(t) {
|
|
|
2637
2597
|
)
|
|
2638
2598
|
}
|
|
2639
2599
|
),
|
|
2640
|
-
/* @__PURE__ */ s.jsx(
|
|
2600
|
+
/* @__PURE__ */ s.jsx(Ze, { className: "w-100", children: /* @__PURE__ */ s.jsx(
|
|
2641
2601
|
Y,
|
|
2642
2602
|
{
|
|
2643
2603
|
href: {
|
|
@@ -2710,7 +2670,7 @@ function $r(t) {
|
|
|
2710
2670
|
] })
|
|
2711
2671
|
] }),
|
|
2712
2672
|
d?.articles_membership?.status == "Active" && /* @__PURE__ */ s.jsx(
|
|
2713
|
-
|
|
2673
|
+
le,
|
|
2714
2674
|
{
|
|
2715
2675
|
placement: "bottom",
|
|
2716
2676
|
overlay: /* @__PURE__ */ s.jsx(
|
|
@@ -2725,7 +2685,7 @@ function $r(t) {
|
|
|
2725
2685
|
/* @__PURE__ */ s.jsx(
|
|
2726
2686
|
"i",
|
|
2727
2687
|
{
|
|
2728
|
-
className: `fad membership-badge ${
|
|
2688
|
+
className: `fad membership-badge ${oe} fa-badge-check me-1`,
|
|
2729
2689
|
style: {
|
|
2730
2690
|
position: "absolute",
|
|
2731
2691
|
top: "50%",
|
|
@@ -2743,7 +2703,7 @@ function $r(t) {
|
|
|
2743
2703
|
/* @__PURE__ */ s.jsx("div", { children: d?.articles_membership?.plan }),
|
|
2744
2704
|
/* @__PURE__ */ s.jsxs("div", { className: "small", children: [
|
|
2745
2705
|
"Since ",
|
|
2746
|
-
/* @__PURE__ */ s.jsx(
|
|
2706
|
+
/* @__PURE__ */ s.jsx(Yt, { format: "MM/dd/yy", date: d?.articles_membership?.membership_started })
|
|
2747
2707
|
] })
|
|
2748
2708
|
] })
|
|
2749
2709
|
] })
|
|
@@ -2761,7 +2721,7 @@ function $r(t) {
|
|
|
2761
2721
|
/* @__PURE__ */ s.jsx(
|
|
2762
2722
|
"i",
|
|
2763
2723
|
{
|
|
2764
|
-
className: `fad membership-badge ${
|
|
2724
|
+
className: `fad membership-badge ${oe} fa-badge-check me-1`,
|
|
2765
2725
|
style: {
|
|
2766
2726
|
// position: 'absolute',
|
|
2767
2727
|
// top: '50%',
|
|
@@ -2776,7 +2736,7 @@ function $r(t) {
|
|
|
2776
2736
|
),
|
|
2777
2737
|
/* @__PURE__ */ s.jsx("span", { children: d?.articles_membership?.plan }),
|
|
2778
2738
|
/* @__PURE__ */ s.jsx("span", { className: "px-1", children: "|" }),
|
|
2779
|
-
/* @__PURE__ */ s.jsx("span", { className: "months fw-bold", children:
|
|
2739
|
+
/* @__PURE__ */ s.jsx("span", { className: "months fw-bold", children: Ms(
|
|
2780
2740
|
/* @__PURE__ */ new Date(),
|
|
2781
2741
|
new Date(d?.articles_membership?.membership_started)
|
|
2782
2742
|
) || 0 })
|
|
@@ -2786,7 +2746,7 @@ function $r(t) {
|
|
|
2786
2746
|
}
|
|
2787
2747
|
),
|
|
2788
2748
|
d?.address?.state && /* @__PURE__ */ s.jsx(
|
|
2789
|
-
|
|
2749
|
+
le,
|
|
2790
2750
|
{
|
|
2791
2751
|
placement: "bottom",
|
|
2792
2752
|
overlay: d.address?.state?.length == 2 ? /* @__PURE__ */ s.jsxs(Q, { id: "tooltip-bottom", children: [
|
|
@@ -2803,7 +2763,7 @@ function $r(t) {
|
|
|
2803
2763
|
}
|
|
2804
2764
|
),
|
|
2805
2765
|
d.verified?.status !== "Verified" && /* @__PURE__ */ s.jsx(
|
|
2806
|
-
|
|
2766
|
+
le,
|
|
2807
2767
|
{
|
|
2808
2768
|
placement: "bottom",
|
|
2809
2769
|
overlay: /* @__PURE__ */ s.jsx(Q, { id: "tooltip-bottom", children: "User is not verified" }),
|
|
@@ -2814,7 +2774,7 @@ function $r(t) {
|
|
|
2814
2774
|
}
|
|
2815
2775
|
),
|
|
2816
2776
|
d.verified?.status == "Verified" && /* @__PURE__ */ s.jsx(
|
|
2817
|
-
|
|
2777
|
+
le,
|
|
2818
2778
|
{
|
|
2819
2779
|
placement: "bottom",
|
|
2820
2780
|
overlay: /* @__PURE__ */ s.jsxs(
|
|
@@ -2855,7 +2815,7 @@ function $r(t) {
|
|
|
2855
2815
|
}
|
|
2856
2816
|
),
|
|
2857
2817
|
d.political?.party_id && /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
2858
|
-
|
|
2818
|
+
le,
|
|
2859
2819
|
{
|
|
2860
2820
|
placement: "bottom",
|
|
2861
2821
|
overlay: /* @__PURE__ */ s.jsx(Q, { id: "tooltip-bottom", children: /* @__PURE__ */ s.jsx("div", { children: "Users political party" }) }),
|
|
@@ -2877,11 +2837,11 @@ function $r(t) {
|
|
|
2877
2837
|
padding: "0px"
|
|
2878
2838
|
},
|
|
2879
2839
|
loading: "lazy",
|
|
2880
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` +
|
|
2840
|
+
src: `${process.env.NEXT_PUBLIC_CDN}` + R?.find((y) => y._id == d?.political?.party_id)?.logo,
|
|
2881
2841
|
alt: ""
|
|
2882
2842
|
}
|
|
2883
2843
|
),
|
|
2884
|
-
/* @__PURE__ */ s.jsx("span", { className: "ms-1", children:
|
|
2844
|
+
/* @__PURE__ */ s.jsx("span", { className: "ms-1", children: R?.find((y) => y._id == d.political?.party_id)?.name })
|
|
2885
2845
|
] }) })
|
|
2886
2846
|
}
|
|
2887
2847
|
)
|
|
@@ -2970,9 +2930,9 @@ function $r(t) {
|
|
|
2970
2930
|
{
|
|
2971
2931
|
name: "Proposals Stance",
|
|
2972
2932
|
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: /* @__PURE__ */ s.jsxs("div", { className: "small", children: [
|
|
2973
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
2933
|
+
/* @__PURE__ */ s.jsx("span", { children: ie?.fundamental?.filter((y) => ie?.user_sentiments?.find((V) => V.proposal_id == y._id) ? y : null).length }),
|
|
2974
2934
|
/* @__PURE__ */ s.jsx("span", { className: "px-1", children: "/" }),
|
|
2975
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
2935
|
+
/* @__PURE__ */ s.jsx("span", { children: ie?.fundamental?.length })
|
|
2976
2936
|
] }) })
|
|
2977
2937
|
},
|
|
2978
2938
|
{
|
|
@@ -3013,7 +2973,7 @@ function $r(t) {
|
|
|
3013
2973
|
/* @__PURE__ */ s.jsx("span", { className: "badge bg-primary ms-1", children: D?.populated_public_donations?.count || 0 }),
|
|
3014
2974
|
/* @__PURE__ */ s.jsxs("span", { className: "badge bg-black", children: [
|
|
3015
2975
|
"$",
|
|
3016
|
-
|
|
2976
|
+
et((D?.populated_public_donations.total / 100).toFixed(2))
|
|
3017
2977
|
] })
|
|
3018
2978
|
] })
|
|
3019
2979
|
},
|
|
@@ -3031,7 +2991,7 @@ function $r(t) {
|
|
|
3031
2991
|
// TODO - Make conditional
|
|
3032
2992
|
}
|
|
3033
2993
|
].map((y) => (P, y.name == S, y.name, y.badge, y.name, y.dev ? /* @__PURE__ */ s.jsx(
|
|
3034
|
-
|
|
2994
|
+
Ze,
|
|
3035
2995
|
{
|
|
3036
2996
|
inline: !0,
|
|
3037
2997
|
children: /* @__PURE__ */ s.jsxs(
|
|
@@ -3063,49 +3023,49 @@ function $r(t) {
|
|
|
3063
3023
|
y.name
|
|
3064
3024
|
))) }),
|
|
3065
3025
|
S == "Proposals Stance" && /* @__PURE__ */ s.jsx(
|
|
3066
|
-
|
|
3026
|
+
fr,
|
|
3067
3027
|
{
|
|
3068
3028
|
activeLayoutProposalSentiments: fe,
|
|
3069
3029
|
populated_user: e,
|
|
3070
|
-
usersProposalSentiments:
|
|
3030
|
+
usersProposalSentiments: ie,
|
|
3071
3031
|
setShowFullStanceDetails: I,
|
|
3072
3032
|
showFullStanceDetails: F,
|
|
3073
3033
|
userData: d
|
|
3074
3034
|
}
|
|
3075
3035
|
),
|
|
3076
3036
|
S == "Proposal Comments" && /* @__PURE__ */ s.jsx(
|
|
3077
|
-
|
|
3037
|
+
pr,
|
|
3078
3038
|
{
|
|
3079
3039
|
activeLayoutProposalSentiments: fe
|
|
3080
3040
|
}
|
|
3081
3041
|
),
|
|
3082
3042
|
S == "Proposal Sentiments" && /* @__PURE__ */ s.jsx(
|
|
3083
|
-
|
|
3043
|
+
mr,
|
|
3084
3044
|
{
|
|
3085
3045
|
activeLayoutProposalSentiments: fe
|
|
3086
3046
|
}
|
|
3087
3047
|
),
|
|
3088
3048
|
S == "Proposal Submissions" && /* @__PURE__ */ s.jsx(
|
|
3089
|
-
|
|
3049
|
+
hr,
|
|
3090
3050
|
{
|
|
3091
3051
|
userProposalsSubmitted: D?.populated_public_proposals
|
|
3092
3052
|
}
|
|
3093
3053
|
),
|
|
3094
3054
|
S == "News Comments" && /* @__PURE__ */ s.jsx(
|
|
3095
|
-
|
|
3055
|
+
gr,
|
|
3096
3056
|
{
|
|
3097
3057
|
publicUserData: D
|
|
3098
3058
|
}
|
|
3099
3059
|
),
|
|
3100
3060
|
S == "News Submissions" && /* @__PURE__ */ s.jsx(
|
|
3101
|
-
|
|
3061
|
+
br,
|
|
3102
3062
|
{
|
|
3103
3063
|
publicUserData: D,
|
|
3104
3064
|
userNewsSubmitted: D?.populated_public_news_submissions
|
|
3105
3065
|
}
|
|
3106
3066
|
),
|
|
3107
3067
|
S == "Donations" && /* @__PURE__ */ s.jsx(
|
|
3108
|
-
|
|
3068
|
+
jr,
|
|
3109
3069
|
{
|
|
3110
3070
|
publicUserData: D,
|
|
3111
3071
|
userDonations: D?.populated_public_donations,
|
|
@@ -3113,21 +3073,21 @@ function $r(t) {
|
|
|
3113
3073
|
}
|
|
3114
3074
|
),
|
|
3115
3075
|
S == "Layouts" && /* @__PURE__ */ s.jsx(
|
|
3116
|
-
|
|
3076
|
+
yr,
|
|
3117
3077
|
{
|
|
3118
3078
|
publicUserData: D,
|
|
3119
3079
|
userLayoutsData: D?.populated_public_layouts
|
|
3120
3080
|
}
|
|
3121
3081
|
),
|
|
3122
3082
|
S == "Verifications" && /* @__PURE__ */ s.jsx(
|
|
3123
|
-
|
|
3083
|
+
wr,
|
|
3124
3084
|
{
|
|
3125
3085
|
publicUserData: D,
|
|
3126
3086
|
userData: d
|
|
3127
3087
|
}
|
|
3128
3088
|
),
|
|
3129
3089
|
S == "Achievements" && /* @__PURE__ */ s.jsx(
|
|
3130
|
-
|
|
3090
|
+
_r,
|
|
3131
3091
|
{
|
|
3132
3092
|
publicUserData: D
|
|
3133
3093
|
}
|
|
@@ -3135,9 +3095,9 @@ function $r(t) {
|
|
|
3135
3095
|
] })
|
|
3136
3096
|
] }) }),
|
|
3137
3097
|
/* @__PURE__ */ s.jsxs(Be.Footer, { className: "justify-content-between", children: [
|
|
3138
|
-
|
|
3098
|
+
$?._id == "5e90cc96579a17440c5d7d52" ? /* @__PURE__ */ s.jsxs("span", { children: [
|
|
3139
3099
|
/* @__PURE__ */ s.jsxs(
|
|
3140
|
-
|
|
3100
|
+
Ze,
|
|
3141
3101
|
{
|
|
3142
3102
|
inline: !0,
|
|
3143
3103
|
className: "me-2",
|
|
@@ -3164,7 +3124,7 @@ function $r(t) {
|
|
|
3164
3124
|
P,
|
|
3165
3125
|
{
|
|
3166
3126
|
onClick: () => {
|
|
3167
|
-
ge(),
|
|
3127
|
+
ge(), ee();
|
|
3168
3128
|
},
|
|
3169
3129
|
small: !0,
|
|
3170
3130
|
variant: "warning",
|
|
@@ -3177,7 +3137,7 @@ function $r(t) {
|
|
|
3177
3137
|
),
|
|
3178
3138
|
/* @__PURE__ */ s.jsx("span", { style: { fontSize: "0.8rem" }, children: d?._id })
|
|
3179
3139
|
] }) : /* @__PURE__ */ s.jsx("span", {}),
|
|
3180
|
-
/* @__PURE__ */ s.jsx("div", { className: "justify-content-", children: /* @__PURE__ */ s.jsx(P, { variant: "articles", onClick:
|
|
3140
|
+
/* @__PURE__ */ s.jsx("div", { className: "justify-content-", children: /* @__PURE__ */ s.jsx(P, { variant: "articles", onClick: k, children: "Close" }) })
|
|
3181
3141
|
] })
|
|
3182
3142
|
]
|
|
3183
3143
|
}
|
|
@@ -3185,5 +3145,5 @@ function $r(t) {
|
|
|
3185
3145
|
] });
|
|
3186
3146
|
}
|
|
3187
3147
|
export {
|
|
3188
|
-
|
|
3148
|
+
Dr as default
|
|
3189
3149
|
};
|