@carlonicora/nextjs-jsonapi 1.29.3 → 1.29.4

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.
@@ -180,6 +180,7 @@ function useDataListRetriever(params) {
180
180
  const requestIdRef = _react.useRef.call(void 0, 0);
181
181
  const abortControllerRef = _react.useRef.call(void 0, null);
182
182
  const isFetchingRef = _react.useRef.call(void 0, false);
183
+ const isPaginatingRef = _react.useRef.call(void 0, false);
183
184
  const resolvedType = params.module;
184
185
  const resolvedService = _chunkUYBCHXXLjs.ClientAbstractService;
185
186
  const parsePageParams = _react.useCallback.call(void 0, (url) => {
@@ -235,13 +236,19 @@ function useDataListRetriever(params) {
235
236
  const fetchData = _react.useCallback.call(void 0,
236
237
  async (fetchParams) => {
237
238
  if (ready === false) return;
238
- if (isFetchingRef.current && !_optionalChain([fetchParams, 'optionalAccess', _2 => _2.callNext]) && !_optionalChain([fetchParams, 'optionalAccess', _3 => _3.callPrevious])) return;
239
+ if ((_optionalChain([fetchParams, 'optionalAccess', _2 => _2.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _3 => _3.callPrevious])) && isPaginatingRef.current) {
240
+ return;
241
+ }
242
+ if (isFetchingRef.current && !_optionalChain([fetchParams, 'optionalAccess', _4 => _4.callNext]) && !_optionalChain([fetchParams, 'optionalAccess', _5 => _5.callPrevious])) return;
243
+ if (_optionalChain([fetchParams, 'optionalAccess', _6 => _6.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _7 => _7.callPrevious])) {
244
+ isPaginatingRef.current = true;
245
+ }
239
246
  const thisRequestId = ++requestIdRef.current;
240
247
  isFetchingRef.current = true;
241
- if (stableParams.requiresSearch === true && _optionalChain([fetchParams, 'optionalAccess', _4 => _4.isRefine]) !== true && _optionalChain([fetchParams, 'optionalAccess', _5 => _5.isRefresh]) !== true) {
248
+ if (stableParams.requiresSearch === true && _optionalChain([fetchParams, 'optionalAccess', _8 => _8.isRefine]) !== true && _optionalChain([fetchParams, 'optionalAccess', _9 => _9.isRefresh]) !== true) {
242
249
  return;
243
250
  }
244
- if (!nextPage && !previousPage && isLoaded && _optionalChain([fetchParams, 'optionalAccess', _6 => _6.callNext]) !== true && _optionalChain([fetchParams, 'optionalAccess', _7 => _7.callPrevious]) !== true && params.search === searchTermRef.current) {
251
+ if (!nextPage && !previousPage && isLoaded && _optionalChain([fetchParams, 'optionalAccess', _10 => _10.callNext]) !== true && _optionalChain([fetchParams, 'optionalAccess', _11 => _11.callPrevious]) !== true && params.search === searchTermRef.current) {
245
252
  return;
246
253
  }
247
254
  const currentSearchTerm = searchTermRef.current;
@@ -251,7 +258,7 @@ function useDataListRetriever(params) {
251
258
  const nextRef = { next: void 0 };
252
259
  const previousRef = { previous: void 0 };
253
260
  const selfRef = { self: void 0 };
254
- if (nextPage && _optionalChain([fetchParams, 'optionalAccess', _8 => _8.callNext]) && _optionalChain([fetchParams, 'optionalAccess', _9 => _9.isRefine]) !== true) {
261
+ if (nextPage && _optionalChain([fetchParams, 'optionalAccess', _12 => _12.callNext]) && _optionalChain([fetchParams, 'optionalAccess', _13 => _13.isRefine]) !== true) {
255
262
  const ServiceClass = stableParams.service;
256
263
  response = await ServiceClass.next({
257
264
  type: stableParams.type,
@@ -260,7 +267,7 @@ function useDataListRetriever(params) {
260
267
  previous: previousRef,
261
268
  self: selfRef
262
269
  });
263
- } else if (previousPage && _optionalChain([fetchParams, 'optionalAccess', _10 => _10.callPrevious]) && _optionalChain([fetchParams, 'optionalAccess', _11 => _11.isRefine]) !== true) {
270
+ } else if (previousPage && _optionalChain([fetchParams, 'optionalAccess', _14 => _14.callPrevious]) && _optionalChain([fetchParams, 'optionalAccess', _15 => _15.isRefine]) !== true) {
264
271
  const ServiceClass = stableParams.service;
265
272
  response = await ServiceClass.previous({
266
273
  type: stableParams.type,
@@ -281,8 +288,8 @@ function useDataListRetriever(params) {
281
288
  retrieverParams.self = selfRef;
282
289
  response = await stableParams.retriever(retrieverParams);
283
290
  }
284
- if (thisRequestId === requestIdRef.current && !_optionalChain([abortControllerRef, 'access', _12 => _12.current, 'optionalAccess', _13 => _13.signal, 'access', _14 => _14.aborted])) {
285
- if (_optionalChain([fetchParams, 'optionalAccess', _15 => _15.isRefresh]) === true) {
291
+ if (thisRequestId === requestIdRef.current && !_optionalChain([abortControllerRef, 'access', _16 => _16.current, 'optionalAccess', _17 => _17.signal, 'access', _18 => _18.aborted])) {
292
+ if (_optionalChain([fetchParams, 'optionalAccess', _19 => _19.isRefresh]) === true) {
286
293
  setData(response);
287
294
  } else {
288
295
  setData((prevData) => [...prevData ? prevData : [], ...response]);
@@ -299,6 +306,7 @@ function useDataListRetriever(params) {
299
306
  } finally {
300
307
  if (thisRequestId === requestIdRef.current) {
301
308
  isFetchingRef.current = false;
309
+ isPaginatingRef.current = false;
302
310
  }
303
311
  }
304
312
  },
@@ -525,7 +533,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, loadingNode
525
533
  });
526
534
  const typeColorMap = /* @__PURE__ */ new Map();
527
535
  Array.from(groupTypes).forEach((type, index) => {
528
- if (type === _optionalChain([nodes, 'access', _16 => _16[0], 'optionalAccess', _17 => _17.instanceType])) {
536
+ if (type === _optionalChain([nodes, 'access', _20 => _20[0], 'optionalAccess', _21 => _21.instanceType])) {
529
537
  typeColorMap.set(type, accentColor);
530
538
  } else if (type === "documents" || type === "articles" || type === "hyperlinks") {
531
539
  typeColorMap.set(type, contentColor);
@@ -568,7 +576,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, loadingNode
568
576
  });
569
577
  const svg = d3.select(svgRef.current);
570
578
  svg.selectAll("*").remove();
571
- const container = _optionalChain([svgRef, 'access', _18 => _18.current, 'optionalAccess', _19 => _19.parentElement]);
579
+ const container = _optionalChain([svgRef, 'access', _22 => _22.current, 'optionalAccess', _23 => _23.parentElement]);
572
580
  if (!container) return;
573
581
  const width = container.clientWidth;
574
582
  const height = container.clientHeight;
@@ -611,7 +619,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, loadingNode
611
619
  sourceNode.children.push(targetId);
612
620
  }
613
621
  });
614
- const rootChildren = _optionalChain([nodeHierarchy, 'access', _20 => _20.get, 'call', _21 => _21(centralNodeId), 'optionalAccess', _22 => _22.children]) || [];
622
+ const rootChildren = _optionalChain([nodeHierarchy, 'access', _24 => _24.get, 'call', _25 => _25(centralNodeId), 'optionalAccess', _26 => _26.children]) || [];
615
623
  const childAngleStep = 2 * Math.PI / Math.max(rootChildren.length, 1);
616
624
  rootChildren.forEach((childId, index) => {
617
625
  const childNode = nodeHierarchy.get(childId);
@@ -727,7 +735,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, loadingNode
727
735
  if (d.instanceType === "root") return;
728
736
  const currentNode = d3.select(this);
729
737
  currentNode.raise();
730
- const currentZoom = _optionalChain([zoomRef, 'access', _23 => _23.current, 'optionalAccess', _24 => _24.k]) || 1;
738
+ const currentZoom = _optionalChain([zoomRef, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.k]) || 1;
731
739
  const targetScreenFontSize = 20;
732
740
  const baseFontSize = 12;
733
741
  const textScale = targetScreenFontSize / (baseFontSize * currentZoom);
@@ -934,23 +942,23 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
934
942
  );
935
943
  const matchedModuleKey = moduleKeys.find((key) => {
936
944
  const descriptor2 = Object.getOwnPropertyDescriptor(_chunkUYBCHXXLjs.Modules, key);
937
- if (!_optionalChain([descriptor2, 'optionalAccess', _25 => _25.get])) return false;
945
+ if (!_optionalChain([descriptor2, 'optionalAccess', _29 => _29.get])) return false;
938
946
  const selectedModule = descriptor2.get.call(_chunkUYBCHXXLjs.Modules);
939
- return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _26 => _26.pageUrl, 'optionalAccess', _27 => _27.toLowerCase, 'call', _28 => _28()]));
947
+ return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _30 => _30.pageUrl, 'optionalAccess', _31 => _31.toLowerCase, 'call', _32 => _32()]));
940
948
  });
941
949
  if (!matchedModuleKey) return void 0;
942
950
  const descriptor = Object.getOwnPropertyDescriptor(_chunkUYBCHXXLjs.Modules, matchedModuleKey);
943
- return _optionalChain([descriptor, 'optionalAccess', _29 => _29.get, 'optionalAccess', _30 => _30.call, 'call', _31 => _31(_chunkUYBCHXXLjs.Modules)]);
951
+ return _optionalChain([descriptor, 'optionalAccess', _33 => _33.get, 'optionalAccess', _34 => _34.call, 'call', _35 => _35(_chunkUYBCHXXLjs.Modules)]);
944
952
  }, "matchUrlToModule");
945
953
  const currentUser = dehydratedUser ? _chunkUYBCHXXLjs.rehydrate.call(void 0, _chunkUYBCHXXLjs.Modules.User, dehydratedUser) : null;
946
- const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _32 => _32.company]), () => ( null));
954
+ const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _36 => _36.company]), () => ( null));
947
955
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
948
956
  if (user) setDehydratedUser(user.dehydrate());
949
957
  else setDehydratedUser(null);
950
958
  }, "setUser");
