@seliseblocks/genesis-os 4.2.2 → 4.2.4

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.
Files changed (59) hide show
  1. package/dist/{chunk-VNUPOJ7H.cjs → chunk-3VNGGYRG.cjs} +18 -2
  2. package/dist/chunk-3VNGGYRG.cjs.map +1 -0
  3. package/dist/{chunk-6RCHFJ4C.js → chunk-575VJQ2U.js} +38 -65
  4. package/dist/chunk-575VJQ2U.js.map +1 -0
  5. package/dist/{chunk-CEXYN2ZD.js → chunk-6WBFAHAO.js} +18 -3
  6. package/dist/chunk-6WBFAHAO.js.map +1 -0
  7. package/dist/{chunk-RYEW56RI.js → chunk-7EFD3LDX.js} +4 -4
  8. package/dist/{chunk-RYEW56RI.js.map → chunk-7EFD3LDX.js.map} +1 -1
  9. package/dist/{chunk-MSHCIIXL.cjs → chunk-FJ4KYZYG.cjs} +5 -5
  10. package/dist/{chunk-MSHCIIXL.cjs.map → chunk-FJ4KYZYG.cjs.map} +1 -1
  11. package/dist/{chunk-QWUCV4KF.js → chunk-JXEOZY4V.js} +314 -205
  12. package/dist/chunk-JXEOZY4V.js.map +1 -0
  13. package/dist/{chunk-HTZX5UUU.cjs → chunk-QYN3AEU5.cjs} +12 -12
  14. package/dist/{chunk-HTZX5UUU.cjs.map → chunk-QYN3AEU5.cjs.map} +1 -1
  15. package/dist/{chunk-JTSGZMKE.cjs → chunk-ROV7S3SC.cjs} +40 -67
  16. package/dist/chunk-ROV7S3SC.cjs.map +1 -0
  17. package/dist/{chunk-WKZJV3E7.js → chunk-RZ3F7SL3.js} +3 -3
  18. package/dist/{chunk-WKZJV3E7.js.map → chunk-RZ3F7SL3.js.map} +1 -1
  19. package/dist/{chunk-PSATBGVF.cjs → chunk-U3WXD3OX.cjs} +6 -5
  20. package/dist/chunk-U3WXD3OX.cjs.map +1 -0
  21. package/dist/{chunk-VNUHUNWE.cjs → chunk-WOKUPQ7C.cjs} +370 -261
  22. package/dist/chunk-WOKUPQ7C.cjs.map +1 -0
  23. package/dist/{chunk-MCOK3TFE.js → chunk-WPTHBDJO.js} +5 -4
  24. package/dist/chunk-WPTHBDJO.js.map +1 -0
  25. package/dist/components/index.cjs +382 -382
  26. package/dist/components/index.d.cts +25 -22
  27. package/dist/components/index.d.ts +25 -22
  28. package/dist/components/index.js +6 -6
  29. package/dist/guards/index.cjs +9 -9
  30. package/dist/guards/index.js +3 -3
  31. package/dist/hooks/index.cjs +53 -53
  32. package/dist/hooks/index.js +3 -3
  33. package/dist/index.cjs +463 -459
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +6 -6
  37. package/dist/layouts/index.cjs +13 -13
  38. package/dist/layouts/index.d.cts +3 -2
  39. package/dist/layouts/index.d.ts +3 -2
  40. package/dist/layouts/index.js +6 -6
  41. package/dist/pages/index.cjs +11 -11
  42. package/dist/pages/index.js +6 -6
  43. package/dist/providers/index.cjs +6 -6
  44. package/dist/providers/index.d.cts +1 -3
  45. package/dist/providers/index.d.ts +1 -3
  46. package/dist/providers/index.js +2 -2
  47. package/dist/store/index.cjs +10 -6
  48. package/dist/store/index.d.cts +25 -1
  49. package/dist/store/index.d.ts +25 -1
  50. package/dist/store/index.js +1 -1
  51. package/package.json +6 -1
  52. package/dist/chunk-6RCHFJ4C.js.map +0 -1
  53. package/dist/chunk-CEXYN2ZD.js.map +0 -1
  54. package/dist/chunk-JTSGZMKE.cjs.map +0 -1
  55. package/dist/chunk-MCOK3TFE.js.map +0 -1
  56. package/dist/chunk-PSATBGVF.cjs.map +0 -1
  57. package/dist/chunk-QWUCV4KF.js.map +0 -1
  58. package/dist/chunk-VNUHUNWE.cjs.map +0 -1
  59. package/dist/chunk-VNUPOJ7H.cjs.map +0 -1
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
4
- var chunkMSHCIIXL_cjs = require('./chunk-MSHCIIXL.cjs');
4
+ var chunkFJ4KYZYG_cjs = require('./chunk-FJ4KYZYG.cjs');
5
5
  var chunkZ6N3Y5AQ_cjs = require('./chunk-Z6N3Y5AQ.cjs');
6
- var chunkJTSGZMKE_cjs = require('./chunk-JTSGZMKE.cjs');
6
+ var chunkROV7S3SC_cjs = require('./chunk-ROV7S3SC.cjs');
7
7
  var chunkQ7Y32IBM_cjs = require('./chunk-Q7Y32IBM.cjs');
8
- var chunkHTZX5UUU_cjs = require('./chunk-HTZX5UUU.cjs');
9
- var chunkPSATBGVF_cjs = require('./chunk-PSATBGVF.cjs');
8
+ var chunkQYN3AEU5_cjs = require('./chunk-QYN3AEU5.cjs');
9
+ var chunkU3WXD3OX_cjs = require('./chunk-U3WXD3OX.cjs');
10
10
  var chunkHF24SZFI_cjs = require('./chunk-HF24SZFI.cjs');
11
11
  var chunkSDWR3F3Y_cjs = require('./chunk-SDWR3F3Y.cjs');
12
- var chunkVNUPOJ7H_cjs = require('./chunk-VNUPOJ7H.cjs');
12
+ var chunk3VNGGYRG_cjs = require('./chunk-3VNGGYRG.cjs');
13
13
  var chunkVAKGHXK6_cjs = require('./chunk-VAKGHXK6.cjs');
14
14
  var chunkQJOVCH5A_cjs = require('./chunk-QJOVCH5A.cjs');
15
15
  var React8 = require('react');
@@ -1140,14 +1140,65 @@ var SidebarMenuSubButton = React8__namespace.forwardRef(({ asChild = false, size
1140
1140
  );
1141
1141
  });
1142
1142
  SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
1143
- function useAgentPanel() {
1144
- return React8.useContext(chunkJTSGZMKE_cjs.AgentPanelContext) ?? chunkJTSGZMKE_cjs.defaultAgentPanelContextValue;
1143
+ function useRightSidePanel() {
1144
+ return React8.useContext(chunkROV7S3SC_cjs.RightSidePanelContext) ?? chunkROV7S3SC_cjs.defaultRightSidePanelContextValue;
1145
1145
  }
1146
- function clampWidth(value, sizing) {
1147
- if (typeof window === "undefined") return value;
1148
- const min = parsePx(sizing.minWidth);
1149
- const maxRaw = sizing.maxWidth.endsWith("vw") ? parseFloat(sizing.maxWidth) / 100 * window.innerWidth : parsePx(sizing.maxWidth);
1150
- return Math.max(min, Math.min(maxRaw, value));
1146
+ function RenderConditionally({
1147
+ condition,
1148
+ children
1149
+ }) {
1150
+ if (!condition) {
1151
+ return null;
1152
+ }
1153
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1154
+ }
1155
+ function RightSidePanelResizer({
1156
+ onHandlePointerDown
1157
+ }) {
1158
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pointer-events-none absolute inset-y-0 -left-0.5 w-1.5", children: [
1159
+ /* @__PURE__ */ jsxRuntime.jsx(
1160
+ "div",
1161
+ {
1162
+ "aria-hidden": "true",
1163
+ className: "absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-border"
1164
+ }
1165
+ ),
1166
+ /* @__PURE__ */ jsxRuntime.jsx(
1167
+ "div",
1168
+ {
1169
+ "data-resize-handle": true,
1170
+ role: "separator",
1171
+ "aria-orientation": "vertical",
1172
+ "aria-label": "Resize panel",
1173
+ onPointerDown: onHandlePointerDown,
1174
+ className: chunkSDWR3F3Y_cjs.cn(
1175
+ "pointer-events-auto",
1176
+ "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
1177
+ "flex h-12 w-3 cursor-ew-resize touch-none items-center justify-center",
1178
+ "rounded-full bg-border transition-colors duration-150",
1179
+ "hover:bg-primary/50 active:bg-primary/70"
1180
+ ),
1181
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-hidden": "true", className: "grid grid-cols-2 gap-[3px]", children: [
1182
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
1183
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
1184
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
1185
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
1186
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
1187
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" })
1188
+ ] })
1189
+ }
1190
+ )
1191
+ ] });
1192
+ }
1193
+ function clampWidth(value, min, max) {
1194
+ return Math.max(min, Math.min(max, value));
1195
+ }
1196
+ function resolveMaxPx(maxWidth, viewportWidth) {
1197
+ if (typeof window === "undefined") return 0;
1198
+ if (maxWidth.endsWith("vw")) {
1199
+ return parseFloat(maxWidth) / 100 * viewportWidth;
1200
+ }
1201
+ return parsePx(maxWidth);
1151
1202
  }
