@carlonicora/nextjs-jsonapi 1.60.0 → 1.61.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-H7QM6EVJ.mjs → BlockNoteEditor-HTD3BPTX.mjs} +2 -2
- package/dist/{BlockNoteEditor-56VMCPSG.js → BlockNoteEditor-LUAMTXEK.js} +6 -6
- package/dist/{BlockNoteEditor-56VMCPSG.js.map → BlockNoteEditor-LUAMTXEK.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-JRKIV2DF.js → chunk-T2Z5OJCX.js} +225 -123
- package/dist/chunk-T2Z5OJCX.js.map +1 -0
- package/dist/{chunk-67522EQN.mjs → chunk-W5ADYJZO.mjs} +1958 -1856
- package/dist/chunk-W5ADYJZO.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +30 -3
- package/dist/components/index.d.ts +30 -3
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/EditorSheet.tsx +179 -0
- package/src/components/forms/__tests__/EditorSheet.test.tsx +217 -0
- package/src/components/forms/index.ts +1 -0
- package/dist/chunk-67522EQN.mjs.map +0 -1
- package/dist/chunk-JRKIV2DF.js.map +0 -1
- /package/dist/{BlockNoteEditor-H7QM6EVJ.mjs.map → BlockNoteEditor-HTD3BPTX.mjs.map} +0 -0
|
@@ -7870,6 +7870,107 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
7870
7870
|
}
|
|
7871
7871
|
_chunk7QVYU63Ejs.__name.call(void 0, useEditorDialog, "useEditorDialog");
|
|
7872
7872
|
|
|
7873
|
+
// src/components/forms/EditorSheet.tsx
|
|
7874
|
+
|
|
7875
|
+
|
|
7876
|
+
|
|
7877
|
+
|
|
7878
|
+
var sizeClasses = {
|
|
7879
|
+
sm: "data-[side=right]:sm:max-w-2xl",
|
|
7880
|
+
md: "data-[side=right]:sm:max-w-3xl",
|
|
7881
|
+
lg: "data-[side=right]:sm:max-w-5xl",
|
|
7882
|
+
xl: "data-[side=right]:sm:max-w-7xl"
|
|
7883
|
+
};
|
|
7884
|
+
function EditorSheet({
|
|
7885
|
+
form,
|
|
7886
|
+
onSubmit,
|
|
7887
|
+
onReset,
|
|
7888
|
+
isFormDirty: isFormDirtyProp,
|
|
7889
|
+
entityType,
|
|
7890
|
+
entityName,
|
|
7891
|
+
isEdit,
|
|
7892
|
+
module,
|
|
7893
|
+
propagateChanges,
|
|
7894
|
+
onSuccess,
|
|
7895
|
+
onRevalidate,
|
|
7896
|
+
onNavigate,
|
|
7897
|
+
size = "xl",
|
|
7898
|
+
disabled,
|
|
7899
|
+
trigger,
|
|
7900
|
+
forceShow,
|
|
7901
|
+
onClose,
|
|
7902
|
+
dialogOpen,
|
|
7903
|
+
onDialogOpenChange,
|
|
7904
|
+
children
|
|
7905
|
+
}) {
|
|
7906
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
7907
|
+
const generateUrl = usePageUrlGenerator();
|
|
7908
|
+
const defaultIsFormDirty = _react.useCallback.call(void 0, () => {
|
|
7909
|
+
return Object.keys(form.formState.dirtyFields).length > 0;
|
|
7910
|
+
}, [form.formState.dirtyFields]);
|
|
7911
|
+
const { open, setOpen, handleOpenChange, discardDialogProps } = useEditorDialog(
|
|
7912
|
+
_nullishCoalesce(isFormDirtyProp, () => ( defaultIsFormDirty)),
|
|
7913
|
+
{ dialogOpen, onDialogOpenChange, forceShow }
|
|
7914
|
+
);
|
|
7915
|
+
_react.useEffect.call(void 0, () => {
|
|
7916
|
+
if (!open) {
|
|
7917
|
+
form.reset(onReset());
|
|
7918
|
+
_optionalChain([onClose, 'optionalCall', _211 => _211()]);
|
|
7919
|
+
}
|
|
7920
|
+
}, [open]);
|
|
7921
|
+
const wrappedOnSubmit = _react.useCallback.call(void 0,
|
|
7922
|
+
async (values) => {
|
|
7923
|
+
try {
|
|
7924
|
+
const result = await onSubmit(values);
|
|
7925
|
+
setOpen(false);
|
|
7926
|
+
if (onSuccess) {
|
|
7927
|
+
await onSuccess();
|
|
7928
|
+
} else if (result) {
|
|
7929
|
+
_optionalChain([onRevalidate, 'optionalCall', _212 => _212(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
|
|
7930
|
+
if (isEdit && propagateChanges) {
|
|
7931
|
+
propagateChanges(result);
|
|
7932
|
+
} else {
|
|
7933
|
+
_optionalChain([onNavigate, 'optionalCall', _213 => _213(generateUrl({ page: module, id: result.id }))]);
|
|
7934
|
+
}
|
|
7935
|
+
}
|
|
7936
|
+
} catch (error) {
|
|
7937
|
+
errorToast({
|
|
7938
|
+
title: isEdit ? t("generic.errors.update") : t("generic.errors.create"),
|
|
7939
|
+
error
|
|
7940
|
+
});
|
|
7941
|
+
}
|
|
7942
|
+
},
|
|
7943
|
+
[onSubmit, setOpen, onSuccess, onRevalidate, onNavigate, generateUrl, module, isEdit, propagateChanges, t]
|
|
7944
|
+
);
|
|
7945
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7946
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Sheet, { open, onOpenChange: handleOpenChange, children: [
|
|
7947
|
+
dialogOpen === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7948
|
+
Button,
|
|
7949
|
+
{
|
|
7950
|
+
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
7951
|
+
nativeButton: false,
|
|
7952
|
+
size: "sm",
|
|
7953
|
+
variant: "ghost",
|
|
7954
|
+
className: "text-muted-foreground",
|
|
7955
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, {})
|
|
7956
|
+
}
|
|
7957
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: "outline", children: t("ui.buttons.create") }) })),
|
|
7958
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetContent, { side: "right", className: sizeClasses[size], children: [
|
|
7959
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetHeader, { className: "border-b px-6 py-4", children: [
|
|
7960
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: isEdit ? t("common.edit.update.title", { type: entityType }) : t("common.edit.create.title", { type: entityType }) }),
|
|
7961
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetDescription, { children: isEdit ? t("common.edit.update.description", { type: entityType, name: _nullishCoalesce(entityName, () => ( "")) }) : t("common.edit.create.description", { type: entityType }) })
|
|
7962
|
+
] }),
|
|
7963
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(wrappedOnSubmit), className: "flex min-h-0 flex-1 flex-col", children: [
|
|
7964
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto px-6 py-4", children }),
|
|
7965
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorButtons, { form, setOpen: handleOpenChange, isEdit, disabled }) })
|
|
7966
|
+
] }) })
|
|
7967
|
+
] })
|
|
7968
|
+
] }),
|
|
7969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorDiscardDialog, { ...discardDialogProps })
|
|
7970
|
+
] });
|
|
7971
|
+
}
|
|
7972
|
+
_chunk7QVYU63Ejs.__name.call(void 0, EditorSheet, "EditorSheet");
|
|
7973
|
+
|
|
7873
7974
|
// src/components/forms/DatePickerPopover.tsx
|
|
7874
7975
|
var _datefns = require('date-fns');
|
|
7875
7976
|
|
|
@@ -8046,7 +8147,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8046
8147
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8047
8148
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
8048
8149
|
_react.useEffect.call(void 0, () => {
|
|
8049
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
8150
|
+
if (_optionalChain([date, 'optionalAccess', _214 => _214.from]) && _optionalChain([date, 'optionalAccess', _215 => _215.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _216 => _216.from, 'optionalAccess', _217 => _217.getTime, 'call', _218 => _218()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _219 => _219.to, 'optionalAccess', _220 => _220.getTime, 'call', _221 => _221()]) !== date.to.getTime())) {
|
|
8050
8151
|
onDateChange(date);
|
|
8051
8152
|
setPrevRange(date);
|
|
8052
8153
|
setOpen(false);
|
|
@@ -8057,7 +8158,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8057
8158
|
setDate(void 0);
|
|
8058
8159
|
return;
|
|
8059
8160
|
}
|
|
8060
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
8161
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _222 => _222.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
8061
8162
|
setDate({ from: range.from, to: void 0 });
|
|
8062
8163
|
} else {
|
|
8063
8164
|
setDate(range);
|
|
@@ -8072,7 +8173,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8072
8173
|
className: _chunkNAST4OSMjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
8073
8174
|
children: [
|
|
8074
8175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
8075
|
-
_optionalChain([date, 'optionalAccess',
|
|
8176
|
+
_optionalChain([date, 'optionalAccess', _223 => _223.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8076
8177
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
8077
8178
|
" - ",
|
|
8078
8179
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
@@ -8085,7 +8186,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8085
8186
|
Calendar,
|
|
8086
8187
|
{
|
|
8087
8188
|
mode: "range",
|
|
8088
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
8189
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _224 => _224.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
8089
8190
|
selected: date,
|
|
8090
8191
|
onSelect: handleSelect,
|
|
8091
8192
|
numberOfMonths: 2
|
|
@@ -8172,7 +8273,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8172
8273
|
movePrev();
|
|
8173
8274
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
8174
8275
|
if (activeIndex === -1) {
|
|
8175
|
-
_optionalChain([dropzoneState, 'access',
|
|
8276
|
+
_optionalChain([dropzoneState, 'access', _225 => _225.inputRef, 'access', _226 => _226.current, 'optionalAccess', _227 => _227.click, 'call', _228 => _228()]);
|
|
8176
8277
|
}
|
|
8177
8278
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
8178
8279
|
if (activeIndex !== -1) {
|
|
@@ -8210,13 +8311,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8210
8311
|
onValueChange(newValues);
|
|
8211
8312
|
if (rejectedFiles.length > 0) {
|
|
8212
8313
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
8213
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
8314
|
+
if (_optionalChain([rejectedFiles, 'access', _229 => _229[i], 'access', _230 => _230.errors, 'access', _231 => _231[0], 'optionalAccess', _232 => _232.code]) === "file-too-large") {
|
|
8214
8315
|
_chunkNAST4OSMjs.showError.call(void 0, t("common.errors.file"), {
|
|
8215
8316
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
8216
8317
|
});
|
|
8217
8318
|
break;
|
|
8218
8319
|
}
|
|
8219
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
8320
|
+
if (_optionalChain([rejectedFiles, 'access', _233 => _233[i], 'access', _234 => _234.errors, 'access', _235 => _235[0], 'optionalAccess', _236 => _236.message])) {
|
|
8220
8321
|
_chunkNAST4OSMjs.showError.call(void 0, t(`common.errors.file`), {
|
|
8221
8322
|
description: rejectedFiles[i].errors[0].message
|
|
8222
8323
|
});
|
|
@@ -8446,7 +8547,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8446
8547
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8447
8548
|
|
|
8448
8549
|
|
|
8449
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
8550
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-LUAMTXEK.js"))), {
|
|
8450
8551
|
ssr: false
|
|
8451
8552
|
});
|
|
8452
8553
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8483,7 +8584,7 @@ function FormBlockNote({
|
|
|
8483
8584
|
initialContent: field.value,
|
|
8484
8585
|
onChange: (content, isEmpty) => {
|
|
8485
8586
|
field.onChange(content);
|
|
8486
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
8587
|
+
_optionalChain([onEmptyChange, 'optionalCall', _237 => _237(isEmpty)]);
|
|
8487
8588
|
},
|
|
8488
8589
|
placeholder,
|
|
8489
8590
|
bordered: true
|
|
@@ -8995,11 +9096,11 @@ function FormPlaceAutocomplete({
|
|
|
8995
9096
|
const data = await response.json();
|
|
8996
9097
|
if (data.suggestions) {
|
|
8997
9098
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
8998
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
8999
|
-
description: _optionalChain([suggestion, 'access',
|
|
9099
|
+
place_id: _optionalChain([suggestion, 'access', _238 => _238.placePrediction, 'optionalAccess', _239 => _239.placeId]) || "",
|
|
9100
|
+
description: _optionalChain([suggestion, 'access', _240 => _240.placePrediction, 'optionalAccess', _241 => _241.text, 'optionalAccess', _242 => _242.text]) || "",
|
|
9000
9101
|
structured_formatting: {
|
|
9001
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
9002
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
9102
|
+
main_text: _optionalChain([suggestion, 'access', _243 => _243.placePrediction, 'optionalAccess', _244 => _244.structuredFormat, 'optionalAccess', _245 => _245.mainText, 'optionalAccess', _246 => _246.text]) || "",
|
|
9103
|
+
secondary_text: _optionalChain([suggestion, 'access', _247 => _247.placePrediction, 'optionalAccess', _248 => _248.structuredFormat, 'optionalAccess', _249 => _249.secondaryText, 'optionalAccess', _250 => _250.text]) || ""
|
|
9003
9104
|
}
|
|
9004
9105
|
}));
|
|
9005
9106
|
setSuggestions(formattedSuggestions);
|
|
@@ -9146,8 +9247,8 @@ function FormPlaceAutocomplete({
|
|
|
9146
9247
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
9147
9248
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
9148
9249
|
children: [
|
|
9149
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
9150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
9250
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _251 => _251.structured_formatting, 'optionalAccess', _252 => _252.main_text]) }),
|
|
9251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _253 => _253.structured_formatting, 'optionalAccess', _254 => _254.secondary_text]) })
|
|
9151
9252
|
]
|
|
9152
9253
|
},
|
|
9153
9254
|
suggestion.place_id || index
|
|
@@ -9191,7 +9292,7 @@ function FormSelect({
|
|
|
9191
9292
|
disabled,
|
|
9192
9293
|
"data-testid": testId,
|
|
9193
9294
|
children: [
|
|
9194
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
9295
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _255 => _255.find, 'call', _256 => _256((v) => v.id === field.value), 'optionalAccess', _257 => _257.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
9195
9296
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
9196
9297
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
9197
9298
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -9378,7 +9479,7 @@ function UserMultiSelect({
|
|
|
9378
9479
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9379
9480
|
return _chunkNAST4OSMjs.UserService.findAllUsers(params);
|
|
9380
9481
|
}, "retriever"),
|
|
9381
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9482
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _258 => _258.id]) },
|
|
9382
9483
|
module: _chunkNAST4OSMjs.Modules.User
|
|
9383
9484
|
});
|
|
9384
9485
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9405,7 +9506,7 @@ function UserMultiSelect({
|
|
|
9405
9506
|
_react.useEffect.call(void 0, () => {
|
|
9406
9507
|
if (data.data && data.data.length > 0) {
|
|
9407
9508
|
const users = data.data;
|
|
9408
|
-
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess',
|
|
9509
|
+
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _259 => _259.id]));
|
|
9409
9510
|
const options = filteredUsers.map((user) => ({
|
|
9410
9511
|
label: user.name,
|
|
9411
9512
|
value: user.id,
|
|
@@ -9434,14 +9535,14 @@ function UserMultiSelect({
|
|
|
9434
9535
|
return {
|
|
9435
9536
|
id: option.value,
|
|
9436
9537
|
name: option.label,
|
|
9437
|
-
avatar: _optionalChain([userOption, 'optionalAccess',
|
|
9538
|
+
avatar: _optionalChain([userOption, 'optionalAccess', _260 => _260.avatar])
|
|
9438
9539
|
};
|
|
9439
9540
|
});
|
|
9440
9541
|
form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
|
|
9441
9542
|
if (onChange) {
|
|
9442
9543
|
const fullUsers = options.map((option) => {
|
|
9443
9544
|
const userOption = userOptions.find((opt) => opt.value === option.value);
|
|
9444
|
-
return _optionalChain([userOption, 'optionalAccess',
|
|
9545
|
+
return _optionalChain([userOption, 'optionalAccess', _261 => _261.userData]);
|
|
9445
9546
|
}).filter(Boolean);
|
|
9446
9547
|
onChange(fullUsers);
|
|
9447
9548
|
}
|
|
@@ -9607,7 +9708,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9607
9708
|
}, "getInitials");
|
|
9608
9709
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9609
9710
|
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: [
|
|
9610
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
9711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _262 => _262.avatar]) }),
|
|
9611
9712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials2(user.name) })
|
|
9612
9713
|
] }) });
|
|
9613
9714
|
}, "getAvatar");
|
|
@@ -9705,10 +9806,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9705
9806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9706
9807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: [
|
|
9707
9808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-4 w-4`, children: [
|
|
9708
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
9709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
9809
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _263 => _263.value, 'optionalAccess', _264 => _264.avatar]) }),
|
|
9810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _265 => _265.value, 'optionalAccess', _266 => _266.name]) ? _optionalChain([field, 'access', _267 => _267.value, 'optionalAccess', _268 => _268.name, 'access', _269 => _269.split, 'call', _270 => _270(" "), 'access', _271 => _271.map, 'call', _272 => _272((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
9710
9811
|
] }) }),
|
|
9711
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
9812
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _273 => _273.value, 'optionalAccess', _274 => _274.name]), () => ( "")) })
|
|
9712
9813
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
|
|
9713
9814
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9714
9815
|
_lucidereact.CircleX,
|
|
@@ -10003,7 +10104,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
10003
10104
|
const data = useDataListRetriever({
|
|
10004
10105
|
ready: !!company,
|
|
10005
10106
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNAST4OSMjs.UserService.findAllUsers(params), "retriever"),
|
|
10006
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
10107
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _275 => _275.id]), isDeleted },
|
|
10007
10108
|
module: _chunkNAST4OSMjs.Modules.User
|
|
10008
10109
|
});
|
|
10009
10110
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10109,11 +10210,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
10109
10210
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
10110
10211
|
onClick: (_e) => {
|
|
10111
10212
|
setSelectedUser(user);
|
|
10112
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10213
|
+
_optionalChain([setLevelOpen, 'optionalCall', _276 => _276(true)]);
|
|
10113
10214
|
},
|
|
10114
10215
|
onSelect: (_e) => {
|
|
10115
10216
|
setSelectedUser(user);
|
|
10116
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10217
|
+
_optionalChain([setLevelOpen, 'optionalCall', _277 => _277(true)]);
|
|
10117
10218
|
},
|
|
10118
10219
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
10119
10220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -10230,7 +10331,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10230
10331
|
const availableMonthlyTokens = company.availableMonthlyTokens;
|
|
10231
10332
|
const availableExtraTokens = company.availableExtraTokens;
|
|
10232
10333
|
const percentage = monthlyTokens > 0 ? availableMonthlyTokens / monthlyTokens * 100 : 0;
|
|
10233
|
-
const
|
|
10334
|
+
const sizeClasses2 = {
|
|
10234
10335
|
sm: "h-4 w-4",
|
|
10235
10336
|
md: "h-5 w-5",
|
|
10236
10337
|
lg: "h-6 w-6"
|
|
@@ -10245,7 +10346,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10245
10346
|
md: "text-sm",
|
|
10246
10347
|
lg: "text-base"
|
|
10247
10348
|
};
|
|
10248
|
-
const iconSize =
|
|
10349
|
+
const iconSize = sizeClasses2[size];
|
|
10249
10350
|
const smallIconSize = smallIconSizeClasses[size];
|
|
10250
10351
|
const textSize = textSizeClasses[size];
|
|
10251
10352
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10398,8 +10499,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10398
10499
|
const { setUser } = useCurrentUserContext();
|
|
10399
10500
|
const defaultValues = _react.useMemo.call(void 0, () => {
|
|
10400
10501
|
return {
|
|
10401
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10402
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10502
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _278 => _278.configurations, 'optionalAccess', _279 => _279.isManagedKnowledge]), () => ( false)),
|
|
10503
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _280 => _280.configurations, 'optionalAccess', _281 => _281.allowPublicBot]), () => ( false))
|
|
10403
10504
|
};
|
|
10404
10505
|
}, [company.configurations]);
|
|
10405
10506
|
const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10418,8 +10519,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10418
10519
|
_react.useEffect.call(void 0, () => {
|
|
10419
10520
|
if (open) {
|
|
10420
10521
|
form.reset({
|
|
10421
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10422
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10522
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _282 => _282.configurations, 'optionalAccess', _283 => _283.isManagedKnowledge]), () => ( false)),
|
|
10523
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _284 => _284.configurations, 'optionalAccess', _285 => _285.allowPublicBot]), () => ( false))
|
|
10423
10524
|
});
|
|
10424
10525
|
}
|
|
10425
10526
|
}, [company, open]);
|
|
@@ -10646,11 +10747,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10646
10747
|
const form = _reacthookform.useForm.call(void 0, {
|
|
10647
10748
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
10648
10749
|
defaultValues: {
|
|
10649
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
10650
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
10651
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
10652
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
10653
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
10750
|
+
id: _optionalChain([company, 'optionalAccess', _286 => _286.id]) || _uuid.v4.call(void 0, ),
|
|
10751
|
+
name: _optionalChain([company, 'optionalAccess', _287 => _287.name]) || "",
|
|
10752
|
+
featureIds: _optionalChain([company, 'optionalAccess', _288 => _288.features, 'access', _289 => _289.map, 'call', _290 => _290((feature) => feature.id)]) || [],
|
|
10753
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _291 => _291.modules, 'access', _292 => _292.map, 'call', _293 => _293((module) => module.id)]) || [],
|
|
10754
|
+
logo: _optionalChain([company, 'optionalAccess', _294 => _294.logo]) || ""
|
|
10654
10755
|
}
|
|
10655
10756
|
});
|
|
10656
10757
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -10667,7 +10768,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10667
10768
|
});
|
|
10668
10769
|
}
|
|
10669
10770
|
const payload = {
|
|
10670
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
10771
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _295 => _295.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
10671
10772
|
name: values.name,
|
|
10672
10773
|
logo: files && contentType ? values.logo : void 0,
|
|
10673
10774
|
featureIds: values.featureIds,
|
|
@@ -10702,7 +10803,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10702
10803
|
}
|
|
10703
10804
|
}
|
|
10704
10805
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10705
|
-
if (open && features.length === 0 && (hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10806
|
+
if (open && features.length === 0 && (hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _296 => _296.env, 'access', _297 => _297.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _298 => _298.toLowerCase, 'call', _299 => _299()]) === "true"))
|
|
10706
10807
|
fetchFeatures();
|
|
10707
10808
|
}, [open, features]);
|
|
10708
10809
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10736,7 +10837,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10736
10837
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10737
10838
|
}
|
|
10738
10839
|
};
|
|
10739
|
-
const canAccessFeatures = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10840
|
+
const canAccessFeatures = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _300 => _300.env, 'access', _301 => _301.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _302 => _302.toLowerCase, 'call', _303 => _303()]) === "true";
|
|
10740
10841
|
const isAdministrator2 = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator);
|
|
10741
10842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10742
10843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
@@ -10745,13 +10846,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10745
10846
|
{
|
|
10746
10847
|
className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
|
|
10747
10848
|
children: [
|
|
10748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess',
|
|
10849
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _304 => _304.name]) }),
|
|
10749
10850
|
/* @__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: [
|
|
10750
10851
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
10751
|
-
/* @__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',
|
|
10852
|
+
/* @__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', _305 => _305.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10752
10853
|
_image2.default,
|
|
10753
10854
|
{
|
|
10754
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
10855
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _306 => _306.logo]) || "",
|
|
10755
10856
|
alt: "Company Logo",
|
|
10756
10857
|
width: 200,
|
|
10757
10858
|
height: 200
|
|
@@ -10886,7 +10987,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
10886
10987
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10887
10988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10888
10989
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10889
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10990
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _307 => _307.actor, 'optionalAccess', _308 => _308.name]), () => ( "")),
|
|
10890
10991
|
title: data.title,
|
|
10891
10992
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10892
10993
|
}) }),
|
|
@@ -10915,7 +11016,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
10915
11016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10916
11017
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10917
11018
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10918
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
11019
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _309 => _309.actor, 'optionalAccess', _310 => _310.name]), () => ( "")),
|
|
10919
11020
|
title: data.title,
|
|
10920
11021
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10921
11022
|
}) }),
|
|
@@ -10972,7 +11073,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10972
11073
|
_react.useEffect.call(void 0, () => {
|
|
10973
11074
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10974
11075
|
if (_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) {
|
|
10975
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
11076
|
+
const isAdmin = _optionalChain([currentUser, 'access', _311 => _311.roles, 'optionalAccess', _312 => _312.some, 'call', _313 => _313((role) => role.id === _chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator)]);
|
|
10976
11077
|
if (isAdmin) {
|
|
10977
11078
|
setHasInitiallyLoaded(true);
|
|
10978
11079
|
return;
|
|
@@ -11174,7 +11275,7 @@ function OnboardingProvider({
|
|
|
11174
11275
|
let tourSteps = steps;
|
|
11175
11276
|
if (!tourSteps) {
|
|
11176
11277
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
11177
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
11278
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _314 => _314.steps]);
|
|
11178
11279
|
}
|
|
11179
11280
|
if (!tourSteps || tourSteps.length === 0) {
|
|
11180
11281
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -11242,10 +11343,10 @@ function OnboardingProvider({
|
|
|
11242
11343
|
when: {
|
|
11243
11344
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11244
11345
|
setCurrentStepIndex(index);
|
|
11245
|
-
_optionalChain([stepConfig, 'access',
|
|
11346
|
+
_optionalChain([stepConfig, 'access', _315 => _315.onShow, 'optionalCall', _316 => _316()]);
|
|
11246
11347
|
}, "show"),
|
|
11247
11348
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11248
|
-
_optionalChain([stepConfig, 'access',
|
|
11349
|
+
_optionalChain([stepConfig, 'access', _317 => _317.onHide, 'optionalCall', _318 => _318()]);
|
|
11249
11350
|
}, "hide")
|
|
11250
11351
|
}
|
|
11251
11352
|
});
|
|
@@ -11433,7 +11534,7 @@ function usePageTracker() {
|
|
|
11433
11534
|
if (typeof document !== "undefined") {
|
|
11434
11535
|
const titleParts = document.title.split("]");
|
|
11435
11536
|
if (titleParts[1]) {
|
|
11436
|
-
const cleanTitle = _optionalChain([titleParts, 'access',
|
|
11537
|
+
const cleanTitle = _optionalChain([titleParts, 'access', _319 => _319[1], 'access', _320 => _320.split, 'call', _321 => _321("|"), 'access', _322 => _322[0], 'optionalAccess', _323 => _323.trim, 'call', _324 => _324()]);
|
|
11437
11538
|
pageTitle = cleanTitle || foundModule.name;
|
|
11438
11539
|
}
|
|
11439
11540
|
}
|
|
@@ -11470,7 +11571,7 @@ function usePushNotifications() {
|
|
|
11470
11571
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11471
11572
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
11472
11573
|
try {
|
|
11473
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
11574
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _325 => _325.id])}`;
|
|
11474
11575
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
11475
11576
|
const registration = await navigator.serviceWorker.register(`${_chunkBQSMP4NUjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
11476
11577
|
let permission = Notification.permission;
|
|
@@ -11524,7 +11625,7 @@ function useSocket({ token }) {
|
|
|
11524
11625
|
const socketRef = _react.useRef.call(void 0, null);
|
|
11525
11626
|
_react.useEffect.call(void 0, () => {
|
|
11526
11627
|
if (!token) return;
|
|
11527
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
11628
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _326 => _326.env, 'access', _327 => _327.NEXT_PUBLIC_API_URL, 'optionalAccess', _328 => _328.replace, 'call', _329 => _329(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
11528
11629
|
if (typeof window !== "undefined") {
|
|
11529
11630
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
11530
11631
|
const existingSocket = window[globalSocketKey];
|
|
@@ -11962,7 +12063,7 @@ function RoundPageContainer({
|
|
|
11962
12063
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
11963
12064
|
const section = searchParams.get("section");
|
|
11964
12065
|
const rewriteUrl = useUrlRewriter();
|
|
11965
|
-
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
12066
|
+
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _330 => _330.key, 'optionalAccess', _331 => _331.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _332 => _332[0], 'access', _333 => _333.key, 'optionalAccess', _334 => _334.name]), () => ( tabs[0].label))) : void 0;
|
|
11966
12067
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
11967
12068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11968
12069
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { className: "bg-sidebar border-0", children: headerChildren }),
|
|
@@ -11988,8 +12089,8 @@ function RoundPageContainer({
|
|
|
11988
12089
|
if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
11989
12090
|
},
|
|
11990
12091
|
children: [
|
|
11991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
11992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
12092
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _335 => _335.key, 'optionalAccess', _336 => _336.name]), () => ( tab.label)), className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
|
|
12093
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: _nullishCoalesce(_optionalChain([tab, 'access', _337 => _337.key, 'optionalAccess', _338 => _338.name]), () => ( tab.label)), className: `pb-20`, children: tab.content }, tab.label)) })
|
|
11993
12094
|
]
|
|
11994
12095
|
}
|
|
11995
12096
|
) : children }) }),
|
|
@@ -12223,10 +12324,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
12223
12324
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12224
12325
|
Checkbox,
|
|
12225
12326
|
{
|
|
12226
|
-
checked: _optionalChain([params, 'access',
|
|
12327
|
+
checked: _optionalChain([params, 'access', _339 => _339.checkedIds, 'optionalAccess', _340 => _340.includes, 'call', _341 => _341(row.getValue(params.name))]) || false,
|
|
12227
12328
|
onCheckedChange: (value) => {
|
|
12228
12329
|
row.toggleSelected(!!value);
|
|
12229
|
-
_optionalChain([params, 'access',
|
|
12330
|
+
_optionalChain([params, 'access', _342 => _342.toggleId, 'optionalCall', _343 => _343(row.getValue(params.name))]);
|
|
12230
12331
|
},
|
|
12231
12332
|
"aria-label": "Select row"
|
|
12232
12333
|
}
|
|
@@ -12285,7 +12386,7 @@ function useJsonApiGet(params) {
|
|
|
12285
12386
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
12286
12387
|
const isMounted = _react.useRef.call(void 0, true);
|
|
12287
12388
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
12288
|
-
if (_optionalChain([params, 'access',
|
|
12389
|
+
if (_optionalChain([params, 'access', _344 => _344.options, 'optionalAccess', _345 => _345.enabled]) === false) return;
|
|
12289
12390
|
setLoading(true);
|
|
12290
12391
|
setError(null);
|
|
12291
12392
|
try {
|
|
@@ -12312,9 +12413,9 @@ function useJsonApiGet(params) {
|
|
|
12312
12413
|
setLoading(false);
|
|
12313
12414
|
}
|
|
12314
12415
|
}
|
|
12315
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
12416
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _346 => _346.options, 'optionalAccess', _347 => _347.enabled])]);
|
|
12316
12417
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
12317
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12418
|
+
if (!_optionalChain([response, 'optionalAccess', _348 => _348.nextPage])) return;
|
|
12318
12419
|
setLoading(true);
|
|
12319
12420
|
try {
|
|
12320
12421
|
const nextResponse = await response.nextPage();
|
|
@@ -12335,7 +12436,7 @@ function useJsonApiGet(params) {
|
|
|
12335
12436
|
}
|
|
12336
12437
|
}, [response]);
|
|
12337
12438
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
12338
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12439
|
+
if (!_optionalChain([response, 'optionalAccess', _349 => _349.prevPage])) return;
|
|
12339
12440
|
setLoading(true);
|
|
12340
12441
|
try {
|
|
12341
12442
|
const prevResponse = await response.prevPage();
|
|
@@ -12361,15 +12462,15 @@ function useJsonApiGet(params) {
|
|
|
12361
12462
|
return () => {
|
|
12362
12463
|
isMounted.current = false;
|
|
12363
12464
|
};
|
|
12364
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
12465
|
+
}, [fetchData, ..._optionalChain([params, 'access', _350 => _350.options, 'optionalAccess', _351 => _351.deps]) || []]);
|
|
12365
12466
|
return {
|
|
12366
12467
|
data,
|
|
12367
12468
|
loading,
|
|
12368
12469
|
error,
|
|
12369
12470
|
response,
|
|
12370
12471
|
refetch: fetchData,
|
|
12371
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
12372
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
12472
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _352 => _352.next]),
|
|
12473
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _353 => _353.prev]),
|
|
12373
12474
|
fetchNextPage,
|
|
12374
12475
|
fetchPreviousPage
|
|
12375
12476
|
};
|
|
@@ -12447,17 +12548,17 @@ function useJsonApiMutation(config) {
|
|
|
12447
12548
|
if (apiResponse.ok) {
|
|
12448
12549
|
const resultData = apiResponse.data;
|
|
12449
12550
|
setData(resultData);
|
|
12450
|
-
_optionalChain([config, 'access',
|
|
12551
|
+
_optionalChain([config, 'access', _354 => _354.onSuccess, 'optionalCall', _355 => _355(resultData)]);
|
|
12451
12552
|
return resultData;
|
|
12452
12553
|
} else {
|
|
12453
12554
|
setError(apiResponse.error);
|
|
12454
|
-
_optionalChain([config, 'access',
|
|
12555
|
+
_optionalChain([config, 'access', _356 => _356.onError, 'optionalCall', _357 => _357(apiResponse.error)]);
|
|
12455
12556
|
return null;
|
|
12456
12557
|
}
|
|
12457
12558
|
} catch (err) {
|
|
12458
12559
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
12459
12560
|
setError(errorMessage);
|
|
12460
|
-
_optionalChain([config, 'access',
|
|
12561
|
+
_optionalChain([config, 'access', _358 => _358.onError, 'optionalCall', _359 => _359(errorMessage)]);
|
|
12461
12562
|
return null;
|
|
12462
12563
|
} finally {
|
|
12463
12564
|
setLoading(false);
|
|
@@ -12530,7 +12631,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12530
12631
|
{
|
|
12531
12632
|
href: hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12532
12633
|
page: "/administration",
|
|
12533
|
-
id: _optionalChain([_chunkNAST4OSMjs.Modules, 'access',
|
|
12634
|
+
id: _optionalChain([_chunkNAST4OSMjs.Modules, 'access', _360 => _360.Company, 'access', _361 => _361.pageUrl, 'optionalAccess', _362 => _362.substring, 'call', _363 => _363(1)]),
|
|
12534
12635
|
childPage: company.id
|
|
12535
12636
|
}) : generateUrl({ page: _chunkNAST4OSMjs.Modules.Company, id: company.id }),
|
|
12536
12637
|
children: row.getValue("name")
|
|
@@ -12546,7 +12647,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12546
12647
|
})
|
|
12547
12648
|
};
|
|
12548
12649
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12549
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12650
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _364 => _364[field], 'optionalCall', _365 => _365()])).filter((col) => col !== void 0);
|
|
12550
12651
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
12551
12652
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12552
12653
|
}, "useCompanyTableStructure");
|
|
@@ -12558,7 +12659,7 @@ var GRACE_DAYS = 3;
|
|
|
12558
12659
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12559
12660
|
if (!currentUser || !_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) return false;
|
|
12560
12661
|
const adminRoleId = _chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator;
|
|
12561
|
-
return !!_optionalChain([currentUser, 'access',
|
|
12662
|
+
return !!_optionalChain([currentUser, 'access', _366 => _366.roles, 'optionalAccess', _367 => _367.some, 'call', _368 => _368((role) => role.id === adminRoleId)]);
|
|
12562
12663
|
}, "isAdministrator");
|
|
12563
12664
|
function useSubscriptionStatus() {
|
|
12564
12665
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -12675,7 +12776,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12675
12776
|
})
|
|
12676
12777
|
};
|
|
12677
12778
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12678
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12779
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _369 => _369[field], 'optionalCall', _370 => _370()])).filter((col) => col !== void 0);
|
|
12679
12780
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12680
12781
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12681
12782
|
}, "useRoleTableStructure");
|
|
@@ -12818,7 +12919,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12818
12919
|
})
|
|
12819
12920
|
};
|
|
12820
12921
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12821
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12922
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _371 => _371[field], 'optionalCall', _372 => _372()])).filter((col) => col !== void 0);
|
|
12822
12923
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12823
12924
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12824
12925
|
}, "useUserTableStructure");
|
|
@@ -12919,11 +13020,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12919
13020
|
return params.fields.map((field) => {
|
|
12920
13021
|
const localHandler = fieldColumnMap[field];
|
|
12921
13022
|
if (localHandler) return localHandler();
|
|
12922
|
-
const customHandler = _optionalChain([params, 'access',
|
|
13023
|
+
const customHandler = _optionalChain([params, 'access', _373 => _373.context, 'optionalAccess', _374 => _374.customCells, 'optionalAccess', _375 => _375[field]]);
|
|
12923
13024
|
if (customHandler) return customHandler({ t });
|
|
12924
13025
|
return void 0;
|
|
12925
13026
|
}).filter((col) => col !== void 0);
|
|
12926
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
13027
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _376 => _376.context, 'optionalAccess', _377 => _377.customCells])]);
|
|
12927
13028
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12928
13029
|
}, "useContentTableStructure");
|
|
12929
13030
|
|
|
@@ -13249,7 +13350,7 @@ function rbacReducer(state, action) {
|
|
|
13249
13350
|
}
|
|
13250
13351
|
case "SET_FEATURE_IS_CORE": {
|
|
13251
13352
|
const newMap = new Map(state.featureIsCore);
|
|
13252
|
-
const originalFeature = _optionalChain([state, 'access',
|
|
13353
|
+
const originalFeature = _optionalChain([state, 'access', _378 => _378.original, 'optionalAccess', _379 => _379.features, 'access', _380 => _380.find, 'call', _381 => _381((f) => f.id === action.featureId)]);
|
|
13253
13354
|
if (originalFeature && originalFeature.isCore === action.isCore) {
|
|
13254
13355
|
newMap.delete(action.featureId);
|
|
13255
13356
|
} else {
|
|
@@ -13260,7 +13361,7 @@ function rbacReducer(state, action) {
|
|
|
13260
13361
|
case "SET_MODULE_DEFAULT_PERMISSION": {
|
|
13261
13362
|
const newMap = new Map(state.modulePermissions);
|
|
13262
13363
|
const originalModule = state.original ? findModule(state.original.features, action.moduleId) : void 0;
|
|
13263
|
-
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess',
|
|
13364
|
+
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _382 => _382.permissions]) }));
|
|
13264
13365
|
const updated = { ...current, [action.actionType]: action.value };
|
|
13265
13366
|
newMap.set(action.moduleId, updated);
|
|
13266
13367
|
return { ...state, modulePermissions: newMap };
|
|
@@ -13351,8 +13452,8 @@ function useRbacState() {
|
|
|
13351
13452
|
const getFeatureIsCore = _react.useCallback.call(void 0,
|
|
13352
13453
|
(featureId) => {
|
|
13353
13454
|
if (state.featureIsCore.has(featureId)) return state.featureIsCore.get(featureId);
|
|
13354
|
-
const feature = _optionalChain([state, 'access',
|
|
13355
|
-
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess',
|
|
13455
|
+
const feature = _optionalChain([state, 'access', _383 => _383.original, 'optionalAccess', _384 => _384.features, 'access', _385 => _385.find, 'call', _386 => _386((f) => f.id === featureId)]);
|
|
13456
|
+
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess', _387 => _387.isCore]), () => ( false));
|
|
13356
13457
|
},
|
|
13357
13458
|
[state.featureIsCore, state.original]
|
|
13358
13459
|
);
|
|
@@ -13362,7 +13463,7 @@ function useRbacState() {
|
|
|
13362
13463
|
if (edited && edited[actionType] !== void 0) return edited[actionType];
|
|
13363
13464
|
if (!state.original) return void 0;
|
|
13364
13465
|
const mod = findModule(state.original.features, moduleId);
|
|
13365
|
-
return _optionalChain([mod, 'optionalAccess',
|
|
13466
|
+
return _optionalChain([mod, 'optionalAccess', _388 => _388.permissions, 'access', _389 => _389[actionType]]);
|
|
13366
13467
|
},
|
|
13367
13468
|
[state.modulePermissions, state.original]
|
|
13368
13469
|
);
|
|
@@ -13418,7 +13519,7 @@ function useRbacState() {
|
|
|
13418
13519
|
}, [state]);
|
|
13419
13520
|
const getModuleRelationshipPaths = _react.useCallback.call(void 0,
|
|
13420
13521
|
(moduleId) => {
|
|
13421
|
-
return _nullishCoalesce(_optionalChain([state, 'access',
|
|
13522
|
+
return _nullishCoalesce(_optionalChain([state, 'access', _390 => _390.original, 'optionalAccess', _391 => _391.moduleRelationshipPaths, 'access', _392 => _392.get, 'call', _393 => _393(moduleId)]), () => ( []));
|
|
13422
13523
|
},
|
|
13423
13524
|
[state.original]
|
|
13424
13525
|
);
|
|
@@ -13629,7 +13730,7 @@ function ContentTableSearch({ data }) {
|
|
|
13629
13730
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13630
13731
|
if (!isExpanded) {
|
|
13631
13732
|
setIsFocused(true);
|
|
13632
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
13733
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.focus, 'call', _396 => _396()]), 50);
|
|
13633
13734
|
}
|
|
13634
13735
|
}, "handleSearchIconClick");
|
|
13635
13736
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -13695,7 +13796,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13695
13796
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
13696
13797
|
);
|
|
13697
13798
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
13698
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13799
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _397 => _397.data]), () => ( EMPTY_ARRAY)),
|
|
13699
13800
|
fields,
|
|
13700
13801
|
checkedIds,
|
|
13701
13802
|
toggleId,
|
|
@@ -13764,12 +13865,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13764
13865
|
) }),
|
|
13765
13866
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
13766
13867
|
const meta = header.column.columnDef.meta;
|
|
13767
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
13868
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _398 => _398.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
13768
13869
|
}) }, headerGroup.id))
|
|
13769
13870
|
] }),
|
|
13770
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
13871
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _399 => _399.rows, 'optionalAccess', _400 => _400.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
13771
13872
|
const meta = cell.column.columnDef.meta;
|
|
13772
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
13873
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _401 => _401.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
13773
13874
|
}) }, 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." }) }) }),
|
|
13774
13875
|
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: [
|
|
13775
13876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13779,7 +13880,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13779
13880
|
size: "sm",
|
|
13780
13881
|
onClick: (e) => {
|
|
13781
13882
|
e.preventDefault();
|
|
13782
|
-
_optionalChain([data, 'access',
|
|
13883
|
+
_optionalChain([data, 'access', _402 => _402.previous, 'optionalCall', _403 => _403(true)]);
|
|
13783
13884
|
},
|
|
13784
13885
|
disabled: !data.previous,
|
|
13785
13886
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -13793,7 +13894,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13793
13894
|
size: "sm",
|
|
13794
13895
|
onClick: (e) => {
|
|
13795
13896
|
e.preventDefault();
|
|
13796
|
-
_optionalChain([data, 'access',
|
|
13897
|
+
_optionalChain([data, 'access', _404 => _404.next, 'optionalCall', _405 => _405(true)]);
|
|
13797
13898
|
},
|
|
13798
13899
|
disabled: !data.next,
|
|
13799
13900
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -14354,7 +14455,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14354
14455
|
newDigits[index] = digit;
|
|
14355
14456
|
setDigits(newDigits);
|
|
14356
14457
|
if (digit && index < 5) {
|
|
14357
|
-
_optionalChain([inputRefs, 'access',
|
|
14458
|
+
_optionalChain([inputRefs, 'access', _406 => _406.current, 'access', _407 => _407[index + 1], 'optionalAccess', _408 => _408.focus, 'call', _409 => _409()]);
|
|
14358
14459
|
}
|
|
14359
14460
|
const code = newDigits.join("");
|
|
14360
14461
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -14363,7 +14464,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14363
14464
|
}, "handleChange");
|
|
14364
14465
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
14365
14466
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
14366
|
-
_optionalChain([inputRefs, 'access',
|
|
14467
|
+
_optionalChain([inputRefs, 'access', _410 => _410.current, 'access', _411 => _411[index - 1], 'optionalAccess', _412 => _412.focus, 'call', _413 => _413()]);
|
|
14367
14468
|
}
|
|
14368
14469
|
}, "handleKeyDown");
|
|
14369
14470
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -14372,7 +14473,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14372
14473
|
if (pastedData.length === 6) {
|
|
14373
14474
|
const newDigits = pastedData.split("");
|
|
14374
14475
|
setDigits(newDigits);
|
|
14375
|
-
_optionalChain([inputRefs, 'access',
|
|
14476
|
+
_optionalChain([inputRefs, 'access', _414 => _414.current, 'access', _415 => _415[5], 'optionalAccess', _416 => _416.focus, 'call', _417 => _417()]);
|
|
14376
14477
|
onComplete(pastedData);
|
|
14377
14478
|
}
|
|
14378
14479
|
}, "handlePaste");
|
|
@@ -14583,8 +14684,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
14583
14684
|
try {
|
|
14584
14685
|
const registrationData = await _chunkNAST4OSMjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
14585
14686
|
id: _uuid.v4.call(void 0, ),
|
|
14586
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14587
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
14687
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _418 => _418.email]), () => ( "")),
|
|
14688
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _419 => _419.name])
|
|
14588
14689
|
});
|
|
14589
14690
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
14590
14691
|
await _chunkNAST4OSMjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -14735,7 +14836,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14735
14836
|
const setup = await _chunkNAST4OSMjs.TwoFactorService.setupTotp({
|
|
14736
14837
|
id: _uuid.v4.call(void 0, ),
|
|
14737
14838
|
name: name.trim(),
|
|
14738
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14839
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _420 => _420.email]), () => ( ""))
|
|
14739
14840
|
});
|
|
14740
14841
|
setQrCodeUri(setup.qrCodeUri);
|
|
14741
14842
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -14869,7 +14970,7 @@ function TwoFactorSettings() {
|
|
|
14869
14970
|
if (isLoading) {
|
|
14870
14971
|
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") }) }) });
|
|
14871
14972
|
}
|
|
14872
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14973
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _421 => _421.isEnabled]), () => ( false));
|
|
14873
14974
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
14874
14975
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
14875
14976
|
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" }),
|
|
@@ -14907,7 +15008,7 @@ function TwoFactorSettings() {
|
|
|
14907
15008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
14908
15009
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
14909
15010
|
] }),
|
|
14910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
15011
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _422 => _422.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
14911
15012
|
] }) }),
|
|
14912
15013
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14913
15014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -15085,9 +15186,9 @@ function AcceptInvitation() {
|
|
|
15085
15186
|
});
|
|
15086
15187
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15087
15188
|
try {
|
|
15088
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15189
|
+
if (!_optionalChain([params, 'optionalAccess', _423 => _423.code])) return;
|
|
15089
15190
|
const payload = {
|
|
15090
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15191
|
+
code: _optionalChain([params, 'optionalAccess', _424 => _424.code]),
|
|
15091
15192
|
password: values.password
|
|
15092
15193
|
};
|
|
15093
15194
|
await _chunkNAST4OSMjs.AuthService.acceptInvitation(payload);
|
|
@@ -15437,7 +15538,7 @@ function Logout({ storageKeys }) {
|
|
|
15437
15538
|
const generateUrl = usePageUrlGenerator();
|
|
15438
15539
|
_react.useEffect.call(void 0, () => {
|
|
15439
15540
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15440
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
15541
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _425 => _425.length])) {
|
|
15441
15542
|
clearClientStorage(storageKeys);
|
|
15442
15543
|
}
|
|
15443
15544
|
await _chunkNAST4OSMjs.AuthService.logout();
|
|
@@ -15460,14 +15561,14 @@ function RefreshUser() {
|
|
|
15460
15561
|
setUser(fullUser);
|
|
15461
15562
|
const token = {
|
|
15462
15563
|
userId: fullUser.id,
|
|
15463
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
15564
|
+
companyId: _optionalChain([fullUser, 'access', _426 => _426.company, 'optionalAccess', _427 => _427.id]),
|
|
15464
15565
|
roles: fullUser.roles.map((role) => role.id),
|
|
15465
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
15566
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _428 => _428.company, 'optionalAccess', _429 => _429.features, 'optionalAccess', _430 => _430.map, 'call', _431 => _431((feature) => feature.id)]), () => ( [])),
|
|
15466
15567
|
modules: fullUser.modules.map((module) => {
|
|
15467
15568
|
return { id: module.id, permissions: module.permissions };
|
|
15468
15569
|
})
|
|
15469
15570
|
};
|
|
15470
|
-
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
15571
|
+
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _432 => _432.updateToken, 'call', _433 => _433(token)]);
|
|
15471
15572
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15472
15573
|
}
|
|
15473
15574
|
}, "loadFullUser");
|
|
@@ -15531,9 +15632,9 @@ function ResetPassword() {
|
|
|
15531
15632
|
});
|
|
15532
15633
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15533
15634
|
try {
|
|
15534
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15635
|
+
if (!_optionalChain([params, 'optionalAccess', _434 => _434.code])) return;
|
|
15535
15636
|
const payload = {
|
|
15536
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15637
|
+
code: _optionalChain([params, 'optionalAccess', _435 => _435.code]),
|
|
15537
15638
|
password: values.password
|
|
15538
15639
|
};
|
|
15539
15640
|
await _chunkNAST4OSMjs.AuthService.resetPassword(payload);
|
|
@@ -15890,14 +15991,14 @@ function NotificationsList({ archived }) {
|
|
|
15890
15991
|
] }),
|
|
15891
15992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
15892
15993
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
15893
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
15994
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _436 => _436.data, 'optionalAccess', _437 => _437.map, 'call', _438 => _438((notification) => {
|
|
15894
15995
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
15895
15996
|
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: [
|
|
15896
15997
|
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: _chunkNAST4OSMjs.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" }),
|
|
15897
15998
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
15898
15999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
15899
16000
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
15900
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
16001
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _439 => _439.actor, 'optionalAccess', _440 => _440.name]), () => ( "")),
|
|
15901
16002
|
title: notificationData.title
|
|
15902
16003
|
}) }),
|
|
15903
16004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -16247,7 +16348,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
16247
16348
|
invalidEmail: "Please enter a valid email address"
|
|
16248
16349
|
};
|
|
16249
16350
|
async function copyToClipboard(text) {
|
|
16250
|
-
if (_optionalChain([navigator, 'access',
|
|
16351
|
+
if (_optionalChain([navigator, 'access', _441 => _441.clipboard, 'optionalAccess', _442 => _442.writeText])) {
|
|
16251
16352
|
try {
|
|
16252
16353
|
await navigator.clipboard.writeText(text);
|
|
16253
16354
|
return true;
|
|
@@ -16289,7 +16390,7 @@ function ReferralWidget({
|
|
|
16289
16390
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16290
16391
|
const config = _chunkBQSMP4NUjs.getReferralConfig.call(void 0, );
|
|
16291
16392
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16292
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
16393
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _443 => _443.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16293
16394
|
if (!_chunkBQSMP4NUjs.isReferralEnabled.call(void 0, )) {
|
|
16294
16395
|
return null;
|
|
16295
16396
|
}
|
|
@@ -16299,7 +16400,7 @@ function ReferralWidget({
|
|
|
16299
16400
|
if (success) {
|
|
16300
16401
|
setCopied(true);
|
|
16301
16402
|
_chunkNAST4OSMjs.showToast.call(void 0, t.copiedMessage);
|
|
16302
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
16403
|
+
_optionalChain([onLinkCopied, 'optionalCall', _444 => _444()]);
|
|
16303
16404
|
setTimeout(() => setCopied(false), 2e3);
|
|
16304
16405
|
} else {
|
|
16305
16406
|
_chunkNAST4OSMjs.showError.call(void 0, t.copyError);
|
|
@@ -16313,12 +16414,12 @@ function ReferralWidget({
|
|
|
16313
16414
|
try {
|
|
16314
16415
|
await sendInvite(email);
|
|
16315
16416
|
_chunkNAST4OSMjs.showToast.call(void 0, t.inviteSent);
|
|
16316
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
16417
|
+
_optionalChain([onInviteSent, 'optionalCall', _445 => _445(email)]);
|
|
16317
16418
|
setEmail("");
|
|
16318
16419
|
} catch (err) {
|
|
16319
16420
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16320
16421
|
_chunkNAST4OSMjs.showError.call(void 0, error2.message);
|
|
16321
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
16422
|
+
_optionalChain([onInviteError, 'optionalCall', _446 => _446(error2)]);
|
|
16322
16423
|
}
|
|
16323
16424
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
16324
16425
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -17071,7 +17172,7 @@ function OAuthClientList({
|
|
|
17071
17172
|
OAuthClientCard,
|
|
17072
17173
|
{
|
|
17073
17174
|
client,
|
|
17074
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
17175
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _447 => _447(client)]),
|
|
17075
17176
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
17076
17177
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
17077
17178
|
},
|
|
@@ -17087,11 +17188,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
17087
17188
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
17088
17189
|
const isEditMode = !!client;
|
|
17089
17190
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
17090
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
17091
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
17092
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
17093
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
17094
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
17191
|
+
name: _optionalChain([client, 'optionalAccess', _448 => _448.name]) || "",
|
|
17192
|
+
description: _optionalChain([client, 'optionalAccess', _449 => _449.description]) || "",
|
|
17193
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _450 => _450.redirectUris, 'optionalAccess', _451 => _451.length]) ? client.redirectUris : [""],
|
|
17194
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _452 => _452.allowedScopes]) || [],
|
|
17195
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _453 => _453.isConfidential]), () => ( true))
|
|
17095
17196
|
});
|
|
17096
17197
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
17097
17198
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -17319,7 +17420,7 @@ function OAuthClientDetail({
|
|
|
17319
17420
|
] }),
|
|
17320
17421
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17321
17422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17322
|
-
/* @__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([_chunkNAST4OSMjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
17423
|
+
/* @__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([_chunkNAST4OSMjs.OAUTH_SCOPE_DISPLAY, 'access', _454 => _454[scope], 'optionalAccess', _455 => _455.name]) || scope }, scope)) })
|
|
17323
17424
|
] }),
|
|
17324
17425
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17325
17426
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -17463,7 +17564,7 @@ function OAuthConsentScreen({
|
|
|
17463
17564
|
if (error || !clientInfo) {
|
|
17464
17565
|
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: [
|
|
17465
17566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
17466
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
17567
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _456 => _456.message]) || "Invalid authorization request. Please try again." })
|
|
17467
17568
|
] }) }) }) });
|
|
17468
17569
|
}
|
|
17469
17570
|
const { client, scopes } = clientInfo;
|
|
@@ -17679,7 +17780,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17679
17780
|
questionnaire: values.questionnaire
|
|
17680
17781
|
});
|
|
17681
17782
|
setIsSuccess(true);
|
|
17682
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
17783
|
+
_optionalChain([onSuccess, 'optionalCall', _457 => _457()]);
|
|
17683
17784
|
} catch (e) {
|
|
17684
17785
|
errorToast({ error: e });
|
|
17685
17786
|
} finally {
|
|
@@ -18302,7 +18403,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18302
18403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18303
18404
|
_chunkBQSMP4NUjs.ACTION_TYPES.map((actionType) => {
|
|
18304
18405
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18305
|
-
const originalMapping = _optionalChain([stateApi, 'access',
|
|
18406
|
+
const originalMapping = _optionalChain([stateApi, 'access', _458 => _458.original, 'optionalAccess', _459 => _459.permissionMappings, 'access', _460 => _460.find, 'call', _461 => _461(
|
|
18306
18407
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
18307
18408
|
)]);
|
|
18308
18409
|
const originalRoleValue = originalMapping ? _nullishCoalesce(originalMapping.permissions[actionType], () => ( null)) : void 0;
|
|
@@ -18918,5 +19019,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
18918
19019
|
|
|
18919
19020
|
|
|
18920
19021
|
|
|
18921
|
-
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.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 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; 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.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; 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.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; 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.FormBlockNote = FormBlockNote; 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.useRbacState = useRbacState; exports.generateMigrationFile = generateMigrationFile; exports.downloadMigrationFile = downloadMigrationFile; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacModuleTable = RbacModuleTable; exports.RbacFeatureSection = RbacFeatureSection; exports.RbacToolbar = RbacToolbar; exports.RbacContainer = RbacContainer; 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;
|
|
18922
|
-
//# sourceMappingURL=chunk-JRKIV2DF.js.map
|
|
19022
|
+
|
|
19023
|
+
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.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 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; 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.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; 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.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; 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.FormBlockNote = FormBlockNote; 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.useRbacState = useRbacState; exports.generateMigrationFile = generateMigrationFile; exports.downloadMigrationFile = downloadMigrationFile; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacModuleTable = RbacModuleTable; exports.RbacFeatureSection = RbacFeatureSection; exports.RbacToolbar = RbacToolbar; exports.RbacContainer = RbacContainer; 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;
|
|
19024
|
+
//# sourceMappingURL=chunk-T2Z5OJCX.js.map
|