@carlonicora/nextjs-jsonapi 3.3.5 → 3.3.7

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.
@@ -9351,6 +9351,13 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
9351
9351
 
9352
9352
 
9353
9353
 
9354
+ function nextDateRange(params) {
9355
+ const { current, computed, triggerDate } = params;
9356
+ if (!computed) return void 0;
9357
+ if (_optionalChain([current, 'optionalAccess', _247 => _247.from]) && _optionalChain([current, 'optionalAccess', _248 => _248.to])) return { from: triggerDate, to: void 0 };
9358
+ return computed;
9359
+ }
9360
+ _chunk7QVYU63Ejs.__name.call(void 0, nextDateRange, "nextDateRange");
9354
9361
  function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth }) {
9355
9362
  const t = _nextintl.useTranslations.call(void 0, );
9356
9363
  const dateFnsLocale = _chunkX2MQ3WHXjs.useI18nDateFnsLocale.call(void 0, );
@@ -9367,22 +9374,14 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9367
9374
  }, []);
9368
9375
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
9369
9376
  _react.useEffect.call(void 0, () => {
9370
- if (_optionalChain([date, 'optionalAccess', _247 => _247.from]) && _optionalChain([date, 'optionalAccess', _248 => _248.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _249 => _249.from, 'optionalAccess', _250 => _250.getTime, 'call', _251 => _251()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _252 => _252.to, 'optionalAccess', _253 => _253.getTime, 'call', _254 => _254()]) !== date.to.getTime())) {
9377
+ if (_optionalChain([date, 'optionalAccess', _249 => _249.from]) && _optionalChain([date, 'optionalAccess', _250 => _250.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _251 => _251.from, 'optionalAccess', _252 => _252.getTime, 'call', _253 => _253()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _254 => _254.to, 'optionalAccess', _255 => _255.getTime, 'call', _256 => _256()]) !== date.to.getTime())) {
9371
9378
  onDateChange(date);
9372
9379
  setPrevRange(date);
9373
9380
  setOpen(false);
9374
9381
  }
9375
9382
  }, [date, prevRange, onDateChange]);
9376
- const handleSelect = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (range) => {
9377
- if (!range) {
9378
- setDate(void 0);
9379
- return;
9380
- }
9381
- if (range.from && (!_optionalChain([date, 'optionalAccess', _255 => _255.from]) || range.from.getTime() !== date.from.getTime())) {
9382
- setDate({ from: range.from, to: void 0 });
9383
- } else {
9384
- setDate(range);
9385
- }
9383
+ const handleSelect = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (range, triggerDate) => {
9384
+ setDate(nextDateRange({ current: date, computed: range, triggerDate }));
9386
9385
  }, "handleSelect");
9387
9386
  if (!mounted) {
9388
9387
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6T6QB6K2js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -9393,7 +9392,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9393
9392
  className: _chunk6T6QB6K2js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
9394
9393
  children: [
9395
9394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9396
- _optionalChain([date, 'optionalAccess', _256 => _256.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9395
+ _optionalChain([date, 'optionalAccess', _257 => _257.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9397
9396
  _datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
9398
9397
  " -",
9399
9398
  " ",
@@ -9417,7 +9416,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9417
9416
  ),
9418
9417
  children: [
9419
9418
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9420
- _optionalChain([date, 'optionalAccess', _257 => _257.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9419
+ _optionalChain([date, 'optionalAccess', _258 => _258.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9421
9420
  _datefns.format.call(void 0, date.from, "d MMM yyyy", { locale: dateFnsLocale }),
9422
9421
  " -",
9423
9422
  " ",
@@ -9431,7 +9430,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9431
9430
  Calendar,
9432
9431
  {
9433
9432
  mode: "range",
9434
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _258 => _258.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9433
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _259 => _259.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9435
9434
  selected: date,
9436
9435
  onSelect: handleSelect,
9437
9436
  numberOfMonths: 2
@@ -9471,26 +9470,26 @@ function useEditorDialog(isFormDirty, options) {
9471
9470
  const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
9472
9471
  const syncingFromProp = _react.useRef.call(void 0, false);
9473
9472
  _react.useEffect.call(void 0, () => {
9474
- if (_optionalChain([options, 'optionalAccess', _259 => _259.dialogOpen]) !== void 0 && options.dialogOpen !== open) {
9473
+ if (_optionalChain([options, 'optionalAccess', _260 => _260.dialogOpen]) !== void 0 && options.dialogOpen !== open) {
9475
9474
  syncingFromProp.current = true;
9476
9475
  setOpen(options.dialogOpen);
9477
9476
  }
9478
- }, [_optionalChain([options, 'optionalAccess', _260 => _260.dialogOpen])]);
9479
- const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _261 => _261.onDialogOpenChange]));
9480
- onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _262 => _262.onDialogOpenChange]);
9477
+ }, [_optionalChain([options, 'optionalAccess', _261 => _261.dialogOpen])]);
9478
+ const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _262 => _262.onDialogOpenChange]));
9479
+ onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _263 => _263.onDialogOpenChange]);
9481
9480
  _react.useEffect.call(void 0, () => {
9482
9481
  if (syncingFromProp.current) {
9483
9482
  syncingFromProp.current = false;
9484
9483
  return;
9485
9484
  }
9486
- _optionalChain([onDialogOpenChangeRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(open)]);
9485
+ _optionalChain([onDialogOpenChangeRef, 'access', _264 => _264.current, 'optionalCall', _265 => _265(open)]);
9487
9486
  }, [open]);
9488
9487
  _react.useEffect.call(void 0, () => {
9489
- if (_optionalChain([options, 'optionalAccess', _265 => _265.forceShow])) setOpen(true);
9490
- }, [_optionalChain([options, 'optionalAccess', _266 => _266.forceShow])]);
9488
+ if (_optionalChain([options, 'optionalAccess', _266 => _266.forceShow])) setOpen(true);
9489
+ }, [_optionalChain([options, 'optionalAccess', _267 => _267.forceShow])]);
9491
9490
  _react.useEffect.call(void 0, () => {
9492
9491
  if (!open) {
9493
- if (_optionalChain([options, 'optionalAccess', _267 => _267.onClose])) options.onClose();
9492
+ if (_optionalChain([options, 'optionalAccess', _268 => _268.onClose])) options.onClose();
9494
9493
  }
9495
9494
  }, [open]);
9496
9495
  const handleOpenChange = _react.useCallback.call(void 0,
@@ -9611,7 +9610,7 @@ function EditorSheet({
9611
9610
  const next = onReset();
9612
9611
  form.reset(next);
9613
9612
  if (isEdit) seeded.current = JSON.stringify(next);
9614
- _optionalChain([onClose, 'optionalCall', _268 => _268()]);
9613
+ _optionalChain([onClose, 'optionalCall', _269 => _269()]);
9615
9614
  }
9616
9615
  }, [open]);
9617
9616
  const wrappedOnSubmit = _react.useCallback.call(void 0,
@@ -9625,11 +9624,11 @@ function EditorSheet({
9625
9624
  if (onSuccess) {
9626
9625
  await onSuccess();
9627
9626
  } else if (result) {
9628
- _optionalChain([onRevalidate, 'optionalCall', _269 => _269(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9627
+ _optionalChain([onRevalidate, 'optionalCall', _270 => _270(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
9629
9628
  if (propagateChanges) {
9630
9629
  propagateChanges(result);
9631
9630
  } else {
9632
- _optionalChain([onNavigate, 'optionalCall', _270 => _270(generateUrl({ page: module, id: result.id }))]);
9631
+ _optionalChain([onNavigate, 'optionalCall', _271 => _271(generateUrl({ page: module, id: result.id }))]);
9633
9632
  }
9634
9633
  }
9635
9634
  } catch (error) {
@@ -9828,7 +9827,7 @@ function EntitySelector({
9828
9827
  {
9829
9828
  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 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" : ""}`,
9830
9829
  children: [
9831
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-left", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _271 => _271.name]), () => ( "")) : placeholder }),
9830
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-left", children: hasValue(effectiveValue) ? getSelectedItemDisplay ? getSelectedItemDisplay(effectiveValue) : _nullishCoalesce(_optionalChain([effectiveValue, 'optionalAccess', _272 => _272.name]), () => ( "")) : placeholder }),
9832
9831
  hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9833
9832
  _lucidereact.CircleX,
9834
9833
  {
@@ -9977,7 +9976,7 @@ var FileUploader = _react.forwardRef.call(void 0,
9977
9976
  movePrev();
9978
9977
  } else if (e.key === "Enter" || e.key === "Space") {
9979
9978
  if (activeIndex === -1) {
9980
- _optionalChain([dropzoneState, 'access', _272 => _272.inputRef, 'access', _273 => _273.current, 'optionalAccess', _274 => _274.click, 'call', _275 => _275()]);
9979
+ _optionalChain([dropzoneState, 'access', _273 => _273.inputRef, 'access', _274 => _274.current, 'optionalAccess', _275 => _275.click, 'call', _276 => _276()]);
9981
9980
  }
9982
9981
  } else if (e.key === "Delete" || e.key === "Backspace") {
9983
9982
  if (activeIndex !== -1) {
@@ -10023,13 +10022,13 @@ var FileUploader = _react.forwardRef.call(void 0,
10023
10022
  }
10024
10023
  if (rejectedFiles.length > 0) {
10025
10024
  for (let i = 0; i < rejectedFiles.length; i++) {
10026
- if (_optionalChain([rejectedFiles, 'access', _276 => _276[i], 'access', _277 => _277.errors, 'access', _278 => _278[0], 'optionalAccess', _279 => _279.code]) === "file-too-large") {
10025
+ if (_optionalChain([rejectedFiles, 'access', _277 => _277[i], 'access', _278 => _278.errors, 'access', _279 => _279[0], 'optionalAccess', _280 => _280.code]) === "file-too-large") {
10027
10026
  _chunk6T6QB6K2js.showError.call(void 0, t("common.errors.file"), {
10028
10027
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
10029
10028
  });
10030
10029
  break;
10031
10030
  }
10032
- if (_optionalChain([rejectedFiles, 'access', _280 => _280[i], 'access', _281 => _281.errors, 'access', _282 => _282[0], 'optionalAccess', _283 => _283.message])) {
10031
+ if (_optionalChain([rejectedFiles, 'access', _281 => _281[i], 'access', _282 => _282.errors, 'access', _283 => _283[0], 'optionalAccess', _284 => _284.message])) {
10033
10032
  _chunk6T6QB6K2js.showError.call(void 0, t(`common.errors.file`), {
10034
10033
  description: rejectedFiles[i].errors[0].message
10035
10034
  });
@@ -10227,7 +10226,7 @@ FileInput.displayName = "FileInput";
10227
10226
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
10228
10227
 
10229
10228
 
10230
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-BWC7JDVK.js"))), {
10229
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-USRMFZGP.js"))), {
10231
10230
  ssr: false
10232
10231
  });
10233
10232
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -10292,7 +10291,7 @@ function FormBlockNote({
10292
10291
  onChange: (content, isEmpty) => {
10293
10292
  lastEditorContentRef.current = content;
10294
10293
  field.onChange(content);
10295
- _optionalChain([onEmptyChange, 'optionalCall', _284 => _284(isEmpty)]);
10294
+ _optionalChain([onEmptyChange, 'optionalCall', _285 => _285(isEmpty)]);
10296
10295
  },
10297
10296
  placeholder,
10298
10297
  bordered: true,
@@ -10960,11 +10959,11 @@ function FormPlaceAutocomplete({
10960
10959
  const data = await response.json();
10961
10960
  if (data.suggestions) {
10962
10961
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
10963
- place_id: _optionalChain([suggestion, 'access', _285 => _285.placePrediction, 'optionalAccess', _286 => _286.placeId]) || "",
10964
- description: _optionalChain([suggestion, 'access', _287 => _287.placePrediction, 'optionalAccess', _288 => _288.text, 'optionalAccess', _289 => _289.text]) || "",
10962
+ place_id: _optionalChain([suggestion, 'access', _286 => _286.placePrediction, 'optionalAccess', _287 => _287.placeId]) || "",
10963
+ description: _optionalChain([suggestion, 'access', _288 => _288.placePrediction, 'optionalAccess', _289 => _289.text, 'optionalAccess', _290 => _290.text]) || "",
10965
10964
  structured_formatting: {
10966
- main_text: _optionalChain([suggestion, 'access', _290 => _290.placePrediction, 'optionalAccess', _291 => _291.structuredFormat, 'optionalAccess', _292 => _292.mainText, 'optionalAccess', _293 => _293.text]) || "",
10967
- secondary_text: _optionalChain([suggestion, 'access', _294 => _294.placePrediction, 'optionalAccess', _295 => _295.structuredFormat, 'optionalAccess', _296 => _296.secondaryText, 'optionalAccess', _297 => _297.text]) || ""
10965
+ main_text: _optionalChain([suggestion, 'access', _291 => _291.placePrediction, 'optionalAccess', _292 => _292.structuredFormat, 'optionalAccess', _293 => _293.mainText, 'optionalAccess', _294 => _294.text]) || "",
10966
+ secondary_text: _optionalChain([suggestion, 'access', _295 => _295.placePrediction, 'optionalAccess', _296 => _296.structuredFormat, 'optionalAccess', _297 => _297.secondaryText, 'optionalAccess', _298 => _298.text]) || ""
10968
10967
  }
10969
10968
  }));
10970
10969
  setSuggestions(formattedSuggestions);
@@ -11111,8 +11110,8 @@ function FormPlaceAutocomplete({
11111
11110
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
11112
11111
  onClick: () => handleSuggestionSelect(suggestion),
11113
11112
  children: [
11114
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _298 => _298.structured_formatting, 'optionalAccess', _299 => _299.main_text]) }),
11115
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _300 => _300.structured_formatting, 'optionalAccess', _301 => _301.secondary_text]) })
11113
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _299 => _299.structured_formatting, 'optionalAccess', _300 => _300.main_text]) }),
11114
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _301 => _301.structured_formatting, 'optionalAccess', _302 => _302.secondary_text]) })
11116
11115
  ]
11117
11116
  },
11118
11117
  suggestion.place_id || index
@@ -11160,7 +11159,7 @@ function FormSelect({
11160
11159
  disabled,
11161
11160
  "data-testid": testId,
11162
11161
  children: [
11163
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _302 => _302.find, 'call', _303 => _303((v) => v.id === field.value), 'optionalAccess', _304 => _304.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
11162
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _303 => _303.find, 'call', _304 => _304((v) => v.id === field.value), 'optionalAccess', _305 => _305.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
11164
11163
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
11165
11164
  allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
11166
11165
  values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
@@ -11312,7 +11311,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
11312
11311
  }, "getInitials");
11313
11312
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
11314
11313
  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: [
11315
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _305 => _305.avatar]) }),
11314
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _306 => _306.avatar]) }),
11316
11315
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
11317
11316
  ] }) });
