@carlonicora/nextjs-jsonapi 3.13.0 → 3.14.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-SERY337S.mjs → BlockNoteEditor-QG5OWH5K.mjs} +2 -2
- package/dist/{BlockNoteEditor-CFVSHS46.js → BlockNoteEditor-WP4K423H.js} +9 -9
- package/dist/{BlockNoteEditor-CFVSHS46.js.map → BlockNoteEditor-WP4K423H.js.map} +1 -1
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-UQXE3SME.mjs → chunk-46BRB36R.mjs} +1543 -1453
- package/dist/chunk-46BRB36R.mjs.map +1 -0
- package/dist/{chunk-LVE3BJ6K.js → chunk-OH6GJY4B.js} +259 -169
- package/dist/chunk-OH6GJY4B.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +27 -15
- package/dist/components/index.d.ts +27 -15
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/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/package.json +2 -1
- package/src/components/containers/MermaidDiagram.tsx +117 -0
- package/src/components/containers/ReactMarkdownContainer.tsx +41 -8
- package/src/components/containers/index.ts +1 -0
- package/src/features/__tests__/i18n-keys.contract.spec.ts +131 -0
- package/src/features/billing/i18n-keys.ts +15 -0
- package/src/features/handbook/components/details/HandbookPageDetails.tsx +26 -1
- package/src/features/handbook/i18n-keys.ts +1 -0
- package/dist/chunk-LVE3BJ6K.js.map +0 -1
- package/dist/chunk-UQXE3SME.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-SERY337S.mjs.map → BlockNoteEditor-QG5OWH5K.mjs.map} +0 -0
|
@@ -10381,7 +10381,7 @@ FileInput.displayName = "FileInput";
|
|
|
10381
10381
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10382
10382
|
|
|
10383
10383
|
|
|
10384
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10384
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-WP4K423H.js"))), {
|
|
10385
10385
|
ssr: false
|
|
10386
10386
|
});
|
|
10387
10387
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -15249,6 +15249,74 @@ function partitionTabs(tabs) {
|
|
|
15249
15249
|
}
|
|
15250
15250
|
_chunk7QVYU63Ejs.__name.call(void 0, partitionTabs, "partitionTabs");
|
|
15251
15251
|
|
|
15252
|
+
// src/components/containers/MermaidDiagram.tsx
|
|
15253
|
+
|
|
15254
|
+
|
|
15255
|
+
|
|
15256
|
+
function MermaidDiagram({ chart }) {
|
|
15257
|
+
const reactId = _react.useId.call(void 0, );
|
|
15258
|
+
const { resolvedTheme } = _nextthemes.useTheme.call(void 0, );
|
|
15259
|
+
const [svg, setSvg] = _react.useState.call(void 0, void 0);
|
|
15260
|
+
const [failed, setFailed] = _react.useState.call(void 0, false);
|
|
15261
|
+
_react.useEffect.call(void 0, () => {
|
|
15262
|
+
let cancelled = false;
|
|
15263
|
+
const draw = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
15264
|
+
try {
|
|
15265
|
+
const mermaid = (await Promise.resolve().then(() => _interopRequireWildcard(require("mermaid")))).default;
|
|
15266
|
+
mermaid.initialize({
|
|
15267
|
+
startOnLoad: false,
|
|
15268
|
+
securityLevel: "strict",
|
|
15269
|
+
suppressErrorRendering: true,
|
|
15270
|
+
theme: resolvedTheme === "dark" ? "dark" : "default",
|
|
15271
|
+
// `useMaxWidth: false` on every diagram type this documentation uses.
|
|
15272
|
+
//
|
|
15273
|
+
// By default Mermaid emits `width="100%"` with a viewBox, so the
|
|
15274
|
+
// drawing scales to whatever box it lands in — inside a reading
|
|
15275
|
+
// column that shrinks a seven-node graph until its labels are
|
|
15276
|
+
// unreadable, and no CSS `max-width` can undo it because the scaling
|
|
15277
|
+
// comes from the viewBox, not the width limit. With it off the SVG
|
|
15278
|
+
// carries its intrinsic width and the wrapper scrolls to it, the same
|
|
15279
|
+
// bargain a wide table makes.
|
|
15280
|
+
flowchart: { useMaxWidth: false },
|
|
15281
|
+
sequence: { useMaxWidth: false },
|
|
15282
|
+
class: { useMaxWidth: false },
|
|
15283
|
+
state: { useMaxWidth: false },
|
|
15284
|
+
er: { useMaxWidth: false },
|
|
15285
|
+
journey: { useMaxWidth: false },
|
|
15286
|
+
gantt: { useMaxWidth: false },
|
|
15287
|
+
pie: { useMaxWidth: false }
|
|
15288
|
+
});
|
|
15289
|
+
const id = `mermaid-${reactId.replace(/[^a-zA-Z0-9-]/g, "")}`;
|
|
15290
|
+
const result = await mermaid.render(id, chart);
|
|
15291
|
+
if (cancelled) return;
|
|
15292
|
+
setSvg(result.svg);
|
|
15293
|
+
setFailed(false);
|
|
15294
|
+
} catch (e10) {
|
|
15295
|
+
if (cancelled) return;
|
|
15296
|
+
setFailed(true);
|
|
15297
|
+
setSvg(void 0);
|
|
15298
|
+
}
|
|
15299
|
+
}, "draw");
|
|
15300
|
+
void draw();
|
|
15301
|
+
return () => {
|
|
15302
|
+
cancelled = true;
|
|
15303
|
+
};
|
|
15304
|
+
}, [chart, reactId, resolvedTheme]);
|
|
15305
|
+
if (failed || svg === void 0)
|
|
15306
|
+
return (
|
|
15307
|
+
// rtl-ok: deliberate LTR island (diagram source)
|
|
15308
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { dir: "ltr", className: "overflow-x-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { dir: "ltr", children: chart }) })
|
|
15309
|
+
);
|
|
15310
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15311
|
+
"div",
|
|
15312
|
+
{
|
|
15313
|
+
className: "my-4 overflow-x-auto [&_svg]:mx-auto [&_svg]:h-auto [&_svg]:!max-w-none",
|
|
15314
|
+
dangerouslySetInnerHTML: { __html: svg }
|
|
15315
|
+
}
|
|
15316
|
+
);
|
|
15317
|
+
}
|
|
15318
|
+
_chunk7QVYU63Ejs.__name.call(void 0, MermaidDiagram, "MermaidDiagram");
|
|
15319
|
+
|
|
15252
15320
|
// src/components/containers/ReactMarkdownContainer.tsx
|
|
15253
15321
|
|
|
15254
15322
|
|
|
@@ -15257,6 +15325,17 @@ var _reactmarkdown = require('react-markdown'); var _reactmarkdown2 = _interopRe
|
|
|
15257
15325
|
var _rehypeslug = require('rehype-slug'); var _rehypeslug2 = _interopRequireDefault(_rehypeslug);
|
|
15258
15326
|
var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault(_remarkgfm);
|
|
15259
15327
|
|
|
15328
|
+
function mermaidSourceOf(node) {
|
|
15329
|
+
const pre = node;
|
|
15330
|
+
const code = _optionalChain([pre, 'optionalAccess', _449 => _449.children, 'optionalAccess', _450 => _450[0]]);
|
|
15331
|
+
if (_optionalChain([code, 'optionalAccess', _451 => _451.tagName]) !== "code") return void 0;
|
|
15332
|
+
const classNames = Array.isArray(_optionalChain([code, 'access', _452 => _452.properties, 'optionalAccess', _453 => _453.className])) ? code.properties.className : [];
|
|
15333
|
+
if (!classNames.includes("language-mermaid")) return void 0;
|
|
15334
|
+
const text = _optionalChain([code, 'access', _454 => _454.children, 'optionalAccess', _455 => _455[0]]);
|
|
15335
|
+
if (_optionalChain([text, 'optionalAccess', _456 => _456.type]) !== "text" || typeof text.value !== "string") return void 0;
|
|
15336
|
+
return text.value;
|
|
15337
|
+
}
|
|
15338
|
+
_chunk7QVYU63Ejs.__name.call(void 0, mermaidSourceOf, "mermaidSourceOf");
|
|
15260
15339
|
function ReactMarkdownContainer({
|
|
15261
15340
|
content,
|
|
15262
15341
|
collapsible = false,
|
|
@@ -15310,11 +15389,20 @@ function ReactMarkdownContainer({
|
|
|
15310
15389
|
// left-to-right in every locale, so both the fenced block and the
|
|
15311
15390
|
// inline span are deliberate LTR islands. `node` is react-markdown's
|
|
15312
15391
|
// hast node — it must not reach the DOM element.
|
|
15313
|
-
// A
|
|
15314
|
-
//
|
|
15315
|
-
// whole
|
|
15392
|
+
// A ```mermaid fence is a DIAGRAM, not code. It is caught here on
|
|
15393
|
+
// the `pre` rather than on the `code` inside it, because the
|
|
15394
|
+
// diagram replaces the whole block — catching it a level down
|
|
15395
|
+
// would leave it wrapped in the `pre` chrome it is not.
|
|
15396
|
+
//
|
|
15397
|
+
// A fenced block otherwise scrolls on its own rather than
|
|
15398
|
+
// widening the page: a long command line is unbreakable, and
|
|
15399
|
+
// without this the whole layout is pushed sideways.
|
|
15316
15400
|
// rtl-ok: deliberate LTR island (code)
|
|
15317
|
-
pre: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, node
|
|
15401
|
+
pre: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children, node, ...props }) => {
|
|
15402
|
+
const diagram = mermaidSourceOf(node);
|
|
15403
|
+
if (diagram !== void 0) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MermaidDiagram, { chart: diagram });
|
|
15404
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { dir: "ltr", ...props, className: "overflow-x-auto", children });
|
|
15405
|
+
}, "pre"),
|
|
15318
15406
|
// No wrap rule HERE. The same component renders inline spans, the
|
|
15319
15407
|
// contents of fenced blocks and the contents of table cells; the
|
|
15320
15408
|
// last two live in their own scrollers, and breaking a path
|
|
@@ -15464,7 +15552,7 @@ var railTriggerClass = _chunkIB7DTXWGjs.cn.call(void 0,
|
|
|
15464
15552
|
"data-active:text-primary dark:data-active:text-primary",
|
|
15465
15553
|
"data-active:font-medium data-active:shadow-none"
|
|
15466
15554
|
);
|
|
15467
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
15555
|
+
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _457 => _457.key, 'optionalAccess', _458 => _458.name]))), () => ( tab.label)), "tabValue");
|
|
15468
15556
|
function RoundPageContainer({
|
|
15469
15557
|
module,
|
|
15470
15558
|
id,
|
|
@@ -15491,7 +15579,7 @@ function RoundPageContainer({
|
|
|
15491
15579
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
15492
15580
|
_react.useEffect.call(void 0, () => {
|
|
15493
15581
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
15494
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
15582
|
+
const stored = _optionalChain([match, 'optionalAccess', _459 => _459.split, 'call', _460 => _460("="), 'access', _461 => _461[1]]);
|
|
15495
15583
|
if (stored === "true") setShowDetailsState(true);
|
|
15496
15584
|
else if (stored === "false") setShowDetailsState(false);
|
|
15497
15585
|
}, []);
|
|
@@ -15506,7 +15594,7 @@ function RoundPageContainer({
|
|
|
15506
15594
|
const clip = isFixed ? `overflow-hidden` : ``;
|
|
15507
15595
|
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
15508
15596
|
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
15509
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
15597
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _462 => _462.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15510
15598
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
15511
15599
|
(value) => {
|
|
15512
15600
|
setShowDetailsState(value);
|
|
@@ -15535,13 +15623,13 @@ function RoundPageContainer({
|
|
|
15535
15623
|
} else {
|
|
15536
15624
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
|
|
15537
15625
|
}
|
|
15538
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
15626
|
+
_optionalChain([onSectionChange, 'optionalCall', _463 => _463(key)]);
|
|
15539
15627
|
},
|
|
15540
15628
|
[module, id, rewriteUrl, onSectionChange]
|
|
15541
15629
|
);
|
|
15542
|
-
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess',
|
|
15543
|
-
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
15544
|
-
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess',
|
|
15630
|
+
const activeTabDefinition = _optionalChain([tabs, 'optionalAccess', _464 => _464.find, 'call', _465 => _465((t) => tabValue(t) === activeTab)]);
|
|
15631
|
+
const activeFillHeight = _optionalChain([activeTabDefinition, 'optionalAccess', _466 => _466.fillHeight]) === true;
|
|
15632
|
+
const activeConstrainWidth = _optionalChain([activeTabDefinition, 'optionalAccess', _467 => _467.constrainWidth]) === true;
|
|
15545
15633
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
15546
15634
|
const tabItems = _react.useMemo.call(void 0,
|
|
15547
15635
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
@@ -15920,14 +16008,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15920
16008
|
const entityType = target.dataset.mentionType;
|
|
15921
16009
|
const alias = target.dataset.mentionAlias;
|
|
15922
16010
|
setHovered((prev) => {
|
|
15923
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
16011
|
+
if (_optionalChain([prev, 'optionalAccess', _468 => _468.id]) === id && _optionalChain([prev, 'optionalAccess', _469 => _469.element]) === target) return prev;
|
|
15924
16012
|
return { id, entityType, alias, element: target };
|
|
15925
16013
|
});
|
|
15926
16014
|
}, "handleMouseOver");
|
|
15927
16015
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
15928
16016
|
const target = e.target.closest("[data-mention-id]");
|
|
15929
16017
|
if (!target) return;
|
|
15930
|
-
const related = _optionalChain([e, 'access',
|
|
16018
|
+
const related = _optionalChain([e, 'access', _470 => _470.relatedTarget, 'optionalAccess', _471 => _471.closest, 'call', _472 => _472("[data-mention-id]")]);
|
|
15931
16019
|
if (related) return;
|
|
15932
16020
|
scheduleClose();
|
|
15933
16021
|
}, "handleMouseOut");
|
|
@@ -15941,7 +16029,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15941
16029
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
15942
16030
|
if (!hovered || !mentionResolveFn) return null;
|
|
15943
16031
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
15944
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
16032
|
+
if (!_optionalChain([resolved, 'optionalAccess', _473 => _473.HoverContent])) return null;
|
|
15945
16033
|
const ContentComponent = resolved.HoverContent;
|
|
15946
16034
|
const rect = hovered.element.getBoundingClientRect();
|
|
15947
16035
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -15985,28 +16073,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
15985
16073
|
}, "parseMentionElement");
|
|
15986
16074
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
15987
16075
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15988
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16076
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _474 => _474(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15989
16077
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
15990
16078
|
"@",
|
|
15991
16079
|
displayName
|
|
15992
16080
|
] });
|
|
15993
16081
|
}, "MentionExternalHTML");
|
|
15994
16082
|
const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
15995
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
16083
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _475 => _475(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15996
16084
|
if (disableMention) {
|
|
15997
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
15998
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
16085
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _476 => _476(props.id, props.entityType, displayName)]);
|
|
16086
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _477 => _477.url]), () => ( "#")), className: "text-primary", children: [
|
|
15999
16087
|
"@",
|
|
16000
16088
|
displayName
|
|
16001
16089
|
] });
|
|
16002
16090
|
}
|
|
16003
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
16004
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
16091
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _478 => _478(props.id, props.entityType, displayName)]);
|
|
16092
|
+
if (_optionalChain([resolved, 'optionalAccess', _479 => _479.Inline])) {
|
|
16005
16093
|
const Custom = resolved.Inline;
|
|
16006
16094
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
16007
16095
|
}
|
|
16008
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
16009
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
16096
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _480 => _480.url]), () => ( "#"));
|
|
16097
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _481 => _481.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
16010
16098
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16011
16099
|
_link2.default,
|
|
16012
16100
|
{
|
|
@@ -16114,7 +16202,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16114
16202
|
if (!suggestionMenuComponent) return void 0;
|
|
16115
16203
|
const Component2 = suggestionMenuComponent;
|
|
16116
16204
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
16117
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
16205
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _482 => _482.items, 'access', _483 => _483[0], 'optionalAccess', _484 => _484.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
16118
16206
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16119
16207
|
Component2,
|
|
16120
16208
|
{
|
|
@@ -16123,7 +16211,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
16123
16211
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
16124
16212
|
onItemClick: (item) => {
|
|
16125
16213
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
16126
|
-
_optionalChain([props, 'access',
|
|
16214
|
+
_optionalChain([props, 'access', _485 => _485.onItemClick, 'optionalCall', _486 => _486(item)]);
|
|
16127
16215
|
}
|
|
16128
16216
|
}
|
|
16129
16217
|
);
|
|
@@ -16318,10 +16406,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
16318
16406
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16319
16407
|
Checkbox,
|
|
16320
16408
|
{
|
|
16321
|
-
checked: _optionalChain([params, 'access',
|
|
16409
|
+
checked: _optionalChain([params, 'access', _487 => _487.checkedIds, 'optionalAccess', _488 => _488.includes, 'call', _489 => _489(row.getValue(params.name))]) || false,
|
|
16322
16410
|
onCheckedChange: (value) => {
|
|
16323
16411
|
row.toggleSelected(!!value);
|
|
16324
|
-
_optionalChain([params, 'access',
|
|
16412
|
+
_optionalChain([params, 'access', _490 => _490.toggleId, 'optionalCall', _491 => _491(row.getValue(params.name))]);
|
|
16325
16413
|
},
|
|
16326
16414
|
"aria-label": "Select row"
|
|
16327
16415
|
}
|
|
@@ -16380,7 +16468,7 @@ function useJsonApiGet(params) {
|
|
|
16380
16468
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
16381
16469
|
const isMounted = _react.useRef.call(void 0, true);
|
|
16382
16470
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
16383
|
-
if (_optionalChain([params, 'access',
|
|
16471
|
+
if (_optionalChain([params, 'access', _492 => _492.options, 'optionalAccess', _493 => _493.enabled]) === false) return;
|
|
16384
16472
|
setLoading(true);
|
|
16385
16473
|
setError(null);
|
|
16386
16474
|
try {
|
|
@@ -16407,9 +16495,9 @@ function useJsonApiGet(params) {
|
|
|
16407
16495
|
setLoading(false);
|
|
16408
16496
|
}
|
|
16409
16497
|
}
|
|
16410
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
16498
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _494 => _494.options, 'optionalAccess', _495 => _495.enabled])]);
|
|
16411
16499
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
16412
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16500
|
+
if (!_optionalChain([response, 'optionalAccess', _496 => _496.nextPage])) return;
|
|
16413
16501
|
setLoading(true);
|
|
16414
16502
|
try {
|
|
16415
16503
|
const nextResponse = await response.nextPage();
|
|
@@ -16430,7 +16518,7 @@ function useJsonApiGet(params) {
|
|
|
16430
16518
|
}
|
|
16431
16519
|
}, [response]);
|
|
16432
16520
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
16433
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16521
|
+
if (!_optionalChain([response, 'optionalAccess', _497 => _497.prevPage])) return;
|
|
16434
16522
|
setLoading(true);
|
|
16435
16523
|
try {
|
|
16436
16524
|
const prevResponse = await response.prevPage();
|
|
@@ -16456,15 +16544,15 @@ function useJsonApiGet(params) {
|
|
|
16456
16544
|
return () => {
|
|
16457
16545
|
isMounted.current = false;
|
|
16458
16546
|
};
|
|
16459
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
16547
|
+
}, [fetchData, ..._optionalChain([params, 'access', _498 => _498.options, 'optionalAccess', _499 => _499.deps]) || []]);
|
|
16460
16548
|
return {
|
|
16461
16549
|
data,
|
|
16462
16550
|
loading,
|
|
16463
16551
|
error,
|
|
16464
16552
|
response,
|
|
16465
16553
|
refetch: fetchData,
|
|
16466
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
16467
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
16554
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _500 => _500.next]),
|
|
16555
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _501 => _501.prev]),
|
|
16468
16556
|
fetchNextPage,
|
|
16469
16557
|
fetchPreviousPage
|
|
16470
16558
|
};
|
|
@@ -16542,17 +16630,17 @@ function useJsonApiMutation(config) {
|
|
|
16542
16630
|
if (apiResponse.ok) {
|
|
16543
16631
|
const resultData = apiResponse.data;
|
|
16544
16632
|
setData(resultData);
|
|
16545
|
-
_optionalChain([config, 'access',
|
|
16633
|
+
_optionalChain([config, 'access', _502 => _502.onSuccess, 'optionalCall', _503 => _503(resultData)]);
|
|
16546
16634
|
return resultData;
|
|
16547
16635
|
} else {
|
|
16548
16636
|
setError(apiResponse.error);
|
|
16549
|
-
_optionalChain([config, 'access',
|
|
16637
|
+
_optionalChain([config, 'access', _504 => _504.onError, 'optionalCall', _505 => _505(apiResponse.error)]);
|
|
16550
16638
|
return null;
|
|
16551
16639
|
}
|
|
16552
16640
|
} catch (err) {
|
|
16553
16641
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
16554
16642
|
setError(errorMessage);
|
|
16555
|
-
_optionalChain([config, 'access',
|
|
16643
|
+
_optionalChain([config, 'access', _506 => _506.onError, 'optionalCall', _507 => _507(errorMessage)]);
|
|
16556
16644
|
return null;
|
|
16557
16645
|
} finally {
|
|
16558
16646
|
setLoading(false);
|
|
@@ -16625,7 +16713,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16625
16713
|
{
|
|
16626
16714
|
href: hasRole(_chunkXH4IURUDjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
16627
16715
|
page: "/administration",
|
|
16628
|
-
id: _optionalChain([_chunkIB7DTXWGjs.Modules, 'access',
|
|
16716
|
+
id: _optionalChain([_chunkIB7DTXWGjs.Modules, 'access', _508 => _508.Company, 'access', _509 => _509.pageUrl, 'optionalAccess', _510 => _510.substring, 'call', _511 => _511(1)]),
|
|
16629
16717
|
childPage: company.id
|
|
16630
16718
|
}) : generateUrl({ page: _chunkIB7DTXWGjs.Modules.Company, id: company.id }),
|
|
16631
16719
|
children: row.getValue("name")
|
|
@@ -16641,7 +16729,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16641
16729
|
})
|
|
16642
16730
|
};
|
|
16643
16731
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16644
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16732
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _512 => _512[field], 'optionalCall', _513 => _513()])).filter((col) => col !== void 0);
|
|
16645
16733
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
16646
16734
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16647
16735
|
}, "useCompanyTableStructure");
|
|
@@ -16653,7 +16741,7 @@ var GRACE_DAYS = 3;
|
|
|
16653
16741
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
16654
16742
|
if (!currentUser || !_chunkXH4IURUDjs.isRolesConfigured.call(void 0, )) return false;
|
|
16655
16743
|
const adminRoleId = _chunkXH4IURUDjs.getRoleId.call(void 0, ).Administrator;
|
|
16656
|
-
return !!_optionalChain([currentUser, 'access',
|
|
16744
|
+
return !!_optionalChain([currentUser, 'access', _514 => _514.roles, 'optionalAccess', _515 => _515.some, 'call', _516 => _516((role) => role.id === adminRoleId)]);
|
|
16657
16745
|
}, "isAdministrator");
|
|
16658
16746
|
function useSubscriptionStatus() {
|
|
16659
16747
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -16771,7 +16859,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
16771
16859
|
})
|
|
16772
16860
|
};
|
|
16773
16861
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16774
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16862
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _517 => _517[field], 'optionalCall', _518 => _518()])).filter((col) => col !== void 0);
|
|
16775
16863
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16776
16864
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16777
16865
|
}, "useRoleTableStructure");
|
|
@@ -16816,8 +16904,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
|
|
|
16816
16904
|
var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
16817
16905
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
16818
16906
|
const generateUrl = usePageUrlGenerator();
|
|
16819
|
-
const onClone = _optionalChain([params, 'access',
|
|
16820
|
-
const onExport = _optionalChain([params, 'access',
|
|
16907
|
+
const onClone = _optionalChain([params, 'access', _519 => _519.context, 'optionalAccess', _520 => _520.onClone]);
|
|
16908
|
+
const onExport = _optionalChain([params, 'access', _521 => _521.context, 'optionalAccess', _522 => _522.onExport]);
|
|
16821
16909
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
16822
16910
|
return params.data.map((price) => {
|
|
16823
16911
|
const entry = { jsonApiData: price };
|
|
@@ -16882,7 +16970,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16882
16970
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
16883
16971
|
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") }),
|
|
16884
16972
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
16885
|
-
_optionalChain([price, 'access',
|
|
16973
|
+
_optionalChain([price, 'access', _523 => _523.recurring, 'optionalAccess', _524 => _524.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
|
|
16886
16974
|
] });
|
|
16887
16975
|
}, "cell"),
|
|
16888
16976
|
enableSorting: false,
|
|
@@ -16930,7 +17018,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16930
17018
|
})
|
|
16931
17019
|
};
|
|
16932
17020
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16933
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17021
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _525 => _525[field], 'optionalCall', _526 => _526()])).filter((col) => col !== void 0);
|
|
16934
17022
|
}, [params.fields, fieldColumnMap, t, generateUrl, onClone, onExport]);
|
|
16935
17023
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16936
17024
|
}, "useStripePriceTableStructure");
|
|
@@ -16989,7 +17077,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
16989
17077
|
})
|
|
16990
17078
|
};
|
|
16991
17079
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16992
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
17080
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _527 => _527[field], 'optionalCall', _528 => _528()])).filter((col) => col !== void 0);
|
|
16993
17081
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16994
17082
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16995
17083
|
}, "useStripeProductTableStructure");
|
|
@@ -17091,11 +17179,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
17091
17179
|
return params.fields.map((field) => {
|
|
17092
17180
|
const localHandler = fieldColumnMap[field];
|
|
17093
17181
|
if (localHandler) return localHandler();
|
|
17094
|
-
const customHandler = _optionalChain([params, 'access',
|
|
17182
|
+
const customHandler = _optionalChain([params, 'access', _529 => _529.context, 'optionalAccess', _530 => _530.customCells, 'optionalAccess', _531 => _531[field]]);
|
|
17095
17183
|
if (customHandler) return customHandler({ t });
|
|
17096
17184
|
return void 0;
|
|
17097
17185
|
}).filter((col) => col !== void 0);
|
|
17098
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
17186
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _532 => _532.context, 'optionalAccess', _533 => _533.customCells])]);
|
|
17099
17187
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
17100
17188
|
}, "useContentTableStructure");
|
|
17101
17189
|
|
|
@@ -17433,7 +17521,7 @@ function ContentTableSearch({ data }) {
|
|
|
17433
17521
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
17434
17522
|
if (!isExpanded) {
|
|
17435
17523
|
setIsFocused(true);
|
|
17436
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
17524
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _534 => _534.current, 'optionalAccess', _535 => _535.focus, 'call', _536 => _536()]), 50);
|
|
17437
17525
|
}
|
|
17438
17526
|
}, "handleSearchIconClick");
|
|
17439
17527
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -17530,7 +17618,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17530
17618
|
if (data.isLoaded) setPendingDirection(null);
|
|
17531
17619
|
}, [data.isLoaded]);
|
|
17532
17620
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17533
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17621
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _537 => _537.data]), () => ( EMPTY_ARRAY)),
|
|
17534
17622
|
fields,
|
|
17535
17623
|
checkedIds,
|
|
17536
17624
|
toggleId,
|
|
@@ -17563,7 +17651,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17563
17651
|
});
|
|
17564
17652
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17565
17653
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17566
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17654
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _538 => _538.rows, 'optionalAccess', _539 => _539.length])) return null;
|
|
17567
17655
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17568
17656
|
for (const row of rowModel.rows) {
|
|
17569
17657
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17632,19 +17720,19 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17632
17720
|
) }),
|
|
17633
17721
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17634
17722
|
const meta = header.column.columnDef.meta;
|
|
17635
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
17723
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _540 => _540.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
17636
17724
|
}) }, headerGroup.id))
|
|
17637
17725
|
] }),
|
|
17638
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
17639
|
-
/* @__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',
|
|
17726
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _541 => _541.rows, 'optionalAccess', _542 => _542.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
17727
|
+
/* @__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', _543 => _543.groupLabel, 'optionalCall', _544 => _544(group.groupKey)]), () => ( group.groupKey)) }) }) }),
|
|
17640
17728
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17641
17729
|
TableRow,
|
|
17642
17730
|
{
|
|
17643
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17731
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _545 => _545(row.original.jsonApiData)]),
|
|
17644
17732
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17645
17733
|
children: row.getVisibleCells().map((cell) => {
|
|
17646
17734
|
const meta = cell.column.columnDef.meta;
|
|
17647
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17735
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _546 => _546.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17648
17736
|
})
|
|
17649
17737
|
},
|
|
17650
17738
|
row.id
|
|
@@ -17652,11 +17740,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17652
17740
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17653
17741
|
TableRow,
|
|
17654
17742
|
{
|
|
17655
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17743
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _547 => _547(row.original.jsonApiData)]),
|
|
17656
17744
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17657
17745
|
children: row.getVisibleCells().map((cell) => {
|
|
17658
17746
|
const meta = cell.column.columnDef.meta;
|
|
17659
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17747
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _548 => _548.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17660
17748
|
})
|
|
17661
17749
|
},
|
|
17662
17750
|
row.id
|
|
@@ -17670,7 +17758,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17670
17758
|
onClick: (e) => {
|
|
17671
17759
|
e.preventDefault();
|
|
17672
17760
|
setPendingDirection("prev");
|
|
17673
|
-
_optionalChain([data, 'access',
|
|
17761
|
+
_optionalChain([data, 'access', _549 => _549.previous, 'optionalCall', _550 => _550(true)]);
|
|
17674
17762
|
},
|
|
17675
17763
|
disabled: !data.previous || pendingDirection !== null,
|
|
17676
17764
|
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" })
|
|
@@ -17685,7 +17773,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17685
17773
|
onClick: (e) => {
|
|
17686
17774
|
e.preventDefault();
|
|
17687
17775
|
setPendingDirection("next");
|
|
17688
|
-
_optionalChain([data, 'access',
|
|
17776
|
+
_optionalChain([data, 'access', _551 => _551.next, 'optionalCall', _552 => _552(true)]);
|
|
17689
17777
|
},
|
|
17690
17778
|
disabled: !data.next || pendingDirection !== null,
|
|
17691
17779
|
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" })
|
|
@@ -17706,7 +17794,7 @@ function ContentListGrid(props) {
|
|
|
17706
17794
|
if (!data.next || !sentinelRef.current) return;
|
|
17707
17795
|
const observer = new IntersectionObserver(
|
|
17708
17796
|
(entries) => {
|
|
17709
|
-
if (_optionalChain([entries, 'access',
|
|
17797
|
+
if (_optionalChain([entries, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.isIntersecting])) _optionalChain([data, 'access', _555 => _555.next, 'optionalCall', _556 => _556()]);
|
|
17710
17798
|
},
|
|
17711
17799
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17712
17800
|
);
|
|
@@ -18493,7 +18581,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18493
18581
|
newDigits[index] = digit;
|
|
18494
18582
|
setDigits(newDigits);
|
|
18495
18583
|
if (digit && index < 5) {
|
|
18496
|
-
_optionalChain([inputRefs, 'access',
|
|
18584
|
+
_optionalChain([inputRefs, 'access', _557 => _557.current, 'access', _558 => _558[index + 1], 'optionalAccess', _559 => _559.focus, 'call', _560 => _560()]);
|
|
18497
18585
|
}
|
|
18498
18586
|
const code = newDigits.join("");
|
|
18499
18587
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18502,7 +18590,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18502
18590
|
}, "handleChange");
|
|
18503
18591
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18504
18592
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18505
|
-
_optionalChain([inputRefs, 'access',
|
|
18593
|
+
_optionalChain([inputRefs, 'access', _561 => _561.current, 'access', _562 => _562[index - 1], 'optionalAccess', _563 => _563.focus, 'call', _564 => _564()]);
|
|
18506
18594
|
}
|
|
18507
18595
|
}, "handleKeyDown");
|
|
18508
18596
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18511,7 +18599,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18511
18599
|
if (pastedData.length === 6) {
|
|
18512
18600
|
const newDigits = pastedData.split("");
|
|
18513
18601
|
setDigits(newDigits);
|
|
18514
|
-
_optionalChain([inputRefs, 'access',
|
|
18602
|
+
_optionalChain([inputRefs, 'access', _565 => _565.current, 'access', _566 => _566[5], 'optionalAccess', _567 => _567.focus, 'call', _568 => _568()]);
|
|
18515
18603
|
onComplete(pastedData);
|
|
18516
18604
|
}
|
|
18517
18605
|
}, "handlePaste");
|
|
@@ -18722,8 +18810,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18722
18810
|
try {
|
|
18723
18811
|
const registrationData = await _chunkIB7DTXWGjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18724
18812
|
id: _uuid.v4.call(void 0, ),
|
|
18725
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18726
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18813
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _569 => _569.email]), () => ( "")),
|
|
18814
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _570 => _570.name])
|
|
18727
18815
|
});
|
|
18728
18816
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18729
18817
|
await _chunkIB7DTXWGjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -18874,7 +18962,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
18874
18962
|
const setup = await _chunkIB7DTXWGjs.TwoFactorService.setupTotp({
|
|
18875
18963
|
id: _uuid.v4.call(void 0, ),
|
|
18876
18964
|
name: name.trim(),
|
|
18877
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18965
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _571 => _571.email]), () => ( ""))
|
|
18878
18966
|
});
|
|
18879
18967
|
setQrCodeUri(setup.qrCodeUri);
|
|
18880
18968
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -19008,7 +19096,7 @@ function TwoFactorSettings() {
|
|
|
19008
19096
|
if (isLoading) {
|
|
19009
19097
|
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") }) }) });
|
|
19010
19098
|
}
|
|
19011
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19099
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _572 => _572.isEnabled]), () => ( false));
|
|
19012
19100
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
19013
19101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
19014
19102
|
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" }),
|
|
@@ -19046,7 +19134,7 @@ function TwoFactorSettings() {
|
|
|
19046
19134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
19047
19135
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
19048
19136
|
] }),
|
|
19049
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
19137
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _573 => _573.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
19050
19138
|
] }) }),
|
|
19051
19139
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
19052
19140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -19224,9 +19312,9 @@ function AcceptInvitation() {
|
|
|
19224
19312
|
});
|
|
19225
19313
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19226
19314
|
try {
|
|
19227
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19315
|
+
if (!_optionalChain([params, 'optionalAccess', _574 => _574.code])) return;
|
|
19228
19316
|
const payload = {
|
|
19229
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19317
|
+
code: _optionalChain([params, 'optionalAccess', _575 => _575.code]),
|
|
19230
19318
|
password: values.password
|
|
19231
19319
|
};
|
|
19232
19320
|
await _chunkIB7DTXWGjs.AuthService.acceptInvitation(payload);
|
|
@@ -19597,14 +19685,14 @@ function RefreshUser() {
|
|
|
19597
19685
|
setUser(fullUser);
|
|
19598
19686
|
const token = {
|
|
19599
19687
|
userId: fullUser.id,
|
|
19600
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19688
|
+
companyId: _optionalChain([fullUser, 'access', _576 => _576.company, 'optionalAccess', _577 => _577.id]),
|
|
19601
19689
|
roles: fullUser.roles.map((role) => role.id),
|
|
19602
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
19690
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _578 => _578.company, 'optionalAccess', _579 => _579.features, 'optionalAccess', _580 => _580.map, 'call', _581 => _581((feature) => feature.id)]), () => ( [])),
|
|
19603
19691
|
modules: fullUser.modules.map((module) => {
|
|
19604
19692
|
return { id: module.id, permissions: module.permissions };
|
|
19605
19693
|
})
|
|
19606
19694
|
};
|
|
19607
|
-
await _optionalChain([_chunkIB7DTXWGjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19695
|
+
await _optionalChain([_chunkIB7DTXWGjs.getTokenHandler.call(void 0, ), 'optionalAccess', _582 => _582.updateToken, 'call', _583 => _583(token)]);
|
|
19608
19696
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19609
19697
|
}
|
|
19610
19698
|
}, "loadFullUser");
|
|
@@ -19668,9 +19756,9 @@ function ResetPassword() {
|
|
|
19668
19756
|
});
|
|
19669
19757
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19670
19758
|
try {
|
|
19671
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19759
|
+
if (!_optionalChain([params, 'optionalAccess', _584 => _584.code])) return;
|
|
19672
19760
|
const payload = {
|
|
19673
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19761
|
+
code: _optionalChain([params, 'optionalAccess', _585 => _585.code]),
|
|
19674
19762
|
password: values.password
|
|
19675
19763
|
};
|
|
19676
19764
|
await _chunkIB7DTXWGjs.AuthService.resetPassword(payload);
|
|
@@ -20195,7 +20283,7 @@ function AiConnectionEditor({
|
|
|
20195
20283
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
20196
20284
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
20197
20285
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
20198
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
20286
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _586 => _586.find, 'call', _587 => _587((row) => row.provider === provider), 'optionalAccess', _588 => _588.fields]), () => ( [])),
|
|
20199
20287
|
[registryRows]
|
|
20200
20288
|
);
|
|
20201
20289
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -20204,7 +20292,7 @@ function AiConnectionEditor({
|
|
|
20204
20292
|
const seeded = {};
|
|
20205
20293
|
fieldsFor(provider).forEach((descriptor) => {
|
|
20206
20294
|
if (descriptor.kind === "boolean") {
|
|
20207
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20295
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _589 => _589[descriptor.field]]);
|
|
20208
20296
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
20209
20297
|
return;
|
|
20210
20298
|
}
|
|
@@ -20212,7 +20300,7 @@ function AiConnectionEditor({
|
|
|
20212
20300
|
seeded[descriptor.field] = "";
|
|
20213
20301
|
return;
|
|
20214
20302
|
}
|
|
20215
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20303
|
+
const current = _optionalChain([stored, 'optionalAccess', _590 => _590[descriptor.field]]);
|
|
20216
20304
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
20217
20305
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
20218
20306
|
});
|
|
@@ -20238,7 +20326,7 @@ function AiConnectionEditor({
|
|
|
20238
20326
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
20239
20327
|
}).superRefine((data, ctx) => {
|
|
20240
20328
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
20241
|
-
const value = _optionalChain([data, 'access',
|
|
20329
|
+
const value = _optionalChain([data, 'access', _591 => _591.values, 'optionalAccess', _592 => _592[descriptor.field]]);
|
|
20242
20330
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
20243
20331
|
if (filled) return;
|
|
20244
20332
|
ctx.addIssue({
|
|
@@ -20252,11 +20340,11 @@ function AiConnectionEditor({
|
|
|
20252
20340
|
);
|
|
20253
20341
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
20254
20342
|
() => ({
|
|
20255
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20256
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20257
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20258
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20259
|
-
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20343
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _593 => _593.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
20344
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _594 => _594.name]), () => ( "")),
|
|
20345
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _595 => _595.provider]), () => ( providers[0])), () => ( "")),
|
|
20346
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _596 => _596.enabled]), () => ( true)),
|
|
20347
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _597 => _597.provider]), () => ( providers[0])), () => ( "")))
|
|
20260
20348
|
}),
|
|
20261
20349
|
[connection, providers, defaultsFor]
|
|
20262
20350
|
);
|
|
@@ -20267,7 +20355,7 @@ function AiConnectionEditor({
|
|
|
20267
20355
|
_react.useEffect.call(void 0, () => {
|
|
20268
20356
|
if (registryRows.length === 0) return;
|
|
20269
20357
|
const currentProvider = form.getValues("provider");
|
|
20270
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20358
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _598 => _598.provider]) || providers[0] || "";
|
|
20271
20359
|
if (!provider) return;
|
|
20272
20360
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
20273
20361
|
const currentValues = form.getValues("values");
|
|
@@ -20338,7 +20426,7 @@ function AiConnectionEditor({
|
|
|
20338
20426
|
{
|
|
20339
20427
|
form,
|
|
20340
20428
|
entityType: t("ai_connections.admin.entity"),
|
|
20341
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20429
|
+
entityName: _optionalChain([connection, 'optionalAccess', _599 => _599.name]),
|
|
20342
20430
|
isEdit,
|
|
20343
20431
|
module: _chunkIB7DTXWGjs.Modules.AiConnection,
|
|
20344
20432
|
size: "md",
|
|
@@ -20346,7 +20434,7 @@ function AiConnectionEditor({
|
|
|
20346
20434
|
onSubmit: async (values) => {
|
|
20347
20435
|
const attributes = {};
|
|
20348
20436
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20349
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20437
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _600 => _600.values, 'optionalAccess', _601 => _601[descriptor.field]]));
|
|
20350
20438
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20351
20439
|
});
|
|
20352
20440
|
const payload = {
|
|
@@ -20567,7 +20655,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20567
20655
|
),
|
|
20568
20656
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20569
20657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
|
|
20570
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess',
|
|
20658
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _602 => _602.provider]), _optionalChain([envDefault, 'optionalAccess', _603 => _603.model]), _optionalChain([envDefault, 'optionalAccess', _604 => _604.url])].filter(Boolean).join(" \xB7 ") })
|
|
20571
20659
|
] })
|
|
20572
20660
|
] })
|
|
20573
20661
|
] })
|
|
@@ -20765,7 +20853,7 @@ function extractHeadings(blocks) {
|
|
|
20765
20853
|
function processBlocks(blockArray) {
|
|
20766
20854
|
for (const block of blockArray) {
|
|
20767
20855
|
if (block.type === "heading") {
|
|
20768
|
-
const level = _optionalChain([block, 'access',
|
|
20856
|
+
const level = _optionalChain([block, 'access', _605 => _605.props, 'optionalAccess', _606 => _606.level]) || 1;
|
|
20769
20857
|
const text = extractTextFromContent(block.content);
|
|
20770
20858
|
if (text.trim()) {
|
|
20771
20859
|
headings.push({
|
|
@@ -21108,7 +21196,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
21108
21196
|
})
|
|
21109
21197
|
};
|
|
21110
21198
|
const columns = _react.useMemo.call(void 0, () => {
|
|
21111
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
21199
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _607 => _607[field], 'optionalCall', _608 => _608()])).filter((col) => col !== void 0);
|
|
21112
21200
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
21113
21201
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
21114
21202
|
}, "useHowToTableStructure");
|
|
@@ -21127,7 +21215,7 @@ function HowToReindexButton({ refresh }) {
|
|
|
21127
21215
|
await _chunkIB7DTXWGjs.HowToService.reindex();
|
|
21128
21216
|
await refresh();
|
|
21129
21217
|
_chunkIB7DTXWGjs.showToast.call(void 0, t(`howto.reindex.done`));
|
|
21130
|
-
} catch (
|
|
21218
|
+
} catch (e11) {
|
|
21131
21219
|
_chunkIB7DTXWGjs.showError.call(void 0, t(`howto.reindex.failed`));
|
|
21132
21220
|
} finally {
|
|
21133
21221
|
setIsReindexing(false);
|
|
@@ -21233,7 +21321,7 @@ function HowToSelector({
|
|
|
21233
21321
|
}, "setHowTo");
|
|
21234
21322
|
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: [
|
|
21235
21323
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
21236
|
-
/* @__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',
|
|
21324
|
+
/* @__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', _609 => _609.value, 'optionalAccess', _610 => _610.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 }) }))) }) }) }),
|
|
21237
21325
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21238
21326
|
_lucidereact.CircleX,
|
|
21239
21327
|
{
|
|
@@ -21427,7 +21515,7 @@ function useEntityLabel() {
|
|
|
21427
21515
|
if (typeof t.has === "function" && !t.has(key)) return type;
|
|
21428
21516
|
try {
|
|
21429
21517
|
return t(key, { count: 1 });
|
|
21430
|
-
} catch (
|
|
21518
|
+
} catch (e12) {
|
|
21431
21519
|
return type;
|
|
21432
21520
|
}
|
|
21433
21521
|
},
|
|
@@ -21452,7 +21540,7 @@ function ReferencesTab({ references }) {
|
|
|
21452
21540
|
let module;
|
|
21453
21541
|
try {
|
|
21454
21542
|
module = _chunkIB7DTXWGjs.ModuleRegistry.findByName(ref.type);
|
|
21455
|
-
} catch (
|
|
21543
|
+
} catch (e13) {
|
|
21456
21544
|
return null;
|
|
21457
21545
|
}
|
|
21458
21546
|
const howToType = ref.howToType;
|
|
@@ -21526,10 +21614,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
21526
21614
|
] }) }),
|
|
21527
21615
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21528
21616
|
const isOpen = expanded.has(chunk.id);
|
|
21529
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
21617
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _611 => _611.get, 'call', _612 => _612(chunk.nodeId)]) : void 0;
|
|
21530
21618
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21531
21619
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21532
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
21620
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _613 => _613.name]), () => ( fallbackName));
|
|
21533
21621
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21534
21622
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21535
21623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21577,7 +21665,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21577
21665
|
for (const c of citations) {
|
|
21578
21666
|
const id = c.nodeId;
|
|
21579
21667
|
if (!id) continue;
|
|
21580
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
21668
|
+
const source = _optionalChain([sources, 'optionalAccess', _614 => _614.get, 'call', _615 => _615(id)]);
|
|
21581
21669
|
if (!source) continue;
|
|
21582
21670
|
const existing = map.get(id);
|
|
21583
21671
|
if (existing) {
|
|
@@ -21600,7 +21688,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21600
21688
|
let module;
|
|
21601
21689
|
try {
|
|
21602
21690
|
module = _chunkIB7DTXWGjs.ModuleRegistry.findByName(source.type);
|
|
21603
|
-
} catch (
|
|
21691
|
+
} catch (e14) {
|
|
21604
21692
|
return null;
|
|
21605
21693
|
}
|
|
21606
21694
|
const howToType = source.howToType;
|
|
@@ -21634,7 +21722,7 @@ function readAuthor(source) {
|
|
|
21634
21722
|
try {
|
|
21635
21723
|
const a = source.author;
|
|
21636
21724
|
return a && a.id ? a : void 0;
|
|
21637
|
-
} catch (
|
|
21725
|
+
} catch (e15) {
|
|
21638
21726
|
return void 0;
|
|
21639
21727
|
}
|
|
21640
21728
|
}
|
|
@@ -21644,7 +21732,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21644
21732
|
const generate = usePageUrlGenerator();
|
|
21645
21733
|
const userMap = /* @__PURE__ */ new Map();
|
|
21646
21734
|
for (const u of users) {
|
|
21647
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
21735
|
+
if (!_optionalChain([u, 'optionalAccess', _616 => _616.id])) continue;
|
|
21648
21736
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
21649
21737
|
}
|
|
21650
21738
|
if (citations && sources) {
|
|
@@ -21677,7 +21765,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21677
21765
|
let module;
|
|
21678
21766
|
try {
|
|
21679
21767
|
module = _chunkIB7DTXWGjs.ModuleRegistry.findByName(user.type);
|
|
21680
|
-
} catch (
|
|
21768
|
+
} catch (e16) {
|
|
21681
21769
|
return null;
|
|
21682
21770
|
}
|
|
21683
21771
|
const href = generate({ page: module, id: user.id });
|
|
@@ -21731,7 +21819,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21731
21819
|
() => message.references.filter((ref) => {
|
|
21732
21820
|
try {
|
|
21733
21821
|
return !!_chunkIB7DTXWGjs.ModuleRegistry.findByName(ref.type).pageUrl;
|
|
21734
|
-
} catch (
|
|
21822
|
+
} catch (e17) {
|
|
21735
21823
|
return false;
|
|
21736
21824
|
}
|
|
21737
21825
|
}),
|
|
@@ -21749,7 +21837,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21749
21837
|
}
|
|
21750
21838
|
return ids.size;
|
|
21751
21839
|
}, [message.citations, sources]);
|
|
21752
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
21840
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _617 => _617.length]), () => ( 0));
|
|
21753
21841
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
21754
21842
|
const visibleTabs = [];
|
|
21755
21843
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -21854,7 +21942,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
21854
21942
|
let module;
|
|
21855
21943
|
try {
|
|
21856
21944
|
module = _chunkIB7DTXWGjs.ModuleRegistry.findByModelName(nodeType);
|
|
21857
|
-
} catch (
|
|
21945
|
+
} catch (e18) {
|
|
21858
21946
|
continue;
|
|
21859
21947
|
}
|
|
21860
21948
|
const idsParam = `${_nullishCoalesce(module.nodeName, () => ( module.name.replace(/s$/, "")))}Ids`;
|
|
@@ -21888,11 +21976,11 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
21888
21976
|
const author = _nullishCoalesce(entity._author, () => ( (() => {
|
|
21889
21977
|
try {
|
|
21890
21978
|
return entity.author;
|
|
21891
|
-
} catch (
|
|
21979
|
+
} catch (e19) {
|
|
21892
21980
|
return void 0;
|
|
21893
21981
|
}
|
|
21894
21982
|
})()));
|
|
21895
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
21983
|
+
if (_optionalChain([author, 'optionalAccess', _618 => _618.id])) userMap.set(author.id, author);
|
|
21896
21984
|
}
|
|
21897
21985
|
return Array.from(userMap.values());
|
|
21898
21986
|
}, [resolved]);
|
|
@@ -21927,7 +22015,7 @@ function MessageItem({
|
|
|
21927
22015
|
}) {
|
|
21928
22016
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
21929
22017
|
const isUser = message.role === "user";
|
|
21930
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
22018
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _619 => _619.has, 'call', _620 => _620(message.id)]);
|
|
21931
22019
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
21932
22020
|
() => ({
|
|
21933
22021
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -21944,7 +22032,7 @@ function MessageItem({
|
|
|
21944
22032
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
21945
22033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
21946
22034
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
21947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
22035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _621 => _621(message.id)]), children: t("features.assistant.retry") })
|
|
21948
22036
|
] })
|
|
21949
22037
|
] });
|
|
21950
22038
|
}
|
|
@@ -22035,7 +22123,7 @@ function AssistantThread({
|
|
|
22035
22123
|
}) {
|
|
22036
22124
|
const endRef = _react.useRef.call(void 0, null);
|
|
22037
22125
|
_react.useEffect.call(void 0, () => {
|
|
22038
|
-
_optionalChain([endRef, 'access',
|
|
22126
|
+
_optionalChain([endRef, 'access', _622 => _622.current, 'optionalAccess', _623 => _623.scrollIntoView, 'call', _624 => _624({ behavior: "smooth" })]);
|
|
22039
22127
|
}, [messages.length, sending]);
|
|
22040
22128
|
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: [
|
|
22041
22129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22074,7 +22162,7 @@ ${message.sources.map((source) => `- \`${source}\``).join("\n")}`;
|
|
|
22074
22162
|
return _chunkIB7DTXWGjs.rehydrate.call(void 0, _chunkIB7DTXWGjs.Modules.HandbookThreadMessage, {
|
|
22075
22163
|
jsonApi: {
|
|
22076
22164
|
...dehydrated.jsonApi,
|
|
22077
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
22165
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _625 => _625.jsonApi, 'optionalAccess', _626 => _626.attributes]), () => ( {})), content }
|
|
22078
22166
|
},
|
|
22079
22167
|
included: dehydrated.included
|
|
22080
22168
|
});
|
|
@@ -22083,8 +22171,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, withSourcesInContent, "withSourcesInContent
|
|
|
22083
22171
|
function useHandbookAsk(params) {
|
|
22084
22172
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
22085
22173
|
const generateUrl = usePageUrlGenerator();
|
|
22086
|
-
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
22087
|
-
const handbookThreadId = _optionalChain([params, 'optionalAccess',
|
|
22174
|
+
const shouldSyncUrl = _nullishCoalesce(_optionalChain([params, 'optionalAccess', _627 => _627.syncUrl]), () => ( true));
|
|
22175
|
+
const handbookThreadId = _optionalChain([params, 'optionalAccess', _628 => _628.handbookThreadId]);
|
|
22088
22176
|
const [threads, setThreads] = _react.useState.call(void 0, []);
|
|
22089
22177
|
const [thread, setThread] = _react.useState.call(void 0, void 0);
|
|
22090
22178
|
const [messages, setMessages] = _react.useState.call(void 0, []);
|
|
@@ -22146,12 +22234,12 @@ function useHandbookAsk(params) {
|
|
|
22146
22234
|
]);
|
|
22147
22235
|
setSending(true);
|
|
22148
22236
|
try {
|
|
22149
|
-
let id = _optionalChain([thread, 'optionalAccess',
|
|
22237
|
+
let id = _optionalChain([thread, 'optionalAccess', _629 => _629.id]);
|
|
22150
22238
|
if (id === void 0) {
|
|
22151
22239
|
const created = await _chunkIB7DTXWGjs.HandbookThreadService.create({
|
|
22152
22240
|
id: _uuid.v4.call(void 0, ),
|
|
22153
22241
|
question: trimmed,
|
|
22154
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22242
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _630 => _630.handbookPageId])
|
|
22155
22243
|
});
|
|
22156
22244
|
id = created.id;
|
|
22157
22245
|
setThreads((current) => [created, ...current]);
|
|
@@ -22160,7 +22248,7 @@ function useHandbookAsk(params) {
|
|
|
22160
22248
|
id: _uuid.v4.call(void 0, ),
|
|
22161
22249
|
threadId: id,
|
|
22162
22250
|
question: trimmed,
|
|
22163
|
-
handbookPageId: _optionalChain([options, 'optionalAccess',
|
|
22251
|
+
handbookPageId: _optionalChain([options, 'optionalAccess', _631 => _631.handbookPageId])
|
|
22164
22252
|
});
|
|
22165
22253
|
}
|
|
22166
22254
|
const loaded = await _chunkIB7DTXWGjs.HandbookThreadService.findOne({ id });
|
|
@@ -22168,7 +22256,7 @@ function useHandbookAsk(params) {
|
|
|
22168
22256
|
setMessages(withSources(loaded.messages, sourcesLabel));
|
|
22169
22257
|
setThreads((current) => current.map((item) => item.id === loaded.id ? loaded : item));
|
|
22170
22258
|
syncUrl(loaded.id);
|
|
22171
|
-
} catch (
|
|
22259
|
+
} catch (e20) {
|
|
22172
22260
|
setMessages((current) => [
|
|
22173
22261
|
...current,
|
|
22174
22262
|
_chunkIB7DTXWGjs.HandbookThreadMessage.buildLocal({
|
|
@@ -22181,7 +22269,7 @@ function useHandbookAsk(params) {
|
|
|
22181
22269
|
setSending(false);
|
|
22182
22270
|
}
|
|
22183
22271
|
},
|
|
22184
|
-
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess',
|
|
22272
|
+
[messages.length, sending, syncUrl, t, _optionalChain([thread, 'optionalAccess', _632 => _632.id])]
|
|
22185
22273
|
);
|
|
22186
22274
|
return { threads, thread, messages, sending, ask, selectThread, startNew };
|
|
22187
22275
|
}
|
|
@@ -22265,7 +22353,7 @@ function HandbookSyncButton({ refresh }) {
|
|
|
22265
22353
|
await _chunkIB7DTXWGjs.HandbookPageService.sync();
|
|
22266
22354
|
await refresh();
|
|
22267
22355
|
_chunkIB7DTXWGjs.showToast.call(void 0, t(`handbook.synced`));
|
|
22268
|
-
} catch (
|
|
22356
|
+
} catch (e21) {
|
|
22269
22357
|
_chunkIB7DTXWGjs.showError.call(void 0, t(`handbook.syncFailed`));
|
|
22270
22358
|
} finally {
|
|
22271
22359
|
setIsSyncing(false);
|
|
@@ -22473,8 +22561,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, HandbookAdminContainer, "HandbookAdminConta
|
|
|
22473
22561
|
|
|
22474
22562
|
// src/features/handbook/components/details/HandbookPageDetails.tsx
|
|
22475
22563
|
|
|
22564
|
+
var READING_SCALE = "text-sm [&_h1]:text-2xl [&_h2]:text-xl [&_h3]:text-base [&_h4]:text-sm [&_table]:text-sm";
|
|
22476
22565
|
function HandbookPageDetails({ handbookPage }) {
|
|
22477
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReactMarkdownContainer, { content: _chunkIB7DTXWGjs.handbookPageContent.call(void 0, handbookPage) });
|
|
22566
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: READING_SCALE, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReactMarkdownContainer, { content: _chunkIB7DTXWGjs.handbookPageContent.call(void 0, handbookPage) }) });
|
|
22478
22567
|
}
|
|
22479
22568
|
_chunk7QVYU63Ejs.__name.call(void 0, HandbookPageDetails, "HandbookPageDetails");
|
|
22480
22569
|
|
|
@@ -22725,7 +22814,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
22725
22814
|
try {
|
|
22726
22815
|
const allSections = await _chunkIB7DTXWGjs.HandbookSectionService.findMany();
|
|
22727
22816
|
if (!cancelled) setSections(allSections);
|
|
22728
|
-
} catch (
|
|
22817
|
+
} catch (e22) {
|
|
22729
22818
|
if (!cancelled) setSections([]);
|
|
22730
22819
|
}
|
|
22731
22820
|
}, "loadSections");
|
|
@@ -22736,7 +22825,7 @@ function HandbookPageContainer({ handbookPageId }) {
|
|
|
22736
22825
|
};
|
|
22737
22826
|
}, []);
|
|
22738
22827
|
const section = _react.useMemo.call(void 0,
|
|
22739
|
-
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess',
|
|
22828
|
+
() => sections.find((candidate) => candidate.key === _optionalChain([handbookPage, 'optionalAccess', _633 => _633.section])),
|
|
22740
22829
|
[sections, handbookPage]
|
|
22741
22830
|
);
|
|
22742
22831
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22850,7 +22939,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
22850
22939
|
AssistantSidebar,
|
|
22851
22940
|
{
|
|
22852
22941
|
threads,
|
|
22853
|
-
activeId: _optionalChain([thread, 'optionalAccess',
|
|
22942
|
+
activeId: _optionalChain([thread, 'optionalAccess', _634 => _634.id]),
|
|
22854
22943
|
onSelect: selectThread,
|
|
22855
22944
|
onNew: startNew,
|
|
22856
22945
|
newLabel: t("handbook.chat.new"),
|
|
@@ -22858,7 +22947,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
22858
22947
|
}
|
|
22859
22948
|
) })
|
|
22860
22949
|
),
|
|
22861
|
-
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess',
|
|
22950
|
+
[selectThread, startNew, t, _optionalChain([thread, 'optionalAccess', _635 => _635.id]), threads]
|
|
22862
22951
|
);
|
|
22863
22952
|
return (
|
|
22864
22953
|
// `RoundPageContainer` reads the page heading from the shared context, and
|
|
@@ -22870,7 +22959,7 @@ function HandbookAskContainer({ handbookThreadId } = {}) {
|
|
|
22870
22959
|
RoundPageContainer,
|
|
22871
22960
|
{
|
|
22872
22961
|
module: _chunkIB7DTXWGjs.Modules.HandbookPage,
|
|
22873
|
-
id: _optionalChain([thread, 'optionalAccess',
|
|
22962
|
+
id: _optionalChain([thread, 'optionalAccess', _636 => _636.id]),
|
|
22874
22963
|
fullWidth: true,
|
|
22875
22964
|
forceHeader: true,
|
|
22876
22965
|
defaultDetailsOpen: true,
|
|
@@ -23022,7 +23111,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
23022
23111
|
AssistantSidebar,
|
|
23023
23112
|
{
|
|
23024
23113
|
threads: ctx.threads,
|
|
23025
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23114
|
+
activeId: _optionalChain([ctx, 'access', _637 => _637.assistant, 'optionalAccess', _638 => _638.id]),
|
|
23026
23115
|
onSelect: ctx.selectThread,
|
|
23027
23116
|
onNew: ctx.startNew
|
|
23028
23117
|
}
|
|
@@ -23076,7 +23165,7 @@ function flattenBlocks(blocks) {
|
|
|
23076
23165
|
if (typeof inline === "string") return inline;
|
|
23077
23166
|
if (!inline || typeof inline !== "object") return "";
|
|
23078
23167
|
const node = inline;
|
|
23079
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
23168
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _639 => _639.props, 'optionalAccess', _640 => _640.alias]), () => ( ""));
|
|
23080
23169
|
if (typeof node.text === "string") return node.text;
|
|
23081
23170
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
23082
23171
|
return "";
|
|
@@ -23192,7 +23281,7 @@ function AssistantPageContainer({
|
|
|
23192
23281
|
AssistantSidebar,
|
|
23193
23282
|
{
|
|
23194
23283
|
threads: ctx.threads,
|
|
23195
|
-
activeId: _optionalChain([ctx, 'access',
|
|
23284
|
+
activeId: _optionalChain([ctx, 'access', _641 => _641.assistant, 'optionalAccess', _642 => _642.id]),
|
|
23196
23285
|
onSelect: ctx.selectThread,
|
|
23197
23286
|
onNew: ctx.startNew
|
|
23198
23287
|
}
|
|
@@ -23301,7 +23390,7 @@ function asBlockNoteDocument(value) {
|
|
|
23301
23390
|
(block) => !!block && typeof block === "object" && typeof block.type === "string"
|
|
23302
23391
|
);
|
|
23303
23392
|
return everyBlock ? parsed : void 0;
|
|
23304
|
-
} catch (
|
|
23393
|
+
} catch (e23) {
|
|
23305
23394
|
return void 0;
|
|
23306
23395
|
}
|
|
23307
23396
|
}
|
|
@@ -23359,7 +23448,7 @@ function parseOperatorProposal(proposal) {
|
|
|
23359
23448
|
let parsed;
|
|
23360
23449
|
try {
|
|
23361
23450
|
parsed = JSON.parse(proposal);
|
|
23362
|
-
} catch (
|
|
23451
|
+
} catch (e24) {
|
|
23363
23452
|
return void 0;
|
|
23364
23453
|
}
|
|
23365
23454
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return void 0;
|
|
@@ -23386,7 +23475,7 @@ function parseLegacyProposal(toolArgs) {
|
|
|
23386
23475
|
let parsed;
|
|
23387
23476
|
try {
|
|
23388
23477
|
parsed = JSON.parse(toolArgs);
|
|
23389
|
-
} catch (
|
|
23478
|
+
} catch (e25) {
|
|
23390
23479
|
return void 0;
|
|
23391
23480
|
}
|
|
23392
23481
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return void 0;
|
|
@@ -23431,12 +23520,12 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23431
23520
|
const presented = _react.useMemo.call(void 0, () => parseOperatorProposal(actionProposal), [actionProposal]);
|
|
23432
23521
|
const legacy = _react.useMemo.call(void 0, () => presented ? void 0 : parseLegacyProposal(toolArgs), [presented, toolArgs]);
|
|
23433
23522
|
const isUpdate = toolName === "update_entity";
|
|
23434
|
-
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23435
|
-
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23523
|
+
const entityLabel = humaniseType(_nullishCoalesce(_nullishCoalesce(_optionalChain([presented, 'optionalAccess', _643 => _643.type]), () => ( _optionalChain([legacy, 'optionalAccess', _644 => _644.type]))), () => ( "")));
|
|
23524
|
+
const targetLabel = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _645 => _645.target, 'optionalAccess', _646 => _646.label]), () => ( ""));
|
|
23436
23525
|
const rows = _react.useMemo.call(void 0, () => {
|
|
23437
23526
|
const yes = t("features.assistant.approval.proposal.yes");
|
|
23438
23527
|
const no = t("features.assistant.approval.proposal.no");
|
|
23439
|
-
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess',
|
|
23528
|
+
const attributes = _nullishCoalesce(_optionalChain([presented, 'optionalAccess', _647 => _647.attributes]), () => ( _optionalChain([legacy, 'optionalAccess', _648 => _648.attributes])));
|
|
23440
23529
|
const attributeRows = Object.entries(_nullishCoalesce(attributes, () => ( {}))).flatMap(([key, value]) => {
|
|
23441
23530
|
const text = formatAttribute(value, yes, no);
|
|
23442
23531
|
return text === void 0 ? [] : [{ key: `attribute:${key}`, label: humaniseKey(key), value: text }];
|
|
@@ -23474,7 +23563,7 @@ function ApprovalActionCard({ actionId, summary, onResolved, hiddenRelationshipK
|
|
|
23474
23563
|
try {
|
|
23475
23564
|
const message = kind === "approve" ? await _chunkIB7DTXWGjs.AssistantActionService.approve({ id: actionId }) : await _chunkIB7DTXWGjs.AssistantActionService.deny({ id: actionId });
|
|
23476
23565
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
23477
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
23566
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _649 => _649(message)]);
|
|
23478
23567
|
} catch (error) {
|
|
23479
23568
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
23480
23569
|
setFailed(true);
|
|
@@ -23583,14 +23672,14 @@ function NotificationsList({ archived }) {
|
|
|
23583
23672
|
] }),
|
|
23584
23673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
23585
23674
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
23586
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
23675
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _650 => _650.data, 'optionalAccess', _651 => _651.map, 'call', _652 => _652((notification) => {
|
|
23587
23676
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
23588
23677
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex w-full flex-row items-center p-2`, children: [
|
|
23589
23678
|
notificationData.actor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-12 max-w-12 px-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: _chunkIB7DTXWGjs.Modules.User, id: notificationData.actor.id }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user: notificationData.actor, className: "h-8 w-8" }) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-14 max-w-14 px-2" }),
|
|
23590
23679
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
23591
23680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
23592
23681
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
23593
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
23682
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _653 => _653.actor, 'optionalAccess', _654 => _654.name]), () => ( "")),
|
|
23594
23683
|
title: notificationData.title
|
|
23595
23684
|
}) }),
|
|
23596
23685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -23936,7 +24025,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
23936
24025
|
invalidEmail: "Please enter a valid email address"
|
|
23937
24026
|
};
|
|
23938
24027
|
async function copyToClipboard(text) {
|
|
23939
|
-
if (_optionalChain([navigator, 'access',
|
|
24028
|
+
if (_optionalChain([navigator, 'access', _655 => _655.clipboard, 'optionalAccess', _656 => _656.writeText])) {
|
|
23940
24029
|
try {
|
|
23941
24030
|
await navigator.clipboard.writeText(text);
|
|
23942
24031
|
return true;
|
|
@@ -23978,7 +24067,7 @@ function ReferralWidget({
|
|
|
23978
24067
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
23979
24068
|
const config = _chunkXH4IURUDjs.getReferralConfig.call(void 0, );
|
|
23980
24069
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
23981
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
24070
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _657 => _657.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
23982
24071
|
if (!_chunkXH4IURUDjs.isReferralEnabled.call(void 0, )) {
|
|
23983
24072
|
return null;
|
|
23984
24073
|
}
|
|
@@ -23988,7 +24077,7 @@ function ReferralWidget({
|
|
|
23988
24077
|
if (success) {
|
|
23989
24078
|
setCopied(true);
|
|
23990
24079
|
_chunkIB7DTXWGjs.showToast.call(void 0, t.copiedMessage);
|
|
23991
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
24080
|
+
_optionalChain([onLinkCopied, 'optionalCall', _658 => _658()]);
|
|
23992
24081
|
setTimeout(() => setCopied(false), 2e3);
|
|
23993
24082
|
} else {
|
|
23994
24083
|
_chunkIB7DTXWGjs.showError.call(void 0, t.copyError);
|
|
@@ -24002,12 +24091,12 @@ function ReferralWidget({
|
|
|
24002
24091
|
try {
|
|
24003
24092
|
await sendInvite(email);
|
|
24004
24093
|
_chunkIB7DTXWGjs.showToast.call(void 0, t.inviteSent);
|
|
24005
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
24094
|
+
_optionalChain([onInviteSent, 'optionalCall', _659 => _659(email)]);
|
|
24006
24095
|
setEmail("");
|
|
24007
24096
|
} catch (err) {
|
|
24008
24097
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
24009
24098
|
_chunkIB7DTXWGjs.showError.call(void 0, error2.message);
|
|
24010
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
24099
|
+
_optionalChain([onInviteError, 'optionalCall', _660 => _660(error2)]);
|
|
24011
24100
|
}
|
|
24012
24101
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
24013
24102
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -24415,7 +24504,7 @@ function isValidRedirectUri(uri) {
|
|
|
24415
24504
|
try {
|
|
24416
24505
|
new URL(uri);
|
|
24417
24506
|
return true;
|
|
24418
|
-
} catch (
|
|
24507
|
+
} catch (e26) {
|
|
24419
24508
|
return false;
|
|
24420
24509
|
}
|
|
24421
24510
|
}
|
|
@@ -24761,7 +24850,7 @@ function OAuthClientList({
|
|
|
24761
24850
|
OAuthClientCard,
|
|
24762
24851
|
{
|
|
24763
24852
|
client,
|
|
24764
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
24853
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _661 => _661(client)]),
|
|
24765
24854
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
24766
24855
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
24767
24856
|
},
|
|
@@ -24777,11 +24866,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
24777
24866
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
24778
24867
|
const isEditMode = !!client;
|
|
24779
24868
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
24780
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
24781
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
24782
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
24783
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
24784
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
24869
|
+
name: _optionalChain([client, 'optionalAccess', _662 => _662.name]) || "",
|
|
24870
|
+
description: _optionalChain([client, 'optionalAccess', _663 => _663.description]) || "",
|
|
24871
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _664 => _664.redirectUris, 'optionalAccess', _665 => _665.length]) ? client.redirectUris : [""],
|
|
24872
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _666 => _666.allowedScopes]) || [],
|
|
24873
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _667 => _667.isConfidential]), () => ( true))
|
|
24785
24874
|
});
|
|
24786
24875
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
24787
24876
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -25009,7 +25098,7 @@ function OAuthClientDetail({
|
|
|
25009
25098
|
] }),
|
|
25010
25099
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25011
25100
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
25012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkIB7DTXWGjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
25101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: client.allowedScopes.map((scope) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "secondary", children: _optionalChain([_chunkIB7DTXWGjs.OAUTH_SCOPE_DISPLAY, 'access', _668 => _668[scope], 'optionalAccess', _669 => _669.name]) || scope }, scope)) })
|
|
25013
25102
|
] }),
|
|
25014
25103
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
25015
25104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -25153,7 +25242,7 @@ function OAuthConsentScreen({
|
|
|
25153
25242
|
if (error || !clientInfo) {
|
|
25154
25243
|
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: [
|
|
25155
25244
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
25156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
25245
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _670 => _670.message]) || "Invalid authorization request. Please try again." })
|
|
25157
25246
|
] }) }) }) });
|
|
25158
25247
|
}
|
|
25159
25248
|
const { client, scopes } = clientInfo;
|
|
@@ -25369,7 +25458,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
25369
25458
|
questionnaire: values.questionnaire
|
|
25370
25459
|
});
|
|
25371
25460
|
setIsSuccess(true);
|
|
25372
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
25461
|
+
_optionalChain([onSuccess, 'optionalCall', _671 => _671()]);
|
|
25373
25462
|
} catch (e) {
|
|
25374
25463
|
errorToast({ error: e });
|
|
25375
25464
|
} finally {
|
|
@@ -25527,7 +25616,7 @@ function parseQuestionnaire(questionnaire) {
|
|
|
25527
25616
|
if (!questionnaire) return null;
|
|
25528
25617
|
try {
|
|
25529
25618
|
return JSON.parse(questionnaire);
|
|
25530
|
-
} catch (
|
|
25619
|
+
} catch (e27) {
|
|
25531
25620
|
return null;
|
|
25532
25621
|
}
|
|
25533
25622
|
}
|
|
@@ -26017,7 +26106,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
26017
26106
|
] }),
|
|
26018
26107
|
roleIds.map((roleId) => {
|
|
26019
26108
|
const roleTokens = block[roleId];
|
|
26020
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26109
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _672 => _672[roleId]]), () => ( roleId));
|
|
26021
26110
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26022
26111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
26023
26112
|
_chunkXH4IURUDjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -26054,7 +26143,7 @@ function RbacContainer() {
|
|
|
26054
26143
|
}, []);
|
|
26055
26144
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26056
26145
|
if (!matrix) return [];
|
|
26057
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26146
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _673 => _673[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _674 => _674[b]]), () => ( b))));
|
|
26058
26147
|
}, [matrix, moduleNames]);
|
|
26059
26148
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
26060
26149
|
if (roleNames) {
|
|
@@ -26117,7 +26206,7 @@ function RbacContainer() {
|
|
|
26117
26206
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
26118
26207
|
id !== selectedModuleId && "text-muted-foreground"
|
|
26119
26208
|
),
|
|
26120
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26209
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _675 => _675[id]]), () => ( id))
|
|
26121
26210
|
}
|
|
26122
26211
|
) }, id)) }) }),
|
|
26123
26212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -26125,7 +26214,7 @@ function RbacContainer() {
|
|
|
26125
26214
|
{
|
|
26126
26215
|
moduleId: selectedModuleId,
|
|
26127
26216
|
block: selectedBlock,
|
|
26128
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26217
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _676 => _676[selectedModuleId]]), () => ( selectedModuleId)),
|
|
26129
26218
|
roleIds,
|
|
26130
26219
|
roleNames,
|
|
26131
26220
|
onOpenPicker: openPicker
|
|
@@ -26136,12 +26225,12 @@ function RbacContainer() {
|
|
|
26136
26225
|
RbacPermissionPicker,
|
|
26137
26226
|
{
|
|
26138
26227
|
open: !!activePicker,
|
|
26139
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26228
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _677 => _677.anchor]), () => ( null)),
|
|
26140
26229
|
value: activeValue,
|
|
26141
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26230
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _678 => _678.isRoleColumn]), () => ( false)),
|
|
26142
26231
|
knownSegments: activeSegments,
|
|
26143
26232
|
onSetValue: handleSetValue,
|
|
26144
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26233
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _679 => _679.isRoleColumn]) ? handleClear : void 0,
|
|
26145
26234
|
onClose: closePicker
|
|
26146
26235
|
}
|
|
26147
26236
|
)
|
|
@@ -26208,7 +26297,7 @@ function RbacByRoleContainer() {
|
|
|
26208
26297
|
}, [roleNames]);
|
|
26209
26298
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
26210
26299
|
if (!matrix) return [];
|
|
26211
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26300
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _680 => _680[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _681 => _681[b]]), () => ( b))));
|
|
26212
26301
|
}, [matrix, moduleNames]);
|
|
26213
26302
|
_react.useEffect.call(void 0, () => {
|
|
26214
26303
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -26257,7 +26346,7 @@ function RbacByRoleContainer() {
|
|
|
26257
26346
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
26258
26347
|
id !== selectedRoleId && "text-muted-foreground"
|
|
26259
26348
|
),
|
|
26260
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26349
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _682 => _682[id]]), () => ( id))
|
|
26261
26350
|
}
|
|
26262
26351
|
) }, id)) }) }),
|
|
26263
26352
|
/* @__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: [
|
|
@@ -26277,7 +26366,7 @@ function RbacByRoleContainer() {
|
|
|
26277
26366
|
if (!block) return null;
|
|
26278
26367
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
26279
26368
|
const roleTokens = block[selectedRoleId];
|
|
26280
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
26369
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _683 => _683[moduleId]]), () => ( moduleId));
|
|
26281
26370
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
26282
26371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26283
26372
|
"td",
|
|
@@ -26292,7 +26381,7 @@ function RbacByRoleContainer() {
|
|
|
26292
26381
|
_chunkXH4IURUDjs.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))
|
|
26293
26382
|
] }),
|
|
26294
26383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
26295
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
26384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _684 => _684[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
26296
26385
|
_chunkXH4IURUDjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26297
26386
|
CellButton3,
|
|
26298
26387
|
{
|
|
@@ -26313,12 +26402,12 @@ function RbacByRoleContainer() {
|
|
|
26313
26402
|
RbacPermissionPicker,
|
|
26314
26403
|
{
|
|
26315
26404
|
open: !!activePicker,
|
|
26316
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26405
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _685 => _685.anchor]), () => ( null)),
|
|
26317
26406
|
value: activeValue,
|
|
26318
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
26407
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _686 => _686.isRoleColumn]), () => ( false)),
|
|
26319
26408
|
knownSegments: activeSegments,
|
|
26320
26409
|
onSetValue: handleSetValue,
|
|
26321
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
26410
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _687 => _687.isRoleColumn]) ? handleClear : void 0,
|
|
26322
26411
|
onClose: closePicker
|
|
26323
26412
|
}
|
|
26324
26413
|
)
|
|
@@ -26919,5 +27008,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
26919
27008
|
|
|
26920
27009
|
|
|
26921
27010
|
|
|
26922
|
-
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.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.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.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.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.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.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.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
26923
|
-
//# sourceMappingURL=chunk-LVE3BJ6K.js.map
|
|
27011
|
+
|
|
27012
|
+
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.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.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.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.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.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.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.mapOnboardingSide = mapOnboardingSide; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.ViewportProvider = ViewportProvider; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
27013
|
+
//# sourceMappingURL=chunk-OH6GJY4B.js.map
|