@carlonicora/nextjs-jsonapi 3.27.1 → 3.27.3

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.
Files changed (32) hide show
  1. package/dist/{BlockNoteEditor-LP65KUXI.js → BlockNoteEditor-OPIE2D56.js} +9 -9
  2. package/dist/{BlockNoteEditor-LP65KUXI.js.map → BlockNoteEditor-OPIE2D56.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-5MF2AH2U.mjs → BlockNoteEditor-ZFMCSQ5X.mjs} +2 -2
  4. package/dist/billing/index.js +335 -335
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-SVJ6UZPA.mjs → chunk-CIFCO74X.mjs} +24 -11
  7. package/dist/chunk-CIFCO74X.mjs.map +1 -0
  8. package/dist/{chunk-ZEEOY45J.js → chunk-GA6RXWN7.js} +446 -433
  9. package/dist/chunk-GA6RXWN7.js.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.js +2 -2
  13. package/dist/components/index.mjs +1 -1
  14. package/dist/contexts/index.js +2 -2
  15. package/dist/contexts/index.mjs +1 -1
  16. package/dist/features/analytics/index.js +88 -88
  17. package/dist/features/analytics/index.mjs +1 -1
  18. package/dist/features/help/index.js +31 -31
  19. package/dist/features/help/index.mjs +1 -1
  20. package/dist/features/tokenusage/index.js +75 -75
  21. package/dist/features/tokenusage/index.mjs +1 -1
  22. package/package.json +1 -1
  23. package/src/components/tables/cells/cell.date.tsx +9 -3
  24. package/src/components/tables/cells/cell.dateTime.tsx +11 -5
  25. package/src/features/auth/components/two-factor/PasskeyList.tsx +3 -1
  26. package/src/features/auth/components/two-factor/TotpAuthenticatorList.tsx +3 -1
  27. package/src/features/notification/components/notifications/Notification.tsx +1 -1
  28. package/src/features/waitlist/hooks/useWaitlistTableStructure.tsx +5 -3
  29. package/src/shadcnui/ui/calendar.tsx +1 -1
  30. package/dist/chunk-SVJ6UZPA.mjs.map +0 -1
  31. package/dist/chunk-ZEEOY45J.js.map +0 -1
  32. /package/dist/{BlockNoteEditor-5MF2AH2U.mjs.map → BlockNoteEditor-ZFMCSQ5X.mjs.map} +0 -0
@@ -704,7 +704,7 @@ function Calendar({
704
704
  ),
705
705
  captionLayout,
706
706
  formatters: {
707
- formatMonthDropdown: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (date) => date.toLocaleString("default", { month: "short" }), "formatMonthDropdown"),
707
+ formatMonthDropdown: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (date) => date.toLocaleString(_nullishCoalesce(_optionalChain([props, 'access', _2 => _2.locale, 'optionalAccess', _3 => _3.code]), () => ( "default")), { month: "short" }), "formatMonthDropdown"),
708
708
  ...formatters
709
709
  },
710
710
  classNames: {
@@ -800,7 +800,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
800
800
  const defaultClassNames = _reactdaypicker.getDefaultClassNames.call(void 0, );
801
801
  const ref = React2.useRef(null);
802
802
  React2.useEffect(() => {
803
- if (modifiers.focused) _optionalChain([ref, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()]);
803
+ if (modifiers.focused) _optionalChain([ref, 'access', _4 => _4.current, 'optionalAccess', _5 => _5.focus, 'call', _6 => _6()]);
804
804
  }, [modifiers.focused]);
805
805
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
806
806
  Button,
@@ -920,7 +920,7 @@ function Carousel({
920
920
  {
921
921
  ...opts,
922
922
  axis: orientation === "horizontal" ? "x" : "y",
923
- direction: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _5 => _5.direction]), () => ( dir))
923
+ direction: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _7 => _7.direction]), () => ( dir))
924
924
  },
925
925
  plugins
926
926
  );
@@ -932,10 +932,10 @@ function Carousel({
932
932
  setCanScrollNext(api2.canScrollNext());
933
933
  }, []);
934
934
  const scrollPrev = React3.useCallback(() => {
935
- _optionalChain([api, 'optionalAccess', _6 => _6.scrollPrev, 'call', _7 => _7()]);
935
+ _optionalChain([api, 'optionalAccess', _8 => _8.scrollPrev, 'call', _9 => _9()]);
936
936
  }, [api]);
937
937
  const scrollNext = React3.useCallback(() => {
938
- _optionalChain([api, 'optionalAccess', _8 => _8.scrollNext, 'call', _9 => _9()]);
938
+ _optionalChain([api, 'optionalAccess', _10 => _10.scrollNext, 'call', _11 => _11()]);
939
939
  }, [api]);
