@carlonicora/nextjs-jsonapi 1.99.0 → 1.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockNoteEditor-IBV3KBQM.mjs → BlockNoteEditor-QH3NPFYN.mjs} +2 -2
- package/dist/{BlockNoteEditor-LYJUF5N4.js → BlockNoteEditor-ZD2AMN72.js} +9 -9
- package/dist/{BlockNoteEditor-LYJUF5N4.js.map → BlockNoteEditor-ZD2AMN72.js.map} +1 -1
- package/dist/billing/index.js +299 -299
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-TRTKIQUB.js → chunk-LIZ5C76W.js} +300 -224
- package/dist/chunk-LIZ5C76W.js.map +1 -0
- package/dist/{chunk-CDNVUON3.mjs → chunk-S34H33HJ.mjs} +82 -6
- package/dist/{chunk-CDNVUON3.mjs.map → chunk-S34H33HJ.mjs.map} +1 -1
- package/dist/client/index.d.mts +17 -1
- package/dist/client/index.d.ts +17 -1
- package/dist/client/index.js +4 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +3 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/hooks/__tests__/computeLayeredLayout.spec.ts +135 -1
- package/src/hooks/computeLayeredLayout.ts +126 -13
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useCustomD3Graph.tsx +20 -8
- package/dist/chunk-TRTKIQUB.js.map +0 -1
- /package/dist/{BlockNoteEditor-IBV3KBQM.mjs.map → BlockNoteEditor-QH3NPFYN.mjs.map} +0 -0
|
@@ -6460,6 +6460,14 @@ var _dagre = require('dagre'); var dagre = _interopRequireWildcard(_dagre);
|
|
|
6460
6460
|
var DEFAULT_RANKDIR = "LR";
|
|
6461
6461
|
var DEFAULT_NODESEP = 50;
|
|
6462
6462
|
var DEFAULT_RANKSEP = 120;
|
|
6463
|
+
var MIN_NODESEP = 20;
|
|
6464
|
+
var MAX_NODESEP = 400;
|
|
6465
|
+
var MIN_RANKSEP = 40;
|
|
6466
|
+
var MAX_RANKSEP = 600;
|
|
6467
|
+
var MIN_FACTOR = 0.25;
|
|
6468
|
+
var MAX_FACTOR = 4;
|
|
6469
|
+
var DEFAULT_TOLERANCE = 0.05;
|
|
6470
|
+
var DEFAULT_MAX_ITERATIONS = 4;
|
|
6463
6471
|
var TITLE_PX_PER_CHAR_16 = 8;
|
|
6464
6472
|
var NAME_PX_PER_CHAR_12 = 6.5;
|
|
6465
6473
|
var NAME_PX_PER_CHAR_16_BOLD = 8;
|
|
@@ -6479,8 +6487,11 @@ function linkEndpointId(end) {
|
|
|
6479
6487
|
return typeof end === "string" ? end : end.id;
|
|
6480
6488
|
}
|
|
6481
6489
|
_chunk7QVYU63Ejs.__name.call(void 0, linkEndpointId, "linkEndpointId");
|
|
6482
|
-
function
|
|
6483
|
-
|
|
6490
|
+
function clamp(value, min, max) {
|
|
6491
|
+
return Math.min(Math.max(value, min), max);
|
|
6492
|
+
}
|
|
6493
|
+
_chunk7QVYU63Ejs.__name.call(void 0, clamp, "clamp");
|
|
6494
|
+
function runDagreOnce(nodes, links, opts) {
|
|
6484
6495
|
const rankdir = _nullishCoalesce(opts.rankdir, () => ( DEFAULT_RANKDIR));
|
|
6485
6496
|
const nodesep = _nullishCoalesce(opts.nodesep, () => ( DEFAULT_NODESEP));
|
|
6486
6497
|
const ranksep = _nullishCoalesce(opts.ranksep, () => ( DEFAULT_RANKSEP));
|
|
@@ -6508,15 +6519,70 @@ function computeLayeredLayout(nodes, links, opts) {
|
|
|
6508
6519
|
return null;
|
|
6509
6520
|
}
|
|
6510
6521
|
const positions = /* @__PURE__ */ new Map();
|
|
6522
|
+
let xMin = Infinity;
|
|
6523
|
+
let xMax = -Infinity;
|
|
6524
|
+
let yMin = Infinity;
|
|
6525
|
+
let yMax = -Infinity;
|
|
6511
6526
|
for (const node of nodes) {
|
|
6512
6527
|
const laid = g.node(node.id);
|
|
6513
6528
|
if (laid && Number.isFinite(laid.x) && Number.isFinite(laid.y)) {
|
|
6514
6529
|
positions.set(node.id, { x: laid.x, y: laid.y });
|
|
6530
|
+
const halfW = (_nullishCoalesce(laid.width, () => ( opts.minNodeWidth))) / 2;
|
|
6531
|
+
const halfH = (_nullishCoalesce(laid.height, () => ( opts.minNodeHeight))) / 2;
|
|
6532
|
+
xMin = Math.min(xMin, laid.x - halfW);
|
|
6533
|
+
xMax = Math.max(xMax, laid.x + halfW);
|
|
6534
|
+
yMin = Math.min(yMin, laid.y - halfH);
|
|
6535
|
+
yMax = Math.max(yMax, laid.y + halfH);
|
|
6515
6536
|
}
|
|
6516
6537
|
}
|
|
6517
|
-
|
|
6538
|
+
const bbox = positions.size === 0 ? { width: 0, height: 0 } : { width: Math.max(0, xMax - xMin), height: Math.max(0, yMax - yMin) };
|
|
6539
|
+
return { positions, bbox };
|
|
6540
|
+
}
|
|
6541
|
+
_chunk7QVYU63Ejs.__name.call(void 0, runDagreOnce, "runDagreOnce");
|
|
6542
|
+
function computeLayeredLayout(nodes, links, opts) {
|
|
6543
|
+
if (nodes.length === 0) return /* @__PURE__ */ new Map();
|
|
6544
|
+
const result = runDagreOnce(nodes, links, opts);
|
|
6545
|
+
return result ? result.positions : null;
|
|
6518
6546
|
}
|
|
6519
6547
|
_chunk7QVYU63Ejs.__name.call(void 0, computeLayeredLayout, "computeLayeredLayout");
|
|
6548
|
+
function fitLayeredLayoutToAspectRatio(nodes, links, opts) {
|
|
6549
|
+
if (nodes.length === 0) return /* @__PURE__ */ new Map();
|
|
6550
|
+
if (!Number.isFinite(opts.targetAspectRatio) || opts.targetAspectRatio <= 0) {
|
|
6551
|
+
return computeLayeredLayout(nodes, links, opts);
|
|
6552
|
+
}
|
|
6553
|
+
const maxIterations = _nullishCoalesce(opts.maxIterations, () => ( DEFAULT_MAX_ITERATIONS));
|
|
6554
|
+
const tolerance = _nullishCoalesce(opts.tolerance, () => ( DEFAULT_TOLERANCE));
|
|
6555
|
+
const rankdir = _nullishCoalesce(opts.rankdir, () => ( DEFAULT_RANKDIR));
|
|
6556
|
+
const isHorizontalFlow = rankdir === "LR" || rankdir === "RL";
|
|
6557
|
+
let nodesep = _nullishCoalesce(opts.nodesep, () => ( DEFAULT_NODESEP));
|
|
6558
|
+
let ranksep = _nullishCoalesce(opts.ranksep, () => ( DEFAULT_RANKSEP));
|
|
6559
|
+
let best = null;
|
|
6560
|
+
for (let i = 0; i < maxIterations; i++) {
|
|
6561
|
+
const result = runDagreOnce(nodes, links, {
|
|
6562
|
+
...opts,
|
|
6563
|
+
nodesep,
|
|
6564
|
+
ranksep
|
|
6565
|
+
});
|
|
6566
|
+
if (!result) return best ? best.positions : null;
|
|
6567
|
+
best = result;
|
|
6568
|
+
if (result.positions.size <= 1) return result.positions;
|
|
6569
|
+
const { width, height } = result.bbox;
|
|
6570
|
+
if (width === 0 || height === 0) return result.positions;
|
|
6571
|
+
const currentAspect = width / height;
|
|
6572
|
+
const ratio = opts.targetAspectRatio / currentAspect;
|
|
6573
|
+
if (Math.abs(ratio - 1) < tolerance) return result.positions;
|
|
6574
|
+
const factor = clamp(Math.sqrt(ratio), MIN_FACTOR, MAX_FACTOR);
|
|
6575
|
+
if (isHorizontalFlow) {
|
|
6576
|
+
ranksep = clamp(ranksep * factor, MIN_RANKSEP, MAX_RANKSEP);
|
|
6577
|
+
nodesep = clamp(nodesep / factor, MIN_NODESEP, MAX_NODESEP);
|
|
6578
|
+
} else {
|
|
6579
|
+
ranksep = clamp(ranksep / factor, MIN_RANKSEP, MAX_RANKSEP);
|
|
6580
|
+
nodesep = clamp(nodesep * factor, MIN_NODESEP, MAX_NODESEP);
|
|
6581
|
+
}
|
|
6582
|
+
}
|
|
6583
|
+
return best ? best.positions : null;
|
|
6584
|
+
}
|
|
6585
|
+
_chunk7QVYU63Ejs.__name.call(void 0, fitLayeredLayoutToAspectRatio, "fitLayeredLayoutToAspectRatio");
|
|
6520
6586
|
|
|
6521
6587
|
// src/hooks/useCustomD3Graph.tsx
|
|
6522
6588
|
|
|
@@ -6653,7 +6719,15 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
|
|
|
6653
6719
|
let layeredPositionsApplied = false;
|
|
6654
6720
|
if (layoutMode === "layered") {
|
|
6655
6721
|
const layeredOpts = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _144 => _144.layered]), () => ( {}));
|
|
6656
|
-
const
|
|
6722
|
+
const useFit = layeredOpts.fitContainer === true && width > 0 && height > 0;
|
|
6723
|
+
const positions = useFit ? fitLayeredLayoutToAspectRatio(visibleNodes, visibleLinks, {
|
|
6724
|
+
rankdir: _nullishCoalesce(layeredOpts.rankdir, () => ( "LR")),
|
|
6725
|
+
nodesep: layeredOpts.nodesep,
|
|
6726
|
+
ranksep: layeredOpts.ranksep,
|
|
6727
|
+
minNodeWidth: nodeRadius * 2,
|
|
6728
|
+
minNodeHeight: nodeRadius * 2,
|
|
6729
|
+
targetAspectRatio: width / height
|
|
6730
|
+
}) : computeLayeredLayout(visibleNodes, visibleLinks, {
|
|
6657
6731
|
rankdir: _nullishCoalesce(layeredOpts.rankdir, () => ( "LR")),
|
|
6658
6732
|
nodesep: layeredOpts.nodesep,
|
|
6659
6733
|
ranksep: layeredOpts.ranksep,
|
|
@@ -6963,6 +7037,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
|
|
|
6963
7037
|
_optionalChain([options, 'optionalAccess', _154 => _154.layered, 'optionalAccess', _155 => _155.rankdir]),
|
|
6964
7038
|
_optionalChain([options, 'optionalAccess', _156 => _156.layered, 'optionalAccess', _157 => _157.nodesep]),
|
|
6965
7039
|
_optionalChain([options, 'optionalAccess', _158 => _158.layered, 'optionalAccess', _159 => _159.ranksep]),
|
|
7040
|
+
_optionalChain([options, 'optionalAccess', _160 => _160.layered, 'optionalAccess', _161 => _161.fitContainer]),
|
|
6966
7041
|
loadingNodeIds,
|
|
6967
7042
|
onNodeClick
|
|
6968
7043
|
]);
|
|
@@ -7085,7 +7160,7 @@ function usePageTracker() {
|
|
|
7085
7160
|
if (typeof document !== "undefined") {
|
|
7086
7161
|
const titleParts = document.title.split("]");
|
|
7087
7162
|
if (titleParts[1]) {
|
|
7088
|
-
const cleanTitle = _optionalChain([titleParts, 'access',
|
|
7163
|
+
const cleanTitle = _optionalChain([titleParts, 'access', _162 => _162[1], 'access', _163 => _163.split, 'call', _164 => _164("|"), 'access', _165 => _165[0], 'optionalAccess', _166 => _166.trim, 'call', _167 => _167()]);
|
|
7089
7164
|
pageTitle = cleanTitle || foundModule.name;
|
|
7090
7165
|
}
|
|
7091
7166
|
}
|
|
@@ -7122,7 +7197,7 @@ function usePushNotifications() {
|
|
|
7122
7197
|
const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
7123
7198
|
if ("serviceWorker" in navigator && "PushManager" in window) {
|
|
7124
7199
|
try {
|
|
7125
|
-
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess',
|
|
7200
|
+
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _168 => _168.id])}`;
|
|
7126
7201
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
7127
7202
|
const registration = await navigator.serviceWorker.register(`${_chunkSE5HIHJSjs.getAppUrl.call(void 0, )}/sw.js`);
|
|
7128
7203
|
let permission = Notification.permission;
|
|
@@ -7179,7 +7254,7 @@ function useSocket({ token }) {
|
|
|
7179
7254
|
const socketRef = _react.useRef.call(void 0, null);
|
|
7180
7255
|
_react.useEffect.call(void 0, () => {
|
|
7181
7256
|
if (!token) return;
|
|
7182
|
-
const globalSocketKey = `__socket_${_optionalChain([process, 'access',
|
|
7257
|
+
const globalSocketKey = `__socket_${_optionalChain([process, 'access', _169 => _169.env, 'access', _170 => _170.NEXT_PUBLIC_API_URL, 'optionalAccess', _171 => _171.replace, 'call', _172 => _172(/[^a-zA-Z0-9]/g, "_")])}`;
|
|
7183
7258
|
if (typeof window !== "undefined") {
|
|
7184
7259
|
const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
|
|
7185
7260
|
const existingSocket = window[globalSocketKey];
|
|
@@ -7372,23 +7447,23 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7372
7447
|
);
|
|
7373
7448
|
const matchedModuleKey = moduleKeys.find((key) => {
|
|
7374
7449
|
const descriptor2 = Object.getOwnPropertyDescriptor(_chunkXAWKRNYMjs.Modules, key);
|
|
7375
|
-
if (!_optionalChain([descriptor2, 'optionalAccess',
|
|
7450
|
+
if (!_optionalChain([descriptor2, 'optionalAccess', _173 => _173.get])) return false;
|
|
7376
7451
|
const selectedModule = descriptor2.get.call(_chunkXAWKRNYMjs.Modules);
|
|
7377
|
-
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access',
|
|
7452
|
+
return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _174 => _174.pageUrl, 'optionalAccess', _175 => _175.toLowerCase, 'call', _176 => _176()]));
|
|
7378
7453
|
});
|
|
7379
7454
|
if (!matchedModuleKey) return void 0;
|
|
7380
7455
|
const descriptor = Object.getOwnPropertyDescriptor(_chunkXAWKRNYMjs.Modules, matchedModuleKey);
|
|
7381
|
-
return _optionalChain([descriptor, 'optionalAccess',
|
|
7456
|
+
return _optionalChain([descriptor, 'optionalAccess', _177 => _177.get, 'optionalAccess', _178 => _178.call, 'call', _179 => _179(_chunkXAWKRNYMjs.Modules)]);
|
|
7382
7457
|
}, "matchUrlToModule");
|
|
7383
7458
|
const currentUser = dehydratedUser ? _chunkXAWKRNYMjs.rehydrate.call(void 0, _chunkXAWKRNYMjs.Modules.User, dehydratedUser) : null;
|
|
7384
|
-
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
7459
|
+
const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _180 => _180.company]), () => ( null));
|
|
7385
7460
|
const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
|
|
7386
7461
|
if (user) setDehydratedUser(user.dehydrate());
|
|
7387
7462
|
else setDehydratedUser(null);
|
|
7388
7463
|
}, "setUser");
|
|
7389
7464
|
const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
|
|
7390
7465
|
if (!currentUser) return false;
|
|
7391
|
-
return !!_optionalChain([currentUser, 'access',
|
|
7466
|
+
return !!_optionalChain([currentUser, 'access', _181 => _181.roles, 'optionalAccess', _182 => _182.some, 'call', _183 => _183((userRole) => userRole.id === roleId)]);
|
|
7392
7467
|
}, "hasRole");
|
|
7393
7468
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
7394
7469
|
if (hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)) return true;
|
|
@@ -7428,12 +7503,12 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7428
7503
|
try {
|
|
7429
7504
|
const fullUser = await _chunkXAWKRNYMjs.UserService.findFullUser();
|
|
7430
7505
|
if (fullUser) {
|
|
7431
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
7432
|
-
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
7506
|
+
if (!_optionalChain([options, 'optionalAccess', _184 => _184.skipCookieUpdate])) {
|
|
7507
|
+
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _185 => _185.updateToken, 'call', _186 => _186({
|
|
7433
7508
|
userId: fullUser.id,
|
|
7434
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
7509
|
+
companyId: _optionalChain([fullUser, 'access', _187 => _187.company, 'optionalAccess', _188 => _188.id]),
|
|
7435
7510
|
roles: fullUser.roles.map((role) => role.id),
|
|
7436
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
7511
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _189 => _189.company, 'optionalAccess', _190 => _190.features, 'optionalAccess', _191 => _191.map, 'call', _192 => _192((feature) => feature.id)]), () => ( [])),
|
|
7437
7512
|
modules: fullUser.modules.map((module) => ({
|
|
7438
7513
|
id: module.id,
|
|
7439
7514
|
permissions: module.permissions
|
|
@@ -7455,11 +7530,11 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7455
7530
|
refreshUserRef.current = refreshUser;
|
|
7456
7531
|
const isRefreshingRef = _react.useRef.call(void 0, false);
|
|
7457
7532
|
_react.useEffect.call(void 0, () => {
|
|
7458
|
-
if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess',
|
|
7533
|
+
if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _193 => _193.company, 'optionalAccess', _194 => _194.id])) {
|
|
7459
7534
|
return;
|
|
7460
7535
|
}
|
|
7461
7536
|
const handleCompanyUpdate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
|
|
7462
|
-
if (data.companyId === _optionalChain([currentUser, 'access',
|
|
7537
|
+
if (data.companyId === _optionalChain([currentUser, 'access', _195 => _195.company, 'optionalAccess', _196 => _196.id]) && !isRefreshingRef.current) {
|
|
7463
7538
|
isRefreshingRef.current = true;
|
|
7464
7539
|
refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
|
|
7465
7540
|
isRefreshingRef.current = false;
|
|
@@ -7472,7 +7547,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7472
7547
|
socket.off("company:tokens_updated", handleCompanyUpdate);
|
|
7473
7548
|
socket.off("company:subscription_updated", handleCompanyUpdate);
|
|
7474
7549
|
};
|
|
7475
|
-
}, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess',
|
|
7550
|
+
}, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _197 => _197.company, 'optionalAccess', _198 => _198.id])]);
|
|
7476
7551
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7477
7552
|
CurrentUserContext.Provider,
|
|
7478
7553
|
{
|
|
@@ -7543,7 +7618,7 @@ function AddUserToRoleInternal({ role, refresh }) {
|
|
|
7543
7618
|
const data = useDataListRetriever({
|
|
7544
7619
|
ready: !!company && show,
|
|
7545
7620
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params), "retriever"),
|
|
7546
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
7621
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _199 => _199.id]) },
|
|
7547
7622
|
module: _chunkXAWKRNYMjs.Modules.User
|
|
7548
7623
|
});
|
|
7549
7624
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7611,10 +7686,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
7611
7686
|
onValueChange: setFiles,
|
|
7612
7687
|
dropzoneOptions: dropzone2,
|
|
7613
7688
|
className: "h-40 w-40 rounded-full p-0",
|
|
7614
|
-
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',
|
|
7689
|
+
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', _200 => _200.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7615
7690
|
_image2.default,
|
|
7616
7691
|
{
|
|
7617
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess',
|
|
7692
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _201 => _201.avatar]) || "",
|
|
7618
7693
|
alt: t(`common.avatar`),
|
|
7619
7694
|
width: 200,
|
|
7620
7695
|
height: 200
|
|
@@ -7622,7 +7697,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
|
|
|
7622
7697
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
|
|
7623
7698
|
}
|
|
7624
7699
|
),
|
|
7625
|
-
!resetImage && (file || _optionalChain([user, 'optionalAccess',
|
|
7700
|
+
!resetImage && (file || _optionalChain([user, 'optionalAccess', _202 => _202.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7626
7701
|
Button,
|
|
7627
7702
|
{
|
|
7628
7703
|
className: "",
|
|
@@ -7650,7 +7725,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
|
7650
7725
|
const router = _chunkSE5HIHJSjs.useI18nRouter.call(void 0, );
|
|
7651
7726
|
const _t = _nextintl.useTranslations.call(void 0, );
|
|
7652
7727
|
let cId;
|
|
7653
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
7728
|
+
if (_optionalChain([currentUser, 'optionalAccess', _203 => _203.roles, 'access', _204 => _204.find, 'call', _205 => _205((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
7654
7729
|
cId = companyId;
|
|
7655
7730
|
} else {
|
|
7656
7731
|
if (!company) return;
|
|
@@ -7713,18 +7788,18 @@ function UserEditorInternal({
|
|
|
7713
7788
|
}, [company]);
|
|
7714
7789
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
7715
7790
|
(open) => {
|
|
7716
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess',
|
|
7791
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _206 => _206.roles, 'access', _207 => _207.find, 'call', _208 => _208((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
|
|
7717
7792
|
async function fetchRoles() {
|
|
7718
7793
|
const allRoles = await _chunkXAWKRNYMjs.RoleService.findAllRoles({});
|
|
7719
7794
|
const availableRoles = allRoles.filter(
|
|
7720
|
-
(role) => role.id !== _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess',
|
|
7795
|
+
(role) => role.id !== _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _209 => _209.features, 'access', _210 => _210.some, 'call', _211 => _211((feature) => feature.id === _optionalChain([role, 'access', _212 => _212.requiredFeature, 'optionalAccess', _213 => _213.id]))]))
|
|
7721
7796
|
);
|
|
7722
7797
|
setRoles(availableRoles);
|
|
7723
7798
|
}
|
|
7724
7799
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7725
7800
|
fetchRoles();
|
|
7726
7801
|
}
|
|
7727
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
7802
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _214 => _214(open)]);
|
|
7728
7803
|
},
|
|
7729
7804
|
[company, currentUser, roles.length, onDialogOpenChange]
|
|
7730
7805
|
);
|
|
@@ -7758,29 +7833,29 @@ function UserEditorInternal({
|
|
|
7758
7833
|
);
|
|
7759
7834
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
7760
7835
|
return {
|
|
7761
|
-
id: _optionalChain([user, 'optionalAccess',
|
|
7762
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
7763
|
-
title: _optionalChain([user, 'optionalAccess',
|
|
7764
|
-
bio: _optionalChain([user, 'optionalAccess',
|
|
7765
|
-
email: _optionalChain([user, 'optionalAccess',
|
|
7766
|
-
phone: _optionalChain([user, 'optionalAccess',
|
|
7836
|
+
id: _optionalChain([user, 'optionalAccess', _215 => _215.id]) || _uuid.v4.call(void 0, ),
|
|
7837
|
+
name: _optionalChain([user, 'optionalAccess', _216 => _216.name]) || "",
|
|
7838
|
+
title: _optionalChain([user, 'optionalAccess', _217 => _217.title]) || "",
|
|
7839
|
+
bio: _optionalChain([user, 'optionalAccess', _218 => _218.bio]) || "",
|
|
7840
|
+
email: _optionalChain([user, 'optionalAccess', _219 => _219.email]) || "",
|
|
7841
|
+
phone: _optionalChain([user, 'optionalAccess', _220 => _220.phone]) || "",
|
|
7767
7842
|
password: "",
|
|
7768
|
-
roleIds: _optionalChain([user, 'optionalAccess',
|
|
7843
|
+
roleIds: _optionalChain([user, 'optionalAccess', _221 => _221.roles, 'access', _222 => _222.map, 'call', _223 => _223((role) => role.id)]) || [],
|
|
7769
7844
|
sendInvitationEmail: false,
|
|
7770
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
7845
|
+
avatar: _optionalChain([user, 'optionalAccess', _224 => _224.avatarUrl]) || ""
|
|
7771
7846
|
};
|
|
7772
7847
|
}, [user]);
|
|
7773
7848
|
const form = _reacthookform.useForm.call(void 0, {
|
|
7774
7849
|
resolver: _zod.zodResolver.call(void 0, formSchema),
|
|
7775
7850
|
defaultValues: getDefaultValues()
|
|
7776
7851
|
});
|
|
7777
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess',
|
|
7852
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _225 => _225.id]) === _optionalChain([user, 'optionalAccess', _226 => _226.id]) && hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkXAWKRNYMjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator));
|
|
7778
7853
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7779
7854
|
EditorSheet,
|
|
7780
7855
|
{
|
|
7781
7856
|
form,
|
|
7782
7857
|
entityType: t(`entities.users`, { count: 1 }),
|
|
7783
|
-
entityName: _optionalChain([user, 'optionalAccess',
|
|
7858
|
+
entityName: _optionalChain([user, 'optionalAccess', _227 => _227.name]),
|
|
7784
7859
|
isEdit: !!user,
|
|
7785
7860
|
module: _chunkXAWKRNYMjs.Modules.User,
|
|
7786
7861
|
propagateChanges,
|
|
@@ -7832,7 +7907,7 @@ function UserEditorInternal({
|
|
|
7832
7907
|
adminCreated
|
|
7833
7908
|
};
|
|
7834
7909
|
const updatedUser = user ? await _chunkXAWKRNYMjs.UserService.update(payload) : await _chunkXAWKRNYMjs.UserService.create(payload);
|
|
7835
|
-
if (_optionalChain([currentUser, 'optionalAccess',
|
|
7910
|
+
if (_optionalChain([currentUser, 'optionalAccess', _228 => _228.id]) === updatedUser.id) setUser(updatedUser);
|
|
7836
7911
|
return updatedUser;
|
|
7837
7912
|
},
|
|
7838
7913
|
onRevalidate,
|
|
@@ -8079,7 +8154,7 @@ function EntityMultiSelector({
|
|
|
8079
8154
|
if (open) {
|
|
8080
8155
|
setSearchTerm("");
|
|
8081
8156
|
requestAnimationFrame(() => {
|
|
8082
|
-
_optionalChain([searchInputRef, 'access',
|
|
8157
|
+
_optionalChain([searchInputRef, 'access', _229 => _229.current, 'optionalAccess', _230 => _230.focus, 'call', _231 => _231()]);
|
|
8083
8158
|
});
|
|
8084
8159
|
}
|
|
8085
8160
|
}, [open]);
|
|
@@ -8096,7 +8171,7 @@ function EntityMultiSelector({
|
|
|
8096
8171
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8097
8172
|
const cb = onChangeRef.current;
|
|
8098
8173
|
if (cb) {
|
|
8099
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8174
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _232 => _232.find, 'call', _233 => _233((opt) => opt.id === v.id), 'optionalAccess', _234 => _234.entityData])).filter(Boolean);
|
|
8100
8175
|
cb(fullData);
|
|
8101
8176
|
}
|
|
8102
8177
|
},
|
|
@@ -8109,7 +8184,7 @@ function EntityMultiSelector({
|
|
|
8109
8184
|
form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
|
|
8110
8185
|
const cb = onChangeRef.current;
|
|
8111
8186
|
if (cb) {
|
|
8112
|
-
const fullData = next.map((v) => _optionalChain([options, 'access',
|
|
8187
|
+
const fullData = next.map((v) => _optionalChain([options, 'access', _235 => _235.find, 'call', _236 => _236((opt) => opt.id === v.id), 'optionalAccess', _237 => _237.entityData])).filter(Boolean);
|
|
8113
8188
|
cb(fullData);
|
|
8114
8189
|
}
|
|
8115
8190
|
},
|
|
@@ -8247,11 +8322,11 @@ function UserMultiSelect({
|
|
|
8247
8322
|
emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
|
|
8248
8323
|
isRequired,
|
|
8249
8324
|
retriever: (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params),
|
|
8250
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
8325
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _238 => _238.id]) },
|
|
8251
8326
|
module: _chunkXAWKRNYMjs.Modules.User,
|
|
8252
8327
|
getLabel: (user) => user.name,
|
|
8253
8328
|
toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
|
|
8254
|
-
excludeId: _optionalChain([currentUser, 'optionalAccess',
|
|
8329
|
+
excludeId: _optionalChain([currentUser, 'optionalAccess', _239 => _239.id]),
|
|
8255
8330
|
onChange,
|
|
8256
8331
|
renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
8257
8332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
|
|
@@ -8517,7 +8592,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
|
|
|
8517
8592
|
|
|
8518
8593
|
// src/components/errors/errorToast.ts
|
|
8519
8594
|
function errorToast(params) {
|
|
8520
|
-
_chunkXAWKRNYMjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess',
|
|
8595
|
+
_chunkXAWKRNYMjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _240 => _240.title]), () => ( "Error")), {
|
|
8521
8596
|
description: params.error instanceof Error ? params.error.message : String(params.error)
|
|
8522
8597
|
});
|
|
8523
8598
|
}
|
|
@@ -8681,21 +8756,21 @@ function useEditorDialog(isFormDirty, options) {
|
|
|
8681
8756
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8682
8757
|
const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
|
|
8683
8758
|
_react.useEffect.call(void 0, () => {
|
|
8684
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8759
|
+
if (_optionalChain([options, 'optionalAccess', _241 => _241.dialogOpen]) !== void 0) {
|
|
8685
8760
|
setOpen(options.dialogOpen);
|
|
8686
8761
|
}
|
|
8687
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
8762
|
+
}, [_optionalChain([options, 'optionalAccess', _242 => _242.dialogOpen])]);
|
|
8688
8763
|
_react.useEffect.call(void 0, () => {
|
|
8689
|
-
if (typeof _optionalChain([options, 'optionalAccess',
|
|
8764
|
+
if (typeof _optionalChain([options, 'optionalAccess', _243 => _243.onDialogOpenChange]) === "function") {
|
|
8690
8765
|
options.onDialogOpenChange(open);
|
|
8691
8766
|
}
|
|
8692
|
-
}, [open, _optionalChain([options, 'optionalAccess',
|
|
8767
|
+
}, [open, _optionalChain([options, 'optionalAccess', _244 => _244.onDialogOpenChange])]);
|
|
8693
8768
|
_react.useEffect.call(void 0, () => {
|
|
8694
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8695
|
-
}, [_optionalChain([options, 'optionalAccess',
|
|
8769
|
+
if (_optionalChain([options, 'optionalAccess', _245 => _245.forceShow])) setOpen(true);
|
|
8770
|
+
}, [_optionalChain([options, 'optionalAccess', _246 => _246.forceShow])]);
|
|
8696
8771
|
_react.useEffect.call(void 0, () => {
|
|
8697
8772
|
if (!open) {
|
|
8698
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8773
|
+
if (_optionalChain([options, 'optionalAccess', _247 => _247.onClose])) options.onClose();
|
|
8699
8774
|
}
|
|
8700
8775
|
}, [open]);
|
|
8701
8776
|
const handleOpenChange = _react.useCallback.call(void 0,
|
|
@@ -8787,7 +8862,7 @@ function EditorSheet({
|
|
|
8787
8862
|
hasBeenOpen.current = true;
|
|
8788
8863
|
} else if (hasBeenOpen.current) {
|
|
8789
8864
|
form.reset(onReset());
|
|
8790
|
-
_optionalChain([onClose, 'optionalCall',
|
|
8865
|
+
_optionalChain([onClose, 'optionalCall', _248 => _248()]);
|
|
8791
8866
|
}
|
|
8792
8867
|
}, [open]);
|
|
8793
8868
|
const wrappedOnSubmit = _react.useCallback.call(void 0,
|
|
@@ -8801,11 +8876,11 @@ function EditorSheet({
|
|
|
8801
8876
|
if (onSuccess) {
|
|
8802
8877
|
await onSuccess();
|
|
8803
8878
|
} else if (result) {
|
|
8804
|
-
_optionalChain([onRevalidate, 'optionalCall',
|
|
8879
|
+
_optionalChain([onRevalidate, 'optionalCall', _249 => _249(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
|
|
8805
8880
|
if (isEdit && propagateChanges) {
|
|
8806
8881
|
propagateChanges(result);
|
|
8807
8882
|
} else {
|
|
8808
|
-
_optionalChain([onNavigate, 'optionalCall',
|
|
8883
|
+
_optionalChain([onNavigate, 'optionalCall', _250 => _250(generateUrl({ page: module, id: result.id }))]);
|
|
8809
8884
|
}
|
|
8810
8885
|
}
|
|
8811
8886
|
} catch (error) {
|
|
@@ -9031,7 +9106,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9031
9106
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9032
9107
|
const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
|
|
9033
9108
|
_react.useEffect.call(void 0, () => {
|
|
9034
|
-
if (_optionalChain([date, 'optionalAccess',
|
|
9109
|
+
if (_optionalChain([date, 'optionalAccess', _251 => _251.from]) && _optionalChain([date, 'optionalAccess', _252 => _252.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _253 => _253.from, 'optionalAccess', _254 => _254.getTime, 'call', _255 => _255()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _256 => _256.to, 'optionalAccess', _257 => _257.getTime, 'call', _258 => _258()]) !== date.to.getTime())) {
|
|
9035
9110
|
onDateChange(date);
|
|
9036
9111
|
setPrevRange(date);
|
|
9037
9112
|
setOpen(false);
|
|
@@ -9042,7 +9117,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9042
9117
|
setDate(void 0);
|
|
9043
9118
|
return;
|
|
9044
9119
|
}
|
|
9045
|
-
if (range.from && (!_optionalChain([date, 'optionalAccess',
|
|
9120
|
+
if (range.from && (!_optionalChain([date, 'optionalAccess', _259 => _259.from]) || range.from.getTime() !== date.from.getTime())) {
|
|
9046
9121
|
setDate({ from: range.from, to: void 0 });
|
|
9047
9122
|
} else {
|
|
9048
9123
|
setDate(range);
|
|
@@ -9057,7 +9132,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9057
9132
|
className: _chunkXAWKRNYMjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
|
|
9058
9133
|
children: [
|
|
9059
9134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
|
|
9060
|
-
_optionalChain([date, 'optionalAccess',
|
|
9135
|
+
_optionalChain([date, 'optionalAccess', _260 => _260.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9061
9136
|
_datefns.format.call(void 0, date.from, "LLL dd, y"),
|
|
9062
9137
|
" - ",
|
|
9063
9138
|
_datefns.format.call(void 0, date.to, "LLL dd, y")
|
|
@@ -9070,7 +9145,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
|
|
|
9070
9145
|
Calendar,
|
|
9071
9146
|
{
|
|
9072
9147
|
mode: "range",
|
|
9073
|
-
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess',
|
|
9148
|
+
defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _261 => _261.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
|
|
9074
9149
|
selected: date,
|
|
9075
9150
|
onSelect: handleSelect,
|
|
9076
9151
|
numberOfMonths: 2
|
|
@@ -9157,7 +9232,7 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9157
9232
|
movePrev();
|
|
9158
9233
|
} else if (e.key === "Enter" || e.key === "Space") {
|
|
9159
9234
|
if (activeIndex === -1) {
|
|
9160
|
-
_optionalChain([dropzoneState, 'access',
|
|
9235
|
+
_optionalChain([dropzoneState, 'access', _262 => _262.inputRef, 'access', _263 => _263.current, 'optionalAccess', _264 => _264.click, 'call', _265 => _265()]);
|
|
9161
9236
|
}
|
|
9162
9237
|
} else if (e.key === "Delete" || e.key === "Backspace") {
|
|
9163
9238
|
if (activeIndex !== -1) {
|
|
@@ -9195,13 +9270,13 @@ var FileUploader = _react.forwardRef.call(void 0,
|
|
|
9195
9270
|
onValueChange(newValues);
|
|
9196
9271
|
if (rejectedFiles.length > 0) {
|
|
9197
9272
|
for (let i = 0; i < rejectedFiles.length; i++) {
|
|
9198
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9273
|
+
if (_optionalChain([rejectedFiles, 'access', _266 => _266[i], 'access', _267 => _267.errors, 'access', _268 => _268[0], 'optionalAccess', _269 => _269.code]) === "file-too-large") {
|
|
9199
9274
|
_chunkXAWKRNYMjs.showError.call(void 0, t("common.errors.file"), {
|
|
9200
9275
|
description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
|
|
9201
9276
|
});
|
|
9202
9277
|
break;
|
|
9203
9278
|
}
|
|
9204
|
-
if (_optionalChain([rejectedFiles, 'access',
|
|
9279
|
+
if (_optionalChain([rejectedFiles, 'access', _270 => _270[i], 'access', _271 => _271.errors, 'access', _272 => _272[0], 'optionalAccess', _273 => _273.message])) {
|
|
9205
9280
|
_chunkXAWKRNYMjs.showError.call(void 0, t(`common.errors.file`), {
|
|
9206
9281
|
description: rejectedFiles[i].errors[0].message
|
|
9207
9282
|
});
|
|
@@ -9400,7 +9475,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
|
|
|
9400
9475
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
9401
9476
|
|
|
9402
9477
|
|
|
9403
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
9478
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-ZD2AMN72.js"))), {
|
|
9404
9479
|
ssr: false
|
|
9405
9480
|
});
|
|
9406
9481
|
var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -9464,7 +9539,7 @@ function FormBlockNote({
|
|
|
9464
9539
|
onChange: (content, isEmpty) => {
|
|
9465
9540
|
lastEditorContentRef.current = content;
|
|
9466
9541
|
field.onChange(content);
|
|
9467
|
-
_optionalChain([onEmptyChange, 'optionalCall',
|
|
9542
|
+
_optionalChain([onEmptyChange, 'optionalCall', _274 => _274(isEmpty)]);
|
|
9468
9543
|
},
|
|
9469
9544
|
placeholder,
|
|
9470
9545
|
bordered: true,
|
|
@@ -10041,11 +10116,11 @@ function FormPlaceAutocomplete({
|
|
|
10041
10116
|
const data = await response.json();
|
|
10042
10117
|
if (data.suggestions) {
|
|
10043
10118
|
const formattedSuggestions = data.suggestions.map((suggestion) => ({
|
|
10044
|
-
place_id: _optionalChain([suggestion, 'access',
|
|
10045
|
-
description: _optionalChain([suggestion, 'access',
|
|
10119
|
+
place_id: _optionalChain([suggestion, 'access', _275 => _275.placePrediction, 'optionalAccess', _276 => _276.placeId]) || "",
|
|
10120
|
+
description: _optionalChain([suggestion, 'access', _277 => _277.placePrediction, 'optionalAccess', _278 => _278.text, 'optionalAccess', _279 => _279.text]) || "",
|
|
10046
10121
|
structured_formatting: {
|
|
10047
|
-
main_text: _optionalChain([suggestion, 'access',
|
|
10048
|
-
secondary_text: _optionalChain([suggestion, 'access',
|
|
10122
|
+
main_text: _optionalChain([suggestion, 'access', _280 => _280.placePrediction, 'optionalAccess', _281 => _281.structuredFormat, 'optionalAccess', _282 => _282.mainText, 'optionalAccess', _283 => _283.text]) || "",
|
|
10123
|
+
secondary_text: _optionalChain([suggestion, 'access', _284 => _284.placePrediction, 'optionalAccess', _285 => _285.structuredFormat, 'optionalAccess', _286 => _286.secondaryText, 'optionalAccess', _287 => _287.text]) || ""
|
|
10049
10124
|
}
|
|
10050
10125
|
}));
|
|
10051
10126
|
setSuggestions(formattedSuggestions);
|
|
@@ -10192,8 +10267,8 @@ function FormPlaceAutocomplete({
|
|
|
10192
10267
|
className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
|
|
10193
10268
|
onClick: () => handleSuggestionSelect(suggestion),
|
|
10194
10269
|
children: [
|
|
10195
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access',
|
|
10196
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access',
|
|
10270
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _288 => _288.structured_formatting, 'optionalAccess', _289 => _289.main_text]) }),
|
|
10271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _290 => _290.structured_formatting, 'optionalAccess', _291 => _291.secondary_text]) })
|
|
10197
10272
|
]
|
|
10198
10273
|
},
|
|
10199
10274
|
suggestion.place_id || index
|
|
@@ -10239,7 +10314,7 @@ function FormSelect({
|
|
|
10239
10314
|
disabled,
|
|
10240
10315
|
"data-testid": testId,
|
|
10241
10316
|
children: [
|
|
10242
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access',
|
|
10317
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _292 => _292.find, 'call', _293 => _293((v) => v.id === field.value), 'optionalAccess', _294 => _294.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
|
|
10243
10318
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
|
|
10244
10319
|
allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
|
|
10245
10320
|
values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
|
|
@@ -10410,7 +10485,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
|
|
|
10410
10485
|
}, "getInitials");
|
|
10411
10486
|
const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
10412
10487
|
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: [
|
|
10413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess',
|
|
10488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _295 => _295.avatar]) }),
|
|
10414
10489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
|
|
10415
10490
|
] }) });
|
|
10416
10491
|
}, "getAvatar");
|
|
@@ -10601,7 +10676,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
10601
10676
|
})
|
|
10602
10677
|
};
|
|
10603
10678
|
const columns = _react.useMemo.call(void 0, () => {
|
|
10604
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
10679
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _296 => _296[field], 'optionalCall', _297 => _297()])).filter((col) => col !== void 0);
|
|
10605
10680
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
10606
10681
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
10607
10682
|
}, "useUserTableStructure");
|
|
@@ -10715,10 +10790,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
|
|
|
10715
10790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
10716
10791
|
/* @__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: [
|
|
10717
10792
|
/* @__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: [
|
|
10718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access',
|
|
10719
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access',
|
|
10793
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _298 => _298.value, 'optionalAccess', _299 => _299.avatar]) }),
|
|
10794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _300 => _300.value, 'optionalAccess', _301 => _301.name]) ? _optionalChain([field, 'access', _302 => _302.value, 'optionalAccess', _303 => _303.name, 'access', _304 => _304.split, 'call', _305 => _305(" "), 'access', _306 => _306.map, 'call', _307 => _307((name) => name.charAt(0).toUpperCase())]) : "X" })
|
|
10720
10795
|
] }) }),
|
|
10721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access',
|
|
10796
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _308 => _308.value, 'optionalAccess', _309 => _309.name]), () => ( "")) })
|
|
10722
10797
|
] }) : /* @__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 }) }))) }) }) }),
|
|
10723
10798
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10724
10799
|
_lucidereact.CircleX,
|
|
@@ -11049,7 +11124,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
|
|
|
11049
11124
|
const data = useDataListRetriever({
|
|
11050
11125
|
ready: !!company,
|
|
11051
11126
|
retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params), "retriever"),
|
|
11052
|
-
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess',
|
|
11127
|
+
retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _310 => _310.id]), isDeleted },
|
|
11053
11128
|
module: _chunkXAWKRNYMjs.Modules.User
|
|
11054
11129
|
});
|
|
11055
11130
|
_react.useEffect.call(void 0, () => {
|
|
@@ -11156,11 +11231,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
|
|
|
11156
11231
|
className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
|
|
11157
11232
|
onClick: (_e) => {
|
|
11158
11233
|
setSelectedUser(user);
|
|
11159
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11234
|
+
_optionalChain([setLevelOpen, 'optionalCall', _311 => _311(true)]);
|
|
11160
11235
|
},
|
|
11161
11236
|
onSelect: (_e) => {
|
|
11162
11237
|
setSelectedUser(user);
|
|
11163
|
-
_optionalChain([setLevelOpen, 'optionalCall',
|
|
11238
|
+
_optionalChain([setLevelOpen, 'optionalCall', _312 => _312(true)]);
|
|
11164
11239
|
},
|
|
11165
11240
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
|
|
11166
11241
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
|
|
@@ -11291,7 +11366,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11291
11366
|
company.legal_address
|
|
11292
11367
|
] }),
|
|
11293
11368
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
|
|
11294
|
-
_optionalChain([company, 'access',
|
|
11369
|
+
_optionalChain([company, 'access', _313 => _313.configurations, 'optionalAccess', _314 => _314.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11295
11370
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11296
11371
|
t("features.configuration.country"),
|
|
11297
11372
|
":"
|
|
@@ -11299,7 +11374,7 @@ function CompanyContent({ company, actions }) {
|
|
|
11299
11374
|
" ",
|
|
11300
11375
|
company.configurations.country
|
|
11301
11376
|
] }),
|
|
11302
|
-
_optionalChain([company, 'access',
|
|
11377
|
+
_optionalChain([company, 'access', _315 => _315.configurations, 'optionalAccess', _316 => _316.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
|
|
11303
11378
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
|
|
11304
11379
|
t("features.configuration.currency"),
|
|
11305
11380
|
":"
|
|
@@ -11709,7 +11784,7 @@ function CompanyEditorInternal({
|
|
|
11709
11784
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
11710
11785
|
const fiscalRef = _react.useRef.call(void 0, null);
|
|
11711
11786
|
const addressComponentsRef = _react.useRef.call(void 0, {});
|
|
11712
|
-
const canAccessFeatures = hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access',
|
|
11787
|
+
const canAccessFeatures = hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _317 => _317.env, 'access', _318 => _318.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _319 => _319.toLowerCase, 'call', _320 => _320()]) === "true";
|
|
11713
11788
|
const handleDialogOpenChange = _react.useCallback.call(void 0,
|
|
11714
11789
|
(open) => {
|
|
11715
11790
|
if (open && features.length === 0 && canAccessFeatures) {
|
|
@@ -11724,7 +11799,7 @@ function CompanyEditorInternal({
|
|
|
11724
11799
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
11725
11800
|
fetchFeatures();
|
|
11726
11801
|
}
|
|
11727
|
-
_optionalChain([onDialogOpenChange, 'optionalCall',
|
|
11802
|
+
_optionalChain([onDialogOpenChange, 'optionalCall', _321 => _321(open)]);
|
|
11728
11803
|
},
|
|
11729
11804
|
[features.length, canAccessFeatures, hasRole, onDialogOpenChange]
|
|
11730
11805
|
);
|
|
@@ -11769,12 +11844,12 @@ function CompanyEditorInternal({
|
|
|
11769
11844
|
);
|
|
11770
11845
|
const getDefaultValues = _react.useCallback.call(void 0, () => {
|
|
11771
11846
|
return {
|
|
11772
|
-
id: _optionalChain([company, 'optionalAccess',
|
|
11773
|
-
name: _optionalChain([company, 'optionalAccess',
|
|
11774
|
-
featureIds: _optionalChain([company, 'optionalAccess',
|
|
11775
|
-
moduleIds: _optionalChain([company, 'optionalAccess',
|
|
11776
|
-
logo: _optionalChain([company, 'optionalAccess',
|
|
11777
|
-
legal_address: _optionalChain([company, 'optionalAccess',
|
|
11847
|
+
id: _optionalChain([company, 'optionalAccess', _322 => _322.id]) || _uuid.v4.call(void 0, ),
|
|
11848
|
+
name: _optionalChain([company, 'optionalAccess', _323 => _323.name]) || "",
|
|
11849
|
+
featureIds: _optionalChain([company, 'optionalAccess', _324 => _324.features, 'access', _325 => _325.map, 'call', _326 => _326((feature) => feature.id)]) || [],
|
|
11850
|
+
moduleIds: _optionalChain([company, 'optionalAccess', _327 => _327.modules, 'access', _328 => _328.map, 'call', _329 => _329((module) => module.id)]) || [],
|
|
11851
|
+
logo: _optionalChain([company, 'optionalAccess', _330 => _330.logo]) || "",
|
|
11852
|
+
legal_address: _optionalChain([company, 'optionalAccess', _331 => _331.legal_address]) || ""
|
|
11778
11853
|
};
|
|
11779
11854
|
}, [company]);
|
|
11780
11855
|
const form = _reacthookform.useForm.call(void 0, {
|
|
@@ -11786,7 +11861,7 @@ function CompanyEditorInternal({
|
|
|
11786
11861
|
{
|
|
11787
11862
|
form,
|
|
11788
11863
|
entityType: t(`entities.companies`, { count: 1 }),
|
|
11789
|
-
entityName: _optionalChain([company, 'optionalAccess',
|
|
11864
|
+
entityName: _optionalChain([company, 'optionalAccess', _332 => _332.name]),
|
|
11790
11865
|
isEdit: !!company,
|
|
11791
11866
|
module: _chunkXAWKRNYMjs.Modules.Company,
|
|
11792
11867
|
propagateChanges,
|
|
@@ -11811,7 +11886,7 @@ function CompanyEditorInternal({
|
|
|
11811
11886
|
throw new Error("Fiscal data validation failed");
|
|
11812
11887
|
}
|
|
11813
11888
|
const payload = {
|
|
11814
|
-
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess',
|
|
11889
|
+
id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _333 => _333.id]), () => ( _uuid.v4.call(void 0, ))),
|
|
11815
11890
|
name: values.name,
|
|
11816
11891
|
logo: files && contentType ? values.logo : void 0,
|
|
11817
11892
|
featureIds: values.featureIds,
|
|
@@ -11842,10 +11917,10 @@ function CompanyEditorInternal({
|
|
|
11842
11917
|
dialogOpen,
|
|
11843
11918
|
onDialogOpenChange: handleDialogOpenChange,
|
|
11844
11919
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start justify-between gap-x-4", children: [
|
|
11845
|
-
/* @__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',
|
|
11920
|
+
/* @__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', _334 => _334.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11846
11921
|
_image2.default,
|
|
11847
11922
|
{
|
|
11848
|
-
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess',
|
|
11923
|
+
src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _335 => _335.logo]) || "",
|
|
11849
11924
|
alt: "Company Logo",
|
|
11850
11925
|
width: 200,
|
|
11851
11926
|
height: 200
|
|
@@ -11879,7 +11954,7 @@ function CompanyEditorInternal({
|
|
|
11879
11954
|
}
|
|
11880
11955
|
),
|
|
11881
11956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mt-2 text-sm font-semibold", children: t(`company.sections.fiscal_data`) }),
|
|
11882
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess',
|
|
11957
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _336 => _336.fiscal_data])) })
|
|
11883
11958
|
] }),
|
|
11884
11959
|
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 }) }) })
|
|
11885
11960
|
] })
|
|
@@ -11996,7 +12071,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
|
|
|
11996
12071
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
11997
12072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
11998
12073
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
11999
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12074
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _337 => _337.actor, 'optionalAccess', _338 => _338.name]), () => ( "")),
|
|
12000
12075
|
title: data.title,
|
|
12001
12076
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12002
12077
|
}) }),
|
|
@@ -12025,7 +12100,7 @@ function NotificationMenuItem({ notification, closePopover }) {
|
|
|
12025
12100
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
12026
12101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
12027
12102
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
12028
|
-
actor: _nullishCoalesce(_optionalChain([data, 'access',
|
|
12103
|
+
actor: _nullishCoalesce(_optionalChain([data, 'access', _339 => _339.actor, 'optionalAccess', _340 => _340.name]), () => ( "")),
|
|
12029
12104
|
title: data.title,
|
|
12030
12105
|
message: _nullishCoalesce(notification.message, () => ( ""))
|
|
12031
12106
|
}) }),
|
|
@@ -12082,7 +12157,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
12082
12157
|
_react.useEffect.call(void 0, () => {
|
|
12083
12158
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
12084
12159
|
if (_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) {
|
|
12085
|
-
const isAdmin = _optionalChain([currentUser, 'access',
|
|
12160
|
+
const isAdmin = _optionalChain([currentUser, 'access', _341 => _341.roles, 'optionalAccess', _342 => _342.some, 'call', _343 => _343((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]);
|
|
12086
12161
|
if (isAdmin) {
|
|
12087
12162
|
setHasInitiallyLoaded(true);
|
|
12088
12163
|
return;
|
|
@@ -12284,7 +12359,7 @@ function OnboardingProvider({
|
|
|
12284
12359
|
let tourSteps = steps;
|
|
12285
12360
|
if (!tourSteps) {
|
|
12286
12361
|
const tour2 = tours.find((t) => t.id === tourId);
|
|
12287
|
-
tourSteps = _optionalChain([tour2, 'optionalAccess',
|
|
12362
|
+
tourSteps = _optionalChain([tour2, 'optionalAccess', _344 => _344.steps]);
|
|
12288
12363
|
}
|
|
12289
12364
|
if (!tourSteps || tourSteps.length === 0) {
|
|
12290
12365
|
console.warn(`No steps found for tour: ${tourId}`);
|
|
@@ -12352,10 +12427,10 @@ function OnboardingProvider({
|
|
|
12352
12427
|
when: {
|
|
12353
12428
|
show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12354
12429
|
setCurrentStepIndex(index);
|
|
12355
|
-
_optionalChain([stepConfig, 'access',
|
|
12430
|
+
_optionalChain([stepConfig, 'access', _345 => _345.onShow, 'optionalCall', _346 => _346()]);
|
|
12356
12431
|
}, "show"),
|
|
12357
12432
|
hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
12358
|
-
_optionalChain([stepConfig, 'access',
|
|
12433
|
+
_optionalChain([stepConfig, 'access', _347 => _347.onHide, 'optionalCall', _348 => _348()]);
|
|
12359
12434
|
}, "hide")
|
|
12360
12435
|
}
|
|
12361
12436
|
});
|
|
@@ -12586,10 +12661,10 @@ function HowToEditorInternal({
|
|
|
12586
12661
|
);
|
|
12587
12662
|
const getDefaultValues = _react.useCallback.call(void 0,
|
|
12588
12663
|
() => ({
|
|
12589
|
-
id: _optionalChain([howTo, 'optionalAccess',
|
|
12590
|
-
name: _optionalChain([howTo, 'optionalAccess',
|
|
12591
|
-
description: _optionalChain([howTo, 'optionalAccess',
|
|
12592
|
-
pages: _chunkXAWKRNYMjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess',
|
|
12664
|
+
id: _optionalChain([howTo, 'optionalAccess', _349 => _349.id]) || _uuid.v4.call(void 0, ),
|
|
12665
|
+
name: _optionalChain([howTo, 'optionalAccess', _350 => _350.name]) || "",
|
|
12666
|
+
description: _optionalChain([howTo, 'optionalAccess', _351 => _351.description]) || [],
|
|
12667
|
+
pages: _chunkXAWKRNYMjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _352 => _352.pages]))
|
|
12593
12668
|
}),
|
|
12594
12669
|
[howTo]
|
|
12595
12670
|
);
|
|
@@ -12620,7 +12695,7 @@ function HowToEditorInternal({
|
|
|
12620
12695
|
{
|
|
12621
12696
|
form,
|
|
12622
12697
|
entityType: t(`entities.howtos`, { count: 1 }),
|
|
12623
|
-
entityName: _optionalChain([howTo, 'optionalAccess',
|
|
12698
|
+
entityName: _optionalChain([howTo, 'optionalAccess', _353 => _353.name]),
|
|
12624
12699
|
isEdit: !!howTo,
|
|
12625
12700
|
module: _chunkXAWKRNYMjs.Modules.HowTo,
|
|
12626
12701
|
propagateChanges,
|
|
@@ -12924,7 +12999,7 @@ function withPatchedTitle(source, title) {
|
|
|
12924
12999
|
return _chunkXAWKRNYMjs.rehydrate.call(void 0, _chunkXAWKRNYMjs.Modules.Assistant, {
|
|
12925
13000
|
jsonApi: {
|
|
12926
13001
|
...dehydrated.jsonApi,
|
|
12927
|
-
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access',
|
|
13002
|
+
attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _354 => _354.jsonApi, 'optionalAccess', _355 => _355.attributes]), () => ( {})), title }
|
|
12928
13003
|
},
|
|
12929
13004
|
included: dehydrated.included
|
|
12930
13005
|
});
|
|
@@ -12951,7 +13026,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
|
|
|
12951
13026
|
if (!trimmed) return;
|
|
12952
13027
|
const optimistic = _chunkXAWKRNYMjs.AssistantMessage.buildOptimistic({
|
|
12953
13028
|
content: trimmed,
|
|
12954
|
-
assistantId: _optionalChain([assistant, 'optionalAccess',
|
|
13029
|
+
assistantId: _optionalChain([assistant, 'optionalAccess', _356 => _356.id]),
|
|
12955
13030
|
position: nextPosition(messages)
|
|
12956
13031
|
});
|
|
12957
13032
|
setMessages((prev) => [...prev, optimistic]);
|
|
@@ -12961,7 +13036,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
|
|
|
12961
13036
|
if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
|
|
12962
13037
|
if (typeof payload.status === "string") setStatus(payload.status);
|
|
12963
13038
|
}, "handler");
|
|
12964
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13039
|
+
_optionalChain([socket, 'optionalAccess', _357 => _357.on, 'call', _358 => _358("assistant:status", handler)]);
|
|
12965
13040
|
try {
|
|
12966
13041
|
if (!assistant) {
|
|
12967
13042
|
const created = await _chunkXAWKRNYMjs.AssistantService.create({ firstMessage: trimmed });
|
|
@@ -12986,7 +13061,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
|
|
|
12986
13061
|
return next;
|
|
12987
13062
|
});
|
|
12988
13063
|
} finally {
|
|
12989
|
-
_optionalChain([socket, 'optionalAccess',
|
|
13064
|
+
_optionalChain([socket, 'optionalAccess', _359 => _359.off, 'call', _360 => _360("assistant:status", handler)]);
|
|
12990
13065
|
setSending(false);
|
|
12991
13066
|
setStatus(void 0);
|
|
12992
13067
|
}
|
|
@@ -13036,7 +13111,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
|
|
|
13036
13111
|
await _chunkXAWKRNYMjs.AssistantService.delete({ id });
|
|
13037
13112
|
setThreads((prev) => prev.filter((t2) => t2.id !== id));
|
|
13038
13113
|
setAssistant((prev) => {
|
|
13039
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
13114
|
+
if (_optionalChain([prev, 'optionalAccess', _361 => _361.id]) === id) {
|
|
13040
13115
|
setMessages([]);
|
|
13041
13116
|
return void 0;
|
|
13042
13117
|
}
|
|
@@ -13251,7 +13326,7 @@ function EditableAvatar({
|
|
|
13251
13326
|
}, [image, isUploading, patchImage, t]);
|
|
13252
13327
|
const handleFileInputChange = _react.useCallback.call(void 0,
|
|
13253
13328
|
(e) => {
|
|
13254
|
-
const file = _optionalChain([e, 'access',
|
|
13329
|
+
const file = _optionalChain([e, 'access', _362 => _362.target, 'access', _363 => _363.files, 'optionalAccess', _364 => _364[0]]);
|
|
13255
13330
|
if (file) handleFile(file);
|
|
13256
13331
|
e.target.value = "";
|
|
13257
13332
|
},
|
|
@@ -13260,7 +13335,7 @@ function EditableAvatar({
|
|
|
13260
13335
|
const handleDrop = _react.useCallback.call(void 0,
|
|
13261
13336
|
(e) => {
|
|
13262
13337
|
e.preventDefault();
|
|
13263
|
-
const file = _optionalChain([e, 'access',
|
|
13338
|
+
const file = _optionalChain([e, 'access', _365 => _365.dataTransfer, 'access', _366 => _366.files, 'optionalAccess', _367 => _367[0]]);
|
|
13264
13339
|
if (file && file.type.startsWith("image/")) {
|
|
13265
13340
|
handleFile(file);
|
|
13266
13341
|
}
|
|
@@ -13287,7 +13362,7 @@ function EditableAvatar({
|
|
|
13287
13362
|
"button",
|
|
13288
13363
|
{
|
|
13289
13364
|
type: "button",
|
|
13290
|
-
onClick: () => _optionalChain([fileInputRef, 'access',
|
|
13365
|
+
onClick: () => _optionalChain([fileInputRef, 'access', _368 => _368.current, 'optionalAccess', _369 => _369.click, 'call', _370 => _370()]),
|
|
13291
13366
|
disabled: isUploading,
|
|
13292
13367
|
className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
|
|
13293
13368
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
|
|
@@ -13368,7 +13443,7 @@ function BreadcrumbMobile({
|
|
|
13368
13443
|
}
|
|
13369
13444
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
13370
13445
|
/* @__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: [
|
|
13371
|
-
_optionalChain([lastItem, 'optionalAccess',
|
|
13446
|
+
_optionalChain([lastItem, 'optionalAccess', _371 => _371.name]),
|
|
13372
13447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
|
|
13373
13448
|
] }),
|
|
13374
13449
|
/* @__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)) })
|
|
@@ -13672,7 +13747,7 @@ function RoundPageContainer({
|
|
|
13672
13747
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
13673
13748
|
_react.useEffect.call(void 0, () => {
|
|
13674
13749
|
const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
|
|
13675
|
-
if (_optionalChain([match, 'optionalAccess',
|
|
13750
|
+
if (_optionalChain([match, 'optionalAccess', _372 => _372.split, 'call', _373 => _373("="), 'access', _374 => _374[1]]) === "true") setShowDetailsState(true);
|
|
13676
13751
|
}, []);
|
|
13677
13752
|
_react.useEffect.call(void 0, () => {
|
|
13678
13753
|
setMounted(true);
|
|
@@ -13684,11 +13759,11 @@ function RoundPageContainer({
|
|
|
13684
13759
|
const searchParams = _navigation.useSearchParams.call(void 0, );
|
|
13685
13760
|
const section = searchParams.get("section");
|
|
13686
13761
|
const rewriteUrl = useUrlRewriter();
|
|
13687
|
-
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
13762
|
+
const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _375 => _375.key, 'optionalAccess', _376 => _376.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _377 => _377[0], 'access', _378 => _378.key, 'optionalAccess', _379 => _379.name]), () => ( tabs[0].label))) : void 0;
|
|
13688
13763
|
const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
|
|
13689
13764
|
_react.useEffect.call(void 0, () => {
|
|
13690
13765
|
if (tabs && section) {
|
|
13691
|
-
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access',
|
|
13766
|
+
const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _380 => _380.key, 'optionalAccess', _381 => _381.name]), () => ( i.label))) === section);
|
|
13692
13767
|
if (tab) {
|
|
13693
13768
|
setActiveTab(section);
|
|
13694
13769
|
}
|
|
@@ -13701,7 +13776,7 @@ function RoundPageContainer({
|
|
|
13701
13776
|
},
|
|
13702
13777
|
[module, id, rewriteUrl]
|
|
13703
13778
|
);
|
|
13704
|
-
const activeFillHeight = _optionalChain([tabs, 'optionalAccess',
|
|
13779
|
+
const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _382 => _382.find, 'call', _383 => _383((t) => (_nullishCoalesce(_optionalChain([t, 'access', _384 => _384.key, 'optionalAccess', _385 => _385.name]), () => ( t.label))) === activeTab), 'optionalAccess', _386 => _386.fillHeight]) === true;
|
|
13705
13780
|
const isReady = mounted && isMobile !== void 0;
|
|
13706
13781
|
if (!isReady) {
|
|
13707
13782
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -13757,10 +13832,10 @@ function RoundPageContainer({
|
|
|
13757
13832
|
},
|
|
13758
13833
|
children: [
|
|
13759
13834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, {}) }),
|
|
13760
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
13835
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _387 => _387.key, 'optionalAccess', _388 => _388.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
|
|
13761
13836
|
]
|
|
13762
13837
|
}
|
|
13763
|
-
) }) : /* @__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',
|
|
13838
|
+
) }) : /* @__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', _389 => _389.key, 'optionalAccess', _390 => _390.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
|
|
13764
13839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13765
13840
|
"div",
|
|
13766
13841
|
{
|
|
@@ -13772,7 +13847,7 @@ function RoundPageContainer({
|
|
|
13772
13847
|
children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13773
13848
|
TabsContent,
|
|
13774
13849
|
{
|
|
13775
|
-
value: _nullishCoalesce(_optionalChain([tab, 'access',
|
|
13850
|
+
value: _nullishCoalesce(_optionalChain([tab, 'access', _391 => _391.key, 'optionalAccess', _392 => _392.name]), () => ( tab.label)),
|
|
13776
13851
|
className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
|
|
13777
13852
|
children: tab.content
|
|
13778
13853
|
},
|
|
@@ -13900,14 +13975,14 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
13900
13975
|
const entityType = target.dataset.mentionType;
|
|
13901
13976
|
const alias = target.dataset.mentionAlias;
|
|
13902
13977
|
setHovered((prev) => {
|
|
13903
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
13978
|
+
if (_optionalChain([prev, 'optionalAccess', _393 => _393.id]) === id && _optionalChain([prev, 'optionalAccess', _394 => _394.element]) === target) return prev;
|
|
13904
13979
|
return { id, entityType, alias, element: target };
|
|
13905
13980
|
});
|
|
13906
13981
|
}, "handleMouseOver");
|
|
13907
13982
|
const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
13908
13983
|
const target = e.target.closest("[data-mention-id]");
|
|
13909
13984
|
if (!target) return;
|
|
13910
|
-
const related = _optionalChain([e, 'access',
|
|
13985
|
+
const related = _optionalChain([e, 'access', _395 => _395.relatedTarget, 'optionalAccess', _396 => _396.closest, 'call', _397 => _397("[data-mention-id]")]);
|
|
13911
13986
|
if (related) return;
|
|
13912
13987
|
scheduleClose();
|
|
13913
13988
|
}, "handleMouseOut");
|
|
@@ -13921,7 +13996,7 @@ function BlockNoteEditorMentionHoverCard({
|
|
|
13921
13996
|
}, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
|
|
13922
13997
|
if (!hovered || !mentionResolveFn) return null;
|
|
13923
13998
|
const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
|
|
13924
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
13999
|
+
if (!_optionalChain([resolved, 'optionalAccess', _398 => _398.HoverContent])) return null;
|
|
13925
14000
|
const ContentComponent = resolved.HoverContent;
|
|
13926
14001
|
const rect = hovered.element.getBoundingClientRect();
|
|
13927
14002
|
return _reactdom.createPortal.call(void 0,
|
|
@@ -13957,21 +14032,21 @@ var mentionDataAttrs = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (p)
|
|
|
13957
14032
|
}), "mentionDataAttrs");
|
|
13958
14033
|
var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
|
|
13959
14034
|
const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
|
|
13960
|
-
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall',
|
|
14035
|
+
const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _399 => _399(props.id, props.entityType, props.alias)]), () => ( props.alias));
|
|
13961
14036
|
if (disableMention) {
|
|
13962
|
-
const resolved2 = _optionalChain([resolveFn, 'optionalCall',
|
|
13963
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess',
|
|
14037
|
+
const resolved2 = _optionalChain([resolveFn, 'optionalCall', _400 => _400(props.id, props.entityType, displayName)]);
|
|
14038
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _401 => _401.url]), () => ( "#")), className: "text-primary", children: [
|
|
13964
14039
|
"@",
|
|
13965
14040
|
displayName
|
|
13966
14041
|
] });
|
|
13967
14042
|
}
|
|
13968
|
-
const resolved = _optionalChain([resolveFn, 'optionalCall',
|
|
13969
|
-
if (_optionalChain([resolved, 'optionalAccess',
|
|
14043
|
+
const resolved = _optionalChain([resolveFn, 'optionalCall', _402 => _402(props.id, props.entityType, displayName)]);
|
|
14044
|
+
if (_optionalChain([resolved, 'optionalAccess', _403 => _403.Inline])) {
|
|
13970
14045
|
const Custom = resolved.Inline;
|
|
13971
14046
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
|
|
13972
14047
|
}
|
|
13973
|
-
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
13974
|
-
const handleClick = _optionalChain([resolved, 'optionalAccess',
|
|
14048
|
+
const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _404 => _404.url]), () => ( "#"));
|
|
14049
|
+
const handleClick = _optionalChain([resolved, 'optionalAccess', _405 => _405.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
|
|
13975
14050
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13976
14051
|
_link2.default,
|
|
13977
14052
|
{
|
|
@@ -14068,7 +14143,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14068
14143
|
if (!suggestionMenuComponent) return void 0;
|
|
14069
14144
|
const Component2 = suggestionMenuComponent;
|
|
14070
14145
|
const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
|
|
14071
|
-
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access',
|
|
14146
|
+
const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _406 => _406.items, 'access', _407 => _407[0], 'optionalAccess', _408 => _408.title]) === KEEP_OPEN_SENTINEL_TITLE;
|
|
14072
14147
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14073
14148
|
Component2,
|
|
14074
14149
|
{
|
|
@@ -14077,7 +14152,7 @@ function BlockNoteEditorMentionSuggestionMenu({
|
|
|
14077
14152
|
selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
|
|
14078
14153
|
onItemClick: (item) => {
|
|
14079
14154
|
if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
|
|
14080
|
-
_optionalChain([props, 'access',
|
|
14155
|
+
_optionalChain([props, 'access', _409 => _409.onItemClick, 'optionalCall', _410 => _410(item)]);
|
|
14081
14156
|
}
|
|
14082
14157
|
}
|
|
14083
14158
|
);
|
|
@@ -14262,10 +14337,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
|
|
|
14262
14337
|
cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14263
14338
|
Checkbox,
|
|
14264
14339
|
{
|
|
14265
|
-
checked: _optionalChain([params, 'access',
|
|
14340
|
+
checked: _optionalChain([params, 'access', _411 => _411.checkedIds, 'optionalAccess', _412 => _412.includes, 'call', _413 => _413(row.getValue(params.name))]) || false,
|
|
14266
14341
|
onCheckedChange: (value) => {
|
|
14267
14342
|
row.toggleSelected(!!value);
|
|
14268
|
-
_optionalChain([params, 'access',
|
|
14343
|
+
_optionalChain([params, 'access', _414 => _414.toggleId, 'optionalCall', _415 => _415(row.getValue(params.name))]);
|
|
14269
14344
|
},
|
|
14270
14345
|
"aria-label": "Select row"
|
|
14271
14346
|
}
|
|
@@ -14324,7 +14399,7 @@ function useJsonApiGet(params) {
|
|
|
14324
14399
|
const [response, setResponse] = _react.useState.call(void 0, null);
|
|
14325
14400
|
const isMounted = _react.useRef.call(void 0, true);
|
|
14326
14401
|
const fetchData = _react.useCallback.call(void 0, async () => {
|
|
14327
|
-
if (_optionalChain([params, 'access',
|
|
14402
|
+
if (_optionalChain([params, 'access', _416 => _416.options, 'optionalAccess', _417 => _417.enabled]) === false) return;
|
|
14328
14403
|
setLoading(true);
|
|
14329
14404
|
setError(null);
|
|
14330
14405
|
try {
|
|
@@ -14351,9 +14426,9 @@ function useJsonApiGet(params) {
|
|
|
14351
14426
|
setLoading(false);
|
|
14352
14427
|
}
|
|
14353
14428
|
}
|
|
14354
|
-
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access',
|
|
14429
|
+
}, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _418 => _418.options, 'optionalAccess', _419 => _419.enabled])]);
|
|
14355
14430
|
const fetchNextPage = _react.useCallback.call(void 0, async () => {
|
|
14356
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
14431
|
+
if (!_optionalChain([response, 'optionalAccess', _420 => _420.nextPage])) return;
|
|
14357
14432
|
setLoading(true);
|
|
14358
14433
|
try {
|
|
14359
14434
|
const nextResponse = await response.nextPage();
|
|
@@ -14374,7 +14449,7 @@ function useJsonApiGet(params) {
|
|
|
14374
14449
|
}
|
|
14375
14450
|
}, [response]);
|
|
14376
14451
|
const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
|
|
14377
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
14452
|
+
if (!_optionalChain([response, 'optionalAccess', _421 => _421.prevPage])) return;
|
|
14378
14453
|
setLoading(true);
|
|
14379
14454
|
try {
|
|
14380
14455
|
const prevResponse = await response.prevPage();
|
|
@@ -14400,15 +14475,15 @@ function useJsonApiGet(params) {
|
|
|
14400
14475
|
return () => {
|
|
14401
14476
|
isMounted.current = false;
|
|
14402
14477
|
};
|
|
14403
|
-
}, [fetchData, ..._optionalChain([params, 'access',
|
|
14478
|
+
}, [fetchData, ..._optionalChain([params, 'access', _422 => _422.options, 'optionalAccess', _423 => _423.deps]) || []]);
|
|
14404
14479
|
return {
|
|
14405
14480
|
data,
|
|
14406
14481
|
loading,
|
|
14407
14482
|
error,
|
|
14408
14483
|
response,
|
|
14409
14484
|
refetch: fetchData,
|
|
14410
|
-
hasNextPage: !!_optionalChain([response, 'optionalAccess',
|
|
14411
|
-
hasPreviousPage: !!_optionalChain([response, 'optionalAccess',
|
|
14485
|
+
hasNextPage: !!_optionalChain([response, 'optionalAccess', _424 => _424.next]),
|
|
14486
|
+
hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _425 => _425.prev]),
|
|
14412
14487
|
fetchNextPage,
|
|
14413
14488
|
fetchPreviousPage
|
|
14414
14489
|
};
|
|
@@ -14486,17 +14561,17 @@ function useJsonApiMutation(config) {
|
|
|
14486
14561
|
if (apiResponse.ok) {
|
|
14487
14562
|
const resultData = apiResponse.data;
|
|
14488
14563
|
setData(resultData);
|
|
14489
|
-
_optionalChain([config, 'access',
|
|
14564
|
+
_optionalChain([config, 'access', _426 => _426.onSuccess, 'optionalCall', _427 => _427(resultData)]);
|
|
14490
14565
|
return resultData;
|
|
14491
14566
|
} else {
|
|
14492
14567
|
setError(apiResponse.error);
|
|
14493
|
-
_optionalChain([config, 'access',
|
|
14568
|
+
_optionalChain([config, 'access', _428 => _428.onError, 'optionalCall', _429 => _429(apiResponse.error)]);
|
|
14494
14569
|
return null;
|
|
14495
14570
|
}
|
|
14496
14571
|
} catch (err) {
|
|
14497
14572
|
const errorMessage = err instanceof Error ? err.message : "Unknown error";
|
|
14498
14573
|
setError(errorMessage);
|
|
14499
|
-
_optionalChain([config, 'access',
|
|
14574
|
+
_optionalChain([config, 'access', _430 => _430.onError, 'optionalCall', _431 => _431(errorMessage)]);
|
|
14500
14575
|
return null;
|
|
14501
14576
|
} finally {
|
|
14502
14577
|
setLoading(false);
|
|
@@ -14569,7 +14644,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14569
14644
|
{
|
|
14570
14645
|
href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
14571
14646
|
page: "/administration",
|
|
14572
|
-
id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access',
|
|
14647
|
+
id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _432 => _432.Company, 'access', _433 => _433.pageUrl, 'optionalAccess', _434 => _434.substring, 'call', _435 => _435(1)]),
|
|
14573
14648
|
childPage: company.id
|
|
14574
14649
|
}) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
|
|
14575
14650
|
children: row.getValue("name")
|
|
@@ -14585,7 +14660,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14585
14660
|
})
|
|
14586
14661
|
};
|
|
14587
14662
|
const columns = _react.useMemo.call(void 0, () => {
|
|
14588
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
14663
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _436 => _436[field], 'optionalCall', _437 => _437()])).filter((col) => col !== void 0);
|
|
14589
14664
|
}, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
|
|
14590
14665
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14591
14666
|
}, "useCompanyTableStructure");
|
|
@@ -14597,7 +14672,7 @@ var GRACE_DAYS = 3;
|
|
|
14597
14672
|
var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
|
|
14598
14673
|
if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
|
|
14599
14674
|
const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
|
|
14600
|
-
return !!_optionalChain([currentUser, 'access',
|
|
14675
|
+
return !!_optionalChain([currentUser, 'access', _438 => _438.roles, 'optionalAccess', _439 => _439.some, 'call', _440 => _440((role) => role.id === adminRoleId)]);
|
|
14601
14676
|
}, "isAdministrator");
|
|
14602
14677
|
function useSubscriptionStatus() {
|
|
14603
14678
|
const { company, currentUser } = useCurrentUserContext();
|
|
@@ -14714,7 +14789,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
14714
14789
|
})
|
|
14715
14790
|
};
|
|
14716
14791
|
const columns = _react.useMemo.call(void 0, () => {
|
|
14717
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
14792
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _441 => _441[field], 'optionalCall', _442 => _442()])).filter((col) => col !== void 0);
|
|
14718
14793
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
14719
14794
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14720
14795
|
}, "useRoleTableStructure");
|
|
@@ -14815,11 +14890,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
14815
14890
|
return params.fields.map((field) => {
|
|
14816
14891
|
const localHandler = fieldColumnMap[field];
|
|
14817
14892
|
if (localHandler) return localHandler();
|
|
14818
|
-
const customHandler = _optionalChain([params, 'access',
|
|
14893
|
+
const customHandler = _optionalChain([params, 'access', _443 => _443.context, 'optionalAccess', _444 => _444.customCells, 'optionalAccess', _445 => _445[field]]);
|
|
14819
14894
|
if (customHandler) return customHandler({ t });
|
|
14820
14895
|
return void 0;
|
|
14821
14896
|
}).filter((col) => col !== void 0);
|
|
14822
|
-
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access',
|
|
14897
|
+
}, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _446 => _446.context, 'optionalAccess', _447 => _447.customCells])]);
|
|
14823
14898
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
14824
14899
|
}, "useContentTableStructure");
|
|
14825
14900
|
|
|
@@ -15154,7 +15229,7 @@ function ContentTableSearch({ data }) {
|
|
|
15154
15229
|
const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
15155
15230
|
if (!isExpanded) {
|
|
15156
15231
|
setIsFocused(true);
|
|
15157
|
-
setTimeout(() => _optionalChain([inputRef, 'access',
|
|
15232
|
+
setTimeout(() => _optionalChain([inputRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.focus, 'call', _450 => _450()]), 50);
|
|
15158
15233
|
}
|
|
15159
15234
|
}, "handleSearchIconClick");
|
|
15160
15235
|
const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
|
|
@@ -15231,7 +15306,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15231
15306
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
15232
15307
|
);
|
|
15233
15308
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
15234
|
-
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15309
|
+
data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _451 => _451.data]), () => ( EMPTY_ARRAY)),
|
|
15235
15310
|
fields,
|
|
15236
15311
|
checkedIds,
|
|
15237
15312
|
toggleId,
|
|
@@ -15264,7 +15339,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15264
15339
|
});
|
|
15265
15340
|
const rowModel = tableData ? table.getRowModel() : null;
|
|
15266
15341
|
const groupedRows = _react.useMemo.call(void 0, () => {
|
|
15267
|
-
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess',
|
|
15342
|
+
if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _452 => _452.rows, 'optionalAccess', _453 => _453.length])) return null;
|
|
15268
15343
|
const groupMap = /* @__PURE__ */ new Map();
|
|
15269
15344
|
for (const row of rowModel.rows) {
|
|
15270
15345
|
const keys = getGroupKeys(row.original, props.groupBy);
|
|
@@ -15320,10 +15395,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15320
15395
|
) }),
|
|
15321
15396
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
|
|
15322
15397
|
const meta = header.column.columnDef.meta;
|
|
15323
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess',
|
|
15398
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _454 => _454.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
|
|
15324
15399
|
}) }, headerGroup.id))
|
|
15325
15400
|
] }),
|
|
15326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access',
|
|
15401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _455 => _455.rows, 'optionalAccess', _456 => _456.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
|
|
15327
15402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15328
15403
|
TableCell,
|
|
15329
15404
|
{
|
|
@@ -15334,11 +15409,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15334
15409
|
) }),
|
|
15335
15410
|
group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15336
15411
|
const meta = cell.column.columnDef.meta;
|
|
15337
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15412
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _457 => _457.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15338
15413
|
}) }, row.id))
|
|
15339
15414
|
] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
|
|
15340
15415
|
const meta = cell.column.columnDef.meta;
|
|
15341
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess',
|
|
15416
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _458 => _458.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
|
|
15342
15417
|
}) }, 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: "No results." }) }) }),
|
|
15343
15418
|
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: [
|
|
15344
15419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15348,7 +15423,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15348
15423
|
size: "sm",
|
|
15349
15424
|
onClick: (e) => {
|
|
15350
15425
|
e.preventDefault();
|
|
15351
|
-
_optionalChain([data, 'access',
|
|
15426
|
+
_optionalChain([data, 'access', _459 => _459.previous, 'optionalCall', _460 => _460(true)]);
|
|
15352
15427
|
},
|
|
15353
15428
|
disabled: !data.previous,
|
|
15354
15429
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -15362,7 +15437,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
|
|
|
15362
15437
|
size: "sm",
|
|
15363
15438
|
onClick: (e) => {
|
|
15364
15439
|
e.preventDefault();
|
|
15365
|
-
_optionalChain([data, 'access',
|
|
15440
|
+
_optionalChain([data, 'access', _461 => _461.next, 'optionalCall', _462 => _462(true)]);
|
|
15366
15441
|
},
|
|
15367
15442
|
disabled: !data.next,
|
|
15368
15443
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
|
|
@@ -15383,7 +15458,7 @@ function ContentListGrid(props) {
|
|
|
15383
15458
|
if (!data.next || !sentinelRef.current) return;
|
|
15384
15459
|
const observer = new IntersectionObserver(
|
|
15385
15460
|
(entries) => {
|
|
15386
|
-
if (_optionalChain([entries, 'access',
|
|
15461
|
+
if (_optionalChain([entries, 'access', _463 => _463[0], 'optionalAccess', _464 => _464.isIntersecting])) _optionalChain([data, 'access', _465 => _465.next, 'optionalCall', _466 => _466()]);
|
|
15387
15462
|
},
|
|
15388
15463
|
{ threshold: 0.1, rootMargin: "200px" }
|
|
15389
15464
|
);
|
|
@@ -16133,7 +16208,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16133
16208
|
newDigits[index] = digit;
|
|
16134
16209
|
setDigits(newDigits);
|
|
16135
16210
|
if (digit && index < 5) {
|
|
16136
|
-
_optionalChain([inputRefs, 'access',
|
|
16211
|
+
_optionalChain([inputRefs, 'access', _467 => _467.current, 'access', _468 => _468[index + 1], 'optionalAccess', _469 => _469.focus, 'call', _470 => _470()]);
|
|
16137
16212
|
}
|
|
16138
16213
|
const code = newDigits.join("");
|
|
16139
16214
|
if (code.length === 6 && newDigits.every((d) => d !== "")) {
|
|
@@ -16142,7 +16217,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16142
16217
|
}, "handleChange");
|
|
16143
16218
|
const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
|
|
16144
16219
|
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
16145
|
-
_optionalChain([inputRefs, 'access',
|
|
16220
|
+
_optionalChain([inputRefs, 'access', _471 => _471.current, 'access', _472 => _472[index - 1], 'optionalAccess', _473 => _473.focus, 'call', _474 => _474()]);
|
|
16146
16221
|
}
|
|
16147
16222
|
}, "handleKeyDown");
|
|
16148
16223
|
const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
|
|
@@ -16151,7 +16226,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
|
|
|
16151
16226
|
if (pastedData.length === 6) {
|
|
16152
16227
|
const newDigits = pastedData.split("");
|
|
16153
16228
|
setDigits(newDigits);
|
|
16154
|
-
_optionalChain([inputRefs, 'access',
|
|
16229
|
+
_optionalChain([inputRefs, 'access', _475 => _475.current, 'access', _476 => _476[5], 'optionalAccess', _477 => _477.focus, 'call', _478 => _478()]);
|
|
16155
16230
|
onComplete(pastedData);
|
|
16156
16231
|
}
|
|
16157
16232
|
}, "handlePaste");
|
|
@@ -16362,8 +16437,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
|
|
|
16362
16437
|
try {
|
|
16363
16438
|
const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
|
|
16364
16439
|
id: _uuid.v4.call(void 0, ),
|
|
16365
|
-
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16366
|
-
userDisplayName: _optionalChain([currentUser, 'optionalAccess',
|
|
16440
|
+
userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _479 => _479.email]), () => ( "")),
|
|
16441
|
+
userDisplayName: _optionalChain([currentUser, 'optionalAccess', _480 => _480.name])
|
|
16367
16442
|
});
|
|
16368
16443
|
const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
|
|
16369
16444
|
await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
|
|
@@ -16514,7 +16589,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
|
|
|
16514
16589
|
const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
|
|
16515
16590
|
id: _uuid.v4.call(void 0, ),
|
|
16516
16591
|
name: name.trim(),
|
|
16517
|
-
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess',
|
|
16592
|
+
accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _481 => _481.email]), () => ( ""))
|
|
16518
16593
|
});
|
|
16519
16594
|
setQrCodeUri(setup.qrCodeUri);
|
|
16520
16595
|
setAuthenticatorId(setup.authenticatorId);
|
|
@@ -16648,7 +16723,7 @@ function TwoFactorSettings() {
|
|
|
16648
16723
|
if (isLoading) {
|
|
16649
16724
|
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") }) }) });
|
|
16650
16725
|
}
|
|
16651
|
-
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
16726
|
+
const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _482 => _482.isEnabled]), () => ( false));
|
|
16652
16727
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
|
|
16653
16728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
16654
16729
|
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" }),
|
|
@@ -16686,7 +16761,7 @@ function TwoFactorSettings() {
|
|
|
16686
16761
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
|
|
16687
16762
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
|
|
16688
16763
|
] }),
|
|
16689
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
16764
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _483 => _483.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
|
|
16690
16765
|
] }) }),
|
|
16691
16766
|
!isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16692
16767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
|
|
@@ -16864,9 +16939,9 @@ function AcceptInvitation() {
|
|
|
16864
16939
|
});
|
|
16865
16940
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
16866
16941
|
try {
|
|
16867
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
16942
|
+
if (!_optionalChain([params, 'optionalAccess', _484 => _484.code])) return;
|
|
16868
16943
|
const payload = {
|
|
16869
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
16944
|
+
code: _optionalChain([params, 'optionalAccess', _485 => _485.code]),
|
|
16870
16945
|
password: values.password
|
|
16871
16946
|
};
|
|
16872
16947
|
await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
|
|
@@ -17216,7 +17291,7 @@ function Logout({ storageKeys }) {
|
|
|
17216
17291
|
const generateUrl = usePageUrlGenerator();
|
|
17217
17292
|
_react.useEffect.call(void 0, () => {
|
|
17218
17293
|
const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
17219
|
-
if (_optionalChain([storageKeys, 'optionalAccess',
|
|
17294
|
+
if (_optionalChain([storageKeys, 'optionalAccess', _486 => _486.length])) {
|
|
17220
17295
|
clearClientStorage(storageKeys);
|
|
17221
17296
|
}
|
|
17222
17297
|
await _chunkXAWKRNYMjs.AuthService.logout();
|
|
@@ -17239,14 +17314,14 @@ function RefreshUser() {
|
|
|
17239
17314
|
setUser(fullUser);
|
|
17240
17315
|
const token = {
|
|
17241
17316
|
userId: fullUser.id,
|
|
17242
|
-
companyId: _optionalChain([fullUser, 'access',
|
|
17317
|
+
companyId: _optionalChain([fullUser, 'access', _487 => _487.company, 'optionalAccess', _488 => _488.id]),
|
|
17243
17318
|
roles: fullUser.roles.map((role) => role.id),
|
|
17244
|
-
features: _nullishCoalesce(_optionalChain([fullUser, 'access',
|
|
17319
|
+
features: _nullishCoalesce(_optionalChain([fullUser, 'access', _489 => _489.company, 'optionalAccess', _490 => _490.features, 'optionalAccess', _491 => _491.map, 'call', _492 => _492((feature) => feature.id)]), () => ( [])),
|
|
17245
17320
|
modules: fullUser.modules.map((module) => {
|
|
17246
17321
|
return { id: module.id, permissions: module.permissions };
|
|
17247
17322
|
})
|
|
17248
17323
|
};
|
|
17249
|
-
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess',
|
|
17324
|
+
await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _493 => _493.updateToken, 'call', _494 => _494(token)]);
|
|
17250
17325
|
_cookiesnext.deleteCookie.call(void 0, "reloadData");
|
|
17251
17326
|
}
|
|
17252
17327
|
}, "loadFullUser");
|
|
@@ -17310,9 +17385,9 @@ function ResetPassword() {
|
|
|
17310
17385
|
});
|
|
17311
17386
|
const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
|
|
17312
17387
|
try {
|
|
17313
|
-
if (!_optionalChain([params, 'optionalAccess',
|
|
17388
|
+
if (!_optionalChain([params, 'optionalAccess', _495 => _495.code])) return;
|
|
17314
17389
|
const payload = {
|
|
17315
|
-
code: _optionalChain([params, 'optionalAccess',
|
|
17390
|
+
code: _optionalChain([params, 'optionalAccess', _496 => _496.code]),
|
|
17316
17391
|
password: values.password
|
|
17317
17392
|
};
|
|
17318
17393
|
await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
|
|
@@ -17661,7 +17736,7 @@ function extractHeadings(blocks) {
|
|
|
17661
17736
|
function processBlocks(blockArray) {
|
|
17662
17737
|
for (const block of blockArray) {
|
|
17663
17738
|
if (block.type === "heading") {
|
|
17664
|
-
const level = _optionalChain([block, 'access',
|
|
17739
|
+
const level = _optionalChain([block, 'access', _497 => _497.props, 'optionalAccess', _498 => _498.level]) || 1;
|
|
17665
17740
|
const text = extractTextFromContent(block.content);
|
|
17666
17741
|
if (text.trim()) {
|
|
17667
17742
|
headings.push({
|
|
@@ -18004,7 +18079,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
|
|
|
18004
18079
|
})
|
|
18005
18080
|
};
|
|
18006
18081
|
const columns = _react.useMemo.call(void 0, () => {
|
|
18007
|
-
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access',
|
|
18082
|
+
return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _499 => _499[field], 'optionalCall', _500 => _500()])).filter((col) => col !== void 0);
|
|
18008
18083
|
}, [params.fields, fieldColumnMap, t, generateUrl]);
|
|
18009
18084
|
return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
|
|
18010
18085
|
}, "useHowToTableStructure");
|
|
@@ -18070,7 +18145,7 @@ function HowToMultiSelector({
|
|
|
18070
18145
|
retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
|
|
18071
18146
|
module: _chunkXAWKRNYMjs.Modules.HowTo,
|
|
18072
18147
|
getLabel: (howTo) => howTo.name,
|
|
18073
|
-
excludeId: _optionalChain([currentHowTo, 'optionalAccess',
|
|
18148
|
+
excludeId: _optionalChain([currentHowTo, 'optionalAccess', _501 => _501.id]),
|
|
18074
18149
|
onChange
|
|
18075
18150
|
}
|
|
18076
18151
|
);
|
|
@@ -18135,7 +18210,7 @@ function HowToSelector({
|
|
|
18135
18210
|
}, "setHowTo");
|
|
18136
18211
|
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: [
|
|
18137
18212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
|
|
18138
|
-
/* @__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',
|
|
18213
|
+
/* @__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', _502 => _502.value, 'optionalAccess', _503 => _503.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 }) }))) }) }) }),
|
|
18139
18214
|
field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18140
18215
|
_lucidereact.CircleX,
|
|
18141
18216
|
{
|
|
@@ -18490,9 +18565,9 @@ function CitationsTab({ citations, sources }) {
|
|
|
18490
18565
|
] }) }),
|
|
18491
18566
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
|
|
18492
18567
|
const isOpen = expanded.has(chunk.id);
|
|
18493
|
-
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess',
|
|
18568
|
+
const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _504 => _504.get, 'call', _505 => _505(chunk.nodeId)]) : void 0;
|
|
18494
18569
|
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")));
|
|
18495
|
-
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess',
|
|
18570
|
+
const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _506 => _506.name]), () => ( fallbackName));
|
|
18496
18571
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
18497
18572
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
|
|
18498
18573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -18539,7 +18614,7 @@ function ContentsTab({ citations, sources }) {
|
|
|
18539
18614
|
for (const c of citations) {
|
|
18540
18615
|
const id = c.nodeId;
|
|
18541
18616
|
if (!id) continue;
|
|
18542
|
-
const source = _optionalChain([sources, 'optionalAccess',
|
|
18617
|
+
const source = _optionalChain([sources, 'optionalAccess', _507 => _507.get, 'call', _508 => _508(id)]);
|
|
18543
18618
|
if (!source) continue;
|
|
18544
18619
|
const existing = map.get(id);
|
|
18545
18620
|
if (existing) {
|
|
@@ -18604,7 +18679,7 @@ function UsersTab({ users, citations, sources }) {
|
|
|
18604
18679
|
const generate = usePageUrlGenerator();
|
|
18605
18680
|
const userMap = /* @__PURE__ */ new Map();
|
|
18606
18681
|
for (const u of users) {
|
|
18607
|
-
if (!_optionalChain([u, 'optionalAccess',
|
|
18682
|
+
if (!_optionalChain([u, 'optionalAccess', _509 => _509.id])) continue;
|
|
18608
18683
|
userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
|
|
18609
18684
|
}
|
|
18610
18685
|
if (citations && sources) {
|
|
@@ -18708,7 +18783,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
|
|
|
18708
18783
|
}
|
|
18709
18784
|
return ids.size;
|
|
18710
18785
|
}, [message.citations, sources]);
|
|
18711
|
-
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess',
|
|
18786
|
+
const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _510 => _510.length]), () => ( 0));
|
|
18712
18787
|
const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
|
|
18713
18788
|
const visibleTabs = [];
|
|
18714
18789
|
if (suggestionsCount > 0) visibleTabs.push("suggested");
|
|
@@ -18767,8 +18842,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
|
|
|
18767
18842
|
static async findManyByIds(params) {
|
|
18768
18843
|
const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
|
|
18769
18844
|
endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
|
|
18770
|
-
if (_optionalChain([params, 'access',
|
|
18771
|
-
if (_optionalChain([params, 'access',
|
|
18845
|
+
if (_optionalChain([params, 'access', _511 => _511.module, 'access', _512 => _512.inclusions, 'optionalAccess', _513 => _513.lists, 'optionalAccess', _514 => _514.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
|
|
18846
|
+
if (_optionalChain([params, 'access', _515 => _515.module, 'access', _516 => _516.inclusions, 'optionalAccess', _517 => _517.lists, 'optionalAccess', _518 => _518.types])) endpoint.limitToType(params.module.inclusions.lists.types);
|
|
18772
18847
|
return this.callApi({
|
|
18773
18848
|
type: params.module,
|
|
18774
18849
|
method: "GET" /* GET */,
|
|
@@ -18847,7 +18922,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
|
|
|
18847
18922
|
return void 0;
|
|
18848
18923
|
}
|
|
18849
18924
|
})()));
|
|
18850
|
-
if (_optionalChain([author, 'optionalAccess',
|
|
18925
|
+
if (_optionalChain([author, 'optionalAccess', _519 => _519.id])) userMap.set(author.id, author);
|
|
18851
18926
|
}
|
|
18852
18927
|
return Array.from(userMap.values());
|
|
18853
18928
|
}, [resolved]);
|
|
@@ -18869,14 +18944,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
|
|
|
18869
18944
|
function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
|
|
18870
18945
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
18871
18946
|
const isUser = message.role === "user";
|
|
18872
|
-
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess',
|
|
18947
|
+
const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _520 => _520.has, 'call', _521 => _521(message.id)]);
|
|
18873
18948
|
if (isUser) {
|
|
18874
18949
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
|
|
18875
18950
|
/* @__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 }),
|
|
18876
18951
|
isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
|
|
18877
18952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
|
|
18878
18953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: t("features.assistant.send_failed") }),
|
|
18879
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall',
|
|
18954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _522 => _522(message.id)]), children: t("features.assistant.retry") })
|
|
18880
18955
|
] })
|
|
18881
18956
|
] });
|
|
18882
18957
|
}
|
|
@@ -18942,7 +19017,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
|
|
|
18942
19017
|
function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
|
|
18943
19018
|
const endRef = _react.useRef.call(void 0, null);
|
|
18944
19019
|
_react.useEffect.call(void 0, () => {
|
|
18945
|
-
_optionalChain([endRef, 'access',
|
|
19020
|
+
_optionalChain([endRef, 'access', _523 => _523.current, 'optionalAccess', _524 => _524.scrollIntoView, 'call', _525 => _525({ behavior: "smooth" })]);
|
|
18946
19021
|
}, [messages.length, sending]);
|
|
18947
19022
|
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: [
|
|
18948
19023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -18970,7 +19045,7 @@ function AssistantContainer() {
|
|
|
18970
19045
|
AssistantSidebar,
|
|
18971
19046
|
{
|
|
18972
19047
|
threads: ctx.threads,
|
|
18973
|
-
activeId: _optionalChain([ctx, 'access',
|
|
19048
|
+
activeId: _optionalChain([ctx, 'access', _526 => _526.assistant, 'optionalAccess', _527 => _527.id]),
|
|
18974
19049
|
onSelect: ctx.selectThread,
|
|
18975
19050
|
onNew: ctx.startNew
|
|
18976
19051
|
}
|
|
@@ -19063,14 +19138,14 @@ function NotificationsList({ archived }) {
|
|
|
19063
19138
|
] }),
|
|
19064
19139
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
|
|
19065
19140
|
] }) }) }, i)) }), "LoadingSkeleton");
|
|
19066
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access',
|
|
19141
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _528 => _528.data, 'optionalAccess', _529 => _529.map, 'call', _530 => _530((notification) => {
|
|
19067
19142
|
const notificationData = generateNotificationData({ notification, generateUrl });
|
|
19068
19143
|
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: [
|
|
19069
19144
|
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: _chunkXAWKRNYMjs.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" }),
|
|
19070
19145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
19071
19146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
|
|
19072
19147
|
strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
|
|
19073
|
-
actor: _nullishCoalesce(_optionalChain([notificationData, 'access',
|
|
19148
|
+
actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _531 => _531.actor, 'optionalAccess', _532 => _532.name]), () => ( "")),
|
|
19074
19149
|
title: notificationData.title
|
|
19075
19150
|
}) }),
|
|
19076
19151
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground mt-1 w-full text-xs", children: new Date(notification.createdAt).toLocaleString() })
|
|
@@ -19420,7 +19495,7 @@ var DEFAULT_TRANSLATIONS = {
|
|
|
19420
19495
|
invalidEmail: "Please enter a valid email address"
|
|
19421
19496
|
};
|
|
19422
19497
|
async function copyToClipboard(text) {
|
|
19423
|
-
if (_optionalChain([navigator, 'access',
|
|
19498
|
+
if (_optionalChain([navigator, 'access', _533 => _533.clipboard, 'optionalAccess', _534 => _534.writeText])) {
|
|
19424
19499
|
try {
|
|
19425
19500
|
await navigator.clipboard.writeText(text);
|
|
19426
19501
|
return true;
|
|
@@ -19462,7 +19537,7 @@ function ReferralWidget({
|
|
|
19462
19537
|
const linkInputRef = _react.useRef.call(void 0, null);
|
|
19463
19538
|
const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
|
|
19464
19539
|
const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
|
|
19465
|
-
const referralUrl = _optionalChain([stats, 'optionalAccess',
|
|
19540
|
+
const referralUrl = _optionalChain([stats, 'optionalAccess', _535 => _535.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
|
|
19466
19541
|
if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
|
|
19467
19542
|
return null;
|
|
19468
19543
|
}
|
|
@@ -19472,7 +19547,7 @@ function ReferralWidget({
|
|
|
19472
19547
|
if (success) {
|
|
19473
19548
|
setCopied(true);
|
|
19474
19549
|
_chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
|
|
19475
|
-
_optionalChain([onLinkCopied, 'optionalCall',
|
|
19550
|
+
_optionalChain([onLinkCopied, 'optionalCall', _536 => _536()]);
|
|
19476
19551
|
setTimeout(() => setCopied(false), 2e3);
|
|
19477
19552
|
} else {
|
|
19478
19553
|
_chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
|
|
@@ -19486,12 +19561,12 @@ function ReferralWidget({
|
|
|
19486
19561
|
try {
|
|
19487
19562
|
await sendInvite(email);
|
|
19488
19563
|
_chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
|
|
19489
|
-
_optionalChain([onInviteSent, 'optionalCall',
|
|
19564
|
+
_optionalChain([onInviteSent, 'optionalCall', _537 => _537(email)]);
|
|
19490
19565
|
setEmail("");
|
|
19491
19566
|
} catch (err) {
|
|
19492
19567
|
const error2 = err instanceof Error ? err : new Error(t.inviteError);
|
|
19493
19568
|
_chunkXAWKRNYMjs.showError.call(void 0, error2.message);
|
|
19494
|
-
_optionalChain([onInviteError, 'optionalCall',
|
|
19569
|
+
_optionalChain([onInviteError, 'optionalCall', _538 => _538(error2)]);
|
|
19495
19570
|
}
|
|
19496
19571
|
}, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
|
|
19497
19572
|
const handleEmailKeyDown = _react.useCallback.call(void 0,
|
|
@@ -20245,7 +20320,7 @@ function OAuthClientList({
|
|
|
20245
20320
|
OAuthClientCard,
|
|
20246
20321
|
{
|
|
20247
20322
|
client,
|
|
20248
|
-
onClick: () => _optionalChain([onClientClick, 'optionalCall',
|
|
20323
|
+
onClick: () => _optionalChain([onClientClick, 'optionalCall', _539 => _539(client)]),
|
|
20249
20324
|
onEdit: onEditClick ? () => onEditClick(client) : void 0,
|
|
20250
20325
|
onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
|
|
20251
20326
|
},
|
|
@@ -20261,11 +20336,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
|
|
|
20261
20336
|
function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
|
|
20262
20337
|
const isEditMode = !!client;
|
|
20263
20338
|
const [formState, setFormState] = _react.useState.call(void 0, {
|
|
20264
|
-
name: _optionalChain([client, 'optionalAccess',
|
|
20265
|
-
description: _optionalChain([client, 'optionalAccess',
|
|
20266
|
-
redirectUris: _optionalChain([client, 'optionalAccess',
|
|
20267
|
-
allowedScopes: _optionalChain([client, 'optionalAccess',
|
|
20268
|
-
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess',
|
|
20339
|
+
name: _optionalChain([client, 'optionalAccess', _540 => _540.name]) || "",
|
|
20340
|
+
description: _optionalChain([client, 'optionalAccess', _541 => _541.description]) || "",
|
|
20341
|
+
redirectUris: _optionalChain([client, 'optionalAccess', _542 => _542.redirectUris, 'optionalAccess', _543 => _543.length]) ? client.redirectUris : [""],
|
|
20342
|
+
allowedScopes: _optionalChain([client, 'optionalAccess', _544 => _544.allowedScopes]) || [],
|
|
20343
|
+
isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _545 => _545.isConfidential]), () => ( true))
|
|
20269
20344
|
});
|
|
20270
20345
|
const [errors, setErrors] = _react.useState.call(void 0, {});
|
|
20271
20346
|
const validate = _react.useCallback.call(void 0, () => {
|
|
@@ -20493,7 +20568,7 @@ function OAuthClientDetail({
|
|
|
20493
20568
|
] }),
|
|
20494
20569
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20495
20570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Allowed Scopes" }),
|
|
20496
|
-
/* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access',
|
|
20571
|
+
/* @__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([_chunkXAWKRNYMjs.OAUTH_SCOPE_DISPLAY, 'access', _546 => _546[scope], 'optionalAccess', _547 => _547.name]) || scope }, scope)) })
|
|
20497
20572
|
] }),
|
|
20498
20573
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
20499
20574
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
|
|
@@ -20637,7 +20712,7 @@ function OAuthConsentScreen({
|
|
|
20637
20712
|
if (error || !clientInfo) {
|
|
20638
20713
|
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: [
|
|
20639
20714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-4 w-4" }),
|
|
20640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess',
|
|
20715
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _548 => _548.message]) || "Invalid authorization request. Please try again." })
|
|
20641
20716
|
] }) }) }) });
|
|
20642
20717
|
}
|
|
20643
20718
|
const { client, scopes } = clientInfo;
|
|
@@ -20853,7 +20928,7 @@ function WaitlistForm({ onSuccess }) {
|
|
|
20853
20928
|
questionnaire: values.questionnaire
|
|
20854
20929
|
});
|
|
20855
20930
|
setIsSuccess(true);
|
|
20856
|
-
_optionalChain([onSuccess, 'optionalCall',
|
|
20931
|
+
_optionalChain([onSuccess, 'optionalCall', _549 => _549()]);
|
|
20857
20932
|
} catch (e) {
|
|
20858
20933
|
errorToast({ error: e });
|
|
20859
20934
|
} finally {
|
|
@@ -21491,7 +21566,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
|
|
|
21491
21566
|
] }),
|
|
21492
21567
|
roleIds.map((roleId) => {
|
|
21493
21568
|
const roleTokens = block[roleId];
|
|
21494
|
-
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21569
|
+
const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _550 => _550[roleId]]), () => ( roleId));
|
|
21495
21570
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21496
21571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
|
|
21497
21572
|
_chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21528,7 +21603,7 @@ function RbacContainer() {
|
|
|
21528
21603
|
}, []);
|
|
21529
21604
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
21530
21605
|
if (!matrix) return [];
|
|
21531
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21606
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _551 => _551[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _552 => _552[b]]), () => ( b))));
|
|
21532
21607
|
}, [matrix, moduleNames]);
|
|
21533
21608
|
const roleIds = _react.useMemo.call(void 0, () => {
|
|
21534
21609
|
if (roleNames) {
|
|
@@ -21591,7 +21666,7 @@ function RbacContainer() {
|
|
|
21591
21666
|
id === selectedModuleId && "bg-muted font-medium text-foreground",
|
|
21592
21667
|
id !== selectedModuleId && "text-muted-foreground"
|
|
21593
21668
|
),
|
|
21594
|
-
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21669
|
+
children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _553 => _553[id]]), () => ( id))
|
|
21595
21670
|
}
|
|
21596
21671
|
) }, id)) }) }),
|
|
21597
21672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className: "flex-1 overflow-y-auto p-4", children: selectedModuleId && selectedBlock ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21599,7 +21674,7 @@ function RbacContainer() {
|
|
|
21599
21674
|
{
|
|
21600
21675
|
moduleId: selectedModuleId,
|
|
21601
21676
|
block: selectedBlock,
|
|
21602
|
-
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21677
|
+
moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _554 => _554[selectedModuleId]]), () => ( selectedModuleId)),
|
|
21603
21678
|
roleIds,
|
|
21604
21679
|
roleNames,
|
|
21605
21680
|
onOpenPicker: openPicker
|
|
@@ -21610,12 +21685,12 @@ function RbacContainer() {
|
|
|
21610
21685
|
RbacPermissionPicker,
|
|
21611
21686
|
{
|
|
21612
21687
|
open: !!activePicker,
|
|
21613
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21688
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _555 => _555.anchor]), () => ( null)),
|
|
21614
21689
|
value: activeValue,
|
|
21615
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21690
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _556 => _556.isRoleColumn]), () => ( false)),
|
|
21616
21691
|
knownSegments: activeSegments,
|
|
21617
21692
|
onSetValue: handleSetValue,
|
|
21618
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
21693
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _557 => _557.isRoleColumn]) ? handleClear : void 0,
|
|
21619
21694
|
onClose: closePicker
|
|
21620
21695
|
}
|
|
21621
21696
|
)
|
|
@@ -21682,7 +21757,7 @@ function RbacByRoleContainer() {
|
|
|
21682
21757
|
}, [roleNames]);
|
|
21683
21758
|
const sortedModuleIds = _react.useMemo.call(void 0, () => {
|
|
21684
21759
|
if (!matrix) return [];
|
|
21685
|
-
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21760
|
+
return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _558 => _558[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _559 => _559[b]]), () => ( b))));
|
|
21686
21761
|
}, [matrix, moduleNames]);
|
|
21687
21762
|
_react.useEffect.call(void 0, () => {
|
|
21688
21763
|
if (!selectedRoleId && sortedRoleIds.length > 0) {
|
|
@@ -21731,7 +21806,7 @@ function RbacByRoleContainer() {
|
|
|
21731
21806
|
id === selectedRoleId && "bg-muted font-medium text-foreground",
|
|
21732
21807
|
id !== selectedRoleId && "text-muted-foreground"
|
|
21733
21808
|
),
|
|
21734
|
-
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21809
|
+
children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _560 => _560[id]]), () => ( id))
|
|
21735
21810
|
}
|
|
21736
21811
|
) }, id)) }) }),
|
|
21737
21812
|
/* @__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: [
|
|
@@ -21751,7 +21826,7 @@ function RbacByRoleContainer() {
|
|
|
21751
21826
|
if (!block) return null;
|
|
21752
21827
|
const defaultTokens = _nullishCoalesce(block.default, () => ( []));
|
|
21753
21828
|
const roleTokens = block[selectedRoleId];
|
|
21754
|
-
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess',
|
|
21829
|
+
const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _561 => _561[moduleId]]), () => ( moduleId));
|
|
21755
21830
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
21756
21831
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21757
21832
|
"td",
|
|
@@ -21766,7 +21841,7 @@ function RbacByRoleContainer() {
|
|
|
21766
21841
|
_chunkSE5HIHJSjs.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))
|
|
21767
21842
|
] }),
|
|
21768
21843
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
|
|
21769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess',
|
|
21844
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _562 => _562[selectedRoleId]]), () => ( selectedRoleId)) }),
|
|
21770
21845
|
_chunkSE5HIHJSjs.ACTION_TYPES.map((action) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-2 py-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21771
21846
|
CellButton3,
|
|
21772
21847
|
{
|
|
@@ -21787,12 +21862,12 @@ function RbacByRoleContainer() {
|
|
|
21787
21862
|
RbacPermissionPicker,
|
|
21788
21863
|
{
|
|
21789
21864
|
open: !!activePicker,
|
|
21790
|
-
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21865
|
+
anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _563 => _563.anchor]), () => ( null)),
|
|
21791
21866
|
value: activeValue,
|
|
21792
|
-
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess',
|
|
21867
|
+
isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _564 => _564.isRoleColumn]), () => ( false)),
|
|
21793
21868
|
knownSegments: activeSegments,
|
|
21794
21869
|
onSetValue: handleSetValue,
|
|
21795
|
-
onClear: _optionalChain([activePicker, 'optionalAccess',
|
|
21870
|
+
onClear: _optionalChain([activePicker, 'optionalAccess', _565 => _565.isRoleColumn]) ? handleClear : void 0,
|
|
21796
21871
|
onClose: closePicker
|
|
21797
21872
|
}
|
|
21798
21873
|
)
|
|
@@ -22313,5 +22388,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
|
|
|
22313
22388
|
|
|
22314
22389
|
|
|
22315
22390
|
|
|
22316
|
-
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.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.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.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.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.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; 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.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.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; 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;
|
|
22317
|
-
//# sourceMappingURL=chunk-TRTKIQUB.js.map
|
|
22391
|
+
|
|
22392
|
+
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.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.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.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.createMentionInlineContentSpec = createMentionInlineContentSpec; exports.useMentionInsert = useMentionInsert; exports.BlockNoteEditorMentionSuggestionMenu = BlockNoteEditorMentionSuggestionMenu; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; 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.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.HowToEditor = HowToEditor; exports.HowToProvider = HowToProvider; exports.useHowToContext = useHowToContext; exports.HowToContent = HowToContent; exports.HowToDetails = HowToDetails; exports.HowToContainer = HowToContainer; exports.HowToList = HowToList; exports.HowToListContainer = HowToListContainer; exports.HowToMultiSelector = HowToMultiSelector; exports.HowToSelector = HowToSelector; exports.AssistantProvider = AssistantProvider; exports.useAssistantContext = useAssistantContext; exports.MessageSourcesPanel = MessageSourcesPanel; exports.MessageItem = MessageItem; exports.MessageList = MessageList; 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;
|
|
22393
|
+
//# sourceMappingURL=chunk-LIZ5C76W.js.map
|