1152
1203
  function parsePx(value) {
1153
1204
  if (typeof window === "undefined") return 0;
@@ -1166,45 +1217,62 @@ function DesktopPanel({
1166
1217
  children,
1167
1218
  id
1168
1219
  }) {
1169
- const { open, close, panelId, sizing, resizable, setLiveWidth } = useAgentPanel();
1220
+ const {
1221
+ open,
1222
+ close,
1223
+ panelId,
1224
+ sizing,
1225
+ resizable,
1226
+ liveWidth,
1227
+ setLiveWidth,
1228
+ topOffset
1229
+ } = useRightSidePanel();
1230
+ const { setLayoutSetting } = chunk3VNGGYRG_cjs.useLayoutSettingsStore();
1170
1231
  const containerRef = React8__namespace.useRef(null);
1171
- React8__namespace.useEffect(() => {
1172
- if (!resizable) return;
1173
- const node = containerRef.current;
1174
- if (!node) return;
1175
- let startX = 0;
1176
- let startPx = 0;
1177
- let widthPx = parsePx(sizing.width);
1178
- const onMove = (event) => {
1179
- const delta = startX - event.clientX;
1180
- const next = clampWidth(startPx + delta, sizing);
1181
- widthPx = next;
1182
- setLiveWidth(`${next}px`);
1183
- };
1184
- const onUp = () => {
1185
- document.removeEventListener("pointermove", onMove);
1186
- document.removeEventListener("pointerup", onUp);
1187
- node.style.setProperty("--agent-panel-resolved-width", `${widthPx}px`);
1188
- };
1189
- const onDown = (event) => {
1232
+ React8__namespace.useLayoutEffect(() => {
1233
+ const container = containerRef.current;
1234
+ if (!container) return;
1235
+ if (open) {
1236
+ container.style.setProperty(
1237
+ "--right-side-panel-resolved-width",
1238
+ liveWidth
1239
+ );
1240
+ } else {
1241
+ container.style.removeProperty("--right-side-panel-resolved-width");
1242
+ }
1243
+ }, [open, liveWidth]);
1244
+ const onHandlePointerDown = React8__namespace.useCallback(
1245
+ (event) => {
1190
1246
  event.preventDefault();
1191
- startX = event.clientX;
1192
- const rect = node.getBoundingClientRect();
1193
- startPx = rect.width;
1194
- widthPx = startPx;
1247
+ const panel = containerRef.current;
1248
+ if (!panel) return;
1249
+ const startX = event.clientX;
1250
+ const startPx = panel.getBoundingClientRect().width;
1251
+ const minPx = parsePx(sizing.minWidth);
1252
+ const maxPx = resolveMaxPx(sizing.maxWidth, window.innerWidth);
1253
+ const onMove = (e) => {
1254
+ const next = clampWidth(startPx + (startX - e.clientX), minPx, maxPx);
1255
+ panel.style.setProperty(
1256
+ "--right-side-panel-resolved-width",
1257
+ `${next}px`
1258
+ );
1259
+ setLiveWidth(`${next}px`);
1260
+ };
1261
+ const onUp = (e) => {
1262
+ document.removeEventListener("pointermove", onMove);
1263
+ document.removeEventListener("pointerup", onUp);
1264
+ const final = clampWidth(startPx + (startX - e.clientX), minPx, maxPx);
1265
+ setLayoutSetting("rightSidePanelWidth", `${final}px`);
1266
+ };
1195
1267
  document.addEventListener("pointermove", onMove);
1196
1268
  document.addEventListener("pointerup", onUp);
1197
- };
1198
- const handle = node.querySelector("[data-resize-handle]");
1199
- if (!handle) return;
1200
- handle.addEventListener("pointerdown", onDown);
1201
- return () => {
1202
- handle.removeEventListener("pointerdown", onDown);
1203
- };
1204
- }, [resizable, sizing, setLiveWidth]);
1269
+ },
1270
+ [sizing, setLiveWidth, setLayoutSetting]
1271
+ );
1205
1272
  return /* @__PURE__ */ jsxRuntime.jsx(
1206
1273
  SheetPrimitive__namespace.Root,
1207
1274
  {
1275
+ modal: false,
1208
1276
  open,
1209
1277
  onOpenChange: (next) => {
1210
1278
  if (!next) close();
@@ -1212,36 +1280,32 @@ function DesktopPanel({
1212
1280
  children: /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
1213
1281
  SheetPrimitive__namespace.Content,
1214
1282
  {
1283
+ forceMount: true,
1284
+ "aria-modal": false,
1215
1285
  id: id ?? panelId,
1216
1286
  ref: containerRef,
1217
- "data-slot": "agent-panel",
1287
+ onPointerDownOutside: (e) => e.preventDefault(),
1288
+ onInteractOutside: (e) => e.preventDefault(),
1289
+ onFocusOutside: (e) => e.preventDefault(),
1290
+ "data-slot": "right-side-panel",
1218
1291
  "data-state": open ? "open" : "closed",
1219
- "aria-label": ariaLabel ?? "AI assistant",
1292
+ "aria-label": ariaLabel ?? "Side panel",
1293
+ "aria-hidden": !open,
1220
1294
  className: chunkSDWR3F3Y_cjs.cn(
1221
- "bg-background fixed inset-y-0 right-0 z-50 flex h-full flex-col border-l shadow-lg",
1222
- "transition-[transform,width] duration-300 ease-in-out",
1295
+ "bg-background fixed bottom-0 right-0 z-50 flex flex-col border-l shadow-lg",
1296
+ "transition-transform duration-300 ease-in-out",
1223
1297
  "data-[state=closed]:translate-x-full data-[state=open]:translate-x-0",
1224
1298
  className
1225
1299
  ),
1226
1300
  style: {
1227
- width: `var(--agent-panel-resolved-width, ${sizing.width})`,
1301
+ top: topOffset,
1302
+ width: `var(--right-side-panel-resolved-width, ${liveWidth})`,
1228
1303
  minWidth: sizing.minWidth,
1229
1304
  maxWidth: sizing.maxWidth
1230
1305
  },
1231
- onPointerDownOutside: (event) => event.preventDefault(),
1232
- onInteractOutside: (event) => event.preventDefault(),
1233
1306
  children: [
1234
1307
  children,
1235
- resizable && /* @__PURE__ */ jsxRuntime.jsx(
1236
- "div",
1237
- {
1238
- "data-resize-handle": true,
1239
- role: "separator",
1240
- "aria-orientation": "vertical",
1241
- "aria-label": "Resize panel",
1242
- className: "bg-border hover:bg-primary/50 absolute inset-y-0 left-0 w-1 cursor-ew-resize touch-none transition-colors"
1243
- }
1244
- )
1308
+ /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: resizable, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelResizer, { onHandlePointerDown }) })
1245
1309
  ]
1246
1310
  }
1247
1311
  ) })
@@ -1254,10 +1318,11 @@ function MobilePanel({
1254
1318
  className,
1255
1319
  id
1256
1320
  }) {
1257
- const { open, close, panelId } = useAgentPanel();
1321
+ const { open, close, panelId } = useRightSidePanel();
1258
1322
  return /* @__PURE__ */ jsxRuntime.jsx(
1259
1323
  vaul.Drawer.Root,
1260
1324
  {
1325
+ modal: false,
1261
1326
  open,
1262
1327
  onOpenChange: (next) => {
1263
1328
  if (!next) close();
@@ -1268,9 +1333,9 @@ function MobilePanel({
1268
1333
  vaul.Drawer.Content,
1269
1334
  {
1270
1335
  id: id ?? panelId,
1271
- "data-slot": "agent-panel",
1336
+ "data-slot": "right-side-panel",
1272
1337
  "data-state": open ? "open" : "closed",
1273
- "aria-label": ariaLabel ?? "AI assistant",
1338
+ "aria-label": ariaLabel ?? "Side panel",
1274
1339
  className: chunkSDWR3F3Y_cjs.cn(
1275
1340
  "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90vh] flex-col rounded-t-[10px] border",
1276
1341
  className
@@ -1285,26 +1350,26 @@ function MobilePanel({
1285
1350
  }
1286
1351
  );
1287
1352
  }
1288
- function AgentPanel({
1353
+ function RightSidePanel({
1289
1354
  ariaLabel,
1290
1355
  className,
1291
1356
  children,
1292
1357
  content,
1293
1358
  id
1294
1359
  }) {
1295
- const ctx = useAgentPanel();
1360
+ const ctx = useRightSidePanel();
1296
1361
  const body = content ? content({ close: ctx.close, open: ctx.open }) : children;
1297
1362
  if (ctx.isMobile) {
1298
1363
  return /* @__PURE__ */ jsxRuntime.jsx(MobilePanel, { ariaLabel, className, id, children: body });
1299
1364
  }
1300
1365
  return /* @__PURE__ */ jsxRuntime.jsx(DesktopPanel, { ariaLabel, className, id, children: body });
1301
1366
  }
1302
- AgentPanel.displayName = "AgentPanel";
1303
- var AgentPanelHeader = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1367
+ RightSidePanel.displayName = "RightSidePanel";
1368
+ var RightSidePanelHeader = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1304
1369
  "div",
1305
1370
  {
1306
1371
  ref,
1307
- "data-slot": "agent-panel-header",
1372
+ "data-slot": "right-side-panel-header",
1308
1373
  className: chunkSDWR3F3Y_cjs.cn(
1309
1374
  "flex shrink-0 items-start justify-between gap-3 border-b p-4",
1310
1375
  className
@@ -1312,12 +1377,12 @@ var AgentPanelHeader = React8__namespace.forwardRef(({ className, ...props }, re
1312
1377
  ...props
1313
1378
  }
1314
1379
  ));
1315
- AgentPanelHeader.displayName = "AgentPanelHeader";
1316
- var AgentPanelTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1380
+ RightSidePanelHeader.displayName = "RightSidePanelHeader";
1381
+ var RightSidePanelTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1317
1382
  "h2",
1318
1383
  {
1319
1384
  ref,
1320
- "data-slot": "agent-panel-title",
1385
+ "data-slot": "right-side-panel-title",
1321
1386
  className: chunkSDWR3F3Y_cjs.cn(
1322
1387
  "text-base font-semibold leading-none tracking-tight",
1323
1388
  className
@@ -1325,25 +1390,25 @@ var AgentPanelTitle = React8__namespace.forwardRef(({ className, ...props }, ref
1325
1390
  ...props
1326
1391
  }
1327
1392
  ));
1328
- AgentPanelTitle.displayName = "AgentPanelTitle";
1329
- var AgentPanelDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1393
+ RightSidePanelTitle.displayName = "RightSidePanelTitle";
1394
+ var RightSidePanelDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1330
1395
  "p",
1331
1396
  {
1332
1397
  ref,
1333
- "data-slot": "agent-panel-description",
1398
+ "data-slot": "right-side-panel-description",
1334
1399
  className: chunkSDWR3F3Y_cjs.cn("text-muted-foreground text-sm", className),
1335
1400
  ...props
1336
1401
  }
1337
1402
  ));
1338
- AgentPanelDescription.displayName = "AgentPanelDescription";
1339
- var AgentPanelClose = React8__namespace.forwardRef(({ className, ...props }, ref) => {
1340
- const { isMobile, close } = useAgentPanel();
1403
+ RightSidePanelDescription.displayName = "RightSidePanelDescription";
1404
+ var RightSidePanelClose = React8__namespace.forwardRef(({ className, ...props }, ref) => {
1405
+ const { isMobile, close } = useRightSidePanel();
1341
1406
  const Comp = isMobile ? vaul.Drawer.Close : SheetPrimitive__namespace.Close;
1342
1407
  return /* @__PURE__ */ jsxRuntime.jsxs(
1343
1408
  Comp,
1344
1409
  {
1345
1410
  ref,
1346
- "data-slot": "agent-panel-close",
1411
+ "data-slot": "right-side-panel-close",
1347
1412
  "aria-label": "Close panel",
1348
1413
  className: chunkSDWR3F3Y_cjs.cn(
1349
1414
  "ring-offset-background focus:ring-ring rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2",
@@ -1361,35 +1426,40 @@ var AgentPanelClose = React8__namespace.forwardRef(({ className, ...props }, ref
1361
1426
  }
1362
1427
  );
1363
1428
  });
1364
- AgentPanelClose.displayName = "AgentPanelClose";
1365
- var AgentPanelBody = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1429
+ RightSidePanelClose.displayName = "RightSidePanelClose";
1430
+ var RightSidePanelBody = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1366
1431
  "div",
1367
1432
  {
1368
1433
  ref,
1369
- "data-slot": "agent-panel-body",
1434
+ "data-slot": "right-side-panel-body",
1370
1435
  className: chunkSDWR3F3Y_cjs.cn("min-h-0 flex-1 overflow-y-auto p-4", className),
1371
1436
  ...props
1372
1437
  }
1373
1438
  ));
1374
- AgentPanelBody.displayName = "AgentPanelBody";
1375
- var AgentPanelFooter = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1439
+ RightSidePanelBody.displayName = "RightSidePanelBody";
1440
+ var RightSidePanelFooter = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1376
1441
  "div",
1377
1442
  {
1378
1443
  ref,
1379
- "data-slot": "agent-panel-footer",
1444
+ "data-slot": "right-side-panel-footer",
1380
1445
  className: chunkSDWR3F3Y_cjs.cn("shrink-0 border-t p-4", className),
1381
1446
  ...props
1382
1447
  }
1383
1448
  ));
1384
- AgentPanelFooter.displayName = "AgentPanelFooter";
1449
+ RightSidePanelFooter.displayName = "RightSidePanelFooter";
1385
1450
  var HASH_PREFIX = "#";
1386
- var DEFAULT_HASH_KEY = "agent";
1451
+ var DEFAULT_HASH_KEY = "right-side-panel";
1452
+ var DEFAULT_SIZING_VALUES = {
1453
+ width: "24rem",
1454
+ minWidth: "20rem",
1455
+ maxWidth: "50vw"
1456
+ };
1387
1457
  function parseWidth(value, fallback) {
1388
1458
  if (typeof value === "number") return `${value}px`;
1389
1459
  if (typeof value === "string" && value.trim().length > 0) return value;
1390
1460
  return fallback;
1391
1461
  }
1392
- function AgentPanelProvider({
1462
+ function RightSidePanelProvider({
1393
1463
  children,
1394
1464
  defaultOpen = false,
1395
1465
  open: openProp,
@@ -1397,26 +1467,32 @@ function AgentPanelProvider({
1397
1467
  syncHash = true,
1398
1468
  hashKey = DEFAULT_HASH_KEY,
1399
1469
  shortcut = "mod+j",
1400
- width = "24rem",
1401
- minWidth = "20rem",
1402
- maxWidth = "50vw",
1470
+ width = DEFAULT_SIZING_VALUES.width,
1471
+ minWidth = DEFAULT_SIZING_VALUES.minWidth,
1472
+ maxWidth = DEFAULT_SIZING_VALUES.maxWidth,
1403
1473
  resizable = false,
1404
1474
  panelId,
1405
1475
  className,
1406
- style
1476
+ style,
1477
+ topOffset = "0px"
1407
1478
  }) {
1408
1479
  const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
1409
1480
  const isControlled = openProp !== void 0;
1410
1481
  const generatedId = React8__namespace.useId();
1411
- const resolvedPanelId = panelId ?? `agent-panel-${generatedId}`;
1482
+ const resolvedPanelId = panelId ?? `right-side-panel-${generatedId}`;
1483
+ const resolvedTopOffset = parseWidth(topOffset, "0px");
1484
+ const { layout } = chunk3VNGGYRG_cjs.useLayoutSettingsStore();
1412
1485
  const sizing = React8__namespace.useMemo(
1413
1486
  () => ({
1414
- width: parseWidth(width, "24rem"),
1415
- minWidth: parseWidth(minWidth, "20rem"),
1416
- maxWidth: parseWidth(maxWidth, "50vw")
1487
+ width: parseWidth(width, DEFAULT_SIZING_VALUES.width),
1488
+ minWidth: parseWidth(minWidth, DEFAULT_SIZING_VALUES.minWidth),
1489
+ maxWidth: parseWidth(maxWidth, DEFAULT_SIZING_VALUES.maxWidth)
1417
1490
  }),
1418
1491
  [width, minWidth, maxWidth]
1419
1492
  );
1493
+ const [liveWidth, setLiveWidth] = React8__namespace.useState(
1494
+ () => layout.rightSidePanelWidth ?? sizing.width
1495
+ );
1420
1496
  const readHash = React8__namespace.useCallback(() => {
1421
1497
  if (typeof window === "undefined") return false;
1422
1498
  const hash = window.location.hash.replace(/^#/, "");
@@ -1447,8 +1523,7 @@ function AgentPanelProvider({
1447
1523
  const close = React8__namespace.useCallback(() => {
1448
1524
  setOpen(false);
1449
1525
  }, [setOpen]);
1450
- const [liveWidth, setLiveWidth] = React8__namespace.useState("0px");
1451
- chunkMSHCIIXL_cjs.useKeyboardShortcut(shortcut, toggle);
1526
+ chunkFJ4KYZYG_cjs.useKeyboardShortcut(shortcut, toggle);
1452
1527
  React8__namespace.useEffect(() => {
1453
1528
  if (!syncHash || isControlled || typeof window === "undefined") return;
1454
1529
  const handleHashChange = () => {
@@ -1473,8 +1548,10 @@ function AgentPanelProvider({
1473
1548
  }
1474
1549
  }, [open, syncHash, isControlled, hashKey]);
1475
1550
  React8__namespace.useEffect(() => {
1476
- if (!open) setLiveWidth("0px");
1477
- }, [open]);
1551
+ if (layout.rightSidePanelWidth) {
1552
+ setLiveWidth(layout.rightSidePanelWidth);
1553
+ }
1554
+ }, [layout.rightSidePanelWidth]);
1478
1555
  const contextValue = React8__namespace.useMemo(
1479
1556
  () => ({
1480
1557
  open,
@@ -1486,7 +1563,8 @@ function AgentPanelProvider({
1486
1563
  setLiveWidth,
1487
1564
  resizable,
1488
1565
  panelId: resolvedPanelId,
1489
- isMobile
1566
+ isMobile,
1567
+ topOffset: resolvedTopOffset
1490
1568
  }),
1491
1569
  [
1492
1570
  open,
@@ -1497,21 +1575,22 @@ function AgentPanelProvider({
1497
1575
  liveWidth,
1498
1576
  resizable,
1499
1577
  resolvedPanelId,
1500
- isMobile
1578
+ isMobile,
1579
+ resolvedTopOffset
1501
1580
  ]
1502
1581
  );
1503
- return /* @__PURE__ */ jsxRuntime.jsx(chunkJTSGZMKE_cjs.AgentPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1582
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkROV7S3SC_cjs.RightSidePanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1504
1583
  "div",
1505
1584
  {
1506
- "data-slot": "agent-panel-provider",
1585
+ "data-slot": "right-side-panel-provider",
1507
1586
  "data-state": open ? "open" : "closed",
1508
1587
  "data-panel-id": resolvedPanelId,
1509
1588
  className: chunkSDWR3F3Y_cjs.cn("relative w-full", className),
1510
1589
  style: {
1511
- "--agent-panel-width": open ? resizable ? liveWidth : sizing.width : "0px",
1512
- "--agent-panel-min-width": sizing.minWidth,
1513
- "--agent-panel-max-width": sizing.maxWidth,
1514
- "--agent-panel-live-width": liveWidth,
1590
+ "--right-side-panel-width": open ? resizable ? liveWidth : sizing.width : "0px",
1591
+ "--right-side-panel-min-width": sizing.minWidth,
1592
+ "--right-side-panel-max-width": sizing.maxWidth,
1593
+ "--right-side-panel-live-width": liveWidth,
1515
1594
  ...style
1516
1595
  },
1517
1596
  children
@@ -1519,11 +1598,11 @@ function AgentPanelProvider({
1519
1598
  ) });
1520
1599
  }
1521
1600
  var positionClasses = {
1522
- "bottom-right": "fixed bottom-4 right-4 z-40 rounded-full shadow-lg transition-[right] duration-300 ease-in-out data-[state=open]:right-[var(--agent-panel-width,0px)]",
1523
- "bottom-left": "fixed bottom-4 left-4 z-40 rounded-full shadow-lg transition-[left] duration-300 ease-in-out data-[state=open]:left-[var(--agent-panel-width,0px)]",
1601
+ "bottom-right": "fixed bottom-4 right-4 z-40 rounded-full shadow-lg transition-[right] duration-300 ease-in-out data-[state=open]:right-[var(--right-side-panel-width,0px)]",
1602
+ "bottom-left": "fixed bottom-4 left-4 z-40 rounded-full shadow-lg transition-[left] duration-300 ease-in-out data-[state=open]:left-[var(--right-side-panel-width,0px)]",
1524
1603
  inline: "relative"
1525
1604
  };
1526
- var AgentPanelTrigger = React8__namespace.forwardRef(
1605
+ var RightSidePanelTrigger = React8__namespace.forwardRef(
1527
1606
  ({
1528
1607
  asChild = false,
1529
1608
  position = "bottom-right",
@@ -1536,20 +1615,21 @@ var AgentPanelTrigger = React8__namespace.forwardRef(
1536
1615
  type,
1537
1616
  ...props
1538
1617
  }, ref) => {
1539
- const { open, toggle, panelId } = useAgentPanel();
1618
+ const { open, toggle, panelId } = useRightSidePanel();
1540
1619
  const Comp = asChild ? reactSlot.Slot : Button;
1541
1620
  const isFloating = position !== "inline";
1542
- const computedLabel = ariaLabel ?? label ?? "Toggle AI assistant";
1621
+ const computedLabel = ariaLabel ?? label ?? "Toggle side panel";
1543
1622
  const handleClick = (event) => {
1544
1623
  onClick?.(event);
1545
1624
  if (!event.defaultPrevented) toggle();
1546
1625
  };
1626
+ if (open) return null;
1547
1627
  return /* @__PURE__ */ jsxRuntime.jsx(
1548
1628
  Comp,
1549
1629
  {
1550
1630
  ref,
1551
1631
  type: asChild ? void 0 : type ?? "button",
1552
- "data-slot": "agent-panel-trigger",
1632
+ "data-slot": "right-side-panel-trigger",
1553
1633
  "data-state": open ? "open" : "closed",
1554
1634
  "aria-label": computedLabel,
1555
1635
  "aria-expanded": open,
@@ -1569,7 +1649,7 @@ var AgentPanelTrigger = React8__namespace.forwardRef(
1569
1649
  );
1570
1650
  }
1571
1651
  );
1572
- AgentPanelTrigger.displayName = "AgentPanelTrigger";
1652
+ RightSidePanelTrigger.displayName = "RightSidePanelTrigger";
1573
1653
  var Drawer = ({
1574
1654
  shouldScaleBackground = true,
1575
1655
  ...props
@@ -3419,7 +3499,7 @@ function MultiSelect({
3419
3499
  onChange,
3420
3500
  value: selectedValues
3421
3501
  }) {
3422
- const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
3502
+ const [buttonRef, popoverWidth] = chunkFJ4KYZYG_cjs.usePopoverWidth();
3423
3503
  const onSelectHandler = (value) => {
3424
3504
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
3425
3505
  onChange(nextValues);
@@ -6047,13 +6127,13 @@ var ImportFileModalContent = ({
6047
6127
  ) }) });
6048
6128
  };
6049
6129
  var parentClasses = (isSidebarOpen, isActive) => chunkSDWR3F3Y_cjs.cn(
6050
- "group relative flex h-10 w-full cursor-pointer items-center gap-3 p-1.5 text-base text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]",
6051
- isSidebarOpen ? "px-4" : "justify-center px-0",
6130
+ "group relative flex h-10 w-full cursor-pointer items-center p-1.5 text-base text-[hsl(var(--low-emphasis))] transition-[padding,gap] duration-200 hover:text-[hsl(var(--high-emphasis))]",
6131
+ isSidebarOpen ? "gap-3 px-4" : "gap-0 justify-center px-0",
6052
6132
  isActive && "!text-primary"
6053
6133
  );
6054
6134
  var childClasses = (isSidebarOpen, isActive) => chunkSDWR3F3Y_cjs.cn(
6055
- "group relative flex h-10 w-full items-center gap-2 text-base transition-colors",
6056
- isSidebarOpen ? "px-4 pl-8" : "justify-center px-4",
6135
+ "group relative flex h-10 w-full items-center text-base transition-[padding,gap,color] duration-200",
6136
+ isSidebarOpen ? "gap-2 px-4 pl-8" : "gap-0 justify-center px-4",
6057
6137
  isActive ? "!text-primary" : "text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]"
6058
6138
  );
6059
6139
  var ActiveBadge = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" });
@@ -6069,7 +6149,16 @@ var ChildMenuItem = ({ menu, isSidebarOpen }) => {
6069
6149
  ),
6070
6150
  children: [
6071
6151
  menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6072
- isSidebarOpen ? /* @__PURE__ */ jsxRuntime.jsx("span", { children: menu.name }) : null,
6152
+ /* @__PURE__ */ jsxRuntime.jsx(
6153
+ "span",
6154
+ {
6155
+ className: chunkSDWR3F3Y_cjs.cn(
6156
+ "inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
6157
+ isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
6158
+ ),
6159
+ children: menu.name
6160
+ }
6161
+ ),
6073
6162
  isActiveMenu ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" }) : null
6074
6163
  ]
6075
6164
  }
@@ -6086,23 +6175,32 @@ function DesktopLeafMenuItem({
6086
6175
  {
6087
6176
  to: menu.path,
6088
6177
  className: chunkSDWR3F3Y_cjs.cn(
6089
- "flex items-center gap-3",
6090
- !isSidebarOpen && "justify-center",
6178
+ "flex w-full items-center transition-[gap] duration-200",
6179
+ isSidebarOpen ? "gap-3" : "justify-center gap-0",
6091
6180
  menu.disabled && "pointer-events-none opacity-50"
6092
6181
  ),
6093
6182
  children: [
6094
6183
  menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6095
- isSidebarOpen ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative", children: [
6096
- menu.name,
6097
- menu.badge ? /* @__PURE__ */ jsxRuntime.jsx(
6098
- Badge,
6099
- {
6100
- variant: "secondary",
6101
- className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6102
- children: menu.badge
6103
- }
6104
- ) : null
6105
- ] }) : null
6184
+ /* @__PURE__ */ jsxRuntime.jsx(
6185
+ "span",
6186
+ {
6187
+ className: chunkSDWR3F3Y_cjs.cn(
6188
+ "inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
6189
+ isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
6190
+ ),
6191
+ children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
6192
+ menu.name,
6193
+ menu.badge ? /* @__PURE__ */ jsxRuntime.jsx(
6194
+ Badge,
6195
+ {
6196
+ variant: "secondary",
6197
+ className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6198
+ children: menu.badge
6199
+ }
6200
+ ) : null
6201
+ ] })
6202
+ }
6203
+ )
6106
6204
  ]
6107
6205
  }
6108
6206
  ),
@@ -6173,34 +6271,44 @@ function DesktopMenuItem({
6173
6271
  "div",
6174
6272
  {
6175
6273
  className: chunkSDWR3F3Y_cjs.cn(
6176
- "flex items-center gap-3",
6177
- !isSidebarOpen && "w-full justify-center"
6274
+ "flex items-center transition-[gap] duration-200",
6275
+ isSidebarOpen ? "gap-3" : "w-full justify-center gap-0"
6178
6276
  ),
6179
6277
  children: [
6180
6278
  menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6181
- /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: isSidebarOpen, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative", children: [
6182
- menu.name,
6183
- /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: !!menu.badge, children: /* @__PURE__ */ jsxRuntime.jsx(
6184
- Badge,
6185
- {
6186
- variant: "outline",
6187
- className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6188
- children: menu.badge
6189
- }
6190
- ) })
6191
- ] }) })
6279
+ /* @__PURE__ */ jsxRuntime.jsx(
6280
+ "span",
6281
+ {
6282
+ className: chunkSDWR3F3Y_cjs.cn(
6283
+ "inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
6284
+ isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
6285
+ ),
6286
+ children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
6287
+ menu.name,
6288
+ /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: !!menu.badge, children: /* @__PURE__ */ jsxRuntime.jsx(
6289
+ Badge,
6290
+ {
6291
+ variant: "outline",
6292
+ className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6293
+ children: menu.badge
6294
+ }
6295
+ ) })
6296
+ ] })
6297
+ }
6298
+ )
6192
6299
  ]
6193
6300
  }
6194
6301
  ),
6195
- /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: isSidebarOpen, children: /* @__PURE__ */ jsxRuntime.jsx(
6302
+ /* @__PURE__ */ jsxRuntime.jsx(
6196
6303
  lucideReact.ChevronRight,
6197
6304
  {
6198
6305
  className: chunkSDWR3F3Y_cjs.cn(
6199
- "ml-auto h-4 w-4 transition-transform",
6306
+ "ml-auto h-4 w-4 shrink-0 transition-all duration-200",
6307
+ isSidebarOpen ? "opacity-100" : "w-0 opacity-0",
6200
6308
  isOpen && "rotate-90"
6201
6309
  )
6202
6310
  }
6203
- ) }),
6311
+ ),
6204
6312
  /* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: isActiveMenu, children: /* @__PURE__ */ jsxRuntime.jsx(ActiveBadge, {}) })
6205
6313
  ]
6206
6314
  }
@@ -6354,15 +6462,6 @@ function SidebarCollapsedTooltip({
6354
6462
  )
6355
6463
  ] });
6356
6464
  }
6357
- function RenderConditionally({
6358
- condition,
6359
- children
6360
- }) {
6361
- if (!condition) {
6362
- return null;
6363
- }
6364
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
6365
- }
6366
6465
  function RenderAlternatively({
6367
6466
  condition,
6368
6467
  whenTrue,
@@ -6589,7 +6688,7 @@ function useAppRedirectUrls({
6589
6688
  const controller = new AbortController();
6590
6689
  const { signal } = controller;
6591
6690
  stableApps.forEach((app) => {
6592
- chunkMSHCIIXL_cjs.initiateService.fetchRedirectUrl({
6691
+ chunkFJ4KYZYG_cjs.initiateService.fetchRedirectUrl({
6593
6692
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv(app.clientId),
6594
6693
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv(app.redirectUri),
6595
6694
  forwardedTo: resolveRef.current(app)
@@ -6615,7 +6714,7 @@ function useAppRedirectUrls({
6615
6714
  }
6616
6715
  var AppSwitcher = ({ forwardedTo }) => {
6617
6716
  const [open, setOpen] = React8.useState(false);
6618
- const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6717
+ const config = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6619
6718
  const filteredApps = React8.useMemo(
6620
6719
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6621
6720
  [config.name]
@@ -6648,7 +6747,7 @@ var OPTIONS = [
6648
6747
  { value: "dark", Icon: lucideReact.Moon, label: "Dark" }
6649
6748
  ];
6650
6749
  function ThemeSwitcher() {
6651
- const { theme, setTheme } = chunkMSHCIIXL_cjs.useTheme();
6750
+ const { theme, setTheme } = chunkFJ4KYZYG_cjs.useTheme();
6652
6751
  return /* @__PURE__ */ jsxRuntime.jsx(
6653
6752
  Tabs,
6654
6753
  {
@@ -6678,7 +6777,7 @@ var UserService = class {
6678
6777
  };
6679
6778
  var userService = new UserService();
6680
6779
  var useGetUserInfo = (options) => {
6681
- const userStore = chunkVNUPOJ7H_cjs.useUserStore();
6780
+ const userStore = chunk3VNGGYRG_cjs.useUserStore();
6682
6781
  return reactQuery.useQuery({
6683
6782
  queryKey: ["user-info"],
6684
6783
  queryFn: async () => {
@@ -6690,7 +6789,7 @@ var useGetUserInfo = (options) => {
6690
6789
  });
6691
6790
  };
6692
6791
  function UserAvatar({ size = "sm" }) {
6693
- const { userDetails: userData } = chunkVNUPOJ7H_cjs.useUserStore();
6792
+ const { userDetails: userData } = chunk3VNGGYRG_cjs.useUserStore();
6694
6793
  const initials = `${userData?.firstName?.[0] || ""}${userData?.lastName?.[0] || ""}`.toUpperCase();
6695
6794
  const sizeClass = size === "lg" ? "h-14 w-14 text-xl" : "h-10 w-10 text-base";
6696
6795
  if (userData?.profileImageUrl) {
@@ -6715,14 +6814,14 @@ function UserAvatar({ size = "sm" }) {
6715
6814
  );
6716
6815
  }
6717
6816
  function UserDropdownMenu() {
6718
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
6817
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
6719
6818
  const { data: data2 } = useGetUserInfo();
6720
6819
  const userData = data2?.data;
6721
- const { isPending, mutateAsync } = chunkMSHCIIXL_cjs.useLogout();
6820
+ const { isPending, mutateAsync } = chunkFJ4KYZYG_cjs.useLogout();
6722
6821
  const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
6723
6822
  const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
6724
- const { resetSelectedLanguages } = chunkVNUPOJ7H_cjs.useLanguageViewStore();
6725
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkMSHCIIXL_cjs.useGetMyOrganizations();
6823
+ const { resetSelectedLanguages } = chunk3VNGGYRG_cjs.useLanguageViewStore();
6824
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunkFJ4KYZYG_cjs.useGetMyOrganizations();
6726
6825
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6727
6826
  const email = userData?.email || "";
6728
6827
  const roles = Object.values(userData?.roles || {}).flat();
@@ -6852,7 +6951,7 @@ var languages = [
6852
6951
  { key: "fr", title: "French" }
6853
6952
  ];
6854
6953
  function LanguageSelector() {
6855
- const { changeLanguage, language } = chunkMSHCIIXL_cjs.useLanguageSwitcher();
6954
+ const { changeLanguage, language } = chunkFJ4KYZYG_cjs.useLanguageSwitcher();
6856
6955
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6857
6956
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
6858
6957
  "button",
@@ -6942,7 +7041,7 @@ var notificationListenerService = new NotificationListenerService();
6942
7041
 
6943
7042
  // src/components/common/notification/use-notification-socket.ts
6944
7043
  function useNotificationSocket() {
6945
- const { data: configData } = chunkMSHCIIXL_cjs.useGetBlocksNotificationConfig(0, 100);
7044
+ const { data: configData } = chunkFJ4KYZYG_cjs.useGetBlocksNotificationConfig(0, 100);
6946
7045
  const queryClient = reactQuery.useQueryClient();
6947
7046
  notificationListenerService.connect();
6948
7047
  React8.useEffect(() => {
@@ -6957,7 +7056,7 @@ function useNotificationSocket() {
6957
7056
  notificationListenerService.connection.on(
6958
7057
  config.notifyMethod,
6959
7058
  (message) => {
6960
- chunkMSHCIIXL_cjs.notificationService.getNotificationConfig(config, message);
7059
+ chunkFJ4KYZYG_cjs.notificationService.getNotificationConfig(config, message);
6961
7060
  try {
6962
7061
  const notice = typeof message === "string" ? JSON.parse(message) : message;
6963
7062
  const denom = JSON.parse(
@@ -6981,12 +7080,12 @@ function useNotificationFeed(open) {
6981
7080
  const [notifications, setNotifications] = React8.useState([]);
6982
7081
  const [hasMore, setHasMore] = React8.useState(true);
6983
7082
  const listRef = React8.useRef(null);
6984
- const { data: data2, isLoading, isFetching } = chunkMSHCIIXL_cjs.useGetNotifications(
7083
+ const { data: data2, isLoading, isFetching } = chunkFJ4KYZYG_cjs.useGetNotifications(
6985
7084
  pageNumber,
6986
7085
  PAGE_SIZE
6987
7086
  );
6988
- const markAsRead = chunkMSHCIIXL_cjs.useMarkAsRead();
6989
- const markAllAsRead = chunkMSHCIIXL_cjs.useMarkAllAsRead();
7087
+ const markAsRead = chunkFJ4KYZYG_cjs.useMarkAsRead();
7088
+ const markAllAsRead = chunkFJ4KYZYG_cjs.useMarkAllAsRead();
6990
7089
  React8.useEffect(() => {
6991
7090
  if (!data2?.notifications) return;
6992
7091
  setNotifications((prev) => {
@@ -7220,7 +7319,7 @@ function ConsoleHeader() {
7220
7319
  window.addEventListener("scroll", handleScroll);
7221
7320
  return () => window.removeEventListener("scroll", handleScroll);
7222
7321
  }, []);
7223
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
7322
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
7224
7323
  return /* @__PURE__ */ jsxRuntime.jsx(
7225
7324
  "div",
7226
7325
  {
@@ -7279,52 +7378,62 @@ function ConsoleHeader() {
7279
7378
  }
7280
7379
  );
7281
7380
  }
7381
+
7382
+ // src/constants/layout.constant.ts
7383
+ var HeaderHeight = 60;
7282
7384
  function DashboardHeader(props) {
7283
7385
  const { forwardedTo, redirectPaths, navigationMenus } = props;
7284
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
7386
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkROV7S3SC_cjs.SidebarContext);
7285
7387
  const { pathname } = reactRouter.useLocation();
7286
7388
  const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7287
7389
  const projectName = selectedProject?.name;
7288
7390
  const environment = selectedProject?.environment;
7289
7391
  const isProjectOverviewRoute = pathname.includes("/project");
7290
7392
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7291
- /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "relative z-40 flex h-[60px] shrink-0 items-center justify-between gap-4 border-b bg-background px-5 sm:px-6", children: [
7292
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
7293
- SidebarMobileView,
7294
- {
7295
- redirectPaths,
7296
- navigationMenus
7297
- }
7298
- ) }),
7299
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden items-center md:flex", children: [
7300
- /* @__PURE__ */ jsxRuntime.jsx(
7301
- Button,
7302
- {
7303
- variant: "ghost",
7304
- size: "icon",
7305
- className: chunkSDWR3F3Y_cjs.cn(
7306
- "hidden shrink-0 p-0",
7307
- !isSidebarOpen && "inline-flex"
7393
+ /* @__PURE__ */ jsxRuntime.jsxs(
7394
+ "header",
7395
+ {
7396
+ style: { height: HeaderHeight },
7397
+ className: "relative z-40 flex shrink-0 items-center justify-between gap-4 border-b bg-background px-5 sm:px-6",
7398
+ children: [
7399
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
7400
+ SidebarMobileView,
7401
+ {
7402
+ redirectPaths,
7403
+ navigationMenus
7404
+ }
7405
+ ) }),
7406
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden items-center md:flex", children: [
7407
+ /* @__PURE__ */ jsxRuntime.jsx(
7408
+ Button,
7409
+ {
7410
+ variant: "ghost",
7411
+ size: "icon",
7412
+ className: chunkSDWR3F3Y_cjs.cn(
7413
+ "hidden shrink-0 p-0",
7414
+ !isSidebarOpen && "inline-flex"
7415
+ ),
7416
+ onClick: toggleSidebar,
7417
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { className: "h-6 w-6" })
7418
+ }
7308
7419
  ),
7309
- onClick: toggleSidebar,
7310
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { className: "h-6 w-6" })
7311
- }
7312
- ),
7313
- !isProjectOverviewRoute && !isSidebarOpen && (projectName || environment) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-3 flex min-w-0 items-center gap-1.5", children: [
7314
- /* @__PURE__ */ jsxRuntime.jsx(SelectedProject, {}),
7315
- projectName && environment && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
7316
- /* @__PURE__ */ jsxRuntime.jsx(SelectedEnvironment, {})
7317
- ] })
7318
- ] }),
7319
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-50 flex items-center gap-4", children: [
7320
- /* @__PURE__ */ jsxRuntime.jsx(BackToConsoleNavigator, {}),
7321
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(ThemeSwitcher, {}) }),
7322
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(Notification, {}) }),
7323
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(LanguageSelector, {}) }),
7324
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(AppSwitcher, { forwardedTo }) }),
7325
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(UserDropdownMenu, {}) })
7326
- ] })
7327
- ] }),
7420
+ !isProjectOverviewRoute && !isSidebarOpen && (projectName || environment) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-3 flex min-w-0 items-center gap-1.5", children: [
7421
+ /* @__PURE__ */ jsxRuntime.jsx(SelectedProject, {}),
7422
+ projectName && environment && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
7423
+ /* @__PURE__ */ jsxRuntime.jsx(SelectedEnvironment, {})
7424
+ ] })
7425
+ ] }),
7426
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-50 flex items-center gap-4", children: [
7427
+ /* @__PURE__ */ jsxRuntime.jsx(BackToConsoleNavigator, {}),
7428
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(ThemeSwitcher, {}) }),
7429
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(Notification, {}) }),
7430
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(LanguageSelector, {}) }),
7431
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(AppSwitcher, { forwardedTo }) }),
7432
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(UserDropdownMenu, {}) })
7433
+ ] })
7434
+ ]
7435
+ }
7436
+ ),
7328
7437
  !isProjectOverviewRoute && (projectName || environment) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-b bg-background px-5 py-3 sm:px-6 md:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
