@carlonicora/nextjs-jsonapi 1.124.0 → 1.124.2
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-JSY65RSG.mjs → BlockNoteEditor-4HYQUEYC.mjs} +2 -2
- package/dist/{BlockNoteEditor-PFA6IAEL.js → BlockNoteEditor-BEZWZXUH.js} +9 -9
- package/dist/{BlockNoteEditor-PFA6IAEL.js.map → BlockNoteEditor-BEZWZXUH.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-RSIVJ3VJ.mjs → chunk-5FQJB5QR.mjs} +36 -36
- package/dist/chunk-5FQJB5QR.mjs.map +1 -0
- package/dist/{chunk-LJLXNH2Z.js → chunk-QWZI4N7S.js} +216 -216
- package/dist/chunk-QWZI4N7S.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +30 -30
- package/dist/features/help/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +20 -20
- package/src/components/forms/EditorSheet.tsx +6 -1
- package/src/components/forms/__tests__/EditorSheet.test.tsx +24 -0
- package/src/components/forms/__tests__/useEditorDialog.test.ts +26 -0
- package/src/components/forms/useEditorDialog.ts +14 -5
- package/dist/chunk-LJLXNH2Z.js.map +0 -1
- package/dist/chunk-RSIVJ3VJ.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-JSY65RSG.mjs.map → BlockNoteEditor-4HYQUEYC.mjs.map} +0 -0
|
@@ -9363,21 +9363,21 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
9363
9363
|
setOpen(options.dialogOpen);
|
|
9364
9364
|
}
|
|
9365
9365
|
}, [_optionalChain([options, 'optionalAccess', _263 => _263.dialogOpen])]);
|
|
9366
|
+
const onDialogOpenChangeRef = _react.useRef.call(void 0, _optionalChain([options, 'optionalAccess', _264 => _264.onDialogOpenChange]));
|
|
9367
|
+
onDialogOpenChangeRef.current = _optionalChain([options, 'optionalAccess', _265 => _265.onDialogOpenChange]);
|
|
9366
9368
|
_react.useEffect.call(void 0, () => {
|
|
9367
9369
|
if (syncingFromProp.current) {
|
|
9368
9370
|
syncingFromProp.current = false;
|
|
9369
9371
|
return;
|
|
9370
9372
|
}
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
}
|
|
9374
|
-
}, [open, _optionalChain([options, 'optionalAccess', _265 => _265.onDialogOpenChange])]);
|
|
9373
|
+
_optionalChain([onDialogOpenChangeRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(open)]);
|
|
9374
|
+
}, [open]);
|
|
9375
9375
|
_react.useEffect.call(void 0, () => {
|
|
9376
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
9377
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
9376
|
+
if (_optionalChain([options, 'optionalAccess', _268 => _268.forceShow])) setOpen(true);
|
|
9377
|
+
}, [_optionalChain([options, 'optionalAccess', _269 => _269.forceShow])]);
|
|
9378
9378
|
_react.useEffect.call(void 0, () => {
|
|
9379
9379
|
if (!open) {
|
|
9380
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
9380
|
+
if (_optionalChain([options, 'optionalAccess', _270 => _270.onClose])) options.onClose();
|
|
9381
9381
|
}
|
|
9382
9382
|
}, [open]);
|
|
9383
9383
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
@@ -9470,7 +9470,7 @@ function EditorSheet({
|
|
|
9470
9470
|
hasBeenOpen.current = true;
|
|
9471
9471
|
} else if (hasBeenOpen.current) {
|
|
9472
9472
|
form.reset(onReset());
|
|
9473
|
-
_optionalChain([onClose, 'optionalCall',
|
|
9473
|
+
_optionalChain([onClose, 'optionalCall', _271 => _271()]);
|
|
9474
9474
|
}
|
|
9475
9475
|
}, [open]);
|
|
9476
9476
|
const wrappedOnSubmit = _react.useCallback.call(void 0,
|
|
@@ -9484,11 +9484,11 @@ function EditorSheet({
|
|
|
9484
9484
|
if (onSuccess) {
|
|
9485
9485
|
await onSuccess();
|
|
9486
9486
|
} else if (result) {
|
|
9487
|
-
_optionalChain([onRevalidate, 'optionalCall',
|
|
9488
|
-
if (
|
|
9487
|
+
_optionalChain([onRevalidate, 'optionalCall', _272 => _272(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
|
|
9488
|
+
if (propagateChanges) {
|
|
9489
9489
|
propagateChanges(result);
|
|
9490
9490
|
} else {
|
|
9491
|
-
_optionalChain([onNavigate, 'optionalCall',
|
|
9491
|
+
_optionalChain([onNavigate, 'optionalCall', _273 => _273(generateUrl({ page: module, id: result.id }))]);
|
|
9492
9492
|
}
|
|
9493
9493
|
}
|
|
9494
9494
|
} catch (error) {
|
|
@@ -9680,7 +9680,7 @@ function EntitySelector({
|
|
|
9680
9680
|
{
|
|
9681
9681
|
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" : ""}`,
|
|
9682
9682
|
children: [
|
|
9683
|
-
/* @__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',
|
|
9683
|
+
/* @__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', _274 => _274.name]), () => ( "")) : placeholder }),
|
|
9684
9684
|
hasValue(effectiveValue) && !disabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9685
9685
|
_lucidereact.CircleX,
|
|
9686
9686
|
{
|
|
@@ -9815,7 +9815,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9815
9815
|
movePrev();
|
|
9816
9816
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
9817
9817
|
if (activeIndex === -1) {
|
|
9818
|
-
_optionalChain([dropzoneState, 'access',
|
|
9818
|
+
_optionalChain([dropzoneState, 'access', _275 => _275.inputRef, 'access', _276 => _276.current, 'optionalAccess', _277 => _277.click, 'call', _278 => _278()]);
|
|
9819
9819
|
}
|
|
9820
9820
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
9821
9821
|
if (activeIndex !== -1) {
|
|
@@ -9853,13 +9853,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9853
9853
|
onValueChange(newValues);
|
|
9854
9854
|
if (rejectedFiles.length > 0) {
|
|
9855
9855
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
9856
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9856
|
+
if (_optionalChain([rejectedFiles, 'access', _279 => _279[i], 'access', _280 => _280.errors, 'access', _281 => _281[0], 'optionalAccess', _282 => _282.code]) === "file-too-large") {
|
|
9857
9857
|
_chunkPQBKPWBYjs.showError.call(void 0, t("common.errors.file"), {
|
|
9858
9858
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
9859
9859
|
});
|
|
9860
9860
|
break;
|
|
9861
9861
|
}
|
|
9862
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9862
|
+
if (_optionalChain([rejectedFiles, 'access', _283 => _283[i], 'access', _284 => _284.errors, 'access', _285 => _285[0], 'optionalAccess', _286 => _286.message])) {
|
|
9863
9863
|
_chunkPQBKPWBYjs.showError.call(void 0, t(`common.errors.file`), {
|
|
9864
9864
|
description: rejectedFiles[i].errors[0].message
|
|
9865
9865
|
});
|
|
@@ -10056,7 +10056,7 @@ FileInput.displayName = "FileInput";
|
|
|
10056
10056
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10057
10057
|
|
|
10058
10058
|
|
|
10059
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10059
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-BEZWZXUH.js"))), {
|
|
10060
10060
|
ssr: false
|
|
10061
10061
|
});
|
|
10062
10062
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -10121,7 +10121,7 @@ function FormBlockNote({
|
|
|
10121
10121
|
onChange: (content, isEmpty) => {
|
|
10122
10122
|
lastEditorContentRef.current = content;
|
|
10123
10123
|
field.onChange(content);
|
|
10124
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
10124
|
+
_optionalChain([onEmptyChange, 'optionalCall', _287 => _287(isEmpty)]);
|
|
10125
10125
|
},
|
|
10126
10126
|
placeholder,
|
|
10127
10127
|
bordered: true,
|
|
@@ -10785,11 +10785,11 @@ function FormPlaceAutocomplete({
|
|
|
10785
10785
|
const data = await response.json();
|
|
10786
10786
|
if (data.suggestions) {
|
|
10787
10787
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
10788
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
10789
|
-
description: _optionalChain([suggestion, 'access',
|
|
10788
|
+
place_id: _optionalChain([suggestion, 'access', _288 => _288.placePrediction, 'optionalAccess', _289 => _289.placeId]) || "",
|
|
10789
|
+
description: _optionalChain([suggestion, 'access', _290 => _290.placePrediction, 'optionalAccess', _291 => _291.text, 'optionalAccess', _292 => _292.text]) || "",
|
|
10790
10790
|
structured_formatting: {
|
|
10791
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
10792
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
10791
|
+
main_text: _optionalChain([suggestion, 'access', _293 => _293.placePrediction, 'optionalAccess', _294 => _294.structuredFormat, 'optionalAccess', _295 => _295.mainText, 'optionalAccess', _296 => _296.text]) || "",
|
|
10792
|
+
secondary_text: _optionalChain([suggestion, 'access', _297 => _297.placePrediction, 'optionalAccess', _298 => _298.structuredFormat, 'optionalAccess', _299 => _299.secondaryText, 'optionalAccess', _300 => _300.text]) || ""
|
|
10793
10793
|
}
|
|
10794
10794
|
}));
|
|
10795
10795
|
setSuggestions(formattedSuggestions);
|
|
@@ -10936,8 +10936,8 @@ function FormPlaceAutocomplete({
|
|
|
10936
10936
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
10937
10937
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
10938
10938
|
children: [
|
|
10939
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
10940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
10939
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _301 => _301.structured_formatting, 'optionalAccess', _302 => _302.main_text]) }),
|
|
10940
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _303 => _303.structured_formatting, 'optionalAccess', _304 => _304.secondary_text]) })
|
|
10941
10941
|
]
|
|
10942
10942
|
},
|
|
10943
10943
|
suggestion.place_id || index
|
|
@@ -10985,7 +10985,7 @@ function FormSelect({
|
|
|
10985
10985
|
disabled,
|
|
10986
10986
|
"data-testid": testId,
|
|
10987
10987
|
children: [
|
|
10988
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
10988
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _305 => _305.find, 'call', _306 => _306((v) => v.id === field.value), 'optionalAccess', _307 => _307.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
10989
10989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
10990
10990
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
10991
10991
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -11137,7 +11137,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
11137
11137
|
}, "getInitials");
|
|
11138
11138
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11139
11139
|
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: [
|
|
11140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
11140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _308 => _308.avatar]) }),
|
|
11141
11141
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
11142
11142
|
] }) });
|
|
11143
11143
|
}, "getAvatar");
|
|
@@ -11328,7 +11328,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11328
11328
|
})
|
|
11329
11329
|
};
|
|
11330
11330
|
const columns = _react.useMemo.call(void 0, () => {
|
|
11331
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11331
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _309 => _309[field], 'optionalCall', _310 => _310()])).filter((col) => col !== void 0);
|
|
11332
11332
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
11333
11333
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
11334
11334
|
}, "useUserTableStructure");
|
|
@@ -11442,10 +11442,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11442
11442
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11443
11443
|
/* @__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: [
|
|
11444
11444
|
/* @__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: [
|
|
11445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
11446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
11445
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _311 => _311.value, 'optionalAccess', _312 => _312.avatar]) }),
|
|
11446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _313 => _313.value, 'optionalAccess', _314 => _314.name]) ? _optionalChain([field, 'access', _315 => _315.value, 'optionalAccess', _316 => _316.name, 'access', _317 => _317.split, 'call', _318 => _318(" "), 'access', _319 => _319.map, 'call', _320 => _320((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
11447
11447
|
] }) }),
|
|
11448
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11448
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _321 => _321.value, 'optionalAccess', _322 => _322.name]), () => ( "")) })
|
|
11449
11449
|
] }) : /* @__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 }) }))) }) }) }),
|
|
11450
11450
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11451
11451
|
_lucidereact.CircleX,
|
|
@@ -11776,7 +11776,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
11776
11776
|
const data = useDataListRetriever({
|
|
11777
11777
|
ready: !!company,
|
|
11778
11778
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPQBKPWBYjs.UserService.findAllUsers(params), "retriever"),
|
|
11779
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
11779
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _323 => _323.id]), isDeleted },
|
|
11780
11780
|
module: _chunkPQBKPWBYjs.Modules.User
|
|
11781
11781
|
});
|
|
11782
11782
|
_react.useEffect.call(void 0, () => {
|
|
@@ -11883,11 +11883,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
11883
11883
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
11884
11884
|
onClick: (_e) => {
|
|
11885
11885
|
setSelectedUser(user);
|
|
11886
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11886
|
+
_optionalChain([setLevelOpen, 'optionalCall', _324 => _324(true)]);
|
|
11887
11887
|
},
|
|
11888
11888
|
onSelect: (_e) => {
|
|
11889
11889
|
setSelectedUser(user);
|
|
11890
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11890
|
+
_optionalChain([setLevelOpen, 'optionalCall', _325 => _325(true)]);
|
|
11891
11891
|
},
|
|
11892
11892
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
11893
11893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -12018,7 +12018,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12018
12018
|
company.legal_address
|
|
12019
12019
|
] }),
|
|
12020
12020
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
12021
|
-
_optionalChain([company, 'access',
|
|
12021
|
+
_optionalChain([company, 'access', _326 => _326.configurations, 'optionalAccess', _327 => _327.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12022
12022
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12023
12023
|
t("features.configuration.country"),
|
|
12024
12024
|
":"
|
|
@@ -12026,7 +12026,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12026
12026
|
" ",
|
|
12027
12027
|
company.configurations.country
|
|
12028
12028
|
] }),
|
|
12029
|
-
_optionalChain([company, 'access',
|
|
12029
|
+
_optionalChain([company, 'access', _328 => _328.configurations, 'optionalAccess', _329 => _329.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12030
12030
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12031
12031
|
t("features.configuration.currency"),
|
|
12032
12032
|
":"
|
|
@@ -12436,7 +12436,7 @@ function CompanyEditorInternal({
|
|
|
12436
12436
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12437
12437
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
12438
12438
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
12439
|
-
const canAccessFeatures = hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
12439
|
+
const canAccessFeatures = hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _330 => _330.env, 'access', _331 => _331.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _332 => _332.toLowerCase, 'call', _333 => _333()]) === "true";
|
|
12440
12440
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
12441
12441
|
(open) => {
|
|
12442
12442
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
@@ -12451,7 +12451,7 @@ function CompanyEditorInternal({
|
|
|
12451
12451
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12452
12452
|
fetchFeatures();
|
|
12453
12453
|
}
|
|
12454
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12454
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _334 => _334(open)]);
|
|
12455
12455
|
},
|
|
12456
12456
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12457
12457
|
);
|
|
@@ -12496,12 +12496,12 @@ function CompanyEditorInternal({
|
|
|
12496
12496
|
);
|
|
12497
12497
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12498
12498
|
return {
|
|
12499
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
12500
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
12501
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
12502
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
12503
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
12504
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
12499
|
+
id: _optionalChain([company, 'optionalAccess', _335 => _335.id]) || _uuid.v4.call(void 0, ),
|
|
12500
|
+
name: _optionalChain([company, 'optionalAccess', _336 => _336.name]) || "",
|
|
12501
|
+
featureIds: _optionalChain([company, 'optionalAccess', _337 => _337.features, 'access', _338 => _338.map, 'call', _339 => _339((feature) => feature.id)]) || [],
|
|
12502
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _340 => _340.modules, 'access', _341 => _341.map, 'call', _342 => _342((module) => module.id)]) || [],
|
|
12503
|
+
logo: _optionalChain([company, 'optionalAccess', _343 => _343.logo]) || "",
|
|
12504
|
+
legal_address: _optionalChain([company, 'optionalAccess', _344 => _344.legal_address]) || ""
|
|
12505
12505
|
};
|
|
12506
12506
|
}, [company]);
|
|
12507
12507
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12513,7 +12513,7 @@ function CompanyEditorInternal({
|
|
|
12513
12513
|
{
|
|
12514
12514
|
form,
|
|
12515
12515
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12516
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12516
|
+
entityName: _optionalChain([company, 'optionalAccess', _345 => _345.name]),
|
|
12517
12517
|
isEdit: !!company,
|
|
12518
12518
|
module: _chunkPQBKPWBYjs.Modules.Company,
|
|
12519
12519
|
propagateChanges,
|
|
@@ -12538,7 +12538,7 @@ function CompanyEditorInternal({
|
|
|
12538
12538
|
throw new Error("Fiscal data validation failed");
|
|
12539
12539
|
}
|
|
12540
12540
|
const payload = {
|
|
12541
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12541
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _346 => _346.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12542
12542
|
name: values.name,
|
|
12543
12543
|
logo: files && contentType ? values.logo : void 0,
|
|
12544
12544
|
featureIds: values.featureIds,
|
|
@@ -12569,10 +12569,10 @@ function CompanyEditorInternal({
|
|
|
12569
12569
|
dialogOpen,
|
|
12570
12570
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12571
12571
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
12572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess',
|
|
12572
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _347 => _347.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12573
12573
|
_image2.default,
|
|
12574
12574
|
{
|
|
12575
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12575
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _348 => _348.logo]) || "",
|
|
12576
12576
|
alt: "Company Logo",
|
|
12577
12577
|
width: 200,
|
|
12578
12578
|
height: 200
|
|
@@ -12606,7 +12606,7 @@ function CompanyEditorInternal({
|
|
|
12606
12606
|
}
|
|
12607
12607
|
),
|
|
12608
12608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mt-2 text-sm font-semibold", children: t(`company.sections.fiscal_data`) }),
|
|
12609
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
12609
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _349 => _349.fiscal_data])) })
|
|
12610
12610
|
] }),
|
|
12611
12611
|
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 }) }) })
|
|
12612
12612
|
] })
|
|
@@ -12723,7 +12723,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
12723
12723
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12724
12724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12725
12725
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12726
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12726
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _350 => _350.actor, 'optionalAccess', _351 => _351.name]), () => ( "")),
|
|
12727
12727
|
title: data.title,
|
|
12728
12728
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12729
12729
|
}) }),
|
|
@@ -12752,7 +12752,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
12752
12752
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12753
12753
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12754
12754
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12755
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12755
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _352 => _352.actor, 'optionalAccess', _353 => _353.name]), () => ( "")),
|
|
12756
12756
|
title: data.title,
|
|
12757
12757
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12758
12758
|
}) }),
|
|
@@ -12816,7 +12816,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
12816
12816
|
_react.useEffect.call(void 0, () => {
|
|
12817
12817
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
12818
12818
|
if (_chunkJO5BLONKjs.isRolesConfigured.call(void 0, )) {
|
|
12819
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
12819
|
+
const isAdmin = _optionalChain([currentUser, 'access', _354 => _354.roles, 'optionalAccess', _355 => _355.some, 'call', _356 => _356((role) => role.id === _chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator)]);
|
|
12820
12820
|
if (isAdmin) {
|
|
12821
12821
|
setHasInitiallyLoaded(true);
|
|
12822
12822
|
return;
|
|
@@ -13018,7 +13018,7 @@ function OnboardingProvider({
|
|
|
13018
13018
|
let tourSteps = steps;
|
|
13019
13019
|
if (!tourSteps) {
|
|
13020
13020
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
13021
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
13021
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _357 => _357.steps]);
|
|
13022
13022
|
}
|
|
13023
13023
|
if (!tourSteps || tourSteps.length === 0) {
|
|
13024
13024
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -13086,10 +13086,10 @@ function OnboardingProvider({
|
|
|
13086
13086
|
when: {
|
|
13087
13087
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13088
13088
|
setCurrentStepIndex(index);
|
|
13089
|
-
_optionalChain([stepConfig, 'access',
|
|
13089
|
+
_optionalChain([stepConfig, 'access', _358 => _358.onShow, 'optionalCall', _359 => _359()]);
|
|
13090
13090
|
}, "show"),
|
|
13091
13091
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13092
|
-
_optionalChain([stepConfig, 'access',
|
|
13092
|
+
_optionalChain([stepConfig, 'access', _360 => _360.onHide, 'optionalCall', _361 => _361()]);
|
|
13093
13093
|
}, "hide")
|
|
13094
13094
|
}
|
|
13095
13095
|
});
|
|
@@ -13255,7 +13255,7 @@ function HowToMultiSelector({
|
|
|
13255
13255
|
retriever: (params) => _chunkPQBKPWBYjs.HowToService.findMany(params),
|
|
13256
13256
|
module: _chunkPQBKPWBYjs.Modules.HowTo,
|
|
13257
13257
|
getLabel: (howTo) => howTo.name,
|
|
13258
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
13258
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _362 => _362.id]),
|
|
13259
13259
|
onChange
|
|
13260
13260
|
}
|
|
13261
13261
|
);
|
|
@@ -13363,17 +13363,17 @@ function HowToEditorInternal({
|
|
|
13363
13363
|
);
|
|
13364
13364
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
13365
13365
|
() => ({
|
|
13366
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
13367
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
13368
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
13369
|
-
pages: _chunkPQBKPWBYjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
13370
|
-
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13371
|
-
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13372
|
-
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13373
|
-
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13374
|
-
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13375
|
-
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13376
|
-
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13366
|
+
id: _optionalChain([howTo, 'optionalAccess', _363 => _363.id]) || _uuid.v4.call(void 0, ),
|
|
13367
|
+
name: _optionalChain([howTo, 'optionalAccess', _364 => _364.name]) || "",
|
|
13368
|
+
description: _optionalChain([howTo, 'optionalAccess', _365 => _365.description]) || [],
|
|
13369
|
+
pages: _chunkPQBKPWBYjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _366 => _366.pages])),
|
|
13370
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.howToType]), () => ( "how-to")),
|
|
13371
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.slug]), () => ( "")),
|
|
13372
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _369 => _369.order]), () => ( 0)),
|
|
13373
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _370 => _370.summary]), () => ( "")),
|
|
13374
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _371 => _371.tags]), () => ( []))).join(", "),
|
|
13375
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _372 => _372.contextualKeys]), () => ( []))).join(", "),
|
|
13376
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _373 => _373.draft]), () => ( false)),
|
|
13377
13377
|
relatedArticles: []
|
|
13378
13378
|
}),
|
|
13379
13379
|
[howTo]
|
|
@@ -13384,7 +13384,7 @@ function HowToEditorInternal({
|
|
|
13384
13384
|
});
|
|
13385
13385
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
13386
13386
|
_react.useEffect.call(void 0, () => {
|
|
13387
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13387
|
+
if (!_optionalChain([howTo, 'optionalAccess', _374 => _374.howToType]) || !_optionalChain([howTo, 'optionalAccess', _375 => _375.slug])) return;
|
|
13388
13388
|
let active = true;
|
|
13389
13389
|
_chunkPQBKPWBYjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
13390
13390
|
if (!active) return;
|
|
@@ -13423,7 +13423,7 @@ function HowToEditorInternal({
|
|
|
13423
13423
|
{
|
|
13424
13424
|
form,
|
|
13425
13425
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
13426
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13426
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _376 => _376.name]),
|
|
13427
13427
|
isEdit: !!howTo,
|
|
13428
13428
|
module: _chunkPQBKPWBYjs.Modules.HowTo,
|
|
13429
13429
|
propagateChanges,
|
|
@@ -13804,7 +13804,7 @@ function withPatchedTitle(source, title) {
|
|
|
13804
13804
|
return _chunkPQBKPWBYjs.rehydrate.call(void 0, _chunkPQBKPWBYjs.Modules.Assistant, {
|
|
13805
13805
|
jsonApi: {
|
|
13806
13806
|
...dehydrated.jsonApi,
|
|
13807
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
13807
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _377 => _377.jsonApi, 'optionalAccess', _378 => _378.attributes]), () => ( {})), title }
|
|
13808
13808
|
},
|
|
13809
13809
|
included: dehydrated.included
|
|
13810
13810
|
});
|
|
@@ -13825,7 +13825,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13825
13825
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
13826
13826
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
13827
13827
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
13828
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
13828
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _379 => _379.jsonApi, 'optionalAccess', _380 => _380.attributes, 'optionalAccess', _381 => _381.engine]) === "operator"
|
|
13829
13829
|
);
|
|
13830
13830
|
const { socket } = useSocketContext();
|
|
13831
13831
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -13834,7 +13834,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13834
13834
|
if (!trimmed) return;
|
|
13835
13835
|
const optimistic = _chunkPQBKPWBYjs.AssistantMessage.buildOptimistic({
|
|
13836
13836
|
content: trimmed,
|
|
13837
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
13837
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _382 => _382.id]),
|
|
13838
13838
|
position: nextPosition(messages)
|
|
13839
13839
|
});
|
|
13840
13840
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -13844,13 +13844,13 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13844
13844
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
13845
13845
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
13846
13846
|
}, "handler");
|
|
13847
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13847
|
+
_optionalChain([socket, 'optionalAccess', _383 => _383.on, 'call', _384 => _384("assistant:status", handler)]);
|
|
13848
13848
|
try {
|
|
13849
13849
|
if (!assistant) {
|
|
13850
13850
|
const input = {
|
|
13851
13851
|
firstMessage: trimmed,
|
|
13852
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13853
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13852
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _385 => _385.howToMode]),
|
|
13853
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _386 => _386.limitToHowToId])
|
|
13854
13854
|
};
|
|
13855
13855
|
const created = operatorMode ? await _chunkPQBKPWBYjs.AssistantService.createOperator(input) : await _chunkPQBKPWBYjs.AssistantService.create(input);
|
|
13856
13856
|
const msgs = await _chunkPQBKPWBYjs.AssistantMessageService.findByAssistant({ assistantId: created.id });
|
|
@@ -13867,8 +13867,8 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13867
13867
|
}) : await _chunkPQBKPWBYjs.AssistantService.appendMessage({
|
|
13868
13868
|
assistantId: assistant.id,
|
|
13869
13869
|
content: trimmed,
|
|
13870
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13871
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13870
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _387 => _387.howToMode]),
|
|
13871
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _388 => _388.limitToHowToId])
|
|
13872
13872
|
});
|
|
13873
13873
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
13874
13874
|
}
|
|
@@ -13879,7 +13879,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13879
13879
|
return next;
|
|
13880
13880
|
});
|
|
13881
13881
|
} finally {
|
|
13882
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13882
|
+
_optionalChain([socket, 'optionalAccess', _389 => _389.off, 'call', _390 => _390("assistant:status", handler)]);
|
|
13883
13883
|
setSending(false);
|
|
13884
13884
|
setStatus(void 0);
|
|
13885
13885
|
}
|
|
@@ -13937,7 +13937,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13937
13937
|
await _chunkPQBKPWBYjs.AssistantService.delete({ id });
|
|
13938
13938
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
13939
13939
|
setAssistant((prev) => {
|
|
13940
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
13940
|
+
if (_optionalChain([prev, 'optionalAccess', _391 => _391.id]) === id) {
|
|
13941
13941
|
setMessages([]);
|
|
13942
13942
|
return void 0;
|
|
13943
13943
|
}
|
|
@@ -14157,7 +14157,7 @@ function EditableAvatar({
|
|
|
14157
14157
|
}, [image, isUploading, patchImage, t]);
|
|
14158
14158
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
14159
14159
|
(e) => {
|
|
14160
|
-
const file = _optionalChain([e, 'access',
|
|
14160
|
+
const file = _optionalChain([e, 'access', _392 => _392.target, 'access', _393 => _393.files, 'optionalAccess', _394 => _394[0]]);
|
|
14161
14161
|
if (file) handleFile(file);
|
|
14162
14162
|
e.target.value = "";
|
|
14163
14163
|
},
|
|
@@ -14166,7 +14166,7 @@ function EditableAvatar({
|
|
|
14166
14166
|
const handleDrop = _react.useCallback.call(void 0,
|
|
14167
14167
|
(e) => {
|
|
14168
14168
|
e.preventDefault();
|
|
14169
|
-
const file = _optionalChain([e, 'access',
|
|
14169
|
+
const file = _optionalChain([e, 'access', _395 => _395.dataTransfer, 'access', _396 => _396.files, 'optionalAccess', _397 => _397[0]]);
|
|
14170
14170
|
if (file && file.type.startsWith("image/")) {
|
|
14171
14171
|
handleFile(file);
|
|
14172
14172
|
}
|
|
@@ -14193,7 +14193,7 @@ function EditableAvatar({
|
|
|
14193
14193
|
"button",
|
|
14194
14194
|
{
|
|
14195
14195
|
type: "button",
|
|
14196
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
14196
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _398 => _398.current, 'optionalAccess', _399 => _399.click, 'call', _400 => _400()]),
|
|
14197
14197
|
disabled: isUploading,
|
|
14198
14198
|
className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
|
|
14199
14199
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
|
|
@@ -14274,7 +14274,7 @@ function BreadcrumbMobile({
|
|
|
14274
14274
|
}
|
|
14275
14275
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
14276
14276
|
/* @__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: [
|
|
14277
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
14277
|
+
_optionalChain([lastItem, 'optionalAccess', _401 => _401.name]),
|
|
14278
14278
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
14279
14279
|
] }),
|
|
14280
14280
|
/* @__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)) })
|
|
@@ -14596,7 +14596,7 @@ var railTriggerClass = _chunkPQBKPWBYjs.cn.call(void 0,
|
|
|
14596
14596
|
"data-[state=active]:bg-foreground data-[state=active]:text-background",
|
|
14597
14597
|
"data-[state=active]:font-semibold data-[state=active]:shadow-none"
|
|
14598
14598
|
);
|
|
14599
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
14599
|
+
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _402 => _402.key, 'optionalAccess', _403 => _403.name]))), () => ( tab.label)), "tabValue");
|
|
14600
14600
|
function RoundPageContainer({
|
|
14601
14601
|
module,
|
|
14602
14602
|
id,
|
|
@@ -14615,7 +14615,7 @@ function RoundPageContainer({
|
|
|
14615
14615
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
14616
14616
|
_react.useEffect.call(void 0, () => {
|
|
14617
14617
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
|
|
14618
|
-
if (_optionalChain([match, 'optionalAccess',
|
|
14618
|
+
if (_optionalChain([match, 'optionalAccess', _404 => _404.split, 'call', _405 => _405("="), 'access', _406 => _406[1]]) === "true") setShowDetailsState(true);
|
|
14619
14619
|
}, []);
|
|
14620
14620
|
_react.useEffect.call(void 0, () => {
|
|
14621
14621
|
setMounted(true);
|
|
@@ -14644,7 +14644,7 @@ function RoundPageContainer({
|
|
|
14644
14644
|
},
|
|
14645
14645
|
[module, id, rewriteUrl]
|
|
14646
14646
|
);
|
|
14647
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
14647
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _407 => _407.find, 'call', _408 => _408((t) => tabValue(t) === activeTab), 'optionalAccess', _409 => _409.fillHeight]) === true;
|
|
14648
14648
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
14649
14649
|
const isReady = mounted && isMobile !== void 0;
|
|
14650
14650
|
if (!isReady) {
|
|
@@ -14655,19 +14655,19 @@ function RoundPageContainer({
|
|
|
14655
14655
|
}
|
|
14656
14656
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14657
14657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { leftContent: headerLeftContent, className: "bg-sidebar border-0", children: headerChildren }),
|
|
14658
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPQBKPWBYjs.cn.call(void 0, `flex h-[calc(100vh-3rem)] w-full flex-col`, isMobile ? "p-1 pt-0" : "p-2 pt-0 pl-0"), children: /* @__PURE__ */ _jsxruntime.
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
layout2 === "rail" && tabs ? (
|
|
14658
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPQBKPWBYjs.cn.call(void 0, `flex h-[calc(100vh-3rem)] w-full flex-col`, isMobile ? "p-1 pt-0" : "p-2 pt-0 pl-0"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: [
|
|
14659
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
14660
|
+
(!fullWidth || forceHeader) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14661
|
+
RoundPageContainerTitle,
|
|
14662
|
+
{
|
|
14663
|
+
module,
|
|
14664
|
+
details,
|
|
14665
|
+
showDetails,
|
|
14666
|
+
setShowDetails,
|
|
14667
|
+
fullWidth
|
|
14668
|
+
}
|
|
14669
|
+
),
|
|
14670
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: layout2 === "rail" && tabs ? (
|
|
14671
14671
|
// Rail layout: the vertical-tab navigation is a flush-left
|
|
14672
14672
|
// sidebar of the card and the content fills the full remaining
|
|
14673
14673
|
// width (like `fullWidth`) — NOT the centred max-w-6xl column.
|
|
@@ -14814,22 +14814,22 @@ function RoundPageContainer({
|
|
|
14814
14814
|
}
|
|
14815
14815
|
)
|
|
14816
14816
|
}
|
|
14817
|
-
)
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
] }) })
|
|
14817
|
+
) })
|
|
14818
|
+
] }),
|
|
14819
|
+
details && (isMobile ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Sheet, { open: showDetails, onOpenChange: setShowDetails, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetContent, { side: "right", children: [
|
|
14820
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: "Details" }) }),
|
|
14821
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-y-auto p-6 pt-0", children: details })
|
|
14822
|
+
] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14823
|
+
"div",
|
|
14824
|
+
{
|
|
14825
|
+
className: _chunkPQBKPWBYjs.cn.call(void 0,
|
|
14826
|
+
"h-full shrink-0 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out",
|
|
14827
|
+
showDetails ? "w-96 border-l p-4 opacity-100" : "ml-0 w-0 border-l-0 p-0 opacity-0"
|
|
14828
|
+
),
|
|
14829
|
+
children: details
|
|
14830
|
+
}
|
|
14831
|
+
))
|
|
14832
|
+
] }) })
|
|
14833
14833
|
] });
|
|
14834
14834
|
}
|
|
14835
14835
|
_chunk7QVYU63Ejs.__name.call(void 0, RoundPageContainer, "RoundPageContainer");
|
|
@@ -14926,14 +14926,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14926
14926
|
const entityType = target.dataset.mentionType;
|
|
14927
14927
|
const alias = target.dataset.mentionAlias;
|
|
14928
14928
|
setHovered((prev) => {
|
|
14929
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14929
|
+
if (_optionalChain([prev, 'optionalAccess', _410 => _410.id]) === id && _optionalChain([prev, 'optionalAccess', _411 => _411.element]) === target) return prev;
|
|
14930
14930
|
return { id, entityType, alias, element: target };
|
|
14931
14931
|
});
|
|
14932
14932
|
}, "handleMouseOver");
|
|
14933
14933
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
14934
14934
|
const target = e.target.closest("[data-mention-id]");
|
|
14935
14935
|
if (!target) return;
|
|
14936
|
-
const related = _optionalChain([e, 'access',
|
|
14936
|
+
const related = _optionalChain([e, 'access', _412 => _412.relatedTarget, 'optionalAccess', _413 => _413.closest, 'call', _414 => _414("[data-mention-id]")]);
|
|
14937
14937
|
if (related) return;
|
|
14938
14938
|
scheduleClose();
|
|
14939
14939
|
}, "handleMouseOut");
|
|
@@ -14947,7 +14947,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14947
14947
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
14948
14948
|
if (!hovered || !mentionResolveFn) return null;
|
|
14949
14949
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
14950
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
14950
|
+
if (!_optionalChain([resolved, 'optionalAccess', _415 => _415.HoverContent])) return null;
|
|
14951
14951
|
const ContentComponent = resolved.HoverContent;
|
|
14952
14952
|
const rect = hovered.element.getBoundingClientRect();
|
|
14953
14953
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -14990,28 +14990,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
14990
14990
|
}, "parseMentionElement");
|
|
14991
14991
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
14992
14992
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14993
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14993
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _416 => _416(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
14994
14994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
14995
14995
|
"@",
|
|
14996
14996
|
displayName
|
|
14997
14997
|
] });
|
|
14998
14998
|
}, "MentionExternalHTML");
|
|
14999
14999
|
const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
15000
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15000
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _417 => _417(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15001
15001
|
if (disableMention) {
|
|
15002
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
15003
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
15002
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _418 => _418(props.id, props.entityType, displayName)]);
|
|
15003
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _419 => _419.url]), () => ( "#")), className: "text-primary", children: [
|
|
15004
15004
|
"@",
|
|
15005
15005
|
displayName
|
|
15006
15006
|
] });
|
|
15007
15007
|
}
|
|
15008
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
15009
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
15008
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _420 => _420(props.id, props.entityType, displayName)]);
|
|
15009
|
+
if (_optionalChain([resolved, 'optionalAccess', _421 => _421.Inline])) {
|
|
15010
15010
|
const Custom = resolved.Inline;
|
|
15011
15011
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
15012
15012
|
}
|
|
15013
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
15014
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
15013
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _422 => _422.url]), () => ( "#"));
|
|
15014
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _423 => _423.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
15015
15015
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15016
15016
|
_link2.default,
|
|
15017
15017
|
{
|
|
@@ -15117,7 +15117,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15117
15117
|
if (!suggestionMenuComponent) return void 0;
|
|
15118
15118
|
const Component2 = suggestionMenuComponent;
|
|
15119
15119
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15120
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
15120
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _424 => _424.items, 'access', _425 => _425[0], 'optionalAccess', _426 => _426.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
15121
15121
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15122
15122
|
Component2,
|
|
15123
15123
|
{
|
|
@@ -15126,7 +15126,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15126
15126
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
15127
15127
|
onItemClick: (item) => {
|
|
15128
15128
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
15129
|
-
_optionalChain([props, 'access',
|
|
15129
|
+
_optionalChain([props, 'access', _427 => _427.onItemClick, 'optionalCall', _428 => _428(item)]);
|
|
15130
15130
|
}
|
|
15131
15131
|
}
|
|
15132
15132
|
);
|
|
@@ -15320,10 +15320,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
15320
15320
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15321
15321
|
Checkbox,
|
|
15322
15322
|
{
|
|
15323
|
-
checked: _optionalChain([params, 'access',
|
|
15323
|
+
checked: _optionalChain([params, 'access', _429 => _429.checkedIds, 'optionalAccess', _430 => _430.includes, 'call', _431 => _431(row.getValue(params.name))]) || false,
|
|
15324
15324
|
onCheckedChange: (value) => {
|
|
15325
15325
|
row.toggleSelected(!!value);
|
|
15326
|
-
_optionalChain([params, 'access',
|
|
15326
|
+
_optionalChain([params, 'access', _432 => _432.toggleId, 'optionalCall', _433 => _433(row.getValue(params.name))]);
|
|
15327
15327
|
},
|
|
15328
15328
|
"aria-label": "Select row"
|
|
15329
15329
|
}
|
|
@@ -15382,7 +15382,7 @@ function useJsonApiGet(params) {
|
|
|
15382
15382
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
15383
15383
|
const isMounted = _react.useRef.call(void 0, true);
|
|
15384
15384
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
15385
|
-
if (_optionalChain([params, 'access',
|
|
15385
|
+
if (_optionalChain([params, 'access', _434 => _434.options, 'optionalAccess', _435 => _435.enabled]) === false) return;
|
|
15386
15386
|
setLoading(true);
|
|
15387
15387
|
setError(null);
|
|
15388
15388
|
try {
|
|
@@ -15409,9 +15409,9 @@ function useJsonApiGet(params) {
|
|
|
15409
15409
|
setLoading(false);
|
|
15410
15410
|
}
|
|
15411
15411
|
}
|
|
15412
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
15412
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _436 => _436.options, 'optionalAccess', _437 => _437.enabled])]);
|
|
15413
15413
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
15414
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
15414
|
+
if (!_optionalChain([response, 'optionalAccess', _438 => _438.nextPage])) return;
|
|
15415
15415
|
setLoading(true);
|
|
15416
15416
|
try {
|
|
15417
15417
|
const nextResponse = await response.nextPage();
|
|
@@ -15432,7 +15432,7 @@ function useJsonApiGet(params) {
|
|
|
15432
15432
|
}
|
|
15433
15433
|
}, [response]);
|
|
15434
15434
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
15435
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
15435
|
+
if (!_optionalChain([response, 'optionalAccess', _439 => _439.prevPage])) return;
|
|
15436
15436
|
setLoading(true);
|
|
15437
15437
|
try {
|
|
15438
15438
|
const prevResponse = await response.prevPage();
|
|
@@ -15458,15 +15458,15 @@ function useJsonApiGet(params) {
|
|
|
15458
15458
|
return () => {
|
|
15459
15459
|
isMounted.current = false;
|
|
15460
15460
|
};
|
|
15461
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
15461
|
+
}, [fetchData, ..._optionalChain([params, 'access', _440 => _440.options, 'optionalAccess', _441 => _441.deps]) || []]);
|
|
15462
15462
|
return {
|
|
15463
15463
|
data,
|
|
15464
15464
|
loading,
|
|
15465
15465
|
error,
|
|
15466
15466
|
response,
|
|
15467
15467
|
refetch: fetchData,
|
|
15468
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
15469
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
15468
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _442 => _442.next]),
|
|
15469
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _443 => _443.prev]),
|
|
15470
15470
|
fetchNextPage,
|
|
15471
15471
|
fetchPreviousPage
|
|
15472
15472
|
};
|
|
@@ -15544,17 +15544,17 @@ function useJsonApiMutation(config) {
|
|
|
15544
15544
|
if (apiResponse.ok) {
|
|
15545
15545
|
const resultData = apiResponse.data;
|
|
15546
15546
|
setData(resultData);
|
|
15547
|
-
_optionalChain([config, 'access',
|
|
15547
|
+
_optionalChain([config, 'access', _444 => _444.onSuccess, 'optionalCall', _445 => _445(resultData)]);
|
|
15548
15548
|
return resultData;
|
|
15549
15549
|
} else {
|
|
15550
15550
|
setError(apiResponse.error);
|
|
15551
|
-
_optionalChain([config, 'access',
|
|
15551
|
+
_optionalChain([config, 'access', _446 => _446.onError, 'optionalCall', _447 => _447(apiResponse.error)]);
|
|
15552
15552
|
return null;
|
|
15553
15553
|
}
|
|
15554
15554
|
} catch (err) {
|
|
15555
15555
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
15556
15556
|
setError(errorMessage);
|
|
15557
|
-
_optionalChain([config, 'access',
|
|
15557
|
+
_optionalChain([config, 'access', _448 => _448.onError, 'optionalCall', _449 => _449(errorMessage)]);
|
|
15558
15558
|
return null;
|
|
15559
15559
|
} finally {
|
|
15560
15560
|
setLoading(false);
|
|
@@ -15627,7 +15627,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15627
15627
|
{
|
|
15628
15628
|
href: hasRole(_chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
15629
15629
|
page: "/administration",
|
|
15630
|
-
id: _optionalChain([_chunkPQBKPWBYjs.Modules, 'access',
|
|
15630
|
+
id: _optionalChain([_chunkPQBKPWBYjs.Modules, 'access', _450 => _450.Company, 'access', _451 => _451.pageUrl, 'optionalAccess', _452 => _452.substring, 'call', _453 => _453(1)]),
|
|
15631
15631
|
childPage: company.id
|
|
15632
15632
|
}) : generateUrl({ page: _chunkPQBKPWBYjs.Modules.Company, id: company.id }),
|
|
15633
15633
|
children: row.getValue("name")
|
|
@@ -15643,7 +15643,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15643
15643
|
})
|
|
15644
15644
|
};
|
|
15645
15645
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15646
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15646
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _454 => _454[field], 'optionalCall', _455 => _455()])).filter((col) => col !== void 0);
|
|
15647
15647
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
15648
15648
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15649
15649
|
}, "useCompanyTableStructure");
|
|
@@ -15655,7 +15655,7 @@ var GRACE_DAYS = 3;
|
|
|
15655
15655
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
15656
15656
|
if (!currentUser || !_chunkJO5BLONKjs.isRolesConfigured.call(void 0, )) return false;
|
|
15657
15657
|
const adminRoleId = _chunkJO5BLONKjs.getRoleId.call(void 0, ).Administrator;
|
|
15658
|
-
return !!_optionalChain([currentUser, 'access',
|
|
15658
|
+
return !!_optionalChain([currentUser, 'access', _456 => _456.roles, 'optionalAccess', _457 => _457.some, 'call', _458 => _458((role) => role.id === adminRoleId)]);
|
|
15659
15659
|
}, "isAdministrator");
|
|
15660
15660
|
function useSubscriptionStatus() {
|
|
15661
15661
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -15772,7 +15772,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
15772
15772
|
})
|
|
15773
15773
|
};
|
|
15774
15774
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15775
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15775
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _459 => _459[field], 'optionalCall', _460 => _460()])).filter((col) => col !== void 0);
|
|
15776
15776
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
15777
15777
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15778
15778
|
}, "useRoleTableStructure");
|
|
@@ -15873,11 +15873,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15873
15873
|
return params.fields.map((field) => {
|
|
15874
15874
|
const localHandler = fieldColumnMap[field];
|
|
15875
15875
|
if (localHandler) return localHandler();
|
|
15876
|
-
const customHandler = _optionalChain([params, 'access',
|
|
15876
|
+
const customHandler = _optionalChain([params, 'access', _461 => _461.context, 'optionalAccess', _462 => _462.customCells, 'optionalAccess', _463 => _463[field]]);
|
|
15877
15877
|
if (customHandler) return customHandler({ t });
|
|
15878
15878
|
return void 0;
|
|
15879
15879
|
}).filter((col) => col !== void 0);
|
|
15880
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
15880
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _464 => _464.context, 'optionalAccess', _465 => _465.customCells])]);
|
|
15881
15881
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15882
15882
|
}, "useContentTableStructure");
|
|
15883
15883
|
|
|
@@ -16212,7 +16212,7 @@ function ContentTableSearch({ data }) {
|
|
|
16212
16212
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
16213
16213
|
if (!isExpanded) {
|
|
16214
16214
|
setIsFocused(true);
|
|
16215
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
16215
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _466 => _466.current, 'optionalAccess', _467 => _467.focus, 'call', _468 => _468()]), 50);
|
|
16216
16216
|
}
|
|
16217
16217
|
}, "handleSearchIconClick");
|
|
16218
16218
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -16291,7 +16291,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16291
16291
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
16292
16292
|
);
|
|
16293
16293
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
16294
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
16294
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _469 => _469.data]), () => ( EMPTY_ARRAY)),
|
|
16295
16295
|
fields,
|
|
16296
16296
|
checkedIds,
|
|
16297
16297
|
toggleId,
|
|
@@ -16324,7 +16324,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16324
16324
|
});
|
|
16325
16325
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
16326
16326
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
16327
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
16327
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _470 => _470.rows, 'optionalAccess', _471 => _471.length])) return null;
|
|
16328
16328
|
const groupMap = /* @__PURE__ */ new Map();
|
|
16329
16329
|
for (const row of rowModel.rows) {
|
|
16330
16330
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -16380,10 +16380,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16380
16380
|
) }),
|
|
16381
16381
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
16382
16382
|
const meta = header.column.columnDef.meta;
|
|
16383
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
16383
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _472 => _472.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
16384
16384
|
}) }, headerGroup.id))
|
|
16385
16385
|
] }),
|
|
16386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
16386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _473 => _473.rows, 'optionalAccess', _474 => _474.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
16387
16387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16388
16388
|
TableCell,
|
|
16389
16389
|
{
|
|
@@ -16394,11 +16394,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16394
16394
|
) }),
|
|
16395
16395
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
16396
16396
|
const meta = cell.column.columnDef.meta;
|
|
16397
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
16397
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _475 => _475.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
16398
16398
|
}) }, row.id))
|
|
16399
16399
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
16400
16400
|
const meta = cell.column.columnDef.meta;
|
|
16401
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
16401
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _476 => _476.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
16402
16402
|
}) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( "No results.")) }) }) }),
|
|
16403
16403
|
showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
|
|
16404
16404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16408,7 +16408,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16408
16408
|
size: "sm",
|
|
16409
16409
|
onClick: (e) => {
|
|
16410
16410
|
e.preventDefault();
|
|
16411
|
-
_optionalChain([data, 'access',
|
|
16411
|
+
_optionalChain([data, 'access', _477 => _477.previous, 'optionalCall', _478 => _478(true)]);
|
|
16412
16412
|
},
|
|
16413
16413
|
disabled: !data.previous,
|
|
16414
16414
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -16422,7 +16422,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
16422
16422
|
size: "sm",
|
|
16423
16423
|
onClick: (e) => {
|
|
16424
16424
|
e.preventDefault();
|
|
16425
|
-
_optionalChain([data, 'access',
|
|
16425
|
+
_optionalChain([data, 'access', _479 => _479.next, 'optionalCall', _480 => _480(true)]);
|
|
16426
16426
|
},
|
|
16427
16427
|
disabled: !data.next,
|
|
16428
16428
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -16443,7 +16443,7 @@ function ContentListGrid(props) {
|
|
|
16443
16443
|
if (!data.next || !sentinelRef.current) return;
|
|
16444
16444
|
const observer = new IntersectionObserver(
|
|
16445
16445
|
(entries) => {
|
|
16446
|
-
if (_optionalChain([entries, 'access',
|
|
16446
|
+
if (_optionalChain([entries, 'access', _481 => _481[0], 'optionalAccess', _482 => _482.isIntersecting])) _optionalChain([data, 'access', _483 => _483.next, 'optionalCall', _484 => _484()]);
|
|
16447
16447
|
},
|
|
16448
16448
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
16449
16449
|
);
|
|
@@ -17193,7 +17193,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
17193
17193
|
newDigits[index] = digit;
|
|
17194
17194
|
setDigits(newDigits);
|
|
17195
17195
|
if (digit && index < 5) {
|
|
17196
|
-
_optionalChain([inputRefs, 'access',
|
|
17196
|
+
_optionalChain([inputRefs, 'access', _485 => _485.current, 'access', _486 => _486[index + 1], 'optionalAccess', _487 => _487.focus, 'call', _488 => _488()]);
|
|
17197
17197
|
}
|
|
17198
17198
|
const code = newDigits.join("");
|
|
17199
17199
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -17202,7 +17202,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
17202
17202
|
}, "handleChange");
|
|
17203
17203
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
17204
17204
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
17205
|
-
_optionalChain([inputRefs, 'access',
|
|
17205
|
+
_optionalChain([inputRefs, 'access', _489 => _489.current, 'access', _490 => _490[index - 1], 'optionalAccess', _491 => _491.focus, 'call', _492 => _492()]);
|
|
17206
17206
|
}
|
|
17207
17207
|
}, "handleKeyDown");
|
|
17208
17208
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -17211,7 +17211,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
17211
17211
|
if (pastedData.length === 6) {
|
|
17212
17212
|
const newDigits = pastedData.split("");
|
|
17213
17213
|
setDigits(newDigits);
|
|
17214
|
-
_optionalChain([inputRefs, 'access',
|
|
17214
|
+
_optionalChain([inputRefs, 'access', _493 => _493.current, 'access', _494 => _494[5], 'optionalAccess', _495 => _495.focus, 'call', _496 => _496()]);
|
|
17215
17215
|
onComplete(pastedData);
|
|
17216
17216
|
}
|
|
17217
17217
|
}, "handlePaste");
|
|
@@ -17422,8 +17422,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
17422
17422
|
try {
|
|
17423
17423
|
const registrationData = await _chunkPQBKPWBYjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
17424
17424
|
id: _uuid.v4.call(void 0, ),
|
|
17425
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
17426
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
17425
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _497 => _497.email]), () => ( "")),
|
|
17426
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _498 => _498.name])
|
|
17427
17427
|
});
|
|
17428
17428
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
17429
17429
|
await _chunkPQBKPWBYjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -17574,7 +17574,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
17574
17574
|
const setup = await _chunkPQBKPWBYjs.TwoFactorService.setupTotp({
|
|
17575
17575
|
id: _uuid.v4.call(void 0, ),
|
|
17576
17576
|
name: name.trim(),
|
|
17577
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
17577
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _499 => _499.email]), () => ( ""))
|
|
17578
17578
|
});
|
|
17579
17579
|
setQrCodeUri(setup.qrCodeUri);
|
|
17580
17580
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -17708,7 +17708,7 @@ function TwoFactorSettings() {
|
|
|
17708
17708
|
if (isLoading) {
|
|
17709
17709
|
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") }) }) });
|
|
17710
17710
|
}
|
|
17711
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17711
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _500 => _500.isEnabled]), () => ( false));
|
|
17712
17712
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
17713
17713
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
17714
17714
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
|
|
@@ -17746,7 +17746,7 @@ function TwoFactorSettings() {
|
|
|
17746
17746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
17747
17747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
17748
17748
|
] }),
|
|
17749
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _501 => _501.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
17750
17750
|
] }) }),
|
|
17751
17751
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
17752
17752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -17924,9 +17924,9 @@ function AcceptInvitation() {
|
|
|
17924
17924
|
});
|
|
17925
17925
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17926
17926
|
try {
|
|
17927
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17927
|
+
if (!_optionalChain([params, 'optionalAccess', _502 => _502.code])) return;
|
|
17928
17928
|
const payload = {
|
|
17929
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17929
|
+
code: _optionalChain([params, 'optionalAccess', _503 => _503.code]),
|
|
17930
17930
|
password: values.password
|
|
17931
17931
|
};
|
|
17932
17932
|
await _chunkPQBKPWBYjs.AuthService.acceptInvitation(payload);
|
|
@@ -18276,7 +18276,7 @@ function Logout({ storageKeys }) {
|
|
|
18276
18276
|
const generateUrl = usePageUrlGenerator();
|
|
18277
18277
|
_react.useEffect.call(void 0, () => {
|
|
18278
18278
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
18279
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
18279
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _504 => _504.length])) {
|
|
18280
18280
|
clearClientStorage(storageKeys);
|
|
18281
18281
|
}
|
|
18282
18282
|
await _chunkPQBKPWBYjs.AuthService.logout();
|
|
@@ -18299,14 +18299,14 @@ function RefreshUser() {
|
|
|
18299
18299
|
setUser(fullUser);
|
|
18300
18300
|
const token = {
|
|
18301
18301
|
userId: fullUser.id,
|
|
18302
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
18302
|
+
companyId: _optionalChain([fullUser, 'access', _505 => _505.company, 'optionalAccess', _506 => _506.id]),
|
|
18303
18303
|
roles: fullUser.roles.map((role) => role.id),
|
|
18304
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
18304
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _507 => _507.company, 'optionalAccess', _508 => _508.features, 'optionalAccess', _509 => _509.map, 'call', _510 => _510((feature) => feature.id)]), () => ( [])),
|
|
18305
18305
|
modules: fullUser.modules.map((module) => {
|
|
18306
18306
|
return { id: module.id, permissions: module.permissions };
|
|
18307
18307
|
})
|
|
18308
18308
|
};
|
|
18309
|
-
await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
18309
|
+
await _optionalChain([_chunkPQBKPWBYjs.getTokenHandler.call(void 0, ), 'optionalAccess', _511 => _511.updateToken, 'call', _512 => _512(token)]);
|
|
18310
18310
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
18311
18311
|
}
|
|
18312
18312
|
}, "loadFullUser");
|
|
@@ -18370,9 +18370,9 @@ function ResetPassword() {
|
|
|
18370
18370
|
});
|
|
18371
18371
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
18372
18372
|
try {
|
|
18373
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
18373
|
+
if (!_optionalChain([params, 'optionalAccess', _513 => _513.code])) return;
|
|
18374
18374
|
const payload = {
|
|
18375
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
18375
|
+
code: _optionalChain([params, 'optionalAccess', _514 => _514.code]),
|
|
18376
18376
|
password: values.password
|
|
18377
18377
|
};
|
|
18378
18378
|
await _chunkPQBKPWBYjs.AuthService.resetPassword(payload);
|
|
@@ -18721,7 +18721,7 @@ function extractHeadings(blocks) {
|
|
|
18721
18721
|
function processBlocks(blockArray) {
|
|
18722
18722
|
for (const block of blockArray) {
|
|
18723
18723
|
if (block.type === "heading") {
|
|
18724
|
-
const level = _optionalChain([block, 'access',
|
|
18724
|
+
const level = _optionalChain([block, 'access', _515 => _515.props, 'optionalAccess', _516 => _516.level]) || 1;
|
|
18725
18725
|
const text = extractTextFromContent(block.content);
|
|
18726
18726
|
if (text.trim()) {
|
|
18727
18727
|
headings.push({
|
|
@@ -19064,7 +19064,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
19064
19064
|
})
|
|
19065
19065
|
};
|
|
19066
19066
|
const columns = _react.useMemo.call(void 0, () => {
|
|
19067
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
19067
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _517 => _517[field], 'optionalCall', _518 => _518()])).filter((col) => col !== void 0);
|
|
19068
19068
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
19069
19069
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
19070
19070
|
}, "useHowToTableStructure");
|
|
@@ -19163,7 +19163,7 @@ function HowToSelector({
|
|
|
19163
19163
|
}, "setHowTo");
|
|
19164
19164
|
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: [
|
|
19165
19165
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
19166
|
-
/* @__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',
|
|
19166
|
+
/* @__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', _519 => _519.value, 'optionalAccess', _520 => _520.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 }) }))) }) }) }),
|
|
19167
19167
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19168
19168
|
_lucidereact.CircleX,
|
|
19169
19169
|
{
|
|
@@ -19532,9 +19532,9 @@ function CitationsTab({ citations, sources }) {
|
|
|
19532
19532
|
] }) }),
|
|
19533
19533
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
19534
19534
|
const isOpen = expanded.has(chunk.id);
|
|
19535
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
19535
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _521 => _521.get, 'call', _522 => _522(chunk.nodeId)]) : void 0;
|
|
19536
19536
|
const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
|
|
19537
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
19537
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _523 => _523.name]), () => ( fallbackName));
|
|
19538
19538
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
19539
19539
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
19540
19540
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -19581,7 +19581,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
19581
19581
|
for (const c of citations) {
|
|
19582
19582
|
const id = c.nodeId;
|
|
19583
19583
|
if (!id) continue;
|
|
19584
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
19584
|
+
const source = _optionalChain([sources, 'optionalAccess', _524 => _524.get, 'call', _525 => _525(id)]);
|
|
19585
19585
|
if (!source) continue;
|
|
19586
19586
|
const existing = map.get(id);
|
|
19587
19587
|
if (existing) {
|
|
@@ -19648,7 +19648,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
19648
19648
|
const generate = usePageUrlGenerator();
|
|
19649
19649
|
const userMap = /* @__PURE__ */ new Map();
|
|
19650
19650
|
for (const u of users) {
|
|
19651
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
19651
|
+
if (!_optionalChain([u, 'optionalAccess', _526 => _526.id])) continue;
|
|
19652
19652
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
19653
19653
|
}
|
|
19654
19654
|
if (citations && sources) {
|
|
@@ -19753,7 +19753,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
19753
19753
|
}
|
|
19754
19754
|
return ids.size;
|
|
19755
19755
|
}, [message.citations, sources]);
|
|
19756
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
19756
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _527 => _527.length]), () => ( 0));
|
|
19757
19757
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
19758
19758
|
const visibleTabs = [];
|
|
19759
19759
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -19813,8 +19813,8 @@ var SourcesFetcher = class extends _chunkPQBKPWBYjs.ClientAbstractService {
|
|
|
19813
19813
|
const endpoint = new (0, _chunkPQBKPWBYjs.EndpointCreator)({ endpoint: params.module });
|
|
19814
19814
|
endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
|
|
19815
19815
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
19816
|
-
if (_optionalChain([params, 'access',
|
|
19817
|
-
if (_optionalChain([params, 'access',
|
|
19816
|
+
if (_optionalChain([params, 'access', _528 => _528.module, 'access', _529 => _529.inclusions, 'optionalAccess', _530 => _530.lists, 'optionalAccess', _531 => _531.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
|
|
19817
|
+
if (_optionalChain([params, 'access', _532 => _532.module, 'access', _533 => _533.inclusions, 'optionalAccess', _534 => _534.lists, 'optionalAccess', _535 => _535.types])) endpoint.limitToType(params.module.inclusions.lists.types);
|
|
19818
19818
|
return this.callApi({
|
|
19819
19819
|
type: params.module,
|
|
19820
19820
|
method: "GET" /* GET */,
|
|
@@ -19893,7 +19893,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
19893
19893
|
return void 0;
|
|
19894
19894
|
}
|
|
19895
19895
|
})()));
|
|
19896
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
19896
|
+
if (_optionalChain([author, 'optionalAccess', _536 => _536.id])) userMap.set(author.id, author);
|
|
19897
19897
|
}
|
|
19898
19898
|
return Array.from(userMap.values());
|
|
19899
19899
|
}, [resolved]);
|
|
@@ -19922,14 +19922,14 @@ function MessageItem({
|
|
|
19922
19922
|
}) {
|
|
19923
19923
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
19924
19924
|
const isUser = message.role === "user";
|
|
19925
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
19925
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _537 => _537.has, 'call', _538 => _538(message.id)]);
|
|
19926
19926
|
if (isUser) {
|
|
19927
19927
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
|
|
19928
19928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
|
|
19929
19929
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
19930
19930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
19931
19931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
19932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
19932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _539 => _539(message.id)]), children: t("features.assistant.retry") })
|
|
19933
19933
|
] })
|
|
19934
19934
|
] });
|
|
19935
19935
|
}
|
|
@@ -20005,7 +20005,7 @@ function AssistantThread({
|
|
|
20005
20005
|
}) {
|
|
20006
20006
|
const endRef = _react.useRef.call(void 0, null);
|
|
20007
20007
|
_react.useEffect.call(void 0, () => {
|
|
20008
|
-
_optionalChain([endRef, 'access',
|
|
20008
|
+
_optionalChain([endRef, 'access', _540 => _540.current, 'optionalAccess', _541 => _541.scrollIntoView, 'call', _542 => _542({ behavior: "smooth" })]);
|
|
20009
20009
|
}, [messages.length, sending]);
|
|
20010
20010
|
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: [
|
|
20011
20011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -20034,7 +20034,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
20034
20034
|
AssistantSidebar,
|
|
20035
20035
|
{
|
|
20036
20036
|
threads: ctx.threads,
|
|
20037
|
-
activeId: _optionalChain([ctx, 'access',
|
|
20037
|
+
activeId: _optionalChain([ctx, 'access', _543 => _543.assistant, 'optionalAccess', _544 => _544.id]),
|
|
20038
20038
|
onSelect: ctx.selectThread,
|
|
20039
20039
|
onNew: ctx.startNew
|
|
20040
20040
|
}
|
|
@@ -20135,14 +20135,14 @@ function NotificationsList({ archived }) {
|
|
|
20135
20135
|
] }),
|
|
20136
20136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
20137
20137
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
20138
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
20138
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _545 => _545.data, 'optionalAccess', _546 => _546.map, 'call', _547 => _547((notification) => {
|
|
20139
20139
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
20140
20140
|
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: [
|
|
20141
20141
|
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: _chunkPQBKPWBYjs.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" }),
|
|
20142
20142
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
20143
20143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
20144
20144
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
20145
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
20145
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _548 => _548.actor, 'optionalAccess', _549 => _549.name]), () => ( "")),
|
|
20146
20146
|
title: notificationData.title
|
|
20147
20147
|
}) }),
|
|
20148
20148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -20488,7 +20488,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
20488
20488
|
invalidEmail: "Please enter a valid email address"
|
|
20489
20489
|
};
|
|
20490
20490
|
async function copyToClipboard(text) {
|
|
20491
|
-
if (_optionalChain([navigator, 'access',
|
|
20491
|
+
if (_optionalChain([navigator, 'access', _550 => _550.clipboard, 'optionalAccess', _551 => _551.writeText])) {
|
|
20492
20492
|
try {
|
|
20493
20493
|
await navigator.clipboard.writeText(text);
|
|
20494
20494
|
return true;
|
|
@@ -20530,7 +20530,7 @@ function ReferralWidget({
|
|
|
20530
20530
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
20531
20531
|
const config = _chunkJO5BLONKjs.getReferralConfig.call(void 0, );
|
|
20532
20532
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
20533
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
20533
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _552 => _552.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
20534
20534
|
if (!_chunkJO5BLONKjs.isReferralEnabled.call(void 0, )) {
|
|
20535
20535
|
return null;
|
|
20536
20536
|
}
|
|
@@ -20540,7 +20540,7 @@ function ReferralWidget({
|
|
|
20540
20540
|
if (success) {
|
|
20541
20541
|
setCopied(true);
|
|
20542
20542
|
_chunkPQBKPWBYjs.showToast.call(void 0, t.copiedMessage);
|
|
20543
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
20543
|
+
_optionalChain([onLinkCopied, 'optionalCall', _553 => _553()]);
|
|
20544
20544
|
setTimeout(() => setCopied(false), 2e3);
|
|
20545
20545
|
} else {
|
|
20546
20546
|
_chunkPQBKPWBYjs.showError.call(void 0, t.copyError);
|
|
@@ -20554,12 +20554,12 @@ function ReferralWidget({
|
|
|
20554
20554
|
try {
|
|
20555
20555
|
await sendInvite(email);
|
|
20556
20556
|
_chunkPQBKPWBYjs.showToast.call(void 0, t.inviteSent);
|
|
20557
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
20557
|
+
_optionalChain([onInviteSent, 'optionalCall', _554 => _554(email)]);
|
|
20558
20558
|
setEmail("");
|
|
20559
20559
|
} catch (err) {
|
|
20560
20560
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
20561
20561
|
_chunkPQBKPWBYjs.showError.call(void 0, error2.message);
|
|
20562
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
20562
|
+
_optionalChain([onInviteError, 'optionalCall', _555 => _555(error2)]);
|
|
20563
20563
|
}
|
|
20564
20564
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
20565
20565
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -21313,7 +21313,7 @@ function OAuthClientList({
|
|
|
21313
21313
|
OAuthClientCard,
|
|
21314
21314
|
{
|
|
21315
21315
|
client,
|
|
21316
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
21316
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _556 => _556(client)]),
|
|
21317
21317
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
21318
21318
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
21319
21319
|
},
|
|
@@ -21329,11 +21329,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
21329
21329
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
21330
21330
|
const isEditMode = !!client;
|
|
21331
21331
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
21332
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
21333
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
21334
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
21335
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
21336
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
21332
|
+
name: _optionalChain([client, 'optionalAccess', _557 => _557.name]) || "",
|
|
21333
|
+
description: _optionalChain([client, 'optionalAccess', _558 => _558.description]) || "",
|
|
21334
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _559 => _559.redirectUris, 'optionalAccess', _560 => _560.length]) ? client.redirectUris : [""],
|
|
21335
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _561 => _561.allowedScopes]) || [],
|
|
21336
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _562 => _562.isConfidential]), () => ( true))
|
|
21337
21337
|
});
|
|
21338
21338
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
21339
21339
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -21561,7 +21561,7 @@ function OAuthClientDetail({
|
|
|
21561
21561
|
] }),
|
|
21562
21562
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21563
21563
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
21564
|
-
/* @__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([_chunkPQBKPWBYjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
21564
|
+
/* @__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([_chunkPQBKPWBYjs.OAUTH_SCOPE_DISPLAY, 'access', _563 => _563[scope], 'optionalAccess', _564 => _564.name]) || scope }, scope)) })
|
|
21565
21565
|
] }),
|
|
21566
21566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21567
21567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -21705,7 +21705,7 @@ function OAuthConsentScreen({
|
|
|
21705
21705
|
if (error || !clientInfo) {
|
|
21706
21706
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
|
|
21707
21707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
21708
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
21708
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _565 => _565.message]) || "Invalid authorization request. Please try again." })
|
|
21709
21709
|
] }) }) }) });
|
|
21710
21710
|
}
|
|
21711
21711
|
const { client, scopes } = clientInfo;
|
|
@@ -21921,7 +21921,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
21921
21921
|
questionnaire: values.questionnaire
|
|
21922
21922
|
});
|
|
21923
21923
|
setIsSuccess(true);
|
|
21924
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
21924
|
+
_optionalChain([onSuccess, 'optionalCall', _566 => _566()]);
|
|
21925
21925
|
} catch (e) {
|
|
21926
21926
|
errorToast({ error: e });
|
|
21927
21927
|
} finally {
|
|
@@ -22559,7 +22559,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
22559
22559
|
] }),
|
|
22560
22560
|
roleIds.map((roleId) => {
|
|
22561
22561
|
const roleTokens = block[roleId];
|
|
22562
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22562
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _567 => _567[roleId]]), () => ( roleId));
|
|
22563
22563
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22564
22564
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
22565
22565
|
_chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22596,7 +22596,7 @@ function RbacContainer() {
|
|
|
22596
22596
|
}, []);
|
|
22597
22597
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22598
22598
|
if (!matrix) return [];
|
|
22599
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22599
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _568 => _568[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _569 => _569[b]]), () => ( b))));
|
|
22600
22600
|
}, [matrix, moduleNames]);
|
|
22601
22601
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
22602
22602
|
if (roleNames) {
|
|
@@ -22659,7 +22659,7 @@ function RbacContainer() {
|
|
|
22659
22659
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
22660
22660
|
id !== selectedModuleId && "text-muted-foreground"
|
|
22661
22661
|
),
|
|
22662
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22662
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _570 => _570[id]]), () => ( id))
|
|
22663
22663
|
}
|
|
22664
22664
|
) }, id)) }) }),
|
|
22665
22665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22667,7 +22667,7 @@ function RbacContainer() {
|
|
|
22667
22667
|
{
|
|
22668
22668
|
moduleId: selectedModuleId,
|
|
22669
22669
|
block: selectedBlock,
|
|
22670
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22670
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _571 => _571[selectedModuleId]]), () => ( selectedModuleId)),
|
|
22671
22671
|
roleIds,
|
|
22672
22672
|
roleNames,
|
|
22673
22673
|
onOpenPicker: openPicker
|
|
@@ -22678,12 +22678,12 @@ function RbacContainer() {
|
|
|
22678
22678
|
RbacPermissionPicker,
|
|
22679
22679
|
{
|
|
22680
22680
|
open: !!activePicker,
|
|
22681
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22681
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _572 => _572.anchor]), () => ( null)),
|
|
22682
22682
|
value: activeValue,
|
|
22683
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22683
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _573 => _573.isRoleColumn]), () => ( false)),
|
|
22684
22684
|
knownSegments: activeSegments,
|
|
22685
22685
|
onSetValue: handleSetValue,
|
|
22686
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22686
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _574 => _574.isRoleColumn]) ? handleClear : void 0,
|
|
22687
22687
|
onClose: closePicker
|
|
22688
22688
|
}
|
|
22689
22689
|
)
|
|
@@ -22750,7 +22750,7 @@ function RbacByRoleContainer() {
|
|
|
22750
22750
|
}, [roleNames]);
|
|
22751
22751
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22752
22752
|
if (!matrix) return [];
|
|
22753
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22753
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _575 => _575[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _576 => _576[b]]), () => ( b))));
|
|
22754
22754
|
}, [matrix, moduleNames]);
|
|
22755
22755
|
_react.useEffect.call(void 0, () => {
|
|
22756
22756
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -22799,7 +22799,7 @@ function RbacByRoleContainer() {
|
|
|
22799
22799
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
22800
22800
|
id !== selectedRoleId && "text-muted-foreground"
|
|
22801
22801
|
),
|
|
22802
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22802
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _577 => _577[id]]), () => ( id))
|
|
22803
22803
|
}
|
|
22804
22804
|
) }, id)) }) }),
|
|
22805
22805
|
/* @__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: [
|
|
@@ -22819,7 +22819,7 @@ function RbacByRoleContainer() {
|
|
|
22819
22819
|
if (!block) return null;
|
|
22820
22820
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
22821
22821
|
const roleTokens = block[selectedRoleId];
|
|
22822
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22822
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _578 => _578[moduleId]]), () => ( moduleId));
|
|
22823
22823
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
22824
22824
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22825
22825
|
"td",
|
|
@@ -22834,7 +22834,7 @@ function RbacByRoleContainer() {
|
|
|
22834
22834
|
_chunkJO5BLONKjs.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))
|
|
22835
22835
|
] }),
|
|
22836
22836
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22837
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22837
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _579 => _579[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
22838
22838
|
_chunkJO5BLONKjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22839
22839
|
CellButton3,
|
|
22840
22840
|
{
|
|
@@ -22855,12 +22855,12 @@ function RbacByRoleContainer() {
|
|
|
22855
22855
|
RbacPermissionPicker,
|
|
22856
22856
|
{
|
|
22857
22857
|
open: !!activePicker,
|
|
22858
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22858
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _580 => _580.anchor]), () => ( null)),
|
|
22859
22859
|
value: activeValue,
|
|
22860
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22860
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _581 => _581.isRoleColumn]), () => ( false)),
|
|
22861
22861
|
knownSegments: activeSegments,
|
|
22862
22862
|
onSetValue: handleSetValue,
|
|
22863
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22863
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _582 => _582.isRoleColumn]) ? handleClear : void 0,
|
|
22864
22864
|
onClose: closePicker
|
|
22865
22865
|
}
|
|
22866
22866
|
)
|
|
@@ -23400,4 +23400,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
23400
23400
|
|
|
23401
23401
|
|
|
23402
23402
|
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.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.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.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.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.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; 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.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.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
23403
|
-
//# sourceMappingURL=chunk-
|
|
23403
|
+
//# sourceMappingURL=chunk-QWZI4N7S.js.map
|