11318
11317
  }, "getAvatar");
@@ -11518,7 +11517,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
11518
11517
  })
11519
11518
  };
11520
11519
  const columns = _react.useMemo.call(void 0, () => {
11521
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _306 => _306[field], 'optionalCall', _307 => _307()])).filter((col) => col !== void 0);
11520
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _307 => _307[field], 'optionalCall', _308 => _308()])).filter((col) => col !== void 0);
11522
11521
  }, [params.fields, fieldColumnMap, t, generateUrl]);
11523
11522
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
11524
11523
  }, "useUserTableStructure");
@@ -11632,10 +11631,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
11632
11631
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
11633
11632
  /* @__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: [
11634
11633
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-4 w-4`, children: [
11635
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _308 => _308.value, 'optionalAccess', _309 => _309.avatar]) }),
11636
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _310 => _310.value, 'optionalAccess', _311 => _311.name]) ? _optionalChain([field, 'access', _312 => _312.value, 'optionalAccess', _313 => _313.name, 'access', _314 => _314.split, 'call', _315 => _315(" "), 'access', _316 => _316.map, 'call', _317 => _317((name) => name.charAt(0).toUpperCase())]) : "X" })
11634
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _309 => _309.value, 'optionalAccess', _310 => _310.avatar]) }),
11635
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _311 => _311.value, 'optionalAccess', _312 => _312.name]) ? _optionalChain([field, 'access', _313 => _313.value, 'optionalAccess', _314 => _314.name, 'access', _315 => _315.split, 'call', _316 => _316(" "), 'access', _317 => _317.map, 'call', _318 => _318((name) => name.charAt(0).toUpperCase())]) : "X" })
11637
11636
  ] }) }),
11638
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _318 => _318.value, 'optionalAccess', _319 => _319.name]), () => ( "")) })
11637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _319 => _319.value, 'optionalAccess', _320 => _320.name]), () => ( "")) })
11639
11638
  ] }) : /* @__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 }) }))) }) }) }),
11640
11639
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11641
11640
  _lucidereact.CircleX,
@@ -11845,7 +11844,7 @@ function UserContent({ user }) {
11845
11844
  const updated = await _chunk6T6QB6K2js.UserService.patchAvatar({ id: user.id, avatar: imageKey });
11846
11845
  setUser(updated);
11847
11846
  },
11848
- companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _320 => _320.id]), () => ( "")),
11847
+ companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _321 => _321.id]), () => ( "")),
11849
11848
  className: "h-24 w-24",
11850
11849
  fallbackClassName: "text-2xl"
11851
11850
  }
@@ -12000,7 +11999,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
12000
11999
  const data = useDataListRetriever({
12001
12000
  ready: !!company,
12002
12001
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunk6T6QB6K2js.UserService.findAllUsers(params), "retriever"),
12003
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _321 => _321.id]), isDeleted },
12002
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _322 => _322.id]), isDeleted },
12004
12003
  module: _chunk6T6QB6K2js.Modules.User
12005
12004
  });
12006
12005
  _react.useEffect.call(void 0, () => {
@@ -12107,11 +12106,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
12107
12106
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
12108
12107
  onClick: (_e) => {
12109
12108
  setSelectedUser(user);
12110
- _optionalChain([setLevelOpen, 'optionalCall', _322 => _322(true)]);
12109
+ _optionalChain([setLevelOpen, 'optionalCall', _323 => _323(true)]);
12111
12110
  },
12112
12111
  onSelect: (_e) => {
12113
12112
  setSelectedUser(user);
12114
- _optionalChain([setLevelOpen, 'optionalCall', _323 => _323(true)]);
12113
+ _optionalChain([setLevelOpen, 'optionalCall', _324 => _324(true)]);
12115
12114
  },
12116
12115
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
12117
12116
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -12242,7 +12241,7 @@ function CompanyContent({ company, actions }) {
12242
12241
  company.legal_address
12243
12242
  ] }),
12244
12243
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
12245
- _optionalChain([company, 'access', _324 => _324.configurations, 'optionalAccess', _325 => _325.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12244
+ _optionalChain([company, 'access', _325 => _325.configurations, 'optionalAccess', _326 => _326.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12246
12245
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
12247
12246
  t("features.configuration.country"),
12248
12247
  ":"
@@ -12250,7 +12249,7 @@ function CompanyContent({ company, actions }) {
12250
12249
  " ",
12251
12250
  company.configurations.country
12252
12251
  ] }),
12253
- _optionalChain([company, 'access', _326 => _326.configurations, 'optionalAccess', _327 => _327.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12252
+ _optionalChain([company, 'access', _327 => _327.configurations, 'optionalAccess', _328 => _328.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
12254
12253
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
12255
12254
  t("features.configuration.currency"),
12256
12255
  ":"
@@ -12469,7 +12468,7 @@ function CompanyEditorInternal({
12469
12468
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
12470
12469
  fetchFeatures();
12471
12470
  }
12472
- _optionalChain([onDialogOpenChange, 'optionalCall', _328 => _328(open)]);
12471
+ _optionalChain([onDialogOpenChange, 'optionalCall', _329 => _329(open)]);
12473
12472
  },
12474
12473
  [features.length, canAccessFeatures, hasRole, onDialogOpenChange]
12475
12474
  );
@@ -12514,12 +12513,12 @@ function CompanyEditorInternal({
12514
12513
  );
12515
12514
  const getDefaultValues = _react.useCallback.call(void 0, () => {
12516
12515
  return {
12517
- id: _optionalChain([company, 'optionalAccess', _329 => _329.id]) || _uuid.v4.call(void 0, ),
12518
- name: _optionalChain([company, 'optionalAccess', _330 => _330.name]) || "",
12519
- featureIds: _optionalChain([company, 'optionalAccess', _331 => _331.features, 'access', _332 => _332.map, 'call', _333 => _333((feature) => feature.id)]) || [],
12520
- moduleIds: _optionalChain([company, 'optionalAccess', _334 => _334.modules, 'access', _335 => _335.map, 'call', _336 => _336((module) => module.id)]) || [],
12521
- logo: _optionalChain([company, 'optionalAccess', _337 => _337.logo]) || "",
12522
- legal_address: _optionalChain([company, 'optionalAccess', _338 => _338.legal_address]) || ""
12516
+ id: _optionalChain([company, 'optionalAccess', _330 => _330.id]) || _uuid.v4.call(void 0, ),
12517
+ name: _optionalChain([company, 'optionalAccess', _331 => _331.name]) || "",
12518
+ featureIds: _optionalChain([company, 'optionalAccess', _332 => _332.features, 'access', _333 => _333.map, 'call', _334 => _334((feature) => feature.id)]) || [],
12519
+ moduleIds: _optionalChain([company, 'optionalAccess', _335 => _335.modules, 'access', _336 => _336.map, 'call', _337 => _337((module) => module.id)]) || [],
12520
+ logo: _optionalChain([company, 'optionalAccess', _338 => _338.logo]) || "",
12521
+ legal_address: _optionalChain([company, 'optionalAccess', _339 => _339.legal_address]) || ""
12523
12522
  };
12524
12523
  }, [company]);
12525
12524
  const form = _reacthookform.useForm.call(void 0, {
@@ -12531,7 +12530,7 @@ function CompanyEditorInternal({
12531
12530
  {
12532
12531
  form,
12533
12532
  entityType: t(`entities.companies`, { count: 1 }),
12534
- entityName: _optionalChain([company, 'optionalAccess', _339 => _339.name]),
12533
+ entityName: _optionalChain([company, 'optionalAccess', _340 => _340.name]),
12535
12534
  isEdit: !!company,
12536
12535
  module: _chunk6T6QB6K2js.Modules.Company,
12537
12536
  propagateChanges,
@@ -12556,7 +12555,7 @@ function CompanyEditorInternal({
12556
12555
  throw new Error("Fiscal data validation failed");
12557
12556
  }
12558
12557
  const payload = {
12559
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _340 => _340.id]), () => ( _uuid.v4.call(void 0, ))),
12558
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _341 => _341.id]), () => ( _uuid.v4.call(void 0, ))),
12560
12559
  name: values.name,
12561
12560
  logo: files && contentType ? values.logo : void 0,
12562
12561
  featureIds: values.featureIds,
@@ -12587,10 +12586,10 @@ function CompanyEditorInternal({
12587
12586
  dialogOpen,
12588
12587
  onDialogOpenChange: handleDialogOpenChange,
12589
12588
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
12590
- /* @__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', _341 => _341.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12589
+ /* @__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', _342 => _342.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12591
12590
  _image2.default,
12592
12591
  {
12593
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _342 => _342.logo]) || "",
12592
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _343 => _343.logo]) || "",
12594
12593
  alt: "Company Logo",
12595
12594
  width: 200,
12596
12595
  height: 200
@@ -12624,7 +12623,7 @@ function CompanyEditorInternal({
12624
12623
  }
12625
12624
  ),
12626
12625
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { className: "mt-2", children: t(`company.sections.fiscal_data`) }),
12627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _343 => _343.fiscal_data])) })
12626
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _344 => _344.fiscal_data])) })
12628
12627
  ] }),
12629
12628
  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 }) }) })
12630
12629
  ] })
@@ -12962,7 +12961,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
12962
12961
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12963
12962
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12964
12963
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
12965
- actor: _nullishCoalesce(_optionalChain([data, 'access', _344 => _344.actor, 'optionalAccess', _345 => _345.name]), () => ( "")),
12964
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _345 => _345.actor, 'optionalAccess', _346 => _346.name]), () => ( "")),
12966
12965
  title: data.title,
12967
12966
  message: _nullishCoalesce(notification.message, () => ( ""))
12968
12967
  }) }),
@@ -12991,7 +12990,7 @@ function NotificationMenuItem({ notification, closePopover }) {
12991
12990
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12992
12991
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12993
12992
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
12994
- actor: _nullishCoalesce(_optionalChain([data, 'access', _346 => _346.actor, 'optionalAccess', _347 => _347.name]), () => ( "")),
12993
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _347 => _347.actor, 'optionalAccess', _348 => _348.name]), () => ( "")),
12995
12994
  title: data.title,
12996
12995
  message: _nullishCoalesce(notification.message, () => ( ""))
12997
12996
  }) }),
@@ -13055,7 +13054,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
13055
13054
  _react.useEffect.call(void 0, () => {
13056
13055
  if (hasInitiallyLoaded || !currentUser) return;
13057
13056
  if (_chunkX2MQ3WHXjs.isRolesConfigured.call(void 0, )) {
13058
- const isAdmin = _optionalChain([currentUser, 'access', _348 => _348.roles, 'optionalAccess', _349 => _349.some, 'call', _350 => _350((role) => role.id === _chunkX2MQ3WHXjs.getRoleId.call(void 0, ).Administrator)]);
13057
+ const isAdmin = _optionalChain([currentUser, 'access', _349 => _349.roles, 'optionalAccess', _350 => _350.some, 'call', _351 => _351((role) => role.id === _chunkX2MQ3WHXjs.getRoleId.call(void 0, ).Administrator)]);
13059
13058
  if (isAdmin) {
13060
13059
  setHasInitiallyLoaded(true);
13061
13060
  return;
@@ -13257,7 +13256,7 @@ function OnboardingProvider({
13257
13256
  let tourSteps = steps;
13258
13257
  if (!tourSteps) {
13259
13258
  const tour2 = tours.find((t) => t.id === tourId);
13260
- tourSteps = _optionalChain([tour2, 'optionalAccess', _351 => _351.steps]);
13259
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _352 => _352.steps]);
13261
13260
  }
13262
13261
  if (!tourSteps || tourSteps.length === 0) {
13263
13262
  console.warn(`No steps found for tour: ${tourId}`);
@@ -13325,10 +13324,10 @@ function OnboardingProvider({
13325
13324
  when: {
13326
13325
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13327
13326
  setCurrentStepIndex(index);
13328
- _optionalChain([stepConfig, 'access', _352 => _352.onShow, 'optionalCall', _353 => _353()]);
13327
+ _optionalChain([stepConfig, 'access', _353 => _353.onShow, 'optionalCall', _354 => _354()]);
13329
13328
  }, "show"),
13330
13329
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
13331
- _optionalChain([stepConfig, 'access', _354 => _354.onHide, 'optionalCall', _355 => _355()]);
13330
+ _optionalChain([stepConfig, 'access', _355 => _355.onHide, 'optionalCall', _356 => _356()]);
13332
13331
  }, "hide")
13333
13332
  }
13334
13333
  });
@@ -13479,7 +13478,7 @@ function HowToMultiSelector({
13479
13478
  retriever: (params) => _chunk6T6QB6K2js.HowToService.findMany(params),
13480
13479
  module: _chunk6T6QB6K2js.Modules.HowTo,
13481
13480
  getLabel: (howTo) => howTo.name,
13482
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _356 => _356.id]),
13481
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _357 => _357.id]),
13483
13482
  onChange
13484
13483
  }
13485
13484
  );
@@ -13587,17 +13586,17 @@ function HowToEditorInternal({
13587
13586
  );
13588
13587
  const getDefaultValues = _react.useCallback.call(void 0,
13589
13588
  () => ({
13590
- id: _optionalChain([howTo, 'optionalAccess', _357 => _357.id]) || _uuid.v4.call(void 0, ),
13591
- name: _optionalChain([howTo, 'optionalAccess', _358 => _358.name]) || "",
13592
- description: _optionalChain([howTo, 'optionalAccess', _359 => _359.description]) || [],
13593
- pages: _chunk6T6QB6K2js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _360 => _360.pages])),
13594
- howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _361 => _361.howToType]), () => ( "how-to")),
13595
- slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _362 => _362.slug]), () => ( "")),
13596
- order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.order]), () => ( 0)),
13597
- summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.summary]), () => ( "")),
13598
- tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.tags]), () => ( []))).join(", "),
13599
- contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.contextualKeys]), () => ( []))).join(", "),
13600
- draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.draft]), () => ( false)),
13589
+ id: _optionalChain([howTo, 'optionalAccess', _358 => _358.id]) || _uuid.v4.call(void 0, ),
13590
+ name: _optionalChain([howTo, 'optionalAccess', _359 => _359.name]) || "",
13591
+ description: _optionalChain([howTo, 'optionalAccess', _360 => _360.description]) || [],
13592
+ pages: _chunk6T6QB6K2js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _361 => _361.pages])),
13593
+ howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _362 => _362.howToType]), () => ( "how-to")),
13594
+ slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.slug]), () => ( "")),
13595
+ order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.order]), () => ( 0)),
13596
+ summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.summary]), () => ( "")),
13597
+ tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.tags]), () => ( []))).join(", "),
13598
+ contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.contextualKeys]), () => ( []))).join(", "),
13599
+ draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.draft]), () => ( false)),
13601
13600
  relatedArticles: []
13602
13601
  }),
13603
13602
  [howTo]
@@ -13608,7 +13607,7 @@ function HowToEditorInternal({
13608
13607
  });
13609
13608
  const initialRelatedIds = _react.useRef.call(void 0, []);
13610
13609
  _react.useEffect.call(void 0, () => {
13611
- if (!_optionalChain([howTo, 'optionalAccess', _368 => _368.howToType]) || !_optionalChain([howTo, 'optionalAccess', _369 => _369.slug])) return;
13610
+ if (!_optionalChain([howTo, 'optionalAccess', _369 => _369.howToType]) || !_optionalChain([howTo, 'optionalAccess', _370 => _370.slug])) return;
13612
13611
  let active = true;
13613
13612
  _chunk6T6QB6K2js.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
13614
13613
  if (!active) return;
@@ -13647,7 +13646,7 @@ function HowToEditorInternal({
13647
13646
  {
13648
13647
  form,
13649
13648
  entityType: t(`entities.howtos`, { count: 1 }),
13650
- entityName: _optionalChain([howTo, 'optionalAccess', _370 => _370.name]),
13649
+ entityName: _optionalChain([howTo, 'optionalAccess', _371 => _371.name]),
13651
13650
  isEdit: !!howTo,
13652
13651
  module: _chunk6T6QB6K2js.Modules.HowTo,
13653
13652
  propagateChanges,
@@ -14028,7 +14027,7 @@ function withPatchedTitle(source, title) {
14028
14027
  return _chunk6T6QB6K2js.rehydrate.call(void 0, _chunk6T6QB6K2js.Modules.Assistant, {
14029
14028
  jsonApi: {
14030
14029
  ...dehydrated.jsonApi,
14031
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _371 => _371.jsonApi, 'optionalAccess', _372 => _372.attributes]), () => ( {})), title }
14030
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _372 => _372.jsonApi, 'optionalAccess', _373 => _373.attributes]), () => ( {})), title }
14032
14031
  },
14033
14032
  included: dehydrated.included
14034
14033
  });
@@ -14062,7 +14061,7 @@ function AssistantProvider({
14062
14061
  const [status, setStatus] = _react.useState.call(void 0, void 0);
14063
14062
  const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
14064
14063
  const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
14065
- () => _optionalChain([dehydratedAssistant, 'optionalAccess', _373 => _373.jsonApi, 'optionalAccess', _374 => _374.attributes, 'optionalAccess', _375 => _375.engine]) === "operator"
14064
+ () => _optionalChain([dehydratedAssistant, 'optionalAccess', _374 => _374.jsonApi, 'optionalAccess', _375 => _375.attributes, 'optionalAccess', _376 => _376.engine]) === "operator"
14066
14065
  );
14067
14066
  const { socket } = useSocketContext();
14068
14067
  const sendMessage = _react.useCallback.call(void 0,
@@ -14071,7 +14070,7 @@ function AssistantProvider({
14071
14070
  if (!trimmed) return;
14072
14071
  const optimistic = _chunk6T6QB6K2js.AssistantMessage.buildOptimistic({
14073
14072
  content: trimmed,
14074
- assistantId: _optionalChain([assistant, 'optionalAccess', _376 => _376.id]),
14073
+ assistantId: _optionalChain([assistant, 'optionalAccess', _377 => _377.id]),
14075
14074
  position: nextPosition(messages)
14076
14075
  });
14077
14076
  setMessages((prev) => [...prev, optimistic]);
@@ -14081,14 +14080,14 @@ function AssistantProvider({
14081
14080
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
14082
14081
  if (typeof payload.status === "string") setStatus(payload.status);
14083
14082
  }, "handler");
14084
- _optionalChain([socket, 'optionalAccess', _377 => _377.on, 'call', _378 => _378("assistant:status", handler)]);
14083
+ _optionalChain([socket, 'optionalAccess', _378 => _378.on, 'call', _379 => _379("assistant:status", handler)]);
14085
14084
  try {
14086
14085
  if (!assistant) {
14087
14086
  const input = {
14088
14087
  firstMessage: trimmed,
14089
- howToMode: _optionalChain([opts, 'optionalAccess', _379 => _379.howToMode]),
14090
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _380 => _380.limitToHowToId]),
14091
- contentBlocks: _optionalChain([opts, 'optionalAccess', _381 => _381.contentBlocks]),
14088
+ howToMode: _optionalChain([opts, 'optionalAccess', _380 => _380.howToMode]),
14089
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _381 => _381.limitToHowToId]),
14090
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _382 => _382.contentBlocks]),
14092
14091
  boundContent: scope
14093
14092
  };
14094
14093
  const created = operatorMode ? await _chunk6T6QB6K2js.AssistantService.createOperator(input) : await _chunk6T6QB6K2js.AssistantService.create(input);
@@ -14103,13 +14102,13 @@ function AssistantProvider({
14103
14102
  const result = operatorMode ? await _chunk6T6QB6K2js.AssistantService.appendMessageOperator({
14104
14103
  assistantId: assistant.id,
14105
14104
  content: trimmed,
14106
- contentBlocks: _optionalChain([opts, 'optionalAccess', _382 => _382.contentBlocks])
14105
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _383 => _383.contentBlocks])
14107
14106
  }) : await _chunk6T6QB6K2js.AssistantService.appendMessage({
14108
14107
  assistantId: assistant.id,
14109
14108
  content: trimmed,
14110
- howToMode: _optionalChain([opts, 'optionalAccess', _383 => _383.howToMode]),
14111
- limitToHowToId: _optionalChain([opts, 'optionalAccess', _384 => _384.limitToHowToId]),
14112
- contentBlocks: _optionalChain([opts, 'optionalAccess', _385 => _385.contentBlocks])
14109
+ howToMode: _optionalChain([opts, 'optionalAccess', _384 => _384.howToMode]),
14110
+ limitToHowToId: _optionalChain([opts, 'optionalAccess', _385 => _385.limitToHowToId]),
14111
+ contentBlocks: _optionalChain([opts, 'optionalAccess', _386 => _386.contentBlocks])
14113
14112
  });
14114
14113
  setMessages((prev) => [...stripOptimistic(prev), ...result]);
14115
14114
  }
@@ -14120,7 +14119,7 @@ function AssistantProvider({
14120
14119
  return next;
14121
14120
  });
14122
14121
  } finally {
14123
- _optionalChain([socket, 'optionalAccess', _386 => _386.off, 'call', _387 => _387("assistant:status", handler)]);
14122
+ _optionalChain([socket, 'optionalAccess', _387 => _387.off, 'call', _388 => _388("assistant:status", handler)]);
14124
14123
  setSending(false);
14125
14124
  setStatus(void 0);
14126
14125
  }
@@ -14178,7 +14177,7 @@ function AssistantProvider({
14178
14177
  await _chunk6T6QB6K2js.AssistantService.delete({ id });
14179
14178
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
14180
14179
  setAssistant((prev) => {
14181
- if (_optionalChain([prev, 'optionalAccess', _388 => _388.id]) === id) {
14180
+ if (_optionalChain([prev, 'optionalAccess', _389 => _389.id]) === id) {
14182
14181
  setMessages([]);
14183
14182
  return void 0;
14184
14183
  }
@@ -14190,7 +14189,7 @@ function AssistantProvider({
14190
14189
  (async () => {
14191
14190
  setThreadsLoading(true);
14192
14191
  try {
14193
- const loaded = await _chunk6T6QB6K2js.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _389 => _389.type]), boundId: _optionalChain([scope, 'optionalAccess', _390 => _390.id]) });
14192
+ const loaded = await _chunk6T6QB6K2js.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _390 => _390.type]), boundId: _optionalChain([scope, 'optionalAccess', _391 => _391.id]) });
14194
14193
  if (!cancelled) setThreads(loaded);
14195
14194
  } finally {
14196
14195
  if (!cancelled) setThreadsLoading(false);
@@ -14199,7 +14198,7 @@ function AssistantProvider({
14199
14198
  return () => {
14200
14199
  cancelled = true;
14201
14200
  };
14202
- }, [_optionalChain([scope, 'optionalAccess', _391 => _391.type]), _optionalChain([scope, 'optionalAccess', _392 => _392.id])]);
14201
+ }, [_optionalChain([scope, 'optionalAccess', _392 => _392.type]), _optionalChain([scope, 'optionalAccess', _393 => _393.id])]);
14203
14202
  const value = _react.useMemo.call(void 0,
14204
14203
  () => ({
14205
14204
  assistant,
@@ -14350,7 +14349,7 @@ function readEntityTitle() {
14350
14349
  if (typeof document === "undefined") return null;
14351
14350
  const afterEntityType = document.title.split("]")[1];
14352
14351
  if (!afterEntityType) return null;
14353
- return _optionalChain([afterEntityType, 'access', _393 => _393.split, 'call', _394 => _394("|"), 'access', _395 => _395[0], 'optionalAccess', _396 => _396.trim, 'call', _397 => _397()]) || null;
14352
+ return _optionalChain([afterEntityType, 'access', _394 => _394.split, 'call', _395 => _395("|"), 'access', _396 => _396[0], 'optionalAccess', _397 => _397.trim, 'call', _398 => _398()]) || null;
14354
14353
  }
14355
14354
  _chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
14356
14355
  function usePageTracker() {
@@ -14379,7 +14378,7 @@ function usePageTracker() {
14379
14378
  const existing = prev.find((page) => page.url === baseUrl);
14380
14379
  const refreshed = {
14381
14380
  url: baseUrl,
14382
- title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _398 => _398.title]), () => ( foundModule.name)),
14381
+ title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _399 => _399.title]), () => ( foundModule.name)),
14383
14382
  moduleType: foundModule.name,
14384
14383
  timestamp: Date.now()
14385
14384
  };
@@ -14441,7 +14440,7 @@ function usePushNotifications() {
14441
14440
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
14442
14441
  if ("serviceWorker" in navigator && "PushManager" in window) {
14443
14442
  try {
14444
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _399 => _399.id])}`;
14443
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _400 => _400.id])}`;
14445
14444
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
14446
14445
  const registration = await navigator.serviceWorker.register(`${_chunkX2MQ3WHXjs.getAppUrl.call(void 0, )}/sw.js`);
14447
14446
  let permission = Notification.permission;
@@ -14554,14 +14553,14 @@ function useSocket({ token }) {
14554
14553
  });
14555
14554
  }, "handleMessage");
14556
14555
  const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
14557
- const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _400 => _400.data]), () => ( _optionalChain([data, 'optionalAccess', _401 => _401.jsonApi])));
14558
- if (!_optionalChain([resource, 'optionalAccess', _402 => _402.type])) {
14556
+ const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _401 => _401.data]), () => ( _optionalChain([data, 'optionalAccess', _402 => _402.jsonApi])));
14557
+ if (!_optionalChain([resource, 'optionalAccess', _403 => _403.type])) {
14559
14558
  console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
14560
14559
  return;
14561
14560
  }
14562
14561
  const notification = _chunk6T6QB6K2js.rehydrate.call(void 0, _chunk6T6QB6K2js.Modules.Notification, {
14563
14562
  jsonApi: resource,
14564
- included: _optionalChain([data, 'optionalAccess', _403 => _403.included]) || []
14563
+ included: _optionalChain([data, 'optionalAccess', _404 => _404.included]) || []
14565
14564
  });
14566
14565
  if (notification) {
14567
14566
  setSocketNotifications((prev) => {
@@ -14680,7 +14679,7 @@ function BreadcrumbMobile({
14680
14679
  }
14681
14680
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
14682
14681
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
14683
- _optionalChain([lastItem, 'optionalAccess', _404 => _404.name]),
14682
+ _optionalChain([lastItem, 'optionalAccess', _405 => _405.name]),
14684
14683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
14685
14684
  ] }),
14686
14685
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
@@ -14691,7 +14690,7 @@ function BreadcrumbNavigation({ items, rootLabel }) {
14691
14690
  const generateUrl = usePageUrlGenerator();
14692
14691
  const t = _nextintl.useTranslations.call(void 0, );
14693
14692
  const isMobile = _chunk6T6QB6K2js.useIsMobile.call(void 0, );
14694
- const root = _optionalChain([rootLabel, 'optionalAccess', _405 => _405.trim, 'call', _406 => _406()]) ? rootLabel : t(`common.home`);
14693
+ const root = _optionalChain([rootLabel, 'optionalAccess', _406 => _406.trim, 'call', _407 => _407()]) ? rootLabel : t(`common.home`);
14695
14694
  if (isMobile) {
14696
14695
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root });
14697
14696
  }
@@ -15136,7 +15135,7 @@ var railTriggerClass = _chunk6T6QB6K2js.cn.call(void 0,
15136
15135
  "data-[state=active]:bg-foreground data-[state=active]:text-background",
15137
15136
  "data-[state=active]:font-semibold data-[state=active]:shadow-none"
15138
15137
  );
15139
- var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _407 => _407.key, 'optionalAccess', _408 => _408.name]))), () => ( tab.label)), "tabValue");
15138
+ var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _408 => _408.key, 'optionalAccess', _409 => _409.name]))), () => ( tab.label)), "tabValue");
15140
15139
  function RoundPageContainer({
15141
15140
  module,
15142
15141
  id,
@@ -15162,14 +15161,14 @@ function RoundPageContainer({
15162
15161
  const [mounted, setMounted] = _react.useState.call(void 0, false);
15163
15162
  _react.useEffect.call(void 0, () => {
15164
15163
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
15165
- const stored = _optionalChain([match, 'optionalAccess', _409 => _409.split, 'call', _410 => _410("="), 'access', _411 => _411[1]]);
15164
+ const stored = _optionalChain([match, 'optionalAccess', _410 => _410.split, 'call', _411 => _411("="), 'access', _412 => _412[1]]);
15166
15165
  if (stored === "true") setShowDetailsState(true);
15167
15166
  else if (stored === "false") setShowDetailsState(false);
15168
15167
  }, []);
15169
15168
  _react.useEffect.call(void 0, () => {
15170
15169
  setMounted(true);
15171
15170
  }, []);
15172
- const detailsCookieName = _optionalChain([module, 'optionalAccess', _412 => _412.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15171
+ const detailsCookieName = _optionalChain([module, 'optionalAccess', _413 => _413.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
15173
15172
  const setShowDetails = _react.useCallback.call(void 0,
15174
15173
  (value) => {
15175
15174
  setShowDetailsState(value);
@@ -15198,11 +15197,11 @@ function RoundPageContainer({
15198
15197
  } else {
15199
15198
  rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
15200
15199
  }
15201
- _optionalChain([onSectionChange, 'optionalCall', _413 => _413(key)]);
15200
+ _optionalChain([onSectionChange, 'optionalCall', _414 => _414(key)]);
15202
15201
  },
15203
15202
  [module, id, rewriteUrl, onSectionChange]
15204
15203
  );
15205
- const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _414 => _414.find, 'call', _415 => _415((t) => tabValue(t) === activeTab), 'optionalAccess', _416 => _416.fillHeight]) === true;
15204
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _415 => _415.find, 'call', _416 => _416((t) => tabValue(t) === activeTab), 'optionalAccess', _417 => _417.fillHeight]) === true;
15206
15205
  const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
15207
15206
  const tabItems = _react.useMemo.call(void 0,
15208
15207
  () => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
@@ -15583,14 +15582,14 @@ function BlockNoteEditorMentionHoverCard({
15583
15582
  const entityType = target.dataset.mentionType;
15584
15583
  const alias = target.dataset.mentionAlias;
15585
15584
  setHovered((prev) => {
15586
- if (_optionalChain([prev, 'optionalAccess', _417 => _417.id]) === id && _optionalChain([prev, 'optionalAccess', _418 => _418.element]) === target) return prev;
15585
+ if (_optionalChain([prev, 'optionalAccess', _418 => _418.id]) === id && _optionalChain([prev, 'optionalAccess', _419 => _419.element]) === target) return prev;
15587
15586
  return { id, entityType, alias, element: target };
15588
15587
  });
15589
15588
  }, "handleMouseOver");
15590
15589
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
15591
15590
  const target = e.target.closest("[data-mention-id]");
15592
15591
  if (!target) return;
15593
- const related = _optionalChain([e, 'access', _419 => _419.relatedTarget, 'optionalAccess', _420 => _420.closest, 'call', _421 => _421("[data-mention-id]")]);
15592
+ const related = _optionalChain([e, 'access', _420 => _420.relatedTarget, 'optionalAccess', _421 => _421.closest, 'call', _422 => _422("[data-mention-id]")]);
15594
15593
  if (related) return;
15595
15594
  scheduleClose();
15596
15595
  }, "handleMouseOut");
@@ -15604,7 +15603,7 @@ function BlockNoteEditorMentionHoverCard({
15604
15603
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
15605
15604
  if (!hovered || !mentionResolveFn) return null;
15606
15605
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
15607
- if (!_optionalChain([resolved, 'optionalAccess', _422 => _422.HoverContent])) return null;
15606
+ if (!_optionalChain([resolved, 'optionalAccess', _423 => _423.HoverContent])) return null;
15608
15607
  const ContentComponent = resolved.HoverContent;
15609
15608
  const rect = hovered.element.getBoundingClientRect();
15610
15609
  return _reactdom.createPortal.call(void 0,
@@ -15647,28 +15646,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
15647
15646
  }, "parseMentionElement");
15648
15647
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
15649
15648
  const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15650
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _423 => _423(props.id, props.entityType, props.alias)]), () => ( props.alias));
15649
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _424 => _424(props.id, props.entityType, props.alias)]), () => ( props.alias));
15651
15650
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
15652
15651
  "@",
15653
15652
  displayName
15654
15653
  ] });
15655
15654
  }, "MentionExternalHTML");
15656
15655
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
15657
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _424 => _424(props.id, props.entityType, props.alias)]), () => ( props.alias));
15656
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _425 => _425(props.id, props.entityType, props.alias)]), () => ( props.alias));
15658
15657
  if (disableMention) {
15659
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _425 => _425(props.id, props.entityType, displayName)]);
15660
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _426 => _426.url]), () => ( "#")), className: "text-primary", children: [
15658
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _426 => _426(props.id, props.entityType, displayName)]);
15659
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _427 => _427.url]), () => ( "#")), className: "text-primary", children: [
15661
15660
  "@",
15662
15661
  displayName
15663
15662
  ] });
15664
15663
  }
15665
- const resolved = _optionalChain([resolveFn, 'optionalCall', _427 => _427(props.id, props.entityType, displayName)]);
15666
- if (_optionalChain([resolved, 'optionalAccess', _428 => _428.Inline])) {
15664
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _428 => _428(props.id, props.entityType, displayName)]);
15665
+ if (_optionalChain([resolved, 'optionalAccess', _429 => _429.Inline])) {
15667
15666
  const Custom = resolved.Inline;
15668
15667
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
15669
15668
  }
15670
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _429 => _429.url]), () => ( "#"));
15671
- const handleClick = _optionalChain([resolved, 'optionalAccess', _430 => _430.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
15669
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _430 => _430.url]), () => ( "#"));
15670
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _431 => _431.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
15672
15671
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
15673
15672
  _link2.default,
15674
15673
  {
@@ -15776,7 +15775,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15776
15775
  if (!suggestionMenuComponent) return void 0;
15777
15776
  const Component2 = suggestionMenuComponent;
15778
15777
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
15779
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _431 => _431.items, 'access', _432 => _432[0], 'optionalAccess', _433 => _433.title]) === KEEP_OPEN_SENTINEL_TITLE;
15778
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _432 => _432.items, 'access', _433 => _433[0], 'optionalAccess', _434 => _434.title]) === KEEP_OPEN_SENTINEL_TITLE;
15780
15779
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15781
15780
  Component2,
15782
15781
  {
@@ -15785,7 +15784,7 @@ function BlockNoteEditorMentionSuggestionMenu({
15785
15784
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
15786
15785
  onItemClick: (item) => {
15787
15786
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
15788
- _optionalChain([props, 'access', _434 => _434.onItemClick, 'optionalCall', _435 => _435(item)]);
15787
+ _optionalChain([props, 'access', _435 => _435.onItemClick, 'optionalCall', _436 => _436(item)]);
15789
15788
  }
15790
15789
  }
15791
15790
  );
@@ -15979,10 +15978,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
15979
15978
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15980
15979
  Checkbox,
15981
15980
  {
15982
- checked: _optionalChain([params, 'access', _436 => _436.checkedIds, 'optionalAccess', _437 => _437.includes, 'call', _438 => _438(row.getValue(params.name))]) || false,
15981
+ checked: _optionalChain([params, 'access', _437 => _437.checkedIds, 'optionalAccess', _438 => _438.includes, 'call', _439 => _439(row.getValue(params.name))]) || false,
15983
15982
  onCheckedChange: (value) => {
15984
15983
  row.toggleSelected(!!value);
15985
- _optionalChain([params, 'access', _439 => _439.toggleId, 'optionalCall', _440 => _440(row.getValue(params.name))]);
15984
+ _optionalChain([params, 'access', _440 => _440.toggleId, 'optionalCall', _441 => _441(row.getValue(params.name))]);
15986
15985
  },
15987
15986
  "aria-label": "Select row"
15988
15987
  }
@@ -16041,7 +16040,7 @@ function useJsonApiGet(params) {
16041
16040
  const [response, setResponse] = _react.useState.call(void 0, null);
16042
16041
  const isMounted = _react.useRef.call(void 0, true);
16043
16042
  const fetchData = _react.useCallback.call(void 0, async () => {
16044
- if (_optionalChain([params, 'access', _441 => _441.options, 'optionalAccess', _442 => _442.enabled]) === false) return;
16043
+ if (_optionalChain([params, 'access', _442 => _442.options, 'optionalAccess', _443 => _443.enabled]) === false) return;
16045
16044
  setLoading(true);
16046
16045
  setError(null);
16047
16046
  try {
@@ -16068,9 +16067,9 @@ function useJsonApiGet(params) {
16068
16067
  setLoading(false);
16069
16068
  }
16070
16069
  }
16071
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _443 => _443.options, 'optionalAccess', _444 => _444.enabled])]);
16070
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _444 => _444.options, 'optionalAccess', _445 => _445.enabled])]);
16072
16071
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
16073
- if (!_optionalChain([response, 'optionalAccess', _445 => _445.nextPage])) return;
16072
+ if (!_optionalChain([response, 'optionalAccess', _446 => _446.nextPage])) return;
16074
16073
  setLoading(true);
16075
16074
  try {
16076
16075
  const nextResponse = await response.nextPage();
@@ -16091,7 +16090,7 @@ function useJsonApiGet(params) {
16091
16090
  }
16092
16091
  }, [response]);
16093
16092
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
16094
- if (!_optionalChain([response, 'optionalAccess', _446 => _446.prevPage])) return;
16093
+ if (!_optionalChain([response, 'optionalAccess', _447 => _447.prevPage])) return;
16095
16094
  setLoading(true);
16096
16095
  try {
16097
16096
  const prevResponse = await response.prevPage();
@@ -16117,15 +16116,15 @@ function useJsonApiGet(params) {
16117
16116
  return () => {
16118
16117
  isMounted.current = false;
16119
16118
  };
16120
- }, [fetchData, ..._optionalChain([params, 'access', _447 => _447.options, 'optionalAccess', _448 => _448.deps]) || []]);
16119
+ }, [fetchData, ..._optionalChain([params, 'access', _448 => _448.options, 'optionalAccess', _449 => _449.deps]) || []]);
16121
16120
  return {
16122
16121
  data,
16123
16122
  loading,
16124
16123
  error,
16125
16124
  response,
16126
16125
  refetch: fetchData,
16127
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _449 => _449.next]),
16128
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _450 => _450.prev]),
16126
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _450 => _450.next]),
16127
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _451 => _451.prev]),
16129
16128
  fetchNextPage,
16130
16129
  fetchPreviousPage
16131
16130
  };
@@ -16203,17 +16202,17 @@ function useJsonApiMutation(config) {
16203
16202
  if (apiResponse.ok) {
16204
16203
  const resultData = apiResponse.data;
16205
16204
  setData(resultData);
16206
- _optionalChain([config, 'access', _451 => _451.onSuccess, 'optionalCall', _452 => _452(resultData)]);
16205
+ _optionalChain([config, 'access', _452 => _452.onSuccess, 'optionalCall', _453 => _453(resultData)]);
16207
16206
  return resultData;
16208
16207
  } else {
16209
16208
  setError(apiResponse.error);
16210
- _optionalChain([config, 'access', _453 => _453.onError, 'optionalCall', _454 => _454(apiResponse.error)]);
16209
+ _optionalChain([config, 'access', _454 => _454.onError, 'optionalCall', _455 => _455(apiResponse.error)]);
16211
16210
  return null;
16212
16211
  }
16213
16212
  } catch (err) {
16214
16213
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
16215
16214
  setError(errorMessage);
16216
- _optionalChain([config, 'access', _455 => _455.onError, 'optionalCall', _456 => _456(errorMessage)]);
16215
+ _optionalChain([config, 'access', _456 => _456.onError, 'optionalCall', _457 => _457(errorMessage)]);
16217
16216
  return null;
16218
16217
  } finally {
16219
16218
  setLoading(false);
@@ -16286,7 +16285,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
16286
16285
  {
16287
16286
  href: hasRole(_chunkX2MQ3WHXjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
16288
16287
  page: "/administration",
16289
- id: _optionalChain([_chunk6T6QB6K2js.Modules, 'access', _457 => _457.Company, 'access', _458 => _458.pageUrl, 'optionalAccess', _459 => _459.substring, 'call', _460 => _460(1)]),
16288
+ id: _optionalChain([_chunk6T6QB6K2js.Modules, 'access', _458 => _458.Company, 'access', _459 => _459.pageUrl, 'optionalAccess', _460 => _460.substring, 'call', _461 => _461(1)]),
16290
16289
  childPage: company.id
16291
16290
  }) : generateUrl({ page: _chunk6T6QB6K2js.Modules.Company, id: company.id }),
16292
16291
  children: row.getValue("name")
@@ -16302,7 +16301,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
16302
16301
  })
16303
16302
  };
16304
16303
  const columns = _react.useMemo.call(void 0, () => {
16305
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _461 => _461[field], 'optionalCall', _462 => _462()])).filter((col) => col !== void 0);
16304
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _462 => _462[field], 'optionalCall', _463 => _463()])).filter((col) => col !== void 0);
16306
16305
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
16307
16306
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16308
16307
  }, "useCompanyTableStructure");
@@ -16314,7 +16313,7 @@ var GRACE_DAYS = 3;
16314
16313
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
16315
16314
  if (!currentUser || !_chunkX2MQ3WHXjs.isRolesConfigured.call(void 0, )) return false;
16316
16315
  const adminRoleId = _chunkX2MQ3WHXjs.getRoleId.call(void 0, ).Administrator;
16317
- return !!_optionalChain([currentUser, 'access', _463 => _463.roles, 'optionalAccess', _464 => _464.some, 'call', _465 => _465((role) => role.id === adminRoleId)]);
16316
+ return !!_optionalChain([currentUser, 'access', _464 => _464.roles, 'optionalAccess', _465 => _465.some, 'call', _466 => _466((role) => role.id === adminRoleId)]);
16318
16317
  }, "isAdministrator");
16319
16318
  function useSubscriptionStatus() {
16320
16319
  const { company, currentUser } = useCurrentUserContext();
@@ -16432,7 +16431,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
16432
16431
  })
16433
16432
  };
16434
16433
  const columns = _react.useMemo.call(void 0, () => {
16435
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _466 => _466[field], 'optionalCall', _467 => _467()])).filter((col) => col !== void 0);
16434
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _467 => _467[field], 'optionalCall', _468 => _468()])).filter((col) => col !== void 0);
16436
16435
  }, [params.fields, fieldColumnMap, t, generateUrl]);
16437
16436
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16438
16437
  }, "useRoleTableStructure");
@@ -16540,7 +16539,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
16540
16539
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
16541
16540
  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") }),
16542
16541
  price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
16543
- _optionalChain([price, 'access', _468 => _468.recurring, 'optionalAccess', _469 => _469.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
16542
+ _optionalChain([price, 'access', _469 => _469.recurring, 'optionalAccess', _470 => _470.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
16544
16543
  ] });
16545
16544
  }, "cell"),
16546
16545
  enableSorting: false,
@@ -16548,7 +16547,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
16548
16547
  })
16549
16548
  };
16550
16549
  const columns = _react.useMemo.call(void 0, () => {
16551
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _470 => _470[field], 'optionalCall', _471 => _471()])).filter((col) => col !== void 0);
16550
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _471 => _471[field], 'optionalCall', _472 => _472()])).filter((col) => col !== void 0);
16552
16551
  }, [params.fields, fieldColumnMap, t, generateUrl]);
16553
16552
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16554
16553
  }, "useStripePriceTableStructure");
@@ -16607,7 +16606,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
16607
16606
  })
16608
16607
  };
16609
16608
  const columns = _react.useMemo.call(void 0, () => {
16610
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _472 => _472[field], 'optionalCall', _473 => _473()])).filter((col) => col !== void 0);
16609
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _473 => _473[field], 'optionalCall', _474 => _474()])).filter((col) => col !== void 0);
16611
16610
  }, [params.fields, fieldColumnMap, t, generateUrl]);
16612
16611
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16613
16612
  }, "useStripeProductTableStructure");
@@ -16709,11 +16708,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
16709
16708
  return params.fields.map((field) => {
16710
16709
  const localHandler = fieldColumnMap[field];
16711
16710
  if (localHandler) return localHandler();
16712
- const customHandler = _optionalChain([params, 'access', _474 => _474.context, 'optionalAccess', _475 => _475.customCells, 'optionalAccess', _476 => _476[field]]);
16711
+ const customHandler = _optionalChain([params, 'access', _475 => _475.context, 'optionalAccess', _476 => _476.customCells, 'optionalAccess', _477 => _477[field]]);
16713
16712
  if (customHandler) return customHandler({ t });
16714
16713
  return void 0;
16715
16714
  }).filter((col) => col !== void 0);
16716
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _477 => _477.context, 'optionalAccess', _478 => _478.customCells])]);
16715
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _478 => _478.context, 'optionalAccess', _479 => _479.customCells])]);
16717
16716
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
16718
16717
  }, "useContentTableStructure");
16719
16718
 
@@ -17051,7 +17050,7 @@ function ContentTableSearch({ data }) {
17051
17050
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
17052
17051
  if (!isExpanded) {
17053
17052
  setIsFocused(true);
17054
- setTimeout(() => _optionalChain([inputRef, 'access', _479 => _479.current, 'optionalAccess', _480 => _480.focus, 'call', _481 => _481()]), 50);
17053
+ setTimeout(() => _optionalChain([inputRef, 'access', _480 => _480.current, 'optionalAccess', _481 => _481.focus, 'call', _482 => _482()]), 50);
17055
17054
  }
17056
17055
  }, "handleSearchIconClick");
17057
17056
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -17147,7 +17146,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17147
17146
  if (data.isLoaded) setPendingDirection(null);
17148
17147
  }, [data.isLoaded]);
17149
17148
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
17150
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _482 => _482.data]), () => ( EMPTY_ARRAY)),
17149
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _483 => _483.data]), () => ( EMPTY_ARRAY)),
17151
17150
  fields,
17152
17151
  checkedIds,
17153
17152
  toggleId,
@@ -17180,7 +17179,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17180
17179
  });
17181
17180
  const rowModel = tableData ? table.getRowModel() : null;
17182
17181
  const groupedRows = _react.useMemo.call(void 0, () => {
17183
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _483 => _483.rows, 'optionalAccess', _484 => _484.length])) return null;
17182
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _484 => _484.rows, 'optionalAccess', _485 => _485.length])) return null;
17184
17183
  const groupMap = /* @__PURE__ */ new Map();