7329
7438
  /* @__PURE__ */ jsxRuntime.jsx(SelectedProject, {}),
7330
7439
  /* @__PURE__ */ jsxRuntime.jsx(SelectedEnvironment, {})
@@ -7389,7 +7498,7 @@ var EnvironmentCard = ({
7389
7498
  className
7390
7499
  }) => {
7391
7500
  const { setSelectedProject, setTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
7392
- const { mutateAsync } = chunkPSATBGVF_cjs.useStartImpersonation();
7501
+ const { mutateAsync } = chunkU3WXD3OX_cjs.useStartImpersonation();
7393
7502
  const navigate = reactRouter.useNavigate();
7394
7503
  const handleCardClick = async () => {
7395
7504
  try {
@@ -7443,11 +7552,11 @@ function EnvironmentList({
7443
7552
  }) {
7444
7553
  const navigate = reactRouter.useNavigate();
7445
7554
  const { pathname } = reactRouter.useLocation();
7446
- const { data: projectGroups = [], isLoading } = chunkPSATBGVF_cjs.useGetProjects({
7555
+ const { data: projectGroups = [], isLoading } = chunkU3WXD3OX_cjs.useGetProjects({
7447
7556
  enabled: true
7448
7557
  });
7449
7558
  const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7450
- const { data: projectData } = chunkPSATBGVF_cjs.useGetProject();
7559
+ const { data: projectData } = chunkU3WXD3OX_cjs.useGetProject();
7451
7560
  const pendingProjectRef = React8.useRef(null);
7452
7561
  const redirectRegexMap = React8.useMemo(
7453
7562
  () => Object.entries(redirectPaths).reduce(
@@ -7571,21 +7680,24 @@ function SelectedProject() {
7571
7680
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
7572
7681
  ] });
7573
7682
  }
7683
+ function PublicLayout({ children }) {
7684
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.PublicGuard, { children }) });
7685
+ }
7574
7686
  function AuthLayout({ children, logo, sidePanel }) {
7575
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.PublicGuard, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
7687
+ return /* @__PURE__ */ jsxRuntime.jsx(PublicLayout, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
7576
7688
  logo,
7577
7689
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-10 flex w-full max-w-6xl flex-col gap-8 lg:flex-row lg:items-start lg:justify-center", children: [
7578
7690
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children }),
7579
7691
  sidePanel ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children: sidePanel }) : null
7580
7692
  ] })
