@edifice.io/collect-frontend 1.0.9 → 1.0.10-develop-pedago.1.20261005093130
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 +281 -282
- package/package.json +40 -37
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,
|
|
@@ -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) {
|
|
@@ -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,
|
|
@@ -350,7 +350,7 @@ function Ro(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
|
}
|
|
@@ -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
|
{
|
|
@@ -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
|
|
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",
|
|
@@ -2947,17 +2947,16 @@ function Bc({
|
|
|
2947
2947
|
resourceRights: {
|
|
2948
2948
|
contrib: {
|
|
2949
2949
|
default: !0,
|
|
2950
|
-
excludes: [],
|
|
2950
|
+
excludes: ["manager"],
|
|
2951
2951
|
priority: 2,
|
|
2952
2952
|
requires: ["contrib"],
|
|
2953
|
-
displayName: i("collection.members.right.displayName.recipient")
|
|
2954
|
-
isReadOnlyCheckbox: !0
|
|
2953
|
+
displayName: i("collection.members.right.displayName.recipient")
|
|
2955
2954
|
},
|
|
2956
2955
|
manager: {
|
|
2957
2956
|
default: !1,
|
|
2958
|
-
excludes: [],
|
|
2957
|
+
excludes: ["contrib"],
|
|
2959
2958
|
priority: 4,
|
|
2960
|
-
requires: ["
|
|
2959
|
+
requires: ["manager"],
|
|
2961
2960
|
displayName: i("collection.members.right.displayName.manager")
|
|
2962
2961
|
}
|
|
2963
2962
|
}
|
|
@@ -2972,7 +2971,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
2972
2971
|
throw new Error("Cannot be rendered outside the Wizard Layout");
|
|
2973
2972
|
return e;
|
|
2974
2973
|
}, zc = "/collect/api", vt = new P2({
|
|
2975
|
-
httpService:
|
|
2974
|
+
httpService: un.http(),
|
|
2976
2975
|
baseUrl: zc
|
|
2977
2976
|
}), We = {
|
|
2978
2977
|
getCollections: (e) => vt.getCollections(e),
|
|
@@ -2989,7 +2988,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
2989
2988
|
const n = new FormData();
|
|
2990
2989
|
return t.files.forEach((r) => {
|
|
2991
2990
|
n.append("files", r);
|
|
2992
|
-
}),
|
|
2991
|
+
}), un.http().postFile(`${zc}/collections/${e}/attachments`, n, {
|
|
2993
2992
|
headers: { "Content-Type": "multipart/form-data" }
|
|
2994
2993
|
});
|
|
2995
2994
|
},
|
|
@@ -3127,56 +3126,56 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3127
3126
|
}, Sl = ({
|
|
3128
3127
|
children: e
|
|
3129
3128
|
}) => {
|
|
3130
|
-
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);
|
|
3131
3130
|
u2(() => {
|
|
3132
|
-
var
|
|
3133
|
-
(
|
|
3131
|
+
var v;
|
|
3132
|
+
(v = t.current) == null || v.scrollIntoView({
|
|
3134
3133
|
behavior: "smooth",
|
|
3135
3134
|
block: "center"
|
|
3136
3135
|
});
|
|
3137
3136
|
}, [i]);
|
|
3138
|
-
const
|
|
3139
|
-
|
|
3140
|
-
},
|
|
3137
|
+
const y = () => {
|
|
3138
|
+
c == null || c(), g("/");
|
|
3139
|
+
}, b = async () => {
|
|
3141
3140
|
try {
|
|
3142
|
-
|
|
3143
|
-
const
|
|
3144
|
-
name:
|
|
3145
|
-
content:
|
|
3146
|
-
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(),
|
|
3147
3146
|
// FIXME: faire une vraie traduction dans le format attendu par le backend avant envoi
|
|
3148
|
-
sharings:
|
|
3147
|
+
sharings: l.sharings.map(Rc)
|
|
3149
3148
|
});
|
|
3150
|
-
|
|
3151
|
-
id:
|
|
3149
|
+
l.attachments.length > 0 && await f.mutateAsync({
|
|
3150
|
+
id: v.id,
|
|
3152
3151
|
files: {
|
|
3153
|
-
files:
|
|
3152
|
+
files: l.attachments.map((w) => w.file)
|
|
3154
3153
|
}
|
|
3155
3154
|
}), o.success(r("collection.toast.success.collection.create"), {
|
|
3156
3155
|
duration: 1e4,
|
|
3157
3156
|
isDismissible: !0
|
|
3158
|
-
}),
|
|
3159
|
-
} catch (
|
|
3157
|
+
}), g(`/list-collections/id/${v.id}`), c();
|
|
3158
|
+
} catch (v) {
|
|
3160
3159
|
o.error(r("collection.toast.error.collection.create"), {
|
|
3161
3160
|
duration: 1e4,
|
|
3162
3161
|
isDismissible: !0
|
|
3163
|
-
}), console.log(
|
|
3162
|
+
}), console.log(v);
|
|
3164
3163
|
} finally {
|
|
3165
|
-
|
|
3164
|
+
m(!1);
|
|
3166
3165
|
}
|
|
3167
3166
|
};
|
|
3168
|
-
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
3169
|
-
/* @__PURE__ */ p(
|
|
3167
|
+
return /* @__PURE__ */ F("div", { className: "w-100 p-24 px-md-8 px-lg-64", children: [
|
|
3168
|
+
/* @__PURE__ */ p(
|
|
3170
3169
|
Z,
|
|
3171
3170
|
{
|
|
3172
3171
|
ref: t,
|
|
3173
3172
|
direction: "column",
|
|
3174
3173
|
gap: "16",
|
|
3175
|
-
className: "
|
|
3174
|
+
className: "py-24 pb-lg-48 pt-lg-32",
|
|
3176
3175
|
children: e
|
|
3177
3176
|
}
|
|
3178
|
-
)
|
|
3179
|
-
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: [
|
|
3180
3179
|
/* @__PURE__ */ p(
|
|
3181
3180
|
we,
|
|
3182
3181
|
{
|
|
@@ -3194,9 +3193,9 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3194
3193
|
"data-testid": "collect-add-attachments-button-create-ignore-share",
|
|
3195
3194
|
variant: "outline",
|
|
3196
3195
|
color: "primary",
|
|
3197
|
-
isLoading:
|
|
3196
|
+
isLoading: h,
|
|
3198
3197
|
loadingPosition: "right",
|
|
3199
|
-
onClick: () =>
|
|
3198
|
+
onClick: () => b(),
|
|
3200
3199
|
children: r("collection.wizard.button.create.ignore.share")
|
|
3201
3200
|
}
|
|
3202
3201
|
),
|
|
@@ -3206,21 +3205,21 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3206
3205
|
"data-testid": "collect-add-attachments-button-create-collect",
|
|
3207
3206
|
variant: "filled",
|
|
3208
3207
|
color: "primary",
|
|
3209
|
-
isLoading:
|
|
3208
|
+
isLoading: h,
|
|
3210
3209
|
loadingPosition: "right",
|
|
3211
3210
|
rightIcon: /* @__PURE__ */ p(al, {}),
|
|
3212
|
-
onClick: () =>
|
|
3211
|
+
onClick: () => b(),
|
|
3213
3212
|
children: r("collection.wizard.button.create.collect")
|
|
3214
3213
|
}
|
|
3215
3214
|
)
|
|
3216
|
-
] }) : /* @__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: [
|
|
3217
3216
|
/* @__PURE__ */ p(
|
|
3218
3217
|
we,
|
|
3219
3218
|
{
|
|
3220
3219
|
"data-testid": "collect-add-attachments-button-cancel",
|
|
3221
3220
|
variant: "ghost",
|
|
3222
3221
|
color: "tertiary",
|
|
3223
|
-
onClick:
|
|
3222
|
+
onClick: y,
|
|
3224
3223
|
children: r("collection.cancel")
|
|
3225
3224
|
}
|
|
3226
3225
|
),
|
|
@@ -3234,7 +3233,7 @@ const Kc = Yo(null), D1 = () => {
|
|
|
3234
3233
|
onClick: a,
|
|
3235
3234
|
type: "submit",
|
|
3236
3235
|
form: "formCreateCollection",
|
|
3237
|
-
disabled: !
|
|
3236
|
+
disabled: !d,
|
|
3238
3237
|
children: r("collection.next")
|
|
3239
3238
|
}
|
|
3240
3239
|
)
|
|
@@ -3403,7 +3402,7 @@ const U1 = () => Xo(n0), V1 = "collect:route-change", W6 = ({
|
|
|
3403
3402
|
currentPath: n,
|
|
3404
3403
|
className: r
|
|
3405
3404
|
}) => {
|
|
3406
|
-
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) => {
|
|
3407
3406
|
window.dispatchEvent(
|
|
3408
3407
|
new CustomEvent(V1, {
|
|
3409
3408
|
detail: { path: f }
|
|
@@ -3532,7 +3531,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3532
3531
|
onValidityChange: r,
|
|
3533
3532
|
i18nNamespace: o
|
|
3534
3533
|
}) => {
|
|
3535
|
-
const { appCode: i } = oe(), { t: s } = se(o ?? i), a =
|
|
3534
|
+
const { appCode: i } = oe(), { t: s } = se(o ?? i), a = an(
|
|
3536
3535
|
(e == null ? void 0 : e.description) ?? (t == null ? void 0 : t.content) ?? ""
|
|
3537
3536
|
), [l, c] = Qe(
|
|
3538
3537
|
() => (e == null ? void 0 : e.attachments) ?? Ft(t == null ? void 0 : t.attachments) ?? []
|
|
@@ -3577,8 +3576,8 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3577
3576
|
onSubmit: m((x) => {
|
|
3578
3577
|
n == null || n(x);
|
|
3579
3578
|
}),
|
|
3580
|
-
children: /* @__PURE__ */ F(
|
|
3581
|
-
/* @__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: [
|
|
3582
3581
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Fa, {}), children: s("collection.wizard.create.form.title") }),
|
|
3583
3582
|
/* @__PURE__ */ p(
|
|
3584
3583
|
Ea,
|
|
@@ -3602,7 +3601,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3602
3601
|
}
|
|
3603
3602
|
)
|
|
3604
3603
|
] }) }),
|
|
3605
|
-
/* @__PURE__ */ p(
|
|
3604
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ F(ln, { id: "collectionDeadline", isRequired: !0, children: [
|
|
3606
3605
|
/* @__PURE__ */ p(Gn, { leftIcon: /* @__PURE__ */ p(Da, {}), children: s("collection.wizard.create.form.deadline") }),
|
|
3607
3606
|
/* @__PURE__ */ p(
|
|
3608
3607
|
jn,
|
|
@@ -3623,8 +3622,8 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3623
3622
|
}
|
|
3624
3623
|
)
|
|
3625
3624
|
] }) }),
|
|
3626
|
-
/* @__PURE__ */ p(
|
|
3627
|
-
|
|
3625
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ F(
|
|
3626
|
+
ln,
|
|
3628
3627
|
{
|
|
3629
3628
|
id: "collectionDescription",
|
|
3630
3629
|
isOptional: !0,
|
|
@@ -3654,7 +3653,7 @@ const j1 = () => Xo(o0), Q1 = () => {
|
|
|
3654
3653
|
]
|
|
3655
3654
|
}
|
|
3656
3655
|
) }),
|
|
3657
|
-
/* @__PURE__ */ p(
|
|
3656
|
+
/* @__PURE__ */ p(me.Col, { sm: "4", md: "5", children: /* @__PURE__ */ p(ln, { id: "collectionAttachments", isOptional: !0, children: /* @__PURE__ */ p(
|
|
3658
3657
|
jn,
|
|
3659
3658
|
{
|
|
3660
3659
|
name: "attachments",
|
|
@@ -5153,7 +5152,7 @@ function Kl(e) {
|
|
|
5153
5152
|
return Kn(e) ? e : void 0;
|
|
5154
5153
|
}
|
|
5155
5154
|
function Ee(e) {
|
|
5156
|
-
const [t, n] =
|
|
5155
|
+
const [t, n] = fe(e, ["as"]);
|
|
5157
5156
|
if (!t.as)
|
|
5158
5157
|
throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
|
|
5159
5158
|
return (
|
|
@@ -5230,7 +5229,7 @@ function x0(e) {
|
|
|
5230
5229
|
function S0(e) {
|
|
5231
5230
|
const t = mo(), n = ie({
|
|
5232
5231
|
id: t.generateId("error-message")
|
|
5233
|
-
}, e), [r, o] =
|
|
5232
|
+
}, e), [r, o] = fe(n, ["forceMount"]), i = () => t.validationState() === "invalid";
|
|
5234
5233
|
return j(() => {
|
|
5235
5234
|
i() && Q(t.registerErrorMessage(o.id));
|
|
5236
5235
|
}), C(H, {
|
|
@@ -5248,7 +5247,7 @@ function i3(e) {
|
|
|
5248
5247
|
let t;
|
|
5249
5248
|
const n = mo(), r = ie({
|
|
5250
5249
|
id: n.generateId("label")
|
|
5251
|
-
}, e), [o, i] =
|
|
5250
|
+
}, e), [o, i] = fe(r, ["ref"]), s = ci(() => t, () => "label");
|
|
5252
5251
|
return j(() => Q(n.registerLabel(i.id))), C(Ee, J({
|
|
5253
5252
|
as: "label",
|
|
5254
5253
|
ref(a) {
|
|
@@ -5732,7 +5731,7 @@ function F3(e, t, n) {
|
|
|
5732
5731
|
keyboardDelegate: () => L(o.keyboardDelegate),
|
|
5733
5732
|
selectionManager: () => L(o.selectionManager)
|
|
5734
5733
|
}), c = () => L(o.orientation) ?? "vertical", u = (y) => {
|
|
5735
|
-
var O, $, I, R, K, te, re,
|
|
5734
|
+
var O, $, I, R, K, te, re, ge;
|
|
5736
5735
|
$e(y, l.onKeyDown), y.altKey && y.key === "Tab" && y.preventDefault();
|
|
5737
5736
|
const b = t();
|
|
5738
5737
|
if (!(b != null && b.contains(y.target)))
|
|
@@ -5771,7 +5770,7 @@ function F3(e, t, n) {
|
|
|
5771
5770
|
y.preventDefault();
|
|
5772
5771
|
const U = s() === "rtl";
|
|
5773
5772
|
let ee;
|
|
5774
|
-
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);
|
|
5775
5774
|
}
|
|
5776
5775
|
break;
|
|
5777
5776
|
}
|
|
@@ -5818,10 +5817,10 @@ function F3(e, t, n) {
|
|
|
5818
5817
|
b.focus();
|
|
5819
5818
|
else {
|
|
5820
5819
|
const U = Xf(b, { tabbable: !0 });
|
|
5821
|
-
let ee,
|
|
5820
|
+
let ee, ae;
|
|
5822
5821
|
do
|
|
5823
|
-
|
|
5824
|
-
while (
|
|
5822
|
+
ae = U.lastChild(), ae && (ee = ae);
|
|
5823
|
+
while (ae);
|
|
5825
5824
|
ee && !ee.contains(document.activeElement) && Ve(ee);
|
|
5826
5825
|
}
|
|
5827
5826
|
break;
|
|
@@ -6351,7 +6350,7 @@ function $s(e) {
|
|
|
6351
6350
|
let t;
|
|
6352
6351
|
const n = ie({
|
|
6353
6352
|
type: "button"
|
|
6354
|
-
}, e), [r, o] =
|
|
6353
|
+
}, e), [r, o] = fe(n, ["ref", "type", "disabled"]), i = ci(() => t, () => "button"), s = k(() => {
|
|
6355
6354
|
const c = i();
|
|
6356
6355
|
return c == null ? !1 : W3({
|
|
6357
6356
|
tagName: c,
|
|
@@ -6384,7 +6383,7 @@ function $s(e) {
|
|
|
6384
6383
|
}
|
|
6385
6384
|
}, o));
|
|
6386
6385
|
}
|
|
6387
|
-
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) => ({
|
|
6388
6387
|
x: e,
|
|
6389
6388
|
y: e
|
|
6390
6389
|
}), X3 = {
|
|
@@ -6402,7 +6401,7 @@ function es(e, t, n) {
|
|
|
6402
6401
|
function Dn(e, t) {
|
|
6403
6402
|
return typeof e == "function" ? e(t) : e;
|
|
6404
6403
|
}
|
|
6405
|
-
function
|
|
6404
|
+
function hn(e) {
|
|
6406
6405
|
return e.split("-")[0];
|
|
6407
6406
|
}
|
|
6408
6407
|
function xr(e) {
|
|
@@ -6415,7 +6414,7 @@ function Es(e) {
|
|
|
6415
6414
|
return e === "y" ? "height" : "width";
|
|
6416
6415
|
}
|
|
6417
6416
|
function Mn(e) {
|
|
6418
|
-
return ["top", "bottom"].includes(
|
|
6417
|
+
return ["top", "bottom"].includes(hn(e)) ? "y" : "x";
|
|
6419
6418
|
}
|
|
6420
6419
|
function Is(e) {
|
|
6421
6420
|
return R0(Mn(e));
|
|
@@ -6448,7 +6447,7 @@ function ng(e, t, n) {
|
|
|
6448
6447
|
}
|
|
6449
6448
|
function rg(e, t, n, r) {
|
|
6450
6449
|
const o = xr(e);
|
|
6451
|
-
let i = ng(
|
|
6450
|
+
let i = ng(hn(e), n === "start", r);
|
|
6452
6451
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ts)))), i;
|
|
6453
6452
|
}
|
|
6454
6453
|
function Go(e) {
|
|
@@ -6494,7 +6493,7 @@ function Hl(e, t, n) {
|
|
|
6494
6493
|
reference: r,
|
|
6495
6494
|
floating: o
|
|
6496
6495
|
} = e;
|
|
6497
|
-
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;
|
|
6498
6497
|
let g;
|
|
6499
6498
|
switch (l) {
|
|
6500
6499
|
case "top":
|
|
@@ -6667,12 +6666,12 @@ var sg = (e) => ({
|
|
|
6667
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));
|
|
6668
6667
|
let E = T ? T[w] : 0;
|
|
6669
6668
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(T))) && (E = a.floating[w] || i.floating[h]);
|
|
6670
|
-
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;
|
|
6671
6670
|
return {
|
|
6672
6671
|
[g]: d[g] + ee,
|
|
6673
6672
|
data: {
|
|
6674
|
-
[g]:
|
|
6675
|
-
centerOffset: re -
|
|
6673
|
+
[g]: ge,
|
|
6674
|
+
centerOffset: re - ge - ee,
|
|
6676
6675
|
...U && {
|
|
6677
6676
|
alignmentOffset: ee
|
|
6678
6677
|
}
|
|
@@ -6704,7 +6703,7 @@ var sg = (e) => ({
|
|
|
6704
6703
|
} = Dn(e, t);
|
|
6705
6704
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6706
6705
|
return {};
|
|
6707
|
-
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";
|
|
6708
6707
|
!d && T && S.push(...rg(a, m, h, x));
|
|
6709
6708
|
const E = [a, ...S], O = await Xr(t, y), $ = [];
|
|
6710
6709
|
let I = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -6717,31 +6716,31 @@ var sg = (e) => ({
|
|
|
6717
6716
|
overflows: $
|
|
6718
6717
|
}], !$.every((re) => re <= 0)) {
|
|
6719
6718
|
var R, K;
|
|
6720
|
-
const re = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1,
|
|
6721
|
-
if (
|
|
6719
|
+
const re = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1, ge = E[re];
|
|
6720
|
+
if (ge)
|
|
6722
6721
|
return {
|
|
6723
6722
|
data: {
|
|
6724
6723
|
index: re,
|
|
6725
6724
|
overflows: I
|
|
6726
6725
|
},
|
|
6727
6726
|
reset: {
|
|
6728
|
-
placement:
|
|
6727
|
+
placement: ge
|
|
6729
6728
|
}
|
|
6730
6729
|
};
|
|
6731
|
-
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;
|
|
6732
6731
|
if (!U)
|
|
6733
6732
|
switch (g) {
|
|
6734
6733
|
case "bestFit": {
|
|
6735
6734
|
var te;
|
|
6736
|
-
const ee = (te = I.filter((
|
|
6735
|
+
const ee = (te = I.filter((ae) => {
|
|
6737
6736
|
if (T) {
|
|
6738
|
-
const xe = Mn(
|
|
6737
|
+
const xe = Mn(ae.placement);
|
|
6739
6738
|
return xe === v || // Create a bias to the `y` side axis due to horizontal
|
|
6740
6739
|
// reading directions favoring greater width.
|
|
6741
6740
|
xe === "y";
|
|
6742
6741
|
}
|
|
6743
6742
|
return !0;
|
|
6744
|
-
}).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];
|
|
6745
6744
|
ee && (U = ee);
|
|
6746
6745
|
break;
|
|
6747
6746
|
}
|
|
@@ -6818,7 +6817,7 @@ async function cg(e, t) {
|
|
|
6818
6817
|
placement: n,
|
|
6819
6818
|
platform: r,
|
|
6820
6819
|
elements: o
|
|
6821
|
-
} = 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);
|
|
6822
6821
|
let {
|
|
6823
6822
|
mainAxis: d,
|
|
6824
6823
|
crossAxis: g,
|
|
@@ -6891,7 +6890,7 @@ var ug = function(e) {
|
|
|
6891
6890
|
} = Dn(e, t), c = {
|
|
6892
6891
|
x: n,
|
|
6893
6892
|
y: r
|
|
6894
|
-
}, u = await Xr(t, l), f = Mn(
|
|
6893
|
+
}, u = await Xr(t, l), f = Mn(hn(o)), d = R0(f);
|
|
6895
6894
|
let g = c[d], h = c[f];
|
|
6896
6895
|
if (i) {
|
|
6897
6896
|
const y = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", v = g + u[y], w = g - u[b];
|
|
@@ -6929,7 +6928,7 @@ var ug = function(e) {
|
|
|
6929
6928
|
apply: s = () => {
|
|
6930
6929
|
},
|
|
6931
6930
|
...a
|
|
6932
|
-
} = 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", {
|
|
6933
6932
|
width: d,
|
|
6934
6933
|
height: g
|
|
6935
6934
|
} = r.floating;
|
|
@@ -6962,7 +6961,7 @@ function it(e) {
|
|
|
6962
6961
|
var t;
|
|
6963
6962
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6964
6963
|
}
|
|
6965
|
-
function
|
|
6964
|
+
function tn(e) {
|
|
6966
6965
|
var t;
|
|
6967
6966
|
return (t = (B0(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6968
6967
|
}
|
|
@@ -7004,13 +7003,13 @@ function ks(e) {
|
|
|
7004
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));
|
|
7005
7004
|
}
|
|
7006
7005
|
function hg(e) {
|
|
7007
|
-
let t =
|
|
7006
|
+
let t = mn(e);
|
|
7008
7007
|
for (; _t(t) && !hr(t); ) {
|
|
7009
7008
|
if (ks(t))
|
|
7010
7009
|
return t;
|
|
7011
7010
|
if (di(t))
|
|
7012
7011
|
return null;
|
|
7013
|
-
t =
|
|
7012
|
+
t = mn(t);
|
|
7014
7013
|
}
|
|
7015
7014
|
return null;
|
|
7016
7015
|
}
|
|
@@ -7032,7 +7031,7 @@ function fi(e) {
|
|
|
7032
7031
|
scrollTop: e.scrollY
|
|
7033
7032
|
};
|
|
7034
7033
|
}
|
|
7035
|
-
function
|
|
7034
|
+
function mn(e) {
|
|
7036
7035
|
if (Sr(e) === "html")
|
|
7037
7036
|
return e;
|
|
7038
7037
|
const t = (
|
|
@@ -7040,12 +7039,12 @@ function pn(e) {
|
|
|
7040
7039
|
e.assignedSlot || // DOM Element detected.
|
|
7041
7040
|
e.parentNode || // ShadowRoot detected.
|
|
7042
7041
|
Ql(e) && e.host || // Fallback.
|
|
7043
|
-
|
|
7042
|
+
tn(e)
|
|
7044
7043
|
);
|
|
7045
7044
|
return Ql(t) ? t.host : t;
|
|
7046
7045
|
}
|
|
7047
7046
|
function K0(e) {
|
|
7048
|
-
const t =
|
|
7047
|
+
const t = mn(e);
|
|
7049
7048
|
return hr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _t(t) && yo(t) ? t : K0(t);
|
|
7050
7049
|
}
|
|
7051
7050
|
function Jr(e, t, n) {
|
|
@@ -7070,7 +7069,7 @@ function Ms(e) {
|
|
|
7070
7069
|
function Wn(e) {
|
|
7071
7070
|
const t = Ms(e);
|
|
7072
7071
|
if (!_t(t))
|
|
7073
|
-
return
|
|
7072
|
+
return gn(1);
|
|
7074
7073
|
const n = t.getBoundingClientRect(), {
|
|
7075
7074
|
width: r,
|
|
7076
7075
|
height: o,
|
|
@@ -7082,7 +7081,7 @@ function Wn(e) {
|
|
|
7082
7081
|
y: a
|
|
7083
7082
|
};
|
|
7084
7083
|
}
|
|
7085
|
-
var mg = /* @__PURE__ */
|
|
7084
|
+
var mg = /* @__PURE__ */ gn(0);
|
|
7086
7085
|
function U0(e) {
|
|
7087
7086
|
const t = it(e);
|
|
7088
7087
|
return !As() || !t.visualViewport ? mg : {
|
|
@@ -7096,9 +7095,9 @@ function pg(e, t, n) {
|
|
|
7096
7095
|
function Tn(e, t, n, r) {
|
|
7097
7096
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7098
7097
|
const o = e.getBoundingClientRect(), i = Ms(e);
|
|
7099
|
-
let s =
|
|
7098
|
+
let s = gn(1);
|
|
7100
7099
|
t && (r ? St(r) && (s = Wn(r)) : s = Wn(e));
|
|
7101
|
-
const a = pg(i, n, r) ? U0(i) :
|
|
7100
|
+
const a = pg(i, n, r) ? U0(i) : gn(0);
|
|
7102
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;
|
|
7103
7102
|
if (i) {
|
|
7104
7103
|
const d = it(i), g = r && St(r) ? it(r) : r;
|
|
@@ -7122,14 +7121,14 @@ function yg(e) {
|
|
|
7122
7121
|
offsetParent: r,
|
|
7123
7122
|
strategy: o
|
|
7124
7123
|
} = e;
|
|
7125
|
-
const i = o === "fixed", s =
|
|
7124
|
+
const i = o === "fixed", s = tn(r), a = t ? di(t.floating) : !1;
|
|
7126
7125
|
if (r === s || a && i)
|
|
7127
7126
|
return n;
|
|
7128
7127
|
let l = {
|
|
7129
7128
|
scrollLeft: 0,
|
|
7130
7129
|
scrollTop: 0
|
|
7131
|
-
}, c =
|
|
7132
|
-
const u =
|
|
7130
|
+
}, c = gn(1);
|
|
7131
|
+
const u = gn(0), f = _t(r);
|
|
7133
7132
|
if ((f || !f && !i) && ((Sr(r) !== "body" || yo(s)) && (l = fi(r)), _t(r))) {
|
|
7134
7133
|
const d = Tn(r);
|
|
7135
7134
|
c = Wn(r), u.x = d.x + r.clientLeft, u.y = d.y + r.clientTop;
|
|
@@ -7145,10 +7144,10 @@ function bg(e) {
|
|
|
7145
7144
|
return Array.from(e.getClientRects());
|
|
7146
7145
|
}
|
|
7147
7146
|
function V0(e) {
|
|
7148
|
-
return Tn(
|
|
7147
|
+
return Tn(tn(e)).left + fi(e).scrollLeft;
|
|
7149
7148
|
}
|
|
7150
7149
|
function vg(e) {
|
|
7151
|
-
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);
|
|
7152
7151
|
let s = -n.scrollLeft + V0(e);
|
|
7153
7152
|
const a = -n.scrollTop;
|
|
7154
7153
|
return $t(r).direction === "rtl" && (s += ot(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7159,7 +7158,7 @@ function vg(e) {
|
|
|
7159
7158
|
};
|
|
7160
7159
|
}
|
|
7161
7160
|
function Cg(e, t) {
|
|
7162
|
-
const n = it(e), r =
|
|
7161
|
+
const n = it(e), r = tn(e), o = n.visualViewport;
|
|
7163
7162
|
let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
7164
7163
|
if (o) {
|
|
7165
7164
|
i = o.width, s = o.height;
|
|
@@ -7174,7 +7173,7 @@ function Cg(e, t) {
|
|
|
7174
7173
|
};
|
|
7175
7174
|
}
|
|
7176
7175
|
function wg(e, t) {
|
|
7177
|
-
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;
|
|
7178
7177
|
return {
|
|
7179
7178
|
width: s,
|
|
7180
7179
|
height: a,
|
|
@@ -7187,7 +7186,7 @@ function Wl(e, t, n) {
|
|
|
7187
7186
|
if (t === "viewport")
|
|
7188
7187
|
r = Cg(e, n);
|
|
7189
7188
|
else if (t === "document")
|
|
7190
|
-
r = vg(
|
|
7189
|
+
r = vg(tn(e));
|
|
7191
7190
|
else if (St(t))
|
|
7192
7191
|
r = wg(t, n);
|
|
7193
7192
|
else {
|
|
@@ -7201,7 +7200,7 @@ function Wl(e, t, n) {
|
|
|
7201
7200
|
return jo(r);
|
|
7202
7201
|
}
|
|
7203
7202
|
function H0(e, t) {
|
|
7204
|
-
const n =
|
|
7203
|
+
const n = mn(e);
|
|
7205
7204
|
return n === t || !St(n) || hr(n) ? !1 : $t(n).position === "fixed" || H0(n, t);
|
|
7206
7205
|
}
|
|
7207
7206
|
function xg(e, t) {
|
|
@@ -7210,10 +7209,10 @@ function xg(e, t) {
|
|
|
7210
7209
|
return n;
|
|
7211
7210
|
let r = Jr(e, [], !1).filter((a) => St(a) && Sr(a) !== "body"), o = null;
|
|
7212
7211
|
const i = $t(e).position === "fixed";
|
|
7213
|
-
let s = i ?
|
|
7212
|
+
let s = i ? mn(e) : e;
|
|
7214
7213
|
for (; St(s) && !hr(s); ) {
|
|
7215
7214
|
const a = $t(s), l = ks(s);
|
|
7216
|
-
!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);
|
|
7217
7216
|
}
|
|
7218
7217
|
return t.set(e, r), r;
|
|
7219
7218
|
}
|
|
@@ -7246,12 +7245,12 @@ function $g(e) {
|
|
|
7246
7245
|
};
|
|
7247
7246
|
}
|
|
7248
7247
|
function Eg(e, t, n) {
|
|
7249
|
-
const r = _t(t), o =
|
|
7248
|
+
const r = _t(t), o = tn(t), i = n === "fixed", s = Tn(e, !0, i, t);
|
|
7250
7249
|
let a = {
|
|
7251
7250
|
scrollLeft: 0,
|
|
7252
7251
|
scrollTop: 0
|
|
7253
7252
|
};
|
|
7254
|
-
const l =
|
|
7253
|
+
const l = gn(0);
|
|
7255
7254
|
if (r || !r && !i)
|
|
7256
7255
|
if ((Sr(t) !== "body" || yo(o)) && (a = fi(t)), r) {
|
|
7257
7256
|
const f = Tn(t, !0, i, t);
|
|
@@ -7276,11 +7275,11 @@ function G0(e, t) {
|
|
|
7276
7275
|
if (di(e))
|
|
7277
7276
|
return n;
|
|
7278
7277
|
if (!_t(e)) {
|
|
7279
|
-
let o =
|
|
7278
|
+
let o = mn(e);
|
|
7280
7279
|
for (; o && !hr(o); ) {
|
|
7281
7280
|
if (St(o) && !Mi(o))
|
|
7282
7281
|
return o;
|
|
7283
|
-
o =
|
|
7282
|
+
o = mn(o);
|
|
7284
7283
|
}
|
|
7285
7284
|
return n;
|
|
7286
7285
|
}
|
|
@@ -7306,7 +7305,7 @@ function kg(e) {
|
|
|
7306
7305
|
}
|
|
7307
7306
|
var j0 = {
|
|
7308
7307
|
convertOffsetParentRelativeRectToViewportRelativeRect: yg,
|
|
7309
|
-
getDocumentElement:
|
|
7308
|
+
getDocumentElement: tn,
|
|
7310
7309
|
getClippingRect: Sg,
|
|
7311
7310
|
getOffsetParent: G0,
|
|
7312
7311
|
getElementRects: Ig,
|
|
@@ -7318,7 +7317,7 @@ var j0 = {
|
|
|
7318
7317
|
};
|
|
7319
7318
|
function Ag(e, t) {
|
|
7320
7319
|
let n = null, r;
|
|
7321
|
-
const o =
|
|
7320
|
+
const o = tn(e);
|
|
7322
7321
|
function i() {
|
|
7323
7322
|
var a;
|
|
7324
7323
|
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
@@ -7426,7 +7425,7 @@ var Ng = /* @__PURE__ */ z('<svg display="block" viewBox="0 0 30 30" style="tran
|
|
|
7426
7425
|
function Ls(e) {
|
|
7427
7426
|
const t = Os(), n = ie({
|
|
7428
7427
|
size: ns
|
|
7429
|
-
}, e), [r, o] =
|
|
7428
|
+
}, e), [r, o] = fe(n, ["ref", "style", "size"]), i = () => t.currentPlacement().split("-")[0], s = qg(t.contentRef), a = () => {
|
|
7430
7429
|
var d;
|
|
7431
7430
|
return ((d = s()) == null ? void 0 : d.getPropertyValue("background-color")) || "none";
|
|
7432
7431
|
}, l = () => {
|
|
@@ -7471,7 +7470,7 @@ function qg(e) {
|
|
|
7471
7470
|
}), t;
|
|
7472
7471
|
}
|
|
7473
7472
|
function Bg(e) {
|
|
7474
|
-
const t = Os(), [n, r] =
|
|
7473
|
+
const t = Os(), [n, r] = fe(e, ["ref", "style"]);
|
|
7475
7474
|
return C(Ee, J({
|
|
7476
7475
|
as: "div",
|
|
7477
7476
|
ref(o) {
|
|
@@ -7756,7 +7755,7 @@ function Qg() {
|
|
|
7756
7755
|
}
|
|
7757
7756
|
function Wg(e) {
|
|
7758
7757
|
let t;
|
|
7759
|
-
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) => {
|
|
7760
7759
|
i.add(f);
|
|
7761
7760
|
const d = n == null ? void 0 : n.registerNestedLayer(f);
|
|
7762
7761
|
return () => {
|
|
@@ -7874,7 +7873,7 @@ function bo() {
|
|
|
7874
7873
|
function eu(e) {
|
|
7875
7874
|
const t = mo(), n = X0(), r = `${t.generateId("item")}-${mt()}`, o = ie({
|
|
7876
7875
|
id: r
|
|
7877
|
-
}, 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) => {
|
|
7878
7877
|
$e(T, i.onPointerDown), m() && T.preventDefault();
|
|
7879
7878
|
}, x = k(() => ({
|
|
7880
7879
|
...t.dataset(),
|
|
@@ -7911,7 +7910,7 @@ function eu(e) {
|
|
|
7911
7910
|
function tu(e) {
|
|
7912
7911
|
const t = bo(), n = ie({
|
|
7913
7912
|
id: t.generateId("control")
|
|
7914
|
-
}, e), [r, o] =
|
|
7913
|
+
}, e), [r, o] = fe(n, ["onClick", "onKeyDown"]);
|
|
7915
7914
|
return C(Ee, J({
|
|
7916
7915
|
as: "div",
|
|
7917
7916
|
onClick: (a) => {
|
|
@@ -7935,7 +7934,7 @@ function nu(e) {
|
|
|
7935
7934
|
function ru(e) {
|
|
7936
7935
|
const t = bo(), n = ie({
|
|
7937
7936
|
id: t.generateId("indicator")
|
|
7938
|
-
}, e), [r, o] =
|
|
7937
|
+
}, e), [r, o] = fe(n, ["ref", "forceMount"]), [i, s] = q(), {
|
|
7939
7938
|
present: a
|
|
7940
7939
|
} = F0({
|
|
7941
7940
|
show: () => r.forceMount || t.isSelected(),
|
|
@@ -7959,7 +7958,7 @@ function ru(e) {
|
|
|
7959
7958
|
function ou(e) {
|
|
7960
7959
|
const t = mo(), n = X0(), r = bo(), o = ie({
|
|
7961
7960
|
id: r.generateId("input")
|
|
7962
|
-
}, e), [i, s] =
|
|
7961
|
+
}, e), [i, s] = fe(o, ["ref", "style", "aria-labelledby", "aria-describedby", "onChange", "onFocus", "onBlur"]), a = () => [
|
|
7963
7962
|
i["aria-labelledby"],
|
|
7964
7963
|
r.labelId(),
|
|
7965
7964
|
// If there is both an aria-label and aria-labelledby, add the input itself has an aria-labelledby
|
|
@@ -8052,7 +8051,7 @@ function lu(e) {
|
|
|
8052
8051
|
const n = `radiogroup-${mt()}`, r = ie({
|
|
8053
8052
|
id: n,
|
|
8054
8053
|
orientation: "vertical"
|
|
8055
|
-
}, e), [o, i, s] =
|
|
8054
|
+
}, e), [o, i, s] = fe(r, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], r3), [a, l] = po({
|
|
8056
8055
|
value: () => o.value,
|
|
8057
8056
|
defaultValue: () => o.defaultValue,
|
|
8058
8057
|
onChange: (h) => {
|
|
@@ -8589,7 +8588,7 @@ var Mo = /* @__PURE__ */ new Map(), rh = (e) => {
|
|
|
8589
8588
|
function cu() {
|
|
8590
8589
|
return Be(au);
|
|
8591
8590
|
}
|
|
8592
|
-
function
|
|
8591
|
+
function nn() {
|
|
8593
8592
|
const e = cu();
|
|
8594
8593
|
if (e === void 0)
|
|
8595
8594
|
throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");
|
|
@@ -8611,9 +8610,9 @@ function Nt() {
|
|
|
8611
8610
|
}
|
|
8612
8611
|
function Fs(e) {
|
|
8613
8612
|
let t;
|
|
8614
|
-
const n = Nt(), r =
|
|
8613
|
+
const n = Nt(), r = nn(), o = ie({
|
|
8615
8614
|
id: n.generateId(`item-${mt()}`)
|
|
8616
|
-
}, 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 = () => {
|
|
8617
8616
|
var $;
|
|
8618
8617
|
($ = i.onSelect) == null || $.call(i), i.closeOnSelect && setTimeout(() => {
|
|
8619
8618
|
r.close(!0);
|
|
@@ -8723,7 +8722,7 @@ function Fs(e) {
|
|
|
8723
8722
|
function fu(e) {
|
|
8724
8723
|
const t = ie({
|
|
8725
8724
|
closeOnSelect: !1
|
|
8726
|
-
}, e), [n, r] =
|
|
8725
|
+
}, e), [n, r] = fe(t, ["checked", "defaultChecked", "onChange", "onSelect"]), o = u3({
|
|
8727
8726
|
isSelected: () => n.checked,
|
|
8728
8727
|
defaultIsSelected: () => n.defaultChecked,
|
|
8729
8728
|
onSelectedChange: (s) => {
|
|
@@ -8755,11 +8754,11 @@ var eo = {
|
|
|
8755
8754
|
last: (e) => e === "horizontal" ? "ArrowUp" : "ArrowLeft"
|
|
8756
8755
|
};
|
|
8757
8756
|
function gu(e) {
|
|
8758
|
-
const t = Nt(), n =
|
|
8757
|
+
const t = Nt(), n = nn(), r = gi(), {
|
|
8759
8758
|
direction: o
|
|
8760
8759
|
} = vn(), i = ie({
|
|
8761
8760
|
id: t.generateId("trigger")
|
|
8762
|
-
}, e), [s, a] =
|
|
8761
|
+
}, e), [s, a] = fe(i, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
|
|
8763
8762
|
let l = () => t.value();
|
|
8764
8763
|
r !== void 0 && (l = () => t.value() ?? s.id, r.lastValue() === void 0 && r.setLastValue(l));
|
|
8765
8764
|
const c = ci(() => n.triggerRef(), () => "button"), u = k(() => {
|
|
@@ -8852,11 +8851,11 @@ function hu() {
|
|
|
8852
8851
|
}
|
|
8853
8852
|
function mu(e) {
|
|
8854
8853
|
let t;
|
|
8855
|
-
const n = Nt(), r =
|
|
8854
|
+
const n = Nt(), r = nn(), o = gi(), i = hu(), {
|
|
8856
8855
|
direction: s
|
|
8857
8856
|
} = vn(), a = ie({
|
|
8858
8857
|
id: n.generateId(`content-${mt()}`)
|
|
8859
|
-
}, e), [l, c] =
|
|
8858
|
+
}, e), [l, c] = fe(a, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
|
|
8860
8859
|
let u = 0;
|
|
8861
8860
|
const f = () => r.parentMenuContext() == null && o === void 0 && n.isModal(), d = Xg({
|
|
8862
8861
|
selectionManager: r.listState().selectionManager,
|
|
@@ -8974,7 +8973,7 @@ function mu(e) {
|
|
|
8974
8973
|
}
|
|
8975
8974
|
function hh(e) {
|
|
8976
8975
|
let t;
|
|
8977
|
-
const n = Nt(), r =
|
|
8976
|
+
const n = Nt(), r = nn(), [o, i] = fe(e, ["ref"]);
|
|
8978
8977
|
return dh({
|
|
8979
8978
|
element: () => t ?? null,
|
|
8980
8979
|
enabled: () => r.contentPresent() && n.preventScroll()
|
|
@@ -9017,7 +9016,7 @@ function Ds(e) {
|
|
|
9017
9016
|
function yu(e) {
|
|
9018
9017
|
const t = mh(), n = ie({
|
|
9019
9018
|
id: t.generateId("label")
|
|
9020
|
-
}, e), [r, o] =
|
|
9019
|
+
}, e), [r, o] = fe(n, ["id"]);
|
|
9021
9020
|
return j(() => Q(t.registerLabelId(r.id))), C(Ee, J({
|
|
9022
9021
|
as: "span",
|
|
9023
9022
|
get id() {
|
|
@@ -9027,7 +9026,7 @@ function yu(e) {
|
|
|
9027
9026
|
}, o));
|
|
9028
9027
|
}
|
|
9029
9028
|
function bu(e) {
|
|
9030
|
-
const t =
|
|
9029
|
+
const t = nn(), n = ie({
|
|
9031
9030
|
children: "▼"
|
|
9032
9031
|
}, e);
|
|
9033
9032
|
return C(Ee, J({
|
|
@@ -9044,7 +9043,7 @@ function vu(e) {
|
|
|
9044
9043
|
function Cu(e) {
|
|
9045
9044
|
const t = Ps(), n = ie({
|
|
9046
9045
|
id: t.generateId("description")
|
|
9047
|
-
}, e), [r, o] =
|
|
9046
|
+
}, e), [r, o] = fe(n, ["id"]);
|
|
9048
9047
|
return j(() => Q(t.registerDescription(r.id))), C(Ee, J({
|
|
9049
9048
|
as: "div",
|
|
9050
9049
|
get id() {
|
|
@@ -9055,7 +9054,7 @@ function Cu(e) {
|
|
|
9055
9054
|
function wu(e) {
|
|
9056
9055
|
const t = Ps(), n = ie({
|
|
9057
9056
|
id: t.generateId("indicator")
|
|
9058
|
-
}, e), [r, o] =
|
|
9057
|
+
}, e), [r, o] = fe(n, ["forceMount"]);
|
|
9059
9058
|
return C(H, {
|
|
9060
9059
|
get when() {
|
|
9061
9060
|
return r.forceMount || t.isChecked();
|
|
@@ -9070,7 +9069,7 @@ function wu(e) {
|
|
|
9070
9069
|
function xu(e) {
|
|
9071
9070
|
const t = Ps(), n = ie({
|
|
9072
9071
|
id: t.generateId("label")
|
|
9073
|
-
}, e), [r, o] =
|
|
9072
|
+
}, e), [r, o] = fe(n, ["ref", "id"]);
|
|
9074
9073
|
return j(() => Q(t.registerLabel(r.id))), C(Ee, J({
|
|
9075
9074
|
as: "div",
|
|
9076
9075
|
ref(i) {
|
|
@@ -9083,7 +9082,7 @@ function xu(e) {
|
|
|
9083
9082
|
}, () => t.dataset(), o));
|
|
9084
9083
|
}
|
|
9085
9084
|
function Su(e) {
|
|
9086
|
-
const t =
|
|
9085
|
+
const t = nn();
|
|
9087
9086
|
return C(H, {
|
|
9088
9087
|
get when() {
|
|
9089
9088
|
return t.contentPresent();
|
|
@@ -9103,7 +9102,7 @@ function ph() {
|
|
|
9103
9102
|
function Eu(e) {
|
|
9104
9103
|
const n = Nt().generateId(`radiogroup-${mt()}`), r = ie({
|
|
9105
9104
|
id: n
|
|
9106
|
-
}, e), [o, i] =
|
|
9105
|
+
}, e), [o, i] = fe(r, ["value", "defaultValue", "onChange", "disabled"]), [s, a] = po({
|
|
9107
9106
|
value: () => o.value,
|
|
9108
9107
|
defaultValue: () => o.defaultValue,
|
|
9109
9108
|
onChange: (c) => {
|
|
@@ -9125,7 +9124,7 @@ function Eu(e) {
|
|
|
9125
9124
|
function Iu(e) {
|
|
9126
9125
|
const t = ph(), n = ie({
|
|
9127
9126
|
closeOnSelect: !1
|
|
9128
|
-
}, e), [r, o] =
|
|
9127
|
+
}, e), [r, o] = fe(n, ["value", "onSelect"]);
|
|
9129
9128
|
return C(Fs, J({
|
|
9130
9129
|
role: "menuitemradio",
|
|
9131
9130
|
get checked() {
|
|
@@ -9161,7 +9160,7 @@ function bh(e, t) {
|
|
|
9161
9160
|
function ku(e) {
|
|
9162
9161
|
const t = Nt(), n = I0(), r = cu(), o = gi(), i = hu(), s = ie({
|
|
9163
9162
|
placement: t.orientation() === "horizontal" ? "bottom-start" : "right-start"
|
|
9164
|
-
}, e), [a, l] =
|
|
9163
|
+
}, e), [a, l] = fe(s, ["open", "defaultOpen", "onOpenChange"]);
|
|
9165
9164
|
let c = 0, u = null, f = "right";
|
|
9166
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([]), {
|
|
9167
9166
|
DomCollectionProvider: K
|
|
@@ -9180,18 +9179,18 @@ function ku(e) {
|
|
|
9180
9179
|
} = F0({
|
|
9181
9180
|
show: () => t.forceMount() || te.isOpen(),
|
|
9182
9181
|
element: () => v() ?? null
|
|
9183
|
-
}),
|
|
9182
|
+
}), ge = _3({
|
|
9184
9183
|
selectionMode: "none",
|
|
9185
9184
|
dataSource: I
|
|
9186
9185
|
}), U = (W) => {
|
|
9187
9186
|
S(W), te.open();
|
|
9188
9187
|
}, ee = (W = !1) => {
|
|
9189
9188
|
te.close(), W && r && r.close(!0);
|
|
9190
|
-
},
|
|
9189
|
+
}, ae = (W) => {
|
|
9191
9190
|
S(W), te.toggle();
|
|
9192
9191
|
}, xe = () => {
|
|
9193
9192
|
const W = v();
|
|
9194
|
-
W && (Ve(W),
|
|
9193
|
+
W && (Ve(W), ge.selectionManager().setFocused(!0), ge.selectionManager().setFocusedKey(void 0));
|
|
9195
9194
|
}, Te = () => {
|
|
9196
9195
|
i != null ? setTimeout(() => xe()) : xe();
|
|
9197
9196
|
}, Xe = (W) => {
|
|
@@ -9228,7 +9227,7 @@ function ku(e) {
|
|
|
9228
9227
|
}), Q(() => {
|
|
9229
9228
|
r === void 0 && (o == null || o.unregisterMenu(t.value()));
|
|
9230
9229
|
});
|
|
9231
|
-
const
|
|
9230
|
+
const rn = {
|
|
9232
9231
|
dataset: k(() => ({
|
|
9233
9232
|
"data-expanded": te.isOpen() ? "" : void 0,
|
|
9234
9233
|
"data-closed": te.isOpen() ? void 0 : ""
|
|
@@ -9239,7 +9238,7 @@ function ku(e) {
|
|
|
9239
9238
|
currentPlacement: T,
|
|
9240
9239
|
pointerGraceTimeoutId: () => c,
|
|
9241
9240
|
autoFocus: x,
|
|
9242
|
-
listState: () =>
|
|
9241
|
+
listState: () => ge,
|
|
9243
9242
|
parentMenuContext: () => r,
|
|
9244
9243
|
triggerRef: y,
|
|
9245
9244
|
contentRef: v,
|
|
@@ -9249,7 +9248,7 @@ function ku(e) {
|
|
|
9249
9248
|
setContentRef: w,
|
|
9250
9249
|
open: U,
|
|
9251
9250
|
close: ee,
|
|
9252
|
-
toggle:
|
|
9251
|
+
toggle: ae,
|
|
9253
9252
|
focusContent: Te,
|
|
9254
9253
|
onItemEnter: je,
|
|
9255
9254
|
onItemLeave: D,
|
|
@@ -9265,7 +9264,7 @@ function ku(e) {
|
|
|
9265
9264
|
return C(K, {
|
|
9266
9265
|
get children() {
|
|
9267
9266
|
return C(au.Provider, {
|
|
9268
|
-
value:
|
|
9267
|
+
value: rn,
|
|
9269
9268
|
get children() {
|
|
9270
9269
|
return C(H, {
|
|
9271
9270
|
when: i === void 0,
|
|
@@ -9300,7 +9299,7 @@ var vh = {
|
|
|
9300
9299
|
close: (e, t) => e === "ltr" ? [t === "horizontal" ? "ArrowLeft" : "ArrowUp"] : [t === "horizontal" ? "ArrowRight" : "ArrowDown"]
|
|
9301
9300
|
};
|
|
9302
9301
|
function Mu(e) {
|
|
9303
|
-
const t =
|
|
9302
|
+
const t = nn(), n = Nt(), [r, o] = fe(e, ["onFocusOutside", "onKeyDown"]), {
|
|
9304
9303
|
direction: i
|
|
9305
9304
|
} = vn();
|
|
9306
9305
|
return C(mu, J({
|
|
@@ -9328,9 +9327,9 @@ var ca = ["Enter", " "], Ch = {
|
|
|
9328
9327
|
};
|
|
9329
9328
|
function Tu(e) {
|
|
9330
9329
|
let t;
|
|
9331
|
-
const n = Nt(), r =
|
|
9330
|
+
const n = Nt(), r = nn(), o = ie({
|
|
9332
9331
|
id: n.generateId(`sub-trigger-${mt()}`)
|
|
9333
|
-
}, e), [i, s] =
|
|
9332
|
+
}, e), [i, s] = fe(o, ["ref", "id", "textValue", "disabled", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]);
|
|
9334
9333
|
let a = null;
|
|
9335
9334
|
const l = () => {
|
|
9336
9335
|
a && window.clearTimeout(a), a = null;
|
|
@@ -9468,7 +9467,7 @@ function wh(e) {
|
|
|
9468
9467
|
const t = gi(), n = `menu-${mt()}`, r = ie({
|
|
9469
9468
|
id: n,
|
|
9470
9469
|
modal: !0
|
|
9471
|
-
}, e), [o, i] =
|
|
9470
|
+
}, e), [o, i] = fe(r, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]), s = Z0({
|
|
9472
9471
|
open: () => o.open,
|
|
9473
9472
|
defaultOpen: () => o.defaultOpen,
|
|
9474
9473
|
onOpenChange: (l) => {
|
|
@@ -9506,7 +9505,7 @@ function hi(e) {
|
|
|
9506
9505
|
let t;
|
|
9507
9506
|
const n = ie({
|
|
9508
9507
|
orientation: "horizontal"
|
|
9509
|
-
}, e), [r, o] =
|
|
9508
|
+
}, e), [r, o] = fe(n, ["ref", "orientation"]), i = ci(() => t, () => "hr");
|
|
9510
9509
|
return C(Ee, J({
|
|
9511
9510
|
as: "hr",
|
|
9512
9511
|
ref(s) {
|
|
@@ -9548,7 +9547,7 @@ ui(Me, {
|
|
|
9548
9547
|
Trigger: () => gu
|
|
9549
9548
|
});
|
|
9550
9549
|
function Ou(e) {
|
|
9551
|
-
const t = Nt(), n =
|
|
9550
|
+
const t = Nt(), n = nn(), [r, o] = fe(e, ["onCloseAutoFocus", "onInteractOutside"]);
|
|
9552
9551
|
let i = !1;
|
|
9553
9552
|
return C(hh, J({
|
|
9554
9553
|
onCloseAutoFocus: (l) => {
|
|
@@ -9889,8 +9888,8 @@ function dm() {
|
|
|
9889
9888
|
function fa() {
|
|
9890
9889
|
const e = mt();
|
|
9891
9890
|
return (() => {
|
|
9892
|
-
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,
|
|
9893
|
-
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;
|
|
9894
9893
|
})();
|
|
9895
9894
|
}
|
|
9896
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> [<!>...<!>]");
|
|
@@ -10015,7 +10014,7 @@ var ha = (e) => {
|
|
|
10015
10014
|
function pa(e) {
|
|
10016
10015
|
return Symbol.iterator in e;
|
|
10017
10016
|
}
|
|
10018
|
-
function
|
|
10017
|
+
function cn(e) {
|
|
10019
10018
|
const t = Ne(), n = V().shadowDOMTarget ? ne.bind({
|
|
10020
10019
|
target: V().shadowDOMTarget
|
|
10021
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) => ({
|
|
@@ -10115,7 +10114,7 @@ function un(e) {
|
|
|
10115
10114
|
return u();
|
|
10116
10115
|
},
|
|
10117
10116
|
by: (y) => y.label,
|
|
10118
|
-
children: (y) => C(
|
|
10117
|
+
children: (y) => C(cn, {
|
|
10119
10118
|
get defaultExpanded() {
|
|
10120
10119
|
return e.defaultExpanded;
|
|
10121
10120
|
},
|
|
@@ -10167,7 +10166,7 @@ function un(e) {
|
|
|
10167
10166
|
return y();
|
|
10168
10167
|
},
|
|
10169
10168
|
by: (I) => I.label,
|
|
10170
|
-
children: (I) => C(
|
|
10169
|
+
children: (I) => C(cn, {
|
|
10171
10170
|
get defaultExpanded() {
|
|
10172
10171
|
return e.defaultExpanded;
|
|
10173
10172
|
},
|
|
@@ -10413,7 +10412,7 @@ var Du = (e, t) => {
|
|
|
10413
10412
|
};
|
|
10414
10413
|
}, $r = (e) => Du("light", e), Er = (e) => Du("dark", e);
|
|
10415
10414
|
ii(["click"]);
|
|
10416
|
-
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) => {
|
|
10417
10416
|
const t = Ne(), n = V().shadowDOMTarget ? ne.bind({
|
|
10418
10417
|
target: V().shadowDOMTarget
|
|
10419
10418
|
}) : ne, r = k(() => t() === "dark" ? yt(n) : pt(n)), o = k(() => V().onlineManager);
|
|
@@ -10690,7 +10689,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10690
10689
|
E.style.setProperty("--tsqd-font-size", $);
|
|
10691
10690
|
};
|
|
10692
10691
|
return [(() => {
|
|
10693
|
-
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;
|
|
10694
10693
|
return typeof je == "function" ? Cr(je, E) : t = E, I.$$click = () => {
|
|
10695
10694
|
if (!i().pipWindow && !e.showPanelViewOnly) {
|
|
10696
10695
|
e.setLocalStore("open", "false");
|
|
@@ -10752,7 +10751,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10752
10751
|
}
|
|
10753
10752
|
}), null), M(U, C(Gh, {}), ee), ee.$$input = (D) => {
|
|
10754
10753
|
s() === "queries" ? e.setLocalStore("filter", D.currentTarget.value) : e.setLocalStore("mutationFilter", D.currentTarget.value);
|
|
10755
|
-
}, M(
|
|
10754
|
+
}, M(ae, C(H, {
|
|
10756
10755
|
get when() {
|
|
10757
10756
|
return s() === "queries";
|
|
10758
10757
|
},
|
|
@@ -10761,11 +10760,11 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10761
10760
|
return D.addEventListener("change", (ke) => {
|
|
10762
10761
|
e.setLocalStore("sort", ke.currentTarget.value);
|
|
10763
10762
|
}), M(D, () => Object.keys(Vi).map((ke) => (() => {
|
|
10764
|
-
var
|
|
10765
|
-
return
|
|
10763
|
+
var ce = ya();
|
|
10764
|
+
return ce.firstChild, ce.value = ke, M(ce, ke, null), ce;
|
|
10766
10765
|
})())), G(() => D.value = l()), D;
|
|
10767
10766
|
}
|
|
10768
|
-
}), null), M(
|
|
10767
|
+
}), null), M(ae, C(H, {
|
|
10769
10768
|
get when() {
|
|
10770
10769
|
return s() === "mutations";
|
|
10771
10770
|
},
|
|
@@ -10774,11 +10773,11 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10774
10773
|
return D.addEventListener("change", (ke) => {
|
|
10775
10774
|
e.setLocalStore("mutationSort", ke.currentTarget.value);
|
|
10776
10775
|
}), M(D, () => Object.keys(Hi).map((ke) => (() => {
|
|
10777
|
-
var
|
|
10778
|
-
return
|
|
10776
|
+
var ce = ya();
|
|
10777
|
+
return ce.firstChild, ce.value = ke, M(ce, ke, null), ce;
|
|
10779
10778
|
})())), G(() => D.value = u()), D;
|
|
10780
10779
|
}
|
|
10781
|
-
}), null), M(
|
|
10780
|
+
}), null), M(ae, C(Vr, {}), null), xe.$$click = () => {
|
|
10782
10781
|
s() === "queries" ? e.setLocalStore("sortOrder", String(c() * -1)) : e.setLocalStore("mutationSortOrder", String(f() * -1));
|
|
10783
10782
|
}, M(xe, C(H, {
|
|
10784
10783
|
get when() {
|
|
@@ -10994,13 +10993,13 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
10994
10993
|
get children() {
|
|
10995
10994
|
var D = Um(), ke = D.firstChild;
|
|
10996
10995
|
return M(ke, C(Uo, {
|
|
10997
|
-
by: (
|
|
10996
|
+
by: (ce) => ce.queryHash,
|
|
10998
10997
|
get each() {
|
|
10999
10998
|
return v();
|
|
11000
10999
|
},
|
|
11001
|
-
children: (
|
|
11000
|
+
children: (ce) => C(c8, {
|
|
11002
11001
|
get query() {
|
|
11003
|
-
return
|
|
11002
|
+
return ce();
|
|
11004
11003
|
}
|
|
11005
11004
|
})
|
|
11006
11005
|
})), G(() => _(D, B(o().overflowQueryContainer, "tsqd-queries-overflow-container"))), D;
|
|
@@ -11012,26 +11011,26 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11012
11011
|
get children() {
|
|
11013
11012
|
var D = Vm(), ke = D.firstChild;
|
|
11014
11013
|
return M(ke, C(Uo, {
|
|
11015
|
-
by: (
|
|
11014
|
+
by: (ce) => ce.mutationId,
|
|
11016
11015
|
get each() {
|
|
11017
11016
|
return x();
|
|
11018
11017
|
},
|
|
11019
|
-
children: (
|
|
11018
|
+
children: (ce) => C(u8, {
|
|
11020
11019
|
get mutation() {
|
|
11021
|
-
return
|
|
11020
|
+
return ce();
|
|
11022
11021
|
}
|
|
11023
11022
|
})
|
|
11024
11023
|
})), G(() => _(D, B(o().overflowQueryContainer, "tsqd-mutations-overflow-container"))), D;
|
|
11025
11024
|
}
|
|
11026
11025
|
}), null), G((D) => {
|
|
11027
|
-
var ke = B(o().queriesContainer, xt() < An && (rt() ||
|
|
11026
|
+
var ke = B(o().queriesContainer, xt() < An && (rt() || dn()) && r`
|
|
11028
11027
|
height: 50%;
|
|
11029
11028
|
max-height: 50%;
|
|
11030
|
-
`, xt() < An && !(rt() ||
|
|
11029
|
+
`, xt() < An && !(rt() || dn()) && r`
|
|
11031
11030
|
height: 100%;
|
|
11032
11031
|
max-height: 100%;
|
|
11033
|
-
`, "tsqd-queries-container"),
|
|
11034
|
-
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;
|
|
11035
11034
|
}, {
|
|
11036
11035
|
e: void 0,
|
|
11037
11036
|
t: void 0,
|
|
@@ -11063,7 +11062,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11063
11062
|
}
|
|
11064
11063
|
}), C(H, {
|
|
11065
11064
|
get when() {
|
|
11066
|
-
return k(() => s() === "mutations")() &&
|
|
11065
|
+
return k(() => s() === "mutations")() && dn();
|
|
11067
11066
|
},
|
|
11068
11067
|
get children() {
|
|
11069
11068
|
return C(h8, {});
|
|
@@ -11173,7 +11172,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11173
11172
|
get children() {
|
|
11174
11173
|
var d = _u(), g = d.firstChild, h = g.nextSibling;
|
|
11175
11174
|
return d.$$click = () => {
|
|
11176
|
-
Nu(e.mutation.mutationId ===
|
|
11175
|
+
Nu(e.mutation.mutationId === dn() ? null : e.mutation.mutationId);
|
|
11177
11176
|
}, M(g, C(H, {
|
|
11178
11177
|
get when() {
|
|
11179
11178
|
return u() === "purple";
|
|
@@ -11210,7 +11209,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11210
11209
|
return [k(() => JSON.stringify(e.mutation.options.mutationKey)), " -", " "];
|
|
11211
11210
|
}
|
|
11212
11211
|
}), null), M(h, () => new Date(e.mutation.state.submittedAt).toLocaleString(), null), G((m) => {
|
|
11213
|
-
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");
|
|
11214
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;
|
|
11215
11214
|
}, {
|
|
11216
11215
|
e: void 0,
|
|
@@ -11441,10 +11440,10 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11441
11440
|
return k(() => !!g())() && m();
|
|
11442
11441
|
},
|
|
11443
11442
|
get children() {
|
|
11444
|
-
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;
|
|
11445
11444
|
qt.firstChild;
|
|
11446
11445
|
var It = qt.nextSibling, Bt = It.nextSibling;
|
|
11447
|
-
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 = () => {
|
|
11448
11447
|
var N;
|
|
11449
11448
|
At({
|
|
11450
11449
|
type: "INVALIDATE",
|
|
@@ -11467,23 +11466,23 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11467
11466
|
if (((N = g()) == null ? void 0 : N.state.data) === void 0)
|
|
11468
11467
|
a(!0), E();
|
|
11469
11468
|
else {
|
|
11470
|
-
const
|
|
11471
|
-
if (!
|
|
11469
|
+
const ue = g();
|
|
11470
|
+
if (!ue) return;
|
|
11472
11471
|
At({
|
|
11473
11472
|
type: "TRIGGER_LOADING",
|
|
11474
|
-
queryHash:
|
|
11473
|
+
queryHash: ue.queryHash
|
|
11475
11474
|
});
|
|
11476
|
-
const Pe =
|
|
11477
|
-
|
|
11475
|
+
const Pe = ue.options;
|
|
11476
|
+
ue.fetch({
|
|
11478
11477
|
...Pe,
|
|
11479
11478
|
queryFn: () => new Promise(() => {
|
|
11480
11479
|
}),
|
|
11481
11480
|
gcTime: -1
|
|
11482
|
-
}),
|
|
11481
|
+
}), ue.setState({
|
|
11483
11482
|
data: void 0,
|
|
11484
11483
|
status: "pending",
|
|
11485
11484
|
fetchMeta: {
|
|
11486
|
-
...
|
|
11485
|
+
...ue.state.fetchMeta,
|
|
11487
11486
|
__previousQueryOptions: Pe
|
|
11488
11487
|
}
|
|
11489
11488
|
});
|
|
@@ -11493,7 +11492,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11493
11492
|
return d().length === 0 || v() === "error";
|
|
11494
11493
|
},
|
|
11495
11494
|
get children() {
|
|
11496
|
-
var N = Ym(),
|
|
11495
|
+
var N = Ym(), ue = N.firstChild, Pe = ue.nextSibling;
|
|
11497
11496
|
return N.$$click = () => {
|
|
11498
11497
|
var pe;
|
|
11499
11498
|
g().state.error ? (At({
|
|
@@ -11506,7 +11505,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11506
11505
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), Se = v() === "pending", Fe = t`
|
|
11507
11506
|
background-color: ${o(r.red[500], r.red[400])};
|
|
11508
11507
|
`;
|
|
11509
|
-
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;
|
|
11510
11509
|
}, {
|
|
11511
11510
|
e: void 0,
|
|
11512
11511
|
t: void 0,
|
|
@@ -11518,7 +11517,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11518
11517
|
return !(d().length === 0 || v() === "error");
|
|
11519
11518
|
},
|
|
11520
11519
|
get children() {
|
|
11521
|
-
var N = Xm(),
|
|
11520
|
+
var N = Xm(), ue = N.firstChild, Pe = ue.nextSibling, pe = Pe.nextSibling;
|
|
11522
11521
|
return pe.firstChild, pe.addEventListener("change", (Ce) => {
|
|
11523
11522
|
const Se = d().find((Fe) => Fe.name === Ce.currentTarget.value);
|
|
11524
11523
|
T(Se);
|
|
@@ -11533,8 +11532,8 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11533
11532
|
}), null), M(N, C(Vr, {}), null), G((Ce) => {
|
|
11534
11533
|
var Se = B(n().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), Fe = t`
|
|
11535
11534
|
background-color: ${A.colors.red[400]};
|
|
11536
|
-
`,
|
|
11537
|
-
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;
|
|
11538
11537
|
}, {
|
|
11539
11538
|
e: void 0,
|
|
11540
11539
|
t: void 0,
|
|
@@ -11547,7 +11546,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11547
11546
|
},
|
|
11548
11547
|
get children() {
|
|
11549
11548
|
var N = Jm();
|
|
11550
|
-
return M(N, C(
|
|
11549
|
+
return M(N, C(cn, {
|
|
11551
11550
|
label: "Data",
|
|
11552
11551
|
defaultExpanded: ["Data"],
|
|
11553
11552
|
get value() {
|
|
@@ -11558,17 +11557,17 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11558
11557
|
get activeQuery() {
|
|
11559
11558
|
return g();
|
|
11560
11559
|
}
|
|
11561
|
-
})), G((
|
|
11560
|
+
})), G((ue) => (ue = A.size[2]) != null ? N.style.setProperty("padding", ue) : N.style.removeProperty("padding")), N;
|
|
11562
11561
|
}
|
|
11563
11562
|
}), It), M($, C(H, {
|
|
11564
11563
|
get when() {
|
|
11565
11564
|
return l() === "edit";
|
|
11566
11565
|
},
|
|
11567
11566
|
get children() {
|
|
11568
|
-
var N = e8(),
|
|
11569
|
-
return N.addEventListener("submit", (
|
|
11570
|
-
|
|
11571
|
-
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");
|
|
11572
11571
|
try {
|
|
11573
11572
|
const bt = JSON.parse(zt);
|
|
11574
11573
|
g().setState({
|
|
@@ -11578,13 +11577,13 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11578
11577
|
} catch {
|
|
11579
11578
|
f(!0);
|
|
11580
11579
|
}
|
|
11581
|
-
}),
|
|
11580
|
+
}), ue.addEventListener("focus", () => f(!1)), M(pe, () => u() ? "Invalid Value" : ""), Se.$$click = () => c("view"), G((he) => {
|
|
11582
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`
|
|
11583
11582
|
color: ${o(r.gray[600], r.gray[300])};
|
|
11584
|
-
`),
|
|
11583
|
+
`), sn = B(n().devtoolsEditFormAction, t`
|
|
11585
11584
|
color: ${o(r.blue[600], r.blue[400])};
|
|
11586
11585
|
`);
|
|
11587
|
-
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;
|
|
11588
11587
|
}, {
|
|
11589
11588
|
e: void 0,
|
|
11590
11589
|
t: void 0,
|
|
@@ -11594,16 +11593,16 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11594
11593
|
n: void 0,
|
|
11595
11594
|
s: void 0,
|
|
11596
11595
|
h: void 0
|
|
11597
|
-
}), G(() =>
|
|
11596
|
+
}), G(() => ue.value = JSON.stringify(y(), null, 2)), N;
|
|
11598
11597
|
}
|
|
11599
|
-
}), It), M(Bt, C(
|
|
11598
|
+
}), It), M(Bt, C(cn, {
|
|
11600
11599
|
label: "Query",
|
|
11601
11600
|
defaultExpanded: ["Query", "queryKey"],
|
|
11602
11601
|
get value() {
|
|
11603
11602
|
return h();
|
|
11604
11603
|
}
|
|
11605
11604
|
})), G((N) => {
|
|
11606
|
-
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`
|
|
11607
11606
|
color: ${o(r.blue[600], r.blue[400])};
|
|
11608
11607
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), Kt = b() === "fetching", zt = t`
|
|
11609
11608
|
background-color: ${o(r.blue[600], r.blue[400])};
|
|
@@ -11613,7 +11612,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11613
11612
|
background-color: ${o(r.yellow[600], r.yellow[400])};
|
|
11614
11613
|
`, xn = B(t`
|
|
11615
11614
|
color: ${o(r.gray[600], r.gray[300])};
|
|
11616
|
-
`, "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`
|
|
11617
11616
|
background-color: ${o(r.gray[600], r.gray[400])};
|
|
11618
11617
|
`, wo = B(t`
|
|
11619
11618
|
color: ${o(r.pink[500], r.pink[400])};
|
|
@@ -11624,7 +11623,7 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11624
11623
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), So = s(), Ar = t`
|
|
11625
11624
|
background-color: ${o(r.cyan[500], r.cyan[400])};
|
|
11626
11625
|
`, Mr = B(n().detailsHeader, "tsqd-query-details-header"), Tr = B(n().detailsHeader, "tsqd-query-details-header"), Rn = A.size[2];
|
|
11627
|
-
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;
|
|
11628
11627
|
}, {
|
|
11629
11628
|
e: void 0,
|
|
11630
11629
|
t: void 0,
|
|
@@ -11659,15 +11658,15 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11659
11658
|
}) : ne, n = k(() => e() === "dark" ? yt(t) : pt(t)), {
|
|
11660
11659
|
colors: r
|
|
11661
11660
|
} = A, o = (u, f) => e() === "dark" ? f : u, i = wt((u) => {
|
|
11662
|
-
const d = u().getAll().find((g) => g.mutationId ===
|
|
11661
|
+
const d = u().getAll().find((g) => g.mutationId === dn());
|
|
11663
11662
|
return d ? d.state.isPaused : !1;
|
|
11664
11663
|
}), s = wt((u) => {
|
|
11665
|
-
const d = u().getAll().find((g) => g.mutationId ===
|
|
11664
|
+
const d = u().getAll().find((g) => g.mutationId === dn());
|
|
11666
11665
|
return d ? d.state.status : "idle";
|
|
11667
11666
|
}), a = k(() => Vn({
|
|
11668
11667
|
isPaused: i(),
|
|
11669
11668
|
status: s()
|
|
11670
|
-
})), 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`
|
|
11671
11670
|
background-color: ${o(r[a()][200], r[a()][700])};
|
|
11672
11671
|
color: ${o(r[a()][700], r[a()][300])};
|
|
11673
11672
|
border-color: ${o(r[a()][400], r[a()][600])};
|
|
@@ -11702,33 +11701,33 @@ var Im = /* @__PURE__ */ z('<div><div aria-hidden=true></div><button type=button
|
|
|
11702
11701
|
get children() {
|
|
11703
11702
|
return s();
|
|
11704
11703
|
}
|
|
11705
|
-
}), 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, {
|
|
11706
11705
|
label: "Variables",
|
|
11707
11706
|
defaultExpanded: ["Variables"],
|
|
11708
11707
|
get value() {
|
|
11709
11708
|
return l().state.variables;
|
|
11710
11709
|
}
|
|
11711
|
-
})), M(E, C(
|
|
11710
|
+
})), M(E, C(cn, {
|
|
11712
11711
|
label: "Context",
|
|
11713
11712
|
defaultExpanded: ["Context"],
|
|
11714
11713
|
get value() {
|
|
11715
11714
|
return l().state.context;
|
|
11716
11715
|
}
|
|
11717
|
-
})), M($, C(
|
|
11716
|
+
})), M($, C(cn, {
|
|
11718
11717
|
label: "Data",
|
|
11719
11718
|
defaultExpanded: ["Data"],
|
|
11720
11719
|
get value() {
|
|
11721
11720
|
return l().state.data;
|
|
11722
11721
|
}
|
|
11723
|
-
})), M(R, C(
|
|
11722
|
+
})), M(R, C(cn, {
|
|
11724
11723
|
label: "Mutation",
|
|
11725
11724
|
defaultExpanded: ["Mutation"],
|
|
11726
11725
|
get value() {
|
|
11727
11726
|
return l();
|
|
11728
11727
|
}
|
|
11729
11728
|
})), G((K) => {
|
|
11730
|
-
var te = B(n().detailsContainer, "tsqd-query-details-container"), re = B(n().detailsHeader, "tsqd-query-details-header"),
|
|
11731
|
-
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;
|
|
11732
11731
|
}, {
|
|
11733
11732
|
e: void 0,
|
|
11734
11733
|
t: void 0,
|
|
@@ -12981,12 +12980,12 @@ const I8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12981
12980
|
)) })
|
|
12982
12981
|
] }) });
|
|
12983
12982
|
}, A8 = async () => null, M8 = () => {
|
|
12984
|
-
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}`;
|
|
12985
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: [
|
|
12986
12985
|
s && /* @__PURE__ */ p(n2, { render: () => /* @__PURE__ */ p(Qa, {}), children: /* @__PURE__ */ p(r2, { app: e }) }),
|
|
12987
|
-
/* @__PURE__ */ F(
|
|
12986
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1", children: [
|
|
12988
12987
|
a && /* @__PURE__ */ p(
|
|
12989
|
-
|
|
12988
|
+
me.Col,
|
|
12990
12989
|
{
|
|
12991
12990
|
sm: "3",
|
|
12992
12991
|
md: "3",
|
|
@@ -12998,7 +12997,7 @@ const I8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12998
12997
|
}
|
|
12999
12998
|
),
|
|
13000
12999
|
/* @__PURE__ */ F(
|
|
13001
|
-
|
|
13000
|
+
me.Col,
|
|
13002
13001
|
{
|
|
13003
13002
|
sm: "4",
|
|
13004
13003
|
md: "8",
|
|
@@ -13657,8 +13656,8 @@ const G8 = ({
|
|
|
13657
13656
|
hasData: s,
|
|
13658
13657
|
fetchNextPage: a
|
|
13659
13658
|
} = j8();
|
|
13660
|
-
return o ? /* @__PURE__ */ p(ht, {}) : s ? /* @__PURE__ */ F(
|
|
13661
|
-
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(
|
|
13662
13661
|
G8,
|
|
13663
13662
|
{
|
|
13664
13663
|
"data-testid": "collect-list-submissions-card",
|
|
@@ -13668,7 +13667,7 @@ const G8 = ({
|
|
|
13668
13667
|
)
|
|
13669
13668
|
}
|
|
13670
13669
|
) }, c)),
|
|
13671
|
-
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(
|
|
13672
13671
|
we,
|
|
13673
13672
|
{
|
|
13674
13673
|
"data-testid": "collect-list-submissions-button-more",
|
|
@@ -13695,7 +13694,7 @@ const G8 = ({
|
|
|
13695
13694
|
filter: void 0
|
|
13696
13695
|
})
|
|
13697
13696
|
), null), Z8 = () => {
|
|
13698
|
-
const { lg: e } =
|
|
13697
|
+
const { lg: e } = pn(), t = Ks(
|
|
13699
13698
|
(n) => n.setSearchSubmission
|
|
13700
13699
|
);
|
|
13701
13700
|
return /* @__PURE__ */ F(Tt, { children: [
|
|
@@ -13845,7 +13844,7 @@ const zu = ({
|
|
|
13845
13844
|
context: n,
|
|
13846
13845
|
handleUpdateSubmission: r
|
|
13847
13846
|
}) => {
|
|
13848
|
-
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();
|
|
13849
13848
|
return /* @__PURE__ */ F("div", { className: `py-16 border-bottom bg-white ${a ? "px-48" : "px-16"}`, children: [
|
|
13850
13849
|
/* @__PURE__ */ p(Z, { align: "center", gap: "8", children: /* @__PURE__ */ p(
|
|
13851
13850
|
we,
|
|
@@ -13909,7 +13908,7 @@ const zu = ({
|
|
|
13909
13908
|
)
|
|
13910
13909
|
] });
|
|
13911
13910
|
}, Uu = "/collect/api", _r = new F2({
|
|
13912
|
-
httpService:
|
|
13911
|
+
httpService: un.http(),
|
|
13913
13912
|
baseUrl: Uu
|
|
13914
13913
|
}), Ir = {
|
|
13915
13914
|
getSubmissions: (e, t) => _r.getSubmissions(e, t),
|
|
@@ -13919,7 +13918,7 @@ const zu = ({
|
|
|
13919
13918
|
const r = new FormData();
|
|
13920
13919
|
return n.files.forEach((o) => {
|
|
13921
13920
|
r.append("files", o);
|
|
13922
|
-
}),
|
|
13921
|
+
}), un.http().postFile(
|
|
13923
13922
|
`${Uu}/collections/${e}/submissions/${t}/attachments`,
|
|
13924
13923
|
r,
|
|
13925
13924
|
{ headers: { "Content-Type": "multipart/form-data" } }
|
|
@@ -14338,7 +14337,7 @@ const zu = ({
|
|
|
14338
14337
|
}, d6 = ({
|
|
14339
14338
|
collectionId: e
|
|
14340
14339
|
}) => {
|
|
14341
|
-
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) => {
|
|
14342
14341
|
if (a)
|
|
14343
14342
|
try {
|
|
14344
14343
|
s(!0), await f.mutateAsync({
|
|
@@ -14460,7 +14459,7 @@ const zu = ({
|
|
|
14460
14459
|
}, f6 = ({
|
|
14461
14460
|
collection: e
|
|
14462
14461
|
}) => {
|
|
14463
|
-
const t = Ge(), { lg: n } =
|
|
14462
|
+
const t = Ge(), { lg: n } = pn(), r = Rt.use.setIsPastDeadline();
|
|
14464
14463
|
return Le(() => {
|
|
14465
14464
|
r(hs(e.deadline));
|
|
14466
14465
|
}, [e.deadline, r]), /* @__PURE__ */ F(
|
|
@@ -14477,9 +14476,9 @@ const zu = ({
|
|
|
14477
14476
|
onClickBack: () => t("/list-collections")
|
|
14478
14477
|
}
|
|
14479
14478
|
),
|
|
14480
|
-
/* @__PURE__ */ F(
|
|
14479
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1 m-16 gap-24", children: [
|
|
14481
14480
|
/* @__PURE__ */ p(
|
|
14482
|
-
|
|
14481
|
+
me.Col,
|
|
14483
14482
|
{
|
|
14484
14483
|
sm: "3",
|
|
14485
14484
|
md: "3",
|
|
@@ -14491,7 +14490,7 @@ const zu = ({
|
|
|
14491
14490
|
}
|
|
14492
14491
|
),
|
|
14493
14492
|
/* @__PURE__ */ F(
|
|
14494
|
-
|
|
14493
|
+
me.Col,
|
|
14495
14494
|
{
|
|
14496
14495
|
sm: "4",
|
|
14497
14496
|
md: "8",
|
|
@@ -14800,7 +14799,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14800
14799
|
collection: e,
|
|
14801
14800
|
submission: t
|
|
14802
14801
|
}) => {
|
|
14803
|
-
const n = Ge(), { lg: r } =
|
|
14802
|
+
const n = Ge(), { lg: r } = pn(), { isOpen: o, onClose: i, handleUpdateSubmission: s } = C6({
|
|
14804
14803
|
collection: e,
|
|
14805
14804
|
submission: t
|
|
14806
14805
|
}), a = Rt.use.setIsPastDeadline();
|
|
@@ -14821,9 +14820,9 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14821
14820
|
handleUpdateSubmission: s
|
|
14822
14821
|
}
|
|
14823
14822
|
),
|
|
14824
|
-
/* @__PURE__ */ F(
|
|
14823
|
+
/* @__PURE__ */ F(me, { className: "flex-grow-1 p-16 gap-24", children: [
|
|
14825
14824
|
/* @__PURE__ */ p(
|
|
14826
|
-
|
|
14825
|
+
me.Col,
|
|
14827
14826
|
{
|
|
14828
14827
|
sm: "3",
|
|
14829
14828
|
md: "3",
|
|
@@ -14835,7 +14834,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14835
14834
|
}
|
|
14836
14835
|
),
|
|
14837
14836
|
/* @__PURE__ */ F(
|
|
14838
|
-
|
|
14837
|
+
me.Col,
|
|
14839
14838
|
{
|
|
14840
14839
|
sm: "4",
|
|
14841
14840
|
md: "8",
|
|
@@ -14883,7 +14882,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14883
14882
|
bi(n)
|
|
14884
14883
|
), null;
|
|
14885
14884
|
}, I6 = () => {
|
|
14886
|
-
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(
|
|
14887
14886
|
Number(r.collectionId)
|
|
14888
14887
|
);
|
|
14889
14888
|
if (f)
|
|
@@ -14911,7 +14910,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14911
14910
|
}
|
|
14912
14911
|
};
|
|
14913
14912
|
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
14914
|
-
/* @__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(
|
|
14915
14914
|
Z,
|
|
14916
14915
|
{
|
|
14917
14916
|
direction: "column",
|
|
@@ -14956,7 +14955,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14956
14955
|
bi(n)
|
|
14957
14956
|
), null;
|
|
14958
14957
|
}, M6 = () => {
|
|
14959
|
-
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(
|
|
14960
14959
|
[]
|
|
14961
14960
|
), { data: h, isLoading: m } = go(
|
|
14962
14961
|
Number(r.collectionId)
|
|
@@ -15002,7 +15001,7 @@ const y6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
15002
15001
|
}
|
|
15003
15002
|
};
|
|
15004
15003
|
return /* @__PURE__ */ F("div", { className: "w-100", children: [
|
|
15005
|
-
/* @__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(
|
|
15006
15005
|
Z,
|
|
15007
15006
|
{
|
|
15008
15007
|
direction: "column",
|