@carlonicora/nextjs-jsonapi 1.59.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-V46DP6BW.mjs → BlockNoteEditor-HTD3BPTX.mjs} +2 -2
- package/dist/{BlockNoteEditor-LM45SVSD.js → BlockNoteEditor-LUAMTXEK.js} +6 -6
- package/dist/{BlockNoteEditor-LM45SVSD.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-4QXIOFK5.js → chunk-T2Z5OJCX.js} +317 -127
- package/dist/chunk-T2Z5OJCX.js.map +1 -0
- package/dist/{chunk-FDTDSTD6.mjs → chunk-W5ADYJZO.mjs} +2254 -2064
- 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 +55 -3
- package/dist/components/index.d.ts +55 -3
- package/dist/components/index.js +8 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +17 -39
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-web-module/templates/components/editor.template.ts +17 -39
- package/src/components/forms/CommonEditorDiscardDialog.tsx +40 -0
- package/src/components/forms/EditorSheet.tsx +179 -0
- package/src/components/forms/__tests__/CommonEditorDiscardDialog.test.tsx +43 -0
- package/src/components/forms/__tests__/EditorSheet.test.tsx +217 -0
- package/src/components/forms/__tests__/useEditorDialog.test.ts +145 -0
- package/src/components/forms/index.ts +3 -0
- package/src/components/forms/useEditorDialog.ts +93 -0
- package/src/components/tables/ContentListTable.tsx +13 -14
- package/dist/chunk-4QXIOFK5.js.map +0 -1
- package/dist/chunk-FDTDSTD6.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-V46DP6BW.mjs.map → BlockNoteEditor-HTD3BPTX.mjs.map} +0 -0
|
@@ -7771,6 +7771,24 @@ function CommonEditorHeader({ type, name }) {
|
|
|
7771
7771
|
}
|
|
7772
7772
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorHeader, "CommonEditorHeader");
|
|
7773
7773
|
|
|
7774
|
+
// src/components/forms/CommonEditorDiscardDialog.tsx
|
|
7775
|
+
|
|
7776
|
+
|
|
7777
|
+
function CommonEditorDiscardDialog({ open, onOpenChange, onDiscard }) {
|
|
7778
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
7779
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { children: [
|
|
7780
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
|
|
7781
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`ui.dialogs.unsaved_changes_title`) }),
|
|
7782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`ui.dialogs.unsaved_changes_description`) })
|
|
7783
|
+
] }),
|
|
7784
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogFooter, { children: [
|
|
7785
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogCancel, { children: t(`ui.buttons.cancel`) }),
|
|
7786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogAction, { variant: "destructive", onClick: onDiscard, children: t(`ui.dialogs.unsaved_changes_discard`) })
|
|
7787
|
+
] })
|
|
7788
|
+
] }) });
|
|
7789
|
+
}
|
|
7790
|
+
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorDiscardDialog, "CommonEditorDiscardDialog");
|
|
7791
|
+
|
|
7774
7792
|
// src/components/forms/CommonEditorTrigger.tsx
|
|
7775
7793
|
|
|
7776
7794
|
|
|
@@ -7792,6 +7810,167 @@ function CommonEditorTrigger({ isEdit, edit: _edit, create, testId }) {
|
|
|
7792
7810
|
}
|
|
7793
7811
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorTrigger, "CommonEditorTrigger");
|
|
7794
7812
|
|
|
7813
|
+
// src/components/forms/useEditorDialog.ts
|
|
7814
|
+
|
|
7815
|
+
function useEditorDialog(isFormDirty, options) {
|
|
7816
|
+
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7817
|
+
const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
|
|
7818
|
+
_react.useEffect.call(void 0, () => {
|
|
7819
|
+
if (_optionalChain([options, 'optionalAccess', _204 => _204.dialogOpen]) !== void 0) {
|
|
7820
|
+
setOpen(options.dialogOpen);
|
|
7821
|
+
}
|
|
7822
|
+
}, [_optionalChain([options, 'optionalAccess', _205 => _205.dialogOpen])]);
|
|
7823
|
+
_react.useEffect.call(void 0, () => {
|
|
7824
|
+
if (typeof _optionalChain([options, 'optionalAccess', _206 => _206.onDialogOpenChange]) === "function") {
|
|
7825
|
+
options.onDialogOpenChange(open);
|
|
7826
|
+
}
|
|
7827
|
+
}, [open, _optionalChain([options, 'optionalAccess', _207 => _207.onDialogOpenChange])]);
|
|
7828
|
+
_react.useEffect.call(void 0, () => {
|
|
7829
|
+
if (_optionalChain([options, 'optionalAccess', _208 => _208.forceShow])) setOpen(true);
|
|
7830
|
+
}, [_optionalChain([options, 'optionalAccess', _209 => _209.forceShow])]);
|
|
7831
|
+
_react.useEffect.call(void 0, () => {
|
|
7832
|
+
if (!open) {
|
|
7833
|
+
if (_optionalChain([options, 'optionalAccess', _210 => _210.onClose])) options.onClose();
|
|
7834
|
+
}
|
|
7835
|
+
}, [open]);
|
|
7836
|
+
const handleOpenChange = _react.useCallback.call(void 0,
|
|
7837
|
+
(nextOpen) => {
|
|
7838
|
+
if (!nextOpen && isFormDirty()) {
|
|
7839
|
+
setShowDiscardConfirm(true);
|
|
7840
|
+
return;
|
|
7841
|
+
}
|
|
7842
|
+
setOpen(nextOpen);
|
|
7843
|
+
},
|
|
7844
|
+
[isFormDirty]
|
|
7845
|
+
);
|
|
7846
|
+
_react.useEffect.call(void 0, () => {
|
|
7847
|
+
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
|
|
7848
|
+
if (event.key === "Escape" && open) {
|
|
7849
|
+
event.preventDefault();
|
|
7850
|
+
event.stopPropagation();
|
|
7851
|
+
handleOpenChange(false);
|
|
7852
|
+
}
|
|
7853
|
+
}, "handleKeyDown");
|
|
7854
|
+
if (open) {
|
|
7855
|
+
document.addEventListener("keydown", handleKeyDown, true);
|
|
7856
|
+
}
|
|
7857
|
+
return () => {
|
|
7858
|
+
document.removeEventListener("keydown", handleKeyDown, true);
|
|
7859
|
+
};
|
|
7860
|
+
}, [open, handleOpenChange]);
|
|
7861
|
+
const discardDialogProps = {
|
|
7862
|
+
open: showDiscardConfirm,
|
|
7863
|
+
onOpenChange: setShowDiscardConfirm,
|
|
7864
|
+
onDiscard: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
7865
|
+
setShowDiscardConfirm(false);
|
|
7866
|
+
setOpen(false);
|
|
7867
|
+
}, "onDiscard")
|
|
7868
|
+
};
|
|
7869
|
+
return { open, setOpen, handleOpenChange, discardDialogProps };
|
|
7870
|
+
}
|
|
7871
|
+
_chunk7QVYU63Ejs.__name.call(void 0, useEditorDialog, "useEditorDialog");
|
|
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
|
+
|
|
7795
7974
|
// src/components/forms/DatePickerPopover.tsx
|
|
7796
7975
|
var _datefns = require('date-fns');
|
|
7797
7976
|
|
|
@@ -7968,7 +8147,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7968
8147
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7969
8148
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
7970
8149
|
_react.useEffect.call(void 0, () => {
|
|
7971
|
-
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())) {
|
|
7972
8151
|
onDateChange(date);
|
|
7973
8152
|
setPrevRange(date);
|
|
7974
8153
|
setOpen(false);
|
|
@@ -7979,7 +8158,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7979
8158
|
setDate(void 0);
|
|
7980
8159
|
return;
|
|
7981
8160
|
}
|
|
7982
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
8161
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _222 => _222.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
7983
8162
|
setDate({ from: range.from, to: void 0 });
|
|
7984
8163
|
} else {
|
|
7985
8164
|
setDate(range);
|
|
@@ -7994,7 +8173,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7994
8173
|
className: _chunkNAST4OSMjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7995
8174
|
children: [
|
|
7996
8175
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7997
|
-
_optionalChain([date, 'optionalAccess',
|
|
8176
|
+
_optionalChain([date, 'optionalAccess', _223 => _223.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7998
8177
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
7999
8178
|
" - ",
|
|
8000
8179
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
@@ -8007,7 +8186,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8007
8186
|
Calendar,
|
|
8008
8187
|
{
|
|
8009
8188
|
mode: "range",
|
|
8010
|
-
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))),
|
|
8011
8190
|
selected: date,
|
|
8012
8191
|
onSelect: handleSelect,
|
|
8013
8192
|
numberOfMonths: 2
|
|
@@ -8094,7 +8273,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8094
8273
|
movePrev();
|
|
8095
8274
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
8096
8275
|
if (activeIndex === -1) {
|
|
8097
|
-
_optionalChain([dropzoneState, 'access',
|
|
8276
|
+
_optionalChain([dropzoneState, 'access', _225 => _225.inputRef, 'access', _226 => _226.current, 'optionalAccess', _227 => _227.click, 'call', _228 => _228()]);
|
|
8098
8277
|
}
|
|
8099
8278
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
8100
8279
|
if (activeIndex !== -1) {
|
|
@@ -8132,13 +8311,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8132
8311
|
onValueChange(newValues);
|
|
8133
8312
|
if (rejectedFiles.length > 0) {
|
|
8134
8313
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
8135
|
-
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") {
|
|
8136
8315
|
_chunkNAST4OSMjs.showError.call(void 0, t("common.errors.file"), {
|
|
8137
8316
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
8138
8317
|
});
|
|
8139
8318
|
break;
|
|
8140
8319
|
}
|
|
8141
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
8320
|
+
if (_optionalChain([rejectedFiles, 'access', _233 => _233[i], 'access', _234 => _234.errors, 'access', _235 => _235[0], 'optionalAccess', _236 => _236.message])) {
|
|
8142
8321
|
_chunkNAST4OSMjs.showError.call(void 0, t(`common.errors.file`), {
|
|
8143
8322
|
description: rejectedFiles[i].errors[0].message
|
|
8144
8323
|
});
|
|
@@ -8368,7 +8547,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8368
8547
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8369
8548
|
|
|
8370
8549
|
|
|
8371
|
-
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"))), {
|
|
8372
8551
|
ssr: false
|
|
8373
8552
|
});
|
|
8374
8553
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8405,7 +8584,7 @@ function FormBlockNote({
|
|
|
8405
8584
|
initialContent: field.value,
|
|
8406
8585
|
onChange: (content, isEmpty) => {
|
|
8407
8586
|
field.onChange(content);
|
|
8408
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
8587
|
+
_optionalChain([onEmptyChange, 'optionalCall', _237 => _237(isEmpty)]);
|
|
8409
8588
|
},
|
|
8410
8589
|
placeholder,
|
|
8411
8590
|
bordered: true
|
|
@@ -8917,11 +9096,11 @@ function FormPlaceAutocomplete({
|
|
|
8917
9096
|
const data = await response.json();
|
|
8918
9097
|
if (data.suggestions) {
|
|
8919
9098
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
8920
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
8921
|
-
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]) || "",
|
|
8922
9101
|
structured_formatting: {
|
|
8923
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
8924
|
-
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]) || ""
|
|
8925
9104
|
}
|
|
8926
9105
|
}));
|
|
8927
9106
|
setSuggestions(formattedSuggestions);
|
|
@@ -9068,8 +9247,8 @@ function FormPlaceAutocomplete({
|
|
|
9068
9247
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
9069
9248
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
9070
9249
|
children: [
|
|
9071
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
9072
|
-
/* @__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]) })
|
|
9073
9252
|
]
|
|
9074
9253
|
},
|
|
9075
9254
|
suggestion.place_id || index
|
|
@@ -9113,7 +9292,7 @@ function FormSelect({
|
|
|
9113
9292
|
disabled,
|
|
9114
9293
|
"data-testid": testId,
|
|
9115
9294
|
children: [
|
|
9116
|
-
/* @__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, () => ( "")) }) }),
|
|
9117
9296
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
9118
9297
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
9119
9298
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -9300,7 +9479,7 @@ function UserMultiSelect({
|
|
|
9300
9479
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9301
9480
|
return _chunkNAST4OSMjs.UserService.findAllUsers(params);
|
|
9302
9481
|
}, "retriever"),
|
|
9303
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9482
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _258 => _258.id]) },
|
|
9304
9483
|
module: _chunkNAST4OSMjs.Modules.User
|
|
9305
9484
|
});
|
|
9306
9485
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9327,7 +9506,7 @@ function UserMultiSelect({
|
|
|
9327
9506
|
_react.useEffect.call(void 0, () => {
|
|
9328
9507
|
if (data.data && data.data.length > 0) {
|
|
9329
9508
|
const users = data.data;
|
|
9330
|
-
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess',
|
|
9509
|
+
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _259 => _259.id]));
|
|
9331
9510
|
const options = filteredUsers.map((user) => ({
|
|
9332
9511
|
label: user.name,
|
|
9333
9512
|
value: user.id,
|
|
@@ -9356,14 +9535,14 @@ function UserMultiSelect({
|
|
|
9356
9535
|
return {
|
|
9357
9536
|
id: option.value,
|
|
9358
9537
|
name: option.label,
|
|
9359
|
-
avatar: _optionalChain([userOption, 'optionalAccess',
|
|
9538
|
+
avatar: _optionalChain([userOption, 'optionalAccess', _260 => _260.avatar])
|
|
9360
9539
|
};
|
|
9361
9540
|
});
|
|
9362
9541
|
form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
|
|
9363
9542
|
if (onChange) {
|
|
9364
9543
|
const fullUsers = options.map((option) => {
|
|
9365
9544
|
const userOption = userOptions.find((opt) => opt.value === option.value);
|
|
9366
|
-
return _optionalChain([userOption, 'optionalAccess',
|
|
9545
|
+
return _optionalChain([userOption, 'optionalAccess', _261 => _261.userData]);
|
|
9367
9546
|
}).filter(Boolean);
|
|
9368
9547
|
onChange(fullUsers);
|
|
9369
9548
|
}
|
|
@@ -9529,7 +9708,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9529
9708
|
}, "getInitials");
|
|
9530
9709
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9531
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: [
|
|
9532
|
-
/* @__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]) }),
|
|
9533
9712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials2(user.name) })
|
|
9534
9713
|
] }) });
|
|
9535
9714
|
}, "getAvatar");
|
|
@@ -9627,10 +9806,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9627
9806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9628
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: [
|
|
9629
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: [
|
|
9630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
9631
|
-
/* @__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" })
|
|
9632
9811
|
] }) }),
|
|
9633
|
-
/* @__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]), () => ( "")) })
|
|
9634
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 }) }))) }) }) }),
|
|
9635
9814
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9636
9815
|
_lucidereact.CircleX,
|
|
@@ -9925,7 +10104,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9925
10104
|
const data = useDataListRetriever({
|
|
9926
10105
|
ready: !!company,
|
|
9927
10106
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNAST4OSMjs.UserService.findAllUsers(params), "retriever"),
|
|
9928
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
10107
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _275 => _275.id]), isDeleted },
|
|
9929
10108
|
module: _chunkNAST4OSMjs.Modules.User
|
|
9930
10109
|
});
|
|
9931
10110
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10031,11 +10210,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
10031
10210
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
10032
10211
|
onClick: (_e) => {
|
|
10033
10212
|
setSelectedUser(user);
|
|
10034
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10213
|
+
_optionalChain([setLevelOpen, 'optionalCall', _276 => _276(true)]);
|
|
10035
10214
|
},
|
|
10036
10215
|
onSelect: (_e) => {
|
|
10037
10216
|
setSelectedUser(user);
|
|
10038
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10217
|
+
_optionalChain([setLevelOpen, 'optionalCall', _277 => _277(true)]);
|
|
10039
10218
|
},
|
|
10040
10219
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
10041
10220
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -10152,7 +10331,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10152
10331
|
const availableMonthlyTokens = company.availableMonthlyTokens;
|
|
10153
10332
|
const availableExtraTokens = company.availableExtraTokens;
|
|
10154
10333
|
const percentage = monthlyTokens > 0 ? availableMonthlyTokens / monthlyTokens * 100 : 0;
|
|
10155
|
-
const
|
|
10334
|
+
const sizeClasses2 = {
|
|
10156
10335
|
sm: "h-4 w-4",
|
|
10157
10336
|
md: "h-5 w-5",
|
|
10158
10337
|
lg: "h-6 w-6"
|
|
@@ -10167,7 +10346,7 @@ function TokenStatusIndicator({ className, size = "md", showExtraPages = true })
|
|
|
10167
10346
|
md: "text-sm",
|
|
10168
10347
|
lg: "text-base"
|
|
10169
10348
|
};
|
|
10170
|
-
const iconSize =
|
|
10349
|
+
const iconSize = sizeClasses2[size];
|
|
10171
10350
|
const smallIconSize = smallIconSizeClasses[size];
|
|
10172
10351
|
const textSize = textSizeClasses[size];
|
|
10173
10352
|
const getBatteryIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10320,8 +10499,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10320
10499
|
const { setUser } = useCurrentUserContext();
|
|
10321
10500
|
const defaultValues = _react.useMemo.call(void 0, () => {
|
|
10322
10501
|
return {
|
|
10323
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10324
|
-
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))
|
|
10325
10504
|
};
|
|
10326
10505
|
}, [company.configurations]);
|
|
10327
10506
|
const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10340,8 +10519,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10340
10519
|
_react.useEffect.call(void 0, () => {
|
|
10341
10520
|
if (open) {
|
|
10342
10521
|
form.reset({
|
|
10343
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10344
|
-
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))
|
|
10345
10524
|
});
|
|
10346
10525
|
}
|
|
10347
10526
|
}, [company, open]);
|
|
@@ -10568,11 +10747,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10568
10747
|
const form = _reacthookform.useForm.call(void 0, {
|
|
10569
10748
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
10570
10749
|
defaultValues: {
|
|
10571
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
10572
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
10573
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
10574
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
10575
|
-
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]) || ""
|
|
10576
10755
|
}
|
|
10577
10756
|
});
|
|
10578
10757
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -10589,7 +10768,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10589
10768
|
});
|
|
10590
10769
|
}
|
|
10591
10770
|
const payload = {
|
|
10592
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
10771
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _295 => _295.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
10593
10772
|
name: values.name,
|
|
10594
10773
|
logo: files && contentType ? values.logo : void 0,
|
|
10595
10774
|
featureIds: values.featureIds,
|
|
@@ -10624,7 +10803,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10624
10803
|
}
|
|
10625
10804
|
}
|
|
10626
10805
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10627
|
-
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"))
|
|
10628
10807
|
fetchFeatures();
|
|
10629
10808
|
}, [open, features]);
|
|
10630
10809
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10658,7 +10837,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10658
10837
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10659
10838
|
}
|
|
10660
10839
|
};
|
|
10661
|
-
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";
|
|
10662
10841
|
const isAdministrator2 = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator);
|
|
10663
10842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10664
10843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
@@ -10667,13 +10846,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10667
10846
|
{
|
|
10668
10847
|
className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
|
|
10669
10848
|
children: [
|
|
10670
|
-
/* @__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]) }),
|
|
10671
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: [
|
|
10672
10851
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
10673
|
-
/* @__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,
|
|
10674
10853
|
_image2.default,
|
|
10675
10854
|
{
|
|
10676
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
10855
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _306 => _306.logo]) || "",
|
|
10677
10856
|
alt: "Company Logo",
|
|
10678
10857
|
width: 200,
|
|
10679
10858
|
height: 200
|
|
@@ -10808,7 +10987,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
10808
10987
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10809
10988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10810
10989
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10811
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10990
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _307 => _307.actor, 'optionalAccess', _308 => _308.name]), () => ( "")),
|
|
10812
10991
|
title: data.title,
|
|
10813
10992
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10814
10993
|
}) }),
|
|
@@ -10837,7 +11016,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
10837
11016
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10838
11017
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10839
11018
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10840
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
11019
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _309 => _309.actor, 'optionalAccess', _310 => _310.name]), () => ( "")),
|
|
10841
11020
|
title: data.title,
|
|
10842
11021
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10843
11022
|
}) }),
|
|
@@ -10894,7 +11073,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10894
11073
|
_react.useEffect.call(void 0, () => {
|
|
10895
11074
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10896
11075
|
if (_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) {
|
|
10897
|
-
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)]);
|
|
10898
11077
|
if (isAdmin) {
|
|
10899
11078
|
setHasInitiallyLoaded(true);
|
|
10900
11079
|
return;
|
|
@@ -11096,7 +11275,7 @@ function OnboardingProvider({
|
|
|
11096
11275
|
let tourSteps = steps;
|
|
11097
11276
|
if (!tourSteps) {
|
|
11098
11277
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
11099
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
11278
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _314 => _314.steps]);
|
|
11100
11279
|
}
|
|
11101
11280
|
if (!tourSteps || tourSteps.length === 0) {
|
|
11102
11281
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -11164,10 +11343,10 @@ function OnboardingProvider({
|
|
|
11164
11343
|
when: {
|
|
11165
11344
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11166
11345
|
setCurrentStepIndex(index);
|
|
11167
|
-
_optionalChain([stepConfig, 'access',
|
|
11346
|
+
_optionalChain([stepConfig, 'access', _315 => _315.onShow, 'optionalCall', _316 => _316()]);
|
|
11168
11347
|
}, "show"),
|
|
11169
11348
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11170
|
-
_optionalChain([stepConfig, 'access',
|
|
11349
|
+
_optionalChain([stepConfig, 'access', _317 => _317.onHide, 'optionalCall', _318 => _318()]);
|
|
11171
11350
|
}, "hide")
|
|
11172
11351
|
}
|
|
11173
11352
|
});
|
|
@@ -11355,7 +11534,7 @@ function usePageTracker() {
|
|
|
11355
11534
|
if (typeof document !== "undefined") {
|
|
11356
11535
|
const titleParts = document.title.split("]");
|
|
11357
11536
|
if (titleParts[1]) {
|
|
11358
|
-
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()]);
|
|
11359
11538
|
pageTitle = cleanTitle || foundModule.name;
|
|
11360
11539
|
}
|
|
11361
11540
|
}
|
|
@@ -11392,7 +11571,7 @@ function usePushNotifications() {
|
|
|
11392
11571
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11393
11572
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
11394
11573
|
try {
|
|
11395
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
11574
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _325 => _325.id])}`;
|
|
11396
11575
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
11397
11576
|
const registration = await navigator.serviceWorker.register(`${_chunkBQSMP4NUjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
11398
11577
|
let permission = Notification.permission;
|
|
@@ -11446,7 +11625,7 @@ function useSocket({ token }) {
|
|
|
11446
11625
|
const socketRef = _react.useRef.call(void 0, null);
|
|
11447
11626
|
_react.useEffect.call(void 0, () => {
|
|
11448
11627
|
if (!token) return;
|
|
11449
|
-
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, "_")])}`;
|
|
11450
11629
|
if (typeof window !== "undefined") {
|
|
11451
11630
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
11452
11631
|
const existingSocket = window[globalSocketKey];
|
|
@@ -11884,7 +12063,7 @@ function RoundPageContainer({
|
|
|
11884
12063
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
11885
12064
|
const section = searchParams.get("section");
|
|
11886
12065
|
const rewriteUrl = useUrlRewriter();
|
|
11887
|
-
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;
|
|
11888
12067
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
11889
12068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11890
12069
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { className: "bg-sidebar border-0", children: headerChildren }),
|
|
@@ -11910,8 +12089,8 @@ function RoundPageContainer({
|
|
|
11910
12089
|
if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
11911
12090
|
},
|
|
11912
12091
|
children: [
|
|
11913
|
-
/* @__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',
|
|
11914
|
-
/* @__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)) })
|
|
11915
12094
|
]
|
|
11916
12095
|
}
|
|
11917
12096
|
) : children }) }),
|
|
@@ -12145,10 +12324,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
12145
12324
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12146
12325
|
Checkbox,
|
|
12147
12326
|
{
|
|
12148
|
-
checked: _optionalChain([params, 'access',
|
|
12327
|
+
checked: _optionalChain([params, 'access', _339 => _339.checkedIds, 'optionalAccess', _340 => _340.includes, 'call', _341 => _341(row.getValue(params.name))]) || false,
|
|
12149
12328
|
onCheckedChange: (value) => {
|
|
12150
12329
|
row.toggleSelected(!!value);
|
|
12151
|
-
_optionalChain([params, 'access',
|
|
12330
|
+
_optionalChain([params, 'access', _342 => _342.toggleId, 'optionalCall', _343 => _343(row.getValue(params.name))]);
|
|
12152
12331
|
},
|
|
12153
12332
|
"aria-label": "Select row"
|
|
12154
12333
|
}
|
|
@@ -12207,7 +12386,7 @@ function useJsonApiGet(params) {
|
|
|
12207
12386
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
12208
12387
|
const isMounted = _react.useRef.call(void 0, true);
|
|
12209
12388
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
12210
|
-
if (_optionalChain([params, 'access',
|
|
12389
|
+
if (_optionalChain([params, 'access', _344 => _344.options, 'optionalAccess', _345 => _345.enabled]) === false) return;
|
|
12211
12390
|
setLoading(true);
|
|
12212
12391
|
setError(null);
|
|
12213
12392
|
try {
|
|
@@ -12234,9 +12413,9 @@ function useJsonApiGet(params) {
|
|
|
12234
12413
|
setLoading(false);
|
|
12235
12414
|
}
|
|
12236
12415
|
}
|
|
12237
|
-
}, [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])]);
|
|
12238
12417
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
12239
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12418
|
+
if (!_optionalChain([response, 'optionalAccess', _348 => _348.nextPage])) return;
|
|
12240
12419
|
setLoading(true);
|
|
12241
12420
|
try {
|
|
12242
12421
|
const nextResponse = await response.nextPage();
|
|
@@ -12257,7 +12436,7 @@ function useJsonApiGet(params) {
|
|
|
12257
12436
|
}
|
|
12258
12437
|
}, [response]);
|
|
12259
12438
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
12260
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12439
|
+
if (!_optionalChain([response, 'optionalAccess', _349 => _349.prevPage])) return;
|
|
12261
12440
|
setLoading(true);
|
|
12262
12441
|
try {
|
|
12263
12442
|
const prevResponse = await response.prevPage();
|
|
@@ -12283,15 +12462,15 @@ function useJsonApiGet(params) {
|
|
|
12283
12462
|
return () => {
|
|
12284
12463
|
isMounted.current = false;
|
|
12285
12464
|
};
|
|
12286
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
12465
|
+
}, [fetchData, ..._optionalChain([params, 'access', _350 => _350.options, 'optionalAccess', _351 => _351.deps]) || []]);
|
|
12287
12466
|
return {
|
|
12288
12467
|
data,
|
|
12289
12468
|
loading,
|
|
12290
12469
|
error,
|
|
12291
12470
|
response,
|
|
12292
12471
|
refetch: fetchData,
|
|
12293
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
12294
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
12472
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _352 => _352.next]),
|
|
12473
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _353 => _353.prev]),
|
|
12295
12474
|
fetchNextPage,
|
|
12296
12475
|
fetchPreviousPage
|
|
12297
12476
|
};
|
|
@@ -12369,17 +12548,17 @@ function useJsonApiMutation(config) {
|
|
|
12369
12548
|
if (apiResponse.ok) {
|
|
12370
12549
|
const resultData = apiResponse.data;
|
|
12371
12550
|
setData(resultData);
|
|
12372
|
-
_optionalChain([config, 'access',
|
|
12551
|
+
_optionalChain([config, 'access', _354 => _354.onSuccess, 'optionalCall', _355 => _355(resultData)]);
|
|
12373
12552
|
return resultData;
|
|
12374
12553
|
} else {
|
|
12375
12554
|
setError(apiResponse.error);
|
|
12376
|
-
_optionalChain([config, 'access',
|
|
12555
|
+
_optionalChain([config, 'access', _356 => _356.onError, 'optionalCall', _357 => _357(apiResponse.error)]);
|
|
12377
12556
|
return null;
|
|
12378
12557
|
}
|
|
12379
12558
|
} catch (err) {
|
|
12380
12559
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
12381
12560
|
setError(errorMessage);
|
|
12382
|
-
_optionalChain([config, 'access',
|
|
12561
|
+
_optionalChain([config, 'access', _358 => _358.onError, 'optionalCall', _359 => _359(errorMessage)]);
|
|
12383
12562
|
return null;
|
|
12384
12563
|
} finally {
|
|
12385
12564
|
setLoading(false);
|
|
@@ -12452,7 +12631,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12452
12631
|
{
|
|
12453
12632
|
href: hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12454
12633
|
page: "/administration",
|
|
12455
|
-
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)]),
|
|
12456
12635
|
childPage: company.id
|
|
12457
12636
|
}) : generateUrl({ page: _chunkNAST4OSMjs.Modules.Company, id: company.id }),
|
|
12458
12637
|
children: row.getValue("name")
|
|
@@ -12468,7 +12647,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12468
12647
|
})
|
|
12469
12648
|
};
|
|
12470
12649
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12471
|
-
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);
|
|
12472
12651
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
12473
12652
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12474
12653
|
}, "useCompanyTableStructure");
|
|
@@ -12480,7 +12659,7 @@ var GRACE_DAYS = 3;
|
|
|
12480
12659
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12481
12660
|
if (!currentUser || !_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) return false;
|
|
12482
12661
|
const adminRoleId = _chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator;
|
|
12483
|
-
return !!_optionalChain([currentUser, 'access',
|
|
12662
|
+
return !!_optionalChain([currentUser, 'access', _366 => _366.roles, 'optionalAccess', _367 => _367.some, 'call', _368 => _368((role) => role.id === adminRoleId)]);
|
|
12484
12663
|
}, "isAdministrator");
|
|
12485
12664
|
function useSubscriptionStatus() {
|
|
12486
12665
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -12597,7 +12776,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12597
12776
|
})
|
|
12598
12777
|
};
|
|
12599
12778
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12600
|
-
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);
|
|
12601
12780
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12602
12781
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12603
12782
|
}, "useRoleTableStructure");
|
|
@@ -12740,7 +12919,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12740
12919
|
})
|
|
12741
12920
|
};
|
|
12742
12921
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12743
|
-
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);
|
|
12744
12923
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12745
12924
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12746
12925
|
}, "useUserTableStructure");
|
|
@@ -12841,11 +13020,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12841
13020
|
return params.fields.map((field) => {
|
|
12842
13021
|
const localHandler = fieldColumnMap[field];
|
|
12843
13022
|
if (localHandler) return localHandler();
|
|
12844
|
-
const customHandler = _optionalChain([params, 'access',
|
|
13023
|
+
const customHandler = _optionalChain([params, 'access', _373 => _373.context, 'optionalAccess', _374 => _374.customCells, 'optionalAccess', _375 => _375[field]]);
|
|
12845
13024
|
if (customHandler) return customHandler({ t });
|
|
12846
13025
|
return void 0;
|
|
12847
13026
|
}).filter((col) => col !== void 0);
|
|
12848
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
13027
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _376 => _376.context, 'optionalAccess', _377 => _377.customCells])]);
|
|
12849
13028
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12850
13029
|
}, "useContentTableStructure");
|
|
12851
13030
|
|
|
@@ -13171,7 +13350,7 @@ function rbacReducer(state, action) {
|
|
|
13171
13350
|
}
|
|
13172
13351
|
case "SET_FEATURE_IS_CORE": {
|
|
13173
13352
|
const newMap = new Map(state.featureIsCore);
|
|
13174
|
-
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)]);
|
|
13175
13354
|
if (originalFeature && originalFeature.isCore === action.isCore) {
|
|
13176
13355
|
newMap.delete(action.featureId);
|
|
13177
13356
|
} else {
|
|
@@ -13182,7 +13361,7 @@ function rbacReducer(state, action) {
|
|
|
13182
13361
|
case "SET_MODULE_DEFAULT_PERMISSION": {
|
|
13183
13362
|
const newMap = new Map(state.modulePermissions);
|
|
13184
13363
|
const originalModule = state.original ? findModule(state.original.features, action.moduleId) : void 0;
|
|
13185
|
-
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess',
|
|
13364
|
+
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _382 => _382.permissions]) }));
|
|
13186
13365
|
const updated = { ...current, [action.actionType]: action.value };
|
|
13187
13366
|
newMap.set(action.moduleId, updated);
|
|
13188
13367
|
return { ...state, modulePermissions: newMap };
|
|
@@ -13273,8 +13452,8 @@ function useRbacState() {
|
|
|
13273
13452
|
const getFeatureIsCore = _react.useCallback.call(void 0,
|
|
13274
13453
|
(featureId) => {
|
|
13275
13454
|
if (state.featureIsCore.has(featureId)) return state.featureIsCore.get(featureId);
|
|
13276
|
-
const feature = _optionalChain([state, 'access',
|
|
13277
|
-
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));
|
|
13278
13457
|
},
|
|
13279
13458
|
[state.featureIsCore, state.original]
|
|
13280
13459
|
);
|
|
@@ -13284,7 +13463,7 @@ function useRbacState() {
|
|
|
13284
13463
|
if (edited && edited[actionType] !== void 0) return edited[actionType];
|
|
13285
13464
|
if (!state.original) return void 0;
|
|
13286
13465
|
const mod = findModule(state.original.features, moduleId);
|
|
13287
|
-
return _optionalChain([mod, 'optionalAccess',
|
|
13466
|
+
return _optionalChain([mod, 'optionalAccess', _388 => _388.permissions, 'access', _389 => _389[actionType]]);
|
|
13288
13467
|
},
|
|
13289
13468
|
[state.modulePermissions, state.original]
|
|
13290
13469
|
);
|
|
@@ -13340,7 +13519,7 @@ function useRbacState() {
|
|
|
13340
13519
|
}, [state]);
|
|
13341
13520
|
const getModuleRelationshipPaths = _react.useCallback.call(void 0,
|
|
13342
13521
|
(moduleId) => {
|
|
13343
|
-
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)]), () => ( []));
|
|
13344
13523
|
},
|
|
13345
13524
|
[state.original]
|
|
13346
13525
|
);
|
|
@@ -13551,7 +13730,7 @@ function ContentTableSearch({ data }) {
|
|
|
13551
13730
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13552
13731
|
if (!isExpanded) {
|
|
13553
13732
|
setIsFocused(true);
|
|
13554
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
13733
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.focus, 'call', _396 => _396()]), 50);
|
|
13555
13734
|
}
|
|
13556
13735
|
}, "handleSearchIconClick");
|
|
13557
13736
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -13617,7 +13796,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13617
13796
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
13618
13797
|
);
|
|
13619
13798
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
13620
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13799
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _397 => _397.data]), () => ( EMPTY_ARRAY)),
|
|
13621
13800
|
fields,
|
|
13622
13801
|
checkedIds,
|
|
13623
13802
|
toggleId,
|
|
@@ -13658,16 +13837,24 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13658
13837
|
className: "bg-card rounded-t-lg text-primary p-4 text-left font-bold",
|
|
13659
13838
|
colSpan: tableColumns.length,
|
|
13660
13839
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
13661
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children:
|
|
13840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13662
13841
|
"div",
|
|
13663
13842
|
{
|
|
13664
|
-
className:
|
|
13843
|
+
className: _chunkNAST4OSMjs.cn.call(void 0,
|
|
13844
|
+
"text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
|
|
13845
|
+
fullWidth ? `text-lg` : `text-sm`
|
|
13846
|
+
),
|
|
13665
13847
|
children: [
|
|
13666
|
-
props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13848
|
+
props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13849
|
+
props.tableGeneratorType.icon,
|
|
13850
|
+
{
|
|
13851
|
+
className: _chunkNAST4OSMjs.cn.call(void 0, `text-primary`, fullWidth ? `h-6 w-6` : `h-4 w-4`)
|
|
13852
|
+
}
|
|
13853
|
+
),
|
|
13667
13854
|
props.title
|
|
13668
13855
|
]
|
|
13669
13856
|
}
|
|
13670
|
-
)
|
|
13857
|
+
) }),
|
|
13671
13858
|
(props.functions || props.filters || allowSearch) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13672
13859
|
props.functions,
|
|
13673
13860
|
props.filters,
|
|
@@ -13678,12 +13865,12 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13678
13865
|
) }),
|
|
13679
13866
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
13680
13867
|
const meta = header.column.columnDef.meta;
|
|
13681
|
-
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);
|
|
13682
13869
|
}) }, headerGroup.id))
|
|
13683
13870
|
] }),
|
|
13684
|
-
/* @__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) => {
|
|
13685
13872
|
const meta = cell.column.columnDef.meta;
|
|
13686
|
-
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);
|
|
13687
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." }) }) }),
|
|
13688
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: [
|
|
13689
13876
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13693,7 +13880,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13693
13880
|
size: "sm",
|
|
13694
13881
|
onClick: (e) => {
|
|
13695
13882
|
e.preventDefault();
|
|
13696
|
-
_optionalChain([data, 'access',
|
|
13883
|
+
_optionalChain([data, 'access', _402 => _402.previous, 'optionalCall', _403 => _403(true)]);
|
|
13697
13884
|
},
|
|
13698
13885
|
disabled: !data.previous,
|
|
13699
13886
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -13707,7 +13894,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13707
13894
|
size: "sm",
|
|
13708
13895
|
onClick: (e) => {
|
|
13709
13896
|
e.preventDefault();
|
|
13710
|
-
_optionalChain([data, 'access',
|
|
13897
|
+
_optionalChain([data, 'access', _404 => _404.next, 'optionalCall', _405 => _405(true)]);
|
|
13711
13898
|
},
|
|
13712
13899
|
disabled: !data.next,
|
|
13713
13900
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -14268,7 +14455,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14268
14455
|
newDigits[index] = digit;
|
|
14269
14456
|
setDigits(newDigits);
|
|
14270
14457
|
if (digit && index < 5) {
|
|
14271
|
-
_optionalChain([inputRefs, 'access',
|
|
14458
|
+
_optionalChain([inputRefs, 'access', _406 => _406.current, 'access', _407 => _407[index + 1], 'optionalAccess', _408 => _408.focus, 'call', _409 => _409()]);
|
|
14272
14459
|
}
|
|
14273
14460
|
const code = newDigits.join("");
|
|
14274
14461
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -14277,7 +14464,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14277
14464
|
}, "handleChange");
|
|
14278
14465
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
14279
14466
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
14280
|
-
_optionalChain([inputRefs, 'access',
|
|
14467
|
+
_optionalChain([inputRefs, 'access', _410 => _410.current, 'access', _411 => _411[index - 1], 'optionalAccess', _412 => _412.focus, 'call', _413 => _413()]);
|
|
14281
14468
|
}
|
|
14282
14469
|
}, "handleKeyDown");
|
|
14283
14470
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -14286,7 +14473,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14286
14473
|
if (pastedData.length === 6) {
|
|
14287
14474
|
const newDigits = pastedData.split("");
|
|
14288
14475
|
setDigits(newDigits);
|
|
14289
|
-
_optionalChain([inputRefs, 'access',
|
|
14476
|
+
_optionalChain([inputRefs, 'access', _414 => _414.current, 'access', _415 => _415[5], 'optionalAccess', _416 => _416.focus, 'call', _417 => _417()]);
|
|
14290
14477
|
onComplete(pastedData);
|
|
14291
14478
|
}
|
|
14292
14479
|
}, "handlePaste");
|
|
@@ -14497,8 +14684,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
14497
14684
|
try {
|
|
14498
14685
|
const registrationData = await _chunkNAST4OSMjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
14499
14686
|
id: _uuid.v4.call(void 0, ),
|
|
14500
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14501
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
14687
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _418 => _418.email]), () => ( "")),
|
|
14688
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _419 => _419.name])
|
|
14502
14689
|
});
|
|
14503
14690
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
14504
14691
|
await _chunkNAST4OSMjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -14649,7 +14836,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14649
14836
|
const setup = await _chunkNAST4OSMjs.TwoFactorService.setupTotp({
|
|
14650
14837
|
id: _uuid.v4.call(void 0, ),
|
|
14651
14838
|
name: name.trim(),
|
|
14652
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14839
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _420 => _420.email]), () => ( ""))
|
|
14653
14840
|
});
|
|
14654
14841
|
setQrCodeUri(setup.qrCodeUri);
|
|
14655
14842
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -14783,7 +14970,7 @@ function TwoFactorSettings() {
|
|
|
14783
14970
|
if (isLoading) {
|
|
14784
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") }) }) });
|
|
14785
14972
|
}
|
|
14786
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14973
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _421 => _421.isEnabled]), () => ( false));
|
|
14787
14974
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
14788
14975
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
14789
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" }),
|
|
@@ -14821,7 +15008,7 @@ function TwoFactorSettings() {
|
|
|
14821
15008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
14822
15009
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
14823
15010
|
] }),
|
|
14824
|
-
/* @__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 })
|
|
14825
15012
|
] }) }),
|
|
14826
15013
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14827
15014
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -14999,9 +15186,9 @@ function AcceptInvitation() {
|
|
|
14999
15186
|
});
|
|
15000
15187
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15001
15188
|
try {
|
|
15002
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15189
|
+
if (!_optionalChain([params, 'optionalAccess', _423 => _423.code])) return;
|
|
15003
15190
|
const payload = {
|
|
15004
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15191
|
+
code: _optionalChain([params, 'optionalAccess', _424 => _424.code]),
|
|
15005
15192
|
password: values.password
|
|
15006
15193
|
};
|
|
15007
15194
|
await _chunkNAST4OSMjs.AuthService.acceptInvitation(payload);
|
|
@@ -15351,7 +15538,7 @@ function Logout({ storageKeys }) {
|
|
|
15351
15538
|
const generateUrl = usePageUrlGenerator();
|
|
15352
15539
|
_react.useEffect.call(void 0, () => {
|
|
15353
15540
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15354
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
15541
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _425 => _425.length])) {
|
|
15355
15542
|
clearClientStorage(storageKeys);
|
|
15356
15543
|
}
|
|
15357
15544
|
await _chunkNAST4OSMjs.AuthService.logout();
|
|
@@ -15374,14 +15561,14 @@ function RefreshUser() {
|
|
|
15374
15561
|
setUser(fullUser);
|
|
15375
15562
|
const token = {
|
|
15376
15563
|
userId: fullUser.id,
|
|
15377
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
15564
|
+
companyId: _optionalChain([fullUser, 'access', _426 => _426.company, 'optionalAccess', _427 => _427.id]),
|
|
15378
15565
|
roles: fullUser.roles.map((role) => role.id),
|
|
15379
|
-
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)]), () => ( [])),
|
|
15380
15567
|
modules: fullUser.modules.map((module) => {
|
|
15381
15568
|
return { id: module.id, permissions: module.permissions };
|
|
15382
15569
|
})
|
|
15383
15570
|
};
|
|
15384
|
-
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
15571
|
+
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _432 => _432.updateToken, 'call', _433 => _433(token)]);
|
|
15385
15572
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15386
15573
|
}
|
|
15387
15574
|
}, "loadFullUser");
|
|
@@ -15445,9 +15632,9 @@ function ResetPassword() {
|
|
|
15445
15632
|
});
|
|
15446
15633
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15447
15634
|
try {
|
|
15448
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15635
|
+
if (!_optionalChain([params, 'optionalAccess', _434 => _434.code])) return;
|
|
15449
15636
|
const payload = {
|
|
15450
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15637
|
+
code: _optionalChain([params, 'optionalAccess', _435 => _435.code]),
|
|
15451
15638
|
password: values.password
|
|
15452
15639
|
};
|
|
15453
15640
|
await _chunkNAST4OSMjs.AuthService.resetPassword(payload);
|
|
@@ -15804,14 +15991,14 @@ function NotificationsList({ archived }) {
|
|
|
15804
15991
|
] }),
|
|
15805
15992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
15806
15993
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
15807
|
-
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) => {
|
|
15808
15995
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
15809
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: [
|
|
15810
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" }),
|
|
15811
15998
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
15812
15999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
15813
16000
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
15814
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
16001
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _439 => _439.actor, 'optionalAccess', _440 => _440.name]), () => ( "")),
|
|
15815
16002
|
title: notificationData.title
|
|
15816
16003
|
}) }),
|
|
15817
16004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -16161,7 +16348,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
16161
16348
|
invalidEmail: "Please enter a valid email address"
|
|
16162
16349
|
};
|
|
16163
16350
|
async function copyToClipboard(text) {
|
|
16164
|
-
if (_optionalChain([navigator, 'access',
|
|
16351
|
+
if (_optionalChain([navigator, 'access', _441 => _441.clipboard, 'optionalAccess', _442 => _442.writeText])) {
|
|
16165
16352
|
try {
|
|
16166
16353
|
await navigator.clipboard.writeText(text);
|
|
16167
16354
|
return true;
|
|
@@ -16203,7 +16390,7 @@ function ReferralWidget({
|
|
|
16203
16390
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16204
16391
|
const config = _chunkBQSMP4NUjs.getReferralConfig.call(void 0, );
|
|
16205
16392
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16206
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
16393
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _443 => _443.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16207
16394
|
if (!_chunkBQSMP4NUjs.isReferralEnabled.call(void 0, )) {
|
|
16208
16395
|
return null;
|
|
16209
16396
|
}
|
|
@@ -16213,7 +16400,7 @@ function ReferralWidget({
|
|
|
16213
16400
|
if (success) {
|
|
16214
16401
|
setCopied(true);
|
|
16215
16402
|
_chunkNAST4OSMjs.showToast.call(void 0, t.copiedMessage);
|
|
16216
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
16403
|
+
_optionalChain([onLinkCopied, 'optionalCall', _444 => _444()]);
|
|
16217
16404
|
setTimeout(() => setCopied(false), 2e3);
|
|
16218
16405
|
} else {
|
|
16219
16406
|
_chunkNAST4OSMjs.showError.call(void 0, t.copyError);
|
|
@@ -16227,12 +16414,12 @@ function ReferralWidget({
|
|
|
16227
16414
|
try {
|
|
16228
16415
|
await sendInvite(email);
|
|
16229
16416
|
_chunkNAST4OSMjs.showToast.call(void 0, t.inviteSent);
|
|
16230
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
16417
|
+
_optionalChain([onInviteSent, 'optionalCall', _445 => _445(email)]);
|
|
16231
16418
|
setEmail("");
|
|
16232
16419
|
} catch (err) {
|
|
16233
16420
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16234
16421
|
_chunkNAST4OSMjs.showError.call(void 0, error2.message);
|
|
16235
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
16422
|
+
_optionalChain([onInviteError, 'optionalCall', _446 => _446(error2)]);
|
|
16236
16423
|
}
|
|
16237
16424
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
16238
16425
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -16985,7 +17172,7 @@ function OAuthClientList({
|
|
|
16985
17172
|
OAuthClientCard,
|
|
16986
17173
|
{
|
|
16987
17174
|
client,
|
|
16988
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
17175
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _447 => _447(client)]),
|
|
16989
17176
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
16990
17177
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
16991
17178
|
},
|
|
@@ -17001,11 +17188,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
17001
17188
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
17002
17189
|
const isEditMode = !!client;
|
|
17003
17190
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
17004
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
17005
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
17006
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
17007
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
17008
|
-
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))
|
|
17009
17196
|
});
|
|
17010
17197
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
17011
17198
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -17233,7 +17420,7 @@ function OAuthClientDetail({
|
|
|
17233
17420
|
] }),
|
|
17234
17421
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17235
17422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17236
|
-
/* @__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)) })
|
|
17237
17424
|
] }),
|
|
17238
17425
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17239
17426
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -17377,7 +17564,7 @@ function OAuthConsentScreen({
|
|
|
17377
17564
|
if (error || !clientInfo) {
|
|
17378
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: [
|
|
17379
17566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
17380
|
-
/* @__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." })
|
|
17381
17568
|
] }) }) }) });
|
|
17382
17569
|
}
|
|
17383
17570
|
const { client, scopes } = clientInfo;
|
|
@@ -17593,7 +17780,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17593
17780
|
questionnaire: values.questionnaire
|
|
17594
17781
|
});
|
|
17595
17782
|
setIsSuccess(true);
|
|
17596
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
17783
|
+
_optionalChain([onSuccess, 'optionalCall', _457 => _457()]);
|
|
17597
17784
|
} catch (e) {
|
|
17598
17785
|
errorToast({ error: e });
|
|
17599
17786
|
} finally {
|
|
@@ -18216,7 +18403,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18216
18403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18217
18404
|
_chunkBQSMP4NUjs.ACTION_TYPES.map((actionType) => {
|
|
18218
18405
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18219
|
-
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(
|
|
18220
18407
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
18221
18408
|
)]);
|
|
18222
18409
|
const originalRoleValue = originalMapping ? _nullishCoalesce(originalMapping.permissions[actionType], () => ( null)) : void 0;
|
|
@@ -18830,5 +19017,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
18830
19017
|
|
|
18831
19018
|
|
|
18832
19019
|
|
|
18833
|
-
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.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.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;
|
|
18834
|
-
|
|
19020
|
+
|
|
19021
|
+
|
|
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
|