@articles-media/articles-dev-box 1.0.6 → 1.0.8
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 +2 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +340 -297
- package/dist/{AdConfirmExitModal-TTHQo9Ou.js → AdConfirmExitModal-CxBj8QjF.js} +1 -1
- package/dist/{AdConfirmExitModal-BRpOrF3L.cjs → AdConfirmExitModal-ZUzQA_M8.cjs} +1 -1
- package/dist/{AdDetailsModal-C3ytLQho.js → AdDetailsModal-CZTFVOLB.js} +7 -7
- package/dist/AdDetailsModal-Cj0Uwazv.cjs +1 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +93 -3832
- package/dist/GlobalBody.cjs +1 -1
- package/dist/GlobalBody.js +1 -1
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +1 -1
- package/dist/ViewUserModal.cjs +1 -0
- package/dist/ViewUserModal.js +3793 -0
- package/dist/{toDate-CDo8dBwb.js → index-DLYx67wi.js} +476 -501
- package/dist/index-Ddv_TnxK.cjs +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -8
- package/dist/toDate-CDU0W0Ek.cjs +1 -0
- package/dist/toDate-DiBqlcLH.js +28 -0
- package/dist/useUserDetails.cjs +1 -0
- package/dist/useUserDetails.js +33 -0
- package/dist/useUserToken.cjs +1 -0
- package/dist/useUserToken.js +22 -0
- package/package.json +18 -3
- package/dist/AdDetailsModal-CHgLXn9p.cjs +0 -1
- package/dist/toDate-CzgAa_PT.cjs +0 -6
package/dist/GameScoreboard.js
CHANGED
|
@@ -1,3773 +1,34 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
function Fe(e, t) {
|
|
13
|
-
const n = Ze(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = K(e, t?.in), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
|
|
14
|
-
return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
|
|
15
|
-
}
|
|
16
|
-
function Je(e, t) {
|
|
17
|
-
return Fe(e, { ...t, weekStartsOn: 1 });
|
|
18
|
-
}
|
|
19
|
-
function ln(e, t) {
|
|
20
|
-
const n = K(e, t?.in), r = n.getFullYear(), a = ve(n, 0);
|
|
21
|
-
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
22
|
-
const i = Je(a), o = ve(n, 0);
|
|
23
|
-
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
24
|
-
const c = Je(o);
|
|
25
|
-
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
|
|
26
|
-
}
|
|
27
|
-
function Wt(e) {
|
|
28
|
-
const t = K(e), n = new Date(
|
|
29
|
-
Date.UTC(
|
|
30
|
-
t.getFullYear(),
|
|
31
|
-
t.getMonth(),
|
|
32
|
-
t.getDate(),
|
|
33
|
-
t.getHours(),
|
|
34
|
-
t.getMinutes(),
|
|
35
|
-
t.getSeconds(),
|
|
36
|
-
t.getMilliseconds()
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
40
|
-
}
|
|
41
|
-
function Vn(e, ...t) {
|
|
42
|
-
const n = ve.bind(
|
|
43
|
-
null,
|
|
44
|
-
t.find((r) => typeof r == "object")
|
|
45
|
-
);
|
|
46
|
-
return t.map(n);
|
|
47
|
-
}
|
|
48
|
-
function At(e, t) {
|
|
49
|
-
const n = K(e, t?.in);
|
|
50
|
-
return n.setHours(0, 0, 0, 0), n;
|
|
51
|
-
}
|
|
52
|
-
function qn(e, t, n) {
|
|
53
|
-
const [r, a] = Vn(
|
|
54
|
-
n?.in,
|
|
55
|
-
e,
|
|
56
|
-
t
|
|
57
|
-
), i = At(r), o = At(a), c = +i - Wt(i), l = +o - Wt(o);
|
|
58
|
-
return Math.round((c - l) / Bn);
|
|
59
|
-
}
|
|
60
|
-
function Xn(e, t) {
|
|
61
|
-
const n = ln(e, t), r = ve(e, 0);
|
|
62
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Je(r);
|
|
63
|
-
}
|
|
64
|
-
function zn(e) {
|
|
65
|
-
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
66
|
-
}
|
|
67
|
-
function Qn(e) {
|
|
68
|
-
return !(!zn(e) && typeof e != "number" || isNaN(+K(e)));
|
|
69
|
-
}
|
|
70
|
-
function Gn(e, t) {
|
|
71
|
-
const n = K(e, t?.in);
|
|
72
|
-
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
73
|
-
}
|
|
74
|
-
const Jn = {
|
|
75
|
-
lessThanXSeconds: {
|
|
76
|
-
one: "less than a second",
|
|
77
|
-
other: "less than {{count}} seconds"
|
|
78
|
-
},
|
|
79
|
-
xSeconds: {
|
|
80
|
-
one: "1 second",
|
|
81
|
-
other: "{{count}} seconds"
|
|
82
|
-
},
|
|
83
|
-
halfAMinute: "half a minute",
|
|
84
|
-
lessThanXMinutes: {
|
|
85
|
-
one: "less than a minute",
|
|
86
|
-
other: "less than {{count}} minutes"
|
|
87
|
-
},
|
|
88
|
-
xMinutes: {
|
|
89
|
-
one: "1 minute",
|
|
90
|
-
other: "{{count}} minutes"
|
|
91
|
-
},
|
|
92
|
-
aboutXHours: {
|
|
93
|
-
one: "about 1 hour",
|
|
94
|
-
other: "about {{count}} hours"
|
|
95
|
-
},
|
|
96
|
-
xHours: {
|
|
97
|
-
one: "1 hour",
|
|
98
|
-
other: "{{count}} hours"
|
|
99
|
-
},
|
|
100
|
-
xDays: {
|
|
101
|
-
one: "1 day",
|
|
102
|
-
other: "{{count}} days"
|
|
103
|
-
},
|
|
104
|
-
aboutXWeeks: {
|
|
105
|
-
one: "about 1 week",
|
|
106
|
-
other: "about {{count}} weeks"
|
|
107
|
-
},
|
|
108
|
-
xWeeks: {
|
|
109
|
-
one: "1 week",
|
|
110
|
-
other: "{{count}} weeks"
|
|
111
|
-
},
|
|
112
|
-
aboutXMonths: {
|
|
113
|
-
one: "about 1 month",
|
|
114
|
-
other: "about {{count}} months"
|
|
115
|
-
},
|
|
116
|
-
xMonths: {
|
|
117
|
-
one: "1 month",
|
|
118
|
-
other: "{{count}} months"
|
|
119
|
-
},
|
|
120
|
-
aboutXYears: {
|
|
121
|
-
one: "about 1 year",
|
|
122
|
-
other: "about {{count}} years"
|
|
123
|
-
},
|
|
124
|
-
xYears: {
|
|
125
|
-
one: "1 year",
|
|
126
|
-
other: "{{count}} years"
|
|
127
|
-
},
|
|
128
|
-
overXYears: {
|
|
129
|
-
one: "over 1 year",
|
|
130
|
-
other: "over {{count}} years"
|
|
131
|
-
},
|
|
132
|
-
almostXYears: {
|
|
133
|
-
one: "almost 1 year",
|
|
134
|
-
other: "almost {{count}} years"
|
|
135
|
-
}
|
|
136
|
-
}, Kn = (e, t, n) => {
|
|
137
|
-
let r;
|
|
138
|
-
const a = Jn[e];
|
|
139
|
-
return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
140
|
-
};
|
|
141
|
-
function st(e) {
|
|
142
|
-
return (t = {}) => {
|
|
143
|
-
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
144
|
-
return e.formats[n] || e.formats[e.defaultWidth];
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
const Zn = {
|
|
148
|
-
full: "EEEE, MMMM do, y",
|
|
149
|
-
long: "MMMM do, y",
|
|
150
|
-
medium: "MMM d, y",
|
|
151
|
-
short: "MM/dd/yyyy"
|
|
152
|
-
}, er = {
|
|
153
|
-
full: "h:mm:ss a zzzz",
|
|
154
|
-
long: "h:mm:ss a z",
|
|
155
|
-
medium: "h:mm:ss a",
|
|
156
|
-
short: "h:mm a"
|
|
157
|
-
}, tr = {
|
|
158
|
-
full: "{{date}} 'at' {{time}}",
|
|
159
|
-
long: "{{date}} 'at' {{time}}",
|
|
160
|
-
medium: "{{date}}, {{time}}",
|
|
161
|
-
short: "{{date}}, {{time}}"
|
|
162
|
-
}, nr = {
|
|
163
|
-
date: st({
|
|
164
|
-
formats: Zn,
|
|
165
|
-
defaultWidth: "full"
|
|
166
|
-
}),
|
|
167
|
-
time: st({
|
|
168
|
-
formats: er,
|
|
169
|
-
defaultWidth: "full"
|
|
170
|
-
}),
|
|
171
|
-
dateTime: st({
|
|
172
|
-
formats: tr,
|
|
173
|
-
defaultWidth: "full"
|
|
174
|
-
})
|
|
175
|
-
}, rr = {
|
|
176
|
-
lastWeek: "'last' eeee 'at' p",
|
|
177
|
-
yesterday: "'yesterday at' p",
|
|
178
|
-
today: "'today at' p",
|
|
179
|
-
tomorrow: "'tomorrow at' p",
|
|
180
|
-
nextWeek: "eeee 'at' p",
|
|
181
|
-
other: "P"
|
|
182
|
-
}, ar = (e, t, n, r) => rr[e];
|
|
183
|
-
function Se(e) {
|
|
184
|
-
return (t, n) => {
|
|
185
|
-
const r = n?.context ? String(n.context) : "standalone";
|
|
186
|
-
let a;
|
|
187
|
-
if (r === "formatting" && e.formattingValues) {
|
|
188
|
-
const o = e.defaultFormattingWidth || e.defaultWidth, c = n?.width ? String(n.width) : o;
|
|
189
|
-
a = e.formattingValues[c] || e.formattingValues[o];
|
|
190
|
-
} else {
|
|
191
|
-
const o = e.defaultWidth, c = n?.width ? String(n.width) : e.defaultWidth;
|
|
192
|
-
a = e.values[c] || e.values[o];
|
|
193
|
-
}
|
|
194
|
-
const i = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
195
|
-
return a[i];
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
const sr = {
|
|
199
|
-
narrow: ["B", "A"],
|
|
200
|
-
abbreviated: ["BC", "AD"],
|
|
201
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
202
|
-
}, ir = {
|
|
203
|
-
narrow: ["1", "2", "3", "4"],
|
|
204
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
205
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
206
|
-
}, or = {
|
|
207
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
208
|
-
abbreviated: [
|
|
209
|
-
"Jan",
|
|
210
|
-
"Feb",
|
|
211
|
-
"Mar",
|
|
212
|
-
"Apr",
|
|
213
|
-
"May",
|
|
214
|
-
"Jun",
|
|
215
|
-
"Jul",
|
|
216
|
-
"Aug",
|
|
217
|
-
"Sep",
|
|
218
|
-
"Oct",
|
|
219
|
-
"Nov",
|
|
220
|
-
"Dec"
|
|
221
|
-
],
|
|
222
|
-
wide: [
|
|
223
|
-
"January",
|
|
224
|
-
"February",
|
|
225
|
-
"March",
|
|
226
|
-
"April",
|
|
227
|
-
"May",
|
|
228
|
-
"June",
|
|
229
|
-
"July",
|
|
230
|
-
"August",
|
|
231
|
-
"September",
|
|
232
|
-
"October",
|
|
233
|
-
"November",
|
|
234
|
-
"December"
|
|
235
|
-
]
|
|
236
|
-
}, cr = {
|
|
237
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
238
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
239
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
240
|
-
wide: [
|
|
241
|
-
"Sunday",
|
|
242
|
-
"Monday",
|
|
243
|
-
"Tuesday",
|
|
244
|
-
"Wednesday",
|
|
245
|
-
"Thursday",
|
|
246
|
-
"Friday",
|
|
247
|
-
"Saturday"
|
|
248
|
-
]
|
|
249
|
-
}, lr = {
|
|
250
|
-
narrow: {
|
|
251
|
-
am: "a",
|
|
252
|
-
pm: "p",
|
|
253
|
-
midnight: "mi",
|
|
254
|
-
noon: "n",
|
|
255
|
-
morning: "morning",
|
|
256
|
-
afternoon: "afternoon",
|
|
257
|
-
evening: "evening",
|
|
258
|
-
night: "night"
|
|
259
|
-
},
|
|
260
|
-
abbreviated: {
|
|
261
|
-
am: "AM",
|
|
262
|
-
pm: "PM",
|
|
263
|
-
midnight: "midnight",
|
|
264
|
-
noon: "noon",
|
|
265
|
-
morning: "morning",
|
|
266
|
-
afternoon: "afternoon",
|
|
267
|
-
evening: "evening",
|
|
268
|
-
night: "night"
|
|
269
|
-
},
|
|
270
|
-
wide: {
|
|
271
|
-
am: "a.m.",
|
|
272
|
-
pm: "p.m.",
|
|
273
|
-
midnight: "midnight",
|
|
274
|
-
noon: "noon",
|
|
275
|
-
morning: "morning",
|
|
276
|
-
afternoon: "afternoon",
|
|
277
|
-
evening: "evening",
|
|
278
|
-
night: "night"
|
|
279
|
-
}
|
|
280
|
-
}, dr = {
|
|
281
|
-
narrow: {
|
|
282
|
-
am: "a",
|
|
283
|
-
pm: "p",
|
|
284
|
-
midnight: "mi",
|
|
285
|
-
noon: "n",
|
|
286
|
-
morning: "in the morning",
|
|
287
|
-
afternoon: "in the afternoon",
|
|
288
|
-
evening: "in the evening",
|
|
289
|
-
night: "at night"
|
|
290
|
-
},
|
|
291
|
-
abbreviated: {
|
|
292
|
-
am: "AM",
|
|
293
|
-
pm: "PM",
|
|
294
|
-
midnight: "midnight",
|
|
295
|
-
noon: "noon",
|
|
296
|
-
morning: "in the morning",
|
|
297
|
-
afternoon: "in the afternoon",
|
|
298
|
-
evening: "in the evening",
|
|
299
|
-
night: "at night"
|
|
300
|
-
},
|
|
301
|
-
wide: {
|
|
302
|
-
am: "a.m.",
|
|
303
|
-
pm: "p.m.",
|
|
304
|
-
midnight: "midnight",
|
|
305
|
-
noon: "noon",
|
|
306
|
-
morning: "in the morning",
|
|
307
|
-
afternoon: "in the afternoon",
|
|
308
|
-
evening: "in the evening",
|
|
309
|
-
night: "at night"
|
|
310
|
-
}
|
|
311
|
-
}, ur = (e, t) => {
|
|
312
|
-
const n = Number(e), r = n % 100;
|
|
313
|
-
if (r > 20 || r < 10)
|
|
314
|
-
switch (r % 10) {
|
|
315
|
-
case 1:
|
|
316
|
-
return n + "st";
|
|
317
|
-
case 2:
|
|
318
|
-
return n + "nd";
|
|
319
|
-
case 3:
|
|
320
|
-
return n + "rd";
|
|
321
|
-
}
|
|
322
|
-
return n + "th";
|
|
323
|
-
}, fr = {
|
|
324
|
-
ordinalNumber: ur,
|
|
325
|
-
era: Se({
|
|
326
|
-
values: sr,
|
|
327
|
-
defaultWidth: "wide"
|
|
328
|
-
}),
|
|
329
|
-
quarter: Se({
|
|
330
|
-
values: ir,
|
|
331
|
-
defaultWidth: "wide",
|
|
332
|
-
argumentCallback: (e) => e - 1
|
|
333
|
-
}),
|
|
334
|
-
month: Se({
|
|
335
|
-
values: or,
|
|
336
|
-
defaultWidth: "wide"
|
|
337
|
-
}),
|
|
338
|
-
day: Se({
|
|
339
|
-
values: cr,
|
|
340
|
-
defaultWidth: "wide"
|
|
341
|
-
}),
|
|
342
|
-
dayPeriod: Se({
|
|
343
|
-
values: lr,
|
|
344
|
-
defaultWidth: "wide",
|
|
345
|
-
formattingValues: dr,
|
|
346
|
-
defaultFormattingWidth: "wide"
|
|
347
|
-
})
|
|
348
|
-
};
|
|
349
|
-
function Ee(e) {
|
|
350
|
-
return (t, n = {}) => {
|
|
351
|
-
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
|
|
352
|
-
if (!i)
|
|
353
|
-
return null;
|
|
354
|
-
const o = i[0], c = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(c) ? pr(c, (m) => m.test(o)) : (
|
|
355
|
-
// [TODO] -- I challenge you to fix the type
|
|
356
|
-
mr(c, (m) => m.test(o))
|
|
357
|
-
);
|
|
358
|
-
let f;
|
|
359
|
-
f = e.valueCallback ? e.valueCallback(l) : l, f = n.valueCallback ? (
|
|
360
|
-
// [TODO] -- I challenge you to fix the type
|
|
361
|
-
n.valueCallback(f)
|
|
362
|
-
) : f;
|
|
363
|
-
const d = t.slice(o.length);
|
|
364
|
-
return { value: f, rest: d };
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
function mr(e, t) {
|
|
368
|
-
for (const n in e)
|
|
369
|
-
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
370
|
-
return n;
|
|
371
|
-
}
|
|
372
|
-
function pr(e, t) {
|
|
373
|
-
for (let n = 0; n < e.length; n++)
|
|
374
|
-
if (t(e[n]))
|
|
375
|
-
return n;
|
|
376
|
-
}
|
|
377
|
-
function hr(e) {
|
|
378
|
-
return (t, n = {}) => {
|
|
379
|
-
const r = t.match(e.matchPattern);
|
|
380
|
-
if (!r) return null;
|
|
381
|
-
const a = r[0], i = t.match(e.parsePattern);
|
|
382
|
-
if (!i) return null;
|
|
383
|
-
let o = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
384
|
-
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
385
|
-
const c = t.slice(a.length);
|
|
386
|
-
return { value: o, rest: c };
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
const vr = /^(\d+)(th|st|nd|rd)?/i, gr = /\d+/i, br = {
|
|
390
|
-
narrow: /^(b|a)/i,
|
|
391
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
392
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
393
|
-
}, yr = {
|
|
394
|
-
any: [/^b/i, /^(a|c)/i]
|
|
395
|
-
}, xr = {
|
|
396
|
-
narrow: /^[1234]/i,
|
|
397
|
-
abbreviated: /^q[1234]/i,
|
|
398
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
399
|
-
}, wr = {
|
|
400
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
401
|
-
}, jr = {
|
|
402
|
-
narrow: /^[jfmasond]/i,
|
|
403
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
404
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
405
|
-
}, Or = {
|
|
406
|
-
narrow: [
|
|
407
|
-
/^j/i,
|
|
408
|
-
/^f/i,
|
|
409
|
-
/^m/i,
|
|
410
|
-
/^a/i,
|
|
411
|
-
/^m/i,
|
|
412
|
-
/^j/i,
|
|
413
|
-
/^j/i,
|
|
414
|
-
/^a/i,
|
|
415
|
-
/^s/i,
|
|
416
|
-
/^o/i,
|
|
417
|
-
/^n/i,
|
|
418
|
-
/^d/i
|
|
419
|
-
],
|
|
420
|
-
any: [
|
|
421
|
-
/^ja/i,
|
|
422
|
-
/^f/i,
|
|
423
|
-
/^mar/i,
|
|
424
|
-
/^ap/i,
|
|
425
|
-
/^may/i,
|
|
426
|
-
/^jun/i,
|
|
427
|
-
/^jul/i,
|
|
428
|
-
/^au/i,
|
|
429
|
-
/^s/i,
|
|
430
|
-
/^o/i,
|
|
431
|
-
/^n/i,
|
|
432
|
-
/^d/i
|
|
433
|
-
]
|
|
434
|
-
}, Nr = {
|
|
435
|
-
narrow: /^[smtwf]/i,
|
|
436
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
437
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
438
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
439
|
-
}, Pr = {
|
|
440
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
441
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
442
|
-
}, Mr = {
|
|
443
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
444
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
445
|
-
}, Dr = {
|
|
446
|
-
any: {
|
|
447
|
-
am: /^a/i,
|
|
448
|
-
pm: /^p/i,
|
|
449
|
-
midnight: /^mi/i,
|
|
450
|
-
noon: /^no/i,
|
|
451
|
-
morning: /morning/i,
|
|
452
|
-
afternoon: /afternoon/i,
|
|
453
|
-
evening: /evening/i,
|
|
454
|
-
night: /night/i
|
|
455
|
-
}
|
|
456
|
-
}, _r = {
|
|
457
|
-
ordinalNumber: hr({
|
|
458
|
-
matchPattern: vr,
|
|
459
|
-
parsePattern: gr,
|
|
460
|
-
valueCallback: (e) => parseInt(e, 10)
|
|
461
|
-
}),
|
|
462
|
-
era: Ee({
|
|
463
|
-
matchPatterns: br,
|
|
464
|
-
defaultMatchWidth: "wide",
|
|
465
|
-
parsePatterns: yr,
|
|
466
|
-
defaultParseWidth: "any"
|
|
467
|
-
}),
|
|
468
|
-
quarter: Ee({
|
|
469
|
-
matchPatterns: xr,
|
|
470
|
-
defaultMatchWidth: "wide",
|
|
471
|
-
parsePatterns: wr,
|
|
472
|
-
defaultParseWidth: "any",
|
|
473
|
-
valueCallback: (e) => e + 1
|
|
474
|
-
}),
|
|
475
|
-
month: Ee({
|
|
476
|
-
matchPatterns: jr,
|
|
477
|
-
defaultMatchWidth: "wide",
|
|
478
|
-
parsePatterns: Or,
|
|
479
|
-
defaultParseWidth: "any"
|
|
480
|
-
}),
|
|
481
|
-
day: Ee({
|
|
482
|
-
matchPatterns: Nr,
|
|
483
|
-
defaultMatchWidth: "wide",
|
|
484
|
-
parsePatterns: Pr,
|
|
485
|
-
defaultParseWidth: "any"
|
|
486
|
-
}),
|
|
487
|
-
dayPeriod: Ee({
|
|
488
|
-
matchPatterns: Mr,
|
|
489
|
-
defaultMatchWidth: "any",
|
|
490
|
-
parsePatterns: Dr,
|
|
491
|
-
defaultParseWidth: "any"
|
|
492
|
-
})
|
|
493
|
-
}, kr = {
|
|
494
|
-
code: "en-US",
|
|
495
|
-
formatDistance: Kn,
|
|
496
|
-
formatLong: nr,
|
|
497
|
-
formatRelative: ar,
|
|
498
|
-
localize: fr,
|
|
499
|
-
match: _r,
|
|
500
|
-
options: {
|
|
501
|
-
weekStartsOn: 0,
|
|
502
|
-
firstWeekContainsDate: 1
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
function Sr(e, t) {
|
|
506
|
-
const n = K(e, t?.in);
|
|
507
|
-
return qn(n, Gn(n)) + 1;
|
|
508
|
-
}
|
|
509
|
-
function Er(e, t) {
|
|
510
|
-
const n = K(e, t?.in), r = +Je(n) - +Xn(n);
|
|
511
|
-
return Math.round(r / cn) + 1;
|
|
512
|
-
}
|
|
513
|
-
function dn(e, t) {
|
|
514
|
-
const n = K(e, t?.in), r = n.getFullYear(), a = Ze(), i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, o = ve(t?.in || e, 0);
|
|
515
|
-
o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
|
|
516
|
-
const c = Fe(o, t), l = ve(t?.in || e, 0);
|
|
517
|
-
l.setFullYear(r, 0, i), l.setHours(0, 0, 0, 0);
|
|
518
|
-
const f = Fe(l, t);
|
|
519
|
-
return +n >= +c ? r + 1 : +n >= +f ? r : r - 1;
|
|
520
|
-
}
|
|
521
|
-
function Cr(e, t) {
|
|
522
|
-
const n = Ze(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = dn(e, t), i = ve(t?.in || e, 0);
|
|
523
|
-
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), Fe(i, t);
|
|
524
|
-
}
|
|
525
|
-
function Tr(e, t) {
|
|
526
|
-
const n = K(e, t?.in), r = +Fe(n, t) - +Cr(n, t);
|
|
527
|
-
return Math.round(r / cn) + 1;
|
|
528
|
-
}
|
|
529
|
-
function M(e, t) {
|
|
530
|
-
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
531
|
-
return n + r;
|
|
532
|
-
}
|
|
533
|
-
const de = {
|
|
534
|
-
// Year
|
|
535
|
-
y(e, t) {
|
|
536
|
-
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
537
|
-
return M(t === "yy" ? r % 100 : r, t.length);
|
|
538
|
-
},
|
|
539
|
-
// Month
|
|
540
|
-
M(e, t) {
|
|
541
|
-
const n = e.getMonth();
|
|
542
|
-
return t === "M" ? String(n + 1) : M(n + 1, 2);
|
|
543
|
-
},
|
|
544
|
-
// Day of the month
|
|
545
|
-
d(e, t) {
|
|
546
|
-
return M(e.getDate(), t.length);
|
|
547
|
-
},
|
|
548
|
-
// AM or PM
|
|
549
|
-
a(e, t) {
|
|
550
|
-
const n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
551
|
-
switch (t) {
|
|
552
|
-
case "a":
|
|
553
|
-
case "aa":
|
|
554
|
-
return n.toUpperCase();
|
|
555
|
-
case "aaa":
|
|
556
|
-
return n;
|
|
557
|
-
case "aaaaa":
|
|
558
|
-
return n[0];
|
|
559
|
-
default:
|
|
560
|
-
return n === "am" ? "a.m." : "p.m.";
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
// Hour [1-12]
|
|
564
|
-
h(e, t) {
|
|
565
|
-
return M(e.getHours() % 12 || 12, t.length);
|
|
566
|
-
},
|
|
567
|
-
// Hour [0-23]
|
|
568
|
-
H(e, t) {
|
|
569
|
-
return M(e.getHours(), t.length);
|
|
570
|
-
},
|
|
571
|
-
// Minute
|
|
572
|
-
m(e, t) {
|
|
573
|
-
return M(e.getMinutes(), t.length);
|
|
574
|
-
},
|
|
575
|
-
// Second
|
|
576
|
-
s(e, t) {
|
|
577
|
-
return M(e.getSeconds(), t.length);
|
|
578
|
-
},
|
|
579
|
-
// Fraction of second
|
|
580
|
-
S(e, t) {
|
|
581
|
-
const n = t.length, r = e.getMilliseconds(), a = Math.trunc(
|
|
582
|
-
r * Math.pow(10, n - 3)
|
|
583
|
-
);
|
|
584
|
-
return M(a, t.length);
|
|
585
|
-
}
|
|
586
|
-
}, je = {
|
|
587
|
-
midnight: "midnight",
|
|
588
|
-
noon: "noon",
|
|
589
|
-
morning: "morning",
|
|
590
|
-
afternoon: "afternoon",
|
|
591
|
-
evening: "evening",
|
|
592
|
-
night: "night"
|
|
593
|
-
}, Rt = {
|
|
594
|
-
// Era
|
|
595
|
-
G: function(e, t, n) {
|
|
596
|
-
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
597
|
-
switch (t) {
|
|
598
|
-
// AD, BC
|
|
599
|
-
case "G":
|
|
600
|
-
case "GG":
|
|
601
|
-
case "GGG":
|
|
602
|
-
return n.era(r, { width: "abbreviated" });
|
|
603
|
-
// A, B
|
|
604
|
-
case "GGGGG":
|
|
605
|
-
return n.era(r, { width: "narrow" });
|
|
606
|
-
default:
|
|
607
|
-
return n.era(r, { width: "wide" });
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
// Year
|
|
611
|
-
y: function(e, t, n) {
|
|
612
|
-
if (t === "yo") {
|
|
613
|
-
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
614
|
-
return n.ordinalNumber(a, { unit: "year" });
|
|
615
|
-
}
|
|
616
|
-
return de.y(e, t);
|
|
617
|
-
},
|
|
618
|
-
// Local week-numbering year
|
|
619
|
-
Y: function(e, t, n, r) {
|
|
620
|
-
const a = dn(e, r), i = a > 0 ? a : 1 - a;
|
|
621
|
-
if (t === "YY") {
|
|
622
|
-
const o = i % 100;
|
|
623
|
-
return M(o, 2);
|
|
624
|
-
}
|
|
625
|
-
return t === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : M(i, t.length);
|
|
626
|
-
},
|
|
627
|
-
// ISO week-numbering year
|
|
628
|
-
R: function(e, t) {
|
|
629
|
-
const n = ln(e);
|
|
630
|
-
return M(n, t.length);
|
|
631
|
-
},
|
|
632
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
633
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
634
|
-
// | Year | `y` | `u` |
|
|
635
|
-
// |------|-----|-----|
|
|
636
|
-
// | AC 1 | 1 | 1 |
|
|
637
|
-
// | BC 1 | 1 | 0 |
|
|
638
|
-
// | BC 2 | 2 | -1 |
|
|
639
|
-
// Also `yy` always returns the last two digits of a year,
|
|
640
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
641
|
-
u: function(e, t) {
|
|
642
|
-
const n = e.getFullYear();
|
|
643
|
-
return M(n, t.length);
|
|
644
|
-
},
|
|
645
|
-
// Quarter
|
|
646
|
-
Q: function(e, t, n) {
|
|
647
|
-
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
648
|
-
switch (t) {
|
|
649
|
-
// 1, 2, 3, 4
|
|
650
|
-
case "Q":
|
|
651
|
-
return String(r);
|
|
652
|
-
// 01, 02, 03, 04
|
|
653
|
-
case "QQ":
|
|
654
|
-
return M(r, 2);
|
|
655
|
-
// 1st, 2nd, 3rd, 4th
|
|
656
|
-
case "Qo":
|
|
657
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
658
|
-
// Q1, Q2, Q3, Q4
|
|
659
|
-
case "QQQ":
|
|
660
|
-
return n.quarter(r, {
|
|
661
|
-
width: "abbreviated",
|
|
662
|
-
context: "formatting"
|
|
663
|
-
});
|
|
664
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
665
|
-
case "QQQQQ":
|
|
666
|
-
return n.quarter(r, {
|
|
667
|
-
width: "narrow",
|
|
668
|
-
context: "formatting"
|
|
669
|
-
});
|
|
670
|
-
default:
|
|
671
|
-
return n.quarter(r, {
|
|
672
|
-
width: "wide",
|
|
673
|
-
context: "formatting"
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
// Stand-alone quarter
|
|
678
|
-
q: function(e, t, n) {
|
|
679
|
-
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
680
|
-
switch (t) {
|
|
681
|
-
// 1, 2, 3, 4
|
|
682
|
-
case "q":
|
|
683
|
-
return String(r);
|
|
684
|
-
// 01, 02, 03, 04
|
|
685
|
-
case "qq":
|
|
686
|
-
return M(r, 2);
|
|
687
|
-
// 1st, 2nd, 3rd, 4th
|
|
688
|
-
case "qo":
|
|
689
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
690
|
-
// Q1, Q2, Q3, Q4
|
|
691
|
-
case "qqq":
|
|
692
|
-
return n.quarter(r, {
|
|
693
|
-
width: "abbreviated",
|
|
694
|
-
context: "standalone"
|
|
695
|
-
});
|
|
696
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
697
|
-
case "qqqqq":
|
|
698
|
-
return n.quarter(r, {
|
|
699
|
-
width: "narrow",
|
|
700
|
-
context: "standalone"
|
|
701
|
-
});
|
|
702
|
-
default:
|
|
703
|
-
return n.quarter(r, {
|
|
704
|
-
width: "wide",
|
|
705
|
-
context: "standalone"
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
// Month
|
|
710
|
-
M: function(e, t, n) {
|
|
711
|
-
const r = e.getMonth();
|
|
712
|
-
switch (t) {
|
|
713
|
-
case "M":
|
|
714
|
-
case "MM":
|
|
715
|
-
return de.M(e, t);
|
|
716
|
-
// 1st, 2nd, ..., 12th
|
|
717
|
-
case "Mo":
|
|
718
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
719
|
-
// Jan, Feb, ..., Dec
|
|
720
|
-
case "MMM":
|
|
721
|
-
return n.month(r, {
|
|
722
|
-
width: "abbreviated",
|
|
723
|
-
context: "formatting"
|
|
724
|
-
});
|
|
725
|
-
// J, F, ..., D
|
|
726
|
-
case "MMMMM":
|
|
727
|
-
return n.month(r, {
|
|
728
|
-
width: "narrow",
|
|
729
|
-
context: "formatting"
|
|
730
|
-
});
|
|
731
|
-
default:
|
|
732
|
-
return n.month(r, { width: "wide", context: "formatting" });
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
// Stand-alone month
|
|
736
|
-
L: function(e, t, n) {
|
|
737
|
-
const r = e.getMonth();
|
|
738
|
-
switch (t) {
|
|
739
|
-
// 1, 2, ..., 12
|
|
740
|
-
case "L":
|
|
741
|
-
return String(r + 1);
|
|
742
|
-
// 01, 02, ..., 12
|
|
743
|
-
case "LL":
|
|
744
|
-
return M(r + 1, 2);
|
|
745
|
-
// 1st, 2nd, ..., 12th
|
|
746
|
-
case "Lo":
|
|
747
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
748
|
-
// Jan, Feb, ..., Dec
|
|
749
|
-
case "LLL":
|
|
750
|
-
return n.month(r, {
|
|
751
|
-
width: "abbreviated",
|
|
752
|
-
context: "standalone"
|
|
753
|
-
});
|
|
754
|
-
// J, F, ..., D
|
|
755
|
-
case "LLLLL":
|
|
756
|
-
return n.month(r, {
|
|
757
|
-
width: "narrow",
|
|
758
|
-
context: "standalone"
|
|
759
|
-
});
|
|
760
|
-
default:
|
|
761
|
-
return n.month(r, { width: "wide", context: "standalone" });
|
|
762
|
-
}
|
|
763
|
-
},
|
|
764
|
-
// Local week of year
|
|
765
|
-
w: function(e, t, n, r) {
|
|
766
|
-
const a = Tr(e, r);
|
|
767
|
-
return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : M(a, t.length);
|
|
768
|
-
},
|
|
769
|
-
// ISO week of year
|
|
770
|
-
I: function(e, t, n) {
|
|
771
|
-
const r = Er(e);
|
|
772
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : M(r, t.length);
|
|
773
|
-
},
|
|
774
|
-
// Day of the month
|
|
775
|
-
d: function(e, t, n) {
|
|
776
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : de.d(e, t);
|
|
777
|
-
},
|
|
778
|
-
// Day of year
|
|
779
|
-
D: function(e, t, n) {
|
|
780
|
-
const r = Sr(e);
|
|
781
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : M(r, t.length);
|
|
782
|
-
},
|
|
783
|
-
// Day of week
|
|
784
|
-
E: function(e, t, n) {
|
|
785
|
-
const r = e.getDay();
|
|
786
|
-
switch (t) {
|
|
787
|
-
// Tue
|
|
788
|
-
case "E":
|
|
789
|
-
case "EE":
|
|
790
|
-
case "EEE":
|
|
791
|
-
return n.day(r, {
|
|
792
|
-
width: "abbreviated",
|
|
793
|
-
context: "formatting"
|
|
794
|
-
});
|
|
795
|
-
// T
|
|
796
|
-
case "EEEEE":
|
|
797
|
-
return n.day(r, {
|
|
798
|
-
width: "narrow",
|
|
799
|
-
context: "formatting"
|
|
800
|
-
});
|
|
801
|
-
// Tu
|
|
802
|
-
case "EEEEEE":
|
|
803
|
-
return n.day(r, {
|
|
804
|
-
width: "short",
|
|
805
|
-
context: "formatting"
|
|
806
|
-
});
|
|
807
|
-
default:
|
|
808
|
-
return n.day(r, {
|
|
809
|
-
width: "wide",
|
|
810
|
-
context: "formatting"
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
// Local day of week
|
|
815
|
-
e: function(e, t, n, r) {
|
|
816
|
-
const a = e.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
817
|
-
switch (t) {
|
|
818
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
819
|
-
case "e":
|
|
820
|
-
return String(i);
|
|
821
|
-
// Padded numerical value
|
|
822
|
-
case "ee":
|
|
823
|
-
return M(i, 2);
|
|
824
|
-
// 1st, 2nd, ..., 7th
|
|
825
|
-
case "eo":
|
|
826
|
-
return n.ordinalNumber(i, { unit: "day" });
|
|
827
|
-
case "eee":
|
|
828
|
-
return n.day(a, {
|
|
829
|
-
width: "abbreviated",
|
|
830
|
-
context: "formatting"
|
|
831
|
-
});
|
|
832
|
-
// T
|
|
833
|
-
case "eeeee":
|
|
834
|
-
return n.day(a, {
|
|
835
|
-
width: "narrow",
|
|
836
|
-
context: "formatting"
|
|
837
|
-
});
|
|
838
|
-
// Tu
|
|
839
|
-
case "eeeeee":
|
|
840
|
-
return n.day(a, {
|
|
841
|
-
width: "short",
|
|
842
|
-
context: "formatting"
|
|
843
|
-
});
|
|
844
|
-
default:
|
|
845
|
-
return n.day(a, {
|
|
846
|
-
width: "wide",
|
|
847
|
-
context: "formatting"
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
},
|
|
851
|
-
// Stand-alone local day of week
|
|
852
|
-
c: function(e, t, n, r) {
|
|
853
|
-
const a = e.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
854
|
-
switch (t) {
|
|
855
|
-
// Numerical value (same as in `e`)
|
|
856
|
-
case "c":
|
|
857
|
-
return String(i);
|
|
858
|
-
// Padded numerical value
|
|
859
|
-
case "cc":
|
|
860
|
-
return M(i, t.length);
|
|
861
|
-
// 1st, 2nd, ..., 7th
|
|
862
|
-
case "co":
|
|
863
|
-
return n.ordinalNumber(i, { unit: "day" });
|
|
864
|
-
case "ccc":
|
|
865
|
-
return n.day(a, {
|
|
866
|
-
width: "abbreviated",
|
|
867
|
-
context: "standalone"
|
|
868
|
-
});
|
|
869
|
-
// T
|
|
870
|
-
case "ccccc":
|
|
871
|
-
return n.day(a, {
|
|
872
|
-
width: "narrow",
|
|
873
|
-
context: "standalone"
|
|
874
|
-
});
|
|
875
|
-
// Tu
|
|
876
|
-
case "cccccc":
|
|
877
|
-
return n.day(a, {
|
|
878
|
-
width: "short",
|
|
879
|
-
context: "standalone"
|
|
880
|
-
});
|
|
881
|
-
default:
|
|
882
|
-
return n.day(a, {
|
|
883
|
-
width: "wide",
|
|
884
|
-
context: "standalone"
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
// ISO day of week
|
|
889
|
-
i: function(e, t, n) {
|
|
890
|
-
const r = e.getDay(), a = r === 0 ? 7 : r;
|
|
891
|
-
switch (t) {
|
|
892
|
-
// 2
|
|
893
|
-
case "i":
|
|
894
|
-
return String(a);
|
|
895
|
-
// 02
|
|
896
|
-
case "ii":
|
|
897
|
-
return M(a, t.length);
|
|
898
|
-
// 2nd
|
|
899
|
-
case "io":
|
|
900
|
-
return n.ordinalNumber(a, { unit: "day" });
|
|
901
|
-
// Tue
|
|
902
|
-
case "iii":
|
|
903
|
-
return n.day(r, {
|
|
904
|
-
width: "abbreviated",
|
|
905
|
-
context: "formatting"
|
|
906
|
-
});
|
|
907
|
-
// T
|
|
908
|
-
case "iiiii":
|
|
909
|
-
return n.day(r, {
|
|
910
|
-
width: "narrow",
|
|
911
|
-
context: "formatting"
|
|
912
|
-
});
|
|
913
|
-
// Tu
|
|
914
|
-
case "iiiiii":
|
|
915
|
-
return n.day(r, {
|
|
916
|
-
width: "short",
|
|
917
|
-
context: "formatting"
|
|
918
|
-
});
|
|
919
|
-
default:
|
|
920
|
-
return n.day(r, {
|
|
921
|
-
width: "wide",
|
|
922
|
-
context: "formatting"
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
},
|
|
926
|
-
// AM or PM
|
|
927
|
-
a: function(e, t, n) {
|
|
928
|
-
const a = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
929
|
-
switch (t) {
|
|
930
|
-
case "a":
|
|
931
|
-
case "aa":
|
|
932
|
-
return n.dayPeriod(a, {
|
|
933
|
-
width: "abbreviated",
|
|
934
|
-
context: "formatting"
|
|
935
|
-
});
|
|
936
|
-
case "aaa":
|
|
937
|
-
return n.dayPeriod(a, {
|
|
938
|
-
width: "abbreviated",
|
|
939
|
-
context: "formatting"
|
|
940
|
-
}).toLowerCase();
|
|
941
|
-
case "aaaaa":
|
|
942
|
-
return n.dayPeriod(a, {
|
|
943
|
-
width: "narrow",
|
|
944
|
-
context: "formatting"
|
|
945
|
-
});
|
|
946
|
-
default:
|
|
947
|
-
return n.dayPeriod(a, {
|
|
948
|
-
width: "wide",
|
|
949
|
-
context: "formatting"
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
// AM, PM, midnight, noon
|
|
954
|
-
b: function(e, t, n) {
|
|
955
|
-
const r = e.getHours();
|
|
956
|
-
let a;
|
|
957
|
-
switch (r === 12 ? a = je.noon : r === 0 ? a = je.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
|
|
958
|
-
case "b":
|
|
959
|
-
case "bb":
|
|
960
|
-
return n.dayPeriod(a, {
|
|
961
|
-
width: "abbreviated",
|
|
962
|
-
context: "formatting"
|
|
963
|
-
});
|
|
964
|
-
case "bbb":
|
|
965
|
-
return n.dayPeriod(a, {
|
|
966
|
-
width: "abbreviated",
|
|
967
|
-
context: "formatting"
|
|
968
|
-
}).toLowerCase();
|
|
969
|
-
case "bbbbb":
|
|
970
|
-
return n.dayPeriod(a, {
|
|
971
|
-
width: "narrow",
|
|
972
|
-
context: "formatting"
|
|
973
|
-
});
|
|
974
|
-
default:
|
|
975
|
-
return n.dayPeriod(a, {
|
|
976
|
-
width: "wide",
|
|
977
|
-
context: "formatting"
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
982
|
-
B: function(e, t, n) {
|
|
983
|
-
const r = e.getHours();
|
|
984
|
-
let a;
|
|
985
|
-
switch (r >= 17 ? a = je.evening : r >= 12 ? a = je.afternoon : r >= 4 ? a = je.morning : a = je.night, t) {
|
|
986
|
-
case "B":
|
|
987
|
-
case "BB":
|
|
988
|
-
case "BBB":
|
|
989
|
-
return n.dayPeriod(a, {
|
|
990
|
-
width: "abbreviated",
|
|
991
|
-
context: "formatting"
|
|
992
|
-
});
|
|
993
|
-
case "BBBBB":
|
|
994
|
-
return n.dayPeriod(a, {
|
|
995
|
-
width: "narrow",
|
|
996
|
-
context: "formatting"
|
|
997
|
-
});
|
|
998
|
-
default:
|
|
999
|
-
return n.dayPeriod(a, {
|
|
1000
|
-
width: "wide",
|
|
1001
|
-
context: "formatting"
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
// Hour [1-12]
|
|
1006
|
-
h: function(e, t, n) {
|
|
1007
|
-
if (t === "ho") {
|
|
1008
|
-
let r = e.getHours() % 12;
|
|
1009
|
-
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1010
|
-
}
|
|
1011
|
-
return de.h(e, t);
|
|
1012
|
-
},
|
|
1013
|
-
// Hour [0-23]
|
|
1014
|
-
H: function(e, t, n) {
|
|
1015
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : de.H(e, t);
|
|
1016
|
-
},
|
|
1017
|
-
// Hour [0-11]
|
|
1018
|
-
K: function(e, t, n) {
|
|
1019
|
-
const r = e.getHours() % 12;
|
|
1020
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : M(r, t.length);
|
|
1021
|
-
},
|
|
1022
|
-
// Hour [1-24]
|
|
1023
|
-
k: function(e, t, n) {
|
|
1024
|
-
let r = e.getHours();
|
|
1025
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : M(r, t.length);
|
|
1026
|
-
},
|
|
1027
|
-
// Minute
|
|
1028
|
-
m: function(e, t, n) {
|
|
1029
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : de.m(e, t);
|
|
1030
|
-
},
|
|
1031
|
-
// Second
|
|
1032
|
-
s: function(e, t, n) {
|
|
1033
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : de.s(e, t);
|
|
1034
|
-
},
|
|
1035
|
-
// Fraction of second
|
|
1036
|
-
S: function(e, t) {
|
|
1037
|
-
return de.S(e, t);
|
|
1038
|
-
},
|
|
1039
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1040
|
-
X: function(e, t, n) {
|
|
1041
|
-
const r = e.getTimezoneOffset();
|
|
1042
|
-
if (r === 0)
|
|
1043
|
-
return "Z";
|
|
1044
|
-
switch (t) {
|
|
1045
|
-
// Hours and optional minutes
|
|
1046
|
-
case "X":
|
|
1047
|
-
return Ft(r);
|
|
1048
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1049
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1050
|
-
// so this token always has the same output as `XX`
|
|
1051
|
-
case "XXXX":
|
|
1052
|
-
case "XX":
|
|
1053
|
-
return pe(r);
|
|
1054
|
-
// Hours and minutes with `:` delimiter
|
|
1055
|
-
default:
|
|
1056
|
-
return pe(r, ":");
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1060
|
-
x: function(e, t, n) {
|
|
1061
|
-
const r = e.getTimezoneOffset();
|
|
1062
|
-
switch (t) {
|
|
1063
|
-
// Hours and optional minutes
|
|
1064
|
-
case "x":
|
|
1065
|
-
return Ft(r);
|
|
1066
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1067
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1068
|
-
// so this token always has the same output as `xx`
|
|
1069
|
-
case "xxxx":
|
|
1070
|
-
case "xx":
|
|
1071
|
-
return pe(r);
|
|
1072
|
-
// Hours and minutes with `:` delimiter
|
|
1073
|
-
default:
|
|
1074
|
-
return pe(r, ":");
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
// Timezone (GMT)
|
|
1078
|
-
O: function(e, t, n) {
|
|
1079
|
-
const r = e.getTimezoneOffset();
|
|
1080
|
-
switch (t) {
|
|
1081
|
-
// Short
|
|
1082
|
-
case "O":
|
|
1083
|
-
case "OO":
|
|
1084
|
-
case "OOO":
|
|
1085
|
-
return "GMT" + $t(r, ":");
|
|
1086
|
-
default:
|
|
1087
|
-
return "GMT" + pe(r, ":");
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
// Timezone (specific non-location)
|
|
1091
|
-
z: function(e, t, n) {
|
|
1092
|
-
const r = e.getTimezoneOffset();
|
|
1093
|
-
switch (t) {
|
|
1094
|
-
// Short
|
|
1095
|
-
case "z":
|
|
1096
|
-
case "zz":
|
|
1097
|
-
case "zzz":
|
|
1098
|
-
return "GMT" + $t(r, ":");
|
|
1099
|
-
default:
|
|
1100
|
-
return "GMT" + pe(r, ":");
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
// Seconds timestamp
|
|
1104
|
-
t: function(e, t, n) {
|
|
1105
|
-
const r = Math.trunc(+e / 1e3);
|
|
1106
|
-
return M(r, t.length);
|
|
1107
|
-
},
|
|
1108
|
-
// Milliseconds timestamp
|
|
1109
|
-
T: function(e, t, n) {
|
|
1110
|
-
return M(+e, t.length);
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
function $t(e, t = "") {
|
|
1114
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), i = r % 60;
|
|
1115
|
-
return i === 0 ? n + String(a) : n + String(a) + t + M(i, 2);
|
|
1116
|
-
}
|
|
1117
|
-
function Ft(e, t) {
|
|
1118
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + M(Math.abs(e) / 60, 2) : pe(e, t);
|
|
1119
|
-
}
|
|
1120
|
-
function pe(e, t = "") {
|
|
1121
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = M(Math.trunc(r / 60), 2), i = M(r % 60, 2);
|
|
1122
|
-
return n + a + t + i;
|
|
1123
|
-
}
|
|
1124
|
-
const Lt = (e, t) => {
|
|
1125
|
-
switch (e) {
|
|
1126
|
-
case "P":
|
|
1127
|
-
return t.date({ width: "short" });
|
|
1128
|
-
case "PP":
|
|
1129
|
-
return t.date({ width: "medium" });
|
|
1130
|
-
case "PPP":
|
|
1131
|
-
return t.date({ width: "long" });
|
|
1132
|
-
default:
|
|
1133
|
-
return t.date({ width: "full" });
|
|
1134
|
-
}
|
|
1135
|
-
}, un = (e, t) => {
|
|
1136
|
-
switch (e) {
|
|
1137
|
-
case "p":
|
|
1138
|
-
return t.time({ width: "short" });
|
|
1139
|
-
case "pp":
|
|
1140
|
-
return t.time({ width: "medium" });
|
|
1141
|
-
case "ppp":
|
|
1142
|
-
return t.time({ width: "long" });
|
|
1143
|
-
default:
|
|
1144
|
-
return t.time({ width: "full" });
|
|
1145
|
-
}
|
|
1146
|
-
}, Wr = (e, t) => {
|
|
1147
|
-
const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1148
|
-
if (!a)
|
|
1149
|
-
return Lt(e, t);
|
|
1150
|
-
let i;
|
|
1151
|
-
switch (r) {
|
|
1152
|
-
case "P":
|
|
1153
|
-
i = t.dateTime({ width: "short" });
|
|
1154
|
-
break;
|
|
1155
|
-
case "PP":
|
|
1156
|
-
i = t.dateTime({ width: "medium" });
|
|
1157
|
-
break;
|
|
1158
|
-
case "PPP":
|
|
1159
|
-
i = t.dateTime({ width: "long" });
|
|
1160
|
-
break;
|
|
1161
|
-
default:
|
|
1162
|
-
i = t.dateTime({ width: "full" });
|
|
1163
|
-
break;
|
|
1164
|
-
}
|
|
1165
|
-
return i.replace("{{date}}", Lt(r, t)).replace("{{time}}", un(a, t));
|
|
1166
|
-
}, Ar = {
|
|
1167
|
-
p: un,
|
|
1168
|
-
P: Wr
|
|
1169
|
-
}, Rr = /^D+$/, $r = /^Y+$/, Fr = ["D", "DD", "YY", "YYYY"];
|
|
1170
|
-
function Lr(e) {
|
|
1171
|
-
return Rr.test(e);
|
|
1172
|
-
}
|
|
1173
|
-
function Br(e) {
|
|
1174
|
-
return $r.test(e);
|
|
1175
|
-
}
|
|
1176
|
-
function Yr(e, t, n) {
|
|
1177
|
-
const r = Ur(e, t, n);
|
|
1178
|
-
if (console.warn(r), Fr.includes(e)) throw new RangeError(r);
|
|
1179
|
-
}
|
|
1180
|
-
function Ur(e, t, n) {
|
|
1181
|
-
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1182
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1183
|
-
}
|
|
1184
|
-
const Ir = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vr = /^'([^]*?)'?$/, qr = /''/g, Xr = /[a-zA-Z]/;
|
|
1185
|
-
function zr(e, t, n) {
|
|
1186
|
-
const r = Ze(), a = r.locale ?? kr, i = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, c = K(e, n?.in);
|
|
1187
|
-
if (!Qn(c))
|
|
1188
|
-
throw new RangeError("Invalid time value");
|
|
1189
|
-
let l = t.match(Hr).map((d) => {
|
|
1190
|
-
const m = d[0];
|
|
1191
|
-
if (m === "p" || m === "P") {
|
|
1192
|
-
const h = Ar[m];
|
|
1193
|
-
return h(d, a.formatLong);
|
|
1194
|
-
}
|
|
1195
|
-
return d;
|
|
1196
|
-
}).join("").match(Ir).map((d) => {
|
|
1197
|
-
if (d === "''")
|
|
1198
|
-
return { isToken: !1, value: "'" };
|
|
1199
|
-
const m = d[0];
|
|
1200
|
-
if (m === "'")
|
|
1201
|
-
return { isToken: !1, value: Qr(d) };
|
|
1202
|
-
if (Rt[m])
|
|
1203
|
-
return { isToken: !0, value: d };
|
|
1204
|
-
if (m.match(Xr))
|
|
1205
|
-
throw new RangeError(
|
|
1206
|
-
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1207
|
-
);
|
|
1208
|
-
return { isToken: !1, value: d };
|
|
1209
|
-
});
|
|
1210
|
-
a.localize.preprocessor && (l = a.localize.preprocessor(c, l));
|
|
1211
|
-
const f = {
|
|
1212
|
-
firstWeekContainsDate: i,
|
|
1213
|
-
weekStartsOn: o,
|
|
1214
|
-
locale: a
|
|
1215
|
-
};
|
|
1216
|
-
return l.map((d) => {
|
|
1217
|
-
if (!d.isToken) return d.value;
|
|
1218
|
-
const m = d.value;
|
|
1219
|
-
(Br(m) || Lr(m)) && Yr(m, t, String(e));
|
|
1220
|
-
const h = Rt[m[0]];
|
|
1221
|
-
return h(c, m, a.localize, f);
|
|
1222
|
-
}).join("");
|
|
1223
|
-
}
|
|
1224
|
-
function Qr(e) {
|
|
1225
|
-
const t = e.match(Vr);
|
|
1226
|
-
return t ? t[1].replace(qr, "'") : e;
|
|
1227
|
-
}
|
|
1228
|
-
function Gr() {
|
|
1229
|
-
const e = z(!0), t = z(() => e.current);
|
|
1230
|
-
return Y(() => (e.current = !0, () => {
|
|
1231
|
-
e.current = !1;
|
|
1232
|
-
}), []), t.current;
|
|
1233
|
-
}
|
|
1234
|
-
const ut = 2 ** 31 - 1;
|
|
1235
|
-
function fn(e, t, n) {
|
|
1236
|
-
const r = n - Date.now();
|
|
1237
|
-
e.current = r <= ut ? setTimeout(t, r) : setTimeout(() => fn(e, t, n), ut);
|
|
1238
|
-
}
|
|
1239
|
-
function Jr() {
|
|
1240
|
-
const e = Gr(), t = z();
|
|
1241
|
-
return Cn(() => clearTimeout(t.current)), $e(() => {
|
|
1242
|
-
const n = () => clearTimeout(t.current);
|
|
1243
|
-
function r(a, i = 0) {
|
|
1244
|
-
e() && (n(), i <= ut ? t.current = setTimeout(a, i) : fn(t, a, Date.now() + i));
|
|
1245
|
-
}
|
|
1246
|
-
return {
|
|
1247
|
-
set: r,
|
|
1248
|
-
clear: n,
|
|
1249
|
-
handleRef: t
|
|
1250
|
-
};
|
|
1251
|
-
}, []);
|
|
1252
|
-
}
|
|
1253
|
-
var it, Bt;
|
|
1254
|
-
function Kr() {
|
|
1255
|
-
if (Bt) return it;
|
|
1256
|
-
Bt = 1;
|
|
1257
|
-
var e = process.env.NODE_ENV !== "production", t = function() {
|
|
1258
|
-
};
|
|
1259
|
-
if (e) {
|
|
1260
|
-
var n = function(a, i) {
|
|
1261
|
-
var o = arguments.length;
|
|
1262
|
-
i = new Array(o > 1 ? o - 1 : 0);
|
|
1263
|
-
for (var c = 1; c < o; c++)
|
|
1264
|
-
i[c - 1] = arguments[c];
|
|
1265
|
-
var l = 0, f = "Warning: " + a.replace(/%s/g, function() {
|
|
1266
|
-
return i[l++];
|
|
1267
|
-
});
|
|
1268
|
-
typeof console < "u" && console.error(f);
|
|
1269
|
-
try {
|
|
1270
|
-
throw new Error(f);
|
|
1271
|
-
} catch {
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
t = function(r, a, i) {
|
|
1275
|
-
var o = arguments.length;
|
|
1276
|
-
i = new Array(o > 2 ? o - 2 : 0);
|
|
1277
|
-
for (var c = 2; c < o; c++)
|
|
1278
|
-
i[c - 2] = arguments[c];
|
|
1279
|
-
if (a === void 0)
|
|
1280
|
-
throw new Error(
|
|
1281
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
1282
|
-
);
|
|
1283
|
-
r || n.apply(null, [a].concat(i));
|
|
1284
|
-
};
|
|
1285
|
-
}
|
|
1286
|
-
return it = t, it;
|
|
1287
|
-
}
|
|
1288
|
-
var Zr = Kr();
|
|
1289
|
-
const mn = /* @__PURE__ */ Un(Zr);
|
|
1290
|
-
function ea(e, t, n) {
|
|
1291
|
-
var r = z(e !== void 0), a = S(t), i = a[0], o = a[1], c = e !== void 0, l = r.current;
|
|
1292
|
-
return r.current = c, !c && l && i !== t && o(t), [c ? e : i, X(function(f) {
|
|
1293
|
-
for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), h = 1; h < d; h++)
|
|
1294
|
-
m[h - 1] = arguments[h];
|
|
1295
|
-
n && n.apply(void 0, [f].concat(m)), o(f);
|
|
1296
|
-
}, [n])];
|
|
1297
|
-
}
|
|
1298
|
-
function Yt() {
|
|
1299
|
-
return S(null);
|
|
1300
|
-
}
|
|
1301
|
-
var Ut = Object.prototype.hasOwnProperty;
|
|
1302
|
-
function It(e, t, n) {
|
|
1303
|
-
for (n of e.keys())
|
|
1304
|
-
if (We(n, t)) return n;
|
|
1305
|
-
}
|
|
1306
|
-
function We(e, t) {
|
|
1307
|
-
var n, r, a;
|
|
1308
|
-
if (e === t) return !0;
|
|
1309
|
-
if (e && t && (n = e.constructor) === t.constructor) {
|
|
1310
|
-
if (n === Date) return e.getTime() === t.getTime();
|
|
1311
|
-
if (n === RegExp) return e.toString() === t.toString();
|
|
1312
|
-
if (n === Array) {
|
|
1313
|
-
if ((r = e.length) === t.length)
|
|
1314
|
-
for (; r-- && We(e[r], t[r]); ) ;
|
|
1315
|
-
return r === -1;
|
|
1316
|
-
}
|
|
1317
|
-
if (n === Set) {
|
|
1318
|
-
if (e.size !== t.size)
|
|
1319
|
-
return !1;
|
|
1320
|
-
for (r of e)
|
|
1321
|
-
if (a = r, a && typeof a == "object" && (a = It(t, a), !a) || !t.has(a)) return !1;
|
|
1322
|
-
return !0;
|
|
1323
|
-
}
|
|
1324
|
-
if (n === Map) {
|
|
1325
|
-
if (e.size !== t.size)
|
|
1326
|
-
return !1;
|
|
1327
|
-
for (r of e)
|
|
1328
|
-
if (a = r[0], a && typeof a == "object" && (a = It(t, a), !a) || !We(r[1], t.get(a)))
|
|
1329
|
-
return !1;
|
|
1330
|
-
return !0;
|
|
1331
|
-
}
|
|
1332
|
-
if (n === ArrayBuffer)
|
|
1333
|
-
e = new Uint8Array(e), t = new Uint8Array(t);
|
|
1334
|
-
else if (n === DataView) {
|
|
1335
|
-
if ((r = e.byteLength) === t.byteLength)
|
|
1336
|
-
for (; r-- && e.getInt8(r) === t.getInt8(r); ) ;
|
|
1337
|
-
return r === -1;
|
|
1338
|
-
}
|
|
1339
|
-
if (ArrayBuffer.isView(e)) {
|
|
1340
|
-
if ((r = e.byteLength) === t.byteLength)
|
|
1341
|
-
for (; r-- && e[r] === t[r]; ) ;
|
|
1342
|
-
return r === -1;
|
|
1343
|
-
}
|
|
1344
|
-
if (!n || typeof e == "object") {
|
|
1345
|
-
r = 0;
|
|
1346
|
-
for (n in e)
|
|
1347
|
-
if (Ut.call(e, n) && ++r && !Ut.call(t, n) || !(n in t) || !We(e[n], t[n])) return !1;
|
|
1348
|
-
return Object.keys(t).length === r;
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
return e !== e && t !== t;
|
|
1352
|
-
}
|
|
1353
|
-
function ta(e) {
|
|
1354
|
-
const t = Tn();
|
|
1355
|
-
return [e[0], X((n) => {
|
|
1356
|
-
if (t())
|
|
1357
|
-
return e[1](n);
|
|
1358
|
-
}, [t, e[1]])];
|
|
1359
|
-
}
|
|
1360
|
-
var U = "top", Q = "bottom", G = "right", I = "left", ht = "auto", Ye = [U, Q, G, I], Ne = "start", Le = "end", na = "clippingParents", pn = "viewport", Ce = "popper", ra = "reference", Ht = /* @__PURE__ */ Ye.reduce(function(e, t) {
|
|
1361
|
-
return e.concat([t + "-" + Ne, t + "-" + Le]);
|
|
1362
|
-
}, []), hn = /* @__PURE__ */ [].concat(Ye, [ht]).reduce(function(e, t) {
|
|
1363
|
-
return e.concat([t, t + "-" + Ne, t + "-" + Le]);
|
|
1364
|
-
}, []), aa = "beforeRead", sa = "read", ia = "afterRead", oa = "beforeMain", ca = "main", la = "afterMain", da = "beforeWrite", ua = "write", fa = "afterWrite", ma = [aa, sa, ia, oa, ca, la, da, ua, fa];
|
|
1365
|
-
function ee(e) {
|
|
1366
|
-
return e.split("-")[0];
|
|
1367
|
-
}
|
|
1368
|
-
function H(e) {
|
|
1369
|
-
if (e == null)
|
|
1370
|
-
return window;
|
|
1371
|
-
if (e.toString() !== "[object Window]") {
|
|
1372
|
-
var t = e.ownerDocument;
|
|
1373
|
-
return t && t.defaultView || window;
|
|
1374
|
-
}
|
|
1375
|
-
return e;
|
|
1376
|
-
}
|
|
1377
|
-
function ge(e) {
|
|
1378
|
-
var t = H(e).Element;
|
|
1379
|
-
return e instanceof t || e instanceof Element;
|
|
1380
|
-
}
|
|
1381
|
-
function te(e) {
|
|
1382
|
-
var t = H(e).HTMLElement;
|
|
1383
|
-
return e instanceof t || e instanceof HTMLElement;
|
|
1384
|
-
}
|
|
1385
|
-
function vt(e) {
|
|
1386
|
-
if (typeof ShadowRoot > "u")
|
|
1387
|
-
return !1;
|
|
1388
|
-
var t = H(e).ShadowRoot;
|
|
1389
|
-
return e instanceof t || e instanceof ShadowRoot;
|
|
1390
|
-
}
|
|
1391
|
-
var he = Math.max, Ke = Math.min, Pe = Math.round;
|
|
1392
|
-
function ft() {
|
|
1393
|
-
var e = navigator.userAgentData;
|
|
1394
|
-
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
1395
|
-
return t.brand + "/" + t.version;
|
|
1396
|
-
}).join(" ") : navigator.userAgent;
|
|
1397
|
-
}
|
|
1398
|
-
function vn() {
|
|
1399
|
-
return !/^((?!chrome|android).)*safari/i.test(ft());
|
|
1400
|
-
}
|
|
1401
|
-
function Me(e, t, n) {
|
|
1402
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1403
|
-
var r = e.getBoundingClientRect(), a = 1, i = 1;
|
|
1404
|
-
t && te(e) && (a = e.offsetWidth > 0 && Pe(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Pe(r.height) / e.offsetHeight || 1);
|
|
1405
|
-
var o = ge(e) ? H(e) : window, c = o.visualViewport, l = !vn() && n, f = (r.left + (l && c ? c.offsetLeft : 0)) / a, d = (r.top + (l && c ? c.offsetTop : 0)) / i, m = r.width / a, h = r.height / i;
|
|
1406
|
-
return {
|
|
1407
|
-
width: m,
|
|
1408
|
-
height: h,
|
|
1409
|
-
top: d,
|
|
1410
|
-
right: f + m,
|
|
1411
|
-
bottom: d + h,
|
|
1412
|
-
left: f,
|
|
1413
|
-
x: f,
|
|
1414
|
-
y: d
|
|
1415
|
-
};
|
|
1416
|
-
}
|
|
1417
|
-
function gt(e) {
|
|
1418
|
-
var t = Me(e), n = e.offsetWidth, r = e.offsetHeight;
|
|
1419
|
-
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
1420
|
-
x: e.offsetLeft,
|
|
1421
|
-
y: e.offsetTop,
|
|
1422
|
-
width: n,
|
|
1423
|
-
height: r
|
|
1424
|
-
};
|
|
1425
|
-
}
|
|
1426
|
-
function gn(e, t) {
|
|
1427
|
-
var n = t.getRootNode && t.getRootNode();
|
|
1428
|
-
if (e.contains(t))
|
|
1429
|
-
return !0;
|
|
1430
|
-
if (n && vt(n)) {
|
|
1431
|
-
var r = t;
|
|
1432
|
-
do {
|
|
1433
|
-
if (r && e.isSameNode(r))
|
|
1434
|
-
return !0;
|
|
1435
|
-
r = r.parentNode || r.host;
|
|
1436
|
-
} while (r);
|
|
1437
|
-
}
|
|
1438
|
-
return !1;
|
|
1439
|
-
}
|
|
1440
|
-
function fe(e) {
|
|
1441
|
-
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
1442
|
-
}
|
|
1443
|
-
function oe(e) {
|
|
1444
|
-
return H(e).getComputedStyle(e);
|
|
1445
|
-
}
|
|
1446
|
-
function pa(e) {
|
|
1447
|
-
return ["table", "td", "th"].indexOf(fe(e)) >= 0;
|
|
1448
|
-
}
|
|
1449
|
-
function me(e) {
|
|
1450
|
-
return ((ge(e) ? e.ownerDocument : (
|
|
1451
|
-
// $FlowFixMe[prop-missing]
|
|
1452
|
-
e.document
|
|
1453
|
-
)) || window.document).documentElement;
|
|
1454
|
-
}
|
|
1455
|
-
function et(e) {
|
|
1456
|
-
return fe(e) === "html" ? e : (
|
|
1457
|
-
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1458
|
-
// $FlowFixMe[incompatible-return]
|
|
1459
|
-
// $FlowFixMe[prop-missing]
|
|
1460
|
-
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
1461
|
-
e.parentNode || // DOM Element detected
|
|
1462
|
-
(vt(e) ? e.host : null) || // ShadowRoot detected
|
|
1463
|
-
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1464
|
-
me(e)
|
|
1465
|
-
);
|
|
1466
|
-
}
|
|
1467
|
-
function Vt(e) {
|
|
1468
|
-
return !te(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
1469
|
-
oe(e).position === "fixed" ? null : e.offsetParent;
|
|
1470
|
-
}
|
|
1471
|
-
function ha(e) {
|
|
1472
|
-
var t = /firefox/i.test(ft()), n = /Trident/i.test(ft());
|
|
1473
|
-
if (n && te(e)) {
|
|
1474
|
-
var r = oe(e);
|
|
1475
|
-
if (r.position === "fixed")
|
|
1476
|
-
return null;
|
|
1477
|
-
}
|
|
1478
|
-
var a = et(e);
|
|
1479
|
-
for (vt(a) && (a = a.host); te(a) && ["html", "body"].indexOf(fe(a)) < 0; ) {
|
|
1480
|
-
var i = oe(a);
|
|
1481
|
-
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
1482
|
-
return a;
|
|
1483
|
-
a = a.parentNode;
|
|
1484
|
-
}
|
|
1485
|
-
return null;
|
|
1486
|
-
}
|
|
1487
|
-
function Ue(e) {
|
|
1488
|
-
for (var t = H(e), n = Vt(e); n && pa(n) && oe(n).position === "static"; )
|
|
1489
|
-
n = Vt(n);
|
|
1490
|
-
return n && (fe(n) === "html" || fe(n) === "body" && oe(n).position === "static") ? t : n || ha(e) || t;
|
|
1491
|
-
}
|
|
1492
|
-
function bt(e) {
|
|
1493
|
-
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
1494
|
-
}
|
|
1495
|
-
function Ae(e, t, n) {
|
|
1496
|
-
return he(e, Ke(t, n));
|
|
1497
|
-
}
|
|
1498
|
-
function va(e, t, n) {
|
|
1499
|
-
var r = Ae(e, t, n);
|
|
1500
|
-
return r > n ? n : r;
|
|
1501
|
-
}
|
|
1502
|
-
function bn() {
|
|
1503
|
-
return {
|
|
1504
|
-
top: 0,
|
|
1505
|
-
right: 0,
|
|
1506
|
-
bottom: 0,
|
|
1507
|
-
left: 0
|
|
1508
|
-
};
|
|
1509
|
-
}
|
|
1510
|
-
function yn(e) {
|
|
1511
|
-
return Object.assign({}, bn(), e);
|
|
1512
|
-
}
|
|
1513
|
-
function xn(e, t) {
|
|
1514
|
-
return t.reduce(function(n, r) {
|
|
1515
|
-
return n[r] = e, n;
|
|
1516
|
-
}, {});
|
|
1517
|
-
}
|
|
1518
|
-
var ga = function(t, n) {
|
|
1519
|
-
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
1520
|
-
placement: n.placement
|
|
1521
|
-
})) : t, yn(typeof t != "number" ? t : xn(t, Ye));
|
|
1522
|
-
};
|
|
1523
|
-
function ba(e) {
|
|
1524
|
-
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, c = ee(n.placement), l = bt(c), f = [I, G].indexOf(c) >= 0, d = f ? "height" : "width";
|
|
1525
|
-
if (!(!i || !o)) {
|
|
1526
|
-
var m = ga(a.padding, n), h = gt(i), u = l === "y" ? U : I, v = l === "y" ? Q : G, b = n.rects.reference[d] + n.rects.reference[l] - o[l] - n.rects.popper[d], p = o[l] - n.rects.reference[l], w = Ue(i), g = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, N = b / 2 - p / 2, y = m[u], O = g - h[d] - m[v], j = g / 2 - h[d] / 2 + N, P = Ae(y, j, O), E = l;
|
|
1527
|
-
n.modifiersData[r] = (t = {}, t[E] = P, t.centerOffset = P - j, t);
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
function ya(e) {
|
|
1531
|
-
var t = e.state, n = e.options, r = n.element, a = r === void 0 ? "[data-popper-arrow]" : r;
|
|
1532
|
-
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || gn(t.elements.popper, a) && (t.elements.arrow = a));
|
|
1533
|
-
}
|
|
1534
|
-
const xa = {
|
|
1535
|
-
name: "arrow",
|
|
1536
|
-
enabled: !0,
|
|
1537
|
-
phase: "main",
|
|
1538
|
-
fn: ba,
|
|
1539
|
-
effect: ya,
|
|
1540
|
-
requires: ["popperOffsets"],
|
|
1541
|
-
requiresIfExists: ["preventOverflow"]
|
|
1542
|
-
};
|
|
1543
|
-
function De(e) {
|
|
1544
|
-
return e.split("-")[1];
|
|
1545
|
-
}
|
|
1546
|
-
var wa = {
|
|
1547
|
-
top: "auto",
|
|
1548
|
-
right: "auto",
|
|
1549
|
-
bottom: "auto",
|
|
1550
|
-
left: "auto"
|
|
1551
|
-
};
|
|
1552
|
-
function ja(e, t) {
|
|
1553
|
-
var n = e.x, r = e.y, a = t.devicePixelRatio || 1;
|
|
1554
|
-
return {
|
|
1555
|
-
x: Pe(n * a) / a || 0,
|
|
1556
|
-
y: Pe(r * a) / a || 0
|
|
1557
|
-
};
|
|
1558
|
-
}
|
|
1559
|
-
function qt(e) {
|
|
1560
|
-
var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, o = e.offsets, c = e.position, l = e.gpuAcceleration, f = e.adaptive, d = e.roundOffsets, m = e.isFixed, h = o.x, u = h === void 0 ? 0 : h, v = o.y, b = v === void 0 ? 0 : v, p = typeof d == "function" ? d({
|
|
1561
|
-
x: u,
|
|
1562
|
-
y: b
|
|
1563
|
-
}) : {
|
|
1564
|
-
x: u,
|
|
1565
|
-
y: b
|
|
1566
|
-
};
|
|
1567
|
-
u = p.x, b = p.y;
|
|
1568
|
-
var w = o.hasOwnProperty("x"), g = o.hasOwnProperty("y"), N = I, y = U, O = window;
|
|
1569
|
-
if (f) {
|
|
1570
|
-
var j = Ue(n), P = "clientHeight", E = "clientWidth";
|
|
1571
|
-
if (j === H(n) && (j = me(n), oe(j).position !== "static" && c === "absolute" && (P = "scrollHeight", E = "scrollWidth")), j = j, a === U || (a === I || a === G) && i === Le) {
|
|
1572
|
-
y = Q;
|
|
1573
|
-
var C = m && j === O && O.visualViewport ? O.visualViewport.height : (
|
|
1574
|
-
// $FlowFixMe[prop-missing]
|
|
1575
|
-
j[P]
|
|
1576
|
-
);
|
|
1577
|
-
b -= C - r.height, b *= l ? 1 : -1;
|
|
1578
|
-
}
|
|
1579
|
-
if (a === I || (a === U || a === Q) && i === Le) {
|
|
1580
|
-
N = G;
|
|
1581
|
-
var D = m && j === O && O.visualViewport ? O.visualViewport.width : (
|
|
1582
|
-
// $FlowFixMe[prop-missing]
|
|
1583
|
-
j[E]
|
|
1584
|
-
);
|
|
1585
|
-
u -= D - r.width, u *= l ? 1 : -1;
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
var k = Object.assign({
|
|
1589
|
-
position: c
|
|
1590
|
-
}, f && wa), W = d === !0 ? ja({
|
|
1591
|
-
x: u,
|
|
1592
|
-
y: b
|
|
1593
|
-
}, H(n)) : {
|
|
1594
|
-
x: u,
|
|
1595
|
-
y: b
|
|
1596
|
-
};
|
|
1597
|
-
if (u = W.x, b = W.y, l) {
|
|
1598
|
-
var _;
|
|
1599
|
-
return Object.assign({}, k, (_ = {}, _[y] = g ? "0" : "", _[N] = w ? "0" : "", _.transform = (O.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + b + "px)" : "translate3d(" + u + "px, " + b + "px, 0)", _));
|
|
1600
|
-
}
|
|
1601
|
-
return Object.assign({}, k, (t = {}, t[y] = g ? b + "px" : "", t[N] = w ? u + "px" : "", t.transform = "", t));
|
|
1602
|
-
}
|
|
1603
|
-
function Oa(e) {
|
|
1604
|
-
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, i = n.adaptive, o = i === void 0 ? !0 : i, c = n.roundOffsets, l = c === void 0 ? !0 : c, f = {
|
|
1605
|
-
placement: ee(t.placement),
|
|
1606
|
-
variation: De(t.placement),
|
|
1607
|
-
popper: t.elements.popper,
|
|
1608
|
-
popperRect: t.rects.popper,
|
|
1609
|
-
gpuAcceleration: a,
|
|
1610
|
-
isFixed: t.options.strategy === "fixed"
|
|
1611
|
-
};
|
|
1612
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, qt(Object.assign({}, f, {
|
|
1613
|
-
offsets: t.modifiersData.popperOffsets,
|
|
1614
|
-
position: t.options.strategy,
|
|
1615
|
-
adaptive: o,
|
|
1616
|
-
roundOffsets: l
|
|
1617
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, qt(Object.assign({}, f, {
|
|
1618
|
-
offsets: t.modifiersData.arrow,
|
|
1619
|
-
position: "absolute",
|
|
1620
|
-
adaptive: !1,
|
|
1621
|
-
roundOffsets: l
|
|
1622
|
-
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1623
|
-
"data-popper-placement": t.placement
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
const Na = {
|
|
1627
|
-
name: "computeStyles",
|
|
1628
|
-
enabled: !0,
|
|
1629
|
-
phase: "beforeWrite",
|
|
1630
|
-
fn: Oa,
|
|
1631
|
-
data: {}
|
|
1632
|
-
};
|
|
1633
|
-
var qe = {
|
|
1634
|
-
passive: !0
|
|
1635
|
-
};
|
|
1636
|
-
function Pa(e) {
|
|
1637
|
-
var t = e.state, n = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, o = r.resize, c = o === void 0 ? !0 : o, l = H(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
1638
|
-
return i && f.forEach(function(d) {
|
|
1639
|
-
d.addEventListener("scroll", n.update, qe);
|
|
1640
|
-
}), c && l.addEventListener("resize", n.update, qe), function() {
|
|
1641
|
-
i && f.forEach(function(d) {
|
|
1642
|
-
d.removeEventListener("scroll", n.update, qe);
|
|
1643
|
-
}), c && l.removeEventListener("resize", n.update, qe);
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
const Ma = {
|
|
1647
|
-
name: "eventListeners",
|
|
1648
|
-
enabled: !0,
|
|
1649
|
-
phase: "write",
|
|
1650
|
-
fn: function() {
|
|
1651
|
-
},
|
|
1652
|
-
effect: Pa,
|
|
1653
|
-
data: {}
|
|
1654
|
-
};
|
|
1655
|
-
var Da = {
|
|
1656
|
-
left: "right",
|
|
1657
|
-
right: "left",
|
|
1658
|
-
bottom: "top",
|
|
1659
|
-
top: "bottom"
|
|
1660
|
-
};
|
|
1661
|
-
function ze(e) {
|
|
1662
|
-
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1663
|
-
return Da[t];
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
var _a = {
|
|
1667
|
-
start: "end",
|
|
1668
|
-
end: "start"
|
|
1669
|
-
};
|
|
1670
|
-
function Xt(e) {
|
|
1671
|
-
return e.replace(/start|end/g, function(t) {
|
|
1672
|
-
return _a[t];
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
function yt(e) {
|
|
1676
|
-
var t = H(e), n = t.pageXOffset, r = t.pageYOffset;
|
|
1677
|
-
return {
|
|
1678
|
-
scrollLeft: n,
|
|
1679
|
-
scrollTop: r
|
|
1680
|
-
};
|
|
1681
|
-
}
|
|
1682
|
-
function xt(e) {
|
|
1683
|
-
return Me(me(e)).left + yt(e).scrollLeft;
|
|
1684
|
-
}
|
|
1685
|
-
function ka(e, t) {
|
|
1686
|
-
var n = H(e), r = me(e), a = n.visualViewport, i = r.clientWidth, o = r.clientHeight, c = 0, l = 0;
|
|
1687
|
-
if (a) {
|
|
1688
|
-
i = a.width, o = a.height;
|
|
1689
|
-
var f = vn();
|
|
1690
|
-
(f || !f && t === "fixed") && (c = a.offsetLeft, l = a.offsetTop);
|
|
1691
|
-
}
|
|
1692
|
-
return {
|
|
1693
|
-
width: i,
|
|
1694
|
-
height: o,
|
|
1695
|
-
x: c + xt(e),
|
|
1696
|
-
y: l
|
|
1697
|
-
};
|
|
1698
|
-
}
|
|
1699
|
-
function Sa(e) {
|
|
1700
|
-
var t, n = me(e), r = yt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = he(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), o = he(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), c = -r.scrollLeft + xt(e), l = -r.scrollTop;
|
|
1701
|
-
return oe(a || n).direction === "rtl" && (c += he(n.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
1702
|
-
width: i,
|
|
1703
|
-
height: o,
|
|
1704
|
-
x: c,
|
|
1705
|
-
y: l
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
|
-
function wt(e) {
|
|
1709
|
-
var t = oe(e), n = t.overflow, r = t.overflowX, a = t.overflowY;
|
|
1710
|
-
return /auto|scroll|overlay|hidden/.test(n + a + r);
|
|
1711
|
-
}
|
|
1712
|
-
function wn(e) {
|
|
1713
|
-
return ["html", "body", "#document"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : te(e) && wt(e) ? e : wn(et(e));
|
|
1714
|
-
}
|
|
1715
|
-
function Re(e, t) {
|
|
1716
|
-
var n;
|
|
1717
|
-
t === void 0 && (t = []);
|
|
1718
|
-
var r = wn(e), a = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i = H(r), o = a ? [i].concat(i.visualViewport || [], wt(r) ? r : []) : r, c = t.concat(o);
|
|
1719
|
-
return a ? c : (
|
|
1720
|
-
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1721
|
-
c.concat(Re(et(o)))
|
|
1722
|
-
);
|
|
1723
|
-
}
|
|
1724
|
-
function mt(e) {
|
|
1725
|
-
return Object.assign({}, e, {
|
|
1726
|
-
left: e.x,
|
|
1727
|
-
top: e.y,
|
|
1728
|
-
right: e.x + e.width,
|
|
1729
|
-
bottom: e.y + e.height
|
|
1730
|
-
});
|
|
1731
|
-
}
|
|
1732
|
-
function Ea(e, t) {
|
|
1733
|
-
var n = Me(e, !1, t === "fixed");
|
|
1734
|
-
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
1735
|
-
}
|
|
1736
|
-
function zt(e, t, n) {
|
|
1737
|
-
return t === pn ? mt(ka(e, n)) : ge(t) ? Ea(t, n) : mt(Sa(me(e)));
|
|
1738
|
-
}
|
|
1739
|
-
function Ca(e) {
|
|
1740
|
-
var t = Re(et(e)), n = ["absolute", "fixed"].indexOf(oe(e).position) >= 0, r = n && te(e) ? Ue(e) : e;
|
|
1741
|
-
return ge(r) ? t.filter(function(a) {
|
|
1742
|
-
return ge(a) && gn(a, r) && fe(a) !== "body";
|
|
1743
|
-
}) : [];
|
|
1744
|
-
}
|
|
1745
|
-
function Ta(e, t, n, r) {
|
|
1746
|
-
var a = t === "clippingParents" ? Ca(e) : [].concat(t), i = [].concat(a, [n]), o = i[0], c = i.reduce(function(l, f) {
|
|
1747
|
-
var d = zt(e, f, r);
|
|
1748
|
-
return l.top = he(d.top, l.top), l.right = Ke(d.right, l.right), l.bottom = Ke(d.bottom, l.bottom), l.left = he(d.left, l.left), l;
|
|
1749
|
-
}, zt(e, o, r));
|
|
1750
|
-
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
1751
|
-
}
|
|
1752
|
-
function jn(e) {
|
|
1753
|
-
var t = e.reference, n = e.element, r = e.placement, a = r ? ee(r) : null, i = r ? De(r) : null, o = t.x + t.width / 2 - n.width / 2, c = t.y + t.height / 2 - n.height / 2, l;
|
|
1754
|
-
switch (a) {
|
|
1755
|
-
case U:
|
|
1756
|
-
l = {
|
|
1757
|
-
x: o,
|
|
1758
|
-
y: t.y - n.height
|
|
1759
|
-
};
|
|
1760
|
-
break;
|
|
1761
|
-
case Q:
|
|
1762
|
-
l = {
|
|
1763
|
-
x: o,
|
|
1764
|
-
y: t.y + t.height
|
|
1765
|
-
};
|
|
1766
|
-
break;
|
|
1767
|
-
case G:
|
|
1768
|
-
l = {
|
|
1769
|
-
x: t.x + t.width,
|
|
1770
|
-
y: c
|
|
1771
|
-
};
|
|
1772
|
-
break;
|
|
1773
|
-
case I:
|
|
1774
|
-
l = {
|
|
1775
|
-
x: t.x - n.width,
|
|
1776
|
-
y: c
|
|
1777
|
-
};
|
|
1778
|
-
break;
|
|
1779
|
-
default:
|
|
1780
|
-
l = {
|
|
1781
|
-
x: t.x,
|
|
1782
|
-
y: t.y
|
|
1783
|
-
};
|
|
1784
|
-
}
|
|
1785
|
-
var f = a ? bt(a) : null;
|
|
1786
|
-
if (f != null) {
|
|
1787
|
-
var d = f === "y" ? "height" : "width";
|
|
1788
|
-
switch (i) {
|
|
1789
|
-
case Ne:
|
|
1790
|
-
l[f] = l[f] - (t[d] / 2 - n[d] / 2);
|
|
1791
|
-
break;
|
|
1792
|
-
case Le:
|
|
1793
|
-
l[f] = l[f] + (t[d] / 2 - n[d] / 2);
|
|
1794
|
-
break;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
return l;
|
|
1798
|
-
}
|
|
1799
|
-
function Be(e, t) {
|
|
1800
|
-
t === void 0 && (t = {});
|
|
1801
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.strategy, o = i === void 0 ? e.strategy : i, c = n.boundary, l = c === void 0 ? na : c, f = n.rootBoundary, d = f === void 0 ? pn : f, m = n.elementContext, h = m === void 0 ? Ce : m, u = n.altBoundary, v = u === void 0 ? !1 : u, b = n.padding, p = b === void 0 ? 0 : b, w = yn(typeof p != "number" ? p : xn(p, Ye)), g = h === Ce ? ra : Ce, N = e.rects.popper, y = e.elements[v ? g : h], O = Ta(ge(y) ? y : y.contextElement || me(e.elements.popper), l, d, o), j = Me(e.elements.reference), P = jn({
|
|
1802
|
-
reference: j,
|
|
1803
|
-
element: N,
|
|
1804
|
-
placement: a
|
|
1805
|
-
}), E = mt(Object.assign({}, N, P)), C = h === Ce ? E : j, D = {
|
|
1806
|
-
top: O.top - C.top + w.top,
|
|
1807
|
-
bottom: C.bottom - O.bottom + w.bottom,
|
|
1808
|
-
left: O.left - C.left + w.left,
|
|
1809
|
-
right: C.right - O.right + w.right
|
|
1810
|
-
}, k = e.modifiersData.offset;
|
|
1811
|
-
if (h === Ce && k) {
|
|
1812
|
-
var W = k[a];
|
|
1813
|
-
Object.keys(D).forEach(function(_) {
|
|
1814
|
-
var A = [G, Q].indexOf(_) >= 0 ? 1 : -1, T = [U, Q].indexOf(_) >= 0 ? "y" : "x";
|
|
1815
|
-
D[_] += W[T] * A;
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
return D;
|
|
1819
|
-
}
|
|
1820
|
-
function Wa(e, t) {
|
|
1821
|
-
t === void 0 && (t = {});
|
|
1822
|
-
var n = t, r = n.placement, a = n.boundary, i = n.rootBoundary, o = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, f = l === void 0 ? hn : l, d = De(r), m = d ? c ? Ht : Ht.filter(function(v) {
|
|
1823
|
-
return De(v) === d;
|
|
1824
|
-
}) : Ye, h = m.filter(function(v) {
|
|
1825
|
-
return f.indexOf(v) >= 0;
|
|
1826
|
-
});
|
|
1827
|
-
h.length === 0 && (h = m);
|
|
1828
|
-
var u = h.reduce(function(v, b) {
|
|
1829
|
-
return v[b] = Be(e, {
|
|
1830
|
-
placement: b,
|
|
1831
|
-
boundary: a,
|
|
1832
|
-
rootBoundary: i,
|
|
1833
|
-
padding: o
|
|
1834
|
-
})[ee(b)], v;
|
|
1835
|
-
}, {});
|
|
1836
|
-
return Object.keys(u).sort(function(v, b) {
|
|
1837
|
-
return u[v] - u[b];
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
function Aa(e) {
|
|
1841
|
-
if (ee(e) === ht)
|
|
1842
|
-
return [];
|
|
1843
|
-
var t = ze(e);
|
|
1844
|
-
return [Xt(e), t, Xt(t)];
|
|
1845
|
-
}
|
|
1846
|
-
function Ra(e) {
|
|
1847
|
-
var t = e.state, n = e.options, r = e.name;
|
|
1848
|
-
if (!t.modifiersData[r]._skip) {
|
|
1849
|
-
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, c = o === void 0 ? !0 : o, l = n.fallbackPlacements, f = n.padding, d = n.boundary, m = n.rootBoundary, h = n.altBoundary, u = n.flipVariations, v = u === void 0 ? !0 : u, b = n.allowedAutoPlacements, p = t.options.placement, w = ee(p), g = w === p, N = l || (g || !v ? [ze(p)] : Aa(p)), y = [p].concat(N).reduce(function(q, Z) {
|
|
1850
|
-
return q.concat(ee(Z) === ht ? Wa(t, {
|
|
1851
|
-
placement: Z,
|
|
1852
|
-
boundary: d,
|
|
1853
|
-
rootBoundary: m,
|
|
1854
|
-
padding: f,
|
|
1855
|
-
flipVariations: v,
|
|
1856
|
-
allowedAutoPlacements: b
|
|
1857
|
-
}) : Z);
|
|
1858
|
-
}, []), O = t.rects.reference, j = t.rects.popper, P = /* @__PURE__ */ new Map(), E = !0, C = y[0], D = 0; D < y.length; D++) {
|
|
1859
|
-
var k = y[D], W = ee(k), _ = De(k) === Ne, A = [U, Q].indexOf(W) >= 0, T = A ? "width" : "height", L = Be(t, {
|
|
1860
|
-
placement: k,
|
|
1861
|
-
boundary: d,
|
|
1862
|
-
rootBoundary: m,
|
|
1863
|
-
altBoundary: h,
|
|
1864
|
-
padding: f
|
|
1865
|
-
}), V = A ? _ ? G : I : _ ? Q : U;
|
|
1866
|
-
O[T] > j[T] && (V = ze(V));
|
|
1867
|
-
var ye = ze(V), ne = [];
|
|
1868
|
-
if (i && ne.push(L[W] <= 0), c && ne.push(L[V] <= 0, L[ye] <= 0), ne.every(function(q) {
|
|
1869
|
-
return q;
|
|
1870
|
-
})) {
|
|
1871
|
-
C = k, E = !1;
|
|
1872
|
-
break;
|
|
1873
|
-
}
|
|
1874
|
-
P.set(k, ne);
|
|
1875
|
-
}
|
|
1876
|
-
if (E)
|
|
1877
|
-
for (var ce = v ? 3 : 1, _e = function(Z) {
|
|
1878
|
-
var re = y.find(function(we) {
|
|
1879
|
-
var ae = P.get(we);
|
|
1880
|
-
if (ae)
|
|
1881
|
-
return ae.slice(0, Z).every(function(ke) {
|
|
1882
|
-
return ke;
|
|
1883
|
-
});
|
|
1884
|
-
});
|
|
1885
|
-
if (re)
|
|
1886
|
-
return C = re, "break";
|
|
1887
|
-
}, $ = ce; $ > 0; $--) {
|
|
1888
|
-
var xe = _e($);
|
|
1889
|
-
if (xe === "break") break;
|
|
1890
|
-
}
|
|
1891
|
-
t.placement !== C && (t.modifiersData[r]._skip = !0, t.placement = C, t.reset = !0);
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
const $a = {
|
|
1895
|
-
name: "flip",
|
|
1896
|
-
enabled: !0,
|
|
1897
|
-
phase: "main",
|
|
1898
|
-
fn: Ra,
|
|
1899
|
-
requiresIfExists: ["offset"],
|
|
1900
|
-
data: {
|
|
1901
|
-
_skip: !1
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
function Qt(e, t, n) {
|
|
1905
|
-
return n === void 0 && (n = {
|
|
1906
|
-
x: 0,
|
|
1907
|
-
y: 0
|
|
1908
|
-
}), {
|
|
1909
|
-
top: e.top - t.height - n.y,
|
|
1910
|
-
right: e.right - t.width + n.x,
|
|
1911
|
-
bottom: e.bottom - t.height + n.y,
|
|
1912
|
-
left: e.left - t.width - n.x
|
|
1913
|
-
};
|
|
1914
|
-
}
|
|
1915
|
-
function Gt(e) {
|
|
1916
|
-
return [U, G, Q, I].some(function(t) {
|
|
1917
|
-
return e[t] >= 0;
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
function Fa(e) {
|
|
1921
|
-
var t = e.state, n = e.name, r = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, o = Be(t, {
|
|
1922
|
-
elementContext: "reference"
|
|
1923
|
-
}), c = Be(t, {
|
|
1924
|
-
altBoundary: !0
|
|
1925
|
-
}), l = Qt(o, r), f = Qt(c, a, i), d = Gt(l), m = Gt(f);
|
|
1926
|
-
t.modifiersData[n] = {
|
|
1927
|
-
referenceClippingOffsets: l,
|
|
1928
|
-
popperEscapeOffsets: f,
|
|
1929
|
-
isReferenceHidden: d,
|
|
1930
|
-
hasPopperEscaped: m
|
|
1931
|
-
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1932
|
-
"data-popper-reference-hidden": d,
|
|
1933
|
-
"data-popper-escaped": m
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
const La = {
|
|
1937
|
-
name: "hide",
|
|
1938
|
-
enabled: !0,
|
|
1939
|
-
phase: "main",
|
|
1940
|
-
requiresIfExists: ["preventOverflow"],
|
|
1941
|
-
fn: Fa
|
|
1942
|
-
};
|
|
1943
|
-
function Ba(e, t, n) {
|
|
1944
|
-
var r = ee(e), a = [I, U].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1945
|
-
placement: e
|
|
1946
|
-
})) : n, o = i[0], c = i[1];
|
|
1947
|
-
return o = o || 0, c = (c || 0) * a, [I, G].indexOf(r) >= 0 ? {
|
|
1948
|
-
x: c,
|
|
1949
|
-
y: o
|
|
1950
|
-
} : {
|
|
1951
|
-
x: o,
|
|
1952
|
-
y: c
|
|
1953
|
-
};
|
|
1954
|
-
}
|
|
1955
|
-
function Ya(e) {
|
|
1956
|
-
var t = e.state, n = e.options, r = e.name, a = n.offset, i = a === void 0 ? [0, 0] : a, o = hn.reduce(function(d, m) {
|
|
1957
|
-
return d[m] = Ba(m, t.rects, i), d;
|
|
1958
|
-
}, {}), c = o[t.placement], l = c.x, f = c.y;
|
|
1959
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = o;
|
|
1960
|
-
}
|
|
1961
|
-
const Ua = {
|
|
1962
|
-
name: "offset",
|
|
1963
|
-
enabled: !0,
|
|
1964
|
-
phase: "main",
|
|
1965
|
-
requires: ["popperOffsets"],
|
|
1966
|
-
fn: Ya
|
|
1967
|
-
};
|
|
1968
|
-
function Ia(e) {
|
|
1969
|
-
var t = e.state, n = e.name;
|
|
1970
|
-
t.modifiersData[n] = jn({
|
|
1971
|
-
reference: t.rects.reference,
|
|
1972
|
-
element: t.rects.popper,
|
|
1973
|
-
placement: t.placement
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
const Ha = {
|
|
1977
|
-
name: "popperOffsets",
|
|
1978
|
-
enabled: !0,
|
|
1979
|
-
phase: "read",
|
|
1980
|
-
fn: Ia,
|
|
1981
|
-
data: {}
|
|
1982
|
-
};
|
|
1983
|
-
function Va(e) {
|
|
1984
|
-
return e === "x" ? "y" : "x";
|
|
1985
|
-
}
|
|
1986
|
-
function qa(e) {
|
|
1987
|
-
var t = e.state, n = e.options, r = e.name, a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, c = o === void 0 ? !1 : o, l = n.boundary, f = n.rootBoundary, d = n.altBoundary, m = n.padding, h = n.tether, u = h === void 0 ? !0 : h, v = n.tetherOffset, b = v === void 0 ? 0 : v, p = Be(t, {
|
|
1988
|
-
boundary: l,
|
|
1989
|
-
rootBoundary: f,
|
|
1990
|
-
padding: m,
|
|
1991
|
-
altBoundary: d
|
|
1992
|
-
}), w = ee(t.placement), g = De(t.placement), N = !g, y = bt(w), O = Va(y), j = t.modifiersData.popperOffsets, P = t.rects.reference, E = t.rects.popper, C = typeof b == "function" ? b(Object.assign({}, t.rects, {
|
|
1993
|
-
placement: t.placement
|
|
1994
|
-
})) : b, D = typeof C == "number" ? {
|
|
1995
|
-
mainAxis: C,
|
|
1996
|
-
altAxis: C
|
|
1997
|
-
} : Object.assign({
|
|
1998
|
-
mainAxis: 0,
|
|
1999
|
-
altAxis: 0
|
|
2000
|
-
}, C), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, W = {
|
|
2001
|
-
x: 0,
|
|
2002
|
-
y: 0
|
|
2003
|
-
};
|
|
2004
|
-
if (j) {
|
|
2005
|
-
if (i) {
|
|
2006
|
-
var _, A = y === "y" ? U : I, T = y === "y" ? Q : G, L = y === "y" ? "height" : "width", V = j[y], ye = V + p[A], ne = V - p[T], ce = u ? -E[L] / 2 : 0, _e = g === Ne ? P[L] : E[L], $ = g === Ne ? -E[L] : -P[L], xe = t.elements.arrow, q = u && xe ? gt(xe) : {
|
|
2007
|
-
width: 0,
|
|
2008
|
-
height: 0
|
|
2009
|
-
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : bn(), re = Z[A], we = Z[T], ae = Ae(0, P[L], q[L]), ke = N ? P[L] / 2 - ce - ae - re - D.mainAxis : _e - ae - re - D.mainAxis, B = N ? -P[L] / 2 + ce + ae + we + D.mainAxis : $ + ae + we + D.mainAxis, le = t.elements.arrow && Ue(t.elements.arrow), Ie = le ? y === "y" ? le.clientTop || 0 : le.clientLeft || 0 : 0, tt = (_ = k?.[y]) != null ? _ : 0, Ot = V + ke - tt - Ie, Nt = V + B - tt, nt = Ae(u ? Ke(ye, Ot) : ye, V, u ? he(ne, Nt) : ne);
|
|
2010
|
-
j[y] = nt, W[y] = nt - V;
|
|
2011
|
-
}
|
|
2012
|
-
if (c) {
|
|
2013
|
-
var He, rt = y === "x" ? U : I, Ve = y === "x" ? Q : G, x = j[O], F = O === "y" ? "height" : "width", Pt = x + p[rt], Mt = x - p[Ve], at = [U, I].indexOf(w) !== -1, Dt = (He = k?.[O]) != null ? He : 0, _t = at ? Pt : x - P[F] - E[F] - Dt + D.altAxis, kt = at ? x + P[F] + E[F] - Dt - D.altAxis : Mt, St = u && at ? va(_t, x, kt) : Ae(u ? _t : Pt, x, u ? kt : Mt);
|
|
2014
|
-
j[O] = St, W[O] = St - x;
|
|
2015
|
-
}
|
|
2016
|
-
t.modifiersData[r] = W;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
const Xa = {
|
|
2020
|
-
name: "preventOverflow",
|
|
2021
|
-
enabled: !0,
|
|
2022
|
-
phase: "main",
|
|
2023
|
-
fn: qa,
|
|
2024
|
-
requiresIfExists: ["offset"]
|
|
2025
|
-
};
|
|
2026
|
-
function za(e) {
|
|
2027
|
-
return {
|
|
2028
|
-
scrollLeft: e.scrollLeft,
|
|
2029
|
-
scrollTop: e.scrollTop
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
function Qa(e) {
|
|
2033
|
-
return e === H(e) || !te(e) ? yt(e) : za(e);
|
|
2034
|
-
}
|
|
2035
|
-
function Ga(e) {
|
|
2036
|
-
var t = e.getBoundingClientRect(), n = Pe(t.width) / e.offsetWidth || 1, r = Pe(t.height) / e.offsetHeight || 1;
|
|
2037
|
-
return n !== 1 || r !== 1;
|
|
2038
|
-
}
|
|
2039
|
-
function Ja(e, t, n) {
|
|
2040
|
-
n === void 0 && (n = !1);
|
|
2041
|
-
var r = te(t), a = te(t) && Ga(t), i = me(t), o = Me(e, a, n), c = {
|
|
2042
|
-
scrollLeft: 0,
|
|
2043
|
-
scrollTop: 0
|
|
2044
|
-
}, l = {
|
|
2045
|
-
x: 0,
|
|
2046
|
-
y: 0
|
|
2047
|
-
};
|
|
2048
|
-
return (r || !r && !n) && ((fe(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
2049
|
-
wt(i)) && (c = Qa(t)), te(t) ? (l = Me(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = xt(i))), {
|
|
2050
|
-
x: o.left + c.scrollLeft - l.x,
|
|
2051
|
-
y: o.top + c.scrollTop - l.y,
|
|
2052
|
-
width: o.width,
|
|
2053
|
-
height: o.height
|
|
2054
|
-
};
|
|
2055
|
-
}
|
|
2056
|
-
function Ka(e) {
|
|
2057
|
-
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
2058
|
-
e.forEach(function(i) {
|
|
2059
|
-
t.set(i.name, i);
|
|
2060
|
-
});
|
|
2061
|
-
function a(i) {
|
|
2062
|
-
n.add(i.name);
|
|
2063
|
-
var o = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
2064
|
-
o.forEach(function(c) {
|
|
2065
|
-
if (!n.has(c)) {
|
|
2066
|
-
var l = t.get(c);
|
|
2067
|
-
l && a(l);
|
|
2068
|
-
}
|
|
2069
|
-
}), r.push(i);
|
|
2070
|
-
}
|
|
2071
|
-
return e.forEach(function(i) {
|
|
2072
|
-
n.has(i.name) || a(i);
|
|
2073
|
-
}), r;
|
|
2074
|
-
}
|
|
2075
|
-
function Za(e) {
|
|
2076
|
-
var t = Ka(e);
|
|
2077
|
-
return ma.reduce(function(n, r) {
|
|
2078
|
-
return n.concat(t.filter(function(a) {
|
|
2079
|
-
return a.phase === r;
|
|
2080
|
-
}));
|
|
2081
|
-
}, []);
|
|
2082
|
-
}
|
|
2083
|
-
function es(e) {
|
|
2084
|
-
var t;
|
|
2085
|
-
return function() {
|
|
2086
|
-
return t || (t = new Promise(function(n) {
|
|
2087
|
-
Promise.resolve().then(function() {
|
|
2088
|
-
t = void 0, n(e());
|
|
2089
|
-
});
|
|
2090
|
-
})), t;
|
|
2091
|
-
};
|
|
2092
|
-
}
|
|
2093
|
-
function ts(e) {
|
|
2094
|
-
var t = e.reduce(function(n, r) {
|
|
2095
|
-
var a = n[r.name];
|
|
2096
|
-
return n[r.name] = a ? Object.assign({}, a, r, {
|
|
2097
|
-
options: Object.assign({}, a.options, r.options),
|
|
2098
|
-
data: Object.assign({}, a.data, r.data)
|
|
2099
|
-
}) : r, n;
|
|
2100
|
-
}, {});
|
|
2101
|
-
return Object.keys(t).map(function(n) {
|
|
2102
|
-
return t[n];
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
var Jt = {
|
|
2106
|
-
placement: "bottom",
|
|
2107
|
-
modifiers: [],
|
|
2108
|
-
strategy: "absolute"
|
|
2109
|
-
};
|
|
2110
|
-
function Kt() {
|
|
2111
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2112
|
-
t[n] = arguments[n];
|
|
2113
|
-
return !t.some(function(r) {
|
|
2114
|
-
return !(r && typeof r.getBoundingClientRect == "function");
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
function ns(e) {
|
|
2118
|
-
e === void 0 && (e = {});
|
|
2119
|
-
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, a = t.defaultOptions, i = a === void 0 ? Jt : a;
|
|
2120
|
-
return function(c, l, f) {
|
|
2121
|
-
f === void 0 && (f = i);
|
|
2122
|
-
var d = {
|
|
2123
|
-
placement: "bottom",
|
|
2124
|
-
orderedModifiers: [],
|
|
2125
|
-
options: Object.assign({}, Jt, i),
|
|
2126
|
-
modifiersData: {},
|
|
2127
|
-
elements: {
|
|
2128
|
-
reference: c,
|
|
2129
|
-
popper: l
|
|
2130
|
-
},
|
|
2131
|
-
attributes: {},
|
|
2132
|
-
styles: {}
|
|
2133
|
-
}, m = [], h = !1, u = {
|
|
2134
|
-
state: d,
|
|
2135
|
-
setOptions: function(w) {
|
|
2136
|
-
var g = typeof w == "function" ? w(d.options) : w;
|
|
2137
|
-
b(), d.options = Object.assign({}, i, d.options, g), d.scrollParents = {
|
|
2138
|
-
reference: ge(c) ? Re(c) : c.contextElement ? Re(c.contextElement) : [],
|
|
2139
|
-
popper: Re(l)
|
|
2140
|
-
};
|
|
2141
|
-
var N = Za(ts([].concat(r, d.options.modifiers)));
|
|
2142
|
-
return d.orderedModifiers = N.filter(function(y) {
|
|
2143
|
-
return y.enabled;
|
|
2144
|
-
}), v(), u.update();
|
|
2145
|
-
},
|
|
2146
|
-
// Sync update – it will always be executed, even if not necessary. This
|
|
2147
|
-
// is useful for low frequency updates where sync behavior simplifies the
|
|
2148
|
-
// logic.
|
|
2149
|
-
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
2150
|
-
// prefer the async Popper#update method
|
|
2151
|
-
forceUpdate: function() {
|
|
2152
|
-
if (!h) {
|
|
2153
|
-
var w = d.elements, g = w.reference, N = w.popper;
|
|
2154
|
-
if (Kt(g, N)) {
|
|
2155
|
-
d.rects = {
|
|
2156
|
-
reference: Ja(g, Ue(N), d.options.strategy === "fixed"),
|
|
2157
|
-
popper: gt(N)
|
|
2158
|
-
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(D) {
|
|
2159
|
-
return d.modifiersData[D.name] = Object.assign({}, D.data);
|
|
2160
|
-
});
|
|
2161
|
-
for (var y = 0; y < d.orderedModifiers.length; y++) {
|
|
2162
|
-
if (d.reset === !0) {
|
|
2163
|
-
d.reset = !1, y = -1;
|
|
2164
|
-
continue;
|
|
2165
|
-
}
|
|
2166
|
-
var O = d.orderedModifiers[y], j = O.fn, P = O.options, E = P === void 0 ? {} : P, C = O.name;
|
|
2167
|
-
typeof j == "function" && (d = j({
|
|
2168
|
-
state: d,
|
|
2169
|
-
options: E,
|
|
2170
|
-
name: C,
|
|
2171
|
-
instance: u
|
|
2172
|
-
}) || d);
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2177
|
-
// Async and optimistically optimized update – it will not be executed if
|
|
2178
|
-
// not necessary (debounced to run at most once-per-tick)
|
|
2179
|
-
update: es(function() {
|
|
2180
|
-
return new Promise(function(p) {
|
|
2181
|
-
u.forceUpdate(), p(d);
|
|
2182
|
-
});
|
|
2183
|
-
}),
|
|
2184
|
-
destroy: function() {
|
|
2185
|
-
b(), h = !0;
|
|
2186
|
-
}
|
|
2187
|
-
};
|
|
2188
|
-
if (!Kt(c, l))
|
|
2189
|
-
return u;
|
|
2190
|
-
u.setOptions(f).then(function(p) {
|
|
2191
|
-
!h && f.onFirstUpdate && f.onFirstUpdate(p);
|
|
2192
|
-
});
|
|
2193
|
-
function v() {
|
|
2194
|
-
d.orderedModifiers.forEach(function(p) {
|
|
2195
|
-
var w = p.name, g = p.options, N = g === void 0 ? {} : g, y = p.effect;
|
|
2196
|
-
if (typeof y == "function") {
|
|
2197
|
-
var O = y({
|
|
2198
|
-
state: d,
|
|
2199
|
-
name: w,
|
|
2200
|
-
instance: u,
|
|
2201
|
-
options: N
|
|
2202
|
-
}), j = function() {
|
|
2203
|
-
};
|
|
2204
|
-
m.push(O || j);
|
|
2205
|
-
}
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
function b() {
|
|
2209
|
-
m.forEach(function(p) {
|
|
2210
|
-
return p();
|
|
2211
|
-
}), m = [];
|
|
2212
|
-
}
|
|
2213
|
-
return u;
|
|
2214
|
-
};
|
|
2215
|
-
}
|
|
2216
|
-
const rs = ns({
|
|
2217
|
-
defaultModifiers: [La, Ha, Na, Ma, Ua, $a, Xa, xa]
|
|
2218
|
-
}), as = ["enabled", "placement", "strategy", "modifiers"];
|
|
2219
|
-
function ss(e, t) {
|
|
2220
|
-
if (e == null) return {};
|
|
2221
|
-
var n = {};
|
|
2222
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
2223
|
-
if (t.indexOf(r) >= 0) continue;
|
|
2224
|
-
n[r] = e[r];
|
|
2225
|
-
}
|
|
2226
|
-
return n;
|
|
2227
|
-
}
|
|
2228
|
-
const is = {
|
|
2229
|
-
name: "applyStyles",
|
|
2230
|
-
enabled: !1,
|
|
2231
|
-
phase: "afterWrite",
|
|
2232
|
-
fn: () => {
|
|
2233
|
-
}
|
|
2234
|
-
}, os = {
|
|
2235
|
-
name: "ariaDescribedBy",
|
|
2236
|
-
enabled: !0,
|
|
2237
|
-
phase: "afterWrite",
|
|
2238
|
-
effect: ({
|
|
2239
|
-
state: e
|
|
2240
|
-
}) => () => {
|
|
2241
|
-
const {
|
|
2242
|
-
reference: t,
|
|
2243
|
-
popper: n
|
|
2244
|
-
} = e.elements;
|
|
2245
|
-
if ("removeAttribute" in t) {
|
|
2246
|
-
const r = (t.getAttribute("aria-describedby") || "").split(",").filter((a) => a.trim() !== n.id);
|
|
2247
|
-
r.length ? t.setAttribute("aria-describedby", r.join(",")) : t.removeAttribute("aria-describedby");
|
|
2248
|
-
}
|
|
2249
|
-
},
|
|
2250
|
-
fn: ({
|
|
2251
|
-
state: e
|
|
2252
|
-
}) => {
|
|
2253
|
-
var t;
|
|
2254
|
-
const {
|
|
2255
|
-
popper: n,
|
|
2256
|
-
reference: r
|
|
2257
|
-
} = e.elements, a = (t = n.getAttribute("role")) == null ? void 0 : t.toLowerCase();
|
|
2258
|
-
if (n.id && a === "tooltip" && "setAttribute" in r) {
|
|
2259
|
-
const i = r.getAttribute("aria-describedby");
|
|
2260
|
-
if (i && i.split(",").indexOf(n.id) !== -1)
|
|
2261
|
-
return;
|
|
2262
|
-
r.setAttribute("aria-describedby", i ? `${i},${n.id}` : n.id);
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
}, cs = [];
|
|
2266
|
-
function ls(e, t, n = {}) {
|
|
2267
|
-
let {
|
|
2268
|
-
enabled: r = !0,
|
|
2269
|
-
placement: a = "bottom",
|
|
2270
|
-
strategy: i = "absolute",
|
|
2271
|
-
modifiers: o = cs
|
|
2272
|
-
} = n, c = ss(n, as);
|
|
2273
|
-
const l = z(o), f = z(), d = X(() => {
|
|
2274
|
-
var p;
|
|
2275
|
-
(p = f.current) == null || p.update();
|
|
2276
|
-
}, []), m = X(() => {
|
|
2277
|
-
var p;
|
|
2278
|
-
(p = f.current) == null || p.forceUpdate();
|
|
2279
|
-
}, []), [h, u] = ta(S({
|
|
2280
|
-
placement: a,
|
|
2281
|
-
update: d,
|
|
2282
|
-
forceUpdate: m,
|
|
2283
|
-
attributes: {},
|
|
2284
|
-
styles: {
|
|
2285
|
-
popper: {},
|
|
2286
|
-
arrow: {}
|
|
2287
|
-
}
|
|
2288
|
-
})), v = $e(() => ({
|
|
2289
|
-
name: "updateStateModifier",
|
|
2290
|
-
enabled: !0,
|
|
2291
|
-
phase: "write",
|
|
2292
|
-
requires: ["computeStyles"],
|
|
2293
|
-
fn: ({
|
|
2294
|
-
state: p
|
|
2295
|
-
}) => {
|
|
2296
|
-
const w = {}, g = {};
|
|
2297
|
-
Object.keys(p.elements).forEach((N) => {
|
|
2298
|
-
w[N] = p.styles[N], g[N] = p.attributes[N];
|
|
2299
|
-
}), u({
|
|
2300
|
-
state: p,
|
|
2301
|
-
styles: w,
|
|
2302
|
-
attributes: g,
|
|
2303
|
-
update: d,
|
|
2304
|
-
forceUpdate: m,
|
|
2305
|
-
placement: p.placement
|
|
2306
|
-
});
|
|
2307
|
-
}
|
|
2308
|
-
}), [d, m, u]), b = $e(() => (We(l.current, o) || (l.current = o), l.current), [o]);
|
|
2309
|
-
return Y(() => {
|
|
2310
|
-
!f.current || !r || f.current.setOptions({
|
|
2311
|
-
placement: a,
|
|
2312
|
-
strategy: i,
|
|
2313
|
-
modifiers: [...b, v, is]
|
|
2314
|
-
});
|
|
2315
|
-
}, [i, a, v, r, b]), Y(() => {
|
|
2316
|
-
if (!(!r || e == null || t == null))
|
|
2317
|
-
return f.current = rs(e, t, Object.assign({}, c, {
|
|
2318
|
-
placement: a,
|
|
2319
|
-
strategy: i,
|
|
2320
|
-
modifiers: [...b, os, v]
|
|
2321
|
-
})), () => {
|
|
2322
|
-
f.current != null && (f.current.destroy(), f.current = void 0, u((p) => Object.assign({}, p, {
|
|
2323
|
-
attributes: {},
|
|
2324
|
-
styles: {
|
|
2325
|
-
popper: {}
|
|
2326
|
-
}
|
|
2327
|
-
})));
|
|
2328
|
-
};
|
|
2329
|
-
}, [r, e, t]), h;
|
|
2330
|
-
}
|
|
2331
|
-
const Zt = () => {
|
|
2332
|
-
};
|
|
2333
|
-
function ds(e) {
|
|
2334
|
-
return e.button === 0;
|
|
2335
|
-
}
|
|
2336
|
-
function us(e) {
|
|
2337
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
2338
|
-
}
|
|
2339
|
-
const Qe = (e) => e && ("current" in e ? e.current : e), en = {
|
|
2340
|
-
click: "mousedown",
|
|
2341
|
-
mouseup: "mousedown",
|
|
2342
|
-
pointerup: "pointerdown"
|
|
2343
|
-
};
|
|
2344
|
-
function fs(e, t = Zt, {
|
|
2345
|
-
disabled: n,
|
|
2346
|
-
clickTrigger: r = "click"
|
|
2347
|
-
} = {}) {
|
|
2348
|
-
const a = z(!1), i = z(!1), o = X((f) => {
|
|
2349
|
-
const d = Qe(e);
|
|
2350
|
-
mn(!!d, "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"), a.current = !d || us(f) || !ds(f) || !!ct(d, f.target) || i.current, i.current = !1;
|
|
2351
|
-
}, [e]), c = lt((f) => {
|
|
2352
|
-
const d = Qe(e);
|
|
2353
|
-
d && ct(d, f.target) ? i.current = !0 : i.current = !1;
|
|
2354
|
-
}), l = lt((f) => {
|
|
2355
|
-
a.current || t(f);
|
|
2356
|
-
});
|
|
2357
|
-
Y(() => {
|
|
2358
|
-
var f, d;
|
|
2359
|
-
if (n || e == null) return;
|
|
2360
|
-
const m = an(Qe(e)), h = m.defaultView || window;
|
|
2361
|
-
let u = (f = h.event) != null ? f : (d = h.parent) == null ? void 0 : d.event, v = null;
|
|
2362
|
-
en[r] && (v = Te(m, en[r], c, !0));
|
|
2363
|
-
const b = Te(m, r, o, !0), p = Te(m, r, (g) => {
|
|
2364
|
-
if (g === u) {
|
|
2365
|
-
u = void 0;
|
|
2366
|
-
return;
|
|
2367
|
-
}
|
|
2368
|
-
l(g);
|
|
2369
|
-
});
|
|
2370
|
-
let w = [];
|
|
2371
|
-
return "ontouchstart" in m.documentElement && (w = [].slice.call(m.body.children).map((g) => Te(g, "mousemove", Zt))), () => {
|
|
2372
|
-
v?.(), b(), p(), w.forEach((g) => g());
|
|
2373
|
-
};
|
|
2374
|
-
}, [e, n, r, o, c, l]);
|
|
2375
|
-
}
|
|
2376
|
-
const ms = () => {
|
|
2377
|
-
};
|
|
2378
|
-
function ps(e, t, {
|
|
2379
|
-
disabled: n,
|
|
2380
|
-
clickTrigger: r
|
|
2381
|
-
} = {}) {
|
|
2382
|
-
const a = t || ms;
|
|
2383
|
-
fs(e, a, {
|
|
2384
|
-
disabled: n,
|
|
2385
|
-
clickTrigger: r
|
|
2386
|
-
});
|
|
2387
|
-
const i = lt((o) => {
|
|
2388
|
-
Wn(o) && a(o);
|
|
2389
|
-
});
|
|
2390
|
-
Y(() => {
|
|
2391
|
-
if (n || e == null) return;
|
|
2392
|
-
const o = an(Qe(e));
|
|
2393
|
-
let c = (o.defaultView || window).event;
|
|
2394
|
-
const l = Te(o, "keyup", (f) => {
|
|
2395
|
-
if (f === c) {
|
|
2396
|
-
c = void 0;
|
|
2397
|
-
return;
|
|
2398
|
-
}
|
|
2399
|
-
i(f);
|
|
2400
|
-
});
|
|
2401
|
-
return () => {
|
|
2402
|
-
l();
|
|
2403
|
-
};
|
|
2404
|
-
}, [e, n, i]);
|
|
2405
|
-
}
|
|
2406
|
-
function hs(e) {
|
|
2407
|
-
const t = {};
|
|
2408
|
-
return Array.isArray(e) ? (e?.forEach((n) => {
|
|
2409
|
-
t[n.name] = n;
|
|
2410
|
-
}), t) : e || t;
|
|
2411
|
-
}
|
|
2412
|
-
function vs(e = {}) {
|
|
2413
|
-
return Array.isArray(e) ? e : Object.keys(e).map((t) => (e[t].name = t, e[t]));
|
|
2414
|
-
}
|
|
2415
|
-
function gs({
|
|
2416
|
-
enabled: e,
|
|
2417
|
-
enableEvents: t,
|
|
2418
|
-
placement: n,
|
|
2419
|
-
flip: r,
|
|
2420
|
-
offset: a,
|
|
2421
|
-
fixed: i,
|
|
2422
|
-
containerPadding: o,
|
|
2423
|
-
arrowElement: c,
|
|
2424
|
-
popperConfig: l = {}
|
|
1
|
+
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as h, useEffect as u } from "react";
|
|
3
|
+
import { M as n } from "./Modal-CZ77qLgM.js";
|
|
4
|
+
import p from "./ViewUserModal.js";
|
|
5
|
+
import { A as o } from "./Button-B5nVYPMZ.js";
|
|
6
|
+
import { u as b, a as f } from "./index-DLYx67wi.js";
|
|
7
|
+
function y({
|
|
8
|
+
setChecked: s,
|
|
9
|
+
checked: a,
|
|
10
|
+
readOnly: r
|
|
2425
11
|
}) {
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
return Object.assign({}, l, {
|
|
2429
|
-
placement: n,
|
|
2430
|
-
enabled: e,
|
|
2431
|
-
strategy: i ? "fixed" : l.strategy,
|
|
2432
|
-
modifiers: vs(Object.assign({}, u, {
|
|
2433
|
-
eventListeners: {
|
|
2434
|
-
enabled: t,
|
|
2435
|
-
options: (f = u.eventListeners) == null ? void 0 : f.options
|
|
2436
|
-
},
|
|
2437
|
-
preventOverflow: Object.assign({}, u.preventOverflow, {
|
|
2438
|
-
options: Object.assign({
|
|
2439
|
-
padding: o
|
|
2440
|
-
}, (d = u.preventOverflow) == null ? void 0 : d.options)
|
|
2441
|
-
}),
|
|
2442
|
-
offset: {
|
|
2443
|
-
options: Object.assign({
|
|
2444
|
-
offset: a
|
|
2445
|
-
}, (m = u.offset) == null ? void 0 : m.options)
|
|
2446
|
-
},
|
|
2447
|
-
arrow: Object.assign({}, u.arrow, {
|
|
2448
|
-
enabled: !!c,
|
|
2449
|
-
options: Object.assign({}, (h = u.arrow) == null ? void 0 : h.options, {
|
|
2450
|
-
element: c
|
|
2451
|
-
})
|
|
2452
|
-
}),
|
|
2453
|
-
flip: Object.assign({
|
|
2454
|
-
enabled: !!r
|
|
2455
|
-
}, u.flip)
|
|
2456
|
-
}))
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
const On = /* @__PURE__ */ ue.forwardRef((e, t) => {
|
|
2460
|
-
const {
|
|
2461
|
-
flip: n,
|
|
2462
|
-
offset: r,
|
|
2463
|
-
placement: a,
|
|
2464
|
-
containerPadding: i,
|
|
2465
|
-
popperConfig: o = {},
|
|
2466
|
-
transition: c,
|
|
2467
|
-
runTransition: l
|
|
2468
|
-
} = e, [f, d] = Yt(), [m, h] = Yt(), u = An(d, t), v = Et(e.container), b = Et(e.target), [p, w] = S(!e.show), g = ls(b, f, gs({
|
|
2469
|
-
placement: a,
|
|
2470
|
-
enableEvents: !!e.show,
|
|
2471
|
-
containerPadding: i || 5,
|
|
2472
|
-
flip: n,
|
|
2473
|
-
offset: r,
|
|
2474
|
-
arrowElement: m,
|
|
2475
|
-
popperConfig: o
|
|
2476
|
-
}));
|
|
2477
|
-
e.show && p && w(!1);
|
|
2478
|
-
const N = (...k) => {
|
|
2479
|
-
w(!0), e.onExited && e.onExited(...k);
|
|
2480
|
-
}, y = e.show || !p;
|
|
2481
|
-
if (ps(f, e.onHide, {
|
|
2482
|
-
disabled: !e.rootClose || e.rootCloseDisabled,
|
|
2483
|
-
clickTrigger: e.rootCloseEvent
|
|
2484
|
-
}), !y)
|
|
2485
|
-
return null;
|
|
2486
|
-
const {
|
|
2487
|
-
onExit: O,
|
|
2488
|
-
onExiting: j,
|
|
2489
|
-
onEnter: P,
|
|
2490
|
-
onEntering: E,
|
|
2491
|
-
onEntered: C
|
|
2492
|
-
} = e;
|
|
2493
|
-
let D = e.children(Object.assign({}, g.attributes.popper, {
|
|
2494
|
-
style: g.styles.popper,
|
|
2495
|
-
ref: u
|
|
2496
|
-
}), {
|
|
2497
|
-
popper: g,
|
|
2498
|
-
placement: a,
|
|
2499
|
-
show: !!e.show,
|
|
2500
|
-
arrowProps: Object.assign({}, g.attributes.arrow, {
|
|
2501
|
-
style: g.styles.arrow,
|
|
2502
|
-
ref: h
|
|
2503
|
-
})
|
|
2504
|
-
});
|
|
2505
|
-
return D = Rn(c, l, {
|
|
2506
|
-
in: !!e.show,
|
|
2507
|
-
appear: !0,
|
|
2508
|
-
mountOnEnter: !0,
|
|
2509
|
-
unmountOnExit: !0,
|
|
2510
|
-
children: D,
|
|
2511
|
-
onExit: O,
|
|
2512
|
-
onExiting: j,
|
|
2513
|
-
onExited: N,
|
|
2514
|
-
onEnter: P,
|
|
2515
|
-
onEntering: E,
|
|
2516
|
-
onEntered: C
|
|
2517
|
-
}), v ? /* @__PURE__ */ In.createPortal(D, v) : null;
|
|
2518
|
-
});
|
|
2519
|
-
On.displayName = "Overlay";
|
|
2520
|
-
const bs = typeof global < "u" && // @ts-ignore
|
|
2521
|
-
global.navigator && // @ts-ignore
|
|
2522
|
-
global.navigator.product === "ReactNative", ys = typeof document < "u", xs = ys || bs ? Sn : Y, Nn = /* @__PURE__ */ ue.forwardRef(({
|
|
2523
|
-
className: e,
|
|
2524
|
-
bsPrefix: t,
|
|
2525
|
-
as: n = "div",
|
|
2526
|
-
...r
|
|
2527
|
-
}, a) => (t = Oe(t, "popover-header"), /* @__PURE__ */ s.jsx(n, {
|
|
2528
|
-
ref: a,
|
|
2529
|
-
className: be(e, t),
|
|
2530
|
-
...r
|
|
2531
|
-
})));
|
|
2532
|
-
Nn.displayName = "PopoverHeader";
|
|
2533
|
-
const jt = /* @__PURE__ */ ue.forwardRef(({
|
|
2534
|
-
className: e,
|
|
2535
|
-
bsPrefix: t,
|
|
2536
|
-
as: n = "div",
|
|
2537
|
-
...r
|
|
2538
|
-
}, a) => (t = Oe(t, "popover-body"), /* @__PURE__ */ s.jsx(n, {
|
|
2539
|
-
ref: a,
|
|
2540
|
-
className: be(e, t),
|
|
2541
|
-
...r
|
|
2542
|
-
})));
|
|
2543
|
-
jt.displayName = "PopoverBody";
|
|
2544
|
-
function Pn(e, t) {
|
|
2545
|
-
let n = e;
|
|
2546
|
-
return e === "left" ? n = t ? "end" : "start" : e === "right" && (n = t ? "start" : "end"), n;
|
|
2547
|
-
}
|
|
2548
|
-
function Mn(e = "absolute") {
|
|
2549
|
-
return {
|
|
2550
|
-
position: e,
|
|
2551
|
-
top: "0",
|
|
2552
|
-
left: "0",
|
|
2553
|
-
opacity: "0",
|
|
2554
|
-
pointerEvents: "none"
|
|
2555
|
-
};
|
|
2556
|
-
}
|
|
2557
|
-
const Dn = /* @__PURE__ */ ue.forwardRef(({
|
|
2558
|
-
bsPrefix: e,
|
|
2559
|
-
placement: t = "right",
|
|
2560
|
-
className: n,
|
|
2561
|
-
style: r,
|
|
2562
|
-
children: a,
|
|
2563
|
-
body: i,
|
|
2564
|
-
arrowProps: o,
|
|
2565
|
-
hasDoneInitialMeasure: c,
|
|
2566
|
-
popper: l,
|
|
2567
|
-
show: f,
|
|
2568
|
-
...d
|
|
2569
|
-
}, m) => {
|
|
2570
|
-
const h = Oe(e, "popover"), u = sn(), [v] = t?.split("-") || [], b = Pn(v, u);
|
|
2571
|
-
let p = r;
|
|
2572
|
-
return f && !c && (p = {
|
|
2573
|
-
...r,
|
|
2574
|
-
...Mn(l?.strategy)
|
|
2575
|
-
}), /* @__PURE__ */ s.jsxs("div", {
|
|
2576
|
-
ref: m,
|
|
2577
|
-
role: "tooltip",
|
|
2578
|
-
style: p,
|
|
2579
|
-
"x-placement": v,
|
|
2580
|
-
className: be(n, h, v && `bs-popover-${b}`),
|
|
2581
|
-
...d,
|
|
2582
|
-
children: [/* @__PURE__ */ s.jsx("div", {
|
|
2583
|
-
className: "popover-arrow",
|
|
2584
|
-
...o
|
|
2585
|
-
}), i ? /* @__PURE__ */ s.jsx(jt, {
|
|
2586
|
-
children: a
|
|
2587
|
-
}) : a]
|
|
2588
|
-
});
|
|
2589
|
-
});
|
|
2590
|
-
Dn.displayName = "Popover";
|
|
2591
|
-
const ws = Object.assign(Dn, {
|
|
2592
|
-
Header: Nn,
|
|
2593
|
-
Body: jt,
|
|
2594
|
-
// Default popover offset.
|
|
2595
|
-
// https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
|
|
2596
|
-
POPPER_OFFSET: [0, 8]
|
|
2597
|
-
}), _n = /* @__PURE__ */ ue.forwardRef(({
|
|
2598
|
-
bsPrefix: e,
|
|
2599
|
-
placement: t = "right",
|
|
2600
|
-
className: n,
|
|
2601
|
-
style: r,
|
|
2602
|
-
children: a,
|
|
2603
|
-
arrowProps: i,
|
|
2604
|
-
hasDoneInitialMeasure: o,
|
|
2605
|
-
popper: c,
|
|
2606
|
-
show: l,
|
|
2607
|
-
...f
|
|
2608
|
-
}, d) => {
|
|
2609
|
-
e = Oe(e, "tooltip");
|
|
2610
|
-
const m = sn(), [h] = t?.split("-") || [], u = Pn(h, m);
|
|
2611
|
-
let v = r;
|
|
2612
|
-
return l && !o && (v = {
|
|
2613
|
-
...r,
|
|
2614
|
-
...Mn(c?.strategy)
|
|
2615
|
-
}), /* @__PURE__ */ s.jsxs("div", {
|
|
2616
|
-
ref: d,
|
|
2617
|
-
style: v,
|
|
2618
|
-
role: "tooltip",
|
|
2619
|
-
"x-placement": h,
|
|
2620
|
-
className: be(n, e, `bs-tooltip-${u}`),
|
|
2621
|
-
...f,
|
|
2622
|
-
children: [/* @__PURE__ */ s.jsx("div", {
|
|
2623
|
-
className: "tooltip-arrow",
|
|
2624
|
-
...i
|
|
2625
|
-
}), /* @__PURE__ */ s.jsx("div", {
|
|
2626
|
-
className: `${e}-inner`,
|
|
2627
|
-
children: a
|
|
2628
|
-
})]
|
|
2629
|
-
});
|
|
2630
|
-
});
|
|
2631
|
-
_n.displayName = "Tooltip";
|
|
2632
|
-
const J = Object.assign(_n, {
|
|
2633
|
-
// Default tooltip offset.
|
|
2634
|
-
// https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
|
|
2635
|
-
TOOLTIP_OFFSET: [0, 6]
|
|
2636
|
-
});
|
|
2637
|
-
function js(e) {
|
|
2638
|
-
const t = z(null), n = Oe(void 0, "popover"), r = Oe(void 0, "tooltip"), a = $e(() => ({
|
|
2639
|
-
name: "offset",
|
|
2640
|
-
options: {
|
|
2641
|
-
offset: () => {
|
|
2642
|
-
if (e)
|
|
2643
|
-
return e;
|
|
2644
|
-
if (t.current) {
|
|
2645
|
-
if (Ct(t.current, n))
|
|
2646
|
-
return ws.POPPER_OFFSET;
|
|
2647
|
-
if (Ct(t.current, r))
|
|
2648
|
-
return J.TOOLTIP_OFFSET;
|
|
2649
|
-
}
|
|
2650
|
-
return [0, 0];
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
}), [e, n, r]);
|
|
2654
|
-
return [t, [a]];
|
|
2655
|
-
}
|
|
2656
|
-
function Os(e, t) {
|
|
2657
|
-
const {
|
|
2658
|
-
ref: n
|
|
2659
|
-
} = e, {
|
|
2660
|
-
ref: r
|
|
2661
|
-
} = t;
|
|
2662
|
-
e.ref = n.__wrapped || (n.__wrapped = (a) => n(dt(a))), t.ref = r.__wrapped || (r.__wrapped = (a) => r(dt(a)));
|
|
2663
|
-
}
|
|
2664
|
-
const kn = /* @__PURE__ */ ue.forwardRef(({
|
|
2665
|
-
children: e,
|
|
2666
|
-
transition: t = Tt,
|
|
2667
|
-
popperConfig: n = {},
|
|
2668
|
-
rootClose: r = !1,
|
|
2669
|
-
placement: a = "top",
|
|
2670
|
-
show: i = !1,
|
|
2671
|
-
...o
|
|
2672
|
-
}, c) => {
|
|
2673
|
-
const l = z({}), [f, d] = S(null), [m, h] = js(o.offset), u = on(c, m), v = t === !0 ? Tt : t || void 0, b = $n((p) => {
|
|
2674
|
-
d(p), n == null || n.onFirstUpdate == null || n.onFirstUpdate(p);
|
|
2675
|
-
});
|
|
2676
|
-
return xs(() => {
|
|
2677
|
-
f && o.target && (l.current.scheduleUpdate == null || l.current.scheduleUpdate());
|
|
2678
|
-
}, [f, o.target]), Y(() => {
|
|
2679
|
-
i || d(null);
|
|
2680
|
-
}, [i]), /* @__PURE__ */ s.jsx(On, {
|
|
2681
|
-
...o,
|
|
2682
|
-
ref: u,
|
|
2683
|
-
popperConfig: {
|
|
2684
|
-
...n,
|
|
2685
|
-
modifiers: h.concat(n.modifiers || []),
|
|
2686
|
-
onFirstUpdate: b
|
|
2687
|
-
},
|
|
2688
|
-
transition: v,
|
|
2689
|
-
rootClose: r,
|
|
2690
|
-
placement: a,
|
|
2691
|
-
show: i,
|
|
2692
|
-
children: (p, {
|
|
2693
|
-
arrowProps: w,
|
|
2694
|
-
popper: g,
|
|
2695
|
-
show: N
|
|
2696
|
-
}) => {
|
|
2697
|
-
var y;
|
|
2698
|
-
Os(p, w);
|
|
2699
|
-
const O = g?.placement, j = Object.assign(l.current, {
|
|
2700
|
-
state: g?.state,
|
|
2701
|
-
scheduleUpdate: g?.update,
|
|
2702
|
-
placement: O,
|
|
2703
|
-
outOfBoundaries: (g == null || (y = g.state) == null || (y = y.modifiersData.hide) == null ? void 0 : y.isReferenceHidden) || !1,
|
|
2704
|
-
strategy: n.strategy
|
|
2705
|
-
}), P = !!f;
|
|
2706
|
-
return typeof e == "function" ? e({
|
|
2707
|
-
...p,
|
|
2708
|
-
placement: O,
|
|
2709
|
-
show: N,
|
|
2710
|
-
...!t && N && {
|
|
2711
|
-
className: "show"
|
|
2712
|
-
},
|
|
2713
|
-
popper: j,
|
|
2714
|
-
arrowProps: w,
|
|
2715
|
-
hasDoneInitialMeasure: P
|
|
2716
|
-
}) : /* @__PURE__ */ ue.cloneElement(e, {
|
|
2717
|
-
...p,
|
|
2718
|
-
placement: O,
|
|
2719
|
-
arrowProps: w,
|
|
2720
|
-
popper: j,
|
|
2721
|
-
hasDoneInitialMeasure: P,
|
|
2722
|
-
className: be(e.props.className, !t && N && "show"),
|
|
2723
|
-
style: {
|
|
2724
|
-
...e.props.style,
|
|
2725
|
-
...p.style
|
|
2726
|
-
}
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
});
|
|
2730
|
-
});
|
|
2731
|
-
kn.displayName = "Overlay";
|
|
2732
|
-
function Ns(e) {
|
|
2733
|
-
return e && typeof e == "object" ? e : {
|
|
2734
|
-
show: e,
|
|
2735
|
-
hide: e
|
|
2736
|
-
};
|
|
2737
|
-
}
|
|
2738
|
-
function tn(e, t, n) {
|
|
2739
|
-
const [r] = t, a = r.currentTarget, i = r.relatedTarget || r.nativeEvent[n];
|
|
2740
|
-
(!i || i !== a) && !ct(a, i) && e(...t);
|
|
2741
|
-
}
|
|
2742
|
-
Ln.oneOf(["click", "hover", "focus"]);
|
|
2743
|
-
const se = ({
|
|
2744
|
-
trigger: e = ["hover", "focus"],
|
|
2745
|
-
overlay: t,
|
|
2746
|
-
children: n,
|
|
2747
|
-
popperConfig: r = {},
|
|
2748
|
-
show: a,
|
|
2749
|
-
defaultShow: i = !1,
|
|
2750
|
-
onToggle: o,
|
|
2751
|
-
delay: c,
|
|
2752
|
-
placement: l,
|
|
2753
|
-
flip: f = l && l.indexOf("auto") !== -1,
|
|
2754
|
-
...d
|
|
2755
|
-
}) => {
|
|
2756
|
-
const m = z(null), h = on(m, Fn(n)), u = Jr(), v = z(""), [b, p] = ea(a, i, o), w = Ns(c), {
|
|
2757
|
-
onFocus: g,
|
|
2758
|
-
onBlur: N,
|
|
2759
|
-
onClick: y
|
|
2760
|
-
} = typeof n != "function" ? ue.Children.only(n).props : {}, O = (T) => {
|
|
2761
|
-
h(dt(T));
|
|
2762
|
-
}, j = X(() => {
|
|
2763
|
-
if (u.clear(), v.current = "show", !w.show) {
|
|
2764
|
-
p(!0);
|
|
2765
|
-
return;
|
|
2766
|
-
}
|
|
2767
|
-
u.set(() => {
|
|
2768
|
-
v.current === "show" && p(!0);
|
|
2769
|
-
}, w.show);
|
|
2770
|
-
}, [w.show, p, u]), P = X(() => {
|
|
2771
|
-
if (u.clear(), v.current = "hide", !w.hide) {
|
|
2772
|
-
p(!1);
|
|
2773
|
-
return;
|
|
2774
|
-
}
|
|
2775
|
-
u.set(() => {
|
|
2776
|
-
v.current === "hide" && p(!1);
|
|
2777
|
-
}, w.hide);
|
|
2778
|
-
}, [w.hide, p, u]), E = X((...T) => {
|
|
2779
|
-
j(), g?.(...T);
|
|
2780
|
-
}, [j, g]), C = X((...T) => {
|
|
2781
|
-
P(), N?.(...T);
|
|
2782
|
-
}, [P, N]), D = X((...T) => {
|
|
2783
|
-
p(!b), y?.(...T);
|
|
2784
|
-
}, [y, p, b]), k = X((...T) => {
|
|
2785
|
-
tn(j, T, "fromElement");
|
|
2786
|
-
}, [j]), W = X((...T) => {
|
|
2787
|
-
tn(P, T, "toElement");
|
|
2788
|
-
}, [P]), _ = e == null ? [] : [].concat(e), A = {
|
|
2789
|
-
ref: O
|
|
2790
|
-
};
|
|
2791
|
-
return _.indexOf("click") !== -1 && (A.onClick = D), _.indexOf("focus") !== -1 && (A.onFocus = E, A.onBlur = C), _.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && mn(_.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.'), A.onMouseOver = k, A.onMouseOut = W), /* @__PURE__ */ s.jsxs(s.Fragment, {
|
|
2792
|
-
children: [typeof n == "function" ? n(A) : /* @__PURE__ */ En(n, A), /* @__PURE__ */ s.jsx(kn, {
|
|
2793
|
-
...d,
|
|
2794
|
-
show: b,
|
|
2795
|
-
onHide: P,
|
|
2796
|
-
flip: f,
|
|
2797
|
-
placement: l,
|
|
2798
|
-
popperConfig: r,
|
|
2799
|
-
target: m.current,
|
|
2800
|
-
children: t
|
|
2801
|
-
})]
|
|
2802
|
-
});
|
|
2803
|
-
};
|
|
2804
|
-
function Ps(e) {
|
|
2805
|
-
const { profile_photo: t, width: n, alt: r, hideDefault: a, activityStatus: i, user_id: o } = e;
|
|
2806
|
-
return t?.key ? /* @__PURE__ */ s.jsxs(
|
|
2807
|
-
"div",
|
|
2808
|
-
{
|
|
2809
|
-
"data-using-react-profile-photo": "true",
|
|
2810
|
-
className: `profile-photo-wrap ${n ? "" : "w-100 h-100"}`,
|
|
2811
|
-
style: {
|
|
2812
|
-
...n && {
|
|
2813
|
-
width: n,
|
|
2814
|
-
height: n
|
|
2815
|
-
}
|
|
2816
|
-
},
|
|
2817
|
-
children: [
|
|
2818
|
-
/* @__PURE__ */ s.jsx(
|
|
2819
|
-
nn,
|
|
2820
|
-
{
|
|
2821
|
-
activityStatus: i,
|
|
2822
|
-
user_id: o
|
|
2823
|
-
}
|
|
2824
|
-
),
|
|
2825
|
-
/* @__PURE__ */ s.jsx(
|
|
2826
|
-
"img",
|
|
2827
|
-
{
|
|
2828
|
-
className: "w-100 h-100",
|
|
2829
|
-
src: `${process.env.NEXT_PUBLIC_CDN}${t.key}`,
|
|
2830
|
-
style: { objectFit: "contain" },
|
|
2831
|
-
alt: r || "Profile photo of a user"
|
|
2832
|
-
}
|
|
2833
|
-
)
|
|
2834
|
-
]
|
|
2835
|
-
}
|
|
2836
|
-
) : /* @__PURE__ */ s.jsxs(
|
|
2837
|
-
"div",
|
|
2838
|
-
{
|
|
2839
|
-
"data-using-react-profile-photo": "true",
|
|
2840
|
-
className: be(
|
|
2841
|
-
"profile-photo-wrap",
|
|
2842
|
-
{
|
|
2843
|
-
"w-100 h-100": !n,
|
|
2844
|
-
"d-none": a
|
|
2845
|
-
}
|
|
2846
|
-
),
|
|
2847
|
-
style: {
|
|
2848
|
-
...n && {
|
|
2849
|
-
width: n,
|
|
2850
|
-
height: n
|
|
2851
|
-
}
|
|
2852
|
-
},
|
|
2853
|
-
children: [
|
|
2854
|
-
/* @__PURE__ */ s.jsx(
|
|
2855
|
-
nn,
|
|
2856
|
-
{
|
|
2857
|
-
activityStatus: i,
|
|
2858
|
-
user_id: o
|
|
2859
|
-
}
|
|
2860
|
-
),
|
|
2861
|
-
/* @__PURE__ */ s.jsx(
|
|
2862
|
-
"img",
|
|
2863
|
-
{
|
|
2864
|
-
className: "w-100 h-100",
|
|
2865
|
-
src: `${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,
|
|
2866
|
-
style: { objectFit: "contain" },
|
|
2867
|
-
alt: r || "Profile photo of a user"
|
|
2868
|
-
}
|
|
2869
|
-
)
|
|
2870
|
-
]
|
|
2871
|
-
}
|
|
2872
|
-
);
|
|
2873
|
-
}
|
|
2874
|
-
function nn({
|
|
2875
|
-
activityStatus: e,
|
|
2876
|
-
user_id: t
|
|
2877
|
-
}) {
|
|
2878
|
-
if (!(!e || !t))
|
|
2879
|
-
return /* @__PURE__ */ s.jsx(
|
|
2880
|
-
"div",
|
|
2881
|
-
{
|
|
2882
|
-
"data-user_id": t,
|
|
2883
|
-
className: be(
|
|
2884
|
-
"online-status",
|
|
2885
|
-
{
|
|
2886
|
-
"status-online": e?.status == "Online" || t == "630f0b337c52851e754b03f7",
|
|
2887
|
-
"status-offline": e?.status == "Offline",
|
|
2888
|
-
"status-away": e?.status == "Away",
|
|
2889
|
-
// Maybe one day show that friends are in a game or on a page if they want to share, we already collect this data anyway!
|
|
2890
|
-
"activity-active": !1
|
|
2891
|
-
}
|
|
2892
|
-
)
|
|
2893
|
-
}
|
|
2894
|
-
);
|
|
2895
|
-
}
|
|
2896
|
-
const Ms = (e) => (t, n, r) => (r.revalidateOnFocus = !1, r.revalidateIfStale = !1, r.revalidateOnReconnect = !1, e(t, n, r)), Ds = Yn(pt, Ms), _s = (e) => Ge.get(e.url, {
|
|
2897
|
-
params: {
|
|
2898
|
-
user_id: e.user_id
|
|
2899
|
-
}
|
|
2900
|
-
}).then((t) => t.data), ks = {
|
|
2901
|
-
dedupingInterval: 1e3 * 60 * 1,
|
|
2902
|
-
focusThrottleInterval: 1e3 * 60 * 1
|
|
2903
|
-
// fallbackData: []
|
|
2904
|
-
}, rn = (e) => {
|
|
2905
|
-
const { data: t, error: n, isLoading: r, isValidating: a, mutate: i } = Ds(
|
|
2906
|
-
e?.user_id ? {
|
|
2907
|
-
url: process.env.NODE_ENV === "development" ? "http://localhost:3000/api/user-public/getUserDetails" : "https://articles.media/api/user-public/getUserDetails",
|
|
2908
|
-
// "/api/user-public/getUserDetails",
|
|
2909
|
-
user_id: e.user_id
|
|
2910
|
-
} : null,
|
|
2911
|
-
_s,
|
|
2912
|
-
ks
|
|
2913
|
-
);
|
|
2914
|
-
return {
|
|
2915
|
-
data: t,
|
|
2916
|
-
error: n,
|
|
2917
|
-
isLoading: r,
|
|
2918
|
-
isValidating: a,
|
|
2919
|
-
mutate: i
|
|
2920
|
-
};
|
|
2921
|
-
};
|
|
2922
|
-
function ot({ className: e, noOutline: t, children: n, inline: r }) {
|
|
2923
|
-
const [i, o] = S();
|
|
2924
|
-
if (Y(() => {
|
|
2925
|
-
o(!0);
|
|
2926
|
-
}, []), n && (!1)?.roles?.isDev && i)
|
|
2927
|
-
return /* @__PURE__ */ s.jsx("div", { className: `is-dev-content ${t && "no-outline"} ${e} ${r && "d-inline-block"}`, children: n });
|
|
2928
|
-
}
|
|
2929
|
-
function Ss({
|
|
2930
|
-
activeLayoutProposalSentiments: e
|
|
2931
|
-
}) {
|
|
2932
|
-
return /* @__PURE__ */ s.jsx("div", { children: e.user_sentiments?.map((t) => /* @__PURE__ */ s.jsxs("div", { className: "card card-articles card-sm border mb-2", children: [
|
|
2933
|
-
/* @__PURE__ */ s.jsxs("div", { className: "card-header small", children: [
|
|
2934
|
-
"Gave their sentiment on ",
|
|
2935
|
-
/* @__PURE__ */ s.jsx("b", { children: t.populated_proposal.title })
|
|
2936
|
-
] }),
|
|
2937
|
-
/* @__PURE__ */ s.jsxs("div", { className: "card-body small p-2", children: [
|
|
2938
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center border-bottom pb-1", children: [
|
|
2939
|
-
t.sentiment_status == "Agree" && /* @__PURE__ */ s.jsx("div", { className: "badge shadow-articles bg-success", children: "Agree" }),
|
|
2940
|
-
t.sentiment_status == "Needs Work" && /* @__PURE__ */ s.jsx("div", { className: "badge shadow-articles bg-warning text-dark", children: "Needs Work" }),
|
|
2941
|
-
t.sentiment_status == "Disagree" && /* @__PURE__ */ s.jsx("div", { className: "badge shadow-articles bg-danger", children: "Disagree" }),
|
|
2942
|
-
/* @__PURE__ */ s.jsx("span", { className: "small ms-2", children: zr(new Date(t.date), "M/dd/yy") })
|
|
2943
|
-
] }),
|
|
2944
|
-
/* @__PURE__ */ s.jsx("div", { className: "mt-1", children: t.comment })
|
|
2945
|
-
] }),
|
|
2946
|
-
/* @__PURE__ */ s.jsx("div", { className: "card-footer", children: /* @__PURE__ */ s.jsx(
|
|
2947
|
-
Xe,
|
|
2948
|
-
{
|
|
2949
|
-
prefetch: !1,
|
|
2950
|
-
href: `https://articles.media/politics/proposals/${t.populated_proposal.url}?interaction_id=${t._id}`,
|
|
2951
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2952
|
-
R,
|
|
2953
|
-
{
|
|
2954
|
-
small: !0,
|
|
2955
|
-
children: "View"
|
|
2956
|
-
}
|
|
2957
|
-
)
|
|
2958
|
-
}
|
|
2959
|
-
) })
|
|
2960
|
-
] }, t._id)) });
|
|
2961
|
-
}
|
|
2962
|
-
function Es(e) {
|
|
2963
|
-
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
2964
|
-
}
|
|
2965
|
-
const Cs = (e) => Ge.get(e).then((t) => t.data), Ts = (e) => {
|
|
2966
|
-
const { data: t, error: n, isLoading: r, mutate: a } = pt(
|
|
2967
|
-
process.env.NODE_ENV === "development" ? "http://localhost:3000/api/news/resources/political-parties" : "https://articles.media/api/news/resources/political-parties",
|
|
2968
|
-
Cs,
|
|
2969
|
-
{
|
|
2970
|
-
dedupingInterval: 6e5
|
|
2971
|
-
// fallbackData: []
|
|
2972
|
-
}
|
|
2973
|
-
);
|
|
2974
|
-
return {
|
|
2975
|
-
data: t,
|
|
2976
|
-
error: n,
|
|
2977
|
-
isLoading: r,
|
|
2978
|
-
mutate: a
|
|
2979
|
-
};
|
|
2980
|
-
};
|
|
2981
|
-
function Ws(e) {
|
|
2982
|
-
const {
|
|
2983
|
-
populated_user: t,
|
|
2984
|
-
hidePhoto: n,
|
|
2985
|
-
visibleItems: r,
|
|
2986
|
-
size: a,
|
|
2987
|
-
className: i,
|
|
2988
|
-
dangerousPopulate: o,
|
|
2989
|
-
user_id: c,
|
|
2990
|
-
buttonType: l,
|
|
2991
|
-
children: f,
|
|
2992
|
-
fakeMembership: d
|
|
2993
|
-
// name
|
|
2994
|
-
} = e, [m, h] = S(!1), [u, v] = S({}), [b, p] = S([]), [w, g] = S([]), [N, y] = S(null), [O, j] = S([]), [P, E] = S([]), [C, D] = S(!1), k = !1, { data: W } = Ts(), [_, A] = S("Proposals Stance"), T = () => {
|
|
2995
|
-
h(!1);
|
|
2996
|
-
};
|
|
2997
|
-
Y(() => {
|
|
2998
|
-
t && v({
|
|
2999
|
-
...t
|
|
3000
|
-
});
|
|
3001
|
-
}, []);
|
|
3002
|
-
const [L, V] = S(!1), [ye, ne] = S([]), [ce, _e] = S([]), { data: $, mutate: xe } = rn(
|
|
3003
|
-
(c || t?._id) && (m || o) ? {
|
|
3004
|
-
user_id: c || t?._id
|
|
3005
|
-
} : null
|
|
3006
|
-
), { data: q, mutate: Z } = rn(
|
|
3007
|
-
k?._id && (m || o) ? {
|
|
3008
|
-
user_id: k?._id
|
|
3009
|
-
} : null
|
|
3010
|
-
);
|
|
3011
|
-
Y(() => {
|
|
3012
|
-
$ && (console.log("publicUserData", $), v($), p($?.populated_public_layouts), g($?.populated_public_donations), y($?.populated_public_donations.total), E($?.populated_public_proposals), ne($?.populated_public_proposals_stance), j($?.populated_public_news_submissions || []));
|
|
3013
|
-
}, [$]), Y(() => {
|
|
3014
|
-
q && (console.log("personalUserData", q), _e(q?.populated_public_proposals_stance));
|
|
3015
|
-
}, [q]);
|
|
3016
|
-
let re = (t || u)?.articles_membership?.plan.replace(" ", "-").toLowerCase(), we = d?.replace(" ", "-").toLowerCase();
|
|
3017
|
-
const ae = () => {
|
|
3018
|
-
let x = (t || u)?.articles_membership?.status == "Active";
|
|
3019
|
-
return /* @__PURE__ */ s.jsxs(
|
|
3020
|
-
"div",
|
|
3021
|
-
{
|
|
3022
|
-
style: { position: "relative" } && (a == "lg" ? { fontSize: "1.5rem" } : {}),
|
|
3023
|
-
className: `view-user-modal-badge-wrap ${a == "lg" && "large"} ${i && i}`,
|
|
3024
|
-
children: [
|
|
3025
|
-
/* @__PURE__ */ s.jsxs(
|
|
3026
|
-
"span",
|
|
3027
|
-
{
|
|
3028
|
-
onClick: () => {
|
|
3029
|
-
h(!0);
|
|
3030
|
-
},
|
|
3031
|
-
className: "position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles-secondary shadow-articles badge-hover ",
|
|
3032
|
-
children: [
|
|
3033
|
-
(x || d) && /* @__PURE__ */ s.jsx(
|
|
3034
|
-
"i",
|
|
3035
|
-
{
|
|
3036
|
-
className: `fad membership-badge ${we || re} fa-badge-check`,
|
|
3037
|
-
style: {
|
|
3038
|
-
position: "absolute",
|
|
3039
|
-
// top: '50%',
|
|
3040
|
-
top: "-2px",
|
|
3041
|
-
left: "-2px",
|
|
3042
|
-
// transform: 'translateY(-50%)',
|
|
3043
|
-
fontSize: "0.9rem",
|
|
3044
|
-
zIndex: 1
|
|
3045
|
-
// marginRight: '-0.5rem'
|
|
3046
|
-
// color: `${obj.badge_color}!important`
|
|
3047
|
-
}
|
|
3048
|
-
}
|
|
3049
|
-
),
|
|
3050
|
-
/* @__PURE__ */ s.jsxs("div", { className: `d-flex align-items-center ${x && ""}`, children: [
|
|
3051
|
-
!n && /* @__PURE__ */ s.jsx("div", { className: a == "lg" ? "me-0" : "me-1" }),
|
|
3052
|
-
u.display_name || t?.display_name
|
|
3053
|
-
] }),
|
|
3054
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-plus-square me-0 ms-2" })
|
|
3055
|
-
]
|
|
3056
|
-
}
|
|
3057
|
-
),
|
|
3058
|
-
r?.includes("Not Verified") && t?.verified?.status !== "Verified" && /* @__PURE__ */ s.jsx(
|
|
3059
|
-
se,
|
|
3060
|
-
{
|
|
3061
|
-
placement: "bottom",
|
|
3062
|
-
overlay: /* @__PURE__ */ s.jsx(J, { style: { pointerEvents: "none" }, id: "button-tooltip", children: /* @__PURE__ */ s.jsx("div", { className: "", children: "User is not verified" }) }),
|
|
3063
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3064
|
-
"span",
|
|
3065
|
-
{
|
|
3066
|
-
className: "verification-user-badge badge bg-danger d-flex align-items-center",
|
|
3067
|
-
children: [
|
|
3068
|
-
/* @__PURE__ */ s.jsx("i", { style: { paddingBottom: "2px" }, className: "fas fa-robot me-1" }),
|
|
3069
|
-
/* @__PURE__ */ s.jsx("span", { className: "", children: "Unverified" })
|
|
3070
|
-
]
|
|
3071
|
-
}
|
|
3072
|
-
)
|
|
3073
|
-
}
|
|
3074
|
-
),
|
|
3075
|
-
// true
|
|
3076
|
-
// ||
|
|
3077
|
-
// visibleItems?.includes("Membership")
|
|
3078
|
-
!1,
|
|
3079
|
-
r?.includes("Verification Status") && /* @__PURE__ */ s.jsx(
|
|
3080
|
-
se,
|
|
3081
|
-
{
|
|
3082
|
-
placement: "bottom",
|
|
3083
|
-
overlay: /* @__PURE__ */ s.jsx(
|
|
3084
|
-
J,
|
|
3085
|
-
{
|
|
3086
|
-
id: "button-tooltip",
|
|
3087
|
-
style: { pointerEvents: "none", transformX: "-20px" },
|
|
3088
|
-
children: t?.verified?.status == "Verified" ? "Verified" : " Not Verified"
|
|
3089
|
-
}
|
|
3090
|
-
),
|
|
3091
|
-
children: t?.verified?.status == "Verified" ? /* @__PURE__ */ s.jsx("span", { className: "verification-user-badge badge bg-success cursor-pointer", children: /* @__PURE__ */ s.jsx("i", { className: "fas fa-check me-0" }) }) : /* @__PURE__ */ s.jsxs("span", { className: "verification-user-badge badge bg-danger cursor-pointer", children: [
|
|
3092
|
-
/* @__PURE__ */ s.jsx("i", { className: "fas fa-robot me-1" }),
|
|
3093
|
-
/* @__PURE__ */ s.jsx("span", { children: "?" })
|
|
3094
|
-
] })
|
|
3095
|
-
}
|
|
3096
|
-
),
|
|
3097
|
-
r?.includes("Political Party") && /* @__PURE__ */ s.jsx("div", { className: "d-flex", children: (t || u)?.political?.party_id && /* @__PURE__ */ s.jsx(
|
|
3098
|
-
se,
|
|
3099
|
-
{
|
|
3100
|
-
placement: "bottom",
|
|
3101
|
-
overlay: /* @__PURE__ */ s.jsxs(
|
|
3102
|
-
J,
|
|
3103
|
-
{
|
|
3104
|
-
id: "tooltip-bottom",
|
|
3105
|
-
style: { position: "fixed" },
|
|
3106
|
-
children: [
|
|
3107
|
-
/* @__PURE__ */ s.jsx(
|
|
3108
|
-
"img",
|
|
3109
|
-
{
|
|
3110
|
-
width: "40px",
|
|
3111
|
-
height: "40px",
|
|
3112
|
-
style: {
|
|
3113
|
-
objectFit: "contain",
|
|
3114
|
-
padding: "0px",
|
|
3115
|
-
zIndex: "10",
|
|
3116
|
-
position: "relative"
|
|
3117
|
-
},
|
|
3118
|
-
loading: "lazy",
|
|
3119
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` + W?.find((F) => F._id == (t || u)?.political?.party_id)?.logo,
|
|
3120
|
-
alt: ""
|
|
3121
|
-
}
|
|
3122
|
-
),
|
|
3123
|
-
/* @__PURE__ */ s.jsx(
|
|
3124
|
-
"span",
|
|
3125
|
-
{
|
|
3126
|
-
className: "ms-2",
|
|
3127
|
-
children: W?.find((F) => F._id == (t || u)?.political?.party_id)?.name
|
|
3128
|
-
}
|
|
3129
|
-
)
|
|
3130
|
-
]
|
|
3131
|
-
}
|
|
3132
|
-
),
|
|
3133
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3134
|
-
"div",
|
|
3135
|
-
{
|
|
3136
|
-
className: "badge bg-light text-capitalize ms-0 shadow-articles h-100 d-flex justify-content-center align-items-center",
|
|
3137
|
-
style: {
|
|
3138
|
-
padding: "0 0.15rem",
|
|
3139
|
-
cursor: "pointer"
|
|
3140
|
-
},
|
|
3141
|
-
children: (t || u)?.political?.party_id && ((t || u)?.political?.party_id == "62a830440593acbd4061c48c" ? /* @__PURE__ */ s.jsx("i", { className: "fad fa-unlink unaffiliated-icon fa-lg me-0" }) : /* @__PURE__ */ s.jsx(
|
|
3142
|
-
"img",
|
|
3143
|
-
{
|
|
3144
|
-
width: "15px",
|
|
3145
|
-
height: "15px",
|
|
3146
|
-
style: {
|
|
3147
|
-
objectFit: "contain",
|
|
3148
|
-
padding: "0px"
|
|
3149
|
-
},
|
|
3150
|
-
loading: "lazy",
|
|
3151
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` + W?.find((F) => F._id == (t || u)?.political?.party_id)?.logo,
|
|
3152
|
-
alt: ""
|
|
3153
|
-
}
|
|
3154
|
-
))
|
|
3155
|
-
}
|
|
3156
|
-
)
|
|
3157
|
-
}
|
|
3158
|
-
) })
|
|
3159
|
-
]
|
|
3160
|
-
}
|
|
3161
|
-
);
|
|
3162
|
-
};
|
|
3163
|
-
function ke(x) {
|
|
3164
|
-
return x === "Link" ? /* @__PURE__ */ s.jsx(
|
|
3165
|
-
"span",
|
|
3166
|
-
{
|
|
3167
|
-
type: "button",
|
|
3168
|
-
onClick: () => {
|
|
3169
|
-
h(!0);
|
|
3170
|
-
},
|
|
3171
|
-
children: f
|
|
3172
|
-
}
|
|
3173
|
-
) : /* @__PURE__ */ s.jsx(ae, {});
|
|
3174
|
-
}
|
|
3175
|
-
const [B, le] = S(!1), [Ie, tt] = S({}), [Ot, Nt] = S({});
|
|
3176
|
-
Y(() => {
|
|
3177
|
-
B && Object.keys(Ie).length == 0 && console.log("adminUserData", q);
|
|
3178
|
-
}, [B]);
|
|
3179
|
-
const [nt, He] = S(null);
|
|
3180
|
-
function rt() {
|
|
3181
|
-
alert("TODO");
|
|
3182
|
-
}
|
|
3183
|
-
const Ve = $e(() => b?.filter((x) => x.user_layout)?.[0]?.url, [b]);
|
|
3184
|
-
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3185
|
-
ke(l),
|
|
3186
|
-
/* @__PURE__ */ s.jsxs(
|
|
3187
|
-
ie,
|
|
3188
|
-
{
|
|
3189
|
-
show: m,
|
|
3190
|
-
size: "lg",
|
|
3191
|
-
id: "view-users-modal",
|
|
3192
|
-
className: "view-users-modal articles-modal",
|
|
3193
|
-
scrollable: !0,
|
|
3194
|
-
onHide: T,
|
|
3195
|
-
children: [
|
|
3196
|
-
/* @__PURE__ */ s.jsx(ie.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" }) }) }),
|
|
3197
|
-
/* @__PURE__ */ s.jsx(ie.Body, { children: /* @__PURE__ */ s.jsxs("div", { className: "main-panel", children: [
|
|
3198
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex", children: [
|
|
3199
|
-
/* @__PURE__ */ s.jsxs(
|
|
3200
|
-
"div",
|
|
3201
|
-
{
|
|
3202
|
-
className: "d-flex flex-column align-items-center",
|
|
3203
|
-
style: {
|
|
3204
|
-
width: "100px"
|
|
3205
|
-
},
|
|
3206
|
-
children: [
|
|
3207
|
-
/* @__PURE__ */ s.jsx(
|
|
3208
|
-
"div",
|
|
3209
|
-
{
|
|
3210
|
-
type: "button",
|
|
3211
|
-
onClick: () => {
|
|
3212
|
-
He(`${process.env.NEXT_PUBLIC_CDN}${u?.profile_photo?.key}`);
|
|
3213
|
-
},
|
|
3214
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3215
|
-
Ps,
|
|
3216
|
-
{
|
|
3217
|
-
width: "100px",
|
|
3218
|
-
profile_photo: u?.profile_photo
|
|
3219
|
-
}
|
|
3220
|
-
)
|
|
3221
|
-
}
|
|
3222
|
-
),
|
|
3223
|
-
/* @__PURE__ */ s.jsx(
|
|
3224
|
-
se,
|
|
3225
|
-
{
|
|
3226
|
-
placement: "bottom",
|
|
3227
|
-
overlay: /* @__PURE__ */ s.jsx(
|
|
3228
|
-
J,
|
|
3229
|
-
{
|
|
3230
|
-
id: "tooltip-bottom",
|
|
3231
|
-
children: "Joined Articles Media"
|
|
3232
|
-
}
|
|
3233
|
-
),
|
|
3234
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "badge bg-black border border-white shadow-sm rounded-0", children: [
|
|
3235
|
-
"Joined ",
|
|
3236
|
-
u?.sign_up_date && format(new Date(u?.sign_up_date), "M/dd/yy")
|
|
3237
|
-
] })
|
|
3238
|
-
}
|
|
3239
|
-
),
|
|
3240
|
-
Ve && /* @__PURE__ */ s.jsx(
|
|
3241
|
-
Xe,
|
|
3242
|
-
{
|
|
3243
|
-
href: (
|
|
3244
|
-
// `${ROUTES.LAYOUTS}/${userLayoutLink}`
|
|
3245
|
-
`https://articles.media/layouts/${Ve}`
|
|
3246
|
-
),
|
|
3247
|
-
className: "mt-2 w-100",
|
|
3248
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3249
|
-
R,
|
|
3250
|
-
{
|
|
3251
|
-
className: "w-100",
|
|
3252
|
-
style: {
|
|
3253
|
-
// fontSize: '0.75rem'
|
|
3254
|
-
},
|
|
3255
|
-
children: [
|
|
3256
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-home" }),
|
|
3257
|
-
/* @__PURE__ */ s.jsx("span", { children: "Layout" })
|
|
3258
|
-
]
|
|
3259
|
-
}
|
|
3260
|
-
)
|
|
3261
|
-
}
|
|
3262
|
-
),
|
|
3263
|
-
/* @__PURE__ */ s.jsx(ot, { className: "w-100", children: /* @__PURE__ */ s.jsx(
|
|
3264
|
-
Xe,
|
|
3265
|
-
{
|
|
3266
|
-
href: {
|
|
3267
|
-
// pathname: ROUTES.MESSAGES,
|
|
3268
|
-
pathname: "https://articles.media/messages",
|
|
3269
|
-
query: {
|
|
3270
|
-
startMsg: u?._id
|
|
3271
|
-
}
|
|
3272
|
-
},
|
|
3273
|
-
className: "mt-2 w-100",
|
|
3274
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3275
|
-
R,
|
|
3276
|
-
{
|
|
3277
|
-
className: "w-100",
|
|
3278
|
-
style: {
|
|
3279
|
-
fontSize: "0.88rem"
|
|
3280
|
-
},
|
|
3281
|
-
children: [
|
|
3282
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-envelope" }),
|
|
3283
|
-
/* @__PURE__ */ s.jsx("span", { children: "Message" })
|
|
3284
|
-
]
|
|
3285
|
-
}
|
|
3286
|
-
)
|
|
3287
|
-
}
|
|
3288
|
-
) }),
|
|
3289
|
-
B && /* @__PURE__ */ s.jsxs(
|
|
3290
|
-
"div",
|
|
3291
|
-
{
|
|
3292
|
-
className: "d-flex flex-column w-100 mt-2",
|
|
3293
|
-
style: {
|
|
3294
|
-
maxWidth: "100px"
|
|
3295
|
-
},
|
|
3296
|
-
children: [
|
|
3297
|
-
/* @__PURE__ */ s.jsx(R, { variant: "warning", small: !0, className: "", children: /* @__PURE__ */ s.jsx(Textfit, { max: 14, mode: "single", children: "Remove Photo" }) }),
|
|
3298
|
-
Ie?.user?.profile_photo?.banned_uploads ? /* @__PURE__ */ s.jsx(
|
|
3299
|
-
R,
|
|
3300
|
-
{
|
|
3301
|
-
variant: "warning",
|
|
3302
|
-
small: !0,
|
|
3303
|
-
className: "",
|
|
3304
|
-
onClick: () => {
|
|
3305
|
-
toggleBanCustomPhotoUpload();
|
|
3306
|
-
},
|
|
3307
|
-
children: /* @__PURE__ */ s.jsx(Textfit, { max: 14, mode: "single", children: "Unban Uploads" })
|
|
3308
|
-
}
|
|
3309
|
-
) : /* @__PURE__ */ s.jsx(
|
|
3310
|
-
R,
|
|
3311
|
-
{
|
|
3312
|
-
variant: "danger",
|
|
3313
|
-
small: !0,
|
|
3314
|
-
className: "",
|
|
3315
|
-
onClick: () => {
|
|
3316
|
-
toggleBanCustomPhotoUpload();
|
|
3317
|
-
},
|
|
3318
|
-
children: /* @__PURE__ */ s.jsx(Textfit, { max: 14, mode: "single", children: "Ban Uploads" })
|
|
3319
|
-
}
|
|
3320
|
-
)
|
|
3321
|
-
]
|
|
3322
|
-
}
|
|
3323
|
-
)
|
|
3324
|
-
]
|
|
3325
|
-
}
|
|
3326
|
-
),
|
|
3327
|
-
/* @__PURE__ */ s.jsxs("div", { className: "mx-2", children: [
|
|
3328
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center mb-1", children: [
|
|
3329
|
-
/* @__PURE__ */ s.jsx("h5", { className: "mb-0", children: t?.display_name || u.display_name }),
|
|
3330
|
-
/* @__PURE__ */ s.jsxs("span", { className: "ms-2", children: [
|
|
3331
|
-
" @",
|
|
3332
|
-
u?.username
|
|
3333
|
-
] })
|
|
3334
|
-
] }),
|
|
3335
|
-
u?.articles_membership?.status == "Active" && /* @__PURE__ */ s.jsx(
|
|
3336
|
-
se,
|
|
3337
|
-
{
|
|
3338
|
-
placement: "bottom",
|
|
3339
|
-
overlay: /* @__PURE__ */ s.jsx(
|
|
3340
|
-
J,
|
|
3341
|
-
{
|
|
3342
|
-
id: "tooltip-bottom",
|
|
3343
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "d-flex flex-column py-1", children: [
|
|
3344
|
-
/* @__PURE__ */ s.jsxs("div", { className: "position-relative", children: [
|
|
3345
|
-
u?.articles_membership?.plan == "Supporter" && /* @__PURE__ */ s.jsx(Image, { src: "/images/store/memberships/supporter.jpg", width: 50, height: 50, alt: "Membership plan level" }),
|
|
3346
|
-
u?.articles_membership?.plan == "Premium Supporter" && /* @__PURE__ */ s.jsx(Image, { src: "/images/store/memberships/premiumSupporter.jpg", width: 50, height: 50, alt: "Membership plan level" }),
|
|
3347
|
-
u?.articles_membership?.plan == "Advocate" && /* @__PURE__ */ s.jsx(Image, { src: "/images/store/memberships/advocate.jpg", width: 50, height: 50, alt: "Membership plan level" }),
|
|
3348
|
-
/* @__PURE__ */ s.jsx(
|
|
3349
|
-
"i",
|
|
3350
|
-
{
|
|
3351
|
-
className: `fad membership-badge ${re} fa-badge-check me-1`,
|
|
3352
|
-
style: {
|
|
3353
|
-
position: "absolute",
|
|
3354
|
-
top: "50%",
|
|
3355
|
-
// top: '-2px',
|
|
3356
|
-
left: "50%",
|
|
3357
|
-
transform: "translateX(-50%) translateY(-50%)",
|
|
3358
|
-
fontSize: "1.5rem"
|
|
3359
|
-
// marginRight: '-0.5rem'
|
|
3360
|
-
// color: `${obj.badge_color}!important`
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
)
|
|
3364
|
-
] }),
|
|
3365
|
-
/* @__PURE__ */ s.jsxs("span", { className: "lh-sm", children: [
|
|
3366
|
-
/* @__PURE__ */ s.jsx("div", { children: u?.articles_membership?.plan }),
|
|
3367
|
-
/* @__PURE__ */ s.jsxs("div", { className: "small", children: [
|
|
3368
|
-
"Since ",
|
|
3369
|
-
/* @__PURE__ */ s.jsx(ArticlesDate, { format: "MM/dd/yy", date: u?.articles_membership?.membership_started })
|
|
3370
|
-
] })
|
|
3371
|
-
] })
|
|
3372
|
-
] })
|
|
3373
|
-
}
|
|
3374
|
-
),
|
|
3375
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3376
|
-
"div",
|
|
3377
|
-
{
|
|
3378
|
-
className: "badge bg-articles border text-dark me-1 mb-1",
|
|
3379
|
-
style: {
|
|
3380
|
-
// padding: '0 0.25rem',
|
|
3381
|
-
cursor: "pointer"
|
|
3382
|
-
},
|
|
3383
|
-
children: [
|
|
3384
|
-
/* @__PURE__ */ s.jsx(
|
|
3385
|
-
"i",
|
|
3386
|
-
{
|
|
3387
|
-
className: `fad membership-badge ${re} fa-badge-check me-1`,
|
|
3388
|
-
style: {
|
|
3389
|
-
// position: 'absolute',
|
|
3390
|
-
// top: '50%',
|
|
3391
|
-
// top: '-2px',
|
|
3392
|
-
// left: '-2px',
|
|
3393
|
-
// transform: 'translateY(-50%)',
|
|
3394
|
-
// fontSize: '0.9rem'
|
|
3395
|
-
// marginRight: '-0.5rem'
|
|
3396
|
-
// color: `${obj.badge_color}!important`
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
),
|
|
3400
|
-
/* @__PURE__ */ s.jsx("span", { children: u?.articles_membership?.plan }),
|
|
3401
|
-
/* @__PURE__ */ s.jsx("span", { className: "px-1", children: "|" }),
|
|
3402
|
-
/* @__PURE__ */ s.jsx("span", { className: "months fw-bold", children: differenceInMonths(
|
|
3403
|
-
/* @__PURE__ */ new Date(),
|
|
3404
|
-
new Date(u?.articles_membership?.membership_started)
|
|
3405
|
-
) || 0 })
|
|
3406
|
-
]
|
|
3407
|
-
}
|
|
3408
|
-
)
|
|
3409
|
-
}
|
|
3410
|
-
),
|
|
3411
|
-
u?.address?.state && /* @__PURE__ */ s.jsx(
|
|
3412
|
-
se,
|
|
3413
|
-
{
|
|
3414
|
-
placement: "bottom",
|
|
3415
|
-
overlay: u.address?.state?.length == 2 ? /* @__PURE__ */ s.jsxs(J, { id: "tooltip-bottom", children: [
|
|
3416
|
-
"From the state of ",
|
|
3417
|
-
convertRegion(u.address?.state, "name") ? convertRegion(u.address?.state, "name")[0] : ""
|
|
3418
|
-
] }) : /* @__PURE__ */ s.jsxs(J, { id: "tooltip-bottom", children: [
|
|
3419
|
-
"From the state of ",
|
|
3420
|
-
u.address?.state
|
|
3421
|
-
] }),
|
|
3422
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "badge bg-articles-secondary border text-dark me-1 mb-1", children: [
|
|
3423
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-map-pin me-1" }),
|
|
3424
|
-
u.address?.state
|
|
3425
|
-
] })
|
|
3426
|
-
}
|
|
3427
|
-
),
|
|
3428
|
-
u.verified?.status !== "Verified" && /* @__PURE__ */ s.jsx(
|
|
3429
|
-
se,
|
|
3430
|
-
{
|
|
3431
|
-
placement: "bottom",
|
|
3432
|
-
overlay: /* @__PURE__ */ s.jsx(J, { id: "tooltip-bottom", children: "User is not verified" }),
|
|
3433
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "badge bg-danger shadow-articles me-1 mb-1", children: [
|
|
3434
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-robot me-1" }),
|
|
3435
|
-
"Unverified"
|
|
3436
|
-
] })
|
|
3437
|
-
}
|
|
3438
|
-
),
|
|
3439
|
-
u.verified?.status == "Verified" && /* @__PURE__ */ s.jsx(
|
|
3440
|
-
se,
|
|
3441
|
-
{
|
|
3442
|
-
placement: "bottom",
|
|
3443
|
-
overlay: /* @__PURE__ */ s.jsxs(
|
|
3444
|
-
J,
|
|
3445
|
-
{
|
|
3446
|
-
id: "tooltip-bottom",
|
|
3447
|
-
className: "",
|
|
3448
|
-
children: [
|
|
3449
|
-
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
3450
|
-
"Verified by ",
|
|
3451
|
-
u.verified?.verified_methods?.length,
|
|
3452
|
-
" method",
|
|
3453
|
-
u.verified?.verified_methods?.length > 1 && "s"
|
|
3454
|
-
] }),
|
|
3455
|
-
/* @__PURE__ */ s.jsx("hr", {}),
|
|
3456
|
-
/* @__PURE__ */ s.jsx("div", { className: "pb-2", children: u.verified?.verified_methods?.map((x, F) => Object.keys(x)?.length > 0 ? /* @__PURE__ */ s.jsx(
|
|
3457
|
-
"div",
|
|
3458
|
-
{
|
|
3459
|
-
className: "object",
|
|
3460
|
-
children: x?.method_name
|
|
3461
|
-
},
|
|
3462
|
-
F
|
|
3463
|
-
) : /* @__PURE__ */ s.jsx(
|
|
3464
|
-
"div",
|
|
3465
|
-
{
|
|
3466
|
-
className: "single",
|
|
3467
|
-
children: x
|
|
3468
|
-
},
|
|
3469
|
-
F
|
|
3470
|
-
)) })
|
|
3471
|
-
]
|
|
3472
|
-
}
|
|
3473
|
-
),
|
|
3474
|
-
children: /* @__PURE__ */ s.jsxs("div", { className: "badge bg-articles-secondary border text-dark me-1 mb-1", children: [
|
|
3475
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-star me-1" }),
|
|
3476
|
-
u.verified?.status
|
|
3477
|
-
] })
|
|
3478
|
-
}
|
|
3479
|
-
),
|
|
3480
|
-
u.political?.party_id && /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
3481
|
-
se,
|
|
3482
|
-
{
|
|
3483
|
-
placement: "bottom",
|
|
3484
|
-
overlay: /* @__PURE__ */ s.jsx(J, { id: "tooltip-bottom", children: /* @__PURE__ */ s.jsx("div", { children: "Users political party" }) }),
|
|
3485
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3486
|
-
Xe,
|
|
3487
|
-
{
|
|
3488
|
-
href: (
|
|
3489
|
-
// `${ROUTES.RESOURCES_POLITICAL_PARTIES}/${(populated_user || userData)?.political?.party_id}`
|
|
3490
|
-
`https://articles.media/politics/parties/${(t || u)?.political?.party_id}`
|
|
3491
|
-
),
|
|
3492
|
-
children: /* @__PURE__ */ s.jsx("div", { className: "badge bg-articles-secondary border shadow-articles text-dark text-capitalize me-1", children: /* @__PURE__ */ s.jsxs("div", { className: "", children: [
|
|
3493
|
-
(t || u)?.political?.party_id == "62a830440593acbd4061c48c" ? /* @__PURE__ */ s.jsx("i", { className: "fad fa-unlink unaffiliated-icon fa-lg me-0" }) : /* @__PURE__ */ s.jsx(
|
|
3494
|
-
"img",
|
|
3495
|
-
{
|
|
3496
|
-
width: "14px",
|
|
3497
|
-
height: "14px",
|
|
3498
|
-
style: {
|
|
3499
|
-
objectFit: "contain",
|
|
3500
|
-
padding: "0px"
|
|
3501
|
-
},
|
|
3502
|
-
loading: "lazy",
|
|
3503
|
-
src: `${process.env.NEXT_PUBLIC_CDN}` + W?.find((x) => x._id == u?.political?.party_id)?.logo,
|
|
3504
|
-
alt: ""
|
|
3505
|
-
}
|
|
3506
|
-
),
|
|
3507
|
-
/* @__PURE__ */ s.jsx("span", { className: "ms-1", children: W?.find((x) => x._id == u.political?.party_id)?.name })
|
|
3508
|
-
] }) })
|
|
3509
|
-
}
|
|
3510
|
-
)
|
|
3511
|
-
}
|
|
3512
|
-
) }),
|
|
3513
|
-
/* @__PURE__ */ s.jsx("hr", {}),
|
|
3514
|
-
/* @__PURE__ */ s.jsx("div", { className: "small", children: u?._id == "5e90cc96579a17440c5d7d52" && /* @__PURE__ */ s.jsx("span", { children: "Founder of Articles Media, thank you for using the site, feel free to message me with any questions, concerns or anything else." }) })
|
|
3515
|
-
] })
|
|
3516
|
-
] }),
|
|
3517
|
-
/* @__PURE__ */ s.jsx("hr", {}),
|
|
3518
|
-
B && /* @__PURE__ */ s.jsxs("div", { children: [
|
|
3519
|
-
/* @__PURE__ */ s.jsx("div", { className: "d-flex align-items-center justify-content-between", children: /* @__PURE__ */ s.jsx("div", { className: "small", children: "Admin Mode Toolbar" }) }),
|
|
3520
|
-
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
3521
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex mb-2", children: [
|
|
3522
|
-
/* @__PURE__ */ s.jsx(
|
|
3523
|
-
R,
|
|
3524
|
-
{
|
|
3525
|
-
small: !0,
|
|
3526
|
-
variant: "warning",
|
|
3527
|
-
className: "",
|
|
3528
|
-
onClick: () => {
|
|
3529
|
-
loadAdminUserData();
|
|
3530
|
-
},
|
|
3531
|
-
children: /* @__PURE__ */ s.jsx("i", { className: "fad fa-redo me-0" })
|
|
3532
|
-
}
|
|
3533
|
-
),
|
|
3534
|
-
/* @__PURE__ */ s.jsx(
|
|
3535
|
-
R,
|
|
3536
|
-
{
|
|
3537
|
-
active: B?.edit,
|
|
3538
|
-
small: !0,
|
|
3539
|
-
className: "",
|
|
3540
|
-
onClick: () => {
|
|
3541
|
-
le({
|
|
3542
|
-
...B,
|
|
3543
|
-
edit: !B?.edit
|
|
3544
|
-
});
|
|
3545
|
-
},
|
|
3546
|
-
children: "Edit Mode"
|
|
3547
|
-
}
|
|
3548
|
-
),
|
|
3549
|
-
B?.edit && /* @__PURE__ */ s.jsx(
|
|
3550
|
-
R,
|
|
3551
|
-
{
|
|
3552
|
-
small: !0,
|
|
3553
|
-
variant: "success",
|
|
3554
|
-
className: "me-0",
|
|
3555
|
-
onClick: () => {
|
|
3556
|
-
rt();
|
|
3557
|
-
},
|
|
3558
|
-
children: /* @__PURE__ */ s.jsx("i", { className: "fad fa-save me-0" })
|
|
3559
|
-
}
|
|
3560
|
-
)
|
|
3561
|
-
] }),
|
|
3562
|
-
[
|
|
3563
|
-
"User Details",
|
|
3564
|
-
"Verification",
|
|
3565
|
-
"Moderation",
|
|
3566
|
-
"Bans",
|
|
3567
|
-
"Stripe",
|
|
3568
|
-
"Layouts",
|
|
3569
|
-
"Reset Password",
|
|
3570
|
-
"Sessions"
|
|
3571
|
-
].map(
|
|
3572
|
-
(x) => /* @__PURE__ */ s.jsx(
|
|
3573
|
-
R,
|
|
3574
|
-
{
|
|
3575
|
-
active: x == B?.tab,
|
|
3576
|
-
small: !0,
|
|
3577
|
-
onClick: () => {
|
|
3578
|
-
le({
|
|
3579
|
-
...B,
|
|
3580
|
-
tab: x
|
|
3581
|
-
});
|
|
3582
|
-
},
|
|
3583
|
-
children: x
|
|
3584
|
-
},
|
|
3585
|
-
x
|
|
3586
|
-
)
|
|
3587
|
-
)
|
|
3588
|
-
] }),
|
|
3589
|
-
/* @__PURE__ */ s.jsx("hr", {})
|
|
3590
|
-
] }),
|
|
3591
|
-
/* @__PURE__ */ s.jsxs("div", { className: "pe-3 pb-3", children: [
|
|
3592
|
-
/* @__PURE__ */ s.jsx("div", { className: "mb-2 me-2", children: [
|
|
3593
|
-
{
|
|
3594
|
-
name: "Proposals Stance",
|
|
3595
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: /* @__PURE__ */ s.jsxs("div", { className: "small", children: [
|
|
3596
|
-
/* @__PURE__ */ s.jsx("span", { children: ce?.fundamental?.filter((x) => ce?.user_sentiments?.find((F) => F.proposal_id == x._id) ? x : null).length }),
|
|
3597
|
-
/* @__PURE__ */ s.jsx("span", { className: "px-1", children: "/" }),
|
|
3598
|
-
/* @__PURE__ */ s.jsx("span", { children: ce?.fundamental?.length })
|
|
3599
|
-
] }) })
|
|
3600
|
-
},
|
|
3601
|
-
{
|
|
3602
|
-
name: "Proposal Sentiments",
|
|
3603
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: u?.populated_public_proposals_stance?.user_sentiments_count || 0 })
|
|
3604
|
-
},
|
|
3605
|
-
{
|
|
3606
|
-
name: "Proposal Comments",
|
|
3607
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: u?.populated_public_proposals_stance?.user_comments_count || 0 })
|
|
3608
|
-
},
|
|
3609
|
-
{
|
|
3610
|
-
name: "Proposal Submissions",
|
|
3611
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: P?.length || 0 })
|
|
3612
|
-
// TODO - Make conditional
|
|
3613
|
-
},
|
|
3614
|
-
{
|
|
3615
|
-
name: "News Comments",
|
|
3616
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: u?.populated_news_comments_count || 0 })
|
|
3617
|
-
},
|
|
3618
|
-
{
|
|
3619
|
-
name: "News Submissions",
|
|
3620
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: O?.length || 0 })
|
|
3621
|
-
// TODO - Make conditional
|
|
3622
|
-
},
|
|
3623
|
-
{
|
|
3624
|
-
name: "Verifications",
|
|
3625
|
-
// dev: true,
|
|
3626
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: u.verified?.verified_methods?.length || 0 })
|
|
3627
|
-
// TODO - Make conditional
|
|
3628
|
-
},
|
|
3629
|
-
{
|
|
3630
|
-
name: "Layouts",
|
|
3631
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: b?.length || 0 })
|
|
3632
|
-
},
|
|
3633
|
-
{
|
|
3634
|
-
name: "Donations",
|
|
3635
|
-
badge: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
3636
|
-
/* @__PURE__ */ s.jsx("span", { className: "badge bg-primary ms-1", children: $?.populated_public_donations?.count || 0 }),
|
|
3637
|
-
/* @__PURE__ */ s.jsxs("span", { className: "badge bg-black", children: [
|
|
3638
|
-
"$",
|
|
3639
|
-
Es(($?.populated_public_donations.total / 100).toFixed(2))
|
|
3640
|
-
] })
|
|
3641
|
-
] })
|
|
3642
|
-
},
|
|
3643
|
-
{
|
|
3644
|
-
name: "Orders",
|
|
3645
|
-
badge: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
3646
|
-
/* @__PURE__ */ s.jsx("span", { className: "badge bg-primary ms-1", children: "0" }),
|
|
3647
|
-
/* @__PURE__ */ s.jsx("span", { className: "badge bg-black", children: "0" })
|
|
3648
|
-
] })
|
|
3649
|
-
},
|
|
3650
|
-
{
|
|
3651
|
-
name: "Achievements",
|
|
3652
|
-
dev: !0,
|
|
3653
|
-
badge: /* @__PURE__ */ s.jsx("span", { className: "badge bg-black ms-1", children: "0" })
|
|
3654
|
-
// TODO - Make conditional
|
|
3655
|
-
}
|
|
3656
|
-
].map((x) => (R, x.name == _, x.name, x.badge, x.name, x.dev ? /* @__PURE__ */ s.jsx(
|
|
3657
|
-
ot,
|
|
3658
|
-
{
|
|
3659
|
-
inline: !0,
|
|
3660
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3661
|
-
R,
|
|
3662
|
-
{
|
|
3663
|
-
onClick: () => A(x.name),
|
|
3664
|
-
active: x.name == _,
|
|
3665
|
-
small: !0,
|
|
3666
|
-
children: [
|
|
3667
|
-
x.name,
|
|
3668
|
-
x.badge
|
|
3669
|
-
]
|
|
3670
|
-
},
|
|
3671
|
-
x.name
|
|
3672
|
-
)
|
|
3673
|
-
},
|
|
3674
|
-
x.name
|
|
3675
|
-
) : /* @__PURE__ */ s.jsxs(
|
|
3676
|
-
R,
|
|
3677
|
-
{
|
|
3678
|
-
onClick: () => A(x.name),
|
|
3679
|
-
active: x.name == _,
|
|
3680
|
-
small: !0,
|
|
3681
|
-
children: [
|
|
3682
|
-
x.name,
|
|
3683
|
-
x.badge
|
|
3684
|
-
]
|
|
3685
|
-
},
|
|
3686
|
-
x.name
|
|
3687
|
-
))) }),
|
|
3688
|
-
_ == "Proposal Sentiments" && /* @__PURE__ */ s.jsx(
|
|
3689
|
-
Ss,
|
|
3690
|
-
{
|
|
3691
|
-
activeLayoutProposalSentiments: ye
|
|
3692
|
-
}
|
|
3693
|
-
)
|
|
3694
|
-
] })
|
|
3695
|
-
] }) }),
|
|
3696
|
-
/* @__PURE__ */ s.jsxs(ie.Footer, { className: "justify-content-between", children: [
|
|
3697
|
-
k?._id == "5e90cc96579a17440c5d7d52" ? /* @__PURE__ */ s.jsxs("span", { children: [
|
|
3698
|
-
/* @__PURE__ */ s.jsxs(
|
|
3699
|
-
ot,
|
|
3700
|
-
{
|
|
3701
|
-
inline: !0,
|
|
3702
|
-
className: "me-2",
|
|
3703
|
-
children: [
|
|
3704
|
-
/* @__PURE__ */ s.jsxs(
|
|
3705
|
-
R,
|
|
3706
|
-
{
|
|
3707
|
-
onClick: () => {
|
|
3708
|
-
le(B ? !1 : {
|
|
3709
|
-
tab: ""
|
|
3710
|
-
});
|
|
3711
|
-
},
|
|
3712
|
-
small: !0,
|
|
3713
|
-
active: B,
|
|
3714
|
-
variant: "",
|
|
3715
|
-
className: "me-1",
|
|
3716
|
-
children: [
|
|
3717
|
-
/* @__PURE__ */ s.jsx("i", { className: "fad fa-pen" }),
|
|
3718
|
-
/* @__PURE__ */ s.jsx("span", { children: "Admin Mode" })
|
|
3719
|
-
]
|
|
3720
|
-
}
|
|
3721
|
-
),
|
|
3722
|
-
/* @__PURE__ */ s.jsx(
|
|
3723
|
-
R,
|
|
3724
|
-
{
|
|
3725
|
-
onClick: () => {
|
|
3726
|
-
xe(), Z();
|
|
3727
|
-
},
|
|
3728
|
-
small: !0,
|
|
3729
|
-
variant: "warning",
|
|
3730
|
-
className: "",
|
|
3731
|
-
children: /* @__PURE__ */ s.jsx("i", { className: "fad fa-redo me-0" })
|
|
3732
|
-
}
|
|
3733
|
-
)
|
|
3734
|
-
]
|
|
3735
|
-
}
|
|
3736
|
-
),
|
|
3737
|
-
/* @__PURE__ */ s.jsx("span", { style: { fontSize: "0.8rem" }, children: u?._id })
|
|
3738
|
-
] }) : /* @__PURE__ */ s.jsx("span", {}),
|
|
3739
|
-
/* @__PURE__ */ s.jsx("div", { className: "justify-content-", children: /* @__PURE__ */ s.jsx(R, { variant: "articles", onClick: T, children: "Close" }) })
|
|
3740
|
-
] })
|
|
3741
|
-
]
|
|
3742
|
-
}
|
|
3743
|
-
)
|
|
3744
|
-
] });
|
|
3745
|
-
}
|
|
3746
|
-
function As({
|
|
3747
|
-
setChecked: e,
|
|
3748
|
-
checked: t,
|
|
3749
|
-
readOnly: n
|
|
3750
|
-
}) {
|
|
3751
|
-
return /* @__PURE__ */ s.jsxs("label", { className: `articles-switch mb-0 ${t && "checked"}`, children: [
|
|
3752
|
-
/* @__PURE__ */ s.jsx(
|
|
12
|
+
return /* @__PURE__ */ e.jsxs("label", { className: `articles-switch mb-0 ${a && "checked"}`, children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx(
|
|
3753
14
|
"input",
|
|
3754
15
|
{
|
|
3755
16
|
type: "checkbox",
|
|
3756
|
-
readOnly: !!
|
|
3757
|
-
checked:
|
|
17
|
+
readOnly: !!r,
|
|
18
|
+
checked: a,
|
|
3758
19
|
onChange: () => {
|
|
3759
20
|
}
|
|
3760
21
|
}
|
|
3761
22
|
),
|
|
3762
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ e.jsx(
|
|
3763
24
|
"span",
|
|
3764
25
|
{
|
|
3765
|
-
onClick: (
|
|
3766
|
-
if (
|
|
3767
|
-
|
|
26
|
+
onClick: (l) => {
|
|
27
|
+
if (s) {
|
|
28
|
+
s(!a);
|
|
3768
29
|
return;
|
|
3769
30
|
} else {
|
|
3770
|
-
|
|
31
|
+
l.preventDefault();
|
|
3771
32
|
return;
|
|
3772
33
|
}
|
|
3773
34
|
},
|
|
@@ -3776,140 +37,140 @@ function As({
|
|
|
3776
37
|
)
|
|
3777
38
|
] });
|
|
3778
39
|
}
|
|
3779
|
-
const
|
|
40
|
+
const N = async (s) => {
|
|
3780
41
|
if (process.env.NODE_ENV === "development")
|
|
3781
42
|
try {
|
|
3782
|
-
return (await
|
|
43
|
+
return (await f.get("http://localhost:3001/api/community/games/scoreboard", {
|
|
3783
44
|
params: {
|
|
3784
|
-
game:
|
|
45
|
+
game: s.game
|
|
3785
46
|
}
|
|
3786
47
|
})).data;
|
|
3787
48
|
} catch {
|
|
3788
49
|
}
|
|
3789
|
-
return
|
|
50
|
+
return f.get(s.url, {
|
|
3790
51
|
params: {
|
|
3791
|
-
game:
|
|
52
|
+
game: s.game
|
|
3792
53
|
}
|
|
3793
|
-
}).then((
|
|
3794
|
-
},
|
|
54
|
+
}).then((a) => a.data);
|
|
55
|
+
}, g = {
|
|
3795
56
|
dedupingInterval: 1e3 * 60 * 30,
|
|
3796
57
|
refreshInterval: 0,
|
|
3797
58
|
revalidateOnFocus: !1,
|
|
3798
59
|
revalidateIfStale: !1,
|
|
3799
60
|
shouldRetryOnError: !1
|
|
3800
61
|
// fallbackData: []
|
|
3801
|
-
},
|
|
3802
|
-
const { data:
|
|
3803
|
-
|
|
62
|
+
}, v = (s) => {
|
|
63
|
+
const { data: a, error: r, isLoading: l, isValidating: i, mutate: c } = b(
|
|
64
|
+
s?.game ? {
|
|
3804
65
|
// url: "/api/community/games/scoreboard",
|
|
3805
66
|
url: "https://articles.media/api/community/games/scoreboard",
|
|
3806
|
-
game:
|
|
67
|
+
game: s.game
|
|
3807
68
|
} : null,
|
|
3808
|
-
|
|
3809
|
-
|
|
69
|
+
N,
|
|
70
|
+
g
|
|
3810
71
|
);
|
|
3811
72
|
return {
|
|
3812
|
-
data:
|
|
3813
|
-
error:
|
|
3814
|
-
isLoading:
|
|
3815
|
-
isValidating:
|
|
3816
|
-
mutate:
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
function
|
|
3820
|
-
const [
|
|
3821
|
-
data:
|
|
3822
|
-
mutate:
|
|
3823
|
-
} =
|
|
3824
|
-
game:
|
|
3825
|
-
});
|
|
3826
|
-
return
|
|
3827
|
-
}, []),
|
|
3828
|
-
|
|
3829
|
-
}, [
|
|
3830
|
-
/* @__PURE__ */
|
|
3831
|
-
/* @__PURE__ */
|
|
3832
|
-
/* @__PURE__ */
|
|
73
|
+
data: a,
|
|
74
|
+
error: r,
|
|
75
|
+
isLoading: l,
|
|
76
|
+
isValidating: i,
|
|
77
|
+
mutate: c
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
function E({ game: s, reloadScoreboard: a, setReloadScoreboard: r }) {
|
|
81
|
+
const [l, i] = h(!1), [c, x] = h(!1), {
|
|
82
|
+
data: d,
|
|
83
|
+
mutate: m
|
|
84
|
+
} = v({
|
|
85
|
+
game: s
|
|
86
|
+
});
|
|
87
|
+
return u(() => {
|
|
88
|
+
}, []), u(() => {
|
|
89
|
+
a && (r(!1), m());
|
|
90
|
+
}, [a]), /* @__PURE__ */ e.jsxs("div", { className: "scoreboard", children: [
|
|
91
|
+
/* @__PURE__ */ e.jsxs(n, { show: l, size: "md", className: "articles-modal", centered: !0, onHide: () => i(!1), children: [
|
|
92
|
+
/* @__PURE__ */ e.jsx(n.Header, { children: /* @__PURE__ */ e.jsx(n.Title, { children: "Scoreboard Settings" }) }),
|
|
93
|
+
/* @__PURE__ */ e.jsx(n.Body, { children: /* @__PURE__ */ e.jsxs(
|
|
3833
94
|
"div",
|
|
3834
95
|
{
|
|
3835
96
|
className: "d-flex justify-content-between align-items-center",
|
|
3836
|
-
onClick: () =>
|
|
97
|
+
onClick: () => x(!c),
|
|
3837
98
|
children: [
|
|
3838
|
-
/* @__PURE__ */
|
|
3839
|
-
/* @__PURE__ */
|
|
3840
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
100
|
+
/* @__PURE__ */ e.jsx("i", { className: "fas fa-trophy-alt" }),
|
|
101
|
+
/* @__PURE__ */ e.jsx("span", { children: "Join Scoreboard?" })
|
|
3841
102
|
] }),
|
|
3842
|
-
/* @__PURE__ */
|
|
3843
|
-
|
|
103
|
+
/* @__PURE__ */ e.jsx(
|
|
104
|
+
y,
|
|
3844
105
|
{
|
|
3845
|
-
checked:
|
|
106
|
+
checked: c
|
|
3846
107
|
}
|
|
3847
108
|
)
|
|
3848
109
|
]
|
|
3849
110
|
}
|
|
3850
111
|
) }),
|
|
3851
|
-
/* @__PURE__ */
|
|
3852
|
-
|
|
112
|
+
/* @__PURE__ */ e.jsx(n.Footer, { className: "justify-content-between", children: /* @__PURE__ */ e.jsx(
|
|
113
|
+
o,
|
|
3853
114
|
{
|
|
3854
115
|
variant: "articles",
|
|
3855
116
|
onClick: () => {
|
|
3856
|
-
|
|
117
|
+
i(!1);
|
|
3857
118
|
},
|
|
3858
119
|
children: "Close"
|
|
3859
120
|
}
|
|
3860
121
|
) })
|
|
3861
122
|
] }),
|
|
3862
|
-
/* @__PURE__ */
|
|
3863
|
-
/* @__PURE__ */
|
|
3864
|
-
/* @__PURE__ */
|
|
3865
|
-
|
|
123
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card card-articles card-sm mb-3 mb-lg-0", children: [
|
|
124
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card-header d-flex justify-content-between align-items-center", children: [
|
|
125
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
126
|
+
s,
|
|
3866
127
|
" Scoreboard"
|
|
3867
128
|
] }),
|
|
3868
|
-
/* @__PURE__ */
|
|
3869
|
-
|
|
129
|
+
/* @__PURE__ */ e.jsx(
|
|
130
|
+
o,
|
|
3870
131
|
{
|
|
3871
132
|
onClick: () => {
|
|
3872
|
-
|
|
133
|
+
m();
|
|
3873
134
|
},
|
|
3874
135
|
small: !0,
|
|
3875
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ e.jsx("i", { className: "fad fa-redo me-0" })
|
|
3876
137
|
}
|
|
3877
138
|
)
|
|
3878
139
|
] }),
|
|
3879
|
-
/* @__PURE__ */
|
|
3880
|
-
(
|
|
3881
|
-
|
|
3882
|
-
(
|
|
3883
|
-
/* @__PURE__ */
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
/* @__PURE__ */
|
|
3886
|
-
/* @__PURE__ */
|
|
3887
|
-
|
|
140
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card-body p-0", children: [
|
|
141
|
+
(d?.length || 0) == 0 && /* @__PURE__ */ e.jsx("div", { className: "small p-2", children: "No scores yet" }),
|
|
142
|
+
d?.map(
|
|
143
|
+
(t, j) => /* @__PURE__ */ e.jsxs("div", { className: "result d-flex flex-column justify-content-between border-bottom p-2", children: [
|
|
144
|
+
/* @__PURE__ */ e.jsxs("div", { className: "d-flex justify-content-between lh-sm", children: [
|
|
145
|
+
/* @__PURE__ */ e.jsxs("div", { className: "d-flex", children: [
|
|
146
|
+
/* @__PURE__ */ e.jsx("h5", { className: "mb-0 me-3", children: j + 1 }),
|
|
147
|
+
/* @__PURE__ */ e.jsx("div", { className: "lh-sm", children: /* @__PURE__ */ e.jsx(
|
|
148
|
+
p,
|
|
3888
149
|
{
|
|
3889
|
-
populated_user:
|
|
3890
|
-
user_id:
|
|
150
|
+
populated_user: t.populated_user,
|
|
151
|
+
user_id: t.user_id
|
|
3891
152
|
}
|
|
3892
153
|
) })
|
|
3893
154
|
] }),
|
|
3894
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("h5", { className: "mb-0", children: t.score || t.total }) })
|
|
3895
156
|
] }),
|
|
3896
|
-
|
|
157
|
+
t.last_play && t.public_last_play && /* @__PURE__ */ e.jsxs("small", { className: "mt-1", style: { fontSize: "0.75rem" }, children: [
|
|
3897
158
|
"Played: ",
|
|
3898
|
-
format(new Date(
|
|
159
|
+
format(new Date(t.last_play), "MM/d/yy hh:mmaa")
|
|
3899
160
|
] })
|
|
3900
|
-
] },
|
|
161
|
+
] }, t._id)
|
|
3901
162
|
)
|
|
3902
163
|
] }),
|
|
3903
|
-
/* @__PURE__ */
|
|
3904
|
-
/* @__PURE__ */
|
|
3905
|
-
/* @__PURE__ */
|
|
3906
|
-
|
|
164
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card-footer d-flex justify-content-between align-items-center", children: [
|
|
165
|
+
/* @__PURE__ */ e.jsx("div", { className: "small", children: "Play to get on the board!" }),
|
|
166
|
+
/* @__PURE__ */ e.jsx(
|
|
167
|
+
o,
|
|
3907
168
|
{
|
|
3908
169
|
small: !0,
|
|
3909
170
|
onClick: () => {
|
|
3910
|
-
|
|
171
|
+
i(!0);
|
|
3911
172
|
},
|
|
3912
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ e.jsx("i", { className: "fad fa-cog me-0" })
|
|
3913
174
|
}
|
|
3914
175
|
)
|
|
3915
176
|
] })
|
|
@@ -3917,5 +178,5 @@ function Vs({ game: e, reloadScoreboard: t, setReloadScoreboard: n }) {
|
|
|
3917
178
|
] });
|
|
3918
179
|
}
|
|
3919
180
|
export {
|
|
3920
|
-
|
|
181
|
+
E as default
|
|
3921
182
|
};
|