7581
- ] }) }) });
7693
+ ] }) });
7582
7694
  }
7583
7695
  function ConsoleLayout({ children, wrapper }) {
7584
7696
  const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-h-screen bg-[hsl(var(--surface-app))]", children: [
7585
7697
  /* @__PURE__ */ jsxRuntime.jsx(ConsoleHeader, {}),
7586
7698
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "pt-[59px]", children })
7587
7699
  ] });
7588
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7700
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7589
7701
  }
7590
7702
  function DashboardLayout({
7591
7703
  children,
@@ -7594,7 +7706,7 @@ function DashboardLayout({
7594
7706
  navigationMenus,
7595
7707
  forwardedTo
7596
7708
  }) {
7597
- const content = /* @__PURE__ */ jsxRuntime.jsx(chunkJTSGZMKE_cjs.DashboardLayoutProvider, { isOpen: true, persist: true, children: /* @__PURE__ */ jsxRuntime.jsx(AgentPanelProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
7709
+ const content = /* @__PURE__ */ jsxRuntime.jsx(chunkROV7S3SC_cjs.DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelProvider, { resizable: true, topOffset: HeaderHeight, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
7598
7710
  /* @__PURE__ */ jsxRuntime.jsx(
7599
7711
  SidebarMenuDesktop,
7600
7712
  {
@@ -7615,13 +7727,13 @@ function DashboardLayout({
7615
7727
  "div",
7616
7728
  {
7617
7729
  "data-slot": "dashboard-main",
7618
- className: "min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden transition-[margin] duration-300 ease-in-out lg:mr-[var(--agent-panel-width)]",
7730
+ className: "min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden transition-[margin] duration-300 ease-in-out lg:mr-[var(--right-side-panel-width)]",
7619
7731
  children
7620
7732
  }
7621
7733
  ) })
7622
7734
  ] })
7623
7735
  ] }) }) });
