@carlonicora/nextjs-jsonapi 3.5.7 → 3.5.8
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-5LH6CCQF.mjs} +2 -2
- package/dist/{BlockNoteEditor-JSZ2YZVY.js → BlockNoteEditor-J27BAKEF.js} +9 -9
- package/dist/{BlockNoteEditor-JSZ2YZVY.js.map → BlockNoteEditor-J27BAKEF.js.map} +1 -1
- package/dist/billing/index.js +333 -333
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-N73QMKQU.js → chunk-G2PQN6HK.js} +292 -202
- package/dist/chunk-G2PQN6HK.js.map +1 -0
- package/dist/{chunk-C7I6YFTA.mjs → chunk-Q2QO5XYN.mjs} +99 -9
- package/dist/chunk-Q2QO5XYN.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 +16 -5
- 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-5LH6CCQF.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,
|
|
@@ -10045,9 +10046,21 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
10045
10046
|
);
|
|
10046
10047
|
const handleKeyDown = _react.useCallback.call(void 0,
|
|
10047
10048
|
(e) => {
|
|
10049
|
+
if (!value) return;
|
|
10050
|
+
const handledKeys = [
|
|
10051
|
+
"ArrowLeft",
|
|
10052
|
+
"ArrowRight",
|
|
10053
|
+
"ArrowUp",
|
|
10054
|
+
"ArrowDown",
|
|
10055
|
+
"Enter",
|
|
10056
|
+
"Space",
|
|
10057
|
+
"Delete",
|
|
10058
|
+
"Backspace",
|
|
10059
|
+
"Escape"
|
|
10060
|
+
];
|
|
10061
|
+
if (!handledKeys.includes(e.key)) return;
|
|
10048
10062
|
e.preventDefault();
|
|
10049
10063
|
e.stopPropagation();
|
|
10050
|
-
if (!value) return;
|
|
10051
10064
|
const moveNext = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10052
10065
|
const nextIndex = activeIndex + 1;
|
|
10053
10066
|
setActiveIndex(nextIndex > value.length - 1 ? 0 : nextIndex);
|
|
@@ -10314,7 +10327,7 @@ FileInput.displayName = "FileInput";
|
|
|
10314
10327
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
10315
10328
|
|
|
10316
10329
|
|
|
10317
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
10330
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-J27BAKEF.js"))), {
|
|
10318
10331
|
ssr: false
|
|
10319
10332
|
});
|
|
10320
10333
|
var BlockNoteEditorContainer = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11376,13 +11389,89 @@ _chunk7QVYU63Ejs.__name.call(void 0, GdprConsentCheckbox, "GdprConsentCheckbox")
|
|
|
11376
11389
|
|
|
11377
11390
|
|
|
11378
11391
|
var dropzone = {
|
|
11379
|
-
multiple: false,
|
|
11380
11392
|
maxSize: 100 * 1024 * 1024,
|
|
11381
11393
|
preventDropOnDocument: false,
|
|
11382
11394
|
accept: {
|
|
11383
11395
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg", ".docx", ".xslx", ".pdf", ".txt", ".md"]
|
|
11384
11396
|
}
|
|
11385
11397
|
};
|
|
11398
|
+
function MultiFileUploader({ files, setFiles, multiple = false, className }) {
|
|
11399
|
+
const uploadFiles = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (newFiles) => {
|
|
11400
|
+
if (!newFiles) return;
|
|
11401
|
+
setFiles([...files, ...newFiles]);
|
|
11402
|
+
}, "uploadFiles");
|
|
11403
|
+
const handleRemoveFile = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (indexToRemove) => {
|
|
11404
|
+
setFiles(files.filter((_, index) => index !== indexToRemove));
|
|
11405
|
+
}, "handleRemoveFile");
|
|
11406
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11407
|
+
"div",
|
|
11408
|
+
{
|
|
11409
|
+
className: _chunkPGA2VC3Sjs.cn.call(void 0,
|
|
11410
|
+
"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",
|
|
11411
|
+
className
|
|
11412
|
+
),
|
|
11413
|
+
children: [
|
|
11414
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11415
|
+
FileUploader,
|
|
11416
|
+
{
|
|
11417
|
+
value: files,
|
|
11418
|
+
onValueChange: uploadFiles,
|
|
11419
|
+
dropzoneOptions: { ...dropzone, multiple },
|
|
11420
|
+
className: "text-muted-foreground hover:text-primary relative aspect-square h-full cursor-pointer overflow-hidden rounded-lg border",
|
|
11421
|
+
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" }) })
|
|
11422
|
+
}
|
|
11423
|
+
),
|
|
11424
|
+
files.map((file, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FilePreviewItem, { file, onRemoveClick: () => handleRemoveFile(index) }, file.name + "-" + index))
|
|
11425
|
+
]
|
|
11426
|
+
}
|
|
11427
|
+
);
|
|
11428
|
+
}
|
|
11429
|
+
_chunk7QVYU63Ejs.__name.call(void 0, MultiFileUploader, "MultiFileUploader");
|
|
11430
|
+
var FilePreviewItem = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ file, onRemoveClick }) => {
|
|
11431
|
+
const [objectUrl, setObjectUrl] = _react.useState.call(void 0, null);
|
|
11432
|
+
_react.useEffect.call(void 0, () => {
|
|
11433
|
+
if (file.type.startsWith("image/")) {
|
|
11434
|
+
const url = URL.createObjectURL(file);
|
|
11435
|
+
setObjectUrl(url);
|
|
11436
|
+
return () => URL.revokeObjectURL(url);
|
|
11437
|
+
}
|
|
11438
|
+
setObjectUrl(null);
|
|
11439
|
+
}, [file]);
|
|
11440
|
+
const getFileIcon = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11441
|
+
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()]);
|
|
11442
|
+
if (file.type.startsWith("image/")) {
|
|
11443
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileImageIcon, { className: "text-muted h-10 w-10 sm:h-12 sm:w-12" });
|
|
11444
|
+
}
|
|
11445
|
+
if (file.type === "application/pdf") {
|
|
11446
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "text-destructive h-10 w-10 sm:h-12 sm:w-12" });
|
|
11447
|
+
}
|
|
11448
|
+
if (file.type.includes("wordprocessingml") || extension === "docx" || extension === "doc") {
|
|
11449
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "text-primary h-10 w-10 sm:h-12 sm:w-12" });
|
|
11450
|
+
}
|
|
11451
|
+
if (file.type.includes("spreadsheetml") || extension === "xlsx" || extension === "xls") {
|
|
11452
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileSpreadsheetIcon, { className: "text-secondary h-10 w-10 sm:h-12 sm:w-12" });
|
|
11453
|
+
}
|
|
11454
|
+
if (file.type.startsWith("text/")) {
|
|
11455
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileTextIcon, { className: "h-10 w-10 sm:h-12 sm:w-12" });
|
|
11456
|
+
}
|
|
11457
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.FileIcon, { className: "text-muted h-10 w-10 sm:h-12 sm:w-12" });
|
|
11458
|
+
}, "getFileIcon");
|
|
11459
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground group relative aspect-square h-full overflow-hidden rounded-lg border", children: [
|
|
11460
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11461
|
+
"button",
|
|
11462
|
+
{
|
|
11463
|
+
onClick: onRemoveClick,
|
|
11464
|
+
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",
|
|
11465
|
+
"aria-label": "Remove file",
|
|
11466
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.XIcon, { className: "h-3.5 w-3.5" })
|
|
11467
|
+
}
|
|
11468
|
+
),
|
|
11469
|
+
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: [
|
|
11470
|
+
getFileIcon(),
|
|
11471
|
+
/* @__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 })
|
|
11472
|
+
] })
|
|
11473
|
+
] });
|
|
11474
|
+
}, "FilePreviewItem");
|
|
11386
11475
|
|
|
11387
11476
|
// src/features/user/components/widgets/UserAvatar.tsx
|
|
11388
11477
|
|
|
@@ -11399,7 +11488,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
11399
11488
|
}, "getInitials");
|
|
11400
11489
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
11401
11490
|
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',
|
|
11491
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _314 => _314.avatar]) }),
|
|
11403
11492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
11404
11493
|
] }) });
|
|
11405
11494
|
}, "getAvatar");
|
|
@@ -11605,7 +11694,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
11605
11694
|
})
|
|
11606
11695
|
};
|
|
11607
11696
|
const columns = _react.useMemo.call(void 0, () => {
|
|
11608
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11697
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _315 => _315[field], 'optionalCall', _316 => _316()])).filter((col) => col !== void 0);
|
|
11609
11698
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
11610
11699
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
11611
11700
|
}, "useUserTableStructure");
|
|
@@ -11719,10 +11808,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11719
11808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11720
11809
|
/* @__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
11810
|
/* @__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',
|
|
11811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.avatar]) }),
|
|
11812
|
+
/* @__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
11813
|
] }) }),
|
|
11725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11814
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _327 => _327.value, 'optionalAccess', _328 => _328.name]), () => ( "")) })
|
|
11726
11815
|
] }) : /* @__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
11816
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11728
11817
|
_lucidereact.CircleX,
|
|
@@ -11932,7 +12021,7 @@ function UserContent({ user }) {
|
|
|
11932
12021
|
const updated = await _chunkPGA2VC3Sjs.UserService.patchAvatar({ id: user.id, avatar: imageKey });
|
|
11933
12022
|
setUser(updated);
|
|
11934
12023
|
},
|
|
11935
|
-
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12024
|
+
companyId: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _329 => _329.id]), () => ( "")),
|
|
11936
12025
|
className: "h-24 w-24",
|
|
11937
12026
|
fallbackClassName: "text-2xl"
|
|
11938
12027
|
}
|
|
@@ -12087,7 +12176,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
12087
12176
|
const data = useDataListRetriever({
|
|
12088
12177
|
ready: !!company,
|
|
12089
12178
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkPGA2VC3Sjs.UserService.findAllUsers(params), "retriever"),
|
|
12090
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
12179
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _330 => _330.id]), isDeleted },
|
|
12091
12180
|
module: _chunkPGA2VC3Sjs.Modules.User
|
|
12092
12181
|
});
|
|
12093
12182
|
_react.useEffect.call(void 0, () => {
|
|
@@ -12194,11 +12283,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
12194
12283
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
12195
12284
|
onClick: (_e) => {
|
|
12196
12285
|
setSelectedUser(user);
|
|
12197
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12286
|
+
_optionalChain([setLevelOpen, 'optionalCall', _331 => _331(true)]);
|
|
12198
12287
|
},
|
|
12199
12288
|
onSelect: (_e) => {
|
|
12200
12289
|
setSelectedUser(user);
|
|
12201
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
12290
|
+
_optionalChain([setLevelOpen, 'optionalCall', _332 => _332(true)]);
|
|
12202
12291
|
},
|
|
12203
12292
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
12204
12293
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -12329,7 +12418,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12329
12418
|
company.legal_address
|
|
12330
12419
|
] }),
|
|
12331
12420
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
12332
|
-
_optionalChain([company, 'access',
|
|
12421
|
+
_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
12422
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12334
12423
|
t("features.configuration.country"),
|
|
12335
12424
|
":"
|
|
@@ -12337,7 +12426,7 @@ function CompanyContent({ company, actions }) {
|
|
|
12337
12426
|
" ",
|
|
12338
12427
|
company.configurations.country
|
|
12339
12428
|
] }),
|
|
12340
|
-
_optionalChain([company, 'access',
|
|
12429
|
+
_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
12430
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
12342
12431
|
t("features.configuration.currency"),
|
|
12343
12432
|
":"
|
|
@@ -12556,7 +12645,7 @@ function CompanyEditorInternal({
|
|
|
12556
12645
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12557
12646
|
fetchFeatures();
|
|
12558
12647
|
}
|
|
12559
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12648
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _337 => _337(open)]);
|
|
12560
12649
|
},
|
|
12561
12650
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12562
12651
|
);
|
|
@@ -12601,12 +12690,12 @@ function CompanyEditorInternal({
|
|
|
12601
12690
|
);
|
|
12602
12691
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12603
12692
|
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',
|
|
12693
|
+
id: _optionalChain([company, 'optionalAccess', _338 => _338.id]) || _uuid.v4.call(void 0, ),
|
|
12694
|
+
name: _optionalChain([company, 'optionalAccess', _339 => _339.name]) || "",
|
|
12695
|
+
featureIds: _optionalChain([company, 'optionalAccess', _340 => _340.features, 'access', _341 => _341.map, 'call', _342 => _342((feature) => feature.id)]) || [],
|
|
12696
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _343 => _343.modules, 'access', _344 => _344.map, 'call', _345 => _345((module) => module.id)]) || [],
|
|
12697
|
+
logo: _optionalChain([company, 'optionalAccess', _346 => _346.logo]) || "",
|
|
12698
|
+
legal_address: _optionalChain([company, 'optionalAccess', _347 => _347.legal_address]) || ""
|
|
12610
12699
|
};
|
|
12611
12700
|
}, [company]);
|
|
12612
12701
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12618,7 +12707,7 @@ function CompanyEditorInternal({
|
|
|
12618
12707
|
{
|
|
12619
12708
|
form,
|
|
12620
12709
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12621
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12710
|
+
entityName: _optionalChain([company, 'optionalAccess', _348 => _348.name]),
|
|
12622
12711
|
isEdit: !!company,
|
|
12623
12712
|
module: _chunkPGA2VC3Sjs.Modules.Company,
|
|
12624
12713
|
propagateChanges,
|
|
@@ -12643,7 +12732,7 @@ function CompanyEditorInternal({
|
|
|
12643
12732
|
throw new Error("Fiscal data validation failed");
|
|
12644
12733
|
}
|
|
12645
12734
|
const payload = {
|
|
12646
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12735
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _349 => _349.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12647
12736
|
name: values.name,
|
|
12648
12737
|
logo: files && contentType ? values.logo : void 0,
|
|
12649
12738
|
featureIds: values.featureIds,
|
|
@@ -12674,10 +12763,10 @@ function CompanyEditorInternal({
|
|
|
12674
12763
|
dialogOpen,
|
|
12675
12764
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12676
12765
|
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',
|
|
12766
|
+
/* @__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
12767
|
_image2.default,
|
|
12679
12768
|
{
|
|
12680
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12769
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _351 => _351.logo]) || "",
|
|
12681
12770
|
alt: "Company Logo",
|
|
12682
12771
|
width: 200,
|
|
12683
12772
|
height: 200
|
|
@@ -12711,7 +12800,7 @@ function CompanyEditorInternal({
|
|
|
12711
12800
|
}
|
|
12712
12801
|
),
|
|
12713
12802
|
/* @__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',
|
|
12803
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _352 => _352.fiscal_data])) })
|
|
12715
12804
|
] }),
|
|
12716
12805
|
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
12806
|
] })
|
|
@@ -13049,7 +13138,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
13049
13138
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13050
13139
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13051
13140
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
13052
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
13141
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _353 => _353.actor, 'optionalAccess', _354 => _354.name]), () => ( "")),
|
|
13053
13142
|
title: data.title,
|
|
13054
13143
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
13055
13144
|
}) }),
|
|
@@ -13078,7 +13167,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
13078
13167
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
13079
13168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
13080
13169
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
13081
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
13170
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _355 => _355.actor, 'optionalAccess', _356 => _356.name]), () => ( "")),
|
|
13082
13171
|
title: data.title,
|
|
13083
13172
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
13084
13173
|
}) }),
|
|
@@ -13142,7 +13231,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
13142
13231
|
_react.useEffect.call(void 0, () => {
|
|
13143
13232
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
13144
13233
|
if (_chunkB2OB3HQOjs.isRolesConfigured.call(void 0, )) {
|
|
13145
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
13234
|
+
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
13235
|
if (isAdmin) {
|
|
13147
13236
|
setHasInitiallyLoaded(true);
|
|
13148
13237
|
return;
|
|
@@ -13334,7 +13423,7 @@ function OnboardingProvider({
|
|
|
13334
13423
|
let tourSteps = steps;
|
|
13335
13424
|
if (!tourSteps) {
|
|
13336
13425
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
13337
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
13426
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _360 => _360.steps]);
|
|
13338
13427
|
}
|
|
13339
13428
|
if (!tourSteps || tourSteps.length === 0) {
|
|
13340
13429
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -13402,10 +13491,10 @@ function OnboardingProvider({
|
|
|
13402
13491
|
when: {
|
|
13403
13492
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13404
13493
|
setCurrentStepIndex(index);
|
|
13405
|
-
_optionalChain([stepConfig, 'access',
|
|
13494
|
+
_optionalChain([stepConfig, 'access', _361 => _361.onShow, 'optionalCall', _362 => _362()]);
|
|
13406
13495
|
}, "show"),
|
|
13407
13496
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
13408
|
-
_optionalChain([stepConfig, 'access',
|
|
13497
|
+
_optionalChain([stepConfig, 'access', _363 => _363.onHide, 'optionalCall', _364 => _364()]);
|
|
13409
13498
|
}, "hide")
|
|
13410
13499
|
}
|
|
13411
13500
|
});
|
|
@@ -13554,7 +13643,7 @@ function HowToMultiSelector({
|
|
|
13554
13643
|
retriever: (params) => _chunkPGA2VC3Sjs.HowToService.findMany(params),
|
|
13555
13644
|
module: _chunkPGA2VC3Sjs.Modules.HowTo,
|
|
13556
13645
|
getLabel: (howTo) => howTo.name,
|
|
13557
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
13646
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _365 => _365.id]),
|
|
13558
13647
|
onChange
|
|
13559
13648
|
}
|
|
13560
13649
|
);
|
|
@@ -13662,17 +13751,17 @@ function HowToEditorInternal({
|
|
|
13662
13751
|
);
|
|
13663
13752
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
13664
13753
|
() => ({
|
|
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',
|
|
13754
|
+
id: _optionalChain([howTo, 'optionalAccess', _366 => _366.id]) || _uuid.v4.call(void 0, ),
|
|
13755
|
+
name: _optionalChain([howTo, 'optionalAccess', _367 => _367.name]) || "",
|
|
13756
|
+
description: _optionalChain([howTo, 'optionalAccess', _368 => _368.description]) || [],
|
|
13757
|
+
pages: _chunkPGA2VC3Sjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _369 => _369.pages])),
|
|
13758
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _370 => _370.howToType]), () => ( "how-to")),
|
|
13759
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _371 => _371.slug]), () => ( "")),
|
|
13760
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _372 => _372.order]), () => ( 0)),
|
|
13761
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _373 => _373.summary]), () => ( "")),
|
|
13762
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _374 => _374.tags]), () => ( []))).join(", "),
|
|
13763
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _375 => _375.contextualKeys]), () => ( []))).join(", "),
|
|
13764
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _376 => _376.draft]), () => ( false)),
|
|
13676
13765
|
relatedArticles: []
|
|
13677
13766
|
}),
|
|
13678
13767
|
[howTo]
|
|
@@ -13683,7 +13772,7 @@ function HowToEditorInternal({
|
|
|
13683
13772
|
});
|
|
13684
13773
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
13685
13774
|
_react.useEffect.call(void 0, () => {
|
|
13686
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13775
|
+
if (!_optionalChain([howTo, 'optionalAccess', _377 => _377.howToType]) || !_optionalChain([howTo, 'optionalAccess', _378 => _378.slug])) return;
|
|
13687
13776
|
let active = true;
|
|
13688
13777
|
_chunkPGA2VC3Sjs.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
13689
13778
|
if (!active) return;
|
|
@@ -13722,7 +13811,7 @@ function HowToEditorInternal({
|
|
|
13722
13811
|
{
|
|
13723
13812
|
form,
|
|
13724
13813
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
13725
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13814
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _379 => _379.name]),
|
|
13726
13815
|
isEdit: !!howTo,
|
|
13727
13816
|
module: _chunkPGA2VC3Sjs.Modules.HowTo,
|
|
13728
13817
|
propagateChanges,
|
|
@@ -14103,7 +14192,7 @@ function withPatchedTitle(source, title) {
|
|
|
14103
14192
|
return _chunkPGA2VC3Sjs.rehydrate.call(void 0, _chunkPGA2VC3Sjs.Modules.Assistant, {
|
|
14104
14193
|
jsonApi: {
|
|
14105
14194
|
...dehydrated.jsonApi,
|
|
14106
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
14195
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _380 => _380.jsonApi, 'optionalAccess', _381 => _381.attributes]), () => ( {})), title }
|
|
14107
14196
|
},
|
|
14108
14197
|
included: dehydrated.included
|
|
14109
14198
|
});
|
|
@@ -14137,7 +14226,7 @@ function AssistantProvider({
|
|
|
14137
14226
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
14138
14227
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
14139
14228
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
14140
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
14229
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _382 => _382.jsonApi, 'optionalAccess', _383 => _383.attributes, 'optionalAccess', _384 => _384.engine]) === "operator"
|
|
14141
14230
|
);
|
|
14142
14231
|
const { socket } = useSocketContext();
|
|
14143
14232
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -14146,7 +14235,7 @@ function AssistantProvider({
|
|
|
14146
14235
|
if (!trimmed) return;
|
|
14147
14236
|
const optimistic = _chunkPGA2VC3Sjs.AssistantMessage.buildOptimistic({
|
|
14148
14237
|
content: trimmed,
|
|
14149
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
14238
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _385 => _385.id]),
|
|
14150
14239
|
position: nextPosition(messages)
|
|
14151
14240
|
});
|
|
14152
14241
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -14156,14 +14245,14 @@ function AssistantProvider({
|
|
|
14156
14245
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
14157
14246
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
14158
14247
|
}, "handler");
|
|
14159
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14248
|
+
_optionalChain([socket, 'optionalAccess', _386 => _386.on, 'call', _387 => _387("assistant:status", handler)]);
|
|
14160
14249
|
try {
|
|
14161
14250
|
if (!assistant) {
|
|
14162
14251
|
const input = {
|
|
14163
14252
|
firstMessage: trimmed,
|
|
14164
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14165
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14166
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14253
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _388 => _388.howToMode]),
|
|
14254
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _389 => _389.limitToHowToId]),
|
|
14255
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _390 => _390.contentBlocks]),
|
|
14167
14256
|
boundContent: scope
|
|
14168
14257
|
};
|
|
14169
14258
|
const created = operatorMode ? await _chunkPGA2VC3Sjs.AssistantService.createOperator(input) : await _chunkPGA2VC3Sjs.AssistantService.create(input);
|
|
@@ -14178,13 +14267,13 @@ function AssistantProvider({
|
|
|
14178
14267
|
const result = operatorMode ? await _chunkPGA2VC3Sjs.AssistantService.appendMessageOperator({
|
|
14179
14268
|
assistantId: assistant.id,
|
|
14180
14269
|
content: trimmed,
|
|
14181
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14270
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _391 => _391.contentBlocks])
|
|
14182
14271
|
}) : await _chunkPGA2VC3Sjs.AssistantService.appendMessage({
|
|
14183
14272
|
assistantId: assistant.id,
|
|
14184
14273
|
content: trimmed,
|
|
14185
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
14186
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
14187
|
-
contentBlocks: _optionalChain([opts, 'optionalAccess',
|
|
14274
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _392 => _392.howToMode]),
|
|
14275
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _393 => _393.limitToHowToId]),
|
|
14276
|
+
contentBlocks: _optionalChain([opts, 'optionalAccess', _394 => _394.contentBlocks])
|
|
14188
14277
|
});
|
|
14189
14278
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
14190
14279
|
}
|
|
@@ -14195,7 +14284,7 @@ function AssistantProvider({
|
|
|
14195
14284
|
return next;
|
|
14196
14285
|
});
|
|
14197
14286
|
} finally {
|
|
14198
|
-
_optionalChain([socket, 'optionalAccess',
|
|
14287
|
+
_optionalChain([socket, 'optionalAccess', _395 => _395.off, 'call', _396 => _396("assistant:status", handler)]);
|
|
14199
14288
|
setSending(false);
|
|
14200
14289
|
setStatus(void 0);
|
|
14201
14290
|
}
|
|
@@ -14253,7 +14342,7 @@ function AssistantProvider({
|
|
|
14253
14342
|
await _chunkPGA2VC3Sjs.AssistantService.delete({ id });
|
|
14254
14343
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
14255
14344
|
setAssistant((prev) => {
|
|
14256
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14345
|
+
if (_optionalChain([prev, 'optionalAccess', _397 => _397.id]) === id) {
|
|
14257
14346
|
setMessages([]);
|
|
14258
14347
|
return void 0;
|
|
14259
14348
|
}
|
|
@@ -14265,7 +14354,7 @@ function AssistantProvider({
|
|
|
14265
14354
|
(async () => {
|
|
14266
14355
|
setThreadsLoading(true);
|
|
14267
14356
|
try {
|
|
14268
|
-
const loaded = await _chunkPGA2VC3Sjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess',
|
|
14357
|
+
const loaded = await _chunkPGA2VC3Sjs.AssistantService.findMany({ boundType: _optionalChain([scope, 'optionalAccess', _398 => _398.type]), boundId: _optionalChain([scope, 'optionalAccess', _399 => _399.id]) });
|
|
14269
14358
|
if (!cancelled) setThreads(loaded);
|
|
14270
14359
|
} finally {
|
|
14271
14360
|
if (!cancelled) setThreadsLoading(false);
|
|
@@ -14274,7 +14363,7 @@ function AssistantProvider({
|
|
|
14274
14363
|
return () => {
|
|
14275
14364
|
cancelled = true;
|
|
14276
14365
|
};
|
|
14277
|
-
}, [_optionalChain([scope, 'optionalAccess',
|
|
14366
|
+
}, [_optionalChain([scope, 'optionalAccess', _400 => _400.type]), _optionalChain([scope, 'optionalAccess', _401 => _401.id])]);
|
|
14278
14367
|
const value = _react.useMemo.call(void 0,
|
|
14279
14368
|
() => ({
|
|
14280
14369
|
assistant,
|
|
@@ -14425,7 +14514,7 @@ function readEntityTitle() {
|
|
|
14425
14514
|
if (typeof document === "undefined") return null;
|
|
14426
14515
|
const afterEntityType = document.title.split("]")[1];
|
|
14427
14516
|
if (!afterEntityType) return null;
|
|
14428
|
-
return _optionalChain([afterEntityType, 'access',
|
|
14517
|
+
return _optionalChain([afterEntityType, 'access', _402 => _402.split, 'call', _403 => _403("|"), 'access', _404 => _404[0], 'optionalAccess', _405 => _405.trim, 'call', _406 => _406()]) || null;
|
|
14429
14518
|
}
|
|
14430
14519
|
_chunk7QVYU63Ejs.__name.call(void 0, readEntityTitle, "readEntityTitle");
|
|
14431
14520
|
function usePageTracker() {
|
|
@@ -14454,7 +14543,7 @@ function usePageTracker() {
|
|
|
14454
14543
|
const existing = prev.find((page) => page.url === baseUrl);
|
|
14455
14544
|
const refreshed = {
|
|
14456
14545
|
url: baseUrl,
|
|
14457
|
-
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess',
|
|
14546
|
+
title: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _407 => _407.title]), () => ( foundModule.name)),
|
|
14458
14547
|
moduleType: foundModule.name,
|
|
14459
14548
|
timestamp: Date.now()
|
|
14460
14549
|
};
|
|
@@ -14516,7 +14605,7 @@ function usePushNotifications() {
|
|
|
14516
14605
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
14517
14606
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
14518
14607
|
try {
|
|
14519
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
14608
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _408 => _408.id])}`;
|
|
14520
14609
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
14521
14610
|
const registration = await navigator.serviceWorker.register(`${_chunkB2OB3HQOjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
14522
14611
|
let permission = Notification.permission;
|
|
@@ -14629,14 +14718,14 @@ function useSocket({ token }) {
|
|
|
14629
14718
|
});
|
|
14630
14719
|
}, "handleMessage");
|
|
14631
14720
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
14632
|
-
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14633
|
-
if (!_optionalChain([resource, 'optionalAccess',
|
|
14721
|
+
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _409 => _409.data]), () => ( _optionalChain([data, 'optionalAccess', _410 => _410.jsonApi])));
|
|
14722
|
+
if (!_optionalChain([resource, 'optionalAccess', _411 => _411.type])) {
|
|
14634
14723
|
console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
|
|
14635
14724
|
return;
|
|
14636
14725
|
}
|
|
14637
14726
|
const notification = _chunkPGA2VC3Sjs.rehydrate.call(void 0, _chunkPGA2VC3Sjs.Modules.Notification, {
|
|
14638
14727
|
jsonApi: resource,
|
|
14639
|
-
included: _optionalChain([data, 'optionalAccess',
|
|
14728
|
+
included: _optionalChain([data, 'optionalAccess', _412 => _412.included]) || []
|
|
14640
14729
|
});
|
|
14641
14730
|
if (notification) {
|
|
14642
14731
|
setSocketNotifications((prev) => {
|
|
@@ -14755,7 +14844,7 @@ function BreadcrumbMobile({
|
|
|
14755
14844
|
}
|
|
14756
14845
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
14757
14846
|
/* @__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',
|
|
14847
|
+
_optionalChain([lastItem, 'optionalAccess', _413 => _413.name]),
|
|
14759
14848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
14760
14849
|
] }),
|
|
14761
14850
|
/* @__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 +14855,7 @@ function BreadcrumbNavigation({ items, rootLabel }) {
|
|
|
14766
14855
|
const generateUrl = usePageUrlGenerator();
|
|
14767
14856
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
14768
14857
|
const isMobile = _chunkPGA2VC3Sjs.useIsMobile.call(void 0, );
|
|
14769
|
-
const root = _optionalChain([rootLabel, 'optionalAccess',
|
|
14858
|
+
const root = _optionalChain([rootLabel, 'optionalAccess', _414 => _414.trim, 'call', _415 => _415()]) ? rootLabel : t(`common.home`);
|
|
14770
14859
|
if (isMobile) {
|
|
14771
14860
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbMobile, { items, generateUrl, rootLabel: root });
|
|
14772
14861
|
}
|
|
@@ -15219,7 +15308,7 @@ var railTriggerClass = _chunkPGA2VC3Sjs.cn.call(void 0,
|
|
|
15219
15308
|
"data-[state=active]:bg-foreground data-[state=active]:text-background",
|
|
15220
15309
|
"data-[state=active]:font-semibold data-[state=active]:shadow-none"
|
|
15221
15310
|
);
|
|
15222
|
-
var tabValue = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (tab) => _nullishCoalesce(_nullishCoalesce(tab.sectionKey, () => ( _optionalChain([tab, 'access',
|
|
15311
|
+
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
15312
|
function RoundPageContainer({
|
|
15224
15313
|
module,
|
|
15225
15314
|
id,
|
|
@@ -15246,7 +15335,7 @@ function RoundPageContainer({
|
|
|
15246
15335
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
15247
15336
|
_react.useEffect.call(void 0, () => {
|
|
15248
15337
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${detailsCookieName}=`));
|
|
15249
|
-
const stored = _optionalChain([match, 'optionalAccess',
|
|
15338
|
+
const stored = _optionalChain([match, 'optionalAccess', _418 => _418.split, 'call', _419 => _419("="), 'access', _420 => _420[1]]);
|
|
15250
15339
|
if (stored === "true") setShowDetailsState(true);
|
|
15251
15340
|
else if (stored === "false") setShowDetailsState(false);
|
|
15252
15341
|
}, []);
|
|
@@ -15261,7 +15350,7 @@ function RoundPageContainer({
|
|
|
15261
15350
|
const clip = isFixed ? `overflow-hidden` : ``;
|
|
15262
15351
|
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
15263
15352
|
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
15264
|
-
const detailsCookieName = _optionalChain([module, 'optionalAccess',
|
|
15353
|
+
const detailsCookieName = _optionalChain([module, 'optionalAccess', _421 => _421.name]) ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15265
15354
|
const setShowDetails = _react.useCallback.call(void 0,
|
|
15266
15355
|
(value) => {
|
|
15267
15356
|
setShowDetailsState(value);
|
|
@@ -15290,11 +15379,11 @@ function RoundPageContainer({
|
|
|
15290
15379
|
} else {
|
|
15291
15380
|
rewriteUrl({ page: window.location.pathname, additionalParameters: { section: key } });
|
|
15292
15381
|
}
|
|
15293
|
-
_optionalChain([onSectionChange, 'optionalCall',
|
|
15382
|
+
_optionalChain([onSectionChange, 'optionalCall', _422 => _422(key)]);
|
|
15294
15383
|
},
|
|
15295
15384
|
[module, id, rewriteUrl, onSectionChange]
|
|
15296
15385
|
);
|
|
15297
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
15386
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _423 => _423.find, 'call', _424 => _424((t) => tabValue(t) === activeTab), 'optionalAccess', _425 => _425.fillHeight]) === true;
|
|
15298
15387
|
const { ungrouped, groups } = _react.useMemo.call(void 0, () => partitionTabs(_nullishCoalesce(tabs, () => ( []))), [tabs]);
|
|
15299
15388
|
const tabItems = _react.useMemo.call(void 0,
|
|
15300
15389
|
() => Object.fromEntries((_nullishCoalesce(tabs, () => ( []))).map((tab) => [tabValue(tab), _nullishCoalesce(tab.contentLabel, () => ( tab.label))])),
|
|
@@ -15677,14 +15766,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15677
15766
|
const entityType = target.dataset.mentionType;
|
|
15678
15767
|
const alias = target.dataset.mentionAlias;
|
|
15679
15768
|
setHovered((prev) => {
|
|
15680
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
15769
|
+
if (_optionalChain([prev, 'optionalAccess', _426 => _426.id]) === id && _optionalChain([prev, 'optionalAccess', _427 => _427.element]) === target) return prev;
|
|
15681
15770
|
return { id, entityType, alias, element: target };
|
|
15682
15771
|
});
|
|
15683
15772
|
}, "handleMouseOver");
|
|
15684
15773
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
15685
15774
|
const target = e.target.closest("[data-mention-id]");
|
|
15686
15775
|
if (!target) return;
|
|
15687
|
-
const related = _optionalChain([e, 'access',
|
|
15776
|
+
const related = _optionalChain([e, 'access', _428 => _428.relatedTarget, 'optionalAccess', _429 => _429.closest, 'call', _430 => _430("[data-mention-id]")]);
|
|
15688
15777
|
if (related) return;
|
|
15689
15778
|
scheduleClose();
|
|
15690
15779
|
}, "handleMouseOut");
|
|
@@ -15698,7 +15787,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
15698
15787
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
15699
15788
|
if (!hovered || !mentionResolveFn) return null;
|
|
15700
15789
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
15701
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
15790
|
+
if (!_optionalChain([resolved, 'optionalAccess', _431 => _431.HoverContent])) return null;
|
|
15702
15791
|
const ContentComponent = resolved.HoverContent;
|
|
15703
15792
|
const rect = hovered.element.getBoundingClientRect();
|
|
15704
15793
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -15742,28 +15831,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
15742
15831
|
}, "parseMentionElement");
|
|
15743
15832
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
15744
15833
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15745
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15834
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _432 => _432(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15746
15835
|
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
15836
|
"@",
|
|
15748
15837
|
displayName
|
|
15749
15838
|
] });
|
|
15750
15839
|
}, "MentionExternalHTML");
|
|
15751
15840
|
const Mention = React2.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
15752
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
15841
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _433 => _433(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
15753
15842
|
if (disableMention) {
|
|
15754
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
15755
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
15843
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _434 => _434(props.id, props.entityType, displayName)]);
|
|
15844
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _435 => _435.url]), () => ( "#")), className: "text-primary", children: [
|
|
15756
15845
|
"@",
|
|
15757
15846
|
displayName
|
|
15758
15847
|
] });
|
|
15759
15848
|
}
|
|
15760
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
15761
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
15849
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _436 => _436(props.id, props.entityType, displayName)]);
|
|
15850
|
+
if (_optionalChain([resolved, 'optionalAccess', _437 => _437.Inline])) {
|
|
15762
15851
|
const Custom = resolved.Inline;
|
|
15763
15852
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
15764
15853
|
}
|
|
15765
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
15766
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
15854
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _438 => _438.url]), () => ( "#"));
|
|
15855
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _439 => _439.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
15767
15856
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15768
15857
|
_link2.default,
|
|
15769
15858
|
{
|
|
@@ -15871,7 +15960,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15871
15960
|
if (!suggestionMenuComponent) return void 0;
|
|
15872
15961
|
const Component2 = suggestionMenuComponent;
|
|
15873
15962
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
15874
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
15963
|
+
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
15964
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15876
15965
|
Component2,
|
|
15877
15966
|
{
|
|
@@ -15880,7 +15969,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
15880
15969
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
15881
15970
|
onItemClick: (item) => {
|
|
15882
15971
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
15883
|
-
_optionalChain([props, 'access',
|
|
15972
|
+
_optionalChain([props, 'access', _443 => _443.onItemClick, 'optionalCall', _444 => _444(item)]);
|
|
15884
15973
|
}
|
|
15885
15974
|
}
|
|
15886
15975
|
);
|
|
@@ -16075,10 +16164,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
16075
16164
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16076
16165
|
Checkbox,
|
|
16077
16166
|
{
|
|
16078
|
-
checked: _optionalChain([params, 'access',
|
|
16167
|
+
checked: _optionalChain([params, 'access', _445 => _445.checkedIds, 'optionalAccess', _446 => _446.includes, 'call', _447 => _447(row.getValue(params.name))]) || false,
|
|
16079
16168
|
onCheckedChange: (value) => {
|
|
16080
16169
|
row.toggleSelected(!!value);
|
|
16081
|
-
_optionalChain([params, 'access',
|
|
16170
|
+
_optionalChain([params, 'access', _448 => _448.toggleId, 'optionalCall', _449 => _449(row.getValue(params.name))]);
|
|
16082
16171
|
},
|
|
16083
16172
|
"aria-label": "Select row"
|
|
16084
16173
|
}
|
|
@@ -16137,7 +16226,7 @@ function useJsonApiGet(params) {
|
|
|
16137
16226
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
16138
16227
|
const isMounted = _react.useRef.call(void 0, true);
|
|
16139
16228
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
16140
|
-
if (_optionalChain([params, 'access',
|
|
16229
|
+
if (_optionalChain([params, 'access', _450 => _450.options, 'optionalAccess', _451 => _451.enabled]) === false) return;
|
|
16141
16230
|
setLoading(true);
|
|
16142
16231
|
setError(null);
|
|
16143
16232
|
try {
|
|
@@ -16164,9 +16253,9 @@ function useJsonApiGet(params) {
|
|
|
16164
16253
|
setLoading(false);
|
|
16165
16254
|
}
|
|
16166
16255
|
}
|
|
16167
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
16256
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _452 => _452.options, 'optionalAccess', _453 => _453.enabled])]);
|
|
16168
16257
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
16169
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16258
|
+
if (!_optionalChain([response, 'optionalAccess', _454 => _454.nextPage])) return;
|
|
16170
16259
|
setLoading(true);
|
|
16171
16260
|
try {
|
|
16172
16261
|
const nextResponse = await response.nextPage();
|
|
@@ -16187,7 +16276,7 @@ function useJsonApiGet(params) {
|
|
|
16187
16276
|
}
|
|
16188
16277
|
}, [response]);
|
|
16189
16278
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
16190
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
16279
|
+
if (!_optionalChain([response, 'optionalAccess', _455 => _455.prevPage])) return;
|
|
16191
16280
|
setLoading(true);
|
|
16192
16281
|
try {
|
|
16193
16282
|
const prevResponse = await response.prevPage();
|
|
@@ -16213,15 +16302,15 @@ function useJsonApiGet(params) {
|
|
|
16213
16302
|
return () => {
|
|
16214
16303
|
isMounted.current = false;
|
|
16215
16304
|
};
|
|
16216
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
16305
|
+
}, [fetchData, ..._optionalChain([params, 'access', _456 => _456.options, 'optionalAccess', _457 => _457.deps]) || []]);
|
|
16217
16306
|
return {
|
|
16218
16307
|
data,
|
|
16219
16308
|
loading,
|
|
16220
16309
|
error,
|
|
16221
16310
|
response,
|
|
16222
16311
|
refetch: fetchData,
|
|
16223
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
16224
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
16312
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _458 => _458.next]),
|
|
16313
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _459 => _459.prev]),
|
|
16225
16314
|
fetchNextPage,
|
|
16226
16315
|
fetchPreviousPage
|
|
16227
16316
|
};
|
|
@@ -16299,17 +16388,17 @@ function useJsonApiMutation(config) {
|
|
|
16299
16388
|
if (apiResponse.ok) {
|
|
16300
16389
|
const resultData = apiResponse.data;
|
|
16301
16390
|
setData(resultData);
|
|
16302
|
-
_optionalChain([config, 'access',
|
|
16391
|
+
_optionalChain([config, 'access', _460 => _460.onSuccess, 'optionalCall', _461 => _461(resultData)]);
|
|
16303
16392
|
return resultData;
|
|
16304
16393
|
} else {
|
|
16305
16394
|
setError(apiResponse.error);
|
|
16306
|
-
_optionalChain([config, 'access',
|
|
16395
|
+
_optionalChain([config, 'access', _462 => _462.onError, 'optionalCall', _463 => _463(apiResponse.error)]);
|
|
16307
16396
|
return null;
|
|
16308
16397
|
}
|
|
16309
16398
|
} catch (err) {
|
|
16310
16399
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
16311
16400
|
setError(errorMessage);
|
|
16312
|
-
_optionalChain([config, 'access',
|
|
16401
|
+
_optionalChain([config, 'access', _464 => _464.onError, 'optionalCall', _465 => _465(errorMessage)]);
|
|
16313
16402
|
return null;
|
|
16314
16403
|
} finally {
|
|
16315
16404
|
setLoading(false);
|
|
@@ -16382,7 +16471,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16382
16471
|
{
|
|
16383
16472
|
href: hasRole(_chunkB2OB3HQOjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
16384
16473
|
page: "/administration",
|
|
16385
|
-
id: _optionalChain([_chunkPGA2VC3Sjs.Modules, 'access',
|
|
16474
|
+
id: _optionalChain([_chunkPGA2VC3Sjs.Modules, 'access', _466 => _466.Company, 'access', _467 => _467.pageUrl, 'optionalAccess', _468 => _468.substring, 'call', _469 => _469(1)]),
|
|
16386
16475
|
childPage: company.id
|
|
16387
16476
|
}) : generateUrl({ page: _chunkPGA2VC3Sjs.Modules.Company, id: company.id }),
|
|
16388
16477
|
children: row.getValue("name")
|
|
@@ -16398,7 +16487,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16398
16487
|
})
|
|
16399
16488
|
};
|
|
16400
16489
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16401
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16490
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _470 => _470[field], 'optionalCall', _471 => _471()])).filter((col) => col !== void 0);
|
|
16402
16491
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
16403
16492
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16404
16493
|
}, "useCompanyTableStructure");
|
|
@@ -16410,7 +16499,7 @@ var GRACE_DAYS = 3;
|
|
|
16410
16499
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
16411
16500
|
if (!currentUser || !_chunkB2OB3HQOjs.isRolesConfigured.call(void 0, )) return false;
|
|
16412
16501
|
const adminRoleId = _chunkB2OB3HQOjs.getRoleId.call(void 0, ).Administrator;
|
|
16413
|
-
return !!_optionalChain([currentUser, 'access',
|
|
16502
|
+
return !!_optionalChain([currentUser, 'access', _472 => _472.roles, 'optionalAccess', _473 => _473.some, 'call', _474 => _474((role) => role.id === adminRoleId)]);
|
|
16414
16503
|
}, "isAdministrator");
|
|
16415
16504
|
function useSubscriptionStatus() {
|
|
16416
16505
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -16528,7 +16617,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
16528
16617
|
})
|
|
16529
16618
|
};
|
|
16530
16619
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16531
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16620
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _475 => _475[field], 'optionalCall', _476 => _476()])).filter((col) => col !== void 0);
|
|
16532
16621
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16533
16622
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16534
16623
|
}, "useRoleTableStructure");
|
|
@@ -16636,7 +16725,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16636
16725
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-wrap items-center gap-1", children: [
|
|
16637
16726
|
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
16727
|
price.isTrial && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { variant: "softBlue", children: t("billing.admin.prices.badge.trial") }),
|
|
16639
|
-
_optionalChain([price, 'access',
|
|
16728
|
+
_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
16729
|
] });
|
|
16641
16730
|
}, "cell"),
|
|
16642
16731
|
enableSorting: false,
|
|
@@ -16644,7 +16733,7 @@ var useStripePriceTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(
|
|
|
16644
16733
|
})
|
|
16645
16734
|
};
|
|
16646
16735
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16647
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16736
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _479 => _479[field], 'optionalCall', _480 => _480()])).filter((col) => col !== void 0);
|
|
16648
16737
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16649
16738
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16650
16739
|
}, "useStripePriceTableStructure");
|
|
@@ -16703,7 +16792,7 @@ var useStripeProductTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
16703
16792
|
})
|
|
16704
16793
|
};
|
|
16705
16794
|
const columns = _react.useMemo.call(void 0, () => {
|
|
16706
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
16795
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _481 => _481[field], 'optionalCall', _482 => _482()])).filter((col) => col !== void 0);
|
|
16707
16796
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
16708
16797
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16709
16798
|
}, "useStripeProductTableStructure");
|
|
@@ -16805,11 +16894,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
16805
16894
|
return params.fields.map((field) => {
|
|
16806
16895
|
const localHandler = fieldColumnMap[field];
|
|
16807
16896
|
if (localHandler) return localHandler();
|
|
16808
|
-
const customHandler = _optionalChain([params, 'access',
|
|
16897
|
+
const customHandler = _optionalChain([params, 'access', _483 => _483.context, 'optionalAccess', _484 => _484.customCells, 'optionalAccess', _485 => _485[field]]);
|
|
16809
16898
|
if (customHandler) return customHandler({ t });
|
|
16810
16899
|
return void 0;
|
|
16811
16900
|
}).filter((col) => col !== void 0);
|
|
16812
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
16901
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _486 => _486.context, 'optionalAccess', _487 => _487.customCells])]);
|
|
16813
16902
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
16814
16903
|
}, "useContentTableStructure");
|
|
16815
16904
|
|
|
@@ -17147,7 +17236,7 @@ function ContentTableSearch({ data }) {
|
|
|
17147
17236
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
17148
17237
|
if (!isExpanded) {
|
|
17149
17238
|
setIsFocused(true);
|
|
17150
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
17239
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _488 => _488.current, 'optionalAccess', _489 => _489.focus, 'call', _490 => _490()]), 50);
|
|
17151
17240
|
}
|
|
17152
17241
|
}, "handleSearchIconClick");
|
|
17153
17242
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -17243,7 +17332,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17243
17332
|
if (data.isLoaded) setPendingDirection(null);
|
|
17244
17333
|
}, [data.isLoaded]);
|
|
17245
17334
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
17246
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
17335
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _491 => _491.data]), () => ( EMPTY_ARRAY)),
|
|
17247
17336
|
fields,
|
|
17248
17337
|
checkedIds,
|
|
17249
17338
|
toggleId,
|
|
@@ -17276,7 +17365,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17276
17365
|
});
|
|
17277
17366
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
17278
17367
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
17279
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
17368
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _492 => _492.rows, 'optionalAccess', _493 => _493.length])) return null;
|
|
17280
17369
|
const groupMap = /* @__PURE__ */ new Map();
|
|
17281
17370
|
for (const row of rowModel.rows) {
|
|
17282
17371
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -17344,19 +17433,19 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17344
17433
|
) }),
|
|
17345
17434
|
!props.hideHeader && table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
17346
17435
|
const meta = header.column.columnDef.meta;
|
|
17347
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
17436
|
+
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
17437
|
}) }, headerGroup.id))
|
|
17349
17438
|
] }),
|
|
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',
|
|
17439
|
+
/* @__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: [
|
|
17440
|
+
/* @__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
17441
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17353
17442
|
TableRow,
|
|
17354
17443
|
{
|
|
17355
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17444
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _499 => _499(row.original.jsonApiData)]),
|
|
17356
17445
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17357
17446
|
children: row.getVisibleCells().map((cell) => {
|
|
17358
17447
|
const meta = cell.column.columnDef.meta;
|
|
17359
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17448
|
+
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
17449
|
})
|
|
17361
17450
|
},
|
|
17362
17451
|
row.id
|
|
@@ -17364,11 +17453,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17364
17453
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17365
17454
|
TableRow,
|
|
17366
17455
|
{
|
|
17367
|
-
onClick: () => _optionalChain([onRowClick, 'optionalCall',
|
|
17456
|
+
onClick: () => _optionalChain([onRowClick, 'optionalCall', _501 => _501(row.original.jsonApiData)]),
|
|
17368
17457
|
className: `group ${onRowClick ? "hover:bg-muted/50 cursor-pointer" : ""}`,
|
|
17369
17458
|
children: row.getVisibleCells().map((cell) => {
|
|
17370
17459
|
const meta = cell.column.columnDef.meta;
|
|
17371
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
17460
|
+
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
17461
|
})
|
|
17373
17462
|
},
|
|
17374
17463
|
row.id
|
|
@@ -17382,7 +17471,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17382
17471
|
onClick: (e) => {
|
|
17383
17472
|
e.preventDefault();
|
|
17384
17473
|
setPendingDirection("prev");
|
|
17385
|
-
_optionalChain([data, 'access',
|
|
17474
|
+
_optionalChain([data, 'access', _503 => _503.previous, 'optionalCall', _504 => _504(true)]);
|
|
17386
17475
|
},
|
|
17387
17476
|
disabled: !data.previous || pendingDirection !== null,
|
|
17388
17477
|
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 +17486,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
17397
17486
|
onClick: (e) => {
|
|
17398
17487
|
e.preventDefault();
|
|
17399
17488
|
setPendingDirection("next");
|
|
17400
|
-
_optionalChain([data, 'access',
|
|
17489
|
+
_optionalChain([data, 'access', _505 => _505.next, 'optionalCall', _506 => _506(true)]);
|
|
17401
17490
|
},
|
|
17402
17491
|
disabled: !data.next || pendingDirection !== null,
|
|
17403
17492
|
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 +17507,7 @@ function ContentListGrid(props) {
|
|
|
17418
17507
|
if (!data.next || !sentinelRef.current) return;
|
|
17419
17508
|
const observer = new IntersectionObserver(
|
|
17420
17509
|
(entries) => {
|
|
17421
|
-
if (_optionalChain([entries, 'access',
|
|
17510
|
+
if (_optionalChain([entries, 'access', _507 => _507[0], 'optionalAccess', _508 => _508.isIntersecting])) _optionalChain([data, 'access', _509 => _509.next, 'optionalCall', _510 => _510()]);
|
|
17422
17511
|
},
|
|
17423
17512
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
17424
17513
|
);
|
|
@@ -18205,7 +18294,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18205
18294
|
newDigits[index] = digit;
|
|
18206
18295
|
setDigits(newDigits);
|
|
18207
18296
|
if (digit && index < 5) {
|
|
18208
|
-
_optionalChain([inputRefs, 'access',
|
|
18297
|
+
_optionalChain([inputRefs, 'access', _511 => _511.current, 'access', _512 => _512[index + 1], 'optionalAccess', _513 => _513.focus, 'call', _514 => _514()]);
|
|
18209
18298
|
}
|
|
18210
18299
|
const code = newDigits.join("");
|
|
18211
18300
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -18214,7 +18303,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18214
18303
|
}, "handleChange");
|
|
18215
18304
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
18216
18305
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
18217
|
-
_optionalChain([inputRefs, 'access',
|
|
18306
|
+
_optionalChain([inputRefs, 'access', _515 => _515.current, 'access', _516 => _516[index - 1], 'optionalAccess', _517 => _517.focus, 'call', _518 => _518()]);
|
|
18218
18307
|
}
|
|
18219
18308
|
}, "handleKeyDown");
|
|
18220
18309
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -18223,7 +18312,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
18223
18312
|
if (pastedData.length === 6) {
|
|
18224
18313
|
const newDigits = pastedData.split("");
|
|
18225
18314
|
setDigits(newDigits);
|
|
18226
|
-
_optionalChain([inputRefs, 'access',
|
|
18315
|
+
_optionalChain([inputRefs, 'access', _519 => _519.current, 'access', _520 => _520[5], 'optionalAccess', _521 => _521.focus, 'call', _522 => _522()]);
|
|
18227
18316
|
onComplete(pastedData);
|
|
18228
18317
|
}
|
|
18229
18318
|
}, "handlePaste");
|
|
@@ -18434,8 +18523,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
18434
18523
|
try {
|
|
18435
18524
|
const registrationData = await _chunkPGA2VC3Sjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
18436
18525
|
id: _uuid.v4.call(void 0, ),
|
|
18437
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18438
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
18526
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _523 => _523.email]), () => ( "")),
|
|
18527
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _524 => _524.name])
|
|
18439
18528
|
});
|
|
18440
18529
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
18441
18530
|
await _chunkPGA2VC3Sjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -18586,7 +18675,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
18586
18675
|
const setup = await _chunkPGA2VC3Sjs.TwoFactorService.setupTotp({
|
|
18587
18676
|
id: _uuid.v4.call(void 0, ),
|
|
18588
18677
|
name: name.trim(),
|
|
18589
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
18678
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _525 => _525.email]), () => ( ""))
|
|
18590
18679
|
});
|
|
18591
18680
|
setQrCodeUri(setup.qrCodeUri);
|
|
18592
18681
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -18720,7 +18809,7 @@ function TwoFactorSettings() {
|
|
|
18720
18809
|
if (isLoading) {
|
|
18721
18810
|
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
18811
|
}
|
|
18723
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18812
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _526 => _526.isEnabled]), () => ( false));
|
|
18724
18813
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
18725
18814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
18726
18815
|
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 +18847,7 @@ function TwoFactorSettings() {
|
|
|
18758
18847
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
18759
18848
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
18760
18849
|
] }),
|
|
18761
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
18850
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _527 => _527.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
18762
18851
|
] }) }),
|
|
18763
18852
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
18764
18853
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -18936,9 +19025,9 @@ function AcceptInvitation() {
|
|
|
18936
19025
|
});
|
|
18937
19026
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
18938
19027
|
try {
|
|
18939
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19028
|
+
if (!_optionalChain([params, 'optionalAccess', _528 => _528.code])) return;
|
|
18940
19029
|
const payload = {
|
|
18941
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19030
|
+
code: _optionalChain([params, 'optionalAccess', _529 => _529.code]),
|
|
18942
19031
|
password: values.password
|
|
18943
19032
|
};
|
|
18944
19033
|
await _chunkPGA2VC3Sjs.AuthService.acceptInvitation(payload);
|
|
@@ -19309,14 +19398,14 @@ function RefreshUser() {
|
|
|
19309
19398
|
setUser(fullUser);
|
|
19310
19399
|
const token = {
|
|
19311
19400
|
userId: fullUser.id,
|
|
19312
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
19401
|
+
companyId: _optionalChain([fullUser, 'access', _530 => _530.company, 'optionalAccess', _531 => _531.id]),
|
|
19313
19402
|
roles: fullUser.roles.map((role) => role.id),
|
|
19314
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
19403
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _532 => _532.company, 'optionalAccess', _533 => _533.features, 'optionalAccess', _534 => _534.map, 'call', _535 => _535((feature) => feature.id)]), () => ( [])),
|
|
19315
19404
|
modules: fullUser.modules.map((module) => {
|
|
19316
19405
|
return { id: module.id, permissions: module.permissions };
|
|
19317
19406
|
})
|
|
19318
19407
|
};
|
|
19319
|
-
await _optionalChain([_chunkPGA2VC3Sjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
19408
|
+
await _optionalChain([_chunkPGA2VC3Sjs.getTokenHandler.call(void 0, ), 'optionalAccess', _536 => _536.updateToken, 'call', _537 => _537(token)]);
|
|
19320
19409
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
19321
19410
|
}
|
|
19322
19411
|
}, "loadFullUser");
|
|
@@ -19380,9 +19469,9 @@ function ResetPassword() {
|
|
|
19380
19469
|
});
|
|
19381
19470
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
19382
19471
|
try {
|
|
19383
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
19472
|
+
if (!_optionalChain([params, 'optionalAccess', _538 => _538.code])) return;
|
|
19384
19473
|
const payload = {
|
|
19385
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
19474
|
+
code: _optionalChain([params, 'optionalAccess', _539 => _539.code]),
|
|
19386
19475
|
password: values.password
|
|
19387
19476
|
};
|
|
19388
19477
|
await _chunkPGA2VC3Sjs.AuthService.resetPassword(payload);
|
|
@@ -19907,7 +19996,7 @@ function AiConnectionEditor({
|
|
|
19907
19996
|
const registryRows = _react.useMemo.call(void 0, () => _nullishCoalesce(providerRegistry[connectionType], () => ( [])), [providerRegistry, connectionType]);
|
|
19908
19997
|
const providers = _react.useMemo.call(void 0, () => registryRows.map((row) => row.provider), [registryRows]);
|
|
19909
19998
|
const fieldsFor = _react.useCallback.call(void 0,
|
|
19910
|
-
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access',
|
|
19999
|
+
(provider) => _nullishCoalesce(_optionalChain([registryRows, 'access', _540 => _540.find, 'call', _541 => _541((row) => row.provider === provider), 'optionalAccess', _542 => _542.fields]), () => ( [])),
|
|
19911
20000
|
[registryRows]
|
|
19912
20001
|
);
|
|
19913
20002
|
const defaultsFor = _react.useCallback.call(void 0,
|
|
@@ -19916,7 +20005,7 @@ function AiConnectionEditor({
|
|
|
19916
20005
|
const seeded = {};
|
|
19917
20006
|
fieldsFor(provider).forEach((descriptor) => {
|
|
19918
20007
|
if (descriptor.kind === "boolean") {
|
|
19919
|
-
const current2 = _optionalChain([stored, 'optionalAccess',
|
|
20008
|
+
const current2 = _optionalChain([stored, 'optionalAccess', _543 => _543[descriptor.field]]);
|
|
19920
20009
|
seeded[descriptor.field] = current2 !== void 0 && current2 !== null ? current2 === true : descriptor.default === true;
|
|
19921
20010
|
return;
|
|
19922
20011
|
}
|
|
@@ -19924,7 +20013,7 @@ function AiConnectionEditor({
|
|
|
19924
20013
|
seeded[descriptor.field] = "";
|
|
19925
20014
|
return;
|
|
19926
20015
|
}
|
|
19927
|
-
const current = _optionalChain([stored, 'optionalAccess',
|
|
20016
|
+
const current = _optionalChain([stored, 'optionalAccess', _544 => _544[descriptor.field]]);
|
|
19928
20017
|
if (current !== void 0 && current !== null) seeded[descriptor.field] = String(current);
|
|
19929
20018
|
else seeded[descriptor.field] = descriptor.default !== void 0 ? String(descriptor.default) : "";
|
|
19930
20019
|
});
|
|
@@ -19950,7 +20039,7 @@ function AiConnectionEditor({
|
|
|
19950
20039
|
values: _zod3.z.record(_zod3.z.string(), _zod3.z.any())
|
|
19951
20040
|
}).superRefine((data, ctx) => {
|
|
19952
20041
|
fieldsFor(data.provider).filter((descriptor) => descriptor.required).forEach((descriptor) => {
|
|
19953
|
-
const value = _optionalChain([data, 'access',
|
|
20042
|
+
const value = _optionalChain([data, 'access', _545 => _545.values, 'optionalAccess', _546 => _546[descriptor.field]]);
|
|
19954
20043
|
const filled = descriptor.kind === "secret" ? !!value || hasStoredSecret(descriptor.field) : descriptor.kind === "boolean" ? value !== void 0 : value !== void 0 && value !== null && String(value).trim() !== "";
|
|
19955
20044
|
if (filled) return;
|
|
19956
20045
|
ctx.addIssue({
|
|
@@ -19964,11 +20053,11 @@ function AiConnectionEditor({
|
|
|
19964
20053
|
);
|
|
19965
20054
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
19966
20055
|
() => ({
|
|
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',
|
|
20056
|
+
id: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _547 => _547.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
20057
|
+
name: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _548 => _548.name]), () => ( "")),
|
|
20058
|
+
provider: _nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _549 => _549.provider]), () => ( providers[0])), () => ( "")),
|
|
20059
|
+
enabled: _nullishCoalesce(_optionalChain([connection, 'optionalAccess', _550 => _550.enabled]), () => ( true)),
|
|
20060
|
+
values: defaultsFor(_nullishCoalesce(_nullishCoalesce(_optionalChain([connection, 'optionalAccess', _551 => _551.provider]), () => ( providers[0])), () => ( "")))
|
|
19972
20061
|
}),
|
|
19973
20062
|
[connection, providers, defaultsFor]
|
|
19974
20063
|
);
|
|
@@ -19979,7 +20068,7 @@ function AiConnectionEditor({
|
|
|
19979
20068
|
_react.useEffect.call(void 0, () => {
|
|
19980
20069
|
if (registryRows.length === 0) return;
|
|
19981
20070
|
const currentProvider = form.getValues("provider");
|
|
19982
|
-
const provider = currentProvider || _optionalChain([connection, 'optionalAccess',
|
|
20071
|
+
const provider = currentProvider || _optionalChain([connection, 'optionalAccess', _552 => _552.provider]) || providers[0] || "";
|
|
19983
20072
|
if (!provider) return;
|
|
19984
20073
|
if (provider !== currentProvider) form.setValue("provider", provider);
|
|
19985
20074
|
const currentValues = form.getValues("values");
|
|
@@ -20050,7 +20139,7 @@ function AiConnectionEditor({
|
|
|
20050
20139
|
{
|
|
20051
20140
|
form,
|
|
20052
20141
|
entityType: t("ai_connections.admin.entity"),
|
|
20053
|
-
entityName: _optionalChain([connection, 'optionalAccess',
|
|
20142
|
+
entityName: _optionalChain([connection, 'optionalAccess', _553 => _553.name]),
|
|
20054
20143
|
isEdit,
|
|
20055
20144
|
module: _chunkPGA2VC3Sjs.Modules.AiConnection,
|
|
20056
20145
|
size: "md",
|
|
@@ -20058,7 +20147,7 @@ function AiConnectionEditor({
|
|
|
20058
20147
|
onSubmit: async (values) => {
|
|
20059
20148
|
const attributes = {};
|
|
20060
20149
|
fieldsFor(values.provider).forEach((descriptor) => {
|
|
20061
|
-
const coerced = coerce(descriptor, _optionalChain([values, 'access',
|
|
20150
|
+
const coerced = coerce(descriptor, _optionalChain([values, 'access', _554 => _554.values, 'optionalAccess', _555 => _555[descriptor.field]]));
|
|
20062
20151
|
if (coerced !== void 0) attributes[descriptor.field] = coerced;
|
|
20063
20152
|
});
|
|
20064
20153
|
const payload = {
|
|
@@ -20279,7 +20368,7 @@ function AiConnectionTypeCard({ connectionType }) {
|
|
|
20279
20368
|
),
|
|
20280
20369
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-muted/40 flex flex-wrap items-center gap-2 px-3 py-2", children: [
|
|
20281
20370
|
/* @__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',
|
|
20371
|
+
/* @__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
20372
|
] })
|
|
20284
20373
|
] })
|
|
20285
20374
|
] })
|
|
@@ -20477,7 +20566,7 @@ function extractHeadings(blocks) {
|
|
|
20477
20566
|
function processBlocks(blockArray) {
|
|
20478
20567
|
for (const block of blockArray) {
|
|
20479
20568
|
if (block.type === "heading") {
|
|
20480
|
-
const level = _optionalChain([block, 'access',
|
|
20569
|
+
const level = _optionalChain([block, 'access', _559 => _559.props, 'optionalAccess', _560 => _560.level]) || 1;
|
|
20481
20570
|
const text = extractTextFromContent(block.content);
|
|
20482
20571
|
if (text.trim()) {
|
|
20483
20572
|
headings.push({
|
|
@@ -20820,7 +20909,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
20820
20909
|
})
|
|
20821
20910
|
};
|
|
20822
20911
|
const columns = _react.useMemo.call(void 0, () => {
|
|
20823
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
20912
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _561 => _561[field], 'optionalCall', _562 => _562()])).filter((col) => col !== void 0);
|
|
20824
20913
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
20825
20914
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
20826
20915
|
}, "useHowToTableStructure");
|
|
@@ -20919,7 +21008,7 @@ function HowToSelector({
|
|
|
20919
21008
|
}, "setHowTo");
|
|
20920
21009
|
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
21010
|
/* @__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',
|
|
21011
|
+
/* @__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
21012
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20924
21013
|
_lucidereact.CircleX,
|
|
20925
21014
|
{
|
|
@@ -21313,10 +21402,10 @@ function CitationsTab({ citations, sources }) {
|
|
|
21313
21402
|
] }) }),
|
|
21314
21403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
21315
21404
|
const isOpen = expanded.has(chunk.id);
|
|
21316
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
21405
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _565 => _565.get, 'call', _566 => _566(chunk.nodeId)]) : void 0;
|
|
21317
21406
|
const typeLabel = chunk.nodeType ? entityLabel(chunk.nodeType) : t("features.assistant.message.sources.source");
|
|
21318
21407
|
const fallbackName = chunk.nodeId ? `${typeLabel} ${chunk.nodeId.slice(0, 8)}` : typeLabel;
|
|
21319
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
21408
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _567 => _567.name]), () => ( fallbackName));
|
|
21320
21409
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21321
21410
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
21322
21411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -21364,7 +21453,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
21364
21453
|
for (const c of citations) {
|
|
21365
21454
|
const id = c.nodeId;
|
|
21366
21455
|
if (!id) continue;
|
|
21367
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
21456
|
+
const source = _optionalChain([sources, 'optionalAccess', _568 => _568.get, 'call', _569 => _569(id)]);
|
|
21368
21457
|
if (!source) continue;
|
|
21369
21458
|
const existing = map.get(id);
|
|
21370
21459
|
if (existing) {
|
|
@@ -21431,7 +21520,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
21431
21520
|
const generate = usePageUrlGenerator();
|
|
21432
21521
|
const userMap = /* @__PURE__ */ new Map();
|
|
21433
21522
|
for (const u of users) {
|
|
21434
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
21523
|
+
if (!_optionalChain([u, 'optionalAccess', _570 => _570.id])) continue;
|
|
21435
21524
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
21436
21525
|
}
|
|
21437
21526
|
if (citations && sources) {
|
|
@@ -21536,7 +21625,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
21536
21625
|
}
|
|
21537
21626
|
return ids.size;
|
|
21538
21627
|
}, [message.citations, sources]);
|
|
21539
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
21628
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _571 => _571.length]), () => ( 0));
|
|
21540
21629
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
21541
21630
|
const visibleTabs = [];
|
|
21542
21631
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -21679,7 +21768,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
21679
21768
|
return void 0;
|
|
21680
21769
|
}
|
|
21681
21770
|
})()));
|
|
21682
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
21771
|
+
if (_optionalChain([author, 'optionalAccess', _572 => _572.id])) userMap.set(author.id, author);
|
|
21683
21772
|
}
|
|
21684
21773
|
return Array.from(userMap.values());
|
|
21685
21774
|
}, [resolved]);
|
|
@@ -21714,7 +21803,7 @@ function MessageItem({
|
|
|
21714
21803
|
}) {
|
|
21715
21804
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
21716
21805
|
const isUser = message.role === "user";
|
|
21717
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
21806
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _573 => _573.has, 'call', _574 => _574(message.id)]);
|
|
21718
21807
|
const markdownComponents = _react.useMemo.call(void 0,
|
|
21719
21808
|
() => ({
|
|
21720
21809
|
a: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ href, children }) => {
|
|
@@ -21731,7 +21820,7 @@ function MessageItem({
|
|
|
21731
21820
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
21732
21821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
21733
21822
|
/* @__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',
|
|
21823
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: () => _optionalChain([onRetry, 'optionalCall', _575 => _575(message.id)]), children: t("features.assistant.retry") })
|
|
21735
21824
|
] })
|
|
21736
21825
|
] });
|
|
21737
21826
|
}
|
|
@@ -21822,7 +21911,7 @@ function AssistantThread({
|
|
|
21822
21911
|
}) {
|
|
21823
21912
|
const endRef = _react.useRef.call(void 0, null);
|
|
21824
21913
|
_react.useEffect.call(void 0, () => {
|
|
21825
|
-
_optionalChain([endRef, 'access',
|
|
21914
|
+
_optionalChain([endRef, 'access', _576 => _576.current, 'optionalAccess', _577 => _577.scrollIntoView, 'call', _578 => _578({ behavior: "smooth" })]);
|
|
21826
21915
|
}, [messages.length, sending]);
|
|
21827
21916
|
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
21917
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21852,7 +21941,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
21852
21941
|
AssistantSidebar,
|
|
21853
21942
|
{
|
|
21854
21943
|
threads: ctx.threads,
|
|
21855
|
-
activeId: _optionalChain([ctx, 'access',
|
|
21944
|
+
activeId: _optionalChain([ctx, 'access', _579 => _579.assistant, 'optionalAccess', _580 => _580.id]),
|
|
21856
21945
|
onSelect: ctx.selectThread,
|
|
21857
21946
|
onNew: ctx.startNew
|
|
21858
21947
|
}
|
|
@@ -21906,7 +21995,7 @@ function flattenBlocks(blocks) {
|
|
|
21906
21995
|
if (typeof inline === "string") return inline;
|
|
21907
21996
|
if (!inline || typeof inline !== "object") return "";
|
|
21908
21997
|
const node = inline;
|
|
21909
|
-
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access',
|
|
21998
|
+
if (node.type === "mention") return _nullishCoalesce(_optionalChain([node, 'access', _581 => _581.props, 'optionalAccess', _582 => _582.alias]), () => ( ""));
|
|
21910
21999
|
if (typeof node.text === "string") return node.text;
|
|
21911
22000
|
if (Array.isArray(node.content)) return node.content.map(readInline).join("");
|
|
21912
22001
|
return "";
|
|
@@ -22022,7 +22111,7 @@ function AssistantPageContainer({
|
|
|
22022
22111
|
AssistantSidebar,
|
|
22023
22112
|
{
|
|
22024
22113
|
threads: ctx.threads,
|
|
22025
|
-
activeId: _optionalChain([ctx, 'access',
|
|
22114
|
+
activeId: _optionalChain([ctx, 'access', _583 => _583.assistant, 'optionalAccess', _584 => _584.id]),
|
|
22026
22115
|
onSelect: ctx.selectThread,
|
|
22027
22116
|
onNew: ctx.startNew
|
|
22028
22117
|
}
|
|
@@ -22124,7 +22213,7 @@ function ApprovalActionCard({ actionId, summary, onResolved }) {
|
|
|
22124
22213
|
try {
|
|
22125
22214
|
const message = kind === "approve" ? await _chunkPGA2VC3Sjs.AssistantActionService.approve({ id: actionId }) : await _chunkPGA2VC3Sjs.AssistantActionService.deny({ id: actionId });
|
|
22126
22215
|
setStatus(kind === "approve" ? "executed" : "denied");
|
|
22127
|
-
if (message) _optionalChain([onResolved, 'optionalCall',
|
|
22216
|
+
if (message) _optionalChain([onResolved, 'optionalCall', _585 => _585(message)]);
|
|
22128
22217
|
} catch (error) {
|
|
22129
22218
|
console.error(`ApprovalActionCard: failed to ${kind} assistant action ${actionId}`, error);
|
|
22130
22219
|
setFailed(true);
|
|
@@ -22223,14 +22312,14 @@ function NotificationsList({ archived }) {
|
|
|
22223
22312
|
] }),
|
|
22224
22313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
22225
22314
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
22226
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
22315
|
+
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
22316
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
22228
22317
|
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
22318
|
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
22319
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
22231
22320
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
22232
22321
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
22233
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
22322
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _589 => _589.actor, 'optionalAccess', _590 => _590.name]), () => ( "")),
|
|
22234
22323
|
title: notificationData.title
|
|
22235
22324
|
}) }),
|
|
22236
22325
|
/* @__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 +22665,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
22576
22665
|
invalidEmail: "Please enter a valid email address"
|
|
22577
22666
|
};
|
|
22578
22667
|
async function copyToClipboard(text) {
|
|
22579
|
-
if (_optionalChain([navigator, 'access',
|
|
22668
|
+
if (_optionalChain([navigator, 'access', _591 => _591.clipboard, 'optionalAccess', _592 => _592.writeText])) {
|
|
22580
22669
|
try {
|
|
22581
22670
|
await navigator.clipboard.writeText(text);
|
|
22582
22671
|
return true;
|
|
@@ -22618,7 +22707,7 @@ function ReferralWidget({
|
|
|
22618
22707
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
22619
22708
|
const config = _chunkB2OB3HQOjs.getReferralConfig.call(void 0, );
|
|
22620
22709
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
22621
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
22710
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _593 => _593.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
22622
22711
|
if (!_chunkB2OB3HQOjs.isReferralEnabled.call(void 0, )) {
|
|
22623
22712
|
return null;
|
|
22624
22713
|
}
|
|
@@ -22628,7 +22717,7 @@ function ReferralWidget({
|
|
|
22628
22717
|
if (success) {
|
|
22629
22718
|
setCopied(true);
|
|
22630
22719
|
_chunkPGA2VC3Sjs.showToast.call(void 0, t.copiedMessage);
|
|
22631
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
22720
|
+
_optionalChain([onLinkCopied, 'optionalCall', _594 => _594()]);
|
|
22632
22721
|
setTimeout(() => setCopied(false), 2e3);
|
|
22633
22722
|
} else {
|
|
22634
22723
|
_chunkPGA2VC3Sjs.showError.call(void 0, t.copyError);
|
|
@@ -22642,12 +22731,12 @@ function ReferralWidget({
|
|
|
22642
22731
|
try {
|
|
22643
22732
|
await sendInvite(email);
|
|
22644
22733
|
_chunkPGA2VC3Sjs.showToast.call(void 0, t.inviteSent);
|
|
22645
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
22734
|
+
_optionalChain([onInviteSent, 'optionalCall', _595 => _595(email)]);
|
|
22646
22735
|
setEmail("");
|
|
22647
22736
|
} catch (err) {
|
|
22648
22737
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
22649
22738
|
_chunkPGA2VC3Sjs.showError.call(void 0, error2.message);
|
|
22650
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
22739
|
+
_optionalChain([onInviteError, 'optionalCall', _596 => _596(error2)]);
|
|
22651
22740
|
}
|
|
22652
22741
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
22653
22742
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -23401,7 +23490,7 @@ function OAuthClientList({
|
|
|
23401
23490
|
OAuthClientCard,
|
|
23402
23491
|
{
|
|
23403
23492
|
client,
|
|
23404
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
23493
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _597 => _597(client)]),
|
|
23405
23494
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
23406
23495
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
23407
23496
|
},
|
|
@@ -23417,11 +23506,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
23417
23506
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
23418
23507
|
const isEditMode = !!client;
|
|
23419
23508
|
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',
|
|
23509
|
+
name: _optionalChain([client, 'optionalAccess', _598 => _598.name]) || "",
|
|
23510
|
+
description: _optionalChain([client, 'optionalAccess', _599 => _599.description]) || "",
|
|
23511
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _600 => _600.redirectUris, 'optionalAccess', _601 => _601.length]) ? client.redirectUris : [""],
|
|
23512
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _602 => _602.allowedScopes]) || [],
|
|
23513
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _603 => _603.isConfidential]), () => ( true))
|
|
23425
23514
|
});
|
|
23426
23515
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
23427
23516
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -23649,7 +23738,7 @@ function OAuthClientDetail({
|
|
|
23649
23738
|
] }),
|
|
23650
23739
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23651
23740
|
/* @__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',
|
|
23741
|
+
/* @__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
23742
|
] }),
|
|
23654
23743
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
23655
23744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -23793,7 +23882,7 @@ function OAuthConsentScreen({
|
|
|
23793
23882
|
if (error || !clientInfo) {
|
|
23794
23883
|
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
23884
|
/* @__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',
|
|
23885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _606 => _606.message]) || "Invalid authorization request. Please try again." })
|
|
23797
23886
|
] }) }) }) });
|
|
23798
23887
|
}
|
|
23799
23888
|
const { client, scopes } = clientInfo;
|
|
@@ -24009,7 +24098,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
24009
24098
|
questionnaire: values.questionnaire
|
|
24010
24099
|
});
|
|
24011
24100
|
setIsSuccess(true);
|
|
24012
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
24101
|
+
_optionalChain([onSuccess, 'optionalCall', _607 => _607()]);
|
|
24013
24102
|
} catch (e) {
|
|
24014
24103
|
errorToast({ error: e });
|
|
24015
24104
|
} finally {
|
|
@@ -24657,7 +24746,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
24657
24746
|
] }),
|
|
24658
24747
|
roleIds.map((roleId) => {
|
|
24659
24748
|
const roleTokens = block[roleId];
|
|
24660
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
24749
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _608 => _608[roleId]]), () => ( roleId));
|
|
24661
24750
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
24662
24751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
24663
24752
|
_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 +24783,7 @@ function RbacContainer() {
|
|
|
24694
24783
|
}, []);
|
|
24695
24784
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
24696
24785
|
if (!matrix) return [];
|
|
24697
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24786
|
+
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
24787
|
}, [matrix, moduleNames]);
|
|
24699
24788
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
24700
24789
|
if (roleNames) {
|
|
@@ -24757,7 +24846,7 @@ function RbacContainer() {
|
|
|
24757
24846
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
24758
24847
|
id !== selectedModuleId && "text-muted-foreground"
|
|
24759
24848
|
),
|
|
24760
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24849
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _611 => _611[id]]), () => ( id))
|
|
24761
24850
|
}
|
|
24762
24851
|
) }, id)) }) }),
|
|
24763
24852
|
/* @__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 +24854,7 @@ function RbacContainer() {
|
|
|
24765
24854
|
{
|
|
24766
24855
|
moduleId: selectedModuleId,
|
|
24767
24856
|
block: selectedBlock,
|
|
24768
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24857
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _612 => _612[selectedModuleId]]), () => ( selectedModuleId)),
|
|
24769
24858
|
roleIds,
|
|
24770
24859
|
roleNames,
|
|
24771
24860
|
onOpenPicker: openPicker
|
|
@@ -24776,12 +24865,12 @@ function RbacContainer() {
|
|
|
24776
24865
|
RbacPermissionPicker,
|
|
24777
24866
|
{
|
|
24778
24867
|
open: !!activePicker,
|
|
24779
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24868
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _613 => _613.anchor]), () => ( null)),
|
|
24780
24869
|
value: activeValue,
|
|
24781
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
24870
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _614 => _614.isRoleColumn]), () => ( false)),
|
|
24782
24871
|
knownSegments: activeSegments,
|
|
24783
24872
|
onSetValue: handleSetValue,
|
|
24784
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
24873
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _615 => _615.isRoleColumn]) ? handleClear : void 0,
|
|
24785
24874
|
onClose: closePicker
|
|
24786
24875
|
}
|
|
24787
24876
|
)
|
|
@@ -24848,7 +24937,7 @@ function RbacByRoleContainer() {
|
|
|
24848
24937
|
}, [roleNames]);
|
|
24849
24938
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
24850
24939
|
if (!matrix) return [];
|
|
24851
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
24940
|
+
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
24941
|
}, [matrix, moduleNames]);
|
|
24853
24942
|
_react.useEffect.call(void 0, () => {
|
|
24854
24943
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -24897,7 +24986,7 @@ function RbacByRoleContainer() {
|
|
|
24897
24986
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
24898
24987
|
id !== selectedRoleId && "text-muted-foreground"
|
|
24899
24988
|
),
|
|
24900
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
24989
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _618 => _618[id]]), () => ( id))
|
|
24901
24990
|
}
|
|
24902
24991
|
) }, id)) }) }),
|
|
24903
24992
|
/* @__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 +25006,7 @@ function RbacByRoleContainer() {
|
|
|
24917
25006
|
if (!block) return null;
|
|
24918
25007
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
24919
25008
|
const roleTokens = block[selectedRoleId];
|
|
24920
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
25009
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _619 => _619[moduleId]]), () => ( moduleId));
|
|
24921
25010
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
24922
25011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24923
25012
|
"td",
|
|
@@ -24932,7 +25021,7 @@ function RbacByRoleContainer() {
|
|
|
24932
25021
|
_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
25022
|
] }),
|
|
24934
25023
|
/* @__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',
|
|
25024
|
+
/* @__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
25025
|
_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
25026
|
CellButton3,
|
|
24938
25027
|
{
|
|
@@ -24953,12 +25042,12 @@ function RbacByRoleContainer() {
|
|
|
24953
25042
|
RbacPermissionPicker,
|
|
24954
25043
|
{
|
|
24955
25044
|
open: !!activePicker,
|
|
24956
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
25045
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _621 => _621.anchor]), () => ( null)),
|
|
24957
25046
|
value: activeValue,
|
|
24958
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
25047
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _622 => _622.isRoleColumn]), () => ( false)),
|
|
24959
25048
|
knownSegments: activeSegments,
|
|
24960
25049
|
onSetValue: handleSetValue,
|
|
24961
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
25050
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _623 => _623.isRoleColumn]) ? handleClear : void 0,
|
|
24962
25051
|
onClose: closePicker
|
|
24963
25052
|
}
|
|
24964
25053
|
)
|
|
@@ -25540,5 +25629,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
25540
25629
|
|
|
25541
25630
|
|
|
25542
25631
|
|
|
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
|
|
25632
|
+
|
|
25633
|
+
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;
|
|
25634
|
+
//# sourceMappingURL=chunk-G2PQN6HK.js.map
|