951
959
  const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
952
960
  if (!currentUser) return false;
953
- return !!_optionalChain([currentUser, 'access', _33 => _33.roles, 'optionalAccess', _34 => _34.some, 'call', _35 => _35((userRole) => userRole.id === roleId)]);
961
+ return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
954
962
  }, "hasRole");
955
963
  const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
956
964
  if (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) return true;
@@ -1000,9 +1008,9 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1000
1008
  refreshUserRef.current = refreshUser;
1001
1009
  const isRefreshingRef = _react.useRef.call(void 0, false);
1002
1010
  _react.useEffect.call(void 0, () => {
1003
- if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _36 => _36.company, 'optionalAccess', _37 => _37.id])) return;
1011
+ if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _40 => _40.company, 'optionalAccess', _41 => _41.id])) return;
1004
1012
  const handleTokensUpdated = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
1005
- if (data.companyId === _optionalChain([currentUser, 'access', _38 => _38.company, 'optionalAccess', _39 => _39.id]) && !isRefreshingRef.current) {
1013
+ if (data.companyId === _optionalChain([currentUser, 'access', _42 => _42.company, 'optionalAccess', _43 => _43.id]) && !isRefreshingRef.current) {
1006
1014
  isRefreshingRef.current = true;
1007
1015
  refreshUserRef.current().finally(() => {
1008
1016
  isRefreshingRef.current = false;
@@ -1013,7 +1021,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
1013
1021
  return () => {
1014
1022
  socket.off("company:tokens_updated", handleTokensUpdated);
1015
1023
  };
1016
- }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _40 => _40.company, 'optionalAccess', _41 => _41.id])]);
1024
+ }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _44 => _44.company, 'optionalAccess', _45 => _45.id])]);
1017
1025
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1018
1026
  CurrentUserContext.Provider,
1019
1027
  {
@@ -1084,7 +1092,7 @@ function AddUserToRoleInternal({ role, refresh }) {
1084
1092
  const data = useDataListRetriever({
1085
1093
  ready: !!company && show,
1086
1094
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findAllUsers(params), "retriever"),
1087
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _42 => _42.id]) },
1095
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _46 => _46.id]) },
1088
1096
  module: _chunkUYBCHXXLjs.Modules.User
1089
1097
  });