940
940
  const handleKeyDown = React3.useCallback(
941
941
  (event) => {
@@ -960,7 +960,7 @@ function Carousel({
960
960
  api.on("reInit", onSelect);
961
961
  api.on("select", onSelect);
962
962
  return () => {
963
- _optionalChain([api, 'optionalAccess', _10 => _10.off, 'call', _11 => _11("select", onSelect)]);
963
+ _optionalChain([api, 'optionalAccess', _12 => _12.off, 'call', _13 => _13("select", onSelect)]);
964
964
  };
965
965
  }, [api, onSelect]);
966
966
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -970,7 +970,7 @@ function Carousel({
970
970
  carouselRef,
971
971
  api,
972
972
  opts,
973
- orientation: orientation || (_optionalChain([opts, 'optionalAccess', _12 => _12.axis]) === "y" ? "vertical" : "horizontal"),
973
+ orientation: orientation || (_optionalChain([opts, 'optionalAccess', _14 => _14.axis]) === "y" ? "vertical" : "horizontal"),
974
974
  scrollPrev,
975
975
  scrollNext,
976
976
  canScrollPrev,
@@ -1130,7 +1130,7 @@ var ChartStyle = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ id, con
1130
1130
  ([theme, prefix]) => `
1131
1131
  ${prefix} [data-chart=${id}] {
1132
1132
  ${colorConfig.map(([key, itemConfig]) => {
1133
- const color = _optionalChain([itemConfig, 'access', _13 => _13.theme, 'optionalAccess', _14 => _14[theme]]) || itemConfig.color;
1133
+ const color = _optionalChain([itemConfig, 'access', _15 => _15.theme, 'optionalAccess', _16 => _16[theme]]) || itemConfig.color;
1134
1134
  return color ? ` --color-${key}: ${color};` : null;
1135
1135
  }).join("\n")}
1136
1136
  }
@@ -1160,13 +1160,13 @@ function ChartTooltipContent({
1160
1160
  }) {
1161
1161
  const { config } = useChart();
1162
1162
  const tooltipLabel = React4.useMemo(() => {
1163
- if (hideLabel || !_optionalChain([payload, 'optionalAccess', _15 => _15.length])) {
1163
+ if (hideLabel || !_optionalChain([payload, 'optionalAccess', _17 => _17.length])) {
1164
1164
  return null;
1165
1165
  }
1166
1166
  const [item] = payload;
1167
- const key = `${labelKey || _optionalChain([item, 'optionalAccess', _16 => _16.dataKey]) || _optionalChain([item, 'optionalAccess', _17 => _17.name]) || "value"}`;
1167
+ const key = `${labelKey || _optionalChain([item, 'optionalAccess', _18 => _18.dataKey]) || _optionalChain([item, 'optionalAccess', _19 => _19.name]) || "value"}`;
1168
1168
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
1169
- const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _18 => _18[label], 'optionalAccess', _19 => _19.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _20 => _20.label]);
1169
+ const value = !labelKey && typeof label === "string" ? _optionalChain([config, 'access', _20 => _20[label], 'optionalAccess', _21 => _21.label]) || label : _optionalChain([itemConfig, 'optionalAccess', _22 => _22.label]);
1170
1170
  if (labelFormatter) {
1171
1171
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "font-medium", labelClassName), children: labelFormatter(value, payload) });
1172
1172
  }
@@ -1175,7 +1175,7 @@ function ChartTooltipContent({
1175
1175
  }
1176
1176
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "font-medium", labelClassName), children: value });
1177
1177
  }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
1178
- if (!active || !_optionalChain([payload, 'optionalAccess', _21 => _21.length])) {
1178
+ if (!active || !_optionalChain([payload, 'optionalAccess', _23 => _23.length])) {
1179
1179
  return null;
1180
1180
  }
1181
1181
  const nestLabel = payload.length === 1 && indicator !== "dot";
@@ -1191,7 +1191,7 @@ function ChartTooltipContent({
1191
1191
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").filter((item) => !hideZeroValues || Number(item.value) !== 0).map((item, index) => {
1192
1192
  const key = `${nameKey || item.name || item.dataKey || "value"}`;
1193
1193
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
1194
- const indicatorColor = color || _optionalChain([item, 'access', _22 => _22.payload, 'optionalAccess', _23 => _23.fill]) || item.color;
1194
+ const indicatorColor = color || _optionalChain([item, 'access', _24 => _24.payload, 'optionalAccess', _25 => _25.fill]) || item.color;
1195
1195
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1196
1196
  "div",
1197
1197
  {
@@ -1199,8 +1199,8 @@ function ChartTooltipContent({
1199
1199
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
1200
1200
  indicator === "dot" && "items-center"
1201
1201
  ),
1202
- children: formatter && _optionalChain([item, 'optionalAccess', _24 => _24.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1203
- _optionalChain([itemConfig, 'optionalAccess', _25 => _25.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1202
+ children: formatter && _optionalChain([item, 'optionalAccess', _26 => _26.value]) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1203
+ _optionalChain([itemConfig, 'optionalAccess', _27 => _27.icon]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1204
1204
  "div",
1205
1205
  {
1206
1206
  className: _chunkCAKOFJZDjs.cn.call(void 0, "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
@@ -1229,7 +1229,7 @@ function ChartTooltipContent({
1229
1229
  children: [
1230
1230
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-1.5", children: [
1231
1231
  nestLabel ? tooltipLabel : null,
1232
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _26 => _26.label]) || item.name })
1232
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground", children: _optionalChain([itemConfig, 'optionalAccess', _28 => _28.label]) || item.name })
1233
1233
  ] }),
1234
1234
  item.value !== void 0 && item.value !== null && // Tested against undefined/null rather than truthiness:
1235
1235
  // a value of exactly 0 is falsy, and the old guard
@@ -1257,7 +1257,7 @@ function ChartLegendContent({
1257
1257
  nameKey
1258
1258
  }) {
1259
1259
  const { config } = useChart();
1260
- if (!_optionalChain([payload, 'optionalAccess', _27 => _27.length])) {
1260
+ if (!_optionalChain([payload, 'optionalAccess', _29 => _29.length])) {
1261
1261
  return null;
1262
1262
  }
1263
1263
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCAKOFJZDjs.cn.call(void 0, "flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.filter((item) => item.type !== "none").map((item) => {
@@ -1268,7 +1268,7 @@ function ChartLegendContent({
1268
1268
  {
1269
1269
  className: _chunkCAKOFJZDjs.cn.call(void 0, "[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
1270
1270
  children: [
1271
- _optionalChain([itemConfig, 'optionalAccess', _28 => _28.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1271
+ _optionalChain([itemConfig, 'optionalAccess', _30 => _30.icon]) && !hideIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, itemConfig.icon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1272
1272
  "div",
1273
1273
  {
1274
1274
  className: "h-2 w-2 shrink-0 rounded-[2px]",
@@ -1277,7 +1277,7 @@ function ChartLegendContent({
1277
1277
  }
1278
1278
  }
1279
1279
  ),
1280
- _optionalChain([itemConfig, 'optionalAccess', _29 => _29.label])
1280
+ _optionalChain([itemConfig, 'optionalAccess', _31 => _31.label])
1281
1281
  ]
1282
1282
  },
1283
1283
  item.value
@@ -1435,7 +1435,7 @@ function InputGroupAddon({
1435
1435
  if (e.target.closest("button")) {
1436
1436
  return;
1437
1437
  }
1438
- _optionalChain([e, 'access', _30 => _30.currentTarget, 'access', _31 => _31.parentElement, 'optionalAccess', _32 => _32.querySelector, 'call', _33 => _33("input"), 'optionalAccess', _34 => _34.focus, 'call', _35 => _35()]);
1438
+ _optionalChain([e, 'access', _32 => _32.currentTarget, 'access', _33 => _33.parentElement, 'optionalAccess', _34 => _34.querySelector, 'call', _35 => _35("input"), 'optionalAccess', _36 => _36.focus, 'call', _37 => _37()]);
1439
1439
  },
1440
1440
  ...props
1441
1441
  }
@@ -2816,14 +2816,14 @@ function FieldError({
2816
2816
  if (children) {
2817
2817
  return children;
2818
2818
  }
2819
- if (!_optionalChain([errors, 'optionalAccess', _36 => _36.length])) {
2819
+ if (!_optionalChain([errors, 'optionalAccess', _38 => _38.length])) {
2820
2820
  return null;
2821
2821
  }
2822
- const uniqueErrors = [...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _37 => _37.message]), error])).values()];
2823
- if (_optionalChain([uniqueErrors, 'optionalAccess', _38 => _38.length]) == 1) {
2824
- return _optionalChain([uniqueErrors, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.message]);
2822
+ const uniqueErrors = [...new Map(errors.map((error) => [_optionalChain([error, 'optionalAccess', _39 => _39.message]), error])).values()];
2823
+ if (_optionalChain([uniqueErrors, 'optionalAccess', _40 => _40.length]) == 1) {
2824
+ return _optionalChain([uniqueErrors, 'access', _41 => _41[0], 'optionalAccess', _42 => _42.message]);
2825
2825
  }
2826
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "ms-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => _optionalChain([error, 'optionalAccess', _41 => _41.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)) });
2826
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "ms-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => _optionalChain([error, 'optionalAccess', _43 => _43.message]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: error.message }, index)) });
2827
2827
  }, [children, errors]);
2828
2828
  if (!content) {
2829
2829
  return null;
@@ -2933,7 +2933,7 @@ function InputOTPSlot({
2933
2933
  ...props
2934
2934
  }) {
2935
2935
  const inputOTPContext = React7.useContext(_inputotp.OTPInputContext);
2936
- const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _42 => _42.slots, 'access', _43 => _43[index]]), () => ( {}));
2936
+ const { char, hasFakeCaret, isActive } = _nullishCoalesce(_optionalChain([inputOTPContext, 'optionalAccess', _44 => _44.slots, 'access', _45 => _45[index]]), () => ( {}));
2937
2937
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2938
2938
  "div",
2939
2939
  {
@@ -3903,7 +3903,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
3903
3903
  size: "icon-sm",
3904
3904
  className: _chunkCAKOFJZDjs.cn.call(void 0, className),
3905
3905
  onClick: (event) => {
3906
- _optionalChain([onClick, 'optionalCall', _44 => _44(event)]);
3906
+ _optionalChain([onClick, 'optionalCall', _46 => _46(event)]);
3907
3907
  toggleSidebar();
3908
3908
  },
3909
3909
  ...props,
@@ -4576,7 +4576,7 @@ function Tabs({
4576
4576
  defaultValue,
4577
4577
  onValueChange: (newValue, eventDetails) => {
4578
4578
  setUncontrolledValue(newValue);
4579
- _optionalChain([onValueChange, 'optionalCall', _45 => _45(newValue, eventDetails)]);
4579
+ _optionalChain([onValueChange, 'optionalCall', _47 => _47(newValue, eventDetails)]);
4580
4580
  },
4581
4581
  ...props
4582
4582
  }
@@ -4723,14 +4723,14 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
4723
4723
  if (!active || !collisionRect) return;
4724
4724
  const filteredContainers = [];
4725
4725
  for (const entry of droppableContainers.getEnabled()) {
4726
- if (!entry || _optionalChain([entry, 'optionalAccess', _46 => _46.disabled])) return;
4726
+ if (!entry || _optionalChain([entry, 'optionalAccess', _48 => _48.disabled])) return;
4727
4727
  const rect = droppableRects.get(entry.id);
4728
4728
  if (!rect) return;
4729
4729
  const data = entry.data.current;
4730
4730
  if (data) {
4731
4731
  const { type, children } = data;
4732
- if (type === "container" && _optionalChain([children, 'optionalAccess', _47 => _47.length]) > 0) {
4733
- if (_optionalChain([active, 'access', _48 => _48.data, 'access', _49 => _49.current, 'optionalAccess', _50 => _50.type]) !== "container") {
4732
+ if (type === "container" && _optionalChain([children, 'optionalAccess', _49 => _49.length]) > 0) {
4733
+ if (_optionalChain([active, 'access', _50 => _50.data, 'access', _51 => _51.current, 'optionalAccess', _52 => _52.type]) !== "container") {
4734
4734
  return;
4735
4735
  }
4736
4736
  }
@@ -4768,8 +4768,8 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
4768
4768
  const closestId = _core.getFirstCollision.call(void 0, collisions, "id");
4769
4769
  if (closestId != null) {
4770
4770
  const newDroppable = droppableContainers.get(closestId);
4771
- const newNode = _optionalChain([newDroppable, 'optionalAccess', _51 => _51.node, 'access', _52 => _52.current]);
4772
- const newRect = _optionalChain([newDroppable, 'optionalAccess', _53 => _53.rect, 'access', _54 => _54.current]);
4771
+ const newNode = _optionalChain([newDroppable, 'optionalAccess', _53 => _53.node, 'access', _54 => _54.current]);
4772
+ const newRect = _optionalChain([newDroppable, 'optionalAccess', _55 => _55.rect, 'access', _56 => _56.current]);
4773
4773
  if (newNode && newRect) {
4774
4774
  if (newDroppable.id === "placeholder") {
4775
4775
  return {
@@ -4777,7 +4777,7 @@ var coordinateGetter = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (eve
4777
4777
  y: newRect.top + (newRect.height - collisionRect.height) / 2
4778
4778
  };
4779
4779
  }
4780
- if (_optionalChain([newDroppable, 'access', _55 => _55.data, 'access', _56 => _56.current, 'optionalAccess', _57 => _57.type]) === "container") {
4780
+ if (_optionalChain([newDroppable, 'access', _57 => _57.data, 'access', _58 => _58.current, 'optionalAccess', _59 => _59.type]) === "container") {
4781
4781
  return {
4782
4782
  x: newRect.left + 20,
4783
4783
  y: newRect.top + 74
@@ -4881,7 +4881,7 @@ function KanbanRoot(props) {
4881
4881
  )
4882
4882
  });
4883
4883
  if (closestItem.length > 0) {
4884
- overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _58 => _58[0], 'optionalAccess', _59 => _59.id]), () => ( overId));
4884
+ overId = _nullishCoalesce(_optionalChain([closestItem, 'access', _60 => _60[0], 'optionalAccess', _61 => _61.id]), () => ( overId));
4885
4885
  }
4886
4886
  }
4887
4887
  }
@@ -4892,7 +4892,7 @@ function KanbanRoot(props) {
4892
4892
  );
4893
4893
  const onDragStart = React10.useCallback(
4894
4894
  (event) => {
4895
- _optionalChain([kanbanProps, 'access', _60 => _60.onDragStart, 'optionalCall', _61 => _61(event)]);
4895
+ _optionalChain([kanbanProps, 'access', _62 => _62.onDragStart, 'optionalCall', _63 => _63(event)]);
4896
4896
  if (event.activatorEvent.defaultPrevented) return;
4897
4897
  setActiveId(event.active.id);
4898
4898
  },
@@ -4900,7 +4900,7 @@ function KanbanRoot(props) {
4900
4900
  );
4901
4901
  const onDragOver = React10.useCallback(
4902
4902
  (event) => {
4903
- _optionalChain([kanbanProps, 'access', _62 => _62.onDragOver, 'optionalCall', _63 => _63(event)]);
4903
+ _optionalChain([kanbanProps, 'access', _64 => _64.onDragOver, 'optionalCall', _65 => _65(event)]);
4904
4904
  if (event.activatorEvent.defaultPrevented) return;
4905
4905
  const { active, over } = event;
4906
4906
  if (!over) return;
@@ -4915,7 +4915,7 @@ function KanbanRoot(props) {
4915
4915
  if (activeIndex !== overIndex) {
4916
4916
  const newColumns = { ...value };
4917
4917
  newColumns[activeColumn] = _sortable.arrayMove.call(void 0, items, activeIndex, overIndex);
4918
- _optionalChain([onValueChange, 'optionalCall', _64 => _64(newColumns)]);
4918
+ _optionalChain([onValueChange, 'optionalCall', _66 => _66(newColumns)]);
4919
4919
  }
4920
4920
  } else {
4921
4921
  const activeItems = value[activeColumn];
@@ -4930,7 +4930,7 @@ function KanbanRoot(props) {
4930
4930
  [activeColumn]: activeItems.filter((item) => getItemValue(item) !== active.id),
4931
4931
  [overColumn]: [...overItems, activeItem]
4932
4932
  };
4933
- _optionalChain([onValueChange, 'optionalCall', _65 => _65(updatedItems)]);
4933
+ _optionalChain([onValueChange, 'optionalCall', _67 => _67(updatedItems)]);
4934
4934
  hasMovedRef.current = true;
4935
4935
  }
4936
4936
  },
@@ -4938,7 +4938,7 @@ function KanbanRoot(props) {
4938
4938
  );
4939
4939
  const onDragEnd = React10.useCallback(
4940
4940
  (event) => {
4941
- _optionalChain([kanbanProps, 'access', _66 => _66.onDragEnd, 'optionalCall', _67 => _67(event)]);
4941
+ _optionalChain([kanbanProps, 'access', _68 => _68.onDragEnd, 'optionalCall', _69 => _69(event)]);
4942
4942
  if (event.activatorEvent.defaultPrevented) return;
4943
4943
  const { active, over } = event;
4944
4944
  if (!over) {
@@ -4961,7 +4961,7 @@ function KanbanRoot(props) {
4961
4961
  if (onMove) {
4962
4962
  onMove({ ...event, activeIndex, overIndex });
4963
4963
  } else {
4964
- _optionalChain([onValueChange, 'optionalCall', _68 => _68(newColumns)]);
4964
+ _optionalChain([onValueChange, 'optionalCall', _70 => _70(newColumns)]);
4965
4965
  }
4966
4966
  }
4967
4967
  } else {
@@ -4989,7 +4989,7 @@ function KanbanRoot(props) {
4989
4989
  overIndex
4990
4990
  });
4991
4991
  } else {
4992
- _optionalChain([onValueChange, 'optionalCall', _69 => _69(newColumns)]);
4992
+ _optionalChain([onValueChange, 'optionalCall', _71 => _71(newColumns)]);
4993
4993
  }
4994
4994
  }
4995
4995
  }
@@ -5001,7 +5001,7 @@ function KanbanRoot(props) {
5001
5001
  );
5002
5002
  const onDragCancel = React10.useCallback(
5003
5003
  (event) => {
5004
- _optionalChain([kanbanProps, 'access', _70 => _70.onDragCancel, 'optionalCall', _71 => _71(event)]);
5004
+ _optionalChain([kanbanProps, 'access', _72 => _72.onDragCancel, 'optionalCall', _73 => _73(event)]);
5005
5005
  if (event.activatorEvent.defaultPrevented) return;
5006
5006
  setActiveId(null);
5007
5007
  hasMovedRef.current = false;
@@ -5020,7 +5020,7 @@ function KanbanRoot(props) {
5020
5020
  })();
5021
5021
  const total = isColumn ? Object.keys(value).length : (() => {
5022
5022
  const column = getColumn(active.id);
5023
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _72 => _72[column], 'optionalAccess', _73 => _73.length]), () => ( 0)) : 0;
5023
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _74 => _74[column], 'optionalAccess', _75 => _75.length]), () => ( 0)) : 0;
5024
5024
  })();
5025
5025
  return `Picked up ${itemType} at position ${position} of ${total}`;
5026
5026
  },
@@ -5035,7 +5035,7 @@ function KanbanRoot(props) {
5035
5035
  })();
5036
5036
  const total = isColumn ? Object.keys(value).length : (() => {
5037
5037
  const column = getColumn(over.id);
5038
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _74 => _74[column], 'optionalAccess', _75 => _75.length]), () => ( 0)) : 0;
5038
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _76 => _76[column], 'optionalAccess', _77 => _77.length]), () => ( 0)) : 0;
5039
5039
  })();
5040
5040
  const overColumn = getColumn(over.id);
5041
5041
  const activeColumn = getColumn(active.id);
@@ -5058,7 +5058,7 @@ function KanbanRoot(props) {
5058
5058
  })();
5059
5059
  const total = isColumn ? Object.keys(value).length : (() => {
5060
5060
  const column = getColumn(over.id);
5061
- return column ? _nullishCoalesce(_optionalChain([value, 'access', _76 => _76[column], 'optionalAccess', _77 => _77.length]), () => ( 0)) : 0;
5061
+ return column ? _nullishCoalesce(_optionalChain([value, 'access', _78 => _78[column], 'optionalAccess', _79 => _79.length]), () => ( 0)) : 0;
5062
5062
  })();
5063
5063
  const overColumn = getColumn(over.id);
5064
5064
  const activeColumn = getColumn(active.id);
@@ -5404,7 +5404,7 @@ function KanbanOverlay(props) {
5404
5404
  const context = useKanbanContext(OVERLAY_NAME);
5405
5405
  const [mounted, setMounted] = React10.useState(false);
5406
5406
  React10.useLayoutEffect(() => setMounted(true), []);
5407
- const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _78 => _78.document, 'optionalAccess', _79 => _79.body]) : null)));
5407
+ const container = _nullishCoalesce(containerProp, () => ( (mounted ? _optionalChain([globalThis, 'access', _80 => _80.document, 'optionalAccess', _81 => _81.body]) : null)));
5408
5408
  if (!container) return null;
5409
5409
  const variant = context.activeId && context.activeId in context.items ? "column" : "item";
5410
5410
  return ReactDOM.createPortal(
@@ -5563,7 +5563,7 @@ var MultiSelect = React12.forwardRef(
5563
5563
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-center", children: [
5564
5564
  selectedValues.slice(0, maxCount).map((value2) => {
5565
5565
  const option = options.find((o) => o.value === value2);
5566
- const IconComponent = _optionalChain([option, 'optionalAccess', _80 => _80.icon]);
5566
+ const IconComponent = _optionalChain([option, 'optionalAccess', _82 => _82.icon]);
5567
5567
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
5568
5568
  Badge,
5569
5569
  {
@@ -5571,7 +5571,7 @@ var MultiSelect = React12.forwardRef(
5571
5571
  style: { animationDuration: `${animation}s` },
5572
5572
  children: [
5573
5573
  IconComponent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: "me-2 h-4 w-4" }),
5574
- _nullishCoalesce(_optionalChain([option, 'optionalAccess', _81 => _81.selectedLabel]), () => ( _optionalChain([option, 'optionalAccess', _82 => _82.label]))),
5574
+ _nullishCoalesce(_optionalChain([option, 'optionalAccess', _83 => _83.selectedLabel]), () => ( _optionalChain([option, 'optionalAccess', _84 => _84.label]))),
5575
5575
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5576
5576
  _lucidereact.XCircle,
5577
5577
  {
@@ -5868,7 +5868,7 @@ var MultipleSelector = React13.forwardRef(
5868
5868
  () => ({
5869
5869
  selectedValue: [...selected],
5870
5870
  input: inputRef.current,
5871
- focus: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => _optionalChain([inputRef, 'optionalAccess', _83 => _83.current, 'optionalAccess', _84 => _84.focus, 'call', _85 => _85()]), "focus"),
5871
+ focus: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => _optionalChain([inputRef, 'optionalAccess', _85 => _85.current, 'optionalAccess', _86 => _86.focus, 'call', _87 => _87()]), "focus"),
5872
5872
  reset: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => setSelected([]), "reset")
5873
5873
  }),
5874
5874
  [selected]
@@ -5883,7 +5883,7 @@ var MultipleSelector = React13.forwardRef(
5883
5883
  (option) => {
5884
5884
  const newOptions = selected.filter((s) => s.value !== option.value);
5885
5885
  setSelected(newOptions);
5886
- _optionalChain([onChange, 'optionalCall', _86 => _86(newOptions)]);
5886
+ _optionalChain([onChange, 'optionalCall', _88 => _88(newOptions)]);
5887
5887
  },
5888
5888
  [onChange, selected]
5889
5889
  );
@@ -5935,7 +5935,7 @@ var MultipleSelector = React13.forwardRef(
5935
5935
  }, [arrayDefaultOptions, arrayOptions, groupBy, onSearch, options]);
5936
5936
  _react.useEffect.call(void 0, () => {
5937
5937
  const doSearchSync = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
5938
- const res = _optionalChain([onSearchSync, 'optionalCall', _87 => _87(debouncedSearchTerm)]);
5938
+ const res = _optionalChain([onSearchSync, 'optionalCall', _89 => _89(debouncedSearchTerm)]);
5939
5939
  setOptions(transToGroupOption(res || [], groupBy));
5940
5940
  }, "doSearchSync");
5941
5941
  const exec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -5982,7 +5982,7 @@ var MultipleSelector = React13.forwardRef(
5982
5982
  _react.useEffect.call(void 0, () => {
5983
5983
  const doSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
5984
5984
  setIsLoading(true);
5985
- const res = await _optionalChain([onSearch, 'optionalCall', _88 => _88(debouncedSearchTerm)]);
5985
+ const res = await _optionalChain([onSearch, 'optionalCall', _90 => _90(debouncedSearchTerm)]);
5986
5986
  setOptions(transToGroupOption(res || [], groupBy));
5987
5987
  setIsLoading(false);
5988
5988
  }, "doSearch");
@@ -6013,13 +6013,13 @@ var MultipleSelector = React13.forwardRef(
6013
6013
  },
6014
6014
  onSelect: (value2) => {
6015
6015
  if (selected.length >= maxSelected) {
6016
- _optionalChain([onMaxSelected, 'optionalCall', _89 => _89(selected.length)]);
6016
+ _optionalChain([onMaxSelected, 'optionalCall', _91 => _91(selected.length)]);
6017
6017
  return;
6018
6018
  }
6019
6019
  setInputValue("");
6020
6020
  const newOptions = [...selected, { value: value2, label: value2 }];
6021
6021
  setSelected(newOptions);
6022
- _optionalChain([onChange, 'optionalCall', _90 => _90(newOptions)]);
6022
+ _optionalChain([onChange, 'optionalCall', _92 => _92(newOptions)]);
6023
6023
  },
6024
6024
  children: `Create "${inputValue}"`
6025
6025
  }
@@ -6041,7 +6041,7 @@ var MultipleSelector = React13.forwardRef(
6041
6041
  }, [creatable, emptyIndicator, onSearch, options]);
6042
6042
  const selectables = React13.useMemo(() => removePickedOption(options, selected), [options, selected]);
6043
6043
  const commandFilter = React13.useCallback(() => {
6044
- if (_optionalChain([commandProps, 'optionalAccess', _91 => _91.filter])) {
6044
+ if (_optionalChain([commandProps, 'optionalAccess', _93 => _93.filter])) {
6045
6045
  return commandProps.filter;
6046
6046
  }
6047
6047
  if (creatable) {
@@ -6050,7 +6050,7 @@ var MultipleSelector = React13.forwardRef(
6050
6050
  };
6051
6051
  }
6052
6052
  return void 0;
6053
- }, [creatable, _optionalChain([commandProps, 'optionalAccess', _92 => _92.filter])]);
6053
+ }, [creatable, _optionalChain([commandProps, 'optionalAccess', _94 => _94.filter])]);
6054
6054
  const displayedBadges = maxDisplayCount ? selected.slice(0, maxDisplayCount) : selected;
6055
6055
  const hiddenCount = maxDisplayCount ? Math.max(0, selected.length - maxDisplayCount) : 0;
6056
6056
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -6060,10 +6060,10 @@ var MultipleSelector = React13.forwardRef(
6060
6060
  ...commandProps,
6061
6061
  onKeyDown: (e) => {
6062
6062
  handleKeyDown(e);
6063
- _optionalChain([commandProps, 'optionalAccess', _93 => _93.onKeyDown, 'optionalCall', _94 => _94(e)]);
6063
+ _optionalChain([commandProps, 'optionalAccess', _95 => _95.onKeyDown, 'optionalCall', _96 => _96(e)]);
6064
6064
  },
6065
- className: _chunkCAKOFJZDjs.cn.call(void 0, "h-auto overflow-visible bg-transparent!", _optionalChain([commandProps, 'optionalAccess', _95 => _95.className])),
6066
- shouldFilter: _optionalChain([commandProps, 'optionalAccess', _96 => _96.shouldFilter]) !== void 0 ? commandProps.shouldFilter : !onSearch,
6065
+ className: _chunkCAKOFJZDjs.cn.call(void 0, "h-auto overflow-visible bg-transparent!", _optionalChain([commandProps, 'optionalAccess', _97 => _97.className])),
6066
+ shouldFilter: _optionalChain([commandProps, 'optionalAccess', _98 => _98.shouldFilter]) !== void 0 ? commandProps.shouldFilter : !onSearch,
6067
6067
  filter: commandFilter(),
6068
6068
  children: [
6069
6069
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -6079,7 +6079,7 @@ var MultipleSelector = React13.forwardRef(
6079
6079
  ),
6080
6080
  onClick: () => {
6081
6081
  if (disabled) return;
6082
- _optionalChain([inputRef, 'optionalAccess', _97 => _97.current, 'optionalAccess', _98 => _98.focus, 'call', _99 => _99()]);
6082
+ _optionalChain([inputRef, 'optionalAccess', _99 => _99.current, 'optionalAccess', _100 => _100.focus, 'call', _101 => _101()]);
6083
6083
  },
6084
6084
  children: [
6085
6085
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-1 flex-wrap gap-1", children: [
@@ -6133,17 +6133,17 @@ var MultipleSelector = React13.forwardRef(
6133
6133
  disabled,
6134
6134
  onValueChange: (value2) => {
6135
6135
  setInputValue(value2);
6136
- _optionalChain([inputProps, 'optionalAccess', _100 => _100.onValueChange, 'optionalCall', _101 => _101(value2)]);
6136
+ _optionalChain([inputProps, 'optionalAccess', _102 => _102.onValueChange, 'optionalCall', _103 => _103(value2)]);
6137
6137
  },
6138
6138
  onBlur: (event) => {
6139
6139
  if (!onScrollbar) {
6140
6140
  setOpen(false);
6141
6141
  }
6142
- _optionalChain([inputProps, 'optionalAccess', _102 => _102.onBlur, 'optionalCall', _103 => _103(event)]);
6142
+ _optionalChain([inputProps, 'optionalAccess', _104 => _104.onBlur, 'optionalCall', _105 => _105(event)]);
6143
6143
  },
6144
6144
  onFocus: (event) => {
6145
6145
  setOpen(true);
6146
- _optionalChain([inputProps, 'optionalAccess', _104 => _104.onFocus, 'optionalCall', _105 => _105(event)]);
6146
+ _optionalChain([inputProps, 'optionalAccess', _106 => _106.onFocus, 'optionalCall', _107 => _107(event)]);
6147
6147
  },
6148
6148
  placeholder: hidePlaceholderWhenSelected && selected.length !== 0 ? "" : placeholder,
6149
6149
  className: _chunkCAKOFJZDjs.cn.call(void 0,
@@ -6152,7 +6152,7 @@ var MultipleSelector = React13.forwardRef(
6152
6152
  "w-full": hidePlaceholderWhenSelected,
6153
6153
  "ms-1": selected.length !== 0
6154
6154
  },
6155
- _optionalChain([inputProps, 'optionalAccess', _106 => _106.className])
6155
+ _optionalChain([inputProps, 'optionalAccess', _108 => _108.className])
6156
6156
  )
6157
6157
  }
6158
6158
  )
@@ -6164,7 +6164,7 @@ var MultipleSelector = React13.forwardRef(
6164
6164
  type: "button",
6165
6165
  onClick: () => {
6166
6166
  setSelected(selected.filter((s) => s.fixed));
6167
- _optionalChain([onChange, 'optionalCall', _107 => _107(selected.filter((s) => s.fixed))]);
6167
+ _optionalChain([onChange, 'optionalCall', _109 => _109(selected.filter((s) => s.fixed))]);
6168
6168
  },
6169
6169
  className: _chunkCAKOFJZDjs.cn.call(void 0,
6170
6170
  "size-5",
@@ -6189,7 +6189,7 @@ var MultipleSelector = React13.forwardRef(
6189
6189
  setOnScrollbar(true);
6190
6190
  },
6191
6191
  onMouseUp: () => {
6192
- _optionalChain([inputRef, 'optionalAccess', _108 => _108.current, 'optionalAccess', _109 => _109.focus, 'call', _110 => _110()]);
6192
+ _optionalChain([inputRef, 'optionalAccess', _110 => _110.current, 'optionalAccess', _111 => _111.focus, 'call', _112 => _112()]);
6193
6193
  },
6194
6194
  children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: loadingIndicator }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
6195
6195
  EmptyItem(),
@@ -6212,13 +6212,13 @@ var MultipleSelector = React13.forwardRef(
6212
6212
  },
6213
6213
  onSelect: () => {
6214
6214
  if (selected.length >= maxSelected) {
6215
- _optionalChain([onMaxSelected, 'optionalCall', _111 => _111(selected.length)]);
6215
+ _optionalChain([onMaxSelected, 'optionalCall', _113 => _113(selected.length)]);
6216
6216
  return;
6217
6217
  }
6218
6218
  setInputValue("");
6219
6219
  const newOptions = [...selected, option];
6220
6220
  setSelected(newOptions);
6221
- _optionalChain([onChange, 'optionalCall', _112 => _112(newOptions)]);
6221
+ _optionalChain([onChange, 'optionalCall', _114 => _114(newOptions)]);
6222
6222
  },
6223
6223
  className: _chunkCAKOFJZDjs.cn.call(void 0,
6224
6224
  "cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
@@ -6254,7 +6254,7 @@ var MultipleSelector = React13.forwardRef(
6254
6254
  setOnScrollbar(true);
6255
6255
  },
6256
6256
  onMouseUp: () => {
6257
- _optionalChain([inputRef, 'optionalAccess', _113 => _113.current, 'optionalAccess', _114 => _114.focus, 'call', _115 => _115()]);
6257
+ _optionalChain([inputRef, 'optionalAccess', _115 => _115.current, 'optionalAccess', _116 => _116.focus, 'call', _117 => _117()]);
6258
6258
  },
6259
6259
  children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: loadingIndicator }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
6260
6260
  EmptyItem(),
@@ -6277,13 +6277,13 @@ var MultipleSelector = React13.forwardRef(
6277
6277
  },
6278
6278
  onSelect: () => {
6279
6279
  if (selected.length >= maxSelected) {
6280
- _optionalChain([onMaxSelected, 'optionalCall', _116 => _116(selected.length)]);
6280
+ _optionalChain([onMaxSelected, 'optionalCall', _118 => _118(selected.length)]);
6281
6281
  return;
6282
6282
  }
6283
6283
  setInputValue("");
6284
6284
  const newOptions = [...selected, option];
6285
6285
  setSelected(newOptions);
6286
- _optionalChain([onChange, 'optionalCall', _117 => _117(newOptions)]);
6286
+ _optionalChain([onChange, 'optionalCall', _119 => _119(newOptions)]);
6287
6287
  },
6288
6288
  className: _chunkCAKOFJZDjs.cn.call(void 0,
6289
6289
  "cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
@@ -6326,7 +6326,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, EntityAvatar, "EntityAvatar");
6326
6326
 
6327
6327
  // src/components/errors/errorToast.ts
6328
6328
  function errorToast(params) {
6329
- _chunkCAKOFJZDjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _118 => _118.title]), () => ( "Error")), {
6329
+ _chunkCAKOFJZDjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _120 => _120.title]), () => ( "Error")), {
6330
6330
  description: params.error instanceof Error ? params.error.message : String(params.error)
6331
6331
  });
6332
6332
  }
@@ -6413,7 +6413,7 @@ function EditableAvatar({
6413
6413
  }, [image, isUploading, patchImage, t]);
6414
6414
  const handleFileInputChange = _react.useCallback.call(void 0,
6415
6415
  (e) => {
6416
- const file = _optionalChain([e, 'access', _119 => _119.target, 'access', _120 => _120.files, 'optionalAccess', _121 => _121[0]]);
6416
+ const file = _optionalChain([e, 'access', _121 => _121.target, 'access', _122 => _122.files, 'optionalAccess', _123 => _123[0]]);
6417
6417
  if (file) handleFile(file);
6418
6418
  e.target.value = "";
6419
6419
  },
@@ -6422,7 +6422,7 @@ function EditableAvatar({
6422
6422
  const handleDrop = _react.useCallback.call(void 0,
6423
6423
  (e) => {
6424
6424
  e.preventDefault();
6425
- const file = _optionalChain([e, 'access', _122 => _122.dataTransfer, 'access', _123 => _123.files, 'optionalAccess', _124 => _124[0]]);
6425
+ const file = _optionalChain([e, 'access', _124 => _124.dataTransfer, 'access', _125 => _125.files, 'optionalAccess', _126 => _126[0]]);
6426
6426
  if (file && file.type.startsWith("image/")) {
6427
6427
  handleFile(file);
6428
6428
  }
@@ -6449,7 +6449,7 @@ function EditableAvatar({
6449
6449
  "button",
6450
6450
  {
6451
6451
  type: "button",
6452
- onClick: () => _optionalChain([fileInputRef, 'access', _125 => _125.current, 'optionalAccess', _126 => _126.click, 'call', _127 => _127()]),
6452
+ onClick: () => _optionalChain([fileInputRef, 'access', _127 => _127.current, 'optionalAccess', _128 => _128.click, 'call', _129 => _129()]),
6453
6453
  disabled: isUploading,
6454
6454
  className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
6455
6455
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
@@ -6736,19 +6736,19 @@ function useDataListRetriever(params) {
6736
6736
  const fetchData = _react.useCallback.call(void 0,
6737
6737
  async (fetchParams) => {
6738
6738
  if (ready === false) return;
6739
- if ((_optionalChain([fetchParams, 'optionalAccess', _128 => _128.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _129 => _129.callPrevious])) && isPaginatingRef.current) {
6739
+ if ((_optionalChain([fetchParams, 'optionalAccess', _130 => _130.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _131 => _131.callPrevious])) && isPaginatingRef.current) {
6740
6740
  return;
6741
6741
  }
6742
- if (isFetchingRef.current && !_optionalChain([fetchParams, 'optionalAccess', _130 => _130.callNext]) && !_optionalChain([fetchParams, 'optionalAccess', _131 => _131.callPrevious])) return;
6743
- if (_optionalChain([fetchParams, 'optionalAccess', _132 => _132.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _133 => _133.callPrevious])) {
6742
+ if (isFetchingRef.current && !_optionalChain([fetchParams, 'optionalAccess', _132 => _132.callNext]) && !_optionalChain([fetchParams, 'optionalAccess', _133 => _133.callPrevious])) return;
6743
+ if (_optionalChain([fetchParams, 'optionalAccess', _134 => _134.callNext]) || _optionalChain([fetchParams, 'optionalAccess', _135 => _135.callPrevious])) {
6744
6744
  isPaginatingRef.current = true;
6745
6745
  }
6746
6746
  const thisRequestId = ++requestIdRef.current;
6747
6747
  isFetchingRef.current = true;
6748
- if (stableParams.requiresSearch === true && _optionalChain([fetchParams, 'optionalAccess', _134 => _134.isRefine]) !== true && _optionalChain([fetchParams, 'optionalAccess', _135 => _135.isRefresh]) !== true) {
6748
+ if (stableParams.requiresSearch === true && _optionalChain([fetchParams, 'optionalAccess', _136 => _136.isRefine]) !== true && _optionalChain([fetchParams, 'optionalAccess', _137 => _137.isRefresh]) !== true) {
6749
6749
  return;
6750
6750
  }
6751
- if (!nextPage && !previousPage && isLoaded && _optionalChain([fetchParams, 'optionalAccess', _136 => _136.callNext]) !== true && _optionalChain([fetchParams, 'optionalAccess', _137 => _137.callPrevious]) !== true && params.search === searchTermRef.current) {
6751
+ if (!nextPage && !previousPage && isLoaded && _optionalChain([fetchParams, 'optionalAccess', _138 => _138.callNext]) !== true && _optionalChain([fetchParams, 'optionalAccess', _139 => _139.callPrevious]) !== true && params.search === searchTermRef.current) {
6752
6752
  return;
6753
6753
  }
6754
6754
  const currentSearchTerm = searchTermRef.current;
@@ -6759,7 +6759,7 @@ function useDataListRetriever(params) {
6759
6759
  const previousRef = { previous: void 0 };
6760
6760
  const selfRef = { self: void 0 };
6761
6761
  const totalRef = { total: void 0 };
6762
- if (nextPage && _optionalChain([fetchParams, 'optionalAccess', _138 => _138.callNext]) && _optionalChain([fetchParams, 'optionalAccess', _139 => _139.isRefine]) !== true) {
6762
+ if (nextPage && _optionalChain([fetchParams, 'optionalAccess', _140 => _140.callNext]) && _optionalChain([fetchParams, 'optionalAccess', _141 => _141.isRefine]) !== true) {
6763
6763
  const ServiceClass = stableParams.service;
6764
6764
  response = await ServiceClass.next({
6765
6765
  type: stableParams.type,
@@ -6769,7 +6769,7 @@ function useDataListRetriever(params) {
6769
6769
  self: selfRef,
6770
6770
  total: totalRef
6771
6771
  });
6772
- } else if (previousPage && _optionalChain([fetchParams, 'optionalAccess', _140 => _140.callPrevious]) && _optionalChain([fetchParams, 'optionalAccess', _141 => _141.isRefine]) !== true) {
6772
+ } else if (previousPage && _optionalChain([fetchParams, 'optionalAccess', _142 => _142.callPrevious]) && _optionalChain([fetchParams, 'optionalAccess', _143 => _143.isRefine]) !== true) {
6773
6773
  const ServiceClass = stableParams.service;
6774
6774
  response = await ServiceClass.previous({
6775
6775
  type: stableParams.type,
@@ -6792,8 +6792,8 @@ function useDataListRetriever(params) {
6792
6792
  retrieverParams.total = totalRef;
6793
6793
  response = await stableParams.retriever(retrieverParams);
6794
6794
  }
6795
- if (thisRequestId === requestIdRef.current && !_optionalChain([abortControllerRef, 'access', _142 => _142.current, 'optionalAccess', _143 => _143.signal, 'access', _144 => _144.aborted])) {
6796
- if (_optionalChain([fetchParams, 'optionalAccess', _145 => _145.isRefresh]) === true) {
6795
+ if (thisRequestId === requestIdRef.current && !_optionalChain([abortControllerRef, 'access', _144 => _144.current, 'optionalAccess', _145 => _145.signal, 'access', _146 => _146.aborted])) {
6796
+ if (_optionalChain([fetchParams, 'optionalAccess', _147 => _147.isRefresh]) === true) {
6797
6797
  setData(response);
6798
6798
  } else {
6799
6799
  setData((prevData) => [...prevData ? prevData : [], ...response]);
@@ -7003,12 +7003,12 @@ var SUBTITLE_PX_PER_CHAR_11 = 6;
7003
7003
  var LABEL_PADDING_PX = 16;
7004
7004
  function estimateLabelWidth(node) {
7005
7005
  if (node.subtitle) {
7006
- const titleWidth = (_nullishCoalesce(_optionalChain([node, 'access', _146 => _146.name, 'optionalAccess', _147 => _147.length]), () => ( 0))) * TITLE_PX_PER_CHAR_16;
7006
+ const titleWidth = (_nullishCoalesce(_optionalChain([node, 'access', _148 => _148.name, 'optionalAccess', _149 => _149.length]), () => ( 0))) * TITLE_PX_PER_CHAR_16;
7007
7007
  const subtitleWidth = node.subtitle.length * SUBTITLE_PX_PER_CHAR_11;
7008
7008
  return Math.max(titleWidth, subtitleWidth) + LABEL_PADDING_PX;
7009
7009
  }
7010
7010
  const perChar = node.bold ? NAME_PX_PER_CHAR_16_BOLD : NAME_PX_PER_CHAR_12;
7011
- return (_nullishCoalesce(_optionalChain([node, 'access', _148 => _148.name, 'optionalAccess', _149 => _149.length]), () => ( 0))) * perChar + LABEL_PADDING_PX;
7011
+ return (_nullishCoalesce(_optionalChain([node, 'access', _150 => _150.name, 'optionalAccess', _151 => _151.length]), () => ( 0))) * perChar + LABEL_PADDING_PX;
7012
7012
  }
7013
7013
  _chunk7QVYU63Ejs.__name.call(void 0, estimateLabelWidth, "estimateLabelWidth");
7014
7014
  function linkEndpointId(end) {
@@ -7121,12 +7121,12 @@ var SUBTITLE_PX_PER_CHAR_112 = 6;
7121
7121
  var LABEL_PADDING_PX2 = 16;
7122
7122
  function estimateLabelWidth2(node) {
7123
7123
  if (node.subtitle) {
7124
- const titleWidth = (_nullishCoalesce(_optionalChain([node, 'access', _150 => _150.name, 'optionalAccess', _151 => _151.length]), () => ( 0))) * TITLE_PX_PER_CHAR_162;
7124
+ const titleWidth = (_nullishCoalesce(_optionalChain([node, 'access', _152 => _152.name, 'optionalAccess', _153 => _153.length]), () => ( 0))) * TITLE_PX_PER_CHAR_162;
7125
7125
  const subtitleWidth = node.subtitle.length * SUBTITLE_PX_PER_CHAR_112;
7126
7126
  return Math.max(titleWidth, subtitleWidth) + LABEL_PADDING_PX2;
7127
7127
  }
7128
7128
  const perChar = node.bold ? NAME_PX_PER_CHAR_16_BOLD2 : NAME_PX_PER_CHAR_122;
7129
- return (_nullishCoalesce(_optionalChain([node, 'access', _152 => _152.name, 'optionalAccess', _153 => _153.length]), () => ( 0))) * perChar + LABEL_PADDING_PX2;
7129
+ return (_nullishCoalesce(_optionalChain([node, 'access', _154 => _154.name, 'optionalAccess', _155 => _155.length]), () => ( 0))) * perChar + LABEL_PADDING_PX2;
7130
7130
  }
7131
7131
  _chunk7QVYU63Ejs.__name.call(void 0, estimateLabelWidth2, "estimateLabelWidth");
7132
7132
  function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, loadingNodeIds, containerKey) {
@@ -7193,7 +7193,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7193
7193
  });
7194
7194
  const typeColorMap = /* @__PURE__ */ new Map();
7195
7195
  Array.from(groupTypes).forEach((type, index) => {
7196
- if (type === _optionalChain([nodes, 'access', _154 => _154[0], 'optionalAccess', _155 => _155.instanceType])) {
7196
+ if (type === _optionalChain([nodes, 'access', _156 => _156[0], 'optionalAccess', _157 => _157.instanceType])) {
7197
7197
  typeColorMap.set(type, accentColor);
7198
7198
  } else if (type === "documents" || type === "articles" || type === "hyperlinks") {
7199
7199
  typeColorMap.set(type, contentColor);
@@ -7243,14 +7243,14 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7243
7243
  });
7244
7244
  const svg = d3.select(svgRef.current);
7245
7245
  svg.selectAll("*").remove();
7246
- const container = _optionalChain([svgRef, 'access', _156 => _156.current, 'optionalAccess', _157 => _157.parentElement]);
7246
+ const container = _optionalChain([svgRef, 'access', _158 => _158.current, 'optionalAccess', _159 => _159.parentElement]);
7247
7247
  if (!container) return;
7248
7248
  const width = container.clientWidth;
7249
7249
  const height = container.clientHeight;
7250
7250
  svg.attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`);
7251
7251
  const graphGroup = svg.append("g").attr("class", "graph-content");
7252
7252
  const nodeRadius = 40;
7253
- const directed = _optionalChain([options, 'optionalAccess', _158 => _158.directed]) === true;
7253
+ const directed = _optionalChain([options, 'optionalAccess', _160 => _160.directed]) === true;
7254
7254
  if (directed) {
7255
7255
  const defs = svg.append("defs");
7256
7256
  defs.append("marker").attr("id", "narr8-arrow").attr("viewBox", "-10 -10 20 20").attr("markerWidth", 14).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").attr("refX", 0).attr("refY", 0).append("path").attr("d", "M-10,-10 L0,0 L-10,10 z").attr("fill", "#999");
@@ -7262,10 +7262,10 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7262
7262
  });
7263
7263
  zoomBehaviorRef.current = zoom2;
7264
7264
  svg.call(zoom2).on("wheel.zoom", null).on("dblclick.zoom", null);
7265
- const layoutMode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _159 => _159.layout]), () => ( "radial"));
7265
+ const layoutMode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _161 => _161.layout]), () => ( "radial"));
7266
7266
  let layeredPositionsApplied = false;