7624
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7736
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7625
7737
  }
7626
7738
  var DEFAULT_EXCLUDE_PREFIXES = ["/app/project"];
7627
7739
  var withScopedItemId = (menus, itemId, excludePrefixes) => menus.map((menu) => {
@@ -7667,9 +7779,6 @@ function OidcLayout({
7667
7779
  const contextValue = React8.useMemo(() => value ?? { isLoading: false }, [value]);
7668
7780
  return /* @__PURE__ */ jsxRuntime.jsx(OidcContext.Provider, { value: contextValue, children });
7669
7781
  }
7670
- function PublicLayout({ children }) {
7671
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.PublicGuard, { children }) });
7672
- }
7673
7782
  var LoginHeader = ({
7674
7783
  docsUrl = "https://docs.seliseblocks.com/",
7675
7784
  blocksUrl = "https://seliseblocks.com",
@@ -7677,7 +7786,7 @@ var LoginHeader = ({
7677
7786
  }) => {
7678
7787
  const {
7679
7788
  config: { appLogoUrl }
7680
- } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state);
7789
+ } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state);
7681
7790
  const resolveLogo = (variant) => {
7682
7791
  if (!appLogoUrl) return void 0;
7683
7792
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -8881,8 +8990,8 @@ var BlocksLoginPage = ({
8881
8990
  ] });
