@carlonicora/nextjs-jsonapi 1.96.0 → 1.97.1
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-VPTC7JY3.mjs → BlockNoteEditor-74GNMOST.mjs} +2 -2
- package/dist/{BlockNoteEditor-UDGH3YMI.js → BlockNoteEditor-7SXXGSJH.js} +9 -9
- package/dist/{BlockNoteEditor-UDGH3YMI.js.map → BlockNoteEditor-7SXXGSJH.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-QH4QZLBS.mjs → chunk-A4EZFGFA.mjs} +128 -58
- package/dist/chunk-A4EZFGFA.mjs.map +1 -0
- package/dist/{chunk-62RBZ55N.js → chunk-XHCHSTAX.js} +162 -92
- package/dist/chunk-XHCHSTAX.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/editors/BlockNoteEditorSuggestionMenuController.tsx +39 -3
- package/src/components/tables/ContentListTable.tsx +76 -13
- package/src/components/tables/__tests__/ContentListTable.test.tsx +176 -1
- package/dist/chunk-62RBZ55N.js.map +0 -1
- package/dist/chunk-QH4QZLBS.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-VPTC7JY3.mjs.map → BlockNoteEditor-74GNMOST.mjs.map} +0 -0
|
@@ -9226,7 +9226,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9226
9226
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9227
9227
|
|
|
9228
9228
|
|
|
9229
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
9229
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-7SXXGSJH.js"))), {
|
|
9230
9230
|
ssr: false
|
|
9231
9231
|
});
|
|
9232
9232
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -13791,6 +13791,7 @@ var _react6 = require('@floating-ui/react');
|
|
|
13791
13791
|
|
|
13792
13792
|
var MentionInsertContext = React.default.createContext(null);
|
|
13793
13793
|
var useMentionInsert = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => React.default.useContext(MentionInsertContext), "useMentionInsert");
|
|
13794
|
+
var KEEP_OPEN_SENTINEL_TITLE = "__blocknote_mention_keep_open__";
|
|
13794
13795
|
function BlockNoteEditorMentionSuggestionMenu({
|
|
13795
13796
|
editor,
|
|
13796
13797
|
mentionSearchFn,
|
|
@@ -13812,7 +13813,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
13812
13813
|
const getItems = _react.useCallback.call(void 0,
|
|
13813
13814
|
async (query) => {
|
|
13814
13815
|
const results = await mentionSearchFn(query, mentionSearchParams);
|
|
13815
|
-
|
|
13816
|
+
const items = results.map((item) => ({
|
|
13816
13817
|
title: item.name,
|
|
13817
13818
|
subtext: item.entityType,
|
|
13818
13819
|
icon: item.icon,
|
|
@@ -13830,15 +13831,40 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
13830
13831
|
]);
|
|
13831
13832
|
}, "onItemClick")
|
|
13832
13833
|
}));
|
|
13834
|
+
if (items.length === 0) {
|
|
13835
|
+
items.push({ title: KEEP_OPEN_SENTINEL_TITLE, onItemClick: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13836
|
+
}, "onItemClick") });
|
|
13837
|
+
}
|
|
13838
|
+
return items;
|
|
13833
13839
|
},
|
|
13834
13840
|
[editor, mentionSearchFn, mentionSearchParams]
|
|
13835
13841
|
);
|
|
13842
|
+
const wrappedSuggestionMenuComponent = _react.useMemo.call(void 0, () => {
|
|
13843
|
+
if (!suggestionMenuComponent) return void 0;
|
|
13844
|
+
const Component2 = suggestionMenuComponent;
|
|
13845
|
+
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
13846
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _387 => _387.items, 'access', _388 => _388[0], 'optionalAccess', _389 => _389.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
13847
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13848
|
+
Component2,
|
|
13849
|
+
{
|
|
13850
|
+
...props,
|
|
13851
|
+
items: isSentinelOnly ? [] : props.items,
|
|
13852
|
+
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
13853
|
+
onItemClick: (item) => {
|
|
13854
|
+
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
13855
|
+
_optionalChain([props, 'access', _390 => _390.onItemClick, 'optionalCall', _391 => _391(item)]);
|
|
13856
|
+
}
|
|
13857
|
+
}
|
|
13858
|
+
);
|
|
13859
|
+
}, "Wrapped");
|
|
13860
|
+
return Wrapped;
|
|
13861
|
+
}, [suggestionMenuComponent]);
|
|
13836
13862
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MentionInsertContext.Provider, { value: onMentionInsert, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "blocknote-suggestion-container", style: { position: "static" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13837
13863
|
_react4.SuggestionMenuController,
|
|
13838
13864
|
{
|
|
13839
13865
|
triggerCharacter: "@",
|
|
13840
13866
|
getItems,
|
|
13841
|
-
suggestionMenuComponent,
|
|
13867
|
+
suggestionMenuComponent: wrappedSuggestionMenuComponent,
|
|
13842
13868
|
floatingUIOptions: {
|
|
13843
13869
|
useFloatingOptions: {
|
|
13844
13870
|
strategy: "fixed",
|
|
@@ -14011,10 +14037,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
14011
14037
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14012
14038
|
Checkbox,
|
|
14013
14039
|
{
|
|
14014
|
-
checked: _optionalChain([params, 'access',
|
|
14040
|
+
checked: _optionalChain([params, 'access', _392 => _392.checkedIds, 'optionalAccess', _393 => _393.includes, 'call', _394 => _394(row.getValue(params.name))]) || false,
|
|
14015
14041
|
onCheckedChange: (value) => {
|
|
14016
14042
|
row.toggleSelected(!!value);
|
|
14017
|
-
_optionalChain([params, 'access',
|
|
14043
|
+
_optionalChain([params, 'access', _395 => _395.toggleId, 'optionalCall', _396 => _396(row.getValue(params.name))]);
|
|
14018
14044
|
},
|
|
14019
14045
|
"aria-label": "Select row"
|
|
14020
14046
|
}
|
|
@@ -14073,7 +14099,7 @@ function useJsonApiGet(params) {
|
|
|
14073
14099
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
14074
14100
|
const isMounted = _react.useRef.call(void 0, true);
|
|
14075
14101
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
14076
|
-
if (_optionalChain([params, 'access',
|
|
14102
|
+
if (_optionalChain([params, 'access', _397 => _397.options, 'optionalAccess', _398 => _398.enabled]) === false) return;
|
|
14077
14103
|
setLoading(true);
|
|
14078
14104
|
setError(null);
|
|
14079
14105
|
try {
|
|
@@ -14100,9 +14126,9 @@ function useJsonApiGet(params) {
|
|
|
14100
14126
|
setLoading(false);
|
|
14101
14127
|
}
|
|
14102
14128
|
}
|
|
14103
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
14129
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _399 => _399.options, 'optionalAccess', _400 => _400.enabled])]);
|
|
14104
14130
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
14105
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
14131
|
+
if (!_optionalChain([response, 'optionalAccess', _401 => _401.nextPage])) return;
|
|
14106
14132
|
setLoading(true);
|
|
14107
14133
|
try {
|
|
14108
14134
|
const nextResponse = await response.nextPage();
|
|
@@ -14123,7 +14149,7 @@ function useJsonApiGet(params) {
|
|
|
14123
14149
|
}
|
|
14124
14150
|
}, [response]);
|
|
14125
14151
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
14126
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
14152
|
+
if (!_optionalChain([response, 'optionalAccess', _402 => _402.prevPage])) return;
|
|
14127
14153
|
setLoading(true);
|
|
14128
14154
|
try {
|
|
14129
14155
|
const prevResponse = await response.prevPage();
|
|
@@ -14149,15 +14175,15 @@ function useJsonApiGet(params) {
|
|
|
14149
14175
|
return () => {
|
|
14150
14176
|
isMounted.current = false;
|
|
14151
14177
|
};
|
|
14152
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
14178
|
+
}, [fetchData, ..._optionalChain([params, 'access', _403 => _403.options, 'optionalAccess', _404 => _404.deps]) || []]);
|
|
14153
14179
|
return {
|
|
14154
14180
|
data,
|
|
14155
14181
|
loading,
|
|
14156
14182
|
error,
|
|
14157
14183
|
response,
|
|
14158
14184
|
refetch: fetchData,
|
|
14159
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
14160
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
14185
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _405 => _405.next]),
|
|
14186
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _406 => _406.prev]),
|
|
14161
14187
|
fetchNextPage,
|
|
14162
14188
|
fetchPreviousPage
|
|
14163
14189
|
};
|
|
@@ -14235,17 +14261,17 @@ function useJsonApiMutation(config) {
|
|
|
14235
14261
|
if (apiResponse.ok) {
|
|
14236
14262
|
const resultData = apiResponse.data;
|
|
14237
14263
|
setData(resultData);
|
|
14238
|
-
_optionalChain([config, 'access',
|
|
14264
|
+
_optionalChain([config, 'access', _407 => _407.onSuccess, 'optionalCall', _408 => _408(resultData)]);
|
|
14239
14265
|
return resultData;
|
|
14240
14266
|
} else {
|
|
14241
14267
|
setError(apiResponse.error);
|
|
14242
|
-
_optionalChain([config, 'access',
|
|
14268
|
+
_optionalChain([config, 'access', _409 => _409.onError, 'optionalCall', _410 => _410(apiResponse.error)]);
|
|
14243
14269
|
return null;
|
|
14244
14270
|
}
|
|
14245
14271
|
} catch (err) {
|
|
14246
14272
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
14247
14273
|
setError(errorMessage);
|
|
14248
|
-
_optionalChain([config, 'access',
|
|
14274
|
+
_optionalChain([config, 'access', _411 => _411.onError, 'optionalCall', _412 => _412(errorMessage)]);
|
|
14249
14275
|
return null;
|
|
14250
14276
|
} finally {
|
|
14251
14277
|
setLoading(false);
|
|
@@ -14318,7 +14344,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14318
14344
|
{
|
|
14319
14345
|
href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
14320
14346
|
page: "/administration",
|
|
14321
|
-
id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access',
|
|
14347
|
+
id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _413 => _413.Company, 'access', _414 => _414.pageUrl, 'optionalAccess', _415 => _415.substring, 'call', _416 => _416(1)]),
|
|
14322
14348
|
childPage: company.id
|
|
14323
14349
|
}) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
|
|
14324
14350
|
children: row.getValue("name")
|
|
@@ -14334,7 +14360,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14334
14360
|
})
|
|
14335
14361
|
};
|
|
14336
14362
|
const columns = _react.useMemo.call(void 0, () => {
|
|
14337
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
14363
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _417 => _417[field], 'optionalCall', _418 => _418()])).filter((col) => col !== void 0);
|
|
14338
14364
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
14339
14365
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14340
14366
|
}, "useCompanyTableStructure");
|
|
@@ -14346,7 +14372,7 @@ var GRACE_DAYS = 3;
|
|
|
14346
14372
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
14347
14373
|
if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
|
|
14348
14374
|
const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
|
|
14349
|
-
return !!_optionalChain([currentUser, 'access',
|
|
14375
|
+
return !!_optionalChain([currentUser, 'access', _419 => _419.roles, 'optionalAccess', _420 => _420.some, 'call', _421 => _421((role) => role.id === adminRoleId)]);
|
|
14350
14376
|
}, "isAdministrator");
|
|
14351
14377
|
function useSubscriptionStatus() {
|
|
14352
14378
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -14463,7 +14489,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
14463
14489
|
})
|
|
14464
14490
|
};
|
|
14465
14491
|
const columns = _react.useMemo.call(void 0, () => {
|
|
14466
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
14492
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _422 => _422[field], 'optionalCall', _423 => _423()])).filter((col) => col !== void 0);
|
|
14467
14493
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
14468
14494
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14469
14495
|
}, "useRoleTableStructure");
|
|
@@ -14564,11 +14590,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14564
14590
|
return params.fields.map((field) => {
|
|
14565
14591
|
const localHandler = fieldColumnMap[field];
|
|
14566
14592
|
if (localHandler) return localHandler();
|
|
14567
|
-
const customHandler = _optionalChain([params, 'access',
|
|
14593
|
+
const customHandler = _optionalChain([params, 'access', _424 => _424.context, 'optionalAccess', _425 => _425.customCells, 'optionalAccess', _426 => _426[field]]);
|
|
14568
14594
|
if (customHandler) return customHandler({ t });
|
|
14569
14595
|
return void 0;
|
|
14570
14596
|
}).filter((col) => col !== void 0);
|
|
14571
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
14597
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _427 => _427.context, 'optionalAccess', _428 => _428.customCells])]);
|
|
14572
14598
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14573
14599
|
}, "useContentTableStructure");
|
|
14574
14600
|
|
|
@@ -14903,7 +14929,7 @@ function ContentTableSearch({ data }) {
|
|
|
14903
14929
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
14904
14930
|
if (!isExpanded) {
|
|
14905
14931
|
setIsFocused(true);
|
|
14906
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
14932
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _429 => _429.current, 'optionalAccess', _430 => _430.focus, 'call', _431 => _431()]), 50);
|
|
14907
14933
|
}
|
|
14908
14934
|
}, "handleSearchIconClick");
|
|
14909
14935
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -14963,13 +14989,24 @@ _chunk7QVYU63Ejs.__name.call(void 0, ContentTableSearch, "ContentTableSearch");
|
|
|
14963
14989
|
// src/components/tables/ContentListTable.tsx
|
|
14964
14990
|
|
|
14965
14991
|
var EMPTY_ARRAY = [];
|
|
14992
|
+
function getGroupKeys(item, field) {
|
|
14993
|
+
const value = item.jsonApiData[field];
|
|
14994
|
+
if (Array.isArray(value)) {
|
|
14995
|
+
return value.filter((v) => v && typeof v === "object" && "name" in v).map((v) => _nullishCoalesce(v.name, () => ( String(v.id))));
|
|
14996
|
+
}
|
|
14997
|
+
if (value && typeof value === "object" && "name" in value) {
|
|
14998
|
+
return [_nullishCoalesce(value.name, () => ( String(value.id)))];
|
|
14999
|
+
}
|
|
15000
|
+
return [String(_nullishCoalesce(value, () => ( "")))];
|
|
15001
|
+
}
|
|
15002
|
+
_chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
|
|
14966
15003
|
var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function ContentListTable2(props) {
|
|
14967
15004
|
const { data, fields, checkedIds, toggleId, allowSearch, filters: _filters, fullWidth } = props;
|
|
14968
15005
|
const [expanded, setExpanded] = _react.useState.call(void 0,
|
|
14969
15006
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
14970
15007
|
);
|
|
14971
15008
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
14972
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15009
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _432 => _432.data]), () => ( EMPTY_ARRAY)),
|
|
14973
15010
|
fields,
|
|
14974
15011
|
checkedIds,
|
|
14975
15012
|
toggleId,
|
|
@@ -15001,6 +15038,26 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15001
15038
|
}
|
|
15002
15039
|
});
|
|
15003
15040
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
15041
|
+
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
15042
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _433 => _433.rows, 'optionalAccess', _434 => _434.length])) return null;
|
|
15043
|
+
const groupMap = /* @__PURE__ */ new Map();
|
|
15044
|
+
for (const row of rowModel.rows) {
|
|
15045
|
+
const keys = getGroupKeys(row.original, props.groupBy);
|
|
15046
|
+
for (const key of keys) {
|
|
15047
|
+
let list = groupMap.get(key);
|
|
15048
|
+
if (!list) {
|
|
15049
|
+
list = [];
|
|
15050
|
+
groupMap.set(key, list);
|
|
15051
|
+
}
|
|
15052
|
+
list.push(row);
|
|
15053
|
+
}
|
|
15054
|
+
}
|
|
15055
|
+
const sortedKeys = [...groupMap.keys()].sort((a, b) => a.localeCompare(b));
|
|
15056
|
+
return sortedKeys.map((groupKey) => ({
|
|
15057
|
+
groupKey,
|
|
15058
|
+
rows: groupMap.get(groupKey)
|
|
15059
|
+
}));
|
|
15060
|
+
}, [props.groupBy, rowModel]);
|
|
15004
15061
|
const showFooter = !!(data.next || data.previous);
|
|
15005
15062
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkXAWKRNYMjs.cn.call(void 0, `overflow-clip`, fullWidth ? `` : `rounded-md border`), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Table, { children: [
|
|
15006
15063
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableHeader, { className: "bg-muted font-semibold", children: [
|
|
@@ -15038,12 +15095,25 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15038
15095
|
) }),
|
|
15039
15096
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
15040
15097
|
const meta = header.column.columnDef.meta;
|
|
15041
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
15098
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _435 => _435.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
15042
15099
|
}) }, headerGroup.id))
|
|
15043
15100
|
] }),
|
|
15044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
15101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _436 => _436.rows, 'optionalAccess', _437 => _437.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
15102
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15103
|
+
TableCell,
|
|
15104
|
+
{
|
|
15105
|
+
colSpan: tableColumns.length,
|
|
15106
|
+
className: "bg-muted text-muted-foreground px-4 py-2 text-sm font-semibold",
|
|
15107
|
+
children: group.groupKey
|
|
15108
|
+
}
|
|
15109
|
+
) }),
|
|
15110
|
+
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15111
|
+
const meta = cell.column.columnDef.meta;
|
|
15112
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _438 => _438.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15113
|
+
}) }, row.id))
|
|
15114
|
+
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15045
15115
|
const meta = cell.column.columnDef.meta;
|
|
15046
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15116
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _439 => _439.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15047
15117
|
}) }, 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." }) }) }),
|
|
15048
15118
|
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: [
|
|
15049
15119
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15053,7 +15123,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15053
15123
|
size: "sm",
|
|
15054
15124
|
onClick: (e) => {
|
|
15055
15125
|
e.preventDefault();
|
|
15056
|
-
_optionalChain([data, 'access',
|
|
15126
|
+
_optionalChain([data, 'access', _440 => _440.previous, 'optionalCall', _441 => _441(true)]);
|
|
15057
15127
|
},
|
|
15058
15128
|
disabled: !data.previous,
|
|
15059
15129
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -15067,7 +15137,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15067
15137
|
size: "sm",
|
|
15068
15138
|
onClick: (e) => {
|
|
15069
15139
|
e.preventDefault();
|
|
15070
|
-
_optionalChain([data, 'access',
|
|
15140
|
+
_optionalChain([data, 'access', _442 => _442.next, 'optionalCall', _443 => _443(true)]);
|
|
15071
15141
|
},
|
|
15072
15142
|
disabled: !data.next,
|
|
15073
15143
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -15088,7 +15158,7 @@ function ContentListGrid(props) {
|
|
|
15088
15158
|
if (!data.next || !sentinelRef.current) return;
|
|
15089
15159
|
const observer = new IntersectionObserver(
|
|
15090
15160
|
(entries) => {
|
|
15091
|
-
if (_optionalChain([entries, 'access',
|
|
15161
|
+
if (_optionalChain([entries, 'access', _444 => _444[0], 'optionalAccess', _445 => _445.isIntersecting])) _optionalChain([data, 'access', _446 => _446.next, 'optionalCall', _447 => _447()]);
|
|
15092
15162
|
},
|
|
15093
15163
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
15094
15164
|
);
|
|
@@ -15838,7 +15908,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
15838
15908
|
newDigits[index] = digit;
|
|
15839
15909
|
setDigits(newDigits);
|
|
15840
15910
|
if (digit && index < 5) {
|
|
15841
|
-
_optionalChain([inputRefs, 'access',
|
|
15911
|
+
_optionalChain([inputRefs, 'access', _448 => _448.current, 'access', _449 => _449[index + 1], 'optionalAccess', _450 => _450.focus, 'call', _451 => _451()]);
|
|
15842
15912
|
}
|
|
15843
15913
|
const code = newDigits.join("");
|
|
15844
15914
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -15847,7 +15917,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
15847
15917
|
}, "handleChange");
|
|
15848
15918
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
15849
15919
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
15850
|
-
_optionalChain([inputRefs, 'access',
|
|
15920
|
+
_optionalChain([inputRefs, 'access', _452 => _452.current, 'access', _453 => _453[index - 1], 'optionalAccess', _454 => _454.focus, 'call', _455 => _455()]);
|
|
15851
15921
|
}
|
|
15852
15922
|
}, "handleKeyDown");
|
|
15853
15923
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -15856,7 +15926,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
15856
15926
|
if (pastedData.length === 6) {
|
|
15857
15927
|
const newDigits = pastedData.split("");
|
|
15858
15928
|
setDigits(newDigits);
|
|
15859
|
-
_optionalChain([inputRefs, 'access',
|
|
15929
|
+
_optionalChain([inputRefs, 'access', _456 => _456.current, 'access', _457 => _457[5], 'optionalAccess', _458 => _458.focus, 'call', _459 => _459()]);
|
|
15860
15930
|
onComplete(pastedData);
|
|
15861
15931
|
}
|
|
15862
15932
|
}, "handlePaste");
|
|
@@ -16067,8 +16137,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
16067
16137
|
try {
|
|
16068
16138
|
const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
16069
16139
|
id: _uuid.v4.call(void 0, ),
|
|
16070
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16071
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
16140
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _460 => _460.email]), () => ( "")),
|
|
16141
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _461 => _461.name])
|
|
16072
16142
|
});
|
|
16073
16143
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
16074
16144
|
await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -16219,7 +16289,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
16219
16289
|
const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
|
|
16220
16290
|
id: _uuid.v4.call(void 0, ),
|
|
16221
16291
|
name: name.trim(),
|
|
16222
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16292
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _462 => _462.email]), () => ( ""))
|
|
16223
16293
|
});
|
|
16224
16294
|
setQrCodeUri(setup.qrCodeUri);
|
|
16225
16295
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -16353,7 +16423,7 @@ function TwoFactorSettings() {
|
|
|
16353
16423
|
if (isLoading) {
|
|
16354
16424
|
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") }) }) });
|
|
16355
16425
|
}
|
|
16356
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
16426
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _463 => _463.isEnabled]), () => ( false));
|
|
16357
16427
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
16358
16428
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
16359
16429
|
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" }),
|
|
@@ -16391,7 +16461,7 @@ function TwoFactorSettings() {
|
|
|
16391
16461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
16392
16462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
16393
16463
|
] }),
|
|
16394
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
16464
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _464 => _464.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
16395
16465
|
] }) }),
|
|
16396
16466
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16397
16467
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -16569,9 +16639,9 @@ function AcceptInvitation() {
|
|
|
16569
16639
|
});
|
|
16570
16640
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
16571
16641
|
try {
|
|
16572
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
16642
|
+
if (!_optionalChain([params, 'optionalAccess', _465 => _465.code])) return;
|
|
16573
16643
|
const payload = {
|
|
16574
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
16644
|
+
code: _optionalChain([params, 'optionalAccess', _466 => _466.code]),
|
|
16575
16645
|
password: values.password
|
|
16576
16646
|
};
|
|
16577
16647
|
await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
|
|
@@ -16921,7 +16991,7 @@ function Logout({ storageKeys }) {
|
|
|
16921
16991
|
const generateUrl = usePageUrlGenerator();
|
|
16922
16992
|
_react.useEffect.call(void 0, () => {
|
|
16923
16993
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
16924
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
16994
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _467 => _467.length])) {
|
|
16925
16995
|
clearClientStorage(storageKeys);
|
|
16926
16996
|
}
|
|
16927
16997
|
await _chunkXAWKRNYMjs.AuthService.logout();
|
|
@@ -16944,14 +17014,14 @@ function RefreshUser() {
|
|
|
16944
17014
|
setUser(fullUser);
|
|
16945
17015
|
const token = {
|
|
16946
17016
|
userId: fullUser.id,
|
|
16947
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
17017
|
+
companyId: _optionalChain([fullUser, 'access', _468 => _468.company, 'optionalAccess', _469 => _469.id]),
|
|
16948
17018
|
roles: fullUser.roles.map((role) => role.id),
|
|
16949
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
17019
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _470 => _470.company, 'optionalAccess', _471 => _471.features, 'optionalAccess', _472 => _472.map, 'call', _473 => _473((feature) => feature.id)]), () => ( [])),
|
|
16950
17020
|
modules: fullUser.modules.map((module) => {
|
|
16951
17021
|
return { id: module.id, permissions: module.permissions };
|
|
16952
17022
|
})
|
|
16953
17023
|
};
|
|
16954
|
-
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
17024
|
+
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _474 => _474.updateToken, 'call', _475 => _475(token)]);
|
|
16955
17025
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
16956
17026
|
}
|
|
16957
17027
|
}, "loadFullUser");
|
|
@@ -17015,9 +17085,9 @@ function ResetPassword() {
|
|
|
17015
17085
|
});
|
|
17016
17086
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17017
17087
|
try {
|
|
17018
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17088
|
+
if (!_optionalChain([params, 'optionalAccess', _476 => _476.code])) return;
|
|
17019
17089
|
const payload = {
|
|
17020
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17090
|
+
code: _optionalChain([params, 'optionalAccess', _477 => _477.code]),
|
|
17021
17091
|
password: values.password
|
|
17022
17092
|
};
|
|
17023
17093
|
await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
|
|
@@ -17366,7 +17436,7 @@ function extractHeadings(blocks) {
|
|
|
17366
17436
|
function processBlocks(blockArray) {
|
|
17367
17437
|
for (const block of blockArray) {
|
|
17368
17438
|
if (block.type === "heading") {
|
|
17369
|
-
const level = _optionalChain([block, 'access',
|
|
17439
|
+
const level = _optionalChain([block, 'access', _478 => _478.props, 'optionalAccess', _479 => _479.level]) || 1;
|
|
17370
17440
|
const text = extractTextFromContent(block.content);
|
|
17371
17441
|
if (text.trim()) {
|
|
17372
17442
|
headings.push({
|
|
@@ -17709,7 +17779,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
17709
17779
|
})
|
|
17710
17780
|
};
|
|
17711
17781
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17712
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17782
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _480 => _480[field], 'optionalCall', _481 => _481()])).filter((col) => col !== void 0);
|
|
17713
17783
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
17714
17784
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17715
17785
|
}, "useHowToTableStructure");
|
|
@@ -17775,7 +17845,7 @@ function HowToMultiSelector({
|
|
|
17775
17845
|
retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
|
|
17776
17846
|
module: _chunkXAWKRNYMjs.Modules.HowTo,
|
|
17777
17847
|
getLabel: (howTo) => howTo.name,
|
|
17778
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
17848
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _482 => _482.id]),
|
|
17779
17849
|
onChange
|
|
17780
17850
|
}
|
|
17781
17851
|
);
|
|
@@ -17840,7 +17910,7 @@ function HowToSelector({
|
|
|
17840
17910
|
}, "setHowTo");
|
|
17841
17911
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
17842
17912
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
17843
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
17913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _483 => _483.value, 'optionalAccess', _484 => _484.name]), () => ( "")) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`generic.search.placeholder`, { type: t(`entities.howtos`, { count: 1 }) }))) }) }) }),
|
|
17844
17914
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17845
17915
|
_lucidereact.CircleX,
|
|
17846
17916
|
{
|
|
@@ -18195,9 +18265,9 @@ function CitationsTab({ citations, sources }) {
|
|
|
18195
18265
|
] }) }),
|
|
18196
18266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
18197
18267
|
const isOpen = expanded.has(chunk.id);
|
|
18198
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
18268
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _485 => _485.get, 'call', _486 => _486(chunk.nodeId)]) : void 0;
|
|
18199
18269
|
const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
|
|
18200
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
18270
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _487 => _487.name]), () => ( fallbackName));
|
|
18201
18271
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
18202
18272
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
18203
18273
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -18244,7 +18314,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
18244
18314
|
for (const c of citations) {
|
|
18245
18315
|
const id = c.nodeId;
|
|
18246
18316
|
if (!id) continue;
|
|
18247
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
18317
|
+
const source = _optionalChain([sources, 'optionalAccess', _488 => _488.get, 'call', _489 => _489(id)]);
|
|
18248
18318
|
if (!source) continue;
|
|
18249
18319
|
const existing = map.get(id);
|
|
18250
18320
|
if (existing) {
|
|
@@ -18309,7 +18379,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
18309
18379
|
const generate = usePageUrlGenerator();
|
|
18310
18380
|
const userMap = /* @__PURE__ */ new Map();
|
|
18311
18381
|
for (const u of users) {
|
|
18312
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
18382
|
+
if (!_optionalChain([u, 'optionalAccess', _490 => _490.id])) continue;
|
|
18313
18383
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
18314
18384
|
}
|
|
18315
18385
|
if (citations && sources) {
|
|
@@ -18413,7 +18483,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
18413
18483
|
}
|
|
18414
18484
|
return ids.size;
|
|
18415
18485
|
}, [message.citations, sources]);
|
|
18416
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
18486
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _491 => _491.length]), () => ( 0));
|
|
18417
18487
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
18418
18488
|
const visibleTabs = [];
|
|
18419
18489
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -18472,8 +18542,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
|
|
|
18472
18542
|
static async findManyByIds(params) {
|
|
18473
18543
|
const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
|
|
18474
18544
|
endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
|
|
18475
|
-
if (_optionalChain([params, 'access',
|
|
18476
|
-
if (_optionalChain([params, 'access',
|
|
18545
|
+
if (_optionalChain([params, 'access', _492 => _492.module, 'access', _493 => _493.inclusions, 'optionalAccess', _494 => _494.lists, 'optionalAccess', _495 => _495.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
|
|
18546
|
+
if (_optionalChain([params, 'access', _496 => _496.module, 'access', _497 => _497.inclusions, 'optionalAccess', _498 => _498.lists, 'optionalAccess', _499 => _499.types])) endpoint.limitToType(params.module.inclusions.lists.types);
|
|
18477
18547
|
return this.callApi({
|
|
18478
18548
|
type: params.module,
|
|
18479
18549
|
method: "GET" /* GET */,
|
|
@@ -18552,7 +18622,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
18552
18622
|
return void 0;
|
|
18553
18623
|
}
|
|
18554
18624
|
})()));
|
|
18555
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
18625
|
+
if (_optionalChain([author, 'optionalAccess', _500 => _500.id])) userMap.set(author.id, author);
|
|
18556
18626
|
}
|
|
18557
18627
|
return Array.from(userMap.values());
|
|
18558
18628
|
}, [resolved]);
|
|
@@ -18574,14 +18644,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
|
|
|
18574
18644
|
function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
|
|
18575
18645
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
18576
18646
|
const isUser = message.role === "user";
|
|
18577
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
18647
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _501 => _501.has, 'call', _502 => _502(message.id)]);
|
|
18578
18648
|
if (isUser) {
|
|
18579
18649
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
|
|
18580
18650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
|
|
18581
18651
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
18582
18652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
18583
18653
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
18584
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
18654
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _503 => _503(message.id)]), children: t("features.assistant.retry") })
|
|
18585
18655
|
] })
|
|
18586
18656
|
] });
|
|
18587
18657
|
}
|
|
@@ -18647,7 +18717,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
|
|
|
18647
18717
|
function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
|
|
18648
18718
|
const endRef = _react.useRef.call(void 0, null);
|
|
18649
18719
|
_react.useEffect.call(void 0, () => {
|
|
18650
|
-
_optionalChain([endRef, 'access',
|
|
18720
|
+
_optionalChain([endRef, 'access', _504 => _504.current, 'optionalAccess', _505 => _505.scrollIntoView, 'call', _506 => _506({ behavior: "smooth" })]);
|
|
18651
18721
|
}, [messages.length, sending]);
|
|
18652
18722
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 overflow-x-hidden overflow-y-auto px-6 py-5", children: [
|
|
18653
18723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18675,7 +18745,7 @@ function AssistantContainer() {
|
|
|
18675
18745
|
AssistantSidebar,
|
|
18676
18746
|
{
|
|
18677
18747
|
threads: ctx.threads,
|
|
18678
|
-
activeId: _optionalChain([ctx, 'access',
|
|
18748
|
+
activeId: _optionalChain([ctx, 'access', _507 => _507.assistant, 'optionalAccess', _508 => _508.id]),
|
|
18679
18749
|
onSelect: ctx.selectThread,
|
|
18680
18750
|
onNew: ctx.startNew
|
|
18681
18751
|
}
|
|
@@ -18768,14 +18838,14 @@ function NotificationsList({ archived }) {
|
|
|
18768
18838
|
] }),
|
|
18769
18839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
18770
18840
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
18771
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
18841
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _509 => _509.data, 'optionalAccess', _510 => _510.map, 'call', _511 => _511((notification) => {
|
|
18772
18842
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
18773
18843
|
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: [
|
|
18774
18844
|
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: _chunkXAWKRNYMjs.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" }),
|
|
18775
18845
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
18776
18846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
18777
18847
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
18778
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
18848
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _512 => _512.actor, 'optionalAccess', _513 => _513.name]), () => ( "")),
|
|
18779
18849
|
title: notificationData.title
|
|
18780
18850
|
}) }),
|
|
18781
18851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -19125,7 +19195,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
19125
19195
|
invalidEmail: "Please enter a valid email address"
|
|
19126
19196
|
};
|
|
19127
19197
|
async function copyToClipboard(text) {
|
|
19128
|
-
if (_optionalChain([navigator, 'access',
|
|
19198
|
+
if (_optionalChain([navigator, 'access', _514 => _514.clipboard, 'optionalAccess', _515 => _515.writeText])) {
|
|
19129
19199
|
try {
|
|
19130
19200
|
await navigator.clipboard.writeText(text);
|
|
19131
19201
|
return true;
|
|
@@ -19167,7 +19237,7 @@ function ReferralWidget({
|
|
|
19167
19237
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
19168
19238
|
const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
|
|
19169
19239
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
19170
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
19240
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _516 => _516.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
19171
19241
|
if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
|
|
19172
19242
|
return null;
|
|
19173
19243
|
}
|
|
@@ -19177,7 +19247,7 @@ function ReferralWidget({
|
|
|
19177
19247
|
if (success) {
|
|
19178
19248
|
setCopied(true);
|
|
19179
19249
|
_chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
|
|
19180
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
19250
|
+
_optionalChain([onLinkCopied, 'optionalCall', _517 => _517()]);
|
|
19181
19251
|
setTimeout(() => setCopied(false), 2e3);
|
|
19182
19252
|
} else {
|
|
19183
19253
|
_chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
|
|
@@ -19191,12 +19261,12 @@ function ReferralWidget({
|
|
|
19191
19261
|
try {
|
|
19192
19262
|
await sendInvite(email);
|
|
19193
19263
|
_chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
|
|
19194
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
19264
|
+
_optionalChain([onInviteSent, 'optionalCall', _518 => _518(email)]);
|
|
19195
19265
|
setEmail("");
|
|
19196
19266
|
} catch (err) {
|
|
19197
19267
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
19198
19268
|
_chunkXAWKRNYMjs.showError.call(void 0, error2.message);
|
|
19199
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
19269
|
+
_optionalChain([onInviteError, 'optionalCall', _519 => _519(error2)]);
|
|
19200
19270
|
}
|
|
19201
19271
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
19202
19272
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -19950,7 +20020,7 @@ function OAuthClientList({
|
|
|
19950
20020
|
OAuthClientCard,
|
|
19951
20021
|
{
|
|
19952
20022
|
client,
|
|
19953
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
20023
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _520 => _520(client)]),
|
|
19954
20024
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
19955
20025
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
19956
20026
|
},
|
|
@@ -19966,11 +20036,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
19966
20036
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
19967
20037
|
const isEditMode = !!client;
|
|
19968
20038
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
19969
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
19970
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
19971
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
19972
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
19973
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
20039
|
+
name: _optionalChain([client, 'optionalAccess', _521 => _521.name]) || "",
|
|
20040
|
+
description: _optionalChain([client, 'optionalAccess', _522 => _522.description]) || "",
|
|
20041
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _523 => _523.redirectUris, 'optionalAccess', _524 => _524.length]) ? client.redirectUris : [""],
|
|
20042
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _525 => _525.allowedScopes]) || [],
|
|
20043
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _526 => _526.isConfidential]), () => ( true))
|
|
19974
20044
|
});
|
|
19975
20045
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
19976
20046
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -20198,7 +20268,7 @@ function OAuthClientDetail({
|
|
|
20198
20268
|
] }),
|
|
20199
20269
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20200
20270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
20201
|
-
/* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
20271
|
+
/* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access', _527 => _527[scope], 'optionalAccess', _528 => _528.name]) || scope }, scope)) })
|
|
20202
20272
|
] }),
|
|
20203
20273
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20204
20274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -20342,7 +20412,7 @@ function OAuthConsentScreen({
|
|
|
20342
20412
|
if (error || !clientInfo) {
|
|
20343
20413
|
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: [
|
|
20344
20414
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
20345
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
20415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _529 => _529.message]) || "Invalid authorization request. Please try again." })
|
|
20346
20416
|
] }) }) }) });
|
|
20347
20417
|
}
|
|
20348
20418
|
const { client, scopes } = clientInfo;
|
|
@@ -20558,7 +20628,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
20558
20628
|
questionnaire: values.questionnaire
|
|
20559
20629
|
});
|
|
20560
20630
|
setIsSuccess(true);
|
|
20561
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
20631
|
+
_optionalChain([onSuccess, 'optionalCall', _530 => _530()]);
|
|
20562
20632
|
} catch (e) {
|
|
20563
20633
|
errorToast({ error: e });
|
|
20564
20634
|
} finally {
|
|
@@ -21196,7 +21266,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
21196
21266
|
] }),
|
|
21197
21267
|
roleIds.map((roleId) => {
|
|
21198
21268
|
const roleTokens = block[roleId];
|
|
21199
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21269
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _531 => _531[roleId]]), () => ( roleId));
|
|
21200
21270
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21201
21271
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
21202
21272
|
_chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21233,7 +21303,7 @@ function RbacContainer() {
|
|
|
21233
21303
|
}, []);
|
|
21234
21304
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
21235
21305
|
if (!matrix) return [];
|
|
21236
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21306
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _532 => _532[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _533 => _533[b]]), () => ( b))));
|
|
21237
21307
|
}, [matrix, moduleNames]);
|
|
21238
21308
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
21239
21309
|
if (roleNames) {
|
|
@@ -21296,7 +21366,7 @@ function RbacContainer() {
|
|
|
21296
21366
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
21297
21367
|
id !== selectedModuleId && "text-muted-foreground"
|
|
21298
21368
|
),
|
|
21299
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21369
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _534 => _534[id]]), () => ( id))
|
|
21300
21370
|
}
|
|
21301
21371
|
) }, id)) }) }),
|
|
21302
21372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21304,7 +21374,7 @@ function RbacContainer() {
|
|
|
21304
21374
|
{
|
|
21305
21375
|
moduleId: selectedModuleId,
|
|
21306
21376
|
block: selectedBlock,
|
|
21307
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21377
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _535 => _535[selectedModuleId]]), () => ( selectedModuleId)),
|
|
21308
21378
|
roleIds,
|
|
21309
21379
|
roleNames,
|
|
21310
21380
|
onOpenPicker: openPicker
|
|
@@ -21315,12 +21385,12 @@ function RbacContainer() {
|
|
|
21315
21385
|
RbacPermissionPicker,
|
|
21316
21386
|
{
|
|
21317
21387
|
open: !!activePicker,
|
|
21318
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21388
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _536 => _536.anchor]), () => ( null)),
|
|
21319
21389
|
value: activeValue,
|
|
21320
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21390
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _537 => _537.isRoleColumn]), () => ( false)),
|
|
21321
21391
|
knownSegments: activeSegments,
|
|
21322
21392
|
onSetValue: handleSetValue,
|
|
21323
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
21393
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _538 => _538.isRoleColumn]) ? handleClear : void 0,
|
|
21324
21394
|
onClose: closePicker
|
|
21325
21395
|
}
|
|
21326
21396
|
)
|
|
@@ -21387,7 +21457,7 @@ function RbacByRoleContainer() {
|
|
|
21387
21457
|
}, [roleNames]);
|
|
21388
21458
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
21389
21459
|
if (!matrix) return [];
|
|
21390
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21460
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _539 => _539[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _540 => _540[b]]), () => ( b))));
|
|
21391
21461
|
}, [matrix, moduleNames]);
|
|
21392
21462
|
_react.useEffect.call(void 0, () => {
|
|
21393
21463
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -21436,7 +21506,7 @@ function RbacByRoleContainer() {
|
|
|
21436
21506
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
21437
21507
|
id !== selectedRoleId && "text-muted-foreground"
|
|
21438
21508
|
),
|
|
21439
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21509
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _541 => _541[id]]), () => ( id))
|
|
21440
21510
|
}
|
|
21441
21511
|
) }, id)) }) }),
|
|
21442
21512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: sortedModuleIds.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-lg border border-accent bg-card", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "table", { className: "w-full text-sm", children: [
|
|
@@ -21456,7 +21526,7 @@ function RbacByRoleContainer() {
|
|
|
21456
21526
|
if (!block) return null;
|
|
21457
21527
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
21458
21528
|
const roleTokens = block[selectedRoleId];
|
|
21459
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21529
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _542 => _542[moduleId]]), () => ( moduleId));
|
|
21460
21530
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21461
21531
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21462
21532
|
"td",
|
|
@@ -21471,7 +21541,7 @@ function RbacByRoleContainer() {
|
|
|
21471
21541
|
_chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RbacPermissionCell, { value: cellValue2(defaultTokens, action) }) }, action))
|
|
21472
21542
|
] }),
|
|
21473
21543
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21474
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21544
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _543 => _543[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
21475
21545
|
_chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21476
21546
|
CellButton3,
|
|
21477
21547
|
{
|
|
@@ -21492,12 +21562,12 @@ function RbacByRoleContainer() {
|
|
|
21492
21562
|
RbacPermissionPicker,
|
|
21493
21563
|
{
|
|
21494
21564
|
open: !!activePicker,
|
|
21495
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21565
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _544 => _544.anchor]), () => ( null)),
|
|
21496
21566
|
value: activeValue,
|
|
21497
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21567
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _545 => _545.isRoleColumn]), () => ( false)),
|
|
21498
21568
|
knownSegments: activeSegments,
|
|
21499
21569
|
onSetValue: handleSetValue,
|
|
21500
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
21570
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _546 => _546.isRoleColumn]) ? handleClear : void 0,
|
|
21501
21571
|
onClose: closePicker
|
|
21502
21572
|
}
|
|
21503
21573
|
)
|
|
@@ -22018,4 +22088,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
22018
22088
|
|
|
22019
22089
|
|
|
22020
22090
|
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.errorToast = errorToast; exports.EditableAvatar = EditableAvatar; exports.TableCellAvatar = TableCellAvatar; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.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.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantContainer = AssistantContainer; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
22021
|
-
//# sourceMappingURL=chunk-
|
|
22091
|
+
//# sourceMappingURL=chunk-XHCHSTAX.js.map
|