7267
7267
  if (layoutMode === "layered") {
7268
- const layeredOpts = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _160 => _160.layered]), () => ( {}));
7268
+ const layeredOpts = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _162 => _162.layered]), () => ( {}));
7269
7269
  const useFit = layeredOpts.fitContainer === true && width > 0 && height > 0;
7270
7270
  const positions = useFit ? fitLayeredLayoutToAspectRatio(visibleNodes, visibleLinks, {
7271
7271
  rankdir: _nullishCoalesce(layeredOpts.rankdir, () => ( "LR")),
@@ -7348,7 +7348,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7348
7348
  sourceNode.children.push(targetId);
7349
7349
  }
7350
7350
  });
7351
- const rootChildren = _optionalChain([nodeHierarchy, 'access', _161 => _161.get, 'call', _162 => _162(centralNodeId), 'optionalAccess', _163 => _163.children]) || [];
7351
+ const rootChildren = _optionalChain([nodeHierarchy, 'access', _163 => _163.get, 'call', _164 => _164(centralNodeId), 'optionalAccess', _165 => _165.children]) || [];
7352
7352
  const childAngleStep = 2 * Math.PI / Math.max(rootChildren.length, 1);
7353
7353
  rootChildren.forEach((childId, index) => {
7354
7354
  const childNode = nodeHierarchy.get(childId);
@@ -7500,7 +7500,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7500
7500
  if (d.instanceType === "root") return;
7501
7501
  const currentNode = d3.select(this);
7502
7502
  currentNode.raise();
7503
- const currentZoom = _optionalChain([zoomRef, 'access', _164 => _164.current, 'optionalAccess', _165 => _165.k]) || 1;
7503
+ const currentZoom = _optionalChain([zoomRef, 'access', _166 => _166.current, 'optionalAccess', _167 => _167.k]) || 1;
7504
7504
  const targetScreenFontSize = 20;
7505
7505
  const baseFontSize = 12;
7506
7506
  const textScale = targetScreenFontSize / (baseFontSize * currentZoom);
@@ -7575,19 +7575,19 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
7575
7575
  }
7576
7576
  });
7577
7577
  return () => {
7578
- _optionalChain([simulation, 'optionalAccess', _166 => _166.stop, 'call', _167 => _167()]);
7578
+ _optionalChain([simulation, 'optionalAccess', _168 => _168.stop, 'call', _169 => _169()]);
7579
7579
  };
7580
7580
  }, [
7581
7581
  nodes,
7582
7582
  links,
7583
7583
  colorScale,
7584
7584
  visibleNodeIds,
7585
- _optionalChain([options, 'optionalAccess', _168 => _168.directed]),
7586
- _optionalChain([options, 'optionalAccess', _169 => _169.layout]),
7587
- _optionalChain([options, 'optionalAccess', _170 => _170.layered, 'optionalAccess', _171 => _171.rankdir]),
7588
- _optionalChain([options, 'optionalAccess', _172 => _172.layered, 'optionalAccess', _173 => _173.nodesep]),
7589
- _optionalChain([options, 'optionalAccess', _174 => _174.layered, 'optionalAccess', _175 => _175.ranksep]),
7590
- _optionalChain([options, 'optionalAccess', _176 => _176.layered, 'optionalAccess', _177 => _177.fitContainer]),
7585
+ _optionalChain([options, 'optionalAccess', _170 => _170.directed]),
7586
+ _optionalChain([options, 'optionalAccess', _171 => _171.layout]),
7587
+ _optionalChain([options, 'optionalAccess', _172 => _172.layered, 'optionalAccess', _173 => _173.rankdir]),
7588
+ _optionalChain([options, 'optionalAccess', _174 => _174.layered, 'optionalAccess', _175 => _175.nodesep]),
7589
+ _optionalChain([options, 'optionalAccess', _176 => _176.layered, 'optionalAccess', _177 => _177.ranksep]),
7590
+ _optionalChain([options, 'optionalAccess', _178 => _178.layered, 'optionalAccess', _179 => _179.fitContainer]),
7591
7591
  loadingNodeIds,
7592
7592
  onNodeClick
7593
7593
  ]);
@@ -7766,13 +7766,13 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7766
7766
  );
7767
7767
  const matchedModuleKey = moduleKeys.find((key) => {
7768
7768
  const descriptor2 = Object.getOwnPropertyDescriptor(_chunkCAKOFJZDjs.Modules, key);
7769
- if (!_optionalChain([descriptor2, 'optionalAccess', _178 => _178.get])) return false;
7769
+ if (!_optionalChain([descriptor2, 'optionalAccess', _180 => _180.get])) return false;
7770
7770
  const selectedModule = descriptor2.get.call(_chunkCAKOFJZDjs.Modules);
7771
- return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _179 => _179.pageUrl, 'optionalAccess', _180 => _180.toLowerCase, 'call', _181 => _181()]));
7771
+ return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _181 => _181.pageUrl, 'optionalAccess', _182 => _182.toLowerCase, 'call', _183 => _183()]));
7772
7772
  });
7773
7773
  if (!matchedModuleKey) return void 0;
7774
7774
  const descriptor = Object.getOwnPropertyDescriptor(_chunkCAKOFJZDjs.Modules, matchedModuleKey);
7775
- return _optionalChain([descriptor, 'optionalAccess', _182 => _182.get, 'optionalAccess', _183 => _183.call, 'call', _184 => _184(_chunkCAKOFJZDjs.Modules)]);
7775
+ return _optionalChain([descriptor, 'optionalAccess', _184 => _184.get, 'optionalAccess', _185 => _185.call, 'call', _186 => _186(_chunkCAKOFJZDjs.Modules)]);
7776
7776
  }, "matchUrlToModule");
7777
7777
  const currentUser = _react.useMemo.call(void 0,
7778
7778
  () => dehydratedUser ? _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.User, dehydratedUser) : null,
@@ -7780,7 +7780,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7780
7780
  );
7781
7781
  const [creditOverride, setCreditOverride] = _react.useState.call(void 0, null);
7782
7782
  const company = _react.useMemo.call(void 0, () => {
7783
- const c = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _185 => _185.company]), () => ( null));
7783
+ const c = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _187 => _187.company]), () => ( null));
7784
7784
  if (!c || !creditOverride) return c;
7785
7785
  return Object.assign(Object.create(Object.getPrototypeOf(c)), c, {
7786
7786
  _availableMonthlyCredits: creditOverride.availableMonthlyCredits,
@@ -7794,7 +7794,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7794
7794
  }, "setUser");
7795
7795
  const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
7796
7796
  if (!currentUser) return false;
7797
- return !!_optionalChain([currentUser, 'access', _186 => _186.roles, 'optionalAccess', _187 => _187.some, 'call', _188 => _188((userRole) => userRole.id === roleId)]);
7797
+ return !!_optionalChain([currentUser, 'access', _188 => _188.roles, 'optionalAccess', _189 => _189.some, 'call', _190 => _190((userRole) => userRole.id === roleId)]);
7798
7798
  }, "hasRole");
7799
7799
  const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
7800
7800
  if (hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)) return true;
@@ -7834,12 +7834,12 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7834
7834
  try {
7835
7835
  const fullUser = await _chunkCAKOFJZDjs.UserService.findFullUser();
7836
7836
  if (fullUser) {
7837
- if (!_optionalChain([options, 'optionalAccess', _189 => _189.skipCookieUpdate])) {
7838
- await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _190 => _190.updateToken, 'call', _191 => _191({
7837
+ if (!_optionalChain([options, 'optionalAccess', _191 => _191.skipCookieUpdate])) {
7838
+ await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _192 => _192.updateToken, 'call', _193 => _193({
7839
7839
  userId: fullUser.id,
7840
- companyId: _optionalChain([fullUser, 'access', _192 => _192.company, 'optionalAccess', _193 => _193.id]),
7840
+ companyId: _optionalChain([fullUser, 'access', _194 => _194.company, 'optionalAccess', _195 => _195.id]),
7841
7841
  roles: fullUser.roles.map((role) => role.id),
7842
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _194 => _194.company, 'optionalAccess', _195 => _195.features, 'optionalAccess', _196 => _196.map, 'call', _197 => _197((feature) => feature.id)]), () => ( [])),
7842
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _196 => _196.company, 'optionalAccess', _197 => _197.features, 'optionalAccess', _198 => _198.map, 'call', _199 => _199((feature) => feature.id)]), () => ( [])),
7843
7843
  modules: fullUser.modules.map((module) => ({
7844
7844
  id: module.id,
7845
7845
  permissions: module.permissions
@@ -7868,18 +7868,18 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7868
7868
  }, []);
7869
7869
  const isRefreshingRef = _react.useRef.call(void 0, false);
7870
7870
  _react.useEffect.call(void 0, () => {
7871
- if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _198 => _198.company, 'optionalAccess', _199 => _199.id])) {
7871
+ if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _200 => _200.company, 'optionalAccess', _201 => _201.id])) {
7872
7872
  return;
7873
7873
  }
7874
7874
  const handleCreditsUpdated = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
7875
- if (data.companyId !== _optionalChain([currentUser, 'access', _200 => _200.company, 'optionalAccess', _201 => _201.id])) return;
7875
+ if (data.companyId !== _optionalChain([currentUser, 'access', _202 => _202.company, 'optionalAccess', _203 => _203.id])) return;
7876
7876
  setCreditOverride({
7877
7877
  availableMonthlyCredits: data.availableMonthlyCredits,
7878
7878
  availableExtraCredits: data.availableExtraCredits
7879
7879
  });
7880
7880
  }, "handleCreditsUpdated");
7881
7881
  const handleSubscriptionUpdated = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
7882
- if (data.companyId === _optionalChain([currentUser, 'access', _202 => _202.company, 'optionalAccess', _203 => _203.id]) && !isRefreshingRef.current) {
7882
+ if (data.companyId === _optionalChain([currentUser, 'access', _204 => _204.company, 'optionalAccess', _205 => _205.id]) && !isRefreshingRef.current) {
7883
7883
  isRefreshingRef.current = true;
7884
7884
  refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
7885
7885
  isRefreshingRef.current = false;
@@ -7892,7 +7892,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7892
7892
  socket.off("company:credits_updated", handleCreditsUpdated);
7893
7893
  socket.off("company:subscription_updated", handleSubscriptionUpdated);
7894
7894
  };
7895
- }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _204 => _204.company, 'optionalAccess', _205 => _205.id])]);
7895
+ }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _206 => _206.company, 'optionalAccess', _207 => _207.id])]);
7896
7896
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7897
7897
  CurrentUserContext.Provider,
7898
7898
  {
@@ -7967,7 +7967,7 @@ function AddUserToRoleInternal({ role, refresh }) {
7967
7967
  const data = useDataListRetriever({
7968
7968
  ready: !!company && show,
7969
7969
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkCAKOFJZDjs.UserService.findAllUsers(params), "retriever"),
7970
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _206 => _206.id]) },
7970
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _208 => _208.id]) },
7971
7971
  module: _chunkCAKOFJZDjs.Modules.User
7972
7972
  });
7973
7973
  _react.useEffect.call(void 0, () => {
@@ -8019,7 +8019,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
8019
8019
  setFile(files[0]);
8020
8020
  }
8021
8021
  }, [files]);
8022
- const avatarSrc = file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _207 => _207.avatar]) || "";
8022
+ const avatarSrc = file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _209 => _209.avatar]) || "";
8023
8023
  const dropzone2 = {
8024
8024
  multiple: false,
8025
8025
  maxSize: 100 * 1024 * 1024,
@@ -8036,7 +8036,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
8036
8036
  onValueChange: setFiles,
8037
8037
  dropzoneOptions: dropzone2,
8038
8038
  className: "h-40 w-40 rounded-full p-0",
8039
- 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', _208 => _208.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8039
+ 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', _210 => _210.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8040
8040
  _image2.default,
8041
8041
  {
8042
8042
  src: avatarSrc,
@@ -8048,7 +8048,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
8048
8048
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
8049
8049
  }
8050
8050
  ),