1090
1098
  _react.useEffect.call(void 0, () => {
@@ -1915,7 +1923,7 @@ function CalendarDayButton({
1915
1923
  const defaultClassNames = _reactdaypicker.getDefaultClassNames.call(void 0, );
1916
1924
  const ref = React3.useRef(null);
1917
1925
  React3.useEffect(() => {
1918
- if (modifiers.focused) _optionalChain([ref, 'access', _43 => _43.current, 'optionalAccess', _44 => _44.focus, 'call', _45 => _45()]);
1926
+ if (modifiers.focused) _optionalChain([ref, 'access', _47 => _47.current, 'optionalAccess', _48 => _48.focus, 'call', _49 => _49()]);
1919
1927
  }, [modifiers.focused]);
1920
1928
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1921
1929
  Button,
@@ -2067,10 +2075,10 @@ function Carousel({
2067
2075
  setCanScrollNext(api2.canScrollNext());
2068
2076
  }, []);
2069
2077
  const scrollPrev = React4.useCallback(() => {
2070
- _optionalChain([api, 'optionalAccess', _46 => _46.scrollPrev, 'call', _47 => _47()]);
2078
+ _optionalChain([api, 'optionalAccess', _50 => _50.scrollPrev, 'call', _51 => _51()]);
2071
2079
  }, [api]);
2072
2080
  const scrollNext = React4.useCallback(() => {
2073
- _optionalChain([api, 'optionalAccess', _48 => _48.scrollNext, 'call', _49 => _49()]);
2081
+ _optionalChain([api, 'optionalAccess', _52 => _52.scrollNext, 'call', _53 => _53()]);
2074
2082
  }, [api]);
2075
2083
  const handleKeyDown = React4.useCallback(
2076
2084
  (event) => {
@@ -2094,7 +2102,7 @@ function Carousel({
2094
2102
  api.on("reInit", onSelect);
2095
2103
  api.on("select", onSelect);
2096
2104
  return () => {
2097
- _optionalChain([api, 'optionalAccess', _50 => _50.off, 'call', _51 => _51("select", onSelect)]);
2105
+ _optionalChain([api, 'optionalAccess', _54 => _54.off, 'call', _55 => _55("select", onSelect)]);
2098
2106
  };
2099
2107
  }, [api, onSelect]);
2100
2108
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2104,7 +2112,7 @@ function Carousel({
2104
2112
  carouselRef,
2105
2113
  api,
2106
2114
  opts,
2107
- orientation: orientation || (_optionalChain([opts, 'optionalAccess', _52 => _52.axis]) === "y" ? "vertical" : "horizontal"),
2115
+ orientation: orientation || (_optionalChain([opts, 'optionalAccess', _56 => _56.axis]) === "y" ? "vertical" : "horizontal"),
2108
2116
  scrollPrev,
2109
2117
  scrollNext,
2110
2118
  canScrollPrev,
@@ -2288,7 +2296,7 @@ var ChartStyle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ id, con
2288
2296
  ([theme, prefix]) => `
2289
2297
  ${prefix} [data-chart=${id}] {
2290
2298
  ${colorConfig.map(([key, itemConfig]) => {
2291
- const color = _optionalChain([itemConfig, 'access', _53 => _53.theme, 'optionalAccess', _54 => _54[theme]]) || itemConfig.color;
2299
+ const color = _optionalChain([itemConfig, 'access', _57 => _57.theme, 'optionalAccess', _58 => _58[theme]]) || itemConfig.color;
2292
2300
  return color ? ` --color-${key}: ${color};` : null;
2293
2301
  }).join("\n")}
2294
2302
  }
@@ -2316,13 +2324,13 @@ function ChartTooltipContent({
2316
2324
  }) {
2317
2325
  const { config } = useChart();
2318
2326
  const tooltipLabel = React5.useMemo(() => {
2319
- if (hideLabel || !_optionalChain([payload, 'optionalAccess', _55 => _55.length])) {
2327
+ if (hideLabel || !_optionalChain([payload, 'optionalAccess', _59 => _59.length])) {
2320
2328
  return null;
2321
2329
  }
2322
2330
  const [item] = payload;
2323
- const key = `${labelKey || _optionalChain([item, 'optionalAccess', _56 => _56.dataKey]) || _optionalChain([item, 'optionalAccess', _57 => _57.name]) || "value"}`;
2331
+ const key = `${labelKey || _optionalChain([item, 'optionalAccess', _60 => _60.dataKey]) || _optionalChain([item, 'optionalAccess', _61 => _61.name]) || "value"}`;
2324
2332
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2325
- const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _58 => _58[label], 'optionalAccess', _59 => _59.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _60 => _60.label]);
2333
+ const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _62 => _62[label], 'optionalAccess', _63 => _63.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _64 => _64.label]);
2326
2334
  if (labelFormatter) {
2327
2335
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUYBCHXXLjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
2328
2336
  }
@@ -2339,7 +2347,7 @@ function ChartTooltipContent({
2339
2347
  config,
2340
2348
  labelKey
2341
2349
  ]);
2342
- if (!active || !_optionalChain([payload, 'optionalAccess', _61 => _61.length])) {
2350
+ if (!active || !_optionalChain([payload, 'optionalAccess', _65 => _65.length])) {
2343
2351
  return null;
2344
2352
  }
2345
2353
  const nestLabel = payload.length === 1 && indicator !== "dot";
@@ -2355,7 +2363,7 @@ function ChartTooltipContent({
2355
2363
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
2356
2364
  const key = `${nameKey || item.name || item.dataKey || "value"}`;
2357
2365
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
2358
- const indicatorColor = color || _optionalChain([item, 'access', _62 => _62.payload, 'optionalAccess', _63 => _63.fill]) || item.color;
2366
+ const indicatorColor = color || _optionalChain([item, 'access', _66 => _66.payload, 'optionalAccess', _67 => _67.fill]) || item.color;
2359
2367
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2360
2368
  "div",
2361
2369
  {
@@ -2363,8 +2371,8 @@ function ChartTooltipContent({
2363
2371
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
2364
2372
  indicator === "dot" && "items-center"
2365
2373
  ),
2366
- children: formatter && _optionalChain([item, 'optionalAccess', _64 => _64.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2367
- _optionalChain([itemConfig, 'optionalAccess', _65 => _65.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2374
+ children: formatter && _optionalChain([item, 'optionalAccess', _68 => _68.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2375
+ _optionalChain([itemConfig, 'optionalAccess', _69 => _69.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2368
2376
  "div",
2369
2377
  {
2370
2378
  className: _chunkUYBCHXXLjs.cn.call(void 0,
@@ -2392,7 +2400,7 @@ function ChartTooltipContent({
2392
2400
  children: [
2393
2401
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
2394
2402
  nestLabel ? tooltipLabel : null,
2395
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _66 => _66.label]) || item.name })
2403
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _70 => _70.label]) || item.name })
2396
2404
  ] }),
2397
2405
  item.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground font-mono font-medium tabular-nums", children: item.value.toLocaleString() })
2398
2406
  ]
@@ -2417,7 +2425,7 @@ function ChartLegendContent({
2417
2425
  nameKey
2418
2426
  }) {
2419
2427
  const { config } = useChart();
2420
- if (!_optionalChain([payload, 'optionalAccess', _67 => _67.length])) {
2428
+ if (!_optionalChain([payload, 'optionalAccess', _71 => _71.length])) {
2421
2429
  return null;
2422
2430
  }
2423
2431
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2438,7 +2446,7 @@ function ChartLegendContent({
2438
2446
  "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
2439
2447
  ),
2440
2448
  children: [
2441
- _optionalChain([itemConfig, 'optionalAccess', _68 => _68.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2449
+ _optionalChain([itemConfig, 'optionalAccess', _72 => _72.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2442
2450
  "div",
2443
2451
  {
2444
2452
  className: "h-2 w-2 shrink-0 rounded-[2px]",
@@ -2447,7 +2455,7 @@ function ChartLegendContent({
2447
2455
  }
2448
2456
  }
2449
2457
  ),
2450
- _optionalChain([itemConfig, 'optionalAccess', _69 => _69.label])
2458
+ _optionalChain([itemConfig, 'optionalAccess', _73 => _73.label])
2451
2459
  ]
2452
2460
  },
2453
2461
  item.value
@@ -2749,7 +2757,7 @@ function InputGroupAddon({
2749
2757
  if (e.target.closest("button")) {
2750
2758
  return;
2751
2759
  }
2752
- _optionalChain([e, 'access', _70 => _70.currentTarget, 'access', _71 => _71.parentElement, 'optionalAccess', _72 => _72.querySelector, 'call', _73 => _73("input"), 'optionalAccess', _74 => _74.focus, 'call', _75 => _75()]);
2760
+ _optionalChain([e, 'access', _74 => _74.currentTarget, 'access', _75 => _75.parentElement, 'optionalAccess', _76 => _76.querySelector, 'call', _77 => _77("input"), 'optionalAccess', _78 => _78.focus, 'call', _79 => _79()]);
2753
2761
  },
2754
2762
  ...props
2755
2763
  }
@@ -3795,17 +3803,17 @@ function FieldError({
3795
3803
  if (children) {
3796
3804
  return children;
3797
3805
  }
3798
- if (!_optionalChain([errors, 'optionalAccess', _76 => _76.length])) {
3806
+ if (!_optionalChain([errors, 'optionalAccess', _80 => _80.length])) {
3799
3807
  return null;
3800
3808
  }
3801
3809
  const uniqueErrors = [
3802
- ...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _77 => _77.message]), error])).values()
3810
+ ...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _81 => _81.message]), error])).values()
3803
3811
  ];
3804
- if (_optionalChain([uniqueErrors, 'optionalAccess', _78 => _78.length]) == 1) {
3805
- return _optionalChain([uniqueErrors, 'access', _79 => _79[0], 'optionalAccess', _80 => _80.message]);
3812
+ if (_optionalChain([uniqueErrors, 'optionalAccess', _82 => _82.length]) == 1) {
3813
+ return _optionalChain([uniqueErrors, 'access', _83 => _83[0], 'optionalAccess', _84 => _84.message]);
3806
3814
  }
3807
3815
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
3808
- (error, index) => _optionalChain([error, 'optionalAccess', _81 => _81.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)
3816
+ (error, index) => _optionalChain([error, 'optionalAccess', _85 => _85.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)
3809
3817
  ) });
3810
3818
  }, [children, errors]);
3811
3819
  if (!content) {
@@ -3916,7 +3924,7 @@ function InputOTPSlot({
3916
3924
  ...props
3917
3925
  }) {
3918
3926
  const inputOTPContext = React6.useContext(_inputotp.OTPInputContext);
3919
- const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _82 => _82.slots, 'access', _83 => _83[index]]), () => ( {}));
3927
+ const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _86 => _86.slots, 'access', _87 => _87[index]]), () => ( {}));
3920
3928
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3921
3929
  "div",
3922
3930
  {
@@ -4994,7 +5002,7 @@ function SidebarTrigger({
4994
5002
  size: "icon-sm",
4995
5003
  className: _chunkUYBCHXXLjs.cn.call(void 0, className),
4996
5004
  onClick: (event) => {
4997
- _optionalChain([onClick, 'optionalCall', _84 => _84(event)]);
5005
+ _optionalChain([onClick, 'optionalCall', _88 => _88(event)]);
4998
5006
  toggleSidebar();
4999
5007
  },
5000
5008
  ...props,
@@ -5816,14 +5824,14 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5816
5824
  if (!active || !collisionRect) return;
5817
5825
  const filteredContainers = [];
5818
5826
  for (const entry of droppableContainers.getEnabled()) {
5819
- if (!entry || _optionalChain([entry, 'optionalAccess', _85 => _85.disabled])) return;
5827
+ if (!entry || _optionalChain([entry, 'optionalAccess', _89 => _89.disabled])) return;
5820
5828
  const rect = droppableRects.get(entry.id);
5821
5829
  if (!rect) return;
5822
5830
  const data = entry.data.current;
5823
5831
  if (data) {
5824
5832
  const { type, children } = data;
5825
- if (type === "container" && _optionalChain([children, 'optionalAccess', _86 => _86.length]) > 0) {
5826
- if (_optionalChain([active, 'access', _87 => _87.data, 'access', _88 => _88.current, 'optionalAccess', _89 => _89.type]) !== "container") {
5833
+ if (type === "container" && _optionalChain([children, 'optionalAccess', _90 => _90.length]) > 0) {
5834
+ if (_optionalChain([active, 'access', _91 => _91.data, 'access', _92 => _92.current, 'optionalAccess', _93 => _93.type]) !== "container") {
5827
5835
  return;
5828
5836
  }
5829
5837
  }
@@ -5861,8 +5869,8 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5861
5869
  const closestId = _core.getFirstCollision.call(void 0, collisions, "id");
5862
5870
  if (closestId != null) {
5863
5871
  const newDroppable = droppableContainers.get(closestId);
5864
- const newNode = _optionalChain([newDroppable, 'optionalAccess', _90 => _90.node, 'access', _91 => _91.current]);
5865
- const newRect = _optionalChain([newDroppable, 'optionalAccess', _92 => _92.rect, 'access', _93 => _93.current]);
5872
+ const newNode = _optionalChain([newDroppable, 'optionalAccess', _94 => _94.node, 'access', _95 => _95.current]);
5873
+ const newRect = _optionalChain([newDroppable, 'optionalAccess', _96 => _96.rect, 'access', _97 => _97.current]);
5866
5874
  if (newNode && newRect) {
5867
5875
  if (newDroppable.id === "placeholder") {
5868
5876
  return {
@@ -5870,7 +5878,7 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
5870
5878
  y: newRect.top + (newRect.height - collisionRect.height) / 2
5871
5879
  };
5872
5880
  }
5873
- if (_optionalChain([newDroppable, 'access', _94 => _94.data, 'access', _95 => _95.current, 'optionalAccess', _96 => _96.type]) === "container") {
5881
+ if (_optionalChain([newDroppable, 'access', _98 => _98.data, 'access', _99 => _99.current, 'optionalAccess', _100 => _100.type]) === "container") {
5874
5882
  return {
5875
5883
  x: newRect.left + 20,
5876
5884
  y: newRect.top + 74
@@ -5974,7 +5982,7 @@ function KanbanRoot(props) {
5974
5982
  )
5975
5983
  });
5976
5984
  if (closestItem.length > 0) {
5977
- overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _97 => _97[0], 'optionalAccess', _98 => _98.id]), () => ( overId));
5985
+ overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _101 => _101[0], 'optionalAccess', _102 => _102.id]), () => ( overId));
5978
5986
  }
5979
5987
  }
5980
5988
  }
@@ -5985,7 +5993,7 @@ function KanbanRoot(props) {
5985
5993
  );
5986
5994
  const onDragStart = React9.useCallback(
5987
5995
  (event) => {
5988
- _optionalChain([kanbanProps, 'access', _99 => _99.onDragStart, 'optionalCall', _100 => _100(event)]);
5996
+ _optionalChain([kanbanProps, 'access', _103 => _103.onDragStart, 'optionalCall', _104 => _104(event)]);
5989
5997
  if (event.activatorEvent.defaultPrevented) return;
5990
5998
  setActiveId(event.active.id);
5991
5999
  },
@@ -5993,7 +6001,7 @@ function KanbanRoot(props) {
5993
6001
  );
5994
6002
  const onDragOver = React9.useCallback(
5995
6003
  (event) => {
5996
- _optionalChain([kanbanProps, 'access', _101 => _101.onDragOver, 'optionalCall', _102 => _102(event)]);
6004
+ _optionalChain([kanbanProps, 'access', _105 => _105.onDragOver, 'optionalCall', _106 => _106(event)]);
5997
6005
  if (event.activatorEvent.defaultPrevented) return;
5998
6006
  const { active, over } = event;
5999
6007
  if (!over) return;
@@ -6008,7 +6016,7 @@ function KanbanRoot(props) {
6008
6016
  if (activeIndex !== overIndex) {
6009
6017
  const newColumns = { ...value };
6010
6018
  newColumns[activeColumn] = _sortable.arrayMove.call(void 0, items, activeIndex, overIndex);
6011
- _optionalChain([onValueChange, 'optionalCall', _103 => _103(newColumns)]);
6019
+ _optionalChain([onValueChange, 'optionalCall', _107 => _107(newColumns)]);
6012
6020
  }
6013
6021
  } else {
6014
6022
  const activeItems = value[activeColumn];
@@ -6023,7 +6031,7 @@ function KanbanRoot(props) {
6023
6031
  [activeColumn]: activeItems.filter((item) => getItemValue(item) !== active.id),
6024
6032
  [overColumn]: [...overItems, activeItem]
6025
6033
  };
6026
- _optionalChain([onValueChange, 'optionalCall', _104 => _104(updatedItems)]);
6034
+ _optionalChain([onValueChange, 'optionalCall', _108 => _108(updatedItems)]);
6027
6035
  hasMovedRef.current = true;
6028
6036
  }
6029
6037
  },
@@ -6031,7 +6039,7 @@ function KanbanRoot(props) {
6031
6039
  );
6032
6040
  const onDragEnd = React9.useCallback(
6033
6041
  (event) => {
6034
- _optionalChain([kanbanProps, 'access', _105 => _105.onDragEnd, 'optionalCall', _106 => _106(event)]);
6042
+ _optionalChain([kanbanProps, 'access', _109 => _109.onDragEnd, 'optionalCall', _110 => _110(event)]);
6035
6043
  if (event.activatorEvent.defaultPrevented) return;
6036
6044
  const { active, over } = event;
6037
6045
  if (!over) {
@@ -6054,7 +6062,7 @@ function KanbanRoot(props) {
6054
6062
  if (onMove) {
6055
6063
  onMove({ ...event, activeIndex, overIndex });
6056
6064
  } else {
6057
- _optionalChain([onValueChange, 'optionalCall', _107 => _107(newColumns)]);
6065
+ _optionalChain([onValueChange, 'optionalCall', _111 => _111(newColumns)]);
6058
6066
  }
6059
6067
  }
6060
6068
  } else {
@@ -6082,7 +6090,7 @@ function KanbanRoot(props) {
6082
6090
  overIndex
6083
6091
  });
6084
6092
  } else {
6085
- _optionalChain([onValueChange, 'optionalCall', _108 => _108(newColumns)]);
6093
+ _optionalChain([onValueChange, 'optionalCall', _112 => _112(newColumns)]);
6086
6094
  }
6087
6095
  }
6088
6096
  }
@@ -6094,7 +6102,7 @@ function KanbanRoot(props) {
6094
6102
  );
6095
6103
  const onDragCancel = React9.useCallback(
6096
6104
  (event) => {
6097
- _optionalChain([kanbanProps, 'access', _109 => _109.onDragCancel, 'optionalCall', _110 => _110(event)]);
6105
+ _optionalChain([kanbanProps, 'access', _113 => _113.onDragCancel, 'optionalCall', _114 => _114(event)]);
6098
6106
  if (event.activatorEvent.defaultPrevented) return;
6099
6107
  setActiveId(null);
6100
6108
  hasMovedRef.current = false;
@@ -6113,7 +6121,7 @@ function KanbanRoot(props) {
6113
6121
  })();
6114
6122
  const total = isColumn ? Object.keys(value).length : (() => {
6115
6123
  const column = getColumn(active.id);
6116
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _111 => _111[column], 'optionalAccess', _112 => _112.length]), () => ( 0)) : 0;
6124
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _115 => _115[column], 'optionalAccess', _116 => _116.length]), () => ( 0)) : 0;
6117
6125
  })();
6118
6126
  return `Picked up ${itemType} at position ${position} of ${total}`;
6119
6127
  },
@@ -6128,7 +6136,7 @@ function KanbanRoot(props) {
6128
6136
  })();
6129
6137
  const total = isColumn ? Object.keys(value).length : (() => {
6130
6138
  const column = getColumn(over.id);
6131
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _113 => _113[column], 'optionalAccess', _114 => _114.length]), () => ( 0)) : 0;
6139
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _117 => _117[column], 'optionalAccess', _118 => _118.length]), () => ( 0)) : 0;
6132
6140
  })();
6133
6141
  const overColumn = getColumn(over.id);
6134
6142
  const activeColumn = getColumn(active.id);
@@ -6151,7 +6159,7 @@ function KanbanRoot(props) {
6151
6159
  })();
6152
6160
  const total = isColumn ? Object.keys(value).length : (() => {
6153
6161
  const column = getColumn(over.id);
6154
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _115 => _115[column], 'optionalAccess', _116 => _116.length]), () => ( 0)) : 0;
6162
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _119 => _119[column], 'optionalAccess', _120 => _120.length]), () => ( 0)) : 0;
6155
6163
  })();
6156
6164
  const overColumn = getColumn(over.id);
6157
6165
  const activeColumn = getColumn(active.id);
@@ -6497,7 +6505,7 @@ function KanbanOverlay(props) {
6497
6505
  const context = useKanbanContext(OVERLAY_NAME);
6498
6506
  const [mounted, setMounted] = React9.useState(false);
6499
6507
  React9.useLayoutEffect(() => setMounted(true), []);
6500
- const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _117 => _117.document, 'optionalAccess', _118 => _118.body]) : null)));
6508
+ const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _121 => _121.document, 'optionalAccess', _122 => _122.body]) : null)));
6501
6509
  if (!container) return null;
6502
6510
  const variant = context.activeId && context.activeId in context.items ? "column" : "item";
6503
6511
  return ReactDOM.createPortal(
@@ -6629,7 +6637,7 @@ var MultiSelect = React11.forwardRef(
6629
6637
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center", children: [
6630
6638
  selectedValues.slice(0, maxCount).map((value2) => {
6631
6639
  const option = options.find((o) => o.value === value2);
6632
- const IconComponent = _optionalChain([option, 'optionalAccess', _119 => _119.icon]);
6640
+ const IconComponent = _optionalChain([option, 'optionalAccess', _123 => _123.icon]);
6633
6641
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6634
6642
  Badge,
6635
6643
  {
@@ -6637,7 +6645,7 @@ var MultiSelect = React11.forwardRef(
6637
6645
  style: { animationDuration: `${animation}s` },
6638
6646
  children: [
6639
6647
  IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "mr-2 h-4 w-4" }),
6640
- _optionalChain([option, 'optionalAccess', _120 => _120.label]),
6648
+ _optionalChain([option, 'optionalAccess', _124 => _124.label]),
6641
6649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6642
6650
  _lucidereact.XCircle,
6643
6651
  {
@@ -6817,10 +6825,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6817
6825
  onValueChange: setFiles,
6818
6826
  dropzoneOptions: dropzone2,
6819
6827
  className: "h-40 w-40 rounded-full p-0",
6820
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _121 => _121.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6828
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _125 => _125.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6821
6829
  _image2.default,
6822
6830
  {
6823
- src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _122 => _122.avatar]) || "",
6831
+ src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _126 => _126.avatar]) || "",
6824
6832
  alt: t(`common.avatar`),
6825
6833
  width: 200,
6826
6834
  height: 200
@@ -6828,7 +6836,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
6828
6836
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
6829
6837
  }
6830
6838
  ),
6831
- !resetImage && (file || _optionalChain([user, 'optionalAccess', _123 => _123.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6839
+ !resetImage && (file || _optionalChain([user, 'optionalAccess', _127 => _127.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6832
6840
  Button,
6833
6841
  {
6834
6842
  className: "",
@@ -6856,7 +6864,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
6856
6864
  const router = _chunkEW6QPMN3js.useI18nRouter.call(void 0, );
6857
6865
  const t = _nextintl.useTranslations.call(void 0, );
6858
6866
  let cId;
6859
- if (_optionalChain([currentUser, 'optionalAccess', _124 => _124.roles, 'access', _125 => _125.find, 'call', _126 => _126((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6867
+ if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)]) && companyId) {
6860
6868
  cId = companyId;
6861
6869
  } else {
6862
6870
  if (!company) return;
@@ -6924,16 +6932,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6924
6932
  const form = _reacthookform.useForm.call(void 0, {
6925
6933
  resolver: _zod.zodResolver.call(void 0, formSchema),
6926
6934
  defaultValues: {
6927
- id: _optionalChain([user, 'optionalAccess', _127 => _127.id]) || _uuid.v4.call(void 0, ),
6928
- name: _optionalChain([user, 'optionalAccess', _128 => _128.name]) || "",
6929
- title: _optionalChain([user, 'optionalAccess', _129 => _129.title]) || "",
6930
- bio: _optionalChain([user, 'optionalAccess', _130 => _130.bio]) || "",
6931
- email: _optionalChain([user, 'optionalAccess', _131 => _131.email]) || "",
6932
- phone: _optionalChain([user, 'optionalAccess', _132 => _132.phone]) || "",
6935
+ id: _optionalChain([user, 'optionalAccess', _131 => _131.id]) || _uuid.v4.call(void 0, ),
6936
+ name: _optionalChain([user, 'optionalAccess', _132 => _132.name]) || "",
6937
+ title: _optionalChain([user, 'optionalAccess', _133 => _133.title]) || "",
6938
+ bio: _optionalChain([user, 'optionalAccess', _134 => _134.bio]) || "",
6939
+ email: _optionalChain([user, 'optionalAccess', _135 => _135.email]) || "",
6940
+ phone: _optionalChain([user, 'optionalAccess', _136 => _136.phone]) || "",
6933
6941
  password: "",
6934
- roleIds: _optionalChain([user, 'optionalAccess', _133 => _133.roles, 'access', _134 => _134.map, 'call', _135 => _135((role) => role.id)]) || [],
6942
+ roleIds: _optionalChain([user, 'optionalAccess', _137 => _137.roles, 'access', _138 => _138.map, 'call', _139 => _139((role) => role.id)]) || [],
6935
6943
  sendInvitationEmail: false,
6936
- avatar: _optionalChain([user, 'optionalAccess', _136 => _136.avatarUrl]) || ""
6944
+ avatar: _optionalChain([user, 'optionalAccess', _140 => _140.avatarUrl]) || ""
6937
6945
  }
6938
6946
  });
6939
6947
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
@@ -6979,7 +6987,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6979
6987
  };
6980
6988
  try {
6981
6989
  const updatedUser = user ? await _chunkUYBCHXXLjs.UserService.update(payload) : await _chunkUYBCHXXLjs.UserService.create(payload);
6982
- if (_optionalChain([currentUser, 'optionalAccess', _137 => _137.id]) === updatedUser.id) setUser(updatedUser);
6990
+ if (_optionalChain([currentUser, 'optionalAccess', _141 => _141.id]) === updatedUser.id) setUser(updatedUser);
6983
6991
  if (onRevalidate) {
6984
6992
  await onRevalidate(generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
6985
6993
  }
@@ -6997,12 +7005,12 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
6997
7005
  async function fetchRoles() {
6998
7006
  const roles2 = await _chunkUYBCHXXLjs.RoleService.findAllRoles({});
6999
7007
  const availableRoles = roles2.filter(
7000
- (role) => role.id !== _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _138 => _138.features, 'access', _139 => _139.some, 'call', _140 => _140((feature) => feature.id === _optionalChain([role, 'access', _141 => _141.requiredFeature, 'optionalAccess', _142 => _142.id]))]))
7008
+ (role) => role.id !== _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _142 => _142.features, 'access', _143 => _143.some, 'call', _144 => _144((feature) => feature.id === _optionalChain([role, 'access', _145 => _145.requiredFeature, 'optionalAccess', _146 => _146.id]))]))
7001
7009
  );
7002
7010
  setRoles(availableRoles);
7003
7011
  }
7004
7012
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
7005
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _143 => _143.roles, 'access', _144 => _144.find, 'call', _145 => _145((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
7013
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
7006
7014
  fetchRoles();
7007
7015
  }, [company, open]);
7008
7016
  _react.useEffect.call(void 0, () => {
@@ -7023,7 +7031,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7023
7031
  setContentType(null);
7024
7032
  }
7025
7033
  }, [file]);
7026
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _146 => _146.id]) === _optionalChain([user, 'optionalAccess', _147 => _147.id]) && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator));
7034
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkUYBCHXXLjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator));
7027
7035
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
7028
7036
  trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
7029
7037
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -7031,7 +7039,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7031
7039
  {
7032
7040
  className: `flex max-h-[70vh] ${canChangeRoles ? `max-w-[90vw]` : `max-w-3xl`} min-h-3xl max-h-[90vh] flex-col overflow-y-auto`,
7033
7041
  children: [
7034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _148 => _148.name]) }),
7042
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _152 => _152.name]) }),
7035
7043
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
7036
7044
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: [
7037
7045
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-40 flex-col justify-start gap-y-2`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7110,10 +7118,10 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
7110
7118
  ] })
7111
7119
  ] }),
7112
7120
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
7113
- user && _optionalChain([currentUser, 'optionalAccess', _149 => _149.roles, 'access', _150 => _150.find, 'call', _151 => _151((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7121
+ user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id === _chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7114
7122
  UserDeleter,
7115
7123
  {
7116
- companyId: _optionalChain([user, 'access', _152 => _152.company, 'optionalAccess', _153 => _153.id]),
7124
+ companyId: _optionalChain([user, 'access', _156 => _156.company, 'optionalAccess', _157 => _157.id]),
7117
7125
  user,
7118
7126
  onDeleted: () => {
7119
7127
  setOpen(false);
@@ -7290,7 +7298,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
7290
7298
  // src/components/errors/errorToast.ts
7291
7299
 
7292
7300
  function errorToast(params) {
7293
- _sonner.toast.error(_nullishCoalesce(_optionalChain([params, 'optionalAccess', _154 => _154.title]), () => ( "Error")), {
7301
+ _sonner.toast.error(_nullishCoalesce(_optionalChain([params, 'optionalAccess', _158 => _158.title]), () => ( "Error")), {
7294
7302
  description: params.error instanceof Error ? params.error.message : String(params.error)
7295
7303
  });
7296
7304
  }
@@ -7593,7 +7601,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7593
7601
  const [open, setOpen] = _react.useState.call(void 0, false);
7594
7602
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
7595
7603
  _react.useEffect.call(void 0, () => {
7596
- if (_optionalChain([date, 'optionalAccess', _155 => _155.from]) && _optionalChain([date, 'optionalAccess', _156 => _156.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _157 => _157.from, 'optionalAccess', _158 => _158.getTime, 'call', _159 => _159()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _160 => _160.to, 'optionalAccess', _161 => _161.getTime, 'call', _162 => _162()]) !== date.to.getTime())) {
7604
+ if (_optionalChain([date, 'optionalAccess', _159 => _159.from]) && _optionalChain([date, 'optionalAccess', _160 => _160.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _161 => _161.from, 'optionalAccess', _162 => _162.getTime, 'call', _163 => _163()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _164 => _164.to, 'optionalAccess', _165 => _165.getTime, 'call', _166 => _166()]) !== date.to.getTime())) {
7597
7605
  onDateChange(date);
7598
7606
  setPrevRange(date);
7599
7607
  setOpen(false);
@@ -7604,7 +7612,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7604
7612
  setDate(void 0);
7605
7613
  return;
7606
7614
  }
7607
- if (range.from && (!_optionalChain([date, 'optionalAccess', _163 => _163.from]) || range.from.getTime() !== date.from.getTime())) {
7615
+ if (range.from && (!_optionalChain([date, 'optionalAccess', _167 => _167.from]) || range.from.getTime() !== date.from.getTime())) {
7608
7616
  setDate({ from: range.from, to: void 0 });
7609
7617
  } else {
7610
7618
  setDate(range);
@@ -7619,7 +7627,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7619
7627
  className: _chunkUYBCHXXLjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
7620
7628
  children: [
7621
7629
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
7622
- _optionalChain([date, 'optionalAccess', _164 => _164.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7630
+ _optionalChain([date, 'optionalAccess', _168 => _168.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
7623
7631
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
7624
7632
  " - ",
7625
7633
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -7632,7 +7640,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
7632
7640
  Calendar,
7633
7641
  {
7634
7642
  mode: "range",
7635
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _165 => _165.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
7643
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _169 => _169.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
7636
7644
  selected: date,
7637
7645
  onSelect: handleSelect,
7638
7646
  numberOfMonths: 2
@@ -7720,7 +7728,7 @@ var FileUploader = _react.forwardRef.call(void 0,
7720
7728
  movePrev();
7721
7729
  } else if (e.key === "Enter" || e.key === "Space") {
7722
7730
  if (activeIndex === -1) {
7723
- _optionalChain([dropzoneState, 'access', _166 => _166.inputRef, 'access', _167 => _167.current, 'optionalAccess', _168 => _168.click, 'call', _169 => _169()]);
7731
+ _optionalChain([dropzoneState, 'access', _170 => _170.inputRef, 'access', _171 => _171.current, 'optionalAccess', _172 => _172.click, 'call', _173 => _173()]);
7724
7732
  }
7725
7733
  } else if (e.key === "Delete" || e.key === "Backspace") {
7726
7734
  if (activeIndex !== -1) {
@@ -7758,13 +7766,13 @@ var FileUploader = _react.forwardRef.call(void 0,
7758
7766
  onValueChange(newValues);
7759
7767
  if (rejectedFiles.length > 0) {
7760
7768
  for (let i = 0; i < rejectedFiles.length; i++) {
7761
- if (_optionalChain([rejectedFiles, 'access', _170 => _170[i], 'access', _171 => _171.errors, 'access', _172 => _172[0], 'optionalAccess', _173 => _173.code]) === "file-too-large") {
7769
+ if (_optionalChain([rejectedFiles, 'access', _174 => _174[i], 'access', _175 => _175.errors, 'access', _176 => _176[0], 'optionalAccess', _177 => _177.code]) === "file-too-large") {
7762
7770
  _sonner.toast.error(t("common.errors.file"), {
7763
7771
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
7764
7772
  });
7765
7773
  break;
7766
7774
  }
7767
- if (_optionalChain([rejectedFiles, 'access', _174 => _174[i], 'access', _175 => _175.errors, 'access', _176 => _176[0], 'optionalAccess', _177 => _177.message])) {
7775
+ if (_optionalChain([rejectedFiles, 'access', _178 => _178[i], 'access', _179 => _179.errors, 'access', _180 => _180[0], 'optionalAccess', _181 => _181.message])) {
7768
7776
  _sonner.toast.error(t(`common.errors.file`), {
7769
7777
  description: rejectedFiles[i].errors[0].message
7770
7778
  });
@@ -8546,11 +8554,11 @@ function FormPlaceAutocomplete({
8546
8554
  const data = await response.json();
8547
8555
  if (data.suggestions) {
8548
8556
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
8549
- place_id: _optionalChain([suggestion, 'access', _178 => _178.placePrediction, 'optionalAccess', _179 => _179.placeId]) || "",
8550
- description: _optionalChain([suggestion, 'access', _180 => _180.placePrediction, 'optionalAccess', _181 => _181.text, 'optionalAccess', _182 => _182.text]) || "",
8557
+ place_id: _optionalChain([suggestion, 'access', _182 => _182.placePrediction, 'optionalAccess', _183 => _183.placeId]) || "",
8558
+ description: _optionalChain([suggestion, 'access', _184 => _184.placePrediction, 'optionalAccess', _185 => _185.text, 'optionalAccess', _186 => _186.text]) || "",
8551
8559
  structured_formatting: {
8552
- main_text: _optionalChain([suggestion, 'access', _183 => _183.placePrediction, 'optionalAccess', _184 => _184.structuredFormat, 'optionalAccess', _185 => _185.mainText, 'optionalAccess', _186 => _186.text]) || "",
8553
- secondary_text: _optionalChain([suggestion, 'access', _187 => _187.placePrediction, 'optionalAccess', _188 => _188.structuredFormat, 'optionalAccess', _189 => _189.secondaryText, 'optionalAccess', _190 => _190.text]) || ""
8560
+ main_text: _optionalChain([suggestion, 'access', _187 => _187.placePrediction, 'optionalAccess', _188 => _188.structuredFormat, 'optionalAccess', _189 => _189.mainText, 'optionalAccess', _190 => _190.text]) || "",
8561
+ secondary_text: _optionalChain([suggestion, 'access', _191 => _191.placePrediction, 'optionalAccess', _192 => _192.structuredFormat, 'optionalAccess', _193 => _193.secondaryText, 'optionalAccess', _194 => _194.text]) || ""
8554
8562
  }
8555
8563
  }));
8556
8564
  setSuggestions(formattedSuggestions);
@@ -8645,8 +8653,8 @@ function FormPlaceAutocomplete({
8645
8653
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
8646
8654
  onClick: () => handleSuggestionSelect(suggestion),
8647
8655
  children: [
8648
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _191 => _191.structured_formatting, 'optionalAccess', _192 => _192.main_text]) }),
8649
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _193 => _193.structured_formatting, 'optionalAccess', _194 => _194.secondary_text]) })
8656
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _195 => _195.structured_formatting, 'optionalAccess', _196 => _196.main_text]) }),
8657
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _197 => _197.structured_formatting, 'optionalAccess', _198 => _198.secondary_text]) })
8650
8658
  ]
8651
8659
  },
8652
8660
  suggestion.place_id || index
@@ -8855,7 +8863,7 @@ function UserMultiSelect({
8855
8863
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
8856
8864
  return _chunkUYBCHXXLjs.UserService.findAllUsers(params);
8857
8865
  }, "retriever"),
8858
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _195 => _195.id]) },
8866
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _199 => _199.id]) },
8859
8867
  module: _chunkUYBCHXXLjs.Modules.User
8860
8868
  });
8861
8869
  _react.useEffect.call(void 0, () => {
@@ -8882,7 +8890,7 @@ function UserMultiSelect({
8882
8890
  _react.useEffect.call(void 0, () => {
8883
8891
  if (data.data && data.data.length > 0) {
8884
8892
  const users = data.data;
8885
- const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _196 => _196.id]));
8893
+ const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _200 => _200.id]));
8886
8894
  const options = filteredUsers.map((user) => ({
8887
8895
  label: user.name,
8888
8896
  value: user.id,
@@ -8913,7 +8921,7 @@ function UserMultiSelect({
8913
8921
  return existingUser;
8914
8922
  }
8915
8923
  const option = userOptions.find((option2) => option2.value === id2);
8916
- if (_optionalChain([option, 'optionalAccess', _197 => _197.userData])) {
8924
+ if (_optionalChain([option, 'optionalAccess', _201 => _201.userData])) {
8917
8925
  return {
8918
8926
  id: option.userData.id,
8919
8927
  name: option.userData.name,
@@ -8924,7 +8932,7 @@ function UserMultiSelect({
8924
8932
  });
8925
8933
  form.setValue(id, updatedSelectedUsers);
8926
8934
  if (onChange) {
8927
- const fullSelectedUsers = selectedIds.map((id2) => _optionalChain([userOptions, 'access', _198 => _198.find, 'call', _199 => _199((option) => option.value === id2), 'optionalAccess', _200 => _200.userData])).filter(Boolean);
8935
+ const fullSelectedUsers = selectedIds.map((id2) => _optionalChain([userOptions, 'access', _202 => _202.find, 'call', _203 => _203((option) => option.value === id2), 'optionalAccess', _204 => _204.userData])).filter(Boolean);
8928
8936
  onChange(fullSelectedUsers);
8929
8937
  }
8930
8938
  }, "handleValueChange");
@@ -9072,7 +9080,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
9072
9080
  }, "getInitials");
9073
9081
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
9074
9082
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
9075
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _201 => _201.avatar]) }),
9083
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _205 => _205.avatar]) }),
9076
9084
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials(user.name) })
9077
9085
  ] }) });
