@seliseblocks/genesis-os 4.2.1 → 4.2.3

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 (55) 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-RYEW56RI.js → chunk-5W2NUWTD.js} +4 -4
  4. package/dist/{chunk-RYEW56RI.js.map → chunk-5W2NUWTD.js.map} +1 -1
  5. package/dist/{chunk-CEXYN2ZD.js → chunk-6WBFAHAO.js} +18 -3
  6. package/dist/chunk-6WBFAHAO.js.map +1 -0
  7. package/dist/{chunk-MSHCIIXL.cjs → chunk-FJ4KYZYG.cjs} +5 -5
  8. package/dist/{chunk-MSHCIIXL.cjs.map → chunk-FJ4KYZYG.cjs.map} +1 -1
  9. package/dist/{chunk-6RCHFJ4C.js → chunk-FZ2R62Q6.js} +26 -64
  10. package/dist/chunk-FZ2R62Q6.js.map +1 -0
  11. package/dist/{chunk-PSATBGVF.cjs → chunk-GZY23QP3.cjs} +4 -4
  12. package/dist/{chunk-PSATBGVF.cjs.map → chunk-GZY23QP3.cjs.map} +1 -1
  13. package/dist/{chunk-JTSGZMKE.cjs → chunk-M3KOYPCN.cjs} +28 -66
  14. package/dist/chunk-M3KOYPCN.cjs.map +1 -0
  15. package/dist/{chunk-HTZX5UUU.cjs → chunk-PNNMTGAJ.cjs} +12 -12
  16. package/dist/{chunk-HTZX5UUU.cjs.map → chunk-PNNMTGAJ.cjs.map} +1 -1
  17. package/dist/{chunk-MCOK3TFE.js → chunk-RANV4RPG.js} +3 -3
  18. package/dist/{chunk-MCOK3TFE.js.map → chunk-RANV4RPG.js.map} +1 -1
  19. package/dist/{chunk-WKZJV3E7.js → chunk-RZ3F7SL3.js} +3 -3
  20. package/dist/{chunk-WKZJV3E7.js.map → chunk-RZ3F7SL3.js.map} +1 -1
  21. package/dist/{chunk-VNUHUNWE.cjs → chunk-SONN5ZUL.cjs} +259 -188
  22. package/dist/chunk-SONN5ZUL.cjs.map +1 -0
  23. package/dist/{chunk-QWUCV4KF.js → chunk-Z7POHR7A.js} +201 -130
  24. package/dist/chunk-Z7POHR7A.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.js +6 -6
  39. package/dist/pages/index.cjs +11 -11
  40. package/dist/pages/index.js +6 -6
  41. package/dist/providers/index.cjs +6 -6
  42. package/dist/providers/index.d.cts +1 -3
  43. package/dist/providers/index.d.ts +1 -3
  44. package/dist/providers/index.js +2 -2
  45. package/dist/store/index.cjs +10 -6
  46. package/dist/store/index.d.cts +25 -1
  47. package/dist/store/index.d.ts +25 -1
  48. package/dist/store/index.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunk-6RCHFJ4C.js.map +0 -1
  51. package/dist/chunk-CEXYN2ZD.js.map +0 -1
  52. package/dist/chunk-JTSGZMKE.cjs.map +0 -1
  53. package/dist/chunk-QWUCV4KF.js.map +0 -1
  54. package/dist/chunk-VNUHUNWE.cjs.map +0 -1
  55. 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 chunkM3KOYPCN_cjs = require('./chunk-M3KOYPCN.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 chunkPNNMTGAJ_cjs = require('./chunk-PNNMTGAJ.cjs');
9
+ var chunkGZY23QP3_cjs = require('./chunk-GZY23QP3.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(chunkM3KOYPCN_cjs.RightSidePanelContext) ?? chunkM3KOYPCN_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(chunkM3KOYPCN_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);
@@ -6354,15 +6434,6 @@ function SidebarCollapsedTooltip({
6354
6434
  )
6355
6435
  ] });