8051
- !resetImage && (file || _optionalChain([user, 'optionalAccess', _209 => _209.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8051
+ !resetImage && (file || _optionalChain([user, 'optionalAccess', _211 => _211.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8052
8052
  Button,
8053
8053
  {
8054
8054
  className: "",
@@ -8076,7 +8076,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
8076
8076
  const router = _chunk4Z45NYPRjs.useI18nRouter.call(void 0, );
8077
8077
  const _t = _nextintl.useTranslations.call(void 0, );
8078
8078
  let cId;
8079
- if (_optionalChain([currentUser, 'optionalAccess', _210 => _210.roles, 'access', _211 => _211.find, 'call', _212 => _212((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
8079
+ if (_optionalChain([currentUser, 'optionalAccess', _212 => _212.roles, 'access', _213 => _213.find, 'call', _214 => _214((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
8080
8080
  cId = companyId;
8081
8081
  } else {
8082
8082
  if (!company) return;
@@ -8139,18 +8139,18 @@ function UserEditorInternal({
8139
8139
  }, [company]);
8140
8140
  const handleDialogOpenChange = _react.useCallback.call(void 0,
8141
8141
  (open) => {
8142
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _213 => _213.roles, 'access', _214 => _214.find, 'call', _215 => _215((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
8142
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _215 => _215.roles, 'access', _216 => _216.find, 'call', _217 => _217((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
8143
8143
  async function fetchRoles() {
8144
8144
  const allRoles = await _chunkCAKOFJZDjs.RoleService.findAllRoles({});
8145
8145
  const availableRoles = allRoles.filter(
8146
- (role) => role.id !== _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _216 => _216.features, 'access', _217 => _217.some, 'call', _218 => _218((feature) => feature.id === _optionalChain([role, 'access', _219 => _219.requiredFeature, 'optionalAccess', _220 => _220.id]))]))
8146
+ (role) => role.id !== _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _218 => _218.features, 'access', _219 => _219.some, 'call', _220 => _220((feature) => feature.id === _optionalChain([role, 'access', _221 => _221.requiredFeature, 'optionalAccess', _222 => _222.id]))]))
8147
8147
  );
8148
8148
  setRoles(availableRoles);
8149
8149
  }
8150
8150
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
8151
8151
  fetchRoles();
8152
8152
  }
8153
- _optionalChain([onDialogOpenChange, 'optionalCall', _221 => _221(open)]);
8153
+ _optionalChain([onDialogOpenChange, 'optionalCall', _223 => _223(open)]);
8154
8154
  },
8155
8155
  [company, currentUser, roles.length, onDialogOpenChange]
8156
8156
  );
@@ -8189,29 +8189,29 @@ function UserEditorInternal({
8189
8189
  );
8190
8190
  const getDefaultValues = _react.useCallback.call(void 0, () => {
8191
8191
  return {
8192
- id: _optionalChain([user, 'optionalAccess', _222 => _222.id]) || _uuid.v4.call(void 0, ),
8193
- name: _optionalChain([user, 'optionalAccess', _223 => _223.name]) || "",
8194
- title: _optionalChain([user, 'optionalAccess', _224 => _224.title]) || "",
8195
- bio: _optionalChain([user, 'optionalAccess', _225 => _225.bio]) || "",
8196
- email: _optionalChain([user, 'optionalAccess', _226 => _226.email]) || "",
8197
- phone: _optionalChain([user, 'optionalAccess', _227 => _227.phone]) || "",
8192
+ id: _optionalChain([user, 'optionalAccess', _224 => _224.id]) || _uuid.v4.call(void 0, ),
8193
+ name: _optionalChain([user, 'optionalAccess', _225 => _225.name]) || "",
8194
+ title: _optionalChain([user, 'optionalAccess', _226 => _226.title]) || "",
8195
+ bio: _optionalChain([user, 'optionalAccess', _227 => _227.bio]) || "",
8196
+ email: _optionalChain([user, 'optionalAccess', _228 => _228.email]) || "",
8197
+ phone: _optionalChain([user, 'optionalAccess', _229 => _229.phone]) || "",
8198
8198
  password: "",
8199
- roleIds: _optionalChain([user, 'optionalAccess', _228 => _228.roles, 'access', _229 => _229.map, 'call', _230 => _230((role) => role.id)]) || [],
8199
+ roleIds: _optionalChain([user, 'optionalAccess', _230 => _230.roles, 'access', _231 => _231.map, 'call', _232 => _232((role) => role.id)]) || [],
8200
8200
  sendInvitationEmail: false,
8201
- avatar: _optionalChain([user, 'optionalAccess', _231 => _231.avatarUrl]) || ""
8201
+ avatar: _optionalChain([user, 'optionalAccess', _233 => _233.avatarUrl]) || ""
8202
8202
  };
8203
8203
  }, [user]);
8204
8204
  const form = _reacthookform.useForm.call(void 0, {
8205
8205
  resolver: _zod.zodResolver.call(void 0, formSchema),
8206
8206
  defaultValues: getDefaultValues()
8207
8207
  });
8208
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _232 => _232.id]) === _optionalChain([user, 'optionalAccess', _233 => _233.id]) && hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkCAKOFJZDjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator));
8208
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _234 => _234.id]) === _optionalChain([user, 'optionalAccess', _235 => _235.id]) && hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkCAKOFJZDjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator));
8209
8209
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8210
8210
  EditorSheet,
8211
8211
  {
8212
8212
  form,
8213
8213
  entityType: t(`entities.users`, { count: 1 }),
8214
- entityName: _optionalChain([user, 'optionalAccess', _234 => _234.name]),
8214
+ entityName: _optionalChain([user, 'optionalAccess', _236 => _236.name]),
8215
8215
  isEdit: !!user,
8216
8216
  module: _chunkCAKOFJZDjs.Modules.User,
8217
8217
  propagateChanges,
@@ -8263,11 +8263,11 @@ function UserEditorInternal({
8263
8263
  // can legitimately have no company (the seeded Administrator does), in
8264
8264
  // which case `company` is null here. `company!.id` threw a TypeError
8265
8265
  // and surfaced as a generic "update failed" toast.
8266
- companyId: _optionalChain([company, 'optionalAccess', _235 => _235.id]),
8266
+ companyId: _optionalChain([company, 'optionalAccess', _237 => _237.id]),
8267
8267
  adminCreated
8268
8268
  };
8269
8269
  const updatedUser = user ? await _chunkCAKOFJZDjs.UserService.update(payload) : await _chunkCAKOFJZDjs.UserService.create(payload);
8270
- if (_optionalChain([currentUser, 'optionalAccess', _236 => _236.id]) === updatedUser.id) setUser(updatedUser);
8270
+ if (_optionalChain([currentUser, 'optionalAccess', _238 => _238.id]) === updatedUser.id) setUser(updatedUser);
8271
8271
  return updatedUser;
8272
8272
  },
8273
8273
  onRevalidate,
@@ -8528,7 +8528,7 @@ function EntityMultiSelector({
8528
8528
  if (open) {
8529
8529
  setSearchTerm("");
8530
8530
  requestAnimationFrame(() => {
8531
- _optionalChain([searchInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.focus, 'call', _239 => _239()]);
8531
+ _optionalChain([searchInputRef, 'access', _239 => _239.current, 'optionalAccess', _240 => _240.focus, 'call', _241 => _241()]);
8532
8532
  });
8533
8533
  }
8534
8534
  }, [open]);
@@ -8545,7 +8545,7 @@ function EntityMultiSelector({
8545
8545
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8546
8546
  const cb = onChangeRef.current;
8547
8547
  if (cb) {
8548
- const fullData = next.map((v) => _optionalChain([options, 'access', _240 => _240.find, 'call', _241 => _241((opt) => opt.id === v.id), 'optionalAccess', _242 => _242.entityData])).filter(Boolean);
8548
+ const fullData = next.map((v) => _optionalChain([options, 'access', _242 => _242.find, 'call', _243 => _243((opt) => opt.id === v.id), 'optionalAccess', _244 => _244.entityData])).filter(Boolean);
8549
8549
  cb(fullData);
8550
8550
  }
8551
8551
  },
@@ -8558,7 +8558,7 @@ function EntityMultiSelector({
8558
8558
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8559
8559
  const cb = onChangeRef.current;
8560
8560
  if (cb) {
8561
- const fullData = next.map((v) => _optionalChain([options, 'access', _243 => _243.find, 'call', _244 => _244((opt) => opt.id === v.id), 'optionalAccess', _245 => _245.entityData])).filter(Boolean);
8561
+ const fullData = next.map((v) => _optionalChain([options, 'access', _245 => _245.find, 'call', _246 => _246((opt) => opt.id === v.id), 'optionalAccess', _247 => _247.entityData])).filter(Boolean);
8562
8562
  cb(fullData);
8563
8563
  }
8564
8564
  },
@@ -8701,11 +8701,11 @@ function UserMultiSelect({
8701
8701
  emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
8702
8702
  isRequired,
8703
8703
  retriever: (params) => _chunkCAKOFJZDjs.UserService.findAllUsers(params),
8704
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _246 => _246.id]) },
8704
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _248 => _248.id]) },
8705
8705
  module: _chunkCAKOFJZDjs.Modules.User,
8706
8706
  getLabel: (user) => user.name,
8707
8707
  toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
8708
- excludeId: _optionalChain([currentUser, 'optionalAccess', _247 => _247.id]),
8708
+ excludeId: _optionalChain([currentUser, 'optionalAccess', _249 => _249.id]),
8709
8709
  onChange,
8710
8710
  renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
8711
8711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
@@ -9513,7 +9513,7 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
9513
9513
  function nextDateRange(params) {
9514
9514
  const { current, computed, triggerDate } = params;
9515
9515
  if (!computed) return void 0;
9516
- if (_optionalChain([current, 'optionalAccess', _248 => _248.from]) && _optionalChain([current, 'optionalAccess', _249 => _249.to])) return { from: triggerDate, to: void 0 };
9516
+ if (_optionalChain([current, 'optionalAccess', _250 => _250.from]) && _optionalChain([current, 'optionalAccess', _251 => _251.to])) return { from: triggerDate, to: void 0 };
9517
9517
  return computed;
9518
9518
  }
9519
9519
  _chunk7QVYU63Ejs.__name.call(void 0, nextDateRange, "nextDateRange");
@@ -9533,7 +9533,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9533
9533
  }, []);
9534
9534
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
9535
9535
  _react.useEffect.call(void 0, () => {
9536
- if (_optionalChain([date, 'optionalAccess', _250 => _250.from]) && _optionalChain([date, 'optionalAccess', _251 => _251.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _252 => _252.from, 'optionalAccess', _253 => _253.getTime, 'call', _254 => _254()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _255 => _255.to, 'optionalAccess', _256 => _256.getTime, 'call', _257 => _257()]) !== date.to.getTime())) {
9536
+ if (_optionalChain([date, 'optionalAccess', _252 => _252.from]) && _optionalChain([date, 'optionalAccess', _253 => _253.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _254 => _254.from, 'optionalAccess', _255 => _255.getTime, 'call', _256 => _256()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _257 => _257.to, 'optionalAccess', _258 => _258.getTime, 'call', _259 => _259()]) !== date.to.getTime())) {
9537
9537
  onDateChange(date);
9538
9538
  setPrevRange(date);
9539
9539
  setOpen(false);
@@ -9551,7 +9551,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9551
9551
  className: _chunkCAKOFJZDjs.cn.call(void 0, "w-[300px] justify-start text-start font-normal", !date && "text-muted-foreground"),
9552
9552
  children: [
9553
9553
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9554
- _optionalChain([date, 'optionalAccess', _258 => _258.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9554
+ _optionalChain([date, 'optionalAccess', _260 => _260.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9555
9555
  _datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
9556
9556
  " -",
9557
9557
  " ",
@@ -9575,7 +9575,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9575
9575
  ),
9576
9576
  children: [
9577
9577
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9578
- _optionalChain([date, 'optionalAccess', _259 => _259.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9578
+ _optionalChain([date, 'optionalAccess', _261 => _261.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9579
9579
  _datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
9580
9580
  " -",
9581
9581
  " ",
@@ -9589,7 +9589,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9589
9589
  Calendar,
9590
9590
  {
9591
9591
  mode: "range",
9592
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _260 => _260.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9592
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _262 => _262.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9593
9593
  selected: date,
9594
9594
  onSelect: handleSelect,
9595
9595
  numberOfMonths: 2
@@ -9643,26 +9643,26 @@ function useEditorDialog(isFormDirty, options) {
9643
9643
  const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
9644
9644
  const syncingFromProp = _react.useRef.call(void 0, false);
9645
9645
  _react.useEffect.call(void 0, () => {
9646
- if (_optionalChain([options, 'optionalAccess', _261 => _261.dialogOpen]) !== void 0 && options.dialogOpen !== open) {
9646
+ if (_optionalChain([options, 'optionalAccess', _263 => _263.dialogOpen]) !== void 0 && options.dialogOpen !== open) {
9647
9647
  syncingFromProp.current = true;
9648
9648
  setOpen(options.dialogOpen);
9649
9649
  }
9650
- }, [_optionalChain([options, 'optionalAccess', _262 => _262.dialogOpen])]);
9651
- const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _263 => _263.onDialogOpenChange]));
9652
- onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _264 => _264.onDialogOpenChange]);
9650
+ }, [_optionalChain([options, 'optionalAccess', _264 => _264.dialogOpen])]);
9651
+ const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _265 => _265.onDialogOpenChange]));
9652
+ onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _266 => _266.onDialogOpenChange]);
9653
9653
  _react.useEffect.call(void 0, () => {
9654
9654
  if (syncingFromProp.current) {
9655
9655
  syncingFromProp.current = false;
9656
9656
  return;
9657
9657
  }
9658
- _optionalChain([onDialogOpenChangeRef, 'access', _265 => _265.current, 'optionalCall', _266 => _266(open)]);
9658
+ _optionalChain([onDialogOpenChangeRef, 'access', _267 => _267.current, 'optionalCall', _268 => _268(open)]);
9659
9659
  }, [open]);
9660
9660
  _react.useEffect.call(void 0, () => {
9661
- if (_optionalChain([options, 'optionalAccess', _267 => _267.forceShow])) setOpen(true);
9662
- }, [_optionalChain([options, 'optionalAccess', _268 => _268.forceShow])]);
9661
+ if (_optionalChain([options, 'optionalAccess', _269 => _269.forceShow])) setOpen(true);
9662
+ }, [_optionalChain([options, 'optionalAccess', _270 => _270.forceShow])]);
9663
9663
  _react.useEffect.call(void 0, () => {
9664
9664
  if (!open) {
9665
- if (_optionalChain([options, 'optionalAccess', _269 => _269.onClose])) options.onClose();
9665
+ if (_optionalChain([options, 'optionalAccess', _271 => _271.onClose])) options.onClose();
9666
9666
  }
9667
9667
  }, [open]);
9668
9668
  const handleOpenChange = _react.useCallback.call(void 0,
@@ -9788,7 +9788,7 @@ function EditorSheet({
9788
9788
  const next = onReset();
9789
9789
  form.reset(next);
9790
9790
  if (isEdit) seeded.current = JSON.stringify(next);
9791
- _optionalChain([onClose, 'optionalCall', _270 => _270()]);
9791
+ _optionalChain([onClose, 'optionalCall', _272 => _272()]);
9792
9792
  }
9793
9793
  }, [open]);
9794
9794
  const wrappedOnSubmit = _react.useCallback.call(void 0,
@@ -9802,11 +9802,11 @@ function EditorSheet({
9802
9802
  if (onSuccess) {
9803
9803
  await onSuccess();
9804
9804
  } else if (result) {
9805
- _optionalChain([onRevalidate, 'optionalCall', _271 => _271(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9805
+ _optionalChain([onRevalidate, 'optionalCall', _273 => _273(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9806
9806
  if (propagateChanges) {
9807
9807
  propagateChanges(result);
9808
9808
  } else {
9809
- _optionalChain([onNavigate, 'optionalCall', _272 => _272(generateUrl({ page: module, id: result.id }))]);
9809
+ _optionalChain([onNavigate, 'optionalCall', _274 => _274(generateUrl({ page: module, id: result.id }))]);
9810
9810
  }
9811
9811
  }
9812
9812
  } catch (error) {
@@ -10026,7 +10026,7 @@ function EntitySelector({
10026
10026
  {
10027
10027
  className: `bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] flex min-h-7 max-md:min-h-10 w-full items-center gap-2 rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed ${hasValue(effectiveValue) ? "" : "text-muted-foreground"} ${disabled ? "cursor-not-allowed opacity-50" : ""}`,
10028
10028
  children: [
10029
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-start", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _273 => _273.name]), () => ( "")) : placeholder }),
10029
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-start", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _275 => _275.name]), () => ( "")) : placeholder }),
10030
10030
  hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10031
10031
  _lucidereact.CircleX,
10032
10032
  {
@@ -10187,7 +10187,7 @@ var FileUploader = _react.forwardRef.call(void 0,
10187
10187
  movePrev();
10188
10188
  } else if (e.key === "Enter" || e.key === "Space") {
10189
10189
  if (activeIndex === -1) {
10190
- _optionalChain([dropzoneState, 'access', _274 => _274.inputRef, 'access', _275 => _275.current, 'optionalAccess', _276 => _276.click, 'call', _277 => _277()]);
10190
+ _optionalChain([dropzoneState, 'access', _276 => _276.inputRef, 'access', _277 => _277.current, 'optionalAccess', _278 => _278.click, 'call', _279 => _279()]);
10191
10191
  }
10192
10192
  } else if (e.key === "Delete" || e.key === "Backspace") {
10193
10193
  if (activeIndex !== -1) {
@@ -10233,13 +10233,13 @@ var FileUploader = _react.forwardRef.call(void 0,
10233
10233
  }
10234
10234
  if (rejectedFiles.length > 0) {
10235
10235
  for (let i = 0; i < rejectedFiles.length; i++) {
10236
- if (_optionalChain([rejectedFiles, 'access', _278 => _278[i], 'access', _279 => _279.errors, 'access', _280 => _280[0], 'optionalAccess', _281 => _281.code]) === "file-too-large") {
10236
+ if (_optionalChain([rejectedFiles, 'access', _280 => _280[i], 'access', _281 => _281.errors, 'access', _282 => _282[0], 'optionalAccess', _283 => _283.code]) === "file-too-large") {
10237
10237
  _chunkCAKOFJZDjs.showError.call(void 0, t("common.errors.file"), {
10238
10238
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
10239
10239
  });
10240
10240
  break;
10241
10241
  }
10242
- if (_optionalChain([rejectedFiles, 'access', _282 => _282[i], 'access', _283 => _283.errors, 'access', _284 => _284[0], 'optionalAccess', _285 => _285.message])) {
10242
+ if (_optionalChain([rejectedFiles, 'access', _284 => _284[i], 'access', _285 => _285.errors, 'access', _286 => _286[0], 'optionalAccess', _287 => _287.message])) {
10243
10243
  _chunkCAKOFJZDjs.showError.call(void 0, t(`common.errors.file`), {
10244
10244
  description: rejectedFiles[i].errors[0].message
10245
10245
  });
@@ -10437,7 +10437,7 @@ FileInput.displayName = "FileInput";
10437
10437
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10438
10438
 
10439
10439
 
10440
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-LP65KUXI.js"))), {
10440
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-OPIE2D56.js"))), {
10441
10441
  ssr: false
10442
10442
  });
10443
10443
  var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -10521,7 +10521,7 @@ function FormBlockNote({
10521
10521
  } else {
10522
10522
  field.onChange(content);
10523
10523
  }
10524
- _optionalChain([onEmptyChange, 'optionalCall', _286 => _286(isEmpty)]);
10524
+ _optionalChain([onEmptyChange, 'optionalCall', _288 => _288(isEmpty)]);
10525
10525
  },
10526
10526
  placeholder,
10527
10527
  bordered: true,
@@ -11188,11 +11188,11 @@ function FormPlaceAutocomplete({
11188
11188
  const data = await response.json();
11189
11189
  if (data.suggestions) {
11190
11190
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
11191
- place_id: _optionalChain([suggestion, 'access', _287 => _287.placePrediction, 'optionalAccess', _288 => _288.placeId]) || "",
11192
- description: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.text, 'optionalAccess', _291 => _291.text]) || "",
11191
+ place_id: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.placeId]) || "",
11192
+ description: _optionalChain([suggestion, 'access', _291 => _291.placePrediction, 'optionalAccess', _292 => _292.text, 'optionalAccess', _293 => _293.text]) || "",
11193
11193
  structured_formatting: {
11194
- main_text: _optionalChain([suggestion, 'access', _292 => _292.placePrediction, 'optionalAccess', _293 => _293.structuredFormat, 'optionalAccess', _294 => _294.mainText, 'optionalAccess', _295 => _295.text]) || "",
11195
- secondary_text: _optionalChain([suggestion, 'access', _296 => _296.placePrediction, 'optionalAccess', _297 => _297.structuredFormat, 'optionalAccess', _298 => _298.secondaryText, 'optionalAccess', _299 => _299.text]) || ""
11194
+ main_text: _optionalChain([suggestion, 'access', _294 => _294.placePrediction, 'optionalAccess', _295 => _295.structuredFormat, 'optionalAccess', _296 => _296.mainText, 'optionalAccess', _297 => _297.text]) || "",
11195
+ secondary_text: _optionalChain([suggestion, 'access', _298 => _298.placePrediction, 'optionalAccess', _299 => _299.structuredFormat, 'optionalAccess', _300 => _300.secondaryText, 'optionalAccess', _301 => _301.text]) || ""
11196
11196
  }
11197
11197
  }));
11198
11198
  setSuggestions(formattedSuggestions);
@@ -11339,8 +11339,8 @@ function FormPlaceAutocomplete({
11339
11339
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
11340
11340
  onClick: () => handleSuggestionSelect(suggestion),
11341
11341
  children: [
11342
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _300 => _300.structured_formatting, 'optionalAccess', _301 => _301.main_text]) }),
11343
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _302 => _302.structured_formatting, 'optionalAccess', _303 => _303.secondary_text]) })
11342
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _302 => _302.structured_formatting, 'optionalAccess', _303 => _303.main_text]) }),
11343
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _304 => _304.structured_formatting, 'optionalAccess', _305 => _305.secondary_text]) })
11344
11344
  ]
11345
11345
  },
11346
11346
  suggestion.place_id || index
@@ -11388,7 +11388,7 @@ function FormSelect({
11388
11388
  disabled,
11389
11389
  "data-testid": testId,
11390
11390
  children: [
11391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _304 => _304.find, 'call', _305 => _305((v) => v.id === field.value), 'optionalAccess', _306 => _306.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
11391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _306 => _306.find, 'call', _307 => _307((v) => v.id === field.value), 'optionalAccess', _308 => _308.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
11392
11392
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
11393
11393
  allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
11394
11394
  values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
@@ -11566,7 +11566,7 @@ var FilePreviewItem = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ fi
11566
11566
  setObjectUrl(null);
11567
11567
  }, [file]);
11568
11568
  const getFileIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11569
- const extension = _optionalChain([file, 'access', _307 => _307.name, 'access', _308 => _308.split, 'call', _309 => _309("."), 'access', _310 => _310.pop, 'call', _311 => _311(), 'optionalAccess', _312 => _312.toLowerCase, 'call', _313 => _313()]);
11569
+ const extension = _optionalChain([file, 'access', _309 => _309.name, 'access', _310 => _310.split, 'call', _311 => _311("."), 'access', _312 => _312.pop, 'call', _313 => _313(), 'optionalAccess', _314 => _314.toLowerCase, 'call', _315 => _315()]);
11570
11570
  if (file.type.startsWith("image/")) {
11571
11571
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileImageIcon, { className: "text-muted h-10 w-10 sm:h-12 sm:w-12" });
11572
11572
  }
@@ -11616,7 +11616,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
11616
11616
  }, "getInitials");
11617
11617
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11618
11618
  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: [
11619
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _314 => _314.avatar]) }),
11619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _316 => _316.avatar]) }),
11620
11620
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
11621
11621
  ] }) });
11622
11622
  }, "getAvatar");
@@ -11822,7 +11822,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11822
11822
  })
11823
11823
  };
11824
11824
  const columns = _react.useMemo.call(void 0, () => {
11825
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _315 => _315[field], 'optionalCall', _316 => _316()])).filter((col) => col !== void 0);
11825
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _317 => _317[field], 'optionalCall', _318 => _318()])).filter((col) => col !== void 0);
11826
11826
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11827
11827
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11828
11828
  }, "useUserTableStructure");