9078
9086
  }, "getAvatar");
@@ -9154,10 +9162,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
9154
9162
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
9155
9163
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
9156
9164
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-6 w-6`, children: [
9157
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _202 => _202.value, 'optionalAccess', _203 => _203.avatar]) }),
9158
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _204 => _204.value, 'optionalAccess', _205 => _205.name]) ? _optionalChain([field, 'access', _206 => _206.value, 'optionalAccess', _207 => _207.name, 'access', _208 => _208.split, 'call', _209 => _209(" "), 'access', _210 => _210.map, 'call', _211 => _211((name) => name.charAt(0).toUpperCase())]) : "X" })
9165
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _206 => _206.value, 'optionalAccess', _207 => _207.avatar]) }),
9166
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _208 => _208.value, 'optionalAccess', _209 => _209.name]) ? _optionalChain([field, 'access', _210 => _210.value, 'optionalAccess', _211 => _211.name, 'access', _212 => _212.split, 'call', _213 => _213(" "), 'access', _214 => _214.map, 'call', _215 => _215((name) => name.charAt(0).toUpperCase())]) : "X" })
9159
9167
  ] }) }),
9160
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _212 => _212.value, 'optionalAccess', _213 => _213.name]), () => ( "")) })
9168
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _216 => _216.value, 'optionalAccess', _217 => _217.name]), () => ( "")) })
9161
9169
  ] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
9162
9170
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9163
9171
  _lucidereact.CircleX,
@@ -9417,7 +9425,7 @@ function CompanyUsersList({ isDeleted }) {
9417
9425
  const data = useDataListRetriever({
9418
9426
  ready: !!company,
9419
9427
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkUYBCHXXLjs.UserService.findAllUsers(params), "retriever"),
9420
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _214 => _214.id]), isDeleted },
9428
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _218 => _218.id]), isDeleted },
9421
9429
  module: _chunkUYBCHXXLjs.Modules.User
9422
9430
  });
9423
9431
  _react.useEffect.call(void 0, () => {
@@ -9523,11 +9531,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
9523
9531
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
9524
9532
  onClick: (e) => {
9525
9533
  setSelectedUser(user);
9526
- _optionalChain([setLevelOpen, 'optionalCall', _215 => _215(true)]);
9534
+ _optionalChain([setLevelOpen, 'optionalCall', _219 => _219(true)]);
9527
9535
  },
9528
9536
  onSelect: (e) => {
9529
9537
  setSelectedUser(user);
9530
- _optionalChain([setLevelOpen, 'optionalCall', _216 => _216(true)]);
9538
+ _optionalChain([setLevelOpen, 'optionalCall', _220 => _220(true)]);
9531
9539
  },
9532
9540
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
9533
9541
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -9809,8 +9817,8 @@ function CompanyConfigurationEditorInternal({ company }) {
9809
9817
  const { setUser } = useCurrentUserContext();
9810
9818
  const defaultValues = _react.useMemo.call(void 0, () => {
9811
9819
  return {
9812
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _217 => _217.configurations, 'optionalAccess', _218 => _218.isManagedKnowledge]), () => ( false)),
9813
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _219 => _219.configurations, 'optionalAccess', _220 => _220.allowPublicBot]), () => ( false))
9820
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _221 => _221.configurations, 'optionalAccess', _222 => _222.isManagedKnowledge]), () => ( false)),
9821
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _223 => _223.configurations, 'optionalAccess', _224 => _224.allowPublicBot]), () => ( false))
9814
9822
  };
9815
9823
  }, [company.configurations]);
9816
9824
  const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -9829,8 +9837,8 @@ function CompanyConfigurationEditorInternal({ company }) {
9829
9837
  _react.useEffect.call(void 0, () => {
9830
9838
  if (open) {
9831
9839
  form.reset({
9832
- isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _221 => _221.configurations, 'optionalAccess', _222 => _222.isManagedKnowledge]), () => ( false)),
9833
- allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _223 => _223.configurations, 'optionalAccess', _224 => _224.allowPublicBot]), () => ( false))
9840
+ isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _225 => _225.configurations, 'optionalAccess', _226 => _226.isManagedKnowledge]), () => ( false)),
9841
+ allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _227 => _227.configurations, 'optionalAccess', _228 => _228.allowPublicBot]), () => ( false))
9834
9842
  });
9835
9843
  }
9836
9844
  }, [company, open]);
@@ -10008,11 +10016,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10008
10016
  const form = _reacthookform.useForm.call(void 0, {
10009
10017
  resolver: _zod.zodResolver.call(void 0, formSchema),
10010
10018
  defaultValues: {
10011
- id: _optionalChain([company, 'optionalAccess', _225 => _225.id]) || _uuid.v4.call(void 0, ),
10012
- name: _optionalChain([company, 'optionalAccess', _226 => _226.name]) || "",
10013
- featureIds: _optionalChain([company, 'optionalAccess', _227 => _227.features, 'access', _228 => _228.map, 'call', _229 => _229((feature) => feature.id)]) || [],
10014
- moduleIds: _optionalChain([company, 'optionalAccess', _230 => _230.modules, 'access', _231 => _231.map, 'call', _232 => _232((module) => module.id)]) || [],
10015
- logo: _optionalChain([company, 'optionalAccess', _233 => _233.logo]) || ""
10019
+ id: _optionalChain([company, 'optionalAccess', _229 => _229.id]) || _uuid.v4.call(void 0, ),
10020
+ name: _optionalChain([company, 'optionalAccess', _230 => _230.name]) || "",
10021
+ featureIds: _optionalChain([company, 'optionalAccess', _231 => _231.features, 'access', _232 => _232.map, 'call', _233 => _233((feature) => feature.id)]) || [],
10022
+ moduleIds: _optionalChain([company, 'optionalAccess', _234 => _234.modules, 'access', _235 => _235.map, 'call', _236 => _236((module) => module.id)]) || [],
10023
+ logo: _optionalChain([company, 'optionalAccess', _237 => _237.logo]) || ""
10016
10024
  }
10017
10025
  });
10018
10026
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
@@ -10029,7 +10037,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10029
10037
  });
10030
10038
  }
10031
10039
  const payload = {
10032
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _234 => _234.id]), () => ( _uuid.v4.call(void 0, ))),
10040
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _238 => _238.id]), () => ( _uuid.v4.call(void 0, ))),
10033
10041
  name: values.name,
10034
10042
  logo: files && contentType ? values.logo : void 0,
10035
10043
  featureIds: values.featureIds,
@@ -10064,7 +10072,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10064
10072
  }
10065
10073
  }
10066
10074
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
10067
- if (open && features.length === 0 && (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _235 => _235.env, 'access', _236 => _236.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _237 => _237.toLowerCase, 'call', _238 => _238()]) === "true"))
10075
+ if (open && features.length === 0 && (hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _239 => _239.env, 'access', _240 => _240.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _241 => _241.toLowerCase, 'call', _242 => _242()]) === "true"))
10068
10076
  fetchFeatures();
10069
10077
  }, [open, features]);
10070
10078
  _react.useEffect.call(void 0, () => {
@@ -10098,7 +10106,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10098
10106
  "application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
10099
10107
  }
10100
10108
  };
10101
- const canAccessFeatures = hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _239 => _239.env, 'access', _240 => _240.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _241 => _241.toLowerCase, 'call', _242 => _242()]) === "true";
10109
+ const canAccessFeatures = hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _243 => _243.env, 'access', _244 => _244.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) === "true";
10102
10110
  const isAdministrator = hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator);
10103
10111
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
10104
10112
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
@@ -10107,13 +10115,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
10107
10115
  {
10108
10116
  className: `flex max-h-[70vh] w-full ${isAdministrator || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
10109
10117
  children: [
10110
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _243 => _243.name]) }),
10118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _247 => _247.name]) }),
10111
10119
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
10112
10120
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
10113
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _244 => _244.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10121
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _248 => _248.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10114
10122
  _image2.default,
