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