@edifice.io/collect-frontend 0.2.2-develop-pedago.3.20260512161220 → 0.2.2-develop.4.20260513134600

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 n } from "react/jsx-runtime";
2
2
  import { useEdificeClient as m, Flex as r, Button as u, IconButton as I, useBreakpoint as f, useDate as g, Badge as S } 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-CskFYCxi.js";
5
+ import { u as b, D as w } from "./DropdownActionTable-Bs5EaiPg.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-9ezn5rS9.js";
8
+ import { c as H } from "./index-CpH8PYs9.js";
9
9
  const D = ({
10
10
  collection: o
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-BYNbaa2b.js";
2
- import { n as v, o as C, p as e } from "./index-9ezn5rS9.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-CKUmmELb.js";
2
+ import { n as v, o as C, p as e } from "./index-CpH8PYs9.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-BZqwNiPU.js";
6
+ import { A as Z, C as q } from "./AppHeaderCollection-66c2o2Tr.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-DBg5EX8U.js";
9
+ import { u as ie, a as oe, s as ae } from "./submission.queries-DnYMP3qt.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-9ezn5rS9.js";
11
+ import { c as le, f as re, P as de, g as ue } from "./index-CpH8PYs9.js";
12
12
  import { u as F } from "./useGetStatusSubmission-DxHmLPxr.js";
13
- import { u as E } from "./DropdownActionTable-CskFYCxi.js";
14
- import { D as me } from "./DeleteCollectionModal-BSQeUUvE.js";
13
+ import { u as E } from "./DropdownActionTable-Bs5EaiPg.js";
14
+ import { D as me } from "./DeleteCollectionModal-BwDv_sAJ.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) => {
@@ -3,7 +3,7 @@ import { WORKFLOW_RIGHTS as u } from "@edifice.io/collect-client-rest";
3
3
  import { useEdificeClient as f, useHasWorkflow as C, useBreakpoint as h, Flex as L, AppHeader as S, Breadcrumb as g, Grid as r, LoadingScreen as x } from "@edifice.io/react";
4
4
  import { Suspense as N } from "react";
5
5
  import { useLocation as I, Navigate as O, Outlet as A } from "react-router-dom";
6
- import { u as E, M as l, A as T, C as w } from "./index-9ezn5rS9.js";
6
+ import { u as E, M as l, A as T, C as w } from "./index-CpH8PYs9.js";
7
7
  const B = async () => null, F = () => {
8
8
  const { currentApp: a } = f(), { pathname: s } = I(), n = C(u.COLLECTION_CREATE), { header: c, showMenu: i } = E(), { lg: m } = h(), d = c !== !1, o = i !== !1, p = s === "/" || s === `/${l.LIST_COLLECTIONS}`;
9
9
  return n !== void 0 && !n && p ? /* @__PURE__ */ e(O, { to: `/${l.LIST_SUBMISSIONS}`, replace: !0 }) : /* @__PURE__ */ t(L, { direction: "column", className: "flex-grow-1", 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-9ezn5rS9.js";
4
+ import { c as F, a as M, W as O, b as R } from "./index-CpH8PYs9.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-BSQeUUvE.js";
8
+ import { D as W } from "./DeleteCollectionModal-BwDv_sAJ.js";
9
9
  import { SortDirection as C, 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-CskFYCxi.js";
14
+ import { D as V } from "./DropdownActionTable-Bs5EaiPg.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-9ezn5rS9.js";
6
- import { u as D } from "./DropdownActionTable-CskFYCxi.js";
5
+ import { h as M } from "./index-CpH8PYs9.js";
6
+ import { u as D } from "./DropdownActionTable-Bs5EaiPg.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-9ezn5rS9.js";
9
+ import { c as M } from "./index-CpH8PYs9.js";
10
10
  const T = b((e) => ({
11
11
  isDeleteModalOpen: !1,
12
12
  deleteCollectionId: null,
@@ -4,8 +4,8 @@ import { useEdificeClient as x, useBreakpoint as I, useToast as w, useHasWorkflo
4
4
  import { useState as L } from "react";
5
5
  import { useTranslation as O } from "react-i18next";
6
6
  import { useParams as P, useNavigate as k } from "react-router-dom";
7
- import { m as A, f as Q, P as R, F as W, g as j } from "./index-9ezn5rS9.js";
8
- import { s as H } from "./submission.queries-DBg5EX8U.js";
7
+ import { m as A, f as Q, P as R, F as W, g as j } from "./index-CpH8PYs9.js";
8
+ import { s as H } from "./submission.queries-DnYMP3qt.js";
9
9
  const K = (s) => async ({ params: i }) => {
10
10
  const a = Number(i.collectionId);
11
11
  return await s.ensureQueryData(j(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, B as ws, D as or, E as $e, G as V, H as Gn, I as Vn, J as dt, K as A, L as q, N as xs, O as cn, Q as Ne, R as $s, T as qt, U as zt, V as Cs, X as Ss, Y as $n, Z as ks, _ as Br, $ as Kt, a0 as Ro, a1 as Es, a2 as W, a3 as Nr, a4 as Ds, a5 as Ms, a6 as ir, a7 as As, a8 as Ts, a9 as Fs, aa as zn, ab as Is, ac as Os, ad as oe, ae as Ls, af as Ps } from "./index-9ezn5rS9.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, B as ws, D as or, E as $e, G as V, H as Gn, I as Vn, J as dt, K as A, L as q, N as xs, O as cn, Q as Ne, R as $s, T as qt, U as zt, V as Cs, X as Ss, Y as $n, Z as ks, _ as Br, $ as Kt, a0 as Ro, a1 as Es, a2 as W, a3 as Nr, a4 as Ds, a5 as Ms, a6 as ir, a7 as As, a8 as Ts, a9 as Fs, aa as zn, ab as Is, ac as Os, ad as oe, ae as Ls, af as Ps } from "./index-CpH8PYs9.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-BYNbaa2b.js";
2
- import { n as p, o as d, p as e } from "./index-9ezn5rS9.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-CKUmmELb.js";
2
+ import { n as p, o as d, p as e } from "./index-CpH8PYs9.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 T, useBreakpoint as v, useToast as I, useHasWorkflow as w, LoadingScreen as D, Grid as l, Flex as d, Button as u } from "@edifice.io/react";
4
4
  import { useTranslation as E } from "react-i18next";
5
5
  import { useParams as O, useNavigate as S } from "react-router-dom";
6
- import { i as k, j as m, f as A, P as L, k as j, g as P, l as Q } from "./index-9ezn5rS9.js";
7
- import { s as R } from "./submission.queries-DBg5EX8U.js";
6
+ import { i as k, j as m, f as A, P as L, k as j, g as P, l as Q } from "./index-CpH8PYs9.js";
7
+ import { s as R } from "./submission.queries-DnYMP3qt.js";
8
8
  const _ = (t) => async ({ params: o }) => {
9
9
  const s = Number(o.collectionId);
10
10
  return await t.ensureQueryData(P(s)), await t.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-9ezn5rS9.js";
5
+ import { P as d } from "./index-CpH8PYs9.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-BZqwNiPU.js";
5
+ import { u as g, A as T, C as j } from "./AppHeaderCollection-66c2o2Tr.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-CskFYCxi.js";
11
- import { b as W, c as z, d as G } from "./submission.queries-DBg5EX8U.js";
12
- import { f as V, P as J, g as K } from "./index-9ezn5rS9.js";
10
+ import { u as w } from "./DropdownActionTable-Bs5EaiPg.js";
11
+ import { b as W, c as z, d as G } from "./submission.queries-DnYMP3qt.js";
12
+ import { f as V, P as J, g as K } from "./index-CpH8PYs9.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-9ezn5rS9.js";
7
+ import { c as U, d as Y, e as k } from "./index-CpH8PYs9.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,23 +1,23 @@
1
- var Jt = (e) => {
1
+ var tn = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
- var en = (e, t, n) => t.has(e) || Jt("Cannot " + n);
5
- var g = (e, t, n) => (en(e, t, "read from private field"), n ? n.call(e) : t.get(e)), E = (e, t, n) => t.has(e) ? Jt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), A = (e, t, n, r) => (en(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 g = (e, t, n) => (nn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), E = (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), A = (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 d, jsxs as U, Fragment as Ir } from "react/jsx-runtime";
7
- import { WORKFLOW_RIGHTS as vn, SharingPermission as it, CollectionClient as Ar, MediaType as Or } from "@edifice.io/collect-client-rest";
8
- import { useEdificeClient as xe, useHasWorkflow as bn, Button as Z, EdificeClientProvider as Sn, Heading as Qt, Layout as Tr, Stepper as wn, Grid as K, FormControl as et, Label as It, Input as Er, DatePicker as Nr, AddAttachments as Rr, useIsAdmlcOrAdmc as Cn, useUser as In, useDebounce as xr, Flex as lt, Combobox as Pr, Alert as kr, UserRightsList as Mr, useToast as Lr, useBreakpoint as _r, EdificeThemeProvider as Ur, LoadingScreen as Vr, Menu as At, Tree as Fr } from "@edifice.io/react";
9
- import { IconPlus as Br, IconLabel as $r, IconFlag as qr, IconTextPage as Dr, IconBookmark as Gr, IconGroupAvatar as Kr, IconArrowLeft as jr, IconArrowRight as tn, IconSubmission as Qr, IconCollect as Hr } from "@edifice.io/react/icons";
7
+ import { WORKFLOW_RIGHTS as Lt, SharingPermission as it, CollectionClient as Ar, MediaType as Or } from "@edifice.io/collect-client-rest";
8
+ import { useEdificeClient as xe, useHasWorkflow as _t, Button as Z, EdificeClientProvider as Sn, Heading as Wt, Layout as Tr, Stepper as wn, Grid as K, FormControl as et, Label as It, Input as Er, DatePicker as Nr, AddAttachments as Rr, useIsAdmlcOrAdmc as Cn, useUser as In, useDebounce as xr, Flex as lt, Combobox as Pr, Alert as kr, UserRightsList as Mr, useToast as Lr, useBreakpoint as _r, EdificeThemeProvider as Ur, LoadingScreen as Vr, Menu as At, Tree as Fr } from "@edifice.io/react";
9
+ import { IconPlus as Br, IconLabel as $r, IconFlag as qr, IconTextPage as Dr, IconBookmark as Gr, IconGroupAvatar as Kr, IconArrowLeft as jr, IconArrowRight as rn, IconSubmission as Qr, IconCollect as Hr } from "@edifice.io/react/icons";
10
10
  import { useTranslation as Pe, Trans as Wr } from "react-i18next";
11
- import { useNavigate as ke, useRouteError as An, useLocation as On, Form as Xr, Routes as Yr, Route as nn, createBrowserRouter as zr, createMemoryRouter as Zr, RouterProvider as Jr } from "react-router-dom";
11
+ import { useNavigate as ke, useRouteError as An, useLocation as On, Form as Xr, Routes as Yr, Route as sn, createBrowserRouter as zr, createMemoryRouter as Zr, RouterProvider as Jr } from "react-router-dom";
12
12
  import * as q from "react";
13
- import { createContext as pt, useContext as gt, useState as yt, useEffect as j, useMemo as Ht, useRef as ne, useReducer as es, useLayoutEffect as ts, Suspense as ns } from "react";
13
+ import { createContext as pt, useContext as gt, useState as yt, useEffect as j, useMemo as Xt, useRef as ne, useReducer as es, useLayoutEffect as ts, Suspense as ns } from "react";
14
14
  import { useQueryClient as ee, onlineManager as Tn, QueryClient as rs, QueryCache as ss, QueryClientProvider as En, queryOptions as Ot, useQuery as os, useMutation as vt, useInfiniteQuery as Nn } from "@tanstack/react-query";
15
15
  import { createRoot as is } from "react-dom/client";
16
16
  import { ERROR_CODE as ls, odeServices as _e } from "@edifice.io/client";
17
17
  import { t as Tt } from "i18next";
18
18
  import { Editor as cs } from "@edifice.io/react/editor";
19
19
  import { useForm as as, Controller as Et } from "react-hook-form";
20
- import { create as Wt } from "zustand";
20
+ import { create as Yt } from "zustand";
21
21
  const Rn = pt(
22
22
  {
23
23
  basePath: ""
@@ -35,7 +35,7 @@ const fs = () => gt(Rn), ds = (e, t) => {
35
35
  };
36
36
  function hs() {
37
37
  const { appCode: e } = xe(), { t } = Pe(e), { basePath: n } = fs(), r = ke();
38
- return bn(vn.COLLECTION_CREATE) && /* @__PURE__ */ d(
38
+ return _t(Lt.COLLECTION_CREATE) && /* @__PURE__ */ d(
39
39
  Z,
40
40
  {
41
41
  "data-testid": "collect-collection-app-header-create-collection-button",
@@ -53,13 +53,13 @@ var y = {
53
53
  effects: void 0,
54
54
  done: !1,
55
55
  getContextId() {
56
- return rn(this.context.count);
56
+ return on(this.context.count);
57
57
  },
58
58
  getNextContextId() {
59
- return rn(this.context.count++);
59
+ return on(this.context.count++);
60
60
  }
61
61
  };
62
- function rn(e) {
62
+ function on(e) {
63
63
  const t = String(e), n = t.length - 1;
64
64
  return y.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
65
65
  }
@@ -160,11 +160,11 @@ function vs(e, t, n) {
160
160
  refetching: I
161
161
  })
162
162
  );
163
- return ys(k) ? (i = k, "value" in k ? (k.status === "success" ? S(i, k.value, void 0, T) : S(i, void 0, Lt(k.value), T), k) : (a = !0, queueMicrotask(() => a = !1), Q(() => {
163
+ return ys(k) ? (i = k, "value" in k ? (k.status === "success" ? S(i, k.value, void 0, T) : S(i, void 0, Ut(k.value), T), k) : (a = !0, queueMicrotask(() => a = !1), Q(() => {
164
164
  V(f ? "refreshing" : "pending"), C();
165
165
  }, !1), k.then(
166
166
  (P) => S(k, P, void 0, T),
167
- (P) => S(k, void 0, Lt(P), T)
167
+ (P) => S(k, void 0, Ut(P), T)
168
168
  ))) : (S(i, k, void 0, T), k);
169
169
  }
170
170
  return Object.defineProperties(b, {
@@ -230,7 +230,7 @@ function bs(e) {
230
230
  function Fe(e) {
231
231
  return w === null || (w.cleanups === null ? w.cleanups = [e] : w.cleanups.push(e)), e;
232
232
  }
233
- function sn() {
233
+ function ln() {
234
234
  return w;
235
235
  }
236
236
  function Ss(e, t) {
@@ -239,7 +239,7 @@ function Ss(e, t) {
239
239
  try {
240
240
  return Q(t, !0);
241
241
  } catch (s) {
242
- Xt(s);
242
+ zt(s);
243
243
  } finally {
244
244
  w = n, N = r;
245
245
  }
@@ -269,7 +269,7 @@ function Gi(e) {
269
269
  return w && w.context && (t = w.context[e.id]) !== void 0 ? t : e.defaultValue;
270
270
  }
271
271
  function Un(e) {
272
- const t = F(e), n = F(() => _t(t()));
272
+ const t = F(e), n = F(() => Vt(t()));
273
273
  return n.toArray = () => {
274
274
  const r = n();
275
275
  return Array.isArray(r) ? r : r != null ? [r] : [];
@@ -317,7 +317,7 @@ function As(e, t, n) {
317
317
  try {
318
318
  r = e.fn(t);
319
319
  } catch (i) {
320
- return e.pure && (e.state = Y, e.owned && e.owned.forEach(Be), e.owned = null), e.updatedAt = n + 1, Xt(i);
320
+ return e.pure && (e.state = Y, e.owned && e.owned.forEach(Be), e.owned = null), e.updatedAt = n + 1, zt(i);
321
321
  } finally {
322
322
  N = o, w = s;
323
323
  }
@@ -362,7 +362,7 @@ function Q(e, t) {
362
362
  const r = e();
363
363
  return Os(n), r;
364
364
  } catch (r) {
365
- n || (X = null), $ = null, Xt(r);
365
+ n || (X = null), $ = null, zt(r);
366
366
  }
367
367
  }
368
368
  function Os(e) {
@@ -428,20 +428,20 @@ function Be(e) {
428
428
  }
429
429
  e.state = 0;
430
430
  }
431
- function Lt(e) {
431
+ function Ut(e) {
432
432
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
433
433
  cause: e
434
434
  });
435
435
  }
436
- function Xt(e, t = w) {
437
- throw Lt(e);
436
+ function zt(e, t = w) {
437
+ throw Ut(e);
438
438
  }
439
- function _t(e) {
440
- if (typeof e == "function" && !e.length) return _t(e());
439
+ function Vt(e) {
440
+ if (typeof e == "function" && !e.length) return Vt(e());
441
441
  if (Array.isArray(e)) {
442
442
  const t = [];
443
443
  for (let n = 0; n < e.length; n++) {
444
- const r = _t(e[n]);
444
+ const r = Vt(e[n]);
445
445
  Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
446
446
  }
447
447
  return t;
@@ -460,7 +460,7 @@ function Es(e, t) {
460
460
  ), s;
461
461
  };
462
462
  }
463
- var Ut = Symbol("fallback");
463
+ var Ft = Symbol("fallback");
464
464
  function mt(e) {
465
465
  for (let t = 0; t < e.length; t++) e[t]();
466
466
  }
@@ -471,7 +471,7 @@ function Ns(e, t, n = {}) {
471
471
  return c[kn], B(() => {
472
472
  let h, p, v, O, _, C, M, V, S;
473
473
  if (a === 0)
474
- i !== 0 && (mt(o), o = [], r = [], s = [], i = 0, l && (l = [])), n.fallback && (r = [Ut], s[0] = oe((D) => (o[0] = D, n.fallback())), i = 1);
474
+ i !== 0 && (mt(o), o = [], r = [], s = [], i = 0, l && (l = [])), n.fallback && (r = [Ft], s[0] = oe((D) => (o[0] = D, n.fallback())), i = 1);
475
475
  else if (i === 0) {
476
476
  for (s = new Array(a), u = 0; u < a; u++)
477
477
  r[u] = c[u], s[u] = oe(m);
@@ -505,8 +505,8 @@ function Rs(e, t, n = {}) {
505
505
  const a = e() || [], f = a.length;
506
506
  return a[kn], B(() => {
507
507
  if (f === 0)
508
- return l !== 0 && (mt(o), o = [], r = [], s = [], l = 0, i = []), n.fallback && (r = [Ut], s[0] = oe((m) => (o[0] = m, n.fallback())), l = 1), s;
509
- for (r[0] === Ut && (o[0](), o = [], r = [], s = [], l = 0), c = 0; c < f; c++)
508
+ return l !== 0 && (mt(o), o = [], r = [], s = [], l = 0, i = []), n.fallback && (r = [Ft], s[0] = oe((m) => (o[0] = m, n.fallback())), l = 1), s;
509
+ for (r[0] === Ft && (o[0](), o = [], r = [], s = [], l = 0), c = 0; c < f; c++)
510
510
  c < r.length && r[c] !== a[c] ? i[c](() => a[c]) : c >= r.length && (s[c] = oe(u));
511
511
  for (; c < r.length; c++)
512
512
  o[c]();
@@ -525,7 +525,7 @@ function qn(e, t) {
525
525
  function tt() {
526
526
  return !0;
527
527
  }
528
- var Vt = {
528
+ var Bt = {
529
529
  get(e, t, n) {
530
530
  return t === at ? n : e.get(t);
531
531
  },
@@ -585,7 +585,7 @@ function Dn(...e) {
585
585
  return [...new Set(i)];
586
586
  }
587
587
  },
588
- Vt
588
+ Bt
589
589
  );
590
590
  const n = {}, r = /* @__PURE__ */ Object.create(null);
591
591
  for (let i = e.length - 1; i >= 0; i--) {
@@ -629,7 +629,7 @@ function Ps(e, ...t) {
629
629
  return i.filter((l) => l in e);
630
630
  }
631
631
  },
632
- Vt
632
+ Bt
633
633
  ));
634
634
  return o.push(
635
635
  new Proxy(
@@ -644,7 +644,7 @@ function Ps(e, ...t) {
644
644
  return Object.keys(e).filter((i) => !s.has(i));
645
645
  }
646
646
  },
647
- Vt
647
+ Bt
648
648
  )
649
649
  ), o;
650
650
  }
@@ -984,7 +984,7 @@ var Ue = "_$DX_DELEGATE";
984
984
  function jn(e, t, n, r = {}) {
985
985
  let s;
986
986
  return oe((o) => {
987
- s = o, t === document ? e() : Bt(t, e(), t.firstChild ? null : void 0, n);
987
+ s = o, t === document ? e() : qt(t, e(), t.firstChild ? null : void 0, n);
988
988
  }, r.owner), () => {
989
989
  s(), t.textContent = "";
990
990
  };
@@ -1010,7 +1010,7 @@ function zi(e = window.document) {
1010
1010
  delete e[Ue];
1011
1011
  }
1012
1012
  }
1013
- function Ft(e, t, n) {
1013
+ function $t(e, t, n) {
1014
1014
  le(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
1015
1015
  }
1016
1016
  function Ks(e, t, n, r) {
@@ -1035,16 +1035,16 @@ function Ws(e, t, n = {}) {
1035
1035
  let o, i;
1036
1036
  for (o = 0, i = s.length; o < i; o++) {
1037
1037
  const l = s[o];
1038
- !l || l === "undefined" || t[l] || (on(e, l, !1), delete n[l]);
1038
+ !l || l === "undefined" || t[l] || (cn(e, l, !1), delete n[l]);
1039
1039
  }
1040
1040
  for (o = 0, i = r.length; o < i; o++) {
1041
1041
  const l = r[o], c = !!t[l];
1042
- !l || l === "undefined" || n[l] === c || !c || (on(e, l, !0), n[l] = c);
1042
+ !l || l === "undefined" || n[l] === c || !c || (cn(e, l, !0), n[l] = c);
1043
1043
  }
1044
1044
  return n;
1045
1045
  }
1046
1046
  function Xs(e, t, n) {
1047
- if (!t) return n ? Ft(e, "style") : t;
1047
+ if (!t) return n ? $t(e, "style") : t;
1048
1048
  const r = e.style;
1049
1049
  if (typeof t == "string") return r.cssText = t;
1050
1050
  typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), t || (t = {});
@@ -1064,7 +1064,7 @@ function Ys(e, t = {}, n, r) {
1064
1064
  function zs(e, t, n) {
1065
1065
  return B(() => e(t, n));
1066
1066
  }
1067
- function Bt(e, t, n, r) {
1067
+ function qt(e, t, n, r) {
1068
1068
  if (n !== void 0 && !r && (r = []), typeof t != "function") return $e(e, t, r, n);
1069
1069
  ie((s) => $e(e, t(), s, n), r);
1070
1070
  }
@@ -1073,13 +1073,13 @@ function Zs(e, t, n, r, s = {}, o = !1) {
1073
1073
  for (const i in s)
1074
1074
  if (!(i in t)) {
1075
1075
  if (i === "children") continue;
1076
- s[i] = ln(e, i, null, s[i], n, o, t);
1076
+ s[i] = an(e, i, null, s[i], n, o, t);
1077
1077
  }
1078
1078
  for (const i in t) {
1079
1079
  if (i === "children")
1080
1080
  continue;
1081
1081
  const l = t[i];
1082
- s[i] = ln(e, i, l, s[i], n, o, t);
1082
+ s[i] = an(e, i, l, s[i], n, o, t);
1083
1083
  }
1084
1084
  }
1085
1085
  function Js(e) {
@@ -1092,12 +1092,12 @@ function le(e) {
1092
1092
  function eo(e) {
1093
1093
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
1094
1094
  }
1095
- function on(e, t, n) {
1095
+ function cn(e, t, n) {
1096
1096
  const r = t.trim().split(/\s+/);
1097
1097
  for (let s = 0, o = r.length; s < o; s++)
1098
1098
  e.classList.toggle(r[s], n);
1099
1099
  }
1100
- function ln(e, t, n, r, s, o, i) {
1100
+ function an(e, t, n, r, s, o, i) {
1101
1101
  let l, c, a, f, u;
1102
1102
  if (t === "style") return Xs(e, n, r);
1103
1103
  if (t === "classList") return Ws(e, n, r);
@@ -1118,7 +1118,7 @@ function ln(e, t, n, r, s, o, i) {
1118
1118
  }
1119
1119
  (h || n) && (Hs(e, m, n, h), h && Gs([m]));
1120
1120
  } else if (t.slice(0, 5) === "attr:")
1121
- Ft(e, t.slice(5), n);
1121
+ $t(e, t.slice(5), n);
1122
1122
  else if (t.slice(0, 5) === "bool:")
1123
1123
  js(e, t.slice(5), n);
1124
1124
  else if ((u = t.slice(0, 5) === "prop:") || (a = _s.has(t)) || !s && ((f = Fs(t, e.tagName)) || (c = Ls.has(t))) || (l = e.nodeName.includes("-") || "is" in i)) {
@@ -1128,7 +1128,7 @@ function ln(e, t, n, r, s, o, i) {
1128
1128
  t === "class" || t === "className" ? Qs(e, n) : l && !c && !a ? e[eo(t)] = n : e[f || t] = n;
1129
1129
  } else {
1130
1130
  const m = s && t.indexOf(":") > -1 && qs[t.split(":")[0]];
1131
- m ? Ks(e, m, t, n) : Ft(e, Us[t] || t, n);
1131
+ m ? Ks(e, m, t, n) : $t(e, Us[t] || t, n);
1132
1132
  }
1133
1133
  return n;
1134
1134
  }
@@ -1202,7 +1202,7 @@ function $e(e, t, n, r, s) {
1202
1202
  }), () => n;
1203
1203
  if (Array.isArray(t)) {
1204
1204
  const c = [], a = n && Array.isArray(n);
1205
- if ($t(c, t, n, s))
1205
+ if (Dt(c, t, n, s))
1206
1206
  return ie(() => n = $e(e, c, n, r, !0)), () => n;
1207
1207
  if (o) {
1208
1208
  if (!c.length) return n;
@@ -1215,7 +1215,7 @@ function $e(e, t, n, r, s) {
1215
1215
  }
1216
1216
  if (c.length === 0) {
1217
1217
  if (n = ae(e, n, r), l) return n;
1218
- } else a ? n.length === 0 ? cn(e, c, r) : Ds(e, n, c) : (n && ae(e), cn(e, c));
1218
+ } else a ? n.length === 0 ? un(e, c, r) : Ds(e, n, c) : (n && ae(e), un(e, c));
1219
1219
  n = c;
1220
1220
  } else if (t.nodeType) {
1221
1221
  if (o && t.parentNode) return n = l ? [t] : t;
@@ -1228,18 +1228,18 @@ function $e(e, t, n, r, s) {
1228
1228
  }
1229
1229
  return n;
1230
1230
  }
1231
- function $t(e, t, n, r) {
1231
+ function Dt(e, t, n, r) {
1232
1232
  let s = !1;
1233
1233
  for (let o = 0, i = t.length; o < i; o++) {
1234
1234
  let l = t[o], c = n && n[e.length], a;
1235
1235
  if (!(l == null || l === !0 || l === !1)) if ((a = typeof l) == "object" && l.nodeType)
1236
1236
  e.push(l);
1237
1237
  else if (Array.isArray(l))
1238
- s = $t(e, l, c) || s;
1238
+ s = Dt(e, l, c) || s;
1239
1239
  else if (a === "function")
1240
1240
  if (r) {
1241
1241
  for (; typeof l == "function"; ) l = l();
1242
- s = $t(
1242
+ s = Dt(
1243
1243
  e,
1244
1244
  Array.isArray(l) ? l : [l],
1245
1245
  Array.isArray(c) ? c : [c]
@@ -1253,7 +1253,7 @@ function $t(e, t, n, r) {
1253
1253
  }
1254
1254
  return s;
1255
1255
  }
1256
- function cn(e, t, n = null) {
1256
+ function un(e, t, n = null) {
1257
1257
  for (let r = 0, s = t.length; r < s; r++) e.insertBefore(t[r], n);
1258
1258
  }
1259
1259
  function ae(e, t, n, r) {
@@ -1279,15 +1279,15 @@ function Hn(e, t = !1) {
1279
1279
  return t ? document.createElementNS(no, e) : document.createElement(e);
1280
1280
  }
1281
1281
  function Zi(e) {
1282
- const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, s = sn();
1282
+ const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, s = ln();
1283
1283
  let o, i = !!y.context;
1284
1284
  return _n(
1285
1285
  () => {
1286
- i && (sn().user = i = !1), o || (o = Ss(s, () => F(() => e.children)));
1286
+ i && (ln().user = i = !1), o || (o = Ss(s, () => F(() => e.children)));
1287
1287
  const l = r();
1288
1288
  if (l instanceof HTMLHeadElement) {
1289
1289
  const [c, a] = L(!1), f = () => a(!0);
1290
- oe((u) => Bt(l, () => c() ? u() : o(), null)), Fe(f);
1290
+ oe((u) => qt(l, () => c() ? u() : o(), null)), Fe(f);
1291
1291
  } else {
1292
1292
  const c = Hn(e.isSVG ? "g" : "div", e.isSVG), a = t && c.attachShadow ? c.attachShadow({
1293
1293
  mode: "open"
@@ -1297,7 +1297,7 @@ function Zi(e) {
1297
1297
  return n.parentNode;
1298
1298
  },
1299
1299
  configurable: !0
1300
- }), Bt(a, o), l.appendChild(c), e.ref && e.ref(c), Fe(() => l.removeChild(c));
1300
+ }), qt(a, o), l.appendChild(c), e.ref && e.ref(c), Fe(() => l.removeChild(c));
1301
1301
  }
1302
1302
  },
1303
1303
  void 0,
@@ -1391,7 +1391,7 @@ function Re(e, t) {
1391
1391
  function ct(e, t) {
1392
1392
  return e.indexOf(t) !== -1;
1393
1393
  }
1394
- function an(e, t) {
1394
+ function fn(e, t) {
1395
1395
  for (let n = 0; n < e.length; n++) {
1396
1396
  const r = e[n];
1397
1397
  if (t(r))
@@ -1411,7 +1411,7 @@ var co = class {
1411
1411
  findByName(e) {
1412
1412
  return this.transfomers[e];
1413
1413
  }
1414
- }, ao = (e) => Object.prototype.toString.call(e).slice(8, -1), Xn = (e) => typeof e > "u", uo = (e) => e === null, qe = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, qt = (e) => qe(e) && Object.keys(e).length === 0, J = (e) => Array.isArray(e), fo = (e) => typeof e == "string", ho = (e) => typeof e == "number" && !isNaN(e), mo = (e) => typeof e == "boolean", po = (e) => e instanceof RegExp, De = (e) => e instanceof Map, Ge = (e) => e instanceof Set, Yn = (e) => ao(e) === "Symbol", go = (e) => e instanceof Date && !isNaN(e.valueOf()), yo = (e) => e instanceof Error, un = (e) => typeof e == "number" && isNaN(e), vo = (e) => mo(e) || uo(e) || Xn(e) || ho(e) || fo(e) || Yn(e), bo = (e) => typeof e == "bigint", So = (e) => e === 1 / 0 || e === -1 / 0, wo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Co = (e) => e instanceof URL, zn = (e) => e.replace(/\./g, "\\."), Pt = (e) => e.map(String).map(zn).join("."), Ve = (e) => {
1414
+ }, ao = (e) => Object.prototype.toString.call(e).slice(8, -1), Xn = (e) => typeof e > "u", uo = (e) => e === null, qe = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Gt = (e) => qe(e) && Object.keys(e).length === 0, J = (e) => Array.isArray(e), fo = (e) => typeof e == "string", ho = (e) => typeof e == "number" && !isNaN(e), mo = (e) => typeof e == "boolean", po = (e) => e instanceof RegExp, De = (e) => e instanceof Map, Ge = (e) => e instanceof Set, Yn = (e) => ao(e) === "Symbol", go = (e) => e instanceof Date && !isNaN(e.valueOf()), yo = (e) => e instanceof Error, dn = (e) => typeof e == "number" && isNaN(e), vo = (e) => mo(e) || uo(e) || Xn(e) || ho(e) || fo(e) || Yn(e), bo = (e) => typeof e == "bigint", So = (e) => e === 1 / 0 || e === -1 / 0, wo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Co = (e) => e instanceof URL, zn = (e) => e.replace(/\./g, "\\."), Pt = (e) => e.map(String).map(zn).join("."), Ve = (e) => {
1415
1415
  const t = [];
1416
1416
  let n = "";
1417
1417
  for (let s = 0; s < e.length; s++) {
@@ -1469,7 +1469,7 @@ var Zn = [
1469
1469
  (e) => new Set(e)
1470
1470
  ),
1471
1471
  G(De, "map", (e) => [...e.entries()], (e) => new Map(e)),
1472
- G((e) => un(e) || So(e), "number", (e) => un(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1472
+ G((e) => dn(e) || So(e), "number", (e) => dn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1473
1473
  G((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
1474
1474
  G(Co, "URL", (e) => e.toString(), (e) => new URL(e))
1475
1475
  ];
@@ -1523,14 +1523,14 @@ var nr = wt(tr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
1523
1523
  if (!r)
1524
1524
  throw new Error("Trying to deserialize unknown custom value");
1525
1525
  return r.deserialize(e);
1526
- }), Ao = [nr, Jn, rr, er], fn = (e, t) => {
1527
- const n = an(Ao, (s) => s.isApplicable(e, t));
1526
+ }), Ao = [nr, Jn, rr, er], hn = (e, t) => {
1527
+ const n = fn(Ao, (s) => s.isApplicable(e, t));
1528
1528
  if (n)
1529
1529
  return {
1530
1530
  value: n.transform(e, t),
1531
1531
  type: n.annotation(e, t)
1532
1532
  };
1533
- const r = an(Zn, (s) => s.isApplicable(e, t));
1533
+ const r = fn(Zn, (s) => s.isApplicable(e, t));
1534
1534
  if (r)
1535
1535
  return {
1536
1536
  value: r.transform(e, t),
@@ -1594,7 +1594,7 @@ var To = (e, t) => {
1594
1594
  e = e[r];
1595
1595
  }
1596
1596
  return e;
1597
- }, Dt = (e, t, n) => {
1597
+ }, Kt = (e, t, n) => {
1598
1598
  if (or(t), t.length === 0)
1599
1599
  return n(e);
1600
1600
  let r = e;
@@ -1643,34 +1643,34 @@ var To = (e, t) => {
1643
1643
  }
1644
1644
  return e;
1645
1645
  };
1646
- function Gt(e, t, n = []) {
1646
+ function jt(e, t, n = []) {
1647
1647
  if (!e)
1648
1648
  return;
1649
1649
  if (!J(e)) {
1650
- Re(e, (o, i) => Gt(o, t, [...n, ...Ve(i)]));
1650
+ Re(e, (o, i) => jt(o, t, [...n, ...Ve(i)]));
1651
1651
  return;
1652
1652
  }
1653
1653
  const [r, s] = e;
1654
1654
  s && Re(s, (o, i) => {
1655
- Gt(o, t, [...n, ...Ve(i)]);
1655
+ jt(o, t, [...n, ...Ve(i)]);
1656
1656
  }), t(r, n);
1657
1657
  }
1658
1658
  function Eo(e, t, n) {
1659
- return Gt(t, (r, s) => {
1660
- e = Dt(e, s, (o) => Oo(o, r, n));
1659
+ return jt(t, (r, s) => {
1660
+ e = Kt(e, s, (o) => Oo(o, r, n));
1661
1661
  }), e;
1662
1662
  }
1663
1663
  function No(e, t) {
1664
1664
  function n(r, s) {
1665
1665
  const o = To(e, Ve(s));
1666
1666
  r.map(Ve).forEach((i) => {
1667
- e = Dt(e, i, () => o);
1667
+ e = Kt(e, i, () => o);
1668
1668
  });
1669
1669
  }
1670
1670
  if (J(t)) {
1671
1671
  const [r, s] = t;
1672
1672
  r.forEach((o) => {
1673
- e = Dt(e, Ve(o), () => e);
1673
+ e = Kt(e, Ve(o), () => e);
1674
1674
  }), s && Re(s, n);
1675
1675
  } else
1676
1676
  Re(t, n);
@@ -1690,7 +1690,7 @@ function Po(e, t) {
1690
1690
  t || (s = s.map((l) => l.map(String)).sort((l, c) => l.length - c.length));
1691
1691
  const [o, ...i] = s;
1692
1692
  o.length === 0 ? r = i.map(Pt) : n[Pt(o)] = i.map(Pt);
1693
- }), r ? qt(n) ? [r] : [r, n] : qt(n) ? void 0 : n;
1693
+ }), r ? Gt(n) ? [r] : [r, n] : Gt(n) ? void 0 : n;
1694
1694
  }
1695
1695
  var ir = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1696
1696
  const l = vo(e);
@@ -1703,7 +1703,7 @@ var ir = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1703
1703
  } : h;
1704
1704
  }
1705
1705
  if (!Ro(e, n)) {
1706
- const h = fn(e, n), p = h ? {
1706
+ const h = hn(e, n), p = h ? {
1707
1707
  transformedValue: h.value,
1708
1708
  annotations: [h.type]
1709
1709
  } : {
@@ -1715,7 +1715,7 @@ var ir = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1715
1715
  return {
1716
1716
  transformedValue: null
1717
1717
  };
1718
- const c = fn(e, n), a = (c == null ? void 0 : c.value) ?? e, f = J(a) ? [] : {}, u = {};
1718
+ const c = hn(e, n), a = (c == null ? void 0 : c.value) ?? e, f = J(a) ? [] : {}, u = {};
1719
1719
  Re(a, (h, p) => {
1720
1720
  if (p === "__proto__" || p === "constructor" || p === "prototype")
1721
1721
  throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
@@ -1724,7 +1724,7 @@ var ir = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1724
1724
  u[zn(p) + "." + _] = O;
1725
1725
  });
1726
1726
  });
1727
- const m = qt(u) ? {
1727
+ const m = Gt(u) ? {
1728
1728
  transformedValue: f,
1729
1729
  annotations: c ? [c.type] : void 0
1730
1730
  } : {
@@ -1736,7 +1736,7 @@ var ir = (e, t, n, r, s = [], o = [], i = /* @__PURE__ */ new Map()) => {
1736
1736
  function lr(e) {
1737
1737
  return Object.prototype.toString.call(e).slice(8, -1);
1738
1738
  }
1739
- function dn(e) {
1739
+ function mn(e) {
1740
1740
  return lr(e) === "Array";
1741
1741
  }
1742
1742
  function ko(e) {
@@ -1754,16 +1754,16 @@ function Mo(e, t, n, r, s) {
1754
1754
  configurable: !0
1755
1755
  });
1756
1756
  }
1757
- function Kt(e, t = {}) {
1758
- if (dn(e))
1759
- return e.map((s) => Kt(s, t));
1757
+ function Qt(e, t = {}) {
1758
+ if (mn(e))
1759
+ return e.map((s) => Qt(s, t));
1760
1760
  if (!ko(e))
1761
1761
  return e;
1762
1762
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
1763
1763
  return [...n, ...r].reduce((s, o) => {
1764
- if (dn(t.props) && !t.props.includes(o))
1764
+ if (mn(t.props) && !t.props.includes(o))
1765
1765
  return s;
1766
- const i = e[o], l = Kt(i, t);
1766
+ const i = e[o], l = Qt(i, t);
1767
1767
  return Mo(s, o, l, e, t.nonenumerable), s;
1768
1768
  }, {});
1769
1769
  }
@@ -1790,7 +1790,7 @@ var R = class {
1790
1790
  }
1791
1791
  deserialize(e) {
1792
1792
  const { json: t, meta: n } = e;
1793
- let r = Kt(t);
1793
+ let r = Qt(t);
1794
1794
  return n != null && n.values && (r = Eo(r, n.values, this)), n != null && n.referentialEqualities && (r = No(r, n.referentialEqualities)), r;
1795
1795
  }
1796
1796
  stringify(e) {
@@ -1933,7 +1933,7 @@ var il = (e, t = !1) => {
1933
1933
  if (!e || document.querySelector("#_goober") || (t == null ? void 0 : t.querySelector("#_goober"))) return;
1934
1934
  const r = document.createElement("style"), s = document.createTextNode("");
1935
1935
  r.appendChild(s), r.id = "_goober", r.setAttribute("nonce", e), t ? t.appendChild(r) : document.head.appendChild(r);
1936
- }, me, Ke, je, Qe, re, He, pe, ge, ye, ve, be, Se, We, gn, Fo = (gn = class {
1936
+ }, me, Ke, je, Qe, re, He, pe, ge, ye, ve, be, Se, We, vn, Fo = (vn = class {
1937
1937
  constructor(e) {
1938
1938
  E(this, me);
1939
1939
  E(this, Ke);
@@ -1983,7 +1983,7 @@ var il = (e, t = !1) => {
1983
1983
  const t = jn(() => {
1984
1984
  const n = this, [r] = g(this, ge), [s] = g(this, ye), [o] = g(this, ve), [i] = g(this, be), [l] = g(this, me);
1985
1985
  let c;
1986
- return g(this, Se) ? c = g(this, Se) : (c = Gn(() => import("./I3HPI4QX-DcUZQQux.js")), A(this, Se, c)), ur(g(this, He), g(this, pe)), qn(c, Dn({
1986
+ return g(this, Se) ? c = g(this, Se) : (c = Gn(() => import("./I3HPI4QX-qq_FZ0An.js")), A(this, Se, c)), ur(g(this, He), g(this, pe)), qn(c, Dn({
1987
1987
  get queryFlavor() {
1988
1988
  return g(n, je);
1989
1989
  },
@@ -2022,7 +2022,7 @@ var il = (e, t = !1) => {
2022
2022
  throw new Error("Devtools is not mounted");
2023
2023
  (e = g(this, We)) == null || e.call(this), A(this, re, !1);
2024
2024
  }
2025
- }, me = new WeakMap(), Ke = new WeakMap(), je = new WeakMap(), Qe = new WeakMap(), re = new WeakMap(), He = new WeakMap(), pe = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), Se = new WeakMap(), We = new WeakMap(), gn), we, Xe, Ye, ze, se, Ze, Ce, Ie, Ae, Oe, Te, Ee, Ne, Je, yn, Bo = (yn = class {
2025
+ }, me = new WeakMap(), Ke = new WeakMap(), je = new WeakMap(), Qe = new WeakMap(), re = new WeakMap(), He = new WeakMap(), pe = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), ve = new WeakMap(), be = new WeakMap(), Se = new WeakMap(), We = new WeakMap(), vn), we, Xe, Ye, ze, se, Ze, Ce, Ie, Ae, Oe, Te, Ee, Ne, Je, bn, Bo = (bn = class {
2026
2026
  constructor(e) {
2027
2027
  E(this, we);
2028
2028
  E(this, Xe);
@@ -2077,7 +2077,7 @@ var il = (e, t = !1) => {
2077
2077
  const t = jn(() => {
2078
2078
  const n = this, [r] = g(this, Ie), [s] = g(this, Ae), [o] = g(this, Oe), [i] = g(this, Te), [l] = g(this, we), [c] = g(this, Ee);
2079
2079
  let a;
2080
- return g(this, Ne) ? a = g(this, Ne) : (a = Gn(() => import("./CXEL7IU7-DuJkDcjO.js")), A(this, Ne, a)), ur(g(this, Ze), g(this, Ce)), qn(a, Dn({
2080
+ return g(this, Ne) ? a = g(this, Ne) : (a = Gn(() => import("./CXEL7IU7-Cq4BOk9I.js")), A(this, Ne, a)), ur(g(this, Ze), g(this, Ce)), qn(a, Dn({
2081
2081
  get queryFlavor() {
2082
2082
  return g(n, Ye);
2083
2083
  },
@@ -2119,7 +2119,7 @@ var il = (e, t = !1) => {
2119
2119
  throw new Error("Devtools is not mounted");
2120
2120
  (e = g(this, Je)) == null || e.call(this), A(this, se, !1);
2121
2121
  }
2122
- }, we = new WeakMap(), Xe = new WeakMap(), Ye = new WeakMap(), ze = new WeakMap(), se = new WeakMap(), Ze = new WeakMap(), Ce = new WeakMap(), Ie = new WeakMap(), Ae = new WeakMap(), Oe = new WeakMap(), Te = new WeakMap(), Ee = new WeakMap(), Ne = new WeakMap(), Je = new WeakMap(), yn);
2122
+ }, we = new WeakMap(), Xe = new WeakMap(), Ye = new WeakMap(), ze = new WeakMap(), se = new WeakMap(), Ze = new WeakMap(), Ce = new WeakMap(), Ie = new WeakMap(), Ae = new WeakMap(), Oe = new WeakMap(), Te = new WeakMap(), Ee = new WeakMap(), Ne = new WeakMap(), Je = new WeakMap(), bn);
2123
2123
  function $o(e) {
2124
2124
  const t = ee(e.client), n = q.useRef(null), {
2125
2125
  buttonPosition: r,
@@ -2194,7 +2194,7 @@ var fr = process.env.NODE_ENV !== "development" ? function() {
2194
2194
  return null;
2195
2195
  } : $o;
2196
2196
  process.env.NODE_ENV;
2197
- const jt = new rs({
2197
+ const Ht = new rs({
2198
2198
  queryCache: new ss({
2199
2199
  onError: (e) => {
2200
2200
  typeof e == "string" && e === ls.NOT_LOGGED_IN && window.location.replace("/auth/login");
@@ -2207,7 +2207,7 @@ const jt = new rs({
2207
2207
  staleTime: 1e3 * 60 * 2
2208
2208
  }
2209
2209
  }
2210
- }), fl = ({ children: e }) => /* @__PURE__ */ U(En, { client: jt, children: [
2210
+ }), fl = ({ children: e }) => /* @__PURE__ */ U(En, { client: Ht, children: [
2211
2211
  /* @__PURE__ */ d(
2212
2212
  Sn,
2213
2213
  {
@@ -2221,18 +2221,18 @@ const jt = new rs({
2221
2221
  ] }), Do = () => {
2222
2222
  const e = An(), t = ke(), { appCode: n } = xe(), { t: r } = Pe(n);
2223
2223
  return console.error(e), /* @__PURE__ */ U("div", { className: "d-flex flex-column gap-16 align-items-center mt-64", children: [
2224
- /* @__PURE__ */ d(Qt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: r("oops") }),
2224
+ /* @__PURE__ */ d(Wt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: r("oops") }),
2225
2225
  /* @__PURE__ */ d("div", { className: "text", children: r("notfound.or.unauthorized") }),
2226
2226
  /* @__PURE__ */ d(Z, { color: "primary", onClick: () => t(-1), children: r("back") })
2227
2227
  ] });
2228
2228
  }, Go = () => {
2229
2229
  const e = An(), t = ke();
2230
2230
  return console.error(e), /* @__PURE__ */ d(Tr, { children: /* @__PURE__ */ U("div", { className: "d-flex flex-column gap-16 align-items-center mt-64", children: [
2231
- /* @__PURE__ */ d(Qt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: Tt("oops") }),
2231
+ /* @__PURE__ */ d(Wt, { level: "h2", headingStyle: "h2", className: "text-secondary", children: Tt("oops") }),
2232
2232
  /* @__PURE__ */ d("div", { className: "text", children: Tt("e404.page") }),
2233
2233
  /* @__PURE__ */ d(Z, { color: "primary", onClick: () => t(-1), children: Tt("back") })
2234
2234
  ] }) });
2235
- }, Ko = 100, dl = 100, hn = 80, kt = "collect-wizard-data", de = ["form", "members"], mn = {
2235
+ }, Ko = 100, dl = 100, pn = 80, kt = "collect-wizard-data", de = ["form", "members"], gn = {
2236
2236
  title: "",
2237
2237
  description: "",
2238
2238
  deadline: void 0,
@@ -2241,7 +2241,7 @@ const jt = new rs({
2241
2241
  }, jo = () => {
2242
2242
  const [e, t] = yt(() => {
2243
2243
  const s = localStorage.getItem(kt);
2244
- return s ? JSON.parse(s) : mn;
2244
+ return s ? JSON.parse(s) : gn;
2245
2245
  });
2246
2246
  return j(() => {
2247
2247
  localStorage.setItem(kt, JSON.stringify(e));
@@ -2255,11 +2255,11 @@ const jt = new rs({
2255
2255
  }));
2256
2256
  },
2257
2257
  resetWizardData: () => {
2258
- localStorage.removeItem(kt), t(mn);
2258
+ localStorage.removeItem(kt), t(gn);
2259
2259
  }
2260
2260
  };
2261
2261
  };
2262
- function Yt() {
2262
+ function Zt() {
2263
2263
  const e = ke(), n = On().pathname, r = de.findIndex(
2264
2264
  (i) => n.includes(i)
2265
2265
  );
@@ -2275,25 +2275,25 @@ function Yt() {
2275
2275
  }
2276
2276
  };
2277
2277
  }
2278
- const zt = (e) => {
2278
+ const Jt = (e) => {
2279
2279
  const t = e;
2280
2280
  t.use = {};
2281
2281
  for (const n of Object.keys(t.getState()))
2282
2282
  t.use[n] = () => t((r) => r[n]);
2283
2283
  return t;
2284
- }, Qo = Wt((e) => ({
2284
+ }, Qo = Yt((e) => ({
2285
2285
  isFormValid: !1,
2286
2286
  setIsFormValid: (t) => e({ isFormValid: t })
2287
- })), dr = zt(Qo);
2287
+ })), dr = Jt(Qo);
2288
2288
  function hr({ title: e }) {
2289
- return /* @__PURE__ */ d("div", { className: "mb-24", children: /* @__PURE__ */ d(Qt, { className: "text-truncate", children: e }) });
2289
+ return /* @__PURE__ */ d("div", { className: "mb-24", children: /* @__PURE__ */ d(Wt, { className: "text-truncate", children: e }) });
2290
2290
  }
2291
2291
  const Ho = ({
2292
2292
  wizardData: e,
2293
2293
  updateWizardData: t,
2294
2294
  collection: n
2295
2295
  }) => {
2296
- const { appCode: r } = xe(), { t: s } = Pe(r), { currentStep: o, nextStep: i } = Yt(), l = dr.use.setIsFormValid(), c = Ht(
2296
+ const { appCode: r } = xe(), { t: s } = Pe(r), { currentStep: o, nextStep: i } = Zt(), l = dr.use.setIsFormValid(), c = Xt(
2297
2297
  () => ({
2298
2298
  title: (e == null ? void 0 : e.title) ?? (n == null ? void 0 : n.name) ?? "",
2299
2299
  description: (e == null ? void 0 : e.description) ?? (n != null && n.content ? n.content : ""),
@@ -2348,14 +2348,14 @@ const Ho = ({
2348
2348
  type: "text",
2349
2349
  ...p("title", {
2350
2350
  required: !0,
2351
- maxLength: hn,
2351
+ maxLength: pn,
2352
2352
  pattern: {
2353
2353
  value: /[^ ]/,
2354
2354
  message: "invalid title"
2355
2355
  }
2356
2356
  }),
2357
2357
  size: "md",
2358
- maxLength: hn,
2358
+ maxLength: pn,
2359
2359
  placeholder: s(
2360
2360
  "collection.wizard.create.form.title.placeholder"
2361
2361
  ),
@@ -2566,7 +2566,7 @@ const pr = () => {
2566
2566
  );
2567
2567
  return l ? c.filter(l) : c;
2568
2568
  } };
2569
- }, ti = Wt(
2569
+ }, ti = Yt(
2570
2570
  (e) => ({
2571
2571
  usersCollection: [],
2572
2572
  usersToAdd: [],
@@ -2600,7 +2600,7 @@ const pr = () => {
2600
2600
  }),
2601
2601
  resetUsersDiff: () => e({ usersToAdd: [], usersToDelete: [] })
2602
2602
  })
2603
- ), ue = zt(
2603
+ ), ue = Jt(
2604
2604
  ti
2605
2605
  ), ni = {
2606
2606
  searchInputValue: "",
@@ -2720,9 +2720,9 @@ const si = () => {
2720
2720
  p(
2721
2721
  P,
2722
2722
  Cr.flatMap(
2723
- (Ct) => Ct.map((Zt) => ({
2724
- id: Zt.id,
2725
- displayName: Zt.displayName
2723
+ (Ct) => Ct.map((en) => ({
2724
+ id: en.id,
2725
+ displayName: en.displayName
2726
2726
  }))
2727
2727
  )
2728
2728
  )
@@ -2816,7 +2816,7 @@ function ii({
2816
2816
  onSharingsChange: r
2817
2817
  }) {
2818
2818
  var k;
2819
- const { appCode: s } = xe(), { t: o } = Pe(s), { currentStep: i } = Yt(), l = i < 0 ? 0 : i, c = In(), { searchVisible: a } = pr(), [f, u] = yt([]), m = Ht(() => {
2819
+ const { appCode: s } = xe(), { t: o } = Pe(s), { currentStep: i } = Zt(), l = i < 0 ? 0 : i, c = In(), { searchVisible: a } = pr(), [f, u] = yt([]), m = Xt(() => {
2820
2820
  var P, z;
2821
2821
  return (P = e == null ? void 0 : e.sharings) != null && P.length ? e.sharings : (z = n == null ? void 0 : n.sharings) != null && z.length ? n.sharings.map(Yo) : [];
2822
2822
  }, [n == null ? void 0 : n.sharings, e == null ? void 0 : e.sharings]);
@@ -3005,10 +3005,10 @@ const gr = pt(null), li = () => {
3005
3005
  e.invalidateQueries({ queryKey: ["collections"] }), e.invalidateQueries({ queryKey: ["collection", n.id] });
3006
3006
  }
3007
3007
  });
3008
- }, pn = ({
3008
+ }, yn = ({
3009
3009
  children: e
3010
3010
  }) => {
3011
- const t = ne(null), { appCode: n } = xe(), { t: r } = Pe(n), s = Lr(), { currentStep: o, backStep: i, nextStep: l } = Yt(), { lg: c } = _r(), { wizardData: a, resetWizardData: f } = li(), u = di(), m = dr.use.isFormValid(), h = ke(), [p, v] = yt(!1);
3011
+ const t = ne(null), { appCode: n } = xe(), { t: r } = Pe(n), s = Lr(), { currentStep: o, backStep: i, nextStep: l } = Zt(), { lg: c } = _r(), { wizardData: a, resetWizardData: f } = li(), u = di(), m = dr.use.isFormValid(), h = ke(), [p, v] = yt(!1);
3012
3012
  ts(() => {
3013
3013
  var C;
3014
3014
  (C = t.current) == null || C.scrollIntoView({
@@ -3090,7 +3090,7 @@ const gr = pt(null), li = () => {
3090
3090
  color: "primary",
3091
3091
  isLoading: p,
3092
3092
  loadingPosition: "right",
3093
- rightIcon: /* @__PURE__ */ d(tn, {}),
3093
+ rightIcon: /* @__PURE__ */ d(rn, {}),
3094
3094
  onClick: () => _(),
3095
3095
  children: r("collection.wizard.button.create.collect")
3096
3096
  }
@@ -3112,7 +3112,7 @@ const gr = pt(null), li = () => {
3112
3112
  "data-testid": "collect-add-attachments-button-next",
3113
3113
  variant: "filled",
3114
3114
  color: "primary",
3115
- rightIcon: /* @__PURE__ */ d(tn, {}),
3115
+ rightIcon: /* @__PURE__ */ d(rn, {}),
3116
3116
  onClick: l,
3117
3117
  type: "submit",
3118
3118
  form: "formCreateCollection",
@@ -3124,7 +3124,7 @@ const gr = pt(null), li = () => {
3124
3124
  ] });
3125
3125
  };
3126
3126
  function hi() {
3127
- const { wizardData: e, updateWizardData: t, resetWizardData: n } = jo(), r = Ht(
3127
+ const { wizardData: e, updateWizardData: t, resetWizardData: n } = jo(), r = Xt(
3128
3128
  () => ({
3129
3129
  wizardData: e,
3130
3130
  updateWizardData: t,
@@ -3134,10 +3134,10 @@ function hi() {
3134
3134
  );
3135
3135
  return /* @__PURE__ */ d(gr.Provider, { value: r, children: /* @__PURE__ */ U(Yr, { children: [
3136
3136
  /* @__PURE__ */ d(
3137
- nn,
3137
+ sn,
3138
3138
  {
3139
3139
  path: de[0],
3140
- element: /* @__PURE__ */ d(pn, { children: /* @__PURE__ */ d(
3140
+ element: /* @__PURE__ */ d(yn, { children: /* @__PURE__ */ d(
3141
3141
  Ho,
3142
3142
  {
3143
3143
  wizardData: e,
@@ -3147,10 +3147,10 @@ function hi() {
3147
3147
  }
3148
3148
  ),
3149
3149
  /* @__PURE__ */ d(
3150
- nn,
3150
+ sn,
3151
3151
  {
3152
3152
  path: de[1],
3153
- element: /* @__PURE__ */ d(pn, { children: /* @__PURE__ */ d(
3153
+ element: /* @__PURE__ */ d(yn, { children: /* @__PURE__ */ d(
3154
3154
  ii,
3155
3155
  {
3156
3156
  wizardData: e,
@@ -3171,7 +3171,7 @@ const vr = (e, t) => {
3171
3171
  path: "/",
3172
3172
  loader: r,
3173
3173
  async lazy() {
3174
- const { loader: s, Root: o } = await import("./Root-C-hc53_O.js");
3174
+ const { loader: s, Root: o } = await import("./Root-Dr9QdDIZ.js");
3175
3175
  return {
3176
3176
  loader: async () => {
3177
3177
  const i = await r(), l = await s() ?? {};
@@ -3183,14 +3183,14 @@ const vr = (e, t) => {
3183
3183
  children: [
3184
3184
  {
3185
3185
  async lazy() {
3186
- const { loader: s, Component: o } = await import("./CollectionsLayout-7sUyIzEI.js");
3186
+ const { loader: s, Component: o } = await import("./CollectionsLayout-CvG9DsNd.js");
3187
3187
  return { loader: s, Component: o };
3188
3188
  },
3189
3189
  children: [
3190
3190
  {
3191
3191
  index: !0,
3192
3192
  async lazy() {
3193
- const { loader: s, CollectionsList: o } = await import("./CollectionsList-B-wb-1rO.js");
3193
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-B0nEi6p1.js");
3194
3194
  return {
3195
3195
  loader: () => s(e),
3196
3196
  Component: o
@@ -3200,7 +3200,7 @@ const vr = (e, t) => {
3200
3200
  {
3201
3201
  path: "list-collections",
3202
3202
  async lazy() {
3203
- const { loader: s, CollectionsList: o } = await import("./CollectionsList-B-wb-1rO.js");
3203
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-B0nEi6p1.js");
3204
3204
  return {
3205
3205
  loader: () => s(e),
3206
3206
  Component: o
@@ -3210,7 +3210,7 @@ const vr = (e, t) => {
3210
3210
  {
3211
3211
  path: "list-submissions",
3212
3212
  async lazy() {
3213
- const { loader: s, SubmissionsList: o } = await import("./SubmissionList-CWPd0xcT.js");
3213
+ const { loader: s, SubmissionsList: o } = await import("./SubmissionList-Bh7QvfHf.js");
3214
3214
  return {
3215
3215
  loader: () => s(e),
3216
3216
  Component: o
@@ -3226,21 +3226,21 @@ const vr = (e, t) => {
3226
3226
  {
3227
3227
  path: "list-collections/id/:collectionId",
3228
3228
  async lazy() {
3229
- const { loader: s, Collection: o } = await import("./Collection-DVvuIGwy.js");
3229
+ const { loader: s, Collection: o } = await import("./Collection-Cl_dSRb7.js");
3230
3230
  return { loader: () => s(e), Component: o };
3231
3231
  }
3232
3232
  },
3233
3233
  {
3234
3234
  path: "list-collections/id/:collectionId/submission/:submissionId",
3235
3235
  async lazy() {
3236
- const { loader: s, Submission: o } = await import("./Submission-DGoWP1dp.js");
3236
+ const { loader: s, Submission: o } = await import("./Submission-BYOQgSji.js");
3237
3237
  return { loader: () => s(e), Component: o };
3238
3238
  }
3239
3239
  },
3240
3240
  {
3241
3241
  path: "id/:collectionId/members",
3242
3242
  async lazy() {
3243
- const { loader: s, MembersEdit: o } = await import("./MembersEdit-BhjWUtPh.js");
3243
+ const { loader: s, MembersEdit: o } = await import("./MembersEdit-BpEFzaac.js");
3244
3244
  return {
3245
3245
  loader: () => s(e),
3246
3246
  Component: o
@@ -3250,7 +3250,7 @@ const vr = (e, t) => {
3250
3250
  {
3251
3251
  path: "id/:collectionId/form",
3252
3252
  async lazy() {
3253
- const { loader: s, FormEdit: o } = await import("./FormEdit-DZMqcIP7.js");
3253
+ const { loader: s, FormEdit: o } = await import("./FormEdit-DPdAv-EI.js");
3254
3254
  return { loader: () => s(e), Component: o };
3255
3255
  }
3256
3256
  }
@@ -3295,14 +3295,14 @@ const wl = () => gt(br), yi = "collect:route-change", Cl = ({
3295
3295
  if (!s.current)
3296
3296
  return;
3297
3297
  o.current || (o.current = is(s.current)), i.current || (i.current = Zr(
3298
- f(vr(jt, { header: e })),
3298
+ f(vr(Ht, { header: e })),
3299
3299
  { initialEntries: [c(n)] }
3300
3300
  )), a(i.current.state.location.pathname);
3301
3301
  const u = i.current.subscribe((m) => {
3302
3302
  a(m.location.pathname);
3303
3303
  });
3304
3304
  return o.current.render(
3305
- /* @__PURE__ */ U(En, { client: jt, children: [
3305
+ /* @__PURE__ */ U(En, { client: Ht, children: [
3306
3306
  /* @__PURE__ */ d(Sn, { params: { app: "collect" }, children: /* @__PURE__ */ d(Ur, { children: /* @__PURE__ */ d(gi, { header: e, showMenu: t, children: /* @__PURE__ */ d(ns, { fallback: /* @__PURE__ */ d(Vr, {}), children: /* @__PURE__ */ d(Jr, { router: i.current }) }) }) }) }),
3307
3307
  /* @__PURE__ */ d(fr, { initialIsOpen: !1 })
3308
3308
  ] })
@@ -3325,12 +3325,12 @@ const wl = () => gt(br), yi = "collect:route-change", Cl = ({
3325
3325
  }) => /* @__PURE__ */ d(us, { basePath: e, children: /* @__PURE__ */ d(hs, {}) }), H = {
3326
3326
  LIST_COLLECTIONS: "list-collections",
3327
3327
  LIST_SUBMISSIONS: "list-submissions"
3328
- }, vi = Wt((e) => ({
3328
+ }, vi = Yt((e) => ({
3329
3329
  mobileMenuOpen: !1,
3330
3330
  selectedMenu: "list-collections",
3331
3331
  setMobileMenuOpen: (t) => e({ mobileMenuOpen: t }),
3332
3332
  setSelectedMenu: (t) => e({ selectedMenu: t })
3333
- })), bi = zt(vi), Sr = pt({
3333
+ })), bi = Jt(vi), Sr = pt({
3334
3334
  showMenu: !0,
3335
3335
  basePath: ""
3336
3336
  });
@@ -3342,7 +3342,7 @@ function Si({
3342
3342
  return /* @__PURE__ */ d(Sr.Provider, { value: { showMenu: e, basePath: t }, children: n });
3343
3343
  }
3344
3344
  const wi = () => gt(Sr), Ci = () => {
3345
- const e = ke(), { pathname: t } = On(), { appCode: n } = xe(), { t: r } = Pe(n), s = bi.use.setSelectedMenu(), { showMenu: o, basePath: i } = wi(), l = o !== !1, c = bn(vn.COLLECTION_CREATE), a = [
3345
+ const e = ke(), { pathname: t } = On(), { appCode: n } = xe(), { t: r } = Pe(n), s = bi.use.setSelectedMenu(), { showMenu: o, basePath: i } = wi(), l = o !== !1, c = _t(Lt.COLLECTION_CREATE), a = _t(Lt.COLLECTION_ACCESS), f = [
3346
3346
  ...c ? [
3347
3347
  {
3348
3348
  id: H.LIST_COLLECTIONS,
@@ -3353,8 +3353,8 @@ const wi = () => gt(Sr), Ci = () => {
3353
3353
  id: H.LIST_SUBMISSIONS,
3354
3354
  name: r("collection.submission")
3355
3355
  }
3356
- ], f = (h) => {
3357
- switch (h) {
3356
+ ], u = (p) => {
3357
+ switch (p) {
3358
3358
  case H.LIST_COLLECTIONS:
3359
3359
  return /* @__PURE__ */ d(Hr, {});
3360
3360
  case H.LIST_SUBMISSIONS:
@@ -3362,17 +3362,17 @@ const wi = () => gt(Sr), Ci = () => {
3362
3362
  default:
3363
3363
  return null;
3364
3364
  }
3365
- }, u = (h) => {
3366
- s(h), e(`${i}/${h}`);
3367
- }, m = () => {
3368
- const p = {
3365
+ }, m = (p) => {
3366
+ s(p), e(`${i}/${p}`);
3367
+ }, h = () => {
3368
+ const v = {
3369
3369
  "/": H.LIST_COLLECTIONS,
3370
3370
  "/list-collections": H.LIST_COLLECTIONS,
3371
3371
  "/list-submissions": H.LIST_SUBMISSIONS
3372
3372
  }[t] || null;
3373
- return !c && p === H.LIST_COLLECTIONS ? H.LIST_SUBMISSIONS : p;
3373
+ return !c && v === H.LIST_COLLECTIONS ? H.LIST_SUBMISSIONS : v;
3374
3374
  };
3375
- return /* @__PURE__ */ U(
3375
+ return a && /* @__PURE__ */ U(
3376
3376
  "div",
3377
3377
  {
3378
3378
  className: `border-end pt-16 pe-16 ps-0 ${l ? " h-100 pb-16" : ""}`,
@@ -3383,14 +3383,14 @@ const wi = () => gt(Sr), Ci = () => {
3383
3383
  /* @__PURE__ */ d(At.Item, { children: /* @__PURE__ */ d("div", { className: "treeview ps-16 pt-16", children: /* @__PURE__ */ d(
3384
3384
  Fr,
3385
3385
  {
3386
- nodes: a,
3387
- selectedNodeId: m(),
3386
+ nodes: f,
3387
+ selectedNodeId: h(),
3388
3388
  showIcon: !1,
3389
- renderNode: ({ node: h }) => /* @__PURE__ */ U("div", { className: "d-flex align-items-center gap-8", children: [
3390
- f(h.id),
3391
- /* @__PURE__ */ d("span", { children: h.name })
3389
+ renderNode: ({ node: p }) => /* @__PURE__ */ U("div", { className: "d-flex align-items-center gap-8", children: [
3390
+ u(p.id),
3391
+ /* @__PURE__ */ d("span", { children: p.name })
3392
3392
  ] }),
3393
- onTreeItemClick: u
3393
+ onTreeItemClick: m
3394
3394
  }
3395
3395
  ) }) }),
3396
3396
  /* @__PURE__ */ d(At.Item, { children: /* @__PURE__ */ d("div", { className: "separator-dashed w-100 mt-12 my-12" }) })
@@ -3411,7 +3411,7 @@ export {
3411
3411
  ll as H,
3412
3412
  cl as I,
3413
3413
  Bi as J,
3414
- Ft as K,
3414
+ $t as K,
3415
3415
  Yi as L,
3416
3416
  H as M,
3417
3417
  nl as N,
@@ -3453,12 +3453,12 @@ export {
3453
3453
  Si as al,
3454
3454
  fl as am,
3455
3455
  pi as an,
3456
- jt as ao,
3456
+ Ht as ao,
3457
3457
  Sl as ap,
3458
3458
  fs as aq,
3459
3459
  wi as ar,
3460
3460
  ai as b,
3461
- zt as c,
3461
+ Jt as c,
3462
3462
  pl as d,
3463
3463
  ui as e,
3464
3464
  gl as f,
@@ -3479,7 +3479,7 @@ export {
3479
3479
  wl as u,
3480
3480
  Zi as v,
3481
3481
  Hi as w,
3482
- Bt as x,
3482
+ qt as x,
3483
3483
  ie as y,
3484
3484
  Qs as z
3485
3485
  };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as o, ag as t, ah as r, ai as s, aj as n, C as p, ak as A, al as i, am as C, an as c, ao as d, ap as l, aq as u, ar as x } from "./index-9ezn5rS9.js";
1
+ import { A as o, ag as t, ah as r, ai as s, aj as n, C as p, ak as A, al as i, am as C, an as c, ao as d, ap as l, aq as u, ar as x } from "./index-CpH8PYs9.js";
2
2
  export * from "@edifice.io/collect-client-rest";
3
3
  export {
4
4
  o as AppActionHeader,
@@ -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-9ezn5rS9.js";
2
+ import { S as c } from "./index-CpH8PYs9.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.20260512161220",
3
+ "version": "0.2.2-develop.4.20260513134600",
4
4
  "private": false,
5
5
  "license": "GPL-3.0",
6
6
  "author": "Edifice",
@@ -25,10 +25,10 @@
25
25
  "typecheck": "tsc -b --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@edifice.io/bootstrap": "develop-pedago",
29
28
  "@edifice.io/collect-client-rest": "workspace:*",
30
- "@edifice.io/client": "develop-pedago",
31
- "@edifice.io/react": "develop-pedago",
29
+ "@edifice.io/bootstrap": "develop",
30
+ "@edifice.io/client": "develop",
31
+ "@edifice.io/react": "develop",
32
32
  "@react-spring/web": "9.7.5",
33
33
  "@tanstack/react-query": "5.81.5",
34
34
  "@uidotdev/usehooks": "2.4.1",