@@ -11936,10 +11936,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
11936
11936
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
11937
11937
  /* @__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.jsxs.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: [
11938
11938
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `me-2 h-4 w-4`, children: [
11939
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.avatar]) }),
11940
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _319 => _319.value, 'optionalAccess', _320 => _320.name]) ? _optionalChain([field, 'access', _321 => _321.value, 'optionalAccess', _322 => _322.name, 'access', _323 => _323.split, 'call', _324 => _324(" "), 'access', _325 => _325.map, 'call', _326 => _326((name) => name.charAt(0).toUpperCase())]) : "X" })
11939
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _319 => _319.value, 'optionalAccess', _320 => _320.avatar]) }),
11940
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _321 => _321.value, 'optionalAccess', _322 => _322.name]) ? _optionalChain([field, 'access', _323 => _323.value, 'optionalAccess', _324 => _324.name, 'access', _325 => _325.split, 'call', _326 => _326(" "), 'access', _327 => _327.map, 'call', _328 => _328((name) => name.charAt(0).toUpperCase())]) : "X" })
11941
11941
  ] }) }),
11942
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _327 => _327.value, 'optionalAccess', _328 => _328.name]), () => ( "")) })
11942
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _329 => _329.value, 'optionalAccess', _330 => _330.name]), () => ( "")) })
11943
11943
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
11944
11944
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11945
11945
  _lucidereact.CircleX,
@@ -12149,7 +12149,7 @@ function UserContent({ user }) {
12149
12149
  const updated = await _chunkCAKOFJZDjs.UserService.patchAvatar({ id: user.id, avatar: imageKey });
12150
12150
  setUser(updated);
12151
12151
  },
12152
- companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _329 => _329.id]), () => ( "")),
12152
+ companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _331 => _331.id]), () => ( "")),
12153
12153
  className: "h-24 w-24",
12154
12154
  fallbackClassName: "text-2xl"
12155
12155
  }
@@ -12304,7 +12304,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
12304
12304
  const data = useDataListRetriever({
12305
12305
  ready: !!company,
12306
12306
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkCAKOFJZDjs.UserService.findAllUsers(params), "retriever"),
12307
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _330 => _330.id]), isDeleted },
12307
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _332 => _332.id]), isDeleted },
12308
12308
  module: _chunkCAKOFJZDjs.Modules.User
12309
12309
  });
12310
12310
  _react.useEffect.call(void 0, () => {
@@ -12411,11 +12411,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
12411
12411
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
12412
12412
  onClick: (_e) => {
12413
12413
  setSelectedUser(user);
12414
- _optionalChain([setLevelOpen, 'optionalCall', _331 => _331(true)]);
12414
+ _optionalChain([setLevelOpen, 'optionalCall', _333 => _333(true)]);
12415
12415
  },
12416
12416
  onSelect: (_e) => {
12417
12417
  setSelectedUser(user);
12418
- _optionalChain([setLevelOpen, 'optionalCall', _332 => _332(true)]);
12418
+ _optionalChain([setLevelOpen, 'optionalCall', _334 => _334(true)]);
12419
12419
  },
12420
12420
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
12421
12421
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -12546,7 +12546,7 @@ function CompanyContent({ company, actions }) {
12546
12546
  company.legal_address
12547
12547
  ] }),
12548
12548
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
12549
- _optionalChain([company, 'access', _333 => _333.configurations, 'optionalAccess', _334 => _334.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12549
+ _optionalChain([company, 'access', _335 => _335.configurations, 'optionalAccess', _336 => _336.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12550
12550
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
12551
12551
  t("features.configuration.country"),
12552
12552
  ":"
@@ -12554,7 +12554,7 @@ function CompanyContent({ company, actions }) {
12554
12554
  " ",
12555
12555
  company.configurations.country
12556
12556
  ] }),
12557
- _optionalChain([company, 'access', _335 => _335.configurations, 'optionalAccess', _336 => _336.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12557
+ _optionalChain([company, 'access', _337 => _337.configurations, 'optionalAccess', _338 => _338.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12558
12558
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
12559
12559
  t("features.configuration.currency"),
12560
12560
  ":"
@@ -12799,7 +12799,7 @@ function CompanyEditorInternal({
12799
12799
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
12800
12800
  fetchFeatures();
12801
12801
  }
12802
- _optionalChain([onDialogOpenChange, 'optionalCall', _337 => _337(open)]);
12802
+ _optionalChain([onDialogOpenChange, 'optionalCall', _339 => _339(open)]);
12803
12803
  },
12804
12804
  [features.length, canAccessFeatures, hasRole, onDialogOpenChange]
12805
12805
  );
@@ -12844,12 +12844,12 @@ function CompanyEditorInternal({
12844
12844
  );
12845
12845
  const getDefaultValues = _react.useCallback.call(void 0, () => {
12846
12846
  return {
12847
- id: _optionalChain([company, 'optionalAccess', _338 => _338.id]) || _uuid.v4.call(void 0, ),
12848
- name: _optionalChain([company, 'optionalAccess', _339 => _339.name]) || "",
12849
- featureIds: _optionalChain([company, 'optionalAccess', _340 => _340.features, 'access', _341 => _341.map, 'call', _342 => _342((feature) => feature.id)]) || [],
12850
- moduleIds: _optionalChain([company, 'optionalAccess', _343 => _343.modules, 'access', _344 => _344.map, 'call', _345 => _345((module) => module.id)]) || [],
12851
- logo: _optionalChain([company, 'optionalAccess', _346 => _346.logo]) || "",
12852
- legal_address: _optionalChain([company, 'optionalAccess', _347 => _347.legal_address]) || ""
12847
+ id: _optionalChain([company, 'optionalAccess', _340 => _340.id]) || _uuid.v4.call(void 0, ),
12848
+ name: _optionalChain([company, 'optionalAccess', _341 => _341.name]) || "",
12849
+ featureIds: _optionalChain([company, 'optionalAccess', _342 => _342.features, 'access', _343 => _343.map, 'call', _344 => _344((feature) => feature.id)]) || [],
12850
+ moduleIds: _optionalChain([company, 'optionalAccess', _345 => _345.modules, 'access', _346 => _346.map, 'call', _347 => _347((module) => module.id)]) || [],
12851
+ logo: _optionalChain([company, 'optionalAccess', _348 => _348.logo]) || "",
12852
+ legal_address: _optionalChain([company, 'optionalAccess', _349 => _349.legal_address]) || ""
12853
12853
  };
12854
12854
  }, [company]);
12855
12855
  const form = _reacthookform.useForm.call(void 0, {
@@ -12861,7 +12861,7 @@ function CompanyEditorInternal({
12861
12861
  {
12862
12862
  form,
12863
12863
  entityType: t(`entities.companies`, { count: 1 }),
12864
- entityName: _optionalChain([company, 'optionalAccess', _348 => _348.name]),
12864
+ entityName: _optionalChain([company, 'optionalAccess', _350 => _350.name]),
12865
12865
  isEdit: !!company,
12866
12866
  module: _chunkCAKOFJZDjs.Modules.Company,
12867
12867
  propagateChanges,
@@ -12886,7 +12886,7 @@ function CompanyEditorInternal({
12886
12886
  throw new Error("Fiscal data validation failed");
12887
12887
  }
12888
12888
  const payload = {
12889
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _349 => _349.id]), () => ( _uuid.v4.call(void 0, ))),
12889
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _351 => _351.id]), () => ( _uuid.v4.call(void 0, ))),
12890
12890
  name: values.name,
12891
12891
  logo: files && contentType ? values.logo : void 0,
12892
12892
  featureIds: values.featureIds,
@@ -12917,10 +12917,10 @@ function CompanyEditorInternal({
12917
12917
  dialogOpen,
12918
12918
  onDialogOpenChange: handleDialogOpenChange,
12919
12919
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
12920
- /* @__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-muted-foreground/50 rounded-lg outline-1 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', _350 => _350.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12920
+ /* @__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-muted-foreground/50 rounded-lg outline-1 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', _352 => _352.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12921
12921
  _image2.default,
12922
12922
  {
12923
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _351 => _351.logo]) || "",
12923
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _353 => _353.logo]) || "",
12924
12924
  alt: "Company Logo",
12925
12925
  width: 200,
12926
12926
  height: 200
@@ -12954,7 +12954,7 @@ function CompanyEditorInternal({
12954
12954
  }
12955
12955
  ),
12956
12956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { className: "mt-2", children: t(`company.sections.fiscal_data`) }),
12957
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _352 => _352.fiscal_data])) })
12957
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _354 => _354.fiscal_data])) })
12958
12958
  ] }),
12959
12959
  canAccessFeatures && /* @__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, ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFeatures, { form, name: t(`company.features_and_modules`), features }) }) })
12960
12960
  ] })
@@ -13318,11 +13318,11 @@ function NotificationToast(notification, t, generateUrl, reouter) {
13318
13318
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
13319
13319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13320
13320
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
13321
- actor: _nullishCoalesce(_optionalChain([data, 'access', _353 => _353.actor, 'optionalAccess', _354 => _354.name]), () => ( "")),
13321
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _355 => _355.actor, 'optionalAccess', _356 => _356.name]), () => ( "")),
13322
13322
  title: data.title,
13323
13323
  message: _nullishCoalesce(notification.message, () => ( ""))
13324
13324
  }) }),
13325
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
13325
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: _chunkCAKOFJZDjs.formatDate.call(void 0, new Date(notification.createdAt), "dateTime") })
13326
13326
  ] })
13327
13327
  ] }),
13328
13328
  action: data.url ? {
@@ -13355,7 +13355,7 @@ function NotificationMenuItem({ notification, closePopover }) {
13355
13355
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
13356
13356
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
13357
13357
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
13358
- actor: _nullishCoalesce(_optionalChain([data, 'access', _355 => _355.actor, 'optionalAccess', _356 => _356.name]), () => ( "")),
13358
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _357 => _357.actor, 'optionalAccess', _358 => _358.name]), () => ( "")),
13359
13359
  title: data.title,
13360
13360
  message: _nullishCoalesce(notification.message, () => ( ""))
13361
13361
  }) }),
@@ -13423,7 +13423,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
13423
13423
  _react.useEffect.call(void 0, () => {
13424
13424
  if (hasInitiallyLoaded || !currentUser) return;
13425
13425
  if (_chunk4Z45NYPRjs.isRolesConfigured.call(void 0, )) {
13426
- const isAdmin = _optionalChain([currentUser, 'access', _357 => _357.roles, 'optionalAccess', _358 => _358.some, 'call', _359 => _359((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)]);
13426
+ const isAdmin = _optionalChain([currentUser, 'access', _359 => _359.roles, 'optionalAccess', _360 => _360.some, 'call', _361 => _361((role) => role.id === _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator)]);
13427
13427
  if (isAdmin) {
13428
13428
  setHasInitiallyLoaded(true);
13429
13429
  return;
@@ -13609,7 +13609,7 @@ function OnboardingProvider({
13609
13609
  const id = activeTourIdRef.current;
13610
13610
  cleanupRoots();
13611
13611
  resetState();
13612
- if (id) _optionalChain([onTourEnd, 'optionalCall', _360 => _360(id, reason)]);
13612
+ if (id) _optionalChain([onTourEnd, 'optionalCall', _362 => _362(id, reason)]);
13613
13613
  },
13614
13614
  [cleanupRoots, resetState, onTourEnd]
13615
13615
  );
@@ -13622,14 +13622,14 @@ function OnboardingProvider({
13622
13622
  cleanupRoots();
13623
13623
  resetState();
13624
13624
  }, [cleanupRoots, resetState, teardown]);
13625
- const nextStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _361 => _361.current, 'optionalAccess', _362 => _362.moveNext, 'call', _363 => _363()]), []);
13626
- const previousStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _364 => _364.current, 'optionalAccess', _365 => _365.movePrevious, 'call', _366 => _366()]), []);
13627
- const goToStep = _react.useCallback.call(void 0, (index) => _optionalChain([driverRef, 'access', _367 => _367.current, 'optionalAccess', _368 => _368.moveTo, 'call', _369 => _369(index)]), []);
13625
+ const nextStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _363 => _363.current, 'optionalAccess', _364 => _364.moveNext, 'call', _365 => _365()]), []);
13626
+ const previousStep = _react.useCallback.call(void 0, () => _optionalChain([driverRef, 'access', _366 => _366.current, 'optionalAccess', _367 => _367.movePrevious, 'call', _368 => _368()]), []);
13627
+ const goToStep = _react.useCallback.call(void 0, (index) => _optionalChain([driverRef, 'access', _369 => _369.current, 'optionalAccess', _370 => _370.moveTo, 'call', _371 => _371(index)]), []);
13628
13628
  const startTour = _react.useCallback.call(void 0,
13629
13629
  (tourId, steps) => {
13630
13630
  if (typeof window === "undefined") return;
13631
13631
  if (driverRef.current) closeTour();
13632
- const tourSteps = _nullishCoalesce(steps, () => ( _optionalChain([tours, 'access', _370 => _370.find, 'call', _371 => _371((t) => t.id === tourId), 'optionalAccess', _372 => _372.steps])));
13632
+ const tourSteps = _nullishCoalesce(steps, () => ( _optionalChain([tours, 'access', _372 => _372.find, 'call', _373 => _373((t) => t.id === tourId), 'optionalAccess', _374 => _374.steps])));
13633
13633
  if (!tourSteps || tourSteps.length === 0) {
13634
13634
  console.warn(`No steps found for tour: ${tourId}`);
13635
13635
  return;
@@ -13640,13 +13640,13 @@ function OnboardingProvider({
13640
13640
  endReasonRef.current = "dismissed";
13641
13641
  const move = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (direction, from) => {
13642
13642
  const target = tourSteps[direction === "next" ? from + 1 : from - 1];
13643
- const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => direction === "next" ? _optionalChain([driverRef, 'access', _373 => _373.current, 'optionalAccess', _374 => _374.moveNext, 'call', _375 => _375()]) : _optionalChain([driverRef, 'access', _376 => _376.current, 'optionalAccess', _377 => _377.movePrevious, 'call', _378 => _378()]), "go");
13644
- if (_optionalChain([target, 'optionalAccess', _379 => _379.showDelay])) setTimeout(go, target.showDelay);
13643
+ const go = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => direction === "next" ? _optionalChain([driverRef, 'access', _375 => _375.current, 'optionalAccess', _376 => _376.moveNext, 'call', _377 => _377()]) : _optionalChain([driverRef, 'access', _378 => _378.current, 'optionalAccess', _379 => _379.movePrevious, 'call', _380 => _380()]), "go");
13644
+ if (_optionalChain([target, 'optionalAccess', _381 => _381.showDelay])) setTimeout(go, target.showDelay);
13645
13645
  else go();
13646
13646
  }, "move");
13647
13647
  const end = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (reason) => {
13648
13648
  endReasonRef.current = reason;
13649
- _optionalChain([driverRef, 'access', _380 => _380.current, 'optionalAccess', _381 => _381.destroy, 'call', _382 => _382()]);
13649
+ _optionalChain([driverRef, 'access', _382 => _382.current, 'optionalAccess', _383 => _383.destroy, 'call', _384 => _384()]);
13650
13650
  teardown(reason);
13651
13651
  }, "end");
13652
13652
  const driveSteps = tourSteps.map((stepConfig, index) => {
@@ -13688,10 +13688,10 @@ function OnboardingProvider({
13688
13688
  onHighlightStarted: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13689
13689
  setIsTourActive(true);
13690
13690
  setCurrentStepIndex(index);
13691
- _optionalChain([stepConfig, 'access', _383 => _383.onShow, 'optionalCall', _384 => _384()]);
13691
+ _optionalChain([stepConfig, 'access', _385 => _385.onShow, 'optionalCall', _386 => _386()]);
13692
13692
  }, "onHighlightStarted"),
13693
13693
  onDeselected: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13694
- _optionalChain([stepConfig, 'access', _385 => _385.onHide, 'optionalCall', _386 => _386()]);
13694
+ _optionalChain([stepConfig, 'access', _387 => _387.onHide, 'optionalCall', _388 => _388()]);
13695
13695
  const root = rootsRef.current.get(index);
13696
13696
  if (root) {
13697
13697
  rootsRef.current.delete(index);
@@ -13719,7 +13719,7 @@ function OnboardingProvider({
13719
13719
  );
13720
13720
  _react.useEffect.call(void 0, () => {
13721
13721
  return () => {
13722
- _optionalChain([driverRef, 'access', _387 => _387.current, 'optionalAccess', _388 => _388.destroy, 'call', _389 => _389()]);
13722
+ _optionalChain([driverRef, 'access', _389 => _389.current, 'optionalAccess', _390 => _390.destroy, 'call', _391 => _391()]);
13723
13723
  cleanupRoots();
13724
13724
  };
13725
13725
  }, [cleanupRoots]);
@@ -13852,7 +13852,7 @@ function HowToMultiSelector({
13852
13852
  retriever: (params) => _chunkCAKOFJZDjs.HowToService.findMany(params),
13853
13853
  module: _chunkCAKOFJZDjs.Modules.HowTo,
13854
13854
  getLabel: (howTo) => howTo.name,
13855
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _390 => _390.id]),
13855
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _392 => _392.id]),
13856
13856
  onChange
13857
13857
  }
13858
13858
  );
@@ -13960,17 +13960,17 @@ function HowToEditorInternal({
13960
13960
  );
13961
13961
  const getDefaultValues = _react.useCallback.call(void 0,
13962
13962
  () => ({
13963
- id: _optionalChain([howTo, 'optionalAccess', _391 => _391.id]) || _uuid.v4.call(void 0, ),
13964
- name: _optionalChain([howTo, 'optionalAccess', _392 => _392.name]) || "",
13965
- description: _optionalChain([howTo, 'optionalAccess', _393 => _393.description]) || [],
13966
- pages: _chunkCAKOFJZDjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _394 => _394.pages])),
13967
- howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _395 => _395.howToType]), () => ( "how-to")),
13968
- slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _396 => _396.slug]), () => ( "")),
13969
- order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _397 => _397.order]), () => ( 0)),
13970
- summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _398 => _398.summary]), () => ( "")),
13971
- tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _399 => _399.tags]), () => ( []))).join(", "),
13972
- contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _400 => _400.contextualKeys]), () => ( []))).join(", "),
13973
- draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _401 => _401.draft]), () => ( false)),
13963
+ id: _optionalChain([howTo, 'optionalAccess', _393 => _393.id]) || _uuid.v4.call(void 0, ),
13964
+ name: _optionalChain([howTo, 'optionalAccess', _394 => _394.name]) || "",
13965
+ description: _optionalChain([howTo, 'optionalAccess', _395 => _395.description]) || [],
13966
+ pages: _chunkCAKOFJZDjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _396 => _396.pages])),
13967
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _397 => _397.howToType]), () => ( "how-to")),
13968
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _398 => _398.slug]), () => ( "")),
13969
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _399 => _399.order]), () => ( 0)),
13970
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _400 => _400.summary]), () => ( "")),
13971
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _401 => _401.tags]), () => ( []))).join(", "),
13972
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _402 => _402.contextualKeys]), () => ( []))).join(", "),
13973
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _403 => _403.draft]), () => ( false)),
13974
13974
  relatedArticles: []
13975
13975
  }),
13976
13976
  [howTo]
@@ -13981,7 +13981,7 @@ function HowToEditorInternal({
13981
13981
  });
13982
13982
  const initialRelatedIds = _react.useRef.call(void 0, []);
13983
13983
  _react.useEffect.call(void 0, () => {
13984
- if (!_optionalChain([howTo, 'optionalAccess', _402 => _402.howToType]) || !_optionalChain([howTo, 'optionalAccess', _403 => _403.slug])) return;
13984
+ if (!_optionalChain([howTo, 'optionalAccess', _404 => _404.howToType]) || !_optionalChain([howTo, 'optionalAccess', _405 => _405.slug])) return;
13985
13985
  let active = true;
13986
13986
  _chunkCAKOFJZDjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
13987
13987
  if (!active) return;
@@ -14020,7 +14020,7 @@ function HowToEditorInternal({
14020
14020
  {
14021
14021
  form,
14022
14022
  entityType: t(`entities.howtos`, { count: 1 }),
14023
- entityName: _optionalChain([howTo, 'optionalAccess', _404 => _404.name]),
14023
+ entityName: _optionalChain([howTo, 'optionalAccess', _406 => _406.name]),
14024
14024
  isEdit: !!howTo,
14025
14025
  module: _chunkCAKOFJZDjs.Modules.HowTo,
14026
14026
  propagateChanges,
@@ -14401,7 +14401,7 @@ function withPatchedTitle(source, title) {
14401
14401
  return _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.Assistant, {
14402
14402
  jsonApi: {
14403
14403
  ...dehydrated.jsonApi,
14404
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _405 => _405.jsonApi, 'optionalAccess', _406 => _406.attributes]), () => ( {})), title }
14404
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _407 => _407.jsonApi, 'optionalAccess', _408 => _408.attributes]), () => ( {})), title }
14405
14405
  },
14406
14406
  included: dehydrated.included
14407
14407
  });
@@ -14436,7 +14436,7 @@ function AssistantProvider({
14436
14436
  const [status, setStatus] = _react.useState.call(void 0, void 0);
14437
14437
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
14438
14438
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
14439
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _407 => _407.jsonApi, 'optionalAccess', _408 => _408.attributes, 'optionalAccess', _409 => _409.engine]) === "operator"
14439
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _409 => _409.jsonApi, 'optionalAccess', _410 => _410.attributes, 'optionalAccess', _411 => _411.engine]) === "operator"
14440
14440
  );
14441
14441
  const [pendingScope, setPendingScope] = _react.useState.call(void 0, scope);
14442
14442
  const { socket } = useSocketContext();
@@ -14446,7 +14446,7 @@ function AssistantProvider({
14446
14446
  if (!trimmed) return;
14447
14447
  const optimistic = _chunkCAKOFJZDjs.AssistantMessage.buildOptimistic({
14448
14448
  content: trimmed,
14449
- assistantId: _optionalChain([assistant, 'optionalAccess', _410 => _410.id]),
14449
+ assistantId: _optionalChain([assistant, 'optionalAccess', _412 => _412.id]),
14450
14450
  position: nextPosition(messages)
14451
14451
  });
14452
14452
  setMessages((prev) => [...prev, optimistic]);
@@ -14456,22 +14456,22 @@ function AssistantProvider({
14456
14456
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
14457
14457
  if (typeof payload.status === "string") setStatus(payload.status);
14458
14458
  }, "handler");
14459
- _optionalChain([socket, 'optionalAccess', _411 => _411.on, 'call', _412 => _412("assistant:status", handler)]);
14459
+ _optionalChain([socket, 'optionalAccess', _413 => _413.on, 'call', _414 => _414("assistant:status", handler)]);
14460
14460
  let createdHandled = false;
14461
14461
  const createdHandler = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (payload) => {
14462
14462
  if (createdHandled) return;
14463
- const data = _optionalChain([payload, 'optionalAccess', _413 => _413.assistant, 'optionalAccess', _414 => _414.data]);
14463
+ const data = _optionalChain([payload, 'optionalAccess', _415 => _415.assistant, 'optionalAccess', _416 => _416.data]);
14464
14464
  if (!data || typeof data !== "object" || typeof data.id !== "string" || !data.id) return;
14465
14465
  let thread;
14466
14466
  try {
14467
14467
  thread = _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.Assistant, {
14468
14468
  jsonApi: data,
14469
- included: _nullishCoalesce(_optionalChain([payload, 'access', _415 => _415.assistant, 'optionalAccess', _416 => _416.included]), () => ( []))
14469
+ included: _nullishCoalesce(_optionalChain([payload, 'access', _417 => _417.assistant, 'optionalAccess', _418 => _418.included]), () => ( []))
14470
14470
  });
14471
14471
  } catch (e8) {
14472
14472
  return;
14473
14473
  }
14474
- if (!_optionalChain([thread, 'optionalAccess', _417 => _417.id])) return;
14474
+ if (!_optionalChain([thread, 'optionalAccess', _419 => _419.id])) return;
14475
14475
  createdHandled = true;
14476
14476
  setAssistant(thread);
14477
14477
  setThreads((prev) => [thread, ...prev.filter((row) => row.id !== thread.id)]);
@@ -14479,16 +14479,16 @@ function AssistantProvider({
14479
14479
  window.history.replaceState(null, "", resolveThreadUrl(thread.id));
14480
14480
  }
14481
14481
  }, "createdHandler");
14482
- if (!assistant) _optionalChain([socket, 'optionalAccess', _418 => _418.on, 'call', _419 => _419("assistant:created", createdHandler)]);
14482
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _420 => _420.on, 'call', _421 => _421("assistant:created", createdHandler)]);
14483
14483
  try {
14484
14484
  if (!assistant) {
14485
14485
  const input = {
14486
14486
  firstMessage: trimmed,
14487
- howToMode: _optionalChain([opts, 'optionalAccess', _420 => _420.howToMode]),
14488
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _421 => _421.limitToHowToId]),
14489
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _422 => _422.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _423 => _423.handbookMode]))),
14490
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _424 => _424.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _425 => _425.limitToHandbookPageId]))),
14491
- contentBlocks: _optionalChain([opts, 'optionalAccess', _426 => _426.contentBlocks]),
14487
+ howToMode: _optionalChain([opts, 'optionalAccess', _422 => _422.howToMode]),
14488
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _423 => _423.limitToHowToId]),
14489
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _424 => _424.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _425 => _425.handbookMode]))),
14490
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _426 => _426.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _427 => _427.limitToHandbookPageId]))),
14491
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _428 => _428.contentBlocks]),
14492
14492
  boundContent: pendingScope
14493
14493
  };
14494
14494
  const created = operatorMode ? await _chunkCAKOFJZDjs.AssistantService.createOperator(input) : await _chunkCAKOFJZDjs.AssistantService.create(input);
@@ -14505,15 +14505,15 @@ function AssistantProvider({
14505
14505
  const result = operatorMode ? await _chunkCAKOFJZDjs.AssistantService.appendMessageOperator({
14506
14506
  assistantId: assistant.id,
14507
14507
  content: trimmed,
14508
- contentBlocks: _optionalChain([opts, 'optionalAccess', _427 => _427.contentBlocks])
14508
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _429 => _429.contentBlocks])
14509
14509
  }) : await _chunkCAKOFJZDjs.AssistantService.appendMessage({
14510
14510
  assistantId: assistant.id,
14511
14511
  content: trimmed,
14512
- howToMode: _optionalChain([opts, 'optionalAccess', _428 => _428.howToMode]),
14513
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _429 => _429.limitToHowToId]),
14514
- handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _430 => _430.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _431 => _431.handbookMode]))),
14515
- limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _432 => _432.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _433 => _433.limitToHandbookPageId]))),
14516
- contentBlocks: _optionalChain([opts, 'optionalAccess', _434 => _434.contentBlocks])
14512
+ howToMode: _optionalChain([opts, 'optionalAccess', _430 => _430.howToMode]),
14513
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _431 => _431.limitToHowToId]),
14514
+ handbookMode: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _432 => _432.handbookMode]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _433 => _433.handbookMode]))),
14515
+ limitToHandbookPageId: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _434 => _434.limitToHandbookPageId]), () => ( _optionalChain([retrievalMode, 'optionalAccess', _435 => _435.limitToHandbookPageId]))),
14516
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _436 => _436.contentBlocks])
14517
14517
  });
14518
14518
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
14519
14519
  }
@@ -14524,8 +14524,8 @@ function AssistantProvider({
14524
14524
  return next;
14525
14525
  });
14526
14526
  } finally {
14527
- _optionalChain([socket, 'optionalAccess', _435 => _435.off, 'call', _436 => _436("assistant:status", handler)]);
14528
- if (!assistant) _optionalChain([socket, 'optionalAccess', _437 => _437.off, 'call', _438 => _438("assistant:created", createdHandler)]);
14527
+ _optionalChain([socket, 'optionalAccess', _437 => _437.off, 'call', _438 => _438("assistant:status", handler)]);
14528
+ if (!assistant) _optionalChain([socket, 'optionalAccess', _439 => _439.off, 'call', _440 => _440("assistant:created", createdHandler)]);
14529
14529
  setSending(false);
14530
14530
  setStatus(void 0);
14531
14531
  }
@@ -14591,7 +14591,7 @@ function AssistantProvider({
14591
14591
  await _chunkCAKOFJZDjs.AssistantService.delete({ id });
14592
14592
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
14593
14593
  setAssistant((prev) => {
14594
- if (_optionalChain([prev, 'optionalAccess', _439 => _439.id]) === id) {
14594
+ if (_optionalChain([prev, 'optionalAccess', _441 => _441.id]) === id) {
14595
14595
  setMessages([]);
14596
14596
  return void 0;
14597
14597
  }
@@ -14603,7 +14603,7 @@ function AssistantProvider({
14603
14603
  (async () => {
14604
14604
  setThreadsLoading(true);
14605
14605
  try {
14606
- const loaded = await _chunkCAKOFJZDjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _440 => _440.type]), boundId: _optionalChain([scope, 'optionalAccess', _441 => _441.id]) });
14606
+ const loaded = await _chunkCAKOFJZDjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _442 => _442.type]), boundId: _optionalChain([scope, 'optionalAccess', _443 => _443.id]) });
14607
14607
  if (!cancelled) setThreads(loaded);
14608
14608
  } finally {
14609
14609
  if (!cancelled) setThreadsLoading(false);
@@ -14612,7 +14612,7 @@ function AssistantProvider({
14612
14612
  return () => {
14613
14613
  cancelled = true;
14614
14614
  };
14615
- }, [_optionalChain([scope, 'optionalAccess', _442 => _442.type]), _optionalChain([scope, 'optionalAccess', _443 => _443.id])]);
14615
+ }, [_optionalChain([scope, 'optionalAccess', _444 => _444.type]), _optionalChain([scope, 'optionalAccess', _445 => _445.id])]);
14616
14616
  const value = _react.useMemo.call(void 0,
14617
14617
  () => ({
14618
14618
  assistant,
@@ -14664,7 +14664,7 @@ function AssistantProvider({
14664
14664
  const response = {
14665
14665
  type: _nullishCoalesce(titleOverride, () => ( t("entities.assistants", { count: assistant ? 1 : 2 })))
14666
14666
  };
14667
- if (_optionalChain([assistant, 'optionalAccess', _444 => _444.title])) {
14667
+ if (_optionalChain([assistant, 'optionalAccess', _446 => _446.title])) {
14668
14668
  response.element = assistant.title.length > 25 ? `${assistant.title.substring(0, 25)}...` : assistant.title;
14669
14669
  }
14670
14670
  response.functions = [
@@ -14805,7 +14805,7 @@ function readEntityTitle() {
14805
14805
  if (typeof document === "undefined") return null;
14806
14806
  const afterEntityType = document.title.split("]")[1];
14807
14807
  if (!afterEntityType) return null;
14808
- return _optionalChain([afterEntityType, 'access', _445 => _445.split, 'call', _446 => _446("|"), 'access', _447 => _447[0], 'optionalAccess', _448 => _448.trim, 'call', _449 => _449()]) || null;
14808
+ return _optionalChain([afterEntityType, 'access', _447 => _447.split, 'call', _448 => _448("|"), 'access', _449 => _449[0], 'optionalAccess', _450 => _450.trim, 'call', _451 => _451()]) || null;
14809
14809
  }
14810
14810
  _chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
14811
14811
  function usePageTracker() {
@@ -14834,7 +14834,7 @@ function usePageTracker() {
14834
14834
  const existing = prev.find((page) => page.url === baseUrl);
14835
14835
  const refreshed = {
14836
14836
  url: baseUrl,
14837
- title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _450 => _450.title]), () => ( foundModule.name)),
14837
+ title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _452 => _452.title]), () => ( foundModule.name)),
14838
14838
  moduleType: foundModule.name,
14839
14839
  timestamp: Date.now()
14840
14840
  };
@@ -14896,7 +14896,7 @@ function usePushNotifications() {
14896
14896
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
14897
14897
  if ("serviceWorker" in navigator && "PushManager" in window) {
14898
14898
  try {
14899
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _451 => _451.id])}`;
14899
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _453 => _453.id])}`;
14900
14900
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
14901
14901
  const swUrl = _chunk26MQIJNBjs.ENV.IS_PRODUCTION ? `${_chunk4Z45NYPRjs.getAppUrl.call(void 0, )}/sw.js` : `${_chunk4Z45NYPRjs.getAppUrl.call(void 0, )}/sw-dev.js`;
14902
14902
  const registration = await navigator.serviceWorker.register(swUrl);
@@ -15010,14 +15010,14 @@ function useSocket({ token }) {
15010
15010
  });
15011
15011
  }, "handleMessage");
15012
15012
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
15013
- const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _452 => _452.data]), () => ( _optionalChain([data, 'optionalAccess', _453 => _453.jsonApi])));
15014
- if (!_optionalChain([resource, 'optionalAccess', _454 => _454.type])) {
15013
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _454 => _454.data]), () => ( _optionalChain([data, 'optionalAccess', _455 => _455.jsonApi])));
15014
+ if (!_optionalChain([resource, 'optionalAccess', _456 => _456.type])) {
15015
15015
  console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
15016
15016
  return;
15017
15017
  }
15018
15018
  const notification = _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.Notification, {
15019
15019
  jsonApi: resource,
15020
- included: _optionalChain([data, 'optionalAccess', _455 => _455.included]) || []
15020
+ included: _optionalChain([data, 'optionalAccess', _457 => _457.included]) || []
15021
15021
  });
15022
15022
  if (notification) {
15023
15023
  setSocketNotifications((prev) => {
@@ -15140,11 +15140,11 @@ function BreadcrumbMobile({
15140
15140
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: rootLabel }) }) }) });
15141
15141
  }
15142
15142
  if (allItems.length <= 1) {
15143
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _456 => _456.name]) });
15143
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _458 => _458.name]) });
15144
15144
  }
15145
15145
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
15146
15146
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex min-h-9 min-w-0 items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
15147
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _457 => _457.name]) }),
15147
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _459 => _459.name]) }),
15148
15148
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
15149
15149
  ] }),
15150
15150
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
@@ -15162,8 +15162,8 @@ function BreadcrumbMobile({
15162
15162
  href: item.href,
15163
15163
  className: _chunkCAKOFJZDjs.cn.call(void 0, props.className, "text-foreground font-normal"),
15164
15164
  onClick: (event) => {
15165
- _optionalChain([props, 'access', _458 => _458.onClick, 'optionalCall', _459 => _459(event)]);
15166
- _optionalChain([item, 'access', _460 => _460.onClick, 'optionalCall', _461 => _461()]);
15165
+ _optionalChain([props, 'access', _460 => _460.onClick, 'optionalCall', _461 => _461(event)]);
15166
+ _optionalChain([item, 'access', _462 => _462.onClick, 'optionalCall', _463 => _463()]);
15167
15167
  },
15168
15168
  children: props.children
15169
15169
  }
@@ -15181,7 +15181,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
15181
15181
  const generateUrl = usePageUrlGenerator();
15182
15182
  const t = _nextintl.useTranslations.call(void 0, );
15183
15183
  const isMobile = _chunkCAKOFJZDjs.useIsMobile.call(void 0, );
15184
- const root = _optionalChain([rootLabel, 'optionalAccess', _462 => _462.trim, 'call', _463 => _463()]) ? rootLabel : t(`common.home`);
15184
+ const root = _optionalChain([rootLabel, 'optionalAccess', _464 => _464.trim, 'call', _465 => _465()]) ? rootLabel : t(`common.home`);
15185
15185
  if (isMobile) {
15186
15186
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
15187
15187
  }
@@ -15570,12 +15570,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
15570
15570
 
15571
15571
  function mermaidSourceOf(node) {
15572
15572
  const pre = node;
15573
- const code = _optionalChain([pre, 'optionalAccess', _464 => _464.children, 'optionalAccess', _465 => _465[0]]);
15574
- if (_optionalChain([code, 'optionalAccess', _466 => _466.tagName]) !== "code") return void 0;
15575
- const classNames = Array.isArray(_optionalChain([code, 'access', _467 => _467.properties, 'optionalAccess', _468 => _468.className])) ? code.properties.className : [];
15573
+ const code = _optionalChain([pre, 'optionalAccess', _466 => _466.children, 'optionalAccess', _467 => _467[0]]);
15574
+ if (_optionalChain([code, 'optionalAccess', _468 => _468.tagName]) !== "code") return void 0;
15575
+ const classNames = Array.isArray(_optionalChain([code, 'access', _469 => _469.properties, 'optionalAccess', _470 => _470.className])) ? code.properties.className : [];
15576
15576
  if (!classNames.includes("language-mermaid")) return void 0;
15577
- const text = _optionalChain([code, 'access', _469 => _469.children, 'optionalAccess', _470 => _470[0]]);
15578
- if (_optionalChain([text, 'optionalAccess', _471 => _471.type]) !== "text" || typeof text.value !== "string") return void 0;
15577
+ const text = _optionalChain([code, 'access', _471 => _471.children, 'optionalAccess', _472 => _472[0]]);
15578
+ if (_optionalChain([text, 'optionalAccess', _473 => _473.type]) !== "text" || typeof text.value !== "string") return void 0;
15579
15579
  return text.value;
15580
15580
  }
15581
15581
  _chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
@@ -15828,7 +15828,7 @@ var railTriggerClass = _chunkCAKOFJZDjs.cn.call(void 0,
15828
15828
  "data-active:text-primary dark:data-active:text-primary",
15829
15829
  "data-active:font-medium data-active:shadow-none"
15830
15830
  );
15831
- var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _472 => _472.key, 'optionalAccess', _473 => _473.name]))), () => ( tab.label)), "tabValue");
15831
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _474 => _474.key, 'optionalAccess', _475 => _475.name]))), () => ( tab.label)), "tabValue");
15832
15832
  function RoundPageContainer({
15833
15833
  module,
15834
15834
  id,
@@ -15859,7 +15859,7 @@ function RoundPageContainer({
15859
15859
  const [mounted, setMounted] = _react.useState.call(void 0, false);
15860
15860
  _react.useEffect.call(void 0, () => {
15861
15861
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
15862
- const stored = _optionalChain([match, 'optionalAccess', _474 => _474.split, 'call', _475 => _475("="), 'access', _476 => _476[1]]);
15862
+ const stored = _optionalChain([match, 'optionalAccess', _476 => _476.split, 'call', _477 => _477("="), 'access', _478 => _478[1]]);
15863
15863
  if (stored === "true") setShowDetailsState(true);
15864
15864
  else if (stored === "false") setShowDetailsState(false);
15865
15865
  }, []);
@@ -15874,7 +15874,7 @@ function RoundPageContainer({
15874
15874
  const clip = isFixed ? `overflow-hidden` : ``;
15875
15875
  const scrollY = isFixed ? `overflow-y-auto` : ``;
15876
15876
  const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
15877
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _477 => _477.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15877
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _479 => _479.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15878
15878
  const setShowDetails = _react.useCallback.call(void 0,
15879
15879
  (value) => {
15880
15880
  setShowDetailsState(value);
@@ -15907,13 +15907,13 @@ function RoundPageContainer({
15907
15907
  } else {
15908
15908
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key }, mode: "push" });
15909
15909
  }
15910
- _optionalChain([onSectionChange, 'optionalCall', _478 => _478(key)]);
15910
+ _optionalChain([onSectionChange, 'optionalCall', _480 => _480(key)]);
15911
15911
  },
15912
15912
  [module, id, rewriteUrl, onSectionChange]
15913
15913
  );
15914
- const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _479 => _479.find, 'call', _480 => _480((t) => tabValue(t) === activeTab)]);
15915
- const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _481 => _481.fillHeight]) === true;
15916
- const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _482 => _482.constrainWidth]) === true;
15914
+ const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _481 => _481.find, 'call', _482 => _482((t) => tabValue(t) === activeTab)]);
15915
+ const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _483 => _483.fillHeight]) === true;
15916
+ const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _484 => _484.constrainWidth]) === true;
15917
15917
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
15918
15918
  const tabItems = _react.useMemo.call(void 0,
15919
15919
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
@@ -15924,7 +15924,7 @@ function RoundPageContainer({
15924
15924
  const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
15925
15925
  const innerClip = mobileFlow ? `` : clip;
15926
15926
  const innerScrollY = mobileFlow ? `` : scrollY;
15927
- const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _483 => _483.length]), () => ( 0))) > 1;
15927
+ const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _485 => _485.length]), () => ( 0))) > 1;
15928
15928
  if (!isReady) {
15929
15929
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
15930
15930
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -16324,14 +16324,14 @@ function BlockNoteEditorMentionHoverCard({
16324
16324
  const entityType = target.dataset.mentionType;
16325
16325
  const alias = target.dataset.mentionAlias;
16326
16326
  setHovered((prev) => {
16327
- if (_optionalChain([prev, 'optionalAccess', _484 => _484.id]) === id && _optionalChain([prev, 'optionalAccess', _485 => _485.element]) === target) return prev;
16327
+ if (_optionalChain([prev, 'optionalAccess', _486 => _486.id]) === id && _optionalChain([prev, 'optionalAccess', _487 => _487.element]) === target) return prev;
16328
16328
  return { id, entityType, alias, element: target };
16329
16329
  });
16330
16330
  }, "handleMouseOver");
16331
16331
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
16332
16332
  const target = e.target.closest("[data-mention-id]");
16333
16333
  if (!target) return;
16334
- const related = _optionalChain([e, 'access', _486 => _486.relatedTarget, 'optionalAccess', _487 => _487.closest, 'call', _488 => _488("[data-mention-id]")]);
16334
+ const related = _optionalChain([e, 'access', _488 => _488.relatedTarget, 'optionalAccess', _489 => _489.closest, 'call', _490 => _490("[data-mention-id]")]);
16335
16335
  if (related) return;
16336
16336
  scheduleClose();
16337
16337
  }, "handleMouseOut");
@@ -16345,7 +16345,7 @@ function BlockNoteEditorMentionHoverCard({
16345
16345
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
16346
16346
  if (!hovered || !mentionResolveFn) return null;
16347
16347
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
16348
- if (!_optionalChain([resolved, 'optionalAccess', _489 => _489.HoverContent])) return null;
16348
+ if (!_optionalChain([resolved, 'optionalAccess', _491 => _491.HoverContent])) return null;
16349
16349
  const ContentComponent = resolved.HoverContent;
16350
16350
  const rect = hovered.element.getBoundingClientRect();
16351
16351
  return _reactdom.createPortal.call(void 0,
@@ -16389,28 +16389,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
16389
16389
  }, "parseMentionElement");
16390
16390
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
16391
16391
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16392
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _490 => _490(props.id, props.entityType, props.alias)]), () => ( props.alias));
16392
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _492 => _492(props.id, props.entityType, props.alias)]), () => ( props.alias));
16393
16393
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
16394
16394
  "@",
16395
16395
  displayName
16396
16396
  ] });
16397
16397
  }, "MentionExternalHTML");
16398
16398
  const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
16399
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _491 => _491(props.id, props.entityType, props.alias)]), () => ( props.alias));
16399
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _493 => _493(props.id, props.entityType, props.alias)]), () => ( props.alias));
16400
16400
  if (disableMention) {
16401
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _492 => _492(props.id, props.entityType, displayName)]);
16402
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _493 => _493.url]), () => ( "#")), className: "text-primary", children: [
16401
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _494 => _494(props.id, props.entityType, displayName)]);
16402
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _495 => _495.url]), () => ( "#")), className: "text-primary", children: [
16403
16403
  "@",
16404
16404
  displayName
16405
16405
  ] });
16406
16406
  }
16407
- const resolved = _optionalChain([resolveFn, 'optionalCall', _494 => _494(props.id, props.entityType, displayName)]);
16408
- if (_optionalChain([resolved, 'optionalAccess', _495 => _495.Inline])) {
16407
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _496 => _496(props.id, props.entityType, displayName)]);
16408
+ if (_optionalChain([resolved, 'optionalAccess', _497 => _497.Inline])) {
16409
16409
  const Custom = resolved.Inline;
16410
16410
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
16411
16411
  }
16412
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _496 => _496.url]), () => ( "#"));
16413
- const handleClick = _optionalChain([resolved, 'optionalAccess', _497 => _497.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16412
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _498 => _498.url]), () => ( "#"));
16413
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _499 => _499.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
16414
16414
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
16415
16415
  _link2.default,
16416
16416
  {
@@ -16518,7 +16518,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16518
16518
  if (!suggestionMenuComponent) return void 0;
16519
16519
  const Component2 = suggestionMenuComponent;
16520
16520
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
16521
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _498 => _498.items, 'access', _499 => _499[0], 'optionalAccess', _500 => _500.title]) === KEEP_OPEN_SENTINEL_TITLE;
16521
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _500 => _500.items, 'access', _501 => _501[0], 'optionalAccess', _502 => _502.title]) === KEEP_OPEN_SENTINEL_TITLE;
16522
16522
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16523
16523
  Component2,
16524
16524
  {
@@ -16527,7 +16527,7 @@ function BlockNoteEditorMentionSuggestionMenu({
16527
16527
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
16528
16528
  onItemClick: (item) => {
16529
16529
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
16530
- _optionalChain([props, 'access', _501 => _501.onItemClick, 'optionalCall', _502 => _502(item)]);
16530
+ _optionalChain([props, 'access', _503 => _503.onItemClick, 'optionalCall', _504 => _504(item)]);
16531
16531
  }
16532
16532
  }
16533
16533
  );
@@ -16680,6 +16680,11 @@ var cellComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params
16680
16680
 
16681
16681
  // src/components/tables/cells/cell.date.tsx
16682
16682
 
16683
+ function DateCell({ date }) {
16684
+ const locale = _chunk4Z45NYPRjs.useI18nLocale.call(void 0, );
16685
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: date.toLocaleDateString(locale, { dateStyle: "medium" }) });
16686
+ }
16687
+ _chunk7QVYU63Ejs.__name.call(void 0, DateCell, "DateCell");
16683
16688
  var cellDate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
16684
16689
  return {
16685
16690
  id: params.name,
@@ -16688,7 +16693,7 @@ var cellDate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
16688
16693
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
16689
16694
  const date = row.getValue(params.name);
16690
16695
  if (!date) return null;
16691
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: date.toLocaleDateString("en", { dateStyle: "medium" }) });
16696
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateCell, { date });
16692
16697
  }, "cell"),
16693
16698
  enableSorting: false,
16694
16699
  enableHiding: false
@@ -16697,6 +16702,11 @@ var cellDate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) =>
16697
16702
 
16698
16703
  // src/components/tables/cells/cell.dateTime.tsx
16699
16704
 
16705
+ function DateTimeCell({ date }) {
16706
+ const locale = _chunk4Z45NYPRjs.useI18nLocale.call(void 0, );
16707
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: date.toLocaleString(locale, { dateStyle: "medium", timeStyle: "short", hour12: false }) });
16708
+ }
16709
+ _chunk7QVYU63Ejs.__name.call(void 0, DateTimeCell, "DateTimeCell");
16700
16710
  var cellDateTime = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
16701
16711
  return {
16702
16712
  id: params.name,
@@ -16705,7 +16715,7 @@ var cellDateTime = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params)
16705
16715
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
16706
16716
  const date = row.getValue(params.name);
16707
16717
  if (!date) return null;
16708
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: date.toLocaleString("en", { dateStyle: "medium", timeStyle: "short", hour12: false }) });
16718
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateTimeCell, { date });
16709
16719
  }, "cell"),
16710
16720
  enableSorting: false,
16711
16721
  enableHiding: false
@@ -16722,10 +16732,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
16722
16732
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16723
16733
  Checkbox,
16724
16734
  {
16725
- checked: _optionalChain([params, 'access', _503 => _503.checkedIds, 'optionalAccess', _504 => _504.includes, 'call', _505 => _505(row.getValue(params.name))]) || false,
16735
+ checked: _optionalChain([params, 'access', _505 => _505.checkedIds, 'optionalAccess', _506 => _506.includes, 'call', _507 => _507(row.getValue(params.name))]) || false,
16726
16736
  onCheckedChange: (value) => {
16727
16737
  row.toggleSelected(!!value);
16728
- _optionalChain([params, 'access', _506 => _506.toggleId, 'optionalCall', _507 => _507(row.getValue(params.name))]);
16738
+ _optionalChain([params, 'access', _508 => _508.toggleId, 'optionalCall', _509 => _509(row.getValue(params.name))]);
16729
16739
  },
16730
16740
  "aria-label": "Select row"
16731
16741
  }
@@ -16784,7 +16794,7 @@ function useJsonApiGet(params) {
16784
16794
  const [response, setResponse] = _react.useState.call(void 0, null);
16785
16795
  const isMounted = _react.useRef.call(void 0, true);
16786
16796
  const fetchData = _react.useCallback.call(void 0, async () => {
16787
- if (_optionalChain([params, 'access', _508 => _508.options, 'optionalAccess', _509 => _509.enabled]) === false) return;
16797
+ if (_optionalChain([params, 'access', _510 => _510.options, 'optionalAccess', _511 => _511.enabled]) === false) return;
16788
16798
  setLoading(true);
16789
16799
  setError(null);
16790
16800
  try {
@@ -16811,9 +16821,9 @@ function useJsonApiGet(params) {
16811
16821
  setLoading(false);
16812
16822
  }
16813
16823
  }
16814
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _510 => _510.options, 'optionalAccess', _511 => _511.enabled])]);
16824
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _512 => _512.options, 'optionalAccess', _513 => _513.enabled])]);
16815
16825
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
16816
- if (!_optionalChain([response, 'optionalAccess', _512 => _512.nextPage])) return;
16826
+ if (!_optionalChain([response, 'optionalAccess', _514 => _514.nextPage])) return;
16817
16827
  setLoading(true);
16818
16828
  try {
16819
16829
  const nextResponse = await response.nextPage();
@@ -16834,7 +16844,7 @@ function useJsonApiGet(params) {
16834
16844
  }
16835
16845
  }, [response]);
16836
16846
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
16837
- if (!_optionalChain([response, 'optionalAccess', _513 => _513.prevPage])) return;
16847
+ if (!_optionalChain([response, 'optionalAccess', _515 => _515.prevPage])) return;
16838
16848
  setLoading(true);
16839
16849
  try {
16840
16850
  const prevResponse = await response.prevPage();
@@ -16860,15 +16870,15 @@ function useJsonApiGet(params) {
16860
16870
  return () => {
16861
16871
  isMounted.current = false;
16862
16872
  };
16863
- }, [fetchData, ..._optionalChain([params, 'access', _514 => _514.options, 'optionalAccess', _515 => _515.deps]) || []]);
16873
+ }, [fetchData, ..._optionalChain([params, 'access', _516 => _516.options, 'optionalAccess', _517 => _517.deps]) || []]);
16864
16874
  return {
16865
16875
  data,
16866
16876
  loading,
16867
16877
  error,
16868
16878
  response,
16869
16879
  refetch: fetchData,
16870
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _516 => _516.next]),
16871
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _517 => _517.prev]),
16880
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _518 => _518.next]),
16881
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _519 => _519.prev]),
16872
16882
  fetchNextPage,
16873
16883
  fetchPreviousPage
16874
16884
  };
@@ -16946,17 +16956,17 @@ function useJsonApiMutation(config) {
16946
16956
  if (apiResponse.ok) {
16947
16957
  const resultData = apiResponse.data;
16948
16958
  setData(resultData);
16949
- _optionalChain([config, 'access', _518 => _518.onSuccess, 'optionalCall', _519 => _519(resultData)]);
16959
+ _optionalChain([config, 'access', _520 => _520.onSuccess, 'optionalCall', _521 => _521(resultData)]);
16950
16960
  return resultData;
16951
16961
  } else {
16952
16962
  setError(apiResponse.error);
16953
- _optionalChain([config, 'access', _520 => _520.onError, 'optionalCall', _521 => _521(apiResponse.error)]);
16963
+ _optionalChain([config, 'access', _522 => _522.onError, 'optionalCall', _523 => _523(apiResponse.error)]);
16954
16964
  return null;
16955
16965
  }
16956
16966
  } catch (err) {
16957
16967
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
16958
16968
  setError(errorMessage);
16959
- _optionalChain([config, 'access', _522 => _522.onError, 'optionalCall', _523 => _523(errorMessage)]);
16969
+ _optionalChain([config, 'access', _524 => _524.onError, 'optionalCall', _525 => _525(errorMessage)]);
16960
16970
  return null;
16961
16971
  } finally {
16962
16972
  setLoading(false);
@@ -17029,7 +17039,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17029
17039
  {
17030
17040
  href: hasRole(_chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
17031
17041
  page: "/administration",
17032
- id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access', _524 => _524.Company, 'access', _525 => _525.pageUrl, 'optionalAccess', _526 => _526.substring, 'call', _527 => _527(1)]),
17042
+ id: _optionalChain([_chunkCAKOFJZDjs.Modules, 'access', _526 => _526.Company, 'access', _527 => _527.pageUrl, 'optionalAccess', _528 => _528.substring, 'call', _529 => _529(1)]),
17033
17043
  childPage: company.id
17034
17044
  }) : generateUrl({ page: _chunkCAKOFJZDjs.Modules.Company, id: company.id }),
17035
17045
  children: row.getValue("name")
@@ -17045,7 +17055,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17045
17055
  })
17046
17056
  };
17047
17057
  const columns = _react.useMemo.call(void 0, () => {
17048
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _528 => _528[field], 'optionalCall', _529 => _529()])).filter((col) => col !== void 0);
17058
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _530 => _530[field], 'optionalCall', _531 => _531()])).filter((col) => col !== void 0);
17049
17059
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
17050
17060
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17051
17061
  }, "useCompanyTableStructure");
@@ -17057,7 +17067,7 @@ var GRACE_DAYS = 3;
17057
17067
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
17058
17068
  if (!currentUser || !_chunk4Z45NYPRjs.isRolesConfigured.call(void 0, )) return false;
17059
17069
  const adminRoleId = _chunk4Z45NYPRjs.getRoleId.call(void 0, ).Administrator;
17060
- return !!_optionalChain([currentUser, 'access', _530 => _530.roles, 'optionalAccess', _531 => _531.some, 'call', _532 => _532((role) => role.id === adminRoleId)]);
17070
+ return !!_optionalChain([currentUser, 'access', _532 => _532.roles, 'optionalAccess', _533 => _533.some, 'call', _534 => _534((role) => role.id === adminRoleId)]);
17061
17071
  }, "isAdministrator");
17062
17072
  function useSubscriptionStatus() {
17063
17073
  const { company, currentUser } = useCurrentUserContext();
@@ -17175,7 +17185,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
17175
17185
  })
17176
17186
  };
17177
17187
  const columns = _react.useMemo.call(void 0, () => {
17178
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _533 => _533[field], 'optionalCall', _534 => _534()])).filter((col) => col !== void 0);
17188
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _535 => _535[field], 'optionalCall', _536 => _536()])).filter((col) => col !== void 0);
17179
17189
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17180
17190
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17181
17191
  }, "useRoleTableStructure");
@@ -17220,8 +17230,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
17220
17230
  var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17221
17231
  const t = _nextintl.useTranslations.call(void 0, );
17222
17232
  const generateUrl = usePageUrlGenerator();
17223
- const onClone = _optionalChain([params, 'access', _535 => _535.context, 'optionalAccess', _536 => _536.onClone]);
17224
- const onExport = _optionalChain([params, 'access', _537 => _537.context, 'optionalAccess', _538 => _538.onExport]);
17233
+ const onClone = _optionalChain([params, 'access', _537 => _537.context, 'optionalAccess', _538 => _538.onClone]);
17234
+ const onExport = _optionalChain([params, 'access', _539 => _539.context, 'optionalAccess', _540 => _540.onExport]);
17225
17235
  const tableData = _react.useMemo.call(void 0, () => {
17226
17236
  return params.data.map((price) => {
17227
17237
  const entry = { jsonApiData: price };
@@ -17286,7 +17296,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17286
17296
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
17287
17297
  price.active ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGreen", children: t("billing.admin.prices.status.active") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("billing.admin.prices.status.archived") }),
17288
17298
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
17289
- _optionalChain([price, 'access', _539 => _539.recurring, 'optionalAccess', _540 => _540.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17299
+ _optionalChain([price, 'access', _541 => _541.recurring, 'optionalAccess', _542 => _542.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
17290
17300
  ] });
17291
17301
  }, "cell"),
17292
17302
  enableSorting: false,
@@ -17334,7 +17344,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
17334
17344
  })
17335
17345
  };
17336
17346
  const columns = _react.useMemo.call(void 0, () => {
17337
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _541 => _541[field], 'optionalCall', _542 => _542()])).filter((col) => col !== void 0);
17347
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _543 => _543[field], 'optionalCall', _544 => _544()])).filter((col) => col !== void 0);
17338
17348
  }, [params.fields, fieldColumnMap, t, generateUrl, onClone, onExport]);
17339
17349
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17340
17350
  }, "useStripePriceTableStructure");
@@ -17393,7 +17403,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
17393
17403
  })
17394
17404
  };
17395
17405
  const columns = _react.useMemo.call(void 0, () => {
17396
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _543 => _543[field], 'optionalCall', _544 => _544()])).filter((col) => col !== void 0);
17406
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _545 => _545[field], 'optionalCall', _546 => _546()])).filter((col) => col !== void 0);
17397
17407
  }, [params.fields, fieldColumnMap, t, generateUrl]);
17398
17408
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17399
17409
  }, "useStripeProductTableStructure");
@@ -17415,7 +17425,8 @@ function parseQuestionnaire(questionnaire) {
17415
17425
  _chunk7QVYU63Ejs.__name.call(void 0, parseQuestionnaire, "parseQuestionnaire");
17416
17426
  var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
17417
17427
  const t = _nextintl.useTranslations.call(void 0, );
17418
- const onInvite = _optionalChain([params, 'access', _545 => _545.context, 'optionalAccess', _546 => _546.onInvite]);
17428
+ const locale = _chunk4Z45NYPRjs.useI18nLocale.call(void 0, );
17429
+ const onInvite = _optionalChain([params, 'access', _547 => _547.context, 'optionalAccess', _548 => _548.onInvite]);
17419
17430
  const tableData = _react.useMemo.call(void 0, () => {
17420
17431
  return params.data.map((entry) => {
17421
17432
  const row = { jsonApiData: entry };
@@ -17460,7 +17471,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17460
17471
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
17461
17472
  const entry = row.original.jsonApiData;
17462
17473
  if (!entry.createdAt) return "-";
17463
- return new Date(entry.createdAt).toLocaleDateString();
17474
+ return new Date(entry.createdAt).toLocaleDateString(locale);
17464
17475
  }, "cell"),
17465
17476
  enableSorting: false,
17466
17477
  enableHiding: false
@@ -17495,13 +17506,13 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17495
17506
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
17496
17507
  const entry = row.original.jsonApiData;
17497
17508
  if (entry.status === "confirmed") {
17498
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _547 => _547(entry)]), children: [
17509
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _549 => _549(entry)]), children: [
17499
17510
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
17500
17511
  t("waitlist.admin.actions.invite")
17501
17512
  ] });
17502
17513
  }
17503
17514
  if (entry.status === "invited" && entry.invitedAt) {
17504
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: t("waitlist.admin.actions.invited_on", { date: new Date(entry.invitedAt).toLocaleDateString() }) });
17515
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-xs", children: t("waitlist.admin.actions.invited_on", { date: new Date(entry.invitedAt).toLocaleDateString(locale) }) });
17505
17516
  }
17506
17517
  if (entry.status === "registered") {
17507
17518
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground text-sm", children: t("waitlist.admin.actions.registered") });
@@ -17513,8 +17524,8 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
17513
17524
  })
17514
17525
  };
17515
17526
  const columns = _react.useMemo.call(void 0, () => {
17516
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _548 => _548[field], 'optionalCall', _549 => _549()])).filter((col) => col !== void 0);
17517
- }, [params.fields, fieldColumnMap, t]);
17527
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _550 => _550[field], 'optionalCall', _551 => _551()])).filter((col) => col !== void 0);
17528
+ }, [params.fields, fieldColumnMap, t, locale]);
17518
17529
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17519
17530
  }, "useWaitlistTableStructure");
17520
17531
 
@@ -17614,11 +17625,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
17614
17625
  return params.fields.map((field) => {
17615
17626
  const localHandler = fieldColumnMap[field];
17616
17627
  if (localHandler) return localHandler();
17617
- const customHandler = _optionalChain([params, 'access', _550 => _550.context, 'optionalAccess', _551 => _551.customCells, 'optionalAccess', _552 => _552[field]]);
17628
+ const customHandler = _optionalChain([params, 'access', _552 => _552.context, 'optionalAccess', _553 => _553.customCells, 'optionalAccess', _554 => _554[field]]);
17618
17629
  if (customHandler) return customHandler({ t });
17619
17630
  return void 0;
17620
17631
  }).filter((col) => col !== void 0);
17621
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _553 => _553.context, 'optionalAccess', _554 => _554.customCells])]);
17632
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _555 => _555.context, 'optionalAccess', _556 => _556.customCells])]);
17622
17633
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
17623
17634
  }, "useContentTableStructure");
17624
17635
 
@@ -17844,14 +17855,14 @@ function useOAuthConsent(params, options) {
17844
17855
  const [error, setError] = _react.useState.call(void 0, null);
17845
17856
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
17846
17857
  const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
17847
- const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _555 => _555(), 'optionalAccess', _556 => _556.company, 'optionalAccess', _557 => _557.id]);
17848
- const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _558 => _558.defaultCompanyId]), () => ( contextCompanyId));
17858
+ const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _557 => _557(), 'optionalAccess', _558 => _558.company, 'optionalAccess', _559 => _559.id]);
17859
+ const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _560 => _560.defaultCompanyId]), () => ( contextCompanyId));
17849
17860
  _react.useEffect.call(void 0, () => {
17850
- const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _559 => _559.companies]), () => ( []));
17861
+ const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _561 => _561.companies]), () => ( []));
17851
17862
  if (companies.length === 0) return;
17852
17863
  if (companyId && companies.some((company) => company.id === companyId)) return;
17853
17864
  const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
17854
- setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _560 => _560.id]), () => ( _optionalChain([companies, 'access', _561 => _561[0], 'optionalAccess', _562 => _562.id]))));
17865
+ setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _562 => _562.id]), () => ( _optionalChain([companies, 'access', _563 => _563[0], 'optionalAccess', _564 => _564.id]))));
17855
17866
  }, [clientInfo, currentCompanyId, companyId]);
17856
17867
  _react.useEffect.call(void 0, () => {
17857
17868
  const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
@@ -17969,7 +17980,7 @@ function ContentTableSearch({ data }) {
17969
17980
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
17970
17981
  if (!isExpanded) {
17971
17982
  setIsFocused(true);
17972
- setTimeout(() => _optionalChain([inputRef, 'access', _563 => _563.current, 'optionalAccess', _564 => _564.focus, 'call', _565 => _565()]), 50);
17983
+ setTimeout(() => _optionalChain([inputRef, 'access', _565 => _565.current, 'optionalAccess', _566 => _566.focus, 'call', _567 => _567()]), 50);
17973
17984
  }
17974
17985
  }, "handleSearchIconClick");
17975
17986
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -18055,7 +18066,7 @@ function getGroupKeys(item, field) {
18055
18066
  return [String(_nullishCoalesce(value, () => ( "")))];
18056
18067
  }
18057
18068
  _chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
18058
- var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _566 => _566.prototype, 'optionalAccess', _567 => _567.isReactComponent]), "isClassComponent");
18069
+ var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _568 => _568.prototype, 'optionalAccess', _569 => _569.isReactComponent]), "isClassComponent");
18059
18070
  function StableCell({ render, context }) {
18060
18071
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
18061
18072
  }
@@ -18079,7 +18090,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18079
18090
  if (data.isLoaded) setPendingDirection(null);
18080
18091
  }, [data.isLoaded]);
18081
18092
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
18082
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _568 => _568.data]), () => ( EMPTY_ARRAY)),
18093
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _570 => _570.data]), () => ( EMPTY_ARRAY)),
18083
18094
  fields,
18084
18095
  checkedIds,
18085
18096
  toggleId,
@@ -18103,7 +18114,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18103
18114
  ...props.renderExpandedRow && {
18104
18115
  getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
18105
18116
  // Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
18106
- getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _569 => _569.jsonApiData, 'optionalAccess', _570 => _570.id]), () => ( String(index))), "getRowId"),
18117
+ getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _571 => _571.jsonApiData, 'optionalAccess', _572 => _572.id]), () => ( String(index))), "getRowId"),
18107
18118
  getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
18108
18119
  onExpandedChange: setExpanded,
18109
18120
  state: { expanded }
@@ -18120,7 +18131,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18120
18131
  });
18121
18132
  const rowModel = tableData ? table.getRowModel() : null;
18122
18133
  const groupedRows = _react.useMemo.call(void 0, () => {
18123
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _571 => _571.rows, 'optionalAccess', _572 => _572.length])) return null;
18134
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _573 => _573.rows, 'optionalAccess', _574 => _574.length])) return null;
18124
18135
  const groupMap = /* @__PURE__ */ new Map();