10115
10123
  {
10116
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _245 => _245.logo]) || "",
10124
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _249 => _249.logo]) || "",
10117
10125
  alt: "Company Logo",
10118
10126
  width: 200,
10119
10127
  height: 200
@@ -10248,7 +10256,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
10248
10256
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10249
10257
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10250
10258
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10251
- actor: _nullishCoalesce(_optionalChain([data, 'access', _246 => _246.actor, 'optionalAccess', _247 => _247.name]), () => ( "")),
10259
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _250 => _250.actor, 'optionalAccess', _251 => _251.name]), () => ( "")),
10252
10260
  title: data.title,
10253
10261
  message: _nullishCoalesce(notification.message, () => ( ""))
10254
10262
  }) }),
@@ -10277,7 +10285,7 @@ function NotificationMenuItem({ notification, closePopover }) {
10277
10285
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
10278
10286
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
10279
10287
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
10280
- actor: _nullishCoalesce(_optionalChain([data, 'access', _248 => _248.actor, 'optionalAccess', _249 => _249.name]), () => ( "")),
10288
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _252 => _252.actor, 'optionalAccess', _253 => _253.name]), () => ( "")),
10281
10289
  title: data.title,
10282
10290
  message: _nullishCoalesce(notification.message, () => ( ""))
10283
10291
  }) }),
