@edifice.io/collect-frontend 1.0.10-develop.0.20261006094527 → 1.0.10-develop.1.20261009090624
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/lib/index.js +327 -327
- package/package.json +41 -38
package/lib/index.js
CHANGED
|
@@ -4,15 +4,15 @@ var ol = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Wu = (e, t, n) => t in e ? Qu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var lt = (e, t, n) => Wu(e, typeof t != "symbol" ? t + "" : t, n), il = (e, t, n) => t.has(e) || ol("Cannot " + n);
|
|
7
|
-
var Y = (e, t, n) => (il(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ye = (e, t, n) => t.has(e) ? ol("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n),
|
|
7
|
+
var Y = (e, t, n) => (il(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ye = (e, t, n) => t.has(e) ? ol("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), de = (e, t, n, r) => (il(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
8
|
import { jsx as p, jsxs as F, Fragment as Tt } from "react/jsx-runtime";
|
|
9
|
-
import { useEdificeClient as oe, useHasWorkflow as Ot, Button as we, EdificeClientProvider as xa, Heading as On, Layout as Sa, Stepper as $a, Grid as
|
|
9
|
+
import { useEdificeClient as oe, useHasWorkflow as Ot, Button as we, EdificeClientProvider as xa, Heading as On, Layout as Sa, Stepper as $a, Grid as me, FormControl as ln, Label as Gn, Input as Ea, DatePicker as Ia, AddAttachments as mr, useIsAdmlcOrAdmc as ka, useUser as Aa, useDebounce as Zu, Flex as Z, Combobox as Yu, Alert as Xu, UserRightsList as Ju, useToast as pr, EdificeThemeProvider as e2, LoadingScreen as ht, Menu as vi, Tree as t2, Dropdown as Ct, useBreakpoint as pn, AppHeader as n2, Breadcrumb as r2, SearchBar as o2, Modal as dt, useDate as Zo, Table as Re, Badge as Ln, IconButton as dr, EmptyScreen as os, SegmentedControl as i2, useDirectory as is, Card as Or, Avatar as ss, Checkbox as s2 } from "@edifice.io/react";
|
|
10
10
|
import { useQueryClient as Ze, onlineManager as Ma, QueryClient as l2, QueryCache as a2, QueryClientProvider as Ta, queryOptions as Ci, useMutation as Et, useQuery as yr, useInfiniteQuery as ls } from "@tanstack/react-query";
|
|
11
11
|
import * as Je from "react";
|
|
12
|
-
import { createContext as Yo, useContext as Xo, useState as Qe, useEffect as Le, useMemo as fr, useRef as
|
|
12
|
+
import { createContext as Yo, useContext as Xo, useState as Qe, useEffect as Le, useMemo as fr, useRef as an, useReducer as c2, useLayoutEffect as u2, Suspense as Oa, useCallback as Li, Fragment as d2 } from "react";
|
|
13
13
|
import { createRoot as f2 } from "react-dom/client";
|
|
14
14
|
import { useNavigate as Ge, useRouteError as La, useLocation as Jo, Form as Pa, Routes as g2, Route as sl, createBrowserRouter as h2, createMemoryRouter as m2, RouterProvider as p2, useLoaderData as y2, Outlet as Pi, ScrollRestoration as ll, Navigate as Fi, useParams as fo } from "react-router-dom";
|
|
15
|
-
import { ERROR_CODE as b2, odeServices as
|
|
15
|
+
import { ERROR_CODE as b2, odeServices as un } from "@edifice.io/client";
|
|
16
16
|
import { t as To } from "i18next";
|
|
17
17
|
import { IconPlus as v2, IconLabel as Fa, IconFlag as Da, IconTextPage as ei, IconBookmark as C2, IconGroupAvatar as w2, IconArrowLeft as _a, IconArrowRight as al, IconSubmission as Na, IconCollect as Ra, IconDelete as qa, IconExternalLink as x2, IconEdit as Ba, IconShare as S2, IconOptions as Ka, IconRafterLeft as $2, IconRafterRight as E2, IconListOrder as I2, IconArrowUp as k2, IconArrowDown as A2, IconRafterDown as ti, IconPinOn as za, IconSave as M2, IconSend as Ua, IconCalendarLight as Va, IconUsers as T2, IconRafterUp as O2 } from "@edifice.io/react/icons";
|
|
18
18
|
import { useTranslation as se, Trans as L2 } from "react-i18next";
|
|
@@ -71,7 +71,7 @@ function Rr(e) {
|
|
|
71
71
|
}
|
|
72
72
|
var Wa = !1, R2 = (e, t) => e === t, Do = Symbol("solid-proxy"), Za = typeof Proxy == "function", ni = Symbol("solid-track"), _o = {
|
|
73
73
|
equals: R2
|
|
74
|
-
}, Ya = rc,
|
|
74
|
+
}, Ya = rc, en = 1, No = 2, Xa = {
|
|
75
75
|
owned: null,
|
|
76
76
|
cleanups: null,
|
|
77
77
|
context: null,
|
|
@@ -83,7 +83,7 @@ function Zt(e, t) {
|
|
|
83
83
|
cleanups: null,
|
|
84
84
|
context: i ? i.context : null,
|
|
85
85
|
owner: i
|
|
86
|
-
}, a = o ? e : () => e(() =>
|
|
86
|
+
}, a = o ? e : () => e(() => Ie(() => Hr(s)));
|
|
87
87
|
le = s, be = null;
|
|
88
88
|
try {
|
|
89
89
|
return Pt(a, !0);
|
|
@@ -102,16 +102,16 @@ function q(e, t) {
|
|
|
102
102
|
return [tc.bind(n), r];
|
|
103
103
|
}
|
|
104
104
|
function Ja(e, t, n) {
|
|
105
|
-
const r = oi(e, t, !0,
|
|
105
|
+
const r = oi(e, t, !0, en);
|
|
106
106
|
vr(r);
|
|
107
107
|
}
|
|
108
108
|
function G(e, t, n) {
|
|
109
|
-
const r = oi(e, t, !1,
|
|
109
|
+
const r = oi(e, t, !1, en);
|
|
110
110
|
vr(r);
|
|
111
111
|
}
|
|
112
112
|
function j(e, t, n) {
|
|
113
113
|
Ya = Z2;
|
|
114
|
-
const r = oi(e, t, !1,
|
|
114
|
+
const r = oi(e, t, !1, en);
|
|
115
115
|
(!n || !n.render) && (r.user = !0), Wt ? Wt.push(r) : vr(r);
|
|
116
116
|
}
|
|
117
117
|
function k(e, t, n) {
|
|
@@ -154,10 +154,10 @@ function K2(e, t, n) {
|
|
|
154
154
|
c = !1;
|
|
155
155
|
const I = f ? f() : r;
|
|
156
156
|
if (I == null || I === !1) {
|
|
157
|
-
S(s,
|
|
157
|
+
S(s, Ie(g));
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
const R = a !== wi ? a :
|
|
160
|
+
const R = a !== wi ? a : Ie(
|
|
161
161
|
() => o(I, {
|
|
162
162
|
value: g(),
|
|
163
163
|
refetching: $
|
|
@@ -202,7 +202,7 @@ function K2(e, t, n) {
|
|
|
202
202
|
function z2(e) {
|
|
203
203
|
return Pt(e, !1);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ie(e) {
|
|
206
206
|
if (be === null) return e();
|
|
207
207
|
const t = be;
|
|
208
208
|
be = null;
|
|
@@ -223,12 +223,12 @@ function Yt(e, t, n) {
|
|
|
223
223
|
} else a = e();
|
|
224
224
|
if (i)
|
|
225
225
|
return i = !1, s;
|
|
226
|
-
const l =
|
|
226
|
+
const l = Ie(() => t(a, o, s));
|
|
227
227
|
return o = a, l;
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
function Xt(e) {
|
|
231
|
-
j(() =>
|
|
231
|
+
j(() => Ie(e));
|
|
232
232
|
}
|
|
233
233
|
function Q(e) {
|
|
234
234
|
return le === null || (le.cleanups === null ? le.cleanups = [e] : le.cleanups.push(e)), e;
|
|
@@ -281,7 +281,7 @@ function ec(e) {
|
|
|
281
281
|
var j2;
|
|
282
282
|
function tc() {
|
|
283
283
|
if (this.sources && this.state)
|
|
284
|
-
if (this.state ===
|
|
284
|
+
if (this.state === en) vr(this);
|
|
285
285
|
else {
|
|
286
286
|
const e = He;
|
|
287
287
|
He = null, Pt(() => qo(this), !1), He = e;
|
|
@@ -297,7 +297,7 @@ function nc(e, t, n) {
|
|
|
297
297
|
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && Pt(() => {
|
|
298
298
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
299
299
|
const i = e.observers[o], s = xi && xi.running;
|
|
300
|
-
s && xi.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? He.push(i) : Wt.push(i), i.observers && oc(i)), s || (i.state =
|
|
300
|
+
s && xi.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? He.push(i) : Wt.push(i), i.observers && oc(i)), s || (i.state = en);
|
|
301
301
|
}
|
|
302
302
|
if (He.length > 1e6)
|
|
303
303
|
throw He = [], new Error();
|
|
@@ -320,13 +320,13 @@ function Q2(e, t, n) {
|
|
|
320
320
|
try {
|
|
321
321
|
r = e.fn(t);
|
|
322
322
|
} catch (s) {
|
|
323
|
-
return e.pure && (e.state =
|
|
323
|
+
return e.pure && (e.state = en, e.owned && e.owned.forEach(Hr), e.owned = null), e.updatedAt = n + 1, as(s);
|
|
324
324
|
} finally {
|
|
325
325
|
be = i, le = o;
|
|
326
326
|
}
|
|
327
327
|
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? nc(e, r) : e.value = r, e.updatedAt = n);
|
|
328
328
|
}
|
|
329
|
-
function oi(e, t, n, r =
|
|
329
|
+
function oi(e, t, n, r = en, o) {
|
|
330
330
|
const i = {
|
|
331
331
|
fn: e,
|
|
332
332
|
state: r,
|
|
@@ -345,12 +345,12 @@ function oi(e, t, n, r = tn, o) {
|
|
|
345
345
|
function Ro(e) {
|
|
346
346
|
if (e.state === 0) return;
|
|
347
347
|
if (e.state === No) return qo(e);
|
|
348
|
-
if (e.suspense &&
|
|
348
|
+
if (e.suspense && Ie(e.suspense.inFallback)) return e.suspense.effects.push(e);
|
|
349
349
|
const t = [e];
|
|
350
350
|
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < ri); )
|
|
351
351
|
e.state && t.push(e);
|
|
352
352
|
for (let n = t.length - 1; n >= 0; n--)
|
|
353
|
-
if (e = t[n], e.state ===
|
|
353
|
+
if (e = t[n], e.state === en)
|
|
354
354
|
vr(e);
|
|
355
355
|
else if (e.state === No) {
|
|
356
356
|
const r = He;
|
|
@@ -397,7 +397,7 @@ function qo(e, t) {
|
|
|
397
397
|
const r = e.sources[n];
|
|
398
398
|
if (r.sources) {
|
|
399
399
|
const o = r.state;
|
|
400
|
-
o ===
|
|
400
|
+
o === en ? r !== t && (!r.updatedAt || r.updatedAt < ri) && Ro(r) : o === No && qo(r, t);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -455,7 +455,7 @@ function Y2(e, t) {
|
|
|
455
455
|
return function(r) {
|
|
456
456
|
let o;
|
|
457
457
|
return G(
|
|
458
|
-
() => o =
|
|
458
|
+
() => o = Ie(() => (le.context = {
|
|
459
459
|
...le.context,
|
|
460
460
|
[e]: r.value
|
|
461
461
|
}, ec(() => r.children))),
|
|
@@ -471,7 +471,7 @@ function X2(e, t, n = {}) {
|
|
|
471
471
|
let r = [], o = [], i = [], s = 0, a = t.length > 1 ? [] : null;
|
|
472
472
|
return Q(() => Bo(i)), () => {
|
|
473
473
|
let l = e() || [], c = l.length, u, f;
|
|
474
|
-
return l[ni],
|
|
474
|
+
return l[ni], Ie(() => {
|
|
475
475
|
let g, h, m, y, b, v, w, x, S;
|
|
476
476
|
if (c === 0)
|
|
477
477
|
s !== 0 && (Bo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [Ni], o[0] = Zt((T) => (i[0] = T, n.fallback())), s = 1);
|
|
@@ -506,7 +506,7 @@ function J2(e, t, n = {}) {
|
|
|
506
506
|
let r = [], o = [], i = [], s = [], a = 0, l;
|
|
507
507
|
return Q(() => Bo(i)), () => {
|
|
508
508
|
const c = e() || [], u = c.length;
|
|
509
|
-
return c[ni],
|
|
509
|
+
return c[ni], Ie(() => {
|
|
510
510
|
if (u === 0)
|
|
511
511
|
return a !== 0 && (Bo(i), i = [], r = [], o = [], a = 0, s = []), n.fallback && (r = [Ni], o[0] = Zt((d) => (i[0] = d, n.fallback())), a = 1), o;
|
|
512
512
|
for (r[0] === Ni && (i[0](), i = [], r = [], o = [], a = 0), l = 0; l < u; l++)
|
|
@@ -523,7 +523,7 @@ function J2(e, t, n = {}) {
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
function C(e, t) {
|
|
526
|
-
return
|
|
526
|
+
return Ie(() => e(t || {}));
|
|
527
527
|
}
|
|
528
528
|
function $o() {
|
|
529
529
|
return !0;
|
|
@@ -618,7 +618,7 @@ function J(...e) {
|
|
|
618
618
|
}
|
|
619
619
|
return o;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function fe(e, ...t) {
|
|
622
622
|
if (Za && Do in e) {
|
|
623
623
|
const o = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((s) => new Proxy(
|
|
624
624
|
{
|
|
@@ -676,7 +676,7 @@ function ic(e) {
|
|
|
676
676
|
}
|
|
677
677
|
let s;
|
|
678
678
|
return k(
|
|
679
|
-
() => (s = t()) ?
|
|
679
|
+
() => (s = t()) ? Ie(() => {
|
|
680
680
|
if (!i || X.done) return s(o);
|
|
681
681
|
const a = X.context;
|
|
682
682
|
Rr(i);
|
|
@@ -713,10 +713,10 @@ function H(e) {
|
|
|
713
713
|
const o = r();
|
|
714
714
|
if (o) {
|
|
715
715
|
const i = e.children;
|
|
716
|
-
return typeof i == "function" && i.length > 0 ?
|
|
716
|
+
return typeof i == "function" && i.length > 0 ? Ie(
|
|
717
717
|
() => i(
|
|
718
718
|
t ? o : () => {
|
|
719
|
-
if (!
|
|
719
|
+
if (!Ie(r)) throw sc("Show");
|
|
720
720
|
return n();
|
|
721
721
|
}
|
|
722
722
|
)
|
|
@@ -750,11 +750,11 @@ function od(e) {
|
|
|
750
750
|
const r = n()();
|
|
751
751
|
if (!r) return e.fallback;
|
|
752
752
|
const [o, i, s] = r, a = s.children;
|
|
753
|
-
return typeof a == "function" && a.length > 0 ?
|
|
753
|
+
return typeof a == "function" && a.length > 0 ? Ie(
|
|
754
754
|
() => a(
|
|
755
755
|
s.keyed ? i() : () => {
|
|
756
756
|
var c;
|
|
757
|
-
if (((c =
|
|
757
|
+
if (((c = Ie(n)()) == null ? void 0 : c[0]) !== o) throw sc("Match");
|
|
758
758
|
return i();
|
|
759
759
|
}
|
|
760
760
|
)
|
|
@@ -997,7 +997,7 @@ function z(e, t, n, r) {
|
|
|
997
997
|
const i = () => {
|
|
998
998
|
const a = document.createElement("template");
|
|
999
999
|
return a.innerHTML = e, a.content.firstChild;
|
|
1000
|
-
}, s =
|
|
1000
|
+
}, s = () => (o || (o = i())).cloneNode(!0);
|
|
1001
1001
|
return s.cloneNode = s, s;
|
|
1002
1002
|
}
|
|
1003
1003
|
function ii(e, t = window.document) {
|
|
@@ -1065,7 +1065,7 @@ function cc(e, t = {}, n, r) {
|
|
|
1065
1065
|
), G(() => typeof t.ref == "function" && Cr(t.ref, e)), G(() => Cd(e, t, n, !0, o, !0)), o;
|
|
1066
1066
|
}
|
|
1067
1067
|
function Cr(e, t, n) {
|
|
1068
|
-
return
|
|
1068
|
+
return Ie(() => e(t, n));
|
|
1069
1069
|
}
|
|
1070
1070
|
function M(e, t, n, r) {
|
|
1071
1071
|
if (n !== void 0 && !r && (r = []), typeof t != "function") return Gr(e, t, r, n);
|
|
@@ -1315,7 +1315,7 @@ function Ed(e, t) {
|
|
|
1315
1315
|
const r = n();
|
|
1316
1316
|
switch (typeof r) {
|
|
1317
1317
|
case "function":
|
|
1318
|
-
return
|
|
1318
|
+
return Ie(() => r(t));
|
|
1319
1319
|
case "string":
|
|
1320
1320
|
const o = fd.has(r), i = X.context ? wd() : dc(r, o);
|
|
1321
1321
|
return cc(i, t, o), i;
|
|
@@ -1323,7 +1323,7 @@ function Ed(e, t) {
|
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
1325
|
function Id(e) {
|
|
1326
|
-
const [, t] =
|
|
1326
|
+
const [, t] = fe(e, ["component"]);
|
|
1327
1327
|
return Ed(() => e.component, t);
|
|
1328
1328
|
}
|
|
1329
1329
|
var kd = class {
|
|
@@ -1414,7 +1414,7 @@ var Od = class {
|
|
|
1414
1414
|
findByName(e) {
|
|
1415
1415
|
return this.transfomers[e];
|
|
1416
1416
|
}
|
|
1417
|
-
}, Ld = (e) => Object.prototype.toString.call(e).slice(8, -1), hc = (e) => typeof e > "u", Pd = (e) => e === null, jr = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Bi = (e) => jr(e) && Object.keys(e).length === 0,
|
|
1417
|
+
}, Ld = (e) => Object.prototype.toString.call(e).slice(8, -1), hc = (e) => typeof e > "u", Pd = (e) => e === null, jr = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Bi = (e) => jr(e) && Object.keys(e).length === 0, fn = (e) => Array.isArray(e), Fd = (e) => typeof e == "string", Dd = (e) => typeof e == "number" && !isNaN(e), _d = (e) => typeof e == "boolean", Nd = (e) => e instanceof RegExp, Qr = (e) => e instanceof Map, Wr = (e) => e instanceof Set, mc = (e) => Ld(e) === "Symbol", Rd = (e) => e instanceof Date && !isNaN(e.valueOf()), qd = (e) => e instanceof Error, yl = (e) => typeof e == "number" && isNaN(e), Bd = (e) => _d(e) || Pd(e) || hc(e) || Dd(e) || Fd(e) || mc(e), Kd = (e) => typeof e == "bigint", zd = (e) => e === 1 / 0 || e === -1 / 0, Ud = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Vd = (e) => e instanceof URL, pc = (e) => e.replace(/\./g, "\\."), Ei = (e) => e.map(String).map(pc).join("."), Ur = (e) => {
|
|
1418
1418
|
const t = [];
|
|
1419
1419
|
let n = "";
|
|
1420
1420
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -1544,7 +1544,7 @@ yc.forEach((e) => {
|
|
|
1544
1544
|
Sc[e.annotation] = e;
|
|
1545
1545
|
});
|
|
1546
1546
|
var jd = (e, t, n) => {
|
|
1547
|
-
if (
|
|
1547
|
+
if (fn(t))
|
|
1548
1548
|
switch (t[0]) {
|
|
1549
1549
|
case "symbol":
|
|
1550
1550
|
return bc.untransform(e, t, n);
|
|
@@ -1603,7 +1603,7 @@ var Qd = (e, t) => {
|
|
|
1603
1603
|
let r = e;
|
|
1604
1604
|
for (let i = 0; i < t.length - 1; i++) {
|
|
1605
1605
|
const s = t[i];
|
|
1606
|
-
if (
|
|
1606
|
+
if (fn(r)) {
|
|
1607
1607
|
const a = +s;
|
|
1608
1608
|
r = r[a];
|
|
1609
1609
|
} else if (jr(r))
|
|
@@ -1626,7 +1626,7 @@ var Qd = (e, t) => {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
1628
|
const o = t[t.length - 1];
|
|
1629
|
-
if (
|
|
1629
|
+
if (fn(r) ? r[+o] = n(r[+o]) : jr(r) && (r[o] = n(r[o])), Wr(r)) {
|
|
1630
1630
|
const i = Un(r, +o), s = n(i);
|
|
1631
1631
|
i !== s && (r.delete(i), r.add(s));
|
|
1632
1632
|
}
|
|
@@ -1649,7 +1649,7 @@ var Qd = (e, t) => {
|
|
|
1649
1649
|
function zi(e, t, n = []) {
|
|
1650
1650
|
if (!e)
|
|
1651
1651
|
return;
|
|
1652
|
-
if (!
|
|
1652
|
+
if (!fn(e)) {
|
|
1653
1653
|
gr(e, (i, s) => zi(i, t, [...n, ...Ur(s)]));
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
@@ -1670,7 +1670,7 @@ function Zd(e, t) {
|
|
|
1670
1670
|
e = Ki(e, s, () => i);
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
|
-
if (
|
|
1673
|
+
if (fn(t)) {
|
|
1674
1674
|
const [r, o] = t;
|
|
1675
1675
|
r.forEach((i) => {
|
|
1676
1676
|
e = Ki(e, Ur(i), () => e);
|
|
@@ -1679,7 +1679,7 @@ function Zd(e, t) {
|
|
|
1679
1679
|
gr(t, n);
|
|
1680
1680
|
return e;
|
|
1681
1681
|
}
|
|
1682
|
-
var Yd = (e, t) => jr(e) ||
|
|
1682
|
+
var Yd = (e, t) => jr(e) || fn(e) || Qr(e) || Wr(e) || Cc(e, t);
|
|
1683
1683
|
function Xd(e, t, n) {
|
|
1684
1684
|
const r = n.get(e);
|
|
1685
1685
|
r ? r.push(t) : n.set(e, [t]);
|
|
@@ -1718,12 +1718,12 @@ var Ec = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
|
|
|
1718
1718
|
return {
|
|
1719
1719
|
transformedValue: null
|
|
1720
1720
|
};
|
|
1721
|
-
const l = bl(e, n), c = (l == null ? void 0 : l.value) ?? e, u =
|
|
1721
|
+
const l = bl(e, n), c = (l == null ? void 0 : l.value) ?? e, u = fn(c) ? [] : {}, f = {};
|
|
1722
1722
|
gr(c, (g, h) => {
|
|
1723
1723
|
if (h === "__proto__" || h === "constructor" || h === "prototype")
|
|
1724
1724
|
throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);
|
|
1725
1725
|
const m = Ec(g, t, n, r, [...o, h], [...i, e], s);
|
|
1726
|
-
u[h] = m.transformedValue,
|
|
1726
|
+
u[h] = m.transformedValue, fn(m.annotations) ? f[h] = m.annotations : jr(m.annotations) && gr(m.annotations, (y, b) => {
|
|
1727
1727
|
f[pc(h) + "." + b] = y;
|
|
1728
1728
|
});
|
|
1729
1729
|
});
|
|
@@ -1963,7 +1963,7 @@ var Ko = (e, t = !1) => {
|
|
|
1963
1963
|
styleNonce: c,
|
|
1964
1964
|
shadowDOMTarget: u
|
|
1965
1965
|
} = e;
|
|
1966
|
-
|
|
1966
|
+
de(this, Zn, q(t)), de(this, no, n), de(this, ro, r), de(this, to, o), de(this, oo, c), de(this, Yn, u), de(this, Xn, q(i)), de(this, Jn, q(s)), de(this, er, q(a)), de(this, tr, q(l));
|
|
1967
1967
|
}
|
|
1968
1968
|
setButtonPosition(e) {
|
|
1969
1969
|
Y(this, Xn)[1](e);
|
|
@@ -1986,7 +1986,7 @@ var Ko = (e, t = !1) => {
|
|
|
1986
1986
|
const t = lc(() => {
|
|
1987
1987
|
const n = this, [r] = Y(this, Xn), [o] = Y(this, Jn), [i] = Y(this, er), [s] = Y(this, tr), [a] = Y(this, Zn);
|
|
1988
1988
|
let l;
|
|
1989
|
-
return Y(this, nr) ? l = Y(this, nr) : (l = ic(() => Promise.resolve().then(() => C8)),
|
|
1989
|
+
return Y(this, nr) ? l = Y(this, nr) : (l = ic(() => Promise.resolve().then(() => C8)), de(this, nr, l)), Oc(Y(this, oo), Y(this, Yn)), C(l, J({
|
|
1990
1990
|
get queryFlavor() {
|
|
1991
1991
|
return Y(n, no);
|
|
1992
1992
|
},
|
|
@@ -2017,13 +2017,13 @@ var Ko = (e, t = !1) => {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
}));
|
|
2019
2019
|
}, e);
|
|
2020
|
-
|
|
2020
|
+
de(this, In, !0), de(this, io, t);
|
|
2021
2021
|
}
|
|
2022
2022
|
unmount() {
|
|
2023
2023
|
var e;
|
|
2024
2024
|
if (!Y(this, In))
|
|
2025
2025
|
throw new Error("Devtools is not mounted");
|
|
2026
|
-
(e = Y(this, io)) == null || e.call(this),
|
|
2026
|
+
(e = Y(this, io)) == null || e.call(this), de(this, In, !1);
|
|
2027
2027
|
}
|
|
2028
2028
|
}, Zn = new WeakMap(), to = new WeakMap(), no = new WeakMap(), ro = new WeakMap(), In = new WeakMap(), oo = new WeakMap(), Yn = new WeakMap(), Xn = new WeakMap(), Jn = new WeakMap(), er = new WeakMap(), tr = new WeakMap(), nr = new WeakMap(), io = new WeakMap(), Ca), rr, so, lo, ao, kn, co, or, ir, sr, lr, ar, cr, ur, uo, wa, u1 = (wa = class {
|
|
2029
2029
|
constructor(e) {
|
|
@@ -2054,7 +2054,7 @@ var Ko = (e, t = !1) => {
|
|
|
2054
2054
|
shadowDOMTarget: u,
|
|
2055
2055
|
onClose: f
|
|
2056
2056
|
} = e;
|
|
2057
|
-
|
|
2057
|
+
de(this, rr, q(t)), de(this, lo, n), de(this, ao, r), de(this, so, o), de(this, co, c), de(this, or, u), de(this, ir, q(i)), de(this, sr, q(s)), de(this, lr, q(a)), de(this, ar, q(l)), de(this, cr, q(f));
|
|
2058
2058
|
}
|
|
2059
2059
|
setButtonPosition(e) {
|
|
2060
2060
|
Y(this, ir)[1](e);
|
|
@@ -2080,7 +2080,7 @@ var Ko = (e, t = !1) => {
|
|
|
2080
2080
|
const t = lc(() => {
|
|
2081
2081
|
const n = this, [r] = Y(this, ir), [o] = Y(this, sr), [i] = Y(this, lr), [s] = Y(this, ar), [a] = Y(this, rr), [l] = Y(this, cr);
|
|
2082
2082
|
let c;
|
|
2083
|
-
return Y(this, ur) ? c = Y(this, ur) : (c = ic(() => Promise.resolve().then(() => S8)),
|
|
2083
|
+
return Y(this, ur) ? c = Y(this, ur) : (c = ic(() => Promise.resolve().then(() => S8)), de(this, ur, c)), Oc(Y(this, co), Y(this, or)), C(c, J({
|
|
2084
2084
|
get queryFlavor() {
|
|
2085
2085
|
return Y(n, lo);
|
|
2086
2086
|
},
|
|
@@ -2114,13 +2114,13 @@ var Ko = (e, t = !1) => {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
}));
|
|
2116
2116
|
}, e);
|
|
2117
|
-
|
|
2117
|
+
de(this, kn, !0), de(this, uo, t);
|
|
2118
2118
|
}
|
|
2119
2119
|
unmount() {
|
|
2120
2120
|
var e;
|
|
2121
2121
|
if (!Y(this, kn))
|
|
2122
2122
|
throw new Error("Devtools is not mounted");
|
|
2123
|
-
(e = Y(this, uo)) == null || e.call(this),
|
|
2123
|
+
(e = Y(this, uo)) == null || e.call(this), de(this, kn, !1);
|
|
2124
2124
|
}
|
|
2125
2125
|
}, rr = new WeakMap(), so = new WeakMap(), lo = new WeakMap(), ao = new WeakMap(), kn = new WeakMap(), co = new WeakMap(), or = new WeakMap(), ir = new WeakMap(), sr = new WeakMap(), lr = new WeakMap(), ar = new WeakMap(), cr = new WeakMap(), ur = new WeakMap(), uo = new WeakMap(), wa);
|
|
2126
2126
|
function d1(e) {
|
|
@@ -2303,7 +2303,7 @@ const b1 = (e) => Number.parseInt(e ?? "0", 10) || 0, v1 = (e) => {
|
|
|
2303
2303
|
setIsFormValid: (t) => e({ isFormValid: t })
|
|
2304
2304
|
})), Fc = bn(w1);
|
|
2305
2305
|
function Dc({ title: e }) {
|
|
2306
|
-
return /* @__PURE__ */ p(
|
|
2306
|
+
return /* @__PURE__ */ p(On, { className: "text-truncate", children: e });
|
|
2307
2307
|
}
|
|
2308
2308
|
const _c = ({
|
|
2309
2309
|
wizardData: e,
|
|
@@ -2320,7 +2320,7 @@ const _c = ({
|
|
|
2320
2320
|
sharings: (e == null ? void 0 : e.sharings) ?? []
|
|
2321
2321
|
}),
|
|
2322
2322
|
[e, n]
|
|
2323
|
-
), u =
|
|
2323
|
+
), u = an(c.description), [f, d] = Qe(
|
|
2324
2324
|
() => (e == null ? void 0 : e.attachments) ?? Ft(n == null ? void 0 : n.attachments) ?? []
|
|
2325
2325
|
), {
|
|
2326
2326
|
control: g,
|
|
@@ -2350,16 +2350,16 @@ const _c = ({
|
|
|
2350
2350
|
r == null || r(E);
|
|
2351
2351
|
};
|
|
2352
2352
|
return /* @__PURE__ */ F(Tt, { children: [
|
|
2353
|
-
/* @__PURE__ */ p($a, { currentStep: s, nbSteps: 2 }),
|
|
2354
2353
|
/* @__PURE__ */ p(Dc, { title: i("collection.wizard.form.title") }),
|
|
2354
|
+
/* @__PURE__ */ p("div", { className: "mb-24", children: /* @__PURE__ */ p($a, { currentStep: s, nbSteps: 2 }) }),
|
|
2355
2355
|
/* @__PURE__ */ p(
|
|
2356
2356
|
Pa,
|
|
2357
2357
|
{
|
|
2358
2358
|
id: "formCreateCollection",
|
|
2359
2359
|
role: "form",
|
|
2360
2360
|
onSubmit: y(w),
|
|
2361
|
-
children: /* @__PURE__ */ F(
|
|
2362
|
-
/* @__PURE__ */ p(
|
|
2361
|
+
children: /* @__PURE__ */ F(me, { children: [
|
|
2362
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "5", xl: "6", className: "g-start-xl-2", children: /* @__PURE__ */ F(ln, { id: "collectionTitle", isRequired: !0, children: [
|
|
2363
2363
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Fa, {}), children: i("collection.wizard.create.form.title") }),
|
|
2364
2364
|
/* @__PURE__ */ p(
|
|
2365
2365
|
Ea,
|
|
@@ -2383,7 +2383,7 @@ const _c = ({
|
|
|
2383
2383
|
}
|
|
2384
2384
|
)
|
|
2385
2385
|
] }) }),
|
|
2386
|
-
/* @__PURE__ */ p(
|
|
2386
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ F(ln, { id: "collectionDeadline", isRequired: !0, children: [
|
|
2387
2387
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Da, {}), children: i("collection.wizard.create.form.deadline") }),
|
|
2388
2388
|
/* @__PURE__ */ p(
|
|
2389
2389
|
jn,
|
|
@@ -2404,8 +2404,8 @@ const _c = ({
|
|
|
2404
2404
|
}
|
|
2405
2405
|
)
|
|
2406
2406
|
] }) }),
|
|
2407
|
-
/* @__PURE__ */ p(
|
|
2408
|
-
|
|
2407
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "8", xl: "10", className: "g-start-xl-2", children: /* @__PURE__ */ F(
|
|
2408
|
+
ln,
|
|
2409
2409
|
{
|
|
2410
2410
|
id: "collectionDescription",
|
|
2411
2411
|
isOptional: !0,
|
|
@@ -2435,7 +2435,7 @@ const _c = ({
|
|
|
2435
2435
|
]
|
|
2436
2436
|
}
|
|
2437
2437
|
) }),
|
|
2438
|
-
/* @__PURE__ */ p(
|
|
2438
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "5", className: "g-start-xl-2", children: /* @__PURE__ */ p(ln, { id: "collectionAttachments", isOptional: !0, children: /* @__PURE__ */ p(
|
|
2439
2439
|
jn,
|
|
2440
2440
|
{
|
|
2441
2441
|
name: "attachments",
|
|
@@ -2505,7 +2505,7 @@ const _c = ({
|
|
|
2505
2505
|
var Gt = /* @__PURE__ */ ((e) => (e.USER = "User", e.GROUP = "Group", e.BROADCAST_GROUP = "BroadcastGroup", e.SHAREBOOKMARK = "ShareBookmark", e))(Gt || {});
|
|
2506
2506
|
const A1 = () => ({
|
|
2507
2507
|
async searchVisibles(e, t) {
|
|
2508
|
-
return (await
|
|
2508
|
+
return (await un.http().get(
|
|
2509
2509
|
"/communication/visible/search",
|
|
2510
2510
|
e !== void 0 ? {
|
|
2511
2511
|
queryParams: {
|
|
@@ -2520,10 +2520,10 @@ const A1 = () => ({
|
|
|
2520
2520
|
);
|
|
2521
2521
|
},
|
|
2522
2522
|
fetchUsersByGroup(e) {
|
|
2523
|
-
return
|
|
2523
|
+
return un.http().get(`/communication/visible/group/${e}`);
|
|
2524
2524
|
},
|
|
2525
2525
|
fetchSharebookmark(e) {
|
|
2526
|
-
return
|
|
2526
|
+
return un.http().get(`/directory/sharebookmark/${e}`);
|
|
2527
2527
|
}
|
|
2528
2528
|
}), Ii = A1(), Qn = {
|
|
2529
2529
|
base: ["user"],
|
|
@@ -2578,7 +2578,7 @@ function M1(e, t, n) {
|
|
|
2578
2578
|
return { triggerSearch: !1 };
|
|
2579
2579
|
const o = t === "all-at-once" ? n.substring(0, 3) : void 0, i = n.length > 3;
|
|
2580
2580
|
function s() {
|
|
2581
|
-
const a =
|
|
2581
|
+
const a = un.idiom().removeAccents, l = a(n).toLowerCase();
|
|
2582
2582
|
return i ? (c) => {
|
|
2583
2583
|
let u = "", f = "";
|
|
2584
2584
|
const d = c.displayName ?? void 0;
|
|
@@ -2757,13 +2757,13 @@ const P1 = () => {
|
|
|
2757
2757
|
(U) => a.fetchQuery(
|
|
2758
2758
|
Qn.fetchUsersByGroup(U.id)
|
|
2759
2759
|
)
|
|
2760
|
-
),
|
|
2760
|
+
), ge = await Promise.all(
|
|
2761
2761
|
re
|
|
2762
2762
|
);
|
|
2763
2763
|
te = [
|
|
2764
2764
|
h(
|
|
2765
2765
|
K,
|
|
2766
|
-
|
|
2766
|
+
ge.flatMap(
|
|
2767
2767
|
(U) => U.map((ee) => ({
|
|
2768
2768
|
id: ee.id,
|
|
2769
2769
|
displayName: ee.displayName
|
|
@@ -2818,7 +2818,7 @@ const P1 = () => {
|
|
|
2818
2818
|
initialSharings: t,
|
|
2819
2819
|
onSharingsChange: n
|
|
2820
2820
|
}) => {
|
|
2821
|
-
const r = Sn.use.usersCollection(), o = Sn.use.setUsersCollection(), i = Sn.use.addUsersToAdd(), s = Sn.use.addUsersToDelete(), a = Sn.use.resetUsersDiff(), l =
|
|
2821
|
+
const r = Sn.use.usersCollection(), o = Sn.use.setUsersCollection(), i = Sn.use.addUsersToAdd(), s = Sn.use.addUsersToDelete(), a = Sn.use.resetUsersDiff(), l = an(null), c = (g) => {
|
|
2822
2822
|
if (g.length === 0) return;
|
|
2823
2823
|
const h = [...r, ...g].filter(
|
|
2824
2824
|
(m, y, b) => b.findIndex((v) => v.recipientId === m.recipientId) === y
|
|
@@ -2900,11 +2900,11 @@ function Bc({
|
|
|
2900
2900
|
disabled: !0
|
|
2901
2901
|
}
|
|
2902
2902
|
] : g ?? [];
|
|
2903
|
-
return /* @__PURE__ */ F(
|
|
2904
|
-
/* @__PURE__ */ F(
|
|
2903
|
+
return /* @__PURE__ */ F(me, { className: "gap-24", children: [
|
|
2904
|
+
/* @__PURE__ */ F(me.Col, { sm: "4", md: "8", lg: "3", xl: "5", children: [
|
|
2905
2905
|
/* @__PURE__ */ F(Z, { gap: "16", direction: "column", children: [
|
|
2906
|
-
/* @__PURE__ */ p(
|
|
2907
|
-
/* @__PURE__ */ p(
|
|
2906
|
+
/* @__PURE__ */ p(Dc, { title: i("collection.wizard.members.title") }),
|
|
2907
|
+
/* @__PURE__ */ p("div", { className: "mb-24", children: /* @__PURE__ */ p($a, { currentStep: a, nbSteps: 2 }) })
|
|
2908
2908
|
] }),
|
|
2909
2909
|
/* @__PURE__ */ p(
|
|
2910
2910
|
Yu,
|
|
@@ -2931,7 +2931,7 @@ function Bc({
|
|
|
2931
2931
|
}
|
|
2932
2932
|
) })
|
|
2933
2933
|
] }),
|
|
2934
|
-
/* @__PURE__ */ p(
|
|
2934
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "8", lg: "5", xl: "7", children: /* @__PURE__ */ p(
|
|
2935
2935
|
Ju,
|
|
2936
2936
|
{
|
|
2937
2937
|
"data-testid": "collect-create-add-user-table",
|
|
@@ -2971,7 +2971,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
2971
2971
|
throw new Error("Cannot be rendered outside the Wizard Layout");
|
|
2972
2972
|
return e;
|
|
2973
2973
|
}, zc = "/collect/api", vt = new P2({
|
|
2974
|
-
httpService:
|
|
2974
|
+
httpService: un.http(),
|
|
2975
2975
|
baseUrl: zc
|
|
2976
2976
|
}), We = {
|
|
2977
2977
|
getCollections: (e) => vt.getCollections(e),
|
|
@@ -2988,7 +2988,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
2988
2988
|
const n = new FormData();
|
|
2989
2989
|
return t.files.forEach((r) => {
|
|
2990
2990
|
n.append("files", r);
|
|
2991
|
-
}),
|
|
2991
|
+
}), un.http().postFile(`${zc}/collections/${e}/attachments`, n, {
|
|
2992
2992
|
headers: { "Content-Type": "multipart/form-data" }
|
|
2993
2993
|
});
|
|
2994
2994
|
},
|
|
@@ -3126,56 +3126,56 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3126
3126
|
}, Sl = ({
|
|
3127
3127
|
children: e
|
|
3128
3128
|
}) => {
|
|
3129
|
-
const t =
|
|
3129
|
+
const t = an(null), { appCode: n } = oe(), { t: r } = se(n), o = pr(), { currentStep: i, backStep: s, nextStep: a } = cs(), { wizardData: l, resetWizardData: c } = D1(), u = Qc(), f = fs(), d = Fc.use.isFormValid(), g = Ge(), [h, m] = Qe(!1);
|
|
3130
3130
|
u2(() => {
|
|
3131
|
-
var
|
|
3132
|
-
(
|
|
3131
|
+
var v;
|
|
3132
|
+
(v = t.current) == null || v.scrollIntoView({
|
|
3133
3133
|
behavior: "smooth",
|
|
3134
3134
|
block: "center"
|
|
3135
3135
|
});
|
|
3136
3136
|
}, [i]);
|
|
3137
|
-
const
|
|
3138
|
-
|
|
3139
|
-
},
|
|
3137
|
+
const y = () => {
|
|
3138
|
+
c == null || c(), g("/");
|
|
3139
|
+
}, b = async () => {
|
|
3140
3140
|
try {
|
|
3141
|
-
|
|
3142
|
-
const
|
|
3143
|
-
name:
|
|
3144
|
-
content:
|
|
3145
|
-
deadline:
|
|
3141
|
+
m(!0);
|
|
3142
|
+
const v = await u.mutateAsync({
|
|
3143
|
+
name: l.title,
|
|
3144
|
+
content: l.description,
|
|
3145
|
+
deadline: l.deadline ?? /* @__PURE__ */ new Date(),
|
|
3146
3146
|
// FIXME: faire une vraie traduction dans le format attendu par le backend avant envoi
|
|
3147
|
-
sharings:
|
|
3147
|
+
sharings: l.sharings.map(Rc)
|
|
3148
3148
|
});
|
|
3149
|
-
|
|
3150
|
-
id:
|
|
3149
|
+
l.attachments.length > 0 && await f.mutateAsync({
|
|
3150
|
+
id: v.id,
|
|
3151
3151
|
files: {
|
|
3152
|
-
files:
|
|
3152
|
+
files: l.attachments.map((w) => w.file)
|
|
3153
3153
|
}
|
|
3154
3154
|
}), o.success(r("collection.toast.success.collection.create"), {
|
|
3155
3155
|
duration: 1e4,
|
|
3156
3156
|
isDismissible: !0
|
|
3157
|
-
}),
|
|
3158
|
-
} catch (
|
|
3157
|
+
}), g(`/list-collections/id/${v.id}`), c();
|
|
3158
|
+
} catch (v) {
|
|
3159
3159
|
o.error(r("collection.toast.error.collection.create"), {
|
|
3160
3160
|
duration: 1e4,
|
|
3161
3161
|
isDismissible: !0
|
|
3162
|
-
}), console.log(
|
|
3162
|
+
}), console.log(v);
|
|
3163
3163
|
} finally {
|
|
3164
|
-
|
|
3164
|
+
m(!1);
|
|
3165
3165
|
}
|
|
3166
3166
|
};
|
|
3167
|
-
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
3168
|
-
/* @__PURE__ */ p(
|
|
3167
|
+
return /* @__PURE__ */ F("div", { className: "w-100 p-24 px-md-8 px-lg-64", children: [
|
|
3168
|
+
/* @__PURE__ */ p(
|
|
3169
3169
|
Z,
|
|
3170
3170
|
{
|
|
3171
3171
|
ref: t,
|
|
3172
3172
|
direction: "column",
|
|
3173
3173
|
gap: "16",
|
|
3174
|
-
className: "
|
|
3174
|
+
className: "py-24 pb-lg-48 pt-lg-32",
|
|
3175
3175
|
children: e
|
|
3176
3176
|
}
|
|
3177
|
-
)
|
|
3178
|
-
i === 1 ? /* @__PURE__ */ F(Z, { justify: "end", className: "mt-auto
|
|
3177
|
+
),
|
|
3178
|
+
i === 1 ? /* @__PURE__ */ F(Z, { justify: "end", className: "mt-auto pb-64 px-16 gap-16", children: [
|
|
3179
3179
|
/* @__PURE__ */ p(
|
|
3180
3180
|
we,
|
|
3181
3181
|
{
|
|
@@ -3193,9 +3193,9 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3193
3193
|
"data-testid": "collect-add-attachments-button-create-ignore-share",
|
|
3194
3194
|
variant: "outline",
|
|
3195
3195
|
color: "primary",
|
|
3196
|
-
isLoading:
|
|
3196
|
+
isLoading: h,
|
|
3197
3197
|
loadingPosition: "right",
|
|
3198
|
-
onClick: () =>
|
|
3198
|
+
onClick: () => b(),
|
|
3199
3199
|
children: r("collection.wizard.button.create.ignore.share")
|
|
3200
3200
|
}
|
|
3201
3201
|
),
|
|
@@ -3205,21 +3205,21 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3205
3205
|
"data-testid": "collect-add-attachments-button-create-collect",
|
|
3206
3206
|
variant: "filled",
|
|
3207
3207
|
color: "primary",
|
|
3208
|
-
isLoading:
|
|
3208
|
+
isLoading: h,
|
|
3209
3209
|
loadingPosition: "right",
|
|
3210
3210
|
rightIcon: /* @__PURE__ */ p(al, {}),
|
|
3211
|
-
onClick: () =>
|
|
3211
|
+
onClick: () => b(),
|
|
3212
3212
|
children: r("collection.wizard.button.create.collect")
|
|
3213
3213
|
}
|
|
3214
3214
|
)
|
|
3215
|
-
] }) : /* @__PURE__ */ F(Z, { justify: "end", className: "mt-auto pb-64 gap-16", children: [
|
|
3215
|
+
] }) : /* @__PURE__ */ F(Z, { justify: "end", className: "mt-auto pb-64 px-16 gap-16", children: [
|
|
3216
3216
|
/* @__PURE__ */ p(
|
|
3217
3217
|
we,
|
|
3218
3218
|
{
|
|
3219
3219
|
"data-testid": "collect-add-attachments-button-cancel",
|
|
3220
3220
|
variant: "ghost",
|
|
3221
3221
|
color: "tertiary",
|
|
3222
|
-
onClick:
|
|
3222
|
+
onClick: y,
|
|
3223
3223
|
children: r("collection.cancel")
|
|
3224
3224
|
}
|
|
3225
3225
|
),
|
|
@@ -3233,7 +3233,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3233
3233
|
onClick: a,
|
|
3234
3234
|
type: "submit",
|
|
3235
3235
|
form: "formCreateCollection",
|
|
3236
|
-
disabled: !
|
|
3236
|
+
disabled: !d,
|
|
3237
3237
|
children: r("collection.next")
|
|
3238
3238
|
}
|
|
3239
3239
|
)
|
|
@@ -3402,7 +3402,7 @@ const U1 = () => Xo(n0), V1 = "collect:route-change", W6 = ({
|
|
|
3402
3402
|
currentPath: n,
|
|
3403
3403
|
className: r
|
|
3404
3404
|
}) => {
|
|
3405
|
-
const o =
|
|
3405
|
+
const o = an(null), i = an(null), s = an(null), a = an(process.env.NODE_ENV === "development"), l = (f) => f ? f.startsWith("/") ? f : `/${f}` : "/", c = (f) => {
|
|
3406
3406
|
window.dispatchEvent(
|
|
3407
3407
|
new CustomEvent(V1, {
|
|
3408
3408
|
detail: { path: f }
|
|
@@ -3531,7 +3531,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3531
3531
|
onValidityChange: r,
|
|
3532
3532
|
i18nNamespace: o
|
|
3533
3533
|
}) => {
|
|
3534
|
-
const { appCode: i } = oe(), { t: s } = se(o ?? i), a =
|
|
3534
|
+
const { appCode: i } = oe(), { t: s } = se(o ?? i), a = an(
|
|
3535
3535
|
(e == null ? void 0 : e.description) ?? (t == null ? void 0 : t.content) ?? ""
|
|
3536
3536
|
), [l, c] = Qe(
|
|
3537
3537
|
() => (e == null ? void 0 : e.attachments) ?? Ft(t == null ? void 0 : t.attachments) ?? []
|
|
@@ -3576,8 +3576,8 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3576
3576
|
onSubmit: m((x) => {
|
|
3577
3577
|
n == null || n(x);
|
|
3578
3578
|
}),
|
|
3579
|
-
children: /* @__PURE__ */ F(
|
|
3580
|
-
/* @__PURE__ */ p(
|
|
3579
|
+
children: /* @__PURE__ */ F(me, { children: [
|
|
3580
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */ F(ln, { id: "collectionTitle", isRequired: !0, children: [
|
|
3581
3581
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Fa, {}), children: s("collection.wizard.create.form.title") }),
|
|
3582
3582
|
/* @__PURE__ */ p(
|
|
3583
3583
|
Ea,
|
|
@@ -3601,7 +3601,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
)
|
|
3603
3603
|
] }) }),
|
|
3604
|
-
/* @__PURE__ */ p(
|
|
3604
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ F(ln, { id: "collectionDeadline", isRequired: !0, children: [
|
|
3605
3605
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Da, {}), children: s("collection.wizard.create.form.deadline") }),
|
|
3606
3606
|
/* @__PURE__ */ p(
|
|
3607
3607
|
jn,
|
|
@@ -3622,8 +3622,8 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3622
3622
|
}
|
|
3623
3623
|
)
|
|
3624
3624
|
] }) }),
|
|
3625
|
-
/* @__PURE__ */ p(
|
|
3626
|
-
|
|
3625
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ F(
|
|
3626
|
+
ln,
|
|
3627
3627
|
{
|
|
3628
3628
|
id: "collectionDescription",
|
|
3629
3629
|
isOptional: !0,
|
|
@@ -3653,7 +3653,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3653
3653
|
]
|
|
3654
3654
|
}
|
|
3655
3655
|
) }),
|
|
3656
|
-
/* @__PURE__ */ p(
|
|
3656
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "5", children: /* @__PURE__ */ p(ln, { id: "collectionAttachments", isOptional: !0, children: /* @__PURE__ */ p(
|
|
3657
3657
|
jn,
|
|
3658
3658
|
{
|
|
3659
3659
|
name: "attachments",
|
|
@@ -4611,7 +4611,7 @@ function B() {
|
|
|
4611
4611
|
return r;
|
|
4612
4612
|
}
|
|
4613
4613
|
function Ef(e, t) {
|
|
4614
|
-
const n =
|
|
4614
|
+
const n = Ie(e), { onChange: r } = t;
|
|
4615
4615
|
let o = new Set(t.appear ? void 0 : n);
|
|
4616
4616
|
const i = /* @__PURE__ */ new WeakSet(), [s, a] = q([], { equals: !1 }), [l] = G2(), c = (f) => {
|
|
4617
4617
|
a((d) => (d.push.apply(d, f), d));
|
|
@@ -4621,13 +4621,13 @@ function Ef(e, t) {
|
|
|
4621
4621
|
return k(
|
|
4622
4622
|
(f) => {
|
|
4623
4623
|
const d = s(), g = e();
|
|
4624
|
-
if (g[ni],
|
|
4624
|
+
if (g[ni], Ie(l))
|
|
4625
4625
|
return l(), f;
|
|
4626
4626
|
if (d.length) {
|
|
4627
4627
|
const h = f.filter((m) => !d.includes(m));
|
|
4628
4628
|
return d.length = 0, r({ list: h, added: [], removed: [], unchanged: h, finishRemoved: c }), h;
|
|
4629
4629
|
}
|
|
4630
|
-
return
|
|
4630
|
+
return Ie(() => {
|
|
4631
4631
|
const h = new Set(g), m = g.slice(), y = [], b = [], v = [];
|
|
4632
4632
|
for (const x of g)
|
|
4633
4633
|
(o.has(x) ? v : y).push(x);
|
|
@@ -4750,7 +4750,7 @@ function Tf(e, t, n, r = {}) {
|
|
|
4750
4750
|
const o = /* @__PURE__ */ new Map();
|
|
4751
4751
|
return Q(() => Fl(o.values())), () => {
|
|
4752
4752
|
const s = e() || [];
|
|
4753
|
-
return s[ni],
|
|
4753
|
+
return s[ni], Ie(() => {
|
|
4754
4754
|
var u, f;
|
|
4755
4755
|
if (!s.length)
|
|
4756
4756
|
return Fl(o.values()), o.clear(), r.fallback ? [Zt((g) => (o.set(ki, { dispose: g }), r.fallback()))] : [];
|
|
@@ -5151,8 +5151,8 @@ function ci(e, t) {
|
|
|
5151
5151
|
function Kl(e) {
|
|
5152
5152
|
return Kn(e) ? e : void 0;
|
|
5153
5153
|
}
|
|
5154
|
-
function
|
|
5155
|
-
const [t, n] =
|
|
5154
|
+
function Ee(e) {
|
|
5155
|
+
const [t, n] = fe(e, ["as"]);
|
|
5156
5156
|
if (!t.as)
|
|
5157
5157
|
throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
|
|
5158
5158
|
return (
|
|
@@ -5222,14 +5222,14 @@ function x0(e) {
|
|
|
5222
5222
|
const t = mo(), n = ie({
|
|
5223
5223
|
id: t.generateId("description")
|
|
5224
5224
|
}, e);
|
|
5225
|
-
return j(() => Q(t.registerDescription(n.id))), C(
|
|
5225
|
+
return j(() => Q(t.registerDescription(n.id))), C(Ee, J({
|
|
5226
5226
|
as: "div"
|
|
5227
5227
|
}, () => t.dataset(), n));
|
|
5228
5228
|
}
|
|
5229
5229
|
function S0(e) {
|
|
5230
5230
|
const t = mo(), n = ie({
|
|
5231
5231
|
id: t.generateId("error-message")
|
|
5232
|
-
}, e), [r, o] =
|
|
5232
|
+
}, e), [r, o] = fe(n, ["forceMount"]), i = () => t.validationState() === "invalid";
|
|
5233
5233
|
return j(() => {
|
|
5234
5234
|
i() && Q(t.registerErrorMessage(o.id));
|
|
5235
5235
|
}), C(H, {
|
|
@@ -5237,7 +5237,7 @@ function S0(e) {
|
|
|
5237
5237
|
return r.forceMount || i();
|
|
5238
5238
|
},
|
|
5239
5239
|
get children() {
|
|
5240
|
-
return C(
|
|
5240
|
+
return C(Ee, J({
|
|
5241
5241
|
as: "div"
|
|
5242
5242
|
}, () => t.dataset(), o));
|
|
5243
5243
|
}
|
|
@@ -5247,8 +5247,8 @@ function i3(e) {
|
|
|
5247
5247
|
let t;
|
|
5248
5248
|
const n = mo(), r = ie({
|
|
5249
5249
|
id: n.generateId("label")
|
|
5250
|
-
}, e), [o, i] =
|
|
5251
|
-
return j(() => Q(n.registerLabel(i.id))), C(
|
|
5250
|
+
}, e), [o, i] = fe(r, ["ref"]), s = ci(() => t, () => "label");
|
|
5251
|
+
return j(() => Q(n.registerLabel(i.id))), C(Ee, J({
|
|
5252
5252
|
as: "label",
|
|
5253
5253
|
ref(a) {
|
|
5254
5254
|
const l = Ye((c) => t = c, o.ref);
|
|
@@ -5287,7 +5287,7 @@ function po(e) {
|
|
|
5287
5287
|
return r() ? (a = e.value) == null ? void 0 : a.call(e) : t();
|
|
5288
5288
|
});
|
|
5289
5289
|
return [o, (a) => {
|
|
5290
|
-
|
|
5290
|
+
Ie(() => {
|
|
5291
5291
|
var c;
|
|
5292
5292
|
const l = J1(a, o());
|
|
5293
5293
|
return Object.is(l, o()) || (r() || n(l), (c = e.onChange) == null || c.call(e, l)), l;
|
|
@@ -5731,7 +5731,7 @@ function F3(e, t, n) {
|
|
|
5731
5731
|
keyboardDelegate: () => L(o.keyboardDelegate),
|
|
5732
5732
|
selectionManager: () => L(o.selectionManager)
|
|
5733
5733
|
}), c = () => L(o.orientation) ?? "vertical", u = (y) => {
|
|
5734
|
-
var O, $, I, R, K, te, re,
|
|
5734
|
+
var O, $, I, R, K, te, re, ge;
|
|
5735
5735
|
$e(y, l.onKeyDown), y.altKey && y.key === "Tab" && y.preventDefault();
|
|
5736
5736
|
const b = t();
|
|
5737
5737
|
if (!(b != null && b.contains(y.target)))
|
|
@@ -5770,7 +5770,7 @@ function F3(e, t, n) {
|
|
|
5770
5770
|
y.preventDefault();
|
|
5771
5771
|
const U = s() === "rtl";
|
|
5772
5772
|
let ee;
|
|
5773
|
-
E != null ? ee = S.getKeyRightOf(E) : ee = U ? (re = S.getLastKey) == null ? void 0 : re.call(S) : (
|
|
5773
|
+
E != null ? ee = S.getKeyRightOf(E) : ee = U ? (re = S.getLastKey) == null ? void 0 : re.call(S) : (ge = S.getFirstKey) == null ? void 0 : ge.call(S), x(ee);
|
|
5774
5774
|
}
|
|
5775
5775
|
break;
|
|
5776
5776
|
}
|
|
@@ -5817,10 +5817,10 @@ function F3(e, t, n) {
|
|
|
5817
5817
|
b.focus();
|
|
5818
5818
|
else {
|
|
5819
5819
|
const U = Xf(b, { tabbable: !0 });
|
|
5820
|
-
let ee,
|
|
5820
|
+
let ee, ae;
|
|
5821
5821
|
do
|
|
5822
|
-
|
|
5823
|
-
while (
|
|
5822
|
+
ae = U.lastChild(), ae && (ee = ae);
|
|
5823
|
+
while (ae);
|
|
5824
5824
|
ee && !ee.contains(document.activeElement) && Ve(ee);
|
|
5825
5825
|
}
|
|
5826
5826
|
break;
|
|
@@ -6244,7 +6244,7 @@ var Ue = (e) => typeof e == "function" ? e() : e, N3 = (e) => {
|
|
|
6244
6244
|
let i = "none";
|
|
6245
6245
|
return j((s) => {
|
|
6246
6246
|
const a = Ue(e.show);
|
|
6247
|
-
return
|
|
6247
|
+
return Ie(() => {
|
|
6248
6248
|
var u;
|
|
6249
6249
|
if (s === a) return a;
|
|
6250
6250
|
const l = i, c = n();
|
|
@@ -6350,14 +6350,14 @@ function $s(e) {
|
|
|
6350
6350
|
let t;
|
|
6351
6351
|
const n = ie({
|
|
6352
6352
|
type: "button"
|
|
6353
|
-
}, e), [r, o] =
|
|
6353
|
+
}, e), [r, o] = fe(n, ["ref", "type", "disabled"]), i = ci(() => t, () => "button"), s = k(() => {
|
|
6354
6354
|
const c = i();
|
|
6355
6355
|
return c == null ? !1 : W3({
|
|
6356
6356
|
tagName: c,
|
|
6357
6357
|
type: r.type
|
|
6358
6358
|
});
|
|
6359
6359
|
}), a = k(() => i() === "input"), l = k(() => i() === "a" && (t == null ? void 0 : t.getAttribute("href")) != null);
|
|
6360
|
-
return C(
|
|
6360
|
+
return C(Ee, J({
|
|
6361
6361
|
as: "button",
|
|
6362
6362
|
ref(c) {
|
|
6363
6363
|
const u = Ye((f) => t = f, r.ref);
|
|
@@ -6383,7 +6383,7 @@ function $s(e) {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
}, o));
|
|
6385
6385
|
}
|
|
6386
|
-
var Z3 = $s, Y3 = ["top", "right", "bottom", "left"], Mt = Math.min, ot = Math.max, Ho = Math.round, Ao = Math.floor,
|
|
6386
|
+
var Z3 = $s, Y3 = ["top", "right", "bottom", "left"], Mt = Math.min, ot = Math.max, Ho = Math.round, Ao = Math.floor, gn = (e) => ({
|
|
6387
6387
|
x: e,
|
|
6388
6388
|
y: e
|
|
6389
6389
|
}), X3 = {
|
|
@@ -6401,7 +6401,7 @@ function es(e, t, n) {
|
|
|
6401
6401
|
function Dn(e, t) {
|
|
6402
6402
|
return typeof e == "function" ? e(t) : e;
|
|
6403
6403
|
}
|
|
6404
|
-
function
|
|
6404
|
+
function hn(e) {
|
|
6405
6405
|
return e.split("-")[0];
|
|
6406
6406
|
}
|
|
6407
6407
|
function xr(e) {
|
|
@@ -6414,7 +6414,7 @@ function Es(e) {
|
|
|
6414
6414
|
return e === "y" ? "height" : "width";
|
|
6415
6415
|
}
|
|
6416
6416
|
function Mn(e) {
|
|
6417
|
-
return ["top", "bottom"].includes(
|
|
6417
|
+
return ["top", "bottom"].includes(hn(e)) ? "y" : "x";
|
|
6418
6418
|
}
|
|
6419
6419
|
function Is(e) {
|
|
6420
6420
|
return R0(Mn(e));
|
|
@@ -6447,7 +6447,7 @@ function ng(e, t, n) {
|
|
|
6447
6447
|
}
|
|
6448
6448
|
function rg(e, t, n, r) {
|
|
6449
6449
|
const o = xr(e);
|
|
6450
|
-
let i = ng(
|
|
6450
|
+
let i = ng(hn(e), n === "start", r);
|
|
6451
6451
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ts)))), i;
|
|
6452
6452
|
}
|
|
6453
6453
|
function Go(e) {
|
|
@@ -6493,7 +6493,7 @@ function Hl(e, t, n) {
|
|
|
6493
6493
|
reference: r,
|
|
6494
6494
|
floating: o
|
|
6495
6495
|
} = e;
|
|
6496
|
-
const i = Mn(t), s = Is(t), a = Es(s), l =
|
|
6496
|
+
const i = Mn(t), s = Is(t), a = Es(s), l = hn(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, d = r[a] / 2 - o[a] / 2;
|
|
6497
6497
|
let g;
|
|
6498
6498
|
switch (l) {
|
|
6499
6499
|
case "top":
|
|
@@ -6666,12 +6666,12 @@ var sg = (e) => ({
|
|
|
6666
6666
|
}, g = Is(o), h = Es(g), m = await s.getDimensions(c), y = g === "y", b = y ? "top" : "left", v = y ? "bottom" : "right", w = y ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[g] - d[g] - i.floating[h], S = d[g] - i.reference[g], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
6667
6667
|
let E = T ? T[w] : 0;
|
|
6668
6668
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(T))) && (E = a.floating[w] || i.floating[h]);
|
|
6669
|
-
const O = x / 2 - S / 2, $ = E / 2 - m[h] / 2 - 1, I = Mt(f[b], $), R = Mt(f[v], $), K = I, te = E - m[h] - R, re = E / 2 - m[h] / 2 + O,
|
|
6669
|
+
const O = x / 2 - S / 2, $ = E / 2 - m[h] / 2 - 1, I = Mt(f[b], $), R = Mt(f[v], $), K = I, te = E - m[h] - R, re = E / 2 - m[h] / 2 + O, ge = es(K, re, te), U = !l.arrow && xr(o) != null && re !== ge && i.reference[h] / 2 - (re < K ? I : R) - m[h] / 2 < 0, ee = U ? re < K ? re - K : re - te : 0;
|
|
6670
6670
|
return {
|
|
6671
6671
|
[g]: d[g] + ee,
|
|
6672
6672
|
data: {
|
|
6673
|
-
[g]:
|
|
6674
|
-
centerOffset: re -
|
|
6673
|
+
[g]: ge,
|
|
6674
|
+
centerOffset: re - ge - ee,
|
|
6675
6675
|
...U && {
|
|
6676
6676
|
alignmentOffset: ee
|
|
6677
6677
|
}
|
|
@@ -6703,7 +6703,7 @@ var sg = (e) => ({
|
|
|
6703
6703
|
} = Dn(e, t);
|
|
6704
6704
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6705
6705
|
return {};
|
|
6706
|
-
const b =
|
|
6706
|
+
const b = hn(o), v = Mn(a), w = hn(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = d || (w || !m ? [Go(a)] : tg(a)), T = h !== "none";
|
|
6707
6707
|
!d && T && S.push(...rg(a, m, h, x));
|
|
6708
6708
|
const E = [a, ...S], O = await Xr(t, y), $ = [];
|
|
6709
6709
|
let I = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -6716,31 +6716,31 @@ var sg = (e) => ({
|
|
|
6716
6716
|
overflows: $
|
|
6717
6717
|
}], !$.every((re) => re <= 0)) {
|
|
6718
6718
|
var R, K;
|
|
6719
|
-
const re = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1,
|
|
6720
|
-
if (
|
|
6719
|
+
const re = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1, ge = E[re];
|
|
6720
|
+
if (ge)
|
|
6721
6721
|
return {
|
|
6722
6722
|
data: {
|
|
6723
6723
|
index: re,
|
|
6724
6724
|
overflows: I
|
|
6725
6725
|
},
|
|
6726
6726
|
reset: {
|
|
6727
|
-
placement:
|
|
6727
|
+
placement: ge
|
|
6728
6728
|
}
|
|
6729
6729
|
};
|
|
6730
|
-
let U = (K = I.filter((ee) => ee.overflows[0] <= 0).sort((ee,
|
|
6730
|
+
let U = (K = I.filter((ee) => ee.overflows[0] <= 0).sort((ee, ae) => ee.overflows[1] - ae.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
6731
6731
|
if (!U)
|
|
6732
6732
|
switch (g) {
|
|
6733
6733
|
case "bestFit": {
|
|
6734
6734
|
var te;
|
|
6735
|
-
const ee = (te = I.filter((
|
|
6735
|
+
const ee = (te = I.filter((ae) => {
|
|
6736
6736
|
if (T) {
|
|
6737
|
-
const xe = Mn(
|
|
6737
|
+
const xe = Mn(ae.placement);
|
|
6738
6738
|
return xe === v || // Create a bias to the `y` side axis due to horizontal
|
|
6739
6739
|
// reading directions favoring greater width.
|
|
6740
6740
|
xe === "y";
|
|
6741
6741
|
}
|
|
6742
6742
|
return !0;
|
|
6743
|
-
}).map((
|
|
6743
|
+
}).map((ae) => [ae.placement, ae.overflows.filter((xe) => xe > 0).reduce((xe, Te) => xe + Te, 0)]).sort((ae, xe) => ae[1] - xe[1])[0]) == null ? void 0 : te[0];
|
|
6744
6744
|
ee && (U = ee);
|
|
6745
6745
|
break;
|
|
6746
6746
|
}
|
|
@@ -6817,7 +6817,7 @@ async function cg(e, t) {
|
|
|
6817
6817
|
placement: n,
|
|
6818
6818
|
platform: r,
|
|
6819
6819
|
elements: o
|
|
6820
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s =
|
|
6820
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = hn(n), a = xr(n), l = Mn(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, f = Dn(t, e);
|
|
6821
6821
|
let {
|
|
6822
6822
|
mainAxis: d,
|
|
6823
6823
|
crossAxis: g,
|
|
@@ -6890,7 +6890,7 @@ var ug = function(e) {
|
|
|
6890
6890
|
} = Dn(e, t), c = {
|
|
6891
6891
|
x: n,
|
|
6892
6892
|
y: r
|
|
6893
|
-
}, u = await Xr(t, l), f = Mn(
|
|
6893
|
+
}, u = await Xr(t, l), f = Mn(hn(o)), d = R0(f);
|
|
6894
6894
|
let g = c[d], h = c[f];
|
|
6895
6895
|
if (i) {
|
|
6896
6896
|
const y = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", v = g + u[y], w = g - u[b];
|
|
@@ -6928,7 +6928,7 @@ var ug = function(e) {
|
|
|
6928
6928
|
apply: s = () => {
|
|
6929
6929
|
},
|
|
6930
6930
|
...a
|
|
6931
|
-
} = Dn(e, t), l = await Xr(t, a), c =
|
|
6931
|
+
} = Dn(e, t), l = await Xr(t, a), c = hn(n), u = xr(n), f = Mn(n) === "y", {
|
|
6932
6932
|
width: d,
|
|
6933
6933
|
height: g
|
|
6934
6934
|
} = r.floating;
|
|
@@ -6961,7 +6961,7 @@ function it(e) {
|
|
|
6961
6961
|
var t;
|
|
6962
6962
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6963
6963
|
}
|
|
6964
|
-
function
|
|
6964
|
+
function tn(e) {
|
|
6965
6965
|
var t;
|
|
6966
6966
|
return (t = (B0(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6967
6967
|
}
|
|
@@ -7003,13 +7003,13 @@ function ks(e) {
|
|
|
7003
7003
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
7004
7004
|
}
|
|
7005
7005
|
function hg(e) {
|
|
7006
|
-
let t =
|
|
7006
|
+
let t = mn(e);
|
|
7007
7007
|
for (; _t(t) && !hr(t); ) {
|
|
7008
7008
|
if (ks(t))
|
|
7009
7009
|
return t;
|
|
7010
7010
|
if (di(t))
|
|
7011
7011
|
return null;
|
|
7012
|
-
t =
|
|
7012
|
+
t = mn(t);
|
|
7013
7013
|
}
|
|
7014
7014
|
return null;
|
|
7015
7015
|
}
|
|
@@ -7031,7 +7031,7 @@ function fi(e) {
|
|
|
7031
7031
|
scrollTop: e.scrollY
|
|
7032
7032
|
};
|
|
7033
7033
|
}
|
|
7034
|
-
function
|
|
7034
|
+
function mn(e) {
|
|
7035
7035
|
if (Sr(e) === "html")
|
|
7036
7036
|
return e;
|
|
7037
7037
|
const t = (
|
|
@@ -7039,12 +7039,12 @@ function pn(e) {
|
|
|
7039
7039
|
e.assignedSlot || // DOM Element detected.
|
|
7040
7040
|
e.parentNode || // ShadowRoot detected.
|
|
7041
7041
|
Ql(e) && e.host || // Fallback.
|
|
7042
|
-
|
|
7042
|
+
tn(e)
|
|
7043
7043
|
);
|
|
7044
7044
|
return Ql(t) ? t.host : t;
|
|
7045
7045
|
}
|
|
7046
7046
|
function K0(e) {
|
|
7047
|
-
const t =
|
|
7047
|
+
const t = mn(e);
|
|
7048
7048
|
return hr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _t(t) && yo(t) ? t : K0(t);
|
|
7049
7049
|
}
|
|
7050
7050
|
function Jr(e, t, n) {
|
|
@@ -7069,7 +7069,7 @@ function Ms(e) {
|
|
|
7069
7069
|
function Wn(e) {
|
|
7070
7070
|
const t = Ms(e);
|
|
7071
7071
|
if (!_t(t))
|
|
7072
|
-
return
|
|
7072
|
+
return gn(1);
|
|
7073
7073
|
const n = t.getBoundingClientRect(), {
|
|
7074
7074
|
width: r,
|
|
7075
7075
|
height: o,
|
|
@@ -7081,7 +7081,7 @@ function Wn(e) {
|
|
|
7081
7081
|
y: a
|
|
7082
7082
|
};
|
|
7083
7083
|
}
|
|
7084
|
-
var mg = /* @__PURE__ */
|
|
7084
|
+
var mg = /* @__PURE__ */ gn(0);
|
|
7085
7085
|
function U0(e) {
|
|
7086
7086
|
const t = it(e);
|
|
7087
7087
|
return !As() || !t.visualViewport ? mg : {
|
|
@@ -7095,9 +7095,9 @@ function pg(e, t, n) {
|
|
|
7095
7095
|
function Tn(e, t, n, r) {
|
|
7096
7096
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7097
7097
|
const o = e.getBoundingClientRect(), i = Ms(e);
|
|
7098
|
-
let s =
|
|
7098
|
+
let s = gn(1);
|
|
7099
7099
|
t && (r ? St(r) && (s = Wn(r)) : s = Wn(e));
|
|
7100
|
-
const a = pg(i, n, r) ? U0(i) :
|
|
7100
|
+
const a = pg(i, n, r) ? U0(i) : gn(0);
|
|
7101
7101
|
let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, u = o.width / s.x, f = o.height / s.y;
|
|
7102
7102
|
if (i) {
|
|
7103
7103
|
const d = it(i), g = r && St(r) ? it(r) : r;
|
|
@@ -7121,14 +7121,14 @@ function yg(e) {
|
|
|
7121
7121
|
offsetParent: r,
|
|
7122
7122
|
strategy: o
|
|
7123
7123
|
} = e;
|
|
7124
|
-
const i = o === "fixed", s =
|
|
7124
|
+
const i = o === "fixed", s = tn(r), a = t ? di(t.floating) : !1;
|
|
7125
7125
|
if (r === s || a && i)
|
|
7126
7126
|
return n;
|
|
7127
7127
|
let l = {
|
|
7128
7128
|
scrollLeft: 0,
|
|
7129
7129
|
scrollTop: 0
|
|
7130
|
-
}, c =
|
|
7131
|
-
const u =
|
|
7130
|
+
}, c = gn(1);
|
|
7131
|
+
const u = gn(0), f = _t(r);
|
|
7132
7132
|
if ((f || !f && !i) && ((Sr(r) !== "body" || yo(s)) && (l = fi(r)), _t(r))) {
|
|
7133
7133
|
const d = Tn(r);
|
|
7134
7134
|
c = Wn(r), u.x = d.x + r.clientLeft, u.y = d.y + r.clientTop;
|
|
@@ -7144,10 +7144,10 @@ function bg(e) {
|
|
|
7144
7144
|
return Array.from(e.getClientRects());
|
|
7145
7145
|
}
|
|
7146
7146
|
function V0(e) {
|
|
7147
|
-
return Tn(
|
|
7147
|
+
return Tn(tn(e)).left + fi(e).scrollLeft;
|
|
7148
7148
|
}
|
|
7149
7149
|
function vg(e) {
|
|
7150
|
-
const t =
|
|
7150
|
+
const t = tn(e), n = fi(e), r = e.ownerDocument.body, o = ot(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ot(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7151
7151
|
let s = -n.scrollLeft + V0(e);
|
|
7152
7152
|
const a = -n.scrollTop;
|
|
7153
7153
|
return $t(r).direction === "rtl" && (s += ot(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7158,7 +7158,7 @@ function vg(e) {
|
|
|
7158
7158
|
};
|
|
7159
7159
|
}
|
|
7160
7160
|
function Cg(e, t) {
|
|
7161
|
-
const n = it(e), r =
|
|
7161
|
+
const n = it(e), r = tn(e), o = n.visualViewport;
|
|
7162
7162
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
7163
7163
|
if (o) {
|
|
7164
7164
|
i = o.width, s = o.height;
|
|
@@ -7173,7 +7173,7 @@ function Cg(e, t) {
|
|
|
7173
7173
|
};
|
|
7174
7174
|
}
|
|
7175
7175
|
function wg(e, t) {
|
|
7176
|
-
const n = Tn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = _t(e) ? Wn(e) :
|
|
7176
|
+
const n = Tn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = _t(e) ? Wn(e) : gn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
|
|
7177
7177
|
return {
|
|
7178
7178
|
width: s,
|
|
7179
7179
|
height: a,
|
|
@@ -7186,7 +7186,7 @@ function Wl(e, t, n) {
|
|
|
7186
7186
|
if (t === "viewport")
|
|
7187
7187
|
r = Cg(e, n);
|
|
7188
7188
|
else if (t === "document")
|
|
7189
|
-
r = vg(
|
|
7189
|
+
r = vg(tn(e));
|
|
7190
7190
|
else if (St(t))
|
|
7191
7191
|
r = wg(t, n);
|
|
7192
7192
|
else {
|
|
@@ -7200,7 +7200,7 @@ function Wl(e, t, n) {
|
|
|
7200
7200
|
return jo(r);
|
|
7201
7201
|
}
|
|
7202
7202
|
function H0(e, t) {
|
|
7203
|
-
const n =
|
|
7203
|
+
const n = mn(e);
|
|
7204
7204
|
return n === t || !St(n) || hr(n) ? !1 : $t(n).position === "fixed" || H0(n, t);
|
|
7205
7205
|
}
|
|
7206
7206
|
function xg(e, t) {
|
|
@@ -7209,10 +7209,10 @@ function xg(e, t) {
|
|
|
7209
7209
|
return n;
|
|
7210
7210
|
let r = Jr(e, [], !1).filter((a) => St(a) && Sr(a) !== "body"), o = null;
|
|
7211
7211
|
const i = $t(e).position === "fixed";
|
|
7212
|
-
let s = i ?
|
|
7212
|
+
let s = i ? mn(e) : e;
|
|
7213
7213
|
for (; St(s) && !hr(s); ) {
|
|
7214
7214
|
const a = $t(s), l = ks(s);
|
|
7215
|
-
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || yo(s) && !l && H0(e, s)) ? r = r.filter((u) => u !== s) : o = a, s =
|
|
7215
|
+
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || yo(s) && !l && H0(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = mn(s);
|
|
7216
7216
|
}
|
|
7217
7217
|
return t.set(e, r), r;
|
|
7218
7218
|
}
|
|
@@ -7245,12 +7245,12 @@ function $g(e) {
|
|
|
7245
7245
|
};
|
|
7246
7246
|
}
|
|
7247
7247
|
function Eg(e, t, n) {
|
|
7248
|
-
const r = _t(t), o =
|
|
7248
|
+
const r = _t(t), o = tn(t), i = n === "fixed", s = Tn(e, !0, i, t);
|
|
7249
7249
|
let a = {
|
|
7250
7250
|
scrollLeft: 0,
|
|
7251
7251
|
scrollTop: 0
|
|
7252
7252
|
};
|
|
7253
|
-
const l =
|
|
7253
|
+
const l = gn(0);
|
|
7254
7254
|
if (r || !r && !i)
|
|
7255
7255
|
if ((Sr(t) !== "body" || yo(o)) && (a = fi(t)), r) {
|
|
7256
7256
|
const f = Tn(t, !0, i, t);
|
|
@@ -7275,11 +7275,11 @@ function G0(e, t) {
|
|
|
7275
7275
|
if (di(e))
|
|
7276
7276
|
return n;
|
|
7277
7277
|
if (!_t(e)) {
|
|
7278
|
-
let o =
|
|
7278
|
+
let o = mn(e);
|
|
7279
7279
|
for (; o && !hr(o); ) {
|
|
7280
7280
|
if (St(o) && !Mi(o))
|
|
7281
7281
|
return o;
|
|
7282
|
-
o =
|
|
7282
|
+
o = mn(o);
|
|
7283
7283
|
}
|
|
7284
7284
|
return n;
|
|
7285
7285
|
}
|
|
@@ -7305,7 +7305,7 @@ function kg(e) {
|
|
|
7305
7305
|
}
|
|
7306
7306
|
var j0 = {
|
|
7307
7307
|
convertOffsetParentRelativeRectToViewportRelativeRect: yg,
|
|
7308
|
-
getDocumentElement:
|
|
7308
|
+
getDocumentElement: tn,
|
|
7309
7309
|
getClippingRect: Sg,
|
|
7310
7310
|
getOffsetParent: G0,
|
|
7311
7311
|
getElementRects: Ig,
|
|
@@ -7317,7 +7317,7 @@ var j0 = {
|
|
|
7317
7317
|
};
|
|
7318
7318
|
function Ag(e, t) {
|
|
7319
7319
|
let n = null, r;
|
|
7320
|
-
const o =
|
|
7320
|
+
const o = tn(e);
|
|
7321
7321
|
function i() {
|
|
7322
7322
|
var a;
|
|
7323
7323
|
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
@@ -7425,7 +7425,7 @@ var Ng = /* @__PURE__ */ z('<svg display="block" viewBox="0 0 30 30" style="tran
|
|
|
7425
7425
|
function Ls(e) {
|
|
7426
7426
|
const t = Os(), n = ie({
|
|
7427
7427
|
size: ns
|
|
7428
|
-
}, e), [r, o] =
|
|
7428
|
+
}, e), [r, o] = fe(n, ["ref", "style", "size"]), i = () => t.currentPlacement().split("-")[0], s = qg(t.contentRef), a = () => {
|
|
7429
7429
|
var d;
|
|
7430
7430
|
return ((d = s()) == null ? void 0 : d.getPropertyValue("background-color")) || "none";
|
|
7431
7431
|
}, l = () => {
|
|
@@ -7435,7 +7435,7 @@ function Ls(e) {
|
|
|
7435
7435
|
var d;
|
|
7436
7436
|
return ((d = s()) == null ? void 0 : d.getPropertyValue(`border-${i()}-width`)) || "0px";
|
|
7437
7437
|
}, u = () => Number.parseInt(c()) * 2 * (ns / r.size), f = () => `rotate(${Rg[i()]} ${Yl} ${Yl}) translate(0 2)`;
|
|
7438
|
-
return C(
|
|
7438
|
+
return C(Ee, J({
|
|
7439
7439
|
as: "div",
|
|
7440
7440
|
ref(d) {
|
|
7441
7441
|
const g = Ye(t.setArrowRef, r.ref);
|
|
@@ -7470,8 +7470,8 @@ function qg(e) {
|
|
|
7470
7470
|
}), t;
|
|
7471
7471
|
}
|
|
7472
7472
|
function Bg(e) {
|
|
7473
|
-
const t = Os(), [n, r] =
|
|
7474
|
-
return C(
|
|
7473
|
+
const t = Os(), [n, r] = fe(e, ["ref", "style"]);
|
|
7474
|
+
return C(Ee, J({
|
|
7475
7475
|
as: "div",
|
|
7476
7476
|
ref(o) {
|
|
7477
7477
|
const i = Ye(t.setPositionerRef, n.ref);
|
|
@@ -7755,7 +7755,7 @@ function Qg() {
|
|
|
7755
7755
|
}
|
|
7756
7756
|
function Wg(e) {
|
|
7757
7757
|
let t;
|
|
7758
|
-
const n = Qg(), [r, o] =
|
|
7758
|
+
const n = Qg(), [r, o] = fe(e, ["ref", "disableOutsidePointerEvents", "excludedElements", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside", "onDismiss", "bypassTopMostLayerCheck"]), i = /* @__PURE__ */ new Set([]), s = (f) => {
|
|
7759
7759
|
i.add(f);
|
|
7760
7760
|
const d = n == null ? void 0 : n.registerNestedLayer(f);
|
|
7761
7761
|
return () => {
|
|
@@ -7809,7 +7809,7 @@ function Wg(e) {
|
|
|
7809
7809
|
return C(W0.Provider, {
|
|
7810
7810
|
value: u,
|
|
7811
7811
|
get children() {
|
|
7812
|
-
return C(
|
|
7812
|
+
return C(Ee, J({
|
|
7813
7813
|
as: "div",
|
|
7814
7814
|
ref(f) {
|
|
7815
7815
|
const d = Ye((g) => t = g, r.ref);
|
|
@@ -7873,7 +7873,7 @@ function bo() {
|
|
|
7873
7873
|
function eu(e) {
|
|
7874
7874
|
const t = mo(), n = X0(), r = `${t.generateId("item")}-${mt()}`, o = ie({
|
|
7875
7875
|
id: r
|
|
7876
|
-
}, e), [i, s] =
|
|
7876
|
+
}, e), [i, s] = fe(o, ["value", "disabled", "onPointerDown"]), [a, l] = q(), [c, u] = q(), [f, d] = q(), [g, h] = q(), [m, y] = q(!1), b = k(() => n.isSelectedValue(i.value)), v = k(() => i.disabled || t.isDisabled() || !1), w = (T) => {
|
|
7877
7877
|
$e(T, i.onPointerDown), m() && T.preventDefault();
|
|
7878
7878
|
}, x = k(() => ({
|
|
7879
7879
|
...t.dataset(),
|
|
@@ -7899,7 +7899,7 @@ function eu(e) {
|
|
|
7899
7899
|
return C(J0.Provider, {
|
|
7900
7900
|
value: S,
|
|
7901
7901
|
get children() {
|
|
7902
|
-
return C(
|
|
7902
|
+
return C(Ee, J({
|
|
7903
7903
|
as: "div",
|
|
7904
7904
|
role: "group",
|
|
7905
7905
|
onPointerDown: w
|
|
@@ -7910,8 +7910,8 @@ function eu(e) {
|
|
|
7910
7910
|
function tu(e) {
|
|
7911
7911
|
const t = bo(), n = ie({
|
|
7912
7912
|
id: t.generateId("control")
|
|
7913
|
-
}, e), [r, o] =
|
|
7914
|
-
return C(
|
|
7913
|
+
}, e), [r, o] = fe(n, ["onClick", "onKeyDown"]);
|
|
7914
|
+
return C(Ee, J({
|
|
7915
7915
|
as: "div",
|
|
7916
7916
|
onClick: (a) => {
|
|
7917
7917
|
var l;
|
|
@@ -7927,14 +7927,14 @@ function nu(e) {
|
|
|
7927
7927
|
const t = bo(), n = ie({
|
|
7928
7928
|
id: t.generateId("description")
|
|
7929
7929
|
}, e);
|
|
7930
|
-
return j(() => Q(t.registerDescription(n.id))), C(
|
|
7930
|
+
return j(() => Q(t.registerDescription(n.id))), C(Ee, J({
|
|
7931
7931
|
as: "div"
|
|
7932
7932
|
}, () => t.dataset(), n));
|
|
7933
7933
|
}
|
|
7934
7934
|
function ru(e) {
|
|
7935
7935
|
const t = bo(), n = ie({
|
|
7936
7936
|
id: t.generateId("indicator")
|
|
7937
|
-
}, e), [r, o] =
|
|
7937
|
+
}, e), [r, o] = fe(n, ["ref", "forceMount"]), [i, s] = q(), {
|
|
7938
7938
|
present: a
|
|
7939
7939
|
} = F0({
|
|
7940
7940
|
show: () => r.forceMount || t.isSelected(),
|
|
@@ -7945,7 +7945,7 @@ function ru(e) {
|
|
|
7945
7945
|
return a();
|
|
7946
7946
|
},
|
|
7947
7947
|
get children() {
|
|
7948
|
-
return C(
|
|
7948
|
+
return C(Ee, J({
|
|
7949
7949
|
as: "div",
|
|
7950
7950
|
ref(l) {
|
|
7951
7951
|
const c = Ye(s, r.ref);
|
|
@@ -7958,7 +7958,7 @@ function ru(e) {
|
|
|
7958
7958
|
function ou(e) {
|
|
7959
7959
|
const t = mo(), n = X0(), r = bo(), o = ie({
|
|
7960
7960
|
id: r.generateId("input")
|
|
7961
|
-
}, e), [i, s] =
|
|
7961
|
+
}, e), [i, s] = fe(o, ["ref", "style", "aria-labelledby", "aria-describedby", "onChange", "onFocus", "onBlur"]), a = () => [
|
|
7962
7962
|
i["aria-labelledby"],
|
|
7963
7963
|
r.labelId(),
|
|
7964
7964
|
// If there is both an aria-label and aria-labelledby, add the input itself has an aria-labelledby
|
|
@@ -7989,7 +7989,7 @@ function ou(e) {
|
|
|
7989
7989
|
}));
|
|
7990
7990
|
}, {
|
|
7991
7991
|
defer: !0
|
|
7992
|
-
})), j(() => Q(r.registerInput(s.id))), C(
|
|
7992
|
+
})), j(() => Q(r.registerInput(s.id))), C(Ee, J({
|
|
7993
7993
|
as: "input",
|
|
7994
7994
|
ref(h) {
|
|
7995
7995
|
const m = Ye(r.setInputRef, i.ref);
|
|
@@ -8034,7 +8034,7 @@ function iu(e) {
|
|
|
8034
8034
|
const t = bo(), n = ie({
|
|
8035
8035
|
id: t.generateId("label")
|
|
8036
8036
|
}, e);
|
|
8037
|
-
return j(() => Q(t.registerLabel(n.id))), C(
|
|
8037
|
+
return j(() => Q(t.registerLabel(n.id))), C(Ee, J({
|
|
8038
8038
|
as: "label",
|
|
8039
8039
|
get for() {
|
|
8040
8040
|
return t.inputId();
|
|
@@ -8051,7 +8051,7 @@ function lu(e) {
|
|
|
8051
8051
|
const n = `radiogroup-${mt()}`, r = ie({
|
|
8052
8052
|
id: n,
|
|
8053
8053
|
orientation: "vertical"
|
|
8054
|
-
}, e), [o, i, s] =
|
|
8054
|
+
}, e), [o, i, s] = fe(r, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], r3), [a, l] = po({
|
|
8055
8055
|
value: () => o.value,
|
|
8056
8056
|
defaultValue: () => o.defaultValue,
|
|
8057
8057
|
onChange: (h) => {
|
|
@@ -8079,7 +8079,7 @@ function lu(e) {
|
|
|
8079
8079
|
return C(Y0.Provider, {
|
|
8080
8080
|
value: g,
|
|
8081
8081
|
get children() {
|
|
8082
|
-
return C(
|
|
8082
|
+
return C(Ee, J({
|
|
8083
8083
|
as: "div",
|
|
8084
8084
|
ref(h) {
|
|
8085
8085
|
const m = Ye((y) => t = y, o.ref);
|
|
@@ -8588,7 +8588,7 @@ var Mo = /* @__PURE__ */ new Map(), rh = (e) => {
|
|
|
8588
8588
|
function cu() {
|
|
8589
8589
|
return Be(au);
|
|
8590
8590
|
}
|
|
8591
|
-
function
|
|
8591
|
+
function nn() {
|
|
8592
8592
|
const e = cu();
|
|
8593
8593
|
if (e === void 0)
|
|
8594
8594
|
throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");
|
|
@@ -8610,9 +8610,9 @@ function Nt() {
|
|
|
8610
8610
|
}
|
|
8611
8611
|
function Fs(e) {
|
|
8612
8612
|
let t;
|
|
8613
|
-
const n = Nt(), r =
|
|
8613
|
+
const n = Nt(), r = nn(), o = ie({
|
|
8614
8614
|
id: n.generateId(`item-${mt()}`)
|
|
8615
|
-
}, e), [i, s] =
|
|
8615
|
+
}, e), [i, s] = fe(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = q(), [c, u] = q(), [f, d] = q(), g = () => r.listState().selectionManager(), h = () => s.id, m = () => g().focusedKey() === h(), y = () => {
|
|
8616
8616
|
var $;
|
|
8617
8617
|
($ = i.onSelect) == null || $.call(i), i.closeOnSelect && setTimeout(() => {
|
|
8618
8618
|
r.close(!0);
|
|
@@ -8671,7 +8671,7 @@ function Fs(e) {
|
|
|
8671
8671
|
return C(uu.Provider, {
|
|
8672
8672
|
value: O,
|
|
8673
8673
|
get children() {
|
|
8674
|
-
return C(
|
|
8674
|
+
return C(Ee, J({
|
|
8675
8675
|
as: "div",
|
|
8676
8676
|
ref($) {
|
|
8677
8677
|
const I = Ye((R) => t = R, i.ref);
|
|
@@ -8722,7 +8722,7 @@ function Fs(e) {
|
|
|
8722
8722
|
function fu(e) {
|
|
8723
8723
|
const t = ie({
|
|
8724
8724
|
closeOnSelect: !1
|
|
8725
|
-
}, e), [n, r] =
|
|
8725
|
+
}, e), [n, r] = fe(t, ["checked", "defaultChecked", "onChange", "onSelect"]), o = u3({
|
|
8726
8726
|
isSelected: () => n.checked,
|
|
8727
8727
|
defaultIsSelected: () => n.defaultChecked,
|
|
8728
8728
|
onSelectedChange: (s) => {
|
|
@@ -8754,11 +8754,11 @@ var eo = {
|
|
|
8754
8754
|
last: (e) => e === "horizontal" ? "ArrowUp" : "ArrowLeft"
|
|
8755
8755
|
};
|
|
8756
8756
|
function gu(e) {
|
|
8757
|
-
const t = Nt(), n =
|
|
8757
|
+
const t = Nt(), n = nn(), r = gi(), {
|
|
8758
8758
|
direction: o
|
|
8759
8759
|
} = vn(), i = ie({
|
|
8760
8760
|
id: t.generateId("trigger")
|
|
8761
|
-
}, e), [s, a] =
|
|
8761
|
+
}, e), [s, a] = fe(i, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
|
|
8762
8762
|
let l = () => t.value();
|
|
8763
8763
|
r !== void 0 && (l = () => t.value() ?? s.id, r.lastValue() === void 0 && r.setLastValue(l));
|
|
8764
8764
|
const c = ci(() => n.triggerRef(), () => "button"), u = k(() => {
|
|
@@ -8851,11 +8851,11 @@ function hu() {
|
|
|
8851
8851
|
}
|
|
8852
8852
|
function mu(e) {
|
|
8853
8853
|
let t;
|
|
8854
|
-
const n = Nt(), r =
|
|
8854
|
+
const n = Nt(), r = nn(), o = gi(), i = hu(), {
|
|
8855
8855
|
direction: s
|
|
8856
8856
|
} = vn(), a = ie({
|
|
8857
8857
|
id: n.generateId(`content-${mt()}`)
|
|
8858
|
-
}, e), [l, c] =
|
|
8858
|
+
}, e), [l, c] = fe(a, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
|
|
8859
8859
|
let u = 0;
|
|
8860
8860
|
const f = () => r.parentMenuContext() == null && o === void 0 && n.isModal(), d = Xg({
|
|
8861
8861
|
selectionManager: r.listState().selectionManager,
|
|
@@ -8937,7 +8937,7 @@ function mu(e) {
|
|
|
8937
8937
|
return i === void 0 || r.parentMenuContext() != null;
|
|
8938
8938
|
},
|
|
8939
8939
|
get fallback() {
|
|
8940
|
-
return C(
|
|
8940
|
+
return C(Ee, J({
|
|
8941
8941
|
as: "div"
|
|
8942
8942
|
}, () => r.dataset(), v, c));
|
|
8943
8943
|
},
|
|
@@ -8973,7 +8973,7 @@ function mu(e) {
|
|
|
8973
8973
|
}
|
|
8974
8974
|
function hh(e) {
|
|
8975
8975
|
let t;
|
|
8976
|
-
const n = Nt(), r =
|
|
8976
|
+
const n = Nt(), r = nn(), [o, i] = fe(e, ["ref"]);
|
|
8977
8977
|
return dh({
|
|
8978
8978
|
element: () => t ?? null,
|
|
8979
8979
|
enabled: () => r.contentPresent() && n.preventScroll()
|
|
@@ -9003,7 +9003,7 @@ function Ds(e) {
|
|
|
9003
9003
|
return C(pu.Provider, {
|
|
9004
9004
|
value: i,
|
|
9005
9005
|
get children() {
|
|
9006
|
-
return C(
|
|
9006
|
+
return C(Ee, J({
|
|
9007
9007
|
as: "div",
|
|
9008
9008
|
role: "group",
|
|
9009
9009
|
get "aria-labelledby"() {
|
|
@@ -9016,8 +9016,8 @@ function Ds(e) {
|
|
|
9016
9016
|
function yu(e) {
|
|
9017
9017
|
const t = mh(), n = ie({
|
|
9018
9018
|
id: t.generateId("label")
|
|
9019
|
-
}, e), [r, o] =
|
|
9020
|
-
return j(() => Q(t.registerLabelId(r.id))), C(
|
|
9019
|
+
}, e), [r, o] = fe(n, ["id"]);
|
|
9020
|
+
return j(() => Q(t.registerLabelId(r.id))), C(Ee, J({
|
|
9021
9021
|
as: "span",
|
|
9022
9022
|
get id() {
|
|
9023
9023
|
return r.id;
|
|
@@ -9026,10 +9026,10 @@ function yu(e) {
|
|
|
9026
9026
|
}, o));
|
|
9027
9027
|
}
|
|
9028
9028
|
function bu(e) {
|
|
9029
|
-
const t =
|
|
9029
|
+
const t = nn(), n = ie({
|
|
9030
9030
|
children: "▼"
|
|
9031
9031
|
}, e);
|
|
9032
|
-
return C(
|
|
9032
|
+
return C(Ee, J({
|
|
9033
9033
|
as: "span",
|
|
9034
9034
|
"aria-hidden": "true"
|
|
9035
9035
|
}, () => t.dataset(), n));
|
|
@@ -9043,8 +9043,8 @@ function vu(e) {
|
|
|
9043
9043
|
function Cu(e) {
|
|
9044
9044
|
const t = Ps(), n = ie({
|
|
9045
9045
|
id: t.generateId("description")
|
|
9046
|
-
}, e), [r, o] =
|
|
9047
|
-
return j(() => Q(t.registerDescription(r.id))), C(
|
|
9046
|
+
}, e), [r, o] = fe(n, ["id"]);
|
|
9047
|
+
return j(() => Q(t.registerDescription(r.id))), C(Ee, J({
|
|
9048
9048
|
as: "div",
|
|
9049
9049
|
get id() {
|
|
9050
9050
|
return r.id;
|
|
@@ -9054,13 +9054,13 @@ function Cu(e) {
|
|
|
9054
9054
|
function wu(e) {
|
|
9055
9055
|
const t = Ps(), n = ie({
|
|
9056
9056
|
id: t.generateId("indicator")
|
|
9057
|
-
}, e), [r, o] =
|
|
9057
|
+
}, e), [r, o] = fe(n, ["forceMount"]);
|
|
9058
9058
|
return C(H, {
|
|
9059
9059
|
get when() {
|
|
9060
9060
|
return r.forceMount || t.isChecked();
|
|
9061
9061
|
},
|
|
9062
9062
|
get children() {
|
|
9063
|
-
return C(
|
|
9063
|
+
return C(Ee, J({
|
|
9064
9064
|
as: "div"
|
|
9065
9065
|
}, () => t.dataset(), o));
|
|
9066
9066
|
}
|
|
@@ -9069,8 +9069,8 @@ function wu(e) {
|
|
|
9069
9069
|
function xu(e) {
|
|
9070
9070
|
const t = Ps(), n = ie({
|
|
9071
9071
|
id: t.generateId("label")
|
|
9072
|
-
}, e), [r, o] =
|
|
9073
|
-
return j(() => Q(t.registerLabel(r.id))), C(
|
|
9072
|
+
}, e), [r, o] = fe(n, ["ref", "id"]);
|
|
9073
|
+
return j(() => Q(t.registerLabel(r.id))), C(Ee, J({
|
|
9074
9074
|
as: "div",
|
|
9075
9075
|
ref(i) {
|
|
9076
9076
|
const s = Ye(t.setLabelRef, r.ref);
|
|
@@ -9082,7 +9082,7 @@ function xu(e) {
|
|
|
9082
9082
|
}, () => t.dataset(), o));
|
|
9083
9083
|
}
|
|
9084
9084
|
function Su(e) {
|
|
9085
|
-
const t =
|
|
9085
|
+
const t = nn();
|
|
9086
9086
|
return C(H, {
|
|
9087
9087
|
get when() {
|
|
9088
9088
|
return t.contentPresent();
|
|
@@ -9102,7 +9102,7 @@ function ph() {
|
|
|
9102
9102
|
function Eu(e) {
|
|
9103
9103
|
const n = Nt().generateId(`radiogroup-${mt()}`), r = ie({
|
|
9104
9104
|
id: n
|
|
9105
|
-
}, e), [o, i] =
|
|
9105
|
+
}, e), [o, i] = fe(r, ["value", "defaultValue", "onChange", "disabled"]), [s, a] = po({
|
|
9106
9106
|
value: () => o.value,
|
|
9107
9107
|
defaultValue: () => o.defaultValue,
|
|
9108
9108
|
onChange: (c) => {
|
|
@@ -9124,7 +9124,7 @@ function Eu(e) {
|
|
|
9124
9124
|
function Iu(e) {
|
|
9125
9125
|
const t = ph(), n = ie({
|
|
9126
9126
|
closeOnSelect: !1
|
|
9127
|
-
}, e), [r, o] =
|
|
9127
|
+
}, e), [r, o] = fe(n, ["value", "onSelect"]);
|
|
9128
9128
|
return C(Fs, J({
|
|
9129
9129
|
role: "menuitemradio",
|
|
9130
9130
|
get checked() {
|
|
@@ -9160,7 +9160,7 @@ function bh(e, t) {
|
|
|
9160
9160
|
function ku(e) {
|
|
9161
9161
|
const t = Nt(), n = I0(), r = cu(), o = gi(), i = hu(), s = ie({
|
|
9162
9162
|
placement: t.orientation() === "horizontal" ? "bottom-start" : "right-start"
|
|
9163
|
-
}, e), [a, l] =
|
|
9163
|
+
}, e), [a, l] = fe(s, ["open", "defaultOpen", "onOpenChange"]);
|
|
9164
9164
|
let c = 0, u = null, f = "right";
|
|
9165
9165
|
const [d, g] = q(), [h, m] = q(), [y, b] = q(), [v, w] = q(), [x, S] = q(!0), [T, E] = q(l.placement), [O, $] = q([]), [I, R] = q([]), {
|
|
9166
9166
|
DomCollectionProvider: K
|
|
@@ -9179,18 +9179,18 @@ function ku(e) {
|
|
|
9179
9179
|
} = F0({
|
|
9180
9180
|
show: () => t.forceMount() || te.isOpen(),
|
|
9181
9181
|
element: () => v() ?? null
|
|
9182
|
-
}),
|
|
9182
|
+
}), ge = _3({
|
|
9183
9183
|
selectionMode: "none",
|
|
9184
9184
|
dataSource: I
|
|
9185
9185
|
}), U = (W) => {
|
|
9186
9186
|
S(W), te.open();
|
|
9187
9187
|
}, ee = (W = !1) => {
|
|
9188
9188
|
te.close(), W && r && r.close(!0);
|
|
9189
|
-
},
|
|
9189
|
+
}, ae = (W) => {
|
|
9190
9190
|
S(W), te.toggle();
|
|
9191
9191
|
}, xe = () => {
|
|
9192
9192
|
const W = v();
|
|
9193
|
-
W && (Ve(W),
|
|
9193
|
+
W && (Ve(W), ge.selectionManager().setFocused(!0), ge.selectionManager().setFocusedKey(void 0));
|
|
9194
9194
|
}, Te = () => {
|
|
9195
9195
|
i != null ? setTimeout(() => xe()) : xe();
|
|
9196
9196
|
}, Xe = (W) => {
|
|
@@ -9227,7 +9227,7 @@ function ku(e) {
|
|
|
9227
9227
|
}), Q(() => {
|
|
9228
9228
|
r === void 0 && (o == null || o.unregisterMenu(t.value()));
|
|
9229
9229
|
});
|
|
9230
|
-
const
|
|
9230
|
+
const rn = {
|
|
9231
9231
|
dataset: k(() => ({
|
|
9232
9232
|
"data-expanded": te.isOpen() ? "" : void 0,
|
|
9233
9233
|
"data-closed": te.isOpen() ? void 0 : ""
|
|
@@ -9238,7 +9238,7 @@ function ku(e) {
|
|
|
9238
9238
|
currentPlacement: T,
|
|
9239
9239
|
pointerGraceTimeoutId: () => c,
|
|
9240
9240
|
autoFocus: x,
|
|
9241
|
-
listState: () =>
|
|
9241
|
+
listState: () => ge,
|
|
9242
9242
|
parentMenuContext: () => r,
|
|
9243
9243
|
triggerRef: y,
|
|
9244
9244
|
contentRef: v,
|
|
@@ -9248,7 +9248,7 @@ function ku(e) {
|
|
|
9248
9248
|
setContentRef: w,
|
|
9249
9249
|
open: U,
|
|
9250
9250
|
close: ee,
|
|
9251
|
-
toggle:
|
|
9251
|
+
toggle: ae,
|
|
9252
9252
|
focusContent: Te,
|
|
9253
9253
|
onItemEnter: je,
|
|
9254
9254
|
onItemLeave: D,
|
|
@@ -9264,7 +9264,7 @@ function ku(e) {
|
|
|
9264
9264
|
return C(K, {
|
|
9265
9265
|
get children() {
|
|
9266
9266
|
return C(au.Provider, {
|
|
9267
|
-
value:
|
|
9267
|
+
value: rn,
|
|
9268
9268
|
get children() {
|
|
9269
9269
|
return C(H, {
|
|
9270
9270
|
when: i === void 0,
|
|
@@ -9299,7 +9299,7 @@ var vh = {
|
|
|
9299
9299
|
close: (e, t) => e === "ltr" ? [t === "horizontal" ? "ArrowLeft" : "ArrowUp"] : [t === "horizontal" ? "ArrowRight" : "ArrowDown"]
|
|
9300
9300
|
};
|
|
9301
9301
|
function Mu(e) {
|
|
9302
|
-
const t =
|
|
9302
|
+
const t = nn(), n = Nt(), [r, o] = fe(e, ["onFocusOutside", "onKeyDown"]), {
|
|
9303
9303
|
direction: i
|
|
9304
9304
|
} = vn();
|
|
9305
9305
|
return C(mu, J({
|
|
@@ -9327,9 +9327,9 @@ var ca = ["Enter", " "], Ch = {
|
|
|
9327
9327
|
};
|
|
9328
9328
|
function Tu(e) {
|
|
9329
9329
|
let t;
|
|
9330
|
-
const n = Nt(), r =
|
|
9330
|
+
const n = Nt(), r = nn(), o = ie({
|
|
9331
9331
|
id: n.generateId(`sub-trigger-${mt()}`)
|
|
9332
|
-
}, e), [i, s] =
|
|
9332
|
+
}, e), [i, s] = fe(o, ["ref", "id", "textValue", "disabled", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]);
|
|
9333
9333
|
let a = null;
|
|
9334
9334
|
const l = () => {
|
|
9335
9335
|
a && window.clearTimeout(a), a = null;
|
|
@@ -9407,7 +9407,7 @@ function Tu(e) {
|
|
|
9407
9407
|
});
|
|
9408
9408
|
})), j(() => Q(r.registerTriggerId(i.id))), Q(() => {
|
|
9409
9409
|
l();
|
|
9410
|
-
}), C(
|
|
9410
|
+
}), C(Ee, J({
|
|
9411
9411
|
as: "div",
|
|
9412
9412
|
ref(w) {
|
|
9413
9413
|
const x = Ye((S) => {
|
|
@@ -9467,7 +9467,7 @@ function wh(e) {
|
|
|
9467
9467
|
const t = gi(), n = `menu-${mt()}`, r = ie({
|
|
9468
9468
|
id: n,
|
|
9469
9469
|
modal: !0
|
|
9470
|
-
}, e), [o, i] =
|
|
9470
|
+
}, e), [o, i] = fe(r, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]), s = Z0({
|
|
9471
9471
|
open: () => o.open,
|
|
9472
9472
|
defaultOpen: () => o.defaultOpen,
|
|
9473
9473
|
onOpenChange: (l) => {
|
|
@@ -9505,8 +9505,8 @@ function hi(e) {
|
|
|
9505
9505
|
let t;
|
|
9506
9506
|
const n = ie({
|
|
9507
9507
|
orientation: "horizontal"
|
|
9508
|
-
}, e), [r, o] =
|
|
9509
|
-
return C(
|
|
9508
|
+
}, e), [r, o] = fe(n, ["ref", "orientation"]), i = ci(() => t, () => "hr");
|
|
9509
|
+
return C(Ee, J({
|
|
9510
9510
|
as: "hr",
|
|
9511
9511
|
ref(s) {
|
|
9512
9512
|
const a = Ye((l) => t = l, r.ref);
|
|
@@ -9547,7 +9547,7 @@ ui(Me, {
|
|
|
9547
9547
|
Trigger: () => gu
|
|
9548
9548
|
});
|
|
9549
9549
|
function Ou(e) {
|
|
9550
|
-
const t = Nt(), n =
|
|
9550
|
+
const t = Nt(), n = nn(), [r, o] = fe(e, ["onCloseAutoFocus", "onInteractOutside"]);
|
|
9551
9551
|
let i = !1;
|
|
9552
9552
|
return C(hh, J({
|
|
9553
9553
|
onCloseAutoFocus: (l) => {
|
|
@@ -9888,8 +9888,8 @@ function dm() {
|
|
|
9888
9888
|
function fa() {
|
|
9889
9889
|
const e = mt();
|
|
9890
9890
|
return (() => {
|
|
9891
|
-
var t = Hh(), n = t.firstChild, r = n.nextSibling, o = r.nextSibling, i = o.firstChild, s = o.nextSibling, a = s.firstChild, l = s.nextSibling, c = l.nextSibling, u = c.firstChild, f = c.nextSibling, d = f.firstChild, g = f.nextSibling, h = g.nextSibling, m = h.firstChild, y = h.nextSibling, b = y.firstChild, v = y.nextSibling, w = v.nextSibling, x = w.firstChild, S = w.nextSibling, T = S.firstChild, E = S.nextSibling, O = E.nextSibling, $ = O.firstChild, I = O.nextSibling, R = I.firstChild, K = I.nextSibling, te = K.nextSibling, re = te.firstChild,
|
|
9892
|
-
return P(n, "id", `a-${e}`), P(r, "fill", `url(#a-${e})`), P(i, "id", `am-${e}`), P(s, "id", `b-${e}`), P(a, "filter", `url(#am-${e})`), P(l, "mask", `url(#b-${e})`), P(u, "id", `ah-${e}`), P(f, "id", `k-${e}`), P(d, "filter", `url(#ah-${e})`), P(g, "mask", `url(#k-${e})`), P(m, "id", `ae-${e}`), P(y, "id", `j-${e}`), P(b, "filter", `url(#ae-${e})`), P(v, "mask", `url(#j-${e})`), P(x, "id", `ai-${e}`), P(S, "id", `i-${e}`), P(T, "filter", `url(#ai-${e})`), P(E, "mask", `url(#i-${e})`), P($, "id", `aj-${e}`), P(I, "id", `h-${e}`), P(R, "filter", `url(#aj-${e})`), P(K, "mask", `url(#h-${e})`), P(re, "id", `ag-${e}`), P(
|
|
9891
|
+
var t = Hh(), n = t.firstChild, r = n.nextSibling, o = r.nextSibling, i = o.firstChild, s = o.nextSibling, a = s.firstChild, l = s.nextSibling, c = l.nextSibling, u = c.firstChild, f = c.nextSibling, d = f.firstChild, g = f.nextSibling, h = g.nextSibling, m = h.firstChild, y = h.nextSibling, b = y.firstChild, v = y.nextSibling, w = v.nextSibling, x = w.firstChild, S = w.nextSibling, T = S.firstChild, E = S.nextSibling, O = E.nextSibling, $ = O.firstChild, I = O.nextSibling, R = I.firstChild, K = I.nextSibling, te = K.nextSibling, re = te.firstChild, ge = te.nextSibling, U = ge.firstChild, ee = ge.nextSibling, ae = ee.nextSibling, xe = ae.firstChild, Te = ae.nextSibling, Xe = Te.firstChild, Ae = Te.nextSibling, je = Ae.firstChild, D = je.nextSibling, ke = D.nextSibling, ce = ke.nextSibling, rn = ce.nextSibling, W = Ae.nextSibling, Ke = W.firstChild, ze = W.nextSibling, _n = ze.firstChild, st = ze.nextSibling, on = st.firstChild, Cn = on.nextSibling, qt = Cn.nextSibling, It = qt.firstChild, Bt = It.nextSibling, N = Bt.nextSibling, ue = N.nextSibling, Pe = ue.nextSibling, pe = Pe.nextSibling, Ce = pe.nextSibling, Se = Ce.nextSibling, Fe = Se.nextSibling, he = Fe.nextSibling, Kt = he.nextSibling, zt = Kt.nextSibling, bt = st.nextSibling, wn = bt.firstChild, Ut = bt.nextSibling, xn = Ut.firstChild, Vt = Ut.nextSibling, sn = Vt.firstChild, wo = sn.nextSibling, kr = Vt.nextSibling, xo = kr.firstChild, Nn = kr.nextSibling, So = Nn.firstChild, Ar = Nn.nextSibling, Mr = Ar.firstChild, Tr = Mr.nextSibling, Rn = Tr.nextSibling, Vs = Rn.nextSibling, Hs = Vs.nextSibling, Gs = Hs.nextSibling, js = Gs.nextSibling, Qs = js.nextSibling, Ws = Qs.nextSibling, Zs = Ws.nextSibling, Ys = Zs.nextSibling, Xs = Ys.nextSibling, Js = Xs.nextSibling, el = Js.nextSibling, tl = el.nextSibling, nl = tl.nextSibling, rl = nl.nextSibling, ju = rl.nextSibling;
|
|
9892
|
+
return P(n, "id", `a-${e}`), P(r, "fill", `url(#a-${e})`), P(i, "id", `am-${e}`), P(s, "id", `b-${e}`), P(a, "filter", `url(#am-${e})`), P(l, "mask", `url(#b-${e})`), P(u, "id", `ah-${e}`), P(f, "id", `k-${e}`), P(d, "filter", `url(#ah-${e})`), P(g, "mask", `url(#k-${e})`), P(m, "id", `ae-${e}`), P(y, "id", `j-${e}`), P(b, "filter", `url(#ae-${e})`), P(v, "mask", `url(#j-${e})`), P(x, "id", `ai-${e}`), P(S, "id", `i-${e}`), P(T, "filter", `url(#ai-${e})`), P(E, "mask", `url(#i-${e})`), P($, "id", `aj-${e}`), P(I, "id", `h-${e}`), P(R, "filter", `url(#aj-${e})`), P(K, "mask", `url(#h-${e})`), P(re, "id", `ag-${e}`), P(ge, "id", `g-${e}`), P(U, "filter", `url(#ag-${e})`), P(ee, "mask", `url(#g-${e})`), P(xe, "id", `af-${e}`), P(Te, "id", `f-${e}`), P(Xe, "filter", `url(#af-${e})`), P(Ae, "mask", `url(#f-${e})`), P(ce, "id", `m-${e}`), P(rn, "fill", `url(#m-${e})`), P(Ke, "id", `ak-${e}`), P(ze, "id", `e-${e}`), P(_n, "filter", `url(#ak-${e})`), P(st, "mask", `url(#e-${e})`), P(on, "id", `n-${e}`), P(Cn, "fill", `url(#n-${e})`), P(It, "id", `r-${e}`), P(Bt, "fill", `url(#r-${e})`), P(N, "id", `s-${e}`), P(ue, "fill", `url(#s-${e})`), P(Pe, "id", `q-${e}`), P(pe, "fill", `url(#q-${e})`), P(Ce, "id", `p-${e}`), P(Se, "fill", `url(#p-${e})`), P(Fe, "id", `o-${e}`), P(he, "fill", `url(#o-${e})`), P(Kt, "id", `l-${e}`), P(zt, "fill", `url(#l-${e})`), P(wn, "id", `al-${e}`), P(Ut, "id", `d-${e}`), P(xn, "filter", `url(#al-${e})`), P(Vt, "mask", `url(#d-${e})`), P(sn, "id", `u-${e}`), P(wo, "fill", `url(#u-${e})`), P(xo, "id", `ad-${e}`), P(Nn, "id", `c-${e}`), P(So, "filter", `url(#ad-${e})`), P(Ar, "mask", `url(#c-${e})`), P(Mr, "id", `t-${e}`), P(Tr, "fill", `url(#t-${e})`), P(Rn, "id", `v-${e}`), P(Vs, "stroke", `url(#v-${e})`), P(Hs, "id", `aa-${e}`), P(Gs, "stroke", `url(#aa-${e})`), P(js, "id", `w-${e}`), P(Qs, "stroke", `url(#w-${e})`), P(Ws, "id", `ac-${e}`), P(Zs, "stroke", `url(#ac-${e})`), P(Ys, "id", `ab-${e}`), P(Xs, "stroke", `url(#ab-${e})`), P(Js, "id", `y-${e}`), P(el, "stroke", `url(#y-${e})`), P(tl, "id", `x-${e}`), P(nl, "stroke", `url(#x-${e})`), P(rl, "id", `z-${e}`), P(ju, "stroke", `url(#z-${e})`), t;
|
|
9893
9893
|
})();
|
|
9894
9894
|
}
|
|
9895
9895
|
var fm = /* @__PURE__ */ z('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'), gm = /* @__PURE__ */ z('<button title="Copy object to clipboard">'), hm = /* @__PURE__ */ z('<button title="Remove all items"aria-label="Remove all items">'), mm = /* @__PURE__ */ z('<button title="Delete item"aria-label="Delete item">'), pm = /* @__PURE__ */ z('<button title="Toggle value"aria-label="Toggle value">'), ym = /* @__PURE__ */ z('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'), Fr = /* @__PURE__ */ z("<div>"), bm = /* @__PURE__ */ z("<div><button> <span></span> <span> "), vm = /* @__PURE__ */ z("<input>"), ga = /* @__PURE__ */ z("<span>"), Cm = /* @__PURE__ */ z("<div><span>:"), wm = /* @__PURE__ */ z("<div><div><button> [<!>...<!>]");
|
|
@@ -10014,7 +10014,7 @@ var ha = (e) => {
|
|
|
10014
10014
|
function pa(e) {
|
|
10015
10015
|
return Symbol.iterator in e;
|
|
10016
10016
|
}
|
|
10017
|
-
function
|
|
10017
|
+
function cn(e) {
|
|
10018
10018
|
const t = Ne(), n = V().shadowDOMTarget ? ne.bind({
|
|
10019
10019
|
target: V().shadowDOMTarget
|
|
10020
10020
|
}) : ne, r = k(() => t() === "dark" ? Er(n) : $r(n)), o = V().client, [i, s] = q((e.defaultExpanded || []).includes(e.label)), a = () => s((h) => !h), [l, c] = q([]), u = k(() => Array.isArray(e.value) ? e.value.map((h, m) => ({
|
|
@@ -10114,7 +10114,7 @@ function un(e) {
|
|
|
10114
10114
|
return u();
|
|
10115
10115
|
},
|
|
10116
10116
|
by: (y) => y.label,
|
|
10117
|
-
children: (y) => C(
|
|
10117
|
+
children: (y) => C(cn, {
|
|
10118
10118
|
get defaultExpanded() {
|
|
10119
10119
|
return e.defaultExpanded;
|
|
10120
10120
|
},
|
|
@@ -10166,7 +10166,7 @@ function un(e) {
|
|
|
10166
10166
|
return y();
|
|
10167
10167
|
},
|
|
10168
10168
|
by: (I) => I.label,
|
|
10169
|
-
children: (I) => C(
|
|
10169
|
+
children: (I) => C(cn, {
|
|
10170
10170
|
get defaultExpanded() {
|
|
10171
10171
|
return e.defaultExpanded;
|
|
10172
10172
|
},
|
|
@@ -10412,7 +10412,7 @@ var Du = (e, t) => {
|
|
|
10412
10412
|
};
|
|
10413
10413
|
}, $r = (e) => Du("light", e), Er = (e) => Du("dark", e);
|
|
10414
10414
|
ii(["click"]);
|
|
10415
|
-
var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'), vo = /* @__PURE__ */ z("<div>"), km = /* @__PURE__ */ z('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'), Am = /* @__PURE__ */ z("<select name=tsqd-queries-filter-sort>"), Mm = /* @__PURE__ */ z("<select name=tsqd-mutations-filter-sort>"), Tm = /* @__PURE__ */ z("<span>Asc"), Om = /* @__PURE__ */ z("<span>Desc"), Lm = /* @__PURE__ */ z('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'), Pm = /* @__PURE__ */ z("<div>Settings"), Fm = /* @__PURE__ */ z("<span>Position"), Dm = /* @__PURE__ */ z("<span>Top"), _m = /* @__PURE__ */ z("<span>Bottom"), Nm = /* @__PURE__ */ z("<span>Left"), Rm = /* @__PURE__ */ z("<span>Right"), qm = /* @__PURE__ */ z("<span>Theme"), Bm = /* @__PURE__ */ z("<span>Light"), Km = /* @__PURE__ */ z("<span>Dark"), zm = /* @__PURE__ */ z("<span>System"), Um = /* @__PURE__ */ z("<div><div class=tsqd-queries-container>"), Vm = /* @__PURE__ */ z("<div><div class=tsqd-mutations-container>"), Hm = /* @__PURE__ */ z('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'), ya = /* @__PURE__ */ z("<option>Sort by "), Gm = /* @__PURE__ */ z("<div class=tsqd-query-disabled-indicator>disabled"), jm = /* @__PURE__ */ z("<div class=tsqd-query-static-indicator>static"), _u = /* @__PURE__ */ z("<button><div></div><code class=tsqd-query-hash>"), Qm = /* @__PURE__ */ z("<div role=tooltip id=tsqd-status-tooltip>"), Wm = /* @__PURE__ */ z("<span>"), Zm = /* @__PURE__ */ z("<button><span></span><span>"), Ym = /* @__PURE__ */ z("<button><span></span> Error"), Xm = /* @__PURE__ */ z('<div><span></span>Trigger Error<select><option value=""disabled selected>'), Jm = /* @__PURE__ */ z('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'), e8 = /* @__PURE__ */ z("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"), t8 = /* @__PURE__ */ z('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), n8 = /* @__PURE__ */ z("<option>"), r8 = /* @__PURE__ */ z('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), [rt, mi] = q(null), [
|
|
10415
|
+
var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'), vo = /* @__PURE__ */ z("<div>"), km = /* @__PURE__ */ z('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'), Am = /* @__PURE__ */ z("<select name=tsqd-queries-filter-sort>"), Mm = /* @__PURE__ */ z("<select name=tsqd-mutations-filter-sort>"), Tm = /* @__PURE__ */ z("<span>Asc"), Om = /* @__PURE__ */ z("<span>Desc"), Lm = /* @__PURE__ */ z('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'), Pm = /* @__PURE__ */ z("<div>Settings"), Fm = /* @__PURE__ */ z("<span>Position"), Dm = /* @__PURE__ */ z("<span>Top"), _m = /* @__PURE__ */ z("<span>Bottom"), Nm = /* @__PURE__ */ z("<span>Left"), Rm = /* @__PURE__ */ z("<span>Right"), qm = /* @__PURE__ */ z("<span>Theme"), Bm = /* @__PURE__ */ z("<span>Light"), Km = /* @__PURE__ */ z("<span>Dark"), zm = /* @__PURE__ */ z("<span>System"), Um = /* @__PURE__ */ z("<div><div class=tsqd-queries-container>"), Vm = /* @__PURE__ */ z("<div><div class=tsqd-mutations-container>"), Hm = /* @__PURE__ */ z('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'), ya = /* @__PURE__ */ z("<option>Sort by "), Gm = /* @__PURE__ */ z("<div class=tsqd-query-disabled-indicator>disabled"), jm = /* @__PURE__ */ z("<div class=tsqd-query-static-indicator>static"), _u = /* @__PURE__ */ z("<button><div></div><code class=tsqd-query-hash>"), Qm = /* @__PURE__ */ z("<div role=tooltip id=tsqd-status-tooltip>"), Wm = /* @__PURE__ */ z("<span>"), Zm = /* @__PURE__ */ z("<button><span></span><span>"), Ym = /* @__PURE__ */ z("<button><span></span> Error"), Xm = /* @__PURE__ */ z('<div><span></span>Trigger Error<select><option value=""disabled selected>'), Jm = /* @__PURE__ */ z('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'), e8 = /* @__PURE__ */ z("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"), t8 = /* @__PURE__ */ z('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), n8 = /* @__PURE__ */ z("<option>"), r8 = /* @__PURE__ */ z('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'), [rt, mi] = q(null), [dn, Nu] = q(null), [xt, Ns] = q(0), [Dr, o8] = q(!1), i8 = (e) => {
|
|
10416
10416
|
const t = Ne(), n = V().shadowDOMTarget ? ne.bind({
|
|
10417
10417
|
target: V().shadowDOMTarget
|
|
10418
10418
|
}) : ne, r = k(() => t() === "dark" ? yt(n) : pt(n)), o = k(() => V().onlineManager);
|
|
@@ -10689,7 +10689,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10689
10689
|
E.style.setProperty("--tsqd-font-size", $);
|
|
10690
10690
|
};
|
|
10691
10691
|
return [(() => {
|
|
10692
|
-
var E = Hm(), O = E.firstChild, $ = O.firstChild, I = $.firstChild, R = I.firstChild, K = R.nextSibling, te = K.firstChild, re = O.nextSibling,
|
|
10692
|
+
var E = Hm(), O = E.firstChild, $ = O.firstChild, I = $.firstChild, R = I.firstChild, K = R.nextSibling, te = K.firstChild, re = O.nextSibling, ge = re.firstChild, U = ge.firstChild, ee = U.firstChild, ae = U.nextSibling, xe = ae.nextSibling, Te = ge.nextSibling, Xe = Te.firstChild, Ae = Xe.nextSibling, je = t;
|
|
10693
10693
|
return typeof je == "function" ? Cr(je, E) : t = E, I.$$click = () => {
|
|
10694
10694
|
if (!i().pipWindow && !e.showPanelViewOnly) {
|
|
10695
10695
|
e.setLocalStore("open", "false");
|
|
@@ -10751,7 +10751,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10751
10751
|
}
|
|
10752
10752
|
}), null), M(U, C(Gh, {}), ee), ee.$$input = (D) => {
|
|
10753
10753
|
s() === "queries" ? e.setLocalStore("filter", D.currentTarget.value) : e.setLocalStore("mutationFilter", D.currentTarget.value);
|
|
10754
|
-
}, M(
|
|
10754
|
+
}, M(ae, C(H, {
|
|
10755
10755
|
get when() {
|
|
10756
10756
|
return s() === "queries";
|
|
10757
10757
|
},
|
|
@@ -10760,11 +10760,11 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10760
10760
|
return D.addEventListener("change", (ke) => {
|
|
10761
10761
|
e.setLocalStore("sort", ke.currentTarget.value);
|
|
10762
10762
|
}), M(D, () => Object.keys(Vi).map((ke) => (() => {
|
|
10763
|
-
var
|
|
10764
|
-
return
|
|
10763
|
+
var ce = ya();
|
|
10764
|
+
return ce.firstChild, ce.value = ke, M(ce, ke, null), ce;
|
|
10765
10765
|
})())), G(() => D.value = l()), D;
|
|
10766
10766
|
}
|
|
10767
|
-
}), null), M(
|
|
10767
|
+
}), null), M(ae, C(H, {
|
|
10768
10768
|
get when() {
|
|
10769
10769
|
return s() === "mutations";
|
|
10770
10770
|
},
|
|
@@ -10773,11 +10773,11 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10773
10773
|
return D.addEventListener("change", (ke) => {
|
|
10774
10774
|
e.setLocalStore("mutationSort", ke.currentTarget.value);
|
|
10775
10775
|
}), M(D, () => Object.keys(Hi).map((ke) => (() => {
|
|
10776
|
-
var
|
|
10777
|
-
return
|
|
10776
|
+
var ce = ya();
|
|
10777
|
+
return ce.firstChild, ce.value = ke, M(ce, ke, null), ce;
|
|
10778
10778
|
})())), G(() => D.value = u()), D;
|
|
10779
10779
|
}
|
|
10780
|
-
}), null), M(
|
|
10780
|
+
}), null), M(ae, C(Vr, {}), null), xe.$$click = () => {
|
|
10781
10781
|
s() === "queries" ? e.setLocalStore("sortOrder", String(c() * -1)) : e.setLocalStore("mutationSortOrder", String(f() * -1));
|
|
10782
10782
|
}, M(xe, C(H, {
|
|
10783
10783
|
get when() {
|
|
@@ -10993,13 +10993,13 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10993
10993
|
get children() {
|
|
10994
10994
|
var D = Um(), ke = D.firstChild;
|
|
10995
10995
|
return M(ke, C(Uo, {
|
|
10996
|
-
by: (
|
|
10996
|
+
by: (ce) => ce.queryHash,
|
|
10997
10997
|
get each() {
|
|
10998
10998
|
return v();
|
|
10999
10999
|
},
|
|
11000
|
-
children: (
|
|
11000
|
+
children: (ce) => C(c8, {
|
|
11001
11001
|
get query() {
|
|
11002
|
-
return
|
|
11002
|
+
return ce();
|
|
11003
11003
|
}
|
|
11004
11004
|
})
|
|
11005
11005
|
})), G(() => _(D, B(o().overflowQueryContainer, "tsqd-queries-overflow-container"))), D;
|
|
@@ -11011,26 +11011,26 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11011
11011
|
get children() {
|
|
11012
11012
|
var D = Vm(), ke = D.firstChild;
|
|
11013
11013
|
return M(ke, C(Uo, {
|
|
11014
|
-
by: (
|
|
11014
|
+
by: (ce) => ce.mutationId,
|
|
11015
11015
|
get each() {
|
|
11016
11016
|
return x();
|
|
11017
11017
|
},
|
|
11018
|
-
children: (
|
|
11018
|
+
children: (ce) => C(u8, {
|
|
11019
11019
|
get mutation() {
|
|
11020
|
-
return
|
|
11020
|
+
return ce();
|
|
11021
11021
|
}
|
|
11022
11022
|
})
|
|
11023
11023
|
})), G(() => _(D, B(o().overflowQueryContainer, "tsqd-mutations-overflow-container"))), D;
|
|
11024
11024
|
}
|
|
11025
11025
|
}), null), G((D) => {
|
|
11026
|
-
var ke = B(o().queriesContainer, xt() < An && (rt() ||
|
|
11026
|
+
var ke = B(o().queriesContainer, xt() < An && (rt() || dn()) && r`
|
|
11027
11027
|
height: 50%;
|
|
11028
11028
|
max-height: 50%;
|
|
11029
|
-
`, xt() < An && !(rt() ||
|
|
11029
|
+
`, xt() < An && !(rt() || dn()) && r`
|
|
11030
11030
|
height: 100%;
|
|
11031
11031
|
max-height: 100%;
|
|
11032
|
-
`, "tsqd-queries-container"),
|
|
11033
|
-
return ke !== D.e && _(E, D.e = ke),
|
|
11032
|
+
`, "tsqd-queries-container"), ce = B(o().row, "tsqd-header"), rn = o().logoAndToggleContainer, W = B(o().logo, "tsqd-text-logo-container"), Ke = B(o().tanstackLogo, "tsqd-text-logo-tanstack"), ze = B(o().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _n = B(o().row, "tsqd-filters-actions-container"), st = B(o().filtersContainer, "tsqd-filters-container"), on = B(o().filterInput, "tsqd-query-filter-textfield-container"), Cn = B("tsqd-query-filter-textfield"), qt = B(o().filterSelect, "tsqd-query-filter-sort-container"), It = `Sort order ${(s() === "queries" ? c() : f()) === -1 ? "descending" : "ascending"}`, Bt = (s() === "queries" ? c() : f()) === -1, N = B(o().actionsContainer, "tsqd-actions-container"), ue = B(o().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), Pe = `Clear ${s()} cache`, pe = B(o().actionsBtn, Dr() && o().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), Ce = `${Dr() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, Se = Dr(), Fe = `${Dr() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
11033
|
+
return ke !== D.e && _(E, D.e = ke), ce !== D.t && _(O, D.t = ce), rn !== D.a && _($, D.a = rn), W !== D.o && _(I, D.o = W), Ke !== D.i && _(R, D.i = Ke), ze !== D.n && _(K, D.n = ze), _n !== D.s && _(re, D.s = _n), st !== D.h && _(ge, D.h = st), on !== D.r && _(U, D.r = on), Cn !== D.d && _(ee, D.d = Cn), qt !== D.l && _(ae, D.l = qt), It !== D.u && P(xe, "aria-label", D.u = It), Bt !== D.c && P(xe, "aria-pressed", D.c = Bt), N !== D.w && _(Te, D.w = N), ue !== D.m && _(Xe, D.m = ue), Pe !== D.f && P(Xe, "title", D.f = Pe), pe !== D.y && _(Ae, D.y = pe), Ce !== D.g && P(Ae, "aria-label", D.g = Ce), Se !== D.p && P(Ae, "aria-pressed", D.p = Se), Fe !== D.b && P(Ae, "title", D.b = Fe), D;
|
|
11034
11034
|
}, {
|
|
11035
11035
|
e: void 0,
|
|
11036
11036
|
t: void 0,
|
|
@@ -11062,7 +11062,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11062
11062
|
}
|
|
11063
11063
|
}), C(H, {
|
|
11064
11064
|
get when() {
|
|
11065
|
-
return k(() => s() === "mutations")() &&
|
|
11065
|
+
return k(() => s() === "mutations")() && dn();
|
|
11066
11066
|
},
|
|
11067
11067
|
get children() {
|
|
11068
11068
|
return C(h8, {});
|
|
@@ -11172,7 +11172,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11172
11172
|
get children() {
|
|
11173
11173
|
var d = _u(), g = d.firstChild, h = g.nextSibling;
|
|
11174
11174
|
return d.$$click = () => {
|
|
11175
|
-
Nu(e.mutation.mutationId ===
|
|
11175
|
+
Nu(e.mutation.mutationId === dn() ? null : e.mutation.mutationId);
|
|
11176
11176
|
}, M(g, C(H, {
|
|
11177
11177
|
get when() {
|
|
11178
11178
|
return u() === "purple";
|
|
@@ -11209,7 +11209,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11209
11209
|
return [k(() => JSON.stringify(e.mutation.options.mutationKey)), " -", " "];
|
|
11210
11210
|
}
|
|
11211
11211
|
}), null), M(h, () => new Date(e.mutation.state.submittedAt).toLocaleString(), null), G((m) => {
|
|
11212
|
-
var y = B(r().queryRow,
|
|
11212
|
+
var y = B(r().queryRow, dn() === e.mutation.mutationId && r().selectedQueryRow, "tsqd-query-row"), b = `Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`, v = B(f(), "tsqd-query-observer-count");
|
|
11213
11213
|
return y !== m.e && _(d, m.e = y), b !== m.t && P(d, "aria-label", m.t = b), v !== m.a && _(g, m.a = v), m;
|
|
11214
11214
|
}, {
|
|
11215
11215
|
e: void 0,
|
|
@@ -11440,10 +11440,10 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11440
11440
|
return k(() => !!g())() && m();
|
|
11441
11441
|
},
|
|
11442
11442
|
get children() {
|
|
11443
|
-
var $ = t8(), I = $.firstChild, R = I.nextSibling, K = R.firstChild, te = K.firstChild, re = te.firstChild,
|
|
11443
|
+
var $ = t8(), I = $.firstChild, R = I.nextSibling, K = R.firstChild, te = K.firstChild, re = te.firstChild, ge = te.nextSibling, U = K.nextSibling, ee = U.firstChild, ae = ee.nextSibling, xe = U.nextSibling, Te = xe.firstChild, Xe = Te.nextSibling, Ae = R.nextSibling, je = Ae.nextSibling, D = je.firstChild, ke = D.firstChild, ce = D.nextSibling, rn = ce.firstChild, W = ce.nextSibling, Ke = W.firstChild, ze = W.nextSibling, _n = ze.firstChild, st = ze.nextSibling, on = st.firstChild, Cn = on.nextSibling, qt = je.nextSibling;
|
|
11444
11444
|
qt.firstChild;
|
|
11445
11445
|
var It = qt.nextSibling, Bt = It.nextSibling;
|
|
11446
|
-
return M(re, () => Ko(g().queryKey, !0)), M(
|
|
11446
|
+
return M(re, () => Ko(g().queryKey, !0)), M(ge, b), M(ae, w), M(Xe, () => new Date(m().dataUpdatedAt).toLocaleTimeString()), D.$$click = S, ce.$$click = () => {
|
|
11447
11447
|
var N;
|
|
11448
11448
|
At({
|
|
11449
11449
|
type: "INVALIDATE",
|
|
@@ -11466,23 +11466,23 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11466
11466
|
if (((N = g()) == null ? void 0 : N.state.data) === void 0)
|
|
11467
11467
|
a(!0), E();
|
|
11468
11468
|
else {
|
|
11469
|
-
const
|
|
11470
|
-
if (!
|
|
11469
|
+
const ue = g();
|
|
11470
|
+
if (!ue) return;
|
|
11471
11471
|
At({
|
|
11472
11472
|
type: "TRIGGER_LOADING",
|
|
11473
|
-
queryHash:
|
|
11473
|
+
queryHash: ue.queryHash
|
|
11474
11474
|
});
|
|
11475
|
-
const Pe =
|
|
11476
|
-
|
|
11475
|
+
const Pe = ue.options;
|
|
11476
|
+
ue.fetch({
|
|
11477
11477
|
...Pe,
|
|
11478
11478
|
queryFn: () => new Promise(() => {
|
|
11479
11479
|
}),
|
|
11480
11480
|
gcTime: -1
|
|
11481
|
-
}),
|
|
11481
|
+
}), ue.setState({
|
|
11482
11482
|
data: void 0,
|
|
11483
11483
|
status: "pending",
|
|
11484
11484
|
fetchMeta: {
|
|
11485
|
-
...
|
|
11485
|
+
...ue.state.fetchMeta,
|
|
11486
11486
|
__previousQueryOptions: Pe
|
|
11487
11487
|
}
|
|
11488
11488
|
});
|
|
@@ -11492,7 +11492,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11492
11492
|
return d().length === 0 || v() === "error";
|
|
11493
11493
|
},
|
|
11494
11494
|
get children() {
|
|
11495
|
-
var N = Ym(),
|
|
11495
|
+
var N = Ym(), ue = N.firstChild, Pe = ue.nextSibling;
|
|
11496
11496
|
return N.$$click = () => {
|
|
11497
11497
|
var pe;
|
|
11498
11498
|
g().state.error ? (At({
|
|
@@ -11505,7 +11505,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11505
11505
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), Se = v() === "pending", Fe = t`
|
|
11506
11506
|
background-color: ${o(r.red[500], r.red[400])};
|
|
11507
11507
|
`;
|
|
11508
|
-
return Ce !== pe.e && _(N, pe.e = Ce), Se !== pe.t && (N.disabled = pe.t = Se), Fe !== pe.a && _(
|
|
11508
|
+
return Ce !== pe.e && _(N, pe.e = Ce), Se !== pe.t && (N.disabled = pe.t = Se), Fe !== pe.a && _(ue, pe.a = Fe), pe;
|
|
11509
11509
|
}, {
|
|
11510
11510
|
e: void 0,
|
|
11511
11511
|
t: void 0,
|
|
@@ -11517,7 +11517,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11517
11517
|
return !(d().length === 0 || v() === "error");
|
|
11518
11518
|
},
|
|
11519
11519
|
get children() {
|
|
11520
|
-
var N = Xm(),
|
|
11520
|
+
var N = Xm(), ue = N.firstChild, Pe = ue.nextSibling, pe = Pe.nextSibling;
|
|
11521
11521
|
return pe.firstChild, pe.addEventListener("change", (Ce) => {
|
|
11522
11522
|
const Se = d().find((Fe) => Fe.name === Ce.currentTarget.value);
|
|
11523
11523
|
T(Se);
|
|
@@ -11532,8 +11532,8 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11532
11532
|
}), null), M(N, C(Vr, {}), null), G((Ce) => {
|
|
11533
11533
|
var Se = B(n().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), Fe = t`
|
|
11534
11534
|
background-color: ${A.colors.red[400]};
|
|
11535
|
-
`,
|
|
11536
|
-
return Se !== Ce.e && _(N, Ce.e = Se), Fe !== Ce.t && _(
|
|
11535
|
+
`, he = v() === "pending";
|
|
11536
|
+
return Se !== Ce.e && _(N, Ce.e = Se), Fe !== Ce.t && _(ue, Ce.t = Fe), he !== Ce.a && (pe.disabled = Ce.a = he), Ce;
|
|
11537
11537
|
}, {
|
|
11538
11538
|
e: void 0,
|
|
11539
11539
|
t: void 0,
|
|
@@ -11546,7 +11546,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11546
11546
|
},
|
|
11547
11547
|
get children() {
|
|
11548
11548
|
var N = Jm();
|
|
11549
|
-
return M(N, C(
|
|
11549
|
+
return M(N, C(cn, {
|
|
11550
11550
|
label: "Data",
|
|
11551
11551
|
defaultExpanded: ["Data"],
|
|
11552
11552
|
get value() {
|
|
@@ -11557,17 +11557,17 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11557
11557
|
get activeQuery() {
|
|
11558
11558
|
return g();
|
|
11559
11559
|
}
|
|
11560
|
-
})), G((
|
|
11560
|
+
})), G((ue) => (ue = A.size[2]) != null ? N.style.setProperty("padding", ue) : N.style.removeProperty("padding")), N;
|
|
11561
11561
|
}
|
|
11562
11562
|
}), It), M($, C(H, {
|
|
11563
11563
|
get when() {
|
|
11564
11564
|
return l() === "edit";
|
|
11565
11565
|
},
|
|
11566
11566
|
get children() {
|
|
11567
|
-
var N = e8(),
|
|
11568
|
-
return N.addEventListener("submit", (
|
|
11569
|
-
|
|
11570
|
-
const zt = new FormData(
|
|
11567
|
+
var N = e8(), ue = N.firstChild, Pe = ue.nextSibling, pe = Pe.firstChild, Ce = pe.nextSibling, Se = Ce.firstChild, Fe = Se.nextSibling;
|
|
11568
|
+
return N.addEventListener("submit", (he) => {
|
|
11569
|
+
he.preventDefault();
|
|
11570
|
+
const zt = new FormData(he.currentTarget).get("data");
|
|
11571
11571
|
try {
|
|
11572
11572
|
const bt = JSON.parse(zt);
|
|
11573
11573
|
g().setState({
|
|
@@ -11577,13 +11577,13 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11577
11577
|
} catch {
|
|
11578
11578
|
f(!0);
|
|
11579
11579
|
}
|
|
11580
|
-
}),
|
|
11580
|
+
}), ue.addEventListener("focus", () => f(!1)), M(pe, () => u() ? "Invalid Value" : ""), Se.$$click = () => c("view"), G((he) => {
|
|
11581
11581
|
var Kt = B(n().devtoolsEditForm, "tsqd-query-details-data-editor"), zt = n().devtoolsEditTextarea, bt = u(), wn = n().devtoolsEditFormActions, Ut = n().devtoolsEditFormError, xn = n().devtoolsEditFormActionContainer, Vt = B(n().devtoolsEditFormAction, t`
|
|
11582
11582
|
color: ${o(r.gray[600], r.gray[300])};
|
|
11583
|
-
`),
|
|
11583
|
+
`), sn = B(n().devtoolsEditFormAction, t`
|
|
11584
11584
|
color: ${o(r.blue[600], r.blue[400])};
|
|
11585
11585
|
`);
|
|
11586
|
-
return Kt !==
|
|
11586
|
+
return Kt !== he.e && _(N, he.e = Kt), zt !== he.t && _(ue, he.t = zt), bt !== he.a && P(ue, "data-error", he.a = bt), wn !== he.o && _(Pe, he.o = wn), Ut !== he.i && _(pe, he.i = Ut), xn !== he.n && _(Ce, he.n = xn), Vt !== he.s && _(Se, he.s = Vt), sn !== he.h && _(Fe, he.h = sn), he;
|
|
11587
11587
|
}, {
|
|
11588
11588
|
e: void 0,
|
|
11589
11589
|
t: void 0,
|
|
@@ -11593,16 +11593,16 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11593
11593
|
n: void 0,
|
|
11594
11594
|
s: void 0,
|
|
11595
11595
|
h: void 0
|
|
11596
|
-
}), G(() =>
|
|
11596
|
+
}), G(() => ue.value = JSON.stringify(y(), null, 2)), N;
|
|
11597
11597
|
}
|
|
11598
|
-
}), It), M(Bt, C(
|
|
11598
|
+
}), It), M(Bt, C(cn, {
|
|
11599
11599
|
label: "Query",
|
|
11600
11600
|
defaultExpanded: ["Query", "queryKey"],
|
|
11601
11601
|
get value() {
|
|
11602
11602
|
return h();
|
|
11603
11603
|
}
|
|
11604
11604
|
})), G((N) => {
|
|
11605
|
-
var
|
|
11605
|
+
var ue = B(n().detailsContainer, "tsqd-query-details-container"), Pe = B(n().detailsHeader, "tsqd-query-details-header"), pe = B(n().detailsBody, "tsqd-query-details-summary-container"), Ce = B(n().queryDetailsStatus, O()), Se = B(n().detailsHeader, "tsqd-query-details-header"), Fe = B(n().actionsBody, "tsqd-query-details-actions-container"), he = B(t`
|
|
11606
11606
|
color: ${o(r.blue[600], r.blue[400])};
|
|
11607
11607
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), Kt = b() === "fetching", zt = t`
|
|
11608
11608
|
background-color: ${o(r.blue[600], r.blue[400])};
|
|
@@ -11612,7 +11612,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11612
11612
|
background-color: ${o(r.yellow[600], r.yellow[400])};
|
|
11613
11613
|
`, xn = B(t`
|
|
11614
11614
|
color: ${o(r.gray[600], r.gray[300])};
|
|
11615
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), Vt = v() === "pending",
|
|
11615
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), Vt = v() === "pending", sn = t`
|
|
11616
11616
|
background-color: ${o(r.gray[600], r.gray[400])};
|
|
11617
11617
|
`, wo = B(t`
|
|
11618
11618
|
color: ${o(r.pink[500], r.pink[400])};
|
|
@@ -11623,7 +11623,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11623
11623
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), So = s(), Ar = t`
|
|
11624
11624
|
background-color: ${o(r.cyan[500], r.cyan[400])};
|
|
11625
11625
|
`, Mr = B(n().detailsHeader, "tsqd-query-details-header"), Tr = B(n().detailsHeader, "tsqd-query-details-header"), Rn = A.size[2];
|
|
11626
|
-
return
|
|
11626
|
+
return ue !== N.e && _($, N.e = ue), Pe !== N.t && _(I, N.t = Pe), pe !== N.a && _(R, N.a = pe), Ce !== N.o && _(ge, N.o = Ce), Se !== N.i && _(Ae, N.i = Se), Fe !== N.n && _(je, N.n = Fe), he !== N.s && _(D, N.s = he), Kt !== N.h && (D.disabled = N.h = Kt), zt !== N.r && _(ke, N.r = zt), bt !== N.d && _(ce, N.d = bt), wn !== N.l && (ce.disabled = N.l = wn), Ut !== N.u && _(rn, N.u = Ut), xn !== N.c && _(W, N.c = xn), Vt !== N.w && (W.disabled = N.w = Vt), sn !== N.m && _(Ke, N.m = sn), wo !== N.f && _(ze, N.f = wo), kr !== N.y && (ze.disabled = N.y = kr), xo !== N.g && _(_n, N.g = xo), Nn !== N.p && _(st, N.p = Nn), So !== N.b && (st.disabled = N.b = So), Ar !== N.T && _(on, N.T = Ar), Mr !== N.A && _(qt, N.A = Mr), Tr !== N.O && _(It, N.O = Tr), Rn !== N.I && ((N.I = Rn) != null ? Bt.style.setProperty("padding", Rn) : Bt.style.removeProperty("padding")), N;
|
|
11627
11627
|
}, {
|
|
11628
11628
|
e: void 0,
|
|
11629
11629
|
t: void 0,
|
|
@@ -11658,15 +11658,15 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11658
11658
|
}) : ne, n = k(() => e() === "dark" ? yt(t) : pt(t)), {
|
|
11659
11659
|
colors: r
|
|
11660
11660
|
} = A, o = (u, f) => e() === "dark" ? f : u, i = wt((u) => {
|
|
11661
|
-
const d = u().getAll().find((g) => g.mutationId ===
|
|
11661
|
+
const d = u().getAll().find((g) => g.mutationId === dn());
|
|
11662
11662
|
return d ? d.state.isPaused : !1;
|
|
11663
11663
|
}), s = wt((u) => {
|
|
11664
|
-
const d = u().getAll().find((g) => g.mutationId ===
|
|
11664
|
+
const d = u().getAll().find((g) => g.mutationId === dn());
|
|
11665
11665
|
return d ? d.state.status : "idle";
|
|
11666
11666
|
}), a = k(() => Vn({
|
|
11667
11667
|
isPaused: i(),
|
|
11668
11668
|
status: s()
|
|
11669
|
-
})), l = wt((u) => u().getAll().find((f) => f.mutationId ===
|
|
11669
|
+
})), l = wt((u) => u().getAll().find((f) => f.mutationId === dn()), !1), c = () => a() === "gray" ? t`
|
|
11670
11670
|
background-color: ${o(r[a()][200], r[a()][700])};
|
|
11671
11671
|
color: ${o(r[a()][700], r[a()][300])};
|
|
11672
11672
|
border-color: ${o(r[a()][400], r[a()][600])};
|
|
@@ -11701,33 +11701,33 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11701
11701
|
get children() {
|
|
11702
11702
|
return s();
|
|
11703
11703
|
}
|
|
11704
|
-
}), null), M(w, () => new Date(l().state.submittedAt).toLocaleTimeString()), M(S, C(
|
|
11704
|
+
}), null), M(w, () => new Date(l().state.submittedAt).toLocaleTimeString()), M(S, C(cn, {
|
|
11705
11705
|
label: "Variables",
|
|
11706
11706
|
defaultExpanded: ["Variables"],
|
|
11707
11707
|
get value() {
|
|
11708
11708
|
return l().state.variables;
|
|
11709
11709
|
}
|
|
11710
|
-
})), M(E, C(
|
|
11710
|
+
})), M(E, C(cn, {
|
|
11711
11711
|
label: "Context",
|
|
11712
11712
|
defaultExpanded: ["Context"],
|
|
11713
11713
|
get value() {
|
|
11714
11714
|
return l().state.context;
|
|
11715
11715
|
}
|
|
11716
|
-
})), M($, C(
|
|
11716
|
+
})), M($, C(cn, {
|
|
11717
11717
|
label: "Data",
|
|
11718
11718
|
defaultExpanded: ["Data"],
|
|
11719
11719
|
get value() {
|
|
11720
11720
|
return l().state.data;
|
|
11721
11721
|
}
|
|
11722
|
-
})), M(R, C(
|
|
11722
|
+
})), M(R, C(cn, {
|
|
11723
11723
|
label: "Mutation",
|
|
11724
11724
|
defaultExpanded: ["Mutation"],
|
|
11725
11725
|
get value() {
|
|
11726
11726
|
return l();
|
|
11727
11727
|
}
|
|
11728
11728
|
})), G((K) => {
|
|
11729
|
-
var te = B(n().detailsContainer, "tsqd-query-details-container"), re = B(n().detailsHeader, "tsqd-query-details-header"),
|
|
11730
|
-
return te !== K.e && _(u, K.e = te), re !== K.t && _(f, K.t = re),
|
|
11729
|
+
var te = B(n().detailsContainer, "tsqd-query-details-container"), re = B(n().detailsHeader, "tsqd-query-details-header"), ge = B(n().detailsBody, "tsqd-query-details-summary-container"), U = B(n().queryDetailsStatus, c()), ee = B(n().detailsHeader, "tsqd-query-details-header"), ae = A.size[2], xe = B(n().detailsHeader, "tsqd-query-details-header"), Te = A.size[2], Xe = B(n().detailsHeader, "tsqd-query-details-header"), Ae = A.size[2], je = B(n().detailsHeader, "tsqd-query-details-header"), D = A.size[2];
|
|
11730
|
+
return te !== K.e && _(u, K.e = te), re !== K.t && _(f, K.t = re), ge !== K.a && _(d, K.a = ge), U !== K.o && _(y, K.o = U), ee !== K.i && _(x, K.i = ee), ae !== K.n && ((K.n = ae) != null ? S.style.setProperty("padding", ae) : S.style.removeProperty("padding")), xe !== K.s && _(T, K.s = xe), Te !== K.h && ((K.h = Te) != null ? E.style.setProperty("padding", Te) : E.style.removeProperty("padding")), Xe !== K.r && _(O, K.r = Xe), Ae !== K.d && ((K.d = Ae) != null ? $.style.setProperty("padding", Ae) : $.style.removeProperty("padding")), je !== K.l && _(I, K.l = je), D !== K.u && ((K.u = D) != null ? R.style.setProperty("padding", D) : R.style.removeProperty("padding")), K;
|
|
11731
11731
|
}, {
|
|
11732
11732
|
e: void 0,
|
|
11733
11733
|
t: void 0,
|
|
@@ -12980,12 +12980,12 @@ const I8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12980
12980
|
)) })
|
|
12981
12981
|
] }) });
|
|
12982
12982
|
}, A8 = async () => null, M8 = () => {
|
|
12983
|
-
const { currentApp: e } = oe(), { pathname: t } = Jo(), n = Ot(Lt.COLLECTION_CREATE), { header: r, showMenu: o } = U1(), { lg: i } =
|
|
12983
|
+
const { currentApp: e } = oe(), { pathname: t } = Jo(), n = Ot(Lt.COLLECTION_CREATE), { header: r, showMenu: o } = U1(), { lg: i } = pn(), s = r !== !1, a = o !== !1, l = t === "/" || t === `/${Oe.LIST_COLLECTIONS}`;
|
|
12984
12984
|
return n !== void 0 && !n && l ? /* @__PURE__ */ p(Fi, { to: `/${Oe.LIST_SUBMISSIONS}`, replace: !0 }) : /* @__PURE__ */ F(Z, { direction: "column", className: "flex-grow-1", children: [
|
|
12985
12985
|
s && /* @__PURE__ */ p(n2, { render: () => /* @__PURE__ */ p(Qa, {}), children: /* @__PURE__ */ p(r2, { app: e }) }),
|
|
12986
|
-
/* @__PURE__ */ F(
|
|
12986
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1", children: [
|
|
12987
12987
|
a && /* @__PURE__ */ p(
|
|
12988
|
-
|
|
12988
|
+
me.Col,
|
|
12989
12989
|
{
|
|
12990
12990
|
sm: "3",
|
|
12991
12991
|
md: "3",
|
|
@@ -12997,7 +12997,7 @@ const I8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12997
12997
|
}
|
|
12998
12998
|
),
|
|
12999
12999
|
/* @__PURE__ */ F(
|
|
13000
|
-
|
|
13000
|
+
me.Col,
|
|
13001
13001
|
{
|
|
13002
13002
|
sm: "4",
|
|
13003
13003
|
md: "8",
|
|
@@ -13656,8 +13656,8 @@ const G8 = ({
|
|
|
13656
13656
|
hasData: s,
|
|
13657
13657
|
fetchNextPage: a
|
|
13658
13658
|
} = j8();
|
|
13659
|
-
return o ? /* @__PURE__ */ p(ht, {}) : s ? /* @__PURE__ */ F(
|
|
13660
|
-
r.map((l, c) => /* @__PURE__ */ p(
|
|
13659
|
+
return o ? /* @__PURE__ */ p(ht, {}) : s ? /* @__PURE__ */ F(me, { className: "w-100 p-24", "data-testid": "collect-list-submissions-grid", children: [
|
|
13660
|
+
r.map((l, c) => /* @__PURE__ */ p(me.Col, { sm: "4", md: "4", lg: "4", xl: "4", children: /* @__PURE__ */ p(
|
|
13661
13661
|
G8,
|
|
13662
13662
|
{
|
|
13663
13663
|
"data-testid": "collect-list-submissions-card",
|
|
@@ -13667,7 +13667,7 @@ const G8 = ({
|
|
|
13667
13667
|
)
|
|
13668
13668
|
}
|
|
13669
13669
|
) }, c)),
|
|
13670
|
-
i && /* @__PURE__ */ p(
|
|
13670
|
+
i && /* @__PURE__ */ p(me.Col, { sm: "4", md: "8", lg: "12", xl: "12", children: /* @__PURE__ */ p(Z, { justify: "center", children: /* @__PURE__ */ p(
|
|
13671
13671
|
we,
|
|
13672
13672
|
{
|
|
13673
13673
|
"data-testid": "collect-list-submissions-button-more",
|
|
@@ -13694,7 +13694,7 @@ const G8 = ({
|
|
|
13694
13694
|
filter: void 0
|
|
13695
13695
|
})
|
|
13696
13696
|
), null), Z8 = () => {
|
|
13697
|
-
const { lg: e } =
|
|
13697
|
+
const { lg: e } = pn(), t = Ks(
|
|
13698
13698
|
(n) => n.setSearchSubmission
|
|
13699
13699
|
);
|
|
13700
13700
|
return /* @__PURE__ */ F(Tt, { children: [
|
|
@@ -13844,7 +13844,7 @@ const zu = ({
|
|
|
13844
13844
|
context: n,
|
|
13845
13845
|
handleUpdateSubmission: r
|
|
13846
13846
|
}) => {
|
|
13847
|
-
const { appCode: o } = oe(), { t: i } = se(o), { lg: s, md: a } =
|
|
13847
|
+
const { appCode: o } = oe(), { t: i } = se(o), { lg: s, md: a } = pn(), { formatDate: l } = Zo();
|
|
13848
13848
|
return /* @__PURE__ */ F("div", { className: `py-16 border-bottom bg-white ${a ? "px-48" : "px-16"}`, children: [
|
|
13849
13849
|
/* @__PURE__ */ p(Z, { align: "center", gap: "8", children: /* @__PURE__ */ p(
|
|
13850
13850
|
we,
|
|
@@ -13908,7 +13908,7 @@ const zu = ({
|
|
|
13908
13908
|
)
|
|
13909
13909
|
] });
|
|
13910
13910
|
}, Uu = "/collect/api", _r = new F2({
|
|
13911
|
-
httpService:
|
|
13911
|
+
httpService: un.http(),
|
|
13912
13912
|
baseUrl: Uu
|
|
13913
13913
|
}), Ir = {
|
|
13914
13914
|
getSubmissions: (e, t) => _r.getSubmissions(e, t),
|
|
@@ -13918,7 +13918,7 @@ const zu = ({
|
|
|
13918
13918
|
const r = new FormData();
|
|
13919
13919
|
return n.files.forEach((o) => {
|
|
13920
13920
|
r.append("files", o);
|
|
13921
|
-
}),
|
|
13921
|
+
}), un.http().postFile(
|
|
13922
13922
|
`${Uu}/collections/${e}/submissions/${t}/attachments`,
|
|
13923
13923
|
r,
|
|
13924
13924
|
{ headers: { "Content-Type": "multipart/form-data" } }
|
|
@@ -14337,7 +14337,7 @@ const zu = ({
|
|
|
14337
14337
|
}, d6 = ({
|
|
14338
14338
|
collectionId: e
|
|
14339
14339
|
}) => {
|
|
14340
|
-
const { appCode: t } = oe(), { t: n } = se(t), r = pr(), { lg: o } =
|
|
14340
|
+
const { appCode: t } = oe(), { t: n } = se(t), r = pr(), { lg: o } = pn(), [i, s] = Qe(!1), { selectedSubmissionListMenu: a, setSelectedSubmissionListMenu: l } = Us(), c = (a == null ? void 0 : a.status) === nt.VERIFIED, { formatDate: u } = Zo(), f = o6(), d = async (g) => {
|
|
14341
14341
|
if (a)
|
|
14342
14342
|
try {
|
|
14343
14343
|
s(!0), await f.mutateAsync({
|
|
@@ -14459,7 +14459,7 @@ const zu = ({
|
|
|
14459
14459
|
}, f6 = ({
|
|
14460
14460
|
collection: e
|
|
14461
14461
|
}) => {
|
|
14462
|
-
const t = Ge(), { lg: n } =
|
|
14462
|
+
const t = Ge(), { lg: n } = pn(), r = Rt.use.setIsPastDeadline();
|
|
14463
14463
|
return Le(() => {
|
|
14464
14464
|
r(hs(e.deadline));
|
|
14465
14465
|
}, [e.deadline, r]), /* @__PURE__ */ F(
|
|
@@ -14476,9 +14476,9 @@ const zu = ({
|
|
|
14476
14476
|
onClickBack: () => t("/list-collections")
|
|
14477
14477
|
}
|
|
14478
14478
|
),
|
|
14479
|
-
/* @__PURE__ */ F(
|
|
14479
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1 m-16 gap-24", children: [
|
|
14480
14480
|
/* @__PURE__ */ p(
|
|
14481
|
-
|
|
14481
|
+
me.Col,
|
|
14482
14482
|
{
|
|
14483
14483
|
sm: "3",
|
|
14484
14484
|
md: "3",
|
|
@@ -14490,7 +14490,7 @@ const zu = ({
|
|
|
14490
14490
|
}
|
|
14491
14491
|
),
|
|
14492
14492
|
/* @__PURE__ */ F(
|
|
14493
|
-
|
|
14493
|
+
me.Col,
|
|
14494
14494
|
{
|
|
14495
14495
|
sm: "4",
|
|
14496
14496
|
md: "8",
|
|
@@ -14799,7 +14799,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14799
14799
|
collection: e,
|
|
14800
14800
|
submission: t
|
|
14801
14801
|
}) => {
|
|
14802
|
-
const n = Ge(), { lg: r } =
|
|
14802
|
+
const n = Ge(), { lg: r } = pn(), { isOpen: o, onClose: i, handleUpdateSubmission: s } = C6({
|
|
14803
14803
|
collection: e,
|
|
14804
14804
|
submission: t
|
|
14805
14805
|
}), a = Rt.use.setIsPastDeadline();
|
|
@@ -14820,9 +14820,9 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14820
14820
|
handleUpdateSubmission: s
|
|
14821
14821
|
}
|
|
14822
14822
|
),
|
|
14823
|
-
/* @__PURE__ */ F(
|
|
14823
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1 p-16 gap-24", children: [
|
|
14824
14824
|
/* @__PURE__ */ p(
|
|
14825
|
-
|
|
14825
|
+
me.Col,
|
|
14826
14826
|
{
|
|
14827
14827
|
sm: "3",
|
|
14828
14828
|
md: "3",
|
|
@@ -14834,7 +14834,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14834
14834
|
}
|
|
14835
14835
|
),
|
|
14836
14836
|
/* @__PURE__ */ F(
|
|
14837
|
-
|
|
14837
|
+
me.Col,
|
|
14838
14838
|
{
|
|
14839
14839
|
sm: "4",
|
|
14840
14840
|
md: "8",
|
|
@@ -14882,7 +14882,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14882
14882
|
bi(n)
|
|
14883
14883
|
), null;
|
|
14884
14884
|
}, I6 = () => {
|
|
14885
|
-
const { appCode: e } = oe(), { t } = se(e), { lg: n } =
|
|
14885
|
+
const { appCode: e } = oe(), { t } = se(e), { lg: n } = pn(), r = fo(), o = pr(), i = Ge(), s = Ot(Lt.COLLECTION_CREATE), a = Yc(), l = Sn.use.usersCollection(), c = a.isPending, { data: u, isLoading: f } = go(
|
|
14886
14886
|
Number(r.collectionId)
|
|
14887
14887
|
);
|
|
14888
14888
|
if (f)
|
|
@@ -14910,7 +14910,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14910
14910
|
}
|
|
14911
14911
|
};
|
|
14912
14912
|
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
14913
|
-
/* @__PURE__ */ p(
|
|
14913
|
+
/* @__PURE__ */ p(me, { className: "flex-grow-1 gap-64 px-md-8 px-lg-48 position-relative", children: /* @__PURE__ */ p(me.Col, { sm: "4", md: "8", xl: "12", className: `${n && "ms-64"}`, children: /* @__PURE__ */ p(
|
|
14914
14914
|
Z,
|
|
14915
14915
|
{
|
|
14916
14916
|
direction: "column",
|
|
@@ -14955,7 +14955,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14955
14955
|
bi(n)
|
|
14956
14956
|
), null;
|
|
14957
14957
|
}, M6 = () => {
|
|
14958
|
-
const { appCode: e } = oe(), { t } = se(e), { lg: n } =
|
|
14958
|
+
const { appCode: e } = oe(), { t } = se(e), { lg: n } = pn(), r = fo(), o = Ge(), i = pr(), s = Ot(Lt.COLLECTION_CREATE), a = Wc(), l = fs(), c = e0(), [u, f] = Qe(void 0), [d, g] = Qe(
|
|
14959
14959
|
[]
|
|
14960
14960
|
), { data: h, isLoading: m } = go(
|
|
14961
14961
|
Number(r.collectionId)
|
|
@@ -15001,7 +15001,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15001
15001
|
}
|
|
15002
15002
|
};
|
|
15003
15003
|
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
15004
|
-
/* @__PURE__ */ p(
|
|
15004
|
+
/* @__PURE__ */ p(me, { className: "flex-grow-1 gap-64 px-md-8 px-lg-48 position-relative", children: /* @__PURE__ */ p(me.Col, { sm: "4", md: "8", xl: "12", className: `${n && "ms-64"}`, children: /* @__PURE__ */ p(
|
|
15005
15005
|
Z,
|
|
15006
15006
|
{
|
|
15007
15007
|
direction: "column",
|