@carlonicora/nextjs-jsonapi 1.48.2 → 1.49.0
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-IGFJYLLS.js → BlockNoteEditor-LENHWRS2.js} +6 -6
- package/dist/{BlockNoteEditor-IGFJYLLS.js.map → BlockNoteEditor-LENHWRS2.js.map} +1 -1
- package/dist/{BlockNoteEditor-DM43MVV3.mjs → BlockNoteEditor-WLS36QIF.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-VG6RASMY.js → chunk-KWAUWJYX.js} +236 -135
- package/dist/chunk-KWAUWJYX.js.map +1 -0
- package/dist/{chunk-PZGFGYEO.mjs → chunk-VQ35TGD7.mjs} +109 -8
- package/dist/chunk-VQ35TGD7.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.d.ts +2 -0
- 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/package.json +2 -1
- package/src/components/navigations/ContentTitle.tsx +1 -1
- package/src/hooks/TableGeneratorRegistry.ts +1 -1
- package/src/shadcnui/custom/multiple-selector.tsx +123 -5
- package/src/shadcnui/ui/table.tsx +1 -1
- package/dist/chunk-PZGFGYEO.mjs.map +0 -1
- package/dist/chunk-VG6RASMY.js.map +0 -1
- /package/dist/{BlockNoteEditor-DM43MVV3.mjs.map → BlockNoteEditor-WLS36QIF.mjs.map} +0 -0
|
@@ -93,7 +93,7 @@ var TableGeneratorRegistry = (_class = class _TableGeneratorRegistry {
|
|
|
93
93
|
return _TableGeneratorRegistry.instance;
|
|
94
94
|
}
|
|
95
95
|
register(type, hook) {
|
|
96
|
-
|
|
96
|
+
this.registry.set(type, hook);
|
|
97
97
|
}
|
|
98
98
|
get(type, params) {
|
|
99
99
|
const hook = this.registry.get(type);
|
|
@@ -5120,7 +5120,7 @@ function TableRow({ className, ...props }) {
|
|
|
5120
5120
|
"tr",
|
|
5121
5121
|
{
|
|
5122
5122
|
"data-slot": "table-row",
|
|
5123
|
-
className: _chunkQIA5FOQBjs.cn.call(void 0, "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5123
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0, "group hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
|
|
5124
5124
|
...props
|
|
5125
5125
|
}
|
|
5126
5126
|
);
|
|
@@ -6328,6 +6328,7 @@ MultiSelect.displayName = "MultiSelect";
|
|
|
6328
6328
|
|
|
6329
6329
|
|
|
6330
6330
|
|
|
6331
|
+
|
|
6331
6332
|
function useDebounce2(value, delay) {
|
|
6332
6333
|
const [debouncedValue, setDebouncedValue] = React12.useState(value);
|
|
6333
6334
|
_react.useEffect.call(void 0, () => {
|
|
@@ -6419,13 +6420,16 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6419
6420
|
inputProps,
|
|
6420
6421
|
hideClearAllButton = false,
|
|
6421
6422
|
renderOption,
|
|
6422
|
-
maxDisplayCount
|
|
6423
|
+
maxDisplayCount,
|
|
6424
|
+
usePortal = false
|
|
6423
6425
|
}, ref) => {
|
|
6424
6426
|
const inputRef = React12.useRef(null);
|
|
6427
|
+
const containerRef = React12.useRef(null);
|
|
6425
6428
|
const [open, setOpen] = React12.useState(false);
|
|
6426
6429
|
const [onScrollbar, setOnScrollbar] = React12.useState(false);
|
|
6427
6430
|
const [isLoading, setIsLoading] = React12.useState(false);
|
|
6428
6431
|
const dropdownRef = React12.useRef(null);
|
|
6432
|
+
const [dropdownPosition, setDropdownPosition] = React12.useState({ top: 0, left: 0, width: 0 });
|
|
6429
6433
|
const [selected, setSelected] = React12.useState(value || []);
|
|
6430
6434
|
const [options, setOptions] = React12.useState(transToGroupOption(arrayDefaultOptions, groupBy));
|
|
6431
6435
|
const [inputValue, setInputValue] = React12.useState("");
|
|
@@ -6514,6 +6518,36 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6514
6518
|
}, "exec");
|
|
6515
6519
|
void exec();
|
|
6516
6520
|
}, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearchSync]);
|
|
6521
|
+
_react.useEffect.call(void 0, () => {
|
|
6522
|
+
if (!usePortal || !open || !containerRef.current) return;
|
|
6523
|
+
const updatePosition = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6524
|
+
if (containerRef.current) {
|
|
6525
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
6526
|
+
setDropdownPosition({
|
|
6527
|
+
top: rect.bottom + window.scrollY + 4,
|
|
6528
|
+
left: rect.left + window.scrollX,
|
|
6529
|
+
width: rect.width
|
|
6530
|
+
});
|
|
6531
|
+
}
|
|
6532
|
+
}, "updatePosition");
|
|
6533
|
+
updatePosition();
|
|
6534
|
+
const handleScroll = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
6535
|
+
if (containerRef.current) {
|
|
6536
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
6537
|
+
if (rect.bottom < 0 || rect.top > window.innerHeight) {
|
|
6538
|
+
setOpen(false);
|
|
6539
|
+
} else {
|
|
6540
|
+
updatePosition();
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
}, "handleScroll");
|
|
6544
|
+
window.addEventListener("scroll", handleScroll, true);
|
|
6545
|
+
window.addEventListener("resize", updatePosition);
|
|
6546
|
+
return () => {
|
|
6547
|
+
window.removeEventListener("scroll", handleScroll, true);
|
|
6548
|
+
window.removeEventListener("resize", updatePosition);
|
|
6549
|
+
};
|
|
6550
|
+
}, [usePortal, open]);
|
|
6517
6551
|
_react.useEffect.call(void 0, () => {
|
|
6518
6552
|
const doSearch = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
6519
6553
|
setIsLoading(true);
|
|
@@ -6604,6 +6638,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6604
6638
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
6605
6639
|
"div",
|
|
6606
6640
|
{
|
|
6641
|
+
ref: containerRef,
|
|
6607
6642
|
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6608
6643
|
"flex min-h-10 items-start justify-between rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 md:text-sm",
|
|
6609
6644
|
{
|
|
@@ -6712,7 +6747,7 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6712
6747
|
]
|
|
6713
6748
|
}
|
|
6714
6749
|
),
|
|
6715
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative", children: open && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6750
|
+
!usePortal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative", children: open && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6716
6751
|
CommandList,
|
|
6717
6752
|
{
|
|
6718
6753
|
className: "absolute top-1 z-10 w-full rounded-md border bg-background text-foreground shadow-md outline-none animate-in",
|
|
@@ -6768,7 +6803,73 @@ var MultipleSelector = React12.forwardRef(
|
|
|
6768
6803
|
))
|
|
6769
6804
|
] })
|
|
6770
6805
|
}
|
|
6771
|
-
) })
|
|
6806
|
+
) }),
|
|
6807
|
+
usePortal && open && typeof window !== "undefined" && _reactdom.createPortal.call(void 0,
|
|
6808
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6809
|
+
CommandList,
|
|
6810
|
+
{
|
|
6811
|
+
ref: dropdownRef,
|
|
6812
|
+
className: "fixed z-50 max-h-80 rounded-md border bg-background text-foreground shadow-md outline-none animate-in",
|
|
6813
|
+
style: {
|
|
6814
|
+
top: dropdownPosition.top,
|
|
6815
|
+
left: dropdownPosition.left,
|
|
6816
|
+
width: dropdownPosition.width
|
|
6817
|
+
},
|
|
6818
|
+
onMouseLeave: () => {
|
|
6819
|
+
setOnScrollbar(false);
|
|
6820
|
+
},
|
|
6821
|
+
onMouseEnter: () => {
|
|
6822
|
+
setOnScrollbar(true);
|
|
6823
|
+
},
|
|
6824
|
+
onMouseUp: () => {
|
|
6825
|
+
_optionalChain([inputRef, 'optionalAccess', _165 => _165.current, 'optionalAccess', _166 => _166.focus, 'call', _167 => _167()]);
|
|
6826
|
+
},
|
|
6827
|
+
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: loadingIndicator }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
6828
|
+
EmptyItem(),
|
|
6829
|
+
CreatableItem(),
|
|
6830
|
+
!selectFirstItem && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommandItem, { value: "-", className: "hidden" }),
|
|
6831
|
+
Object.entries(selectables).map(([key, dropdowns]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6832
|
+
CommandGroup,
|
|
6833
|
+
{
|
|
6834
|
+
heading: key,
|
|
6835
|
+
className: "h-full overflow-auto [&_[cmdk-group-heading]]:border-b [&_[cmdk-group-heading]]:border-border/50 [&_[cmdk-group-heading]]:mb-1",
|
|
6836
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: dropdowns.map((option) => {
|
|
6837
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6838
|
+
CommandItem,
|
|
6839
|
+
{
|
|
6840
|
+
value: option.label,
|
|
6841
|
+
disabled: option.disable,
|
|
6842
|
+
onMouseDown: (e) => {
|
|
6843
|
+
e.preventDefault();
|
|
6844
|
+
e.stopPropagation();
|
|
6845
|
+
},
|
|
6846
|
+
onSelect: () => {
|
|
6847
|
+
if (selected.length >= maxSelected) {
|
|
6848
|
+
_optionalChain([onMaxSelected, 'optionalCall', _168 => _168(selected.length)]);
|
|
6849
|
+
return;
|
|
6850
|
+
}
|
|
6851
|
+
setInputValue("");
|
|
6852
|
+
const newOptions = [...selected, option];
|
|
6853
|
+
setSelected(newOptions);
|
|
6854
|
+
_optionalChain([onChange, 'optionalCall', _169 => _169(newOptions)]);
|
|
6855
|
+
},
|
|
6856
|
+
className: _chunkQIA5FOQBjs.cn.call(void 0,
|
|
6857
|
+
"cursor-pointer bg-transparent hover:bg-accent data-selected:bg-transparent data-selected:hover:bg-accent",
|
|
6858
|
+
option.disable && "cursor-default text-muted-foreground"
|
|
6859
|
+
),
|
|
6860
|
+
children: renderOption ? renderOption(option) : option.label
|
|
6861
|
+
},
|
|
6862
|
+
option.value
|
|
6863
|
+
);
|
|
6864
|
+
}) })
|
|
6865
|
+
},
|
|
6866
|
+
key
|
|
6867
|
+
))
|
|
6868
|
+
] })
|
|
6869
|
+
}
|
|
6870
|
+
),
|
|
6871
|
+
document.body
|
|
6872
|
+
)
|
|
6772
6873
|
]
|
|
6773
6874
|
}
|
|
6774
6875
|
);
|
|
@@ -6803,10 +6904,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
6803
6904
|
onValueChange: setFiles,
|
|
6804
6905
|
dropzoneOptions: dropzone2,
|
|
6805
6906
|
className: "h-40 w-40 rounded-full p-0",
|
|
6806
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess',
|
|
6907
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _170 => _170.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6807
6908
|
_image2.default,
|
|
6808
6909
|
{
|
|
6809
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess',
|
|
6910
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _171 => _171.avatar]) || "",
|
|
6810
6911
|
alt: t(`common.avatar`),
|
|
6811
6912
|
width: 200,
|
|
6812
6913
|
height: 200
|
|
@@ -6814,7 +6915,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
6814
6915
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
|
|
6815
6916
|
}
|
|
6816
6917
|
),
|
|
6817
|
-
!resetImage && (file || _optionalChain([user, 'optionalAccess',
|
|
6918
|
+
!resetImage && (file || _optionalChain([user, 'optionalAccess', _172 => _172.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6818
6919
|
Button,
|
|
6819
6920
|
{
|
|
6820
6921
|
className: "",
|
|
@@ -6842,7 +6943,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
6842
6943
|
const router = _chunkV63TFESUjs.useI18nRouter.call(void 0, );
|
|
6843
6944
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
6844
6945
|
let cId;
|
|
6845
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
6946
|
+
if (_optionalChain([currentUser, 'optionalAccess', _173 => _173.roles, 'access', _174 => _174.find, 'call', _175 => _175((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
6846
6947
|
cId = companyId;
|
|
6847
6948
|
} else {
|
|
6848
6949
|
if (!company) return;
|
|
@@ -6910,16 +7011,16 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6910
7011
|
const form = _reacthookform.useForm.call(void 0, {
|
|
6911
7012
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
6912
7013
|
defaultValues: {
|
|
6913
|
-
id: _optionalChain([user, 'optionalAccess',
|
|
6914
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
6915
|
-
title: _optionalChain([user, 'optionalAccess',
|
|
6916
|
-
bio: _optionalChain([user, 'optionalAccess',
|
|
6917
|
-
email: _optionalChain([user, 'optionalAccess',
|
|
6918
|
-
phone: _optionalChain([user, 'optionalAccess',
|
|
7014
|
+
id: _optionalChain([user, 'optionalAccess', _176 => _176.id]) || _uuid.v4.call(void 0, ),
|
|
7015
|
+
name: _optionalChain([user, 'optionalAccess', _177 => _177.name]) || "",
|
|
7016
|
+
title: _optionalChain([user, 'optionalAccess', _178 => _178.title]) || "",
|
|
7017
|
+
bio: _optionalChain([user, 'optionalAccess', _179 => _179.bio]) || "",
|
|
7018
|
+
email: _optionalChain([user, 'optionalAccess', _180 => _180.email]) || "",
|
|
7019
|
+
phone: _optionalChain([user, 'optionalAccess', _181 => _181.phone]) || "",
|
|
6919
7020
|
password: "",
|
|
6920
|
-
roleIds: _optionalChain([user, 'optionalAccess',
|
|
7021
|
+
roleIds: _optionalChain([user, 'optionalAccess', _182 => _182.roles, 'access', _183 => _183.map, 'call', _184 => _184((role) => role.id)]) || [],
|
|
6921
7022
|
sendInvitationEmail: false,
|
|
6922
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
7023
|
+
avatar: _optionalChain([user, 'optionalAccess', _185 => _185.avatarUrl]) || ""
|
|
6923
7024
|
}
|
|
6924
7025
|
});
|
|
6925
7026
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -6965,7 +7066,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6965
7066
|
};
|
|
6966
7067
|
try {
|
|
6967
7068
|
const updatedUser = user ? await _chunkQIA5FOQBjs.UserService.update(payload) : await _chunkQIA5FOQBjs.UserService.create(payload);
|
|
6968
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
7069
|
+
if (_optionalChain([currentUser, 'optionalAccess', _186 => _186.id]) === updatedUser.id) setUser(updatedUser);
|
|
6969
7070
|
if (onRevalidate) {
|
|
6970
7071
|
await onRevalidate(generateUrl({ page: _chunkQIA5FOQBjs.Modules.User, id: updatedUser.id, language: `[locale]` }));
|
|
6971
7072
|
}
|
|
@@ -6983,12 +7084,12 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6983
7084
|
async function fetchRoles() {
|
|
6984
7085
|
const roles2 = await _chunkQIA5FOQBjs.RoleService.findAllRoles({});
|
|
6985
7086
|
const availableRoles = roles2.filter(
|
|
6986
|
-
(role) => role.id !== _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess',
|
|
7087
|
+
(role) => role.id !== _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _187 => _187.features, 'access', _188 => _188.some, 'call', _189 => _189((feature) => feature.id === _optionalChain([role, 'access', _190 => _190.requiredFeature, 'optionalAccess', _191 => _191.id]))]))
|
|
6987
7088
|
);
|
|
6988
7089
|
setRoles(availableRoles);
|
|
6989
7090
|
}
|
|
6990
7091
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
6991
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess',
|
|
7092
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _192 => _192.roles, 'access', _193 => _193.find, 'call', _194 => _194((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
6992
7093
|
fetchRoles();
|
|
6993
7094
|
}, [company, open]);
|
|
6994
7095
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7009,7 +7110,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7009
7110
|
setContentType(null);
|
|
7010
7111
|
}
|
|
7011
7112
|
}, [file]);
|
|
7012
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess',
|
|
7113
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _195 => _195.id]) === _optionalChain([user, 'optionalAccess', _196 => _196.id]) && hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkQIA5FOQBjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator));
|
|
7013
7114
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7014
7115
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7015
7116
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7017,7 +7118,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7017
7118
|
{
|
|
7018
7119
|
className: `flex max-h-[70vh] ${canChangeRoles ? `max-w-[90vw]` : `max-w-3xl`} min-h-3xl max-h-[90vh] flex-col overflow-y-auto`,
|
|
7019
7120
|
children: [
|
|
7020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess',
|
|
7121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.users`, { count: 1 }), name: _optionalChain([user, 'optionalAccess', _197 => _197.name]) }),
|
|
7021
7122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
|
|
7022
7123
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex flex-row gap-x-4`, children: [
|
|
7023
7124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-40 flex-col justify-start gap-y-2`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -7096,10 +7197,10 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7096
7197
|
] })
|
|
7097
7198
|
] }),
|
|
7098
7199
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
7099
|
-
user && _optionalChain([currentUser, 'optionalAccess',
|
|
7200
|
+
user && _optionalChain([currentUser, 'optionalAccess', _198 => _198.roles, 'access', _199 => _199.find, 'call', _200 => _200((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7100
7201
|
UserDeleter,
|
|
7101
7202
|
{
|
|
7102
|
-
companyId: _optionalChain([user, 'access',
|
|
7203
|
+
companyId: _optionalChain([user, 'access', _201 => _201.company, 'optionalAccess', _202 => _202.id]),
|
|
7103
7204
|
user,
|
|
7104
7205
|
onDeleted: () => {
|
|
7105
7206
|
setOpen(false);
|
|
@@ -7276,7 +7377,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
7276
7377
|
|
|
7277
7378
|
// src/components/errors/errorToast.ts
|
|
7278
7379
|
function errorToast(params) {
|
|
7279
|
-
_chunkQIA5FOQBjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
7380
|
+
_chunkQIA5FOQBjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _203 => _203.title]), () => ( "Error")), {
|
|
7280
7381
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
7281
7382
|
});
|
|
7282
7383
|
}
|
|
@@ -7591,7 +7692,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7591
7692
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7592
7693
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
7593
7694
|
_react.useEffect.call(void 0, () => {
|
|
7594
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
7695
|
+
if (_optionalChain([date, 'optionalAccess', _204 => _204.from]) && _optionalChain([date, 'optionalAccess', _205 => _205.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _206 => _206.from, 'optionalAccess', _207 => _207.getTime, 'call', _208 => _208()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _209 => _209.to, 'optionalAccess', _210 => _210.getTime, 'call', _211 => _211()]) !== date.to.getTime())) {
|
|
7595
7696
|
onDateChange(date);
|
|
7596
7697
|
setPrevRange(date);
|
|
7597
7698
|
setOpen(false);
|
|
@@ -7602,7 +7703,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7602
7703
|
setDate(void 0);
|
|
7603
7704
|
return;
|
|
7604
7705
|
}
|
|
7605
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
7706
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _212 => _212.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
7606
7707
|
setDate({ from: range.from, to: void 0 });
|
|
7607
7708
|
} else {
|
|
7608
7709
|
setDate(range);
|
|
@@ -7617,7 +7718,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7617
7718
|
className: _chunkQIA5FOQBjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7618
7719
|
children: [
|
|
7619
7720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7620
|
-
_optionalChain([date, 'optionalAccess',
|
|
7721
|
+
_optionalChain([date, 'optionalAccess', _213 => _213.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7621
7722
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
7622
7723
|
" - ",
|
|
7623
7724
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
@@ -7630,7 +7731,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7630
7731
|
Calendar,
|
|
7631
7732
|
{
|
|
7632
7733
|
mode: "range",
|
|
7633
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
7734
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _214 => _214.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
7634
7735
|
selected: date,
|
|
7635
7736
|
onSelect: handleSelect,
|
|
7636
7737
|
numberOfMonths: 2
|
|
@@ -7717,7 +7818,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7717
7818
|
movePrev();
|
|
7718
7819
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
7719
7820
|
if (activeIndex === -1) {
|
|
7720
|
-
_optionalChain([dropzoneState, 'access',
|
|
7821
|
+
_optionalChain([dropzoneState, 'access', _215 => _215.inputRef, 'access', _216 => _216.current, 'optionalAccess', _217 => _217.click, 'call', _218 => _218()]);
|
|
7721
7822
|
}
|
|
7722
7823
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
7723
7824
|
if (activeIndex !== -1) {
|
|
@@ -7755,13 +7856,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
7755
7856
|
onValueChange(newValues);
|
|
7756
7857
|
if (rejectedFiles.length > 0) {
|
|
7757
7858
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
7758
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
7859
|
+
if (_optionalChain([rejectedFiles, 'access', _219 => _219[i], 'access', _220 => _220.errors, 'access', _221 => _221[0], 'optionalAccess', _222 => _222.code]) === "file-too-large") {
|
|
7759
7860
|
_chunkQIA5FOQBjs.showError.call(void 0, t("common.errors.file"), {
|
|
7760
7861
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
7761
7862
|
});
|
|
7762
7863
|
break;
|
|
7763
7864
|
}
|
|
7764
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
7865
|
+
if (_optionalChain([rejectedFiles, 'access', _223 => _223[i], 'access', _224 => _224.errors, 'access', _225 => _225[0], 'optionalAccess', _226 => _226.message])) {
|
|
7765
7866
|
_chunkQIA5FOQBjs.showError.call(void 0, t(`common.errors.file`), {
|
|
7766
7867
|
description: rejectedFiles[i].errors[0].message
|
|
7767
7868
|
});
|
|
@@ -8518,11 +8619,11 @@ function FormPlaceAutocomplete({
|
|
|
8518
8619
|
const data = await response.json();
|
|
8519
8620
|
if (data.suggestions) {
|
|
8520
8621
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
8521
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
8522
|
-
description: _optionalChain([suggestion, 'access',
|
|
8622
|
+
place_id: _optionalChain([suggestion, 'access', _227 => _227.placePrediction, 'optionalAccess', _228 => _228.placeId]) || "",
|
|
8623
|
+
description: _optionalChain([suggestion, 'access', _229 => _229.placePrediction, 'optionalAccess', _230 => _230.text, 'optionalAccess', _231 => _231.text]) || "",
|
|
8523
8624
|
structured_formatting: {
|
|
8524
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
8525
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
8625
|
+
main_text: _optionalChain([suggestion, 'access', _232 => _232.placePrediction, 'optionalAccess', _233 => _233.structuredFormat, 'optionalAccess', _234 => _234.mainText, 'optionalAccess', _235 => _235.text]) || "",
|
|
8626
|
+
secondary_text: _optionalChain([suggestion, 'access', _236 => _236.placePrediction, 'optionalAccess', _237 => _237.structuredFormat, 'optionalAccess', _238 => _238.secondaryText, 'optionalAccess', _239 => _239.text]) || ""
|
|
8526
8627
|
}
|
|
8527
8628
|
}));
|
|
8528
8629
|
setSuggestions(formattedSuggestions);
|
|
@@ -8617,8 +8718,8 @@ function FormPlaceAutocomplete({
|
|
|
8617
8718
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
8618
8719
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
8619
8720
|
children: [
|
|
8620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
8621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
8721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _240 => _240.structured_formatting, 'optionalAccess', _241 => _241.main_text]) }),
|
|
8722
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _242 => _242.structured_formatting, 'optionalAccess', _243 => _243.secondary_text]) })
|
|
8622
8723
|
]
|
|
8623
8724
|
},
|
|
8624
8725
|
suggestion.place_id || index
|
|
@@ -8659,7 +8760,7 @@ function FormSelect({
|
|
|
8659
8760
|
disabled,
|
|
8660
8761
|
"data-testid": testId,
|
|
8661
8762
|
children: [
|
|
8662
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: _optionalChain([values, 'access',
|
|
8763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: _optionalChain([values, 'access', _244 => _244.find, 'call', _245 => _245((v) => v.id === field.value), 'optionalAccess', _246 => _246.text]) }) }),
|
|
8663
8764
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id)) })
|
|
8664
8765
|
]
|
|
8665
8766
|
}
|
|
@@ -8843,7 +8944,7 @@ function UserMultiSelect({
|
|
|
8843
8944
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
8844
8945
|
return _chunkQIA5FOQBjs.UserService.findAllUsers(params);
|
|
8845
8946
|
}, "retriever"),
|
|
8846
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
8947
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _247 => _247.id]) },
|
|
8847
8948
|
module: _chunkQIA5FOQBjs.Modules.User
|
|
8848
8949
|
});
|
|
8849
8950
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8870,7 +8971,7 @@ function UserMultiSelect({
|
|
|
8870
8971
|
_react.useEffect.call(void 0, () => {
|
|
8871
8972
|
if (data.data && data.data.length > 0) {
|
|
8872
8973
|
const users = data.data;
|
|
8873
|
-
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess',
|
|
8974
|
+
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _248 => _248.id]));
|
|
8874
8975
|
const options = filteredUsers.map((user) => ({
|
|
8875
8976
|
label: user.name,
|
|
8876
8977
|
value: user.id,
|
|
@@ -8899,14 +9000,14 @@ function UserMultiSelect({
|
|
|
8899
9000
|
return {
|
|
8900
9001
|
id: option.value,
|
|
8901
9002
|
name: option.label,
|
|
8902
|
-
avatar: _optionalChain([userOption, 'optionalAccess',
|
|
9003
|
+
avatar: _optionalChain([userOption, 'optionalAccess', _249 => _249.avatar])
|
|
8903
9004
|
};
|
|
8904
9005
|
});
|
|
8905
9006
|
form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
|
|
8906
9007
|
if (onChange) {
|
|
8907
9008
|
const fullUsers = options.map((option) => {
|
|
8908
9009
|
const userOption = userOptions.find((opt) => opt.value === option.value);
|
|
8909
|
-
return _optionalChain([userOption, 'optionalAccess',
|
|
9010
|
+
return _optionalChain([userOption, 'optionalAccess', _250 => _250.userData]);
|
|
8910
9011
|
}).filter(Boolean);
|
|
8911
9012
|
onChange(fullUsers);
|
|
8912
9013
|
}
|
|
@@ -9072,7 +9173,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9072
9173
|
}, "getInitials");
|
|
9073
9174
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9074
9175
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
|
|
9075
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
9176
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _251 => _251.avatar]) }),
|
|
9076
9177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials(user.name) })
|
|
9077
9178
|
] }) });
|
|
9078
9179
|
}, "getAvatar");
|
|
@@ -9170,10 +9271,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9170
9271
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9171
9272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md border p-2", children: [
|
|
9172
9273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-6 w-6`, children: [
|
|
9173
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
9174
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
9274
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _252 => _252.value, 'optionalAccess', _253 => _253.avatar]) }),
|
|
9275
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _254 => _254.value, 'optionalAccess', _255 => _255.name]) ? _optionalChain([field, 'access', _256 => _256.value, 'optionalAccess', _257 => _257.name, 'access', _258 => _258.split, 'call', _259 => _259(" "), 'access', _260 => _260.map, 'call', _261 => _261((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
9175
9276
|
] }) }),
|
|
9176
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
9277
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "", children: _nullishCoalesce(_optionalChain([field, 'access', _262 => _262.value, 'optionalAccess', _263 => _263.name]), () => ( "")) })
|
|
9177
9278
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mr-7 flex h-10 w-full flex-row items-center justify-start rounded-md border p-2 text-sm", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
|
|
9178
9279
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9179
9280
|
_lucidereact.CircleX,
|
|
@@ -9468,7 +9569,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9468
9569
|
const data = useDataListRetriever({
|
|
9469
9570
|
ready: !!company,
|
|
9470
9571
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkQIA5FOQBjs.UserService.findAllUsers(params), "retriever"),
|
|
9471
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9572
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _264 => _264.id]), isDeleted },
|
|
9472
9573
|
module: _chunkQIA5FOQBjs.Modules.User
|
|
9473
9574
|
});
|
|
9474
9575
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9574,11 +9675,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
9574
9675
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
9575
9676
|
onClick: (_e) => {
|
|
9576
9677
|
setSelectedUser(user);
|
|
9577
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
9678
|
+
_optionalChain([setLevelOpen, 'optionalCall', _265 => _265(true)]);
|
|
9578
9679
|
},
|
|
9579
9680
|
onSelect: (_e) => {
|
|
9580
9681
|
setSelectedUser(user);
|
|
9581
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
9682
|
+
_optionalChain([setLevelOpen, 'optionalCall', _266 => _266(true)]);
|
|
9582
9683
|
},
|
|
9583
9684
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
9584
9685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -9863,8 +9964,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9863
9964
|
const { setUser } = useCurrentUserContext();
|
|
9864
9965
|
const defaultValues = _react.useMemo.call(void 0, () => {
|
|
9865
9966
|
return {
|
|
9866
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
9867
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
9967
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _267 => _267.configurations, 'optionalAccess', _268 => _268.isManagedKnowledge]), () => ( false)),
|
|
9968
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _269 => _269.configurations, 'optionalAccess', _270 => _270.allowPublicBot]), () => ( false))
|
|
9868
9969
|
};
|
|
9869
9970
|
}, [company.configurations]);
|
|
9870
9971
|
const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -9883,8 +9984,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9883
9984
|
_react.useEffect.call(void 0, () => {
|
|
9884
9985
|
if (open) {
|
|
9885
9986
|
form.reset({
|
|
9886
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
9887
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
9987
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _271 => _271.configurations, 'optionalAccess', _272 => _272.isManagedKnowledge]), () => ( false)),
|
|
9988
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _273 => _273.configurations, 'optionalAccess', _274 => _274.allowPublicBot]), () => ( false))
|
|
9888
9989
|
});
|
|
9889
9990
|
}
|
|
9890
9991
|
}, [company, open]);
|
|
@@ -10111,11 +10212,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10111
10212
|
const form = _reacthookform.useForm.call(void 0, {
|
|
10112
10213
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
10113
10214
|
defaultValues: {
|
|
10114
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
10115
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
10116
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
10117
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
10118
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
10215
|
+
id: _optionalChain([company, 'optionalAccess', _275 => _275.id]) || _uuid.v4.call(void 0, ),
|
|
10216
|
+
name: _optionalChain([company, 'optionalAccess', _276 => _276.name]) || "",
|
|
10217
|
+
featureIds: _optionalChain([company, 'optionalAccess', _277 => _277.features, 'access', _278 => _278.map, 'call', _279 => _279((feature) => feature.id)]) || [],
|
|
10218
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _280 => _280.modules, 'access', _281 => _281.map, 'call', _282 => _282((module) => module.id)]) || [],
|
|
10219
|
+
logo: _optionalChain([company, 'optionalAccess', _283 => _283.logo]) || ""
|
|
10119
10220
|
}
|
|
10120
10221
|
});
|
|
10121
10222
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -10132,7 +10233,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10132
10233
|
});
|
|
10133
10234
|
}
|
|
10134
10235
|
const payload = {
|
|
10135
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
10236
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _284 => _284.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
10136
10237
|
name: values.name,
|
|
10137
10238
|
logo: files && contentType ? values.logo : void 0,
|
|
10138
10239
|
featureIds: values.featureIds,
|
|
@@ -10167,7 +10268,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10167
10268
|
}
|
|
10168
10269
|
}
|
|
10169
10270
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10170
|
-
if (open && features.length === 0 && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10271
|
+
if (open && features.length === 0 && (hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _285 => _285.env, 'access', _286 => _286.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _287 => _287.toLowerCase, 'call', _288 => _288()]) === "true"))
|
|
10171
10272
|
fetchFeatures();
|
|
10172
10273
|
}, [open, features]);
|
|
10173
10274
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10201,7 +10302,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10201
10302
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10202
10303
|
}
|
|
10203
10304
|
};
|
|
10204
|
-
const canAccessFeatures = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10305
|
+
const canAccessFeatures = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _289 => _289.env, 'access', _290 => _290.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _291 => _291.toLowerCase, 'call', _292 => _292()]) === "true";
|
|
10205
10306
|
const isAdministrator2 = hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator);
|
|
10206
10307
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10207
10308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
@@ -10210,13 +10311,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10210
10311
|
{
|
|
10211
10312
|
className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
|
|
10212
10313
|
children: [
|
|
10213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess',
|
|
10314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _293 => _293.name]) }),
|
|
10214
10315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), className: `flex w-full flex-col gap-y-4`, children: [
|
|
10215
10316
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
10216
|
-
/* @__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',
|
|
10317
|
+
/* @__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', _294 => _294.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10217
10318
|
_image2.default,
|
|
10218
10319
|
{
|
|
10219
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
10320
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _295 => _295.logo]) || "",
|
|
10220
10321
|
alt: "Company Logo",
|
|
10221
10322
|
width: 200,
|
|
10222
10323
|
height: 200
|
|
@@ -10351,7 +10452,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
10351
10452
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10352
10453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10353
10454
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10354
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10455
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _296 => _296.actor, 'optionalAccess', _297 => _297.name]), () => ( "")),
|
|
10355
10456
|
title: data.title,
|
|
10356
10457
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10357
10458
|
}) }),
|
|
@@ -10380,7 +10481,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
10380
10481
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10381
10482
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10382
10483
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10383
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10484
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _298 => _298.actor, 'optionalAccess', _299 => _299.name]), () => ( "")),
|
|
10384
10485
|
title: data.title,
|
|
10385
10486
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10386
10487
|
}) }),
|
|
@@ -10437,7 +10538,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10437
10538
|
_react.useEffect.call(void 0, () => {
|
|
10438
10539
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10439
10540
|
if (_chunkV63TFESUjs.isRolesConfigured.call(void 0, )) {
|
|
10440
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
10541
|
+
const isAdmin = _optionalChain([currentUser, 'access', _300 => _300.roles, 'optionalAccess', _301 => _301.some, 'call', _302 => _302((role) => role.id === _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator)]);
|
|
10441
10542
|
if (isAdmin) {
|
|
10442
10543
|
setHasInitiallyLoaded(true);
|
|
10443
10544
|
return;
|
|
@@ -10639,7 +10740,7 @@ function OnboardingProvider({
|
|
|
10639
10740
|
let tourSteps = steps;
|
|
10640
10741
|
if (!tourSteps) {
|
|
10641
10742
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
10642
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
10743
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _303 => _303.steps]);
|
|
10643
10744
|
}
|
|
10644
10745
|
if (!tourSteps || tourSteps.length === 0) {
|
|
10645
10746
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -10707,10 +10808,10 @@ function OnboardingProvider({
|
|
|
10707
10808
|
when: {
|
|
10708
10809
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10709
10810
|
setCurrentStepIndex(index);
|
|
10710
|
-
_optionalChain([stepConfig, 'access',
|
|
10811
|
+
_optionalChain([stepConfig, 'access', _304 => _304.onShow, 'optionalCall', _305 => _305()]);
|
|
10711
10812
|
}, "show"),
|
|
10712
10813
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10713
|
-
_optionalChain([stepConfig, 'access',
|
|
10814
|
+
_optionalChain([stepConfig, 'access', _306 => _306.onHide, 'optionalCall', _307 => _307()]);
|
|
10714
10815
|
}, "hide")
|
|
10715
10816
|
}
|
|
10716
10817
|
});
|
|
@@ -10898,7 +10999,7 @@ function usePageTracker() {
|
|
|
10898
10999
|
if (typeof document !== "undefined") {
|
|
10899
11000
|
const titleParts = document.title.split("]");
|
|
10900
11001
|
if (titleParts[1]) {
|
|
10901
|
-
const cleanTitle = _optionalChain([titleParts, 'access',
|
|
11002
|
+
const cleanTitle = _optionalChain([titleParts, 'access', _308 => _308[1], 'access', _309 => _309.split, 'call', _310 => _310("|"), 'access', _311 => _311[0], 'optionalAccess', _312 => _312.trim, 'call', _313 => _313()]);
|
|
10902
11003
|
pageTitle = cleanTitle || foundModule.name;
|
|
10903
11004
|
}
|
|
10904
11005
|
}
|
|
@@ -10935,7 +11036,7 @@ function usePushNotifications() {
|
|
|
10935
11036
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
10936
11037
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
10937
11038
|
try {
|
|
10938
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
11039
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _314 => _314.id])}`;
|
|
10939
11040
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
10940
11041
|
const registration = await navigator.serviceWorker.register(`${_chunkV63TFESUjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
10941
11042
|
let permission = Notification.permission;
|
|
@@ -10989,7 +11090,7 @@ function useSocket({ token }) {
|
|
|
10989
11090
|
const socketRef = _react.useRef.call(void 0, null);
|
|
10990
11091
|
_react.useEffect.call(void 0, () => {
|
|
10991
11092
|
if (!token) return;
|
|
10992
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
11093
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _315 => _315.env, 'access', _316 => _316.NEXT_PUBLIC_API_URL, 'optionalAccess', _317 => _317.replace, 'call', _318 => _318(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
10993
11094
|
if (typeof window !== "undefined") {
|
|
10994
11095
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
10995
11096
|
const existingSocket = window[globalSocketKey];
|
|
@@ -11160,7 +11261,7 @@ function ContentTitle({ module, type, element, functions, className, prioritizeF
|
|
|
11160
11261
|
setClientFunctions(functions);
|
|
11161
11262
|
}, [functions]);
|
|
11162
11263
|
if (!element) return null;
|
|
11163
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, `mb-4 flex items-
|
|
11264
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, `mb-4 flex items-start justify-between gap-x-4 w-full`, className), children: [
|
|
11164
11265
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkQIA5FOQBjs.cn.call(void 0, "flex flex-col", prioritizeFunctions ? "min-w-0 shrink" : "w-full"), children: [
|
|
11165
11266
|
type && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11166
11267
|
"div",
|
|
@@ -11447,7 +11548,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11447
11548
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11448
11549
|
|
|
11449
11550
|
|
|
11450
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11551
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-LENHWRS2.js"))), {
|
|
11451
11552
|
ssr: false
|
|
11452
11553
|
});
|
|
11453
11554
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11596,10 +11697,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
11596
11697
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11597
11698
|
Checkbox,
|
|
11598
11699
|
{
|
|
11599
|
-
checked: _optionalChain([params, 'access',
|
|
11700
|
+
checked: _optionalChain([params, 'access', _319 => _319.checkedIds, 'optionalAccess', _320 => _320.includes, 'call', _321 => _321(row.getValue(params.name))]) || false,
|
|
11600
11701
|
onCheckedChange: (value) => {
|
|
11601
11702
|
row.toggleSelected(!!value);
|
|
11602
|
-
_optionalChain([params, 'access',
|
|
11703
|
+
_optionalChain([params, 'access', _322 => _322.toggleId, 'optionalCall', _323 => _323(row.getValue(params.name))]);
|
|
11603
11704
|
},
|
|
11604
11705
|
"aria-label": "Select row"
|
|
11605
11706
|
}
|
|
@@ -11658,7 +11759,7 @@ function useJsonApiGet(params) {
|
|
|
11658
11759
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
11659
11760
|
const isMounted = _react.useRef.call(void 0, true);
|
|
11660
11761
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
11661
|
-
if (_optionalChain([params, 'access',
|
|
11762
|
+
if (_optionalChain([params, 'access', _324 => _324.options, 'optionalAccess', _325 => _325.enabled]) === false) return;
|
|
11662
11763
|
setLoading(true);
|
|
11663
11764
|
setError(null);
|
|
11664
11765
|
try {
|
|
@@ -11685,9 +11786,9 @@ function useJsonApiGet(params) {
|
|
|
11685
11786
|
setLoading(false);
|
|
11686
11787
|
}
|
|
11687
11788
|
}
|
|
11688
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
11789
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _326 => _326.options, 'optionalAccess', _327 => _327.enabled])]);
|
|
11689
11790
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
11690
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
11791
|
+
if (!_optionalChain([response, 'optionalAccess', _328 => _328.nextPage])) return;
|
|
11691
11792
|
setLoading(true);
|
|
11692
11793
|
try {
|
|
11693
11794
|
const nextResponse = await response.nextPage();
|
|
@@ -11708,7 +11809,7 @@ function useJsonApiGet(params) {
|
|
|
11708
11809
|
}
|
|
11709
11810
|
}, [response]);
|
|
11710
11811
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
11711
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
11812
|
+
if (!_optionalChain([response, 'optionalAccess', _329 => _329.prevPage])) return;
|
|
11712
11813
|
setLoading(true);
|
|
11713
11814
|
try {
|
|
11714
11815
|
const prevResponse = await response.prevPage();
|
|
@@ -11734,15 +11835,15 @@ function useJsonApiGet(params) {
|
|
|
11734
11835
|
return () => {
|
|
11735
11836
|
isMounted.current = false;
|
|
11736
11837
|
};
|
|
11737
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
11838
|
+
}, [fetchData, ..._optionalChain([params, 'access', _330 => _330.options, 'optionalAccess', _331 => _331.deps]) || []]);
|
|
11738
11839
|
return {
|
|
11739
11840
|
data,
|
|
11740
11841
|
loading,
|
|
11741
11842
|
error,
|
|
11742
11843
|
response,
|
|
11743
11844
|
refetch: fetchData,
|
|
11744
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
11745
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
11845
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _332 => _332.next]),
|
|
11846
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _333 => _333.prev]),
|
|
11746
11847
|
fetchNextPage,
|
|
11747
11848
|
fetchPreviousPage
|
|
11748
11849
|
};
|
|
@@ -11820,17 +11921,17 @@ function useJsonApiMutation(config) {
|
|
|
11820
11921
|
if (apiResponse.ok) {
|
|
11821
11922
|
const resultData = apiResponse.data;
|
|
11822
11923
|
setData(resultData);
|
|
11823
|
-
_optionalChain([config, 'access',
|
|
11924
|
+
_optionalChain([config, 'access', _334 => _334.onSuccess, 'optionalCall', _335 => _335(resultData)]);
|
|
11824
11925
|
return resultData;
|
|
11825
11926
|
} else {
|
|
11826
11927
|
setError(apiResponse.error);
|
|
11827
|
-
_optionalChain([config, 'access',
|
|
11928
|
+
_optionalChain([config, 'access', _336 => _336.onError, 'optionalCall', _337 => _337(apiResponse.error)]);
|
|
11828
11929
|
return null;
|
|
11829
11930
|
}
|
|
11830
11931
|
} catch (err) {
|
|
11831
11932
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
11832
11933
|
setError(errorMessage);
|
|
11833
|
-
_optionalChain([config, 'access',
|
|
11934
|
+
_optionalChain([config, 'access', _338 => _338.onError, 'optionalCall', _339 => _339(errorMessage)]);
|
|
11834
11935
|
return null;
|
|
11835
11936
|
} finally {
|
|
11836
11937
|
setLoading(false);
|
|
@@ -11903,7 +12004,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11903
12004
|
{
|
|
11904
12005
|
href: hasRole(_chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11905
12006
|
page: "/administration",
|
|
11906
|
-
id: _optionalChain([_chunkQIA5FOQBjs.Modules, 'access',
|
|
12007
|
+
id: _optionalChain([_chunkQIA5FOQBjs.Modules, 'access', _340 => _340.Company, 'access', _341 => _341.pageUrl, 'optionalAccess', _342 => _342.substring, 'call', _343 => _343(1)]),
|
|
11907
12008
|
childPage: company.id
|
|
11908
12009
|
}) : generateUrl({ page: _chunkQIA5FOQBjs.Modules.Company, id: company.id }),
|
|
11909
12010
|
children: row.getValue("name")
|
|
@@ -11919,7 +12020,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11919
12020
|
})
|
|
11920
12021
|
};
|
|
11921
12022
|
const columns = _react.useMemo.call(void 0, () => {
|
|
11922
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12023
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _344 => _344[field], 'optionalCall', _345 => _345()])).filter((col) => col !== void 0);
|
|
11923
12024
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
11924
12025
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
11925
12026
|
}, "useCompanyTableStructure");
|
|
@@ -11931,7 +12032,7 @@ var GRACE_DAYS = 3;
|
|
|
11931
12032
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
11932
12033
|
if (!currentUser || !_chunkV63TFESUjs.isRolesConfigured.call(void 0, )) return false;
|
|
11933
12034
|
const adminRoleId = _chunkV63TFESUjs.getRoleId.call(void 0, ).Administrator;
|
|
11934
|
-
return !!_optionalChain([currentUser, 'access',
|
|
12035
|
+
return !!_optionalChain([currentUser, 'access', _346 => _346.roles, 'optionalAccess', _347 => _347.some, 'call', _348 => _348((role) => role.id === adminRoleId)]);
|
|
11935
12036
|
}, "isAdministrator");
|
|
11936
12037
|
function useSubscriptionStatus() {
|
|
11937
12038
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -12048,7 +12149,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12048
12149
|
})
|
|
12049
12150
|
};
|
|
12050
12151
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12051
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12152
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _349 => _349[field], 'optionalCall', _350 => _350()])).filter((col) => col !== void 0);
|
|
12052
12153
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12053
12154
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12054
12155
|
}, "useRoleTableStructure");
|
|
@@ -12191,7 +12292,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12191
12292
|
})
|
|
12192
12293
|
};
|
|
12193
12294
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12194
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12295
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _351 => _351[field], 'optionalCall', _352 => _352()])).filter((col) => col !== void 0);
|
|
12195
12296
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12196
12297
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12197
12298
|
}, "useUserTableStructure");
|
|
@@ -12292,11 +12393,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12292
12393
|
return params.fields.map((field) => {
|
|
12293
12394
|
const localHandler = fieldColumnMap[field];
|
|
12294
12395
|
if (localHandler) return localHandler();
|
|
12295
|
-
const customHandler = _optionalChain([params, 'access',
|
|
12396
|
+
const customHandler = _optionalChain([params, 'access', _353 => _353.context, 'optionalAccess', _354 => _354.customCells, 'optionalAccess', _355 => _355[field]]);
|
|
12296
12397
|
if (customHandler) return customHandler({ t });
|
|
12297
12398
|
return void 0;
|
|
12298
12399
|
}).filter((col) => col !== void 0);
|
|
12299
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
12400
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _356 => _356.context, 'optionalAccess', _357 => _357.customCells])]);
|
|
12300
12401
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12301
12402
|
}, "useContentTableStructure");
|
|
12302
12403
|
|
|
@@ -12631,7 +12732,7 @@ function ContentTableSearch({ data }) {
|
|
|
12631
12732
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12632
12733
|
if (!isExpanded) {
|
|
12633
12734
|
setIsFocused(true);
|
|
12634
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
12735
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _358 => _358.current, 'optionalAccess', _359 => _359.focus, 'call', _360 => _360()]), 50);
|
|
12635
12736
|
}
|
|
12636
12737
|
}, "handleSearchIconClick");
|
|
12637
12738
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -12697,7 +12798,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
12697
12798
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
12698
12799
|
);
|
|
12699
12800
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
12700
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
12801
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _361 => _361.data]), () => ( EMPTY_ARRAY)),
|
|
12701
12802
|
fields,
|
|
12702
12803
|
checkedIds,
|
|
12703
12804
|
toggleId,
|
|
@@ -12742,12 +12843,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
12742
12843
|
] }) }) }),
|
|
12743
12844
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
12744
12845
|
const meta = header.column.columnDef.meta;
|
|
12745
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
12846
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _362 => _362.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
12746
12847
|
}) }, headerGroup.id))
|
|
12747
12848
|
] }),
|
|
12748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
12849
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _363 => _363.rows, 'optionalAccess', _364 => _364.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
12749
12850
|
const meta = cell.column.columnDef.meta;
|
|
12750
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
12851
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _365 => _365.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
12751
12852
|
}) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: "No results." }) }) }),
|
|
12752
12853
|
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: [
|
|
12753
12854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12757,7 +12858,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
12757
12858
|
size: "sm",
|
|
12758
12859
|
onClick: (e) => {
|
|
12759
12860
|
e.preventDefault();
|
|
12760
|
-
_optionalChain([data, 'access',
|
|
12861
|
+
_optionalChain([data, 'access', _366 => _366.previous, 'optionalCall', _367 => _367(true)]);
|
|
12761
12862
|
},
|
|
12762
12863
|
disabled: !data.previous,
|
|
12763
12864
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -12771,7 +12872,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
12771
12872
|
size: "sm",
|
|
12772
12873
|
onClick: (e) => {
|
|
12773
12874
|
e.preventDefault();
|
|
12774
|
-
_optionalChain([data, 'access',
|
|
12875
|
+
_optionalChain([data, 'access', _368 => _368.next, 'optionalCall', _369 => _369(true)]);
|
|
12775
12876
|
},
|
|
12776
12877
|
disabled: !data.next,
|
|
12777
12878
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -13332,7 +13433,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
13332
13433
|
newDigits[index] = digit;
|
|
13333
13434
|
setDigits(newDigits);
|
|
13334
13435
|
if (digit && index < 5) {
|
|
13335
|
-
_optionalChain([inputRefs, 'access',
|
|
13436
|
+
_optionalChain([inputRefs, 'access', _370 => _370.current, 'access', _371 => _371[index + 1], 'optionalAccess', _372 => _372.focus, 'call', _373 => _373()]);
|
|
13336
13437
|
}
|
|
13337
13438
|
const code = newDigits.join("");
|
|
13338
13439
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -13341,7 +13442,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
13341
13442
|
}, "handleChange");
|
|
13342
13443
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
13343
13444
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
13344
|
-
_optionalChain([inputRefs, 'access',
|
|
13445
|
+
_optionalChain([inputRefs, 'access', _374 => _374.current, 'access', _375 => _375[index - 1], 'optionalAccess', _376 => _376.focus, 'call', _377 => _377()]);
|
|
13345
13446
|
}
|
|
13346
13447
|
}, "handleKeyDown");
|
|
13347
13448
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -13350,7 +13451,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
13350
13451
|
if (pastedData.length === 6) {
|
|
13351
13452
|
const newDigits = pastedData.split("");
|
|
13352
13453
|
setDigits(newDigits);
|
|
13353
|
-
_optionalChain([inputRefs, 'access',
|
|
13454
|
+
_optionalChain([inputRefs, 'access', _378 => _378.current, 'access', _379 => _379[5], 'optionalAccess', _380 => _380.focus, 'call', _381 => _381()]);
|
|
13354
13455
|
onComplete(pastedData);
|
|
13355
13456
|
}
|
|
13356
13457
|
}, "handlePaste");
|
|
@@ -13561,8 +13662,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
13561
13662
|
try {
|
|
13562
13663
|
const registrationData = await _chunkQIA5FOQBjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
13563
13664
|
id: _uuid.v4.call(void 0, ),
|
|
13564
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
13565
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
13665
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _382 => _382.email]), () => ( "")),
|
|
13666
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _383 => _383.name])
|
|
13566
13667
|
});
|
|
13567
13668
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
13568
13669
|
await _chunkQIA5FOQBjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -13713,7 +13814,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
13713
13814
|
const setup = await _chunkQIA5FOQBjs.TwoFactorService.setupTotp({
|
|
13714
13815
|
id: _uuid.v4.call(void 0, ),
|
|
13715
13816
|
name: name.trim(),
|
|
13716
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
13817
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _384 => _384.email]), () => ( ""))
|
|
13717
13818
|
});
|
|
13718
13819
|
setQrCodeUri(setup.qrCodeUri);
|
|
13719
13820
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -13847,7 +13948,7 @@ function TwoFactorSettings() {
|
|
|
13847
13948
|
if (isLoading) {
|
|
13848
13949
|
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") }) }) });
|
|
13849
13950
|
}
|
|
13850
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
13951
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _385 => _385.isEnabled]), () => ( false));
|
|
13851
13952
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
13852
13953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
13853
13954
|
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" }),
|
|
@@ -13885,7 +13986,7 @@ function TwoFactorSettings() {
|
|
|
13885
13986
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
13886
13987
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
13887
13988
|
] }),
|
|
13888
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
13989
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _386 => _386.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
13889
13990
|
] }) }),
|
|
13890
13991
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13891
13992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -14063,9 +14164,9 @@ function AcceptInvitation() {
|
|
|
14063
14164
|
});
|
|
14064
14165
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
14065
14166
|
try {
|
|
14066
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
14167
|
+
if (!_optionalChain([params, 'optionalAccess', _387 => _387.code])) return;
|
|
14067
14168
|
const payload = {
|
|
14068
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
14169
|
+
code: _optionalChain([params, 'optionalAccess', _388 => _388.code]),
|
|
14069
14170
|
password: values.password
|
|
14070
14171
|
};
|
|
14071
14172
|
await _chunkQIA5FOQBjs.AuthService.acceptInvitation(payload);
|
|
@@ -14415,7 +14516,7 @@ function Logout({ storageKeys }) {
|
|
|
14415
14516
|
const generateUrl = usePageUrlGenerator();
|
|
14416
14517
|
_react.useEffect.call(void 0, () => {
|
|
14417
14518
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14418
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
14519
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _389 => _389.length])) {
|
|
14419
14520
|
clearClientStorage(storageKeys);
|
|
14420
14521
|
}
|
|
14421
14522
|
await _chunkQIA5FOQBjs.AuthService.logout();
|
|
@@ -14438,14 +14539,14 @@ function RefreshUser() {
|
|
|
14438
14539
|
setUser(fullUser);
|
|
14439
14540
|
const token = {
|
|
14440
14541
|
userId: fullUser.id,
|
|
14441
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
14542
|
+
companyId: _optionalChain([fullUser, 'access', _390 => _390.company, 'optionalAccess', _391 => _391.id]),
|
|
14442
14543
|
roles: fullUser.roles.map((role) => role.id),
|
|
14443
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
14544
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _392 => _392.company, 'optionalAccess', _393 => _393.features, 'optionalAccess', _394 => _394.map, 'call', _395 => _395((feature) => feature.id)]), () => ( [])),
|
|
14444
14545
|
modules: fullUser.modules.map((module) => {
|
|
14445
14546
|
return { id: module.id, permissions: module.permissions };
|
|
14446
14547
|
})
|
|
14447
14548
|
};
|
|
14448
|
-
await _optionalChain([_chunkQIA5FOQBjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
14549
|
+
await _optionalChain([_chunkQIA5FOQBjs.getTokenHandler.call(void 0, ), 'optionalAccess', _396 => _396.updateToken, 'call', _397 => _397(token)]);
|
|
14449
14550
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
14450
14551
|
}
|
|
14451
14552
|
}, "loadFullUser");
|
|
@@ -14509,9 +14610,9 @@ function ResetPassword() {
|
|
|
14509
14610
|
});
|
|
14510
14611
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
14511
14612
|
try {
|
|
14512
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
14613
|
+
if (!_optionalChain([params, 'optionalAccess', _398 => _398.code])) return;
|
|
14513
14614
|
const payload = {
|
|
14514
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
14615
|
+
code: _optionalChain([params, 'optionalAccess', _399 => _399.code]),
|
|
14515
14616
|
password: values.password
|
|
14516
14617
|
};
|
|
14517
14618
|
await _chunkQIA5FOQBjs.AuthService.resetPassword(payload);
|
|
@@ -14868,14 +14969,14 @@ function NotificationsList({ archived }) {
|
|
|
14868
14969
|
] }),
|
|
14869
14970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
14870
14971
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
14871
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
14972
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _400 => _400.data, 'optionalAccess', _401 => _401.map, 'call', _402 => _402((notification) => {
|
|
14872
14973
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
14873
14974
|
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: [
|
|
14874
14975
|
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: _chunkQIA5FOQBjs.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" }),
|
|
14875
14976
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
14876
14977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
14877
14978
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
14878
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
14979
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _403 => _403.actor, 'optionalAccess', _404 => _404.name]), () => ( "")),
|
|
14879
14980
|
title: notificationData.title
|
|
14880
14981
|
}) }),
|
|
14881
14982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -15225,7 +15326,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
15225
15326
|
invalidEmail: "Please enter a valid email address"
|
|
15226
15327
|
};
|
|
15227
15328
|
async function copyToClipboard(text) {
|
|
15228
|
-
if (_optionalChain([navigator, 'access',
|
|
15329
|
+
if (_optionalChain([navigator, 'access', _405 => _405.clipboard, 'optionalAccess', _406 => _406.writeText])) {
|
|
15229
15330
|
try {
|
|
15230
15331
|
await navigator.clipboard.writeText(text);
|
|
15231
15332
|
return true;
|
|
@@ -15267,7 +15368,7 @@ function ReferralWidget({
|
|
|
15267
15368
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
15268
15369
|
const config = _chunkV63TFESUjs.getReferralConfig.call(void 0, );
|
|
15269
15370
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
15270
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
15371
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _407 => _407.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
15271
15372
|
if (!_chunkV63TFESUjs.isReferralEnabled.call(void 0, )) {
|
|
15272
15373
|
return null;
|
|
15273
15374
|
}
|
|
@@ -15277,7 +15378,7 @@ function ReferralWidget({
|
|
|
15277
15378
|
if (success) {
|
|
15278
15379
|
setCopied(true);
|
|
15279
15380
|
_chunkQIA5FOQBjs.showToast.call(void 0, t.copiedMessage);
|
|
15280
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
15381
|
+
_optionalChain([onLinkCopied, 'optionalCall', _408 => _408()]);
|
|
15281
15382
|
setTimeout(() => setCopied(false), 2e3);
|
|
15282
15383
|
} else {
|
|
15283
15384
|
_chunkQIA5FOQBjs.showError.call(void 0, t.copyError);
|
|
@@ -15291,12 +15392,12 @@ function ReferralWidget({
|
|
|
15291
15392
|
try {
|
|
15292
15393
|
await sendInvite(email);
|
|
15293
15394
|
_chunkQIA5FOQBjs.showToast.call(void 0, t.inviteSent);
|
|
15294
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
15395
|
+
_optionalChain([onInviteSent, 'optionalCall', _409 => _409(email)]);
|
|
15295
15396
|
setEmail("");
|
|
15296
15397
|
} catch (err) {
|
|
15297
15398
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
15298
15399
|
_chunkQIA5FOQBjs.showError.call(void 0, error2.message);
|
|
15299
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
15400
|
+
_optionalChain([onInviteError, 'optionalCall', _410 => _410(error2)]);
|
|
15300
15401
|
}
|
|
15301
15402
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
15302
15403
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -16049,7 +16150,7 @@ function OAuthClientList({
|
|
|
16049
16150
|
OAuthClientCard,
|
|
16050
16151
|
{
|
|
16051
16152
|
client,
|
|
16052
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
16153
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _411 => _411(client)]),
|
|
16053
16154
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
16054
16155
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
16055
16156
|
},
|
|
@@ -16065,11 +16166,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
16065
16166
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
16066
16167
|
const isEditMode = !!client;
|
|
16067
16168
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
16068
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
16069
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
16070
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
16071
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
16072
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
16169
|
+
name: _optionalChain([client, 'optionalAccess', _412 => _412.name]) || "",
|
|
16170
|
+
description: _optionalChain([client, 'optionalAccess', _413 => _413.description]) || "",
|
|
16171
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _414 => _414.redirectUris, 'optionalAccess', _415 => _415.length]) ? client.redirectUris : [""],
|
|
16172
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _416 => _416.allowedScopes]) || [],
|
|
16173
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _417 => _417.isConfidential]), () => ( true))
|
|
16073
16174
|
});
|
|
16074
16175
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
16075
16176
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -16297,7 +16398,7 @@ function OAuthClientDetail({
|
|
|
16297
16398
|
] }),
|
|
16298
16399
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
16299
16400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
16300
|
-
/* @__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([_chunkQIA5FOQBjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
16401
|
+
/* @__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([_chunkQIA5FOQBjs.OAUTH_SCOPE_DISPLAY, 'access', _418 => _418[scope], 'optionalAccess', _419 => _419.name]) || scope }, scope)) })
|
|
16301
16402
|
] }),
|
|
16302
16403
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
16303
16404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -16441,7 +16542,7 @@ function OAuthConsentScreen({
|
|
|
16441
16542
|
if (error || !clientInfo) {
|
|
16442
16543
|
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: [
|
|
16443
16544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
16444
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
16545
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _420 => _420.message]) || "Invalid authorization request. Please try again." })
|
|
16445
16546
|
] }) }) }) });
|
|
16446
16547
|
}
|
|
16447
16548
|
const { client, scopes } = clientInfo;
|
|
@@ -16657,7 +16758,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
16657
16758
|
questionnaire: values.questionnaire
|
|
16658
16759
|
});
|
|
16659
16760
|
setIsSuccess(true);
|
|
16660
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
16761
|
+
_optionalChain([onSuccess, 'optionalCall', _421 => _421()]);
|
|
16661
16762
|
} catch (e) {
|
|
16662
16763
|
errorToast({ error: e });
|
|
16663
16764
|
} finally {
|
|
@@ -17419,4 +17520,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, WaitlistList, "WaitlistList");
|
|
|
17419
17520
|
|
|
17420
17521
|
|
|
17421
17522
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce2; exports.MultipleSelector = MultipleSelector; 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.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; 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.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.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.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.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.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.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
17422
|
-
//# sourceMappingURL=chunk-
|
|
17523
|
+
//# sourceMappingURL=chunk-KWAUWJYX.js.map
|