@carlonicora/nextjs-jsonapi 1.58.5 → 1.60.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-I3YFLFUX.js → BlockNoteEditor-56VMCPSG.js} +6 -6
- package/dist/{BlockNoteEditor-I3YFLFUX.js.map → BlockNoteEditor-56VMCPSG.js.map} +1 -1
- package/dist/{BlockNoteEditor-X2JDR4RJ.mjs → BlockNoteEditor-H7QM6EVJ.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-4VBDFVKU.mjs → chunk-67522EQN.mjs} +2177 -2064
- package/dist/chunk-67522EQN.mjs.map +1 -0
- package/dist/{chunk-AWGHI7AT.js → chunk-JRKIV2DF.js} +245 -132
- package/dist/chunk-JRKIV2DF.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +29 -2
- package/dist/components/index.d.ts +29 -2
- package/dist/components/index.js +6 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -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/containers/RoundPageContainer.tsx +19 -7
- package/src/components/containers/RoundPageContainerTitle.tsx +1 -0
- package/src/components/forms/CommonEditorDiscardDialog.tsx +40 -0
- package/src/components/forms/__tests__/CommonEditorDiscardDialog.test.tsx +43 -0
- package/src/components/forms/__tests__/useEditorDialog.test.ts +145 -0
- package/src/components/forms/index.ts +2 -0
- package/src/components/forms/useEditorDialog.ts +93 -0
- package/src/components/tables/ContentListTable.tsx +20 -2
- package/dist/chunk-4VBDFVKU.mjs.map +0 -1
- package/dist/chunk-AWGHI7AT.js.map +0 -1
- /package/dist/{BlockNoteEditor-X2JDR4RJ.mjs.map → BlockNoteEditor-H7QM6EVJ.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,66 @@ 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
|
+
|
|
7795
7873
|
// src/components/forms/DatePickerPopover.tsx
|
|
7796
7874
|
var _datefns = require('date-fns');
|
|
7797
7875
|
|
|
@@ -7968,7 +8046,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7968
8046
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
7969
8047
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
7970
8048
|
_react.useEffect.call(void 0, () => {
|
|
7971
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
8049
|
+
if (_optionalChain([date, 'optionalAccess', _211 => _211.from]) && _optionalChain([date, 'optionalAccess', _212 => _212.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _213 => _213.from, 'optionalAccess', _214 => _214.getTime, 'call', _215 => _215()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _216 => _216.to, 'optionalAccess', _217 => _217.getTime, 'call', _218 => _218()]) !== date.to.getTime())) {
|
|
7972
8050
|
onDateChange(date);
|
|
7973
8051
|
setPrevRange(date);
|
|
7974
8052
|
setOpen(false);
|
|
@@ -7979,7 +8057,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7979
8057
|
setDate(void 0);
|
|
7980
8058
|
return;
|
|
7981
8059
|
}
|
|
7982
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
8060
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _219 => _219.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
7983
8061
|
setDate({ from: range.from, to: void 0 });
|
|
7984
8062
|
} else {
|
|
7985
8063
|
setDate(range);
|
|
@@ -7994,7 +8072,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
7994
8072
|
className: _chunkNAST4OSMjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
7995
8073
|
children: [
|
|
7996
8074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
7997
|
-
_optionalChain([date, 'optionalAccess',
|
|
8075
|
+
_optionalChain([date, 'optionalAccess', _220 => _220.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
7998
8076
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
7999
8077
|
" - ",
|
|
8000
8078
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
@@ -8007,7 +8085,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
8007
8085
|
Calendar,
|
|
8008
8086
|
{
|
|
8009
8087
|
mode: "range",
|
|
8010
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
8088
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _221 => _221.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
8011
8089
|
selected: date,
|
|
8012
8090
|
onSelect: handleSelect,
|
|
8013
8091
|
numberOfMonths: 2
|
|
@@ -8094,7 +8172,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8094
8172
|
movePrev();
|
|
8095
8173
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
8096
8174
|
if (activeIndex === -1) {
|
|
8097
|
-
_optionalChain([dropzoneState, 'access',
|
|
8175
|
+
_optionalChain([dropzoneState, 'access', _222 => _222.inputRef, 'access', _223 => _223.current, 'optionalAccess', _224 => _224.click, 'call', _225 => _225()]);
|
|
8098
8176
|
}
|
|
8099
8177
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
8100
8178
|
if (activeIndex !== -1) {
|
|
@@ -8132,13 +8210,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
8132
8210
|
onValueChange(newValues);
|
|
8133
8211
|
if (rejectedFiles.length > 0) {
|
|
8134
8212
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
8135
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
8213
|
+
if (_optionalChain([rejectedFiles, 'access', _226 => _226[i], 'access', _227 => _227.errors, 'access', _228 => _228[0], 'optionalAccess', _229 => _229.code]) === "file-too-large") {
|
|
8136
8214
|
_chunkNAST4OSMjs.showError.call(void 0, t("common.errors.file"), {
|
|
8137
8215
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
8138
8216
|
});
|
|
8139
8217
|
break;
|
|
8140
8218
|
}
|
|
8141
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
8219
|
+
if (_optionalChain([rejectedFiles, 'access', _230 => _230[i], 'access', _231 => _231.errors, 'access', _232 => _232[0], 'optionalAccess', _233 => _233.message])) {
|
|
8142
8220
|
_chunkNAST4OSMjs.showError.call(void 0, t(`common.errors.file`), {
|
|
8143
8221
|
description: rejectedFiles[i].errors[0].message
|
|
8144
8222
|
});
|
|
@@ -8368,7 +8446,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
8368
8446
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
8369
8447
|
|
|
8370
8448
|
|
|
8371
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
8449
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-56VMCPSG.js"))), {
|
|
8372
8450
|
ssr: false
|
|
8373
8451
|
});
|
|
8374
8452
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -8405,7 +8483,7 @@ function FormBlockNote({
|
|
|
8405
8483
|
initialContent: field.value,
|
|
8406
8484
|
onChange: (content, isEmpty) => {
|
|
8407
8485
|
field.onChange(content);
|
|
8408
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
8486
|
+
_optionalChain([onEmptyChange, 'optionalCall', _234 => _234(isEmpty)]);
|
|
8409
8487
|
},
|
|
8410
8488
|
placeholder,
|
|
8411
8489
|
bordered: true
|
|
@@ -8917,11 +8995,11 @@ function FormPlaceAutocomplete({
|
|
|
8917
8995
|
const data = await response.json();
|
|
8918
8996
|
if (data.suggestions) {
|
|
8919
8997
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
8920
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
8921
|
-
description: _optionalChain([suggestion, 'access',
|
|
8998
|
+
place_id: _optionalChain([suggestion, 'access', _235 => _235.placePrediction, 'optionalAccess', _236 => _236.placeId]) || "",
|
|
8999
|
+
description: _optionalChain([suggestion, 'access', _237 => _237.placePrediction, 'optionalAccess', _238 => _238.text, 'optionalAccess', _239 => _239.text]) || "",
|
|
8922
9000
|
structured_formatting: {
|
|
8923
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
8924
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
9001
|
+
main_text: _optionalChain([suggestion, 'access', _240 => _240.placePrediction, 'optionalAccess', _241 => _241.structuredFormat, 'optionalAccess', _242 => _242.mainText, 'optionalAccess', _243 => _243.text]) || "",
|
|
9002
|
+
secondary_text: _optionalChain([suggestion, 'access', _244 => _244.placePrediction, 'optionalAccess', _245 => _245.structuredFormat, 'optionalAccess', _246 => _246.secondaryText, 'optionalAccess', _247 => _247.text]) || ""
|
|
8925
9003
|
}
|
|
8926
9004
|
}));
|
|
8927
9005
|
setSuggestions(formattedSuggestions);
|
|
@@ -9068,8 +9146,8 @@ function FormPlaceAutocomplete({
|
|
|
9068
9146
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
9069
9147
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
9070
9148
|
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',
|
|
9149
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _248 => _248.structured_formatting, 'optionalAccess', _249 => _249.main_text]) }),
|
|
9150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _250 => _250.structured_formatting, 'optionalAccess', _251 => _251.secondary_text]) })
|
|
9073
9151
|
]
|
|
9074
9152
|
},
|
|
9075
9153
|
suggestion.place_id || index
|
|
@@ -9113,7 +9191,7 @@ function FormSelect({
|
|
|
9113
9191
|
disabled,
|
|
9114
9192
|
"data-testid": testId,
|
|
9115
9193
|
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',
|
|
9194
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _252 => _252.find, 'call', _253 => _253((v) => v.id === field.value), 'optionalAccess', _254 => _254.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
9117
9195
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
9118
9196
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
9119
9197
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -9300,7 +9378,7 @@ function UserMultiSelect({
|
|
|
9300
9378
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
9301
9379
|
return _chunkNAST4OSMjs.UserService.findAllUsers(params);
|
|
9302
9380
|
}, "retriever"),
|
|
9303
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
9381
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _255 => _255.id]) },
|
|
9304
9382
|
module: _chunkNAST4OSMjs.Modules.User
|
|
9305
9383
|
});
|
|
9306
9384
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9327,7 +9405,7 @@ function UserMultiSelect({
|
|
|
9327
9405
|
_react.useEffect.call(void 0, () => {
|
|
9328
9406
|
if (data.data && data.data.length > 0) {
|
|
9329
9407
|
const users = data.data;
|
|
9330
|
-
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess',
|
|
9408
|
+
const filteredUsers = users.filter((user) => user.id !== _optionalChain([currentUser, 'optionalAccess', _256 => _256.id]));
|
|
9331
9409
|
const options = filteredUsers.map((user) => ({
|
|
9332
9410
|
label: user.name,
|
|
9333
9411
|
value: user.id,
|
|
@@ -9356,14 +9434,14 @@ function UserMultiSelect({
|
|
|
9356
9434
|
return {
|
|
9357
9435
|
id: option.value,
|
|
9358
9436
|
name: option.label,
|
|
9359
|
-
avatar: _optionalChain([userOption, 'optionalAccess',
|
|
9437
|
+
avatar: _optionalChain([userOption, 'optionalAccess', _257 => _257.avatar])
|
|
9360
9438
|
};
|
|
9361
9439
|
});
|
|
9362
9440
|
form.setValue(id, formValues, { shouldDirty: true, shouldTouch: true });
|
|
9363
9441
|
if (onChange) {
|
|
9364
9442
|
const fullUsers = options.map((option) => {
|
|
9365
9443
|
const userOption = userOptions.find((opt) => opt.value === option.value);
|
|
9366
|
-
return _optionalChain([userOption, 'optionalAccess',
|
|
9444
|
+
return _optionalChain([userOption, 'optionalAccess', _258 => _258.userData]);
|
|
9367
9445
|
}).filter(Boolean);
|
|
9368
9446
|
onChange(fullUsers);
|
|
9369
9447
|
}
|
|
@@ -9529,7 +9607,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
9529
9607
|
}, "getInitials");
|
|
9530
9608
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
9531
9609
|
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',
|
|
9610
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _259 => _259.avatar]) }),
|
|
9533
9611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials2(user.name) })
|
|
9534
9612
|
] }) });
|
|
9535
9613
|
}, "getAvatar");
|
|
@@ -9627,10 +9705,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
9627
9705
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9628
9706
|
/* @__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
9707
|
/* @__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',
|
|
9708
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _260 => _260.value, 'optionalAccess', _261 => _261.avatar]) }),
|
|
9709
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _262 => _262.value, 'optionalAccess', _263 => _263.name]) ? _optionalChain([field, 'access', _264 => _264.value, 'optionalAccess', _265 => _265.name, 'access', _266 => _266.split, 'call', _267 => _267(" "), 'access', _268 => _268.map, 'call', _269 => _269((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
9632
9710
|
] }) }),
|
|
9633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
9711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _270 => _270.value, 'optionalAccess', _271 => _271.name]), () => ( "")) })
|
|
9634
9712
|
] }) : /* @__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
9713
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9636
9714
|
_lucidereact.CircleX,
|
|
@@ -9925,7 +10003,7 @@ function CompanyUsersList({ isDeleted }) {
|
|
|
9925
10003
|
const data = useDataListRetriever({
|
|
9926
10004
|
ready: !!company,
|
|
9927
10005
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkNAST4OSMjs.UserService.findAllUsers(params), "retriever"),
|
|
9928
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
10006
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _272 => _272.id]), isDeleted },
|
|
9929
10007
|
module: _chunkNAST4OSMjs.Modules.User
|
|
9930
10008
|
});
|
|
9931
10009
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10031,11 +10109,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
10031
10109
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
10032
10110
|
onClick: (_e) => {
|
|
10033
10111
|
setSelectedUser(user);
|
|
10034
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10112
|
+
_optionalChain([setLevelOpen, 'optionalCall', _273 => _273(true)]);
|
|
10035
10113
|
},
|
|
10036
10114
|
onSelect: (_e) => {
|
|
10037
10115
|
setSelectedUser(user);
|
|
10038
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
10116
|
+
_optionalChain([setLevelOpen, 'optionalCall', _274 => _274(true)]);
|
|
10039
10117
|
},
|
|
10040
10118
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
10041
10119
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -10320,8 +10398,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10320
10398
|
const { setUser } = useCurrentUserContext();
|
|
10321
10399
|
const defaultValues = _react.useMemo.call(void 0, () => {
|
|
10322
10400
|
return {
|
|
10323
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10324
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10401
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _275 => _275.configurations, 'optionalAccess', _276 => _276.isManagedKnowledge]), () => ( false)),
|
|
10402
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _277 => _277.configurations, 'optionalAccess', _278 => _278.allowPublicBot]), () => ( false))
|
|
10325
10403
|
};
|
|
10326
10404
|
}, [company.configurations]);
|
|
10327
10405
|
const close = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -10340,8 +10418,8 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
10340
10418
|
_react.useEffect.call(void 0, () => {
|
|
10341
10419
|
if (open) {
|
|
10342
10420
|
form.reset({
|
|
10343
|
-
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10344
|
-
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access',
|
|
10421
|
+
isManagedKnowledge: _nullishCoalesce(_optionalChain([company, 'access', _279 => _279.configurations, 'optionalAccess', _280 => _280.isManagedKnowledge]), () => ( false)),
|
|
10422
|
+
allowPublicBot: _nullishCoalesce(_optionalChain([company, 'access', _281 => _281.configurations, 'optionalAccess', _282 => _282.allowPublicBot]), () => ( false))
|
|
10345
10423
|
});
|
|
10346
10424
|
}
|
|
10347
10425
|
}, [company, open]);
|
|
@@ -10568,11 +10646,11 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10568
10646
|
const form = _reacthookform.useForm.call(void 0, {
|
|
10569
10647
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
10570
10648
|
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',
|
|
10649
|
+
id: _optionalChain([company, 'optionalAccess', _283 => _283.id]) || _uuid.v4.call(void 0, ),
|
|
10650
|
+
name: _optionalChain([company, 'optionalAccess', _284 => _284.name]) || "",
|
|
10651
|
+
featureIds: _optionalChain([company, 'optionalAccess', _285 => _285.features, 'access', _286 => _286.map, 'call', _287 => _287((feature) => feature.id)]) || [],
|
|
10652
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _288 => _288.modules, 'access', _289 => _289.map, 'call', _290 => _290((module) => module.id)]) || [],
|
|
10653
|
+
logo: _optionalChain([company, 'optionalAccess', _291 => _291.logo]) || ""
|
|
10576
10654
|
}
|
|
10577
10655
|
});
|
|
10578
10656
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
@@ -10589,7 +10667,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10589
10667
|
});
|
|
10590
10668
|
}
|
|
10591
10669
|
const payload = {
|
|
10592
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
10670
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _292 => _292.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
10593
10671
|
name: values.name,
|
|
10594
10672
|
logo: files && contentType ? values.logo : void 0,
|
|
10595
10673
|
featureIds: values.featureIds,
|
|
@@ -10624,7 +10702,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10624
10702
|
}
|
|
10625
10703
|
}
|
|
10626
10704
|
_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',
|
|
10705
|
+
if (open && features.length === 0 && (hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _293 => _293.env, 'access', _294 => _294.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _295 => _295.toLowerCase, 'call', _296 => _296()]) === "true"))
|
|
10628
10706
|
fetchFeatures();
|
|
10629
10707
|
}, [open, features]);
|
|
10630
10708
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10658,7 +10736,7 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10658
10736
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10659
10737
|
}
|
|
10660
10738
|
};
|
|
10661
|
-
const canAccessFeatures = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
10739
|
+
const canAccessFeatures = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _297 => _297.env, 'access', _298 => _298.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _299 => _299.toLowerCase, 'call', _300 => _300()]) === "true";
|
|
10662
10740
|
const isAdministrator2 = hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator);
|
|
10663
10741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10664
10742
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
@@ -10667,13 +10745,13 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10667
10745
|
{
|
|
10668
10746
|
className: `flex max-h-[70vh] w-full ${isAdministrator2 || canAccessFeatures ? `max-w-5xl` : `max-w-4xl`} flex-col overflow-y-auto`,
|
|
10669
10747
|
children: [
|
|
10670
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess',
|
|
10748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorHeader, { type: t(`entities.companies`, { count: 1 }), name: _optionalChain([company, 'optionalAccess', _301 => _301.name]) }),
|
|
10671
10749
|
/* @__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
10750
|
/* @__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',
|
|
10751
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `flex w-96 flex-col justify-start gap-y-4`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-neutral-300 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _302 => _302.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10674
10752
|
_image2.default,
|
|
10675
10753
|
{
|
|
10676
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
10754
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _303 => _303.logo]) || "",
|
|
10677
10755
|
alt: "Company Logo",
|
|
10678
10756
|
width: 200,
|
|
10679
10757
|
height: 200
|
|
@@ -10808,7 +10886,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
10808
10886
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10809
10887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10810
10888
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10811
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10889
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _304 => _304.actor, 'optionalAccess', _305 => _305.name]), () => ( "")),
|
|
10812
10890
|
title: data.title,
|
|
10813
10891
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10814
10892
|
}) }),
|
|
@@ -10837,7 +10915,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
10837
10915
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
10838
10916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
10839
10917
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
10840
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
10918
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _306 => _306.actor, 'optionalAccess', _307 => _307.name]), () => ( "")),
|
|
10841
10919
|
title: data.title,
|
|
10842
10920
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
10843
10921
|
}) }),
|
|
@@ -10894,7 +10972,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10894
10972
|
_react.useEffect.call(void 0, () => {
|
|
10895
10973
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10896
10974
|
if (_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) {
|
|
10897
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
10975
|
+
const isAdmin = _optionalChain([currentUser, 'access', _308 => _308.roles, 'optionalAccess', _309 => _309.some, 'call', _310 => _310((role) => role.id === _chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator)]);
|
|
10898
10976
|
if (isAdmin) {
|
|
10899
10977
|
setHasInitiallyLoaded(true);
|
|
10900
10978
|
return;
|
|
@@ -11096,7 +11174,7 @@ function OnboardingProvider({
|
|
|
11096
11174
|
let tourSteps = steps;
|
|
11097
11175
|
if (!tourSteps) {
|
|
11098
11176
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
11099
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
11177
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _311 => _311.steps]);
|
|
11100
11178
|
}
|
|
11101
11179
|
if (!tourSteps || tourSteps.length === 0) {
|
|
11102
11180
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -11164,10 +11242,10 @@ function OnboardingProvider({
|
|
|
11164
11242
|
when: {
|
|
11165
11243
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11166
11244
|
setCurrentStepIndex(index);
|
|
11167
|
-
_optionalChain([stepConfig, 'access',
|
|
11245
|
+
_optionalChain([stepConfig, 'access', _312 => _312.onShow, 'optionalCall', _313 => _313()]);
|
|
11168
11246
|
}, "show"),
|
|
11169
11247
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11170
|
-
_optionalChain([stepConfig, 'access',
|
|
11248
|
+
_optionalChain([stepConfig, 'access', _314 => _314.onHide, 'optionalCall', _315 => _315()]);
|
|
11171
11249
|
}, "hide")
|
|
11172
11250
|
}
|
|
11173
11251
|
});
|
|
@@ -11355,7 +11433,7 @@ function usePageTracker() {
|
|
|
11355
11433
|
if (typeof document !== "undefined") {
|
|
11356
11434
|
const titleParts = document.title.split("]");
|
|
11357
11435
|
if (titleParts[1]) {
|
|
11358
|
-
const cleanTitle = _optionalChain([titleParts, 'access',
|
|
11436
|
+
const cleanTitle = _optionalChain([titleParts, 'access', _316 => _316[1], 'access', _317 => _317.split, 'call', _318 => _318("|"), 'access', _319 => _319[0], 'optionalAccess', _320 => _320.trim, 'call', _321 => _321()]);
|
|
11359
11437
|
pageTitle = cleanTitle || foundModule.name;
|
|
11360
11438
|
}
|
|
11361
11439
|
}
|
|
@@ -11392,7 +11470,7 @@ function usePushNotifications() {
|
|
|
11392
11470
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
11393
11471
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
11394
11472
|
try {
|
|
11395
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
11473
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _322 => _322.id])}`;
|
|
11396
11474
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
11397
11475
|
const registration = await navigator.serviceWorker.register(`${_chunkBQSMP4NUjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
11398
11476
|
let permission = Notification.permission;
|
|
@@ -11446,7 +11524,7 @@ function useSocket({ token }) {
|
|
|
11446
11524
|
const socketRef = _react.useRef.call(void 0, null);
|
|
11447
11525
|
_react.useEffect.call(void 0, () => {
|
|
11448
11526
|
if (!token) return;
|
|
11449
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
11527
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _323 => _323.env, 'access', _324 => _324.NEXT_PUBLIC_API_URL, 'optionalAccess', _325 => _325.replace, 'call', _326 => _326(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
11450
11528
|
if (typeof window !== "undefined") {
|
|
11451
11529
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
11452
11530
|
const existingSocket = window[globalSocketKey];
|
|
@@ -11870,24 +11948,33 @@ _chunk7QVYU63Ejs.__name.call(void 0, RoundPageContainerTitle, "RoundPageContaine
|
|
|
11870
11948
|
|
|
11871
11949
|
|
|
11872
11950
|
|
|
11873
|
-
function RoundPageContainer({
|
|
11951
|
+
function RoundPageContainer({
|
|
11952
|
+
module,
|
|
11953
|
+
id,
|
|
11954
|
+
details,
|
|
11955
|
+
tabs,
|
|
11956
|
+
children,
|
|
11957
|
+
fullWidth,
|
|
11958
|
+
forceHeader
|
|
11959
|
+
}) {
|
|
11874
11960
|
const headerChildren = useHeaderChildren();
|
|
11875
11961
|
const [showDetails, setShowDetails] = _react.useState.call(void 0, false);
|
|
11876
11962
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
11877
11963
|
const section = searchParams.get("section");
|
|
11878
11964
|
const rewriteUrl = useUrlRewriter();
|
|
11879
|
-
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
11965
|
+
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _327 => _327.key, 'optionalAccess', _328 => _328.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _329 => _329[0], 'access', _330 => _330.key, 'optionalAccess', _331 => _331.name]), () => ( tabs[0].label))) : void 0;
|
|
11880
11966
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
11881
11967
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11882
11968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Header, { className: "bg-sidebar border-0", children: headerChildren }),
|
|
11883
11969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[calc(100vh-3rem)] w-full flex-col p-2 pt-0 pl-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-background flex h-full w-full rounded-lg border p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
11884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11970
|
+
(!fullWidth || forceHeader) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11885
11971
|
RoundPageContainerTitle,
|
|
11886
11972
|
{
|
|
11887
11973
|
module,
|
|
11888
11974
|
details,
|
|
11889
11975
|
showDetails,
|
|
11890
|
-
setShowDetails
|
|
11976
|
+
setShowDetails,
|
|
11977
|
+
fullWidth
|
|
11891
11978
|
}
|
|
11892
11979
|
),
|
|
11893
11980
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full w-full overflow-hidden", children: [
|
|
@@ -11901,8 +11988,8 @@ function RoundPageContainer({ module, id, details, tabs, children, fullWidth })
|
|
|
11901
11988
|
if (module && id) rewriteUrl({ page: module, id, additionalParameters: { section: key } });
|
|
11902
11989
|
},
|
|
11903
11990
|
children: [
|
|
11904
|
-
/* @__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',
|
|
11905
|
-
/* @__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',
|
|
11991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { className: ``, children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _332 => _332.key, 'optionalAccess', _333 => _333.name]), () => ( tab.label)), className: `px-4`, children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
|
|
11992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full overflow-y-auto px-4", children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: _nullishCoalesce(_optionalChain([tab, 'access', _334 => _334.key, 'optionalAccess', _335 => _335.name]), () => ( tab.label)), className: `pb-20`, children: tab.content }, tab.label)) })
|
|
11906
11993
|
]
|
|
11907
11994
|
}
|
|
11908
11995
|
) : children }) }),
|
|
@@ -12136,10 +12223,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
12136
12223
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12137
12224
|
Checkbox,
|
|
12138
12225
|
{
|
|
12139
|
-
checked: _optionalChain([params, 'access',
|
|
12226
|
+
checked: _optionalChain([params, 'access', _336 => _336.checkedIds, 'optionalAccess', _337 => _337.includes, 'call', _338 => _338(row.getValue(params.name))]) || false,
|
|
12140
12227
|
onCheckedChange: (value) => {
|
|
12141
12228
|
row.toggleSelected(!!value);
|
|
12142
|
-
_optionalChain([params, 'access',
|
|
12229
|
+
_optionalChain([params, 'access', _339 => _339.toggleId, 'optionalCall', _340 => _340(row.getValue(params.name))]);
|
|
12143
12230
|
},
|
|
12144
12231
|
"aria-label": "Select row"
|
|
12145
12232
|
}
|
|
@@ -12198,7 +12285,7 @@ function useJsonApiGet(params) {
|
|
|
12198
12285
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
12199
12286
|
const isMounted = _react.useRef.call(void 0, true);
|
|
12200
12287
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
12201
|
-
if (_optionalChain([params, 'access',
|
|
12288
|
+
if (_optionalChain([params, 'access', _341 => _341.options, 'optionalAccess', _342 => _342.enabled]) === false) return;
|
|
12202
12289
|
setLoading(true);
|
|
12203
12290
|
setError(null);
|
|
12204
12291
|
try {
|
|
@@ -12225,9 +12312,9 @@ function useJsonApiGet(params) {
|
|
|
12225
12312
|
setLoading(false);
|
|
12226
12313
|
}
|
|
12227
12314
|
}
|
|
12228
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
12315
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _343 => _343.options, 'optionalAccess', _344 => _344.enabled])]);
|
|
12229
12316
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
12230
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12317
|
+
if (!_optionalChain([response, 'optionalAccess', _345 => _345.nextPage])) return;
|
|
12231
12318
|
setLoading(true);
|
|
12232
12319
|
try {
|
|
12233
12320
|
const nextResponse = await response.nextPage();
|
|
@@ -12248,7 +12335,7 @@ function useJsonApiGet(params) {
|
|
|
12248
12335
|
}
|
|
12249
12336
|
}, [response]);
|
|
12250
12337
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
12251
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
12338
|
+
if (!_optionalChain([response, 'optionalAccess', _346 => _346.prevPage])) return;
|
|
12252
12339
|
setLoading(true);
|
|
12253
12340
|
try {
|
|
12254
12341
|
const prevResponse = await response.prevPage();
|
|
@@ -12274,15 +12361,15 @@ function useJsonApiGet(params) {
|
|
|
12274
12361
|
return () => {
|
|
12275
12362
|
isMounted.current = false;
|
|
12276
12363
|
};
|
|
12277
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
12364
|
+
}, [fetchData, ..._optionalChain([params, 'access', _347 => _347.options, 'optionalAccess', _348 => _348.deps]) || []]);
|
|
12278
12365
|
return {
|
|
12279
12366
|
data,
|
|
12280
12367
|
loading,
|
|
12281
12368
|
error,
|
|
12282
12369
|
response,
|
|
12283
12370
|
refetch: fetchData,
|
|
12284
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
12285
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
12371
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _349 => _349.next]),
|
|
12372
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _350 => _350.prev]),
|
|
12286
12373
|
fetchNextPage,
|
|
12287
12374
|
fetchPreviousPage
|
|
12288
12375
|
};
|
|
@@ -12360,17 +12447,17 @@ function useJsonApiMutation(config) {
|
|
|
12360
12447
|
if (apiResponse.ok) {
|
|
12361
12448
|
const resultData = apiResponse.data;
|
|
12362
12449
|
setData(resultData);
|
|
12363
|
-
_optionalChain([config, 'access',
|
|
12450
|
+
_optionalChain([config, 'access', _351 => _351.onSuccess, 'optionalCall', _352 => _352(resultData)]);
|
|
12364
12451
|
return resultData;
|
|
12365
12452
|
} else {
|
|
12366
12453
|
setError(apiResponse.error);
|
|
12367
|
-
_optionalChain([config, 'access',
|
|
12454
|
+
_optionalChain([config, 'access', _353 => _353.onError, 'optionalCall', _354 => _354(apiResponse.error)]);
|
|
12368
12455
|
return null;
|
|
12369
12456
|
}
|
|
12370
12457
|
} catch (err) {
|
|
12371
12458
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
12372
12459
|
setError(errorMessage);
|
|
12373
|
-
_optionalChain([config, 'access',
|
|
12460
|
+
_optionalChain([config, 'access', _355 => _355.onError, 'optionalCall', _356 => _356(errorMessage)]);
|
|
12374
12461
|
return null;
|
|
12375
12462
|
} finally {
|
|
12376
12463
|
setLoading(false);
|
|
@@ -12443,7 +12530,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12443
12530
|
{
|
|
12444
12531
|
href: hasRole(_chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
12445
12532
|
page: "/administration",
|
|
12446
|
-
id: _optionalChain([_chunkNAST4OSMjs.Modules, 'access',
|
|
12533
|
+
id: _optionalChain([_chunkNAST4OSMjs.Modules, 'access', _357 => _357.Company, 'access', _358 => _358.pageUrl, 'optionalAccess', _359 => _359.substring, 'call', _360 => _360(1)]),
|
|
12447
12534
|
childPage: company.id
|
|
12448
12535
|
}) : generateUrl({ page: _chunkNAST4OSMjs.Modules.Company, id: company.id }),
|
|
12449
12536
|
children: row.getValue("name")
|
|
@@ -12459,7 +12546,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12459
12546
|
})
|
|
12460
12547
|
};
|
|
12461
12548
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12462
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12549
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _361 => _361[field], 'optionalCall', _362 => _362()])).filter((col) => col !== void 0);
|
|
12463
12550
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
12464
12551
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12465
12552
|
}, "useCompanyTableStructure");
|
|
@@ -12471,7 +12558,7 @@ var GRACE_DAYS = 3;
|
|
|
12471
12558
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
12472
12559
|
if (!currentUser || !_chunkBQSMP4NUjs.isRolesConfigured.call(void 0, )) return false;
|
|
12473
12560
|
const adminRoleId = _chunkBQSMP4NUjs.getRoleId.call(void 0, ).Administrator;
|
|
12474
|
-
return !!_optionalChain([currentUser, 'access',
|
|
12561
|
+
return !!_optionalChain([currentUser, 'access', _363 => _363.roles, 'optionalAccess', _364 => _364.some, 'call', _365 => _365((role) => role.id === adminRoleId)]);
|
|
12475
12562
|
}, "isAdministrator");
|
|
12476
12563
|
function useSubscriptionStatus() {
|
|
12477
12564
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -12588,7 +12675,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12588
12675
|
})
|
|
12589
12676
|
};
|
|
12590
12677
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12591
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12678
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _366 => _366[field], 'optionalCall', _367 => _367()])).filter((col) => col !== void 0);
|
|
12592
12679
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12593
12680
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12594
12681
|
}, "useRoleTableStructure");
|
|
@@ -12731,7 +12818,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
12731
12818
|
})
|
|
12732
12819
|
};
|
|
12733
12820
|
const columns = _react.useMemo.call(void 0, () => {
|
|
12734
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
12821
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _368 => _368[field], 'optionalCall', _369 => _369()])).filter((col) => col !== void 0);
|
|
12735
12822
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
12736
12823
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12737
12824
|
}, "useUserTableStructure");
|
|
@@ -12832,11 +12919,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
12832
12919
|
return params.fields.map((field) => {
|
|
12833
12920
|
const localHandler = fieldColumnMap[field];
|
|
12834
12921
|
if (localHandler) return localHandler();
|
|
12835
|
-
const customHandler = _optionalChain([params, 'access',
|
|
12922
|
+
const customHandler = _optionalChain([params, 'access', _370 => _370.context, 'optionalAccess', _371 => _371.customCells, 'optionalAccess', _372 => _372[field]]);
|
|
12836
12923
|
if (customHandler) return customHandler({ t });
|
|
12837
12924
|
return void 0;
|
|
12838
12925
|
}).filter((col) => col !== void 0);
|
|
12839
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
12926
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _373 => _373.context, 'optionalAccess', _374 => _374.customCells])]);
|
|
12840
12927
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
12841
12928
|
}, "useContentTableStructure");
|
|
12842
12929
|
|
|
@@ -13162,7 +13249,7 @@ function rbacReducer(state, action) {
|
|
|
13162
13249
|
}
|
|
13163
13250
|
case "SET_FEATURE_IS_CORE": {
|
|
13164
13251
|
const newMap = new Map(state.featureIsCore);
|
|
13165
|
-
const originalFeature = _optionalChain([state, 'access',
|
|
13252
|
+
const originalFeature = _optionalChain([state, 'access', _375 => _375.original, 'optionalAccess', _376 => _376.features, 'access', _377 => _377.find, 'call', _378 => _378((f) => f.id === action.featureId)]);
|
|
13166
13253
|
if (originalFeature && originalFeature.isCore === action.isCore) {
|
|
13167
13254
|
newMap.delete(action.featureId);
|
|
13168
13255
|
} else {
|
|
@@ -13173,7 +13260,7 @@ function rbacReducer(state, action) {
|
|
|
13173
13260
|
case "SET_MODULE_DEFAULT_PERMISSION": {
|
|
13174
13261
|
const newMap = new Map(state.modulePermissions);
|
|
13175
13262
|
const originalModule = state.original ? findModule(state.original.features, action.moduleId) : void 0;
|
|
13176
|
-
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess',
|
|
13263
|
+
const current = _nullishCoalesce(newMap.get(action.moduleId), () => ( { ..._optionalChain([originalModule, 'optionalAccess', _379 => _379.permissions]) }));
|
|
13177
13264
|
const updated = { ...current, [action.actionType]: action.value };
|
|
13178
13265
|
newMap.set(action.moduleId, updated);
|
|
13179
13266
|
return { ...state, modulePermissions: newMap };
|
|
@@ -13264,8 +13351,8 @@ function useRbacState() {
|
|
|
13264
13351
|
const getFeatureIsCore = _react.useCallback.call(void 0,
|
|
13265
13352
|
(featureId) => {
|
|
13266
13353
|
if (state.featureIsCore.has(featureId)) return state.featureIsCore.get(featureId);
|
|
13267
|
-
const feature = _optionalChain([state, 'access',
|
|
13268
|
-
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess',
|
|
13354
|
+
const feature = _optionalChain([state, 'access', _380 => _380.original, 'optionalAccess', _381 => _381.features, 'access', _382 => _382.find, 'call', _383 => _383((f) => f.id === featureId)]);
|
|
13355
|
+
return _nullishCoalesce(_optionalChain([feature, 'optionalAccess', _384 => _384.isCore]), () => ( false));
|
|
13269
13356
|
},
|
|
13270
13357
|
[state.featureIsCore, state.original]
|
|
13271
13358
|
);
|
|
@@ -13275,7 +13362,7 @@ function useRbacState() {
|
|
|
13275
13362
|
if (edited && edited[actionType] !== void 0) return edited[actionType];
|
|
13276
13363
|
if (!state.original) return void 0;
|
|
13277
13364
|
const mod = findModule(state.original.features, moduleId);
|
|
13278
|
-
return _optionalChain([mod, 'optionalAccess',
|
|
13365
|
+
return _optionalChain([mod, 'optionalAccess', _385 => _385.permissions, 'access', _386 => _386[actionType]]);
|
|
13279
13366
|
},
|
|
13280
13367
|
[state.modulePermissions, state.original]
|
|
13281
13368
|
);
|
|
@@ -13331,7 +13418,7 @@ function useRbacState() {
|
|
|
13331
13418
|
}, [state]);
|
|
13332
13419
|
const getModuleRelationshipPaths = _react.useCallback.call(void 0,
|
|
13333
13420
|
(moduleId) => {
|
|
13334
|
-
return _nullishCoalesce(_optionalChain([state, 'access',
|
|
13421
|
+
return _nullishCoalesce(_optionalChain([state, 'access', _387 => _387.original, 'optionalAccess', _388 => _388.moduleRelationshipPaths, 'access', _389 => _389.get, 'call', _390 => _390(moduleId)]), () => ( []));
|
|
13335
13422
|
},
|
|
13336
13423
|
[state.original]
|
|
13337
13424
|
);
|
|
@@ -13542,7 +13629,7 @@ function ContentTableSearch({ data }) {
|
|
|
13542
13629
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13543
13630
|
if (!isExpanded) {
|
|
13544
13631
|
setIsFocused(true);
|
|
13545
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
13632
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _391 => _391.current, 'optionalAccess', _392 => _392.focus, 'call', _393 => _393()]), 50);
|
|
13546
13633
|
}
|
|
13547
13634
|
}, "handleSearchIconClick");
|
|
13548
13635
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -13608,7 +13695,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13608
13695
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
13609
13696
|
);
|
|
13610
13697
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
13611
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13698
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _394 => _394.data]), () => ( EMPTY_ARRAY)),
|
|
13612
13699
|
fields,
|
|
13613
13700
|
checkedIds,
|
|
13614
13701
|
toggleId,
|
|
@@ -13643,22 +13730,46 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13643
13730
|
const showFooter = !!(data.next || data.previous);
|
|
13644
13731
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNAST4OSMjs.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
|
|
13645
13732
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
|
|
13646
|
-
props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
/* @__PURE__ */ _jsxruntime.
|
|
13652
|
-
|
|
13653
|
-
|
|
13733
|
+
props.title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13734
|
+
TableHead,
|
|
13735
|
+
{
|
|
13736
|
+
className: "bg-card rounded-t-lg text-primary p-4 text-left font-bold",
|
|
13737
|
+
colSpan: tableColumns.length,
|
|
13738
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
13739
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13740
|
+
"div",
|
|
13741
|
+
{
|
|
13742
|
+
className: _chunkNAST4OSMjs.cn.call(void 0,
|
|
13743
|
+
"text-muted-foreground flex items-center gap-x-2 font-light whitespace-nowrap",
|
|
13744
|
+
fullWidth ? `text-lg` : `text-sm`
|
|
13745
|
+
),
|
|
13746
|
+
children: [
|
|
13747
|
+
props.tableGeneratorType.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13748
|
+
props.tableGeneratorType.icon,
|
|
13749
|
+
{
|
|
13750
|
+
className: _chunkNAST4OSMjs.cn.call(void 0, `text-primary`, fullWidth ? `h-6 w-6` : `h-4 w-4`)
|
|
13751
|
+
}
|
|
13752
|
+
),
|
|
13753
|
+
props.title
|
|
13754
|
+
]
|
|
13755
|
+
}
|
|
13756
|
+
) }),
|
|
13757
|
+
(props.functions || props.filters || allowSearch) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13758
|
+
props.functions,
|
|
13759
|
+
props.filters,
|
|
13760
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContentTableSearch, { data })
|
|
13761
|
+
] })
|
|
13762
|
+
] })
|
|
13763
|
+
}
|
|
13764
|
+
) }),
|
|
13654
13765
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
13655
13766
|
const meta = header.column.columnDef.meta;
|
|
13656
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
13767
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _395 => _395.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
13657
13768
|
}) }, headerGroup.id))
|
|
13658
13769
|
] }),
|
|
13659
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
13770
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _396 => _396.rows, 'optionalAccess', _397 => _397.length]) ? rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
13660
13771
|
const meta = cell.column.columnDef.meta;
|
|
13661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
13772
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _398 => _398.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
13662
13773
|
}) }, 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." }) }) }),
|
|
13663
13774
|
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: [
|
|
13664
13775
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13668,7 +13779,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13668
13779
|
size: "sm",
|
|
13669
13780
|
onClick: (e) => {
|
|
13670
13781
|
e.preventDefault();
|
|
13671
|
-
_optionalChain([data, 'access',
|
|
13782
|
+
_optionalChain([data, 'access', _399 => _399.previous, 'optionalCall', _400 => _400(true)]);
|
|
13672
13783
|
},
|
|
13673
13784
|
disabled: !data.previous,
|
|
13674
13785
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -13682,7 +13793,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
13682
13793
|
size: "sm",
|
|
13683
13794
|
onClick: (e) => {
|
|
13684
13795
|
e.preventDefault();
|
|
13685
|
-
_optionalChain([data, 'access',
|
|
13796
|
+
_optionalChain([data, 'access', _401 => _401.next, 'optionalCall', _402 => _402(true)]);
|
|
13686
13797
|
},
|
|
13687
13798
|
disabled: !data.next,
|
|
13688
13799
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -14243,7 +14354,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14243
14354
|
newDigits[index] = digit;
|
|
14244
14355
|
setDigits(newDigits);
|
|
14245
14356
|
if (digit && index < 5) {
|
|
14246
|
-
_optionalChain([inputRefs, 'access',
|
|
14357
|
+
_optionalChain([inputRefs, 'access', _403 => _403.current, 'access', _404 => _404[index + 1], 'optionalAccess', _405 => _405.focus, 'call', _406 => _406()]);
|
|
14247
14358
|
}
|
|
14248
14359
|
const code = newDigits.join("");
|
|
14249
14360
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -14252,7 +14363,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14252
14363
|
}, "handleChange");
|
|
14253
14364
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
14254
14365
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
14255
|
-
_optionalChain([inputRefs, 'access',
|
|
14366
|
+
_optionalChain([inputRefs, 'access', _407 => _407.current, 'access', _408 => _408[index - 1], 'optionalAccess', _409 => _409.focus, 'call', _410 => _410()]);
|
|
14256
14367
|
}
|
|
14257
14368
|
}, "handleKeyDown");
|
|
14258
14369
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -14261,7 +14372,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
14261
14372
|
if (pastedData.length === 6) {
|
|
14262
14373
|
const newDigits = pastedData.split("");
|
|
14263
14374
|
setDigits(newDigits);
|
|
14264
|
-
_optionalChain([inputRefs, 'access',
|
|
14375
|
+
_optionalChain([inputRefs, 'access', _411 => _411.current, 'access', _412 => _412[5], 'optionalAccess', _413 => _413.focus, 'call', _414 => _414()]);
|
|
14265
14376
|
onComplete(pastedData);
|
|
14266
14377
|
}
|
|
14267
14378
|
}, "handlePaste");
|
|
@@ -14472,8 +14583,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
14472
14583
|
try {
|
|
14473
14584
|
const registrationData = await _chunkNAST4OSMjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
14474
14585
|
id: _uuid.v4.call(void 0, ),
|
|
14475
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14476
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
14586
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _415 => _415.email]), () => ( "")),
|
|
14587
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _416 => _416.name])
|
|
14477
14588
|
});
|
|
14478
14589
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
14479
14590
|
await _chunkNAST4OSMjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -14624,7 +14735,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
14624
14735
|
const setup = await _chunkNAST4OSMjs.TwoFactorService.setupTotp({
|
|
14625
14736
|
id: _uuid.v4.call(void 0, ),
|
|
14626
14737
|
name: name.trim(),
|
|
14627
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
14738
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _417 => _417.email]), () => ( ""))
|
|
14628
14739
|
});
|
|
14629
14740
|
setQrCodeUri(setup.qrCodeUri);
|
|
14630
14741
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -14758,7 +14869,7 @@ function TwoFactorSettings() {
|
|
|
14758
14869
|
if (isLoading) {
|
|
14759
14870
|
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") }) }) });
|
|
14760
14871
|
}
|
|
14761
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14872
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _418 => _418.isEnabled]), () => ( false));
|
|
14762
14873
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
14763
14874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
14764
14875
|
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" }),
|
|
@@ -14796,7 +14907,7 @@ function TwoFactorSettings() {
|
|
|
14796
14907
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
14797
14908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
14798
14909
|
] }),
|
|
14799
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
14910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _419 => _419.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
14800
14911
|
] }) }),
|
|
14801
14912
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
14802
14913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -14974,9 +15085,9 @@ function AcceptInvitation() {
|
|
|
14974
15085
|
});
|
|
14975
15086
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
14976
15087
|
try {
|
|
14977
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15088
|
+
if (!_optionalChain([params, 'optionalAccess', _420 => _420.code])) return;
|
|
14978
15089
|
const payload = {
|
|
14979
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15090
|
+
code: _optionalChain([params, 'optionalAccess', _421 => _421.code]),
|
|
14980
15091
|
password: values.password
|
|
14981
15092
|
};
|
|
14982
15093
|
await _chunkNAST4OSMjs.AuthService.acceptInvitation(payload);
|
|
@@ -15326,7 +15437,7 @@ function Logout({ storageKeys }) {
|
|
|
15326
15437
|
const generateUrl = usePageUrlGenerator();
|
|
15327
15438
|
_react.useEffect.call(void 0, () => {
|
|
15328
15439
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15329
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
15440
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _422 => _422.length])) {
|
|
15330
15441
|
clearClientStorage(storageKeys);
|
|
15331
15442
|
}
|
|
15332
15443
|
await _chunkNAST4OSMjs.AuthService.logout();
|
|
@@ -15349,14 +15460,14 @@ function RefreshUser() {
|
|
|
15349
15460
|
setUser(fullUser);
|
|
15350
15461
|
const token = {
|
|
15351
15462
|
userId: fullUser.id,
|
|
15352
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
15463
|
+
companyId: _optionalChain([fullUser, 'access', _423 => _423.company, 'optionalAccess', _424 => _424.id]),
|
|
15353
15464
|
roles: fullUser.roles.map((role) => role.id),
|
|
15354
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
15465
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _425 => _425.company, 'optionalAccess', _426 => _426.features, 'optionalAccess', _427 => _427.map, 'call', _428 => _428((feature) => feature.id)]), () => ( [])),
|
|
15355
15466
|
modules: fullUser.modules.map((module) => {
|
|
15356
15467
|
return { id: module.id, permissions: module.permissions };
|
|
15357
15468
|
})
|
|
15358
15469
|
};
|
|
15359
|
-
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
15470
|
+
await _optionalChain([_chunkNAST4OSMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _429 => _429.updateToken, 'call', _430 => _430(token)]);
|
|
15360
15471
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
15361
15472
|
}
|
|
15362
15473
|
}, "loadFullUser");
|
|
@@ -15420,9 +15531,9 @@ function ResetPassword() {
|
|
|
15420
15531
|
});
|
|
15421
15532
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
15422
15533
|
try {
|
|
15423
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
15534
|
+
if (!_optionalChain([params, 'optionalAccess', _431 => _431.code])) return;
|
|
15424
15535
|
const payload = {
|
|
15425
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
15536
|
+
code: _optionalChain([params, 'optionalAccess', _432 => _432.code]),
|
|
15426
15537
|
password: values.password
|
|
15427
15538
|
};
|
|
15428
15539
|
await _chunkNAST4OSMjs.AuthService.resetPassword(payload);
|
|
@@ -15779,14 +15890,14 @@ function NotificationsList({ archived }) {
|
|
|
15779
15890
|
] }),
|
|
15780
15891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
15781
15892
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
15782
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
15893
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _433 => _433.data, 'optionalAccess', _434 => _434.map, 'call', _435 => _435((notification) => {
|
|
15783
15894
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
15784
15895
|
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: [
|
|
15785
15896
|
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" }),
|
|
15786
15897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
15787
15898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
15788
15899
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
15789
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
15900
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _436 => _436.actor, 'optionalAccess', _437 => _437.name]), () => ( "")),
|
|
15790
15901
|
title: notificationData.title
|
|
15791
15902
|
}) }),
|
|
15792
15903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -16136,7 +16247,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
16136
16247
|
invalidEmail: "Please enter a valid email address"
|
|
16137
16248
|
};
|
|
16138
16249
|
async function copyToClipboard(text) {
|
|
16139
|
-
if (_optionalChain([navigator, 'access',
|
|
16250
|
+
if (_optionalChain([navigator, 'access', _438 => _438.clipboard, 'optionalAccess', _439 => _439.writeText])) {
|
|
16140
16251
|
try {
|
|
16141
16252
|
await navigator.clipboard.writeText(text);
|
|
16142
16253
|
return true;
|
|
@@ -16178,7 +16289,7 @@ function ReferralWidget({
|
|
|
16178
16289
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
16179
16290
|
const config = _chunkBQSMP4NUjs.getReferralConfig.call(void 0, );
|
|
16180
16291
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
16181
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
16292
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _440 => _440.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
16182
16293
|
if (!_chunkBQSMP4NUjs.isReferralEnabled.call(void 0, )) {
|
|
16183
16294
|
return null;
|
|
16184
16295
|
}
|
|
@@ -16188,7 +16299,7 @@ function ReferralWidget({
|
|
|
16188
16299
|
if (success) {
|
|
16189
16300
|
setCopied(true);
|
|
16190
16301
|
_chunkNAST4OSMjs.showToast.call(void 0, t.copiedMessage);
|
|
16191
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
16302
|
+
_optionalChain([onLinkCopied, 'optionalCall', _441 => _441()]);
|
|
16192
16303
|
setTimeout(() => setCopied(false), 2e3);
|
|
16193
16304
|
} else {
|
|
16194
16305
|
_chunkNAST4OSMjs.showError.call(void 0, t.copyError);
|
|
@@ -16202,12 +16313,12 @@ function ReferralWidget({
|
|
|
16202
16313
|
try {
|
|
16203
16314
|
await sendInvite(email);
|
|
16204
16315
|
_chunkNAST4OSMjs.showToast.call(void 0, t.inviteSent);
|
|
16205
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
16316
|
+
_optionalChain([onInviteSent, 'optionalCall', _442 => _442(email)]);
|
|
16206
16317
|
setEmail("");
|
|
16207
16318
|
} catch (err) {
|
|
16208
16319
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
16209
16320
|
_chunkNAST4OSMjs.showError.call(void 0, error2.message);
|
|
16210
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
16321
|
+
_optionalChain([onInviteError, 'optionalCall', _443 => _443(error2)]);
|
|
16211
16322
|
}
|
|
16212
16323
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
16213
16324
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -16960,7 +17071,7 @@ function OAuthClientList({
|
|
|
16960
17071
|
OAuthClientCard,
|
|
16961
17072
|
{
|
|
16962
17073
|
client,
|
|
16963
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
17074
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _444 => _444(client)]),
|
|
16964
17075
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
16965
17076
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
16966
17077
|
},
|
|
@@ -16976,11 +17087,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
16976
17087
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
16977
17088
|
const isEditMode = !!client;
|
|
16978
17089
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
16979
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
16980
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
16981
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
16982
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
16983
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
17090
|
+
name: _optionalChain([client, 'optionalAccess', _445 => _445.name]) || "",
|
|
17091
|
+
description: _optionalChain([client, 'optionalAccess', _446 => _446.description]) || "",
|
|
17092
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _447 => _447.redirectUris, 'optionalAccess', _448 => _448.length]) ? client.redirectUris : [""],
|
|
17093
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _449 => _449.allowedScopes]) || [],
|
|
17094
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _450 => _450.isConfidential]), () => ( true))
|
|
16984
17095
|
});
|
|
16985
17096
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
16986
17097
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -17208,7 +17319,7 @@ function OAuthClientDetail({
|
|
|
17208
17319
|
] }),
|
|
17209
17320
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17210
17321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
17211
|
-
/* @__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',
|
|
17322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkNAST4OSMjs.OAUTH_SCOPE_DISPLAY, 'access', _451 => _451[scope], 'optionalAccess', _452 => _452.name]) || scope }, scope)) })
|
|
17212
17323
|
] }),
|
|
17213
17324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
17214
17325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -17352,7 +17463,7 @@ function OAuthConsentScreen({
|
|
|
17352
17463
|
if (error || !clientInfo) {
|
|
17353
17464
|
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: [
|
|
17354
17465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
17355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
17466
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _453 => _453.message]) || "Invalid authorization request. Please try again." })
|
|
17356
17467
|
] }) }) }) });
|
|
17357
17468
|
}
|
|
17358
17469
|
const { client, scopes } = clientInfo;
|
|
@@ -17568,7 +17679,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
17568
17679
|
questionnaire: values.questionnaire
|
|
17569
17680
|
});
|
|
17570
17681
|
setIsSuccess(true);
|
|
17571
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
17682
|
+
_optionalChain([onSuccess, 'optionalCall', _454 => _454()]);
|
|
17572
17683
|
} catch (e) {
|
|
17573
17684
|
errorToast({ error: e });
|
|
17574
17685
|
} finally {
|
|
@@ -18191,7 +18302,7 @@ function RbacModuleTable({ module, roles, stateApi }) {
|
|
|
18191
18302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: role.name }),
|
|
18192
18303
|
_chunkBQSMP4NUjs.ACTION_TYPES.map((actionType) => {
|
|
18193
18304
|
const roleValue = stateApi.getRolePermission(role.id, module.id, actionType);
|
|
18194
|
-
const originalMapping = _optionalChain([stateApi, 'access',
|
|
18305
|
+
const originalMapping = _optionalChain([stateApi, 'access', _455 => _455.original, 'optionalAccess', _456 => _456.permissionMappings, 'access', _457 => _457.find, 'call', _458 => _458(
|
|
18195
18306
|
(pm) => pm.roleId === role.id && pm.moduleId === module.id
|
|
18196
18307
|
)]);
|
|
18197
18308
|
const originalRoleValue = originalMapping ? _nullishCoalesce(originalMapping.permissions[actionType], () => ( null)) : void 0;
|
|
@@ -18805,5 +18916,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacContainer, "RbacContainer");
|
|
|
18805
18916
|
|
|
18806
18917
|
|
|
18807
18918
|
|
|
18808
|
-
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;
|
|
18809
|
-
|
|
18919
|
+
|
|
18920
|
+
|
|
18921
|
+
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce2; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.useDebounce2 = useDebounce; exports.MultipleSelector = MultipleSelector; exports.EntityAvatar = EntityAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.useRbacState = useRbacState; exports.generateMigrationFile = generateMigrationFile; exports.downloadMigrationFile = downloadMigrationFile; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacModuleTable = RbacModuleTable; exports.RbacFeatureSection = RbacFeatureSection; exports.RbacToolbar = RbacToolbar; exports.RbacContainer = RbacContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
18922
|
+
//# sourceMappingURL=chunk-JRKIV2DF.js.map
|