@@ -10551,7 +10559,7 @@ function usePageTracker() {
10551
10559
  if (typeof document !== "undefined") {
10552
10560
  const titleParts = document.title.split("]");
10553
10561
  if (titleParts[1]) {
10554
- const cleanTitle = _optionalChain([titleParts, 'access', _250 => _250[1], 'access', _251 => _251.split, 'call', _252 => _252("|"), 'access', _253 => _253[0], 'optionalAccess', _254 => _254.trim, 'call', _255 => _255()]);
10562
+ const cleanTitle = _optionalChain([titleParts, 'access', _254 => _254[1], 'access', _255 => _255.split, 'call', _256 => _256("|"), 'access', _257 => _257[0], 'optionalAccess', _258 => _258.trim, 'call', _259 => _259()]);
10555
10563
  pageTitle = cleanTitle || foundModule.name;
10556
10564
  }
10557
10565
  }
@@ -10588,7 +10596,7 @@ function usePushNotifications() {
10588
10596
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
10589
10597
  if ("serviceWorker" in navigator && "PushManager" in window) {
10590
10598
  try {
10591
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _256 => _256.id])}`;
10599
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _260 => _260.id])}`;
10592
10600
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
10593
10601
  const registration = await navigator.serviceWorker.register(`${_chunkEW6QPMN3js.getAppUrl.call(void 0, )}/sw.js`);
10594
10602
  let permission = Notification.permission;
@@ -10642,7 +10650,7 @@ function useSocket({ token }) {
10642
10650
  const socketRef = _react.useRef.call(void 0, null);
10643
10651
  _react.useEffect.call(void 0, () => {
10644
10652
  if (!token) return;
10645
- const globalSocketKey = `__socket_${_optionalChain([process, 'access', _257 => _257.env, 'access', _258 => _258.NEXT_PUBLIC_API_URL, 'optionalAccess', _259 => _259.replace, 'call', _260 => _260(/[^a-zA-Z0-9]/g, "_")])}`;
10653
+ const globalSocketKey = `__socket_${_optionalChain([process, 'access', _261 => _261.env, 'access', _262 => _262.NEXT_PUBLIC_API_URL, 'optionalAccess', _263 => _263.replace, 'call', _264 => _264(/[^a-zA-Z0-9]/g, "_")])}`;
10646
10654
  if (typeof window !== "undefined") {
10647
10655
  const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
10648
10656
  const existingSocket = window[globalSocketKey];
@@ -11121,7 +11129,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
11121
11129
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
11122
11130
 
11123
11131
 
11124
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-CJWHJRG3.js"))), {
11132
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-XWHUG6VH.js"))), {
11125
11133
  ssr: false
11126
11134
  });
11127
11135
  var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -11246,10 +11254,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
11246
11254
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11247
11255
  Checkbox,
11248
11256
  {
11249
- checked: _optionalChain([params, 'access', _261 => _261.checkedIds, 'optionalAccess', _262 => _262.includes, 'call', _263 => _263(row.getValue(params.name))]) || false,
11257
+ checked: _optionalChain([params, 'access', _265 => _265.checkedIds, 'optionalAccess', _266 => _266.includes, 'call', _267 => _267(row.getValue(params.name))]) || false,
11250
11258
  onCheckedChange: (value) => {
11251
11259
  row.toggleSelected(!!value);
11252
- _optionalChain([params, 'access', _264 => _264.toggleId, 'optionalCall', _265 => _265(row.getValue(params.name))]);
11260
+ _optionalChain([params, 'access', _268 => _268.toggleId, 'optionalCall', _269 => _269(row.getValue(params.name))]);
11253
11261
  },
11254
11262
  "aria-label": "Select row"
11255
11263
  }
@@ -11308,7 +11316,7 @@ function useJsonApiGet(params) {
11308
11316
  const [response, setResponse] = _react.useState.call(void 0, null);
11309
11317
  const isMounted = _react.useRef.call(void 0, true);
11310
11318
  const fetchData = _react.useCallback.call(void 0, async () => {
11311
- if (_optionalChain([params, 'access', _266 => _266.options, 'optionalAccess', _267 => _267.enabled]) === false) return;
11319
+ if (_optionalChain([params, 'access', _270 => _270.options, 'optionalAccess', _271 => _271.enabled]) === false) return;
11312
11320
  setLoading(true);
11313
11321
  setError(null);
11314
11322
  try {
@@ -11335,9 +11343,9 @@ function useJsonApiGet(params) {
11335
11343
  setLoading(false);
11336
11344
  }
11337
11345
  }
11338
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _268 => _268.options, 'optionalAccess', _269 => _269.enabled])]);
11346
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _272 => _272.options, 'optionalAccess', _273 => _273.enabled])]);
11339
11347
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
11340
- if (!_optionalChain([response, 'optionalAccess', _270 => _270.nextPage])) return;
11348
+ if (!_optionalChain([response, 'optionalAccess', _274 => _274.nextPage])) return;
11341
11349
  setLoading(true);