8882
8991
  };
8883
8992
  var LoginPage = () => {
8884
- const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8885
- const { start, isLoading } = chunkMSHCIIXL_cjs.useLogin();
8993
+ const config = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8994
+ const { start, isLoading } = chunkFJ4KYZYG_cjs.useLogin();
8886
8995
  return /* @__PURE__ */ jsxRuntime.jsx(
8887
8996
  BlocksLoginPage,
8888
8997
  {
@@ -8945,7 +9054,7 @@ var data = [
8945
9054
  label: "Docs",
8946
9055
  description: "Established standards that help project managers and technical leaders minimize project risks.",
8947
9056
  image: console_timeline_default,
8948
- url: "https://github.com/SELISEdigitalplatforms/Wiki-BlocksGuideline-Code/wiki"
9057
+ url: "https://docs.seliseblocks.com"
8949
9058
  },
8950
9059
  {
8951
9060
  label: "Code",
@@ -8964,10 +9073,10 @@ var DefaultDoc = () => {
8964
9073
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-5 md:grid-cols-2 lg:grid-cols-3", children: data.map((item) => /* @__PURE__ */ jsxRuntime.jsx(DocCard, { ...item }, item.url)) });
8965
9074
  };
8966
9075
  function useCreateProjectRedirect() {
8967
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9076
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
8968
9077
  const navigate = reactRouter.useNavigate();
8969
9078
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
8970
- const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
9079
+ const { isFetching, isReady, redirect } = chunkFJ4KYZYG_cjs.usePrefetchRedirect({
8971
9080
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
8972
9081
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
8973
9082
  forwardedTo: "/app/create-project",
@@ -9059,10 +9168,10 @@ function useProjectOverviewRedirect({
9059
9168
  tenantGroupId
9060
9169
  }) {
9061
9170
  const navigate = reactRouter.useNavigate();
9062
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9171
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
9063
9172
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9064
9173
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
9065
- const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
9174
+ const { isFetching, isReady, redirect } = chunkFJ4KYZYG_cjs.usePrefetchRedirect({
9066
9175
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
9067
9176
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9068
9177
  forwardedTo: redirectedRoute,
@@ -9227,7 +9336,7 @@ var SelfProjectLoading = () => {
9227
9336
  ) });
9228
9337
  };
9229
9338
  var SelfProject = ({ canCreateProject = false }) => {
9230
- const { data: data2, isLoading, isFetching } = chunkPSATBGVF_cjs.useGetProjects({ enabled: true });
9339
+ const { data: data2, isLoading, isFetching } = chunkU3WXD3OX_cjs.useGetProjects({ enabled: true });
9231
9340
  if (isLoading || isFetching) return /* @__PURE__ */ jsxRuntime.jsx(SelfProjectLoading, {});
9232
9341
  const projectGroups = data2 || [];
9233
9342
  if (!projectGroups.length && canCreateProject)
@@ -9330,7 +9439,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
9330
9439
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
9331
9440
  };
9332
9441
  function ProfilePage() {
9333
- const { isLoading, error } = chunkMSHCIIXL_cjs.useInitiateRedirect({
9442
+ const { isLoading, error } = chunkFJ4KYZYG_cjs.useInitiateRedirect({
9334
9443
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
9335
9444
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
9336
9445
  forwardedTo: "/app/profile"
@@ -9608,8 +9717,8 @@ var ConfirmationModal = ({
9608
9717
  ] })
9609
9718
  ] });
9610
9719
  var DashboardOverview = () => {
9611
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9612
- const { data: data2, isFetching } = chunkPSATBGVF_cjs.useGetProject();
9720
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
9721
+ const { data: data2, isFetching } = chunkU3WXD3OX_cjs.useGetProject();
9613
9722
  const {
9614
9723
  endpoints,
9615
9724
  isLoading: isLoadingEndpoints,
@@ -9703,11 +9812,11 @@ function ProjectList({
9703
9812
  }) {
9704
9813
  const navigate = reactRouter.useNavigate();
9705
9814
  const { pathname } = reactRouter.useLocation();
9706
- const { data: projectGroups = [], isLoading } = chunkPSATBGVF_cjs.useGetProjects({
9815
+ const { data: projectGroups = [], isLoading } = chunkU3WXD3OX_cjs.useGetProjects({
9707
9816
  enabled: true
9708
9817
  });
9709
9818
  const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
9710
- const { data: projectData } = chunkPSATBGVF_cjs.useGetProject();
9819
+ const { data: projectData } = chunkU3WXD3OX_cjs.useGetProject();
9711
9820
  const pendingProjectRef = React8.useRef(null);
9712
9821
  const redirectRegexMap = React8.useMemo(
9713
9822
  () => Object.entries(redirectPaths).reduce(
@@ -9856,7 +9965,7 @@ var SetCustomDomainDialog = ({
9856
9965
  projectKey,
9857
9966
  projectEnv
9858
9967
  }) => {
9859
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useUpdateRepositories();
9968
+ const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useUpdateRepositories();
9860
9969
  const verifiedDomains = React8.useMemo(
9861
9970
  () => Array.from(
9862
9971
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -10040,7 +10149,7 @@ var ProjectRepoList = ({
10040
10149
  data: envRepositoriesResponse,
10041
10150
  isLoading: isLoadingEnvRepos,
10042
10151
  isFetching: isFetchingEnvRepos
10043
- } = chunkPSATBGVF_cjs.useGetEnvRepositories(project?.tenantId || "");
10152
+ } = chunkU3WXD3OX_cjs.useGetEnvRepositories(project?.tenantId || "");
10044
10153
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
10045
10154
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 rounded-lg border bg-card px-2 py-2 shadow-sm md:mt-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid-col-1 grid gap-3 px-2 py-4 md:grid-cols-2 md:gap-4 lg:gap-6", children: ["sk-1", "sk-2", "sk-3", "sk-4", "sk-5", "sk-6"].map((itemKey) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
10046
10155
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -10140,7 +10249,7 @@ var EditProjectForm = ({
10140
10249
  onAfterSubmit
10141
10250
  }) => {
10142
10251
  const queryClient = reactQuery.useQueryClient();
10143
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useUpdateTenantGroup();
10252
+ const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useUpdateTenantGroup();
10144
10253
  const form = reactHookForm.useForm({
10145
10254
  resolver: zod$1.zodResolver(editProjectFormSchema),
10146
10255
  defaultValues: {
@@ -10268,7 +10377,7 @@ function SidebarMobileView({
10268
10377
  navigationMenus
10269
10378
  }) {
10270
10379
  const [open, setOpen] = React8.useState(false);
10271
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
10380
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
10272
10381
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
10273
10382
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
10274
10383
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -10317,15 +10426,15 @@ function SidebarMenuDesktop({
10317
10426
  redirectPaths,
10318
10427
  navigationMenus
10319
10428
  }) {
10320
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
10321
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
10322
- const icon = chunkMSHCIIXL_cjs.useIcon();
10429
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkROV7S3SC_cjs.SidebarContext);
10430
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
10431
+ const icon = chunkFJ4KYZYG_cjs.useIcon();
10323
10432
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
10324
10433
  const { isActivePath: isProjectOverviewRoute } = chunkQ7Y32IBM_cjs.useIsActiveMenu("/app/project");
10325
10434
  return /* @__PURE__ */ jsxRuntime.jsxs(
10326
10435
  "div",
10327
10436
  {
10328
- className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-all md:flex ${isSidebarOpen ? "min-w-60" : "w-14"}`,
10437
+ className: `hidden h-screen shrink-0 flex-col overflow-hidden border-r bg-background transition-[width] duration-300 ease-in-out md:flex ${isSidebarOpen ? "w-60" : "w-14"}`,
10329
10438
  children: [
10330
10439
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
10331
10440
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -10448,7 +10557,7 @@ var ErrorBoundary = class extends React8.Component {
10448
10557
  var ArchiveProject = () => {
10449
10558
  const navigate = reactRouter.useNavigate();
10450
10559
  const projectKey = chunkVAKGHXK6_cjs.useProjectStore().selectedProject?.tenantId || "";
10451
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useDisableProject({ projectKey });
10560
+ const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useDisableProject({ projectKey });
10452
10561
  const onClickHandler = async () => {
10453
10562
  try {
10454
10563
  const res = await mutateAsync();
@@ -11411,7 +11520,7 @@ function MultiSelect2({
11411
11520
  onChange,
11412
11521
  value: selectedValues
11413
11522
  }) {
11414
- const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11523
+ const [buttonRef, popoverWidth] = chunkFJ4KYZYG_cjs.usePopoverWidth();
11415
11524
  const onSelectHandler = (value) => {
11416
11525
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
11417
11526
  onChange(nextValues);
@@ -11528,7 +11637,7 @@ var ClearButton = ({ onClear }) => {
11528
11637
  };
11529
11638
  function Radio({ label, options, onChange, value }) {
11530
11639
  const [search, setSearch] = React8.useState("");
11531
- const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11640
+ const [buttonRef, popoverWidth] = chunkFJ4KYZYG_cjs.usePopoverWidth();
11532
11641
  const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
11533
11642
  const selected = React8.useMemo(
11534
11643
  () => options.find((item) => item.value === value) || null,
@@ -12260,15 +12369,6 @@ exports.Accordion = Accordion;
12260
12369
  exports.AccordionContent = AccordionContent;
12261
12370
  exports.AccordionItem = AccordionItem;
12262
12371
  exports.AccordionTrigger = AccordionTrigger;
12263
- exports.AgentPanel = AgentPanel;
12264
- exports.AgentPanelBody = AgentPanelBody;
12265
- exports.AgentPanelClose = AgentPanelClose;
12266
- exports.AgentPanelDescription = AgentPanelDescription;
12267
- exports.AgentPanelFooter = AgentPanelFooter;
12268
- exports.AgentPanelHeader = AgentPanelHeader;
12269
- exports.AgentPanelProvider = AgentPanelProvider;
12270
- exports.AgentPanelTitle = AgentPanelTitle;
12271
- exports.AgentPanelTrigger = AgentPanelTrigger;
12272
12372
  exports.Alert = Alert;
12273
12373
  exports.AlertDescription = AlertDescription;
12274
12374
  exports.AlertDialog = AlertDialog;
@@ -12497,6 +12597,15 @@ exports.RenderConditionally = RenderConditionally;
12497
12597
  exports.ResizableHandle = ResizableHandle;
12498
12598
  exports.ResizablePanel = ResizablePanel;
12499
12599
  exports.ResizablePanelGroup = ResizablePanelGroup;
12600
+ exports.RightSidePanel = RightSidePanel;
12601
+ exports.RightSidePanelBody = RightSidePanelBody;
12602
+ exports.RightSidePanelClose = RightSidePanelClose;
12603
+ exports.RightSidePanelDescription = RightSidePanelDescription;
12604
+ exports.RightSidePanelFooter = RightSidePanelFooter;
12605
+ exports.RightSidePanelHeader = RightSidePanelHeader;
12606
+ exports.RightSidePanelProvider = RightSidePanelProvider;
12607
+ exports.RightSidePanelTitle = RightSidePanelTitle;
12608
+ exports.RightSidePanelTrigger = RightSidePanelTrigger;
12500
12609
  exports.ScrollArea = ScrollArea;
12501
12610
  exports.ScrollBar = ScrollBar;
12502
12611
  exports.Select = Select;
@@ -12597,13 +12706,13 @@ exports.sidebarCollapsedTooltipClass = sidebarCollapsedTooltipClass;
12597
12706
  exports.sortQueryParsers = sortQueryParsers;
12598
12707
  exports.spinnerVariants = spinnerVariants;
12599
12708
  exports.toggleVariants = toggleVariants;
12600
- exports.useAgentPanel = useAgentPanel;
12601
12709
  exports.useFileUpload = useFileUpload;
12602
12710
  exports.useFormField = useFormField;
12603
12711
  exports.useNotificationSocket = useNotificationSocket;
12604
12712
  exports.useOidcContext = useOidcContext;
12605
12713
  exports.usePaginationQueryParams = usePaginationQueryParams;
12714
+ exports.useRightSidePanel = useRightSidePanel;
12606
12715
  exports.useSortQueryParams = useSortQueryParams;
12607
12716
  exports.useWizardStepper = useWizardStepper;
12608
- //# sourceMappingURL=chunk-VNUHUNWE.cjs.map
12609
- //# sourceMappingURL=chunk-VNUHUNWE.cjs.map
12717
+ //# sourceMappingURL=chunk-WOKUPQ7C.cjs.map
12718
+ //# sourceMappingURL=chunk-WOKUPQ7C.cjs.map