@edifice.io/collect-frontend 0.2.2-develop-pedago.3.20260505125330 → 0.2.2-develop-pedago.3.20260505134539
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/{AppHeaderCollection-qwYJwBlj.js → AppHeaderCollection-C1vRQ7Wm.js} +2 -2
- package/lib/{CXEL7IU7-CRpsOMFM.js → CXEL7IU7-C0InN-y1.js} +2 -2
- package/lib/{Collection-B8aCbLzK.js → Collection-g0awPmRQ.js} +5 -5
- package/lib/{CollectionsLayout-BO410iaV.js → CollectionsLayout-C__-xeB2.js} +1 -1
- package/lib/{CollectionsList-NVloHr8C.js → CollectionsList-BSflnR0d.js} +3 -3
- package/lib/{DeleteCollectionModal-DuGbsyCK.js → DeleteCollectionModal-I1wd6wNF.js} +2 -2
- package/lib/{DropdownActionTable-CmplLfuA.js → DropdownActionTable-CImEYZx9.js} +1 -1
- package/lib/{FormEdit-b8S9coZs.js → FormEdit-DEm6mRJf.js} +2 -2
- package/lib/{HASRA6WW-C2gD7XVz.js → HASRA6WW-WM50LG-T.js} +1 -1
- package/lib/{I3HPI4QX-CsdJtd3g.js → I3HPI4QX-D0jOIBK8.js} +2 -2
- package/lib/{MembersEdit-D5jTpXmr.js → MembersEdit-BsqgTRkp.js} +2 -2
- package/lib/{Root-Duqwncex.js → Root-D7SKVrPc.js} +1 -1
- package/lib/{Submission-aNcpHj47.js → Submission-Dcbb5Cg7.js} +4 -4
- package/lib/{SubmissionList-C8FRm0N7.js → SubmissionList-CswecSGT.js} +1 -1
- package/lib/features/collect-form/components/CollectForm.d.ts +1 -0
- package/lib/{index-fCsG2Pkd.js → index-B1qXWGkk.js} +183 -182
- package/lib/index.js +1 -1
- package/lib/{submission.queries-CHblpw_I.js → submission.queries-BuJ66HKc.js} +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEdificeClient as m, Flex as r, Button as u, IconButton as I, useBreakpoint as f, useDate as S, Badge as g } from "@edifice.io/react";
|
|
3
3
|
import { IconPinOn as O, IconOptions as y, IconSave as L, IconSend as v, IconArrowLeft as M, IconCalendarLight as N } from "@edifice.io/react/icons";
|
|
4
4
|
import { useTranslation as p } from "react-i18next";
|
|
5
|
-
import { u as b, D as w } from "./DropdownActionTable-
|
|
5
|
+
import { u as b, D as w } from "./DropdownActionTable-CImEYZx9.js";
|
|
6
6
|
import { ContribSubmissionStatus as x } from "@edifice.io/collect-client-rest";
|
|
7
7
|
import { create as A } from "zustand";
|
|
8
|
-
import { c as H } from "./index-
|
|
8
|
+
import { c as H } from "./index-B1qXWGkk.js";
|
|
9
9
|
const D = ({
|
|
10
10
|
collection: n
|
|
11
11
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./HASRA6WW-
|
|
2
|
-
import { n as v, o as C, p as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./HASRA6WW-WM50LG-T.js";
|
|
2
|
+
import { n as v, o as C, p as e } from "./index-B1qXWGkk.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -3,15 +3,15 @@ import { SubmissionStatus as f, ManagerSubmissionStatus as M, WORKFLOW_RIGHTS as
|
|
|
3
3
|
import { useDirectory as R, Flex as u, Avatar as P, Badge as v, useEdificeClient as w, Heading as O, Table as C, Button as x, LoadingScreen as T, Modal as I, Dropdown as N, useToast as G, useBreakpoint as j, useDate as _, EmptyScreen as K, Checkbox as Y, Grid as L, useHasWorkflow as J } from "@edifice.io/react";
|
|
4
4
|
import { useNavigate as $, useParams as X } from "react-router-dom";
|
|
5
5
|
import { useState as A, useEffect as k } from "react";
|
|
6
|
-
import { A as Z, C as q } from "./AppHeaderCollection-
|
|
6
|
+
import { A as Z, C as q } from "./AppHeaderCollection-C1vRQ7Wm.js";
|
|
7
7
|
import { IconUsers as ee, IconRafterDown as U, IconEdit as te, IconTextPage as se, IconCalendarLight as ne } from "@edifice.io/react/icons";
|
|
8
8
|
import { useTranslation as D } from "react-i18next";
|
|
9
|
-
import { u as ie, a as oe, s as ae } from "./submission.queries-
|
|
9
|
+
import { u as ie, a as oe, s as ae } from "./submission.queries-BuJ66HKc.js";
|
|
10
10
|
import { create as ce } from "zustand";
|
|
11
|
-
import { c as le, f as re, P as de, g as ue } from "./index-
|
|
11
|
+
import { c as le, f as re, P as de, g as ue } from "./index-B1qXWGkk.js";
|
|
12
12
|
import { u as F } from "./useGetStatusSubmission-DxHmLPxr.js";
|
|
13
|
-
import { u as E } from "./DropdownActionTable-
|
|
14
|
-
import { D as me } from "./DeleteCollectionModal-
|
|
13
|
+
import { u as E } from "./DropdownActionTable-CImEYZx9.js";
|
|
14
|
+
import { D as me } from "./DeleteCollectionModal-I1wd6wNF.js";
|
|
15
15
|
import { Editor as H } from "@edifice.io/react/editor";
|
|
16
16
|
import { E as he } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
17
17
|
const W = (t) => {
|
|
@@ -5,7 +5,7 @@ import { Suspense as S } from "react";
|
|
|
5
5
|
import { useNavigate as E, useLocation as O, Navigate as T, Outlet as b } from "react-router-dom";
|
|
6
6
|
import { IconDepositeInbox as A, IconPlus as R } from "@edifice.io/react/icons";
|
|
7
7
|
import { useTranslation as w } from "react-i18next";
|
|
8
|
-
import { u as y, M as s, C as H } from "./index-
|
|
8
|
+
import { u as y, M as s, C as H } from "./index-B1qXWGkk.js";
|
|
9
9
|
function k() {
|
|
10
10
|
const { appCode: l } = d(), { t: o } = w(l), t = E(), c = u(p.COLLECTION_CREATE);
|
|
11
11
|
return /* @__PURE__ */ a("div", { className: "d-flex flex-fill align-items-center justify-content-end gap-12 align-self-end", children: [
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as e, Fragment as T, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useMemo as L, useCallback as B, useEffect as E } from "react";
|
|
3
3
|
import { S as A } from "./SearchBarCollect-DBKaVVDV.js";
|
|
4
|
-
import { c as F, a as M, W as O, b as R } from "./index-
|
|
4
|
+
import { c as F, a as M, W as O, b as R } from "./index-B1qXWGkk.js";
|
|
5
5
|
import { useDate as $, Table as m, Flex as I, Badge as k, IconButton as S, useEdificeClient as v, EmptyScreen as G, LoadingScreen as j } from "@edifice.io/react";
|
|
6
6
|
import { useTranslation as N } from "react-i18next";
|
|
7
7
|
import { E as Q } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
8
|
-
import { D as W } from "./DeleteCollectionModal-
|
|
8
|
+
import { D as W } from "./DeleteCollectionModal-I1wd6wNF.js";
|
|
9
9
|
import { SortDirection as b, CollectionSortField as y } from "@edifice.io/collect-client-rest";
|
|
10
10
|
import { create as _ } from "zustand";
|
|
11
11
|
import { IconOptions as H, IconRafterLeft as z, IconRafterRight as K, IconListOrder as U, IconArrowUp as Y, IconArrowDown as Z } from "@edifice.io/react/icons";
|
|
12
12
|
import { t as q } from "i18next";
|
|
13
13
|
import { useNavigate as J } from "react-router-dom";
|
|
14
|
-
import { D as V } from "./DropdownActionTable-
|
|
14
|
+
import { D as V } from "./DropdownActionTable-CImEYZx9.js";
|
|
15
15
|
const X = {
|
|
16
16
|
search: "",
|
|
17
17
|
sortBy: y.DEADLINE,
|
|
@@ -2,8 +2,8 @@ import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEdificeClient as m, useToast as h, Modal as d, Button as C } from "@edifice.io/react";
|
|
3
3
|
import { IconDelete as f } from "@edifice.io/react/icons";
|
|
4
4
|
import { useTranslation as p } from "react-i18next";
|
|
5
|
-
import { h as M } from "./index-
|
|
6
|
-
import { u as D } from "./DropdownActionTable-
|
|
5
|
+
import { h as M } from "./index-B1qXWGkk.js";
|
|
6
|
+
import { u as D } from "./DropdownActionTable-CImEYZx9.js";
|
|
7
7
|
const y = () => {
|
|
8
8
|
const { appCode: r } = m(), { t: n } = p(r), e = h(), a = M(), { isDeleteModalOpen: l, onCloseDeleteModal: c, deleteCollectionId: i } = D((o) => ({
|
|
9
9
|
isDeleteModalOpen: o.isDeleteModalOpen,
|
|
@@ -6,7 +6,7 @@ import { IconExternalLink as I, IconEdit as h, IconShare as O, IconDelete as w }
|
|
|
6
6
|
import { useTranslation as D } from "react-i18next";
|
|
7
7
|
import { useNavigate as C } from "react-router-dom";
|
|
8
8
|
import { create as b } from "zustand";
|
|
9
|
-
import { c as M } from "./index-
|
|
9
|
+
import { c as M } from "./index-B1qXWGkk.js";
|
|
10
10
|
const T = b((e) => ({
|
|
11
11
|
isDeleteModalOpen: !1,
|
|
12
12
|
deleteCollectionId: null,
|
|
@@ -4,8 +4,8 @@ import { useEdificeClient as I, useBreakpoint as w, useToast as E, useHasWorkflo
|
|
|
4
4
|
import { useState as O } from "react";
|
|
5
5
|
import { useTranslation as P } from "react-i18next";
|
|
6
6
|
import { useParams as k, useNavigate as A } from "react-router-dom";
|
|
7
|
-
import { m as Q, f as R, P as W, F as j, g as H } from "./index-
|
|
8
|
-
import { s as S } from "./submission.queries-
|
|
7
|
+
import { m as Q, f as R, P as W, F as j, g as H } from "./index-B1qXWGkk.js";
|
|
8
|
+
import { s as S } from "./submission.queries-BuJ66HKc.js";
|
|
9
9
|
const J = (s) => async ({ params: i }) => {
|
|
10
10
|
const a = Number(i.collectionId);
|
|
11
11
|
return await s.ensureQueryData(H(a)), await s.prefetchInfiniteQuery(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var bs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var qe = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { q as z, r as H, o as D, p as v, s as xe, t as wt, v as _o, w as N, x as k, y as G, z as T, A as ws, B as or, D as $e, E as V, G as Gn, H as Vn, I as dt, J as M, K as q, L as xs, N as cn, O as Ne, Q as $s, R as qt, T as zt, U as Cs, V as Ss, X as $n, Y as ks, Z as Br, _ as Kt, $ as Ro, a0 as Es, a1 as W, a2 as Nr, a3 as Ds, a4 as As, a5 as ir, a6 as Ms, a7 as Ts, a8 as Fs, a9 as zn, aa as Is, ab as Os, ac as oe, ad as Ls, ae as Ps } from "./index-
|
|
4
|
+
import { q as z, r as H, o as D, p as v, s as xe, t as wt, v as _o, w as N, x as k, y as G, z as T, A as ws, B as or, D as $e, E as V, G as Gn, H as Vn, I as dt, J as M, K as q, L as xs, N as cn, O as Ne, Q as $s, R as qt, T as zt, U as Cs, V as Ss, X as $n, Y as ks, Z as Br, _ as Kt, $ as Ro, a0 as Es, a1 as W, a2 as Nr, a3 as Ds, a4 as As, a5 as ir, a6 as Ms, a7 as Ts, a8 as Fs, a9 as zn, aa as Is, ab as Os, ac as oe, ad as Ls, ae as Ps } from "./index-B1qXWGkk.js";
|
|
5
5
|
var qs = (e) => e != null, _s = (e) => e.filter(qs);
|
|
6
6
|
function Rs(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-
|
|
2
|
-
import { n as p, o as d, p as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-WM50LG-T.js";
|
|
2
|
+
import { n as p, o as d, p as e } from "./index-B1qXWGkk.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -3,8 +3,8 @@ import { WORKFLOW_RIGHTS as N } from "@edifice.io/collect-client-rest";
|
|
|
3
3
|
import { useEdificeClient as v, useBreakpoint as I, useToast as D, useHasWorkflow as E, LoadingScreen as O, Grid as l, Flex as d, Button as u } from "@edifice.io/react";
|
|
4
4
|
import { useTranslation as S } from "react-i18next";
|
|
5
5
|
import { useParams as k, useNavigate as w } from "react-router-dom";
|
|
6
|
-
import { i as A, j as m, f as L, P as j, k as P, g as Q, l as R } from "./index-
|
|
7
|
-
import { s as U } from "./submission.queries-
|
|
6
|
+
import { i as A, j as m, f as L, P as j, k as P, g as Q, l as R } from "./index-B1qXWGkk.js";
|
|
7
|
+
import { s as U } from "./submission.queries-BuJ66HKc.js";
|
|
8
8
|
const K = (o) => async ({ params: t }) => {
|
|
9
9
|
const s = Number(t.collectionId);
|
|
10
10
|
return await o.ensureQueryData(Q(s)), await o.prefetchInfiniteQuery(
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as t, Fragment as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { WORKFLOW_RIGHTS as f } from "@edifice.io/collect-client-rest";
|
|
3
3
|
import { useEdificeClient as u, useHasWorkflow as l, LoadingScreen as m, Layout as p } from "@edifice.io/react";
|
|
4
4
|
import { useLoaderData as L, Outlet as e, ScrollRestoration as n } from "react-router-dom";
|
|
5
|
-
import { P as d } from "./index-
|
|
5
|
+
import { P as d } from "./index-B1qXWGkk.js";
|
|
6
6
|
const g = async () => null;
|
|
7
7
|
function E() {
|
|
8
8
|
const { init: s } = u(), i = l(f.COLLECTION_ACCESS), o = L(), a = (o == null ? void 0 : o.header) !== !1;
|
|
@@ -2,14 +2,14 @@ import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEdificeClient as m, Flex as l, Heading as y, IconButton as v, Modal as u, Button as C, useToast as E, useBreakpoint as O, Grid as h, LoadingScreen as P } from "@edifice.io/react";
|
|
3
3
|
import { useNavigate as x, useParams as k } from "react-router-dom";
|
|
4
4
|
import { useState as B, useEffect as N } from "react";
|
|
5
|
-
import { u as g, A as T, C as j } from "./AppHeaderCollection-
|
|
5
|
+
import { u as g, A as T, C as j } from "./AppHeaderCollection-C1vRQ7Wm.js";
|
|
6
6
|
import { Editor as U } from "@edifice.io/react/editor";
|
|
7
7
|
import { IconPinOn as A, IconRafterUp as H, IconRafterDown as Q, IconSend as F, IconTextPage as R } from "@edifice.io/react/icons";
|
|
8
8
|
import { useTranslation as b } from "react-i18next";
|
|
9
9
|
import { ContribSubmissionStatus as $ } from "@edifice.io/collect-client-rest";
|
|
10
|
-
import { u as w } from "./DropdownActionTable-
|
|
11
|
-
import { b as W, c as z, d as G } from "./submission.queries-
|
|
12
|
-
import { f as V, P as J, g as K } from "./index-
|
|
10
|
+
import { u as w } from "./DropdownActionTable-CImEYZx9.js";
|
|
11
|
+
import { b as W, c as z, d as G } from "./submission.queries-BuJ66HKc.js";
|
|
12
|
+
import { f as V, P as J, g as K } from "./index-B1qXWGkk.js";
|
|
13
13
|
const I = ({
|
|
14
14
|
collection: n,
|
|
15
15
|
isMobile: o = !1
|
|
@@ -4,7 +4,7 @@ import { S as j } from "./SearchBarCollect-DBKaVVDV.js";
|
|
|
4
4
|
import { CollectionStatus as N, SubmissionStatus as v } from "@edifice.io/collect-client-rest";
|
|
5
5
|
import { useTranslation as S } from "react-i18next";
|
|
6
6
|
import { create as R } from "zustand";
|
|
7
|
-
import { c as U, d as Y, e as k } from "./index-
|
|
7
|
+
import { c as U, d as Y, e as k } from "./index-B1qXWGkk.js";
|
|
8
8
|
import { IconRafterDown as z } from "@edifice.io/react/icons";
|
|
9
9
|
import { useNavigate as A } from "react-router-dom";
|
|
10
10
|
import { E as G } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
@@ -18,6 +18,7 @@ export interface CollectFormProps {
|
|
|
18
18
|
collection?: CollectionDto;
|
|
19
19
|
onDataChange?: (data: WizardData) => void;
|
|
20
20
|
onValidityChange?: (isValid: boolean) => void;
|
|
21
|
+
i18nNamespace?: string;
|
|
21
22
|
}
|
|
22
23
|
declare const CollectForm: React.FC<CollectFormProps>;
|
|
23
24
|
export default CollectForm;
|
|
@@ -3,7 +3,7 @@ var tn = (e) => {
|
|
|
3
3
|
};
|
|
4
4
|
var nn = (e, t, n) => t.has(e) || tn("Cannot " + n);
|
|
5
5
|
var y = (e, t, n) => (nn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? tn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), T = (e, t, n, r) => (nn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
6
|
-
import { jsx as f, jsxs as
|
|
6
|
+
import { jsx as f, jsxs as k, Fragment as Ht } from "react/jsx-runtime";
|
|
7
7
|
import { EdificeClientProvider as wn, useEdificeClient as ke, Heading as Dt, Button as re, Layout as Mr, Stepper as Cn, Grid as $, FormControl as Z, Label as he, Input as In, DatePicker as An, AddAttachments as Tn, useIsAdmlcOrAdmc as On, useUser as En, useDebounce as kr, Flex as at, Combobox as Lr, Alert as Ur, UserRightsList as _r, useToast as Fr, useBreakpoint as Vr, EdificeThemeProvider as Br, LoadingScreen as qr, useHasWorkflow as $r, Menu as Tt, Tree as Kr } from "@edifice.io/react";
|
|
8
8
|
import { useQueryClient as z, onlineManager as Nn, QueryClient as Gr, QueryCache as jr, QueryClientProvider as xn, queryOptions as Ot, useQuery as Qr, useMutation as nt, useInfiniteQuery as Rn } from "@tanstack/react-query";
|
|
9
9
|
import * as K from "react";
|
|
@@ -59,7 +59,7 @@ function ie(e, t) {
|
|
|
59
59
|
R = n, A = r;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function _(e, t) {
|
|
63
63
|
t = t ? Object.assign({}, ht, t) : ht;
|
|
64
64
|
const n = {
|
|
65
65
|
value: e,
|
|
@@ -94,60 +94,60 @@ function hs(e, t, n) {
|
|
|
94
94
|
let r, s, o;
|
|
95
95
|
r = !0, s = e, o = {};
|
|
96
96
|
let i = null, l = Nt, c = null, a = !1, u = "initialValue" in o, d = typeof r == "function" && V(r);
|
|
97
|
-
const m = /* @__PURE__ */ new Set(), [h, p] = (o.storage ||
|
|
97
|
+
const m = /* @__PURE__ */ new Set(), [h, p] = (o.storage || _)(o.initialValue), [v, O] = _(void 0), [U, C] = _(void 0, {
|
|
98
98
|
equals: !1
|
|
99
|
-
}), [
|
|
99
|
+
}), [M, I] = _(u ? "ready" : "unresolved");
|
|
100
100
|
g.context && (c = g.getNextContextId(), o.ssrLoadFrom === "initial" ? l = o.initialValue : g.load && g.has(c) && (l = g.load(c)));
|
|
101
|
-
function
|
|
102
|
-
return i === w && (i = null, F !== void 0 && (u = !0), (w === l ||
|
|
101
|
+
function b(w, E, L, F) {
|
|
102
|
+
return i === w && (i = null, F !== void 0 && (u = !0), (w === l || E === l) && o.onHydrated && queueMicrotask(
|
|
103
103
|
() => o.onHydrated(F, {
|
|
104
|
-
value:
|
|
104
|
+
value: E
|
|
105
105
|
})
|
|
106
|
-
), l = Nt, j(
|
|
106
|
+
), l = Nt, j(E, L)), E;
|
|
107
107
|
}
|
|
108
|
-
function j(w,
|
|
108
|
+
function j(w, E) {
|
|
109
109
|
H(() => {
|
|
110
|
-
|
|
111
|
-
for (const
|
|
110
|
+
E === void 0 && p(() => w), I(E !== void 0 ? "errored" : u ? "ready" : "unresolved"), O(E);
|
|
111
|
+
for (const L of m.keys()) L.decrement();
|
|
112
112
|
m.clear();
|
|
113
113
|
}, !1);
|
|
114
114
|
}
|
|
115
115
|
function S() {
|
|
116
|
-
const w = vs,
|
|
117
|
-
if (
|
|
118
|
-
return R && R.user,
|
|
116
|
+
const w = vs, E = h(), L = v();
|
|
117
|
+
if (L !== void 0 && !i) throw L;
|
|
118
|
+
return R && R.user, E;
|
|
119
119
|
}
|
|
120
120
|
function N(w = !0) {
|
|
121
121
|
if (w !== !1 && a) return;
|
|
122
122
|
a = !1;
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
125
|
-
|
|
123
|
+
const E = d ? d() : r;
|
|
124
|
+
if (E == null || E === !1) {
|
|
125
|
+
b(i, B(h));
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
() => s(
|
|
128
|
+
const L = l !== Nt ? l : B(
|
|
129
|
+
() => s(E, {
|
|
130
130
|
value: h(),
|
|
131
131
|
refetching: w
|
|
132
132
|
})
|
|
133
133
|
);
|
|
134
|
-
return ds(
|
|
135
|
-
|
|
136
|
-
}, !1),
|
|
137
|
-
(F) =>
|
|
138
|
-
(F) =>
|
|
139
|
-
))) : (
|
|
134
|
+
return ds(L) ? (i = L, "value" in L ? (L.status === "success" ? b(i, L.value, void 0, E) : b(i, void 0, Lt(L.value), E), L) : (a = !0, queueMicrotask(() => a = !1), H(() => {
|
|
135
|
+
I(u ? "refreshing" : "pending"), C();
|
|
136
|
+
}, !1), L.then(
|
|
137
|
+
(F) => b(L, F, void 0, E),
|
|
138
|
+
(F) => b(L, void 0, Lt(F), E)
|
|
139
|
+
))) : (b(i, L, void 0, E), L);
|
|
140
140
|
}
|
|
141
141
|
return Object.defineProperties(S, {
|
|
142
142
|
state: {
|
|
143
|
-
get: () =>
|
|
143
|
+
get: () => M()
|
|
144
144
|
},
|
|
145
145
|
error: {
|
|
146
146
|
get: () => v()
|
|
147
147
|
},
|
|
148
148
|
loading: {
|
|
149
149
|
get() {
|
|
150
|
-
const w =
|
|
150
|
+
const w = M();
|
|
151
151
|
return w === "pending" || w === "refreshing";
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -223,7 +223,7 @@ function ys(e) {
|
|
|
223
223
|
return H(e, !1), R = A = null, r ? r.done : void 0;
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
var [gs, Li] = /* @__PURE__ */
|
|
226
|
+
var [gs, Li] = /* @__PURE__ */ _(!1);
|
|
227
227
|
function Ui() {
|
|
228
228
|
return [gs, ys];
|
|
229
229
|
}
|
|
@@ -440,7 +440,7 @@ function Is(e, t, n = {}) {
|
|
|
440
440
|
return qe(() => gt(o)), () => {
|
|
441
441
|
let c = e() || [], a = c.length, u, d;
|
|
442
442
|
return c[Kn], B(() => {
|
|
443
|
-
let h, p, v,
|
|
443
|
+
let h, p, v, O, U, C, M, I, b;
|
|
444
444
|
if (a === 0)
|
|
445
445
|
i !== 0 && (gt(o), o = [], r = [], s = [], i = 0, l && (l = [])), n.fallback && (r = [_t], s[0] = ie((j) => (o[0] = j, n.fallback())), i = 1);
|
|
446
446
|
else if (i === 0) {
|
|
@@ -448,22 +448,22 @@ function Is(e, t, n = {}) {
|
|
|
448
448
|
r[d] = c[d], s[d] = ie(m);
|
|
449
449
|
i = a;
|
|
450
450
|
} else {
|
|
451
|
-
for (v = new Array(a),
|
|
452
|
-
for (
|
|
453
|
-
v[
|
|
454
|
-
for (h = /* @__PURE__ */ new Map(), p = new Array(
|
|
455
|
-
|
|
456
|
-
for (u = C; u <=
|
|
457
|
-
|
|
451
|
+
for (v = new Array(a), O = new Array(a), l && (U = new Array(a)), C = 0, M = Math.min(i, a); C < M && r[C] === c[C]; C++) ;
|
|
452
|
+
for (M = i - 1, I = a - 1; M >= C && I >= C && r[M] === c[I]; M--, I--)
|
|
453
|
+
v[I] = s[M], O[I] = o[M], l && (U[I] = l[M]);
|
|
454
|
+
for (h = /* @__PURE__ */ new Map(), p = new Array(I + 1), d = I; d >= C; d--)
|
|
455
|
+
b = c[d], u = h.get(b), p[d] = u === void 0 ? -1 : u, h.set(b, d);
|
|
456
|
+
for (u = C; u <= M; u++)
|
|
457
|
+
b = r[u], d = h.get(b), d !== void 0 && d !== -1 ? (v[d] = s[u], O[d] = o[u], l && (U[d] = l[u]), d = p[d], h.set(b, d)) : o[u]();
|
|
458
458
|
for (d = C; d < a; d++)
|
|
459
|
-
d in v ? (s[d] = v[d], o[d] =
|
|
459
|
+
d in v ? (s[d] = v[d], o[d] = O[d], l && (l[d] = U[d], l[d](d))) : s[d] = ie(m);
|
|
460
460
|
s = s.slice(0, i = a), r = c.slice(0);
|
|
461
461
|
}
|
|
462
462
|
return s;
|
|
463
463
|
});
|
|
464
464
|
function m(h) {
|
|
465
465
|
if (o[d] = h, l) {
|
|
466
|
-
const [p, v] =
|
|
466
|
+
const [p, v] = _(d);
|
|
467
467
|
return l[d] = v, t(c[d], p);
|
|
468
468
|
}
|
|
469
469
|
return t(c[d]);
|
|
@@ -485,7 +485,7 @@ function As(e, t, n = {}) {
|
|
|
485
485
|
});
|
|
486
486
|
function d(m) {
|
|
487
487
|
o[c] = m;
|
|
488
|
-
const [h, p] =
|
|
488
|
+
const [h, p] = _(a[c]);
|
|
489
489
|
return i[c] = p, t(h, c);
|
|
490
490
|
}
|
|
491
491
|
};
|
|
@@ -634,7 +634,7 @@ function Jn(e) {
|
|
|
634
634
|
const r = (s) => {
|
|
635
635
|
const o = g.context;
|
|
636
636
|
if (o) {
|
|
637
|
-
const [l, c] =
|
|
637
|
+
const [l, c] = _();
|
|
638
638
|
g.count || (g.count = 0), g.count++, (n || (n = e())).then((a) => {
|
|
639
639
|
!g.done && _e(o), g.count--, c(() => a.default), _e();
|
|
640
640
|
}), t = l;
|
|
@@ -1257,7 +1257,7 @@ function Hi(e) {
|
|
|
1257
1257
|
i && (cn().user = i = !1), o || (o = ps(s, () => V(() => e.children)));
|
|
1258
1258
|
const l = r();
|
|
1259
1259
|
if (l instanceof HTMLHeadElement) {
|
|
1260
|
-
const [c, a] =
|
|
1260
|
+
const [c, a] = _(!1), u = () => a(!0);
|
|
1261
1261
|
ie((d) => Bt(l, () => c() ? d() : o(), null)), qe(u);
|
|
1262
1262
|
} else {
|
|
1263
1263
|
const c = rr(e.isSVG ? "g" : "div", e.isSVG), a = t && c.attachShadow ? c.attachShadow({
|
|
@@ -1691,8 +1691,8 @@ var yr = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
1691
1691
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
1692
1692
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
1693
1693
|
const v = yr(h, t, n, r, [...s, p], [...o, e], i);
|
|
1694
|
-
u[p] = v.transformedValue, ee(v.annotations) ? d[p] = v.annotations : Ge(v.annotations) && Me(v.annotations, (
|
|
1695
|
-
d[lr(p) + "." +
|
|
1694
|
+
u[p] = v.transformedValue, ee(v.annotations) ? d[p] = v.annotations : Ge(v.annotations) && Me(v.annotations, (O, U) => {
|
|
1695
|
+
d[lr(p) + "." + U] = O;
|
|
1696
1696
|
});
|
|
1697
1697
|
});
|
|
1698
1698
|
const m = $t(d) ? {
|
|
@@ -1831,7 +1831,7 @@ var el = (e, t = !1) => {
|
|
|
1831
1831
|
status: Mo,
|
|
1832
1832
|
"last updated": br
|
|
1833
1833
|
}, rl = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), sl = () => {
|
|
1834
|
-
const [e, t] =
|
|
1834
|
+
const [e, t] = _("dark");
|
|
1835
1835
|
return ms(() => {
|
|
1836
1836
|
const n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1837
1837
|
t(n.matches ? "dark" : "light");
|
|
@@ -1931,7 +1931,7 @@ var el = (e, t = !1) => {
|
|
|
1931
1931
|
styleNonce: a,
|
|
1932
1932
|
shadowDOMTarget: u
|
|
1933
1933
|
} = e;
|
|
1934
|
-
T(this, ye,
|
|
1934
|
+
T(this, ye, _(t)), T(this, De, n), T(this, We, r), T(this, He, s), T(this, Xe, a), T(this, ge, u), T(this, ve, _(o)), T(this, be, _(i)), T(this, Se, _(l)), T(this, we, _(c));
|
|
1935
1935
|
}
|
|
1936
1936
|
setButtonPosition(e) {
|
|
1937
1937
|
y(this, ve)[1](e);
|
|
@@ -1954,7 +1954,7 @@ var el = (e, t = !1) => {
|
|
|
1954
1954
|
const t = tr(() => {
|
|
1955
1955
|
const n = this, [r] = y(this, ve), [s] = y(this, be), [o] = y(this, Se), [i] = y(this, we), [l] = y(this, ye);
|
|
1956
1956
|
let c;
|
|
1957
|
-
return y(this, Ce) ? c = y(this, Ce) : (c = Jn(() => import("./I3HPI4QX-
|
|
1957
|
+
return y(this, Ce) ? c = y(this, Ce) : (c = Jn(() => import("./I3HPI4QX-D0jOIBK8.js")), T(this, Ce, c)), Sr(y(this, Xe), y(this, ge)), Yn(c, Zn({
|
|
1958
1958
|
get queryFlavor() {
|
|
1959
1959
|
return y(n, De);
|
|
1960
1960
|
},
|
|
@@ -2022,7 +2022,7 @@ var el = (e, t = !1) => {
|
|
|
2022
2022
|
shadowDOMTarget: u,
|
|
2023
2023
|
onClose: d
|
|
2024
2024
|
} = e;
|
|
2025
|
-
T(this, Ie,
|
|
2025
|
+
T(this, Ie, _(t)), T(this, Ze, n), T(this, Je, r), T(this, Ye, s), T(this, et, a), T(this, Ae, u), T(this, Te, _(o)), T(this, Oe, _(i)), T(this, Ee, _(l)), T(this, Ne, _(c)), T(this, xe, _(d));
|
|
2026
2026
|
}
|
|
2027
2027
|
setButtonPosition(e) {
|
|
2028
2028
|
y(this, Te)[1](e);
|
|
@@ -2048,7 +2048,7 @@ var el = (e, t = !1) => {
|
|
|
2048
2048
|
const t = tr(() => {
|
|
2049
2049
|
const n = this, [r] = y(this, Te), [s] = y(this, Oe), [o] = y(this, Ee), [i] = y(this, Ne), [l] = y(this, Ie), [c] = y(this, xe);
|
|
2050
2050
|
let a;
|
|
2051
|
-
return y(this, Re) ? a = y(this, Re) : (a = Jn(() => import("./CXEL7IU7-
|
|
2051
|
+
return y(this, Re) ? a = y(this, Re) : (a = Jn(() => import("./CXEL7IU7-C0InN-y1.js")), T(this, Re, a)), Sr(y(this, et), y(this, Ae)), Yn(a, Zn({
|
|
2052
2052
|
get queryFlavor() {
|
|
2053
2053
|
return y(n, Ze);
|
|
2054
2054
|
},
|
|
@@ -2178,7 +2178,7 @@ const Qt = new Gr({
|
|
|
2178
2178
|
staleTime: 1e3 * 60 * 2
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
|
-
}), ol = ({ children: e }) => /* @__PURE__ */
|
|
2181
|
+
}), ol = ({ children: e }) => /* @__PURE__ */ k(xn, { client: Qt, children: [
|
|
2182
2182
|
/* @__PURE__ */ f(
|
|
2183
2183
|
wn,
|
|
2184
2184
|
{
|
|
@@ -2191,14 +2191,14 @@ const Qt = new Gr({
|
|
|
2191
2191
|
/* @__PURE__ */ f(wr, { initialIsOpen: !1 })
|
|
2192
2192
|
] }), Fo = () => {
|
|
2193
2193
|
const e = Pn(), t = rt(), { appCode: n } = ke(), { t: r } = Le(n);
|
|
2194
|
-
return console.error(e), /* @__PURE__ */
|
|
2194
|
+
return console.error(e), /* @__PURE__ */ k("div", { className: "d-flex flex-column gap-16 align-items-center mt-64", children: [
|
|
2195
2195
|
/* @__PURE__ */ f(Dt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: r("oops") }),
|
|
2196
2196
|
/* @__PURE__ */ f("div", { className: "text", children: r("notfound.or.unauthorized") }),
|
|
2197
2197
|
/* @__PURE__ */ f(re, { color: "primary", onClick: () => t(-1), children: r("back") })
|
|
2198
2198
|
] });
|
|
2199
2199
|
}, Vo = () => {
|
|
2200
2200
|
const e = Pn(), t = rt();
|
|
2201
|
-
return console.error(e), /* @__PURE__ */ f(Mr, { children: /* @__PURE__ */
|
|
2201
|
+
return console.error(e), /* @__PURE__ */ f(Mr, { children: /* @__PURE__ */ k("div", { className: "d-flex flex-column gap-16 align-items-center mt-64", children: [
|
|
2202
2202
|
/* @__PURE__ */ f(Dt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: Et("oops") }),
|
|
2203
2203
|
/* @__PURE__ */ f("div", { className: "text", children: Et("e404.page") }),
|
|
2204
2204
|
/* @__PURE__ */ f(re, { color: "primary", onClick: () => t(-1), children: Et("back") })
|
|
@@ -2280,27 +2280,27 @@ const Ko = ({
|
|
|
2280
2280
|
watch: h,
|
|
2281
2281
|
register: p,
|
|
2282
2282
|
handleSubmit: v,
|
|
2283
|
-
setValue:
|
|
2284
|
-
formState: { isValid:
|
|
2283
|
+
setValue: O,
|
|
2284
|
+
formState: { isValid: U }
|
|
2285
2285
|
} = Vn({
|
|
2286
2286
|
defaultValues: c
|
|
2287
2287
|
});
|
|
2288
2288
|
G(() => {
|
|
2289
|
-
const
|
|
2289
|
+
const b = h((j) => {
|
|
2290
2290
|
t == null || t(j);
|
|
2291
2291
|
});
|
|
2292
|
-
return () =>
|
|
2292
|
+
return () => b.unsubscribe();
|
|
2293
2293
|
}, [h]), G(() => {
|
|
2294
|
-
l(
|
|
2295
|
-
}, [
|
|
2296
|
-
const C = (
|
|
2297
|
-
t == null || t(
|
|
2298
|
-
},
|
|
2299
|
-
|
|
2300
|
-
},
|
|
2301
|
-
d(
|
|
2294
|
+
l(U);
|
|
2295
|
+
}, [U]);
|
|
2296
|
+
const C = (b) => {
|
|
2297
|
+
t == null || t(b), i();
|
|
2298
|
+
}, M = ({ editor: b }) => {
|
|
2299
|
+
O("description", b.isEmpty ? "" : b.getHTML());
|
|
2300
|
+
}, I = (b) => {
|
|
2301
|
+
d(b), O("attachments", b);
|
|
2302
2302
|
};
|
|
2303
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ k(Ht, { children: [
|
|
2304
2304
|
/* @__PURE__ */ f(Cn, { currentStep: o, nbSteps: 2 }),
|
|
2305
2305
|
/* @__PURE__ */ f(Ir, { title: s("collection.wizard.form.title") }),
|
|
2306
2306
|
/* @__PURE__ */ f(
|
|
@@ -2309,8 +2309,8 @@ const Ko = ({
|
|
|
2309
2309
|
id: "formCreateCollection",
|
|
2310
2310
|
role: "form",
|
|
2311
2311
|
onSubmit: v(C),
|
|
2312
|
-
children: /* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */
|
|
2312
|
+
children: /* @__PURE__ */ k($, { children: [
|
|
2313
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */ k(Z, { id: "collectionTitle", isRequired: !0, children: [
|
|
2314
2314
|
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Un, {}), children: s("collection.wizard.create.form.title") }),
|
|
2315
2315
|
/* @__PURE__ */ f(
|
|
2316
2316
|
In,
|
|
@@ -2334,7 +2334,7 @@ const Ko = ({
|
|
|
2334
2334
|
}
|
|
2335
2335
|
)
|
|
2336
2336
|
] }) }),
|
|
2337
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ k(Z, { id: "collectionDeadline", isRequired: !0, children: [
|
|
2338
2338
|
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(_n, {}), children: s("collection.wizard.create.form.deadline") }),
|
|
2339
2339
|
/* @__PURE__ */ f(
|
|
2340
2340
|
me,
|
|
@@ -2342,20 +2342,20 @@ const Ko = ({
|
|
|
2342
2342
|
name: "deadline",
|
|
2343
2343
|
control: m,
|
|
2344
2344
|
rules: { required: !0 },
|
|
2345
|
-
render: ({ field:
|
|
2345
|
+
render: ({ field: b }) => /* @__PURE__ */ f(
|
|
2346
2346
|
An,
|
|
2347
2347
|
{
|
|
2348
2348
|
"data-testid": "collect-create-collection-input-deadline",
|
|
2349
|
-
value:
|
|
2350
|
-
onChange:
|
|
2351
|
-
onBlur:
|
|
2349
|
+
value: b.value,
|
|
2350
|
+
onChange: b.onChange,
|
|
2351
|
+
onBlur: b.onBlur,
|
|
2352
2352
|
className: "w-full form-control"
|
|
2353
2353
|
}
|
|
2354
2354
|
)
|
|
2355
2355
|
}
|
|
2356
2356
|
)
|
|
2357
2357
|
] }) }),
|
|
2358
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ k(
|
|
2359
2359
|
Z,
|
|
2360
2360
|
{
|
|
2361
2361
|
id: "collectionDescription",
|
|
@@ -2377,7 +2377,7 @@ const Ko = ({
|
|
|
2377
2377
|
placeholder: s(
|
|
2378
2378
|
"collection.wizard.create.form.description.placeholder"
|
|
2379
2379
|
),
|
|
2380
|
-
onContentChange:
|
|
2380
|
+
onContentChange: M,
|
|
2381
2381
|
mode: "edit"
|
|
2382
2382
|
}
|
|
2383
2383
|
)
|
|
@@ -2397,7 +2397,7 @@ const Ko = ({
|
|
|
2397
2397
|
"data-testid": "collect-create-collection-input-attachments",
|
|
2398
2398
|
attachments: u,
|
|
2399
2399
|
editMode: !0,
|
|
2400
|
-
onChange:
|
|
2400
|
+
onChange: I
|
|
2401
2401
|
}
|
|
2402
2402
|
)
|
|
2403
2403
|
}
|
|
@@ -2585,7 +2585,7 @@ function Zo(e, t) {
|
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
2587
|
const Jo = () => {
|
|
2588
|
-
var
|
|
2588
|
+
var b, j;
|
|
2589
2589
|
const [e, t] = Hr(Zo, Yo), { usersCollection: n } = ue(), r = En(), s = kr(
|
|
2590
2590
|
e.searchInputValue,
|
|
2591
2591
|
500
|
|
@@ -2603,12 +2603,12 @@ const Jo = () => {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
};
|
|
2605
2605
|
G(() => {
|
|
2606
|
-
|
|
2606
|
+
M(s);
|
|
2607
2607
|
}, [s]);
|
|
2608
2608
|
const a = (S) => S.filter(
|
|
2609
2609
|
(N) => {
|
|
2610
2610
|
var w;
|
|
2611
|
-
return !n.some((
|
|
2611
|
+
return !n.some((E) => E.recipientId === N.id) && N.id !== ((w = r == null ? void 0 : r.user) == null ? void 0 : w.userId);
|
|
2612
2612
|
}
|
|
2613
2613
|
), u = (S) => S.map((N) => ({
|
|
2614
2614
|
value: N.id,
|
|
@@ -2633,7 +2633,7 @@ const Jo = () => {
|
|
|
2633
2633
|
type: "addResult",
|
|
2634
2634
|
payload: d(e.searchAPIResults)
|
|
2635
2635
|
});
|
|
2636
|
-
}, [e.searchAPIResults, n, (
|
|
2636
|
+
}, [e.searchAPIResults, n, (b = r == null ? void 0 : r.user) == null ? void 0 : b.userId]);
|
|
2637
2637
|
const v = (S) => {
|
|
2638
2638
|
t({
|
|
2639
2639
|
type: "addApiResult",
|
|
@@ -2642,8 +2642,8 @@ const Jo = () => {
|
|
|
2642
2642
|
type: "addResult",
|
|
2643
2643
|
payload: d(S)
|
|
2644
2644
|
});
|
|
2645
|
-
},
|
|
2646
|
-
var
|
|
2645
|
+
}, O = async (S) => {
|
|
2646
|
+
var E, L;
|
|
2647
2647
|
t({ type: "isAddingMembers", payload: !0 });
|
|
2648
2648
|
const N = S[0];
|
|
2649
2649
|
if (!N)
|
|
@@ -2663,9 +2663,9 @@ const Jo = () => {
|
|
|
2663
2663
|
pe.fetchSharebookmark(w.id)
|
|
2664
2664
|
);
|
|
2665
2665
|
let It = [];
|
|
2666
|
-
if (((
|
|
2666
|
+
if (((E = F == null ? void 0 : F.users) == null ? void 0 : E.length) > 0 && (It = [
|
|
2667
2667
|
p(F, F.users)
|
|
2668
|
-
]), ((
|
|
2668
|
+
]), ((L = F == null ? void 0 : F.groups) == null ? void 0 : L.length) > 0) {
|
|
2669
2669
|
const Rr = F.groups.map(
|
|
2670
2670
|
(At) => l.fetchQuery(
|
|
2671
2671
|
pe.fetchUsersByGroup(At.id)
|
|
@@ -2691,7 +2691,7 @@ const Jo = () => {
|
|
|
2691
2691
|
} finally {
|
|
2692
2692
|
t({ type: "isAddingMembers", payload: !1 });
|
|
2693
2693
|
}
|
|
2694
|
-
},
|
|
2694
|
+
}, U = (S) => {
|
|
2695
2695
|
const N = S.target.value;
|
|
2696
2696
|
t({
|
|
2697
2697
|
type: "onChange",
|
|
@@ -2700,13 +2700,13 @@ const Jo = () => {
|
|
|
2700
2700
|
type: "addResult",
|
|
2701
2701
|
payload: d(e.searchAPIResults)
|
|
2702
2702
|
});
|
|
2703
|
-
}, C = i ? 3 : 1,
|
|
2703
|
+
}, C = i ? 3 : 1, M = async (S, N = !1) => {
|
|
2704
2704
|
if (t({
|
|
2705
2705
|
type: "isSearching",
|
|
2706
2706
|
payload: !0
|
|
2707
2707
|
}), S.length >= C || N) {
|
|
2708
|
-
const
|
|
2709
|
-
v(
|
|
2708
|
+
const E = S.length >= C || N && S.length > 0 ? await o(S) : [];
|
|
2709
|
+
v(E);
|
|
2710
2710
|
} else
|
|
2711
2711
|
t({
|
|
2712
2712
|
type: "emptyResult",
|
|
@@ -2716,15 +2716,15 @@ const Jo = () => {
|
|
|
2716
2716
|
type: "isSearching",
|
|
2717
2717
|
payload: !1
|
|
2718
2718
|
});
|
|
2719
|
-
},
|
|
2719
|
+
}, I = !e.isSearching && s.length >= C && ((j = e.searchResults) == null ? void 0 : j.length) === 0;
|
|
2720
2720
|
return {
|
|
2721
2721
|
state: e,
|
|
2722
2722
|
searchMinLength: C,
|
|
2723
2723
|
isSearchLoading: e.isSearching,
|
|
2724
2724
|
isAddingMembers: e.isAddingMembers,
|
|
2725
|
-
hasSearchNoResults:
|
|
2726
|
-
handleSearchInputChange:
|
|
2727
|
-
handleSearchSubmit:
|
|
2725
|
+
hasSearchNoResults: I,
|
|
2726
|
+
handleSearchInputChange: U,
|
|
2727
|
+
handleSearchSubmit: O
|
|
2728
2728
|
};
|
|
2729
2729
|
}, ei = ({
|
|
2730
2730
|
handleSearchSubmit: e,
|
|
@@ -2734,21 +2734,21 @@ const Jo = () => {
|
|
|
2734
2734
|
const r = ue.use.usersCollection(), s = ue.use.setUsersCollection(), o = ue.use.addUsersToAdd(), i = ue.use.addUsersToDelete(), l = ue.use.resetUsersDiff(), c = J(null), a = (h) => {
|
|
2735
2735
|
if (h.length === 0) return;
|
|
2736
2736
|
const p = [...r, ...h].filter(
|
|
2737
|
-
(v,
|
|
2737
|
+
(v, O, U) => U.findIndex((C) => C.recipientId === v.recipientId) === O
|
|
2738
2738
|
);
|
|
2739
2739
|
s(p), o(h), n == null || n(p);
|
|
2740
2740
|
}, u = (h) => {
|
|
2741
2741
|
if (h.length === 0) return;
|
|
2742
|
-
const p = new Set(h.map((
|
|
2743
|
-
(
|
|
2742
|
+
const p = new Set(h.map((O) => O.recipientId)), v = r.filter(
|
|
2743
|
+
(O) => !p.has(O.recipientId)
|
|
2744
2744
|
);
|
|
2745
2745
|
s(v), i(h), n == null || n(v);
|
|
2746
2746
|
}, d = (h) => {
|
|
2747
2747
|
h.length !== 0 && (s(h), n == null || n(h));
|
|
2748
2748
|
}, m = async (h) => {
|
|
2749
2749
|
(await e(h)).forEach((v) => {
|
|
2750
|
-
var
|
|
2751
|
-
(
|
|
2750
|
+
var O;
|
|
2751
|
+
(O = c.current) == null || O.addItem(v);
|
|
2752
2752
|
});
|
|
2753
2753
|
};
|
|
2754
2754
|
return G(() => {
|
|
@@ -2774,24 +2774,24 @@ function ti({
|
|
|
2774
2774
|
}) {
|
|
2775
2775
|
var N;
|
|
2776
2776
|
const { appCode: s } = ke(), { t: o } = Le(s), { currentStep: i } = Zt(), l = i < 0 ? 0 : i, c = En(), a = bt(() => {
|
|
2777
|
-
var w,
|
|
2778
|
-
return (w = e == null ? void 0 : e.sharings) != null && w.length ? e.sharings : (
|
|
2777
|
+
var w, E;
|
|
2778
|
+
return (w = e == null ? void 0 : e.sharings) != null && w.length ? e.sharings : (E = n == null ? void 0 : n.sharings) != null && E.length ? n.sharings.map(Qo) : [];
|
|
2779
2779
|
}, [n == null ? void 0 : n.sharings, e == null ? void 0 : e.sharings]), {
|
|
2780
2780
|
state: { searchResults: u, searchInputValue: d },
|
|
2781
2781
|
isSearchLoading: m,
|
|
2782
2782
|
isAddingMembers: h,
|
|
2783
2783
|
hasSearchNoResults: p,
|
|
2784
2784
|
searchMinLength: v,
|
|
2785
|
-
handleSearchInputChange:
|
|
2786
|
-
handleSearchSubmit:
|
|
2785
|
+
handleSearchInputChange: O,
|
|
2786
|
+
handleSearchSubmit: U
|
|
2787
2787
|
} = Jo(), {
|
|
2788
2788
|
handleAddItems: C,
|
|
2789
|
-
handleDeleteItems:
|
|
2790
|
-
handleUpdateItems:
|
|
2791
|
-
handleSearchResultsChange:
|
|
2789
|
+
handleDeleteItems: M,
|
|
2790
|
+
handleUpdateItems: I,
|
|
2791
|
+
handleSearchResultsChange: b,
|
|
2792
2792
|
userRightsListRef: j
|
|
2793
2793
|
} = ei({
|
|
2794
|
-
handleSearchSubmit:
|
|
2794
|
+
handleSearchSubmit: U,
|
|
2795
2795
|
initialSharings: a,
|
|
2796
2796
|
onSharingsChange: (w) => {
|
|
2797
2797
|
t == null || t({ sharings: w }), r == null || r(w);
|
|
@@ -2803,9 +2803,9 @@ function ti({
|
|
|
2803
2803
|
disabled: !0
|
|
2804
2804
|
}
|
|
2805
2805
|
] : u ?? [];
|
|
2806
|
-
return /* @__PURE__ */
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
-
/* @__PURE__ */
|
|
2806
|
+
return /* @__PURE__ */ k($, { className: "m-16 gap-24", children: [
|
|
2807
|
+
/* @__PURE__ */ k($.Col, { sm: "4", md: "8", lg: "3", xl: "5", children: [
|
|
2808
|
+
/* @__PURE__ */ k(at, { gap: "16", direction: "column", children: [
|
|
2809
2809
|
/* @__PURE__ */ f(Cn, { currentStep: l, nbSteps: 2 }),
|
|
2810
2810
|
/* @__PURE__ */ f(Ir, { title: o("collection.wizard.members.title") })
|
|
2811
2811
|
] }),
|
|
@@ -2819,8 +2819,8 @@ function ti({
|
|
|
2819
2819
|
noResult: p,
|
|
2820
2820
|
options: S,
|
|
2821
2821
|
searchMinLength: v,
|
|
2822
|
-
onSearchInputChange:
|
|
2823
|
-
onSearchResultsChange:
|
|
2822
|
+
onSearchInputChange: O,
|
|
2823
|
+
onSearchResultsChange: b
|
|
2824
2824
|
}
|
|
2825
2825
|
),
|
|
2826
2826
|
/* @__PURE__ */ f(Ur, { type: "info", className: "mt-24", children: /* @__PURE__ */ f(
|
|
@@ -2844,8 +2844,8 @@ function ti({
|
|
|
2844
2844
|
isLoading: !1,
|
|
2845
2845
|
isReadOnly: !1,
|
|
2846
2846
|
onAddItems: C,
|
|
2847
|
-
onChange:
|
|
2848
|
-
onDeleteItems:
|
|
2847
|
+
onChange: I,
|
|
2848
|
+
onDeleteItems: M,
|
|
2849
2849
|
ownerId: ((N = c.user) == null ? void 0 : N.userId) ?? "",
|
|
2850
2850
|
resourceRights: {
|
|
2851
2851
|
contrib: {
|
|
@@ -2962,9 +2962,9 @@ const Tr = Wt(null), ni = () => {
|
|
|
2962
2962
|
block: "center"
|
|
2963
2963
|
});
|
|
2964
2964
|
}, [o]);
|
|
2965
|
-
const
|
|
2965
|
+
const O = () => {
|
|
2966
2966
|
u == null || u(), h("/");
|
|
2967
|
-
},
|
|
2967
|
+
}, U = async () => {
|
|
2968
2968
|
try {
|
|
2969
2969
|
v(!0);
|
|
2970
2970
|
const C = await d.mutateAsync({
|
|
@@ -2972,11 +2972,11 @@ const Tr = Wt(null), ni = () => {
|
|
|
2972
2972
|
content: a.description,
|
|
2973
2973
|
deadline: a.deadline ?? /* @__PURE__ */ new Date(),
|
|
2974
2974
|
// FIXME: faire une vraie traduction dans le format attendu par le backend avant envoi
|
|
2975
|
-
attachments: a.attachments.map((
|
|
2976
|
-
name:
|
|
2975
|
+
attachments: a.attachments.map((M) => ({
|
|
2976
|
+
name: M.name,
|
|
2977
2977
|
type: Bn.ATTACHMENT,
|
|
2978
|
-
uri:
|
|
2979
|
-
mimeType:
|
|
2978
|
+
uri: M.filename,
|
|
2979
|
+
mimeType: M.contentType
|
|
2980
2980
|
})),
|
|
2981
2981
|
sharings: a.sharings.map(Ar)
|
|
2982
2982
|
});
|
|
@@ -2993,7 +2993,7 @@ const Tr = Wt(null), ni = () => {
|
|
|
2993
2993
|
v(!1);
|
|
2994
2994
|
}
|
|
2995
2995
|
};
|
|
2996
|
-
return /* @__PURE__ */
|
|
2996
|
+
return /* @__PURE__ */ k(Ht, { children: [
|
|
2997
2997
|
/* @__PURE__ */ f($, { className: "flex-grow-1 gap-64 px-md-8 px-lg-48 position-relative", children: /* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", className: `${c && "ms-64"}`, children: /* @__PURE__ */ f(
|
|
2998
2998
|
at,
|
|
2999
2999
|
{
|
|
@@ -3004,7 +3004,7 @@ const Tr = Wt(null), ni = () => {
|
|
|
3004
3004
|
children: e
|
|
3005
3005
|
}
|
|
3006
3006
|
) }) }),
|
|
3007
|
-
o === 1 ? /* @__PURE__ */
|
|
3007
|
+
o === 1 ? /* @__PURE__ */ k(at, { justify: "end", className: "mt-auto px-48 pb-64 gap-16", children: [
|
|
3008
3008
|
/* @__PURE__ */ f(
|
|
3009
3009
|
re,
|
|
3010
3010
|
{
|
|
@@ -3024,7 +3024,7 @@ const Tr = Wt(null), ni = () => {
|
|
|
3024
3024
|
color: "primary",
|
|
3025
3025
|
isLoading: p,
|
|
3026
3026
|
loadingPosition: "right",
|
|
3027
|
-
onClick: () =>
|
|
3027
|
+
onClick: () => U(),
|
|
3028
3028
|
children: r("collection.wizard.button.create.ignore.share")
|
|
3029
3029
|
}
|
|
3030
3030
|
),
|
|
@@ -3037,18 +3037,18 @@ const Tr = Wt(null), ni = () => {
|
|
|
3037
3037
|
isLoading: p,
|
|
3038
3038
|
loadingPosition: "right",
|
|
3039
3039
|
rightIcon: /* @__PURE__ */ f(on, {}),
|
|
3040
|
-
onClick: () =>
|
|
3040
|
+
onClick: () => U(),
|
|
3041
3041
|
children: r("collection.wizard.button.create.collect")
|
|
3042
3042
|
}
|
|
3043
3043
|
)
|
|
3044
|
-
] }) : /* @__PURE__ */
|
|
3044
|
+
] }) : /* @__PURE__ */ k(at, { justify: "end", className: "mt-auto pb-64 gap-16", children: [
|
|
3045
3045
|
/* @__PURE__ */ f(
|
|
3046
3046
|
re,
|
|
3047
3047
|
{
|
|
3048
3048
|
"data-testid": "collect-add-attachments-button-cancel",
|
|
3049
3049
|
variant: "ghost",
|
|
3050
3050
|
color: "tertiary",
|
|
3051
|
-
onClick:
|
|
3051
|
+
onClick: O,
|
|
3052
3052
|
children: r("collection.cancel")
|
|
3053
3053
|
}
|
|
3054
3054
|
),
|
|
@@ -3078,7 +3078,7 @@ function ci() {
|
|
|
3078
3078
|
}),
|
|
3079
3079
|
[e, t, n]
|
|
3080
3080
|
);
|
|
3081
|
-
return /* @__PURE__ */ f(Tr.Provider, { value: r, children: /* @__PURE__ */
|
|
3081
|
+
return /* @__PURE__ */ f(Tr.Provider, { value: r, children: /* @__PURE__ */ k(zr, { children: [
|
|
3082
3082
|
/* @__PURE__ */ f(
|
|
3083
3083
|
sn,
|
|
3084
3084
|
{
|
|
@@ -3117,7 +3117,7 @@ const Er = (e, t) => {
|
|
|
3117
3117
|
path: "/",
|
|
3118
3118
|
loader: r,
|
|
3119
3119
|
async lazy() {
|
|
3120
|
-
const { loader: s, Root: o } = await import("./Root-
|
|
3120
|
+
const { loader: s, Root: o } = await import("./Root-D7SKVrPc.js");
|
|
3121
3121
|
return {
|
|
3122
3122
|
loader: async () => {
|
|
3123
3123
|
const i = await r(), l = await s() ?? {};
|
|
@@ -3129,14 +3129,14 @@ const Er = (e, t) => {
|
|
|
3129
3129
|
children: [
|
|
3130
3130
|
{
|
|
3131
3131
|
async lazy() {
|
|
3132
|
-
const { loader: s, Component: o } = await import("./CollectionsLayout-
|
|
3132
|
+
const { loader: s, Component: o } = await import("./CollectionsLayout-C__-xeB2.js");
|
|
3133
3133
|
return { loader: s, Component: o };
|
|
3134
3134
|
},
|
|
3135
3135
|
children: [
|
|
3136
3136
|
{
|
|
3137
3137
|
index: !0,
|
|
3138
3138
|
async lazy() {
|
|
3139
|
-
const { loader: s, CollectionsList: o } = await import("./CollectionsList-
|
|
3139
|
+
const { loader: s, CollectionsList: o } = await import("./CollectionsList-BSflnR0d.js");
|
|
3140
3140
|
return {
|
|
3141
3141
|
loader: () => s(e),
|
|
3142
3142
|
Component: o
|
|
@@ -3146,7 +3146,7 @@ const Er = (e, t) => {
|
|
|
3146
3146
|
{
|
|
3147
3147
|
path: "list-collections",
|
|
3148
3148
|
async lazy() {
|
|
3149
|
-
const { loader: s, CollectionsList: o } = await import("./CollectionsList-
|
|
3149
|
+
const { loader: s, CollectionsList: o } = await import("./CollectionsList-BSflnR0d.js");
|
|
3150
3150
|
return {
|
|
3151
3151
|
loader: () => s(e),
|
|
3152
3152
|
Component: o
|
|
@@ -3156,7 +3156,7 @@ const Er = (e, t) => {
|
|
|
3156
3156
|
{
|
|
3157
3157
|
path: "list-submissions",
|
|
3158
3158
|
async lazy() {
|
|
3159
|
-
const { loader: s, SubmissionsList: o } = await import("./SubmissionList-
|
|
3159
|
+
const { loader: s, SubmissionsList: o } = await import("./SubmissionList-CswecSGT.js");
|
|
3160
3160
|
return {
|
|
3161
3161
|
loader: () => s(e),
|
|
3162
3162
|
Component: o
|
|
@@ -3172,21 +3172,21 @@ const Er = (e, t) => {
|
|
|
3172
3172
|
{
|
|
3173
3173
|
path: "list-collections/id/:collectionId",
|
|
3174
3174
|
async lazy() {
|
|
3175
|
-
const { loader: s, Collection: o } = await import("./Collection-
|
|
3175
|
+
const { loader: s, Collection: o } = await import("./Collection-g0awPmRQ.js");
|
|
3176
3176
|
return { loader: () => s(e), Component: o };
|
|
3177
3177
|
}
|
|
3178
3178
|
},
|
|
3179
3179
|
{
|
|
3180
3180
|
path: "list-collections/id/:collectionId/submission/:submissionId",
|
|
3181
3181
|
async lazy() {
|
|
3182
|
-
const { loader: s, Submission: o } = await import("./Submission-
|
|
3182
|
+
const { loader: s, Submission: o } = await import("./Submission-Dcbb5Cg7.js");
|
|
3183
3183
|
return { loader: () => s(e), Component: o };
|
|
3184
3184
|
}
|
|
3185
3185
|
},
|
|
3186
3186
|
{
|
|
3187
3187
|
path: "id/:collectionId/members",
|
|
3188
3188
|
async lazy() {
|
|
3189
|
-
const { loader: s, MembersEdit: o } = await import("./MembersEdit-
|
|
3189
|
+
const { loader: s, MembersEdit: o } = await import("./MembersEdit-BsqgTRkp.js");
|
|
3190
3190
|
return {
|
|
3191
3191
|
loader: () => s(e),
|
|
3192
3192
|
Component: o
|
|
@@ -3196,7 +3196,7 @@ const Er = (e, t) => {
|
|
|
3196
3196
|
{
|
|
3197
3197
|
path: "id/:collectionId/form",
|
|
3198
3198
|
async lazy() {
|
|
3199
|
-
const { loader: s, FormEdit: o } = await import("./FormEdit-
|
|
3199
|
+
const { loader: s, FormEdit: o } = await import("./FormEdit-DEm6mRJf.js");
|
|
3200
3200
|
return { loader: () => s(e), Component: o };
|
|
3201
3201
|
}
|
|
3202
3202
|
}
|
|
@@ -3237,7 +3237,7 @@ const pl = () => Xt(Nr), yl = ({
|
|
|
3237
3237
|
a(Er(Qt, { header: e })),
|
|
3238
3238
|
{ initialEntries: [c(n)] }
|
|
3239
3239
|
)), o.current.render(
|
|
3240
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ k(xn, { client: Qt, children: [
|
|
3241
3241
|
/* @__PURE__ */ f(wn, { params: { app: "collect" }, children: /* @__PURE__ */ f(Br, { children: /* @__PURE__ */ f(fi, { header: e, showMenu: t, children: /* @__PURE__ */ f(Wr, { fallback: /* @__PURE__ */ f(qr, {}), children: /* @__PURE__ */ f(Jr, { router: i.current }) }) }) }) }),
|
|
3242
3242
|
/* @__PURE__ */ f(wr, { initialIsOpen: !1 })
|
|
3243
3243
|
] })
|
|
@@ -3305,21 +3305,21 @@ const pi = () => Xt(xr), yi = () => {
|
|
|
3305
3305
|
}[t] || null;
|
|
3306
3306
|
return !c && p === D.LIST_COLLECTIONS ? D.LIST_SUBMISSIONS : p;
|
|
3307
3307
|
};
|
|
3308
|
-
return /* @__PURE__ */
|
|
3308
|
+
return /* @__PURE__ */ k(
|
|
3309
3309
|
"div",
|
|
3310
3310
|
{
|
|
3311
3311
|
className: `border-end pt-16 pe-16 ps-0 ${l ? " h-100 pb-16" : ""}`,
|
|
3312
3312
|
style: l ? void 0 : { marginBottom: "-10px" },
|
|
3313
3313
|
children: [
|
|
3314
3314
|
/* @__PURE__ */ f("p", { className: "caption text-uppercase fw-semibold text-gray-700", children: r("collection.title") }),
|
|
3315
|
-
/* @__PURE__ */
|
|
3315
|
+
/* @__PURE__ */ k(Tt, { label: r("collection.title"), children: [
|
|
3316
3316
|
/* @__PURE__ */ f(Tt.Item, { children: /* @__PURE__ */ f("div", { className: "treeview ps-16 pt-16", children: /* @__PURE__ */ f(
|
|
3317
3317
|
Kr,
|
|
3318
3318
|
{
|
|
3319
3319
|
nodes: a,
|
|
3320
3320
|
selectedNodeId: m(),
|
|
3321
3321
|
showIcon: !1,
|
|
3322
|
-
renderNode: ({ node: h }) => /* @__PURE__ */
|
|
3322
|
+
renderNode: ({ node: h }) => /* @__PURE__ */ k("div", { className: "d-flex align-items-center gap-8", children: [
|
|
3323
3323
|
u(h.id),
|
|
3324
3324
|
/* @__PURE__ */ f("span", { children: h.name })
|
|
3325
3325
|
] }),
|
|
@@ -3335,13 +3335,14 @@ const pi = () => Xt(xr), yi = () => {
|
|
|
3335
3335
|
initialData: e,
|
|
3336
3336
|
collection: t,
|
|
3337
3337
|
onDataChange: n,
|
|
3338
|
-
onValidityChange: r
|
|
3338
|
+
onValidityChange: r,
|
|
3339
|
+
i18nNamespace: s
|
|
3339
3340
|
}) => {
|
|
3340
|
-
const { appCode:
|
|
3341
|
+
const { appCode: o } = ke(), { t: i } = Le(s ?? o), l = J(
|
|
3341
3342
|
(e == null ? void 0 : e.description) ?? (t == null ? void 0 : t.content) ?? ""
|
|
3342
|
-
), [
|
|
3343
|
+
), [c, a] = Pe(
|
|
3343
3344
|
(e == null ? void 0 : e.attachments) ?? []
|
|
3344
|
-
),
|
|
3345
|
+
), u = bt(
|
|
3345
3346
|
() => ({
|
|
3346
3347
|
title: (e == null ? void 0 : e.title) ?? (t == null ? void 0 : t.name) ?? "",
|
|
3347
3348
|
description: (e == null ? void 0 : e.description) ?? (t != null && t.content ? t.content : ""),
|
|
@@ -3351,45 +3352,45 @@ const pi = () => Xt(xr), yi = () => {
|
|
|
3351
3352
|
}),
|
|
3352
3353
|
[e, t]
|
|
3353
3354
|
), {
|
|
3354
|
-
control:
|
|
3355
|
-
watch:
|
|
3356
|
-
register:
|
|
3357
|
-
handleSubmit:
|
|
3358
|
-
setValue:
|
|
3359
|
-
formState: { isValid:
|
|
3355
|
+
control: d,
|
|
3356
|
+
watch: m,
|
|
3357
|
+
register: h,
|
|
3358
|
+
handleSubmit: p,
|
|
3359
|
+
setValue: v,
|
|
3360
|
+
formState: { isValid: O }
|
|
3360
3361
|
} = Vn({
|
|
3361
|
-
defaultValues:
|
|
3362
|
+
defaultValues: u
|
|
3362
3363
|
});
|
|
3363
3364
|
G(() => {
|
|
3364
|
-
const
|
|
3365
|
-
n == null || n(
|
|
3365
|
+
const I = m((b) => {
|
|
3366
|
+
n == null || n(b);
|
|
3366
3367
|
});
|
|
3367
|
-
return () =>
|
|
3368
|
-
}, [
|
|
3369
|
-
r == null || r(
|
|
3370
|
-
}, [
|
|
3371
|
-
const
|
|
3372
|
-
n == null || n(
|
|
3373
|
-
},
|
|
3374
|
-
|
|
3375
|
-
},
|
|
3376
|
-
|
|
3368
|
+
return () => I.unsubscribe();
|
|
3369
|
+
}, [m]), G(() => {
|
|
3370
|
+
r == null || r(O);
|
|
3371
|
+
}, [O]);
|
|
3372
|
+
const U = (I) => {
|
|
3373
|
+
n == null || n(I);
|
|
3374
|
+
}, C = ({ editor: I }) => {
|
|
3375
|
+
v("description", I.isEmpty ? "" : I.getHTML());
|
|
3376
|
+
}, M = (I) => {
|
|
3377
|
+
a(I), v("attachments", I);
|
|
3377
3378
|
};
|
|
3378
3379
|
return /* @__PURE__ */ f(Ht, { children: /* @__PURE__ */ f(
|
|
3379
3380
|
kn,
|
|
3380
3381
|
{
|
|
3381
3382
|
id: "formCreateCollection",
|
|
3382
3383
|
role: "form",
|
|
3383
|
-
onSubmit:
|
|
3384
|
-
children: /* @__PURE__ */
|
|
3385
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */
|
|
3386
|
-
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Un, {}), children:
|
|
3384
|
+
onSubmit: p(U),
|
|
3385
|
+
children: /* @__PURE__ */ k($, { children: [
|
|
3386
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */ k(Z, { id: "collectionTitle", isRequired: !0, children: [
|
|
3387
|
+
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Un, {}), children: i("collection.wizard.create.form.title") }),
|
|
3387
3388
|
/* @__PURE__ */ f(
|
|
3388
3389
|
In,
|
|
3389
3390
|
{
|
|
3390
3391
|
"data-testid": "collect-create-collection-input-title",
|
|
3391
3392
|
type: "text",
|
|
3392
|
-
...
|
|
3393
|
+
...h("title", {
|
|
3393
3394
|
required: !0,
|
|
3394
3395
|
maxLength: vt,
|
|
3395
3396
|
pattern: {
|
|
@@ -3399,57 +3400,57 @@ const pi = () => Xt(xr), yi = () => {
|
|
|
3399
3400
|
}),
|
|
3400
3401
|
size: "md",
|
|
3401
3402
|
maxLength: vt,
|
|
3402
|
-
placeholder:
|
|
3403
|
+
placeholder: i(
|
|
3403
3404
|
"collection.wizard.create.form.title.placeholder"
|
|
3404
3405
|
),
|
|
3405
3406
|
showCounter: !0
|
|
3406
3407
|
}
|
|
3407
3408
|
)
|
|
3408
3409
|
] }) }),
|
|
3409
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */
|
|
3410
|
-
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(_n, {}), children:
|
|
3410
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ k(Z, { id: "collectionDeadline", isRequired: !0, children: [
|
|
3411
|
+
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(_n, {}), children: i("collection.wizard.create.form.deadline") }),
|
|
3411
3412
|
/* @__PURE__ */ f(
|
|
3412
3413
|
me,
|
|
3413
3414
|
{
|
|
3414
3415
|
name: "deadline",
|
|
3415
|
-
control:
|
|
3416
|
+
control: d,
|
|
3416
3417
|
rules: { required: !0 },
|
|
3417
|
-
render: ({ field:
|
|
3418
|
+
render: ({ field: I }) => /* @__PURE__ */ f(
|
|
3418
3419
|
An,
|
|
3419
3420
|
{
|
|
3420
3421
|
"data-testid": "collect-create-collection-input-deadline",
|
|
3421
|
-
value:
|
|
3422
|
-
onChange:
|
|
3423
|
-
onBlur:
|
|
3422
|
+
value: I.value,
|
|
3423
|
+
onChange: I.onChange,
|
|
3424
|
+
onBlur: I.onBlur,
|
|
3424
3425
|
className: "w-full form-control"
|
|
3425
3426
|
}
|
|
3426
3427
|
)
|
|
3427
3428
|
}
|
|
3428
3429
|
)
|
|
3429
3430
|
] }) }),
|
|
3430
|
-
/* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ k(
|
|
3431
3432
|
Z,
|
|
3432
3433
|
{
|
|
3433
3434
|
id: "collectionDescription",
|
|
3434
3435
|
isOptional: !0,
|
|
3435
3436
|
className: "collectionDescription",
|
|
3436
3437
|
children: [
|
|
3437
|
-
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Fn, {}), children:
|
|
3438
|
+
/* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Fn, {}), children: i("collection.wizard.create.form.description") }),
|
|
3438
3439
|
/* @__PURE__ */ f(
|
|
3439
3440
|
me,
|
|
3440
3441
|
{
|
|
3441
3442
|
name: "description",
|
|
3442
|
-
control:
|
|
3443
|
+
control: d,
|
|
3443
3444
|
render: () => /* @__PURE__ */ f(
|
|
3444
3445
|
Ln,
|
|
3445
3446
|
{
|
|
3446
3447
|
"data-testid": "collect-create-collection-input-description",
|
|
3447
3448
|
id: "collectionDescription",
|
|
3448
|
-
content:
|
|
3449
|
-
placeholder:
|
|
3449
|
+
content: l.current,
|
|
3450
|
+
placeholder: i(
|
|
3450
3451
|
"collection.wizard.create.form.description.placeholder"
|
|
3451
3452
|
),
|
|
3452
|
-
onContentChange:
|
|
3453
|
+
onContentChange: C,
|
|
3453
3454
|
mode: "edit"
|
|
3454
3455
|
}
|
|
3455
3456
|
)
|
|
@@ -3462,14 +3463,14 @@ const pi = () => Xt(xr), yi = () => {
|
|
|
3462
3463
|
me,
|
|
3463
3464
|
{
|
|
3464
3465
|
name: "attachments",
|
|
3465
|
-
control:
|
|
3466
|
+
control: d,
|
|
3466
3467
|
render: () => /* @__PURE__ */ f(
|
|
3467
3468
|
Tn,
|
|
3468
3469
|
{
|
|
3469
3470
|
"data-testid": "collect-create-collection-input-attachments",
|
|
3470
|
-
attachments:
|
|
3471
|
+
attachments: c,
|
|
3471
3472
|
editMode: !0,
|
|
3472
|
-
onChange:
|
|
3473
|
+
onChange: M
|
|
3473
3474
|
}
|
|
3474
3475
|
)
|
|
3475
3476
|
}
|
|
@@ -3613,7 +3614,7 @@ export {
|
|
|
3613
3614
|
sl as n,
|
|
3614
3615
|
V as o,
|
|
3615
3616
|
Yn as p,
|
|
3616
|
-
|
|
3617
|
+
_ as q,
|
|
3617
3618
|
Qn as r,
|
|
3618
3619
|
_i as s,
|
|
3619
3620
|
ms as t,
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { af as o, ag as s, C as r, ah as t, ai as l, aj as n, ak as C, al as u, am as i, an as m, ao as c, ap as p } from "./index-
|
|
1
|
+
import { af as o, ag as s, C as r, ah as t, ai as l, aj as n, ak as C, al as u, am as i, an as m, ao as c, ap as p } from "./index-B1qXWGkk.js";
|
|
2
2
|
export * from "@edifice.io/collect-client-rest";
|
|
3
3
|
export {
|
|
4
4
|
o as CollectApp,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuery as S, useQueryClient as a, useMutation as m, useInfiniteQuery as b } from "@tanstack/react-query";
|
|
2
|
-
import { S as c } from "./index-
|
|
2
|
+
import { S as c } from "./index-B1qXWGkk.js";
|
|
3
3
|
import { odeServices as p } from "@edifice.io/client";
|
|
4
4
|
import { SubmissionClient as y } from "@edifice.io/collect-client-rest";
|
|
5
5
|
const d = "/collect/api", n = new y({
|