18125
18136
  for (const row of rowModel.rows) {
18126
18137
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -18199,20 +18210,20 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18199
18210
  ) }),
18200
18211
  !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
18201
18212
  const meta = header.column.columnDef.meta;
18202
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _573 => _573.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18213
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _575 => _575.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
18203
18214
  }) }, headerGroup.id))
18204
18215
  ] }),
18205
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _574 => _574.rows, 'optionalAccess', _575 => _575.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _576 => _576.groupLabel, 'optionalCall', _577 => _577(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18216
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _576 => _576.rows, 'optionalAccess', _577 => _577.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18217
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _578 => _578.groupLabel, 'optionalCall', _579 => _579(group.groupKey)]), () => ( group.groupKey)) }) }) }),
18207
18218
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
18208
18219
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18209
18220
  TableRow,
18210
18221
  {
18211
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _578 => _578(row.original.jsonApiData)]),
18222
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _580 => _580(row.original.jsonApiData)]),
18212
18223
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18213
18224
  children: row.getVisibleCells().map((cell) => {
18214
18225
  const meta = cell.column.columnDef.meta;
18215
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _579 => _579.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18226
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _581 => _581.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18216
18227
  })
18217
18228
  }
18218
18229
  ),
@@ -18222,11 +18233,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18222
18233
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18223
18234
  TableRow,