17185
17184
  for (const row of rowModel.rows) {
17186
17185
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -17248,19 +17247,19 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17248
17247
  ) }),
17249
17248
  !props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
17250
17249
  const meta = header.column.columnDef.meta;
17251
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _485 => _485.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
17250
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _486 => _486.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
17252
17251
  }) }, headerGroup.id))
17253
17252
  ] }),
17254
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _486 => _486.rows, 'optionalAccess', _487 => _487.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
17255
- /* @__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', _488 => _488.groupLabel, 'optionalCall', _489 => _489(group.groupKey)]), () => ( group.groupKey)) }) }) }),
17253
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _487 => _487.rows, 'optionalAccess', _488 => _488.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
17254
+ /* @__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', _489 => _489.groupLabel, 'optionalCall', _490 => _490(group.groupKey)]), () => ( group.groupKey)) }) }) }),
17256
17255
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17257
17256
  TableRow,
17258
17257
  {
17259
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _490 => _490(row.original.jsonApiData)]),
17258
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _491 => _491(row.original.jsonApiData)]),
17260
17259
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
17261
17260
  children: row.getVisibleCells().map((cell) => {
17262
17261
  const meta = cell.column.columnDef.meta;
17263
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _491 => _491.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17262
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _492 => _492.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17264
17263
  })
17265
17264
  },
17266
17265
  row.id
@@ -17268,11 +17267,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17268
17267
  ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17269
17268
  TableRow,
17270
17269
  {
17271
- onClick: () => _optionalChain([onRowClick, 'optionalCall', _492 => _492(row.original.jsonApiData)]),
17270
+ onClick: () => _optionalChain([onRowClick, 'optionalCall', _493 => _493(row.original.jsonApiData)]),
17272
17271
  className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
17273
17272
  children: row.getVisibleCells().map((cell) => {
17274
17273
  const meta = cell.column.columnDef.meta;
17275
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _493 => _493.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17274
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _494 => _494.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
17276
17275
  })
17277
17276
  },
17278
17277
  row.id
@@ -17286,7 +17285,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17286
17285
  onClick: (e) => {
17287
17286
  e.preventDefault();
17288
17287
  setPendingDirection("prev");
17289
- _optionalChain([data, 'access', _494 => _494.previous, 'optionalCall', _495 => _495(true)]);
17288
+ _optionalChain([data, 'access', _495 => _495.previous, 'optionalCall', _496 => _496(true)]);
17290
17289
  },
17291
17290
  disabled: !data.previous || pendingDirection !== null,
17292
17291
  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" })
@@ -17301,7 +17300,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
17301
17300
  onClick: (e) => {
17302
17301
  e.preventDefault();
17303
17302
  setPendingDirection("next");
17304
- _optionalChain([data, 'access', _496 => _496.next, 'optionalCall', _497 => _497(true)]);
17303
+ _optionalChain([data, 'access', _497 => _497.next, 'optionalCall', _498 => _498(true)]);
17305
17304
  },
17306
17305
  disabled: !data.next || pendingDirection !== null,
17307
17306
  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" })
@@ -17322,7 +17321,7 @@ function ContentListGrid(props) {
17322
17321
  if (!data.next || !sentinelRef.current) return;
17323
17322
  const observer = new IntersectionObserver(
17324
17323
  (entries) => {
17325
- if (_optionalChain([entries, 'access', _498 => _498[0], 'optionalAccess', _499 => _499.isIntersecting])) _optionalChain([data, 'access', _500 => _500.next, 'optionalCall', _501 => _501()]);
17324
+ if (_optionalChain([entries, 'access', _499 => _499[0], 'optionalAccess', _500 => _500.isIntersecting])) _optionalChain([data, 'access', _501 => _501.next, 'optionalCall', _502 => _502()]);
17326
17325
  },
17327
17326
  { threshold: 0.1, rootMargin: "200px" }
17328
17327
  );
@@ -18109,7 +18108,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18109
18108
  newDigits[index] = digit;
18110
18109
  setDigits(newDigits);
18111
18110
  if (digit && index < 5) {
18112
- _optionalChain([inputRefs, 'access', _502 => _502.current, 'access', _503 => _503[index + 1], 'optionalAccess', _504 => _504.focus, 'call', _505 => _505()]);
18111
+ _optionalChain([inputRefs, 'access', _503 => _503.current, 'access', _504 => _504[index + 1], 'optionalAccess', _505 => _505.focus, 'call', _506 => _506()]);
18113
18112
  }
18114
18113
  const code = newDigits.join("");
18115
18114
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -18118,7 +18117,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18118
18117
  }, "handleChange");
18119
18118
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
18120
18119
  if (e.key === "Backspace" && !digits[index] && index > 0) {
18121
- _optionalChain([inputRefs, 'access', _506 => _506.current, 'access', _507 => _507[index - 1], 'optionalAccess', _508 => _508.focus, 'call', _509 => _509()]);
18120
+ _optionalChain([inputRefs, 'access', _507 => _507.current, 'access', _508 => _508[index - 1], 'optionalAccess', _509 => _509.focus, 'call', _510 => _510()]);
18122
18121
  }
18123
18122
  }, "handleKeyDown");
18124
18123
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -18127,7 +18126,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
18127
18126
  if (pastedData.length === 6) {
18128
18127
  const newDigits = pastedData.split("");
18129
18128
  setDigits(newDigits);
18130
- _optionalChain([inputRefs, 'access', _510 => _510.current, 'access', _511 => _511[5], 'optionalAccess', _512 => _512.focus, 'call', _513 => _513()]);
18129
+ _optionalChain([inputRefs, 'access', _511 => _511.current, 'access', _512 => _512[5], 'optionalAccess', _513 => _513.focus, 'call', _514 => _514()]);
18131
18130
  onComplete(pastedData);
18132
18131
  }
18133
18132
  }, "handlePaste");
@@ -18338,8 +18337,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
18338
18337
  try {
18339
18338
  const registrationData = await _chunk6T6QB6K2js.TwoFactorService.getPasskeyRegistrationOptions({
18340
18339
  id: _uuid.v4.call(void 0, ),
18341
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _514 => _514.email]), () => ( "")),
18342
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _515 => _515.name])
18340
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _515 => _515.email]), () => ( "")),
18341
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _516 => _516.name])
18343
18342
  });
18344
18343
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
18345
18344
  await _chunk6T6QB6K2js.TwoFactorService.verifyPasskeyRegistration({
@@ -18490,7 +18489,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
18490
18489
  const setup = await _chunk6T6QB6K2js.TwoFactorService.setupTotp({
18491
18490
  id: _uuid.v4.call(void 0, ),
18492
18491
  name: name.trim(),
18493
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _516 => _516.email]), () => ( ""))
18492
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _517 => _517.email]), () => ( ""))
18494
18493
  });
18495
18494
  setQrCodeUri(setup.qrCodeUri);
18496
18495
  setAuthenticatorId(setup.authenticatorId);
@@ -18624,7 +18623,7 @@ function TwoFactorSettings() {
18624
18623
  if (isLoading) {
18625
18624
  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") }) }) });
18626
18625
  }
18627
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _517 => _517.isEnabled]), () => ( false));
18626
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _518 => _518.isEnabled]), () => ( false));
18628
18627
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
18629
18628
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
18630
18629
  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" }),
@@ -18662,7 +18661,7 @@ function TwoFactorSettings() {
18662
18661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
18663
18662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
18664
18663
  ] }),
18665
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _518 => _518.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
18664
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _519 => _519.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
18666
18665
  ] }) }),
18667
18666
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
18668
18667
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -18840,9 +18839,9 @@ function AcceptInvitation() {
18840
18839
  });
18841
18840
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
18842
18841
  try {
18843
- if (!_optionalChain([params, 'optionalAccess', _519 => _519.code])) return;
18842
+ if (!_optionalChain([params, 'optionalAccess', _520 => _520.code])) return;
18844
18843
  const payload = {
18845
- code: _optionalChain([params, 'optionalAccess', _520 => _520.code]),
18844
+ code: _optionalChain([params, 'optionalAccess', _521 => _521.code]),
18846
18845
  password: values.password
18847
18846
  };
18848
18847
  await _chunk6T6QB6K2js.AuthService.acceptInvitation(payload);
@@ -19213,14 +19212,14 @@ function RefreshUser() {
19213
19212
  setUser(fullUser);
19214
19213
  const token = {
19215
19214
  userId: fullUser.id,
19216
- companyId: _optionalChain([fullUser, 'access', _521 => _521.company, 'optionalAccess', _522 => _522.id]),
19215
+ companyId: _optionalChain([fullUser, 'access', _522 => _522.company, 'optionalAccess', _523 => _523.id]),
19217
19216
  roles: fullUser.roles.map((role) => role.id),
19218
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _523 => _523.company, 'optionalAccess', _524 => _524.features, 'optionalAccess', _525 => _525.map, 'call', _526 => _526((feature) => feature.id)]), () => ( [])),
19217
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _524 => _524.company, 'optionalAccess', _525 => _525.features, 'optionalAccess', _526 => _526.map, 'call', _527 => _527((feature) => feature.id)]), () => ( [])),
19219
19218
  modules: fullUser.modules.map((module) => {
19220
19219
  return { id: module.id, permissions: module.permissions };
19221
19220
  })
19222
19221
  };
19223
- await _optionalChain([_chunk6T6QB6K2js.getTokenHandler.call(void 0, ), 'optionalAccess', _527 => _527.updateToken, 'call', _528 => _528(token)]);
19222
+ await _optionalChain([_chunk6T6QB6K2js.getTokenHandler.call(void 0, ), 'optionalAccess', _528 => _528.updateToken, 'call', _529 => _529(token)]);
19224
19223
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
19225
19224
  }
19226
19225
  }, "loadFullUser");
@@ -19284,9 +19283,9 @@ function ResetPassword() {
19284
19283
  });
19285
19284
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
19286
19285
  try {
19287
- if (!_optionalChain([params, 'optionalAccess', _529 => _529.code])) return;
19286
+ if (!_optionalChain([params, 'optionalAccess', _530 => _530.code])) return;
19288
19287
  const payload = {
19289
- code: _optionalChain([params, 'optionalAccess', _530 => _530.code]),
19288
+ code: _optionalChain([params, 'optionalAccess', _531 => _531.code]),
19290
19289
  password: values.password
19291
19290
  };
19292
19291
  await _chunk6T6QB6K2js.AuthService.resetPassword(payload);
@@ -19811,7 +19810,7 @@ function AiConnectionEditor({
19811
19810
  const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
19812
19811
  const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
19813
19812
  const fieldsFor = _react.useCallback.call(void 0,
19814
- (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _531 => _531.find, 'call', _532 => _532((row) => row.provider === provider), 'optionalAccess', _533 => _533.fields]), () => ( [])),
19813
+ (provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _532 => _532.find, 'call', _533 => _533((row) => row.provider === provider), 'optionalAccess', _534 => _534.fields]), () => ( [])),
19815
19814
  [registryRows]
19816
19815
  );
19817
19816
  const defaultsFor = _react.useCallback.call(void 0,
@@ -19820,7 +19819,7 @@ function AiConnectionEditor({
19820
19819
  const seeded = {};
19821
19820
  fieldsFor(provider).forEach((descriptor) => {
19822
19821
  if (descriptor.kind === "boolean") {
19823
- const current2 = _optionalChain([stored, 'optionalAccess', _534 => _534[descriptor.field]]);
19822
+ const current2 = _optionalChain([stored, 'optionalAccess', _535 => _535[descriptor.field]]);
19824
19823
  seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
19825
19824
  return;
19826
19825
  }
@@ -19828,7 +19827,7 @@ function AiConnectionEditor({
19828
19827
  seeded[descriptor.field] = "";
19829
19828
  return;
19830
19829
  }
19831
- const current = _optionalChain([stored, 'optionalAccess', _535 => _535[descriptor.field]]);
19830
+ const current = _optionalChain([stored, 'optionalAccess', _536 => _536[descriptor.field]]);
19832
19831
  if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
19833
19832
  else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
19834
19833
  });
@@ -19854,7 +19853,7 @@ function AiConnectionEditor({
19854
19853
  values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
19855
19854
  }).superRefine((data, ctx) => {
19856
19855
  fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
19857
- const value = _optionalChain([data, 'access', _536 => _536.values, 'optionalAccess', _537 => _537[descriptor.field]]);
19856
+ const value = _optionalChain([data, 'access', _537 => _537.values, 'optionalAccess', _538 => _538[descriptor.field]]);
19858
19857
  const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
19859
19858
  if (filled) return;
19860
19859
  ctx.addIssue({
@@ -19868,11 +19867,11 @@ function AiConnectionEditor({
19868
19867
  );
19869
19868
  const getDefaultValues = _react.useCallback.call(void 0,
19870
19869
  () => ({
19871
- id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _538 => _538.id]), () => ( _uuid.v4.call(void 0, ))),
19872
- name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _539 => _539.name]), () => ( "")),
19873
- provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _540 => _540.provider]), () => ( providers[0])), () => ( "")),
19874
- enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _541 => _541.enabled]), () => ( true)),
19875
- values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _542 => _542.provider]), () => ( providers[0])), () => ( "")))
19870
+ id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _539 => _539.id]), () => ( _uuid.v4.call(void 0, ))),
19871
+ name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _540 => _540.name]), () => ( "")),
19872
+ provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _541 => _541.provider]), () => ( providers[0])), () => ( "")),
19873
+ enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _542 => _542.enabled]), () => ( true)),
19874
+ values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _543 => _543.provider]), () => ( providers[0])), () => ( "")))
19876
19875
  }),
19877
19876
  [connection, providers, defaultsFor]
19878
19877
  );
@@ -19883,7 +19882,7 @@ function AiConnectionEditor({
19883
19882
  _react.useEffect.call(void 0, () => {
19884
19883
  if (registryRows.length === 0) return;
19885
19884
  const currentProvider = form.getValues("provider");
19886
- const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _543 => _543.provider]) || providers[0] || "";
19885
+ const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _544 => _544.provider]) || providers[0] || "";
19887
19886
  if (!provider) return;
19888
19887
  if (provider !== currentProvider) form.setValue("provider", provider);
19889
19888
  const currentValues = form.getValues("values");
@@ -19954,7 +19953,7 @@ function AiConnectionEditor({
19954
19953
  {
19955
19954
  form,
19956
19955
  entityType: t("ai_connections.admin.entity"),
19957
- entityName: _optionalChain([connection, 'optionalAccess', _544 => _544.name]),
19956
+ entityName: _optionalChain([connection, 'optionalAccess', _545 => _545.name]),
19958
19957
  isEdit,
19959
19958
  module: _chunk6T6QB6K2js.Modules.AiConnection,
19960
19959
  size: "md",
@@ -19962,7 +19961,7 @@ function AiConnectionEditor({
19962
19961
  onSubmit: async (values) => {
19963
19962
  const attributes = {};
19964
19963
  fieldsFor(values.provider).forEach((descriptor) => {
19965
- const coerced = coerce(descriptor, _optionalChain([values, 'access', _545 => _545.values, 'optionalAccess', _546 => _546[descriptor.field]]));
19964
+ const coerced = coerce(descriptor, _optionalChain([values, 'access', _546 => _546.values, 'optionalAccess', _547 => _547[descriptor.field]]));
19966
19965
  if (coerced !== void 0) attributes[descriptor.field] = coerced;
19967
19966
  });
19968
19967
  const payload = {
@@ -20183,7 +20182,7 @@ function AiConnectionTypeCard({ connectionType }) {
20183
20182
  ),
20184
20183
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
20185
20184
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
20186
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _547 => _547.provider]), _optionalChain([envDefault, 'optionalAccess', _548 => _548.model]), _optionalChain([envDefault, 'optionalAccess', _549 => _549.url])].filter(Boolean).join(" \xB7 ") })
20185
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _548 => _548.provider]), _optionalChain([envDefault, 'optionalAccess', _549 => _549.model]), _optionalChain([envDefault, 'optionalAccess', _550 => _550.url])].filter(Boolean).join(" \xB7 ") })
20187
20186
  ] })
20188
20187
  ] })
20189
20188
  ] })
@@ -20381,7 +20380,7 @@ function extractHeadings(blocks) {
20381
20380
  function processBlocks(blockArray) {
20382
20381
  for (const block of blockArray) {
20383
20382
  if (block.type === "heading") {
20384
- const level = _optionalChain([block, 'access', _550 => _550.props, 'optionalAccess', _551 => _551.level]) || 1;
20383
+ const level = _optionalChain([block, 'access', _551 => _551.props, 'optionalAccess', _552 => _552.level]) || 1;
20385
20384
  const text = extractTextFromContent(block.content);
20386
20385
  if (text.trim()) {
20387
20386
  headings.push({
@@ -20724,7 +20723,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
20724
20723
  })
20725
20724
  };
20726
20725
  const columns = _react.useMemo.call(void 0, () => {
20727
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _552 => _552[field], 'optionalCall', _553 => _553()])).filter((col) => col !== void 0);
20726
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _553 => _553[field], 'optionalCall', _554 => _554()])).filter((col) => col !== void 0);
20728
20727
  }, [params.fields, fieldColumnMap, t, generateUrl]);
20729
20728
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
20730
20729
  }, "useHowToTableStructure");
@@ -20823,7 +20822,7 @@ function HowToSelector({
20823
20822
  }, "setHowTo");
20824
20823
  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: [
20825
20824
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
20826
- /* @__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', _554 => _554.value, 'optionalAccess', _555 => _555.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 }) }))) }) }) }),
20825
+ /* @__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', _555 => _555.value, 'optionalAccess', _556 => _556.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 }) }))) }) }) }),
20827
20826
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
20828
20827
  _lucidereact.CircleX,
20829
20828
  {
@@ -21217,10 +21216,10 @@ function CitationsTab({ citations, sources }) {
21217
21216
  ] }) }),
21218
21217
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
21219
21218
  const isOpen = expanded.has(chunk.id);
21220
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _556 => _556.get, 'call', _557 => _557(chunk.nodeId)]) : void 0;
21219
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _557 => _557.get, 'call', _558 => _558(chunk.nodeId)]) : void 0;
21221
21220
  const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
21222
21221
  const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
21223
- const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _558 => _558.name]), () => ( fallbackName));
21222
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _559 => _559.name]), () => ( fallbackName));
21224
21223
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21225
21224
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
21226
21225
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -21268,7 +21267,7 @@ function ContentsTab({ citations, sources }) {
21268
21267
  for (const c of citations) {
21269
21268
  const id = c.nodeId;
21270
21269
  if (!id) continue;
21271
- const source = _optionalChain([sources, 'optionalAccess', _559 => _559.get, 'call', _560 => _560(id)]);
21270
+ const source = _optionalChain([sources, 'optionalAccess', _560 => _560.get, 'call', _561 => _561(id)]);
21272
21271
  if (!source) continue;
21273
21272
  const existing = map.get(id);
21274
21273
  if (existing) {
@@ -21335,7 +21334,7 @@ function UsersTab({ users, citations, sources }) {
21335
21334
  const generate = usePageUrlGenerator();
21336
21335
  const userMap = /* @__PURE__ */ new Map();
