@edifice.io/collect-frontend 0.2.2-develop-pedago.3.20260505122017 → 0.2.2-develop-pedago.3.20260505125330

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.
@@ -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-idEInZpf.js";
5
+ import { u as b, D as w } from "./DropdownActionTable-CmplLfuA.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-DQ5t6Rhq.js";
8
+ import { c as H } from "./index-fCsG2Pkd.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-BKUK_6Ad.js";
2
- import { n as v, o as C, p as e } from "./index-DQ5t6Rhq.js";
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-C2gD7XVz.js";
2
+ import { n as v, o as C, p as e } from "./index-fCsG2Pkd.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-Dymc0K4Z.js";
6
+ import { A as Z, C as q } from "./AppHeaderCollection-qwYJwBlj.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-BHWgEpAh.js";
9
+ import { u as ie, a as oe, s as ae } from "./submission.queries-CHblpw_I.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-DQ5t6Rhq.js";
11
+ import { c as le, f as re, P as de, g as ue } from "./index-fCsG2Pkd.js";
12
12
  import { u as F } from "./useGetStatusSubmission-DxHmLPxr.js";
13
- import { u as E } from "./DropdownActionTable-idEInZpf.js";
14
- import { D as me } from "./DeleteCollectionModal-CYNbWbt6.js";
13
+ import { u as E } from "./DropdownActionTable-CmplLfuA.js";
14
+ import { D as me } from "./DeleteCollectionModal-DuGbsyCK.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-DQ5t6Rhq.js";
8
+ import { u as y, M as s, C as H } from "./index-fCsG2Pkd.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-DQ5t6Rhq.js";
4
+ import { c as F, a as M, W as O, b as R } from "./index-fCsG2Pkd.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-CYNbWbt6.js";
8
+ import { D as W } from "./DeleteCollectionModal-DuGbsyCK.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-idEInZpf.js";
14
+ import { D as V } from "./DropdownActionTable-CmplLfuA.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-DQ5t6Rhq.js";
6
- import { u as D } from "./DropdownActionTable-idEInZpf.js";
5
+ import { h as M } from "./index-fCsG2Pkd.js";
6
+ import { u as D } from "./DropdownActionTable-CmplLfuA.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-DQ5t6Rhq.js";
9
+ import { c as M } from "./index-fCsG2Pkd.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-DQ5t6Rhq.js";
8
- import { s as S } from "./submission.queries-BHWgEpAh.js";
7
+ import { m as Q, f as R, P as W, F as j, g as H } from "./index-fCsG2Pkd.js";
8
+ import { s as S } from "./submission.queries-CHblpw_I.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-DQ5t6Rhq.js";
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-fCsG2Pkd.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-BKUK_6Ad.js";
2
- import { n as p, o as d, p as e } from "./index-DQ5t6Rhq.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-C2gD7XVz.js";
2
+ import { n as p, o as d, p as e } from "./index-fCsG2Pkd.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-DQ5t6Rhq.js";
7
- import { s as U } from "./submission.queries-BHWgEpAh.js";
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-fCsG2Pkd.js";
7
+ import { s as U } from "./submission.queries-CHblpw_I.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-DQ5t6Rhq.js";
5
+ import { P as d } from "./index-fCsG2Pkd.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-Dymc0K4Z.js";
5
+ import { u as g, A as T, C as j } from "./AppHeaderCollection-qwYJwBlj.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-idEInZpf.js";
11
- import { b as W, c as z, d as G } from "./submission.queries-BHWgEpAh.js";
12
- import { f as V, P as J, g as K } from "./index-DQ5t6Rhq.js";
10
+ import { u as w } from "./DropdownActionTable-CmplLfuA.js";
11
+ import { b as W, c as z, d as G } from "./submission.queries-CHblpw_I.js";
12
+ import { f as V, P as J, g as K } from "./index-fCsG2Pkd.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-DQ5t6Rhq.js";
7
+ import { c as U, d as Y, e as k } from "./index-fCsG2Pkd.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";
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
2
  export * from './hooks';