18224
18235
  {
18225
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _580 => _580(row.original.jsonApiData)]),
18236
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _582 => _582(row.original.jsonApiData)]),
18226
18237
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
18227
18238
  children: row.getVisibleCells().map((cell) => {
18228
18239
  const meta = cell.column.columnDef.meta;
18229
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _581 => _581.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18240
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _583 => _583.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
18230
18241
  })
18231
18242
  }
18232
18243
  ),
@@ -18241,7 +18252,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18241
18252
  onClick: (e) => {
18242
18253
  e.preventDefault();
18243
18254
  setPendingDirection("prev");
18244
- _optionalChain([data, 'access', _582 => _582.previous, 'optionalCall', _583 => _583(true)]);
18255
+ _optionalChain([data, 'access', _584 => _584.previous, 'optionalCall', _585 => _585(true)]);
18245
18256
  },
18246
18257
  disabled: !data.previous || pendingDirection !== null,
18247
18258
  children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" })
@@ -18256,7 +18267,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
18256
18267
  onClick: (e) => {
18257
18268
  e.preventDefault();
18258
18269
  setPendingDirection("next");
18259
- _optionalChain([data, 'access', _584 => _584.next, 'optionalCall', _585 => _585(true)]);
18270
+ _optionalChain([data, 'access', _586 => _586.next, 'optionalCall', _587 => _587(true)]);
18260
18271
  },
18261
18272
  disabled: !data.next || pendingDirection !== null,
18262
18273
  children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4 rtl:rotate-180" })
@@ -18278,7 +18289,7 @@ function ContentListGrid(props) {
18278
18289
  if (!data.next || !sentinelRef.current) return;
18279
18290
  const observer = new IntersectionObserver(
18280
18291
  (entries) => {
18281
- if (_optionalChain([entries, 'access', _586 => _586[0], 'optionalAccess', _587 => _587.isIntersecting])) _optionalChain([data, 'access', _588 => _588.next, 'optionalCall', _589 => _589()]);
18292
+ if (_optionalChain([entries, 'access', _588 => _588[0], 'optionalAccess', _589 => _589.isIntersecting])) _optionalChain([data, 'access', _590 => _590.next, 'optionalCall', _591 => _591()]);
18282
18293
  },
18283
18294
  { threshold: 0.1, rootMargin: "200px" }
18284
18295
  );
@@ -19065,7 +19076,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19065
19076
  newDigits[index] = digit;
19066
19077
  setDigits(newDigits);
19067
19078
  if (digit && index < 5) {
19068
- _optionalChain([inputRefs, 'access', _590 => _590.current, 'access', _591 => _591[index + 1], 'optionalAccess', _592 => _592.focus, 'call', _593 => _593()]);
19079
+ _optionalChain([inputRefs, 'access', _592 => _592.current, 'access', _593 => _593[index + 1], 'optionalAccess', _594 => _594.focus, 'call', _595 => _595()]);
19069
19080
  }
19070
19081
  const code = newDigits.join("");
19071
19082
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -19074,7 +19085,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19074
19085
  }, "handleChange");
19075
19086
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
19076
19087
  if (e.key === "Backspace" && !digits[index] && index > 0) {
19077
- _optionalChain([inputRefs, 'access', _594 => _594.current, 'access', _595 => _595[index - 1], 'optionalAccess', _596 => _596.focus, 'call', _597 => _597()]);
19088
+ _optionalChain([inputRefs, 'access', _596 => _596.current, 'access', _597 => _597[index - 1], 'optionalAccess', _598 => _598.focus, 'call', _599 => _599()]);
19078
19089
  }
19079
19090
  }, "handleKeyDown");
19080
19091
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -19083,7 +19094,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
19083
19094
  if (pastedData.length === 6) {
19084
19095
  const newDigits = pastedData.split("");
19085
19096
  setDigits(newDigits);
19086
- _optionalChain([inputRefs, 'access', _598 => _598.current, 'access', _599 => _599[5], 'optionalAccess', _600 => _600.focus, 'call', _601 => _601()]);
19097
+ _optionalChain([inputRefs, 'access', _600 => _600.current, 'access', _601 => _601[5], 'optionalAccess', _602 => _602.focus, 'call', _603 => _603()]);
19087
19098
  onComplete(pastedData);
19088
19099
  }
19089
19100
  }, "handlePaste");
@@ -19163,6 +19174,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, DisableTwoFactorDialog, "DisableTwoFactorDi
19163
19174
 
19164
19175
  function PasskeyList({ passkeys, onRefresh }) {
19165
19176
  const t = _nextintl.useTranslations.call(void 0, );
19177
+ const locale = _chunk4Z45NYPRjs.useI18nLocale.call(void 0, );
19166
19178
  const [renameDialogOpen, setRenameDialogOpen] = _react.useState.call(void 0, false);
19167
19179
  const [selectedPasskey, setSelectedPasskey] = _react.useState.call(void 0, null);
19168
19180
  const [newName, setNewName] = _react.useState.call(void 0, "");
@@ -19224,7 +19236,7 @@ function PasskeyList({ passkeys, onRefresh }) {
19224
19236
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-medium", children: passkey.name }),
19225
19237
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-sm text-muted-foreground", children: [
19226
19238
  passkey.backedUp && "\u2601\uFE0F ",
19227
- passkey.lastUsedAt ? `${t("auth.two_factor.last_used")}: ${new Date(passkey.lastUsedAt).toLocaleDateString()}` : t("auth.two_factor.never_used")
19239
+ passkey.lastUsedAt ? `${t("auth.two_factor.last_used")}: ${new Date(passkey.lastUsedAt).toLocaleDateString(locale)}` : t("auth.two_factor.never_used")
19228
19240
  ] })
19229
19241
  ] })
19230
19242
  ] }),
@@ -19294,8 +19306,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
19294
19306
  try {
19295
19307
  const registrationData = await _chunkCAKOFJZDjs.TwoFactorService.getPasskeyRegistrationOptions({
19296
19308
  id: _uuid.v4.call(void 0, ),
19297
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _602 => _602.email]), () => ( "")),
19298
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _603 => _603.name])
19309
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _604 => _604.email]), () => ( "")),
19310
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _605 => _605.name])
19299
19311
  });
19300
19312
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
19301
19313
  await _chunkCAKOFJZDjs.TwoFactorService.verifyPasskeyRegistration({
@@ -19355,6 +19367,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, PasskeySetupDialog, "PasskeySetupDialog");
19355
19367
 
19356
19368
  function TotpAuthenticatorList({ authenticators, onDelete }) {
19357
19369
  const t = _nextintl.useTranslations.call(void 0, );
19370
+ const locale = _chunk4Z45NYPRjs.useI18nLocale.call(void 0, );
19358
19371
  const [deletingId, setDeletingId] = _react.useState.call(void 0, null);
19359
19372
  const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (id) => {
19360
19373
  setDeletingId(id);
@@ -19381,7 +19394,7 @@ function TotpAuthenticatorList({ authenticators, onDelete }) {
19381
19394
  auth.lastUsedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-xs text-muted-foreground", children: [
19382
19395
  t("auth.two_factor.last_used"),
19383
19396
  ": ",
19384
- auth.lastUsedAt.toLocaleDateString()
19397
+ auth.lastUsedAt.toLocaleDateString(locale)
19385
19398
  ] })
19386
19399
  ] })
19387
19400
  ] }),
@@ -19446,7 +19459,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
19446
19459
  const setup = await _chunkCAKOFJZDjs.TwoFactorService.setupTotp({
19447
19460
  id: _uuid.v4.call(void 0, ),
19448
19461
  name: name.trim(),
19449
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _604 => _604.email]), () => ( ""))
19462
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _606 => _606.email]), () => ( ""))
19450
19463
  });
19451
19464
  setQrCodeUri(setup.qrCodeUri);
19452
19465
  setAuthenticatorId(setup.authenticatorId);
@@ -19580,7 +19593,7 @@ function TwoFactorSettings() {
19580
19593
  if (isLoading) {
19581
19594
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground", children: t("common.loading") }) }) });
19582
19595
  }
19583
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _605 => _605.isEnabled]), () => ( false));
19596
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _607 => _607.isEnabled]), () => ( false));
19584
19597
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
19585
19598
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
19586
19599
  isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "text-success h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "text-warning h-6 w-6" }),
@@ -19618,7 +19631,7 @@ function TwoFactorSettings() {
19618
19631
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
19619
19632
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
19620
19633
  ] }),
19621
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _606 => _606.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19634
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _608 => _608.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
19622
19635
  ] }) }),
19623
19636
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
19624
19637
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -19796,9 +19809,9 @@ function AcceptInvitation() {
19796
19809
  });
19797
19810
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
19798
19811
  try {
19799
- if (!_optionalChain([params, 'optionalAccess', _607 => _607.code])) return;
19812
+ if (!_optionalChain([params, 'optionalAccess', _609 => _609.code])) return;
19800
19813
  const payload = {
19801
- code: _optionalChain([params, 'optionalAccess', _608 => _608.code]),
19814
+ code: _optionalChain([params, 'optionalAccess', _610 => _610.code]),
19802
19815
  password: values.password
19803
19816
  };
19804
19817
  await _chunkCAKOFJZDjs.AuthService.acceptInvitation(payload);
@@ -20169,14 +20182,14 @@ function RefreshUser() {
20169
20182
  setUser(fullUser);
20170
20183
  const token = {
20171
20184
  userId: fullUser.id,
20172
- companyId: _optionalChain([fullUser, 'access', _609 => _609.company, 'optionalAccess', _610 => _610.id]),
20185
+ companyId: _optionalChain([fullUser, 'access', _611 => _611.company, 'optionalAccess', _612 => _612.id]),
20173
20186
  roles: fullUser.roles.map((role) => role.id),
20174
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _611 => _611.company, 'optionalAccess', _612 => _612.features, 'optionalAccess', _613 => _613.map, 'call', _614 => _614((feature) => feature.id)]), () => ( [])),
20187
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _613 => _613.company, 'optionalAccess', _614 => _614.features, 'optionalAccess', _615 => _615.map, 'call', _616 => _616((feature) => feature.id)]), () => ( [])),
20175
20188
  modules: fullUser.modules.map((module) => {
20176
20189
  return { id: module.id, permissions: module.permissions };
20177
20190
  })
20178
20191
  };
20179
- await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _615 => _615.updateToken, 'call', _616 => _616(token)]);
20192
+ await _optionalChain([_chunkCAKOFJZDjs.getTokenHandler.call(void 0, ), 'optionalAccess', _617 => _617.updateToken, 'call', _618 => _618(token)]);
20180
20193
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
20181
20194
  }
20182
20195
  }, "loadFullUser");
@@ -20240,9 +20253,9 @@ function ResetPassword() {
20240
20253
  });
20241
20254
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
20242
20255
  try {
20243
- if (!_optionalChain([params, 'optionalAccess', _617 => _617.code])) return;
20256
+ if (!_optionalChain([params, 'optionalAccess', _619 => _619.code])) return;
20244
20257
  const payload = {
20245
- code: _optionalChain([params, 'optionalAccess', _618 => _618.code]),
20258
+ code: _optionalChain([params, 'optionalAccess', _620 => _620.code]),
20246
20259
  password: values.password
20247
20260
  };
20248
20261
  await _chunkCAKOFJZDjs.AuthService.resetPassword(payload);
@@ -20777,7 +20790,7 @@ function AiConnectionEditor({
20777
20790
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
20778
20791
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
20779
20792
  const fieldsFor = _react.useCallback.call(void 0,
20780
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _619 => _619.find, 'call', _620 => _620((row) => row.provider === provider), 'optionalAccess', _621 => _621.fields]), () => ( [])),
20793
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _621 => _621.find, 'call', _622 => _622((row) => row.provider === provider), 'optionalAccess', _623 => _623.fields]), () => ( [])),
20781
20794
  [registryRows]
20782
20795
  );
20783
20796
  const defaultsFor = _react.useCallback.call(void 0,
@@ -20786,7 +20799,7 @@ function AiConnectionEditor({
20786
20799
  const seeded = {};
20787
20800
  fieldsFor(provider).forEach((descriptor) => {
20788
20801
  if (descriptor.kind === "boolean") {
20789
- const current2 = _optionalChain([stored, 'optionalAccess', _622 => _622[descriptor.field]]);
20802
+ const current2 = _optionalChain([stored, 'optionalAccess', _624 => _624[descriptor.field]]);
20790
20803
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
20791
20804
  return;
20792
20805
  }
@@ -20794,7 +20807,7 @@ function AiConnectionEditor({
20794
20807
  seeded[descriptor.field] = "";
20795
20808
  return;
20796
20809
  }
20797
- const current = _optionalChain([stored, 'optionalAccess', _623 => _623[descriptor.field]]);
20810
+ const current = _optionalChain([stored, 'optionalAccess', _625 => _625[descriptor.field]]);
20798
20811
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
20799
20812
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
20800
20813
  });
@@ -20820,7 +20833,7 @@ function AiConnectionEditor({
20820
20833
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
20821
20834
  }).superRefine((data, ctx) => {
20822
20835
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
20823
- const value = _optionalChain([data, 'access', _624 => _624.values, 'optionalAccess', _625 => _625[descriptor.field]]);
20836
+ const value = _optionalChain([data, 'access', _626 => _626.values, 'optionalAccess', _627 => _627[descriptor.field]]);
20824
20837
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
20825
20838
  if (filled) return;
20826
20839
  ctx.addIssue({
@@ -20834,11 +20847,11 @@ function AiConnectionEditor({
20834
20847
  );
20835
20848
  const getDefaultValues = _react.useCallback.call(void 0,
20836
20849
  () => ({
20837
- id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _626 => _626.id]), () => ( _uuid.v4.call(void 0, ))),
20838
- name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _627 => _627.name]), () => ( "")),
20839
- provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _628 => _628.provider]), () => ( providers[0])), () => ( "")),
20840
- enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _629 => _629.enabled]), () => ( true)),
20841
- values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _630 => _630.provider]), () => ( providers[0])), () => ( "")))
20850
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _628 => _628.id]), () => ( _uuid.v4.call(void 0, ))),
20851
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _629 => _629.name]), () => ( "")),
20852
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _630 => _630.provider]), () => ( providers[0])), () => ( "")),
20853
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _631 => _631.enabled]), () => ( true)),
20854
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _632 => _632.provider]), () => ( providers[0])), () => ( "")))
20842
20855
  }),
20843
20856
  [connection, providers, defaultsFor]
20844
20857
  );
@@ -20849,7 +20862,7 @@ function AiConnectionEditor({
20849
20862
  _react.useEffect.call(void 0, () => {
20850
20863
  if (registryRows.length === 0) return;
20851
20864
  const currentProvider = form.getValues("provider");
20852
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _631 => _631.provider]) || providers[0] || "";
20865
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _633 => _633.provider]) || providers[0] || "";
20853
20866
  if (!provider) return;
20854
20867
  if (provider !== currentProvider) form.setValue("provider", provider);
20855
20868
  const currentValues = form.getValues("values");
@@ -20920,7 +20933,7 @@ function AiConnectionEditor({
20920
20933
  {
20921
20934
  form,
20922
20935
  entityType: t("ai_connections.admin.entity"),
20923
- entityName: _optionalChain([connection, 'optionalAccess', _632 => _632.name]),
20936
+ entityName: _optionalChain([connection, 'optionalAccess', _634 => _634.name]),
20924
20937
  isEdit,
20925
20938
  module: _chunkCAKOFJZDjs.Modules.AiConnection,
20926
20939
  size: "md",
@@ -20928,7 +20941,7 @@ function AiConnectionEditor({
20928
20941
  onSubmit: async (values) => {
20929
20942
  const attributes = {};
20930
20943
  fieldsFor(values.provider).forEach((descriptor) => {
20931
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _633 => _633.values, 'optionalAccess', _634 => _634[descriptor.field]]));
20944
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _635 => _635.values, 'optionalAccess', _636 => _636[descriptor.field]]));
20932
20945
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
20933
20946
  });
20934
20947
  const payload = {
@@ -21158,7 +21171,7 @@ function AiConnectionTypeCard({ connectionType }) {
21158
21171
  ),
21159
21172
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
21160
21173
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
21161
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _635 => _635.provider]), _optionalChain([envDefault, 'optionalAccess', _636 => _636.model]), _optionalChain([envDefault, 'optionalAccess', _637 => _637.url])].filter(Boolean).join(" \xB7 ") })
21174
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _637 => _637.provider]), _optionalChain([envDefault, 'optionalAccess', _638 => _638.model]), _optionalChain([envDefault, 'optionalAccess', _639 => _639.url])].filter(Boolean).join(" \xB7 ") })
21162
21175
  ] })
21163
21176
  ] })
21164
21177
  ] })
@@ -21356,7 +21369,7 @@ function extractHeadings(blocks) {
21356
21369
  function processBlocks(blockArray) {
21357
21370
  for (const block of blockArray) {
21358
21371
  if (block.type === "heading") {
21359
- const level = _optionalChain([block, 'access', _638 => _638.props, 'optionalAccess', _639 => _639.level]) || 1;
21372
+ const level = _optionalChain([block, 'access', _640 => _640.props, 'optionalAccess', _641 => _641.level]) || 1;
21360
21373
  const text = extractTextFromContent(block.content);
21361
21374
  if (text.trim()) {
21362
21375
  headings.push({
@@ -21698,7 +21711,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
21698
21711
  })
21699
21712
  };
21700
21713
  const columns = _react.useMemo.call(void 0, () => {
21701
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _640 => _640[field], 'optionalCall', _641 => _641()])).filter((col) => col !== void 0);
21714
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _642 => _642[field], 'optionalCall', _643 => _643()])).filter((col) => col !== void 0);
21702
21715
  }, [params.fields, fieldColumnMap, t, generateUrl]);
21703
21716
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
21704
21717
  }, "useHowToTableStructure");
@@ -21824,7 +21837,7 @@ function HowToSelector({
21824
21837
  }, "setHowTo");
21825
21838
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
21826
21839
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
21827
- /* @__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, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _642 => _642.value, 'optionalAccess', _643 => _643.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
21840
+ /* @__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, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _644 => _644.value, 'optionalAccess', _645 => _645.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
21828
21841
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21829
21842
  _lucidereact.CircleX,
21830
21843
  {
@@ -22126,10 +22139,10 @@ function CitationsTab({ citations, sources }) {
22126
22139
  ] }) }),
22127
22140
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
22128
22141
  const isOpen = expanded.has(chunk.id);
22129
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _644 => _644.get, 'call', _645 => _645(chunk.nodeId)]) : void 0;
22142
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _646 => _646.get, 'call', _647 => _647(chunk.nodeId)]) : void 0;
22130
22143
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
22131
22144
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
22132
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _646 => _646.name]), () => ( fallbackName));
22145
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _648 => _648.name]), () => ( fallbackName));
22133
22146
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
22134
22147
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
22135
22148
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -22193,7 +22206,7 @@ function ContentsTab({ citations, sources }) {
22193
22206
  for (const c of citations) {
22194
22207
  const id = c.nodeId;
22195
22208
  if (!id) continue;
22196
- const source = _optionalChain([sources, 'optionalAccess', _647 => _647.get, 'call', _648 => _648(id)]);
22209
+ const source = _optionalChain([sources, 'optionalAccess', _649 => _649.get, 'call', _650 => _650(id)]);
22197
22210
  if (!source) continue;
22198
22211
  const existing = map.get(id);
22199
22212
  if (existing) {
@@ -22260,7 +22273,7 @@ function UsersTab({ users, citations, sources }) {
22260
22273
  const generate = usePageUrlGenerator();
22261
22274
  const userMap = /* @__PURE__ */ new Map();
22262
22275
  for (const u of users) {
22263
- if (!_optionalChain([u, 'optionalAccess', _649 => _649.id])) continue;
22276
+ if (!_optionalChain([u, 'optionalAccess', _651 => _651.id])) continue;
22264
22277
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
22265
22278
  }
22266
22279
  if (citations && sources) {
@@ -22365,7 +22378,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
22365
22378
  }
22366
22379
  return ids.size;
22367
22380
  }, [message.citations, sources]);
22368
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _650 => _650.length]), () => ( 0));
22381
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _652 => _652.length]), () => ( 0));
22369
22382
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
22370
22383
  const visibleTabs = [];
22371
22384
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -22508,7 +22521,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
22508
22521
  return void 0;
22509
22522
  }
22510
22523
  })()));
22511
- if (_optionalChain([author, 'optionalAccess', _651 => _651.id])) userMap.set(author.id, author);
22524
+ if (_optionalChain([author, 'optionalAccess', _653 => _653.id])) userMap.set(author.id, author);
22512
22525
  }
22513
22526
  return Array.from(userMap.values());
22514
22527
  }, [resolved]);
@@ -22543,7 +22556,7 @@ function MessageItem({
22543
22556
  }) {
22544
22557
  const t = _nextintl.useTranslations.call(void 0, );
22545
22558
  const isUser = message.role === "user";
22546
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _652 => _652.has, 'call', _653 => _653(message.id)]);
22559
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _654 => _654.has, 'call', _655 => _655(message.id)]);
22547
22560
  const markdownComponents = _react.useMemo.call(void 0,
22548
22561
  () => ({
22549
22562
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -22560,7 +22573,7 @@ function MessageItem({
22560
22573
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
22561
22574
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
22562
22575
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
22563
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _654 => _654(message.id)]), children: t("features.assistant.retry") })
22576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _656 => _656(message.id)]), children: t("features.assistant.retry") })
22564
22577
  ] })
22565
22578
  ] });
22566
22579
  }
@@ -22651,7 +22664,7 @@ function AssistantThread({
22651
22664
  }) {
22652
22665
  const lastMessageRef = _react.useRef.call(void 0, null);
22653
22666
  _react.useEffect.call(void 0, () => {
22654
- _optionalChain([lastMessageRef, 'access', _655 => _655.current, 'optionalAccess', _656 => _656.scrollIntoView, 'call', _657 => _657({ block: "start", behavior: "smooth" })]);
22667
+ _optionalChain([lastMessageRef, 'access', _657 => _657.current, 'optionalAccess', _658 => _658.scrollIntoView, 'call', _659 => _659({ block: "start", behavior: "smooth" })]);
22655
22668
  }, [messages.length, sending]);
22656
22669
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 overflow-x-hidden overflow-y-auto px-6 py-5", children: [
22657
22670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -22690,7 +22703,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
22690
22703
  return _chunkCAKOFJZDjs.rehydrate.call(void 0, _chunkCAKOFJZDjs.Modules.HandbookThreadMessage, {
22691
22704
  jsonApi: {
22692
22705
  ...dehydrated.jsonApi,
22693
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _658 => _658.jsonApi, 'optionalAccess', _659 => _659.attributes]), () => ( {})), content }
22706
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _660 => _660.jsonApi, 'optionalAccess', _661 => _661.attributes]), () => ( {})), content }
22694
22707
  },