11342
11350
  try {
11343
11351
  const nextResponse = await response.nextPage();
@@ -11358,7 +11366,7 @@ function useJsonApiGet(params) {
11358
11366
  }
11359
11367
  }, [response]);
11360
11368
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
11361
- if (!_optionalChain([response, 'optionalAccess', _271 => _271.prevPage])) return;
11369
+ if (!_optionalChain([response, 'optionalAccess', _275 => _275.prevPage])) return;
11362
11370
  setLoading(true);
11363
11371
  try {
11364
11372
  const prevResponse = await response.prevPage();
@@ -11384,15 +11392,15 @@ function useJsonApiGet(params) {
11384
11392
  return () => {
11385
11393
  isMounted.current = false;
11386
11394
  };
11387
- }, [fetchData, ..._optionalChain([params, 'access', _272 => _272.options, 'optionalAccess', _273 => _273.deps]) || []]);
11395
+ }, [fetchData, ..._optionalChain([params, 'access', _276 => _276.options, 'optionalAccess', _277 => _277.deps]) || []]);
11388
11396
  return {
11389
11397
  data,
11390
11398
  loading,
11391
11399
  error,
11392
11400
  response,
11393
11401
  refetch: fetchData,
11394
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _274 => _274.next]),
11395
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _275 => _275.prev]),
11402
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _278 => _278.next]),
11403
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _279 => _279.prev]),
11396
11404
  fetchNextPage,
11397
11405
  fetchPreviousPage
11398
11406
  };
@@ -11470,17 +11478,17 @@ function useJsonApiMutation(config) {
11470
11478
  if (apiResponse.ok) {
11471
11479
  const resultData = apiResponse.data;
11472
11480
  setData(resultData);
11473
- _optionalChain([config, 'access', _276 => _276.onSuccess, 'optionalCall', _277 => _277(resultData)]);
11481
+ _optionalChain([config, 'access', _280 => _280.onSuccess, 'optionalCall', _281 => _281(resultData)]);
11474
11482
  return resultData;
11475
11483
  } else {
11476
11484
  setError(apiResponse.error);
11477
- _optionalChain([config, 'access', _278 => _278.onError, 'optionalCall', _279 => _279(apiResponse.error)]);
11485
+ _optionalChain([config, 'access', _282 => _282.onError, 'optionalCall', _283 => _283(apiResponse.error)]);
11478
11486
  return null;
11479
11487
  }
11480
11488
  } catch (err) {
11481
11489
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
11482
11490
  setError(errorMessage);
11483
- _optionalChain([config, 'access', _280 => _280.onError, 'optionalCall', _281 => _281(errorMessage)]);
11491
+ _optionalChain([config, 'access', _284 => _284.onError, 'optionalCall', _285 => _285(errorMessage)]);
11484
11492
  return null;
11485
11493
  } finally {
11486
11494
  setLoading(false);
@@ -11553,7 +11561,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11553
11561
  {
11554
11562
  href: hasRole(_chunkEW6QPMN3js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
11555
11563
  page: "/administration",
11556
- id: _optionalChain([_chunkUYBCHXXLjs.Modules, 'access', _282 => _282.Company, 'access', _283 => _283.pageUrl, 'optionalAccess', _284 => _284.substring, 'call', _285 => _285(1)]),
11564
+ id: _optionalChain([_chunkUYBCHXXLjs.Modules, 'access', _286 => _286.Company, 'access', _287 => _287.pageUrl, 'optionalAccess', _288 => _288.substring, 'call', _289 => _289(1)]),
11557
11565
  childPage: company.id
11558
11566
  }) : generateUrl({ page: _chunkUYBCHXXLjs.Modules.Company, id: company.id }),
11559
11567
  children: row.getValue("name")
@@ -11569,7 +11577,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11569
11577
  })
11570
11578
  };
11571
11579
  const columns = _react.useMemo.call(void 0, () => {
11572
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _286 => _286[field], 'optionalCall', _287 => _287()])).filter((col) => col !== void 0);
11580
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _290 => _290[field], 'optionalCall', _291 => _291()])).filter((col) => col !== void 0);
11573
11581
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
11574
11582
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11575
11583
  }, "useCompanyTableStructure");
@@ -11675,7 +11683,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11675
11683
  })
11676
11684
  };
11677
11685
  const columns = _react.useMemo.call(void 0, () => {
11678
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _288 => _288[field], 'optionalCall', _289 => _289()])).filter((col) => col !== void 0);
11686
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _292 => _292[field], 'optionalCall', _293 => _293()])).filter((col) => col !== void 0);
11679
11687
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11680
11688
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11681
11689
  }, "useRoleTableStructure");
@@ -11818,7 +11826,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11818
11826
  })
11819
11827
  };
11820
11828
  const columns = _react.useMemo.call(void 0, () => {
11821
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _290 => _290[field], 'optionalCall', _291 => _291()])).filter((col) => col !== void 0);
11829
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _294 => _294[field], 'optionalCall', _295 => _295()])).filter((col) => col !== void 0);
11822
11830
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11823
11831
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11824
11832
  }, "useUserTableStructure");
