@carlonicora/nextjs-jsonapi 4.2.3 → 5.0.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-J533UMWG.js → BlockNoteEditor-IU4IZBF3.js} +9 -9
- package/dist/{BlockNoteEditor-J533UMWG.js.map → BlockNoteEditor-IU4IZBF3.js.map} +1 -1
- package/dist/{BlockNoteEditor-NTKPWYWW.mjs → BlockNoteEditor-MLOWVEWH.mjs} +2 -2
- package/dist/billing/index.js +371 -371
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-NCWCC56Q.mjs → chunk-7F5Q3QQV.mjs} +30 -13
- package/dist/chunk-7F5Q3QQV.mjs.map +1 -0
- package/dist/{chunk-4EGA5UP5.js → chunk-ZPXXZRS2.js} +205 -188
- package/dist/chunk-ZPXXZRS2.js.map +1 -0
- package/dist/client/index.d.mts +7 -2
- package/dist/client/index.d.ts +7 -2
- package/dist/client/index.js +4 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +3 -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/dist/features/analytics/index.js +88 -88
- package/dist/features/analytics/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/dist/next-config/index.d.mts +0 -1
- package/dist/next-config/index.d.ts +0 -1
- package/dist/next-config/index.js +0 -6
- package/dist/next-config/index.js.map +1 -1
- package/dist/next-config/index.mjs +0 -6
- package/dist/next-config/index.mjs.map +1 -1
- package/package.json +4 -2
- package/pwa/offline.template.html +138 -0
- package/pwa/sw.js +175 -0
- package/src/features/notification/components/notifications/PushNotificationProvider.tsx +5 -1
- package/src/features/notification/components/notifications/__tests__/PushNotificationProvider.spec.tsx +51 -0
- package/src/hooks/__tests__/usePushNotifications.spec.tsx +87 -34
- package/src/hooks/usePushNotifications.ts +44 -18
- package/src/next-config/__tests__/createNextConfig.spec.ts +7 -5
- package/src/next-config/index.ts +1 -8
- package/src/pwa/__tests__/offline.template.spec.ts +246 -0
- package/src/pwa/__tests__/sw.spec.ts +309 -0
- package/dist/chunk-4EGA5UP5.js.map +0 -1
- package/dist/chunk-NCWCC56Q.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-NTKPWYWW.mjs.map → BlockNoteEditor-MLOWVEWH.mjs.map} +0 -0
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
var _chunkGPXYQMOZjs = require('./chunk-GPXYQMOZ.js');
|
|
17
16
|
|
|
18
17
|
|
|
@@ -10684,7 +10683,7 @@ FileInput.displayName = "FileInput";
|
|
|
10684
10683
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10685
10684
|
|
|
10686
10685
|
|
|
10687
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10686
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-IU4IZBF3.js"))), {
|
|
10688
10687
|
ssr: false
|
|
10689
10688
|
});
|
|
10690
10689
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -15185,16 +15184,16 @@ function urlBase64ToUint8Array(base64String) {
|
|
|
15185
15184
|
return outputArray;
|
|
15186
15185
|
}
|
|
15187
15186
|
_chunk7QVYU63Ejs.__name.call(void 0, urlBase64ToUint8Array, "urlBase64ToUint8Array");
|
|
15188
|
-
function usePushNotifications() {
|
|
15189
|
-
const { currentUser,
|
|
15187
|
+
function usePushNotifications(params) {
|
|
15188
|
+
const { currentUser, canSubscribe } = params;
|
|
15189
|
+
const userId = _optionalChain([currentUser, 'optionalAccess', _459 => _459.id]);
|
|
15190
15190
|
_react.useEffect.call(void 0, () => {
|
|
15191
|
+
if (!userId || !canSubscribe) return;
|
|
15191
15192
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15192
15193
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
15193
15194
|
try {
|
|
15194
|
-
const sessionKey = `push_registered_${
|
|
15195
|
-
const
|
|
15196
|
-
const swUrl = _chunkGHE4VT2Rjs.ENV.IS_PRODUCTION ? `${_chunkGPXYQMOZjs.getAppUrl.call(void 0, )}/sw.js` : `${_chunkGPXYQMOZjs.getAppUrl.call(void 0, )}/sw-dev.js`;
|
|
15197
|
-
const registration = await navigator.serviceWorker.register(swUrl);
|
|
15195
|
+
const sessionKey = `push_registered_${userId}`;
|
|
15196
|
+
const registration = await navigator.serviceWorker.register("/sw.js", { updateViaCache: "none" });
|
|
15198
15197
|
let permission = Notification.permission;
|
|
15199
15198
|
if (permission === "default") {
|
|
15200
15199
|
permission = await Notification.requestPermission();
|
|
@@ -15221,7 +15220,7 @@ function usePushNotifications() {
|
|
|
15221
15220
|
keys: subscription.toJSON().keys
|
|
15222
15221
|
};
|
|
15223
15222
|
const subscriptionHash = btoa(JSON.stringify(plainSubscription));
|
|
15224
|
-
if (
|
|
15223
|
+
if (sessionStorage.getItem(sessionKey) !== subscriptionHash) {
|
|
15225
15224
|
await _chunk4ORLPEK7js.PushService.register({ data: plainSubscription });
|
|
15226
15225
|
sessionStorage.setItem(sessionKey, subscriptionHash);
|
|
15227
15226
|
}
|
|
@@ -15230,10 +15229,26 @@ function usePushNotifications() {
|
|
|
15230
15229
|
}
|
|
15231
15230
|
}
|
|
15232
15231
|
}, "register");
|
|
15233
|
-
|
|
15234
|
-
}, [
|
|
15232
|
+
register();
|
|
15233
|
+
}, [userId, canSubscribe]);
|
|
15234
|
+
_react.useEffect.call(void 0, () => {
|
|
15235
|
+
if (!userId || !canSubscribe) return;
|
|
15236
|
+
if (!("serviceWorker" in navigator)) return;
|
|
15237
|
+
const sessionKey = `push_registered_${userId}`;
|
|
15238
|
+
const onMessage = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (event) => {
|
|
15239
|
+
if (_optionalChain([event, 'access', _460 => _460.data, 'optionalAccess', _461 => _461.type]) !== "PUSH_RESUBSCRIBED" || !event.data.subscription) return;
|
|
15240
|
+
const subscription = event.data.subscription;
|
|
15241
|
+
const subscriptionHash = btoa(JSON.stringify(subscription));
|
|
15242
|
+
if (sessionStorage.getItem(sessionKey) === subscriptionHash) return;
|
|
15243
|
+
void _chunk4ORLPEK7js.PushService.register({ data: subscription }).then(() => sessionStorage.setItem(sessionKey, subscriptionHash)).catch((error) => console.error("Error re-registering rotated push subscription:", error));
|
|
15244
|
+
}, "onMessage");
|
|
15245
|
+
const container = navigator.serviceWorker;
|
|
15246
|
+
container.addEventListener("message", onMessage);
|
|
15247
|
+
return () => container.removeEventListener("message", onMessage);
|
|
15248
|
+
}, [userId, canSubscribe]);
|
|
15235
15249
|
}
|
|
15236
15250
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
15251
|
+
var usePushNotifications_default = usePushNotifications;
|
|
15237
15252
|
|
|
15238
15253
|
// src/hooks/useSocket.ts
|
|
15239
15254
|
|
|
@@ -15304,14 +15319,14 @@ function useSocket({ token }) {
|
|
|
15304
15319
|
});
|
|
15305
15320
|
}, "handleMessage");
|
|
15306
15321
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
15307
|
-
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15308
|
-
if (!_optionalChain([resource, 'optionalAccess',
|
|
15322
|
+
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _462 => _462.data]), () => ( _optionalChain([data, 'optionalAccess', _463 => _463.jsonApi])));
|
|
15323
|
+
if (!_optionalChain([resource, 'optionalAccess', _464 => _464.type])) {
|
|
15309
15324
|
console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
|
|
15310
15325
|
return;
|
|
15311
15326
|
}
|
|
15312
15327
|
const notification = _chunk4ORLPEK7js.rehydrate.call(void 0, _chunk4ORLPEK7js.Modules.Notification, {
|
|
15313
15328
|
jsonApi: resource,
|
|
15314
|
-
included: _optionalChain([data, 'optionalAccess',
|
|
15329
|
+
included: _optionalChain([data, 'optionalAccess', _465 => _465.included]) || []
|
|
15315
15330
|
});
|
|
15316
15331
|
if (notification) {
|
|
15317
15332
|
setSocketNotifications((prev) => {
|
|
@@ -15435,11 +15450,11 @@ function BreadcrumbMobile({
|
|
|
15435
15450
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Breadcrumb, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbList, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: rootLabel }) }) }) });
|
|
15436
15451
|
}
|
|
15437
15452
|
if (allItems.length <= 1) {
|
|
15438
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess',
|
|
15453
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground block min-w-0 truncate px-1.5 text-xs/relaxed font-normal", children: _optionalChain([lastItem, 'optionalAccess', _466 => _466.name]) });
|
|
15439
15454
|
}
|
|
15440
15455
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
15441
15456
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex min-h-9 min-w-0 items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
|
|
15442
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess',
|
|
15457
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: _optionalChain([lastItem, 'optionalAccess', _467 => _467.name]) }),
|
|
15443
15458
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5 shrink-0" })
|
|
15444
15459
|
] }),
|
|
15445
15460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map(
|
|
@@ -15457,8 +15472,8 @@ function BreadcrumbMobile({
|
|
|
15457
15472
|
href: item.href,
|
|
15458
15473
|
className: _chunk4ORLPEK7js.cn.call(void 0, props.className, "text-foreground font-normal"),
|
|
15459
15474
|
onClick: (event) => {
|
|
15460
|
-
_optionalChain([props, 'access',
|
|
15461
|
-
_optionalChain([item, 'access',
|
|
15475
|
+
_optionalChain([props, 'access', _468 => _468.onClick, 'optionalCall', _469 => _469(event)]);
|
|
15476
|
+
_optionalChain([item, 'access', _470 => _470.onClick, 'optionalCall', _471 => _471()]);
|
|
15462
15477
|
},
|
|
15463
15478
|
children: props.children
|
|
15464
15479
|
}
|
|
@@ -15476,7 +15491,7 @@ function BreadcrumbNavigation({ items, rootLabel, showRoot = true }) {
|
|
|
15476
15491
|
const generateUrl = usePageUrlGenerator();
|
|
15477
15492
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
15478
15493
|
const isMobile = _chunk4ORLPEK7js.useIsMobile.call(void 0, );
|
|
15479
|
-
const root = _optionalChain([rootLabel, 'optionalAccess',
|
|
15494
|
+
const root = _optionalChain([rootLabel, 'optionalAccess', _472 => _472.trim, 'call', _473 => _473()]) ? rootLabel : t(`common.home`);
|
|
15480
15495
|
if (isMobile) {
|
|
15481
15496
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root, showRoot });
|
|
15482
15497
|
}
|
|
@@ -15874,12 +15889,12 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
|
|
|
15874
15889
|
|
|
15875
15890
|
function mermaidSourceOf(node) {
|
|
15876
15891
|
const pre = node;
|
|
15877
|
-
const code = _optionalChain([pre, 'optionalAccess',
|
|
15878
|
-
if (_optionalChain([code, 'optionalAccess',
|
|
15879
|
-
const classNames = Array.isArray(_optionalChain([code, 'access',
|
|
15892
|
+
const code = _optionalChain([pre, 'optionalAccess', _474 => _474.children, 'optionalAccess', _475 => _475[0]]);
|
|
15893
|
+
if (_optionalChain([code, 'optionalAccess', _476 => _476.tagName]) !== "code") return void 0;
|
|
15894
|
+
const classNames = Array.isArray(_optionalChain([code, 'access', _477 => _477.properties, 'optionalAccess', _478 => _478.className])) ? code.properties.className : [];
|
|
15880
15895
|
if (!classNames.includes("language-mermaid")) return void 0;
|
|
15881
|
-
const text = _optionalChain([code, 'access',
|
|
15882
|
-
if (_optionalChain([text, 'optionalAccess',
|
|
15896
|
+
const text = _optionalChain([code, 'access', _479 => _479.children, 'optionalAccess', _480 => _480[0]]);
|
|
15897
|
+
if (_optionalChain([text, 'optionalAccess', _481 => _481.type]) !== "text" || typeof text.value !== "string") return void 0;
|
|
15883
15898
|
return text.value;
|
|
15884
15899
|
}
|
|
15885
15900
|
_chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
|
|
@@ -16136,7 +16151,7 @@ var railTriggerClass = _chunk4ORLPEK7js.cn.call(void 0,
|
|
|
16136
16151
|
"data-active:text-primary dark:data-active:text-primary",
|
|
16137
16152
|
"data-active:font-medium data-active:shadow-none"
|
|
16138
16153
|
);
|
|
16139
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
16154
|
+
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _482 => _482.key, 'optionalAccess', _483 => _483.name]))), () => ( tab.label)), "tabValue");
|
|
16140
16155
|
function RoundPageContainer({
|
|
16141
16156
|
module,
|
|
16142
16157
|
id,
|
|
@@ -16168,7 +16183,7 @@ function RoundPageContainer({
|
|
|
16168
16183
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
16169
16184
|
_react.useEffect.call(void 0, () => {
|
|
16170
16185
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
16171
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
16186
|
+
const stored = _optionalChain([match, 'optionalAccess', _484 => _484.split, 'call', _485 => _485("="), 'access', _486 => _486[1]]);
|
|
16172
16187
|
if (stored === "true") setShowDetailsState(true);
|
|
16173
16188
|
else if (stored === "false") setShowDetailsState(false);
|
|
16174
16189
|
}, []);
|
|
@@ -16183,7 +16198,7 @@ function RoundPageContainer({
|
|
|
16183
16198
|
const clip = isFixed ? `overflow-hidden` : ``;
|
|
16184
16199
|
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
16185
16200
|
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
16186
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
16201
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _487 => _487.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
16187
16202
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
16188
16203
|
(value) => {
|
|
16189
16204
|
setShowDetailsState(value);
|
|
@@ -16216,13 +16231,13 @@ function RoundPageContainer({
|
|
|
16216
16231
|
} else {
|
|
16217
16232
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key }, mode: "push" });
|
|
16218
16233
|
}
|
|
16219
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
16234
|
+
_optionalChain([onSectionChange, 'optionalCall', _488 => _488(key)]);
|
|
16220
16235
|
},
|
|
16221
16236
|
[module, id, rewriteUrl, onSectionChange]
|
|
16222
16237
|
);
|
|
16223
|
-
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess',
|
|
16224
|
-
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
16225
|
-
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
16238
|
+
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _489 => _489.find, 'call', _490 => _490((t2) => tabValue(t2) === activeTab)]);
|
|
16239
|
+
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _491 => _491.fillHeight]) === true;
|
|
16240
|
+
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _492 => _492.constrainWidth]) === true;
|
|
16226
16241
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
16227
16242
|
const tabItems = _react.useMemo.call(void 0,
|
|
16228
16243
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
@@ -16233,7 +16248,7 @@ function RoundPageContainer({
|
|
|
16233
16248
|
const mobileFlow = isMobile && isFixed && (!activeFillHeight || activeDocumentTab) && !fullWidth;
|
|
16234
16249
|
const innerClip = mobileFlow ? `` : clip;
|
|
16235
16250
|
const innerScrollY = mobileFlow ? `` : scrollY;
|
|
16236
|
-
const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess',
|
|
16251
|
+
const showMobileSectionPicker = (_nullishCoalesce(_optionalChain([tabs, 'optionalAccess', _493 => _493.length]), () => ( 0))) > 1;
|
|
16237
16252
|
if (!isReady) {
|
|
16238
16253
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16239
16254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16633,14 +16648,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
16633
16648
|
const entityType = target.dataset.mentionType;
|
|
16634
16649
|
const alias = target.dataset.mentionAlias;
|
|
16635
16650
|
setHovered((prev) => {
|
|
16636
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
16651
|
+
if (_optionalChain([prev, 'optionalAccess', _494 => _494.id]) === id && _optionalChain([prev, 'optionalAccess', _495 => _495.element]) === target) return prev;
|
|
16637
16652
|
return { id, entityType, alias, element: target };
|
|
16638
16653
|
});
|
|
16639
16654
|
}, "handleMouseOver");
|
|
16640
16655
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
16641
16656
|
const target = e.target.closest("[data-mention-id]");
|
|
16642
16657
|
if (!target) return;
|
|
16643
|
-
const related = _optionalChain([e, 'access',
|
|
16658
|
+
const related = _optionalChain([e, 'access', _496 => _496.relatedTarget, 'optionalAccess', _497 => _497.closest, 'call', _498 => _498("[data-mention-id]")]);
|
|
16644
16659
|
if (related) return;
|
|
16645
16660
|
scheduleClose();
|
|
16646
16661
|
}, "handleMouseOut");
|
|
@@ -16654,7 +16669,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
16654
16669
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
16655
16670
|
if (!hovered || !mentionResolveFn) return null;
|
|
16656
16671
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
16657
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
16672
|
+
if (!_optionalChain([resolved, 'optionalAccess', _499 => _499.HoverContent])) return null;
|
|
16658
16673
|
const ContentComponent = resolved.HoverContent;
|
|
16659
16674
|
const rect = hovered.element.getBoundingClientRect();
|
|
16660
16675
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -16698,28 +16713,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
16698
16713
|
}, "parseMentionElement");
|
|
16699
16714
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
16700
16715
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
16701
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16716
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _500 => _500(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
16702
16717
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
16703
16718
|
"@",
|
|
16704
16719
|
displayName
|
|
16705
16720
|
] });
|
|
16706
16721
|
}, "MentionExternalHTML");
|
|
16707
16722
|
const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
16708
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16723
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _501 => _501(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
16709
16724
|
if (disableMention) {
|
|
16710
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
16711
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
16725
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _502 => _502(props.id, props.entityType, displayName)]);
|
|
16726
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _503 => _503.url]), () => ( "#")), className: "text-primary", children: [
|
|
16712
16727
|
"@",
|
|
16713
16728
|
displayName
|
|
16714
16729
|
] });
|
|
16715
16730
|
}
|
|
16716
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
16717
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
16731
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _504 => _504(props.id, props.entityType, displayName)]);
|
|
16732
|
+
if (_optionalChain([resolved, 'optionalAccess', _505 => _505.Inline])) {
|
|
16718
16733
|
const Custom = resolved.Inline;
|
|
16719
16734
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
16720
16735
|
}
|
|
16721
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
16722
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
16736
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _506 => _506.url]), () => ( "#"));
|
|
16737
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _507 => _507.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
16723
16738
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16724
16739
|
_link2.default,
|
|
16725
16740
|
{
|
|
@@ -16827,7 +16842,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16827
16842
|
if (!suggestionMenuComponent) return void 0;
|
|
16828
16843
|
const Component2 = suggestionMenuComponent;
|
|
16829
16844
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
16830
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
16845
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _508 => _508.items, 'access', _509 => _509[0], 'optionalAccess', _510 => _510.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
16831
16846
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16832
16847
|
Component2,
|
|
16833
16848
|
{
|
|
@@ -16836,7 +16851,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16836
16851
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
16837
16852
|
onItemClick: (item) => {
|
|
16838
16853
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
16839
|
-
_optionalChain([props, 'access',
|
|
16854
|
+
_optionalChain([props, 'access', _511 => _511.onItemClick, 'optionalCall', _512 => _512(item)]);
|
|
16840
16855
|
}
|
|
16841
16856
|
}
|
|
16842
16857
|
);
|
|
@@ -17050,10 +17065,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
17050
17065
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17051
17066
|
SelectRowCheckbox,
|
|
17052
17067
|
{
|
|
17053
|
-
checked: _optionalChain([params, 'access',
|
|
17068
|
+
checked: _optionalChain([params, 'access', _513 => _513.checkedIds, 'optionalAccess', _514 => _514.includes, 'call', _515 => _515(row.getValue(params.name))]) || false,
|
|
17054
17069
|
onCheckedChange: (value) => {
|
|
17055
17070
|
row.toggleSelected(!!value);
|
|
17056
|
-
_optionalChain([params, 'access',
|
|
17071
|
+
_optionalChain([params, 'access', _516 => _516.toggleId, 'optionalCall', _517 => _517(row.getValue(params.name))]);
|
|
17057
17072
|
}
|
|
17058
17073
|
}
|
|
17059
17074
|
) : null, "cell"),
|
|
@@ -17111,7 +17126,7 @@ function useJsonApiGet(params) {
|
|
|
17111
17126
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
17112
17127
|
const isMounted = _react.useRef.call(void 0, true);
|
|
17113
17128
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
17114
|
-
if (_optionalChain([params, 'access',
|
|
17129
|
+
if (_optionalChain([params, 'access', _518 => _518.options, 'optionalAccess', _519 => _519.enabled]) === false) return;
|
|
17115
17130
|
setLoading(true);
|
|
17116
17131
|
setError(null);
|
|
17117
17132
|
try {
|
|
@@ -17138,9 +17153,9 @@ function useJsonApiGet(params) {
|
|
|
17138
17153
|
setLoading(false);
|
|
17139
17154
|
}
|
|
17140
17155
|
}
|
|
17141
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
17156
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _520 => _520.options, 'optionalAccess', _521 => _521.enabled])]);
|
|
17142
17157
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
17143
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
17158
|
+
if (!_optionalChain([response, 'optionalAccess', _522 => _522.nextPage])) return;
|
|
17144
17159
|
setLoading(true);
|
|
17145
17160
|
try {
|
|
17146
17161
|
const nextResponse = await response.nextPage();
|
|
@@ -17161,7 +17176,7 @@ function useJsonApiGet(params) {
|
|
|
17161
17176
|
}
|
|
17162
17177
|
}, [response]);
|
|
17163
17178
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
17164
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
17179
|
+
if (!_optionalChain([response, 'optionalAccess', _523 => _523.prevPage])) return;
|
|
17165
17180
|
setLoading(true);
|
|
17166
17181
|
try {
|
|
17167
17182
|
const prevResponse = await response.prevPage();
|
|
@@ -17187,15 +17202,15 @@ function useJsonApiGet(params) {
|
|
|
17187
17202
|
return () => {
|
|
17188
17203
|
isMounted.current = false;
|
|
17189
17204
|
};
|
|
17190
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
17205
|
+
}, [fetchData, ..._optionalChain([params, 'access', _524 => _524.options, 'optionalAccess', _525 => _525.deps]) || []]);
|
|
17191
17206
|
return {
|
|
17192
17207
|
data,
|
|
17193
17208
|
loading,
|
|
17194
17209
|
error,
|
|
17195
17210
|
response,
|
|
17196
17211
|
refetch: fetchData,
|
|
17197
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
17198
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
17212
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _526 => _526.next]),
|
|
17213
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _527 => _527.prev]),
|
|
17199
17214
|
fetchNextPage,
|
|
17200
17215
|
fetchPreviousPage
|
|
17201
17216
|
};
|
|
@@ -17273,17 +17288,17 @@ function useJsonApiMutation(config) {
|
|
|
17273
17288
|
if (apiResponse.ok) {
|
|
17274
17289
|
const resultData = apiResponse.data;
|
|
17275
17290
|
setData(resultData);
|
|
17276
|
-
_optionalChain([config, 'access',
|
|
17291
|
+
_optionalChain([config, 'access', _528 => _528.onSuccess, 'optionalCall', _529 => _529(resultData)]);
|
|
17277
17292
|
return resultData;
|
|
17278
17293
|
} else {
|
|
17279
17294
|
setError(apiResponse.error);
|
|
17280
|
-
_optionalChain([config, 'access',
|
|
17295
|
+
_optionalChain([config, 'access', _530 => _530.onError, 'optionalCall', _531 => _531(apiResponse.error)]);
|
|
17281
17296
|
return null;
|
|
17282
17297
|
}
|
|
17283
17298
|
} catch (err) {
|
|
17284
17299
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
17285
17300
|
setError(errorMessage);
|
|
17286
|
-
_optionalChain([config, 'access',
|
|
17301
|
+
_optionalChain([config, 'access', _532 => _532.onError, 'optionalCall', _533 => _533(errorMessage)]);
|
|
17287
17302
|
return null;
|
|
17288
17303
|
} finally {
|
|
17289
17304
|
setLoading(false);
|
|
@@ -17356,7 +17371,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
17356
17371
|
{
|
|
17357
17372
|
href: hasRole(_chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
17358
17373
|
page: "/administration",
|
|
17359
|
-
id: _optionalChain([_chunk4ORLPEK7js.Modules, 'access',
|
|
17374
|
+
id: _optionalChain([_chunk4ORLPEK7js.Modules, 'access', _534 => _534.Company, 'access', _535 => _535.pageUrl, 'optionalAccess', _536 => _536.substring, 'call', _537 => _537(1)]),
|
|
17360
17375
|
childPage: company.id
|
|
17361
17376
|
}) : generateUrl({ page: _chunk4ORLPEK7js.Modules.Company, id: company.id }),
|
|
17362
17377
|
children: row.getValue("name")
|
|
@@ -17372,7 +17387,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
17372
17387
|
})
|
|
17373
17388
|
};
|
|
17374
17389
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17375
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17390
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _538 => _538[field], 'optionalCall', _539 => _539()])).filter((col) => col !== void 0);
|
|
17376
17391
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
17377
17392
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17378
17393
|
}, "useCompanyTableStructure");
|
|
@@ -17385,7 +17400,7 @@ var DAY_MS = 1e3 * 60 * 60 * 24;
|
|
|
17385
17400
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
17386
17401
|
if (!currentUser || !_chunkG4JR3SFVjs.isRolesConfigured.call(void 0, )) return false;
|
|
17387
17402
|
const adminRoleId = _chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator;
|
|
17388
|
-
return !!_optionalChain([currentUser, 'access',
|
|
17403
|
+
return !!_optionalChain([currentUser, 'access', _540 => _540.roles, 'optionalAccess', _541 => _541.some, 'call', _542 => _542((role) => role.id === adminRoleId)]);
|
|
17389
17404
|
}, "isAdministrator");
|
|
17390
17405
|
function useSubscriptionStatus() {
|
|
17391
17406
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -17502,7 +17517,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
17502
17517
|
})
|
|
17503
17518
|
};
|
|
17504
17519
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17505
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17520
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _543 => _543[field], 'optionalCall', _544 => _544()])).filter((col) => col !== void 0);
|
|
17506
17521
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
17507
17522
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17508
17523
|
}, "useRoleTableStructure");
|
|
@@ -17619,8 +17634,8 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
17619
17634
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17620
17635
|
const fmt = useBillingFormatOptions();
|
|
17621
17636
|
const generateUrl = usePageUrlGenerator();
|
|
17622
|
-
const onClone = _optionalChain([params, 'access',
|
|
17623
|
-
const onExport = _optionalChain([params, 'access',
|
|
17637
|
+
const onClone = _optionalChain([params, 'access', _545 => _545.context, 'optionalAccess', _546 => _546.onClone]);
|
|
17638
|
+
const onExport = _optionalChain([params, 'access', _547 => _547.context, 'optionalAccess', _548 => _548.onExport]);
|
|
17624
17639
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
17625
17640
|
return params.data.map((price) => {
|
|
17626
17641
|
const entry = { jsonApiData: price };
|
|
@@ -17685,7 +17700,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
17685
17700
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
17686
17701
|
price.active ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGreen", children: t("billing.admin.prices.status.active") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("billing.admin.prices.status.archived") }),
|
|
17687
17702
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
17688
|
-
_optionalChain([price, 'access',
|
|
17703
|
+
_optionalChain([price, 'access', _549 => _549.recurring, 'optionalAccess', _550 => _550.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
|
|
17689
17704
|
] });
|
|
17690
17705
|
}, "cell"),
|
|
17691
17706
|
enableSorting: false,
|
|
@@ -17733,7 +17748,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
17733
17748
|
})
|
|
17734
17749
|
};
|
|
17735
17750
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17736
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17751
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _551 => _551[field], 'optionalCall', _552 => _552()])).filter((col) => col !== void 0);
|
|
17737
17752
|
}, [params.fields, fieldColumnMap, t, fmt, generateUrl, onClone, onExport]);
|
|
17738
17753
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17739
17754
|
}, "useStripePriceTableStructure");
|
|
@@ -17792,7 +17807,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
17792
17807
|
})
|
|
17793
17808
|
};
|
|
17794
17809
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17795
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17810
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _553 => _553[field], 'optionalCall', _554 => _554()])).filter((col) => col !== void 0);
|
|
17796
17811
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
17797
17812
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17798
17813
|
}, "useStripeProductTableStructure");
|
|
@@ -17815,7 +17830,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, parseQuestionnaire, "parseQuestionnaire");
|
|
|
17815
17830
|
var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
17816
17831
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
17817
17832
|
const locale = _chunk4ORLPEK7js.useI18nLocale.call(void 0, );
|
|
17818
|
-
const onInvite = _optionalChain([params, 'access',
|
|
17833
|
+
const onInvite = _optionalChain([params, 'access', _555 => _555.context, 'optionalAccess', _556 => _556.onInvite]);
|
|
17819
17834
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
17820
17835
|
return params.data.map((entry) => {
|
|
17821
17836
|
const row = { jsonApiData: entry };
|
|
@@ -17895,7 +17910,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
17895
17910
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => {
|
|
17896
17911
|
const entry = row.original.jsonApiData;
|
|
17897
17912
|
if (entry.status === "confirmed") {
|
|
17898
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall',
|
|
17913
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Button, { size: "sm", variant: "outline", onClick: () => _optionalChain([onInvite, 'optionalCall', _557 => _557(entry)]), children: [
|
|
17899
17914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Send, { className: "me-2 h-4 w-4" }),
|
|
17900
17915
|
t("waitlist.admin.actions.invite")
|
|
17901
17916
|
] });
|
|
@@ -17913,7 +17928,7 @@ var useWaitlistTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
17913
17928
|
})
|
|
17914
17929
|
};
|
|
17915
17930
|
const columns = _react.useMemo.call(void 0, () => {
|
|
17916
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17931
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _558 => _558[field], 'optionalCall', _559 => _559()])).filter((col) => col !== void 0);
|
|
17917
17932
|
}, [params.fields, fieldColumnMap, t, locale]);
|
|
17918
17933
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17919
17934
|
}, "useWaitlistTableStructure");
|
|
@@ -18014,11 +18029,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
18014
18029
|
return params.fields.map((field) => {
|
|
18015
18030
|
const localHandler = fieldColumnMap[field];
|
|
18016
18031
|
if (localHandler) return localHandler();
|
|
18017
|
-
const customHandler = _optionalChain([params, 'access',
|
|
18032
|
+
const customHandler = _optionalChain([params, 'access', _560 => _560.context, 'optionalAccess', _561 => _561.customCells, 'optionalAccess', _562 => _562[field]]);
|
|
18018
18033
|
if (customHandler) return customHandler({ t });
|
|
18019
18034
|
return void 0;
|
|
18020
18035
|
}).filter((col) => col !== void 0);
|
|
18021
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
18036
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _563 => _563.context, 'optionalAccess', _564 => _564.customCells])]);
|
|
18022
18037
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
18023
18038
|
}, "useContentTableStructure");
|
|
18024
18039
|
|
|
@@ -18253,17 +18268,17 @@ function useOAuthConsent(params, options) {
|
|
|
18253
18268
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
18254
18269
|
const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
|
|
18255
18270
|
const [companyId, setCompanyId] = _react.useState.call(void 0, void 0);
|
|
18256
|
-
const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call',
|
|
18257
|
-
const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
18271
|
+
const contextCompanyId = _optionalChain([useCurrentUserContextOptional, 'call', _565 => _565(), 'optionalAccess', _566 => _566.company, 'optionalAccess', _567 => _567.id]);
|
|
18272
|
+
const currentCompanyId = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _568 => _568.defaultCompanyId]), () => ( contextCompanyId));
|
|
18258
18273
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
18259
18274
|
const tRef = _react.useRef.call(void 0, t);
|
|
18260
18275
|
tRef.current = t;
|
|
18261
18276
|
_react.useEffect.call(void 0, () => {
|
|
18262
|
-
const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess',
|
|
18277
|
+
const companies = _nullishCoalesce(_optionalChain([clientInfo, 'optionalAccess', _569 => _569.companies]), () => ( []));
|
|
18263
18278
|
if (companies.length === 0) return;
|
|
18264
18279
|
if (companyId && companies.some((company) => company.id === companyId)) return;
|
|
18265
18280
|
const current = currentCompanyId ? companies.find((company) => company.id === currentCompanyId) : void 0;
|
|
18266
|
-
setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess',
|
|
18281
|
+
setCompanyId(_nullishCoalesce(_optionalChain([current, 'optionalAccess', _570 => _570.id]), () => ( _optionalChain([companies, 'access', _571 => _571[0], 'optionalAccess', _572 => _572.id]))));
|
|
18267
18282
|
}, [clientInfo, currentCompanyId, companyId]);
|
|
18268
18283
|
_react.useEffect.call(void 0, () => {
|
|
18269
18284
|
const fetchInfo = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -18349,7 +18364,7 @@ function useOAuthScopeText() {
|
|
|
18349
18364
|
};
|
|
18350
18365
|
}
|
|
18351
18366
|
const info = typeof scope === "string" ? void 0 : scope;
|
|
18352
|
-
return { name: _optionalChain([info, 'optionalAccess',
|
|
18367
|
+
return { name: _optionalChain([info, 'optionalAccess', _573 => _573.name]) || id, description: _nullishCoalesce(_optionalChain([info, 'optionalAccess', _574 => _574.description]), () => ( "")) };
|
|
18353
18368
|
},
|
|
18354
18369
|
[t]
|
|
18355
18370
|
);
|
|
@@ -18403,7 +18418,7 @@ function ContentTableSearch({ data }) {
|
|
|
18403
18418
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
18404
18419
|
if (!isExpanded) {
|
|
18405
18420
|
setIsFocused(true);
|
|
18406
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
18421
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _575 => _575.current, 'optionalAccess', _576 => _576.focus, 'call', _577 => _577()]), 50);
|
|
18407
18422
|
}
|
|
18408
18423
|
}, "handleSearchIconClick");
|
|
18409
18424
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -18489,7 +18504,7 @@ function getGroupKeys(item, field) {
|
|
|
18489
18504
|
return [String(_nullishCoalesce(value, () => ( "")))];
|
|
18490
18505
|
}
|
|
18491
18506
|
_chunk7QVYU63Ejs.__name.call(void 0, getGroupKeys, "getGroupKeys");
|
|
18492
|
-
var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access',
|
|
18507
|
+
var isClassComponent = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (component) => typeof component === "function" && !!_optionalChain([component, 'access', _578 => _578.prototype, 'optionalAccess', _579 => _579.isReactComponent]), "isClassComponent");
|
|
18493
18508
|
function StableCell({ render, context }) {
|
|
18494
18509
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render(context) });
|
|
18495
18510
|
}
|
|
@@ -18513,7 +18528,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18513
18528
|
if (data.isLoaded) setPendingDirection(null);
|
|
18514
18529
|
}, [data.isLoaded]);
|
|
18515
18530
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
18516
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
18531
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _580 => _580.data]), () => ( EMPTY_ARRAY)),
|
|
18517
18532
|
fields,
|
|
18518
18533
|
checkedIds,
|
|
18519
18534
|
toggleId,
|
|
@@ -18543,7 +18558,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18543
18558
|
...props.renderExpandedRow && {
|
|
18544
18559
|
getExpandedRowModel: _reacttable.getExpandedRowModel.call(void 0, ),
|
|
18545
18560
|
// Key rows by record id so an expansion stays with its record when a search or filter reorders the rows.
|
|
18546
|
-
getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access',
|
|
18561
|
+
getRowId: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (row, index) => _nullishCoalesce(_optionalChain([row, 'access', _581 => _581.jsonApiData, 'optionalAccess', _582 => _582.id]), () => ( String(index))), "getRowId"),
|
|
18547
18562
|
getRowCanExpand: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => true, "getRowCanExpand"),
|
|
18548
18563
|
onExpandedChange: setExpanded,
|
|
18549
18564
|
state: { expanded }
|
|
@@ -18560,7 +18575,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18560
18575
|
});
|
|
18561
18576
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
18562
18577
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
18563
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
18578
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _583 => _583.rows, 'optionalAccess', _584 => _584.length])) return null;
|
|
18564
18579
|
const groupMap = /* @__PURE__ */ new Map();
|
|
18565
18580
|
for (const row of rowModel.rows) {
|
|
18566
18581
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -18639,20 +18654,20 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18639
18654
|
) }),
|
|
18640
18655
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
18641
18656
|
const meta = header.column.columnDef.meta;
|
|
18642
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
18657
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _585 => _585.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
18643
18658
|
}) }, headerGroup.id))
|
|
18644
18659
|
] }),
|
|
18645
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
18646
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access',
|
|
18660
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _586 => _586.rows, 'optionalAccess', _587 => _587.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
18661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-muted px-4 py-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MicroLabel, { children: _nullishCoalesce(_optionalChain([props, 'access', _588 => _588.groupLabel, 'optionalCall', _589 => _589(group.groupKey)]), () => ( group.groupKey)) }) }) }),
|
|
18647
18662
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
18648
18663
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18649
18664
|
TableRow,
|
|
18650
18665
|
{
|
|
18651
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
18666
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _590 => _590(row.original.jsonApiData)]),
|
|
18652
18667
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
18653
18668
|
children: row.getVisibleCells().map((cell) => {
|
|
18654
18669
|
const meta = cell.column.columnDef.meta;
|
|
18655
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
18670
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _591 => _591.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
18656
18671
|
})
|
|
18657
18672
|
}
|
|
18658
18673
|
),
|
|
@@ -18662,11 +18677,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18662
18677
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18663
18678
|
TableRow,
|
|
18664
18679
|
{
|
|
18665
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
18680
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _592 => _592(row.original.jsonApiData)]),
|
|
18666
18681
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
18667
18682
|
children: row.getVisibleCells().map((cell) => {
|
|
18668
18683
|
const meta = cell.column.columnDef.meta;
|
|
18669
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
18684
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _593 => _593.className]), children: renderCell(cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
18670
18685
|
})
|
|
18671
18686
|
}
|
|
18672
18687
|
),
|
|
@@ -18681,7 +18696,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18681
18696
|
onClick: (e) => {
|
|
18682
18697
|
e.preventDefault();
|
|
18683
18698
|
setPendingDirection("prev");
|
|
18684
|
-
_optionalChain([data, 'access',
|
|
18699
|
+
_optionalChain([data, 'access', _594 => _594.previous, 'optionalCall', _595 => _595(true)]);
|
|
18685
18700
|
},
|
|
18686
18701
|
disabled: !data.previous || pendingDirection !== null,
|
|
18687
18702
|
children: pendingDirection === "prev" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" })
|
|
@@ -18696,7 +18711,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
18696
18711
|
onClick: (e) => {
|
|
18697
18712
|
e.preventDefault();
|
|
18698
18713
|
setPendingDirection("next");
|
|
18699
|
-
_optionalChain([data, 'access',
|
|
18714
|
+
_optionalChain([data, 'access', _596 => _596.next, 'optionalCall', _597 => _597(true)]);
|
|
18700
18715
|
},
|
|
18701
18716
|
disabled: !data.next || pendingDirection !== null,
|
|
18702
18717
|
children: pendingDirection === "next" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4 rtl:rotate-180" })
|
|
@@ -18718,7 +18733,7 @@ function ContentListGrid(props) {
|
|
|
18718
18733
|
if (!data.next || !sentinelRef.current) return;
|
|
18719
18734
|
const observer = new IntersectionObserver(
|
|
18720
18735
|
(entries) => {
|
|
18721
|
-
if (_optionalChain([entries, 'access',
|
|
18736
|
+
if (_optionalChain([entries, 'access', _598 => _598[0], 'optionalAccess', _599 => _599.isIntersecting])) _optionalChain([data, 'access', _600 => _600.next, 'optionalCall', _601 => _601()]);
|
|
18722
18737
|
},
|
|
18723
18738
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
18724
18739
|
);
|
|
@@ -19505,7 +19520,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
19505
19520
|
newDigits[index] = digit;
|
|
19506
19521
|
setDigits(newDigits);
|
|
19507
19522
|
if (digit && index < 5) {
|
|
19508
|
-
_optionalChain([inputRefs, 'access',
|
|
19523
|
+
_optionalChain([inputRefs, 'access', _602 => _602.current, 'access', _603 => _603[index + 1], 'optionalAccess', _604 => _604.focus, 'call', _605 => _605()]);
|
|
19509
19524
|
}
|
|
19510
19525
|
const code = newDigits.join("");
|
|
19511
19526
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -19514,7 +19529,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
19514
19529
|
}, "handleChange");
|
|
19515
19530
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
19516
19531
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
19517
|
-
_optionalChain([inputRefs, 'access',
|
|
19532
|
+
_optionalChain([inputRefs, 'access', _606 => _606.current, 'access', _607 => _607[index - 1], 'optionalAccess', _608 => _608.focus, 'call', _609 => _609()]);
|
|
19518
19533
|
}
|
|
19519
19534
|
}, "handleKeyDown");
|
|
19520
19535
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -19523,7 +19538,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
19523
19538
|
if (pastedData.length === 6) {
|
|
19524
19539
|
const newDigits = pastedData.split("");
|
|
19525
19540
|
setDigits(newDigits);
|
|
19526
|
-
_optionalChain([inputRefs, 'access',
|
|
19541
|
+
_optionalChain([inputRefs, 'access', _610 => _610.current, 'access', _611 => _611[5], 'optionalAccess', _612 => _612.focus, 'call', _613 => _613()]);
|
|
19527
19542
|
onComplete(pastedData);
|
|
19528
19543
|
}
|
|
19529
19544
|
}, "handlePaste");
|
|
@@ -19735,8 +19750,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
19735
19750
|
try {
|
|
19736
19751
|
const registrationData = await _chunk4ORLPEK7js.TwoFactorService.getPasskeyRegistrationOptions({
|
|
19737
19752
|
id: _uuid.v4.call(void 0, ),
|
|
19738
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19739
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
19753
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _614 => _614.email]), () => ( "")),
|
|
19754
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _615 => _615.name])
|
|
19740
19755
|
});
|
|
19741
19756
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
19742
19757
|
await _chunk4ORLPEK7js.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -19888,7 +19903,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
19888
19903
|
const setup = await _chunk4ORLPEK7js.TwoFactorService.setupTotp({
|
|
19889
19904
|
id: _uuid.v4.call(void 0, ),
|
|
19890
19905
|
name: name.trim(),
|
|
19891
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
19906
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _616 => _616.email]), () => ( ""))
|
|
19892
19907
|
});
|
|
19893
19908
|
setQrCodeUri(setup.qrCodeUri);
|
|
19894
19909
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -20022,7 +20037,7 @@ function TwoFactorSettings() {
|
|
|
20022
20037
|
if (isLoading) {
|
|
20023
20038
|
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") }) }) });
|
|
20024
20039
|
}
|
|
20025
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
20040
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _617 => _617.isEnabled]), () => ( false));
|
|
20026
20041
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
20027
20042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
20028
20043
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "text-success h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "text-warning h-6 w-6" }),
|
|
@@ -20060,7 +20075,7 @@ function TwoFactorSettings() {
|
|
|
20060
20075
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
20061
20076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
20062
20077
|
] }),
|
|
20063
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
20078
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _618 => _618.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
20064
20079
|
] }) }),
|
|
20065
20080
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20066
20081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -20240,9 +20255,9 @@ function AcceptInvitation() {
|
|
|
20240
20255
|
});
|
|
20241
20256
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
20242
20257
|
try {
|
|
20243
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
20258
|
+
if (!_optionalChain([params, 'optionalAccess', _619 => _619.code])) return;
|
|
20244
20259
|
const payload = {
|
|
20245
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
20260
|
+
code: _optionalChain([params, 'optionalAccess', _620 => _620.code]),
|
|
20246
20261
|
password: values.password
|
|
20247
20262
|
};
|
|
20248
20263
|
await _chunk4ORLPEK7js.AuthService.acceptInvitation(payload);
|
|
@@ -20613,14 +20628,14 @@ function RefreshUser() {
|
|
|
20613
20628
|
setUser(fullUser);
|
|
20614
20629
|
const token = {
|
|
20615
20630
|
userId: fullUser.id,
|
|
20616
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
20631
|
+
companyId: _optionalChain([fullUser, 'access', _621 => _621.company, 'optionalAccess', _622 => _622.id]),
|
|
20617
20632
|
roles: fullUser.roles.map((role) => role.id),
|
|
20618
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
20633
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _623 => _623.company, 'optionalAccess', _624 => _624.features, 'optionalAccess', _625 => _625.map, 'call', _626 => _626((feature) => feature.id)]), () => ( [])),
|
|
20619
20634
|
modules: fullUser.modules.map((module) => {
|
|
20620
20635
|
return { id: module.id, permissions: module.permissions };
|
|
20621
20636
|
})
|
|
20622
20637
|
};
|
|
20623
|
-
await _optionalChain([_chunk4ORLPEK7js.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
20638
|
+
await _optionalChain([_chunk4ORLPEK7js.getTokenHandler.call(void 0, ), 'optionalAccess', _627 => _627.updateToken, 'call', _628 => _628(token)]);
|
|
20624
20639
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
20625
20640
|
}
|
|
20626
20641
|
}, "loadFullUser");
|
|
@@ -20684,9 +20699,9 @@ function ResetPassword() {
|
|
|
20684
20699
|
});
|
|
20685
20700
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
20686
20701
|
try {
|
|
20687
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
20702
|
+
if (!_optionalChain([params, 'optionalAccess', _629 => _629.code])) return;
|
|
20688
20703
|
const payload = {
|
|
20689
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
20704
|
+
code: _optionalChain([params, 'optionalAccess', _630 => _630.code]),
|
|
20690
20705
|
password: values.password
|
|
20691
20706
|
};
|
|
20692
20707
|
await _chunk4ORLPEK7js.AuthService.resetPassword(payload);
|
|
@@ -21221,7 +21236,7 @@ function AiConnectionEditor({
|
|
|
21221
21236
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
21222
21237
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
21223
21238
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
21224
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
21239
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _631 => _631.find, 'call', _632 => _632((row) => row.provider === provider), 'optionalAccess', _633 => _633.fields]), () => ( [])),
|
|
21225
21240
|
[registryRows]
|
|
21226
21241
|
);
|
|
21227
21242
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -21230,7 +21245,7 @@ function AiConnectionEditor({
|
|
|
21230
21245
|
const seeded = {};
|
|
21231
21246
|
fieldsFor(provider).forEach((descriptor) => {
|
|
21232
21247
|
if (descriptor.kind === "boolean") {
|
|
21233
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
21248
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _634 => _634[descriptor.field]]);
|
|
21234
21249
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
21235
21250
|
return;
|
|
21236
21251
|
}
|
|
@@ -21238,7 +21253,7 @@ function AiConnectionEditor({
|
|
|
21238
21253
|
seeded[descriptor.field] = "";
|
|
21239
21254
|
return;
|
|
21240
21255
|
}
|
|
21241
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
21256
|
+
const current = _optionalChain([stored, 'optionalAccess', _635 => _635[descriptor.field]]);
|
|
21242
21257
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
21243
21258
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
21244
21259
|
});
|
|
@@ -21264,7 +21279,7 @@ function AiConnectionEditor({
|
|
|
21264
21279
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
21265
21280
|
}).superRefine((data, ctx) => {
|
|
21266
21281
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
21267
|
-
const value = _optionalChain([data, 'access',
|
|
21282
|
+
const value = _optionalChain([data, 'access', _636 => _636.values, 'optionalAccess', _637 => _637[descriptor.field]]);
|
|
21268
21283
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
21269
21284
|
if (filled) return;
|
|
21270
21285
|
ctx.addIssue({
|
|
@@ -21278,11 +21293,11 @@ function AiConnectionEditor({
|
|
|
21278
21293
|
);
|
|
21279
21294
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
21280
21295
|
() => ({
|
|
21281
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
21282
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
21283
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
21284
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
21285
|
-
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
21296
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _638 => _638.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
21297
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _639 => _639.name]), () => ( "")),
|
|
21298
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _640 => _640.provider]), () => ( providers[0])), () => ( "")),
|
|
21299
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _641 => _641.enabled]), () => ( true)),
|
|
21300
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _642 => _642.provider]), () => ( providers[0])), () => ( "")))
|
|
21286
21301
|
}),
|
|
21287
21302
|
[connection, providers, defaultsFor]
|
|
21288
21303
|
);
|
|
@@ -21293,7 +21308,7 @@ function AiConnectionEditor({
|
|
|
21293
21308
|
_react.useEffect.call(void 0, () => {
|
|
21294
21309
|
if (registryRows.length === 0) return;
|
|
21295
21310
|
const currentProvider = form.getValues("provider");
|
|
21296
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
21311
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _643 => _643.provider]) || providers[0] || "";
|
|
21297
21312
|
if (!provider) return;
|
|
21298
21313
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
21299
21314
|
const currentValues = form.getValues("values");
|
|
@@ -21364,7 +21379,7 @@ function AiConnectionEditor({
|
|
|
21364
21379
|
{
|
|
21365
21380
|
form,
|
|
21366
21381
|
entityType: t("ai_connections.admin.entity"),
|
|
21367
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
21382
|
+
entityName: _optionalChain([connection, 'optionalAccess', _644 => _644.name]),
|
|
21368
21383
|
isEdit,
|
|
21369
21384
|
module: _chunk4ORLPEK7js.Modules.AiConnection,
|
|
21370
21385
|
size: "md",
|
|
@@ -21372,7 +21387,7 @@ function AiConnectionEditor({
|
|
|
21372
21387
|
onSubmit: async (values) => {
|
|
21373
21388
|
const attributes = {};
|
|
21374
21389
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
21375
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
21390
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _645 => _645.values, 'optionalAccess', _646 => _646[descriptor.field]]));
|
|
21376
21391
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
21377
21392
|
});
|
|
21378
21393
|
const payload = {
|
|
@@ -21602,7 +21617,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
21602
21617
|
),
|
|
21603
21618
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
21604
21619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
|
|
21605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess',
|
|
21620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _647 => _647.provider]), _optionalChain([envDefault, 'optionalAccess', _648 => _648.model]), _optionalChain([envDefault, 'optionalAccess', _649 => _649.url])].filter(Boolean).join(" \xB7 ") })
|
|
21606
21621
|
] })
|
|
21607
21622
|
] })
|
|
21608
21623
|
] })
|
|
@@ -21800,7 +21815,7 @@ function extractHeadings(blocks) {
|
|
|
21800
21815
|
function processBlocks(blockArray) {
|
|
21801
21816
|
for (const block of blockArray) {
|
|
21802
21817
|
if (block.type === "heading") {
|
|
21803
|
-
const level = _optionalChain([block, 'access',
|
|
21818
|
+
const level = _optionalChain([block, 'access', _650 => _650.props, 'optionalAccess', _651 => _651.level]) || 1;
|
|
21804
21819
|
const text = extractTextFromContent(block.content);
|
|
21805
21820
|
if (text.trim()) {
|
|
21806
21821
|
headings.push({
|
|
@@ -22160,7 +22175,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
22160
22175
|
})
|
|
22161
22176
|
};
|
|
22162
22177
|
const columns = _react.useMemo.call(void 0, () => {
|
|
22163
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
22178
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _652 => _652[field], 'optionalCall', _653 => _653()])).filter((col) => col !== void 0);
|
|
22164
22179
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
22165
22180
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
22166
22181
|
}, "useHowToTableStructure");
|
|
@@ -22286,7 +22301,7 @@ function HowToSelector({
|
|
|
22286
22301
|
}, "setHowTo");
|
|
22287
22302
|
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: [
|
|
22288
22303
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
22289
|
-
/* @__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',
|
|
22304
|
+
/* @__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', _654 => _654.value, 'optionalAccess', _655 => _655.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 }) }))) }) }) }),
|
|
22290
22305
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22291
22306
|
_lucidereact.CircleX,
|
|
22292
22307
|
{
|
|
@@ -22591,10 +22606,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
22591
22606
|
] }) }),
|
|
22592
22607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
22593
22608
|
const isOpen = expanded.has(chunk.id);
|
|
22594
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
22609
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _656 => _656.get, 'call', _657 => _657(chunk.nodeId)]) : void 0;
|
|
22595
22610
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
22596
22611
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
22597
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
22612
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _658 => _658.name]), () => ( fallbackName));
|
|
22598
22613
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
22599
22614
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
22600
22615
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -22658,7 +22673,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
22658
22673
|
for (const c of citations) {
|
|
22659
22674
|
const id = c.nodeId;
|
|
22660
22675
|
if (!id) continue;
|
|
22661
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
22676
|
+
const source = _optionalChain([sources, 'optionalAccess', _659 => _659.get, 'call', _660 => _660(id)]);
|
|
22662
22677
|
if (!source) continue;
|
|
22663
22678
|
const existing = map.get(id);
|
|
22664
22679
|
if (existing) {
|
|
@@ -22725,7 +22740,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
22725
22740
|
const generate = usePageUrlGenerator();
|
|
22726
22741
|
const userMap = /* @__PURE__ */ new Map();
|
|
22727
22742
|
for (const u of users) {
|
|
22728
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
22743
|
+
if (!_optionalChain([u, 'optionalAccess', _661 => _661.id])) continue;
|
|
22729
22744
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
22730
22745
|
}
|
|
22731
22746
|
if (citations && sources) {
|
|
@@ -22830,7 +22845,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
22830
22845
|
}
|
|
22831
22846
|
return ids.size;
|
|
22832
22847
|
}, [message.citations, sources]);
|
|
22833
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
22848
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _662 => _662.length]), () => ( 0));
|
|
22834
22849
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
22835
22850
|
const visibleTabs = [];
|
|
22836
22851
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -22973,7 +22988,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
22973
22988
|
return void 0;
|
|
22974
22989
|
}
|
|
22975
22990
|
})()));
|
|
22976
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
22991
|
+
if (_optionalChain([author, 'optionalAccess', _663 => _663.id])) userMap.set(author.id, author);
|
|
22977
22992
|
}
|
|
22978
22993
|
return Array.from(userMap.values());
|
|
22979
22994
|
}, [resolved]);
|
|
@@ -23008,7 +23023,7 @@ function MessageItem({
|
|
|
23008
23023
|
}) {
|
|
23009
23024
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
23010
23025
|
const isUser = message.role === "user";
|
|
23011
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
23026
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _664 => _664.has, 'call', _665 => _665(message.id)]);
|
|
23012
23027
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
23013
23028
|
() => ({
|
|
23014
23029
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -23025,7 +23040,7 @@ function MessageItem({
|
|
|
23025
23040
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
23026
23041
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
23027
23042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
23028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
23043
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _666 => _666(message.id)]), children: t("features.assistant.retry") })
|
|
23029
23044
|
] })
|
|
23030
23045
|
] });
|
|
23031
23046
|
}
|
|
@@ -23116,7 +23131,7 @@ function AssistantThread({
|
|
|
23116
23131
|
}) {
|
|
23117
23132
|
const lastMessageRef = _react.useRef.call(void 0, null);
|
|
23118
23133
|
_react.useEffect.call(void 0, () => {
|
|
23119
|
-
_optionalChain([lastMessageRef, 'access',
|
|
23134
|
+
_optionalChain([lastMessageRef, 'access', _667 => _667.current, 'optionalAccess', _668 => _668.scrollIntoView, 'call', _669 => _669({ block: "start", behavior: "smooth" })]);
|
|
23120
23135
|
}, [messages.length, sending]);
|
|
23121
23136
|
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: [
|
|
23122
23137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23155,7 +23170,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
|
|
|
23155
23170
|
return _chunk4ORLPEK7js.rehydrate.call(void 0, _chunk4ORLPEK7js.Modules.HandbookThreadMessage, {
|
|
23156
23171
|
jsonApi: {
|
|
23157
23172
|
...dehydrated.jsonApi,
|
|
23158
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
23173
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _670 => _670.jsonApi, 'optionalAccess', _671 => _671.attributes]), () => ( {})), content }
|
|
23159
23174
|
},
|
|
23160
23175
|
included: dehydrated.included
|
|
23161
23176
|
});
|
|
@@ -23164,8 +23179,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
|
|
|
23164
23179
|
function useHandbookAsk(params) {
|
|
23165
23180
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
23166
23181
|
const generateUrl = usePageUrlGenerator();
|
|
23167
|
-
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
23168
|
-
const handbookThreadId = _optionalChain([params, 'optionalAccess',
|
|
23182
|
+
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _672 => _672.syncUrl]), () => ( true));
|
|
23183
|
+
const handbookThreadId = _optionalChain([params, 'optionalAccess', _673 => _673.handbookThreadId]);
|
|
23169
23184
|
const [threads, setThreads] = _react.useState.call(void 0, []);
|
|
23170
23185
|
const [thread, setThread] = _react.useState.call(void 0, void 0);
|
|
23171
23186
|
const [messages, setMessages] = _react.useState.call(void 0, []);
|
|
@@ -23227,12 +23242,12 @@ function useHandbookAsk(params) {
|
|
|
23227
23242
|
]);
|
|
23228
23243
|
setSending(true);
|
|
23229
23244
|
try {
|
|
23230
|
-
let id = _optionalChain([thread, 'optionalAccess',
|
|
23245
|
+
let id = _optionalChain([thread, 'optionalAccess', _674 => _674.id]);
|
|
23231
23246
|
if (id === void 0) {
|
|
23232
23247
|
const created = await _chunk4ORLPEK7js.HandbookThreadService.create({
|
|
23233
23248
|
id: _uuid.v4.call(void 0, ),
|
|
23234
23249
|
question: trimmed,
|
|
23235
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
23250
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _675 => _675.handbookPageId])
|
|
23236
23251
|
});
|
|
23237
23252
|
id = created.id;
|
|
23238
23253
|
setThreads((current) => [created, ...current]);
|
|
@@ -23241,7 +23256,7 @@ function useHandbookAsk(params) {
|
|
|
23241
23256
|
id: _uuid.v4.call(void 0, ),
|
|
23242
23257
|
threadId: id,
|
|
23243
23258
|
question: trimmed,
|
|
23244
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
23259
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _676 => _676.handbookPageId])
|
|
23245
23260
|
});
|
|
23246
23261
|
}
|
|
23247
23262
|
const loaded = await _chunk4ORLPEK7js.HandbookThreadService.findOne({ id });
|
|
@@ -23262,7 +23277,7 @@ function useHandbookAsk(params) {
|
|
|
23262
23277
|
setSending(false);
|
|
23263
23278
|
}
|
|
23264
23279
|
},
|
|
23265
|
-
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess',
|
|
23280
|
+
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _677 => _677.id])]
|
|
23266
23281
|
);
|
|
23267
23282
|
return { threads, thread, messages, sending, ask, selectThread, startNew };
|
|
23268
23283
|
}
|
|
@@ -23818,7 +23833,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
23818
23833
|
};
|
|
23819
23834
|
}, []);
|
|
23820
23835
|
const section = _react.useMemo.call(void 0,
|
|
23821
|
-
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess',
|
|
23836
|
+
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _678 => _678.section])),
|
|
23822
23837
|
[sections, handbookPage]
|
|
23823
23838
|
);
|
|
23824
23839
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -23907,7 +23922,7 @@ function AssistantSidebar({
|
|
|
23907
23922
|
className: "block w-full truncate rounded-md px-2 py-1.5 text-start text-sm " + (activeId === thread.id ? "bg-primary/10 text-primary" : "hover:bg-muted text-foreground"),
|
|
23908
23923
|
children: [
|
|
23909
23924
|
thread.title,
|
|
23910
|
-
_optionalChain([renderThreadBadge, 'optionalCall',
|
|
23925
|
+
_optionalChain([renderThreadBadge, 'optionalCall', _679 => _679(thread)])
|
|
23911
23926
|
]
|
|
23912
23927
|
},
|
|
23913
23928
|
thread.id
|
|
@@ -23943,7 +23958,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23943
23958
|
AssistantSidebar,
|
|
23944
23959
|
{
|
|
23945
23960
|
threads,
|
|
23946
|
-
activeId: _optionalChain([thread, 'optionalAccess',
|
|
23961
|
+
activeId: _optionalChain([thread, 'optionalAccess', _680 => _680.id]),
|
|
23947
23962
|
onSelect: selectThread,
|
|
23948
23963
|
onNew: startNew,
|
|
23949
23964
|
newLabel: t("handbook.chat.new"),
|
|
@@ -23951,7 +23966,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23951
23966
|
}
|
|
23952
23967
|
) })
|
|
23953
23968
|
),
|
|
23954
|
-
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess',
|
|
23969
|
+
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _681 => _681.id]), threads]
|
|
23955
23970
|
);
|
|
23956
23971
|
return (
|
|
23957
23972
|
// `RoundPageContainer` reads the page heading from the shared context, and
|
|
@@ -23963,7 +23978,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
23963
23978
|
RoundPageContainer,
|
|
23964
23979
|
{
|
|
23965
23980
|
module: _chunk4ORLPEK7js.Modules.HandbookPage,
|
|
23966
|
-
id: _optionalChain([thread, 'optionalAccess',
|
|
23981
|
+
id: _optionalChain([thread, 'optionalAccess', _682 => _682.id]),
|
|
23967
23982
|
fullWidth: true,
|
|
23968
23983
|
forceHeader: true,
|
|
23969
23984
|
defaultDetailsOpen: true,
|
|
@@ -24015,7 +24030,7 @@ function EntityMentionLinkView({ type, id, alias }) {
|
|
|
24015
24030
|
} catch (e26) {
|
|
24016
24031
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
|
|
24017
24032
|
}
|
|
24018
|
-
if (!_optionalChain([module, 'optionalAccess',
|
|
24033
|
+
if (!_optionalChain([module, 'optionalAccess', _683 => _683.pageUrl])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: alias });
|
|
24019
24034
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generate({ page: module, id }), children: alias });
|
|
24020
24035
|
}
|
|
24021
24036
|
_chunk7QVYU63Ejs.__name.call(void 0, EntityMentionLinkView, "EntityMentionLinkView");
|
|
@@ -24147,13 +24162,13 @@ function AssistantContainer({
|
|
|
24147
24162
|
AssistantSidebar,
|
|
24148
24163
|
{
|
|
24149
24164
|
threads: ctx.threads,
|
|
24150
|
-
activeId: _optionalChain([ctx, 'access',
|
|
24165
|
+
activeId: _optionalChain([ctx, 'access', _684 => _684.assistant, 'optionalAccess', _685 => _685.id]),
|
|
24151
24166
|
onSelect: ctx.selectThread,
|
|
24152
24167
|
renderThreadBadge
|
|
24153
24168
|
}
|
|
24154
24169
|
) })
|
|
24155
24170
|
),
|
|
24156
|
-
[ctx.threads, _optionalChain([ctx, 'access',
|
|
24171
|
+
[ctx.threads, _optionalChain([ctx, 'access', _686 => _686.assistant, 'optionalAccess', _687 => _687.id]), ctx.selectThread, renderThreadBadge]
|
|
24157
24172
|
);
|
|
24158
24173
|
const thread = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24159
24174
|
AssistantEmptyState,
|
|
@@ -24161,7 +24176,7 @@ function AssistantContainer({
|
|
|
24161
24176
|
onSend: ctx.sendMessage,
|
|
24162
24177
|
operatorMode: ctx.operatorMode,
|
|
24163
24178
|
onOperatorModeChange: showOperatorToggle ? ctx.setOperatorMode : void 0,
|
|
24164
|
-
composerLeading: _optionalChain([renderScopePicker, 'optionalCall',
|
|
24179
|
+
composerLeading: _optionalChain([renderScopePicker, 'optionalCall', _688 => _688()])
|
|
24165
24180
|
}
|
|
24166
24181
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
24167
24182
|
ctx.assistant ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24193,7 +24208,7 @@ function AssistantContainer({
|
|
|
24193
24208
|
AssistantSidebar,
|
|
24194
24209
|
{
|
|
24195
24210
|
threads: ctx.threads,
|
|
24196
|
-
activeId: _optionalChain([ctx, 'access',
|
|
24211
|
+
activeId: _optionalChain([ctx, 'access', _689 => _689.assistant, 'optionalAccess', _690 => _690.id]),
|
|
24197
24212
|
onSelect: ctx.selectThread,
|
|
24198
24213
|
onNew: ctx.startNew,
|
|
24199
24214
|
renderThreadBadge
|
|
@@ -24206,7 +24221,7 @@ function AssistantContainer({
|
|
|
24206
24221
|
RoundPageContainer,
|
|
24207
24222
|
{
|
|
24208
24223
|
module: _chunk4ORLPEK7js.Modules.Assistant,
|
|
24209
|
-
id: _optionalChain([ctx, 'access',
|
|
24224
|
+
id: _optionalChain([ctx, 'access', _691 => _691.assistant, 'optionalAccess', _692 => _692.id]),
|
|
24210
24225
|
fullWidth: true,
|
|
24211
24226
|
forceHeader: true,
|
|
24212
24227
|
defaultDetailsOpen: true,
|
|
@@ -24234,7 +24249,7 @@ function flattenBlocks(blocks) {
|
|
|
24234
24249
|
if (typeof inline === "string") return inline;
|
|
24235
24250
|
if (!inline || typeof inline !== "object") return "";
|
|
24236
24251
|
const node = inline;
|
|
24237
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
24252
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _693 => _693.props, 'optionalAccess', _694 => _694.alias]), () => ( ""));
|
|
24238
24253
|
if (typeof node.text === "string") return node.text;
|
|
24239
24254
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
24240
24255
|
return "";
|
|
@@ -24350,7 +24365,7 @@ function AssistantPageContainer({
|
|
|
24350
24365
|
AssistantSidebar,
|
|
24351
24366
|
{
|
|
24352
24367
|
threads: ctx.threads,
|
|
24353
|
-
activeId: _optionalChain([ctx, 'access',
|
|
24368
|
+
activeId: _optionalChain([ctx, 'access', _695 => _695.assistant, 'optionalAccess', _696 => _696.id]),
|
|
24354
24369
|
onSelect: ctx.selectThread,
|
|
24355
24370
|
onNew: ctx.startNew
|
|
24356
24371
|
}
|
|
@@ -24626,14 +24641,14 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
24626
24641
|
const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
|
|
24627
24642
|
const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
|
|
24628
24643
|
const isUpdate = toolName === "update_entity";
|
|
24629
|
-
const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
24644
|
+
const entityType = _nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _697 => _697.type]), () => ( _optionalChain([legacy, 'optionalAccess', _698 => _698.type]))), () => ( ""));
|
|
24630
24645
|
const loose = t;
|
|
24631
24646
|
const entityLabel = entityName(loose, entityType);
|
|
24632
|
-
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
24647
|
+
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _699 => _699.target, 'optionalAccess', _700 => _700.label]), () => ( ""));
|
|
24633
24648
|
const rows = _react.useMemo.call(void 0, () => {
|
|
24634
24649
|
const yes = t("features.assistant.approval.proposal.yes");
|
|
24635
24650
|
const no = t("features.assistant.approval.proposal.no");
|
|
24636
|
-
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
24651
|
+
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _701 => _701.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _702 => _702.attributes])));
|
|
24637
24652
|
const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
|
|
24638
24653
|
const text = formatAttribute(value, yes, no);
|
|
24639
24654
|
return text === void 0 ? [] : [{ key: `attribute:${key}`, label: fieldLabel(loose, entityType, key), value: text }];
|
|
@@ -24671,7 +24686,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
24671
24686
|
try {
|
|
24672
24687
|
const message = kind === "approve" ? await _chunk4ORLPEK7js.AssistantActionService.approve({ id: actionId }) : await _chunk4ORLPEK7js.AssistantActionService.deny({ id: actionId });
|
|
24673
24688
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
24674
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
24689
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _703 => _703(message)]);
|
|
24675
24690
|
} catch (error) {
|
|
24676
24691
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
24677
24692
|
setFailed(true);
|
|
@@ -24816,10 +24831,10 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24816
24831
|
const dateLocale = _chunk4ORLPEK7js.dateFormatLocale.call(void 0, _chunk4ORLPEK7js.useI18nLocale.call(void 0, ));
|
|
24817
24832
|
const generateUrl = usePageUrlGenerator();
|
|
24818
24833
|
const { loadNotifications } = useNotificationContext();
|
|
24819
|
-
const archived = _optionalChain([params, 'access',
|
|
24834
|
+
const archived = _optionalChain([params, 'access', _704 => _704.context, 'optionalAccess', _705 => _705.archived]) === true;
|
|
24820
24835
|
const archiveNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (notification) => {
|
|
24821
24836
|
await _chunk4ORLPEK7js.NotificationService.archive({ id: notification.id });
|
|
24822
|
-
_optionalChain([params, 'access',
|
|
24837
|
+
_optionalChain([params, 'access', _706 => _706.dataRetriever, 'optionalAccess', _707 => _707.removeElement, 'call', _708 => _708(notification)]);
|
|
24823
24838
|
await loadNotifications();
|
|
24824
24839
|
}, "archiveNotification");
|
|
24825
24840
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
@@ -24858,7 +24873,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24858
24873
|
const data = generateNotificationData({ notification, generateUrl });
|
|
24859
24874
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-foreground text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
24860
24875
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { className: "font-medium", children: chunks }), "strong"),
|
|
24861
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
24876
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _709 => _709.actor, 'optionalAccess', _710 => _710.name]), () => ( "")),
|
|
24862
24877
|
title: data.title,
|
|
24863
24878
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
24864
24879
|
}) });
|
|
@@ -24913,7 +24928,7 @@ var useNotificationTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call
|
|
|
24913
24928
|
})
|
|
24914
24929
|
};
|
|
24915
24930
|
const columns = _react.useMemo.call(void 0, () => {
|
|
24916
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
24931
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _711 => _711[field], 'optionalCall', _712 => _712()])).filter((col) => col !== void 0);
|
|
24917
24932
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
24918
24933
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
24919
24934
|
}, "useNotificationTableStructure");
|
|
@@ -25212,7 +25227,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationModal, "NotificationModal");
|
|
|
25212
25227
|
// src/features/notification/components/notifications/PushNotificationProvider.tsx
|
|
25213
25228
|
|
|
25214
25229
|
function PushNotificationProvider({ children }) {
|
|
25215
|
-
|
|
25230
|
+
const { currentUser, hasRole } = useCurrentUserContext();
|
|
25231
|
+
usePushNotifications_default({ currentUser: _nullishCoalesce(currentUser, () => ( void 0)), canSubscribe: !hasRole(_chunkG4JR3SFVjs.getRoleId.call(void 0, ).Administrator) });
|
|
25216
25232
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children });
|
|
25217
25233
|
}
|
|
25218
25234
|
_chunk7QVYU63Ejs.__name.call(void 0, PushNotificationProvider, "PushNotificationProvider");
|
|
@@ -25330,7 +25346,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
25330
25346
|
invalidEmail: "Please enter a valid email address"
|
|
25331
25347
|
};
|
|
25332
25348
|
async function copyToClipboard(text) {
|
|
25333
|
-
if (_optionalChain([navigator, 'access',
|
|
25349
|
+
if (_optionalChain([navigator, 'access', _713 => _713.clipboard, 'optionalAccess', _714 => _714.writeText])) {
|
|
25334
25350
|
try {
|
|
25335
25351
|
await navigator.clipboard.writeText(text);
|
|
25336
25352
|
return true;
|
|
@@ -25372,7 +25388,7 @@ function ReferralWidget({
|
|
|
25372
25388
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
25373
25389
|
const config = _chunkGPXYQMOZjs.getReferralConfig.call(void 0, );
|
|
25374
25390
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
25375
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
25391
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _715 => _715.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
25376
25392
|
if (!_chunkGPXYQMOZjs.isReferralEnabled.call(void 0, )) {
|
|
25377
25393
|
return null;
|
|
25378
25394
|
}
|
|
@@ -25382,7 +25398,7 @@ function ReferralWidget({
|
|
|
25382
25398
|
if (success) {
|
|
25383
25399
|
setCopied(true);
|
|
25384
25400
|
_chunk4ORLPEK7js.showToast.call(void 0, t.copiedMessage);
|
|
25385
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
25401
|
+
_optionalChain([onLinkCopied, 'optionalCall', _716 => _716()]);
|
|
25386
25402
|
setTimeout(() => setCopied(false), 2e3);
|
|
25387
25403
|
} else {
|
|
25388
25404
|
_chunk4ORLPEK7js.showError.call(void 0, t.copyError);
|
|
@@ -25396,12 +25412,12 @@ function ReferralWidget({
|
|
|
25396
25412
|
try {
|
|
25397
25413
|
await sendInvite(email);
|
|
25398
25414
|
_chunk4ORLPEK7js.showToast.call(void 0, t.inviteSent);
|
|
25399
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
25415
|
+
_optionalChain([onInviteSent, 'optionalCall', _717 => _717(email)]);
|
|
25400
25416
|
setEmail("");
|
|
25401
25417
|
} catch (err) {
|
|
25402
25418
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
25403
25419
|
_chunk4ORLPEK7js.showError.call(void 0, error2.message);
|
|
25404
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
25420
|
+
_optionalChain([onInviteError, 'optionalCall', _718 => _718(error2)]);
|
|
25405
25421
|
}
|
|
25406
25422
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
25407
25423
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -26169,7 +26185,7 @@ function OAuthClientList({
|
|
|
26169
26185
|
OAuthClientCard,
|
|
26170
26186
|
{
|
|
26171
26187
|
client,
|
|
26172
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
26188
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _719 => _719(client)]),
|
|
26173
26189
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
26174
26190
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
26175
26191
|
},
|
|
@@ -26194,11 +26210,11 @@ function OAuthClientForm({
|
|
|
26194
26210
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
26195
26211
|
const isEditMode = !!client;
|
|
26196
26212
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
26197
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
26198
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
26199
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
26213
|
+
name: _optionalChain([client, 'optionalAccess', _720 => _720.name]) || "",
|
|
26214
|
+
description: _optionalChain([client, 'optionalAccess', _721 => _721.description]) || "",
|
|
26215
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _722 => _722.redirectUris, 'optionalAccess', _723 => _723.length]) ? client.redirectUris : [""],
|
|
26200
26216
|
allowedScopes: client ? client.allowedScopes || [] : defaultScopes,
|
|
26201
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
26217
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _724 => _724.isConfidential]), () => ( true))
|
|
26202
26218
|
});
|
|
26203
26219
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
26204
26220
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -26608,7 +26624,7 @@ function OAuthConsentScreen({
|
|
|
26608
26624
|
if (error || !clientInfo) {
|
|
26609
26625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-dvh 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: [
|
|
26610
26626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
26611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
26627
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _725 => _725.message]) || t("oauth.consent.invalid_request") })
|
|
26612
26628
|
] }) }) }) });
|
|
26613
26629
|
}
|
|
26614
26630
|
const { client, scopes } = clientInfo;
|
|
@@ -26829,7 +26845,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
26829
26845
|
questionnaire: values.questionnaire
|
|
26830
26846
|
});
|
|
26831
26847
|
setIsSuccess(true);
|
|
26832
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
26848
|
+
_optionalChain([onSuccess, 'optionalCall', _726 => _726()]);
|
|
26833
26849
|
} catch (e) {
|
|
26834
26850
|
errorToast({ title: t("common.errors.error"), error: e });
|
|
26835
26851
|
} finally {
|
|
@@ -27369,7 +27385,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
27369
27385
|
] }),
|
|
27370
27386
|
roleIds.map((roleId) => {
|
|
27371
27387
|
const roleTokens = block[roleId];
|
|
27372
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
27388
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _727 => _727[roleId]]), () => ( roleId));
|
|
27373
27389
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
27374
27390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
27375
27391
|
_chunkGPXYQMOZjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -27406,7 +27422,7 @@ function RbacContainer() {
|
|
|
27406
27422
|
}, []);
|
|
27407
27423
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
27408
27424
|
if (!matrix) return [];
|
|
27409
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27425
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _728 => _728[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _729 => _729[b]]), () => ( b))));
|
|
27410
27426
|
}, [matrix, moduleNames]);
|
|
27411
27427
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
27412
27428
|
if (roleNames) {
|
|
@@ -27469,7 +27485,7 @@ function RbacContainer() {
|
|
|
27469
27485
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
27470
27486
|
id !== selectedModuleId && "text-muted-foreground"
|
|
27471
27487
|
),
|
|
27472
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27488
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _730 => _730[id]]), () => ( id))
|
|
27473
27489
|
}
|
|
27474
27490
|
) }, id)) }) }),
|
|
27475
27491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -27477,7 +27493,7 @@ function RbacContainer() {
|
|
|
27477
27493
|
{
|
|
27478
27494
|
moduleId: selectedModuleId,
|
|
27479
27495
|
block: selectedBlock,
|
|
27480
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27496
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _731 => _731[selectedModuleId]]), () => ( selectedModuleId)),
|
|
27481
27497
|
roleIds,
|
|
27482
27498
|
roleNames,
|
|
27483
27499
|
onOpenPicker: openPicker
|
|
@@ -27488,12 +27504,12 @@ function RbacContainer() {
|
|
|
27488
27504
|
RbacPermissionPicker,
|
|
27489
27505
|
{
|
|
27490
27506
|
open: !!activePicker,
|
|
27491
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27507
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _732 => _732.anchor]), () => ( null)),
|
|
27492
27508
|
value: activeValue,
|
|
27493
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27509
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _733 => _733.isRoleColumn]), () => ( false)),
|
|
27494
27510
|
knownSegments: activeSegments,
|
|
27495
27511
|
onSetValue: handleSetValue,
|
|
27496
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
27512
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _734 => _734.isRoleColumn]) ? handleClear : void 0,
|
|
27497
27513
|
onClose: closePicker
|
|
27498
27514
|
}
|
|
27499
27515
|
)
|
|
@@ -27560,7 +27576,7 @@ function RbacByRoleContainer() {
|
|
|
27560
27576
|
}, [roleNames]);
|
|
27561
27577
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
27562
27578
|
if (!matrix) return [];
|
|
27563
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27579
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _735 => _735[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _736 => _736[b]]), () => ( b))));
|
|
27564
27580
|
}, [matrix, moduleNames]);
|
|
27565
27581
|
_react.useEffect.call(void 0, () => {
|
|
27566
27582
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -27609,7 +27625,7 @@ function RbacByRoleContainer() {
|
|
|
27609
27625
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
27610
27626
|
id !== selectedRoleId && "text-muted-foreground"
|
|
27611
27627
|
),
|
|
27612
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
27628
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _737 => _737[id]]), () => ( id))
|
|
27613
27629
|
}
|
|
27614
27630
|
) }, id)) }) }),
|
|
27615
27631
|
/* @__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: [
|
|
@@ -27629,7 +27645,7 @@ function RbacByRoleContainer() {
|
|
|
27629
27645
|
if (!block) return null;
|
|
27630
27646
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
27631
27647
|
const roleTokens = block[selectedRoleId];
|
|
27632
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
27648
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _738 => _738[moduleId]]), () => ( moduleId));
|
|
27633
27649
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
27634
27650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27635
27651
|
"td",
|
|
@@ -27644,7 +27660,7 @@ function RbacByRoleContainer() {
|
|
|
27644
27660
|
_chunkGPXYQMOZjs.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))
|
|
27645
27661
|
] }),
|
|
27646
27662
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
27647
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
27663
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _739 => _739[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
27648
27664
|
_chunkGPXYQMOZjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27649
27665
|
CellButton3,
|
|
27650
27666
|
{
|
|
@@ -27665,12 +27681,12 @@ function RbacByRoleContainer() {
|
|
|
27665
27681
|
RbacPermissionPicker,
|
|
27666
27682
|
{
|
|
27667
27683
|
open: !!activePicker,
|
|
27668
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27684
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _740 => _740.anchor]), () => ( null)),
|
|
27669
27685
|
value: activeValue,
|
|
27670
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
27686
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _741 => _741.isRoleColumn]), () => ( false)),
|
|
27671
27687
|
knownSegments: activeSegments,
|
|
27672
27688
|
onSetValue: handleSetValue,
|
|
27673
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
27689
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _742 => _742.isRoleColumn]) ? handleClear : void 0,
|
|
27674
27690
|
onClose: closePicker
|
|
27675
27691
|
}
|
|
27676
27692
|
)
|
|
@@ -28287,5 +28303,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
28287
28303
|
|
|
28288
28304
|
|
|
28289
28305
|
|
|
28290
|
-
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.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; 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.commandFilterByKeywords = commandFilterByKeywords; exports.ConfirmDialog = ConfirmDialog; 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.EmptyState = EmptyState; 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.useSidebarControls = useSidebarControls; exports.useOptionalSidebar = useOptionalSidebar; 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.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; 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.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; 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.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.hasOpenInnerLayer = hasOpenInnerLayer; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; 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.MultiFileUploader = MultiFileUploader; 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.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; 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.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; 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.useOAuthScopeText = useOAuthScopeText; 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.OAuthCompanySelector = OAuthCompanySelector; 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.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.SessionProvider = SessionProvider; exports.useSession = useSession; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.formatFixed = formatFixed; exports.formatDate = formatDate2; exports.useBillingFormatOptions = useBillingFormatOptions; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
28291
|
-
//# sourceMappingURL=chunk-4EGA5UP5.js.map
|
|
28306
|
+
|
|
28307
|
+
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.computeLayeredLayout = computeLayeredLayout; exports.fitLayeredLayoutToAspectRatio = fitLayeredLayoutToAspectRatio; exports.useCustomD3Graph = useCustomD3Graph; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.AdministrationProvider = AdministrationProvider; exports.useAdministrationContext = useAdministrationContext; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.useCurrentUserContextOptional = useCurrentUserContextOptional; 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.DirectionProvider = DirectionProvider; exports.useDir = useDir; 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.commandFilterByKeywords = commandFilterByKeywords; exports.ConfirmDialog = ConfirmDialog; 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.EmptyState = EmptyState; 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.useSidebarControls = useSidebarControls; exports.useOptionalSidebar = useOptionalSidebar; 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.spinnerVariants = spinnerVariants; exports.Spinner = Spinner; 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.useHeaderMobileChildren = useHeaderMobileChildren; exports.useHeaderRootLabel = useHeaderRootLabel; exports.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.HeaderLogoProvider = HeaderLogoProvider; exports.useHeaderLogo = useHeaderLogo; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.BreadcrumbRootProvider = BreadcrumbRootProvider; exports.useIsBreadcrumbRootHidden = useIsBreadcrumbRootHidden; exports.Header = Header; exports.MobileNavigationProvider = MobileNavigationProvider; exports.useMobileNavigationItems = useMobileNavigationItems; exports.MobileNavigationBar = MobileNavigationBar; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.partitionTabs = partitionTabs; exports.MermaidDiagram = MermaidDiagram; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.HEADER_ROW_MIN_H = HEADER_ROW_MIN_H; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.PlatformUsersList = PlatformUsersList; exports.PlatformUsersContainer = PlatformUsersContainer; 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.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.ActionBarProvider = ActionBarProvider; exports.useIsInActionBar = useIsInActionBar; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.CurrencyInput = CurrencyInput; exports.DatePickerPopover = DatePickerPopover; exports.nextDateRange = nextDateRange; exports.DateRangeSelector = DateRangeSelector; exports.hasOpenInnerLayer = hasOpenInnerLayer; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.EntitySelector = EntitySelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormBlockNote = FormBlockNote; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.FormBody = FormBody; exports.FormSection = FormSection; exports.FormRow = FormRow; exports.FormCol = FormCol; 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.MultiFileUploader = MultiFileUploader; 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.EntityHeroLayout = EntityHeroLayout; exports.EntityHero = EntityHero; exports.EntityHeroAvatar = EntityHeroAvatar; exports.EntityHeroMetaRow = EntityHeroMetaRow; exports.EntitySection = EntitySection; 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.AdminIndexGrid = AdminIndexGrid; exports.AdminIndexContainer = AdminIndexContainer; exports.ADMINISTRATION_I18N_KEYS = ADMINISTRATION_I18N_KEYS; exports.AI_CONNECTIONS_I18N_KEYS = AI_CONNECTIONS_I18N_KEYS; exports.AI_CONNECTIONS_ADMIN_PAGE_URL = AI_CONNECTIONS_ADMIN_PAGE_URL; exports.AiConnectionsProvider = AiConnectionsProvider; exports.useAiConnections = useAiConnections; exports.AiConnectionDeleter = AiConnectionDeleter; exports.AiConnectionEditor = AiConnectionEditor; exports.AiConnectionTypeCard = AiConnectionTypeCard; exports.AI_CONNECTION_TYPE_ORDER = AI_CONNECTION_TYPE_ORDER; exports.AiConnectionsContainer = AiConnectionsContainer; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.CompaniesListContainer = CompaniesListContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToReindexButton = HowToReindexButton; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantComposer = AssistantComposer; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; exports.HandbookAskSheet = HandbookAskSheet; exports.HandbookSyncButton = HandbookSyncButton; exports.HandbookIndexStatus = HandbookIndexStatus; exports.HandbookSectionGroup = HandbookSectionGroup; exports.HandbookContents = HandbookContents; exports.HandbookAdminContainer = HandbookAdminContainer; exports.HandbookPageDetails = HandbookPageDetails; exports.HandbookPageNeighbours = HandbookPageNeighbours; exports.HandbookPageToc = HandbookPageToc; exports.HandbookPageNavigator = HandbookPageNavigator; exports.HandbookPageContainer = HandbookPageContainer; exports.HandbookAskContainer = HandbookAskContainer; exports.EntityMentionLink = EntityMentionLink; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantEmptyState = AssistantEmptyState; exports.AssistantContainer = AssistantContainer; exports.AssistantBlockNoteComposer = AssistantBlockNoteComposer; exports.AssistantPageContainer = AssistantPageContainer; exports.ApprovalActionCard = ApprovalActionCard; exports.AssistantContainerWithApprovals = AssistantContainerWithApprovals; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.NotificationIcon = NotificationIcon; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationViewSwitcher = NotificationViewSwitcher; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.usePushNotifications = usePushNotifications; 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.useOAuthScopeText = useOAuthScopeText; 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.OAuthCompanySelector = OAuthCompanySelector; 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.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.SessionProvider = SessionProvider; exports.useSession = useSession; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.formatFixed = formatFixed; exports.formatDate = formatDate2; exports.useBillingFormatOptions = useBillingFormatOptions; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
28308
|
+
//# sourceMappingURL=chunk-ZPXXZRS2.js.map
|