22695
22708
  included: dehydrated.included
22696
22709
  });
@@ -22699,8 +22712,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
22699
22712
  function useHandbookAsk(params) {
22700
22713
  const t = _nextintl.useTranslations.call(void 0, );
22701
22714
  const generateUrl = usePageUrlGenerator();
22702
- const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _660 => _660.syncUrl]), () => ( true));
22703
- const handbookThreadId = _optionalChain([params, 'optionalAccess', _661 => _661.handbookThreadId]);
22715
+ const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _662 => _662.syncUrl]), () => ( true));
22716
+ const handbookThreadId = _optionalChain([params, 'optionalAccess', _663 => _663.handbookThreadId]);
22704
22717
  const [threads, setThreads] = _react.useState.call(void 0, []);
22705
22718
  const [thread, setThread] = _react.useState.call(void 0, void 0);
22706
22719
  const [messages, setMessages] = _react.useState.call(void 0, []);
@@ -22762,12 +22775,12 @@ function useHandbookAsk(params) {
22762
22775
  ]);
22763
22776
  setSending(true);
22764
22777
  try {
22765
- let id = _optionalChain([thread, 'optionalAccess', _662 => _662.id]);
22778
+ let id = _optionalChain([thread, 'optionalAccess', _664 => _664.id]);
22766
22779
  if (id === void 0) {
22767
22780
  const created = await _chunkCAKOFJZDjs.HandbookThreadService.create({
22768
22781
  id: _uuid.v4.call(void 0, ),
22769
22782
  question: trimmed,
22770
- handbookPageId: _optionalChain([options, 'optionalAccess', _663 => _663.handbookPageId])
22783
+ handbookPageId: _optionalChain([options, 'optionalAccess', _665 => _665.handbookPageId])
22771
22784
  });
22772
22785
  id = created.id;
22773
22786
  setThreads((current) => [created, ...current]);
@@ -22776,7 +22789,7 @@ function useHandbookAsk(params) {
22776
22789
  id: _uuid.v4.call(void 0, ),
22777
22790
  threadId: id,
22778
22791
  question: trimmed,
22779
- handbookPageId: _optionalChain([options, 'optionalAccess', _664 => _664.handbookPageId])
22792
+ handbookPageId: _optionalChain([options, 'optionalAccess', _666 => _666.handbookPageId])
22780
22793
  });
22781
22794
  }
22782
22795
  const loaded = await _chunkCAKOFJZDjs.HandbookThreadService.findOne({ id });
@@ -22797,7 +22810,7 @@ function useHandbookAsk(params) {
22797
22810
  setSending(false);
22798
22811
  }
22799
22812
  },
22800
- [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _665 => _665.id])]
22813
+ [messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _667 => _667.id])]
22801
22814
  );
22802
22815
  return { threads, thread, messages, sending, ask, selectThread, startNew };
22803
22816
  }
@@ -23353,7 +23366,7 @@ function HandbookPageContainer({ handbookPageId }) {
23353
23366
  };
23354
23367
  }, []);
23355
23368
  const section = _react.useMemo.call(void 0,
23356
- () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _666 => _666.section])),
23369
+ () => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _668 => _668.section])),
23357
23370
  [sections, handbookPage]
23358
23371
  );
23359
23372
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23442,7 +23455,7 @@ function AssistantSidebar({
23442
23455
  className: "block w-full truncate rounded-md px-2 py-1.5 text-start text-sm " + (activeId === thread.id ? "bg-primary/10 text-primary" : "hover:bg-muted text-foreground"),
23443
23456
  children: [
23444
23457
  thread.title,
23445
- _optionalChain([renderThreadBadge, 'optionalCall', _667 => _667(thread)])
23458
+ _optionalChain([renderThreadBadge, 'optionalCall', _669 => _669(thread)])
23446
23459
  ]
23447
23460
  },
23448
23461
  thread.id
@@ -23478,7 +23491,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23478
23491
  AssistantSidebar,
23479
23492
  {
23480
23493
  threads,
23481
- activeId: _optionalChain([thread, 'optionalAccess', _668 => _668.id]),
23494
+ activeId: _optionalChain([thread, 'optionalAccess', _670 => _670.id]),
23482
23495
  onSelect: selectThread,
23483
23496
  onNew: startNew,
23484
23497
  newLabel: t("handbook.chat.new"),
@@ -23486,7 +23499,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23486
23499
  }
23487
23500
  ) })
23488
23501
  ),
23489
- [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _669 => _669.id]), threads]
23502
+ [selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _671 => _671.id]), threads]
23490
23503
  );
23491
23504
  return (
23492
23505
  // `RoundPageContainer` reads the page heading from the shared context, and
@@ -23498,7 +23511,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
23498
23511
  RoundPageContainer,
23499
23512
  {
23500
23513
  module: _chunkCAKOFJZDjs.Modules.HandbookPage,
23501
- id: _optionalChain([thread, 'optionalAccess', _670 => _670.id]),
23514
+ id: _optionalChain([thread, 'optionalAccess', _672 => _672.id]),
23502
23515
  fullWidth: true,
23503
23516
  forceHeader: true,
23504
23517
  defaultDetailsOpen: true,
@@ -23550,7 +23563,7 @@ function EntityMentionLinkView({ type, id, alias }) {
23550
23563
  } catch (e25) {
23551
23564
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23552
23565
  }
23553
- if (!_optionalChain([module, 'optionalAccess', _671 => _671.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23566
+ if (!_optionalChain([module, 'optionalAccess', _673 => _673.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
23554
23567
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
23555
23568
  }
23556
23569
  _chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
@@ -23682,13 +23695,13 @@ function AssistantContainer({
23682
23695
  AssistantSidebar,
23683
23696
  {
23684
23697
  threads: ctx.threads,
23685
- activeId: _optionalChain([ctx, 'access', _672 => _672.assistant, 'optionalAccess', _673 => _673.id]),
23698
+ activeId: _optionalChain([ctx, 'access', _674 => _674.assistant, 'optionalAccess', _675 => _675.id]),
23686
23699
  onSelect: ctx.selectThread,
23687
23700
  renderThreadBadge
23688
23701
  }
23689
23702
  ) })
23690
23703
  ),
23691
- [ctx.threads, _optionalChain([ctx, 'access', _674 => _674.assistant, 'optionalAccess', _675 => _675.id]), ctx.selectThread, renderThreadBadge]
23704
+ [ctx.threads, _optionalChain([ctx, 'access', _676 => _676.assistant, 'optionalAccess', _677 => _677.id]), ctx.selectThread, renderThreadBadge]
23692
23705
  );
23693
23706
  const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23694
23707
  AssistantEmptyState,
@@ -23696,7 +23709,7 @@ function AssistantContainer({
23696
23709
  onSend: ctx.sendMessage,
23697
23710
  operatorMode: ctx.operatorMode,
23698
23711
  onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
23699
- composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _676 => _676()])
23712
+ composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _678 => _678()])
23700
23713
  }
23701
23714
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
23702
23715
  ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -23728,7 +23741,7 @@ function AssistantContainer({
23728
23741
  AssistantSidebar,
23729
23742
  {
23730
23743
  threads: ctx.threads,
23731
- activeId: _optionalChain([ctx, 'access', _677 => _677.assistant, 'optionalAccess', _678 => _678.id]),
23744
+ activeId: _optionalChain([ctx, 'access', _679 => _679.assistant, 'optionalAccess', _680 => _680.id]),
23732
23745
  onSelect: ctx.selectThread,
23733
23746
  onNew: ctx.startNew,
23734
23747
  renderThreadBadge
@@ -23741,7 +23754,7 @@ function AssistantContainer({
23741
23754
  RoundPageContainer,
23742
23755
  {
23743
23756
  module: _chunkCAKOFJZDjs.Modules.Assistant,
23744
- id: _optionalChain([ctx, 'access', _679 => _679.assistant, 'optionalAccess', _680 => _680.id]),
23757
+ id: _optionalChain([ctx, 'access', _681 => _681.assistant, 'optionalAccess', _682 => _682.id]),
23745
23758
  fullWidth: true,
23746
23759
  forceHeader: true,
23747
23760
  defaultDetailsOpen: true,
@@ -23769,7 +23782,7 @@ function flattenBlocks(blocks) {
23769
23782
  if (typeof inline === "string") return inline;
23770
23783
  if (!inline || typeof inline !== "object") return "";
23771
23784
  const node = inline;
23772
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _681 => _681.props, 'optionalAccess', _682 => _682.alias]), () => ( ""));
23785
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _683 => _683.props, 'optionalAccess', _684 => _684.alias]), () => ( ""));
23773
23786
  if (typeof node.text === "string") return node.text;
23774
23787
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
23775
23788
  return "";
@@ -23885,7 +23898,7 @@ function AssistantPageContainer({
23885
23898
  AssistantSidebar,
23886
23899
  {
23887
23900
  threads: ctx.threads,
23888
- activeId: _optionalChain([ctx, 'access', _683 => _683.assistant, 'optionalAccess', _684 => _684.id]),
23901
+ activeId: _optionalChain([ctx, 'access', _685 => _685.assistant, 'optionalAccess', _686 => _686.id]),
23889
23902
  onSelect: ctx.selectThread,
23890
23903
  onNew: ctx.startNew
23891
23904
  }
@@ -24124,12 +24137,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
24124
24137
  const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
24125
24138
  const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
24126
24139
  const isUpdate = toolName === "update_entity";
24127
- const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _685 => _685.type]), () => ( _optionalChain([legacy, 'optionalAccess', _686 => _686.type]))), () => ( "")));
24128
- const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _687 => _687.target, 'optionalAccess', _688 => _688.label]), () => ( ""));
24140
+ const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _687 => _687.type]), () => ( _optionalChain([legacy, 'optionalAccess', _688 => _688.type]))), () => ( "")));
24141
+ const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _689 => _689.target, 'optionalAccess', _690 => _690.label]), () => ( ""));
24129
24142
  const rows = _react.useMemo.call(void 0, () => {
24130
24143
  const yes = t("features.assistant.approval.proposal.yes");
24131
24144
  const no = t("features.assistant.approval.proposal.no");
24132
- const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _689 => _689.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _690 => _690.attributes])));
24145
+ const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _691 => _691.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _692 => _692.attributes])));
24133
24146
  const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
24134
24147
  const text = formatAttribute(value, yes, no);
24135
24148
  return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
@@ -24167,7 +24180,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
24167
24180
  try {
24168
24181
  const message = kind === "approve" ? await _chunkCAKOFJZDjs.AssistantActionService.approve({ id: actionId }) : await _chunkCAKOFJZDjs.AssistantActionService.deny({ id: actionId });
24169
24182
  setStatus(kind === "approve" ? "executed" : "denied");
24170
- if (message) _optionalChain([onResolved, 'optionalCall', _691 => _691(message)]);
24183
+ if (message) _optionalChain([onResolved, 'optionalCall', _693 => _693(message)]);
24171
24184
  } catch (error) {
24172
24185
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
24173
24186
  setFailed(true);
@@ -24304,10 +24317,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24304
24317
  const t = _nextintl.useTranslations.call(void 0, );
24305
24318
  const generateUrl = usePageUrlGenerator();
24306
24319
  const { loadNotifications } = useNotificationContext();
24307
- const archived = _optionalChain([params, 'access', _692 => _692.context, 'optionalAccess', _693 => _693.archived]) === true;
24320
+ const archived = _optionalChain([params, 'access', _694 => _694.context, 'optionalAccess', _695 => _695.archived]) === true;
24308
24321
  const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
24309
24322
  await _chunkCAKOFJZDjs.NotificationService.archive({ id: notification.id });
24310
- _optionalChain([params, 'access', _694 => _694.dataRetriever, 'optionalAccess', _695 => _695.removeElement, 'call', _696 => _696(notification)]);
24323
+ _optionalChain([params, 'access', _696 => _696.dataRetriever, 'optionalAccess', _697 => _697.removeElement, 'call', _698 => _698(notification)]);
24311
24324
  await loadNotifications();
24312
24325
  }, "archiveNotification");
24313
24326
  const tableData = _react.useMemo.call(void 0, () => {
@@ -24346,7 +24359,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24346
24359
  const data = generateNotificationData({ notification, generateUrl });
24347
24360
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
24348
24361
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
24349
- actor: _nullishCoalesce(_optionalChain([data, 'access', _697 => _697.actor, 'optionalAccess', _698 => _698.name]), () => ( "")),
24362
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _699 => _699.actor, 'optionalAccess', _700 => _700.name]), () => ( "")),
24350
24363
  title: data.title,
24351
24364
  message: _nullishCoalesce(notification.message, () => ( ""))
24352
24365
  }) });
@@ -24401,7 +24414,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
24401
24414
  })
24402
24415
  };
24403
24416
  const columns = _react.useMemo.call(void 0, () => {
24404
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _699 => _699[field], 'optionalCall', _700 => _700()])).filter((col) => col !== void 0);
24417
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _701 => _701[field], 'optionalCall', _702 => _702()])).filter((col) => col !== void 0);
24405
24418
  }, [params.fields, fieldColumnMap, t, generateUrl]);
24406
24419
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
24407
24420
  }, "useNotificationTableStructure");
@@ -24820,7 +24833,7 @@ var DEFAULT_TRANSLATIONS = {
24820
24833
  invalidEmail: "Please enter a valid email address"
24821
24834
  };
24822
24835
  async function copyToClipboard(text) {
24823
- if (_optionalChain([navigator, 'access', _701 => _701.clipboard, 'optionalAccess', _702 => _702.writeText])) {
24836
+ if (_optionalChain([navigator, 'access', _703 => _703.clipboard, 'optionalAccess', _704 => _704.writeText])) {
24824
24837
  try {
24825
24838
  await navigator.clipboard.writeText(text);
24826
24839
  return true;
@@ -24862,7 +24875,7 @@ function ReferralWidget({
24862
24875
  const linkInputRef = _react.useRef.call(void 0, null);
24863
24876
  const config = _chunk4Z45NYPRjs.getReferralConfig.call(void 0, );
24864
24877
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
24865
- const referralUrl = _optionalChain([stats, 'optionalAccess', _703 => _703.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
24878
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _705 => _705.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
24866
24879
  if (!_chunk4Z45NYPRjs.isReferralEnabled.call(void 0, )) {
24867
24880
  return null;
24868
24881
  }
@@ -24872,7 +24885,7 @@ function ReferralWidget({
24872
24885
  if (success) {
24873
24886
  setCopied(true);
24874
24887
  _chunkCAKOFJZDjs.showToast.call(void 0, t.copiedMessage);
24875
- _optionalChain([onLinkCopied, 'optionalCall', _704 => _704()]);
24888
+ _optionalChain([onLinkCopied, 'optionalCall', _706 => _706()]);
24876
24889
  setTimeout(() => setCopied(false), 2e3);
24877
24890
  } else {
24878
24891
  _chunkCAKOFJZDjs.showError.call(void 0, t.copyError);
@@ -24886,12 +24899,12 @@ function ReferralWidget({
24886
24899
  try {
24887
24900
  await sendInvite(email);
24888
24901
  _chunkCAKOFJZDjs.showToast.call(void 0, t.inviteSent);
24889
- _optionalChain([onInviteSent, 'optionalCall', _705 => _705(email)]);
24902
+ _optionalChain([onInviteSent, 'optionalCall', _707 => _707(email)]);
24890
24903
  setEmail("");
24891
24904
  } catch (err) {
24892
24905
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
24893
24906
  _chunkCAKOFJZDjs.showError.call(void 0, error2.message);
24894
- _optionalChain([onInviteError, 'optionalCall', _706 => _706(error2)]);
24907
+ _optionalChain([onInviteError, 'optionalCall', _708 => _708(error2)]);
24895
24908
  }
24896
24909
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
24897
24910
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -25645,7 +25658,7 @@ function OAuthClientList({
25645
25658
  OAuthClientCard,
25646
25659
  {
25647
25660
  client,
25648
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _707 => _707(client)]),
25661
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _709 => _709(client)]),
25649
25662
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
25650
25663
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
25651
25664
  },
@@ -25668,11 +25681,11 @@ function OAuthClientForm({
25668
25681
  }) {
25669
25682
  const isEditMode = !!client;
25670
25683
  const [formState, setFormState] = _react.useState.call(void 0, {
25671
- name: _optionalChain([client, 'optionalAccess', _708 => _708.name]) || "",
25672
- description: _optionalChain([client, 'optionalAccess', _709 => _709.description]) || "",
25673
- redirectUris: _optionalChain([client, 'optionalAccess', _710 => _710.redirectUris, 'optionalAccess', _711 => _711.length]) ? client.redirectUris : [""],
25684
+ name: _optionalChain([client, 'optionalAccess', _710 => _710.name]) || "",
25685
+ description: _optionalChain([client, 'optionalAccess', _711 => _711.description]) || "",
25686
+ redirectUris: _optionalChain([client, 'optionalAccess', _712 => _712.redirectUris, 'optionalAccess', _713 => _713.length]) ? client.redirectUris : [""],
25674
25687
  allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
25675
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _712 => _712.isConfidential]), () => ( true))
25688
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _714 => _714.isConfidential]), () => ( true))
25676
25689
  });
25677
25690
  const [errors, setErrors] = _react.useState.call(void 0, {});
25678
25691
  const validate = _react.useCallback.call(void 0, () => {
@@ -25901,7 +25914,7 @@ function OAuthClientDetail({
25901
25914
  ] }),
25902
25915
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
25903
25916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
25904
- /* @__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([_chunkCAKOFJZDjs.OAUTH_SCOPE_DISPLAY, 'access', _713 => _713[scope], 'optionalAccess', _714 => _714.name]) || scope }, scope)) })
25917
+ /* @__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([_chunkCAKOFJZDjs.OAUTH_SCOPE_DISPLAY, 'access', _715 => _715[scope], 'optionalAccess', _716 => _716.name]) || scope }, scope)) })
25905
25918
  ] }),
25906
25919
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
25907
25920
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -26082,7 +26095,7 @@ function OAuthConsentScreen({
26082
26095
  if (error || !clientInfo) {
26083
26096
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-dvh 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: [
26084
26097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
26085
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _715 => _715.message]) || t("oauth.consent.invalid_request") })
26098
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _717 => _717.message]) || t("oauth.consent.invalid_request") })
26086
26099
  ] }) }) }) });
26087
26100
  }
26088
26101
  const { client, scopes } = clientInfo;
@@ -26303,7 +26316,7 @@ function WaitlistForm({ onSuccess }) {
26303
26316
  questionnaire: values.questionnaire
26304
26317
  });
26305
26318
  setIsSuccess(true);
26306
- _optionalChain([onSuccess, 'optionalCall', _716 => _716()]);
26319
+ _optionalChain([onSuccess, 'optionalCall', _718 => _718()]);
26307
26320
  } catch (e) {
26308
26321
  errorToast({ error: e });
26309
26322
  } finally {
@@ -26843,7 +26856,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
26843
26856
  ] }),
26844
26857
  roleIds.map((roleId) => {
26845
26858
  const roleTokens = block[roleId];
26846
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _717 => _717[roleId]]), () => ( roleId));
26859
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _719 => _719[roleId]]), () => ( roleId));
26847
26860
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
26848
26861
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
26849
26862
  _chunk4Z45NYPRjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -26880,7 +26893,7 @@ function RbacContainer() {
26880
26893
  }, []);
26881
26894
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
26882
26895
  if (!matrix) return [];
26883
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _718 => _718[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _719 => _719[b]]), () => ( b))));
26896
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _720 => _720[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _721 => _721[b]]), () => ( b))));
26884
26897
  }, [matrix, moduleNames]);
26885
26898
  const roleIds = _react.useMemo.call(void 0, () => {
26886
26899
  if (roleNames) {
@@ -26943,7 +26956,7 @@ function RbacContainer() {
26943
26956
  id === selectedModuleId && "bg-muted font-medium text-foreground",
26944
26957
  id !== selectedModuleId && "text-muted-foreground"
26945
26958
  ),
26946
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _720 => _720[id]]), () => ( id))
26959
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _722 => _722[id]]), () => ( id))
26947
26960
  }
26948
26961
  ) }, id)) }) }),
26949
26962
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -26951,7 +26964,7 @@ function RbacContainer() {
26951
26964
  {
26952
26965
  moduleId: selectedModuleId,
26953
26966
  block: selectedBlock,
26954
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _721 => _721[selectedModuleId]]), () => ( selectedModuleId)),
26967
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _723 => _723[selectedModuleId]]), () => ( selectedModuleId)),
26955
26968
  roleIds,
26956
26969
  roleNames,
26957
26970
  onOpenPicker: openPicker
@@ -26962,12 +26975,12 @@ function RbacContainer() {
26962
26975
  RbacPermissionPicker,
26963
26976
  {
26964
26977
  open: !!activePicker,
26965
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _722 => _722.anchor]), () => ( null)),
26978
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _724 => _724.anchor]), () => ( null)),
26966
26979
  value: activeValue,
26967
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _723 => _723.isRoleColumn]), () => ( false)),
26980
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _725 => _725.isRoleColumn]), () => ( false)),
26968
26981
  knownSegments: activeSegments,
26969
26982
  onSetValue: handleSetValue,
26970
- onClear: _optionalChain([activePicker, 'optionalAccess', _724 => _724.isRoleColumn]) ? handleClear : void 0,
26983
+ onClear: _optionalChain([activePicker, 'optionalAccess', _726 => _726.isRoleColumn]) ? handleClear : void 0,
26971
26984
  onClose: closePicker
26972
26985
  }
26973
26986
  )
@@ -27034,7 +27047,7 @@ function RbacByRoleContainer() {
27034
27047
  }, [roleNames]);
27035
27048
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
27036
27049
  if (!matrix) return [];
27037
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _725 => _725[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _726 => _726[b]]), () => ( b))));
27050
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _727 => _727[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[b]]), () => ( b))));
27038
27051
  }, [matrix, moduleNames]);
27039
27052
  _react.useEffect.call(void 0, () => {
27040
27053
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -27083,7 +27096,7 @@ function RbacByRoleContainer() {
27083
27096
  id === selectedRoleId && "bg-muted font-medium text-foreground",
27084
27097
  id !== selectedRoleId && "text-muted-foreground"
27085
27098
  ),
27086
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _727 => _727[id]]), () => ( id))
27099
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _729 => _729[id]]), () => ( id))
27087
27100
  }
27088
27101
  ) }, id)) }) }),
27089
27102
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: sortedModuleIds.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-accent bg-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
@@ -27103,7 +27116,7 @@ function RbacByRoleContainer() {
27103
27116
  if (!block) return null;
27104
27117
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
27105
27118
  const roleTokens = block[selectedRoleId];
27106
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[moduleId]]), () => ( moduleId));
27119
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _730 => _730[moduleId]]), () => ( moduleId));
27107
27120
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
27108
27121
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27109
27122
  "td",
@@ -27118,7 +27131,7 @@ function RbacByRoleContainer() {
27118
27131
  _chunk4Z45NYPRjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RbacPermissionCell, { value: cellValue2(defaultTokens, action) }) }, action))
27119
27132
  ] }),
27120
27133
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
27121
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _729 => _729[selectedRoleId]]), () => ( selectedRoleId)) }),
27134
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _731 => _731[selectedRoleId]]), () => ( selectedRoleId)) }),
27122
27135
  _chunk4Z45NYPRjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
27123
27136
  CellButton3,
27124
27137
  {
@@ -27139,12 +27152,12 @@ function RbacByRoleContainer() {
27139
27152
  RbacPermissionPicker,
27140
27153
  {
27141
27154
  open: !!activePicker,
27142
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _730 => _730.anchor]), () => ( null)),
27155
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _732 => _732.anchor]), () => ( null)),
27143
27156
  value: activeValue,
27144
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _731 => _731.isRoleColumn]), () => ( false)),
27157
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _733 => _733.isRoleColumn]), () => ( false)),
27145
27158
  knownSegments: activeSegments,
27146
27159
  onSetValue: handleSetValue,
27147
- onClear: _optionalChain([activePicker, 'optionalAccess', _732 => _732.isRoleColumn]) ? handleClear : void 0,
27160
+ onClear: _optionalChain([activePicker, 'optionalAccess', _734 => _734.isRoleColumn]) ? handleClear : void 0,
27148
27161
  onClose: closePicker
27149
27162
  }
27150
27163
  )
@@ -27754,4 +27767,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
27754
27767
 
27755
27768
 
27756
27769
  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 = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; 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.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; 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.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.ConfirmDialog = ConfirmDialog; 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.EmptyState = EmptyState; 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.useOptionalSidebar = useOptionalSidebar; 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.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; 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.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; 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.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.hasOpenInnerLayer = hasOpenInnerLayer; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.MultiFileUploader = MultiFileUploader; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; 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.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; 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.OAuthCompanySelector = OAuthCompanySelector; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; 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.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
27757
- //# sourceMappingURL=chunk-ZEEOY45J.js.map
27770
+ //# sourceMappingURL=chunk-GA6RXWN7.js.map