@carlonicora/nextjs-jsonapi 1.99.0 → 1.100.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 computeLayeredLayout(nodes, links, opts) {
6483
- if (nodes.length === 0) return /* @__PURE__ */ new Map();
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,18 +6519,88 @@ 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
- return positions;
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
 
6589
+ var TITLE_PX_PER_CHAR_162 = 8;
6590
+ var NAME_PX_PER_CHAR_122 = 6.5;
6591
+ var NAME_PX_PER_CHAR_16_BOLD2 = 8;
6592
+ var SUBTITLE_PX_PER_CHAR_112 = 6;
6593
+ var LABEL_PADDING_PX2 = 16;
6594
+ function estimateLabelWidth2(node) {
6595
+ if (node.subtitle) {
6596
+ const titleWidth = (_nullishCoalesce(_optionalChain([node, 'access', _138 => _138.name, 'optionalAccess', _139 => _139.length]), () => ( 0))) * TITLE_PX_PER_CHAR_162;
6597
+ const subtitleWidth = node.subtitle.length * SUBTITLE_PX_PER_CHAR_112;
6598
+ return Math.max(titleWidth, subtitleWidth) + LABEL_PADDING_PX2;
6599
+ }
6600
+ const perChar = node.bold ? NAME_PX_PER_CHAR_16_BOLD2 : NAME_PX_PER_CHAR_122;
6601
+ return (_nullishCoalesce(_optionalChain([node, 'access', _140 => _140.name, 'optionalAccess', _141 => _141.length]), () => ( 0))) * perChar + LABEL_PADDING_PX2;
6602
+ }
6603
+ _chunk7QVYU63Ejs.__name.call(void 0, estimateLabelWidth2, "estimateLabelWidth");
6523
6604
  function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, loadingNodeIds, containerKey) {
6524
6605
  const svgRef = _react.useRef.call(void 0, null);
6525
6606
  const zoomRef = _react.useRef.call(void 0, null);
@@ -6584,7 +6665,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6584
6665
  });
6585
6666
  const typeColorMap = /* @__PURE__ */ new Map();