21337
21336
  for (const u of users) {
21338
- if (!_optionalChain([u, 'optionalAccess', _561 => _561.id])) continue;
21337
+ if (!_optionalChain([u, 'optionalAccess', _562 => _562.id])) continue;
21339
21338
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
21340
21339
  }
21341
21340
  if (citations && sources) {
@@ -21440,7 +21439,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
21440
21439
  }
21441
21440
  return ids.size;
21442
21441
  }, [message.citations, sources]);
21443
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _562 => _562.length]), () => ( 0));
21442
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _563 => _563.length]), () => ( 0));
21444
21443
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
21445
21444
  const visibleTabs = [];
21446
21445
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -21583,7 +21582,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
21583
21582
  return void 0;
21584
21583
  }
21585
21584
  })()));
21586
- if (_optionalChain([author, 'optionalAccess', _563 => _563.id])) userMap.set(author.id, author);
21585
+ if (_optionalChain([author, 'optionalAccess', _564 => _564.id])) userMap.set(author.id, author);
21587
21586
  }
21588
21587
  return Array.from(userMap.values());
21589
21588
  }, [resolved]);
@@ -21618,7 +21617,7 @@ function MessageItem({
21618
21617
  }) {
21619
21618
  const t = _nextintl.useTranslations.call(void 0, );
21620
21619
  const isUser = message.role === "user";
21621
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _564 => _564.has, 'call', _565 => _565(message.id)]);
21620
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _565 => _565.has, 'call', _566 => _566(message.id)]);
21622
21621
  const markdownComponents = _react.useMemo.call(void 0,
21623
21622
  () => ({
21624
21623
  a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
@@ -21635,7 +21634,7 @@ function MessageItem({
21635
21634
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
21636
21635
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
21637
21636
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
21638
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _566 => _566(message.id)]), children: t("features.assistant.retry") })
21637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _567 => _567(message.id)]), children: t("features.assistant.retry") })
21639
21638
  ] })