3
+ export type * from './components';
@@ -1,22 +1,22 @@
1
- var nn = (e) => {
1
+ var tn = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var rn = (e, t, n) => t.has(e) || nn("Cannot " + n);
5
- var y = (e, t, n) => (rn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), x = (e, t, n) => t.has(e) ? nn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), T = (e, t, n, r) => (rn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
4
+ var nn = (e, t, n) => t.has(e) || tn("Cannot " + n);
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
6
  import { jsx as f, jsxs as M, Fragment as Ht } from "react/jsx-runtime";
7
- import { EdificeClientProvider as Cn, useEdificeClient as ke, Heading as Dt, Button as re, Layout as Mr, Stepper as Wt, 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";
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";
10
- import { useState as Pe, useEffect as G, useMemo as bt, useRef as J, useReducer as Hr, createContext as Xt, useContext as zt, useLayoutEffect as Dr, Suspense as Wr, useCallback as sn } from "react";
10
+ import { useState as Pe, useEffect as G, useMemo as bt, useRef as J, useReducer as Hr, createContext as Wt, useContext as Xt, useLayoutEffect as Dr, Suspense as Wr, useCallback as rn } from "react";
11
11
  import { createRoot as Xr } from "react-dom/client";
12
- import { useRouteError as Pn, useNavigate as rt, useLocation as Mn, Form as kn, Routes as zr, Route as on, createBrowserRouter as Yr, createMemoryRouter as Zr, RouterProvider as Jr } from "react-router-dom";
12
+ import { useRouteError as Pn, useNavigate as rt, useLocation as Mn, Form as kn, Routes as zr, Route as sn, createBrowserRouter as Yr, createMemoryRouter as Zr, RouterProvider as Jr } from "react-router-dom";
13
13
  import { ERROR_CODE as es, odeServices as Fe } from "@edifice.io/client";
14
14
  import { useTranslation as Le, Trans as ts } from "react-i18next";
15
15
  import { t as Et } from "i18next";
16
16
  import { Editor as Ln } from "@edifice.io/react/editor";
17
- import { IconLabel as Un, IconFlag as _n, IconTextPage as Fn, IconBookmark as ns, IconGroupAvatar as rs, IconArrowLeft as ss, IconArrowRight as ln, IconSubmission as os, IconCollect as is } from "@edifice.io/react/icons";
17
+ import { IconLabel as Un, IconFlag as _n, IconTextPage as Fn, IconBookmark as ns, IconGroupAvatar as rs, IconArrowLeft as ss, IconArrowRight as on, IconSubmission as os, IconCollect as is } from "@edifice.io/react/icons";
18
18
  import { useForm as Vn, Controller as me } from "react-hook-form";
19
- import { create as Yt } from "zustand";
19
+ import { create as zt } from "zustand";
20
20
  import { SharingPermission as ut, CollectionClient as ls, MediaType as Bn, WORKFLOW_RIGHTS as cs } from "@edifice.io/collect-client-rest";
21
21
  var g = {
22
22
  context: void 0,
@@ -24,13 +24,13 @@ var g = {
24
24
  effects: void 0,
25
25
  done: !1,
26
26
  getContextId() {
27
- return cn(this.context.count);
27
+ return ln(this.context.count);
28
28
  },
29
29
  getNextContextId() {
30
- return cn(this.context.count++);
30
+ return ln(this.context.count++);
31
31
  }
32
32
  };
33
- function cn(e) {
33
+ function ln(e) {
34
34
  const t = String(e), n = t.length - 1;
35
35
  return g.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
36
36
  }
@@ -201,7 +201,7 @@ function ms(e) {
201
201
  function qe(e) {
202
202
  return A === null || (A.cleanups === null ? A.cleanups = [e] : A.cleanups.push(e)), e;
203
203
  }
204
- function an() {
204
+ function cn() {
205
205
  return A;
206
206
  }
207
207
  function ps(e, t) {
@@ -210,7 +210,7 @@ function ps(e, t) {
210
210
  try {
211
211
  return H(t, !0);
212
212
  } catch (s) {
213
- Zt(s);
213
+ Yt(s);
214
214
  } finally {
215
215
  A = n, R = r;
216
216
  }
@@ -288,7 +288,7 @@ function bs(e, t, n) {
288
288
  try {
289
289
  r = e.fn(t);
290
290
  } catch (i) {
291
- return e.pure && (e.state = Y, e.owned && e.owned.forEach($e), e.owned = null), e.updatedAt = n + 1, Zt(i);
291
+ return e.pure && (e.state = Y, e.owned && e.owned.forEach($e), e.owned = null), e.updatedAt = n + 1, Yt(i);
292
292
  } finally {
293
293
  R = o, A = s;
294
294
  }
@@ -333,7 +333,7 @@ function H(e, t) {
333
333
  const r = e();
334
334
  return Ss(n), r;
335
335
  } catch (r) {
336
- n || (X = null), q = null, Zt(r);
336
+ n || (X = null), q = null, Yt(r);
337
337
  }
338
338
  }
339
339
  function Ss(e) {
@@ -404,7 +404,7 @@ function Lt(e) {
404
404
  cause: e
405
405
  });
406
406
  }
407
- function Zt(e, t = A) {
407
+ function Yt(e, t = A) {
408
408
  throw Lt(e);
409
409
  }
410
410
  function Ut(e) {
@@ -1006,11 +1006,11 @@ function Gs(e, t, n = {}) {
1006
1006
  let o, i;
1007
1007
  for (o = 0, i = s.length; o < i; o++) {
1008
1008
  const l = s[o];
1009
- !l || l === "undefined" || t[l] || (un(e, l, !1), delete n[l]);
1009
+ !l || l === "undefined" || t[l] || (an(e, l, !1), delete n[l]);
1010
1010
  }
1011
1011
  for (o = 0, i = r.length; o < i; o++) {
1012
1012
  const l = r[o], c = !!t[l];
1013
- !l || l === "undefined" || n[l] === c || !c || (un(e, l, !0), n[l] = c);
1013
+ !l || l === "undefined" || n[l] === c || !c || (an(e, l, !0), n[l] = c);
1014
1014
  }
1015
1015
  return n;
1016
1016
  }
@@ -1044,13 +1044,13 @@ function Ds(e, t, n, r, s = {}, o = !1) {
1044
1044
  for (const i in s)
1045
1045
  if (!(i in t)) {
1046
1046
  if (i === "children") continue;
1047
- s[i] = fn(e, i, null, s[i], n, o, t);
1047
+ s[i] = un(e, i, null, s[i], n, o, t);
1048
1048
  }
1049
1049
  for (const i in t) {
1050
1050
  if (i === "children")
1051
1051
  continue;
1052
1052
  const l = t[i];
1053
- s[i] = fn(e, i, l, s[i], n, o, t);
1053
+ s[i] = un(e, i, l, s[i], n, o, t);
1054
1054
  }
1055
1055
  }
1056
1056
  function Ws(e) {
@@ -1063,12 +1063,12 @@ function ce(e) {
1063
1063
  function Xs(e) {
1064
1064
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
1065
1065
  }
1066
- function un(e, t, n) {
1066
+ function an(e, t, n) {
1067
1067
  const r = t.trim().split(/\s+/);
1068
1068
  for (let s = 0, o = r.length; s < o; s++)
1069
1069
  e.classList.toggle(r[s], n);
1070
1070
  }
1071
- function fn(e, t, n, r, s, o, i) {
1071
+ function un(e, t, n, r, s, o, i) {
1072
1072
  let l, c, a, u, d;
1073
1073
  if (t === "style") return js(e, n, r);
1074
1074
  if (t === "classList") return Gs(e, n, r);
@@ -1186,7 +1186,7 @@ function Ke(e, t, n, r, s) {
1186
1186
  }
1187
1187
  if (c.length === 0) {
1188
1188
  if (n = ae(e, n, r), l) return n;
1189
- } else a ? n.length === 0 ? dn(e, c, r) : Fs(e, n, c) : (n && ae(e), dn(e, c));
1189
+ } else a ? n.length === 0 ? fn(e, c, r) : Fs(e, n, c) : (n && ae(e), fn(e, c));
1190
1190
  n = c;
1191
1191
  } else if (t.nodeType) {
1192
1192
  if (o && t.parentNode) return n = l ? [t] : t;
@@ -1224,7 +1224,7 @@ function qt(e, t, n, r) {
1224
1224
  }
1225
1225
  return s;
1226
1226
  }
1227
- function dn(e, t, n = null) {
1227
+ function fn(e, t, n = null) {
1228
1228
  for (let r = 0, s = t.length; r < s; r++) e.insertBefore(t[r], n);
1229
1229
  }
1230
1230
  function ae(e, t, n, r) {
@@ -1250,11 +1250,11 @@ function rr(e, t = !1) {
1250
1250
  return t ? document.createElementNS(Ys, e) : document.createElement(e);
1251
1251
  }
1252
1252
  function Hi(e) {
1253
- const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, s = an();
1253
+ const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, s = cn();
1254
1254
  let o, i = !!g.context;
1255
1255
  return Qn(
1256
1256
  () => {
1257
- i && (an().user = i = !1), o || (o = ps(s, () => V(() => e.children)));
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
1260
  const [c, a] = U(!1), u = () => a(!0);
@@ -1362,7 +1362,7 @@ function Me(e, t) {
1362
1362
  function ft(e, t) {
1363
1363
  return e.indexOf(t) !== -1;
1364
1364
  }
1365
- function hn(e, t) {
1365
+ function dn(e, t) {
1366
1366
  for (let n = 0; n < e.length; n++) {
1367
1367
  const r = e[n];
1368
1368
  if (t(r))
@@ -1382,7 +1382,7 @@ var ro = class {
1382
1382
  findByName(e) {
1383
1383
  return this.transfomers[e];
1384
1384
  }
1385
- }, so = (e) => Object.prototype.toString.call(e).slice(8, -1), or = (e) => typeof e > "u", oo = (e) => e === null, Ge = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, $t = (e) => Ge(e) && Object.keys(e).length === 0, ee = (e) => Array.isArray(e), io = (e) => typeof e == "string", lo = (e) => typeof e == "number" && !isNaN(e), co = (e) => typeof e == "boolean", ao = (e) => e instanceof RegExp, je = (e) => e instanceof Map, Qe = (e) => e instanceof Set, ir = (e) => so(e) === "Symbol", uo = (e) => e instanceof Date && !isNaN(e.valueOf()), fo = (e) => e instanceof Error, mn = (e) => typeof e == "number" && isNaN(e), ho = (e) => co(e) || oo(e) || or(e) || lo(e) || io(e) || ir(e), mo = (e) => typeof e == "bigint", po = (e) => e === 1 / 0 || e === -1 / 0, yo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), go = (e) => e instanceof URL, lr = (e) => e.replace(/\./g, "\\."), Pt = (e) => e.map(String).map(lr).join("."), Be = (e) => {
1385
+ }, so = (e) => Object.prototype.toString.call(e).slice(8, -1), or = (e) => typeof e > "u", oo = (e) => e === null, Ge = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, $t = (e) => Ge(e) && Object.keys(e).length === 0, ee = (e) => Array.isArray(e), io = (e) => typeof e == "string", lo = (e) => typeof e == "number" && !isNaN(e), co = (e) => typeof e == "boolean", ao = (e) => e instanceof RegExp, je = (e) => e instanceof Map, Qe = (e) => e instanceof Set, ir = (e) => so(e) === "Symbol", uo = (e) => e instanceof Date && !isNaN(e.valueOf()), fo = (e) => e instanceof Error, hn = (e) => typeof e == "number" && isNaN(e), ho = (e) => co(e) || oo(e) || or(e) || lo(e) || io(e) || ir(e), mo = (e) => typeof e == "bigint", po = (e) => e === 1 / 0 || e === -1 / 0, yo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), go = (e) => e instanceof URL, lr = (e) => e.replace(/\./g, "\\."), Pt = (e) => e.map(String).map(lr).join("."), Be = (e) => {
1386
1386
  const t = [];
1387
1387
  let n = "";
1388
1388
  for (let s = 0; s < e.length; s++) {
@@ -1440,7 +1440,7 @@ var cr = [
1440
1440
  (e) => new Set(e)
1441
1441
  ),
1442
1442
  Q(je, "map", (e) => [...e.entries()], (e) => new Map(e)),
1443
- Q((e) => mn(e) || po(e), "number", (e) => mn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1443
+ Q((e) => hn(e) || po(e), "number", (e) => hn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1444
1444
  Q((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
1445
1445
  Q(go, "URL", (e) => e.toString(), (e) => new URL(e))
1446
1446
  ];
@@ -1494,14 +1494,14 @@ var dr = Ct(fr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
1494
1494
  if (!r)
1495
1495
  throw new Error("Trying to deserialize unknown custom value");
1496
1496
  return r.deserialize(e);
1497
- }), bo = [dr, ar, hr, ur], pn = (e, t) => {
1498
- const n = hn(bo, (s) => s.isApplicable(e, t));
1497
+ }), bo = [dr, ar, hr, ur], mn = (e, t) => {
1498
+ const n = dn(bo, (s) => s.isApplicable(e, t));
1499
1499
  if (n)
1500
1500
  return {
1501
1501
  value: n.transform(e, t),
1502
1502
  type: n.annotation(e, t)
1503
1503
  };
1504
- const r = hn(cr, (s) => s.isApplicable(e, t));
1504
+ const r = dn(cr, (s) => s.isApplicable(e, t));
1505
1505
  if (r)
1506
1506
  return {
1507
1507
  value: r.transform(e, t),
@@ -1674,7 +1674,7 @@ var yr = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1674
1674
  } : h;
1675
1675
  }
1676
1676
  if (!Ao(e, n)) {
1677
- const h = pn(e, n), p = h ? {
1677
+ const h = mn(e, n), p = h ? {
1678
1678
  transformedValue: h.value,
1679
1679
  annotations: [h.type]
1680
1680
  } : {
@@ -1686,7 +1686,7 @@ var yr = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1686
1686
  return {
1687
1687
  transformedValue: null
1688
1688
  };
1689
- const c = pn(e, n), a = (c == null ? void 0 : c.value) ?? e, u = ee(a) ? [] : {}, d = {};
1689
+ const c = mn(e, n), a = (c == null ? void 0 : c.value) ?? e, u = ee(a) ? [] : {}, d = {};
1690
1690
  Me(a, (h, p) => {
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.`);
@@ -1707,7 +1707,7 @@ var yr = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1707
1707
  function gr(e) {
1708
1708
  return Object.prototype.toString.call(e).slice(8, -1);
1709
1709
  }
1710
- function yn(e) {
1710
+ function pn(e) {
1711
1711
  return gr(e) === "Array";
1712
1712
  }
1713
1713
  function Eo(e) {
@@ -1726,13 +1726,13 @@ function No(e, t, n, r, s) {
1726
1726
  });
1727
1727
  }
1728
1728
  function jt(e, t = {}) {
1729
- if (yn(e))
1729
+ if (pn(e))
1730
1730
  return e.map((s) => jt(s, t));
1731
1731
  if (!Eo(e))
1732
1732
  return e;
1733
1733
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
1734
1734
  return [...n, ...r].reduce((s, o) => {
1735
- if (yn(t.props) && !t.props.includes(o))
1735
+ if (pn(t.props) && !t.props.includes(o))
1736
1736
  return s;
1737
1737
  const i = e[o], l = jt(i, t);
1738
1738
  return No(s, o, l, e, t.nonenumerable), s;
@@ -1904,7 +1904,7 @@ var el = (e, t = !1) => {
1904
1904
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
1905
1905
  const r = document.createElement("style"), s = document.createTextNode("");
1906
1906
  r.appendChild(s), r.id = "_goober", r.setAttribute("nonce", e), t ? t.appendChild(r) : document.head.appendChild(r);
1907
- }, ye, He, De, We, se, Xe, ge, ve, be, Se, we, Ce, ze, Sn, ko = (Sn = class {
1907
+ }, ye, He, De, We, se, Xe, ge, ve, be, Se, we, Ce, ze, bn, ko = (bn = class {
1908
1908
  constructor(e) {
1909
1909
  x(this, ye);
1910
1910
  x(this, He);
@@ -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-B7onLdTH.js")), T(this, Ce, c)), Sr(y(this, Xe), y(this, ge)), Yn(c, Zn({
1957
+ return y(this, Ce) ? c = y(this, Ce) : (c = Jn(() => import("./I3HPI4QX-CsdJtd3g.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
  },
@@ -1993,7 +1993,7 @@ var el = (e, t = !1) => {
1993
1993
  throw new Error("Devtools is not mounted");
1994
1994
  (e = y(this, ze)) == null || e.call(this), T(this, se, !1);
1995
1995
  }
1996
- }, ye = new WeakMap(), He = new WeakMap(), De = new WeakMap(), We = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), Se = new WeakMap(), we = new WeakMap(), Ce = new WeakMap(), ze = new WeakMap(), Sn), Ie, Ye, Ze, Je, oe, et, Ae, Te, Oe, Ee, Ne, xe, Re, tt, wn, Lo = (wn = class {
1996
+ }, ye = new WeakMap(), He = new WeakMap(), De = new WeakMap(), We = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), ge = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), Se = new WeakMap(), we = new WeakMap(), Ce = new WeakMap(), ze = new WeakMap(), bn), Ie, Ye, Ze, Je, oe, et, Ae, Te, Oe, Ee, Ne, xe, Re, tt, Sn, Lo = (Sn = class {
1997
1997
  constructor(e) {
1998
1998
  x(this, Ie);
1999
1999
  x(this, Ye);
@@ -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-CCUuuWiX.js")), T(this, Re, a)), Sr(y(this, et), y(this, Ae)), Yn(a, Zn({
2051
+ return y(this, Re) ? a = y(this, Re) : (a = Jn(() => import("./CXEL7IU7-CRpsOMFM.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
  },
@@ -2090,7 +2090,7 @@ var el = (e, t = !1) => {
2090
2090
  throw new Error("Devtools is not mounted");
2091
2091
  (e = y(this, tt)) == null || e.call(this), T(this, oe, !1);
2092
2092
  }
2093
- }, Ie = new WeakMap(), Ye = new WeakMap(), Ze = new WeakMap(), Je = new WeakMap(), oe = new WeakMap(), et = new WeakMap(), Ae = new WeakMap(), Te = new WeakMap(), Oe = new WeakMap(), Ee = new WeakMap(), Ne = new WeakMap(), xe = new WeakMap(), Re = new WeakMap(), tt = new WeakMap(), wn);
2093
+ }, Ie = new WeakMap(), Ye = new WeakMap(), Ze = new WeakMap(), Je = new WeakMap(), oe = new WeakMap(), et = new WeakMap(), Ae = new WeakMap(), Te = new WeakMap(), Oe = new WeakMap(), Ee = new WeakMap(), Ne = new WeakMap(), xe = new WeakMap(), Re = new WeakMap(), tt = new WeakMap(), Sn);
2094
2094
  function Uo(e) {
2095
2095
  const t = z(e.client), n = K.useRef(null), {
2096
2096
  buttonPosition: r,
@@ -2180,7 +2180,7 @@ const Qt = new Gr({
2180
2180
  }
2181
2181
  }), ol = ({ children: e }) => /* @__PURE__ */ M(xn, { client: Qt, children: [
2182
2182
  /* @__PURE__ */ f(
2183
- Cn,
2183
+ wn,
2184
2184
  {
2185
2185
  params: {
2186
2186
  app: "collect"
@@ -2203,7 +2203,7 @@ const Qt = new Gr({
2203
2203
  /* @__PURE__ */ f("div", { className: "text", children: Et("e404.page") }),
2204
2204
  /* @__PURE__ */ f(re, { color: "primary", onClick: () => t(-1), children: Et("back") })
2205
2205
  ] }) });
2206
- }, Bo = 100, il = 100, vt = 80, Mt = "collect-wizard-data", de = ["form", "members"], gn = {
2206
+ }, Bo = 100, il = 100, vt = 80, Mt = "collect-wizard-data", de = ["form", "members"], yn = {
2207
2207
  title: "",
2208
2208
  description: "",
2209
2209
  deadline: void 0,
@@ -2212,7 +2212,7 @@ const Qt = new Gr({
2212
2212
  }, qo = () => {
2213
2213
  const [e, t] = Pe(() => {
2214
2214
  const s = localStorage.getItem(Mt);
2215
- return s ? JSON.parse(s) : gn;
2215
+ return s ? JSON.parse(s) : yn;
2216
2216
  });
2217
2217
  return G(() => {
2218
2218
  localStorage.setItem(Mt, JSON.stringify(e));
@@ -2226,11 +2226,11 @@ const Qt = new Gr({
2226
2226
  }));
2227
2227
  },
2228
2228
  resetWizardData: () => {
2229
- localStorage.removeItem(Mt), t(gn);
2229
+ localStorage.removeItem(Mt), t(yn);
2230
2230
  }
2231
2231
  };
2232
2232
  };
2233
- function Jt() {
2233
+ function Zt() {
2234
2234
  const e = rt(), n = Mn().pathname, r = de.findIndex(
2235
2235
  (i) => n.includes(i)
2236
2236
  );
@@ -2246,16 +2246,16 @@ function Jt() {
2246
2246
  }
2247
2247
  };
2248
2248
  }
2249
- const en = (e) => {
2249
+ const Jt = (e) => {
2250
2250
  const t = e;
2251
2251
  t.use = {};
2252
2252
  for (const n of Object.keys(t.getState()))
2253
2253
  t.use[n] = () => t((r) => r[n]);
2254
2254
  return t;
2255
- }, $o = Yt((e) => ({
2255
+ }, $o = zt((e) => ({
2256
2256
  isFormValid: !1,
2257
2257
  setIsFormValid: (t) => e({ isFormValid: t })
2258
- })), Cr = en($o);
2258
+ })), Cr = Jt($o);
2259
2259
  function Ir({ title: e }) {
2260
2260
  return /* @__PURE__ */ f("div", { className: "mb-24", children: /* @__PURE__ */ f(Dt, { className: "text-truncate", children: e }) });
2261
2261
  }
@@ -2264,7 +2264,7 @@ const Ko = ({
2264
2264
  updateWizardData: t,
2265
2265
  collection: n
2266
2266
  }) => {
2267
- const { appCode: r } = ke(), { t: s } = Le(r), { currentStep: o, nextStep: i } = Jt(), l = Cr.use.setIsFormValid(), c = bt(
2267
+ const { appCode: r } = ke(), { t: s } = Le(r), { currentStep: o, nextStep: i } = Zt(), l = Cr.use.setIsFormValid(), c = bt(
2268
2268
  () => ({
2269
2269
  title: (e == null ? void 0 : e.title) ?? (n == null ? void 0 : n.name) ?? "",
2270
2270
  description: (e == null ? void 0 : e.description) ?? (n != null && n.content ? n.content : ""),
@@ -2301,7 +2301,7 @@ const Ko = ({
2301
2301
  d(I), E("attachments", I);
2302
2302
  };
2303
2303
  return /* @__PURE__ */ M(Ht, { children: [
2304
- /* @__PURE__ */ f(Wt, { currentStep: o, nbSteps: 2 }),
2304
+ /* @__PURE__ */ f(Cn, { currentStep: o, nbSteps: 2 }),
2305
2305
  /* @__PURE__ */ f(Ir, { title: s("collection.wizard.form.title") }),
2306
2306
  /* @__PURE__ */ f(
2307
2307
  kn,
@@ -2523,7 +2523,7 @@ const Xo = () => {
2523
2523
  );
2524
2524
  return l ? c.filter(l) : c;
2525
2525
  } };
2526
- }, zo = Yt(
2526
+ }, zo = zt(
2527
2527
  (e) => ({
2528
2528
  usersCollection: [],
2529
2529
  usersToAdd: [],
@@ -2557,7 +2557,7 @@ const Xo = () => {
2557
2557
  }),
2558
2558
  resetUsersDiff: () => e({ usersToAdd: [], usersToDelete: [] })
2559
2559
  })
2560
- ), ue = en(
2560
+ ), ue = Jt(
2561
2561
  zo
2562
2562
  ), Yo = {
2563
2563
  searchInputValue: "",
@@ -2677,9 +2677,9 @@ const Jo = () => {
2677
2677
  p(
2678
2678
  F,
2679
2679
  Pr.flatMap(
2680
- (At) => At.map((tn) => ({
2681
- id: tn.id,
2682
- displayName: tn.displayName
2680
+ (At) => At.map((en) => ({
2681
+ id: en.id,
2682
+ displayName: en.displayName
2683
2683
  }))
2684
2684
  )
2685
2685
  )
@@ -2773,7 +2773,7 @@ function ti({
2773
2773
  onSharingsChange: r
2774
2774
  }) {
2775
2775
  var N;
2776
- const { appCode: s } = ke(), { t: o } = Le(s), { currentStep: i } = Jt(), l = i < 0 ? 0 : i, c = En(), a = bt(() => {
2776
+ const { appCode: s } = ke(), { t: o } = Le(s), { currentStep: i } = Zt(), l = i < 0 ? 0 : i, c = En(), a = bt(() => {
2777
2777
  var w, O;
2778
2778
  return (w = e == null ? void 0 : e.sharings) != null && w.length ? e.sharings : (O = n == null ? void 0 : n.sharings) != null && O.length ? n.sharings.map(Qo) : [];
2779
2779
  }, [n == null ? void 0 : n.sharings, e == null ? void 0 : e.sharings]), {
@@ -2806,7 +2806,7 @@ function ti({
2806
2806
  return /* @__PURE__ */ M($, { className: "m-16 gap-24", children: [
2807
2807
  /* @__PURE__ */ M($.Col, { sm: "4", md: "8", lg: "3", xl: "5", children: [
2808
2808
  /* @__PURE__ */ M(at, { gap: "16", direction: "column", children: [
2809
- /* @__PURE__ */ f(Wt, { currentStep: l, nbSteps: 2 }),
2809
+ /* @__PURE__ */ f(Cn, { currentStep: l, nbSteps: 2 }),
2810
2810
  /* @__PURE__ */ f(Ir, { title: o("collection.wizard.members.title") })
2811
2811
  ] }),
2812
2812
  /* @__PURE__ */ f(
@@ -2868,8 +2868,8 @@ function ti({
2868
2868
  ) })
2869
2869
  ] });
2870
2870
  }
2871
- const Tr = Xt(null), ni = () => {
2872
- const e = zt(Tr);
2871
+ const Tr = Wt(null), ni = () => {
2872
+ const e = Xt(Tr);
2873
2873
  if (!e)
2874
2874
  throw new Error("Cannot be rendered outside the Wizard Layout");
2875
2875
  return e;
@@ -2951,10 +2951,10 @@ const Tr = Xt(null), ni = () => {
2951
2951
  e.invalidateQueries({ queryKey: ["collections"] }), e.invalidateQueries({ queryKey: ["collection", n.id] });
2952
2952
  }
2953
2953
  });
2954
- }, vn = ({
2954
+ }, gn = ({
2955
2955
  children: e
2956
2956
  }) => {
2957
- const t = J(null), { appCode: n } = ke(), { t: r } = Le(n), s = Fr(), { currentStep: o, backStep: i, nextStep: l } = Jt(), { lg: c } = Vr(), { wizardData: a, resetWizardData: u } = ni(), d = li(), m = Cr.use.isFormValid(), h = rt(), [p, v] = Pe(!1);
2957
+ const t = J(null), { appCode: n } = ke(), { t: r } = Le(n), s = Fr(), { currentStep: o, backStep: i, nextStep: l } = Zt(), { lg: c } = Vr(), { wizardData: a, resetWizardData: u } = ni(), d = li(), m = Cr.use.isFormValid(), h = rt(), [p, v] = Pe(!1);
2958
2958
  Dr(() => {
2959
2959
  var C;
2960
2960
  (C = t.current) == null || C.scrollIntoView({
@@ -3036,7 +3036,7 @@ const Tr = Xt(null), ni = () => {
3036
3036
  color: "primary",
3037
3037
  isLoading: p,
3038
3038
  loadingPosition: "right",
3039
- rightIcon: /* @__PURE__ */ f(ln, {}),
3039
+ rightIcon: /* @__PURE__ */ f(on, {}),
3040
3040
  onClick: () => L(),
3041
3041
  children: r("collection.wizard.button.create.collect")
3042
3042
  }
@@ -3058,7 +3058,7 @@ const Tr = Xt(null), ni = () => {
3058
3058
  "data-testid": "collect-add-attachments-button-next",
3059
3059
  variant: "filled",
3060
3060
  color: "primary",
3061
- rightIcon: /* @__PURE__ */ f(ln, {}),
3061
+ rightIcon: /* @__PURE__ */ f(on, {}),
3062
3062
  onClick: l,
3063
3063
  type: "submit",
3064
3064
  form: "formCreateCollection",
@@ -3080,10 +3080,10 @@ function ci() {
3080
3080
  );
3081
3081
  return /* @__PURE__ */ f(Tr.Provider, { value: r, children: /* @__PURE__ */ M(zr, { children: [
3082
3082
  /* @__PURE__ */ f(
3083
- on,
3083
+ sn,
3084
3084
  {
3085
3085
  path: de[0],
3086
- element: /* @__PURE__ */ f(vn, { children: /* @__PURE__ */ f(
3086
+ element: /* @__PURE__ */ f(gn, { children: /* @__PURE__ */ f(
3087
3087
  Ko,
3088
3088
  {
3089
3089
  wizardData: e,
@@ -3093,10 +3093,10 @@ function ci() {
3093
3093
  }
3094
3094
  ),
3095
3095
  /* @__PURE__ */ f(
3096
- on,
3096
+ sn,
3097
3097
  {
3098
3098
  path: de[1],
3099
- element: /* @__PURE__ */ f(vn, { children: /* @__PURE__ */ f(
3099
+ element: /* @__PURE__ */ f(gn, { children: /* @__PURE__ */ f(
3100
3100
  ti,
3101
3101
  {
3102
3102
  wizardData: e,
@@ -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-9blJlZ3i.js");
3120
+ const { loader: s, Root: o } = await import("./Root-Duqwncex.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-Ba0IY0Ub.js");
3132
+ const { loader: s, Component: o } = await import("./CollectionsLayout-BO410iaV.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-Bw3Cok8v.js");
3139
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-NVloHr8C.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-Bw3Cok8v.js");
3149
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-NVloHr8C.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-CqjIKVqR.js");
3159
+ const { loader: s, SubmissionsList: o } = await import("./SubmissionList-C8FRm0N7.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-B4CO88MZ.js");
3175
+ const { loader: s, Collection: o } = await import("./Collection-B8aCbLzK.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-t52UNp4w.js");
3182
+ const { loader: s, Submission: o } = await import("./Submission-aNcpHj47.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-BACWgpS4.js");
3189
+ const { loader: s, MembersEdit: o } = await import("./MembersEdit-D5jTpXmr.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-Bg1r9d55.js");
3199
+ const { loader: s, FormEdit: o } = await import("./FormEdit-b8S9coZs.js");
3200
3200
  return { loader: () => s(e), Component: o };
3201
3201
  }
3202
3202
  }
@@ -3207,7 +3207,7 @@ const Er = (e, t) => {
3207
3207
  ];
3208
3208
  }, ui = "./", ml = (e, t) => Yr(Er(e, t), {
3209
3209
  basename: ui
3210
- }), Nr = Xt({
3210
+ }), Nr = Wt({
3211
3211
  header: !0,
3212
3212
  showMenu: !0
3213
3213
  });
@@ -3218,7 +3218,7 @@ function fi({
3218
3218
  }) {
3219
3219
  return /* @__PURE__ */ f(Nr.Provider, { value: { header: e, showMenu: t }, children: n });
3220
3220
  }
3221
- const pl = () => zt(Nr), yl = ({
3221
+ const pl = () => Xt(Nr), yl = ({
3222
3222
  header: e,
3223
3223
  showMenu: t,
3224
3224
  currentPath: n,
@@ -3238,7 +3238,7 @@ const pl = () => zt(Nr), yl = ({
3238
3238
  { initialEntries: [c(n)] }
3239
3239
  )), o.current.render(
3240
3240
  /* @__PURE__ */ M(xn, { client: Qt, children: [
3241
- /* @__PURE__ */ f(Cn, { 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 }) }) }) }) }),
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
  ] })
3244
3244
  ), () => {
@@ -3258,12 +3258,12 @@ const pl = () => zt(Nr), yl = ({
3258
3258
  }, D = {
3259
3259
  LIST_COLLECTIONS: "list-collections",
3260
3260
  LIST_SUBMISSIONS: "list-submissions"
3261
- }, di = Yt((e) => ({
3261
+ }, di = zt((e) => ({
3262
3262
  mobileMenuOpen: !1,
3263
3263
  selectedMenu: "list-collections",
3264
3264
  setMobileMenuOpen: (t) => e({ mobileMenuOpen: t }),
3265
3265
  setSelectedMenu: (t) => e({ selectedMenu: t })
3266
- })), hi = en(di), xr = Xt({
3266
+ })), hi = Jt(di), xr = Wt({
3267
3267
  showMenu: !0,
3268
3268
  basePath: ""
3269
3269
  });
@@ -3274,7 +3274,7 @@ function mi({
3274
3274
  }) {
3275
3275
  return /* @__PURE__ */ f(xr.Provider, { value: { showMenu: e, basePath: t }, children: n });
3276
3276
  }
3277
- const pi = () => zt(xr), yi = () => {
3277
+ const pi = () => Xt(xr), yi = () => {
3278
3278
  const e = rt(), { pathname: t } = Mn(), { appCode: n } = ke(), { t: r } = Le(n), s = hi.use.setSelectedMenu(), { showMenu: o, basePath: i } = pi(), l = o !== !1, c = $r(cs.COLLECTION_CREATE), a = [
3279
3279
  ...c ? [
3280
3280
  {
@@ -3375,122 +3375,119 @@ const pi = () => zt(xr), yi = () => {
3375
3375
  }, C = (b) => {
3376
3376
  c(b), p("attachments", b);
3377
3377
  };
3378
- return /* @__PURE__ */ M(Ht, { children: [
3379
- /* @__PURE__ */ f(Wt, { currentStep: 0, nbSteps: 1 }),
3380
- /* @__PURE__ */ f(
3381
- kn,
3382
- {
3383
- id: "formCreateCollection",
3384
- role: "form",
3385
- onSubmit: h(E),
3386
- children: /* @__PURE__ */ M($, { children: [
3387
- /* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */ M(Z, { id: "collectionTitle", isRequired: !0, children: [
3388
- /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Un, {}), children: o("collection.wizard.create.form.title") }),
3389
- /* @__PURE__ */ f(
3390
- In,
3391
- {
3392
- "data-testid": "collect-create-collection-input-title",
3393
- type: "text",
3394
- ...m("title", {
3395
- required: !0,
3396
- maxLength: vt,
3397
- pattern: {
3398
- value: /[^ ]/,
3399
- message: "invalid title"
3400
- }
3401
- }),
3402
- size: "md",
3403
- maxLength: vt,
3404
- placeholder: o(
3405
- "collection.wizard.create.form.title.placeholder"
3406
- ),
3407
- showCounter: !0
3408
- }
3409
- )
3410
- ] }) }),
3411
- /* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ M(Z, { id: "collectionDeadline", isRequired: !0, children: [
3412
- /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(_n, {}), children: o("collection.wizard.create.form.deadline") }),
3413
- /* @__PURE__ */ f(
3414
- me,
3415
- {
3416
- name: "deadline",
3417
- control: u,
3418
- rules: { required: !0 },
3419
- render: ({ field: b }) => /* @__PURE__ */ f(
3420
- An,
3421
- {
3422
- "data-testid": "collect-create-collection-input-deadline",
3423
- value: b.value,
3424
- onChange: b.onChange,
3425
- onBlur: b.onBlur,
3426
- className: "w-full form-control"
3427
- }
3428
- )
3429
- }
3430
- )
3431
- ] }) }),
3432
- /* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ M(
3433
- Z,
3378
+ return /* @__PURE__ */ f(Ht, { children: /* @__PURE__ */ f(
3379
+ kn,
3380
+ {
3381
+ id: "formCreateCollection",
3382
+ role: "form",
3383
+ onSubmit: h(E),
3384
+ children: /* @__PURE__ */ M($, { children: [
3385
+ /* @__PURE__ */ f($.Col, { sm: "4", md: "5", xl: "8", children: /* @__PURE__ */ M(Z, { id: "collectionTitle", isRequired: !0, children: [
3386
+ /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Un, {}), children: o("collection.wizard.create.form.title") }),
3387
+ /* @__PURE__ */ f(
3388
+ In,
3434
3389
  {
3435
- id: "collectionDescription",
3436
- isOptional: !0,
3437
- className: "collectionDescription",
3438
- children: [
3439
- /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Fn, {}), children: o("collection.wizard.create.form.description") }),
3440
- /* @__PURE__ */ f(
3441
- me,
3442
- {
3443
- name: "description",
3444
- control: u,
3445
- render: () => /* @__PURE__ */ f(
3446
- Ln,
3447
- {
3448
- "data-testid": "collect-create-collection-input-description",
3449
- id: "collectionDescription",
3450
- content: i.current,
3451
- placeholder: o(
3452
- "collection.wizard.create.form.description.placeholder"
3453
- ),
3454
- onContentChange: L,
3455
- mode: "edit"
3456
- }
3457
- )
3458
- }
3459
- )
3460
- ]
3390
+ "data-testid": "collect-create-collection-input-title",
3391
+ type: "text",
3392
+ ...m("title", {
3393
+ required: !0,
3394
+ maxLength: vt,
3395
+ pattern: {
3396
+ value: /[^ ]/,
3397
+ message: "invalid title"
3398
+ }
3399
+ }),
3400
+ size: "md",
3401
+ maxLength: vt,
3402
+ placeholder: o(
3403
+ "collection.wizard.create.form.title.placeholder"
3404
+ ),
3405
+ showCounter: !0
3461
3406
  }
3462
- ) }),
3463
- /* @__PURE__ */ f($.Col, { sm: "4", md: "5", children: /* @__PURE__ */ f(Z, { id: "collectionAttachments", isOptional: !0, children: /* @__PURE__ */ f(
3407
+ )
3408
+ ] }) }),
3409
+ /* @__PURE__ */ f($.Col, { sm: "4", md: "3", xl: "4", children: /* @__PURE__ */ M(Z, { id: "collectionDeadline", isRequired: !0, children: [
3410
+ /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(_n, {}), children: o("collection.wizard.create.form.deadline") }),
3411
+ /* @__PURE__ */ f(
3464
3412
  me,
3465
3413
  {
3466
- name: "attachments",
3414
+ name: "deadline",
3467
3415
  control: u,
3468
- render: () => /* @__PURE__ */ f(
3469
- Tn,
3416
+ rules: { required: !0 },
3417
+ render: ({ field: b }) => /* @__PURE__ */ f(
3418
+ An,
3470
3419
  {
3471
- "data-testid": "collect-create-collection-input-attachments",
3472
- attachments: l,
3473
- editMode: !0,
3474
- onChange: C
3420
+ "data-testid": "collect-create-collection-input-deadline",
3421
+ value: b.value,
3422
+ onChange: b.onChange,
3423
+ onBlur: b.onBlur,
3424
+ className: "w-full form-control"
3475
3425
  }
3476
3426
  )
3477
3427
  }
3478
- ) }) })
3479
- ] })
3480
- }
3481
- )
3482
- ] });
3483
- }, bn = {
3428
+ )
3429
+ ] }) }),
3430
+ /* @__PURE__ */ f($.Col, { sm: "4", md: "8", xl: "12", children: /* @__PURE__ */ M(
3431
+ Z,
3432
+ {
3433
+ id: "collectionDescription",
3434
+ isOptional: !0,
3435
+ className: "collectionDescription",
3436
+ children: [
3437
+ /* @__PURE__ */ f(he, { leftIcon: /* @__PURE__ */ f(Fn, {}), children: o("collection.wizard.create.form.description") }),
3438
+ /* @__PURE__ */ f(
3439
+ me,
3440
+ {
3441
+ name: "description",
3442
+ control: u,
3443
+ render: () => /* @__PURE__ */ f(
3444
+ Ln,
3445
+ {
3446
+ "data-testid": "collect-create-collection-input-description",
3447
+ id: "collectionDescription",
3448
+ content: i.current,
3449
+ placeholder: o(
3450
+ "collection.wizard.create.form.description.placeholder"
3451
+ ),
3452
+ onContentChange: L,
3453
+ mode: "edit"
3454
+ }
3455
+ )
3456
+ }
3457
+ )
3458
+ ]
3459
+ }
3460
+ ) }),
3461
+ /* @__PURE__ */ f($.Col, { sm: "4", md: "5", children: /* @__PURE__ */ f(Z, { id: "collectionAttachments", isOptional: !0, children: /* @__PURE__ */ f(
3462
+ me,
3463
+ {
3464
+ name: "attachments",
3465
+ control: u,
3466
+ render: () => /* @__PURE__ */ f(
3467
+ Tn,
3468
+ {
3469
+ "data-testid": "collect-create-collection-input-attachments",
3470
+ attachments: l,
3471
+ editMode: !0,
3472
+ onChange: C
3473
+ }
3474
+ )
3475
+ }
3476
+ ) }) })
3477
+ ] })
3478
+ }
3479
+ ) });
3480
+ }, vn = {
3484
3481
  title: "",
3485
3482
  description: "",
3486
3483
  deadline: void 0,
3487
3484
  attachments: [],
3488
3485
  sharings: []
3489
3486
  }, bl = () => {
3490
- const [e, t] = Pe(bn), [n, r] = Pe(!1), s = sn((i) => {
3487
+ const [e, t] = Pe(vn), [n, r] = Pe(!1), s = rn((i) => {
3491
3488
  t((l) => ({ ...l, ...i })), r(!0);
3492
- }, []), o = sn(() => {
3493
- t(bn), r(!1);
3489
+ }, []), o = rn(() => {
3490
+ t(vn), r(!1);
3494
3491
  }, []);
3495
3492
  return {
3496
3493
  formData: e,
@@ -3602,7 +3599,7 @@ export {
3602
3599
  bl as ao,
3603
3600
  pi as ap,
3604
3601
  si as b,
3605
- en as c,
3602
+ Jt as c,
3606
3603
  al as d,
3607
3604
  oi as e,
3608
3605
  ul as f,
package/lib/index.d.ts CHANGED
@@ -7,4 +7,5 @@ export { basename } from './routes';
7
7
  export { queryClient } from './providers';
8
8
  export { Providers } from './providers';
9
9
  export * from './features/collect-form';
10
+ export type * from './features/collect-form';
10
11
  export * from '@edifice.io/collect-client-rest';
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-DQ5t6Rhq.js";
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-fCsG2Pkd.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-DQ5t6Rhq.js";
2
+ import { S as c } from "./index-fCsG2Pkd.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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/collect-frontend",
3
- "version": "0.2.2-develop-pedago.3.20260505122017",
3
+ "version": "0.2.2-develop-pedago.3.20260505125330",
4
4
  "private": false,
5
5
  "license": "GPL-3.0",
6
6
  "author": "Edifice",