6586
6667
  Array.from(groupTypes).forEach((type, index) => {
6587
- if (type === _optionalChain([nodes, 'access', _138 => _138[0], 'optionalAccess', _139 => _139.instanceType])) {
6668
+ if (type === _optionalChain([nodes, 'access', _142 => _142[0], 'optionalAccess', _143 => _143.instanceType])) {
6588
6669
  typeColorMap.set(type, accentColor);
6589
6670
  } else if (type === "documents" || type === "articles" || type === "hyperlinks") {
6590
6671
  typeColorMap.set(type, contentColor);
@@ -6630,14 +6711,14 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6630
6711
  });
6631
6712
  const svg = d3.select(svgRef.current);
6632
6713
  svg.selectAll("*").remove();
6633
- const container = _optionalChain([svgRef, 'access', _140 => _140.current, 'optionalAccess', _141 => _141.parentElement]);
6714
+ const container = _optionalChain([svgRef, 'access', _144 => _144.current, 'optionalAccess', _145 => _145.parentElement]);
6634
6715
  if (!container) return;
6635
6716
  const width = container.clientWidth;
6636
6717
  const height = container.clientHeight;
6637
6718
  svg.attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`);
6638
6719
  const graphGroup = svg.append("g").attr("class", "graph-content");
6639
6720
  const nodeRadius = 40;
6640
- const directed = _optionalChain([options, 'optionalAccess', _142 => _142.directed]) === true;
6721
+ const directed = _optionalChain([options, 'optionalAccess', _146 => _146.directed]) === true;
6641
6722
  if (directed) {
6642
6723
  const defs = svg.append("defs");
6643
6724
  defs.append("marker").attr("id", "narr8-arrow").attr("viewBox", "-10 -10 20 20").attr("markerWidth", 14).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").attr("refX", 0).attr("refY", 0).append("path").attr("d", "M-10,-10 L0,0 L-10,10 z").attr("fill", "#999");
@@ -6649,11 +6730,19 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6649
6730
  });
6650
6731
  zoomBehaviorRef.current = zoom2;
6651
6732
  svg.call(zoom2).on("wheel.zoom", null).on("dblclick.zoom", null);
6652
- const layoutMode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _143 => _143.layout]), () => ( "radial"));
6733
+ const layoutMode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _147 => _147.layout]), () => ( "radial"));
6653
6734
  let layeredPositionsApplied = false;
6654
6735
  if (layoutMode === "layered") {
6655
- const layeredOpts = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _144 => _144.layered]), () => ( {}));
6656
- const positions = computeLayeredLayout(visibleNodes, visibleLinks, {
6736
+ const layeredOpts = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _148 => _148.layered]), () => ( {}));
6737
+ const useFit = layeredOpts.fitContainer === true && width > 0 && height > 0;
6738
+ const positions = useFit ? fitLayeredLayoutToAspectRatio(visibleNodes, visibleLinks, {
6739
+ rankdir: _nullishCoalesce(layeredOpts.rankdir, () => ( "LR")),
6740
+ nodesep: layeredOpts.nodesep,
6741
+ ranksep: layeredOpts.ranksep,
6742
+ minNodeWidth: nodeRadius * 2,
6743
+ minNodeHeight: nodeRadius * 2,
6744
+ targetAspectRatio: width / height
6745
+ }) : computeLayeredLayout(visibleNodes, visibleLinks, {
6657
6746
  rankdir: _nullishCoalesce(layeredOpts.rankdir, () => ( "LR")),
6658
6747
  nodesep: layeredOpts.nodesep,
6659
6748
  ranksep: layeredOpts.ranksep,
@@ -6727,7 +6816,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6727
6816
  sourceNode.children.push(targetId);
6728
6817
  }
6729
6818
  });
6730
- const rootChildren = _optionalChain([nodeHierarchy, 'access', _145 => _145.get, 'call', _146 => _146(centralNodeId), 'optionalAccess', _147 => _147.children]) || [];
6819
+ const rootChildren = _optionalChain([nodeHierarchy, 'access', _149 => _149.get, 'call', _150 => _150(centralNodeId), 'optionalAccess', _151 => _151.children]) || [];
6731
6820
  const childAngleStep = 2 * Math.PI / Math.max(rootChildren.length, 1);
6732
6821
  rootChildren.forEach((childId, index) => {
6733
6822
  const childNode = nodeHierarchy.get(childId);
@@ -6798,9 +6887,12 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6798
6887
  simulation = d3.forceSimulation(visibleNodes).force(
6799
6888
  "link",
6800
6889
  d3.forceLink(visibleLinks).id((d) => d.id).distance(nodeRadius * 3).strength(0.1)
6801
- ).force("charge", d3.forceManyBody().strength(-500).distanceMax(300)).force("collision", d3.forceCollide().radius(nodeRadius * 1.2)).force("center", d3.forceCenter(width / 2, height / 2).strength(0.1));
6890
+ ).force("charge", d3.forceManyBody().strength(-2500).distanceMax(800)).force(
6891
+ "collision",
6892
+ d3.forceCollide().radius((d) => Math.max(nodeRadius * 1.1, estimateLabelWidth2(d) / 2 + 8))
6893
+ ).force("center", d3.forceCenter(width / 2, height / 2).strength(0.1));
6802
6894
  simulation.stop();
6803
- for (let i = 0; i < 100; i++) {
6895
+ for (let i = 0; i < 300; i++) {
6804
6896
  simulation.tick();
6805
6897
  }
6806
6898
  visibleNodes.forEach((node2) => {
@@ -6876,7 +6968,7 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6876
6968
  if (d.instanceType === "root") return;
6877
6969
  const currentNode = d3.select(this);
6878
6970
  currentNode.raise();
6879
- const currentZoom = _optionalChain([zoomRef, 'access', _148 => _148.current, 'optionalAccess', _149 => _149.k]) || 1;
6971
+ const currentZoom = _optionalChain([zoomRef, 'access', _152 => _152.current, 'optionalAccess', _153 => _153.k]) || 1;
6880
6972
  const targetScreenFontSize = 20;
6881
6973
  const baseFontSize = 12;
6882
6974
  const textScale = targetScreenFontSize / (baseFontSize * currentZoom);
@@ -6951,18 +7043,19 @@ function useCustomD3Graph(nodes, links, onNodeClick, visibleNodeIds, options, lo
6951
7043
  }
6952
7044
  });
6953
7045
  return () => {
6954
- _optionalChain([simulation, 'optionalAccess', _150 => _150.stop, 'call', _151 => _151()]);
7046
+ _optionalChain([simulation, 'optionalAccess', _154 => _154.stop, 'call', _155 => _155()]);
6955
7047
  };
6956
7048
  }, [
6957
7049
  nodes,
6958
7050
  links,
6959
7051
  colorScale,
6960
7052
  visibleNodeIds,
6961
- _optionalChain([options, 'optionalAccess', _152 => _152.directed]),
6962
- _optionalChain([options, 'optionalAccess', _153 => _153.layout]),
6963
- _optionalChain([options, 'optionalAccess', _154 => _154.layered, 'optionalAccess', _155 => _155.rankdir]),
6964
- _optionalChain([options, 'optionalAccess', _156 => _156.layered, 'optionalAccess', _157 => _157.nodesep]),
6965
- _optionalChain([options, 'optionalAccess', _158 => _158.layered, 'optionalAccess', _159 => _159.ranksep]),
7053
+ _optionalChain([options, 'optionalAccess', _156 => _156.directed]),
7054
+ _optionalChain([options, 'optionalAccess', _157 => _157.layout]),
7055
+ _optionalChain([options, 'optionalAccess', _158 => _158.layered, 'optionalAccess', _159 => _159.rankdir]),
7056
+ _optionalChain([options, 'optionalAccess', _160 => _160.layered, 'optionalAccess', _161 => _161.nodesep]),
7057
+ _optionalChain([options, 'optionalAccess', _162 => _162.layered, 'optionalAccess', _163 => _163.ranksep]),
7058
+ _optionalChain([options, 'optionalAccess', _164 => _164.layered, 'optionalAccess', _165 => _165.fitContainer]),
6966
7059
  loadingNodeIds,
6967
7060
  onNodeClick
6968
7061
  ]);
@@ -7085,7 +7178,7 @@ function usePageTracker() {
7085
7178
  if (typeof document !== "undefined") {
7086
7179
  const titleParts = document.title.split("]");
7087
7180
  if (titleParts[1]) {
7088
- const cleanTitle = _optionalChain([titleParts, 'access', _160 => _160[1], 'access', _161 => _161.split, 'call', _162 => _162("|"), 'access', _163 => _163[0], 'optionalAccess', _164 => _164.trim, 'call', _165 => _165()]);
7181
+ const cleanTitle = _optionalChain([titleParts, 'access', _166 => _166[1], 'access', _167 => _167.split, 'call', _168 => _168("|"), 'access', _169 => _169[0], 'optionalAccess', _170 => _170.trim, 'call', _171 => _171()]);
7089
7182
  pageTitle = cleanTitle || foundModule.name;
7090
7183
  }
7091
7184
  }
@@ -7122,7 +7215,7 @@ function usePushNotifications() {
7122
7215
  const register = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
7123
7216
  if ("serviceWorker" in navigator && "PushManager" in window) {
7124
7217
  try {
7125
- const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _166 => _166.id])}`;
7218
+ const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _172 => _172.id])}`;
7126
7219
  const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
7127
7220
  const registration = await navigator.serviceWorker.register(`${_chunkSE5HIHJSjs.getAppUrl.call(void 0, )}/sw.js`);
7128
7221
  let permission = Notification.permission;
@@ -7179,7 +7272,7 @@ function useSocket({ token }) {
7179
7272
  const socketRef = _react.useRef.call(void 0, null);
7180
7273
  _react.useEffect.call(void 0, () => {
7181
7274
  if (!token) return;
7182
- const globalSocketKey = `__socket_${_optionalChain([process, 'access', _167 => _167.env, 'access', _168 => _168.NEXT_PUBLIC_API_URL, 'optionalAccess', _169 => _169.replace, 'call', _170 => _170(/[^a-zA-Z0-9]/g, "_")])}`;
7275
+ const globalSocketKey = `__socket_${_optionalChain([process, 'access', _173 => _173.env, 'access', _174 => _174.NEXT_PUBLIC_API_URL, 'optionalAccess', _175 => _175.replace, 'call', _176 => _176(/[^a-zA-Z0-9]/g, "_")])}`;
7183
7276
  if (typeof window !== "undefined") {
7184
7277
  const _allSocketKeys = Object.keys(window).filter((key) => key.startsWith("__socket_"));
7185
7278
  const existingSocket = window[globalSocketKey];
@@ -7372,23 +7465,23 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7372
7465
  );
7373
7466
  const matchedModuleKey = moduleKeys.find((key) => {
7374
7467
  const descriptor2 = Object.getOwnPropertyDescriptor(_chunkXAWKRNYMjs.Modules, key);
7375
- if (!_optionalChain([descriptor2, 'optionalAccess', _171 => _171.get])) return false;
7468
+ if (!_optionalChain([descriptor2, 'optionalAccess', _177 => _177.get])) return false;
7376
7469
  const selectedModule = descriptor2.get.call(_chunkXAWKRNYMjs.Modules);
7377
- return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _172 => _172.pageUrl, 'optionalAccess', _173 => _173.toLowerCase, 'call', _174 => _174()]));
7470
+ return path.toLowerCase().startsWith(_optionalChain([selectedModule, 'access', _178 => _178.pageUrl, 'optionalAccess', _179 => _179.toLowerCase, 'call', _180 => _180()]));
7378
7471
  });
7379
7472
  if (!matchedModuleKey) return void 0;
7380
7473
  const descriptor = Object.getOwnPropertyDescriptor(_chunkXAWKRNYMjs.Modules, matchedModuleKey);
7381
- return _optionalChain([descriptor, 'optionalAccess', _175 => _175.get, 'optionalAccess', _176 => _176.call, 'call', _177 => _177(_chunkXAWKRNYMjs.Modules)]);
7474
+ return _optionalChain([descriptor, 'optionalAccess', _181 => _181.get, 'optionalAccess', _182 => _182.call, 'call', _183 => _183(_chunkXAWKRNYMjs.Modules)]);
7382
7475
  }, "matchUrlToModule");
7383
7476
  const currentUser = dehydratedUser ? _chunkXAWKRNYMjs.rehydrate.call(void 0, _chunkXAWKRNYMjs.Modules.User, dehydratedUser) : null;
7384
- const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _178 => _178.company]), () => ( null));
7477
+ const company = _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _184 => _184.company]), () => ( null));
7385
7478
  const setUser = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (user) => {
7386
7479
  if (user) setDehydratedUser(user.dehydrate());
7387
7480
  else setDehydratedUser(null);
7388
7481
  }, "setUser");
7389
7482
  const hasRole = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (roleId) => {
7390
7483
  if (!currentUser) return false;
7391
- return !!_optionalChain([currentUser, 'access', _179 => _179.roles, 'optionalAccess', _180 => _180.some, 'call', _181 => _181((userRole) => userRole.id === roleId)]);
7484
+ return !!_optionalChain([currentUser, 'access', _185 => _185.roles, 'optionalAccess', _186 => _186.some, 'call', _187 => _187((userRole) => userRole.id === roleId)]);
7392
7485
  }, "hasRole");
7393
7486
  const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
7394
7487
  if (hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)) return true;
@@ -7428,12 +7521,12 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7428
7521
  try {
7429
7522
  const fullUser = await _chunkXAWKRNYMjs.UserService.findFullUser();
7430
7523
  if (fullUser) {
7431
- if (!_optionalChain([options, 'optionalAccess', _182 => _182.skipCookieUpdate])) {
7432
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _183 => _183.updateToken, 'call', _184 => _184({
7524
+ if (!_optionalChain([options, 'optionalAccess', _188 => _188.skipCookieUpdate])) {
7525
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _189 => _189.updateToken, 'call', _190 => _190({
7433
7526
  userId: fullUser.id,
7434
- companyId: _optionalChain([fullUser, 'access', _185 => _185.company, 'optionalAccess', _186 => _186.id]),
7527
+ companyId: _optionalChain([fullUser, 'access', _191 => _191.company, 'optionalAccess', _192 => _192.id]),
7435
7528
  roles: fullUser.roles.map((role) => role.id),
7436
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _187 => _187.company, 'optionalAccess', _188 => _188.features, 'optionalAccess', _189 => _189.map, 'call', _190 => _190((feature) => feature.id)]), () => ( [])),
7529
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _193 => _193.company, 'optionalAccess', _194 => _194.features, 'optionalAccess', _195 => _195.map, 'call', _196 => _196((feature) => feature.id)]), () => ( [])),
7437
7530
  modules: fullUser.modules.map((module) => ({
7438
7531
  id: module.id,
7439
7532
  permissions: module.permissions
@@ -7455,11 +7548,11 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7455
7548
  refreshUserRef.current = refreshUser;
7456
7549
  const isRefreshingRef = _react.useRef.call(void 0, false);
7457
7550
  _react.useEffect.call(void 0, () => {
7458
- if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _191 => _191.company, 'optionalAccess', _192 => _192.id])) {
7551
+ if (!socket || !isConnected || !_optionalChain([currentUser, 'optionalAccess', _197 => _197.company, 'optionalAccess', _198 => _198.id])) {
7459
7552
  return;
7460
7553
  }
7461
7554
  const handleCompanyUpdate = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (data) => {
7462
- if (data.companyId === _optionalChain([currentUser, 'access', _193 => _193.company, 'optionalAccess', _194 => _194.id]) && !isRefreshingRef.current) {
7555
+ if (data.companyId === _optionalChain([currentUser, 'access', _199 => _199.company, 'optionalAccess', _200 => _200.id]) && !isRefreshingRef.current) {
7463
7556
  isRefreshingRef.current = true;
7464
7557
  refreshUserRef.current({ skipCookieUpdate: true }).finally(() => {
7465
7558
  isRefreshingRef.current = false;
@@ -7472,7 +7565,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
7472
7565
  socket.off("company:tokens_updated", handleCompanyUpdate);
7473
7566
  socket.off("company:subscription_updated", handleCompanyUpdate);
7474
7567
  };
7475
- }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _195 => _195.company, 'optionalAccess', _196 => _196.id])]);
7568
+ }, [socket, isConnected, _optionalChain([currentUser, 'optionalAccess', _201 => _201.company, 'optionalAccess', _202 => _202.id])]);
7476
7569
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7477
7570
  CurrentUserContext.Provider,
7478
7571
  {
@@ -7543,7 +7636,7 @@ function AddUserToRoleInternal({ role, refresh }) {
7543
7636
  const data = useDataListRetriever({
7544
7637
  ready: !!company && show,
7545
7638
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params), "retriever"),
7546
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _197 => _197.id]) },
7639
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _203 => _203.id]) },
7547
7640
  module: _chunkXAWKRNYMjs.Modules.User
7548
7641
  });
7549
7642
  _react.useEffect.call(void 0, () => {
@@ -7611,10 +7704,10 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
7611
7704
  onValueChange: setFiles,
7612
7705
  dropzoneOptions: dropzone2,
7613
7706
  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', _198 => _198.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7707
+ 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', _204 => _204.avatar])) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7615
7708
  _image2.default,
7616
7709
  {
7617
- src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _199 => _199.avatar]) || "",
7710
+ src: file ? URL.createObjectURL(file) : _optionalChain([user, 'optionalAccess', _205 => _205.avatar]) || "",
7618
7711
  alt: t(`common.avatar`),
7619
7712
  width: 200,
7620
7713
  height: 200
@@ -7622,7 +7715,7 @@ function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }) {
7622
7715
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.UploadIcon, { className: "my-4 h-8 w-8" }) })
7623
7716
  }
7624
7717
  ),
7625
- !resetImage && (file || _optionalChain([user, 'optionalAccess', _200 => _200.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7718
+ !resetImage && (file || _optionalChain([user, 'optionalAccess', _206 => _206.avatar])) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7626
7719
  Button,
7627
7720
  {
7628
7721
  className: "",
@@ -7650,7 +7743,7 @@ function UserDeleterInternal({ user, onDeleted, companyId }) {
7650
7743
  const router = _chunkSE5HIHJSjs.useI18nRouter.call(void 0, );
7651
7744
  const _t = _nextintl.useTranslations.call(void 0, );
7652
7745
  let cId;
7653
- if (_optionalChain([currentUser, 'optionalAccess', _201 => _201.roles, 'access', _202 => _202.find, 'call', _203 => _203((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
7746
+ if (_optionalChain([currentUser, 'optionalAccess', _207 => _207.roles, 'access', _208 => _208.find, 'call', _209 => _209((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]) && companyId) {
7654
7747
  cId = companyId;
7655
7748
  } else {
7656
7749
  if (!company) return;
@@ -7713,18 +7806,18 @@ function UserEditorInternal({
7713
7806
  }, [company]);
7714
7807
  const handleDialogOpenChange = _react.useCallback.call(void 0,
7715
7808
  (open) => {
7716
- if (open && (company || _optionalChain([currentUser, 'optionalAccess', _204 => _204.roles, 'access', _205 => _205.find, 'call', _206 => _206((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
7809
+ if (open && (company || _optionalChain([currentUser, 'optionalAccess', _210 => _210.roles, 'access', _211 => _211.find, 'call', _212 => _212((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0) {
7717
7810
  async function fetchRoles() {
7718
7811
  const allRoles = await _chunkXAWKRNYMjs.RoleService.findAllRoles({});
7719
7812
  const availableRoles = allRoles.filter(
7720
- (role) => role.id !== _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _207 => _207.features, 'access', _208 => _208.some, 'call', _209 => _209((feature) => feature.id === _optionalChain([role, 'access', _210 => _210.requiredFeature, 'optionalAccess', _211 => _211.id]))]))
7813
+ (role) => role.id !== _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _213 => _213.features, 'access', _214 => _214.some, 'call', _215 => _215((feature) => feature.id === _optionalChain([role, 'access', _216 => _216.requiredFeature, 'optionalAccess', _217 => _217.id]))]))
7721
7814
  );
7722
7815
  setRoles(availableRoles);
7723
7816
  }
7724
7817
  _chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
7725
7818
  fetchRoles();
7726
7819
  }
7727
- _optionalChain([onDialogOpenChange, 'optionalCall', _212 => _212(open)]);
7820
+ _optionalChain([onDialogOpenChange, 'optionalCall', _218 => _218(open)]);
7728
7821
  },
7729
7822
  [company, currentUser, roles.length, onDialogOpenChange]
7730
7823
  );
@@ -7758,29 +7851,29 @@ function UserEditorInternal({
7758
7851
  );
7759
7852
  const getDefaultValues = _react.useCallback.call(void 0, () => {
7760
7853
  return {
7761
- id: _optionalChain([user, 'optionalAccess', _213 => _213.id]) || _uuid.v4.call(void 0, ),
7762
- name: _optionalChain([user, 'optionalAccess', _214 => _214.name]) || "",
7763
- title: _optionalChain([user, 'optionalAccess', _215 => _215.title]) || "",
7764
- bio: _optionalChain([user, 'optionalAccess', _216 => _216.bio]) || "",
7765
- email: _optionalChain([user, 'optionalAccess', _217 => _217.email]) || "",
7766
- phone: _optionalChain([user, 'optionalAccess', _218 => _218.phone]) || "",
7854
+ id: _optionalChain([user, 'optionalAccess', _219 => _219.id]) || _uuid.v4.call(void 0, ),
7855
+ name: _optionalChain([user, 'optionalAccess', _220 => _220.name]) || "",
7856
+ title: _optionalChain([user, 'optionalAccess', _221 => _221.title]) || "",
7857
+ bio: _optionalChain([user, 'optionalAccess', _222 => _222.bio]) || "",
7858
+ email: _optionalChain([user, 'optionalAccess', _223 => _223.email]) || "",
7859
+ phone: _optionalChain([user, 'optionalAccess', _224 => _224.phone]) || "",
7767
7860
  password: "",
7768
- roleIds: _optionalChain([user, 'optionalAccess', _219 => _219.roles, 'access', _220 => _220.map, 'call', _221 => _221((role) => role.id)]) || [],
7861
+ roleIds: _optionalChain([user, 'optionalAccess', _225 => _225.roles, 'access', _226 => _226.map, 'call', _227 => _227((role) => role.id)]) || [],
7769
7862
  sendInvitationEmail: false,
7770
- avatar: _optionalChain([user, 'optionalAccess', _222 => _222.avatarUrl]) || ""
7863
+ avatar: _optionalChain([user, 'optionalAccess', _228 => _228.avatarUrl]) || ""
7771
7864
  };
7772
7865
  }, [user]);
7773
7866
  const form = _reacthookform.useForm.call(void 0, {
7774
7867
  resolver: _zod.zodResolver.call(void 0, formSchema),
7775
7868
  defaultValues: getDefaultValues()
7776
7869
  });
7777
- const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _223 => _223.id]) === _optionalChain([user, 'optionalAccess', _224 => _224.id]) && hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkXAWKRNYMjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator));
7870
+ const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _229 => _229.id]) === _optionalChain([user, 'optionalAccess', _230 => _230.id]) && hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkXAWKRNYMjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator));
7778
7871
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7779
7872
  EditorSheet,
7780
7873
  {
7781
7874
  form,
7782
7875
  entityType: t(`entities.users`, { count: 1 }),
7783
- entityName: _optionalChain([user, 'optionalAccess', _225 => _225.name]),
7876
+ entityName: _optionalChain([user, 'optionalAccess', _231 => _231.name]),
7784
7877
  isEdit: !!user,
7785
7878
  module: _chunkXAWKRNYMjs.Modules.User,
7786
7879
  propagateChanges,
@@ -7832,7 +7925,7 @@ function UserEditorInternal({
7832
7925
  adminCreated
7833
7926
  };
7834
7927
  const updatedUser = user ? await _chunkXAWKRNYMjs.UserService.update(payload) : await _chunkXAWKRNYMjs.UserService.create(payload);
7835
- if (_optionalChain([currentUser, 'optionalAccess', _226 => _226.id]) === updatedUser.id) setUser(updatedUser);
7928
+ if (_optionalChain([currentUser, 'optionalAccess', _232 => _232.id]) === updatedUser.id) setUser(updatedUser);
7836
7929
  return updatedUser;
7837
7930
  },
7838
7931
  onRevalidate,
@@ -8079,7 +8172,7 @@ function EntityMultiSelector({
8079
8172
  if (open) {
8080
8173
  setSearchTerm("");
8081
8174
  requestAnimationFrame(() => {
8082
- _optionalChain([searchInputRef, 'access', _227 => _227.current, 'optionalAccess', _228 => _228.focus, 'call', _229 => _229()]);
8175
+ _optionalChain([searchInputRef, 'access', _233 => _233.current, 'optionalAccess', _234 => _234.focus, 'call', _235 => _235()]);
8083
8176
  });
8084
8177
  }
8085
8178
  }, [open]);
@@ -8096,7 +8189,7 @@ function EntityMultiSelector({
8096
8189
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8097
8190
  const cb = onChangeRef.current;
8098
8191
  if (cb) {
8099
- const fullData = next.map((v) => _optionalChain([options, 'access', _230 => _230.find, 'call', _231 => _231((opt) => opt.id === v.id), 'optionalAccess', _232 => _232.entityData])).filter(Boolean);
8192
+ const fullData = next.map((v) => _optionalChain([options, 'access', _236 => _236.find, 'call', _237 => _237((opt) => opt.id === v.id), 'optionalAccess', _238 => _238.entityData])).filter(Boolean);
8100
8193
  cb(fullData);
8101
8194
  }
8102
8195
  },
@@ -8109,7 +8202,7 @@ function EntityMultiSelector({
8109
8202
  form.setValue(id, next, { shouldDirty: true, shouldTouch: true });
8110
8203
  const cb = onChangeRef.current;
8111
8204
  if (cb) {
8112
- const fullData = next.map((v) => _optionalChain([options, 'access', _233 => _233.find, 'call', _234 => _234((opt) => opt.id === v.id), 'optionalAccess', _235 => _235.entityData])).filter(Boolean);
8205
+ const fullData = next.map((v) => _optionalChain([options, 'access', _239 => _239.find, 'call', _240 => _240((opt) => opt.id === v.id), 'optionalAccess', _241 => _241.entityData])).filter(Boolean);
8113
8206
  cb(fullData);
8114
8207
  }
8115
8208
  },
@@ -8247,11 +8340,11 @@ function UserMultiSelect({
8247
8340
  emptyText: t("ui.search.no_results", { type: t("entities.users", { count: 2 }) }),
8248
8341
  isRequired,
8249
8342
  retriever: (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params),
8250
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _236 => _236.id]) },
8343
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _242 => _242.id]) },
8251
8344
  module: _chunkXAWKRNYMjs.Modules.User,
8252
8345
  getLabel: (user) => user.name,
8253
8346
  toFormValue: (user) => ({ id: user.id, name: user.name, avatar: user.avatar }),
8254
- excludeId: _optionalChain([currentUser, 'optionalAccess', _237 => _237.id]),
8347
+ excludeId: _optionalChain([currentUser, 'optionalAccess', _243 => _243.id]),
8255
8348
  onChange,
8256
8349
  renderOption: (user) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
8257
8350
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatarIcon, { url: user.avatar, name: user.name }),
@@ -8517,7 +8610,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ErrorDetails, "ErrorDetails");
8517
8610
 
8518
8611
  // src/components/errors/errorToast.ts
8519
8612
  function errorToast(params) {
8520
- _chunkXAWKRNYMjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _238 => _238.title]), () => ( "Error")), {
8613
+ _chunkXAWKRNYMjs.showError.call(void 0, _nullishCoalesce(_optionalChain([params, 'optionalAccess', _244 => _244.title]), () => ( "Error")), {
8521
8614
  description: params.error instanceof Error ? params.error.message : String(params.error)
8522
8615
  });
8523
8616
  }
@@ -8681,21 +8774,21 @@ function useEditorDialog(isFormDirty, options) {
8681
8774
  const [open, setOpen] = _react.useState.call(void 0, false);
8682
8775
  const [showDiscardConfirm, setShowDiscardConfirm] = _react.useState.call(void 0, false);
8683
8776
  _react.useEffect.call(void 0, () => {
8684
- if (_optionalChain([options, 'optionalAccess', _239 => _239.dialogOpen]) !== void 0) {
8777
+ if (_optionalChain([options, 'optionalAccess', _245 => _245.dialogOpen]) !== void 0) {
8685
8778
  setOpen(options.dialogOpen);
8686
8779
  }
8687
- }, [_optionalChain([options, 'optionalAccess', _240 => _240.dialogOpen])]);
8780
+ }, [_optionalChain([options, 'optionalAccess', _246 => _246.dialogOpen])]);
8688
8781
  _react.useEffect.call(void 0, () => {
8689
- if (typeof _optionalChain([options, 'optionalAccess', _241 => _241.onDialogOpenChange]) === "function") {
8782
+ if (typeof _optionalChain([options, 'optionalAccess', _247 => _247.onDialogOpenChange]) === "function") {
8690
8783
  options.onDialogOpenChange(open);
8691
8784
  }
8692
- }, [open, _optionalChain([options, 'optionalAccess', _242 => _242.onDialogOpenChange])]);
8785
+ }, [open, _optionalChain([options, 'optionalAccess', _248 => _248.onDialogOpenChange])]);
8693
8786
  _react.useEffect.call(void 0, () => {
8694
- if (_optionalChain([options, 'optionalAccess', _243 => _243.forceShow])) setOpen(true);
8695
- }, [_optionalChain([options, 'optionalAccess', _244 => _244.forceShow])]);
8787
+ if (_optionalChain([options, 'optionalAccess', _249 => _249.forceShow])) setOpen(true);
8788
+ }, [_optionalChain([options, 'optionalAccess', _250 => _250.forceShow])]);
8696
8789
  _react.useEffect.call(void 0, () => {
8697
8790
  if (!open) {
8698
- if (_optionalChain([options, 'optionalAccess', _245 => _245.onClose])) options.onClose();
8791
+ if (_optionalChain([options, 'optionalAccess', _251 => _251.onClose])) options.onClose();
8699
8792
  }
8700
8793
  }, [open]);
8701
8794
  const handleOpenChange = _react.useCallback.call(void 0,
@@ -8787,7 +8880,7 @@ function EditorSheet({
8787
8880
  hasBeenOpen.current = true;
8788
8881
  } else if (hasBeenOpen.current) {
8789
8882
  form.reset(onReset());
8790
- _optionalChain([onClose, 'optionalCall', _246 => _246()]);
8883
+ _optionalChain([onClose, 'optionalCall', _252 => _252()]);
8791
8884
  }
8792
8885
  }, [open]);
8793
8886
  const wrappedOnSubmit = _react.useCallback.call(void 0,
@@ -8801,11 +8894,11 @@ function EditorSheet({
8801
8894
  if (onSuccess) {
8802
8895
  await onSuccess();
8803
8896
  } else if (result) {
8804
- _optionalChain([onRevalidate, 'optionalCall', _247 => _247(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
8897
+ _optionalChain([onRevalidate, 'optionalCall', _253 => _253(generateUrl({ page: module, id: result.id, language: "[locale]" }))]);
8805
8898
  if (isEdit && propagateChanges) {
8806
8899
  propagateChanges(result);
8807
8900
  } else {
8808
- _optionalChain([onNavigate, 'optionalCall', _248 => _248(generateUrl({ page: module, id: result.id }))]);
8901
+ _optionalChain([onNavigate, 'optionalCall', _254 => _254(generateUrl({ page: module, id: result.id }))]);
8809
8902
  }
8810
8903
  }
8811
8904
  } catch (error) {
@@ -9031,7 +9124,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9031
9124
  const [open, setOpen] = _react.useState.call(void 0, false);
9032
9125
  const [prevRange, setPrevRange] = _react.useState.call(void 0, date);
9033
9126
  _react.useEffect.call(void 0, () => {
9034
- if (_optionalChain([date, 'optionalAccess', _249 => _249.from]) && _optionalChain([date, 'optionalAccess', _250 => _250.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _251 => _251.from, 'optionalAccess', _252 => _252.getTime, 'call', _253 => _253()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _254 => _254.to, 'optionalAccess', _255 => _255.getTime, 'call', _256 => _256()]) !== date.to.getTime())) {
9127
+ if (_optionalChain([date, 'optionalAccess', _255 => _255.from]) && _optionalChain([date, 'optionalAccess', _256 => _256.to]) && date.to > date.from && (_optionalChain([prevRange, 'optionalAccess', _257 => _257.from, 'optionalAccess', _258 => _258.getTime, 'call', _259 => _259()]) !== date.from.getTime() || _optionalChain([prevRange, 'optionalAccess', _260 => _260.to, 'optionalAccess', _261 => _261.getTime, 'call', _262 => _262()]) !== date.to.getTime())) {
9035
9128
  onDateChange(date);
9036
9129
  setPrevRange(date);
9037
9130
  setOpen(false);
@@ -9042,7 +9135,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9042
9135
  setDate(void 0);
9043
9136
  return;
9044
9137
  }
9045
- if (range.from && (!_optionalChain([date, 'optionalAccess', _257 => _257.from]) || range.from.getTime() !== date.from.getTime())) {
9138
+ if (range.from && (!_optionalChain([date, 'optionalAccess', _263 => _263.from]) || range.from.getTime() !== date.from.getTime())) {
9046
9139
  setDate({ from: range.from, to: void 0 });
9047
9140
  } else {
9048
9141
  setDate(range);
@@ -9057,7 +9150,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9057
9150
  className: _chunkXAWKRNYMjs.cn.call(void 0, "w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
9058
9151
  children: [
9059
9152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.CalendarIcon, {}),
9060
- _optionalChain([date, 'optionalAccess', _258 => _258.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9153
+ _optionalChain([date, 'optionalAccess', _264 => _264.from]) ? date.to ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9061
9154
  _datefns.format.call(void 0, date.from, "LLL dd, y"),
9062
9155
  " - ",
9063
9156
  _datefns.format.call(void 0, date.to, "LLL dd, y")
@@ -9070,7 +9163,7 @@ function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth
9070
9163
  Calendar,
9071
9164
  {
9072
9165
  mode: "range",
9073
- defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _259 => _259.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9166
+ defaultMonth: _nullishCoalesce(_optionalChain([date, 'optionalAccess', _265 => _265.from]), () => ( (showPreviousMonth ? new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 1) : void 0))),
9074
9167
  selected: date,
9075
9168
  onSelect: handleSelect,
9076
9169
  numberOfMonths: 2
@@ -9157,7 +9250,7 @@ var FileUploader = _react.forwardRef.call(void 0,
9157
9250
  movePrev();
9158
9251
  } else if (e.key === "Enter" || e.key === "Space") {
9159
9252
  if (activeIndex === -1) {
9160
- _optionalChain([dropzoneState, 'access', _260 => _260.inputRef, 'access', _261 => _261.current, 'optionalAccess', _262 => _262.click, 'call', _263 => _263()]);
9253
+ _optionalChain([dropzoneState, 'access', _266 => _266.inputRef, 'access', _267 => _267.current, 'optionalAccess', _268 => _268.click, 'call', _269 => _269()]);
9161
9254
  }
9162
9255
  } else if (e.key === "Delete" || e.key === "Backspace") {
9163
9256
  if (activeIndex !== -1) {
@@ -9195,13 +9288,13 @@ var FileUploader = _react.forwardRef.call(void 0,
9195
9288
  onValueChange(newValues);
9196
9289
  if (rejectedFiles.length > 0) {
9197
9290
  for (let i = 0; i < rejectedFiles.length; i++) {
9198
- if (_optionalChain([rejectedFiles, 'access', _264 => _264[i], 'access', _265 => _265.errors, 'access', _266 => _266[0], 'optionalAccess', _267 => _267.code]) === "file-too-large") {
9291
+ if (_optionalChain([rejectedFiles, 'access', _270 => _270[i], 'access', _271 => _271.errors, 'access', _272 => _272[0], 'optionalAccess', _273 => _273.code]) === "file-too-large") {
9199
9292
  _chunkXAWKRNYMjs.showError.call(void 0, t("common.errors.file"), {
9200
9293
  description: t(`common.errors.file_max`, { size: maxSize / 1024 / 1024 })
9201
9294
  });
9202
9295
  break;
9203
9296
  }
9204
- if (_optionalChain([rejectedFiles, 'access', _268 => _268[i], 'access', _269 => _269.errors, 'access', _270 => _270[0], 'optionalAccess', _271 => _271.message])) {
9297
+ if (_optionalChain([rejectedFiles, 'access', _274 => _274[i], 'access', _275 => _275.errors, 'access', _276 => _276[0], 'optionalAccess', _277 => _277.message])) {
9205
9298
  _chunkXAWKRNYMjs.showError.call(void 0, t(`common.errors.file`), {
9206
9299
  description: rejectedFiles[i].errors[0].message
9207
9300
  });
@@ -9400,7 +9493,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, FormCheckbox, "FormCheckbox");
9400
9493
  var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
9401
9494
 
9402
9495
 
9403
- var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-LYJUF5N4.js"))), {
9496
+ var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-Z4YI6XFJ.js"))), {
9404
9497
  ssr: false
9405
9498
  });
9406
9499
  var BlockNoteEditorContainer = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
@@ -9464,7 +9557,7 @@ function FormBlockNote({
9464
9557
  onChange: (content, isEmpty) => {
9465
9558
  lastEditorContentRef.current = content;
9466
9559
  field.onChange(content);
9467
- _optionalChain([onEmptyChange, 'optionalCall', _272 => _272(isEmpty)]);
9560
+ _optionalChain([onEmptyChange, 'optionalCall', _278 => _278(isEmpty)]);
9468
9561
  },
9469
9562
  placeholder,
9470
9563
  bordered: true,
@@ -10041,11 +10134,11 @@ function FormPlaceAutocomplete({
10041
10134
  const data = await response.json();
10042
10135
  if (data.suggestions) {
10043
10136
  const formattedSuggestions = data.suggestions.map((suggestion) => ({
10044
- place_id: _optionalChain([suggestion, 'access', _273 => _273.placePrediction, 'optionalAccess', _274 => _274.placeId]) || "",
10045
- description: _optionalChain([suggestion, 'access', _275 => _275.placePrediction, 'optionalAccess', _276 => _276.text, 'optionalAccess', _277 => _277.text]) || "",
10137
+ place_id: _optionalChain([suggestion, 'access', _279 => _279.placePrediction, 'optionalAccess', _280 => _280.placeId]) || "",
10138
+ description: _optionalChain([suggestion, 'access', _281 => _281.placePrediction, 'optionalAccess', _282 => _282.text, 'optionalAccess', _283 => _283.text]) || "",
10046
10139
  structured_formatting: {
10047
- main_text: _optionalChain([suggestion, 'access', _278 => _278.placePrediction, 'optionalAccess', _279 => _279.structuredFormat, 'optionalAccess', _280 => _280.mainText, 'optionalAccess', _281 => _281.text]) || "",
10048
- secondary_text: _optionalChain([suggestion, 'access', _282 => _282.placePrediction, 'optionalAccess', _283 => _283.structuredFormat, 'optionalAccess', _284 => _284.secondaryText, 'optionalAccess', _285 => _285.text]) || ""
10140
+ main_text: _optionalChain([suggestion, 'access', _284 => _284.placePrediction, 'optionalAccess', _285 => _285.structuredFormat, 'optionalAccess', _286 => _286.mainText, 'optionalAccess', _287 => _287.text]) || "",
10141
+ secondary_text: _optionalChain([suggestion, 'access', _288 => _288.placePrediction, 'optionalAccess', _289 => _289.structuredFormat, 'optionalAccess', _290 => _290.secondaryText, 'optionalAccess', _291 => _291.text]) || ""
10049
10142
  }
10050
10143
  }));
10051
10144
  setSuggestions(formattedSuggestions);
@@ -10192,8 +10285,8 @@ function FormPlaceAutocomplete({
10192
10285
  className: "hover:bg-muted cursor-pointer px-3 py-2 text-sm",
10193
10286
  onClick: () => handleSuggestionSelect(suggestion),
10194
10287
  children: [
10195
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _286 => _286.structured_formatting, 'optionalAccess', _287 => _287.main_text]) }),
10196
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _288 => _288.structured_formatting, 'optionalAccess', _289 => _289.secondary_text]) })
10288
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "font-medium", children: _optionalChain([suggestion, 'access', _292 => _292.structured_formatting, 'optionalAccess', _293 => _293.main_text]) }),
10289
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: _optionalChain([suggestion, 'access', _294 => _294.structured_formatting, 'optionalAccess', _295 => _295.secondary_text]) })
10197
10290
  ]
10198
10291
  },
10199
10292
  suggestion.place_id || index
@@ -10239,7 +10332,7 @@ function FormSelect({
10239
10332
  disabled,
10240
10333
  "data-testid": testId,
10241
10334
  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', _290 => _290.find, 'call', _291 => _291((v) => v.id === field.value), 'optionalAccess', _292 => _292.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
10335
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectValue, { children: field.value ? _optionalChain([values, 'access', _296 => _296.find, 'call', _297 => _297((v) => v.id === field.value), 'optionalAccess', _298 => _298.text]) : _nullishCoalesce(placeholder, () => ( "")) }) }),
10243
10336
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, SelectContent, { children: [
10244
10337
  allowEmpty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: EMPTY_VALUE, className: "text-muted-foreground", children: _nullishCoalesce(placeholder, () => ( "")) }),
10245
10338
  values.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: type.id, children: type.text }, type.id))
@@ -10410,7 +10503,7 @@ function UserAvatar({ user, className, showFull, showLink, showTooltip = true })
10410
10503
  }, "getInitials");
10411
10504
  const getAvatar = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
10412
10505
  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', _293 => _293.avatar]) }),
10506
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { className: "object-cover", src: _optionalChain([user, 'optionalAccess', _299 => _299.avatar]) }),
10414
10507
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: getInitials3(user.name) })
10415
10508
  ] }) });
10416
10509
  }, "getAvatar");
@@ -10601,7 +10694,7 @@ var useUserTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
10601
10694
  })
10602
10695
  };
10603
10696
  const columns = _react.useMemo.call(void 0, () => {
10604
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _294 => _294[field], 'optionalCall', _295 => _295()])).filter((col) => col !== void 0);
10697
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _300 => _300[field], 'optionalCall', _301 => _301()])).filter((col) => col !== void 0);
10605
10698
  }, [params.fields, fieldColumnMap, t, generateUrl]);
10606
10699
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
10607
10700
  }, "useUserTableStructure");
@@ -10715,10 +10808,10 @@ function UserSelector({ id, form, label, placeholder, onChange, isRequired = fal
10715
10808
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between", children: [
10716
10809
  /* @__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
10810
  /* @__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', _296 => _296.value, 'optionalAccess', _297 => _297.avatar]) }),
10719
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _298 => _298.value, 'optionalAccess', _299 => _299.name]) ? _optionalChain([field, 'access', _300 => _300.value, 'optionalAccess', _301 => _301.name, 'access', _302 => _302.split, 'call', _303 => _303(" "), 'access', _304 => _304.map, 'call', _305 => _305((name) => name.charAt(0).toUpperCase())]) : "X" })
10811
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarImage, { src: _optionalChain([field, 'access', _302 => _302.value, 'optionalAccess', _303 => _303.avatar]) }),
10812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AvatarFallback, { children: _optionalChain([field, 'access', _304 => _304.value, 'optionalAccess', _305 => _305.name]) ? _optionalChain([field, 'access', _306 => _306.value, 'optionalAccess', _307 => _307.name, 'access', _308 => _308.split, 'call', _309 => _309(" "), 'access', _310 => _310.map, 'call', _311 => _311((name) => name.charAt(0).toUpperCase())]) : "X" })
10720
10813
  ] }) }),
10721
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _306 => _306.value, 'optionalAccess', _307 => _307.name]), () => ( "")) })
10814
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _nullishCoalesce(_optionalChain([field, 'access', _312 => _312.value, 'optionalAccess', _313 => _313.name]), () => ( "")) })
10722
10815
  ] }) : /* @__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
10816
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10724
10817
  _lucidereact.CircleX,
@@ -11049,7 +11142,7 @@ function CompanyUsersList({ isDeleted, fullWidth }) {
11049
11142
  const data = useDataListRetriever({
11050
11143
  ready: !!company,
11051
11144
  retriever: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => _chunkXAWKRNYMjs.UserService.findAllUsers(params), "retriever"),
11052
- retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _308 => _308.id]), isDeleted },
11145
+ retrieverParams: { companyId: _optionalChain([company, 'optionalAccess', _314 => _314.id]), isDeleted },
11053
11146
  module: _chunkXAWKRNYMjs.Modules.User
11054
11147
  });
11055
11148
  _react.useEffect.call(void 0, () => {
@@ -11156,11 +11249,11 @@ function UserListInAdd({ data, existingUsers, setSelectedUser, setLevelOpen }) {
11156
11249
  className: "cursor-pointer hover:bg-muted data-selected:hover:bg-muted bg-transparent data-selected:bg-transparent",
11157
11250
  onClick: (_e) => {
11158
11251
  setSelectedUser(user);
11159
- _optionalChain([setLevelOpen, 'optionalCall', _309 => _309(true)]);
11252
+ _optionalChain([setLevelOpen, 'optionalCall', _315 => _315(true)]);
11160
11253
  },
11161
11254
  onSelect: (_e) => {
11162
11255
  setSelectedUser(user);
11163
- _optionalChain([setLevelOpen, 'optionalCall', _310 => _310(true)]);
11256
+ _optionalChain([setLevelOpen, 'optionalCall', _316 => _316(true)]);
11164
11257
  },
11165
11258
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row items-center justify-between px-4 py-1", children: [
11166
11259
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UserAvatar, { user }),
@@ -11291,7 +11384,7 @@ function CompanyContent({ company, actions }) {
11291
11384
  company.legal_address
11292
11385
  ] }),
11293
11386
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-y-1", children: [
11294
- _optionalChain([company, 'access', _311 => _311.configurations, 'optionalAccess', _312 => _312.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11387
+ _optionalChain([company, 'access', _317 => _317.configurations, 'optionalAccess', _318 => _318.country]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11295
11388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11296
11389
  t("features.configuration.country"),
11297
11390
  ":"
@@ -11299,7 +11392,7 @@ function CompanyContent({ company, actions }) {
11299
11392
  " ",
11300
11393
  company.configurations.country
11301
11394
  ] }),
11302
- _optionalChain([company, 'access', _313 => _313.configurations, 'optionalAccess', _314 => _314.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11395
+ _optionalChain([company, 'access', _319 => _319.configurations, 'optionalAccess', _320 => _320.currency]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-muted-foreground text-sm", children: [
11303
11396
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "font-medium", children: [
11304
11397
  t("features.configuration.currency"),
11305
11398
  ":"
@@ -11709,7 +11802,7 @@ function CompanyEditorInternal({
11709
11802
  const t = _nextintl.useTranslations.call(void 0, );
11710
11803
  const fiscalRef = _react.useRef.call(void 0, null);
11711
11804
  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', _315 => _315.env, 'access', _316 => _316.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _317 => _317.toLowerCase, 'call', _318 => _318()]) === "true";
11805
+ const canAccessFeatures = hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _321 => _321.env, 'access', _322 => _322.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _323 => _323.toLowerCase, 'call', _324 => _324()]) === "true";
11713
11806
  const handleDialogOpenChange = _react.useCallback.call(void 0,
11714
11807
  (open) => {
11715
11808
  if (open && features.length === 0 && canAccessFeatures) {
@@ -11724,7 +11817,7 @@ function CompanyEditorInternal({
11724
11817
  _chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
11725
11818
  fetchFeatures();
11726
11819
  }
11727
- _optionalChain([onDialogOpenChange, 'optionalCall', _319 => _319(open)]);
11820
+ _optionalChain([onDialogOpenChange, 'optionalCall', _325 => _325(open)]);
11728
11821
  },
11729
11822
  [features.length, canAccessFeatures, hasRole, onDialogOpenChange]
11730
11823
  );
@@ -11769,12 +11862,12 @@ function CompanyEditorInternal({
11769
11862
  );
11770
11863
  const getDefaultValues = _react.useCallback.call(void 0, () => {
11771
11864
  return {
11772
- id: _optionalChain([company, 'optionalAccess', _320 => _320.id]) || _uuid.v4.call(void 0, ),
11773
- name: _optionalChain([company, 'optionalAccess', _321 => _321.name]) || "",
11774
- featureIds: _optionalChain([company, 'optionalAccess', _322 => _322.features, 'access', _323 => _323.map, 'call', _324 => _324((feature) => feature.id)]) || [],
11775
- moduleIds: _optionalChain([company, 'optionalAccess', _325 => _325.modules, 'access', _326 => _326.map, 'call', _327 => _327((module) => module.id)]) || [],
11776
- logo: _optionalChain([company, 'optionalAccess', _328 => _328.logo]) || "",
11777
- legal_address: _optionalChain([company, 'optionalAccess', _329 => _329.legal_address]) || ""
11865
+ id: _optionalChain([company, 'optionalAccess', _326 => _326.id]) || _uuid.v4.call(void 0, ),
11866
+ name: _optionalChain([company, 'optionalAccess', _327 => _327.name]) || "",
11867
+ featureIds: _optionalChain([company, 'optionalAccess', _328 => _328.features, 'access', _329 => _329.map, 'call', _330 => _330((feature) => feature.id)]) || [],
11868
+ moduleIds: _optionalChain([company, 'optionalAccess', _331 => _331.modules, 'access', _332 => _332.map, 'call', _333 => _333((module) => module.id)]) || [],
11869
+ logo: _optionalChain([company, 'optionalAccess', _334 => _334.logo]) || "",
11870
+ legal_address: _optionalChain([company, 'optionalAccess', _335 => _335.legal_address]) || ""
11778
11871
  };
11779
11872
  }, [company]);
11780
11873
  const form = _reacthookform.useForm.call(void 0, {
@@ -11786,7 +11879,7 @@ function CompanyEditorInternal({
11786
11879
  {
11787
11880
  form,
11788
11881
  entityType: t(`entities.companies`, { count: 1 }),
11789
- entityName: _optionalChain([company, 'optionalAccess', _330 => _330.name]),
11882
+ entityName: _optionalChain([company, 'optionalAccess', _336 => _336.name]),
11790
11883
  isEdit: !!company,
11791
11884
  module: _chunkXAWKRNYMjs.Modules.Company,
11792
11885
  propagateChanges,
@@ -11811,7 +11904,7 @@ function CompanyEditorInternal({
11811
11904
  throw new Error("Fiscal data validation failed");
11812
11905
  }
11813
11906
  const payload = {
11814
- id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _331 => _331.id]), () => ( _uuid.v4.call(void 0, ))),
11907
+ id: _nullishCoalesce(_optionalChain([company, 'optionalAccess', _337 => _337.id]), () => ( _uuid.v4.call(void 0, ))),
11815
11908
  name: values.name,
11816
11909
  logo: files && contentType ? values.logo : void 0,
11817
11910
  featureIds: values.featureIds,
@@ -11842,10 +11935,10 @@ function CompanyEditorInternal({
11842
11935
  dialogOpen,
11843
11936
  onDialogOpenChange: handleDialogOpenChange,
11844
11937
  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', _332 => _332.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11938
+ /* @__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', _338 => _338.logo]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11846
11939
  _image2.default,
11847
11940
  {
11848
- src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _333 => _333.logo]) || "",
11941
+ src: file ? URL.createObjectURL(file) : _optionalChain([company, 'optionalAccess', _339 => _339.logo]) || "",
11849
11942
  alt: "Company Logo",
11850
11943
  width: 200,
11851
11944
  height: 200
@@ -11879,7 +11972,7 @@ function CompanyEditorInternal({
11879
11972
  }
11880
11973
  ),
11881
11974
  /* @__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', _334 => _334.fiscal_data])) })
11975
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ItalianFiscalData_default, { ref: fiscalRef, initialData: parseFiscalData(_optionalChain([company, 'optionalAccess', _340 => _340.fiscal_data])) })
11883
11976
  ] }),
11884
11977
  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
11978
  ] })
@@ -11996,7 +12089,7 @@ function NotificationToast(notification, t, generateUrl, reouter) {
11996
12089
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
11997
12090
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
11998
12091
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
11999
- actor: _nullishCoalesce(_optionalChain([data, 'access', _335 => _335.actor, 'optionalAccess', _336 => _336.name]), () => ( "")),
12092
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _341 => _341.actor, 'optionalAccess', _342 => _342.name]), () => ( "")),
12000
12093
  title: data.title,
12001
12094
  message: _nullishCoalesce(notification.message, () => ( ""))
12002
12095
  }) }),
@@ -12025,7 +12118,7 @@ function NotificationMenuItem({ notification, closePopover }) {
12025
12118
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
12026
12119
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
12027
12120
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
12028
- actor: _nullishCoalesce(_optionalChain([data, 'access', _337 => _337.actor, 'optionalAccess', _338 => _338.name]), () => ( "")),
12121
+ actor: _nullishCoalesce(_optionalChain([data, 'access', _343 => _343.actor, 'optionalAccess', _344 => _344.name]), () => ( "")),
12029
12122
  title: data.title,
12030
12123
  message: _nullishCoalesce(notification.message, () => ( ""))
12031
12124
  }) }),
@@ -12082,7 +12175,7 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
12082
12175
  _react.useEffect.call(void 0, () => {
12083
12176
  if (hasInitiallyLoaded || !currentUser) return;
12084
12177
  if (_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) {
12085
- const isAdmin = _optionalChain([currentUser, 'access', _339 => _339.roles, 'optionalAccess', _340 => _340.some, 'call', _341 => _341((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]);
12178
+ const isAdmin = _optionalChain([currentUser, 'access', _345 => _345.roles, 'optionalAccess', _346 => _346.some, 'call', _347 => _347((role) => role.id === _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator)]);
12086
12179
  if (isAdmin) {
12087
12180
  setHasInitiallyLoaded(true);
12088
12181
  return;
@@ -12284,7 +12377,7 @@ function OnboardingProvider({
12284
12377
  let tourSteps = steps;
12285
12378
  if (!tourSteps) {
12286
12379
  const tour2 = tours.find((t) => t.id === tourId);
12287
- tourSteps = _optionalChain([tour2, 'optionalAccess', _342 => _342.steps]);
12380
+ tourSteps = _optionalChain([tour2, 'optionalAccess', _348 => _348.steps]);
12288
12381
  }
12289
12382
  if (!tourSteps || tourSteps.length === 0) {
12290
12383
  console.warn(`No steps found for tour: ${tourId}`);
@@ -12352,10 +12445,10 @@ function OnboardingProvider({
12352
12445
  when: {
12353
12446
  show: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12354
12447
  setCurrentStepIndex(index);
12355
- _optionalChain([stepConfig, 'access', _343 => _343.onShow, 'optionalCall', _344 => _344()]);
12448
+ _optionalChain([stepConfig, 'access', _349 => _349.onShow, 'optionalCall', _350 => _350()]);
12356
12449
  }, "show"),
12357
12450
  hide: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
12358
- _optionalChain([stepConfig, 'access', _345 => _345.onHide, 'optionalCall', _346 => _346()]);
12451
+ _optionalChain([stepConfig, 'access', _351 => _351.onHide, 'optionalCall', _352 => _352()]);
12359
12452
  }, "hide")
12360
12453
  }
12361
12454
  });
@@ -12586,10 +12679,10 @@ function HowToEditorInternal({
12586
12679
  );
12587
12680
  const getDefaultValues = _react.useCallback.call(void 0,
12588
12681
  () => ({
12589
- id: _optionalChain([howTo, 'optionalAccess', _347 => _347.id]) || _uuid.v4.call(void 0, ),
12590
- name: _optionalChain([howTo, 'optionalAccess', _348 => _348.name]) || "",
12591
- description: _optionalChain([howTo, 'optionalAccess', _349 => _349.description]) || [],
12592
- pages: _chunkXAWKRNYMjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _350 => _350.pages]))
12682
+ id: _optionalChain([howTo, 'optionalAccess', _353 => _353.id]) || _uuid.v4.call(void 0, ),
12683
+ name: _optionalChain([howTo, 'optionalAccess', _354 => _354.name]) || "",
12684
+ description: _optionalChain([howTo, 'optionalAccess', _355 => _355.description]) || [],
12685
+ pages: _chunkXAWKRNYMjs.HowTo.parsePagesFromString(_optionalChain([howTo, 'optionalAccess', _356 => _356.pages]))
12593
12686
  }),
12594
12687
  [howTo]
12595
12688
  );
@@ -12620,7 +12713,7 @@ function HowToEditorInternal({
12620
12713
  {
12621
12714
  form,
12622
12715
  entityType: t(`entities.howtos`, { count: 1 }),
12623
- entityName: _optionalChain([howTo, 'optionalAccess', _351 => _351.name]),
12716
+ entityName: _optionalChain([howTo, 'optionalAccess', _357 => _357.name]),
12624
12717
  isEdit: !!howTo,
12625
12718
  module: _chunkXAWKRNYMjs.Modules.HowTo,
12626
12719
  propagateChanges,
@@ -12924,7 +13017,7 @@ function withPatchedTitle(source, title) {
12924
13017
  return _chunkXAWKRNYMjs.rehydrate.call(void 0, _chunkXAWKRNYMjs.Modules.Assistant, {
12925
13018
  jsonApi: {
12926
13019
  ...dehydrated.jsonApi,
12927
- attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _352 => _352.jsonApi, 'optionalAccess', _353 => _353.attributes]), () => ( {})), title }
13020
+ attributes: { ..._nullishCoalesce(_optionalChain([dehydrated, 'access', _358 => _358.jsonApi, 'optionalAccess', _359 => _359.attributes]), () => ( {})), title }
12928
13021
  },
12929
13022
  included: dehydrated.included
12930
13023
  });
@@ -12951,7 +13044,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
12951
13044
  if (!trimmed) return;
12952
13045
  const optimistic = _chunkXAWKRNYMjs.AssistantMessage.buildOptimistic({
12953
13046
  content: trimmed,
12954
- assistantId: _optionalChain([assistant, 'optionalAccess', _354 => _354.id]),
13047
+ assistantId: _optionalChain([assistant, 'optionalAccess', _360 => _360.id]),
12955
13048
  position: nextPosition(messages)
12956
13049
  });
12957
13050
  setMessages((prev) => [...prev, optimistic]);
@@ -12961,7 +13054,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
12961
13054
  if (assistant && payload.assistantId && payload.assistantId !== assistant.id) return;
12962
13055
  if (typeof payload.status === "string") setStatus(payload.status);
12963
13056
  }, "handler");
12964
- _optionalChain([socket, 'optionalAccess', _355 => _355.on, 'call', _356 => _356("assistant:status", handler)]);
13057
+ _optionalChain([socket, 'optionalAccess', _361 => _361.on, 'call', _362 => _362("assistant:status", handler)]);
12965
13058
  try {
12966
13059
  if (!assistant) {
12967
13060
  const created = await _chunkXAWKRNYMjs.AssistantService.create({ firstMessage: trimmed });
@@ -12986,7 +13079,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
12986
13079
  return next;
12987
13080
  });
12988
13081
  } finally {
12989
- _optionalChain([socket, 'optionalAccess', _357 => _357.off, 'call', _358 => _358("assistant:status", handler)]);
13082
+ _optionalChain([socket, 'optionalAccess', _363 => _363.off, 'call', _364 => _364("assistant:status", handler)]);
12990
13083
  setSending(false);
12991
13084
  setStatus(void 0);
12992
13085
  }
@@ -13036,7 +13129,7 @@ function AssistantProvider({ children, dehydratedAssistant, dehydratedMessages }
13036
13129
  await _chunkXAWKRNYMjs.AssistantService.delete({ id });
13037
13130
  setThreads((prev) => prev.filter((t2) => t2.id !== id));
13038
13131
  setAssistant((prev) => {
13039
- if (_optionalChain([prev, 'optionalAccess', _359 => _359.id]) === id) {
13132
+ if (_optionalChain([prev, 'optionalAccess', _365 => _365.id]) === id) {
13040
13133
  setMessages([]);
13041
13134
  return void 0;
13042
13135
  }
@@ -13251,7 +13344,7 @@ function EditableAvatar({
13251
13344
  }, [image, isUploading, patchImage, t]);
13252
13345
  const handleFileInputChange = _react.useCallback.call(void 0,
13253
13346
  (e) => {
13254
- const file = _optionalChain([e, 'access', _360 => _360.target, 'access', _361 => _361.files, 'optionalAccess', _362 => _362[0]]);
13347
+ const file = _optionalChain([e, 'access', _366 => _366.target, 'access', _367 => _367.files, 'optionalAccess', _368 => _368[0]]);
13255
13348
  if (file) handleFile(file);
13256
13349
  e.target.value = "";
13257
13350
  },
@@ -13260,7 +13353,7 @@ function EditableAvatar({
13260
13353
  const handleDrop = _react.useCallback.call(void 0,
13261
13354
  (e) => {
13262
13355
  e.preventDefault();
13263
- const file = _optionalChain([e, 'access', _363 => _363.dataTransfer, 'access', _364 => _364.files, 'optionalAccess', _365 => _365[0]]);
13356
+ const file = _optionalChain([e, 'access', _369 => _369.dataTransfer, 'access', _370 => _370.files, 'optionalAccess', _371 => _371[0]]);
13264
13357
  if (file && file.type.startsWith("image/")) {
13265
13358
  handleFile(file);
13266
13359
  }
@@ -13287,7 +13380,7 @@ function EditableAvatar({
13287
13380
  "button",
13288
13381
  {
13289
13382
  type: "button",
13290
- onClick: () => _optionalChain([fileInputRef, 'access', _366 => _366.current, 'optionalAccess', _367 => _367.click, 'call', _368 => _368()]),
13383
+ onClick: () => _optionalChain([fileInputRef, 'access', _372 => _372.current, 'optionalAccess', _373 => _373.click, 'call', _374 => _374()]),
13291
13384
  disabled: isUploading,
13292
13385
  className: "rounded-full p-2 text-white hover:bg-white/20 disabled:opacity-50",
13293
13386
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PencilIcon, { className: "h-4 w-4" })
@@ -13368,7 +13461,7 @@ function BreadcrumbMobile({
13368
13461
  }
13369
13462
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenu, { open, onOpenChange: setOpen, children: [
13370
13463
  /* @__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', _369 => _369.name]),
13464
+ _optionalChain([lastItem, 'optionalAccess', _375 => _375.name]),
13372
13465
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "text-muted-foreground size-3.5" })
13373
13466
  ] }),
13374
13467
  /* @__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 +13765,7 @@ function RoundPageContainer({
13672
13765
  const [mounted, setMounted] = _react.useState.call(void 0, false);
13673
13766
  _react.useEffect.call(void 0, () => {
13674
13767
  const match = document.cookie.split("; ").find((row) => row.startsWith(`${DETAILS_COOKIE_NAME}=`));
13675
- if (_optionalChain([match, 'optionalAccess', _370 => _370.split, 'call', _371 => _371("="), 'access', _372 => _372[1]]) === "true") setShowDetailsState(true);
13768
+ if (_optionalChain([match, 'optionalAccess', _376 => _376.split, 'call', _377 => _377("="), 'access', _378 => _378[1]]) === "true") setShowDetailsState(true);
13676
13769
  }, []);
13677
13770
  _react.useEffect.call(void 0, () => {
13678
13771
  setMounted(true);
@@ -13684,11 +13777,11 @@ function RoundPageContainer({
13684
13777
  const searchParams = _navigation.useSearchParams.call(void 0, );
13685
13778
  const section = searchParams.get("section");
13686
13779
  const rewriteUrl = useUrlRewriter();
13687
- const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _373 => _373.key, 'optionalAccess', _374 => _374.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _375 => _375[0], 'access', _376 => _376.key, 'optionalAccess', _377 => _377.name]), () => ( tabs[0].label))) : void 0;
13780
+ const initialValue = tabs ? (section && tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _379 => _379.key, 'optionalAccess', _380 => _380.name]), () => ( i.label))) === section) ? section : null) || (_nullishCoalesce(_optionalChain([tabs, 'access', _381 => _381[0], 'access', _382 => _382.key, 'optionalAccess', _383 => _383.name]), () => ( tabs[0].label))) : void 0;
13688
13781
  const [activeTab, setActiveTab] = _react.useState.call(void 0, initialValue);
13689
13782
  _react.useEffect.call(void 0, () => {
13690
13783
  if (tabs && section) {
13691
- const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _378 => _378.key, 'optionalAccess', _379 => _379.name]), () => ( i.label))) === section);
13784
+ const tab = tabs.find((i) => (_nullishCoalesce(_optionalChain([i, 'access', _384 => _384.key, 'optionalAccess', _385 => _385.name]), () => ( i.label))) === section);
13692
13785
  if (tab) {
13693
13786
  setActiveTab(section);
13694
13787
  }
@@ -13701,7 +13794,7 @@ function RoundPageContainer({
13701
13794
  },
13702
13795
  [module, id, rewriteUrl]
13703
13796
  );
13704
- const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _380 => _380.find, 'call', _381 => _381((t) => (_nullishCoalesce(_optionalChain([t, 'access', _382 => _382.key, 'optionalAccess', _383 => _383.name]), () => ( t.label))) === activeTab), 'optionalAccess', _384 => _384.fillHeight]) === true;
13797
+ const activeFillHeight = _optionalChain([tabs, 'optionalAccess', _386 => _386.find, 'call', _387 => _387((t) => (_nullishCoalesce(_optionalChain([t, 'access', _388 => _388.key, 'optionalAccess', _389 => _389.name]), () => ( t.label))) === activeTab), 'optionalAccess', _390 => _390.fillHeight]) === true;
13705
13798
  const isReady = mounted && isMobile !== void 0;
13706
13799
  if (!isReady) {
13707
13800
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -13757,10 +13850,10 @@ function RoundPageContainer({
13757
13850
  },
13758
13851
  children: [
13759
13852
  /* @__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', _385 => _385.key, 'optionalAccess', _386 => _386.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
13853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectItem, { value: _nullishCoalesce(_optionalChain([tab, 'access', _391 => _391.key, 'optionalAccess', _392 => _392.name]), () => ( tab.label)), children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) })
13761
13854
  ]
13762
13855
  }
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', _387 => _387.key, 'optionalAccess', _388 => _388.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
13856
+ ) }) : /* @__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', _393 => _393.key, 'optionalAccess', _394 => _394.name]), () => ( tab.label)), className: "px-4", children: _nullishCoalesce(tab.contentLabel, () => ( tab.label)) }, tab.label)) }) }),
13764
13857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13765
13858
  "div",
13766
13859
  {
@@ -13772,7 +13865,7 @@ function RoundPageContainer({
13772
13865
  children: tabs.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13773
13866
  TabsContent,
13774
13867
  {
13775
- value: _nullishCoalesce(_optionalChain([tab, 'access', _389 => _389.key, 'optionalAccess', _390 => _390.name]), () => ( tab.label)),
13868
+ value: _nullishCoalesce(_optionalChain([tab, 'access', _395 => _395.key, 'optionalAccess', _396 => _396.name]), () => ( tab.label)),
13776
13869
  className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
13777
13870
  children: tab.content
13778
13871
  },
@@ -13900,14 +13993,14 @@ function BlockNoteEditorMentionHoverCard({
13900
13993
  const entityType = target.dataset.mentionType;
13901
13994
  const alias = target.dataset.mentionAlias;
13902
13995
  setHovered((prev) => {
13903
- if (_optionalChain([prev, 'optionalAccess', _391 => _391.id]) === id && _optionalChain([prev, 'optionalAccess', _392 => _392.element]) === target) return prev;
13996
+ if (_optionalChain([prev, 'optionalAccess', _397 => _397.id]) === id && _optionalChain([prev, 'optionalAccess', _398 => _398.element]) === target) return prev;
13904
13997
  return { id, entityType, alias, element: target };
13905
13998
  });
13906
13999
  }, "handleMouseOver");
13907
14000
  const handleMouseOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
13908
14001
  const target = e.target.closest("[data-mention-id]");
13909
14002
  if (!target) return;
13910
- const related = _optionalChain([e, 'access', _393 => _393.relatedTarget, 'optionalAccess', _394 => _394.closest, 'call', _395 => _395("[data-mention-id]")]);
14003
+ const related = _optionalChain([e, 'access', _399 => _399.relatedTarget, 'optionalAccess', _400 => _400.closest, 'call', _401 => _401("[data-mention-id]")]);
13911
14004
  if (related) return;
13912
14005
  scheduleClose();
13913
14006
  }, "handleMouseOut");
@@ -13921,7 +14014,7 @@ function BlockNoteEditorMentionHoverCard({
13921
14014
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
13922
14015
  if (!hovered || !mentionResolveFn) return null;
13923
14016
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
13924
- if (!_optionalChain([resolved, 'optionalAccess', _396 => _396.HoverContent])) return null;
14017
+ if (!_optionalChain([resolved, 'optionalAccess', _402 => _402.HoverContent])) return null;
13925
14018
  const ContentComponent = resolved.HoverContent;
13926
14019
  const rect = hovered.element.getBoundingClientRect();
13927
14020
  return _reactdom.createPortal.call(void 0,
@@ -13957,21 +14050,21 @@ var mentionDataAttrs = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (p)
13957
14050
  }), "mentionDataAttrs");
13958
14051
  var createMentionInlineContentSpec = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (resolveFn, disableMention, nameResolver) => {
13959
14052
  const Mention = React.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function Mention2(props) {
13960
- const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _397 => _397(props.id, props.entityType, props.alias)]), () => ( props.alias));
14053
+ const displayName = _nullishCoalesce(_optionalChain([nameResolver, 'optionalCall', _403 => _403(props.id, props.entityType, props.alias)]), () => ( props.alias));
13961
14054
  if (disableMention) {
13962
- const resolved2 = _optionalChain([resolveFn, 'optionalCall', _398 => _398(props.id, props.entityType, displayName)]);
13963
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _399 => _399.url]), () => ( "#")), className: "text-primary", children: [
14055
+ const resolved2 = _optionalChain([resolveFn, 'optionalCall', _404 => _404(props.id, props.entityType, displayName)]);
14056
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _link2.default, { href: _nullishCoalesce(_optionalChain([resolved2, 'optionalAccess', _405 => _405.url]), () => ( "#")), className: "text-primary", children: [
13964
14057
  "@",
13965
14058
  displayName
13966
14059
  ] });
13967
14060
  }
13968
- const resolved = _optionalChain([resolveFn, 'optionalCall', _400 => _400(props.id, props.entityType, displayName)]);
13969
- if (_optionalChain([resolved, 'optionalAccess', _401 => _401.Inline])) {
14061
+ const resolved = _optionalChain([resolveFn, 'optionalCall', _406 => _406(props.id, props.entityType, displayName)]);
14062
+ if (_optionalChain([resolved, 'optionalAccess', _407 => _407.Inline])) {
13970
14063
  const Custom = resolved.Inline;
13971
14064
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Custom, { ...props, alias: displayName });
13972
14065
  }
13973
- const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _402 => _402.url]), () => ( "#"));
13974
- const handleClick = _optionalChain([resolved, 'optionalAccess', _403 => _403.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
14066
+ const href = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _408 => _408.url]), () => ( "#"));
14067
+ const handleClick = _optionalChain([resolved, 'optionalAccess', _409 => _409.onActivate]) ? (e) => resolved.onActivate(e, props) : void 0;
13975
14068
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
13976
14069
  _link2.default,
13977
14070
  {
@@ -14068,7 +14161,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14068
14161
  if (!suggestionMenuComponent) return void 0;
14069
14162
  const Component2 = suggestionMenuComponent;
14070
14163
  const Wrapped = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (props) => {
14071
- const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _404 => _404.items, 'access', _405 => _405[0], 'optionalAccess', _406 => _406.title]) === KEEP_OPEN_SENTINEL_TITLE;
14164
+ const isSentinelOnly = props.items.length === 1 && _optionalChain([props, 'access', _410 => _410.items, 'access', _411 => _411[0], 'optionalAccess', _412 => _412.title]) === KEEP_OPEN_SENTINEL_TITLE;
14072
14165
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14073
14166
  Component2,
14074
14167
  {
@@ -14077,7 +14170,7 @@ function BlockNoteEditorMentionSuggestionMenu({
14077
14170
  selectedIndex: isSentinelOnly ? void 0 : props.selectedIndex,
14078
14171
  onItemClick: (item) => {
14079
14172
  if (item.title === KEEP_OPEN_SENTINEL_TITLE) return;
14080
- _optionalChain([props, 'access', _407 => _407.onItemClick, 'optionalCall', _408 => _408(item)]);
14173
+ _optionalChain([props, 'access', _413 => _413.onItemClick, 'optionalCall', _414 => _414(item)]);
14081
14174
  }
14082
14175
  }
14083
14176
  );
@@ -14262,10 +14355,10 @@ var cellId = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (params) => {
14262
14355
  cell: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ row }) => params.toggleId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14263
14356
  Checkbox,
14264
14357
  {
14265
- checked: _optionalChain([params, 'access', _409 => _409.checkedIds, 'optionalAccess', _410 => _410.includes, 'call', _411 => _411(row.getValue(params.name))]) || false,
14358
+ checked: _optionalChain([params, 'access', _415 => _415.checkedIds, 'optionalAccess', _416 => _416.includes, 'call', _417 => _417(row.getValue(params.name))]) || false,
14266
14359
  onCheckedChange: (value) => {
14267
14360
  row.toggleSelected(!!value);
14268
- _optionalChain([params, 'access', _412 => _412.toggleId, 'optionalCall', _413 => _413(row.getValue(params.name))]);
14361
+ _optionalChain([params, 'access', _418 => _418.toggleId, 'optionalCall', _419 => _419(row.getValue(params.name))]);
14269
14362
  },
14270
14363
  "aria-label": "Select row"
14271
14364
  }
@@ -14324,7 +14417,7 @@ function useJsonApiGet(params) {
14324
14417
  const [response, setResponse] = _react.useState.call(void 0, null);
14325
14418
  const isMounted = _react.useRef.call(void 0, true);
14326
14419
  const fetchData = _react.useCallback.call(void 0, async () => {
14327
- if (_optionalChain([params, 'access', _414 => _414.options, 'optionalAccess', _415 => _415.enabled]) === false) return;
14420
+ if (_optionalChain([params, 'access', _420 => _420.options, 'optionalAccess', _421 => _421.enabled]) === false) return;
14328
14421
  setLoading(true);
14329
14422
  setError(null);
14330
14423
  try {
@@ -14351,9 +14444,9 @@ function useJsonApiGet(params) {
14351
14444
  setLoading(false);
14352
14445
  }
14353
14446
  }
14354
- }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _416 => _416.options, 'optionalAccess', _417 => _417.enabled])]);
14447
+ }, [params.classKey, params.endpoint, params.companyId, _optionalChain([params, 'access', _422 => _422.options, 'optionalAccess', _423 => _423.enabled])]);
14355
14448
  const fetchNextPage = _react.useCallback.call(void 0, async () => {
14356
- if (!_optionalChain([response, 'optionalAccess', _418 => _418.nextPage])) return;
14449
+ if (!_optionalChain([response, 'optionalAccess', _424 => _424.nextPage])) return;
14357
14450
  setLoading(true);
14358
14451
  try {
14359
14452
  const nextResponse = await response.nextPage();
@@ -14374,7 +14467,7 @@ function useJsonApiGet(params) {
14374
14467
  }
14375
14468
  }, [response]);
14376
14469
  const fetchPreviousPage = _react.useCallback.call(void 0, async () => {
14377
- if (!_optionalChain([response, 'optionalAccess', _419 => _419.prevPage])) return;
14470
+ if (!_optionalChain([response, 'optionalAccess', _425 => _425.prevPage])) return;
14378
14471
  setLoading(true);
14379
14472
  try {
14380
14473
  const prevResponse = await response.prevPage();
@@ -14400,15 +14493,15 @@ function useJsonApiGet(params) {
14400
14493
  return () => {
14401
14494
  isMounted.current = false;
14402
14495
  };
14403
- }, [fetchData, ..._optionalChain([params, 'access', _420 => _420.options, 'optionalAccess', _421 => _421.deps]) || []]);
14496
+ }, [fetchData, ..._optionalChain([params, 'access', _426 => _426.options, 'optionalAccess', _427 => _427.deps]) || []]);
14404
14497
  return {
14405
14498
  data,
14406
14499
  loading,
14407
14500
  error,
14408
14501
  response,
14409
14502
  refetch: fetchData,
14410
- hasNextPage: !!_optionalChain([response, 'optionalAccess', _422 => _422.next]),
14411
- hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _423 => _423.prev]),
14503
+ hasNextPage: !!_optionalChain([response, 'optionalAccess', _428 => _428.next]),
14504
+ hasPreviousPage: !!_optionalChain([response, 'optionalAccess', _429 => _429.prev]),
14412
14505
  fetchNextPage,
14413
14506
  fetchPreviousPage
14414
14507
  };
@@ -14486,17 +14579,17 @@ function useJsonApiMutation(config) {
14486
14579
  if (apiResponse.ok) {
14487
14580
  const resultData = apiResponse.data;
14488
14581
  setData(resultData);
14489
- _optionalChain([config, 'access', _424 => _424.onSuccess, 'optionalCall', _425 => _425(resultData)]);
14582
+ _optionalChain([config, 'access', _430 => _430.onSuccess, 'optionalCall', _431 => _431(resultData)]);
14490
14583
  return resultData;
14491
14584
  } else {
14492
14585
  setError(apiResponse.error);
14493
- _optionalChain([config, 'access', _426 => _426.onError, 'optionalCall', _427 => _427(apiResponse.error)]);
14586
+ _optionalChain([config, 'access', _432 => _432.onError, 'optionalCall', _433 => _433(apiResponse.error)]);
14494
14587
  return null;
14495
14588
  }
14496
14589
  } catch (err) {
14497
14590
  const errorMessage = err instanceof Error ? err.message : "Unknown error";
14498
14591
  setError(errorMessage);
14499
- _optionalChain([config, 'access', _428 => _428.onError, 'optionalCall', _429 => _429(errorMessage)]);
14592
+ _optionalChain([config, 'access', _434 => _434.onError, 'optionalCall', _435 => _435(errorMessage)]);
14500
14593
  return null;
14501
14594
  } finally {
14502
14595
  setLoading(false);
@@ -14569,7 +14662,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14569
14662
  {
14570
14663
  href: hasRole(_chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator) ? generateUrl({
14571
14664
  page: "/administration",
14572
- id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _430 => _430.Company, 'access', _431 => _431.pageUrl, 'optionalAccess', _432 => _432.substring, 'call', _433 => _433(1)]),
14665
+ id: _optionalChain([_chunkXAWKRNYMjs.Modules, 'access', _436 => _436.Company, 'access', _437 => _437.pageUrl, 'optionalAccess', _438 => _438.substring, 'call', _439 => _439(1)]),
14573
14666
  childPage: company.id
14574
14667
  }) : generateUrl({ page: _chunkXAWKRNYMjs.Modules.Company, id: company.id }),
14575
14668
  children: row.getValue("name")
@@ -14585,7 +14678,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14585
14678
  })
14586
14679
  };
14587
14680
  const columns = _react.useMemo.call(void 0, () => {
14588
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _434 => _434[field], 'optionalCall', _435 => _435()])).filter((col) => col !== void 0);
14681
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _440 => _440[field], 'optionalCall', _441 => _441()])).filter((col) => col !== void 0);
14589
14682
  }, [params.fields, fieldColumnMap, t, generateUrl, hasRole]);
14590
14683
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14591
14684
  }, "useCompanyTableStructure");
@@ -14597,7 +14690,7 @@ var GRACE_DAYS = 3;
14597
14690
  var isAdministrator = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (currentUser) => {
14598
14691
  if (!currentUser || !_chunkSE5HIHJSjs.isRolesConfigured.call(void 0, )) return false;
14599
14692
  const adminRoleId = _chunkSE5HIHJSjs.getRoleId.call(void 0, ).Administrator;
14600
- return !!_optionalChain([currentUser, 'access', _436 => _436.roles, 'optionalAccess', _437 => _437.some, 'call', _438 => _438((role) => role.id === adminRoleId)]);
14693
+ return !!_optionalChain([currentUser, 'access', _442 => _442.roles, 'optionalAccess', _443 => _443.some, 'call', _444 => _444((role) => role.id === adminRoleId)]);
14601
14694
  }, "isAdministrator");
14602
14695
  function useSubscriptionStatus() {
14603
14696
  const { company, currentUser } = useCurrentUserContext();
@@ -14714,7 +14807,7 @@ var useRoleTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
14714
14807
  })
14715
14808
  };
14716
14809
  const columns = _react.useMemo.call(void 0, () => {
14717
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _439 => _439[field], 'optionalCall', _440 => _440()])).filter((col) => col !== void 0);
14810
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _445 => _445[field], 'optionalCall', _446 => _446()])).filter((col) => col !== void 0);
14718
14811
  }, [params.fields, fieldColumnMap, t, generateUrl]);
14719
14812
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14720
14813
  }, "useRoleTableStructure");
@@ -14815,11 +14908,11 @@ var useContentTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
14815
14908
  return params.fields.map((field) => {
14816
14909
  const localHandler = fieldColumnMap[field];
14817
14910
  if (localHandler) return localHandler();
14818
- const customHandler = _optionalChain([params, 'access', _441 => _441.context, 'optionalAccess', _442 => _442.customCells, 'optionalAccess', _443 => _443[field]]);
14911
+ const customHandler = _optionalChain([params, 'access', _447 => _447.context, 'optionalAccess', _448 => _448.customCells, 'optionalAccess', _449 => _449[field]]);
14819
14912
  if (customHandler) return customHandler({ t });
14820
14913
  return void 0;
14821
14914
  }).filter((col) => col !== void 0);
14822
- }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _444 => _444.context, 'optionalAccess', _445 => _445.customCells])]);
14915
+ }, [params.fields, fieldColumnMap, t, generateUrl, _optionalChain([params, 'access', _450 => _450.context, 'optionalAccess', _451 => _451.customCells])]);
14823
14916
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
14824
14917
  }, "useContentTableStructure");
14825
14918
 
@@ -15154,7 +15247,7 @@ function ContentTableSearch({ data }) {
15154
15247
  const handleSearchIconClick = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
15155
15248
  if (!isExpanded) {
15156
15249
  setIsFocused(true);
15157
- setTimeout(() => _optionalChain([inputRef, 'access', _446 => _446.current, 'optionalAccess', _447 => _447.focus, 'call', _448 => _448()]), 50);
15250
+ setTimeout(() => _optionalChain([inputRef, 'access', _452 => _452.current, 'optionalAccess', _453 => _453.focus, 'call', _454 => _454()]), 50);
15158
15251
  }
15159
15252
  }, "handleSearchIconClick");
15160
15253
  const handleBlur = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, () => {
@@ -15231,7 +15324,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15231
15324
  props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
15232
15325
  );
15233
15326
  const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
15234
- data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _449 => _449.data]), () => ( EMPTY_ARRAY)),
15327
+ data: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _455 => _455.data]), () => ( EMPTY_ARRAY)),
15235
15328
  fields,
15236
15329
  checkedIds,
15237
15330
  toggleId,
@@ -15264,7 +15357,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15264
15357
  });
15265
15358
  const rowModel = tableData ? table.getRowModel() : null;
15266
15359
  const groupedRows = _react.useMemo.call(void 0, () => {
15267
- if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _450 => _450.rows, 'optionalAccess', _451 => _451.length])) return null;
15360
+ if (!props.groupBy || !_optionalChain([rowModel, 'optionalAccess', _456 => _456.rows, 'optionalAccess', _457 => _457.length])) return null;
15268
15361
  const groupMap = /* @__PURE__ */ new Map();
15269
15362
  for (const row of rowModel.rows) {
15270
15363
  const keys = getGroupKeys(row.original, props.groupBy);
@@ -15320,10 +15413,10 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15320
15413
  ) }),
15321
15414
  table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: headerGroup.headers.map((header) => {
15322
15415
  const meta = header.column.columnDef.meta;
15323
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _452 => _452.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
15416
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableHead, { className: _optionalChain([meta, 'optionalAccess', _458 => _458.className]), children: header.isPlaceholder ? null : _reacttable.flexRender.call(void 0, header.column.columnDef.header, header.getContext()) }, header.id);
15324
15417
  }) }, headerGroup.id))
15325
15418
  ] }),
15326
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _453 => _453.rows, 'optionalAccess', _454 => _454.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
15419
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: rowModel && _optionalChain([rowModel, 'access', _459 => _459.rows, 'optionalAccess', _460 => _460.length]) ? groupedRows ? groupedRows.map((group) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React.default.Fragment, { children: [
15327
15420
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15328
15421
  TableCell,
15329
15422
  {
@@ -15334,11 +15427,11 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15334
15427
  ) }),
15335
15428
  group.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15336
15429
  const meta = cell.column.columnDef.meta;
15337
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _455 => _455.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15430
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _461 => _461.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15338
15431
  }) }, row.id))
15339
15432
  ] }, group.groupKey)) : rowModel.rows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableRow, { children: row.getVisibleCells().map((cell) => {
15340
15433
  const meta = cell.column.columnDef.meta;
15341
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _456 => _456.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15434
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { className: _optionalChain([meta, 'optionalAccess', _462 => _462.className]), children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) }, cell.id);
15342
15435
  }) }, 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
15436
  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
15437
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15348,7 +15441,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15348
15441
  size: "sm",
15349
15442
  onClick: (e) => {
15350
15443
  e.preventDefault();
15351
- _optionalChain([data, 'access', _457 => _457.previous, 'optionalCall', _458 => _458(true)]);
15444
+ _optionalChain([data, 'access', _463 => _463.previous, 'optionalCall', _464 => _464(true)]);
15352
15445
  },
15353
15446
  disabled: !data.previous,
15354
15447
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
@@ -15362,7 +15455,7 @@ var ContentListTable = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs
15362
15455
  size: "sm",
15363
15456
  onClick: (e) => {
15364
15457
  e.preventDefault();
15365
- _optionalChain([data, 'access', _459 => _459.next, 'optionalCall', _460 => _460(true)]);
15458
+ _optionalChain([data, 'access', _465 => _465.next, 'optionalCall', _466 => _466(true)]);
15366
15459
  },
15367
15460
  disabled: !data.next,
15368
15461
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" })
@@ -15383,7 +15476,7 @@ function ContentListGrid(props) {
15383
15476
  if (!data.next || !sentinelRef.current) return;
15384
15477
  const observer = new IntersectionObserver(
15385
15478
  (entries) => {
15386
- if (_optionalChain([entries, 'access', _461 => _461[0], 'optionalAccess', _462 => _462.isIntersecting])) _optionalChain([data, 'access', _463 => _463.next, 'optionalCall', _464 => _464()]);
15479
+ if (_optionalChain([entries, 'access', _467 => _467[0], 'optionalAccess', _468 => _468.isIntersecting])) _optionalChain([data, 'access', _469 => _469.next, 'optionalCall', _470 => _470()]);
15387
15480
  },
15388
15481
  { threshold: 0.1, rootMargin: "200px" }
15389
15482
  );
@@ -16133,7 +16226,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16133
16226
  newDigits[index] = digit;
16134
16227
  setDigits(newDigits);
16135
16228
  if (digit && index < 5) {
16136
- _optionalChain([inputRefs, 'access', _465 => _465.current, 'access', _466 => _466[index + 1], 'optionalAccess', _467 => _467.focus, 'call', _468 => _468()]);
16229
+ _optionalChain([inputRefs, 'access', _471 => _471.current, 'access', _472 => _472[index + 1], 'optionalAccess', _473 => _473.focus, 'call', _474 => _474()]);
16137
16230
  }
16138
16231
  const code = newDigits.join("");
16139
16232
  if (code.length === 6 && newDigits.every((d) => d !== "")) {
@@ -16142,7 +16235,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16142
16235
  }, "handleChange");
16143
16236
  const handleKeyDown = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (index, e) => {
16144
16237
  if (e.key === "Backspace" && !digits[index] && index > 0) {
16145
- _optionalChain([inputRefs, 'access', _469 => _469.current, 'access', _470 => _470[index - 1], 'optionalAccess', _471 => _471.focus, 'call', _472 => _472()]);
16238
+ _optionalChain([inputRefs, 'access', _475 => _475.current, 'access', _476 => _476[index - 1], 'optionalAccess', _477 => _477.focus, 'call', _478 => _478()]);
16146
16239
  }
16147
16240
  }, "handleKeyDown");
16148
16241
  const handlePaste = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (e) => {
@@ -16151,7 +16244,7 @@ function TotpInput({ onComplete, disabled = false, autoFocus = true, error }) {
16151
16244
  if (pastedData.length === 6) {
16152
16245
  const newDigits = pastedData.split("");
16153
16246
  setDigits(newDigits);
16154
- _optionalChain([inputRefs, 'access', _473 => _473.current, 'access', _474 => _474[5], 'optionalAccess', _475 => _475.focus, 'call', _476 => _476()]);
16247
+ _optionalChain([inputRefs, 'access', _479 => _479.current, 'access', _480 => _480[5], 'optionalAccess', _481 => _481.focus, 'call', _482 => _482()]);
16155
16248
  onComplete(pastedData);
16156
16249
  }
16157
16250
  }, "handlePaste");
@@ -16362,8 +16455,8 @@ function PasskeySetupDialog({ open, onOpenChange, onSuccess }) {
16362
16455
  try {
16363
16456
  const registrationData = await _chunkXAWKRNYMjs.TwoFactorService.getPasskeyRegistrationOptions({
16364
16457
  id: _uuid.v4.call(void 0, ),
16365
- userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _477 => _477.email]), () => ( "")),
16366
- userDisplayName: _optionalChain([currentUser, 'optionalAccess', _478 => _478.name])
16458
+ userName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _483 => _483.email]), () => ( "")),
16459
+ userDisplayName: _optionalChain([currentUser, 'optionalAccess', _484 => _484.name])
16367
16460
  });
16368
16461
  const credential = await _browser.startRegistration.call(void 0, { optionsJSON: registrationData.options });
16369
16462
  await _chunkXAWKRNYMjs.TwoFactorService.verifyPasskeyRegistration({
@@ -16514,7 +16607,7 @@ function TotpSetupDialog({ onSuccess, trigger }) {
16514
16607
  const setup = await _chunkXAWKRNYMjs.TwoFactorService.setupTotp({
16515
16608
  id: _uuid.v4.call(void 0, ),
16516
16609
  name: name.trim(),
16517
- accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _479 => _479.email]), () => ( ""))
16610
+ accountName: _nullishCoalesce(_optionalChain([currentUser, 'optionalAccess', _485 => _485.email]), () => ( ""))
16518
16611
  });
16519
16612
  setQrCodeUri(setup.qrCodeUri);
16520
16613
  setAuthenticatorId(setup.authenticatorId);
@@ -16648,7 +16741,7 @@ function TwoFactorSettings() {
16648
16741
  if (isLoading) {
16649
16742
  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
16743
  }
16651
- const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _480 => _480.isEnabled]), () => ( false));
16744
+ const isEnabled = _nullishCoalesce(_optionalChain([status, 'optionalAccess', _486 => _486.isEnabled]), () => ( false));
16652
16745
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Card, { children: [
16653
16746
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
16654
16747
  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 +16779,7 @@ function TwoFactorSettings() {
16686
16779
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium", children: t("auth.two_factor.backup_codes") }),
16687
16780
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-muted-foreground", children: t("auth.two_factor.backup_codes_description") })
16688
16781
  ] }),
16689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _481 => _481.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16782
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BackupCodesDialog, { remainingCodes: _nullishCoalesce(_optionalChain([status, 'optionalAccess', _487 => _487.backupCodesCount]), () => ( 0)), onRegenerate: handleRefresh })
16690
16783
  ] }) }),
16691
16784
  !isEnabled && (authenticators.length > 0 || passkeys.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
16692
16785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator, {}),
@@ -16864,9 +16957,9 @@ function AcceptInvitation() {
16864
16957
  });
16865
16958
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
16866
16959
  try {
16867
- if (!_optionalChain([params, 'optionalAccess', _482 => _482.code])) return;
16960
+ if (!_optionalChain([params, 'optionalAccess', _488 => _488.code])) return;
16868
16961
  const payload = {
16869
- code: _optionalChain([params, 'optionalAccess', _483 => _483.code]),
16962
+ code: _optionalChain([params, 'optionalAccess', _489 => _489.code]),
16870
16963
  password: values.password
16871
16964
  };
16872
16965
  await _chunkXAWKRNYMjs.AuthService.acceptInvitation(payload);
@@ -17216,7 +17309,7 @@ function Logout({ storageKeys }) {
17216
17309
  const generateUrl = usePageUrlGenerator();
17217
17310
  _react.useEffect.call(void 0, () => {
17218
17311
  const logOut = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
17219
- if (_optionalChain([storageKeys, 'optionalAccess', _484 => _484.length])) {
17312
+ if (_optionalChain([storageKeys, 'optionalAccess', _490 => _490.length])) {
17220
17313
  clearClientStorage(storageKeys);
17221
17314
  }
17222
17315
  await _chunkXAWKRNYMjs.AuthService.logout();
@@ -17239,14 +17332,14 @@ function RefreshUser() {
17239
17332
  setUser(fullUser);
17240
17333
  const token = {
17241
17334
  userId: fullUser.id,
17242
- companyId: _optionalChain([fullUser, 'access', _485 => _485.company, 'optionalAccess', _486 => _486.id]),
17335
+ companyId: _optionalChain([fullUser, 'access', _491 => _491.company, 'optionalAccess', _492 => _492.id]),
17243
17336
  roles: fullUser.roles.map((role) => role.id),
17244
- features: _nullishCoalesce(_optionalChain([fullUser, 'access', _487 => _487.company, 'optionalAccess', _488 => _488.features, 'optionalAccess', _489 => _489.map, 'call', _490 => _490((feature) => feature.id)]), () => ( [])),
17337
+ features: _nullishCoalesce(_optionalChain([fullUser, 'access', _493 => _493.company, 'optionalAccess', _494 => _494.features, 'optionalAccess', _495 => _495.map, 'call', _496 => _496((feature) => feature.id)]), () => ( [])),
17245
17338
  modules: fullUser.modules.map((module) => {
17246
17339
  return { id: module.id, permissions: module.permissions };
17247
17340
  })
17248
17341
  };
17249
- await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _491 => _491.updateToken, 'call', _492 => _492(token)]);
17342
+ await _optionalChain([_chunkXAWKRNYMjs.getTokenHandler.call(void 0, ), 'optionalAccess', _497 => _497.updateToken, 'call', _498 => _498(token)]);
17250
17343
  _cookiesnext.deleteCookie.call(void 0, "reloadData");
17251
17344
  }
17252
17345
  }, "loadFullUser");
@@ -17310,9 +17403,9 @@ function ResetPassword() {
17310
17403
  });
17311
17404
  const onSubmit = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async (values) => {
17312
17405
  try {
17313
- if (!_optionalChain([params, 'optionalAccess', _493 => _493.code])) return;
17406
+ if (!_optionalChain([params, 'optionalAccess', _499 => _499.code])) return;
17314
17407
  const payload = {
17315
- code: _optionalChain([params, 'optionalAccess', _494 => _494.code]),
17408
+ code: _optionalChain([params, 'optionalAccess', _500 => _500.code]),
17316
17409
  password: values.password
17317
17410
  };
17318
17411
  await _chunkXAWKRNYMjs.AuthService.resetPassword(payload);
@@ -17661,7 +17754,7 @@ function extractHeadings(blocks) {
17661
17754
  function processBlocks(blockArray) {
17662
17755
  for (const block of blockArray) {
17663
17756
  if (block.type === "heading") {
17664
- const level = _optionalChain([block, 'access', _495 => _495.props, 'optionalAccess', _496 => _496.level]) || 1;
17757
+ const level = _optionalChain([block, 'access', _501 => _501.props, 'optionalAccess', _502 => _502.level]) || 1;
17665
17758
  const text = extractTextFromContent(block.content);
17666
17759
  if (text.trim()) {
17667
17760
  headings.push({
@@ -18004,7 +18097,7 @@ var useHowToTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0
18004
18097
  })
18005
18098
  };
18006
18099
  const columns = _react.useMemo.call(void 0, () => {
18007
- return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _497 => _497[field], 'optionalCall', _498 => _498()])).filter((col) => col !== void 0);
18100
+ return params.fields.map((field) => _optionalChain([fieldColumnMap, 'access', _503 => _503[field], 'optionalCall', _504 => _504()])).filter((col) => col !== void 0);
18008
18101
  }, [params.fields, fieldColumnMap, t, generateUrl]);
18009
18102
  return _react.useMemo.call(void 0, () => ({ data: tableData, columns }), [tableData, columns]);
18010
18103
  }, "useHowToTableStructure");
@@ -18070,7 +18163,7 @@ function HowToMultiSelector({
18070
18163
  retriever: (params) => _chunkXAWKRNYMjs.HowToService.findMany(params),
18071
18164
  module: _chunkXAWKRNYMjs.Modules.HowTo,
18072
18165
  getLabel: (howTo) => howTo.name,
18073
- excludeId: _optionalChain([currentHowTo, 'optionalAccess', _499 => _499.id]),
18166
+ excludeId: _optionalChain([currentHowTo, 'optionalAccess', _505 => _505.id]),
18074
18167
  onChange
18075
18168
  }
18076
18169
  );
@@ -18135,7 +18228,7 @@ function HowToSelector({
18135
18228
  }, "setHowTo");
18136
18229
  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
18230
  /* @__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', _500 => _500.value, 'optionalAccess', _501 => _501.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 }) }))) }) }) }),
18231
+ /* @__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', _506 => _506.value, 'optionalAccess', _507 => _507.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
18232
  field.value && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18140
18233
  _lucidereact.CircleX,
18141
18234
  {
@@ -18490,9 +18583,9 @@ function CitationsTab({ citations, sources }) {
18490
18583
  ] }) }),
18491
18584
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableBody, { children: sorted.map((chunk) => {
18492
18585
  const isOpen = expanded.has(chunk.id);
18493
- const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _502 => _502.get, 'call', _503 => _503(chunk.nodeId)]) : void 0;
18586
+ const resolved = chunk.nodeId ? _optionalChain([sources, 'optionalAccess', _508 => _508.get, 'call', _509 => _509(chunk.nodeId)]) : void 0;
18494
18587
  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', _504 => _504.name]), () => ( fallbackName));
18588
+ const sourceName = _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _510 => _510.name]), () => ( fallbackName));
18496
18589
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
18497
18590
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TableRow, { children: [
18498
18591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TableCell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -18539,7 +18632,7 @@ function ContentsTab({ citations, sources }) {
18539
18632
  for (const c of citations) {
18540
18633
  const id = c.nodeId;
18541
18634
  if (!id) continue;
18542
- const source = _optionalChain([sources, 'optionalAccess', _505 => _505.get, 'call', _506 => _506(id)]);
18635
+ const source = _optionalChain([sources, 'optionalAccess', _511 => _511.get, 'call', _512 => _512(id)]);
18543
18636
  if (!source) continue;
18544
18637
  const existing = map.get(id);
18545
18638
  if (existing) {
@@ -18604,7 +18697,7 @@ function UsersTab({ users, citations, sources }) {
18604
18697
  const generate = usePageUrlGenerator();
18605
18698
  const userMap = /* @__PURE__ */ new Map();
18606
18699
  for (const u of users) {
18607
- if (!_optionalChain([u, 'optionalAccess', _507 => _507.id])) continue;
18700
+ if (!_optionalChain([u, 'optionalAccess', _513 => _513.id])) continue;
18608
18701
  userMap.set(u.id, { user: u, contentCount: 0, citationCount: 0 });
18609
18702
  }
18610
18703
  if (citations && sources) {
@@ -18708,7 +18801,7 @@ function MessageSourcesPanel({ message, isLatestAssistant, onSelectFollowUp, sou
18708
18801
  }
18709
18802
  return ids.size;
18710
18803
  }, [message.citations, sources]);
18711
- const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _508 => _508.length]), () => ( 0));
18804
+ const usersCount = _nullishCoalesce(_optionalChain([users, 'optionalAccess', _514 => _514.length]), () => ( 0));
18712
18805
  const total = refsCount + citationsCount + contentsCount + usersCount + suggestionsCount;
18713
18806
  const visibleTabs = [];
18714
18807
  if (suggestionsCount > 0) visibleTabs.push("suggested");
@@ -18767,8 +18860,8 @@ var SourcesFetcher = class extends _chunkXAWKRNYMjs.ClientAbstractService {
18767
18860
  static async findManyByIds(params) {
18768
18861
  const endpoint = new (0, _chunkXAWKRNYMjs.EndpointCreator)({ endpoint: params.module });
18769
18862
  endpoint.addAdditionalParam(params.idsParam, params.ids.join(","));
18770
- if (_optionalChain([params, 'access', _509 => _509.module, 'access', _510 => _510.inclusions, 'optionalAccess', _511 => _511.lists, 'optionalAccess', _512 => _512.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18771
- if (_optionalChain([params, 'access', _513 => _513.module, 'access', _514 => _514.inclusions, 'optionalAccess', _515 => _515.lists, 'optionalAccess', _516 => _516.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18863
+ if (_optionalChain([params, 'access', _515 => _515.module, 'access', _516 => _516.inclusions, 'optionalAccess', _517 => _517.lists, 'optionalAccess', _518 => _518.fields])) endpoint.limitToFields(params.module.inclusions.lists.fields);
18864
+ if (_optionalChain([params, 'access', _519 => _519.module, 'access', _520 => _520.inclusions, 'optionalAccess', _521 => _521.lists, 'optionalAccess', _522 => _522.types])) endpoint.limitToType(params.module.inclusions.lists.types);
18772
18865
  return this.callApi({
18773
18866
  type: params.module,
18774
18867
  method: "GET" /* GET */,
@@ -18847,7 +18940,7 @@ function MessageSourcesContainer({ message, isLatestAssistant, onSelectFollowUp
18847
18940
  return void 0;
18848
18941
  }
18849
18942
  })()));
18850
- if (_optionalChain([author, 'optionalAccess', _517 => _517.id])) userMap.set(author.id, author);
18943
+ if (_optionalChain([author, 'optionalAccess', _523 => _523.id])) userMap.set(author.id, author);
18851
18944
  }
18852
18945
  return Array.from(userMap.values());
18853
18946
  }, [resolved]);
@@ -18869,14 +18962,14 @@ _chunk7QVYU63Ejs.__name.call(void 0, MessageSourcesContainer, "MessageSourcesCon
18869
18962
  function MessageItem({ message, isLatestAssistant, onSelectFollowUp, failedMessageIds, onRetry }) {
18870
18963
  const t = _nextintl.useTranslations.call(void 0, );
18871
18964
  const isUser = message.role === "user";
18872
- const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _518 => _518.has, 'call', _519 => _519(message.id)]);
18965
+ const isFailed = isUser && !!_optionalChain([failedMessageIds, 'optionalAccess', _524 => _524.has, 'call', _525 => _525(message.id)]);
18873
18966
  if (isUser) {
18874
18967
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-end gap-1", children: [
18875
18968
  /* @__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
18969
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-destructive flex items-center gap-2 text-xs", children: [
18877
18970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertCircle, { className: "h-3.5 w-3.5" }),
18878
18971
  /* @__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', _520 => _520(message.id)]), children: t("features.assistant.retry") })
18972
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "underline", onClick: () => _optionalChain([onRetry, 'optionalCall', _526 => _526(message.id)]), children: t("features.assistant.retry") })
18880
18973
  ] })
18881
18974
  ] });
18882
18975
  }
@@ -18942,7 +19035,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AssistantStatusLine, "AssistantStatusLine")
18942
19035
  function AssistantThread({ messages, sending, status, onSelectFollowUp, failedMessageIds, onRetry }) {
18943
19036
  const endRef = _react.useRef.call(void 0, null);
18944
19037
  _react.useEffect.call(void 0, () => {
18945
- _optionalChain([endRef, 'access', _521 => _521.current, 'optionalAccess', _522 => _522.scrollIntoView, 'call', _523 => _523({ behavior: "smooth" })]);
19038
+ _optionalChain([endRef, 'access', _527 => _527.current, 'optionalAccess', _528 => _528.scrollIntoView, 'call', _529 => _529({ behavior: "smooth" })]);
18946
19039
  }, [messages.length, sending]);
18947
19040
  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
19041
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18970,7 +19063,7 @@ function AssistantContainer() {
18970
19063
  AssistantSidebar,
18971
19064
  {
18972
19065
  threads: ctx.threads,
18973
- activeId: _optionalChain([ctx, 'access', _524 => _524.assistant, 'optionalAccess', _525 => _525.id]),
19066
+ activeId: _optionalChain([ctx, 'access', _530 => _530.assistant, 'optionalAccess', _531 => _531.id]),
18974
19067
  onSelect: ctx.selectThread,
18975
19068
  onNew: ctx.startNew
18976
19069
  }
@@ -19063,14 +19156,14 @@ function NotificationsList({ archived }) {
19063
19156
  ] }),
19064
19157
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, { className: "h-8 w-20" })
19065
19158
  ] }) }) }, i)) }), "LoadingSkeleton");
19066
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _526 => _526.data, 'optionalAccess', _527 => _527.map, 'call', _528 => _528((notification) => {
19159
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: data.isLoaded ? _optionalChain([data, 'access', _532 => _532.data, 'optionalAccess', _533 => _533.map, 'call', _534 => _534((notification) => {
19067
19160
  const notificationData = generateNotificationData({ notification, generateUrl });
19068
19161
  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
19162
  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
19163
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
19071
19164
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm", children: t.rich(`notification.${notification.notificationType}.description`, {
19072
19165
  strong: /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (chunks) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: chunks }), "strong"),
19073
- actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _529 => _529.actor, 'optionalAccess', _530 => _530.name]), () => ( "")),
19166
+ actor: _nullishCoalesce(_optionalChain([notificationData, 'access', _535 => _535.actor, 'optionalAccess', _536 => _536.name]), () => ( "")),
19074
19167
  title: notificationData.title
19075
19168
  }) }),
19076
19169
  /* @__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 +19513,7 @@ var DEFAULT_TRANSLATIONS = {
19420
19513
  invalidEmail: "Please enter a valid email address"
19421
19514
  };
19422
19515
  async function copyToClipboard(text) {
19423
- if (_optionalChain([navigator, 'access', _531 => _531.clipboard, 'optionalAccess', _532 => _532.writeText])) {
19516
+ if (_optionalChain([navigator, 'access', _537 => _537.clipboard, 'optionalAccess', _538 => _538.writeText])) {
19424
19517
  try {
19425
19518
  await navigator.clipboard.writeText(text);
19426
19519
  return true;
@@ -19462,7 +19555,7 @@ function ReferralWidget({
19462
19555
  const linkInputRef = _react.useRef.call(void 0, null);
19463
19556
  const config = _chunkSE5HIHJSjs.getReferralConfig.call(void 0, );
19464
19557
  const baseUrl = config.referralUrlBase || (typeof window !== "undefined" ? window.location.origin : "");
19465
- const referralUrl = _optionalChain([stats, 'optionalAccess', _533 => _533.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19558
+ const referralUrl = _optionalChain([stats, 'optionalAccess', _539 => _539.referralCode]) ? `${baseUrl}${config.referralPath}?${config.urlParamName}=${stats.referralCode}` : "";
19466
19559
  if (!_chunkSE5HIHJSjs.isReferralEnabled.call(void 0, )) {
19467
19560
  return null;
19468
19561
  }
@@ -19472,7 +19565,7 @@ function ReferralWidget({
19472
19565
  if (success) {
19473
19566
  setCopied(true);
19474
19567
  _chunkXAWKRNYMjs.showToast.call(void 0, t.copiedMessage);
19475
- _optionalChain([onLinkCopied, 'optionalCall', _534 => _534()]);
19568
+ _optionalChain([onLinkCopied, 'optionalCall', _540 => _540()]);
19476
19569
  setTimeout(() => setCopied(false), 2e3);
19477
19570
  } else {
19478
19571
  _chunkXAWKRNYMjs.showError.call(void 0, t.copyError);
@@ -19486,12 +19579,12 @@ function ReferralWidget({
19486
19579
  try {
19487
19580
  await sendInvite(email);
19488
19581
  _chunkXAWKRNYMjs.showToast.call(void 0, t.inviteSent);
19489
- _optionalChain([onInviteSent, 'optionalCall', _535 => _535(email)]);
19582
+ _optionalChain([onInviteSent, 'optionalCall', _541 => _541(email)]);
19490
19583
  setEmail("");
19491
19584
  } catch (err) {
19492
19585
  const error2 = err instanceof Error ? err : new Error(t.inviteError);
19493
19586
  _chunkXAWKRNYMjs.showError.call(void 0, error2.message);
19494
- _optionalChain([onInviteError, 'optionalCall', _536 => _536(error2)]);
19587
+ _optionalChain([onInviteError, 'optionalCall', _542 => _542(error2)]);
19495
19588
  }
19496
19589
  }, [email, sendInvite, t.inviteSent, t.inviteError, t.invalidEmail, onInviteSent, onInviteError]);
19497
19590
  const handleEmailKeyDown = _react.useCallback.call(void 0,
@@ -20245,7 +20338,7 @@ function OAuthClientList({
20245
20338
  OAuthClientCard,
20246
20339
  {
20247
20340
  client,
20248
- onClick: () => _optionalChain([onClientClick, 'optionalCall', _537 => _537(client)]),
20341
+ onClick: () => _optionalChain([onClientClick, 'optionalCall', _543 => _543(client)]),
20249
20342
  onEdit: onEditClick ? () => onEditClick(client) : void 0,
20250
20343
  onDelete: onDeleteClick ? () => onDeleteClick(client) : void 0
20251
20344
  },
@@ -20261,11 +20354,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthClientList, "OAuthClientList");
20261
20354
  function OAuthClientForm({ client, onSubmit, onCancel, isLoading = false }) {
20262
20355
  const isEditMode = !!client;
20263
20356
  const [formState, setFormState] = _react.useState.call(void 0, {
20264
- name: _optionalChain([client, 'optionalAccess', _538 => _538.name]) || "",
20265
- description: _optionalChain([client, 'optionalAccess', _539 => _539.description]) || "",
20266
- redirectUris: _optionalChain([client, 'optionalAccess', _540 => _540.redirectUris, 'optionalAccess', _541 => _541.length]) ? client.redirectUris : [""],
20267
- allowedScopes: _optionalChain([client, 'optionalAccess', _542 => _542.allowedScopes]) || [],
20268
- isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _543 => _543.isConfidential]), () => ( true))
20357
+ name: _optionalChain([client, 'optionalAccess', _544 => _544.name]) || "",
20358
+ description: _optionalChain([client, 'optionalAccess', _545 => _545.description]) || "",
20359
+ redirectUris: _optionalChain([client, 'optionalAccess', _546 => _546.redirectUris, 'optionalAccess', _547 => _547.length]) ? client.redirectUris : [""],
20360
+ allowedScopes: _optionalChain([client, 'optionalAccess', _548 => _548.allowedScopes]) || [],
20361
+ isConfidential: _nullishCoalesce(_optionalChain([client, 'optionalAccess', _549 => _549.isConfidential]), () => ( true))
20269
20362
  });
20270
20363
  const [errors, setErrors] = _react.useState.call(void 0, {});
20271
20364
  const validate = _react.useCallback.call(void 0, () => {
@@ -20493,7 +20586,7 @@ function OAuthClientDetail({
20493
20586
  ] }),
20494
20587
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20495
20588
  /* @__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', _544 => _544[scope], 'optionalAccess', _545 => _545.name]) || scope }, scope)) })
20589
+ /* @__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', _550 => _550[scope], 'optionalAccess', _551 => _551.name]) || scope }, scope)) })
20497
20590
  ] }),
20498
20591
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
20499
20592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Label, { children: "Grant Types" }),
@@ -20637,7 +20730,7 @@ function OAuthConsentScreen({
20637
20730
  if (error || !clientInfo) {
20638
20731
  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
20732
  /* @__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', _546 => _546.message]) || "Invalid authorization request. Please try again." })
20733
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AlertDescription, { children: _optionalChain([error, 'optionalAccess', _552 => _552.message]) || "Invalid authorization request. Please try again." })
20641
20734
  ] }) }) }) });
20642
20735
  }
20643
20736
  const { client, scopes } = clientInfo;
@@ -20853,7 +20946,7 @@ function WaitlistForm({ onSuccess }) {
20853
20946
  questionnaire: values.questionnaire
20854
20947
  });
20855
20948
  setIsSuccess(true);
20856
- _optionalChain([onSuccess, 'optionalCall', _547 => _547()]);
20949
+ _optionalChain([onSuccess, 'optionalCall', _553 => _553()]);
20857
20950
  } catch (e) {
20858
20951
  errorToast({ error: e });
20859
20952
  } finally {
@@ -21491,7 +21584,7 @@ var ModuleEditor = _react.memo.call(void 0, /* @__PURE__ */ _chunk7QVYU63Ejs.__n
21491
21584
  ] }),
21492
21585
  roleIds.map((roleId) => {
21493
21586
  const roleTokens = block[roleId];
21494
- const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _548 => _548[roleId]]), () => ( roleId));
21587
+ const roleLabel = _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _554 => _554[roleId]]), () => ( roleId));
21495
21588
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "tr", { className: "border-b last:border-b-0", children: [
21496
21589
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: roleLabel }),
21497
21590
  _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 +21621,7 @@ function RbacContainer() {
21528
21621
  }, []);
21529
21622
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21530
21623
  if (!matrix) return [];
21531
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _549 => _549[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _550 => _550[b]]), () => ( b))));
21624
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _555 => _555[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _556 => _556[b]]), () => ( b))));
21532
21625
  }, [matrix, moduleNames]);
21533
21626
  const roleIds = _react.useMemo.call(void 0, () => {
21534
21627
  if (roleNames) {
@@ -21591,7 +21684,7 @@ function RbacContainer() {
21591
21684
  id === selectedModuleId && "bg-muted font-medium text-foreground",
21592
21685
  id !== selectedModuleId && "text-muted-foreground"
21593
21686
  ),
21594
- children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _551 => _551[id]]), () => ( id))
21687
+ children: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _557 => _557[id]]), () => ( id))
21595
21688
  }
21596
21689
  ) }, id)) }) }),
21597
21690
  /* @__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 +21692,7 @@ function RbacContainer() {
21599
21692
  {
21600
21693
  moduleId: selectedModuleId,
21601
21694
  block: selectedBlock,
21602
- moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _552 => _552[selectedModuleId]]), () => ( selectedModuleId)),
21695
+ moduleLabel: _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _558 => _558[selectedModuleId]]), () => ( selectedModuleId)),
21603
21696
  roleIds,
21604
21697
  roleNames,
21605
21698
  onOpenPicker: openPicker
@@ -21610,12 +21703,12 @@ function RbacContainer() {
21610
21703
  RbacPermissionPicker,
21611
21704
  {
21612
21705
  open: !!activePicker,
21613
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _553 => _553.anchor]), () => ( null)),
21706
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _559 => _559.anchor]), () => ( null)),
21614
21707
  value: activeValue,
21615
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _554 => _554.isRoleColumn]), () => ( false)),
21708
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _560 => _560.isRoleColumn]), () => ( false)),
21616
21709
  knownSegments: activeSegments,
21617
21710
  onSetValue: handleSetValue,
21618
- onClear: _optionalChain([activePicker, 'optionalAccess', _555 => _555.isRoleColumn]) ? handleClear : void 0,
21711
+ onClear: _optionalChain([activePicker, 'optionalAccess', _561 => _561.isRoleColumn]) ? handleClear : void 0,
21619
21712
  onClose: closePicker
21620
21713
  }
21621
21714
  )
@@ -21682,7 +21775,7 @@ function RbacByRoleContainer() {
21682
21775
  }, [roleNames]);
21683
21776
  const sortedModuleIds = _react.useMemo.call(void 0, () => {
21684
21777
  if (!matrix) return [];
21685
- return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _556 => _556[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _557 => _557[b]]), () => ( b))));
21778
+ return Object.keys(matrix).sort((a, b) => (_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _562 => _562[a]]), () => ( a))).localeCompare(_nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _563 => _563[b]]), () => ( b))));
21686
21779
  }, [matrix, moduleNames]);
21687
21780
  _react.useEffect.call(void 0, () => {
21688
21781
  if (!selectedRoleId && sortedRoleIds.length > 0) {
@@ -21731,7 +21824,7 @@ function RbacByRoleContainer() {
21731
21824
  id === selectedRoleId && "bg-muted font-medium text-foreground",
21732
21825
  id !== selectedRoleId && "text-muted-foreground"
21733
21826
  ),
21734
- children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _558 => _558[id]]), () => ( id))
21827
+ children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _564 => _564[id]]), () => ( id))
21735
21828
  }
21736
21829
  ) }, id)) }) }),
21737
21830
  /* @__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 +21844,7 @@ function RbacByRoleContainer() {
21751
21844
  if (!block) return null;
21752
21845
  const defaultTokens = _nullishCoalesce(block.default, () => ( []));
21753
21846
  const roleTokens = block[selectedRoleId];
21754
- const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _559 => _559[moduleId]]), () => ( moduleId));
21847
+ const moduleLabel = _nullishCoalesce(_optionalChain([moduleNames, 'optionalAccess', _565 => _565[moduleId]]), () => ( moduleId));
21755
21848
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
21756
21849
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "tr", { className: "border-b bg-muted/40", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
21757
21850
  "td",
@@ -21766,7 +21859,7 @@ function RbacByRoleContainer() {
21766
21859
  _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
21860
  ] }),
21768
21861
  /* @__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', _560 => _560[selectedRoleId]]), () => ( selectedRoleId)) }),
21862
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "td", { className: "px-4 py-1 text-xs font-medium text-muted-foreground", children: _nullishCoalesce(_optionalChain([roleNames, 'optionalAccess', _566 => _566[selectedRoleId]]), () => ( selectedRoleId)) }),
21770
21863
  _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
21864
  CellButton3,
21772
21865
  {
@@ -21787,12 +21880,12 @@ function RbacByRoleContainer() {
21787
21880
  RbacPermissionPicker,
21788
21881
  {
21789
21882
  open: !!activePicker,
21790
- anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _561 => _561.anchor]), () => ( null)),
21883
+ anchor: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _567 => _567.anchor]), () => ( null)),
21791
21884
  value: activeValue,
21792
- isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _562 => _562.isRoleColumn]), () => ( false)),
21885
+ isRoleColumn: _nullishCoalesce(_optionalChain([activePicker, 'optionalAccess', _568 => _568.isRoleColumn]), () => ( false)),
21793
21886
  knownSegments: activeSegments,
21794
21887
  onSetValue: handleSetValue,
21795
- onClear: _optionalChain([activePicker, 'optionalAccess', _563 => _563.isRoleColumn]) ? handleClear : void 0,
21888
+ onClear: _optionalChain([activePicker, 'optionalAccess', _569 => _569.isRoleColumn]) ? handleClear : void 0,
21796
21889
  onClose: closePicker
21797
21890
  }
21798
21891
  )
@@ -22313,5 +22406,6 @@ _chunk7QVYU63Ejs.__name.call(void 0, RbacByRoleContainer, "RbacByRoleContainer")
22313
22406
 
22314
22407
 
22315
22408
 
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
22409
+
22410
+ 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;
22411
+ //# sourceMappingURL=chunk-JQ6O7OEZ.js.map