@carlonicora/nextjs-jsonapi 3.5.7 → 3.5.9
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-PZ5HOXFK.mjs → BlockNoteEditor-5AQQQQY3.mjs} +2 -2
- package/dist/{BlockNoteEditor-JSZ2YZVY.js → BlockNoteEditor-EWMWY4SK.js} +9 -9
- package/dist/{BlockNoteEditor-JSZ2YZVY.js.map → BlockNoteEditor-EWMWY4SK.js.map} +1 -1
- package/dist/billing/index.js +333 -333
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-N73QMKQU.js → chunk-EJIWXCXI.js} +319 -213
- package/dist/chunk-EJIWXCXI.js.map +1 -0
- package/dist/{chunk-C7I6YFTA.mjs → chunk-OE2WEAPU.mjs} +126 -20
- package/dist/chunk-OE2WEAPU.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +21 -1
- package/dist/components/index.d.ts +21 -1
- 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 +1 -1
- package/src/components/forms/EditorSheet.tsx +44 -22
- package/src/components/forms/FileUploader.tsx +18 -2
- package/src/components/forms/MultiFileUploader.tsx +23 -5
- package/src/components/forms/index.ts +1 -1
- package/dist/chunk-C7I6YFTA.mjs.map +0 -1
- package/dist/chunk-N73QMKQU.js.map +0 -1
- /package/dist/{BlockNoteEditor-PZ5HOXFK.mjs.map → BlockNoteEditor-5AQQQQY3.mjs.map} +0 -0
|
@@ -9638,12 +9638,13 @@ function resolveTriggerIsNativeButton(trigger) {
|
|
|
9638
9638
|
return true;
|
|
9639
9639
|
}
|
|
9640
9640
|
_chunk7QVYU63Ejs.__name.call(void 0, resolveTriggerIsNativeButton, "resolveTriggerIsNativeButton");
|
|
9641
|
+
var fullWidthOnMobile = "data-[side=right]:w-full data-[side=left]:w-full";
|
|
9641
9642
|
var sizeClasses = {
|
|
9642
|
-
sm:
|
|
9643
|
-
md:
|
|
9644
|
-
lg:
|
|
9645
|
-
xl:
|
|
9646
|
-
"2xl":
|
|
9643
|
+
sm: `${fullWidthOnMobile} data-[side=right]:sm:max-w-2xl data-[side=left]:sm:max-w-2xl`,
|
|
9644
|
+
md: `${fullWidthOnMobile} data-[side=right]:sm:max-w-3xl data-[side=left]:sm:max-w-3xl`,
|
|
9645
|
+
lg: `${fullWidthOnMobile} data-[side=right]:sm:max-w-5xl data-[side=left]:sm:max-w-5xl`,
|
|
9646
|
+
xl: `${fullWidthOnMobile} data-[side=right]:sm:max-w-7xl data-[side=left]:sm:max-w-7xl`,
|
|
9647
|
+
"2xl": `${fullWidthOnMobile} data-[side=right]:sm:!max-w-[min(96rem,90vw)] data-[side=left]:sm:!max-w-[min(96rem,90vw)]`
|
|
9647
9648
|
};
|
|
9648
9649
|
function EditorSheet({
|
|
9649
9650
|
form,
|
|
@@ -9745,17 +9746,33 @@ function EditorSheet({
|
|
|
9745
9746
|
// is resolved per trigger rather than hardcoded (a constant `false`
|
|
9746
9747
|
// warned on every native-button trigger).
|
|
9747
9748
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { nativeButton: resolveTriggerIsNativeButton(trigger), render: trigger })
|
|
9748
|
-
) :
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9749
|
+
) : (
|
|
9750
|
+
// The default trigger goes through `render` for the SAME reason the
|
|
9751
|
+
// caller-supplied one above does. As CHILDREN, the Button rendered a
|
|
9752
|
+
// second `role="button"` inside SheetTrigger's own button: two nodes
|
|
9753
|
+
// with one accessible name, which a screen reader announces as a
|
|
9754
|
+
// button inside a button and which makes
|
|
9755
|
+
// `getByRole("button", { name })` ambiguous (e2e DRQ-01 failed strict
|
|
9756
|
+
// mode on exactly this). `nativeButton={false}` because both variants
|
|
9757
|
+
// render a <div>, matching the element the trigger actually emits.
|
|
9758
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9759
|
+
SheetTrigger,
|
|
9760
|
+
{
|
|
9761
|
+
nativeButton: false,
|
|
9762
|
+
render: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9763
|
+
Button,
|
|
9764
|
+
{
|
|
9765
|
+
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
9766
|
+
nativeButton: false,
|
|
9767
|
+
size: "sm",
|
|
9768
|
+
variant: "ghost",
|
|
9769
|
+
className: "text-muted-foreground",
|
|
9770
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, {})
|
|
9771
|
+
}
|
|
9772
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: "outline", children: t("ui.buttons.create") })
|
|
9773
|
+
}
|
|
9774
|
+
)
|
|
9775
|
+
)),
|
|
9759
9776
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SheetContent, { side: "end", className: sizeClasses[size], children: [
|
|
9760
9777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetHeader, { className: "border-b px-6 py-4", children: actions ? (
|
|
9761
9778
|
// pe-10 clears the SheetContent close button, which sits at the
|
|
@@ -10045,9 +10062,21 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
10045
10062
|
);
|
|
10046
10063
|
const handleKeyDown = _react.useCallback.call(void 0,
|
|
10047
10064
|
(e) => {
|
|
10065
|
+
if (!value) return;
|
|
10066
|
+
const handledKeys = [
|
|
10067
|
+
"ArrowLeft",
|
|
10068
|
+
"ArrowRight",
|
|
10069
|
+
"ArrowUp",
|
|
10070
|
+
"ArrowDown",
|
|
10071
|
+
"Enter",
|
|
10072
|
+
"Space",
|
|
10073
|
+
"Delete",
|
|
10074
|
+
"Backspace",
|
|
10075
|
+
"Escape"
|
|
10076
|
+
];
|
|
10077
|
+
if (!handledKeys.includes(e.key)) return;
|
|
10048
10078
|
e.preventDefault();
|
|
10049
10079
|
e.stopPropagation();
|
|
10050
|
-
if (!value) return;
|
|
10051
10080
|
const moveNext = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10052
10081
|
const nextIndex = activeIndex + 1;
|
|
10053
10082
|
setActiveIndex(nextIndex > value.length - 1 ? 0 : nextIndex);
|
|
@@ -10314,7 +10343,7 @@ FileInput.displayName = "FileInput";
|
|
|
10314
10343
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10315
10344
|
|
|
10316
10345
|
|
|
10317
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10346
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-EWMWY4SK.js"))), {
|
|
10318
10347
|
ssr: false
|
|
10319
10348
|
});
|
|
10320
10349
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11376,13 +11405,89 @@ _chunk7QVYU63Ejs.__name.call(void 0, GdprConsentCheckbox, "GdprConsentCheckbox")
|
|
|
11376
11405
|
|
|
11377
11406
|
|
|
11378
11407
|
var dropzone = {
|
|
11379
|
-
multiple: false,
|
|
11380
11408
|
maxSize: 100 * 1024 * 1024,
|
|
11381
11409
|
preventDropOnDocument: false,
|
|
11382
11410
|
accept: {
|
|
11383
11411
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg", ".docx", ".xslx", ".pdf", ".txt", ".md"]
|
|
11384
11412
|
}
|
|
11385
11413
|
};
|
|
11414
|
+
function MultiFileUploader({ files, setFiles, multiple = false, className }) {
|
|
11415
|
+
const uploadFiles = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (newFiles) => {
|
|
11416
|
+
if (!newFiles) return;
|
|
11417
|
+
setFiles([...files, ...newFiles]);
|
|
11418
|
+
}, "uploadFiles");
|
|
11419
|
+
const handleRemoveFile = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (indexToRemove) => {
|
|
11420
|
+
setFiles(files.filter((_, index) => index !== indexToRemove));
|
|
11421
|
+
}, "handleRemoveFile");
|
|
11422
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11423
|
+
"div",
|
|
11424
|
+
{
|
|
11425
|
+
className: _chunkPGA2VC3Sjs.cn.call(void 0,
|
|
11426
|
+
"grid w-full grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6",
|
|
11427
|
+
className
|
|
11428
|
+
),
|
|
11429
|
+
children: [
|
|
11430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11431
|
+
FileUploader,
|
|
11432
|
+
{
|
|
11433
|
+
value: files,
|
|
11434
|
+
onValueChange: uploadFiles,
|
|
11435
|
+
dropzoneOptions: { ...dropzone, multiple },
|
|
11436
|
+
className: "text-muted-foreground hover:text-primary relative aspect-square h-full cursor-pointer overflow-hidden rounded-lg border",
|
|
11437
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: _chunkPGA2VC3Sjs.cn.call(void 0, "text-muted-foreground flex h-full w-full flex-col items-center justify-center"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
|
|
11438
|
+
}
|
|
11439
|
+
),
|
|
11440
|
+
files.map((file, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FilePreviewItem, { file, onRemoveClick: () => handleRemoveFile(index) }, file.name + "-" + index))
|
|
11441
|
+
]
|
|
11442
|
+
}
|
|
11443
|
+
);
|
|
11444
|
+
}
|
|
11445
|
+
_chunk7QVYU63Ejs.__name.call(void 0, MultiFileUploader, "MultiFileUploader");
|
|
11446
|
+
var FilePreviewItem = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ file, onRemoveClick }) => {
|
|
11447
|
+
const [objectUrl, setObjectUrl] = _react.useState.call(void 0, null);
|
|
11448
|
+
_react.useEffect.call(void 0, () => {
|
|
11449
|
+
if (file.type.startsWith("image/")) {
|
|
11450
|
+
const url = URL.createObjectURL(file);
|
|
11451
|
+
setObjectUrl(url);
|
|
11452
|
+
return () => URL.revokeObjectURL(url);
|
|
11453
|
+
}
|
|
11454
|
+
setObjectUrl(null);
|
|
11455
|
+
}, [file]);
|
|
11456
|
+
const getFileIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11457
|
+
const extension = _optionalChain([file, 'access', _307 => _307.name, 'access', _308 => _308.split, 'call', _309 => _309("."), 'access', _310 => _310.pop, 'call', _311 => _311(), 'optionalAccess', _312 => _312.toLowerCase, 'call', _313 => _313()]);
|
|
11458
|
+
if (file.type.startsWith("image/")) {
|
|
11459
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileImageIcon, { className: "text-muted h-10 w-10 sm:h-12 sm:w-12" });
|
|
11460
|
+
}
|
|
11461
|
+
if (file.type === "application/pdf") {
|
|
11462
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "text-destructive h-10 w-10 sm:h-12 sm:w-12" });
|
|
11463
|
+
}
|
|
11464
|
+
if (file.type.includes("wordprocessingml") || extension === "docx" || extension === "doc") {
|
|
11465
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "text-primary h-10 w-10 sm:h-12 sm:w-12" });
|
|
11466
|
+
}
|
|
11467
|
+
if (file.type.includes("spreadsheetml") || extension === "xlsx" || extension === "xls") {
|
|
11468
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileSpreadsheetIcon, { className: "text-secondary h-10 w-10 sm:h-12 sm:w-12" });
|
|
11469
|
+
}
|
|
11470
|
+
if (file.type.startsWith("text/")) {
|
|
11471
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "h-10 w-10 sm:h-12 sm:w-12" });
|
|
11472
|
+
}
|
|
11473
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileIcon, { className: "text-muted h-10 w-10 sm:h-12 sm:w-12" });
|
|
11474
|
+
}, "getFileIcon");
|
|
11475
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground group relative aspect-square h-full overflow-hidden rounded-lg border", children: [
|
|
11476
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11477
|
+
"button",
|
|
11478
|
+
{
|
|
11479
|
+
onClick: onRemoveClick,
|
|
11480
|
+
className: "absolute top-1.5 end-1.5 z-20 rounded-full bg-black/60 p-1 text-white opacity-0 transition-all duration-200 ease-in-out group-hover:opacity-100 hover:bg-red-600 focus:outline-none",
|
|
11481
|
+
"aria-label": "Remove file",
|
|
11482
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "h-3.5 w-3.5" })
|
|
11483
|
+
}
|
|
11484
|
+
),
|
|
11485
|
+
objectUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _image2.default, { src: objectUrl, alt: file.name, className: "h-full w-full object-cover", width: 200, height: 200 }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/30 flex h-full w-full flex-col items-center justify-center p-2", children: [
|
|
11486
|
+
getFileIcon(),
|
|
11487
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-foreground/80 mt-2 w-full truncate px-1 text-center text-xs sm:text-xs", children: file.name })
|
|
11488
|
+
] })
|
|
11489
|
+
] });
|
|
11490
|
+
}, "FilePreviewItem");
|
|
11386
11491
|
|
|
11387
11492
|
// src/features/user/components/widgets/UserAvatar.tsx
|
|
11388
11493
|
|
|
@@ -11399,7 +11504,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
11399
11504
|
}, "getInitials");
|
|
11400
11505
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11401
11506
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `h-6 w-6 ${className}`, children: [
|
|
11402
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
11507
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _314 => _314.avatar]) }),
|
|
11403
11508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
11404
11509
|
] }) });
|
|
11405
11510
|
}, "getAvatar");
|
|
@@ -11605,7 +11710,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11605
11710
|
})
|
|
11606
11711
|
};
|
|
11607
11712
|
const columns = _react.useMemo.call(void 0, () => {
|
|
11608
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11713
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _315 => _315[field], 'optionalCall', _316 => _316()])).filter((col) => col !== void 0);
|
|
11609
11714
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
11610
11715
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
11611
11716
|
}, "useUserTableStructure");
|
|
@@ -11719,10 +11824,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11719
11824
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11720
11825
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start rounded-md", children: field.value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: [
|
|
11721
11826
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `me-2 h-4 w-4`, children: [
|
|
11722
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
11723
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
11827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.avatar]) }),
|
|
11828
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _319 => _319.value, 'optionalAccess', _320 => _320.name]) ? _optionalChain([field, 'access', _321 => _321.value, 'optionalAccess', _322 => _322.name, 'access', _323 => _323.split, 'call', _324 => _324(" "), 'access', _325 => _325.map, 'call', _326 => _326((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
11724
11829
|
] }) }),
|
|
11725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11830
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _327 => _327.value, 'optionalAccess', _328 => _328.name]), () => ( "")) })
|
|
11726
11831
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-input/20 dark:bg-input/30 border-input text-muted-foreground flex h-7 w-full flex-row items-center justify-start rounded-md border px-2 py-0.5 text-sm md:text-xs/relaxed", children: _nullishCoalesce(placeholder, () => ( t(`ui.search.placeholder`, { type: t(`entities.users`, { count: 1 }) }))) }) }) }),
|
|
11727
11832
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11728
11833
|
_lucidereact.CircleX,
|
|
@@ -11932,7 +12037,7 @@ function UserContent({ user }) {
|
|
|
11932
12037
|
const updated = await _chunkPGA2VC3Sjs.UserService.patchAvatar({ id: user.id, avatar: imageKey });
|
|
11933
12038
|
setUser(updated);
|
|
11934
12039
|
},
|
|
11935
|
-
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12040
|
+
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _329 => _329.id]), () => ( "")),
|
|
11936
12041
|
className: "h-24 w-24",
|
|
11937
12042
|
fallbackClassName: "text-2xl"
|
|
11938
12043
|
}
|
|
@@ -12087,7 +12192,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
12087
12192
|
const data = useDataListRetriever({
|
|
12088
12193
|
ready: !!company,
|
|
12089
12194
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPGA2VC3Sjs.UserService.findAllUsers(params), "retriever"),
|
|
12090
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
12195
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _330 => _330.id]), isDeleted },
|
|
12091
12196
|
module: _chunkPGA2VC3Sjs.Modules.User
|
|
12092
12197
|
});
|
|
12093
12198
|
_react.useEffect.call(void 0, () => {
|
|
@@ -12194,11 +12299,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
12194
12299
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
12195
12300
|
onClick: (_e) => {
|
|
12196
12301
|
setSelectedUser(user);
|
|
12197
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12302
|
+
_optionalChain([setLevelOpen, 'optionalCall', _331 => _331(true)]);
|
|
12198
12303
|
},
|
|
12199
12304
|
onSelect: (_e) => {
|
|
12200
12305
|
setSelectedUser(user);
|
|
12201
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12306
|
+
_optionalChain([setLevelOpen, 'optionalCall', _332 => _332(true)]);
|
|
12202
12307
|
},
|
|
12203
12308
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
12204
12309
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -12329,7 +12434,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12329
12434
|
company.legal_address
|
|
12330
12435
|
] }),
|
|
12331
12436
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
12332
|
-
_optionalChain([company, 'access',
|
|
12437
|
+
_optionalChain([company, 'access', _333 => _333.configurations, 'optionalAccess', _334 => _334.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12333
12438
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12334
12439
|
t("features.configuration.country"),
|
|
12335
12440
|
":"
|
|
@@ -12337,7 +12442,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12337
12442
|
" ",
|
|
12338
12443
|
company.configurations.country
|
|
12339
12444
|
] }),
|
|
12340
|
-
_optionalChain([company, 'access',
|
|
12445
|
+
_optionalChain([company, 'access', _335 => _335.configurations, 'optionalAccess', _336 => _336.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
12341
12446
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12342
12447
|
t("features.configuration.currency"),
|
|
12343
12448
|
":"
|
|
@@ -12556,7 +12661,7 @@ function CompanyEditorInternal({
|
|
|
12556
12661
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12557
12662
|
fetchFeatures();
|
|
12558
12663
|
}
|
|
12559
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12664
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _337 => _337(open)]);
|
|
12560
12665
|
},
|
|
12561
12666
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12562
12667
|
);
|
|
@@ -12601,12 +12706,12 @@ function CompanyEditorInternal({
|
|
|
12601
12706
|
);
|
|
12602
12707
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12603
12708
|
return {
|
|
12604
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
12605
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
12606
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
12607
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
12608
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
12609
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
12709
|
+
id: _optionalChain([company, 'optionalAccess', _338 => _338.id]) || _uuid.v4.call(void 0, ),
|
|
12710
|
+
name: _optionalChain([company, 'optionalAccess', _339 => _339.name]) || "",
|
|
12711
|
+
featureIds: _optionalChain([company, 'optionalAccess', _340 => _340.features, 'access', _341 => _341.map, 'call', _342 => _342((feature) => feature.id)]) || [],
|
|
12712
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _343 => _343.modules, 'access', _344 => _344.map, 'call', _345 => _345((module) => module.id)]) || [],
|
|
12713
|
+
logo: _optionalChain([company, 'optionalAccess', _346 => _346.logo]) || "",
|
|
12714
|
+
legal_address: _optionalChain([company, 'optionalAccess', _347 => _347.legal_address]) || ""
|
|
12610
12715
|
};
|
|
12611
12716
|
}, [company]);
|
|
12612
12717
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12618,7 +12723,7 @@ function CompanyEditorInternal({
|
|
|
12618
12723
|
{
|
|
12619
12724
|
form,
|
|
12620
12725
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12621
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12726
|
+
entityName: _optionalChain([company, 'optionalAccess', _348 => _348.name]),
|
|
12622
12727
|
isEdit: !!company,
|
|
12623
12728
|
module: _chunkPGA2VC3Sjs.Modules.Company,
|
|
12624
12729
|
propagateChanges,
|
|
@@ -12643,7 +12748,7 @@ function CompanyEditorInternal({
|
|
|
12643
12748
|
throw new Error("Fiscal data validation failed");
|
|
12644
12749
|
}
|
|
12645
12750
|
const payload = {
|
|
12646
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12751
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _349 => _349.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12647
12752
|
name: values.name,
|
|
12648
12753
|
logo: files && contentType ? values.logo : void 0,
|
|
12649
12754
|
featureIds: values.featureIds,
|
|
@@ -12674,10 +12779,10 @@ function CompanyEditorInternal({
|
|
|
12674
12779
|
dialogOpen,
|
|
12675
12780
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12676
12781
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
12677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-muted-foreground/50 rounded-lg outline-1 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess',
|
|
12782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileUploader, { value: files, onValueChange: setFiles, dropzoneOptions: dropzone2, className: "w-full p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "text-muted-foreground/50 rounded-lg outline-1 outline-dashed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-center justify-center pt-3 pb-4", children: file || _optionalChain([company, 'optionalAccess', _350 => _350.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12678
12783
|
_image2.default,
|
|
12679
12784
|
{
|
|
12680
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12785
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _351 => _351.logo]) || "",
|
|
12681
12786
|
alt: "Company Logo",
|
|
12682
12787
|
width: 200,
|
|
12683
12788
|
height: 200
|
|
@@ -12711,7 +12816,7 @@ function CompanyEditorInternal({
|
|
|
12711
12816
|
}
|
|
12712
12817
|
),
|
|
12713
12818
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionHeader, { className: "mt-2", children: t(`company.sections.fiscal_data`) }),
|
|
12714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
12819
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _352 => _352.fiscal_data])) })
|
|
12715
12820
|
] }),
|
|
12716
12821
|
canAccessFeatures && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-96 flex-col justify-start gap-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollArea, { className: "h-max", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFeatures, { form, name: t(`company.features_and_modules`), features }) }) })
|
|
12717
12822
|
] })
|
|
@@ -13049,7 +13154,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
13049
13154
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13050
13155
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13051
13156
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
13052
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
13157
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _353 => _353.actor, 'optionalAccess', _354 => _354.name]), () => ( "")),
|
|
13053
13158
|
title: data.title,
|
|
13054
13159
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
13055
13160
|
}) }),
|
|
@@ -13078,7 +13183,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
13078
13183
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13079
13184
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13080
13185
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
13081
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
13186
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _355 => _355.actor, 'optionalAccess', _356 => _356.name]), () => ( "")),
|
|
13082
13187
|
title: data.title,
|
|
13083
13188
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
13084
13189
|
}) }),
|
|
@@ -13142,7 +13247,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
13142
13247
|
_react.useEffect.call(void 0, () => {
|
|
13143
13248
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
13144
13249
|
if (_chunkB2OB3HQOjs.isRolesConfigured.call(void 0, )) {
|
|
13145
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
13250
|
+
const isAdmin = _optionalChain([currentUser, 'access', _357 => _357.roles, 'optionalAccess', _358 => _358.some, 'call', _359 => _359((role) => role.id === _chunkB2OB3HQOjs.getRoleId.call(void 0, ).Administrator)]);
|
|
13146
13251
|
if (isAdmin) {
|
|
13147
13252
|
setHasInitiallyLoaded(true);
|
|
13148
13253
|
return;
|
|
@@ -13334,7 +13439,7 @@ function OnboardingProvider({
|
|
|
13334
13439
|
let tourSteps = steps;
|
|
13335
13440
|
if (!tourSteps) {
|
|
13336
13441
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
13337
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
13442
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _360 => _360.steps]);
|
|
13338
13443
|
}
|
|
13339
13444
|
if (!tourSteps || tourSteps.length === 0) {
|
|
13340
13445
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -13402,10 +13507,10 @@ function OnboardingProvider({
|
|
|
13402
13507
|
when: {
|
|
13403
13508
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13404
13509
|
setCurrentStepIndex(index);
|
|
13405
|
-
_optionalChain([stepConfig, 'access',
|
|
13510
|
+
_optionalChain([stepConfig, 'access', _361 => _361.onShow, 'optionalCall', _362 => _362()]);
|
|
13406
13511
|
}, "show"),
|
|
13407
13512
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13408
|
-
_optionalChain([stepConfig, 'access',
|
|
13513
|
+
_optionalChain([stepConfig, 'access', _363 => _363.onHide, 'optionalCall', _364 => _364()]);
|
|
13409
13514
|
}, "hide")
|
|
13410
13515
|
}
|
|
13411
13516
|
});
|
|
@@ -13554,7 +13659,7 @@ function HowToMultiSelector({
|
|
|
13554
13659
|
retriever: (params) => _chunkPGA2VC3Sjs.HowToService.findMany(params),
|
|
13555
13660
|
module: _chunkPGA2VC3Sjs.Modules.HowTo,
|
|
13556
13661
|
getLabel: (howTo) => howTo.name,
|
|
13557
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
13662
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _365 => _365.id]),
|
|
13558
13663
|
onChange
|
|
13559
13664
|
}
|
|
13560
13665
|
);
|
|
@@ -13662,17 +13767,17 @@ function HowToEditorInternal({
|
|
|
13662
13767
|
);
|
|
13663
13768
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
13664
13769
|
() => ({
|
|
13665
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
13666
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
13667
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
13668
|
-
pages: _chunkPGA2VC3Sjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
13669
|
-
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13670
|
-
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13671
|
-
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13672
|
-
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13673
|
-
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13674
|
-
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13675
|
-
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13770
|
+
id: _optionalChain([howTo, 'optionalAccess', _366 => _366.id]) || _uuid.v4.call(void 0, ),
|
|
13771
|
+
name: _optionalChain([howTo, 'optionalAccess', _367 => _367.name]) || "",
|
|
13772
|
+
description: _optionalChain([howTo, 'optionalAccess', _368 => _368.description]) || [],
|
|
13773
|
+
pages: _chunkPGA2VC3Sjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _369 => _369.pages])),
|
|
13774
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _370 => _370.howToType]), () => ( "how-to")),
|
|
13775
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _371 => _371.slug]), () => ( "")),
|
|
13776
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _372 => _372.order]), () => ( 0)),
|
|
13777
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _373 => _373.summary]), () => ( "")),
|
|
13778
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _374 => _374.tags]), () => ( []))).join(", "),
|
|
13779
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _375 => _375.contextualKeys]), () => ( []))).join(", "),
|
|
13780
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _376 => _376.draft]), () => ( false)),
|
|
13676
13781
|
relatedArticles: []
|
|
13677
13782
|
}),
|
|
13678
13783
|
[howTo]
|
|
@@ -13683,7 +13788,7 @@ function HowToEditorInternal({
|
|
|
13683
13788
|
});
|
|
13684
13789
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
13685
13790
|
_react.useEffect.call(void 0, () => {
|
|
13686
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13791
|
+
if (!_optionalChain([howTo, 'optionalAccess', _377 => _377.howToType]) || !_optionalChain([howTo, 'optionalAccess', _378 => _378.slug])) return;
|
|
13687
13792
|
let active = true;
|
|
13688
13793
|
_chunkPGA2VC3Sjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
13689
13794
|
if (!active) return;
|
|
@@ -13722,7 +13827,7 @@ function HowToEditorInternal({
|
|
|
13722
13827
|
{
|
|
13723
13828
|
form,
|
|
13724
13829
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
13725
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13830
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _379 => _379.name]),
|
|
13726
13831
|
isEdit: !!howTo,
|
|
13727
13832
|
module: _chunkPGA2VC3Sjs.Modules.HowTo,
|
|
13728
13833
|
propagateChanges,
|
|
@@ -14103,7 +14208,7 @@ function withPatchedTitle(source, title) {
|
|
|
14103
14208
|
return _chunkPGA2VC3Sjs.rehydrate.call(void 0, _chunkPGA2VC3Sjs.Modules.Assistant, {
|
|
14104
14209
|
jsonApi: {
|
|
14105
14210
|
...dehydrated.jsonApi,
|
|
14106
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
14211
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _380 => _380.jsonApi, 'optionalAccess', _381 => _381.attributes]), () => ( {})), title }
|
|
14107
14212
|
},
|
|
14108
14213
|
included: dehydrated.included
|
|
14109
14214
|
});
|
|
@@ -14137,7 +14242,7 @@ function AssistantProvider({
|
|
|
14137
14242
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
14138
14243
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
14139
14244
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
14140
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
14245
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _382 => _382.jsonApi, 'optionalAccess', _383 => _383.attributes, 'optionalAccess', _384 => _384.engine]) === "operator"
|
|
14141
14246
|
);
|
|
14142
14247
|
const { socket } = useSocketContext();
|
|
14143
14248
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -14146,7 +14251,7 @@ function AssistantProvider({
|
|
|
14146
14251
|
if (!trimmed) return;
|
|
14147
14252
|
const optimistic = _chunkPGA2VC3Sjs.AssistantMessage.buildOptimistic({
|
|
14148
14253
|
content: trimmed,
|
|
14149
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
14254
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _385 => _385.id]),
|
|
14150
14255
|
position: nextPosition(messages)
|
|
14151
14256
|
});
|
|
14152
14257
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -14156,14 +14261,14 @@ function AssistantProvider({
|
|
|
14156
14261
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
14157
14262
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
14158
14263
|
}, "handler");
|
|
14159
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14264
|
+
_optionalChain([socket, 'optionalAccess', _386 => _386.on, 'call', _387 => _387("assistant:status", handler)]);
|
|
14160
14265
|
try {
|
|
14161
14266
|
if (!assistant) {
|
|
14162
14267
|
const input = {
|
|
14163
14268
|
firstMessage: trimmed,
|
|
14164
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14165
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14166
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14269
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _388 => _388.howToMode]),
|
|
14270
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _389 => _389.limitToHowToId]),
|
|
14271
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _390 => _390.contentBlocks]),
|
|
14167
14272
|
boundContent: scope
|
|
14168
14273
|
};
|
|
14169
14274
|
const created = operatorMode ? await _chunkPGA2VC3Sjs.AssistantService.createOperator(input) : await _chunkPGA2VC3Sjs.AssistantService.create(input);
|
|
@@ -14178,13 +14283,13 @@ function AssistantProvider({
|
|
|
14178
14283
|
const result = operatorMode ? await _chunkPGA2VC3Sjs.AssistantService.appendMessageOperator({
|
|
14179
14284
|
assistantId: assistant.id,
|
|
14180
14285
|
content: trimmed,
|
|
14181
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14286
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _391 => _391.contentBlocks])
|
|
14182
14287
|
}) : await _chunkPGA2VC3Sjs.AssistantService.appendMessage({
|
|
14183
14288
|
assistantId: assistant.id,
|
|
14184
14289
|
content: trimmed,
|
|
14185
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14186
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14187
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14290
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _392 => _392.howToMode]),
|
|
14291
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _393 => _393.limitToHowToId]),
|
|
14292
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _394 => _394.contentBlocks])
|
|
14188
14293
|
});
|
|
14189
14294
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
14190
14295
|
}
|
|
@@ -14195,7 +14300,7 @@ function AssistantProvider({
|
|
|
14195
14300
|
return next;
|
|
14196
14301
|
});
|
|
14197
14302
|
} finally {
|
|
14198
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14303
|
+
_optionalChain([socket, 'optionalAccess', _395 => _395.off, 'call', _396 => _396("assistant:status", handler)]);
|
|
14199
14304
|
setSending(false);
|
|
14200
14305
|
setStatus(void 0);
|
|
14201
14306
|
}
|
|
@@ -14253,7 +14358,7 @@ function AssistantProvider({
|
|
|
14253
14358
|
await _chunkPGA2VC3Sjs.AssistantService.delete({ id });
|
|
14254
14359
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
14255
14360
|
setAssistant((prev) => {
|
|
14256
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14361
|
+
if (_optionalChain([prev, 'optionalAccess', _397 => _397.id]) === id) {
|
|
14257
14362
|
setMessages([]);
|
|
14258
14363
|
return void 0;
|
|
14259
14364
|
}
|
|
@@ -14265,7 +14370,7 @@ function AssistantProvider({
|
|
|
14265
14370
|
(async () => {
|
|
14266
14371
|
setThreadsLoading(true);
|
|
14267
14372
|
try {
|
|
14268
|
-
const loaded = await _chunkPGA2VC3Sjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess',
|
|
14373
|
+
const loaded = await _chunkPGA2VC3Sjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _398 => _398.type]), boundId: _optionalChain([scope, 'optionalAccess', _399 => _399.id]) });
|
|
14269
14374
|
if (!cancelled) setThreads(loaded);
|
|
14270
14375
|
} finally {
|
|
14271
14376
|
if (!cancelled) setThreadsLoading(false);
|
|
@@ -14274,7 +14379,7 @@ function AssistantProvider({
|
|
|
14274
14379
|
return () => {
|
|
14275
14380
|
cancelled = true;
|
|
14276
14381
|
};
|
|
14277
|
-
}, [_optionalChain([scope, 'optionalAccess',
|
|
14382
|
+
}, [_optionalChain([scope, 'optionalAccess', _400 => _400.type]), _optionalChain([scope, 'optionalAccess', _401 => _401.id])]);
|
|
14278
14383
|
const value = _react.useMemo.call(void 0,
|
|
14279
14384
|
() => ({
|
|
14280
14385
|
assistant,
|
|
@@ -14425,7 +14530,7 @@ function readEntityTitle() {
|
|
|
14425
14530
|
if (typeof document === "undefined") return null;
|
|
14426
14531
|
const afterEntityType = document.title.split("]")[1];
|
|
14427
14532
|
if (!afterEntityType) return null;
|
|
14428
|
-
return _optionalChain([afterEntityType, 'access',
|
|
14533
|
+
return _optionalChain([afterEntityType, 'access', _402 => _402.split, 'call', _403 => _403("|"), 'access', _404 => _404[0], 'optionalAccess', _405 => _405.trim, 'call', _406 => _406()]) || null;
|
|
14429
14534
|
}
|
|
14430
14535
|
_chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
|
|
14431
14536
|
function usePageTracker() {
|
|
@@ -14454,7 +14559,7 @@ function usePageTracker() {
|
|
|
14454
14559
|
const existing = prev.find((page) => page.url === baseUrl);
|
|
14455
14560
|
const refreshed = {
|
|
14456
14561
|
url: baseUrl,
|
|
14457
|
-
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess',
|
|
14562
|
+
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _407 => _407.title]), () => ( foundModule.name)),
|
|
14458
14563
|
moduleType: foundModule.name,
|
|
14459
14564
|
timestamp: Date.now()
|
|
14460
14565
|
};
|
|
@@ -14516,7 +14621,7 @@ function usePushNotifications() {
|
|
|
14516
14621
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14517
14622
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
14518
14623
|
try {
|
|
14519
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
14624
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _408 => _408.id])}`;
|
|
14520
14625
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
14521
14626
|
const registration = await navigator.serviceWorker.register(`${_chunkB2OB3HQOjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
14522
14627
|
let permission = Notification.permission;
|
|
@@ -14629,14 +14734,14 @@ function useSocket({ token }) {
|
|
|
14629
14734
|
});
|
|
14630
14735
|
}, "handleMessage");
|
|
14631
14736
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
14632
|
-
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14633
|
-
if (!_optionalChain([resource, 'optionalAccess',
|
|
14737
|
+
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _409 => _409.data]), () => ( _optionalChain([data, 'optionalAccess', _410 => _410.jsonApi])));
|
|
14738
|
+
if (!_optionalChain([resource, 'optionalAccess', _411 => _411.type])) {
|
|
14634
14739
|
console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
|
|
14635
14740
|
return;
|
|
14636
14741
|
}
|
|
14637
14742
|
const notification = _chunkPGA2VC3Sjs.rehydrate.call(void 0, _chunkPGA2VC3Sjs.Modules.Notification, {
|
|
14638
14743
|
jsonApi: resource,
|
|
14639
|
-
included: _optionalChain([data, 'optionalAccess',
|
|
14744
|
+
included: _optionalChain([data, 'optionalAccess', _412 => _412.included]) || []
|
|
14640
14745
|
});
|
|
14641
14746
|
if (notification) {
|
|
14642
14747
|
setSocketNotifications((prev) => {
|
|
@@ -14755,7 +14860,7 @@ function BreadcrumbMobile({
|
|
|
14755
14860
|
}
|
|
14756
14861
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
14757
14862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuTrigger, { className: "text-foreground text-xs/relaxed font-normal hover:bg-accent flex items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors outline-none", children: [
|
|
14758
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
14863
|
+
_optionalChain([lastItem, 'optionalAccess', _413 => _413.name]),
|
|
14759
14864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
14760
14865
|
] }),
|
|
14761
14866
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
|
|
@@ -14766,7 +14871,7 @@ function BreadcrumbNavigation({ items, rootLabel }) {
|
|
|
14766
14871
|
const generateUrl = usePageUrlGenerator();
|
|
14767
14872
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14768
14873
|
const isMobile = _chunkPGA2VC3Sjs.useIsMobile.call(void 0, );
|
|
14769
|
-
const root = _optionalChain([rootLabel, 'optionalAccess',
|
|
14874
|
+
const root = _optionalChain([rootLabel, 'optionalAccess', _414 => _414.trim, 'call', _415 => _415()]) ? rootLabel : t(`common.home`);
|
|
14770
14875
|
if (isMobile) {
|
|
14771
14876
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root });
|
|
14772
14877
|
}
|
|
@@ -15219,7 +15324,7 @@ var railTriggerClass = _chunkPGA2VC3Sjs.cn.call(void 0,
|
|
|
15219
15324
|
"data-[state=active]:bg-foreground data-[state=active]:text-background",
|
|
15220
15325
|
"data-[state=active]:font-semibold data-[state=active]:shadow-none"
|
|
15221
15326
|
);
|
|
15222
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
15327
|
+
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access', _416 => _416.key, 'optionalAccess', _417 => _417.name]))), () => ( tab.label)), "tabValue");
|
|
15223
15328
|
function RoundPageContainer({
|
|
15224
15329
|
module,
|
|
15225
15330
|
id,
|
|
@@ -15246,7 +15351,7 @@ function RoundPageContainer({
|
|
|
15246
15351
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
15247
15352
|
_react.useEffect.call(void 0, () => {
|
|
15248
15353
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
15249
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
15354
|
+
const stored = _optionalChain([match, 'optionalAccess', _418 => _418.split, 'call', _419 => _419("="), 'access', _420 => _420[1]]);
|
|
15250
15355
|
if (stored === "true") setShowDetailsState(true);
|
|
15251
15356
|
else if (stored === "false") setShowDetailsState(false);
|
|
15252
15357
|
}, []);
|
|
@@ -15261,7 +15366,7 @@ function RoundPageContainer({
|
|
|
15261
15366
|
const clip = isFixed ? `overflow-hidden` : ``;
|
|
15262
15367
|
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
15263
15368
|
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
15264
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
15369
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _421 => _421.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15265
15370
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
15266
15371
|
(value) => {
|
|
15267
15372
|
setShowDetailsState(value);
|
|
@@ -15290,11 +15395,11 @@ function RoundPageContainer({
|
|
|
15290
15395
|
} else {
|
|
15291
15396
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
|
|
15292
15397
|
}
|
|
15293
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
15398
|
+
_optionalChain([onSectionChange, 'optionalCall', _422 => _422(key)]);
|
|
15294
15399
|
},
|
|
15295
15400
|
[module, id, rewriteUrl, onSectionChange]
|
|
15296
15401
|
);
|
|
15297
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
15402
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _423 => _423.find, 'call', _424 => _424((t) => tabValue(t) === activeTab), 'optionalAccess', _425 => _425.fillHeight]) === true;
|
|
15298
15403
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
15299
15404
|
const tabItems = _react.useMemo.call(void 0,
|
|
15300
15405
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
@@ -15677,14 +15782,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15677
15782
|
const entityType = target.dataset.mentionType;
|
|
15678
15783
|
const alias = target.dataset.mentionAlias;
|
|
15679
15784
|
setHovered((prev) => {
|
|
15680
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
15785
|
+
if (_optionalChain([prev, 'optionalAccess', _426 => _426.id]) === id && _optionalChain([prev, 'optionalAccess', _427 => _427.element]) === target) return prev;
|
|
15681
15786
|
return { id, entityType, alias, element: target };
|
|
15682
15787
|
});
|
|
15683
15788
|
}, "handleMouseOver");
|
|
15684
15789
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
15685
15790
|
const target = e.target.closest("[data-mention-id]");
|
|
15686
15791
|
if (!target) return;
|
|
15687
|
-
const related = _optionalChain([e, 'access',
|
|
15792
|
+
const related = _optionalChain([e, 'access', _428 => _428.relatedTarget, 'optionalAccess', _429 => _429.closest, 'call', _430 => _430("[data-mention-id]")]);
|
|
15688
15793
|
if (related) return;
|
|
15689
15794
|
scheduleClose();
|
|
15690
15795
|
}, "handleMouseOut");
|
|
@@ -15698,7 +15803,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15698
15803
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
15699
15804
|
if (!hovered || !mentionResolveFn) return null;
|
|
15700
15805
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
15701
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
15806
|
+
if (!_optionalChain([resolved, 'optionalAccess', _431 => _431.HoverContent])) return null;
|
|
15702
15807
|
const ContentComponent = resolved.HoverContent;
|
|
15703
15808
|
const rect = hovered.element.getBoundingClientRect();
|
|
15704
15809
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -15742,28 +15847,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
15742
15847
|
}, "parseMentionElement");
|
|
15743
15848
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
15744
15849
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15745
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15850
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _432 => _432(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15746
15851
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
15747
15852
|
"@",
|
|
15748
15853
|
displayName
|
|
15749
15854
|
] });
|
|
15750
15855
|
}, "MentionExternalHTML");
|
|
15751
15856
|
const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
15752
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15857
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _433 => _433(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15753
15858
|
if (disableMention) {
|
|
15754
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
15755
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
15859
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _434 => _434(props.id, props.entityType, displayName)]);
|
|
15860
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _435 => _435.url]), () => ( "#")), className: "text-primary", children: [
|
|
15756
15861
|
"@",
|
|
15757
15862
|
displayName
|
|
15758
15863
|
] });
|
|
15759
15864
|
}
|
|
15760
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
15761
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
15865
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _436 => _436(props.id, props.entityType, displayName)]);
|
|
15866
|
+
if (_optionalChain([resolved, 'optionalAccess', _437 => _437.Inline])) {
|
|
15762
15867
|
const Custom = resolved.Inline;
|
|
15763
15868
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
15764
15869
|
}
|
|
15765
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
15766
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
15870
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _438 => _438.url]), () => ( "#"));
|
|
15871
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _439 => _439.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
15767
15872
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15768
15873
|
_link2.default,
|
|
15769
15874
|
{
|
|
@@ -15871,7 +15976,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15871
15976
|
if (!suggestionMenuComponent) return void 0;
|
|
15872
15977
|
const Component2 = suggestionMenuComponent;
|
|
15873
15978
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15874
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
15979
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _440 => _440.items, 'access', _441 => _441[0], 'optionalAccess', _442 => _442.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
15875
15980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15876
15981
|
Component2,
|
|
15877
15982
|
{
|
|
@@ -15880,7 +15985,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15880
15985
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
15881
15986
|
onItemClick: (item) => {
|
|
15882
15987
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
15883
|
-
_optionalChain([props, 'access',
|
|
15988
|
+
_optionalChain([props, 'access', _443 => _443.onItemClick, 'optionalCall', _444 => _444(item)]);
|
|
15884
15989
|
}
|
|
15885
15990
|
}
|
|
15886
15991
|
);
|
|
@@ -16075,10 +16180,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
16075
16180
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16076
16181
|
Checkbox,
|
|
16077
16182
|
{
|
|
16078
|
-
checked: _optionalChain([params, 'access',
|
|
16183
|
+
checked: _optionalChain([params, 'access', _445 => _445.checkedIds, 'optionalAccess', _446 => _446.includes, 'call', _447 => _447(row.getValue(params.name))]) || false,
|
|
16079
16184
|
onCheckedChange: (value) => {
|
|
16080
16185
|
row.toggleSelected(!!value);
|
|
16081
|
-
_optionalChain([params, 'access',
|
|
16186
|
+
_optionalChain([params, 'access', _448 => _448.toggleId, 'optionalCall', _449 => _449(row.getValue(params.name))]);
|
|
16082
16187
|
},
|
|
16083
16188
|
"aria-label": "Select row"
|
|
16084
16189
|
}
|
|
@@ -16137,7 +16242,7 @@ function useJsonApiGet(params) {
|
|
|
16137
16242
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
16138
16243
|
const isMounted = _react.useRef.call(void 0, true);
|
|
16139
16244
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
16140
|
-
if (_optionalChain([params, 'access',
|
|
16245
|
+
if (_optionalChain([params, 'access', _450 => _450.options, 'optionalAccess', _451 => _451.enabled]) === false) return;
|
|
16141
16246
|
setLoading(true);
|
|
16142
16247
|
setError(null);
|
|
16143
16248
|
try {
|
|
@@ -16164,9 +16269,9 @@ function useJsonApiGet(params) {
|
|
|
16164
16269
|
setLoading(false);
|
|
16165
16270
|
}
|
|
16166
16271
|
}
|
|
16167
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
16272
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _452 => _452.options, 'optionalAccess', _453 => _453.enabled])]);
|
|
16168
16273
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
16169
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16274
|
+
if (!_optionalChain([response, 'optionalAccess', _454 => _454.nextPage])) return;
|
|
16170
16275
|
setLoading(true);
|
|
16171
16276
|
try {
|
|
16172
16277
|
const nextResponse = await response.nextPage();
|
|
@@ -16187,7 +16292,7 @@ function useJsonApiGet(params) {
|
|
|
16187
16292
|
}
|
|
16188
16293
|
}, [response]);
|
|
16189
16294
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
16190
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16295
|
+
if (!_optionalChain([response, 'optionalAccess', _455 => _455.prevPage])) return;
|
|
16191
16296
|
setLoading(true);
|
|
16192
16297
|
try {
|
|
16193
16298
|
const prevResponse = await response.prevPage();
|
|
@@ -16213,15 +16318,15 @@ function useJsonApiGet(params) {
|
|
|
16213
16318
|
return () => {
|
|
16214
16319
|
isMounted.current = false;
|
|
16215
16320
|
};
|
|
16216
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
16321
|
+
}, [fetchData, ..._optionalChain([params, 'access', _456 => _456.options, 'optionalAccess', _457 => _457.deps]) || []]);
|
|
16217
16322
|
return {
|
|
16218
16323
|
data,
|
|
16219
16324
|
loading,
|
|
16220
16325
|
error,
|
|
16221
16326
|
response,
|
|
16222
16327
|
refetch: fetchData,
|
|
16223
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
16224
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
16328
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _458 => _458.next]),
|
|
16329
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _459 => _459.prev]),
|
|
16225
16330
|
fetchNextPage,
|
|
16226
16331
|
fetchPreviousPage
|
|
16227
16332
|
};
|
|
@@ -16299,17 +16404,17 @@ function useJsonApiMutation(config) {
|
|
|
16299
16404
|
if (apiResponse.ok) {
|
|
16300
16405
|
const resultData = apiResponse.data;
|
|
16301
16406
|
setData(resultData);
|
|
16302
|
-
_optionalChain([config, 'access',
|
|
16407
|
+
_optionalChain([config, 'access', _460 => _460.onSuccess, 'optionalCall', _461 => _461(resultData)]);
|
|
16303
16408
|
return resultData;
|
|
16304
16409
|
} else {
|
|
16305
16410
|
setError(apiResponse.error);
|
|
16306
|
-
_optionalChain([config, 'access',
|
|
16411
|
+
_optionalChain([config, 'access', _462 => _462.onError, 'optionalCall', _463 => _463(apiResponse.error)]);
|
|
16307
16412
|
return null;
|
|
16308
16413
|
}
|
|
16309
16414
|
} catch (err) {
|
|
16310
16415
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
16311
16416
|
setError(errorMessage);
|
|
16312
|
-
_optionalChain([config, 'access',
|
|
16417
|
+
_optionalChain([config, 'access', _464 => _464.onError, 'optionalCall', _465 => _465(errorMessage)]);
|
|
16313
16418
|
return null;
|
|
16314
16419
|
} finally {
|
|
16315
16420
|
setLoading(false);
|
|
@@ -16382,7 +16487,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16382
16487
|
{
|
|
16383
16488
|
href: hasRole(_chunkB2OB3HQOjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
16384
16489
|
page: "/administration",
|
|
16385
|
-
id: _optionalChain([_chunkPGA2VC3Sjs.Modules, 'access',
|
|
16490
|
+
id: _optionalChain([_chunkPGA2VC3Sjs.Modules, 'access', _466 => _466.Company, 'access', _467 => _467.pageUrl, 'optionalAccess', _468 => _468.substring, 'call', _469 => _469(1)]),
|
|
16386
16491
|
childPage: company.id
|
|
16387
16492
|
}) : generateUrl({ page: _chunkPGA2VC3Sjs.Modules.Company, id: company.id }),
|
|
16388
16493
|
children: row.getValue("name")
|
|
@@ -16398,7 +16503,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16398
16503
|
})
|
|
16399
16504
|
};
|
|
16400
16505
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16401
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16506
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _470 => _470[field], 'optionalCall', _471 => _471()])).filter((col) => col !== void 0);
|
|
16402
16507
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
16403
16508
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16404
16509
|
}, "useCompanyTableStructure");
|
|
@@ -16410,7 +16515,7 @@ var GRACE_DAYS = 3;
|
|
|
16410
16515
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
16411
16516
|
if (!currentUser || !_chunkB2OB3HQOjs.isRolesConfigured.call(void 0, )) return false;
|
|
16412
16517
|
const adminRoleId = _chunkB2OB3HQOjs.getRoleId.call(void 0, ).Administrator;
|
|
16413
|
-
return !!_optionalChain([currentUser, 'access',
|
|
16518
|
+
return !!_optionalChain([currentUser, 'access', _472 => _472.roles, 'optionalAccess', _473 => _473.some, 'call', _474 => _474((role) => role.id === adminRoleId)]);
|
|
16414
16519
|
}, "isAdministrator");
|
|
16415
16520
|
function useSubscriptionStatus() {
|
|
16416
16521
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -16528,7 +16633,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
16528
16633
|
})
|
|
16529
16634
|
};
|
|
16530
16635
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16531
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16636
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _475 => _475[field], 'optionalCall', _476 => _476()])).filter((col) => col !== void 0);
|
|
16532
16637
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16533
16638
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16534
16639
|
}, "useRoleTableStructure");
|
|
@@ -16636,7 +16741,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16636
16741
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
16637
16742
|
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") }),
|
|
16638
16743
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
16639
|
-
_optionalChain([price, 'access',
|
|
16744
|
+
_optionalChain([price, 'access', _477 => _477.recurring, 'optionalAccess', _478 => _478.usageType]) === "metered" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.metered") })
|
|
16640
16745
|
] });
|
|
16641
16746
|
}, "cell"),
|
|
16642
16747
|
enableSorting: false,
|
|
@@ -16644,7 +16749,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16644
16749
|
})
|
|
16645
16750
|
};
|
|
16646
16751
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16647
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16752
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _479 => _479[field], 'optionalCall', _480 => _480()])).filter((col) => col !== void 0);
|
|
16648
16753
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16649
16754
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16650
16755
|
}, "useStripePriceTableStructure");
|
|
@@ -16703,7 +16808,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
16703
16808
|
})
|
|
16704
16809
|
};
|
|
16705
16810
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16706
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16811
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _481 => _481[field], 'optionalCall', _482 => _482()])).filter((col) => col !== void 0);
|
|
16707
16812
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16708
16813
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16709
16814
|
}, "useStripeProductTableStructure");
|
|
@@ -16805,11 +16910,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16805
16910
|
return params.fields.map((field) => {
|
|
16806
16911
|
const localHandler = fieldColumnMap[field];
|
|
16807
16912
|
if (localHandler) return localHandler();
|
|
16808
|
-
const customHandler = _optionalChain([params, 'access',
|
|
16913
|
+
const customHandler = _optionalChain([params, 'access', _483 => _483.context, 'optionalAccess', _484 => _484.customCells, 'optionalAccess', _485 => _485[field]]);
|
|
16809
16914
|
if (customHandler) return customHandler({ t });
|
|
16810
16915
|
return void 0;
|
|
16811
16916
|
}).filter((col) => col !== void 0);
|
|
16812
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
16917
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _486 => _486.context, 'optionalAccess', _487 => _487.customCells])]);
|
|
16813
16918
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16814
16919
|
}, "useContentTableStructure");
|
|
16815
16920
|
|
|
@@ -17147,7 +17252,7 @@ function ContentTableSearch({ data }) {
|
|
|
17147
17252
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
17148
17253
|
if (!isExpanded) {
|
|
17149
17254
|
setIsFocused(true);
|
|
17150
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
17255
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _488 => _488.current, 'optionalAccess', _489 => _489.focus, 'call', _490 => _490()]), 50);
|
|
17151
17256
|
}
|
|
17152
17257
|
}, "handleSearchIconClick");
|
|
17153
17258
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -17243,7 +17348,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17243
17348
|
if (data.isLoaded) setPendingDirection(null);
|
|
17244
17349
|
}, [data.isLoaded]);
|
|
17245
17350
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17246
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17351
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _491 => _491.data]), () => ( EMPTY_ARRAY)),
|
|
17247
17352
|
fields,
|
|
17248
17353
|
checkedIds,
|
|
17249
17354
|
toggleId,
|
|
@@ -17276,7 +17381,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17276
17381
|
});
|
|
17277
17382
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17278
17383
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17279
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17384
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _492 => _492.rows, 'optionalAccess', _493 => _493.length])) return null;
|
|
17280
17385
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17281
17386
|
for (const row of rowModel.rows) {
|
|
17282
17387
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17344,19 +17449,19 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17344
17449
|
) }),
|
|
17345
17450
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17346
17451
|
const meta = header.column.columnDef.meta;
|
|
17347
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
17452
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _494 => _494.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
17348
17453
|
}) }, headerGroup.id))
|
|
17349
17454
|
] }),
|
|
17350
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
17351
|
-
/* @__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',
|
|
17455
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _495 => _495.rows, 'optionalAccess', _496 => _496.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React2.default.Fragment, { children: [
|
|
17456
|
+
/* @__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', _497 => _497.groupLabel, 'optionalCall', _498 => _498(group.groupKey)]), () => ( group.groupKey)) }) }) }),
|
|
17352
17457
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17353
17458
|
TableRow,
|
|
17354
17459
|
{
|
|
17355
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17460
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _499 => _499(row.original.jsonApiData)]),
|
|
17356
17461
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17357
17462
|
children: row.getVisibleCells().map((cell) => {
|
|
17358
17463
|
const meta = cell.column.columnDef.meta;
|
|
17359
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17464
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _500 => _500.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17360
17465
|
})
|
|
17361
17466
|
},
|
|
17362
17467
|
row.id
|
|
@@ -17364,11 +17469,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17364
17469
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17365
17470
|
TableRow,
|
|
17366
17471
|
{
|
|
17367
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17472
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _501 => _501(row.original.jsonApiData)]),
|
|
17368
17473
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17369
17474
|
children: row.getVisibleCells().map((cell) => {
|
|
17370
17475
|
const meta = cell.column.columnDef.meta;
|
|
17371
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17476
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _502 => _502.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
17372
17477
|
})
|
|
17373
17478
|
},
|
|
17374
17479
|
row.id
|
|
@@ -17382,7 +17487,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17382
17487
|
onClick: (e) => {
|
|
17383
17488
|
e.preventDefault();
|
|
17384
17489
|
setPendingDirection("prev");
|
|
17385
|
-
_optionalChain([data, 'access',
|
|
17490
|
+
_optionalChain([data, 'access', _503 => _503.previous, 'optionalCall', _504 => _504(true)]);
|
|
17386
17491
|
},
|
|
17387
17492
|
disabled: !data.previous || pendingDirection !== null,
|
|
17388
17493
|
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" })
|
|
@@ -17397,7 +17502,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17397
17502
|
onClick: (e) => {
|
|
17398
17503
|
e.preventDefault();
|
|
17399
17504
|
setPendingDirection("next");
|
|
17400
|
-
_optionalChain([data, 'access',
|
|
17505
|
+
_optionalChain([data, 'access', _505 => _505.next, 'optionalCall', _506 => _506(true)]);
|
|
17401
17506
|
},
|
|
17402
17507
|
disabled: !data.next || pendingDirection !== null,
|
|
17403
17508
|
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" })
|
|
@@ -17418,7 +17523,7 @@ function ContentListGrid(props) {
|
|
|
17418
17523
|
if (!data.next || !sentinelRef.current) return;
|
|
17419
17524
|
const observer = new IntersectionObserver(
|
|
17420
17525
|
(entries) => {
|
|
17421
|
-
if (_optionalChain([entries, 'access',
|
|
17526
|
+
if (_optionalChain([entries, 'access', _507 => _507[0], 'optionalAccess', _508 => _508.isIntersecting])) _optionalChain([data, 'access', _509 => _509.next, 'optionalCall', _510 => _510()]);
|
|
17422
17527
|
},
|
|
17423
17528
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17424
17529
|
);
|
|
@@ -18205,7 +18310,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18205
18310
|
newDigits[index] = digit;
|
|
18206
18311
|
setDigits(newDigits);
|
|
18207
18312
|
if (digit && index < 5) {
|
|
18208
|
-
_optionalChain([inputRefs, 'access',
|
|
18313
|
+
_optionalChain([inputRefs, 'access', _511 => _511.current, 'access', _512 => _512[index + 1], 'optionalAccess', _513 => _513.focus, 'call', _514 => _514()]);
|
|
18209
18314
|
}
|
|
18210
18315
|
const code = newDigits.join("");
|
|
18211
18316
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18214,7 +18319,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18214
18319
|
}, "handleChange");
|
|
18215
18320
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18216
18321
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18217
|
-
_optionalChain([inputRefs, 'access',
|
|
18322
|
+
_optionalChain([inputRefs, 'access', _515 => _515.current, 'access', _516 => _516[index - 1], 'optionalAccess', _517 => _517.focus, 'call', _518 => _518()]);
|
|
18218
18323
|
}
|
|
18219
18324
|
}, "handleKeyDown");
|
|
18220
18325
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18223,7 +18328,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18223
18328
|
if (pastedData.length === 6) {
|
|
18224
18329
|
const newDigits = pastedData.split("");
|
|
18225
18330
|
setDigits(newDigits);
|
|
18226
|
-
_optionalChain([inputRefs, 'access',
|
|
18331
|
+
_optionalChain([inputRefs, 'access', _519 => _519.current, 'access', _520 => _520[5], 'optionalAccess', _521 => _521.focus, 'call', _522 => _522()]);
|
|
18227
18332
|
onComplete(pastedData);
|
|
18228
18333
|
}
|
|
18229
18334
|
}, "handlePaste");
|
|
@@ -18434,8 +18539,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18434
18539
|
try {
|
|
18435
18540
|
const registrationData = await _chunkPGA2VC3Sjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18436
18541
|
id: _uuid.v4.call(void 0, ),
|
|
18437
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18438
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18542
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _523 => _523.email]), () => ( "")),
|
|
18543
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _524 => _524.name])
|
|
18439
18544
|
});
|
|
18440
18545
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18441
18546
|
await _chunkPGA2VC3Sjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -18586,7 +18691,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
18586
18691
|
const setup = await _chunkPGA2VC3Sjs.TwoFactorService.setupTotp({
|
|
18587
18692
|
id: _uuid.v4.call(void 0, ),
|
|
18588
18693
|
name: name.trim(),
|
|
18589
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18694
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _525 => _525.email]), () => ( ""))
|
|
18590
18695
|
});
|
|
18591
18696
|
setQrCodeUri(setup.qrCodeUri);
|
|
18592
18697
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -18720,7 +18825,7 @@ function TwoFactorSettings() {
|
|
|
18720
18825
|
if (isLoading) {
|
|
18721
18826
|
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") }) }) });
|
|
18722
18827
|
}
|
|
18723
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18828
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _526 => _526.isEnabled]), () => ( false));
|
|
18724
18829
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
18725
18830
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
18726
18831
|
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" }),
|
|
@@ -18758,7 +18863,7 @@ function TwoFactorSettings() {
|
|
|
18758
18863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
18759
18864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
18760
18865
|
] }),
|
|
18761
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _527 => _527.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
18762
18867
|
] }) }),
|
|
18763
18868
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18764
18869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -18936,9 +19041,9 @@ function AcceptInvitation() {
|
|
|
18936
19041
|
});
|
|
18937
19042
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
18938
19043
|
try {
|
|
18939
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19044
|
+
if (!_optionalChain([params, 'optionalAccess', _528 => _528.code])) return;
|
|
18940
19045
|
const payload = {
|
|
18941
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19046
|
+
code: _optionalChain([params, 'optionalAccess', _529 => _529.code]),
|
|
18942
19047
|
password: values.password
|
|
18943
19048
|
};
|
|
18944
19049
|
await _chunkPGA2VC3Sjs.AuthService.acceptInvitation(payload);
|
|
@@ -19309,14 +19414,14 @@ function RefreshUser() {
|
|
|
19309
19414
|
setUser(fullUser);
|
|
19310
19415
|
const token = {
|
|
19311
19416
|
userId: fullUser.id,
|
|
19312
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19417
|
+
companyId: _optionalChain([fullUser, 'access', _530 => _530.company, 'optionalAccess', _531 => _531.id]),
|
|
19313
19418
|
roles: fullUser.roles.map((role) => role.id),
|
|
19314
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
19419
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _532 => _532.company, 'optionalAccess', _533 => _533.features, 'optionalAccess', _534 => _534.map, 'call', _535 => _535((feature) => feature.id)]), () => ( [])),
|
|
19315
19420
|
modules: fullUser.modules.map((module) => {
|
|
19316
19421
|
return { id: module.id, permissions: module.permissions };
|
|
19317
19422
|
})
|
|
19318
19423
|
};
|
|
19319
|
-
await _optionalChain([_chunkPGA2VC3Sjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19424
|
+
await _optionalChain([_chunkPGA2VC3Sjs.getTokenHandler.call(void 0, ), 'optionalAccess', _536 => _536.updateToken, 'call', _537 => _537(token)]);
|
|
19320
19425
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19321
19426
|
}
|
|
19322
19427
|
}, "loadFullUser");
|
|
@@ -19380,9 +19485,9 @@ function ResetPassword() {
|
|
|
19380
19485
|
});
|
|
19381
19486
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19382
19487
|
try {
|
|
19383
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19488
|
+
if (!_optionalChain([params, 'optionalAccess', _538 => _538.code])) return;
|
|
19384
19489
|
const payload = {
|
|
19385
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19490
|
+
code: _optionalChain([params, 'optionalAccess', _539 => _539.code]),
|
|
19386
19491
|
password: values.password
|
|
19387
19492
|
};
|
|
19388
19493
|
await _chunkPGA2VC3Sjs.AuthService.resetPassword(payload);
|
|
@@ -19907,7 +20012,7 @@ function AiConnectionEditor({
|
|
|
19907
20012
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
19908
20013
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
19909
20014
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
19910
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
20015
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _540 => _540.find, 'call', _541 => _541((row) => row.provider === provider), 'optionalAccess', _542 => _542.fields]), () => ( [])),
|
|
19911
20016
|
[registryRows]
|
|
19912
20017
|
);
|
|
19913
20018
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -19916,7 +20021,7 @@ function AiConnectionEditor({
|
|
|
19916
20021
|
const seeded = {};
|
|
19917
20022
|
fieldsFor(provider).forEach((descriptor) => {
|
|
19918
20023
|
if (descriptor.kind === "boolean") {
|
|
19919
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20024
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _543 => _543[descriptor.field]]);
|
|
19920
20025
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
19921
20026
|
return;
|
|
19922
20027
|
}
|
|
@@ -19924,7 +20029,7 @@ function AiConnectionEditor({
|
|
|
19924
20029
|
seeded[descriptor.field] = "";
|
|
19925
20030
|
return;
|
|
19926
20031
|
}
|
|
19927
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20032
|
+
const current = _optionalChain([stored, 'optionalAccess', _544 => _544[descriptor.field]]);
|
|
19928
20033
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
19929
20034
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
19930
20035
|
});
|
|
@@ -19950,7 +20055,7 @@ function AiConnectionEditor({
|
|
|
19950
20055
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
19951
20056
|
}).superRefine((data, ctx) => {
|
|
19952
20057
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
19953
|
-
const value = _optionalChain([data, 'access',
|
|
20058
|
+
const value = _optionalChain([data, 'access', _545 => _545.values, 'optionalAccess', _546 => _546[descriptor.field]]);
|
|
19954
20059
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
19955
20060
|
if (filled) return;
|
|
19956
20061
|
ctx.addIssue({
|
|
@@ -19964,11 +20069,11 @@ function AiConnectionEditor({
|
|
|
19964
20069
|
);
|
|
19965
20070
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
19966
20071
|
() => ({
|
|
19967
|
-
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
19968
|
-
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
19969
|
-
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
19970
|
-
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
19971
|
-
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess',
|
|
20072
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _547 => _547.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
20073
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _548 => _548.name]), () => ( "")),
|
|
20074
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _549 => _549.provider]), () => ( providers[0])), () => ( "")),
|
|
20075
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _550 => _550.enabled]), () => ( true)),
|
|
20076
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _551 => _551.provider]), () => ( providers[0])), () => ( "")))
|
|
19972
20077
|
}),
|
|
19973
20078
|
[connection, providers, defaultsFor]
|
|
19974
20079
|
);
|
|
@@ -19979,7 +20084,7 @@ function AiConnectionEditor({
|
|
|
19979
20084
|
_react.useEffect.call(void 0, () => {
|
|
19980
20085
|
if (registryRows.length === 0) return;
|
|
19981
20086
|
const currentProvider = form.getValues("provider");
|
|
19982
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20087
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _552 => _552.provider]) || providers[0] || "";
|
|
19983
20088
|
if (!provider) return;
|
|
19984
20089
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
19985
20090
|
const currentValues = form.getValues("values");
|
|
@@ -20050,7 +20155,7 @@ function AiConnectionEditor({
|
|
|
20050
20155
|
{
|
|
20051
20156
|
form,
|
|
20052
20157
|
entityType: t("ai_connections.admin.entity"),
|
|
20053
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20158
|
+
entityName: _optionalChain([connection, 'optionalAccess', _553 => _553.name]),
|
|
20054
20159
|
isEdit,
|
|
20055
20160
|
module: _chunkPGA2VC3Sjs.Modules.AiConnection,
|
|
20056
20161
|
size: "md",
|
|
@@ -20058,7 +20163,7 @@ function AiConnectionEditor({
|
|
|
20058
20163
|
onSubmit: async (values) => {
|
|
20059
20164
|
const attributes = {};
|
|
20060
20165
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20061
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20166
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _554 => _554.values, 'optionalAccess', _555 => _555[descriptor.field]]));
|
|
20062
20167
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20063
20168
|
});
|
|
20064
20169
|
const payload = {
|
|
@@ -20279,7 +20384,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20279
20384
|
),
|
|
20280
20385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20281
20386
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softGray", children: t("ai_connections.admin.env_fallback") }),
|
|
20282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess',
|
|
20387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-muted-foreground truncate text-xs", children: [_optionalChain([envDefault, 'optionalAccess', _556 => _556.provider]), _optionalChain([envDefault, 'optionalAccess', _557 => _557.model]), _optionalChain([envDefault, 'optionalAccess', _558 => _558.url])].filter(Boolean).join(" \xB7 ") })
|
|
20283
20388
|
] })
|
|
20284
20389
|
] })
|
|
20285
20390
|
] })
|
|
@@ -20477,7 +20582,7 @@ function extractHeadings(blocks) {
|
|
|
20477
20582
|
function processBlocks(blockArray) {
|
|
20478
20583
|
for (const block of blockArray) {
|
|
20479
20584
|
if (block.type === "heading") {
|
|
20480
|
-
const level = _optionalChain([block, 'access',
|
|
20585
|
+
const level = _optionalChain([block, 'access', _559 => _559.props, 'optionalAccess', _560 => _560.level]) || 1;
|
|
20481
20586
|
const text = extractTextFromContent(block.content);
|
|
20482
20587
|
if (text.trim()) {
|
|
20483
20588
|
headings.push({
|
|
@@ -20820,7 +20925,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
20820
20925
|
})
|
|
20821
20926
|
};
|
|
20822
20927
|
const columns = _react.useMemo.call(void 0, () => {
|
|
20823
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
20928
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _561 => _561[field], 'optionalCall', _562 => _562()])).filter((col) => col !== void 0);
|
|
20824
20929
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
20825
20930
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
20826
20931
|
}, "useHowToTableStructure");
|
|
@@ -20919,7 +21024,7 @@ function HowToSelector({
|
|
|
20919
21024
|
}, "setHowTo");
|
|
20920
21025
|
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: [
|
|
20921
21026
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
20922
|
-
/* @__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',
|
|
21027
|
+
/* @__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', _563 => _563.value, 'optionalAccess', _564 => _564.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 }) }))) }) }) }),
|
|
20923
21028
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20924
21029
|
_lucidereact.CircleX,
|
|
20925
21030
|
{
|
|
@@ -21313,10 +21418,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
21313
21418
|
] }) }),
|
|
21314
21419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21315
21420
|
const isOpen = expanded.has(chunk.id);
|
|
21316
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
21421
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _565 => _565.get, 'call', _566 => _566(chunk.nodeId)]) : void 0;
|
|
21317
21422
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21318
21423
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21319
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
21424
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _567 => _567.name]), () => ( fallbackName));
|
|
21320
21425
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21321
21426
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21322
21427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21364,7 +21469,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21364
21469
|
for (const c of citations) {
|
|
21365
21470
|
const id = c.nodeId;
|
|
21366
21471
|
if (!id) continue;
|
|
21367
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
21472
|
+
const source = _optionalChain([sources, 'optionalAccess', _568 => _568.get, 'call', _569 => _569(id)]);
|
|
21368
21473
|
if (!source) continue;
|
|
21369
21474
|
const existing = map.get(id);
|
|
21370
21475
|
if (existing) {
|
|
@@ -21431,7 +21536,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21431
21536
|
const generate = usePageUrlGenerator();
|
|
21432
21537
|
const userMap = /* @__PURE__ */ new Map();
|
|
21433
21538
|
for (const u of users) {
|
|
21434
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
21539
|
+
if (!_optionalChain([u, 'optionalAccess', _570 => _570.id])) continue;
|
|
21435
21540
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
21436
21541
|
}
|
|
21437
21542
|
if (citations && sources) {
|
|
@@ -21536,7 +21641,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21536
21641
|
}
|
|
21537
21642
|
return ids.size;
|
|
21538
21643
|
}, [message.citations, sources]);
|
|
21539
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
21644
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _571 => _571.length]), () => ( 0));
|
|
21540
21645
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
21541
21646
|
const visibleTabs = [];
|
|
21542
21647
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -21679,7 +21784,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
21679
21784
|
return void 0;
|
|
21680
21785
|
}
|
|
21681
21786
|
})()));
|
|
21682
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
21787
|
+
if (_optionalChain([author, 'optionalAccess', _572 => _572.id])) userMap.set(author.id, author);
|
|
21683
21788
|
}
|
|
21684
21789
|
return Array.from(userMap.values());
|
|
21685
21790
|
}, [resolved]);
|
|
@@ -21714,7 +21819,7 @@ function MessageItem({
|
|
|
21714
21819
|
}) {
|
|
21715
21820
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
21716
21821
|
const isUser = message.role === "user";
|
|
21717
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
21822
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _573 => _573.has, 'call', _574 => _574(message.id)]);
|
|
21718
21823
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
21719
21824
|
() => ({
|
|
21720
21825
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -21731,7 +21836,7 @@ function MessageItem({
|
|
|
21731
21836
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
21732
21837
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
21733
21838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
21734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
21839
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _575 => _575(message.id)]), children: t("features.assistant.retry") })
|
|
21735
21840
|
] })
|
|
21736
21841
|
] });
|
|
21737
21842
|
}
|
|
@@ -21822,7 +21927,7 @@ function AssistantThread({
|
|
|
21822
21927
|
}) {
|
|
21823
21928
|
const endRef = _react.useRef.call(void 0, null);
|
|
21824
21929
|
_react.useEffect.call(void 0, () => {
|
|
21825
|
-
_optionalChain([endRef, 'access',
|
|
21930
|
+
_optionalChain([endRef, 'access', _576 => _576.current, 'optionalAccess', _577 => _577.scrollIntoView, 'call', _578 => _578({ behavior: "smooth" })]);
|
|
21826
21931
|
}, [messages.length, sending]);
|
|
21827
21932
|
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: [
|
|
21828
21933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21852,7 +21957,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
21852
21957
|
AssistantSidebar,
|
|
21853
21958
|
{
|
|
21854
21959
|
threads: ctx.threads,
|
|
21855
|
-
activeId: _optionalChain([ctx, 'access',
|
|
21960
|
+
activeId: _optionalChain([ctx, 'access', _579 => _579.assistant, 'optionalAccess', _580 => _580.id]),
|
|
21856
21961
|
onSelect: ctx.selectThread,
|
|
21857
21962
|
onNew: ctx.startNew
|
|
21858
21963
|
}
|
|
@@ -21906,7 +22011,7 @@ function flattenBlocks(blocks) {
|
|
|
21906
22011
|
if (typeof inline === "string") return inline;
|
|
21907
22012
|
if (!inline || typeof inline !== "object") return "";
|
|
21908
22013
|
const node = inline;
|
|
21909
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
22014
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _581 => _581.props, 'optionalAccess', _582 => _582.alias]), () => ( ""));
|
|
21910
22015
|
if (typeof node.text === "string") return node.text;
|
|
21911
22016
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
21912
22017
|
return "";
|
|
@@ -22022,7 +22127,7 @@ function AssistantPageContainer({
|
|
|
22022
22127
|
AssistantSidebar,
|
|
22023
22128
|
{
|
|
22024
22129
|
threads: ctx.threads,
|
|
22025
|
-
activeId: _optionalChain([ctx, 'access',
|
|
22130
|
+
activeId: _optionalChain([ctx, 'access', _583 => _583.assistant, 'optionalAccess', _584 => _584.id]),
|
|
22026
22131
|
onSelect: ctx.selectThread,
|
|
22027
22132
|
onNew: ctx.startNew
|
|
22028
22133
|
}
|
|
@@ -22124,7 +22229,7 @@ function ApprovalActionCard({ actionId, summary, onResolved }) {
|
|
|
22124
22229
|
try {
|
|
22125
22230
|
const message = kind === "approve" ? await _chunkPGA2VC3Sjs.AssistantActionService.approve({ id: actionId }) : await _chunkPGA2VC3Sjs.AssistantActionService.deny({ id: actionId });
|
|
22126
22231
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
22127
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
22232
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _585 => _585(message)]);
|
|
22128
22233
|
} catch (error) {
|
|
22129
22234
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
22130
22235
|
setFailed(true);
|
|
@@ -22223,14 +22328,14 @@ function NotificationsList({ archived }) {
|
|
|
22223
22328
|
] }),
|
|
22224
22329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
22225
22330
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
22226
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
22331
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _586 => _586.data, 'optionalAccess', _587 => _587.map, 'call', _588 => _588((notification) => {
|
|
22227
22332
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
22228
22333
|
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: [
|
|
22229
22334
|
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: _chunkPGA2VC3Sjs.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" }),
|
|
22230
22335
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
22231
22336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
22232
22337
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
22233
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
22338
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _589 => _589.actor, 'optionalAccess', _590 => _590.name]), () => ( "")),
|
|
22234
22339
|
title: notificationData.title
|
|
22235
22340
|
}) }),
|
|
22236
22341
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -22576,7 +22681,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
22576
22681
|
invalidEmail: "Please enter a valid email address"
|
|
22577
22682
|
};
|
|
22578
22683
|
async function copyToClipboard(text) {
|
|
22579
|
-
if (_optionalChain([navigator, 'access',
|
|
22684
|
+
if (_optionalChain([navigator, 'access', _591 => _591.clipboard, 'optionalAccess', _592 => _592.writeText])) {
|
|
22580
22685
|
try {
|
|
22581
22686
|
await navigator.clipboard.writeText(text);
|
|
22582
22687
|
return true;
|
|
@@ -22618,7 +22723,7 @@ function ReferralWidget({
|
|
|
22618
22723
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
22619
22724
|
const config = _chunkB2OB3HQOjs.getReferralConfig.call(void 0, );
|
|
22620
22725
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
22621
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
22726
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _593 => _593.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
22622
22727
|
if (!_chunkB2OB3HQOjs.isReferralEnabled.call(void 0, )) {
|
|
22623
22728
|
return null;
|
|
22624
22729
|
}
|
|
@@ -22628,7 +22733,7 @@ function ReferralWidget({
|
|
|
22628
22733
|
if (success) {
|
|
22629
22734
|
setCopied(true);
|
|
22630
22735
|
_chunkPGA2VC3Sjs.showToast.call(void 0, t.copiedMessage);
|
|
22631
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
22736
|
+
_optionalChain([onLinkCopied, 'optionalCall', _594 => _594()]);
|
|
22632
22737
|
setTimeout(() => setCopied(false), 2e3);
|
|
22633
22738
|
} else {
|
|
22634
22739
|
_chunkPGA2VC3Sjs.showError.call(void 0, t.copyError);
|
|
@@ -22642,12 +22747,12 @@ function ReferralWidget({
|
|
|
22642
22747
|
try {
|
|
22643
22748
|
await sendInvite(email);
|
|
22644
22749
|
_chunkPGA2VC3Sjs.showToast.call(void 0, t.inviteSent);
|
|
22645
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
22750
|
+
_optionalChain([onInviteSent, 'optionalCall', _595 => _595(email)]);
|
|
22646
22751
|
setEmail("");
|
|
22647
22752
|
} catch (err) {
|
|
22648
22753
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
22649
22754
|
_chunkPGA2VC3Sjs.showError.call(void 0, error2.message);
|
|
22650
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
22755
|
+
_optionalChain([onInviteError, 'optionalCall', _596 => _596(error2)]);
|
|
22651
22756
|
}
|
|
22652
22757
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
22653
22758
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -23401,7 +23506,7 @@ function OAuthClientList({
|
|
|
23401
23506
|
OAuthClientCard,
|
|
23402
23507
|
{
|
|
23403
23508
|
client,
|
|
23404
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
23509
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _597 => _597(client)]),
|
|
23405
23510
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
23406
23511
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
23407
23512
|
},
|
|
@@ -23417,11 +23522,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
23417
23522
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
23418
23523
|
const isEditMode = !!client;
|
|
23419
23524
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
23420
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
23421
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
23422
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
23423
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
23424
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
23525
|
+
name: _optionalChain([client, 'optionalAccess', _598 => _598.name]) || "",
|
|
23526
|
+
description: _optionalChain([client, 'optionalAccess', _599 => _599.description]) || "",
|
|
23527
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _600 => _600.redirectUris, 'optionalAccess', _601 => _601.length]) ? client.redirectUris : [""],
|
|
23528
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _602 => _602.allowedScopes]) || [],
|
|
23529
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _603 => _603.isConfidential]), () => ( true))
|
|
23425
23530
|
});
|
|
23426
23531
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
23427
23532
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -23649,7 +23754,7 @@ function OAuthClientDetail({
|
|
|
23649
23754
|
] }),
|
|
23650
23755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23651
23756
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
23652
|
-
/* @__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([_chunkPGA2VC3Sjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
23757
|
+
/* @__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([_chunkPGA2VC3Sjs.OAUTH_SCOPE_DISPLAY, 'access', _604 => _604[scope], 'optionalAccess', _605 => _605.name]) || scope }, scope)) })
|
|
23653
23758
|
] }),
|
|
23654
23759
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23655
23760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -23793,7 +23898,7 @@ function OAuthConsentScreen({
|
|
|
23793
23898
|
if (error || !clientInfo) {
|
|
23794
23899
|
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: [
|
|
23795
23900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
23796
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
23901
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _606 => _606.message]) || "Invalid authorization request. Please try again." })
|
|
23797
23902
|
] }) }) }) });
|
|
23798
23903
|
}
|
|
23799
23904
|
const { client, scopes } = clientInfo;
|
|
@@ -24009,7 +24114,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
24009
24114
|
questionnaire: values.questionnaire
|
|
24010
24115
|
});
|
|
24011
24116
|
setIsSuccess(true);
|
|
24012
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
24117
|
+
_optionalChain([onSuccess, 'optionalCall', _607 => _607()]);
|
|
24013
24118
|
} catch (e) {
|
|
24014
24119
|
errorToast({ error: e });
|
|
24015
24120
|
} finally {
|
|
@@ -24657,7 +24762,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
24657
24762
|
] }),
|
|
24658
24763
|
roleIds.map((roleId) => {
|
|
24659
24764
|
const roleTokens = block[roleId];
|
|
24660
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
24765
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _608 => _608[roleId]]), () => ( roleId));
|
|
24661
24766
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
24662
24767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
24663
24768
|
_chunkB2OB3HQOjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24694,7 +24799,7 @@ function RbacContainer() {
|
|
|
24694
24799
|
}, []);
|
|
24695
24800
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
24696
24801
|
if (!matrix) return [];
|
|
24697
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24802
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _609 => _609[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _610 => _610[b]]), () => ( b))));
|
|
24698
24803
|
}, [matrix, moduleNames]);
|
|
24699
24804
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
24700
24805
|
if (roleNames) {
|
|
@@ -24757,7 +24862,7 @@ function RbacContainer() {
|
|
|
24757
24862
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
24758
24863
|
id !== selectedModuleId && "text-muted-foreground"
|
|
24759
24864
|
),
|
|
24760
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24865
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _611 => _611[id]]), () => ( id))
|
|
24761
24866
|
}
|
|
24762
24867
|
) }, id)) }) }),
|
|
24763
24868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24765,7 +24870,7 @@ function RbacContainer() {
|
|
|
24765
24870
|
{
|
|
24766
24871
|
moduleId: selectedModuleId,
|
|
24767
24872
|
block: selectedBlock,
|
|
24768
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24873
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _612 => _612[selectedModuleId]]), () => ( selectedModuleId)),
|
|
24769
24874
|
roleIds,
|
|
24770
24875
|
roleNames,
|
|
24771
24876
|
onOpenPicker: openPicker
|
|
@@ -24776,12 +24881,12 @@ function RbacContainer() {
|
|
|
24776
24881
|
RbacPermissionPicker,
|
|
24777
24882
|
{
|
|
24778
24883
|
open: !!activePicker,
|
|
24779
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24884
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _613 => _613.anchor]), () => ( null)),
|
|
24780
24885
|
value: activeValue,
|
|
24781
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24886
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _614 => _614.isRoleColumn]), () => ( false)),
|
|
24782
24887
|
knownSegments: activeSegments,
|
|
24783
24888
|
onSetValue: handleSetValue,
|
|
24784
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
24889
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _615 => _615.isRoleColumn]) ? handleClear : void 0,
|
|
24785
24890
|
onClose: closePicker
|
|
24786
24891
|
}
|
|
24787
24892
|
)
|
|
@@ -24848,7 +24953,7 @@ function RbacByRoleContainer() {
|
|
|
24848
24953
|
}, [roleNames]);
|
|
24849
24954
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
24850
24955
|
if (!matrix) return [];
|
|
24851
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24956
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _616 => _616[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _617 => _617[b]]), () => ( b))));
|
|
24852
24957
|
}, [matrix, moduleNames]);
|
|
24853
24958
|
_react.useEffect.call(void 0, () => {
|
|
24854
24959
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -24897,7 +25002,7 @@ function RbacByRoleContainer() {
|
|
|
24897
25002
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
24898
25003
|
id !== selectedRoleId && "text-muted-foreground"
|
|
24899
25004
|
),
|
|
24900
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
25005
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _618 => _618[id]]), () => ( id))
|
|
24901
25006
|
}
|
|
24902
25007
|
) }, id)) }) }),
|
|
24903
25008
|
/* @__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: [
|
|
@@ -24917,7 +25022,7 @@ function RbacByRoleContainer() {
|
|
|
24917
25022
|
if (!block) return null;
|
|
24918
25023
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
24919
25024
|
const roleTokens = block[selectedRoleId];
|
|
24920
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
25025
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _619 => _619[moduleId]]), () => ( moduleId));
|
|
24921
25026
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
24922
25027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24923
25028
|
"td",
|
|
@@ -24932,7 +25037,7 @@ function RbacByRoleContainer() {
|
|
|
24932
25037
|
_chunkB2OB3HQOjs.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))
|
|
24933
25038
|
] }),
|
|
24934
25039
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
24935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
25040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _620 => _620[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
24936
25041
|
_chunkB2OB3HQOjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24937
25042
|
CellButton3,
|
|
24938
25043
|
{
|
|
@@ -24953,12 +25058,12 @@ function RbacByRoleContainer() {
|
|
|
24953
25058
|
RbacPermissionPicker,
|
|
24954
25059
|
{
|
|
24955
25060
|
open: !!activePicker,
|
|
24956
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
25061
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _621 => _621.anchor]), () => ( null)),
|
|
24957
25062
|
value: activeValue,
|
|
24958
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
25063
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _622 => _622.isRoleColumn]), () => ( false)),
|
|
24959
25064
|
knownSegments: activeSegments,
|
|
24960
25065
|
onSetValue: handleSetValue,
|
|
24961
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
25066
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _623 => _623.isRoleColumn]) ? handleClear : void 0,
|
|
24962
25067
|
onClose: closePicker
|
|
24963
25068
|
}
|
|
24964
25069
|
)
|
|
@@ -25540,5 +25645,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
25540
25645
|
|
|
25541
25646
|
|
|
25542
25647
|
|
|
25543
|
-
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.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.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.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; 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.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.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; 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.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;
|
|
25544
|
-
//# sourceMappingURL=chunk-N73QMKQU.js.map
|
|
25648
|
+
|
|
25649
|
+
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.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.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.SectionHeader = SectionHeader; exports.MicroLabel = MicroLabel; exports.DetailField = DetailField; exports.FormFeatures = FormFeatures; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; 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.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.AssistantComposer = AssistantComposer; exports.AssistantEmptyState = AssistantEmptyState; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; exports.AssistantThread = AssistantThread; 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.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;
|
|
25650
|
+
//# sourceMappingURL=chunk-EJIWXCXI.js.map
|