21640
21639
  ] });
21641
21640
  }
@@ -21726,7 +21725,7 @@ function AssistantThread({
21726
21725
  }) {
21727
21726
  const endRef = _react.useRef.call(void 0, null);
21728
21727
  _react.useEffect.call(void 0, () => {
21729
- _optionalChain([endRef, 'access', _567 => _567.current, 'optionalAccess', _568 => _568.scrollIntoView, 'call', _569 => _569({ behavior: "smooth" })]);
21728
+ _optionalChain([endRef, 'access', _568 => _568.current, 'optionalAccess', _569 => _569.scrollIntoView, 'call', _570 => _570({ behavior: "smooth" })]);
21730
21729
  }, [messages.length, sending]);
21731
21730
  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: [
21732
21731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -21756,7 +21755,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
21756
21755
  AssistantSidebar,
21757
21756
  {
21758
21757
  threads: ctx.threads,
21759
- activeId: _optionalChain([ctx, 'access', _570 => _570.assistant, 'optionalAccess', _571 => _571.id]),
21758
+ activeId: _optionalChain([ctx, 'access', _571 => _571.assistant, 'optionalAccess', _572 => _572.id]),
21760
21759
  onSelect: ctx.selectThread,
21761
21760
  onNew: ctx.startNew
21762
21761
  }
@@ -21810,7 +21809,7 @@ function flattenBlocks(blocks) {
21810
21809
  if (typeof inline === "string") return inline;
21811
21810
  if (!inline || typeof inline !== "object") return "";
21812
21811
  const node = inline;
21813
- if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _572 => _572.props, 'optionalAccess', _573 => _573.alias]), () => ( ""));
21812
+ if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _573 => _573.props, 'optionalAccess', _574 => _574.alias]), () => ( ""));
21814
21813
  if (typeof node.text === "string") return node.text;
