@carlonicora/nextjs-jsonapi 1.116.0 → 1.117.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AssistantMessageInterface-Ca0G0vZw.d.mts → AssistantMessageInterface-DH1QwtC_.d.mts} +1 -0
- package/dist/{AssistantMessageInterface-DEZ5AnVl.d.ts → AssistantMessageInterface-giWvsOrX.d.ts} +1 -0
- package/dist/{BlockNoteEditor-R6U4PCQ7.js → BlockNoteEditor-CEWZCORH.js} +9 -9
- package/dist/{BlockNoteEditor-R6U4PCQ7.js.map → BlockNoteEditor-CEWZCORH.js.map} +1 -1
- package/dist/{BlockNoteEditor-RFRK3STN.mjs → BlockNoteEditor-K4T6QOJO.mjs} +2 -2
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-SPRFCAQI.js → chunk-56QAXZKI.js} +470 -328
- package/dist/chunk-56QAXZKI.js.map +1 -0
- package/dist/{chunk-RKUUGCYB.mjs → chunk-6D4GJHLK.mjs} +526 -384
- package/dist/chunk-6D4GJHLK.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +69 -22
- package/dist/components/index.d.ts +69 -22
- 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.d.mts +1 -1
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/features/help/index.js +30 -30
- package/dist/features/help/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/forms/CommonDeleter.tsx +49 -18
- package/src/components/forms/CommonEditorButtons.tsx +4 -2
- package/src/components/forms/CommonEditorHeader.tsx +20 -14
- package/src/components/forms/CommonEditorTrigger.tsx +18 -4
- package/src/components/forms/DateRangeSelector.tsx +55 -19
- package/src/components/forms/EditorSheet.tsx +36 -9
- package/src/components/forms/FileUploader.tsx +51 -21
- package/src/components/forms/FormDate.tsx +6 -2
- package/src/components/forms/FormDateTime.tsx +11 -2
- package/src/components/forms/FormFieldWrapper.tsx +3 -1
- package/src/components/forms/FormInput.tsx +3 -1
- package/src/components/forms/FormPassword.tsx +10 -1
- package/src/components/forms/FormPlaceAutocomplete.tsx +8 -3
- package/src/components/forms/FormSelect.tsx +3 -0
- package/src/components/forms/FormSlider.tsx +3 -1
- package/src/components/forms/FormTextarea.tsx +15 -1
- package/src/components/navigations/Breadcrumb.tsx +31 -5
- package/src/hooks/useSocket.ts +12 -1
- package/src/interfaces/breadcrumb.item.data.interface.ts +1 -0
- package/src/shadcnui/ui/badge.tsx +15 -0
- package/dist/chunk-RKUUGCYB.mjs.map +0 -1
- package/dist/chunk-SPRFCAQI.js.map +0 -1
- /package/dist/{BlockNoteEditor-RFRK3STN.mjs.map → BlockNoteEditor-K4T6QOJO.mjs.map} +0 -0
|
@@ -499,7 +499,19 @@ var badgeVariants = _classvarianceauthority.cva.call(void 0,
|
|
|
499
499
|
destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
|
|
500
500
|
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30",
|
|
501
501
|
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
502
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
502
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
503
|
+
warning: "bg-warning text-warning-foreground [a]:hover:bg-warning/80",
|
|
504
|
+
blue: "bg-sky-500 text-primary-foreground [a]:hover:bg-sky-500/80",
|
|
505
|
+
green: "bg-emerald-500 text-primary-foreground [a]:hover:bg-emerald-500/80",
|
|
506
|
+
red: "bg-red-500 text-primary-foreground [a]:hover:bg-red-500/80",
|
|
507
|
+
yellow: "bg-yellow-500 text-primary-foreground [a]:hover:bg-yellow-500/80",
|
|
508
|
+
purple: "bg-purple-500 text-primary-foreground [a]:hover:bg-purple-500/80",
|
|
509
|
+
pink: "bg-pink-500 text-primary-foreground [a]:hover:bg-pink-500/80",
|
|
510
|
+
gray: "bg-gray-500 text-primary-foreground [a]:hover:bg-gray-500/80",
|
|
511
|
+
orange: "bg-orange-500 text-primary-foreground [a]:hover:bg-orange-500/80",
|
|
512
|
+
teal: "bg-teal-500 text-primary-foreground [a]:hover:bg-teal-500/80",
|
|
513
|
+
lime: "bg-lime-500 text-primary-foreground [a]:hover:bg-lime-500/80",
|
|
514
|
+
none: "border-input bg-transparent text-muted-foreground min-w-20 min-h-5"
|
|
503
515
|
}
|
|
504
516
|
},
|
|
505
517
|
defaultVariants: {
|
|
@@ -617,7 +629,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
617
629
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbEllipsis, "BreadcrumbEllipsis");
|
|
618
630
|
|
|
619
631
|
// src/shadcnui/ui/calendar.tsx
|
|
620
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var
|
|
632
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var React19 = _interopRequireWildcard(_react);
|
|
621
633
|
var _reactdaypicker = require('react-day-picker');
|
|
622
634
|
|
|
623
635
|
|
|
@@ -7431,7 +7443,15 @@ function useSocket({ token }) {
|
|
|
7431
7443
|
});
|
|
7432
7444
|
}, "handleMessage");
|
|
7433
7445
|
const handleNotification = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7434
|
-
const
|
|
7446
|
+
const resource = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _177 => _177.data]), () => ( _optionalChain([data, 'optionalAccess', _178 => _178.jsonApi])));
|
|
7447
|
+
if (!_optionalChain([resource, 'optionalAccess', _179 => _179.type])) {
|
|
7448
|
+
console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
|
|
7449
|
+
return;
|
|
7450
|
+
}
|
|
7451
|
+
const notification = _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Notification, {
|
|
7452
|
+
jsonApi: resource,
|
|
7453
|
+
included: _optionalChain([data, 'optionalAccess', _180 => _180.included]) || []
|
|
7454
|
+
});
|
|
7435
7455
|
if (notification) {
|
|
7436
7456
|
setSocketNotifications((prev) => {
|
|
7437
7457
|
const newNotifications = [...prev, notification];
|
|
@@ -7568,23 +7588,23 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7568
7588
|
);
|
|
7569
7589
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
7570
7590
|
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkS2PTWBN6js.Modules, key);
|
|
7571
|
-
if (!_optionalChain([descriptor2, 'optionalAccess',
|
|
7591
|
+
if (!_optionalChain([descriptor2, 'optionalAccess', _181 => _181.get])) return false;
|
|
7572
7592
|
const selectedModule = descriptor2.get.call(_chunkS2PTWBN6js.Modules);
|
|
7573
|
-
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access',
|
|
7593
|
+
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _182 => _182.pageUrl, 'optionalAccess', _183 => _183.toLowerCase, 'call', _184 => _184()]));
|
|
7574
7594
|
});
|
|
7575
7595
|
if (!matchedModuleKey) return void 0;
|
|
7576
7596
|
const descriptor = Object.getOwnPropertyDescriptor(_chunkS2PTWBN6js.Modules, matchedModuleKey);
|
|
7577
|
-
return _optionalChain([descriptor, 'optionalAccess',
|
|
7597
|
+
return _optionalChain([descriptor, 'optionalAccess', _185 => _185.get, 'optionalAccess', _186 => _186.call, 'call', _187 => _187(_chunkS2PTWBN6js.Modules)]);
|
|
7578
7598
|
}, "matchUrlToModule");
|
|
7579
7599
|
const currentUser = dehydratedUser ? _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.User, dehydratedUser) : null;
|
|
7580
|
-
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
7600
|
+
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _188 => _188.company]), () => ( null));
|
|
7581
7601
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
7582
7602
|
if (user) setDehydratedUser(user.dehydrate());
|
|
7583
7603
|
else setDehydratedUser(null);
|
|
7584
7604
|
}, "setUser");
|
|
7585
7605
|
const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
|
|
7586
7606
|
if (!currentUser) return false;
|
|
7587
|
-
return !!_optionalChain([currentUser, 'access',
|
|
7607
|
+
return !!_optionalChain([currentUser, 'access', _189 => _189.roles, 'optionalAccess', _190 => _190.some, 'call', _191 => _191((userRole) => userRole.id === roleId)]);
|
|
7588
7608
|
}, "hasRole");
|
|
7589
7609
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
7590
7610
|
if (hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
@@ -7624,12 +7644,12 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7624
7644
|
try {
|
|
7625
7645
|
const fullUser = await _chunkS2PTWBN6js.UserService.findFullUser();
|
|
7626
7646
|
if (fullUser) {
|
|
7627
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
7628
|
-
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
7647
|
+
if (!_optionalChain([options, 'optionalAccess', _192 => _192.skipCookieUpdate])) {
|
|
7648
|
+
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _193 => _193.updateToken, 'call', _194 => _194({
|
|
7629
7649
|
userId: fullUser.id,
|
|
7630
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
7650
|
+
companyId: _optionalChain([fullUser, 'access', _195 => _195.company, 'optionalAccess', _196 => _196.id]),
|
|
7631
7651
|
roles: fullUser.roles.map((role) => role.id),
|
|
7632
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
7652
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _197 => _197.company, 'optionalAccess', _198 => _198.features, 'optionalAccess', _199 => _199.map, 'call', _200 => _200((feature) => feature.id)]), () => ( [])),
|
|
7633
7653
|
modules: fullUser.modules.map((module) => ({
|
|
7634
7654
|
id: module.id,
|
|
7635
7655
|
permissions: module.permissions
|
|
@@ -7651,11 +7671,11 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7651
7671
|
refreshUserRef.current = refreshUser;
|
|
7652
7672
|
const isRefreshingRef = _react.useRef.call(void 0, false);
|
|
7653
7673
|
_react.useEffect.call(void 0, () => {
|
|
7654
|
-
if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess',
|
|
7674
|
+
if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _201 => _201.company, 'optionalAccess', _202 => _202.id])) {
|
|
7655
7675
|
return;
|
|
7656
7676
|
}
|
|
7657
7677
|
const handleCompanyUpdate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7658
|
-
if (data.companyId === _optionalChain([currentUser, 'access',
|
|
7678
|
+
if (data.companyId === _optionalChain([currentUser, 'access', _203 => _203.company, 'optionalAccess', _204 => _204.id]) && !isRefreshingRef.current) {
|
|
7659
7679
|
isRefreshingRef.current = true;
|
|
7660
7680
|
refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
|
|
7661
7681
|
isRefreshingRef.current = false;
|
|
@@ -7668,7 +7688,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7668
7688
|
socket.off("company:tokens_updated", handleCompanyUpdate);
|
|
7669
7689
|
socket.off("company:subscription_updated", handleCompanyUpdate);
|
|
7670
7690
|
};
|
|
7671
|
-
}, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess',
|
|
7691
|
+
}, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _205 => _205.company, 'optionalAccess', _206 => _206.id])]);
|
|
7672
7692
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7673
7693
|
CurrentUserContext.Provider,
|
|
7674
7694
|
{
|
|
@@ -7739,7 +7759,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7739
7759
|
const data = useDataListRetriever({
|
|
7740
7760
|
ready: !!company && show,
|
|
7741
7761
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
|
|
7742
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
7762
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _207 => _207.id]) },
|
|
7743
7763
|
module: _chunkS2PTWBN6js.Modules.User
|
|
7744
7764
|
});
|
|
7745
7765
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7807,10 +7827,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
7807
7827
|
onValueChange: setFiles,
|
|
7808
7828
|
dropzoneOptions: dropzone2,
|
|
7809
7829
|
className: "h-40 w-40 rounded-full p-0",
|
|
7810
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess',
|
|
7830
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileInput, { className: "bg-muted text-muted-foreground flex h-full w-full flex-col items-center justify-center", children: !resetImage && (file || _optionalChain([user, 'optionalAccess', _208 => _208.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7811
7831
|
_image2.default,
|
|
7812
7832
|
{
|
|
7813
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess',
|
|
7833
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _209 => _209.avatar]) || "",
|
|
7814
7834
|
alt: t(`common.avatar`),
|
|
7815
7835
|
width: 200,
|
|
7816
7836
|
height: 200
|
|
@@ -7818,7 +7838,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
7818
7838
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
|
|
7819
7839
|
}
|
|
7820
7840
|
),
|
|
7821
|
-
!resetImage && (file || _optionalChain([user, 'optionalAccess',
|
|
7841
|
+
!resetImage && (file || _optionalChain([user, 'optionalAccess', _210 => _210.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7822
7842
|
Button,
|
|
7823
7843
|
{
|
|
7824
7844
|
className: "",
|
|
@@ -7846,7 +7866,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7846
7866
|
const router = _chunk6KLR3WJQjs.useI18nRouter.call(void 0, );
|
|
7847
7867
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
7848
7868
|
let cId;
|
|
7849
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
7869
|
+
if (_optionalChain([currentUser, 'optionalAccess', _211 => _211.roles, 'access', _212 => _212.find, 'call', _213 => _213((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
7850
7870
|
cId = companyId;
|
|
7851
7871
|
} else {
|
|
7852
7872
|
if (!company) return;
|
|
@@ -7909,18 +7929,18 @@ function UserEditorInternal({
|
|
|
7909
7929
|
}, [company]);
|
|
7910
7930
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
7911
7931
|
(open) => {
|
|
7912
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess',
|
|
7932
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _214 => _214.roles, 'access', _215 => _215.find, 'call', _216 => _216((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
|
|
7913
7933
|
async function fetchRoles() {
|
|
7914
7934
|
const allRoles = await _chunkS2PTWBN6js.RoleService.findAllRoles({});
|
|
7915
7935
|
const availableRoles = allRoles.filter(
|
|
7916
|
-
(role) => role.id !== _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess',
|
|
7936
|
+
(role) => role.id !== _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _217 => _217.features, 'access', _218 => _218.some, 'call', _219 => _219((feature) => feature.id === _optionalChain([role, 'access', _220 => _220.requiredFeature, 'optionalAccess', _221 => _221.id]))]))
|
|
7917
7937
|
);
|
|
7918
7938
|
setRoles(availableRoles);
|
|
7919
7939
|
}
|
|
7920
7940
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7921
7941
|
fetchRoles();
|
|
7922
7942
|
}
|
|
7923
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
7943
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _222 => _222(open)]);
|
|
7924
7944
|
},
|
|
7925
7945
|
[company, currentUser, roles.length, onDialogOpenChange]
|
|
7926
7946
|
);
|
|
@@ -7954,29 +7974,29 @@ function UserEditorInternal({
|
|
|
7954
7974
|
);
|
|
7955
7975
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
7956
7976
|
return {
|
|
7957
|
-
id: _optionalChain([user, 'optionalAccess',
|
|
7958
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
7959
|
-
title: _optionalChain([user, 'optionalAccess',
|
|
7960
|
-
bio: _optionalChain([user, 'optionalAccess',
|
|
7961
|
-
email: _optionalChain([user, 'optionalAccess',
|
|
7962
|
-
phone: _optionalChain([user, 'optionalAccess',
|
|
7977
|
+
id: _optionalChain([user, 'optionalAccess', _223 => _223.id]) || _uuid.v4.call(void 0, ),
|
|
7978
|
+
name: _optionalChain([user, 'optionalAccess', _224 => _224.name]) || "",
|
|
7979
|
+
title: _optionalChain([user, 'optionalAccess', _225 => _225.title]) || "",
|
|
7980
|
+
bio: _optionalChain([user, 'optionalAccess', _226 => _226.bio]) || "",
|
|
7981
|
+
email: _optionalChain([user, 'optionalAccess', _227 => _227.email]) || "",
|
|
7982
|
+
phone: _optionalChain([user, 'optionalAccess', _228 => _228.phone]) || "",
|
|
7963
7983
|
password: "",
|
|
7964
|
-
roleIds: _optionalChain([user, 'optionalAccess',
|
|
7984
|
+
roleIds: _optionalChain([user, 'optionalAccess', _229 => _229.roles, 'access', _230 => _230.map, 'call', _231 => _231((role) => role.id)]) || [],
|
|
7965
7985
|
sendInvitationEmail: false,
|
|
7966
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
7986
|
+
avatar: _optionalChain([user, 'optionalAccess', _232 => _232.avatarUrl]) || ""
|
|
7967
7987
|
};
|
|
7968
7988
|
}, [user]);
|
|
7969
7989
|
const form = _reacthookform.useForm.call(void 0, {
|
|
7970
7990
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
7971
7991
|
defaultValues: getDefaultValues()
|
|
7972
7992
|
});
|
|
7973
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess',
|
|
7993
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _233 => _233.id]) === _optionalChain([user, 'optionalAccess', _234 => _234.id]) && hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkS2PTWBN6js.Modules.User, action: "update" /* Update */ }) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator));
|
|
7974
7994
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7975
7995
|
EditorSheet,
|
|
7976
7996
|
{
|
|
7977
7997
|
form,
|
|
7978
7998
|
entityType: t(`entities.users`, { count: 1 }),
|
|
7979
|
-
entityName: _optionalChain([user, 'optionalAccess',
|
|
7999
|
+
entityName: _optionalChain([user, 'optionalAccess', _235 => _235.name]),
|
|
7980
8000
|
isEdit: !!user,
|
|
7981
8001
|
module: _chunkS2PTWBN6js.Modules.User,
|
|
7982
8002
|
propagateChanges,
|
|
@@ -8028,7 +8048,7 @@ function UserEditorInternal({
|
|
|
8028
8048
|
adminCreated
|
|
8029
8049
|
};
|
|
8030
8050
|
const updatedUser = user ? await _chunkS2PTWBN6js.UserService.update(payload) : await _chunkS2PTWBN6js.UserService.create(payload);
|
|
8031
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
8051
|
+
if (_optionalChain([currentUser, 'optionalAccess', _236 => _236.id]) === updatedUser.id) setUser(updatedUser);
|
|
8032
8052
|
return updatedUser;
|
|
8033
8053
|
},
|
|
8034
8054
|
onRevalidate,
|
|
@@ -8161,6 +8181,7 @@ function FormFieldWrapper({
|
|
|
8161
8181
|
description,
|
|
8162
8182
|
isRequired,
|
|
8163
8183
|
orientation = "vertical",
|
|
8184
|
+
className,
|
|
8164
8185
|
children,
|
|
8165
8186
|
testId
|
|
8166
8187
|
}) {
|
|
@@ -8169,7 +8190,7 @@ function FormFieldWrapper({
|
|
|
8169
8190
|
{
|
|
8170
8191
|
control: form.control,
|
|
8171
8192
|
name,
|
|
8172
|
-
render: ({ field, fieldState }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Field, { orientation, "data-invalid": !!fieldState.error, "data-testid": testId, children: [
|
|
8193
|
+
render: ({ field, fieldState }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Field, { orientation, className, "data-invalid": !!fieldState.error, "data-testid": testId, children: [
|
|
8173
8194
|
label && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, FieldLabel, { children: [
|
|
8174
8195
|
label,
|
|
8175
8196
|
isRequired && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-destructive ml-1 font-semibold", children: "*" })
|
|
@@ -8275,7 +8296,7 @@ function EntityMultiSelector({
|
|
|
8275
8296
|
if (open) {
|
|
8276
8297
|
setSearchTerm("");
|
|
8277
8298
|
requestAnimationFrame(() => {
|
|
8278
|
-
_optionalChain([searchInputRef, 'access',
|
|
8299
|
+
_optionalChain([searchInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.focus, 'call', _239 => _239()]);
|
|
8279
8300
|
});
|
|
8280
8301
|
}
|
|
8281
8302
|
}, [open]);
|
|
@@ -8292,7 +8313,7 @@ function EntityMultiSelector({
|
|
|
8292
8313
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8293
8314
|
const cb = onChangeRef.current;
|
|
8294
8315
|
if (cb) {
|
|
8295
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8316
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _240 => _240.find, 'call', _241 => _241((opt) => opt.id === v.id), 'optionalAccess', _242 => _242.entityData])).filter(Boolean);
|
|
8296
8317
|
cb(fullData);
|
|
8297
8318
|
}
|
|
8298
8319
|
},
|
|
@@ -8305,7 +8326,7 @@ function EntityMultiSelector({
|
|
|
8305
8326
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8306
8327
|
const cb = onChangeRef.current;
|
|
8307
8328
|
if (cb) {
|
|
8308
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8329
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _243 => _243.find, 'call', _244 => _244((opt) => opt.id === v.id), 'optionalAccess', _245 => _245.entityData])).filter(Boolean);
|
|
8309
8330
|
cb(fullData);
|
|
8310
8331
|
}
|
|
8311
8332
|
},
|
|
@@ -8443,11 +8464,11 @@ function UserMultiSelect({
|
|
|
8443
8464
|
emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
|
|
8444
8465
|
isRequired,
|
|
8445
8466
|
retriever: (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params),
|
|
8446
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
8467
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _246 => _246.id]) },
|
|
8447
8468
|
module: _chunkS2PTWBN6js.Modules.User,
|
|
8448
8469
|
getLabel: (user) => user.name,
|
|
8449
8470
|
toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
|
|
8450
|
-
excludeId: _optionalChain([currentUser, 'optionalAccess',
|
|
8471
|
+
excludeId: _optionalChain([currentUser, 'optionalAccess', _247 => _247.id]),
|
|
8451
8472
|
onChange,
|
|
8452
8473
|
renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
8453
8474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
|
|
@@ -8713,7 +8734,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
8713
8734
|
|
|
8714
8735
|
// src/components/errors/errorToast.ts
|
|
8715
8736
|
function errorToast(params) {
|
|
8716
|
-
_chunkS2PTWBN6js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
8737
|
+
_chunkS2PTWBN6js.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _248 => _248.title]), () => ( "Error")), {
|
|
8717
8738
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
8718
8739
|
});
|
|
8719
8740
|
}
|
|
@@ -8721,7 +8742,19 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
8721
8742
|
|
|
8722
8743
|
// src/components/forms/CommonDeleter.tsx
|
|
8723
8744
|
|
|
8724
|
-
function CommonDeleter({
|
|
8745
|
+
function CommonDeleter({
|
|
8746
|
+
deleteFunction,
|
|
8747
|
+
redirectTo,
|
|
8748
|
+
type,
|
|
8749
|
+
title,
|
|
8750
|
+
subtitle,
|
|
8751
|
+
description,
|
|
8752
|
+
forceShow,
|
|
8753
|
+
testId,
|
|
8754
|
+
trigger,
|
|
8755
|
+
onSuccess,
|
|
8756
|
+
propagateChanges
|
|
8757
|
+
}) {
|
|
8725
8758
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
8726
8759
|
const router = _chunk6KLR3WJQjs.useI18nRouter.call(void 0, );
|
|
8727
8760
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
@@ -8733,13 +8766,14 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId, on
|
|
|
8733
8766
|
setOpen(false);
|
|
8734
8767
|
if (onSuccess) await onSuccess();
|
|
8735
8768
|
else if (redirectTo) router.push(redirectTo);
|
|
8769
|
+
if (propagateChanges) propagateChanges();
|
|
8736
8770
|
} catch (error) {
|
|
8737
8771
|
errorToast({ title: t(`common.errors.delete`), error });
|
|
8738
8772
|
}
|
|
8739
8773
|
setIsDeleting(false);
|
|
8740
8774
|
}, "handleDelete");
|
|
8741
8775
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialog, { open, onOpenChange: setOpen, children: [
|
|
8742
|
-
forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8776
|
+
forceShow ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTrigger, { children: trigger || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8743
8777
|
Button,
|
|
8744
8778
|
{
|
|
8745
8779
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -8753,10 +8787,10 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId, on
|
|
|
8753
8787
|
) }),
|
|
8754
8788
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogContent, { className: `flex max-h-[70vh] max-w-3xl flex-col overflow-y-auto`, children: [
|
|
8755
8789
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AlertDialogHeader, { children: [
|
|
8756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: t(`common.delete.title`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: t(`common.delete.subtitle`, { type: t(`entities.${type}`, { count: 1 }) }) })
|
|
8790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogTitle, { children: _nullishCoalesce(title, () => ( t(`common.delete.title`, { type: t(`entities.${type}`, { count: 1 }) }))) }),
|
|
8791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDialogDescription, { children: _nullishCoalesce(subtitle, () => ( t(`common.delete.subtitle`, { type: t(`entities.${type}`, { count: 1 }) }))) })
|
|
8758
8792
|
] }),
|
|
8759
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8793
|
+
description !== void 0 ? description : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-destructive p-4 text-sm", children: t(`common.delete.description`, { type: t(`entities.${type}`, { count: 1 }) }) }),
|
|
8760
8794
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
|
|
8761
8795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8762
8796
|
Button,
|
|
@@ -8800,14 +8834,15 @@ function CommonEditorButtons({
|
|
|
8800
8834
|
disabled,
|
|
8801
8835
|
setOpen,
|
|
8802
8836
|
hideSubmit,
|
|
8803
|
-
centerButtons
|
|
8837
|
+
centerButtons,
|
|
8838
|
+
buttonTitle
|
|
8804
8839
|
}) {
|
|
8805
8840
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8806
8841
|
if (centerButtons) {
|
|
8807
8842
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-x-2", children: [
|
|
8808
8843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", type: `button`, onClick: () => setOpen(false), "data-testid": `modal-button-cancel`, children: t(`ui.buttons.cancel`) }),
|
|
8809
8844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-1 justify-center gap-x-2", children: centerButtons }),
|
|
8810
|
-
!hideSubmit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {})
|
|
8845
|
+
!hideSubmit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {})
|
|
8811
8846
|
] });
|
|
8812
8847
|
}
|
|
8813
8848
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end", children: [
|
|
@@ -8822,7 +8857,7 @@ function CommonEditorButtons({
|
|
|
8822
8857
|
children: t(`ui.buttons.cancel`)
|
|
8823
8858
|
}
|
|
8824
8859
|
),
|
|
8825
|
-
!hideSubmit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8860
|
+
!hideSubmit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "submit", disabled: form.formState.isSubmitting || disabled, "data-testid": `modal-button-create`, children: buttonTitle ? buttonTitle : isEdit ? t(`ui.buttons.confirm_update`) : t(`ui.buttons.confirm_create`) })
|
|
8826
8861
|
] });
|
|
8827
8862
|
}
|
|
8828
8863
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons");
|
|
@@ -8830,13 +8865,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorButtons, "CommonEditorButtons")
|
|
|
8830
8865
|
// src/components/forms/CommonEditorHeader.tsx
|
|
8831
8866
|
|
|
8832
8867
|
|
|
8833
|
-
function CommonEditorHeader({ type, name }) {
|
|
8868
|
+
function CommonEditorHeader({ type, name, title, description }) {
|
|
8834
8869
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8835
8870
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogHeader, { children: [
|
|
8836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: name ? t(`common.edit.update.title`, {
|
|
8871
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { children: title ? title : name ? t(`common.edit.update.title`, {
|
|
8837
8872
|
type
|
|
8838
8873
|
}) : t(`common.edit.create.title`, { type }) }),
|
|
8839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: name ? t(`common.edit.update.description`, {
|
|
8874
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogDescription, { children: description ? description : name ? t(`common.edit.update.description`, {
|
|
8840
8875
|
type,
|
|
8841
8876
|
name
|
|
8842
8877
|
}) : t(`common.edit.create.description`, {
|
|
@@ -8868,9 +8903,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, CommonEditorDiscardDialog, "CommonEditorDis
|
|
|
8868
8903
|
|
|
8869
8904
|
|
|
8870
8905
|
|
|
8871
|
-
|
|
8906
|
+
|
|
8907
|
+
function CommonEditorTrigger({ isEdit, edit: _edit, create, testId, title }) {
|
|
8872
8908
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
8873
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8909
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: `outline`, "data-testid": testId, children: title }) : isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8874
8910
|
Button,
|
|
8875
8911
|
{
|
|
8876
8912
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -8884,6 +8920,10 @@ function CommonEditorTrigger({ isEdit, edit: _edit, create, testId }) {
|
|
|
8884
8920
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}), nativeButton: false, size: "sm", variant: `outline`, "data-testid": testId, children: create ? create : t(`ui.buttons.create`) }) });
|
|
8885
8921
|
}
|
|
8886
8922
|
_chunk7QVYU63Ejs.__name.call(void 0, CommonEditorTrigger, "CommonEditorTrigger");
|
|
8923
|
+
var CommonAddTrigger = React.default.forwardRef(
|
|
8924
|
+
(props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { ref, variant: "ghost", size: "sm", className: "text-muted-foreground", ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PlusCircleIcon, {}) })
|
|
8925
|
+
);
|
|
8926
|
+
CommonAddTrigger.displayName = "CommonAddTrigger";
|
|
8887
8927
|
|
|
8888
8928
|
// src/components/forms/useEditorDialog.ts
|
|
8889
8929
|
|
|
@@ -8891,21 +8931,21 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
8891
8931
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8892
8932
|
const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
|
|
8893
8933
|
_react.useEffect.call(void 0, () => {
|
|
8894
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8934
|
+
if (_optionalChain([options, 'optionalAccess', _249 => _249.dialogOpen]) !== void 0) {
|
|
8895
8935
|
setOpen(options.dialogOpen);
|
|
8896
8936
|
}
|
|
8897
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
8937
|
+
}, [_optionalChain([options, 'optionalAccess', _250 => _250.dialogOpen])]);
|
|
8898
8938
|
_react.useEffect.call(void 0, () => {
|
|
8899
|
-
if (typeof _optionalChain([options, 'optionalAccess',
|
|
8939
|
+
if (typeof _optionalChain([options, 'optionalAccess', _251 => _251.onDialogOpenChange]) === "function") {
|
|
8900
8940
|
options.onDialogOpenChange(open);
|
|
8901
8941
|
}
|
|
8902
|
-
}, [open, _optionalChain([options, 'optionalAccess',
|
|
8942
|
+
}, [open, _optionalChain([options, 'optionalAccess', _252 => _252.onDialogOpenChange])]);
|
|
8903
8943
|
_react.useEffect.call(void 0, () => {
|
|
8904
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8905
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
8944
|
+
if (_optionalChain([options, 'optionalAccess', _253 => _253.forceShow])) setOpen(true);
|
|
8945
|
+
}, [_optionalChain([options, 'optionalAccess', _254 => _254.forceShow])]);
|
|
8906
8946
|
_react.useEffect.call(void 0, () => {
|
|
8907
8947
|
if (!open) {
|
|
8908
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8948
|
+
if (_optionalChain([options, 'optionalAccess', _255 => _255.onClose])) options.onClose();
|
|
8909
8949
|
}
|
|
8910
8950
|
}, [open]);
|
|
8911
8951
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
@@ -8982,6 +9022,7 @@ function EditorSheet({
|
|
|
8982
9022
|
onClose,
|
|
8983
9023
|
dialogOpen,
|
|
8984
9024
|
onDialogOpenChange,
|
|
9025
|
+
renderFooter,
|
|
8985
9026
|
children
|
|
8986
9027
|
}) {
|
|
8987
9028
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
@@ -8999,7 +9040,7 @@ function EditorSheet({
|
|
|
8999
9040
|
hasBeenOpen.current = true;
|
|
9000
9041
|
} else if (hasBeenOpen.current) {
|
|
9001
9042
|
form.reset(onReset());
|
|
9002
|
-
_optionalChain([onClose, 'optionalCall',
|
|
9043
|
+
_optionalChain([onClose, 'optionalCall', _256 => _256()]);
|
|
9003
9044
|
}
|
|
9004
9045
|
}, [open]);
|
|
9005
9046
|
const wrappedOnSubmit = _react.useCallback.call(void 0,
|
|
@@ -9013,11 +9054,11 @@ function EditorSheet({
|
|
|
9013
9054
|
if (onSuccess) {
|
|
9014
9055
|
await onSuccess();
|
|
9015
9056
|
} else if (result) {
|
|
9016
|
-
_optionalChain([onRevalidate, 'optionalCall',
|
|
9057
|
+
_optionalChain([onRevalidate, 'optionalCall', _257 => _257(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
|
|
9017
9058
|
if (isEdit && propagateChanges) {
|
|
9018
9059
|
propagateChanges(result);
|
|
9019
9060
|
} else {
|
|
9020
|
-
_optionalChain([onNavigate, 'optionalCall',
|
|
9061
|
+
_optionalChain([onNavigate, 'optionalCall', _258 => _258(generateUrl({ page: module, id: result.id }))]);
|
|
9021
9062
|
}
|
|
9022
9063
|
}
|
|
9023
9064
|
} catch (error) {
|
|
@@ -9031,7 +9072,7 @@ function EditorSheet({
|
|
|
9031
9072
|
);
|
|
9032
9073
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9033
9074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Sheet, { open, onOpenChange: handleOpenChange, children: [
|
|
9034
|
-
dialogOpen === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9075
|
+
dialogOpen === void 0 && forceShow === void 0 && (trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTrigger, { children: isEdit ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9035
9076
|
Button,
|
|
9036
9077
|
{
|
|
9037
9078
|
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}),
|
|
@@ -9047,20 +9088,30 @@ function EditorSheet({
|
|
|
9047
9088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetTitle, { children: _nullishCoalesce(titleOverride, () => ( (isEdit ? t("common.edit.update.title", { type: entityType }) : t("common.edit.create.title", { type: entityType })))) }),
|
|
9048
9089
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetDescription, { children: _nullishCoalesce(descriptionOverride, () => ( (isEdit ? t("common.edit.update.description", { type: entityType, name: _nullishCoalesce(entityName, () => ( "")) }) : t("common.edit.create.description", { type: entityType })))) })
|
|
9049
9090
|
] }),
|
|
9050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
form
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9092
|
+
"form",
|
|
9093
|
+
{
|
|
9094
|
+
onSubmit: (e) => {
|
|
9095
|
+
e.stopPropagation();
|
|
9096
|
+
return form.handleSubmit(wrappedOnSubmit)(e);
|
|
9097
|
+
},
|
|
9098
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
9099
|
+
children: [
|
|
9100
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 overflow-y-auto px-6 py-4", children }),
|
|
9101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SheetFooter, { className: "shrink-0 border-t px-6 py-4", children: renderFooter ? renderFooter({ form, isEdit, setOpen: handleOpenChange, closeWithoutConfirm: setOpen }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9102
|
+
CommonEditorButtons,
|
|
9103
|
+
{
|
|
9104
|
+
form,
|
|
9105
|
+
setOpen: handleOpenChange,
|
|
9106
|
+
isEdit,
|
|
9107
|
+
disabled,
|
|
9108
|
+
hideSubmit,
|
|
9109
|
+
centerButtons
|
|
9110
|
+
}
|
|
9111
|
+
) })
|
|
9112
|
+
]
|
|
9113
|
+
}
|
|
9114
|
+
) })
|
|
9064
9115
|
] })
|
|
9065
9116
|
] }),
|
|
9066
9117
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorDiscardDialog, { ...discardDialogProps })
|
|
@@ -9234,7 +9285,9 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
9234
9285
|
|
|
9235
9286
|
|
|
9236
9287
|
|
|
9288
|
+
|
|
9237
9289
|
function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth }) {
|
|
9290
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
9238
9291
|
const [date, setDate] = _react.useState.call(void 0,
|
|
9239
9292
|
avoidSettingDates ? void 0 : {
|
|
9240
9293
|
from: new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
@@ -9242,9 +9295,13 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9242
9295
|
}
|
|
9243
9296
|
);
|
|
9244
9297
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9298
|
+
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
9299
|
+
_react.useEffect.call(void 0, () => {
|
|
9300
|
+
setMounted(true);
|
|
9301
|
+
}, []);
|
|
9245
9302
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
9246
9303
|
_react.useEffect.call(void 0, () => {
|
|
9247
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
9304
|
+
if (_optionalChain([date, 'optionalAccess', _259 => _259.from]) && _optionalChain([date, 'optionalAccess', _260 => _260.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _261 => _261.from, 'optionalAccess', _262 => _262.getTime, 'call', _263 => _263()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _264 => _264.to, 'optionalAccess', _265 => _265.getTime, 'call', _266 => _266()]) !== date.to.getTime())) {
|
|
9248
9305
|
onDateChange(date);
|
|
9249
9306
|
setPrevRange(date);
|
|
9250
9307
|
setOpen(false);
|
|
@@ -9255,14 +9312,14 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9255
9312
|
setDate(void 0);
|
|
9256
9313
|
return;
|
|
9257
9314
|
}
|
|
9258
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
9315
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _267 => _267.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
9259
9316
|
setDate({ from: range.from, to: void 0 });
|
|
9260
9317
|
} else {
|
|
9261
9318
|
setDate(range);
|
|
9262
9319
|
}
|
|
9263
9320
|
}, "handleSelect");
|
|
9264
|
-
|
|
9265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9321
|
+
if (!mounted) {
|
|
9322
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkS2PTWBN6js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9266
9323
|
Button,
|
|
9267
9324
|
{
|
|
9268
9325
|
id: "date",
|
|
@@ -9270,20 +9327,43 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9270
9327
|
className: _chunkS2PTWBN6js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
9271
9328
|
children: [
|
|
9272
9329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9273
|
-
_optionalChain([date, 'optionalAccess',
|
|
9330
|
+
_optionalChain([date, 'optionalAccess', _268 => _268.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9274
9331
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
9275
9332
|
" - ",
|
|
9276
9333
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
9277
|
-
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "
|
|
9334
|
+
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("ui.labels.pick_a_date") })
|
|
9278
9335
|
]
|
|
9279
9336
|
}
|
|
9280
|
-
) })
|
|
9337
|
+
) });
|
|
9338
|
+
}
|
|
9339
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkS2PTWBN6js.cn.call(void 0, "grid gap-2"), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, children: [
|
|
9340
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9341
|
+
PopoverTrigger,
|
|
9342
|
+
{
|
|
9343
|
+
render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9344
|
+
Button,
|
|
9345
|
+
{
|
|
9346
|
+
id: "date",
|
|
9347
|
+
variant: "outline",
|
|
9348
|
+
className: _chunkS2PTWBN6js.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground")
|
|
9349
|
+
}
|
|
9350
|
+
),
|
|
9351
|
+
children: [
|
|
9352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9353
|
+
_optionalChain([date, 'optionalAccess', _269 => _269.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9354
|
+
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
9355
|
+
" - ",
|
|
9356
|
+
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
9357
|
+
] }) : _datefns.format.call(void 0, date.from, "LLL dd, y") : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("ui.labels.pick_a_date") })
|
|
9358
|
+
]
|
|
9359
|
+
}
|
|
9360
|
+
),
|
|
9281
9361
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 p-2", children: [
|
|
9282
9362
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9283
9363
|
Calendar,
|
|
9284
9364
|
{
|
|
9285
9365
|
mode: "range",
|
|
9286
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
9366
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _270 => _270.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
9287
9367
|
selected: date,
|
|
9288
9368
|
onSelect: handleSelect,
|
|
9289
9369
|
numberOfMonths: 2
|
|
@@ -9302,7 +9382,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9302
9382
|
},
|
|
9303
9383
|
className: "cursor-pointer",
|
|
9304
9384
|
disabled: !date,
|
|
9305
|
-
children: "
|
|
9385
|
+
children: t("ui.buttons.clear")
|
|
9306
9386
|
}
|
|
9307
9387
|
)
|
|
9308
9388
|
] }) })
|
|
@@ -9322,6 +9402,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, DateRangeSelector, "DateRangeSelector");
|
|
|
9322
9402
|
|
|
9323
9403
|
|
|
9324
9404
|
|
|
9405
|
+
|
|
9325
9406
|
var _reactdropzone = require('react-dropzone');
|
|
9326
9407
|
|
|
9327
9408
|
var FileUploaderContext = _react.createContext.call(void 0, null);
|
|
@@ -9370,7 +9451,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9370
9451
|
movePrev();
|
|
9371
9452
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
9372
9453
|
if (activeIndex === -1) {
|
|
9373
|
-
_optionalChain([dropzoneState, 'access',
|
|
9454
|
+
_optionalChain([dropzoneState, 'access', _271 => _271.inputRef, 'access', _272 => _272.current, 'optionalAccess', _273 => _273.click, 'call', _274 => _274()]);
|
|
9374
9455
|
}
|
|
9375
9456
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
9376
9457
|
if (activeIndex !== -1) {
|
|
@@ -9408,13 +9489,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9408
9489
|
onValueChange(newValues);
|
|
9409
9490
|
if (rejectedFiles.length > 0) {
|
|
9410
9491
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
9411
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9492
|
+
if (_optionalChain([rejectedFiles, 'access', _275 => _275[i], 'access', _276 => _276.errors, 'access', _277 => _277[0], 'optionalAccess', _278 => _278.code]) === "file-too-large") {
|
|
9412
9493
|
_chunkS2PTWBN6js.showError.call(void 0, t("common.errors.file"), {
|
|
9413
9494
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
9414
9495
|
});
|
|
9415
9496
|
break;
|
|
9416
9497
|
}
|
|
9417
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9498
|
+
if (_optionalChain([rejectedFiles, 'access', _279 => _279[i], 'access', _280 => _280.errors, 'access', _281 => _281[0], 'optionalAccess', _282 => _282.message])) {
|
|
9418
9499
|
_chunkS2PTWBN6js.showError.call(void 0, t(`common.errors.file`), {
|
|
9419
9500
|
description: rejectedFiles[i].errors[0].message
|
|
9420
9501
|
});
|
|
@@ -9451,7 +9532,8 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9451
9532
|
activeIndex,
|
|
9452
9533
|
setActiveIndex,
|
|
9453
9534
|
orientation,
|
|
9454
|
-
direction
|
|
9535
|
+
direction,
|
|
9536
|
+
accept: dropzoneOptions.accept
|
|
9455
9537
|
},
|
|
9456
9538
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9457
9539
|
"div",
|
|
@@ -9537,9 +9619,41 @@ var FileUploaderItem = _react.forwardRef.call(void 0,
|
|
|
9537
9619
|
FileUploaderItem.displayName = "FileUploaderItem";
|
|
9538
9620
|
var FileInput = _react.forwardRef.call(void 0,
|
|
9539
9621
|
({ className, children, ...props }, ref) => {
|
|
9540
|
-
const { dropzoneState, isFileTooBig, isLOF } = useFileUpload();
|
|
9622
|
+
const { dropzoneState, isFileTooBig, isLOF, accept } = useFileUpload();
|
|
9623
|
+
const t = _nextintl.useTranslations.call(void 0, );
|
|
9541
9624
|
const rootProps = isLOF ? {} : dropzoneState.getRootProps();
|
|
9542
9625
|
const { isDragActive: parentIsDragActive } = dropzoneState;
|
|
9626
|
+
const acceptedLabels = _react.useMemo.call(void 0, () => {
|
|
9627
|
+
if (!accept) return null;
|
|
9628
|
+
const extensions = /* @__PURE__ */ new Set();
|
|
9629
|
+
let hasWildcardImages = false;
|
|
9630
|
+
for (const [mime, exts] of Object.entries(accept)) {
|
|
9631
|
+
if (mime === "image/*") hasWildcardImages = true;
|
|
9632
|
+
for (const ext of exts) extensions.add(ext);
|
|
9633
|
+
}
|
|
9634
|
+
const labels = Array.from(extensions).sort();
|
|
9635
|
+
if (hasWildcardImages) labels.push(t("ui.labels.images"));
|
|
9636
|
+
return labels.length > 0 ? labels : null;
|
|
9637
|
+
}, [accept, t]);
|
|
9638
|
+
const dropArea = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9639
|
+
"div",
|
|
9640
|
+
{
|
|
9641
|
+
className: _chunkS2PTWBN6js.cn.call(void 0,
|
|
9642
|
+
"w-full rounded-lg duration-300 ease-in-out",
|
|
9643
|
+
// Simpler border logic: if parent is drag-active, it controls the border.
|
|
9644
|
+
// Otherwise, FileInput can show its own accept/reject/default border.
|
|
9645
|
+
{
|
|
9646
|
+
"border-green-500": dropzoneState.isDragAccept && !parentIsDragActive,
|
|
9647
|
+
"border-red-500": (dropzoneState.isDragReject || isFileTooBig) && !parentIsDragActive,
|
|
9648
|
+
"border-gray-300": !dropzoneState.isDragAccept && !dropzoneState.isDragReject && !isFileTooBig && !parentIsDragActive
|
|
9649
|
+
},
|
|
9650
|
+
// className from props should be last to allow overrides if necessary
|
|
9651
|
+
className
|
|
9652
|
+
),
|
|
9653
|
+
...rootProps,
|
|
9654
|
+
children
|
|
9655
|
+
}
|
|
9656
|
+
);
|
|
9543
9657
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9544
9658
|
"div",
|
|
9545
9659
|
{
|
|
@@ -9547,25 +9661,14 @@ var FileInput = _react.forwardRef.call(void 0,
|
|
|
9547
9661
|
...props,
|
|
9548
9662
|
className: _chunkS2PTWBN6js.cn.call(void 0, `relative w-full ${isLOF ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`, className),
|
|
9549
9663
|
children: [
|
|
9550
|
-
/* @__PURE__ */ _jsxruntime.
|
|
9551
|
-
|
|
9552
|
-
{
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
"border-green-500": dropzoneState.isDragAccept && !parentIsDragActive,
|
|
9559
|
-
"border-red-500": (dropzoneState.isDragReject || isFileTooBig) && !parentIsDragActive,
|
|
9560
|
-
"border-gray-300": !dropzoneState.isDragAccept && !dropzoneState.isDragReject && !isFileTooBig && !parentIsDragActive
|
|
9561
|
-
},
|
|
9562
|
-
// className from props should be last to allow overrides if necessary
|
|
9563
|
-
className
|
|
9564
|
-
),
|
|
9565
|
-
...rootProps,
|
|
9566
|
-
children
|
|
9567
|
-
}
|
|
9568
|
-
),
|
|
9664
|
+
acceptedLabels ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip2, { children: [
|
|
9665
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { render: dropArea }),
|
|
9666
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TooltipContent, { children: [
|
|
9667
|
+
t("ui.labels.accepted_file_types"),
|
|
9668
|
+
": ",
|
|
9669
|
+
acceptedLabels.join(", ")
|
|
9670
|
+
] })
|
|
9671
|
+
] }) : dropArea,
|
|
9569
9672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9570
9673
|
Input,
|
|
9571
9674
|
{
|
|
@@ -9691,7 +9794,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9691
9794
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9692
9795
|
|
|
9693
9796
|
|
|
9694
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
9797
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-CEWZCORH.js"))), {
|
|
9695
9798
|
ssr: false
|
|
9696
9799
|
});
|
|
9697
9800
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -9756,7 +9859,7 @@ function FormBlockNote({
|
|
|
9756
9859
|
onChange: (content, isEmpty) => {
|
|
9757
9860
|
lastEditorContentRef.current = content;
|
|
9758
9861
|
field.onChange(content);
|
|
9759
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
9862
|
+
_optionalChain([onEmptyChange, 'optionalCall', _283 => _283(isEmpty)]);
|
|
9760
9863
|
},
|
|
9761
9864
|
placeholder,
|
|
9762
9865
|
bordered: true,
|
|
@@ -9795,7 +9898,9 @@ function FormDate({
|
|
|
9795
9898
|
onChange,
|
|
9796
9899
|
isRequired = false,
|
|
9797
9900
|
defaultMonth,
|
|
9798
|
-
allowEmpty
|
|
9901
|
+
allowEmpty,
|
|
9902
|
+
description,
|
|
9903
|
+
futureYears
|
|
9799
9904
|
}) {
|
|
9800
9905
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
9801
9906
|
const locale = _chunk6KLR3WJQjs.useI18nLocale.call(void 0, );
|
|
@@ -9854,7 +9959,7 @@ function FormDate({
|
|
|
9854
9959
|
}
|
|
9855
9960
|
if (onChange) onChange(selectedDate);
|
|
9856
9961
|
}, "handleCalendarSelect");
|
|
9857
|
-
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: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9962
|
+
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: name, isRequired, description, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9858
9963
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, InputGroup, { children: [
|
|
9859
9964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9860
9965
|
InputGroupInput,
|
|
@@ -9898,7 +10003,7 @@ function FormDate({
|
|
|
9898
10003
|
month: displayMonth,
|
|
9899
10004
|
onMonthChange: setDisplayMonth,
|
|
9900
10005
|
startMonth: new Date(1900, 0),
|
|
9901
|
-
endMonth: new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11)
|
|
10006
|
+
endMonth: new Date((/* @__PURE__ */ new Date()).getFullYear() + (_nullishCoalesce(futureYears, () => ( 10))), 11)
|
|
9902
10007
|
}
|
|
9903
10008
|
),
|
|
9904
10009
|
allowEmpty !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9933,7 +10038,10 @@ function FormDateTime({
|
|
|
9933
10038
|
minDate,
|
|
9934
10039
|
onChange,
|
|
9935
10040
|
allowEmpty,
|
|
9936
|
-
defaultMonth
|
|
10041
|
+
defaultMonth,
|
|
10042
|
+
placeholder,
|
|
10043
|
+
isRequired,
|
|
10044
|
+
description
|
|
9937
10045
|
}) {
|
|
9938
10046
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9939
10047
|
const t = _chunk6KLR3WJQjs.useI18nTranslations.call(void 0, );
|
|
@@ -9985,7 +10093,7 @@ function FormDateTime({
|
|
|
9985
10093
|
if (onChange) onChange(updatedDate);
|
|
9986
10094
|
}
|
|
9987
10095
|
}, "handleTimeChange");
|
|
9988
|
-
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: name, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
10096
|
+
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: name, isRequired, description, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex flex-row", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Popover, { open, onOpenChange: setOpen, modal: true, children: [
|
|
9989
10097
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
9990
10098
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9991
10099
|
PopoverTrigger,
|
|
@@ -9998,7 +10106,7 @@ function FormDateTime({
|
|
|
9998
10106
|
}
|
|
9999
10107
|
),
|
|
10000
10108
|
children: [
|
|
10001
|
-
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t(`common.pick_date_time`) }),
|
|
10109
|
+
field.value ? formatDateTime(field.value) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: placeholder ? placeholder : t(`common.pick_date_time`) }),
|
|
10002
10110
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Calendar, { className: "ml-auto h-4 w-4 opacity-50" })
|
|
10003
10111
|
]
|
|
10004
10112
|
}
|
|
@@ -10132,6 +10240,7 @@ function FormInput({
|
|
|
10132
10240
|
form,
|
|
10133
10241
|
id,
|
|
10134
10242
|
name,
|
|
10243
|
+
description,
|
|
10135
10244
|
placeholder,
|
|
10136
10245
|
type,
|
|
10137
10246
|
onBlur,
|
|
@@ -10143,7 +10252,7 @@ function FormInput({
|
|
|
10143
10252
|
isRequired = false
|
|
10144
10253
|
}) {
|
|
10145
10254
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10146
|
-
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: name, isRequired, children: (field) => {
|
|
10255
|
+
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: name, description, isRequired, children: (field) => {
|
|
10147
10256
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (e) => {
|
|
10148
10257
|
let value = e.target.value;
|
|
10149
10258
|
if (type === "link" && value) {
|
|
@@ -10214,9 +10323,9 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormInput, "FormInput");
|
|
|
10214
10323
|
|
|
10215
10324
|
|
|
10216
10325
|
|
|
10217
|
-
var PasswordInput =
|
|
10326
|
+
var PasswordInput = React19.forwardRef(
|
|
10218
10327
|
({ className, type: _type, ...props }, ref) => {
|
|
10219
|
-
const [showPassword, setShowPassword] =
|
|
10328
|
+
const [showPassword, setShowPassword] = React19.useState(false);
|
|
10220
10329
|
const disabled = props.value === "" || props.value === void 0 || props.disabled;
|
|
10221
10330
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10222
10331
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
@@ -10259,19 +10368,31 @@ function FormPassword({
|
|
|
10259
10368
|
onBlur,
|
|
10260
10369
|
disabled,
|
|
10261
10370
|
testId,
|
|
10262
|
-
isRequired
|
|
10371
|
+
isRequired,
|
|
10372
|
+
description
|
|
10263
10373
|
}) {
|
|
10264
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10265
|
-
|
|
10374
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10375
|
+
FormFieldWrapper,
|
|
10266
10376
|
{
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10377
|
+
form,
|
|
10378
|
+
name: id,
|
|
10379
|
+
label: name,
|
|
10380
|
+
isRequired,
|
|
10381
|
+
description,
|
|
10382
|
+
testId,
|
|
10383
|
+
children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10384
|
+
PasswordInput,
|
|
10385
|
+
{
|
|
10386
|
+
...field,
|
|
10387
|
+
className: "w-full",
|
|
10388
|
+
disabled: disabled === true || form.formState.isSubmitting,
|
|
10389
|
+
placeholder: placeholder ? placeholder : "",
|
|
10390
|
+
onBlur,
|
|
10391
|
+
"data-testid": testId
|
|
10392
|
+
}
|
|
10393
|
+
)
|
|
10273
10394
|
}
|
|
10274
|
-
) })
|
|
10395
|
+
) });
|
|
10275
10396
|
}
|
|
10276
10397
|
_chunk7QVYU63Ejs.__name.call(void 0, FormPassword, "FormPassword");
|
|
10277
10398
|
|
|
@@ -10282,13 +10403,15 @@ function FormPlaceAutocomplete({
|
|
|
10282
10403
|
form,
|
|
10283
10404
|
id,
|
|
10284
10405
|
name,
|
|
10406
|
+
description,
|
|
10285
10407
|
placeholder,
|
|
10286
10408
|
disabled,
|
|
10287
10409
|
testId,
|
|
10288
10410
|
isRequired = false,
|
|
10289
10411
|
onPlaceSelect,
|
|
10290
10412
|
className,
|
|
10291
|
-
includeTypes
|
|
10413
|
+
includeTypes,
|
|
10414
|
+
languageCode = "en"
|
|
10292
10415
|
}) {
|
|
10293
10416
|
const [inputValue, setInputValue] = _react.useState.call(void 0, "");
|
|
10294
10417
|
const [suggestions, setSuggestions] = _react.useState.call(void 0, []);
|
|
@@ -10326,7 +10449,7 @@ function FormPlaceAutocomplete({
|
|
|
10326
10449
|
body: JSON.stringify({
|
|
10327
10450
|
input,
|
|
10328
10451
|
...includeTypes ? { includedPrimaryTypes: includeTypes } : {},
|
|
10329
|
-
languageCode
|
|
10452
|
+
languageCode
|
|
10330
10453
|
})
|
|
10331
10454
|
});
|
|
10332
10455
|
if (!response.ok) {
|
|
@@ -10335,11 +10458,11 @@ function FormPlaceAutocomplete({
|
|
|
10335
10458
|
const data = await response.json();
|
|
10336
10459
|
if (data.suggestions) {
|
|
10337
10460
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
10338
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
10339
|
-
description: _optionalChain([suggestion, 'access',
|
|
10461
|
+
place_id: _optionalChain([suggestion, 'access', _284 => _284.placePrediction, 'optionalAccess', _285 => _285.placeId]) || "",
|
|
10462
|
+
description: _optionalChain([suggestion, 'access', _286 => _286.placePrediction, 'optionalAccess', _287 => _287.text, 'optionalAccess', _288 => _288.text]) || "",
|
|
10340
10463
|
structured_formatting: {
|
|
10341
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
10342
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
10464
|
+
main_text: _optionalChain([suggestion, 'access', _289 => _289.placePrediction, 'optionalAccess', _290 => _290.structuredFormat, 'optionalAccess', _291 => _291.mainText, 'optionalAccess', _292 => _292.text]) || "",
|
|
10465
|
+
secondary_text: _optionalChain([suggestion, 'access', _293 => _293.placePrediction, 'optionalAccess', _294 => _294.structuredFormat, 'optionalAccess', _295 => _295.secondaryText, 'optionalAccess', _296 => _296.text]) || ""
|
|
10343
10466
|
}
|
|
10344
10467
|
}));
|
|
10345
10468
|
setSuggestions(formattedSuggestions);
|
|
@@ -10450,7 +10573,7 @@ function FormPlaceAutocomplete({
|
|
|
10450
10573
|
};
|
|
10451
10574
|
}, []);
|
|
10452
10575
|
if (loadError) {
|
|
10453
|
-
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: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10576
|
+
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: name, description, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10454
10577
|
Input,
|
|
10455
10578
|
{
|
|
10456
10579
|
...field,
|
|
@@ -10461,7 +10584,7 @@ function FormPlaceAutocomplete({
|
|
|
10461
10584
|
}
|
|
10462
10585
|
) }) });
|
|
10463
10586
|
}
|
|
10464
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", ref: containerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
10587
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", ref: containerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FormFieldWrapper, { form, name: id, label: name, description, isRequired, children: (field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", children: [
|
|
10465
10588
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10466
10589
|
Input,
|
|
10467
10590
|
{
|
|
@@ -10486,8 +10609,8 @@ function FormPlaceAutocomplete({
|
|
|
10486
10609
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
10487
10610
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
10488
10611
|
children: [
|
|
10489
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
10490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
10612
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _297 => _297.structured_formatting, 'optionalAccess', _298 => _298.main_text]) }),
|
|
10613
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _299 => _299.structured_formatting, 'optionalAccess', _300 => _300.secondary_text]) })
|
|
10491
10614
|
]
|
|
10492
10615
|
},
|
|
10493
10616
|
suggestion.place_id || index
|
|
@@ -10503,6 +10626,7 @@ function FormSelect({
|
|
|
10503
10626
|
form,
|
|
10504
10627
|
id,
|
|
10505
10628
|
name,
|
|
10629
|
+
description,
|
|
10506
10630
|
placeholder,
|
|
10507
10631
|
disabled,
|
|
10508
10632
|
values,
|
|
@@ -10518,6 +10642,7 @@ function FormSelect({
|
|
|
10518
10642
|
form,
|
|
10519
10643
|
name: id,
|
|
10520
10644
|
label: name,
|
|
10645
|
+
description,
|
|
10521
10646
|
isRequired,
|
|
10522
10647
|
orientation: useRows ? "horizontal" : "vertical",
|
|
10523
10648
|
testId,
|
|
@@ -10533,7 +10658,7 @@ function FormSelect({
|
|
|
10533
10658
|
disabled,
|
|
10534
10659
|
"data-testid": testId,
|
|
10535
10660
|
children: [
|
|
10536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
10661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _301 => _301.find, 'call', _302 => _302((v) => v.id === field.value), 'optionalAccess', _303 => _303.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
10537
10662
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
10538
10663
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
10539
10664
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -10554,10 +10679,11 @@ function FormSlider({
|
|
|
10554
10679
|
id,
|
|
10555
10680
|
name,
|
|
10556
10681
|
disabled,
|
|
10557
|
-
showPercentage
|
|
10682
|
+
showPercentage,
|
|
10683
|
+
description
|
|
10558
10684
|
}) {
|
|
10559
10685
|
const value = _reacthookform.useWatch.call(void 0, { control: form.control, name: id });
|
|
10560
|
-
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: name, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
10686
|
+
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: name, description, children: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
10561
10687
|
showPercentage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mb-2 flex w-full justify-center text-xs", children: `${value}%` }),
|
|
10562
10688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10563
10689
|
Slider,
|
|
@@ -10603,18 +10729,33 @@ function FormTextarea({
|
|
|
10603
10729
|
name,
|
|
10604
10730
|
className,
|
|
10605
10731
|
placeholder,
|
|
10606
|
-
testId
|
|
10732
|
+
testId,
|
|
10733
|
+
description,
|
|
10734
|
+
isRequired,
|
|
10735
|
+
textareaRef
|
|
10607
10736
|
}) {
|
|
10608
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10609
|
-
|
|
10737
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10738
|
+
FormFieldWrapper,
|
|
10610
10739
|
{
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10740
|
+
form,
|
|
10741
|
+
name: id,
|
|
10742
|
+
label: name,
|
|
10743
|
+
description,
|
|
10744
|
+
isRequired,
|
|
10745
|
+
testId,
|
|
10746
|
+
children: (field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10747
|
+
Textarea,
|
|
10748
|
+
{
|
|
10749
|
+
...field,
|
|
10750
|
+
ref: textareaRef,
|
|
10751
|
+
className: _chunkS2PTWBN6js.cn.call(void 0, "min-h-96 w-full", className),
|
|
10752
|
+
disabled: form.formState.isSubmitting,
|
|
10753
|
+
placeholder,
|
|
10754
|
+
"data-testid": testId
|
|
10755
|
+
}
|
|
10756
|
+
)
|
|
10616
10757
|
}
|
|
10617
|
-
) })
|
|
10758
|
+
) });
|
|
10618
10759
|
}
|
|
10619
10760
|
_chunk7QVYU63Ejs.__name.call(void 0, FormTextarea, "FormTextarea");
|
|
10620
10761
|
|
|
@@ -10704,7 +10845,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
10704
10845
|
}, "getInitials");
|
|
10705
10846
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10706
10847
|
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: [
|
|
10707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
10848
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _304 => _304.avatar]) }),
|
|
10708
10849
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
10709
10850
|
] }) });
|
|
10710
10851
|
}, "getAvatar");
|
|
@@ -10895,7 +11036,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
10895
11036
|
})
|
|
10896
11037
|
};
|
|
10897
11038
|
const columns = _react.useMemo.call(void 0, () => {
|
|
10898
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
11039
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _305 => _305[field], 'optionalCall', _306 => _306()])).filter((col) => col !== void 0);
|
|
10899
11040
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
10900
11041
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
10901
11042
|
}, "useUserTableStructure");
|
|
@@ -11009,10 +11150,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
11009
11150
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
11010
11151
|
/* @__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: [
|
|
11011
11152
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "*:ring-border *:ring-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Avatar, { className: `mr-2 h-4 w-4`, children: [
|
|
11012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
11013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
11153
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _307 => _307.value, 'optionalAccess', _308 => _308.avatar]) }),
|
|
11154
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _309 => _309.value, 'optionalAccess', _310 => _310.name]) ? _optionalChain([field, 'access', _311 => _311.value, 'optionalAccess', _312 => _312.name, 'access', _313 => _313.split, 'call', _314 => _314(" "), 'access', _315 => _315.map, 'call', _316 => _316((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
11014
11155
|
] }) }),
|
|
11015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
11156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _317 => _317.value, 'optionalAccess', _318 => _318.name]), () => ( "")) })
|
|
11016
11157
|
] }) : /* @__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 }) }))) }) }) }),
|
|
11017
11158
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11018
11159
|
_lucidereact.CircleX,
|
|
@@ -11343,7 +11484,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
11343
11484
|
const data = useDataListRetriever({
|
|
11344
11485
|
ready: !!company,
|
|
11345
11486
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkS2PTWBN6js.UserService.findAllUsers(params), "retriever"),
|
|
11346
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
11487
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _319 => _319.id]), isDeleted },
|
|
11347
11488
|
module: _chunkS2PTWBN6js.Modules.User
|
|
11348
11489
|
});
|
|
11349
11490
|
_react.useEffect.call(void 0, () => {
|
|
@@ -11450,11 +11591,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
11450
11591
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
11451
11592
|
onClick: (_e) => {
|
|
11452
11593
|
setSelectedUser(user);
|
|
11453
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11594
|
+
_optionalChain([setLevelOpen, 'optionalCall', _320 => _320(true)]);
|
|
11454
11595
|
},
|
|
11455
11596
|
onSelect: (_e) => {
|
|
11456
11597
|
setSelectedUser(user);
|
|
11457
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11598
|
+
_optionalChain([setLevelOpen, 'optionalCall', _321 => _321(true)]);
|
|
11458
11599
|
},
|
|
11459
11600
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
11460
11601
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -11585,7 +11726,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11585
11726
|
company.legal_address
|
|
11586
11727
|
] }),
|
|
11587
11728
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
11588
|
-
_optionalChain([company, 'access',
|
|
11729
|
+
_optionalChain([company, 'access', _322 => _322.configurations, 'optionalAccess', _323 => _323.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11589
11730
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11590
11731
|
t("features.configuration.country"),
|
|
11591
11732
|
":"
|
|
@@ -11593,7 +11734,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11593
11734
|
" ",
|
|
11594
11735
|
company.configurations.country
|
|
11595
11736
|
] }),
|
|
11596
|
-
_optionalChain([company, 'access',
|
|
11737
|
+
_optionalChain([company, 'access', _324 => _324.configurations, 'optionalAccess', _325 => _325.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11597
11738
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11598
11739
|
t("features.configuration.currency"),
|
|
11599
11740
|
":"
|
|
@@ -12003,7 +12144,7 @@ function CompanyEditorInternal({
|
|
|
12003
12144
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12004
12145
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
12005
12146
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
12006
|
-
const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
12147
|
+
const canAccessFeatures = hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _326 => _326.env, 'access', _327 => _327.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _328 => _328.toLowerCase, 'call', _329 => _329()]) === "true";
|
|
12007
12148
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
12008
12149
|
(open) => {
|
|
12009
12150
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
@@ -12018,7 +12159,7 @@ function CompanyEditorInternal({
|
|
|
12018
12159
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
12019
12160
|
fetchFeatures();
|
|
12020
12161
|
}
|
|
12021
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
12162
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _330 => _330(open)]);
|
|
12022
12163
|
},
|
|
12023
12164
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
12024
12165
|
);
|
|
@@ -12063,12 +12204,12 @@ function CompanyEditorInternal({
|
|
|
12063
12204
|
);
|
|
12064
12205
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
12065
12206
|
return {
|
|
12066
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
12067
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
12068
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
12069
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
12070
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
12071
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
12207
|
+
id: _optionalChain([company, 'optionalAccess', _331 => _331.id]) || _uuid.v4.call(void 0, ),
|
|
12208
|
+
name: _optionalChain([company, 'optionalAccess', _332 => _332.name]) || "",
|
|
12209
|
+
featureIds: _optionalChain([company, 'optionalAccess', _333 => _333.features, 'access', _334 => _334.map, 'call', _335 => _335((feature) => feature.id)]) || [],
|
|
12210
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _336 => _336.modules, 'access', _337 => _337.map, 'call', _338 => _338((module) => module.id)]) || [],
|
|
12211
|
+
logo: _optionalChain([company, 'optionalAccess', _339 => _339.logo]) || "",
|
|
12212
|
+
legal_address: _optionalChain([company, 'optionalAccess', _340 => _340.legal_address]) || ""
|
|
12072
12213
|
};
|
|
12073
12214
|
}, [company]);
|
|
12074
12215
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -12080,7 +12221,7 @@ function CompanyEditorInternal({
|
|
|
12080
12221
|
{
|
|
12081
12222
|
form,
|
|
12082
12223
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
12083
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
12224
|
+
entityName: _optionalChain([company, 'optionalAccess', _341 => _341.name]),
|
|
12084
12225
|
isEdit: !!company,
|
|
12085
12226
|
module: _chunkS2PTWBN6js.Modules.Company,
|
|
12086
12227
|
propagateChanges,
|
|
@@ -12105,7 +12246,7 @@ function CompanyEditorInternal({
|
|
|
12105
12246
|
throw new Error("Fiscal data validation failed");
|
|
12106
12247
|
}
|
|
12107
12248
|
const payload = {
|
|
12108
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
12249
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _342 => _342.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
12109
12250
|
name: values.name,
|
|
12110
12251
|
logo: files && contentType ? values.logo : void 0,
|
|
12111
12252
|
featureIds: values.featureIds,
|
|
@@ -12136,10 +12277,10 @@ function CompanyEditorInternal({
|
|
|
12136
12277
|
dialogOpen,
|
|
12137
12278
|
onDialogOpenChange: handleDialogOpenChange,
|
|
12138
12279
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
12139
|
-
/* @__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-neutral-300 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',
|
|
12280
|
+
/* @__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-neutral-300 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', _343 => _343.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12140
12281
|
_image2.default,
|
|
12141
12282
|
{
|
|
12142
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
12283
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _344 => _344.logo]) || "",
|
|
12143
12284
|
alt: "Company Logo",
|
|
12144
12285
|
width: 200,
|
|
12145
12286
|
height: 200
|
|
@@ -12173,7 +12314,7 @@ function CompanyEditorInternal({
|
|
|
12173
12314
|
}
|
|
12174
12315
|
),
|
|
12175
12316
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mt-2 text-sm font-semibold", children: t(`company.sections.fiscal_data`) }),
|
|
12176
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
12317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _345 => _345.fiscal_data])) })
|
|
12177
12318
|
] }),
|
|
12178
12319
|
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 }) }) })
|
|
12179
12320
|
] })
|
|
@@ -12290,7 +12431,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
12290
12431
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12291
12432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12292
12433
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12293
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12434
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _346 => _346.actor, 'optionalAccess', _347 => _347.name]), () => ( "")),
|
|
12294
12435
|
title: data.title,
|
|
12295
12436
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12296
12437
|
}) }),
|
|
@@ -12319,7 +12460,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
12319
12460
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12320
12461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12321
12462
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12322
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12463
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _348 => _348.actor, 'optionalAccess', _349 => _349.name]), () => ( "")),
|
|
12323
12464
|
title: data.title,
|
|
12324
12465
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12325
12466
|
}) }),
|
|
@@ -12383,7 +12524,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
12383
12524
|
_react.useEffect.call(void 0, () => {
|
|
12384
12525
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
12385
12526
|
if (_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) {
|
|
12386
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
12527
|
+
const isAdmin = _optionalChain([currentUser, 'access', _350 => _350.roles, 'optionalAccess', _351 => _351.some, 'call', _352 => _352((role) => role.id === _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator)]);
|
|
12387
12528
|
if (isAdmin) {
|
|
12388
12529
|
setHasInitiallyLoaded(true);
|
|
12389
12530
|
return;
|
|
@@ -12585,7 +12726,7 @@ function OnboardingProvider({
|
|
|
12585
12726
|
let tourSteps = steps;
|
|
12586
12727
|
if (!tourSteps) {
|
|
12587
12728
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
12588
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
12729
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _353 => _353.steps]);
|
|
12589
12730
|
}
|
|
12590
12731
|
if (!tourSteps || tourSteps.length === 0) {
|
|
12591
12732
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -12653,10 +12794,10 @@ function OnboardingProvider({
|
|
|
12653
12794
|
when: {
|
|
12654
12795
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12655
12796
|
setCurrentStepIndex(index);
|
|
12656
|
-
_optionalChain([stepConfig, 'access',
|
|
12797
|
+
_optionalChain([stepConfig, 'access', _354 => _354.onShow, 'optionalCall', _355 => _355()]);
|
|
12657
12798
|
}, "show"),
|
|
12658
12799
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12659
|
-
_optionalChain([stepConfig, 'access',
|
|
12800
|
+
_optionalChain([stepConfig, 'access', _356 => _356.onHide, 'optionalCall', _357 => _357()]);
|
|
12660
12801
|
}, "hide")
|
|
12661
12802
|
}
|
|
12662
12803
|
});
|
|
@@ -12822,7 +12963,7 @@ function HowToMultiSelector({
|
|
|
12822
12963
|
retriever: (params) => _chunkS2PTWBN6js.HowToService.findMany(params),
|
|
12823
12964
|
module: _chunkS2PTWBN6js.Modules.HowTo,
|
|
12824
12965
|
getLabel: (howTo) => howTo.name,
|
|
12825
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
12966
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _358 => _358.id]),
|
|
12826
12967
|
onChange
|
|
12827
12968
|
}
|
|
12828
12969
|
);
|
|
@@ -12930,17 +13071,17 @@ function HowToEditorInternal({
|
|
|
12930
13071
|
);
|
|
12931
13072
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
12932
13073
|
() => ({
|
|
12933
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
12934
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
12935
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
12936
|
-
pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
12937
|
-
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12938
|
-
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12939
|
-
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12940
|
-
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12941
|
-
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12942
|
-
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
12943
|
-
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess',
|
|
13074
|
+
id: _optionalChain([howTo, 'optionalAccess', _359 => _359.id]) || _uuid.v4.call(void 0, ),
|
|
13075
|
+
name: _optionalChain([howTo, 'optionalAccess', _360 => _360.name]) || "",
|
|
13076
|
+
description: _optionalChain([howTo, 'optionalAccess', _361 => _361.description]) || [],
|
|
13077
|
+
pages: _chunkS2PTWBN6js.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _362 => _362.pages])),
|
|
13078
|
+
howToType: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _363 => _363.howToType]), () => ( "how-to")),
|
|
13079
|
+
slug: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _364 => _364.slug]), () => ( "")),
|
|
13080
|
+
order: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _365 => _365.order]), () => ( 0)),
|
|
13081
|
+
summary: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _366 => _366.summary]), () => ( "")),
|
|
13082
|
+
tags: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _367 => _367.tags]), () => ( []))).join(", "),
|
|
13083
|
+
contextualKeys: (_nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _368 => _368.contextualKeys]), () => ( []))).join(", "),
|
|
13084
|
+
draft: _nullishCoalesce(_optionalChain([howTo, 'optionalAccess', _369 => _369.draft]), () => ( false)),
|
|
12944
13085
|
relatedArticles: []
|
|
12945
13086
|
}),
|
|
12946
13087
|
[howTo]
|
|
@@ -12951,7 +13092,7 @@ function HowToEditorInternal({
|
|
|
12951
13092
|
});
|
|
12952
13093
|
const initialRelatedIds = _react.useRef.call(void 0, []);
|
|
12953
13094
|
_react.useEffect.call(void 0, () => {
|
|
12954
|
-
if (!_optionalChain([howTo, 'optionalAccess',
|
|
13095
|
+
if (!_optionalChain([howTo, 'optionalAccess', _370 => _370.howToType]) || !_optionalChain([howTo, 'optionalAccess', _371 => _371.slug])) return;
|
|
12955
13096
|
let active = true;
|
|
12956
13097
|
_chunkS2PTWBN6js.HowToService.findRelated({ howToType: howTo.howToType, slug: howTo.slug }).then((list) => {
|
|
12957
13098
|
if (!active) return;
|
|
@@ -12990,7 +13131,7 @@ function HowToEditorInternal({
|
|
|
12990
13131
|
{
|
|
12991
13132
|
form,
|
|
12992
13133
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
12993
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
13134
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _372 => _372.name]),
|
|
12994
13135
|
isEdit: !!howTo,
|
|
12995
13136
|
module: _chunkS2PTWBN6js.Modules.HowTo,
|
|
12996
13137
|
propagateChanges,
|
|
@@ -13371,7 +13512,7 @@ function withPatchedTitle(source, title) {
|
|
|
13371
13512
|
return _chunkS2PTWBN6js.rehydrate.call(void 0, _chunkS2PTWBN6js.Modules.Assistant, {
|
|
13372
13513
|
jsonApi: {
|
|
13373
13514
|
...dehydrated.jsonApi,
|
|
13374
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
13515
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _373 => _373.jsonApi, 'optionalAccess', _374 => _374.attributes]), () => ( {})), title }
|
|
13375
13516
|
},
|
|
13376
13517
|
included: dehydrated.included
|
|
13377
13518
|
});
|
|
@@ -13392,7 +13533,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13392
13533
|
const [status, setStatus] = _react.useState.call(void 0, void 0);
|
|
13393
13534
|
const [failedMessageIds, setFailedMessageIds] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
13394
13535
|
const [operatorMode, setOperatorMode] = _react.useState.call(void 0,
|
|
13395
|
-
() => _optionalChain([dehydratedAssistant, 'optionalAccess',
|
|
13536
|
+
() => _optionalChain([dehydratedAssistant, 'optionalAccess', _375 => _375.jsonApi, 'optionalAccess', _376 => _376.attributes, 'optionalAccess', _377 => _377.engine]) === "operator"
|
|
13396
13537
|
);
|
|
13397
13538
|
const { socket } = useSocketContext();
|
|
13398
13539
|
const sendMessage = _react.useCallback.call(void 0,
|
|
@@ -13401,7 +13542,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13401
13542
|
if (!trimmed) return;
|
|
13402
13543
|
const optimistic = _chunkS2PTWBN6js.AssistantMessage.buildOptimistic({
|
|
13403
13544
|
content: trimmed,
|
|
13404
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
13545
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _378 => _378.id]),
|
|
13405
13546
|
position: nextPosition(messages)
|
|
13406
13547
|
});
|
|
13407
13548
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -13411,13 +13552,13 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13411
13552
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
13412
13553
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
13413
13554
|
}, "handler");
|
|
13414
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13555
|
+
_optionalChain([socket, 'optionalAccess', _379 => _379.on, 'call', _380 => _380("assistant:status", handler)]);
|
|
13415
13556
|
try {
|
|
13416
13557
|
if (!assistant) {
|
|
13417
13558
|
const input = {
|
|
13418
13559
|
firstMessage: trimmed,
|
|
13419
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13420
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13560
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _381 => _381.howToMode]),
|
|
13561
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _382 => _382.limitToHowToId])
|
|
13421
13562
|
};
|
|
13422
13563
|
const created = operatorMode ? await _chunkS2PTWBN6js.AssistantService.createOperator(input) : await _chunkS2PTWBN6js.AssistantService.create(input);
|
|
13423
13564
|
const msgs = await _chunkS2PTWBN6js.AssistantMessageService.findByAssistant({ assistantId: created.id });
|
|
@@ -13434,8 +13575,8 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13434
13575
|
}) : await _chunkS2PTWBN6js.AssistantService.appendMessage({
|
|
13435
13576
|
assistantId: assistant.id,
|
|
13436
13577
|
content: trimmed,
|
|
13437
|
-
howToMode: _optionalChain([opts, 'optionalAccess',
|
|
13438
|
-
limitToHowToId: _optionalChain([opts, 'optionalAccess',
|
|
13578
|
+
howToMode: _optionalChain([opts, 'optionalAccess', _383 => _383.howToMode]),
|
|
13579
|
+
limitToHowToId: _optionalChain([opts, 'optionalAccess', _384 => _384.limitToHowToId])
|
|
13439
13580
|
});
|
|
13440
13581
|
setMessages((prev) => [...stripOptimistic(prev), ...result]);
|
|
13441
13582
|
}
|
|
@@ -13446,7 +13587,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13446
13587
|
return next;
|
|
13447
13588
|
});
|
|
13448
13589
|
} finally {
|
|
13449
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13590
|
+
_optionalChain([socket, 'optionalAccess', _385 => _385.off, 'call', _386 => _386("assistant:status", handler)]);
|
|
13450
13591
|
setSending(false);
|
|
13451
13592
|
setStatus(void 0);
|
|
13452
13593
|
}
|
|
@@ -13504,7 +13645,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages,
|
|
|
13504
13645
|
await _chunkS2PTWBN6js.AssistantService.delete({ id });
|
|
13505
13646
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
13506
13647
|
setAssistant((prev) => {
|
|
13507
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
13648
|
+
if (_optionalChain([prev, 'optionalAccess', _387 => _387.id]) === id) {
|
|
13508
13649
|
setMessages([]);
|
|
13509
13650
|
return void 0;
|
|
13510
13651
|
}
|
|
@@ -13724,7 +13865,7 @@ function EditableAvatar({
|
|
|
13724
13865
|
}, [image, isUploading, patchImage, t]);
|
|
13725
13866
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
13726
13867
|
(e) => {
|
|
13727
|
-
const file = _optionalChain([e, 'access',
|
|
13868
|
+
const file = _optionalChain([e, 'access', _388 => _388.target, 'access', _389 => _389.files, 'optionalAccess', _390 => _390[0]]);
|
|
13728
13869
|
if (file) handleFile(file);
|
|
13729
13870
|
e.target.value = "";
|
|
13730
13871
|
},
|
|
@@ -13733,7 +13874,7 @@ function EditableAvatar({
|
|
|
13733
13874
|
const handleDrop = _react.useCallback.call(void 0,
|
|
13734
13875
|
(e) => {
|
|
13735
13876
|
e.preventDefault();
|
|
13736
|
-
const file = _optionalChain([e, 'access',
|
|
13877
|
+
const file = _optionalChain([e, 'access', _391 => _391.dataTransfer, 'access', _392 => _392.files, 'optionalAccess', _393 => _393[0]]);
|
|
13737
13878
|
if (file && file.type.startsWith("image/")) {
|
|
13738
13879
|
handleFile(file);
|
|
13739
13880
|
}
|
|
@@ -13760,7 +13901,7 @@ function EditableAvatar({
|
|
|
13760
13901
|
"button",
|
|
13761
13902
|
{
|
|
13762
13903
|
type: "button",
|
|
13763
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
13904
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _394 => _394.current, 'optionalAccess', _395 => _395.click, 'call', _396 => _396()]),
|
|
13764
13905
|
disabled: isUploading,
|
|
13765
13906
|
className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
|
|
13766
13907
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
|
|
@@ -13810,19 +13951,19 @@ function BreadcrumbDesktop({
|
|
|
13810
13951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
|
|
13811
13952
|
items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
|
|
13812
13953
|
items.length > ITEMS_TO_DISPLAY ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13813
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
|
|
13954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: items[0].href, onClick: items[0].onClick, children: items[0].name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items[0].name }) }),
|
|
13814
13955
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
|
|
13815
13956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
13816
13957
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
|
|
13817
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
|
|
13958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuItem, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href ? item.href : "#", onClick: item.onClick, children: item.name }) }, index)) })
|
|
13818
13959
|
] }) }),
|
|
13819
13960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {}),
|
|
13820
13961
|
items.slice(-ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
13821
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
|
|
13962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { 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 }) }),
|
|
13822
13963
|
index < items.slice(-ITEMS_TO_DISPLAY + 2).length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
|
|
13823
13964
|
] }, index))
|
|
13824
13965
|
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
13825
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { children: item.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: item.href, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }),
|
|
13966
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbItem, { 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 }) }),
|
|
13826
13967
|
index < items.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbSeparator, {})
|
|
13827
13968
|
] }, index)) })
|
|
13828
13969
|
] }) });
|
|
@@ -13841,10 +13982,10 @@ function BreadcrumbMobile({
|
|
|
13841
13982
|
}
|
|
13842
13983
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
13843
13984
|
/* @__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: [
|
|
13844
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
13985
|
+
_optionalChain([lastItem, 'optionalAccess', _397 => _397.name]),
|
|
13845
13986
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
13846
13987
|
] }),
|
|
13847
|
-
/* @__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, children: item.name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: item.name }) }, index)) })
|
|
13988
|
+
/* @__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)) })
|
|
13848
13989
|
] });
|
|
13849
13990
|
}
|
|
13850
13991
|
_chunk7QVYU63Ejs.__name.call(void 0, BreadcrumbMobile, "BreadcrumbMobile");
|
|
@@ -14146,7 +14287,7 @@ function RoundPageContainer({
|
|
|
14146
14287
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
14147
14288
|
_react.useEffect.call(void 0, () => {
|
|
14148
14289
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
|
|
14149
|
-
if (_optionalChain([match, 'optionalAccess',
|
|
14290
|
+
if (_optionalChain([match, 'optionalAccess', _398 => _398.split, 'call', _399 => _399("="), 'access', _400 => _400[1]]) === "true") setShowDetailsState(true);
|
|
14150
14291
|
}, []);
|
|
14151
14292
|
_react.useEffect.call(void 0, () => {
|
|
14152
14293
|
setMounted(true);
|
|
@@ -14158,11 +14299,11 @@ function RoundPageContainer({
|
|
|
14158
14299
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
14159
14300
|
const section = searchParams.get("section");
|
|
14160
14301
|
const rewriteUrl = useUrlRewriter();
|
|
14161
|
-
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
14302
|
+
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _401 => _401.key, 'optionalAccess', _402 => _402.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _403 => _403[0], 'access', _404 => _404.key, 'optionalAccess', _405 => _405.name]), () => ( tabs[0].label))) : void 0;
|
|
14162
14303
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
14163
14304
|
_react.useEffect.call(void 0, () => {
|
|
14164
14305
|
if (tabs && section) {
|
|
14165
|
-
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
14306
|
+
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _406 => _406.key, 'optionalAccess', _407 => _407.name]), () => ( i.label))) === section);
|
|
14166
14307
|
if (tab) {
|
|
14167
14308
|
setActiveTab(section);
|
|
14168
14309
|
}
|
|
@@ -14175,7 +14316,7 @@ function RoundPageContainer({
|
|
|
14175
14316
|
},
|
|
14176
14317
|
[module, id, rewriteUrl]
|
|
14177
14318
|
);
|
|
14178
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
14319
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _408 => _408.find, 'call', _409 => _409((t) => (_nullishCoalesce(_optionalChain([t, 'access', _410 => _410.key, 'optionalAccess', _411 => _411.name]), () => ( t.label))) === activeTab), 'optionalAccess', _412 => _412.fillHeight]) === true;
|
|
14179
14320
|
const isReady = mounted && isMobile !== void 0;
|
|
14180
14321
|
if (!isReady) {
|
|
14181
14322
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -14233,10 +14374,10 @@ function RoundPageContainer({
|
|
|
14233
14374
|
},
|
|
14234
14375
|
children: [
|
|
14235
14376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
14236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14377
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _413 => _413.key, 'optionalAccess', _414 => _414.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
|
|
14237
14378
|
]
|
|
14238
14379
|
}
|
|
14239
|
-
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14380
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsList, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: _nullishCoalesce(_optionalChain([tab, 'access', _415 => _415.key, 'optionalAccess', _416 => _416.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
|
|
14240
14381
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14241
14382
|
"div",
|
|
14242
14383
|
{
|
|
@@ -14248,7 +14389,7 @@ function RoundPageContainer({
|
|
|
14248
14389
|
children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14249
14390
|
TabsContent,
|
|
14250
14391
|
{
|
|
14251
|
-
value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
14392
|
+
value: _nullishCoalesce(_optionalChain([tab, 'access', _417 => _417.key, 'optionalAccess', _418 => _418.name]), () => ( tab.label)),
|
|
14252
14393
|
className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
|
|
14253
14394
|
children: tab.content
|
|
14254
14395
|
},
|
|
@@ -14377,14 +14518,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14377
14518
|
const entityType = target.dataset.mentionType;
|
|
14378
14519
|
const alias = target.dataset.mentionAlias;
|
|
14379
14520
|
setHovered((prev) => {
|
|
14380
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
14521
|
+
if (_optionalChain([prev, 'optionalAccess', _419 => _419.id]) === id && _optionalChain([prev, 'optionalAccess', _420 => _420.element]) === target) return prev;
|
|
14381
14522
|
return { id, entityType, alias, element: target };
|
|
14382
14523
|
});
|
|
14383
14524
|
}, "handleMouseOver");
|
|
14384
14525
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
14385
14526
|
const target = e.target.closest("[data-mention-id]");
|
|
14386
14527
|
if (!target) return;
|
|
14387
|
-
const related = _optionalChain([e, 'access',
|
|
14528
|
+
const related = _optionalChain([e, 'access', _421 => _421.relatedTarget, 'optionalAccess', _422 => _422.closest, 'call', _423 => _423("[data-mention-id]")]);
|
|
14388
14529
|
if (related) return;
|
|
14389
14530
|
scheduleClose();
|
|
14390
14531
|
}, "handleMouseOut");
|
|
@@ -14398,7 +14539,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
14398
14539
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
14399
14540
|
if (!hovered || !mentionResolveFn) return null;
|
|
14400
14541
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
14401
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
14542
|
+
if (!_optionalChain([resolved, 'optionalAccess', _424 => _424.HoverContent])) return null;
|
|
14402
14543
|
const ContentComponent = resolved.HoverContent;
|
|
14403
14544
|
const rect = hovered.element.getBoundingClientRect();
|
|
14404
14545
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -14441,28 +14582,28 @@ var parseMentionElement = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
14441
14582
|
}, "parseMentionElement");
|
|
14442
14583
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
14443
14584
|
const MentionExternalHTML = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14444
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14585
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _425 => _425(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
14445
14586
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "data-mention-id": props.id, "data-mention-type": props.entityType, "data-mention-alias": props.alias, children: [
|
|
14446
14587
|
"@",
|
|
14447
14588
|
displayName
|
|
14448
14589
|
] });
|
|
14449
14590
|
}, "MentionExternalHTML");
|
|
14450
14591
|
const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
14451
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14592
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _426 => _426(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
14452
14593
|
if (disableMention) {
|
|
14453
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
14454
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
14594
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _427 => _427(props.id, props.entityType, displayName)]);
|
|
14595
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _428 => _428.url]), () => ( "#")), className: "text-primary", children: [
|
|
14455
14596
|
"@",
|
|
14456
14597
|
displayName
|
|
14457
14598
|
] });
|
|
14458
14599
|
}
|
|
14459
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
14460
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
14600
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _429 => _429(props.id, props.entityType, displayName)]);
|
|
14601
|
+
if (_optionalChain([resolved, 'optionalAccess', _430 => _430.Inline])) {
|
|
14461
14602
|
const Custom = resolved.Inline;
|
|
14462
14603
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
14463
14604
|
}
|
|
14464
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
14465
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
14605
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _431 => _431.url]), () => ( "#"));
|
|
14606
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _432 => _432.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
14466
14607
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14467
14608
|
_link2.default,
|
|
14468
14609
|
{
|
|
@@ -14568,7 +14709,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14568
14709
|
if (!suggestionMenuComponent) return void 0;
|
|
14569
14710
|
const Component2 = suggestionMenuComponent;
|
|
14570
14711
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14571
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
14712
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _433 => _433.items, 'access', _434 => _434[0], 'optionalAccess', _435 => _435.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
14572
14713
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14573
14714
|
Component2,
|
|
14574
14715
|
{
|
|
@@ -14577,7 +14718,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14577
14718
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
14578
14719
|
onItemClick: (item) => {
|
|
14579
14720
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
14580
|
-
_optionalChain([props, 'access',
|
|
14721
|
+
_optionalChain([props, 'access', _436 => _436.onItemClick, 'optionalCall', _437 => _437(item)]);
|
|
14581
14722
|
}
|
|
14582
14723
|
}
|
|
14583
14724
|
);
|
|
@@ -14771,10 +14912,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
14771
14912
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14772
14913
|
Checkbox,
|
|
14773
14914
|
{
|
|
14774
|
-
checked: _optionalChain([params, 'access',
|
|
14915
|
+
checked: _optionalChain([params, 'access', _438 => _438.checkedIds, 'optionalAccess', _439 => _439.includes, 'call', _440 => _440(row.getValue(params.name))]) || false,
|
|
14775
14916
|
onCheckedChange: (value) => {
|
|
14776
14917
|
row.toggleSelected(!!value);
|
|
14777
|
-
_optionalChain([params, 'access',
|
|
14918
|
+
_optionalChain([params, 'access', _441 => _441.toggleId, 'optionalCall', _442 => _442(row.getValue(params.name))]);
|
|
14778
14919
|
},
|
|
14779
14920
|
"aria-label": "Select row"
|
|
14780
14921
|
}
|
|
@@ -14833,7 +14974,7 @@ function useJsonApiGet(params) {
|
|
|
14833
14974
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
14834
14975
|
const isMounted = _react.useRef.call(void 0, true);
|
|
14835
14976
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
14836
|
-
if (_optionalChain([params, 'access',
|
|
14977
|
+
if (_optionalChain([params, 'access', _443 => _443.options, 'optionalAccess', _444 => _444.enabled]) === false) return;
|
|
14837
14978
|
setLoading(true);
|
|
14838
14979
|
setError(null);
|
|
14839
14980
|
try {
|
|
@@ -14860,9 +15001,9 @@ function useJsonApiGet(params) {
|
|
|
14860
15001
|
setLoading(false);
|
|
14861
15002
|
}
|
|
14862
15003
|
}
|
|
14863
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
15004
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _445 => _445.options, 'optionalAccess', _446 => _446.enabled])]);
|
|
14864
15005
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
14865
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
15006
|
+
if (!_optionalChain([response, 'optionalAccess', _447 => _447.nextPage])) return;
|
|
14866
15007
|
setLoading(true);
|
|
14867
15008
|
try {
|
|
14868
15009
|
const nextResponse = await response.nextPage();
|
|
@@ -14883,7 +15024,7 @@ function useJsonApiGet(params) {
|
|
|
14883
15024
|
}
|
|
14884
15025
|
}, [response]);
|
|
14885
15026
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
14886
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
15027
|
+
if (!_optionalChain([response, 'optionalAccess', _448 => _448.prevPage])) return;
|
|
14887
15028
|
setLoading(true);
|
|
14888
15029
|
try {
|
|
14889
15030
|
const prevResponse = await response.prevPage();
|
|
@@ -14909,15 +15050,15 @@ function useJsonApiGet(params) {
|
|
|
14909
15050
|
return () => {
|
|
14910
15051
|
isMounted.current = false;
|
|
14911
15052
|
};
|
|
14912
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
15053
|
+
}, [fetchData, ..._optionalChain([params, 'access', _449 => _449.options, 'optionalAccess', _450 => _450.deps]) || []]);
|
|
14913
15054
|
return {
|
|
14914
15055
|
data,
|
|
14915
15056
|
loading,
|
|
14916
15057
|
error,
|
|
14917
15058
|
response,
|
|
14918
15059
|
refetch: fetchData,
|
|
14919
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
14920
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
15060
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _451 => _451.next]),
|
|
15061
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _452 => _452.prev]),
|
|
14921
15062
|
fetchNextPage,
|
|
14922
15063
|
fetchPreviousPage
|
|
14923
15064
|
};
|
|
@@ -14995,17 +15136,17 @@ function useJsonApiMutation(config) {
|
|
|
14995
15136
|
if (apiResponse.ok) {
|
|
14996
15137
|
const resultData = apiResponse.data;
|
|
14997
15138
|
setData(resultData);
|
|
14998
|
-
_optionalChain([config, 'access',
|
|
15139
|
+
_optionalChain([config, 'access', _453 => _453.onSuccess, 'optionalCall', _454 => _454(resultData)]);
|
|
14999
15140
|
return resultData;
|
|
15000
15141
|
} else {
|
|
15001
15142
|
setError(apiResponse.error);
|
|
15002
|
-
_optionalChain([config, 'access',
|
|
15143
|
+
_optionalChain([config, 'access', _455 => _455.onError, 'optionalCall', _456 => _456(apiResponse.error)]);
|
|
15003
15144
|
return null;
|
|
15004
15145
|
}
|
|
15005
15146
|
} catch (err) {
|
|
15006
15147
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
15007
15148
|
setError(errorMessage);
|
|
15008
|
-
_optionalChain([config, 'access',
|
|
15149
|
+
_optionalChain([config, 'access', _457 => _457.onError, 'optionalCall', _458 => _458(errorMessage)]);
|
|
15009
15150
|
return null;
|
|
15010
15151
|
} finally {
|
|
15011
15152
|
setLoading(false);
|
|
@@ -15078,7 +15219,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15078
15219
|
{
|
|
15079
15220
|
href: hasRole(_chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
15080
15221
|
page: "/administration",
|
|
15081
|
-
id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access',
|
|
15222
|
+
id: _optionalChain([_chunkS2PTWBN6js.Modules, 'access', _459 => _459.Company, 'access', _460 => _460.pageUrl, 'optionalAccess', _461 => _461.substring, 'call', _462 => _462(1)]),
|
|
15082
15223
|
childPage: company.id
|
|
15083
15224
|
}) : generateUrl({ page: _chunkS2PTWBN6js.Modules.Company, id: company.id }),
|
|
15084
15225
|
children: row.getValue("name")
|
|
@@ -15094,7 +15235,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15094
15235
|
})
|
|
15095
15236
|
};
|
|
15096
15237
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15097
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15238
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _463 => _463[field], 'optionalCall', _464 => _464()])).filter((col) => col !== void 0);
|
|
15098
15239
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
15099
15240
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15100
15241
|
}, "useCompanyTableStructure");
|
|
@@ -15106,7 +15247,7 @@ var GRACE_DAYS = 3;
|
|
|
15106
15247
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
15107
15248
|
if (!currentUser || !_chunk6KLR3WJQjs.isRolesConfigured.call(void 0, )) return false;
|
|
15108
15249
|
const adminRoleId = _chunk6KLR3WJQjs.getRoleId.call(void 0, ).Administrator;
|
|
15109
|
-
return !!_optionalChain([currentUser, 'access',
|
|
15250
|
+
return !!_optionalChain([currentUser, 'access', _465 => _465.roles, 'optionalAccess', _466 => _466.some, 'call', _467 => _467((role) => role.id === adminRoleId)]);
|
|
15110
15251
|
}, "isAdministrator");
|
|
15111
15252
|
function useSubscriptionStatus() {
|
|
15112
15253
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -15223,7 +15364,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
15223
15364
|
})
|
|
15224
15365
|
};
|
|
15225
15366
|
const columns = _react.useMemo.call(void 0, () => {
|
|
15226
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
15367
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _468 => _468[field], 'optionalCall', _469 => _469()])).filter((col) => col !== void 0);
|
|
15227
15368
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
15228
15369
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15229
15370
|
}, "useRoleTableStructure");
|
|
@@ -15324,11 +15465,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
15324
15465
|
return params.fields.map((field) => {
|
|
15325
15466
|
const localHandler = fieldColumnMap[field];
|
|
15326
15467
|
if (localHandler) return localHandler();
|
|
15327
|
-
const customHandler = _optionalChain([params, 'access',
|
|
15468
|
+
const customHandler = _optionalChain([params, 'access', _470 => _470.context, 'optionalAccess', _471 => _471.customCells, 'optionalAccess', _472 => _472[field]]);
|
|
15328
15469
|
if (customHandler) return customHandler({ t });
|
|
15329
15470
|
return void 0;
|
|
15330
15471
|
}).filter((col) => col !== void 0);
|
|
15331
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
15472
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _473 => _473.context, 'optionalAccess', _474 => _474.customCells])]);
|
|
15332
15473
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
15333
15474
|
}, "useContentTableStructure");
|
|
15334
15475
|
|
|
@@ -15663,7 +15804,7 @@ function ContentTableSearch({ data }) {
|
|
|
15663
15804
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15664
15805
|
if (!isExpanded) {
|
|
15665
15806
|
setIsFocused(true);
|
|
15666
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
15807
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _475 => _475.current, 'optionalAccess', _476 => _476.focus, 'call', _477 => _477()]), 50);
|
|
15667
15808
|
}
|
|
15668
15809
|
}, "handleSearchIconClick");
|
|
15669
15810
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -15740,7 +15881,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15740
15881
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
15741
15882
|
);
|
|
15742
15883
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
15743
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15884
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _478 => _478.data]), () => ( EMPTY_ARRAY)),
|
|
15744
15885
|
fields,
|
|
15745
15886
|
checkedIds,
|
|
15746
15887
|
toggleId,
|
|
@@ -15773,7 +15914,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15773
15914
|
});
|
|
15774
15915
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
15775
15916
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
15776
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
15917
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _479 => _479.rows, 'optionalAccess', _480 => _480.length])) return null;
|
|
15777
15918
|
const groupMap = /* @__PURE__ */ new Map();
|
|
15778
15919
|
for (const row of rowModel.rows) {
|
|
15779
15920
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -15829,10 +15970,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15829
15970
|
) }),
|
|
15830
15971
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
15831
15972
|
const meta = header.column.columnDef.meta;
|
|
15832
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
15973
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _481 => _481.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
15833
15974
|
}) }, headerGroup.id))
|
|
15834
15975
|
] }),
|
|
15835
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
15976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _482 => _482.rows, 'optionalAccess', _483 => _483.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
15836
15977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15837
15978
|
TableCell,
|
|
15838
15979
|
{
|
|
@@ -15843,11 +15984,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15843
15984
|
) }),
|
|
15844
15985
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15845
15986
|
const meta = cell.column.columnDef.meta;
|
|
15846
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15987
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _484 => _484.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15847
15988
|
}) }, row.id))
|
|
15848
15989
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15849
15990
|
const meta = cell.column.columnDef.meta;
|
|
15850
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15991
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _485 => _485.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15851
15992
|
}) }, row.id)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "h-24 text-center", children: _nullishCoalesce(props.emptyState, () => ( "No results.")) }) }) }),
|
|
15852
15993
|
showFooter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { colSpan: tableColumns.length, className: "bg-card py-4 text-right", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end space-x-2", children: [
|
|
15853
15994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15857,7 +15998,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15857
15998
|
size: "sm",
|
|
15858
15999
|
onClick: (e) => {
|
|
15859
16000
|
e.preventDefault();
|
|
15860
|
-
_optionalChain([data, 'access',
|
|
16001
|
+
_optionalChain([data, 'access', _486 => _486.previous, 'optionalCall', _487 => _487(true)]);
|
|
15861
16002
|
},
|
|
15862
16003
|
disabled: !data.previous,
|
|
15863
16004
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -15871,7 +16012,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15871
16012
|
size: "sm",
|
|
15872
16013
|
onClick: (e) => {
|
|
15873
16014
|
e.preventDefault();
|
|
15874
|
-
_optionalChain([data, 'access',
|
|
16015
|
+
_optionalChain([data, 'access', _488 => _488.next, 'optionalCall', _489 => _489(true)]);
|
|
15875
16016
|
},
|
|
15876
16017
|
disabled: !data.next,
|
|
15877
16018
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -15892,7 +16033,7 @@ function ContentListGrid(props) {
|
|
|
15892
16033
|
if (!data.next || !sentinelRef.current) return;
|
|
15893
16034
|
const observer = new IntersectionObserver(
|
|
15894
16035
|
(entries) => {
|
|
15895
|
-
if (_optionalChain([entries, 'access',
|
|
16036
|
+
if (_optionalChain([entries, 'access', _490 => _490[0], 'optionalAccess', _491 => _491.isIntersecting])) _optionalChain([data, 'access', _492 => _492.next, 'optionalCall', _493 => _493()]);
|
|
15896
16037
|
},
|
|
15897
16038
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
15898
16039
|
);
|
|
@@ -16642,7 +16783,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16642
16783
|
newDigits[index] = digit;
|
|
16643
16784
|
setDigits(newDigits);
|
|
16644
16785
|
if (digit && index < 5) {
|
|
16645
|
-
_optionalChain([inputRefs, 'access',
|
|
16786
|
+
_optionalChain([inputRefs, 'access', _494 => _494.current, 'access', _495 => _495[index + 1], 'optionalAccess', _496 => _496.focus, 'call', _497 => _497()]);
|
|
16646
16787
|
}
|
|
16647
16788
|
const code = newDigits.join("");
|
|
16648
16789
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -16651,7 +16792,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16651
16792
|
}, "handleChange");
|
|
16652
16793
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
16653
16794
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
16654
|
-
_optionalChain([inputRefs, 'access',
|
|
16795
|
+
_optionalChain([inputRefs, 'access', _498 => _498.current, 'access', _499 => _499[index - 1], 'optionalAccess', _500 => _500.focus, 'call', _501 => _501()]);
|
|
16655
16796
|
}
|
|
16656
16797
|
}, "handleKeyDown");
|
|
16657
16798
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -16660,7 +16801,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16660
16801
|
if (pastedData.length === 6) {
|
|
16661
16802
|
const newDigits = pastedData.split("");
|
|
16662
16803
|
setDigits(newDigits);
|
|
16663
|
-
_optionalChain([inputRefs, 'access',
|
|
16804
|
+
_optionalChain([inputRefs, 'access', _502 => _502.current, 'access', _503 => _503[5], 'optionalAccess', _504 => _504.focus, 'call', _505 => _505()]);
|
|
16664
16805
|
onComplete(pastedData);
|
|
16665
16806
|
}
|
|
16666
16807
|
}, "handlePaste");
|
|
@@ -16871,8 +17012,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
16871
17012
|
try {
|
|
16872
17013
|
const registrationData = await _chunkS2PTWBN6js.TwoFactorService.getPasskeyRegistrationOptions({
|
|
16873
17014
|
id: _uuid.v4.call(void 0, ),
|
|
16874
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16875
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
17015
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _506 => _506.email]), () => ( "")),
|
|
17016
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _507 => _507.name])
|
|
16876
17017
|
});
|
|
16877
17018
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
16878
17019
|
await _chunkS2PTWBN6js.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -17023,7 +17164,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
17023
17164
|
const setup = await _chunkS2PTWBN6js.TwoFactorService.setupTotp({
|
|
17024
17165
|
id: _uuid.v4.call(void 0, ),
|
|
17025
17166
|
name: name.trim(),
|
|
17026
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
17167
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _508 => _508.email]), () => ( ""))
|
|
17027
17168
|
});
|
|
17028
17169
|
setQrCodeUri(setup.qrCodeUri);
|
|
17029
17170
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -17157,7 +17298,7 @@ function TwoFactorSettings() {
|
|
|
17157
17298
|
if (isLoading) {
|
|
17158
17299
|
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") }) }) });
|
|
17159
17300
|
}
|
|
17160
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17301
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _509 => _509.isEnabled]), () => ( false));
|
|
17161
17302
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
17162
17303
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
17163
17304
|
isEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldCheck, { className: "h-6 w-6 text-green-600" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ShieldAlert, { className: "h-6 w-6 text-yellow-600" }),
|
|
@@ -17195,7 +17336,7 @@ function TwoFactorSettings() {
|
|
|
17195
17336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
17196
17337
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
17197
17338
|
] }),
|
|
17198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
17339
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _510 => _510.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
17199
17340
|
] }) }),
|
|
17200
17341
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
17201
17342
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -17373,9 +17514,9 @@ function AcceptInvitation() {
|
|
|
17373
17514
|
});
|
|
17374
17515
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17375
17516
|
try {
|
|
17376
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17517
|
+
if (!_optionalChain([params, 'optionalAccess', _511 => _511.code])) return;
|
|
17377
17518
|
const payload = {
|
|
17378
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17519
|
+
code: _optionalChain([params, 'optionalAccess', _512 => _512.code]),
|
|
17379
17520
|
password: values.password
|
|
17380
17521
|
};
|
|
17381
17522
|
await _chunkS2PTWBN6js.AuthService.acceptInvitation(payload);
|
|
@@ -17725,7 +17866,7 @@ function Logout({ storageKeys }) {
|
|
|
17725
17866
|
const generateUrl = usePageUrlGenerator();
|
|
17726
17867
|
_react.useEffect.call(void 0, () => {
|
|
17727
17868
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
17728
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
17869
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _513 => _513.length])) {
|
|
17729
17870
|
clearClientStorage(storageKeys);
|
|
17730
17871
|
}
|
|
17731
17872
|
await _chunkS2PTWBN6js.AuthService.logout();
|
|
@@ -17748,14 +17889,14 @@ function RefreshUser() {
|
|
|
17748
17889
|
setUser(fullUser);
|
|
17749
17890
|
const token = {
|
|
17750
17891
|
userId: fullUser.id,
|
|
17751
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
17892
|
+
companyId: _optionalChain([fullUser, 'access', _514 => _514.company, 'optionalAccess', _515 => _515.id]),
|
|
17752
17893
|
roles: fullUser.roles.map((role) => role.id),
|
|
17753
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
17894
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _516 => _516.company, 'optionalAccess', _517 => _517.features, 'optionalAccess', _518 => _518.map, 'call', _519 => _519((feature) => feature.id)]), () => ( [])),
|
|
17754
17895
|
modules: fullUser.modules.map((module) => {
|
|
17755
17896
|
return { id: module.id, permissions: module.permissions };
|
|
17756
17897
|
})
|
|
17757
17898
|
};
|
|
17758
|
-
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
17899
|
+
await _optionalChain([_chunkS2PTWBN6js.getTokenHandler.call(void 0, ), 'optionalAccess', _520 => _520.updateToken, 'call', _521 => _521(token)]);
|
|
17759
17900
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
17760
17901
|
}
|
|
17761
17902
|
}, "loadFullUser");
|
|
@@ -17819,9 +17960,9 @@ function ResetPassword() {
|
|
|
17819
17960
|
});
|
|
17820
17961
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17821
17962
|
try {
|
|
17822
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17963
|
+
if (!_optionalChain([params, 'optionalAccess', _522 => _522.code])) return;
|
|
17823
17964
|
const payload = {
|
|
17824
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17965
|
+
code: _optionalChain([params, 'optionalAccess', _523 => _523.code]),
|
|
17825
17966
|
password: values.password
|
|
17826
17967
|
};
|
|
17827
17968
|
await _chunkS2PTWBN6js.AuthService.resetPassword(payload);
|
|
@@ -18170,7 +18311,7 @@ function extractHeadings(blocks) {
|
|
|
18170
18311
|
function processBlocks(blockArray) {
|
|
18171
18312
|
for (const block of blockArray) {
|
|
18172
18313
|
if (block.type === "heading") {
|
|
18173
|
-
const level = _optionalChain([block, 'access',
|
|
18314
|
+
const level = _optionalChain([block, 'access', _524 => _524.props, 'optionalAccess', _525 => _525.level]) || 1;
|
|
18174
18315
|
const text = extractTextFromContent(block.content);
|
|
18175
18316
|
if (text.trim()) {
|
|
18176
18317
|
headings.push({
|
|
@@ -18513,7 +18654,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
18513
18654
|
})
|
|
18514
18655
|
};
|
|
18515
18656
|
const columns = _react.useMemo.call(void 0, () => {
|
|
18516
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
18657
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _526 => _526[field], 'optionalCall', _527 => _527()])).filter((col) => col !== void 0);
|
|
18517
18658
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
18518
18659
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
18519
18660
|
}, "useHowToTableStructure");
|
|
@@ -18612,7 +18753,7 @@ function HowToSelector({
|
|
|
18612
18753
|
}, "setHowTo");
|
|
18613
18754
|
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: [
|
|
18614
18755
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
18615
|
-
/* @__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',
|
|
18756
|
+
/* @__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', _528 => _528.value, 'optionalAccess', _529 => _529.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 }) }))) }) }) }),
|
|
18616
18757
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18617
18758
|
_lucidereact.CircleX,
|
|
18618
18759
|
{
|
|
@@ -18981,9 +19122,9 @@ function CitationsTab({ citations, sources }) {
|
|
|
18981
19122
|
] }) }),
|
|
18982
19123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
18983
19124
|
const isOpen = expanded.has(chunk.id);
|
|
18984
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
19125
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _530 => _530.get, 'call', _531 => _531(chunk.nodeId)]) : void 0;
|
|
18985
19126
|
const fallbackName = chunk.nodeId ? `${_nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")))} ${chunk.nodeId.slice(0, 8)}` : _nullishCoalesce(chunk.nodeType, () => ( t("features.assistant.message.sources.source")));
|
|
18986
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
19127
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _532 => _532.name]), () => ( fallbackName));
|
|
18987
19128
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
18988
19129
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
18989
19130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -19030,7 +19171,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
19030
19171
|
for (const c of citations) {
|
|
19031
19172
|
const id = c.nodeId;
|
|
19032
19173
|
if (!id) continue;
|
|
19033
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
19174
|
+
const source = _optionalChain([sources, 'optionalAccess', _533 => _533.get, 'call', _534 => _534(id)]);
|
|
19034
19175
|
if (!source) continue;
|
|
19035
19176
|
const existing = map.get(id);
|
|
19036
19177
|
if (existing) {
|
|
@@ -19097,7 +19238,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
19097
19238
|
const generate = usePageUrlGenerator();
|
|
19098
19239
|
const userMap = /* @__PURE__ */ new Map();
|
|
19099
19240
|
for (const u of users) {
|
|
19100
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
19241
|
+
if (!_optionalChain([u, 'optionalAccess', _535 => _535.id])) continue;
|
|
19101
19242
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
19102
19243
|
}
|
|
19103
19244
|
if (citations && sources) {
|
|
@@ -19202,7 +19343,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
19202
19343
|
}
|
|
19203
19344
|
return ids.size;
|
|
19204
19345
|
}, [message.citations, sources]);
|
|
19205
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
19346
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _536 => _536.length]), () => ( 0));
|
|
19206
19347
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
19207
19348
|
const visibleTabs = [];
|
|
19208
19349
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -19262,8 +19403,8 @@ var SourcesFetcher = class extends _chunkS2PTWBN6js.ClientAbstractService {
|
|
|
19262
19403
|
const endpoint = new (0, _chunkS2PTWBN6js.EndpointCreator)({ endpoint: params.module });
|
|
19263
19404
|
endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
|
|
19264
19405
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
19265
|
-
if (_optionalChain([params, 'access',
|
|
19266
|
-
if (_optionalChain([params, 'access',
|
|
19406
|
+
if (_optionalChain([params, 'access', _537 => _537.module, 'access', _538 => _538.inclusions, 'optionalAccess', _539 => _539.lists, 'optionalAccess', _540 => _540.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
|
|
19407
|
+
if (_optionalChain([params, 'access', _541 => _541.module, 'access', _542 => _542.inclusions, 'optionalAccess', _543 => _543.lists, 'optionalAccess', _544 => _544.types])) endpoint.limitToType(params.module.inclusions.lists.types);
|
|
19267
19408
|
return this.callApi({
|
|
19268
19409
|
type: params.module,
|
|
19269
19410
|
method: "GET" /* GET */,
|
|
@@ -19342,7 +19483,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
19342
19483
|
return void 0;
|
|
19343
19484
|
}
|
|
19344
19485
|
})()));
|
|
19345
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
19486
|
+
if (_optionalChain([author, 'optionalAccess', _545 => _545.id])) userMap.set(author.id, author);
|
|
19346
19487
|
}
|
|
19347
19488
|
return Array.from(userMap.values());
|
|
19348
19489
|
}, [resolved]);
|
|
@@ -19371,14 +19512,14 @@ function MessageItem({
|
|
|
19371
19512
|
}) {
|
|
19372
19513
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
19373
19514
|
const isUser = message.role === "user";
|
|
19374
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
19515
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _546 => _546.has, 'call', _547 => _547(message.id)]);
|
|
19375
19516
|
if (isUser) {
|
|
19376
19517
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
|
|
19377
19518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-primary text-primary-foreground max-w-[72%] rounded-2xl rounded-br-sm px-3.5 py-2 text-sm", children: message.content }),
|
|
19378
19519
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
19379
19520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
19380
19521
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
19381
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
19522
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _548 => _548(message.id)]), children: t("features.assistant.retry") })
|
|
19382
19523
|
] })
|
|
19383
19524
|
] });
|
|
19384
19525
|
}
|
|
@@ -19454,7 +19595,7 @@ function AssistantThread({
|
|
|
19454
19595
|
}) {
|
|
19455
19596
|
const endRef = _react.useRef.call(void 0, null);
|
|
19456
19597
|
_react.useEffect.call(void 0, () => {
|
|
19457
|
-
_optionalChain([endRef, 'access',
|
|
19598
|
+
_optionalChain([endRef, 'access', _549 => _549.current, 'optionalAccess', _550 => _550.scrollIntoView, 'call', _551 => _551({ behavior: "smooth" })]);
|
|
19458
19599
|
}, [messages.length, sending]);
|
|
19459
19600
|
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: [
|
|
19460
19601
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19483,7 +19624,7 @@ function AssistantContainer({ renderApprovalAction } = {}) {
|
|
|
19483
19624
|
AssistantSidebar,
|
|
19484
19625
|
{
|
|
19485
19626
|
threads: ctx.threads,
|
|
19486
|
-
activeId: _optionalChain([ctx, 'access',
|
|
19627
|
+
activeId: _optionalChain([ctx, 'access', _552 => _552.assistant, 'optionalAccess', _553 => _553.id]),
|
|
19487
19628
|
onSelect: ctx.selectThread,
|
|
19488
19629
|
onNew: ctx.startNew
|
|
19489
19630
|
}
|
|
@@ -19584,14 +19725,14 @@ function NotificationsList({ archived }) {
|
|
|
19584
19725
|
] }),
|
|
19585
19726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
19586
19727
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
19587
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
19728
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _554 => _554.data, 'optionalAccess', _555 => _555.map, 'call', _556 => _556((notification) => {
|
|
19588
19729
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
19589
19730
|
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: [
|
|
19590
19731
|
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: _chunkS2PTWBN6js.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" }),
|
|
19591
19732
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
19592
19733
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
19593
19734
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
19594
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
19735
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _557 => _557.actor, 'optionalAccess', _558 => _558.name]), () => ( "")),
|
|
19595
19736
|
title: notificationData.title
|
|
19596
19737
|
}) }),
|
|
19597
19738
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -19937,7 +20078,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
19937
20078
|
invalidEmail: "Please enter a valid email address"
|
|
19938
20079
|
};
|
|
19939
20080
|
async function copyToClipboard(text) {
|
|
19940
|
-
if (_optionalChain([navigator, 'access',
|
|
20081
|
+
if (_optionalChain([navigator, 'access', _559 => _559.clipboard, 'optionalAccess', _560 => _560.writeText])) {
|
|
19941
20082
|
try {
|
|
19942
20083
|
await navigator.clipboard.writeText(text);
|
|
19943
20084
|
return true;
|
|
@@ -19979,7 +20120,7 @@ function ReferralWidget({
|
|
|
19979
20120
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
19980
20121
|
const config = _chunk6KLR3WJQjs.getReferralConfig.call(void 0, );
|
|
19981
20122
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
19982
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
20123
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _561 => _561.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
19983
20124
|
if (!_chunk6KLR3WJQjs.isReferralEnabled.call(void 0, )) {
|
|
19984
20125
|
return null;
|
|
19985
20126
|
}
|
|
@@ -19989,7 +20130,7 @@ function ReferralWidget({
|
|
|
19989
20130
|
if (success) {
|
|
19990
20131
|
setCopied(true);
|
|
19991
20132
|
_chunkS2PTWBN6js.showToast.call(void 0, t.copiedMessage);
|
|
19992
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
20133
|
+
_optionalChain([onLinkCopied, 'optionalCall', _562 => _562()]);
|
|
19993
20134
|
setTimeout(() => setCopied(false), 2e3);
|
|
19994
20135
|
} else {
|
|
19995
20136
|
_chunkS2PTWBN6js.showError.call(void 0, t.copyError);
|
|
@@ -20003,12 +20144,12 @@ function ReferralWidget({
|
|
|
20003
20144
|
try {
|
|
20004
20145
|
await sendInvite(email);
|
|
20005
20146
|
_chunkS2PTWBN6js.showToast.call(void 0, t.inviteSent);
|
|
20006
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
20147
|
+
_optionalChain([onInviteSent, 'optionalCall', _563 => _563(email)]);
|
|
20007
20148
|
setEmail("");
|
|
20008
20149
|
} catch (err) {
|
|
20009
20150
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
20010
20151
|
_chunkS2PTWBN6js.showError.call(void 0, error2.message);
|
|
20011
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
20152
|
+
_optionalChain([onInviteError, 'optionalCall', _564 => _564(error2)]);
|
|
20012
20153
|
}
|
|
20013
20154
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
20014
20155
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -20762,7 +20903,7 @@ function OAuthClientList({
|
|
|
20762
20903
|
OAuthClientCard,
|
|
20763
20904
|
{
|
|
20764
20905
|
client,
|
|
20765
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
20906
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _565 => _565(client)]),
|
|
20766
20907
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
20767
20908
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
20768
20909
|
},
|
|
@@ -20778,11 +20919,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
20778
20919
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
20779
20920
|
const isEditMode = !!client;
|
|
20780
20921
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
20781
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
20782
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
20783
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
20784
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
20785
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
20922
|
+
name: _optionalChain([client, 'optionalAccess', _566 => _566.name]) || "",
|
|
20923
|
+
description: _optionalChain([client, 'optionalAccess', _567 => _567.description]) || "",
|
|
20924
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _568 => _568.redirectUris, 'optionalAccess', _569 => _569.length]) ? client.redirectUris : [""],
|
|
20925
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _570 => _570.allowedScopes]) || [],
|
|
20926
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _571 => _571.isConfidential]), () => ( true))
|
|
20786
20927
|
});
|
|
20787
20928
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
20788
20929
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -21010,7 +21151,7 @@ function OAuthClientDetail({
|
|
|
21010
21151
|
] }),
|
|
21011
21152
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21012
21153
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
21013
|
-
/* @__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([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access',
|
|
21154
|
+
/* @__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([_chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY, 'access', _572 => _572[scope], 'optionalAccess', _573 => _573.name]) || scope }, scope)) })
|
|
21014
21155
|
] }),
|
|
21015
21156
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
21016
21157
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -21154,7 +21295,7 @@ function OAuthConsentScreen({
|
|
|
21154
21295
|
if (error || !clientInfo) {
|
|
21155
21296
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-screen flex items-center justify-center p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { className: "w-full max-w-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { className: "py-8", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Alert, { variant: "destructive", children: [
|
|
21156
21297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
21157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
21298
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _574 => _574.message]) || "Invalid authorization request. Please try again." })
|
|
21158
21299
|
] }) }) }) });
|
|
21159
21300
|
}
|
|
21160
21301
|
const { client, scopes } = clientInfo;
|
|
@@ -21370,7 +21511,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
21370
21511
|
questionnaire: values.questionnaire
|
|
21371
21512
|
});
|
|
21372
21513
|
setIsSuccess(true);
|
|
21373
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
21514
|
+
_optionalChain([onSuccess, 'optionalCall', _575 => _575()]);
|
|
21374
21515
|
} catch (e) {
|
|
21375
21516
|
errorToast({ error: e });
|
|
21376
21517
|
} finally {
|
|
@@ -22008,7 +22149,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
22008
22149
|
] }),
|
|
22009
22150
|
roleIds.map((roleId) => {
|
|
22010
22151
|
const roleTokens = block[roleId];
|
|
22011
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22152
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _576 => _576[roleId]]), () => ( roleId));
|
|
22012
22153
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22013
22154
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
22014
22155
|
_chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22045,7 +22186,7 @@ function RbacContainer() {
|
|
|
22045
22186
|
}, []);
|
|
22046
22187
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22047
22188
|
if (!matrix) return [];
|
|
22048
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22189
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _577 => _577[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _578 => _578[b]]), () => ( b))));
|
|
22049
22190
|
}, [matrix, moduleNames]);
|
|
22050
22191
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
22051
22192
|
if (roleNames) {
|
|
@@ -22108,7 +22249,7 @@ function RbacContainer() {
|
|
|
22108
22249
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
22109
22250
|
id !== selectedModuleId && "text-muted-foreground"
|
|
22110
22251
|
),
|
|
22111
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22252
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _579 => _579[id]]), () => ( id))
|
|
22112
22253
|
}
|
|
22113
22254
|
) }, id)) }) }),
|
|
22114
22255
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22116,7 +22257,7 @@ function RbacContainer() {
|
|
|
22116
22257
|
{
|
|
22117
22258
|
moduleId: selectedModuleId,
|
|
22118
22259
|
block: selectedBlock,
|
|
22119
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22260
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _580 => _580[selectedModuleId]]), () => ( selectedModuleId)),
|
|
22120
22261
|
roleIds,
|
|
22121
22262
|
roleNames,
|
|
22122
22263
|
onOpenPicker: openPicker
|
|
@@ -22127,12 +22268,12 @@ function RbacContainer() {
|
|
|
22127
22268
|
RbacPermissionPicker,
|
|
22128
22269
|
{
|
|
22129
22270
|
open: !!activePicker,
|
|
22130
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22271
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _581 => _581.anchor]), () => ( null)),
|
|
22131
22272
|
value: activeValue,
|
|
22132
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22273
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _582 => _582.isRoleColumn]), () => ( false)),
|
|
22133
22274
|
knownSegments: activeSegments,
|
|
22134
22275
|
onSetValue: handleSetValue,
|
|
22135
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22276
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _583 => _583.isRoleColumn]) ? handleClear : void 0,
|
|
22136
22277
|
onClose: closePicker
|
|
22137
22278
|
}
|
|
22138
22279
|
)
|
|
@@ -22199,7 +22340,7 @@ function RbacByRoleContainer() {
|
|
|
22199
22340
|
}, [roleNames]);
|
|
22200
22341
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
22201
22342
|
if (!matrix) return [];
|
|
22202
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22343
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _584 => _584[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _585 => _585[b]]), () => ( b))));
|
|
22203
22344
|
}, [matrix, moduleNames]);
|
|
22204
22345
|
_react.useEffect.call(void 0, () => {
|
|
22205
22346
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -22248,7 +22389,7 @@ function RbacByRoleContainer() {
|
|
|
22248
22389
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
22249
22390
|
id !== selectedRoleId && "text-muted-foreground"
|
|
22250
22391
|
),
|
|
22251
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22392
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _586 => _586[id]]), () => ( id))
|
|
22252
22393
|
}
|
|
22253
22394
|
) }, id)) }) }),
|
|
22254
22395
|
/* @__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: [
|
|
@@ -22268,7 +22409,7 @@ function RbacByRoleContainer() {
|
|
|
22268
22409
|
if (!block) return null;
|
|
22269
22410
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
22270
22411
|
const roleTokens = block[selectedRoleId];
|
|
22271
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
22412
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _587 => _587[moduleId]]), () => ( moduleId));
|
|
22272
22413
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
22273
22414
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22274
22415
|
"td",
|
|
@@ -22283,7 +22424,7 @@ function RbacByRoleContainer() {
|
|
|
22283
22424
|
_chunk6KLR3WJQjs.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))
|
|
22284
22425
|
] }),
|
|
22285
22426
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
22286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
22427
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _588 => _588[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
22287
22428
|
_chunk6KLR3WJQjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22288
22429
|
CellButton3,
|
|
22289
22430
|
{
|
|
@@ -22304,12 +22445,12 @@ function RbacByRoleContainer() {
|
|
|
22304
22445
|
RbacPermissionPicker,
|
|
22305
22446
|
{
|
|
22306
22447
|
open: !!activePicker,
|
|
22307
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22448
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _589 => _589.anchor]), () => ( null)),
|
|
22308
22449
|
value: activeValue,
|
|
22309
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
22450
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _590 => _590.isRoleColumn]), () => ( false)),
|
|
22310
22451
|
knownSegments: activeSegments,
|
|
22311
22452
|
onSetValue: handleSetValue,
|
|
22312
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
22453
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _591 => _591.isRoleColumn]) ? handleClear : void 0,
|
|
22313
22454
|
onClose: closePicker
|
|
22314
22455
|
}
|
|
22315
22456
|
)
|
|
@@ -22841,5 +22982,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
22841
22982
|
|
|
22842
22983
|
|
|
22843
22984
|
|
|
22844
|
-
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.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.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.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.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.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
22845
|
-
//# sourceMappingURL=chunk-SPRFCAQI.js.map
|
|
22985
|
+
|
|
22986
|
+
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.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Combobox = Combobox; exports.ComboboxValue = ComboboxValue; exports.ComboboxTrigger = ComboboxTrigger; exports.ComboboxInput = ComboboxInput; exports.ComboboxContent = ComboboxContent; exports.ComboboxList = ComboboxList; exports.ComboboxItem = ComboboxItem; exports.ComboboxGroup = ComboboxGroup; exports.ComboboxLabel = ComboboxLabel; exports.ComboboxCollection = ComboboxCollection; exports.ComboboxEmpty = ComboboxEmpty; exports.ComboboxSeparator = ComboboxSeparator; exports.ComboboxChips = ComboboxChips; exports.ComboboxChip = ComboboxChip; exports.ComboboxChipsInput = ComboboxChipsInput; exports.useComboboxAnchor = useComboboxAnchor; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.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.HeaderLeftContentProvider = HeaderLeftContentProvider; exports.useHeaderLeftContent = useHeaderLeftContent; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.RoundPageContainerTitle = RoundPageContainerTitle; exports.RoundPageContainer = RoundPageContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.AllUsersListContainer = AllUsersListContainer; exports.UserContent = UserContent; exports.UserAvatar = UserAvatar; exports.UserAvatarList = UserAvatarList; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.UserSearchPopover = UserSearchPopover; exports.UserIndexDetails = UserIndexDetails; exports.UserStanadaloneDetails = UserStanadaloneDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.BlockNoteEditorMentionHoverCard = BlockNoteEditorMentionHoverCard; exports.mentionDataAttrs = mentionDataAttrs; exports.parseMentionElement = parseMentionElement; exports.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.BlockNoteViewerContainer = BlockNoteViewerContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.FormFieldWrapper = FormFieldWrapper; exports.EntityMultiSelector = EntityMultiSelector; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorDiscardDialog = CommonEditorDiscardDialog; exports.CommonEditorTrigger = CommonEditorTrigger; exports.CommonAddTrigger = CommonAddTrigger; exports.useEditorDialog = useEditorDialog; exports.EditorSheet = EditorSheet; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.CurrencyInput = CurrencyInput; exports.FormCheckbox = FormCheckbox; exports.FormBlockNote = FormBlockNote; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellDateTime = cellDateTime; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.ContentListGrid = ContentListGrid; exports.ItalianFiscalData_default = ItalianFiscalData_default; exports.ItalianFiscalDataDisplay = ItalianFiscalDataDisplay; exports.parseFiscalData = parseFiscalData; exports.FiscalDataDisplay = FiscalDataDisplay; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.BackupCodesDialog = BackupCodesDialog; exports.TotpInput = TotpInput; exports.DisableTwoFactorDialog = DisableTwoFactorDialog; exports.PasskeyList = PasskeyList; exports.PasskeySetupDialog = PasskeySetupDialog; exports.TotpAuthenticatorList = TotpAuthenticatorList; exports.TotpSetupDialog = TotpSetupDialog; exports.TwoFactorSettings = TwoFactorSettings; exports.SecurityContainer = SecurityContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.PasskeyButton = PasskeyButton; exports.TwoFactorChallenge = TwoFactorChallenge; exports.CompanyContent = CompanyContent; exports.TokenStatusIndicator = TokenStatusIndicator; exports.CompanyDetails = CompanyDetails; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.HowToCommandViewer = HowToCommandViewer; exports.HowToCommand = HowToCommand; exports.HowToDeleter = HowToDeleter; exports.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.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.OnboardingCard = OnboardingCard; exports.ReferralCodeCapture = ReferralCodeCapture; exports.ReferralWidget = ReferralWidget; exports.ReferralDialog = ReferralDialog; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.WaitlistQuestionnaireRenderer = WaitlistQuestionnaireRenderer; exports.WaitlistForm = WaitlistForm; exports.WaitlistHeroSection = WaitlistHeroSection; exports.WaitlistSuccessState = WaitlistSuccessState; exports.WaitlistConfirmation = WaitlistConfirmation; exports.WaitlistList = WaitlistList; exports.RbacProvider = RbacProvider; exports.useRbacContext = useRbacContext; exports.RbacPermissionCell = RbacPermissionCell; exports.RbacPermissionPicker = RbacPermissionPicker; exports.RbacContainer = RbacContainer; exports.RbacByRoleContainer = RbacByRoleContainer; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.DEFAULT_ONBOARDING_LABELS = DEFAULT_ONBOARDING_LABELS; exports.OnboardingProvider = OnboardingProvider; exports.useOnboarding = useOnboarding; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
22987
|
+
//# sourceMappingURL=chunk-56QAXZKI.js.map
|