6356
6436
  }
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
6437
  function RenderAlternatively({
6367
6438
  condition,
6368
6439
  whenTrue,
@@ -6589,7 +6660,7 @@ function useAppRedirectUrls({
6589
6660
  const controller = new AbortController();
6590
6661
  const { signal } = controller;
6591
6662
  stableApps.forEach((app) => {
6592
- chunkMSHCIIXL_cjs.initiateService.fetchRedirectUrl({
6663
+ chunkFJ4KYZYG_cjs.initiateService.fetchRedirectUrl({
6593
6664
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv(app.clientId),
6594
6665
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv(app.redirectUri),
6595
6666
  forwardedTo: resolveRef.current(app)
@@ -6615,7 +6686,7 @@ function useAppRedirectUrls({
6615
6686
  }
6616
6687
  var AppSwitcher = ({ forwardedTo }) => {
6617
6688
  const [open, setOpen] = React8.useState(false);
6618
- const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6689
+ const config = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.getConfig());
6619
6690
  const filteredApps = React8.useMemo(
6620
6691
  () => filteredAppSwitcherData.filter((app) => app.id !== config.name),
6621
6692
  [config.name]
@@ -6648,7 +6719,7 @@ var OPTIONS = [
6648
6719
  { value: "dark", Icon: lucideReact.Moon, label: "Dark" }
6649
6720
  ];
6650
6721
  function ThemeSwitcher() {
6651
- const { theme, setTheme } = chunkMSHCIIXL_cjs.useTheme();
6722
+ const { theme, setTheme } = chunkFJ4KYZYG_cjs.useTheme();
6652
6723
  return /* @__PURE__ */ jsxRuntime.jsx(
6653
6724
  Tabs,
6654
6725
  {
@@ -6678,7 +6749,7 @@ var UserService = class {
6678
6749
  };
6679
6750
  var userService = new UserService();
6680
6751
  var useGetUserInfo = (options) => {
6681
- const userStore = chunkVNUPOJ7H_cjs.useUserStore();
6752
+ const userStore = chunk3VNGGYRG_cjs.useUserStore();
6682
6753
  return reactQuery.useQuery({
6683
6754
  queryKey: ["user-info"],
6684
6755
  queryFn: async () => {
@@ -6690,7 +6761,7 @@ var useGetUserInfo = (options) => {
6690
6761
  });
6691
6762
  };
6692
6763
  function UserAvatar({ size = "sm" }) {
6693
- const { userDetails: userData } = chunkVNUPOJ7H_cjs.useUserStore();
6764
+ const { userDetails: userData } = chunk3VNGGYRG_cjs.useUserStore();
6694
6765
  const initials = `${userData?.firstName?.[0] || ""}${userData?.lastName?.[0] || ""}`.toUpperCase();
6695
6766
  const sizeClass = size === "lg" ? "h-14 w-14 text-xl" : "h-10 w-10 text-base";
6696
6767
  if (userData?.profileImageUrl) {
@@ -6715,14 +6786,14 @@ function UserAvatar({ size = "sm" }) {
6715
6786
  );
6716
6787
  }
6717
6788
  function UserDropdownMenu() {
6718
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
6789
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
6719
6790
  const { data: data2 } = useGetUserInfo();
6720
6791
  const userData = data2?.data;
6721
- const { isPending, mutateAsync } = chunkMSHCIIXL_cjs.useLogout();
6792
+ const { isPending, mutateAsync } = chunkFJ4KYZYG_cjs.useLogout();
6722
6793
  const { resetProjectStore } = chunkVAKGHXK6_cjs.useProjectStore();
6723
6794
  const { setUnAuthenticated, clearTokens } = chunkVAKGHXK6_cjs.useAuthStore();
6724
- const { resetSelectedLanguages } = chunkVNUPOJ7H_cjs.useLanguageViewStore();
6725
- const { data: myOrgsData, isLoading: isOrgsLoading } = chunkMSHCIIXL_cjs.useGetMyOrganizations();
6795
+ const { resetSelectedLanguages } = chunk3VNGGYRG_cjs.useLanguageViewStore();
6796
+ const { data: myOrgsData, isLoading: isOrgsLoading } = chunkFJ4KYZYG_cjs.useGetMyOrganizations();
6726
6797
  const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
6727
6798
  const email = userData?.email || "";
6728
6799
  const roles = Object.values(userData?.roles || {}).flat();
@@ -6852,7 +6923,7 @@ var languages = [
6852
6923
  { key: "fr", title: "French" }
6853
6924
  ];
6854
6925
  function LanguageSelector() {
6855
- const { changeLanguage, language } = chunkMSHCIIXL_cjs.useLanguageSwitcher();
6926
+ const { changeLanguage, language } = chunkFJ4KYZYG_cjs.useLanguageSwitcher();
6856
6927
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
6857
6928
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
6858
6929
  "button",
@@ -6942,7 +7013,7 @@ var notificationListenerService = new NotificationListenerService();
6942
7013
 
6943
7014
  // src/components/common/notification/use-notification-socket.ts
6944
7015
  function useNotificationSocket() {
6945
- const { data: configData } = chunkMSHCIIXL_cjs.useGetBlocksNotificationConfig(0, 100);
7016
+ const { data: configData } = chunkFJ4KYZYG_cjs.useGetBlocksNotificationConfig(0, 100);
6946
7017
  const queryClient = reactQuery.useQueryClient();
6947
7018
  notificationListenerService.connect();
6948
7019
  React8.useEffect(() => {
@@ -6957,7 +7028,7 @@ function useNotificationSocket() {
6957
7028
  notificationListenerService.connection.on(
6958
7029
  config.notifyMethod,
6959
7030
  (message) => {
6960
- chunkMSHCIIXL_cjs.notificationService.getNotificationConfig(config, message);
7031
+ chunkFJ4KYZYG_cjs.notificationService.getNotificationConfig(config, message);
6961
7032
  try {
6962
7033
  const notice = typeof message === "string" ? JSON.parse(message) : message;
6963
7034
  const denom = JSON.parse(
@@ -6981,12 +7052,12 @@ function useNotificationFeed(open) {
6981
7052
  const [notifications, setNotifications] = React8.useState([]);
6982
7053
  const [hasMore, setHasMore] = React8.useState(true);
6983
7054
  const listRef = React8.useRef(null);
6984
- const { data: data2, isLoading, isFetching } = chunkMSHCIIXL_cjs.useGetNotifications(
7055
+ const { data: data2, isLoading, isFetching } = chunkFJ4KYZYG_cjs.useGetNotifications(
6985
7056
  pageNumber,
6986
7057
  PAGE_SIZE
6987
7058
  );
6988
- const markAsRead = chunkMSHCIIXL_cjs.useMarkAsRead();
6989
- const markAllAsRead = chunkMSHCIIXL_cjs.useMarkAllAsRead();
7059
+ const markAsRead = chunkFJ4KYZYG_cjs.useMarkAsRead();
7060
+ const markAllAsRead = chunkFJ4KYZYG_cjs.useMarkAllAsRead();
6990
7061
  React8.useEffect(() => {
6991
7062
  if (!data2?.notifications) return;
6992
7063
  setNotifications((prev) => {
@@ -7220,7 +7291,7 @@ function ConsoleHeader() {
7220
7291
  window.addEventListener("scroll", handleScroll);
7221
7292
  return () => window.removeEventListener("scroll", handleScroll);
7222
7293
  }, []);
7223
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
7294
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
7224
7295
  return /* @__PURE__ */ jsxRuntime.jsx(
7225
7296
  "div",
7226
7297
  {
@@ -7281,7 +7352,7 @@ function ConsoleHeader() {
7281
7352
  }
7282
7353
  function DashboardHeader(props) {
7283
7354
  const { forwardedTo, redirectPaths, navigationMenus } = props;
7284
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
7355
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkM3KOYPCN_cjs.SidebarContext);
7285
7356
  const { pathname } = reactRouter.useLocation();
7286
7357
  const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7287
7358
  const projectName = selectedProject?.name;
@@ -7389,7 +7460,7 @@ var EnvironmentCard = ({
7389
7460
  className
7390
7461
  }) => {
7391
7462
  const { setSelectedProject, setTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
7392
- const { mutateAsync } = chunkPSATBGVF_cjs.useStartImpersonation();
7463
+ const { mutateAsync } = chunkGZY23QP3_cjs.useStartImpersonation();
7393
7464
  const navigate = reactRouter.useNavigate();
7394
7465
  const handleCardClick = async () => {
7395
7466
  try {
@@ -7443,11 +7514,11 @@ function EnvironmentList({
7443
7514
  }) {
7444
7515
  const navigate = reactRouter.useNavigate();
7445
7516
  const { pathname } = reactRouter.useLocation();
7446
- const { data: projectGroups = [], isLoading } = chunkPSATBGVF_cjs.useGetProjects({
7517
+ const { data: projectGroups = [], isLoading } = chunkGZY23QP3_cjs.useGetProjects({
7447
7518
  enabled: true
7448
7519
  });
7449
7520
  const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
7450
- const { data: projectData } = chunkPSATBGVF_cjs.useGetProject();
7521
+ const { data: projectData } = chunkGZY23QP3_cjs.useGetProject();
7451
7522
  const pendingProjectRef = React8.useRef(null);
7452
7523
  const redirectRegexMap = React8.useMemo(
7453
7524
  () => Object.entries(redirectPaths).reduce(
@@ -7572,7 +7643,7 @@ function SelectedProject() {
7572
7643
  ] });
7573
7644
  }
7574
7645
  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: [
7646
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.PublicGuard, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
7576
7647
  logo,
7577
7648
  /* @__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
7649
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children }),
@@ -7585,7 +7656,7 @@ function ConsoleLayout({ children, wrapper }) {
7585
7656
  /* @__PURE__ */ jsxRuntime.jsx(ConsoleHeader, {}),
7586
7657
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "pt-[59px]", children })
7587
7658
  ] });
7588
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7659
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
7589
7660
  }
7590
7661
  function DashboardLayout({
7591
7662
  children,
@@ -7594,7 +7665,7 @@ function DashboardLayout({
7594
7665
  navigationMenus,
7595
7666
  forwardedTo
7596
7667
  }) {
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: [
7668
+ const content = /* @__PURE__ */ jsxRuntime.jsx(chunkM3KOYPCN_cjs.DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelProvider, { resizable: true, topOffset: "60px", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
7598
7669
  /* @__PURE__ */ jsxRuntime.jsx(
7599
7670
  SidebarMenuDesktop,
7600
7671
  {
@@ -7615,13 +7686,13 @@ function DashboardLayout({
7615
7686
  "div",
7616
7687
  {
7617
7688
  "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)]",
7689
+ 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
7690
  children
7620
7691
  }
7621
7692
  ) })
7622
7693
  ] })
7623
7694
  ] }) }) });
7624
- return /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7695
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
7625
7696
  }
7626
7697
  var DEFAULT_EXCLUDE_PREFIXES = ["/app/project"];
7627
7698
  var withScopedItemId = (menus, itemId, excludePrefixes) => menus.map((menu) => {
@@ -7668,7 +7739,7 @@ function OidcLayout({
7668
7739
  return /* @__PURE__ */ jsxRuntime.jsx(OidcContext.Provider, { value: contextValue, children });
7669
7740
  }
7670
7741
  function PublicLayout({ children }) {
7671
- return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTZX5UUU_cjs.PublicGuard, { children }) });
7742
+ return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.PublicGuard, { children }) });
7672
7743
  }
7673
7744
  var LoginHeader = ({
7674
7745
  docsUrl = "https://docs.seliseblocks.com/",
@@ -7677,7 +7748,7 @@ var LoginHeader = ({
7677
7748
  }) => {
7678
7749
  const {
7679
7750
  config: { appLogoUrl }
7680
- } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state);
7751
+ } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state);
7681
7752
  const resolveLogo = (variant) => {
7682
7753
  if (!appLogoUrl) return void 0;
7683
7754
  if (typeof appLogoUrl === "string") return appLogoUrl;
@@ -8881,8 +8952,8 @@ var BlocksLoginPage = ({
8881
8952
  ] });
8882
8953
  };
8883
8954
  var LoginPage = () => {
8884
- const config = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8885
- const { start, isLoading } = chunkMSHCIIXL_cjs.useLogin();
8955
+ const config = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.getConfig());
8956
+ const { start, isLoading } = chunkFJ4KYZYG_cjs.useLogin();
8886
8957
  return /* @__PURE__ */ jsxRuntime.jsx(
8887
8958
  BlocksLoginPage,
8888
8959
  {
@@ -8945,7 +9016,7 @@ var data = [
8945
9016
  label: "Docs",
8946
9017
  description: "Established standards that help project managers and technical leaders minimize project risks.",
8947
9018
  image: console_timeline_default,
8948
- url: "https://github.com/SELISEdigitalplatforms/Wiki-BlocksGuideline-Code/wiki"
9019
+ url: "https://docs.seliseblocks.com"
8949
9020
  },
8950
9021
  {
8951
9022
  label: "Code",
@@ -8964,10 +9035,10 @@ var DefaultDoc = () => {
8964
9035
  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
9036
  };
8966
9037
  function useCreateProjectRedirect() {
8967
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9038
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
8968
9039
  const navigate = reactRouter.useNavigate();
8969
9040
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
8970
- const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
9041
+ const { isFetching, isReady, redirect } = chunkFJ4KYZYG_cjs.usePrefetchRedirect({
8971
9042
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
8972
9043
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
8973
9044
  forwardedTo: "/app/create-project",
@@ -9059,10 +9130,10 @@ function useProjectOverviewRedirect({
9059
9130
  tenantGroupId
9060
9131
  }) {
9061
9132
  const navigate = reactRouter.useNavigate();
9062
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9133
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
9063
9134
  const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
9064
9135
  const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
9065
- const { isFetching, isReady, redirect } = chunkMSHCIIXL_cjs.usePrefetchRedirect({
9136
+ const { isFetching, isReady, redirect } = chunkFJ4KYZYG_cjs.usePrefetchRedirect({
9066
9137
  clientId: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.clientId) : "",
9067
9138
  redirectUri: osApp ? chunkHF24SZFI_cjs.getRuntimeEnv(osApp.redirectUri) : "",
9068
9139
  forwardedTo: redirectedRoute,
@@ -9227,7 +9298,7 @@ var SelfProjectLoading = () => {
9227
9298
  ) });
9228
9299
  };
9229
9300
  var SelfProject = ({ canCreateProject = false }) => {
9230
- const { data: data2, isLoading, isFetching } = chunkPSATBGVF_cjs.useGetProjects({ enabled: true });
9301
+ const { data: data2, isLoading, isFetching } = chunkGZY23QP3_cjs.useGetProjects({ enabled: true });
9231
9302
  if (isLoading || isFetching) return /* @__PURE__ */ jsxRuntime.jsx(SelfProjectLoading, {});
9232
9303
  const projectGroups = data2 || [];
9233
9304
  if (!projectGroups.length && canCreateProject)
@@ -9330,7 +9401,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
9330
9401
  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
9402
  };
9332
9403
  function ProfilePage() {
9333
- const { isLoading, error } = chunkMSHCIIXL_cjs.useInitiateRedirect({
9404
+ const { isLoading, error } = chunkFJ4KYZYG_cjs.useInitiateRedirect({
9334
9405
  clientId: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
9335
9406
  redirectUri: chunkHF24SZFI_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
9336
9407
  forwardedTo: "/app/profile"
@@ -9608,8 +9679,8 @@ var ConfirmationModal = ({
9608
9679
  ] })
9609
9680
  ] });
9610
9681
  var DashboardOverview = () => {
9611
- const { name } = chunkMSHCIIXL_cjs.useBlocksAppConfigStore((state) => state.config);
9612
- const { data: data2, isFetching } = chunkPSATBGVF_cjs.useGetProject();
9682
+ const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
9683
+ const { data: data2, isFetching } = chunkGZY23QP3_cjs.useGetProject();
9613
9684
  const {
9614
9685
  endpoints,
9615
9686
  isLoading: isLoadingEndpoints,
@@ -9703,11 +9774,11 @@ function ProjectList({
9703
9774
  }) {
9704
9775
  const navigate = reactRouter.useNavigate();
9705
9776
  const { pathname } = reactRouter.useLocation();
9706
- const { data: projectGroups = [], isLoading } = chunkPSATBGVF_cjs.useGetProjects({
9777
+ const { data: projectGroups = [], isLoading } = chunkGZY23QP3_cjs.useGetProjects({
9707
9778
  enabled: true
9708
9779
  });
9709
9780
  const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
9710
- const { data: projectData } = chunkPSATBGVF_cjs.useGetProject();
9781
+ const { data: projectData } = chunkGZY23QP3_cjs.useGetProject();
9711
9782
  const pendingProjectRef = React8.useRef(null);
9712
9783
  const redirectRegexMap = React8.useMemo(
9713
9784
  () => Object.entries(redirectPaths).reduce(
@@ -9856,7 +9927,7 @@ var SetCustomDomainDialog = ({
9856
9927
  projectKey,
9857
9928
  projectEnv
9858
9929
  }) => {
9859
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useUpdateRepositories();
9930
+ const { mutateAsync, isPending } = chunkGZY23QP3_cjs.useUpdateRepositories();
9860
9931
  const verifiedDomains = React8.useMemo(
9861
9932
  () => Array.from(
9862
9933
  new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
@@ -10040,7 +10111,7 @@ var ProjectRepoList = ({
10040
10111
  data: envRepositoriesResponse,
10041
10112
  isLoading: isLoadingEnvRepos,
10042
10113
  isFetching: isFetchingEnvRepos
10043
- } = chunkPSATBGVF_cjs.useGetEnvRepositories(project?.tenantId || "");
10114
+ } = chunkGZY23QP3_cjs.useGetEnvRepositories(project?.tenantId || "");
10044
10115
  if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
10045
10116
  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
10117
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
@@ -10140,7 +10211,7 @@ var EditProjectForm = ({
10140
10211
  onAfterSubmit
10141
10212
  }) => {
10142
10213
  const queryClient = reactQuery.useQueryClient();
10143
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useUpdateTenantGroup();
10214
+ const { mutateAsync, isPending } = chunkGZY23QP3_cjs.useUpdateTenantGroup();
10144
10215
  const form = reactHookForm.useForm({
10145
10216
  resolver: zod$1.zodResolver(editProjectFormSchema),
10146
10217
  defaultValues: {
@@ -10268,7 +10339,7 @@ function SidebarMobileView({
10268
10339
  navigationMenus
10269
10340
  }) {
10270
10341
  const [open, setOpen] = React8.useState(false);
10271
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
10342
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
10272
10343
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
10273
10344
  return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
10274
10345
  /* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
@@ -10317,15 +10388,15 @@ function SidebarMenuDesktop({
10317
10388
  redirectPaths,
10318
10389
  navigationMenus
10319
10390
  }) {
10320
- const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkJTSGZMKE_cjs.SidebarContext);
10321
- const { appLightLogo, appDarkLogo } = chunkMSHCIIXL_cjs.useLogo();
10322
- const icon = chunkMSHCIIXL_cjs.useIcon();
10391
+ const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkM3KOYPCN_cjs.SidebarContext);
10392
+ const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
10393
+ const icon = chunkFJ4KYZYG_cjs.useIcon();
10323
10394
  const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
10324
10395
  const { isActivePath: isProjectOverviewRoute } = chunkQ7Y32IBM_cjs.useIsActiveMenu("/app/project");
10325
10396
  return /* @__PURE__ */ jsxRuntime.jsxs(
10326
10397
  "div",
10327
10398
  {
10328
- className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-all md:flex ${isSidebarOpen ? "min-w-60" : "w-14"}`,
10399
+ className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-[width] duration-300 ease-in-out md:flex ${isSidebarOpen ? "w-60" : "w-14"}`,
10329
10400
  children: [
10330
10401
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
10331
10402
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -10448,7 +10519,7 @@ var ErrorBoundary = class extends React8.Component {
10448
10519
  var ArchiveProject = () => {
10449
10520
  const navigate = reactRouter.useNavigate();
10450
10521
  const projectKey = chunkVAKGHXK6_cjs.useProjectStore().selectedProject?.tenantId || "";
10451
- const { mutateAsync, isPending } = chunkPSATBGVF_cjs.useDisableProject({ projectKey });
10522
+ const { mutateAsync, isPending } = chunkGZY23QP3_cjs.useDisableProject({ projectKey });
10452
10523
  const onClickHandler = async () => {
10453
10524
  try {
10454
10525
  const res = await mutateAsync();
@@ -11411,7 +11482,7 @@ function MultiSelect2({
11411
11482
  onChange,
11412
11483
  value: selectedValues
11413
11484
  }) {
11414
- const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11485
+ const [buttonRef, popoverWidth] = chunkFJ4KYZYG_cjs.usePopoverWidth();
11415
11486
  const onSelectHandler = (value) => {
11416
11487
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
11417
11488
  onChange(nextValues);
@@ -11528,7 +11599,7 @@ var ClearButton = ({ onClear }) => {
11528
11599
  };
11529
11600
  function Radio({ label, options, onChange, value }) {
11530
11601
  const [search, setSearch] = React8.useState("");
11531
- const [buttonRef, popoverWidth] = chunkMSHCIIXL_cjs.usePopoverWidth();
11602
+ const [buttonRef, popoverWidth] = chunkFJ4KYZYG_cjs.usePopoverWidth();
11532
11603
  const isMobile = chunkQ7Y32IBM_cjs.useIsMobile();
11533
11604
  const selected = React8.useMemo(
11534
11605
  () => options.find((item) => item.value === value) || null,
@@ -12260,15 +12331,6 @@ exports.Accordion = Accordion;
12260
12331
  exports.AccordionContent = AccordionContent;
12261
12332
  exports.AccordionItem = AccordionItem;
12262
12333
  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
12334
  exports.Alert = Alert;
12273
12335
  exports.AlertDescription = AlertDescription;
12274
12336
  exports.AlertDialog = AlertDialog;
@@ -12497,6 +12559,15 @@ exports.RenderConditionally = RenderConditionally;
12497
12559
  exports.ResizableHandle = ResizableHandle;
12498
12560
  exports.ResizablePanel = ResizablePanel;
12499
12561
  exports.ResizablePanelGroup = ResizablePanelGroup;
12562
+ exports.RightSidePanel = RightSidePanel;
12563
+ exports.RightSidePanelBody = RightSidePanelBody;
12564
+ exports.RightSidePanelClose = RightSidePanelClose;
12565
+ exports.RightSidePanelDescription = RightSidePanelDescription;
12566
+ exports.RightSidePanelFooter = RightSidePanelFooter;
12567
+ exports.RightSidePanelHeader = RightSidePanelHeader;
12568
+ exports.RightSidePanelProvider = RightSidePanelProvider;
12569
+ exports.RightSidePanelTitle = RightSidePanelTitle;
12570
+ exports.RightSidePanelTrigger = RightSidePanelTrigger;
12500
12571
  exports.ScrollArea = ScrollArea;
12501
12572
  exports.ScrollBar = ScrollBar;
12502
12573
  exports.Select = Select;
@@ -12597,13 +12668,13 @@ exports.sidebarCollapsedTooltipClass = sidebarCollapsedTooltipClass;
12597
12668
  exports.sortQueryParsers = sortQueryParsers;
12598
12669
  exports.spinnerVariants = spinnerVariants;
12599
12670
  exports.toggleVariants = toggleVariants;
12600
- exports.useAgentPanel = useAgentPanel;
12601
12671
  exports.useFileUpload = useFileUpload;
12602
12672
  exports.useFormField = useFormField;
12603
12673
  exports.useNotificationSocket = useNotificationSocket;
12604
12674
  exports.useOidcContext = useOidcContext;
12605
12675
  exports.usePaginationQueryParams = usePaginationQueryParams;
12676
+ exports.useRightSidePanel = useRightSidePanel;
12606
12677
  exports.useSortQueryParams = useSortQueryParams;
12607
12678
  exports.useWizardStepper = useWizardStepper;
12608
- //# sourceMappingURL=chunk-VNUHUNWE.cjs.map
12609
- //# sourceMappingURL=chunk-VNUHUNWE.cjs.map
12679
+ //# sourceMappingURL=chunk-SONN5ZUL.cjs.map
12680
+ //# sourceMappingURL=chunk-SONN5ZUL.cjs.map