21815
21814
  if (Array.isArray(node.content)) return node.content.map(readInline).join("");
21816
21815
  return "";
@@ -21926,7 +21925,7 @@ function AssistantPageContainer({
21926
21925
  AssistantSidebar,
21927
21926
  {
21928
21927
  threads: ctx.threads,
21929
- activeId: _optionalChain([ctx, 'access', _574 => _574.assistant, 'optionalAccess', _575 => _575.id]),
21928
+ activeId: _optionalChain([ctx, 'access', _575 => _575.assistant, 'optionalAccess', _576 => _576.id]),
21930
21929
  onSelect: ctx.selectThread,
21931
21930
  onNew: ctx.startNew
21932
21931
  }
@@ -22028,7 +22027,7 @@ function ApprovalActionCard({ actionId, summary, onResolved }) {
22028
22027
  try {
22029
22028
  const message = kind === "approve" ? await _chunk6T6QB6K2js.AssistantActionService.approve({ id: actionId }) : await _chunk6T6QB6K2js.AssistantActionService.deny({ id: actionId });
22030
22029
  setStatus(kind === "approve" ? "executed" : "denied");
22031
- if (message) _optionalChain([onResolved, 'optionalCall', _576 => _576(message)]);
22030
+ if (message) _optionalChain([onResolved, 'optionalCall', _577 => _577(message)]);
22032
22031
  } catch (error) {
22033
22032
  console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
22034
22033
  setFailed(true);
@@ -22127,14 +22126,14 @@ function NotificationsList({ archived }) {
22127
22126
  ] }),
22128
22127
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
22129
22128
  ] }) }) }, i)) }), "LoadingSkeleton");