@@ -11919,11 +11927,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
11919
11927
  return params.fields.map((field) => {
11920
11928
  const localHandler = fieldColumnMap[field];
11921
11929
  if (localHandler) return localHandler();
11922
- const customHandler = _optionalChain([params, 'access', _292 => _292.context, 'optionalAccess', _293 => _293.customCells, 'optionalAccess', _294 => _294[field]]);
11930
+ const customHandler = _optionalChain([params, 'access', _296 => _296.context, 'optionalAccess', _297 => _297.customCells, 'optionalAccess', _298 => _298[field]]);
11923
11931
  if (customHandler) return customHandler({ t });
11924
11932
  return void 0;
11925
11933
  }).filter((col) => col !== void 0);
11926
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _295 => _295.context, 'optionalAccess', _296 => _296.customCells])]);
11934
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _299 => _299.context, 'optionalAccess', _300 => _300.customCells])]);
11927
11935
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11928
11936
  }, "useContentTableStructure");
11929
11937
 
@@ -12258,7 +12266,7 @@ function ContentTableSearch({ data }) {
12258
12266
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12259
12267
  if (!isExpanded) {
12260
12268
  setIsFocused(true);
12261
- setTimeout(() => _optionalChain([inputRef, 'access', _297 => _297.current, 'optionalAccess', _298 => _298.focus, 'call', _299 => _299()]), 50);
12269
+ setTimeout(() => _optionalChain([inputRef, 'access', _301 => _301.current, 'optionalAccess', _302 => _302.focus, 'call', _303 => _303()]), 50);
12262
12270
  }
12263
12271
  }, "handleSearchIconClick");
12264
12272
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -12321,7 +12329,7 @@ var EMPTY_ARRAY = [];
12321
12329
  var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
12322
12330
  const { data, fields, checkedIds, toggleId, allowSearch, filters } = props;
12323
12331
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
12324
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _300 => _300.data]), () => ( EMPTY_ARRAY)),
12332
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _304 => _304.data]), () => ( EMPTY_ARRAY)),
12325
12333
  fields,
12326
12334
  checkedIds,
12327
12335
  toggleId,
@@ -12362,7 +12370,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12362
12370
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
12363
12371
  }) }, headerGroup.id))
12364
12372
  ] }),
12365
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _301 => _301.rows, 'optionalAccess', _302 => _302.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
12373
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _305 => _305.rows, 'optionalAccess', _306 => _306.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id)) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
12366
12374
  showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
12367
12375
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12368
12376
  Button,
@@ -12371,7 +12379,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12371
12379
  size: "sm",
12372
12380
  onClick: (e) => {
12373
12381
  e.preventDefault();
12374
- _optionalChain([data, 'access', _303 => _303.previous, 'optionalCall', _304 => _304(true)]);
12382
+ _optionalChain([data, 'access', _307 => _307.previous, 'optionalCall', _308 => _308(true)]);
12375
12383
  },
12376
12384
  disabled: !data.previous,
12377
12385
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -12389,7 +12397,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
12389
12397
  size: "sm",
12390
12398
  onClick: (e) => {
12391
12399
  e.preventDefault();
12392
- _optionalChain([data, 'access', _305 => _305.next, 'optionalCall', _306 => _306(true)]);
12400
+ _optionalChain([data, 'access', _309 => _309.next, 'optionalCall', _310 => _310(true)]);
12393
12401
  },
12394
12402
  disabled: !data.next,
12395
12403
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -12684,9 +12692,9 @@ function AcceptInvitation() {
12684
12692
  });
12685
12693
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
12686
12694
  try {
12687
- if (!_optionalChain([params, 'optionalAccess', _307 => _307.code])) return;
12695
+ if (!_optionalChain([params, 'optionalAccess', _311 => _311.code])) return;
12688
12696
  const payload = {
12689
- code: _optionalChain([params, 'optionalAccess', _308 => _308.code]),
12697
+ code: _optionalChain([params, 'optionalAccess', _312 => _312.code]),
12690
12698
  password: values.password
12691
12699
  };
12692
12700
  await _chunkUYBCHXXLjs.AuthService.acceptInvitation(payload);
@@ -13012,14 +13020,14 @@ function RefreshUser() {
13012
13020
  setUser(fullUser);
13013
13021
  const token = {
13014
13022
  userId: fullUser.id,
13015
- companyId: _optionalChain([fullUser, 'access', _309 => _309.company, 'optionalAccess', _310 => _310.id]),
13023
+ companyId: _optionalChain([fullUser, 'access', _313 => _313.company, 'optionalAccess', _314 => _314.id]),
13016
13024
  roles: fullUser.roles.map((role) => role.id),
13017
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _311 => _311.company, 'optionalAccess', _312 => _312.features, 'optionalAccess', _313 => _313.map, 'call', _314 => _314((feature) => feature.id)]), () => ( [])),
13025
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _315 => _315.company, 'optionalAccess', _316 => _316.features, 'optionalAccess', _317 => _317.map, 'call', _318 => _318((feature) => feature.id)]), () => ( [])),
13018
13026
  modules: fullUser.modules.map((module) => {
13019
13027
  return { id: module.id, permissions: module.permissions };
13020
13028
  })
13021
13029
  };
13022
- await _optionalChain([_chunkUYBCHXXLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _315 => _315.updateToken, 'call', _316 => _316(token)]);
13030
+ await _optionalChain([_chunkUYBCHXXLjs.getTokenHandler.call(void 0, ), 'optionalAccess', _319 => _319.updateToken, 'call', _320 => _320(token)]);
13023
13031
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
13024
13032
  }
13025
13033
  }, "loadFullUser");
@@ -13084,9 +13092,9 @@ function ResetPassword() {
13084
13092
  });
13085
13093
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
13086
13094
  try {
13087
- if (!_optionalChain([params, 'optionalAccess', _317 => _317.code])) return;
13095
+ if (!_optionalChain([params, 'optionalAccess', _321 => _321.code])) return;
13088
13096
  const payload = {
13089
- code: _optionalChain([params, 'optionalAccess', _318 => _318.code]),
13097
+ code: _optionalChain([params, 'optionalAccess', _322 => _322.code]),
13090
13098
  password: values.password
13091
13099
  };
13092
13100
  await _chunkUYBCHXXLjs.AuthService.resetPassword(payload);
@@ -13256,14 +13264,14 @@ function NotificationsList({ archived }) {
13256
13264
  ] }),
13257
13265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
13258
13266
  ] }) }) }, i)) }), "LoadingSkeleton");
13259
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _319 => _319.data, 'optionalAccess', _320 => _320.map, 'call', _321 => _321((notification) => {
13267
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _323 => _323.data, 'optionalAccess', _324 => _324.map, 'call', _325 => _325((notification) => {
13260
13268
  const notificationData = generateNotificationData({ notification, generateUrl });
13261
13269
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
13262
13270
  notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkUYBCHXXLjs.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
13263
13271
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
13264
13272
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13265
13273
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
13266
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _322 => _322.actor, 'optionalAccess', _323 => _323.name]), () => ( "")),
13274
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _326 => _326.actor, 'optionalAccess', _327 => _327.name]), () => ( "")),
13267
13275
  title: notificationData.title
13268
13276
  }) }),
13269
13277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -14158,7 +14166,7 @@ function OAuthClientList({
14158
14166
  OAuthClientCard,
14159
14167
  {
14160
14168
  client,
14161
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _324 => _324(client)]),
14169
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _328 => _328(client)]),
14162
14170
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
14163
14171
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
14164
14172
  },
@@ -14179,11 +14187,11 @@ function OAuthClientForm({
14179
14187
  }) {
14180
14188
  const isEditMode = !!client;
14181
14189
  const [formState, setFormState] = _react.useState.call(void 0, {
14182
- name: _optionalChain([client, 'optionalAccess', _325 => _325.name]) || "",
14183
- description: _optionalChain([client, 'optionalAccess', _326 => _326.description]) || "",
14184
- redirectUris: _optionalChain([client, 'optionalAccess', _327 => _327.redirectUris, 'optionalAccess', _328 => _328.length]) ? client.redirectUris : [""],
14185
- allowedScopes: _optionalChain([client, 'optionalAccess', _329 => _329.allowedScopes]) || [],
14186
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _330 => _330.isConfidential]), () => ( true))
14190
+ name: _optionalChain([client, 'optionalAccess', _329 => _329.name]) || "",
14191
+ description: _optionalChain([client, 'optionalAccess', _330 => _330.description]) || "",
14192
+ redirectUris: _optionalChain([client, 'optionalAccess', _331 => _331.redirectUris, 'optionalAccess', _332 => _332.length]) ? client.redirectUris : [""],
14193
+ allowedScopes: _optionalChain([client, 'optionalAccess', _333 => _333.allowedScopes]) || [],
14194
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _334 => _334.isConfidential]), () => ( true))
14187
14195
  });
14188
14196
  const [errors, setErrors] = _react.useState.call(void 0, {});
14189
14197
  const validate = _react.useCallback.call(void 0, () => {
@@ -14411,7 +14419,7 @@ function OAuthClientDetail({
14411
14419
  ] }),
14412
14420
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
14413
14421
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
14414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkUYBCHXXLjs.OAUTH_SCOPE_DISPLAY, 'access', _331 => _331[scope], 'optionalAccess', _332 => _332.name]) || scope }, scope)) })
14422
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkUYBCHXXLjs.OAUTH_SCOPE_DISPLAY, 'access', _335 => _335[scope], 'optionalAccess', _336 => _336.name]) || scope }, scope)) })
14415
14423
  ] }),
14416
14424
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
14417
14425
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -14612,7 +14620,7 @@ function OAuthConsentScreen({
14612
14620
  if (error || !clientInfo) {
14613
14621
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
14614
14622
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
14615
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _333 => _333.message]) || "Invalid authorization request. Please try again." })
14623
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _337 => _337.message]) || "Invalid authorization request. Please try again." })
14616
14624
  ] }) }) }) });
14617
14625
  }
14618
14626
  const { client, scopes } = clientInfo;
@@ -15076,4 +15084,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
15076
15084
 
15077
15085
 
15078
15086
  exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.CompanyDetails = CompanyDetails; exports.TokenStatusIndicator = TokenStatusIndicator; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
15079
- //# sourceMappingURL=chunk-6HQ6CPVL.js.map
15087
+ //# sourceMappingURL=chunk-ALGMJ4JS.js.map