22130
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _577 => _577.data, 'optionalAccess', _578 => _578.map, 'call', _579 => _579((notification) => {
22129
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _578 => _578.data, 'optionalAccess', _579 => _579.map, 'call', _580 => _580((notification) => {
22131
22130
  const notificationData = generateNotificationData({ notification, generateUrl });
22132
22131
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
22133
22132
  notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunk6T6QB6K2js.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
22134
22133
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
22135
22134
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
22136
22135
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
22137
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _580 => _580.actor, 'optionalAccess', _581 => _581.name]), () => ( "")),
22136
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _581 => _581.actor, 'optionalAccess', _582 => _582.name]), () => ( "")),
22138
22137
  title: notificationData.title
22139
22138
  }) }),
22140
22139
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
@@ -22480,7 +22479,7 @@ var DEFAULT_TRANSLATIONS = {
22480
22479
  invalidEmail: "Please enter a valid email address"
22481
22480
  };
22482
22481
  async function copyToClipboard(text) {
22483
- if (_optionalChain([navigator, 'access', _582 => _582.clipboard, 'optionalAccess', _583 => _583.writeText])) {
22482
+ if (_optionalChain([navigator, 'access', _583 => _583.clipboard, 'optionalAccess', _584 => _584.writeText])) {
22484
22483
  try {
22485
22484
  await navigator.clipboard.writeText(text);
22486
22485
  return true;
@@ -22522,7 +22521,7 @@ function ReferralWidget({
22522
22521
  const linkInputRef = _react.useRef.call(void 0, null);
22523
22522
  const config = _chunkX2MQ3WHXjs.getReferralConfig.call(void 0, );
22524
22523
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
22525
- const referralUrl = _optionalChain([stats, 'optionalAccess', _584 => _584.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
22524
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _585 => _585.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
22526
22525
  if (!_chunkX2MQ3WHXjs.isReferralEnabled.call(void 0, )) {
22527
22526
  return null;
22528
22527
  }
@@ -22532,7 +22531,7 @@ function ReferralWidget({
22532
22531
  if (success) {
22533
22532
  setCopied(true);
22534
22533
  _chunk6T6QB6K2js.showToast.call(void 0, t.copiedMessage);
22535
- _optionalChain([onLinkCopied, 'optionalCall', _585 => _585()]);
22534
+ _optionalChain([onLinkCopied, 'optionalCall', _586 => _586()]);
22536
22535
  setTimeout(() => setCopied(false), 2e3);
22537
22536
  } else {
22538
22537
  _chunk6T6QB6K2js.showError.call(void 0, t.copyError);
@@ -22546,12 +22545,12 @@ function ReferralWidget({
22546
22545
  try {
22547
22546
  await sendInvite(email);
22548
22547
  _chunk6T6QB6K2js.showToast.call(void 0, t.inviteSent);
22549
- _optionalChain([onInviteSent, 'optionalCall', _586 => _586(email)]);
22548
+ _optionalChain([onInviteSent, 'optionalCall', _587 => _587(email)]);
22550
22549
  setEmail("");
22551
22550
  } catch (err) {
22552
22551
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
22553
22552
  _chunk6T6QB6K2js.showError.call(void 0, error2.message);
22554
- _optionalChain([onInviteError, 'optionalCall', _587 => _587(error2)]);
22553
+ _optionalChain([onInviteError, 'optionalCall', _588 => _588(error2)]);
22555
22554
  }
22556
22555
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
22557
22556
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -23305,7 +23304,7 @@ function OAuthClientList({
23305
23304
  OAuthClientCard,
23306
23305
  {
23307
23306
  client,
23308
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _588 => _588(client)]),
23307
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _589 => _589(client)]),
23309
23308
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
23310
23309
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
23311
23310
  },
@@ -23321,11 +23320,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
23321
23320
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
23322
23321
  const isEditMode = !!client;
23323
23322
  const [formState, setFormState] = _react.useState.call(void 0, {
23324
- name: _optionalChain([client, 'optionalAccess', _589 => _589.name]) || "",
23325
- description: _optionalChain([client, 'optionalAccess', _590 => _590.description]) || "",
23326
- redirectUris: _optionalChain([client, 'optionalAccess', _591 => _591.redirectUris, 'optionalAccess', _592 => _592.length]) ? client.redirectUris : [""],
23327
- allowedScopes: _optionalChain([client, 'optionalAccess', _593 => _593.allowedScopes]) || [],
23328
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _594 => _594.isConfidential]), () => ( true))
23323
+ name: _optionalChain([client, 'optionalAccess', _590 => _590.name]) || "",
23324
+ description: _optionalChain([client, 'optionalAccess', _591 => _591.description]) || "",
23325
+ redirectUris: _optionalChain([client, 'optionalAccess', _592 => _592.redirectUris, 'optionalAccess', _593 => _593.length]) ? client.redirectUris : [""],
23326
+ allowedScopes: _optionalChain([client, 'optionalAccess', _594 => _594.allowedScopes]) || [],
23327
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _595 => _595.isConfidential]), () => ( true))
23329
23328
  });
23330
23329
  const [errors, setErrors] = _react.useState.call(void 0, {});
23331
23330
  const validate = _react.useCallback.call(void 0, () => {
@@ -23553,7 +23552,7 @@ function OAuthClientDetail({
23553
23552
  ] }),
23554
23553
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
23555
23554
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
23556
- /* @__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([_chunk6T6QB6K2js.OAUTH_SCOPE_DISPLAY, 'access', _595 => _595[scope], 'optionalAccess', _596 => _596.name]) || scope }, scope)) })
23555
+ /* @__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([_chunk6T6QB6K2js.OAUTH_SCOPE_DISPLAY, 'access', _596 => _596[scope], 'optionalAccess', _597 => _597.name]) || scope }, scope)) })
23557
23556
  ] }),
23558
23557
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
23559
23558
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -23697,7 +23696,7 @@ function OAuthConsentScreen({
23697
23696
  if (error || !clientInfo) {
23698
23697
  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: [
23699
23698
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
23700
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _597 => _597.message]) || "Invalid authorization request. Please try again." })
23699
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _598 => _598.message]) || "Invalid authorization request. Please try again." })
23701
23700
  ] }) }) }) });
23702
23701
  }
23703
23702
  const { client, scopes } = clientInfo;
@@ -23913,7 +23912,7 @@ function WaitlistForm({ onSuccess }) {
23913
23912
  questionnaire: values.questionnaire
23914
23913
  });
23915
23914
  setIsSuccess(true);
23916
- _optionalChain([onSuccess, 'optionalCall', _598 => _598()]);
23915
+ _optionalChain([onSuccess, 'optionalCall', _599 => _599()]);
23917
23916
  } catch (e) {
23918
23917
  errorToast({ error: e });
23919
23918
  } finally {
@@ -24561,7 +24560,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
24561
24560
  ] }),
24562
24561
  roleIds.map((roleId) => {
24563
24562
  const roleTokens = block[roleId];
24564
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _599 => _599[roleId]]), () => ( roleId));
24563
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _600 => _600[roleId]]), () => ( roleId));
24565
24564
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
24566
24565
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
24567
24566
  _chunkX2MQ3WHXjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -24598,7 +24597,7 @@ function RbacContainer() {
24598
24597
  }, []);
24599
24598
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
24600
24599
  if (!matrix) return [];
24601
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _600 => _600[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _601 => _601[b]]), () => ( b))));
24600
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _601 => _601[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _602 => _602[b]]), () => ( b))));
24602
24601
  }, [matrix, moduleNames]);
24603
24602
  const roleIds = _react.useMemo.call(void 0, () => {
24604
24603
  if (roleNames) {
@@ -24661,7 +24660,7 @@ function RbacContainer() {
24661
24660
  id === selectedModuleId && "bg-muted font-medium text-foreground",
24662
24661
  id !== selectedModuleId && "text-muted-foreground"
24663
24662
  ),
24664
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _602 => _602[id]]), () => ( id))
24663
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _603 => _603[id]]), () => ( id))
24665
24664
  }
24666
24665
  ) }, id)) }) }),
24667
24666
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -24669,7 +24668,7 @@ function RbacContainer() {
24669
24668
  {
24670
24669
  moduleId: selectedModuleId,
24671
24670
  block: selectedBlock,
24672
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _603 => _603[selectedModuleId]]), () => ( selectedModuleId)),
24671
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _604 => _604[selectedModuleId]]), () => ( selectedModuleId)),
24673
24672
  roleIds,
24674
24673
  roleNames,
24675
24674
  onOpenPicker: openPicker
@@ -24680,12 +24679,12 @@ function RbacContainer() {
24680
24679
  RbacPermissionPicker,
24681
24680
  {
24682
24681
  open: !!activePicker,
24683
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _604 => _604.anchor]), () => ( null)),
24682
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _605 => _605.anchor]), () => ( null)),
24684
24683
  value: activeValue,
24685
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _605 => _605.isRoleColumn]), () => ( false)),
24684
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _606 => _606.isRoleColumn]), () => ( false)),
24686
24685
  knownSegments: activeSegments,
24687
24686
  onSetValue: handleSetValue,
24688
- onClear: _optionalChain([activePicker, 'optionalAccess', _606 => _606.isRoleColumn]) ? handleClear : void 0,
24687
+ onClear: _optionalChain([activePicker, 'optionalAccess', _607 => _607.isRoleColumn]) ? handleClear : void 0,
24689
24688
  onClose: closePicker
24690
24689
  }
24691
24690
  )
@@ -24752,7 +24751,7 @@ function RbacByRoleContainer() {
24752
24751
  }, [roleNames]);
24753
24752
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
24754
24753
  if (!matrix) return [];
24755
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _607 => _607[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _608 => _608[b]]), () => ( b))));
24754
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _608 => _608[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _609 => _609[b]]), () => ( b))));
24756
24755
  }, [matrix, moduleNames]);
24757
24756
  _react.useEffect.call(void 0, () => {
24758
24757
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -24801,7 +24800,7 @@ function RbacByRoleContainer() {
24801
24800
  id === selectedRoleId && "bg-muted font-medium text-foreground",
24802
24801
  id !== selectedRoleId && "text-muted-foreground"
24803
24802
  ),
24804
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _609 => _609[id]]), () => ( id))
24803
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _610 => _610[id]]), () => ( id))
24805
24804
  }
24806
24805
  ) }, id)) }) }),
24807
24806
  /* @__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: [
@@ -24821,7 +24820,7 @@ function RbacByRoleContainer() {
24821
24820
  if (!block) return null;
24822
24821
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
24823
24822
  const roleTokens = block[selectedRoleId];
24824
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _610 => _610[moduleId]]), () => ( moduleId));
24823
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _611 => _611[moduleId]]), () => ( moduleId));
24825
24824
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
24826
24825
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24827
24826
  "td",
@@ -24836,7 +24835,7 @@ function RbacByRoleContainer() {
24836
24835
  _chunkX2MQ3WHXjs.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))
24837
24836
  ] }),
24838
24837
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
24839
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _611 => _611[selectedRoleId]]), () => ( selectedRoleId)) }),
24838
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _612 => _612[selectedRoleId]]), () => ( selectedRoleId)) }),
24840
24839
  _chunkX2MQ3WHXjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24841
24840
  CellButton3,
24842
24841
  {
@@ -24857,12 +24856,12 @@ function RbacByRoleContainer() {
24857
24856
  RbacPermissionPicker,
24858
24857
  {
24859
24858
  open: !!activePicker,
24860
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _612 => _612.anchor]), () => ( null)),
24859
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _613 => _613.anchor]), () => ( null)),
24861
24860
  value: activeValue,
24862
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _613 => _613.isRoleColumn]), () => ( false)),
24861
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _614 => _614.isRoleColumn]), () => ( false)),
24863
24862
  knownSegments: activeSegments,
24864
24863
  onSetValue: handleSetValue,
24865
- onClear: _optionalChain([activePicker, 'optionalAccess', _614 => _614.isRoleColumn]) ? handleClear : void 0,
24864
+ onClear: _optionalChain([activePicker, 'optionalAccess', _615 => _615.isRoleColumn]) ? handleClear : void 0,
24866
24865
  onClose: closePicker
24867
24866
  }
24868
24867
  )
@@ -25441,5 +25440,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
25441
25440
 
25442
25441
 
25443
25442
 
25444
- 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.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.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.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.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.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; 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.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; 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.DateRangeSelector = DateRangeSelector; 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.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.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.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.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.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;
25445
- //# sourceMappingURL=chunk-PXXVAY7N.js.map
25443
+
25444
+ 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.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.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.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.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.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; 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.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; 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.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.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.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.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.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.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;
25445
+ //# sourceMappingURL=chunk-5WFYQE22.js.map